/*! tailwindcss v4.2.1 | MIT License | https://tailwindcss.com */
@layer theme {
  :root,
  :host {
    --font-sans:
      ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji",
      "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --font-mono:
      ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
      "Courier New", monospace;
    --spacing: 0.25rem;
    --default-font-family: var(--font-sans);
    --default-mono-font-family: var(--font-mono);
  }
}
@layer base {
  *,
  :after,
  :before,
  ::backdrop {
    box-sizing: border-box;
    border: 0 solid;
    margin: 0;
    padding: 0;
  }
  ::file-selector-button {
    box-sizing: border-box;
    border: 0 solid;
    margin: 0;
    padding: 0;
  }
  html,
  :host {
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    line-height: 1.5;
    font-family: var(
      --default-font-family,
      ui-sans-serif,
      system-ui,
      sans-serif,
      "Apple Color Emoji",
      "Segoe UI Emoji",
      "Segoe UI Symbol",
      "Noto Color Emoji"
    );
    font-feature-settings: var(--default-font-feature-settings, normal);
    font-variation-settings: var(--default-font-variation-settings, normal);
    -webkit-tap-highlight-color: transparent;
  }
  hr {
    height: 0;
    color: inherit;
    border-top-width: 1px;
  }
  abbr:where([title]) {
    -webkit-text-decoration: underline dotted;
    text-decoration: underline dotted;
  }
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    font-size: inherit;
    font-weight: inherit;
  }
  a {
    color: inherit;
    -webkit-text-decoration: inherit;
    -webkit-text-decoration: inherit;
    -webkit-text-decoration: inherit;
    -webkit-text-decoration: inherit;
    text-decoration: inherit;
  }
  b,
  strong {
    font-weight: bolder;
  }
  code,
  kbd,
  samp,
  pre {
    font-family: var(
      --default-mono-font-family,
      ui-monospace,
      SFMono-Regular,
      Menlo,
      Monaco,
      Consolas,
      "Liberation Mono",
      "Courier New",
      monospace
    );
    font-feature-settings: var(--default-mono-font-feature-settings, normal);
    font-variation-settings: var(
      --default-mono-font-variation-settings,
      normal
    );
    font-size: 1em;
  }
  small {
    font-size: 80%;
  }
  sub,
  sup {
    vertical-align: baseline;
    font-size: 75%;
    line-height: 0;
    position: relative;
  }
  sub {
    bottom: -0.25em;
  }
  sup {
    top: -0.5em;
  }
  table {
    text-indent: 0;
    border-color: inherit;
    border-collapse: collapse;
  }
  :-moz-focusring {
    outline: auto;
  }
  progress {
    vertical-align: baseline;
  }
  summary {
    display: list-item;
  }
  ol,
  ul,
  menu {
    list-style: none;
  }
  img,
  svg,
  video,
  canvas,
  audio,
  iframe,
  embed,
  object {
    vertical-align: middle;
    display: block;
  }
  img,
  video {
    max-width: 100%;
    height: auto;
  }
  button,
  input,
  select,
  optgroup,
  textarea {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    opacity: 1;
    background-color: #0000;
    border-radius: 0;
  }
  ::file-selector-button {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    opacity: 1;
    background-color: #0000;
    border-radius: 0;
  }
  :where(select:is([multiple], [size])) optgroup {
    font-weight: bolder;
  }
  :where(select:is([multiple], [size])) optgroup option {
    padding-inline-start: 20px;
  }
  ::file-selector-button {
    margin-inline-end: 4px;
  }
  ::placeholder {
    opacity: 1;
  }
  @supports (not ((-webkit-appearance: -apple-pay-button))) or
    (contain-intrinsic-size: 1px) {
    ::placeholder {
      color: currentColor;
    }
    @supports (color: color-mix(in lab, red, red)) {
      ::placeholder {
        color: color-mix(in oklab, currentcolor 50%, transparent);
      }
    }
  }
  textarea {
    resize: vertical;
  }
  ::-webkit-search-decoration {
    -webkit-appearance: none;
  }
  ::-webkit-date-and-time-value {
    min-height: 1lh;
    text-align: inherit;
  }
  ::-webkit-datetime-edit {
    display: inline-flex;
  }
  ::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
  }
  ::-webkit-datetime-edit {
    padding-block: 0;
  }
  ::-webkit-datetime-edit-year-field {
    padding-block: 0;
  }
  ::-webkit-datetime-edit-month-field {
    padding-block: 0;
  }
  ::-webkit-datetime-edit-day-field {
    padding-block: 0;
  }
  ::-webkit-datetime-edit-hour-field {
    padding-block: 0;
  }
  ::-webkit-datetime-edit-minute-field {
    padding-block: 0;
  }
  ::-webkit-datetime-edit-second-field {
    padding-block: 0;
  }
  ::-webkit-datetime-edit-millisecond-field {
    padding-block: 0;
  }
  ::-webkit-datetime-edit-meridiem-field {
    padding-block: 0;
  }
  ::-webkit-calendar-picker-indicator {
    line-height: 1;
  }
  :-moz-ui-invalid {
    box-shadow: none;
  }
  button,
  input:where([type="button"], [type="reset"], [type="submit"]) {
    appearance: button;
  }
  ::file-selector-button {
    appearance: button;
  }
  ::-webkit-inner-spin-button {
    height: auto;
  }
  ::-webkit-outer-spin-button {
    height: auto;
  }
  [hidden]:where(:not([hidden="until-found"])) {
    display: none !important;
  }
}
@layer components;
@layer utilities {
  .visible {
    visibility: visible;
  }
  .relative {
    position: relative;
  }
  .start {
    inset-inline-start: var(--spacing);
  }
  .block {
    display: block;
  }
  .table {
    display: table;
  }
  .resize {
    resize: both;
  }
  .antialiased {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
}
:root {
  --ink: #142f2b;
  --paper: #f2f0e8;
  --line: #142f2b29;
  --accent: #fb603c;
  --mint: #cce0b8;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  background:
    linear-gradient(#142f2b09 1px, transparent 1px),
    linear-gradient(90deg, #142f2b09 1px, transparent 1px), var(--paper);
  color: var(--ink);
  background-size: 32px 32px;
  margin: 0;
  font-family:
    Arial,
    Microsoft YaHei,
    sans-serif;
}
button,
input,
select {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  color: inherit;
}
.site-shell {
  min-height: 100vh;
  overflow: hidden;
}
.topbar {
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  align-items: center;
  width: min(1180px, 100% - 48px);
  height: 86px;
  margin: 0 auto;
  display: flex;
}
.brand {
  color: var(--ink);
  letter-spacing: 0.08em;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
}
.brand-mark {
  background: var(--ink);
  width: 35px;
  height: 35px;
  color: var(--paper);
  border-radius: 50%;
  place-items: center;
  font:
    18px Georgia,
    serif;
  display: grid;
}
.topbar nav {
  align-items: center;
  gap: 20px;
  display: flex;
}
.text-button {
  cursor: pointer;
  background: 0 0;
  border: 0;
  font-weight: 750;
}
.text-button span {
  margin-right: 4px;
  font-size: 18px;
}
.local-note {
  border-left: 1px solid var(--line);
  color: #142f2b94;
  padding-left: 20px;
  font-size: 12px;
}
.hero {
  width: min(1180px, 100% - 48px);
  margin: 0 auto;
  padding: 94px 0 70px;
  position: relative;
}
.hero:after {
  content: "↗";
  color: var(--accent);
  opacity: 0.88;
  font:
    100 170px/1 Arial,
    sans-serif;
  position: absolute;
  top: 78px;
  right: 3%;
  transform: rotate(-3deg);
}
.eyebrow {
  font:
    700 11px/1 var(--font-geist-mono),
    monospace;
  letter-spacing: 0.24em;
  margin: 0 0 20px;
}
.hero h1 {
  letter-spacing: -0.055em;
  max-width: 830px;
  margin: 0;
  font:
    500 clamp(58px, 8.2vw, 116px) / 0.9 Georgia,
    Songti SC,
    serif;
}
.hero h1 span {
  color: var(--accent);
  font-style: italic;
}
.search-box {
  border-bottom: 2px solid var(--ink);
  align-items: center;
  gap: 12px;
  width: min(610px, 100%);
  height: 60px;
  margin-top: 58px;
  display: flex;
}
.search-box > span {
  font:
    400 31px/1 Georgia,
    serif;
  transform: rotate(-20deg);
}
.search-box input {
  min-width: 0;
  color: var(--ink);
  background: 0 0;
  border: 0;
  outline: 0;
  flex: 1;
  padding: 0;
  font-size: 18px;
}
.search-box input::placeholder {
  color: #142f2b73;
}
.search-box button {
  cursor: pointer;
  background: 0 0;
  border: 0;
  font-size: 24px;
}
.search-box kbd {
  border: 1px solid var(--line);
  color: #142f2b8c;
  font:
    11px/1 var(--font-geist-mono),
    monospace;
  background: #ffffff47;
  padding: 5px 8px;
}
.directory {
  width: min(1180px, 100% - 48px);
  margin: 0 auto;
  padding-bottom: 100px;
}
.directory-head {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  align-items: center;
  min-height: 62px;
  display: flex;
}
.tabs {
  align-items: center;
  gap: 26px;
  display: flex;
}
.tabs button {
  color: #142f2b7a;
  cursor: pointer;
  background: 0 0;
  border: 0;
  border-bottom: 3px solid #0000;
  height: 62px;
  padding: 0;
  font-weight: 700;
}
.tabs button.active {
  border-bottom-color: var(--accent);
  color: var(--ink);
}
.directory-head p {
  color: #142f2b73;
  font-size: 12px;
}
.link-group {
  border-bottom: 1px solid var(--line);
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 32px;
  padding: 45px 0 54px;
  display: grid;
}
.group-title {
  align-items: baseline;
  gap: 9px;
  display: flex;
}
.group-title h2 {
  min-width: 5em;
  margin: 0;
  white-space: nowrap;
  word-break: keep-all;
  font:
    600 24px/1.2 Georgia,
    Songti SC,
    serif;
}
.link-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  display: grid;
}
.link-card,
.add-card {
  border: 1px solid var(--line);
  min-height: 86px;
  color: var(--ink);
  text-align: left;
  background: #ffffff54;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  text-decoration: none;
  transition:
    transform 0.16s,
    background 0.16s,
    border-color 0.16s;
  display: flex;
  position: relative;
}
.link-card:hover {
  z-index: 1;
  border-color: var(--ink);
  background: #fffdf5;
  transform: translateY(-3px);
}
.favicon-shell,
.letter-icon {
  border: 1px solid var(--line);
  background: #fff;
  flex: 0 0 42px;
  place-items: center;
  width: 42px;
  height: 42px;
  display: grid;
}
.favicon-shell img {
  object-fit: contain;
  width: 28px;
  height: 28px;
}
.letter-icon {
  color: var(--ink);
  border: 0;
  font:
    700 18px/1 Georgia,
    serif;
}
.tone-0 {
  background: #f6c9b8;
}
.tone-1 {
  background: #cce0b8;
}
.tone-2 {
  background: #f2dfa5;
}
.tone-3 {
  background: #c7dcea;
}
.tone-4 {
  background: #ddcbea;
}
.link-copy {
  gap: 5px;
  min-width: 0;
  display: grid;
}
.link-copy strong {
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  overflow: hidden;
}
.link-copy small {
  color: #142f2b7a;
  font:
    10px/1 var(--font-geist-mono),
    monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}
.arrow {
  color: #142f2b52;
  align-self: flex-start;
  margin-left: auto;
  font-size: 18px;
}
.link-card:hover .arrow {
  color: var(--accent);
}
.add-card {
  color: #142f2b8c;
  cursor: pointer;
  background: 0 0;
  border-style: dashed;
  justify-content: center;
  font-weight: 700;
}
.add-card:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.add-card span {
  font-size: 21px;
}
.empty-state {
  text-align: center;
  padding: 90px 20px;
}
.empty-state > span {
  color: var(--accent);
  font-size: 54px;
}
.empty-state h2 {
  margin: 12px 0 8px;
  font:
    500 30px/1.2 Georgia,
    Songti SC,
    serif;
}
.empty-state p {
  color: #142f2b8c;
}
.empty-state button,
.save-button {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  padding: 12px 22px;
  font-weight: 700;
}
footer {
  border-top: 1px solid var(--ink);
  color: #142f2b80;
  width: min(1180px, 100% - 48px);
  font:
    10px/1 var(--font-geist-mono),
    monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  justify-content: space-between;
  margin: 0 auto;
  padding: 30px 0 42px;
  display: flex;
}
.context-menu {
  z-index: 50;
  border: 1px solid var(--ink);
  background: #fffdf5;
  width: 172px;
  padding: 6px;
  position: fixed;
  box-shadow: 8px 8px #142f2b1f;
}
.context-menu button {
  text-align: left;
  cursor: pointer;
  background: 0 0;
  border: 0;
  gap: 10px;
  width: 100%;
  padding: 11px 12px;
  display: flex;
}
.context-menu button:hover {
  background: var(--mint);
}
.context-menu button.danger {
  color: #b9352c;
}
.modal-backdrop {
  z-index: 100;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  background: #0a1e1ba8;
  place-items: center;
  padding: 20px;
  display: grid;
  position: fixed;
  inset: 0;
}
.modal {
  border-top: 5px solid var(--accent);
  background: var(--paper);
  width: min(470px, 100%);
  max-height: calc(100vh - 40px);
  padding: 30px;
  overflow-y: auto;
  box-shadow: 16px 16px #0000002e;
}
.modal-heading {
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 26px;
  display: flex;
}
.modal-heading p {
  color: var(--accent);
  font:
    700 10px/1 var(--font-geist-mono),
    monospace;
  letter-spacing: 0.2em;
  margin: 0 0 8px;
}
.modal-heading h2 {
  margin: 0;
  font:
    500 32px/1 Georgia,
    Songti SC,
    serif;
}
.modal-heading > button {
  border: 1px solid var(--line);
  cursor: pointer;
  background: 0 0;
  width: 34px;
  height: 34px;
  font-size: 22px;
}
.modal form,
.modal label {
  display: grid;
}
.modal form {
  gap: 20px;
}
.modal label {
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
}
.modal input,
.modal select {
  border: 1px solid var(--line);
  width: 100%;
  height: 48px;
  color: var(--ink);
  background: #ffffff85;
  border-radius: 0;
  outline: none;
  padding: 0 13px;
}
.modal input:focus,
.modal select:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 2px var(--mint);
}
.modal label small {
  color: #142f2b78;
  font-size: 10px;
  font-weight: 400;
}
.form-actions {
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
  display: flex;
}
.form-actions button {
  cursor: pointer;
  min-height: 43px;
  padding: 0 18px;
}
.cancel-button,
.delete-button {
  border: 1px solid var(--line);
  background: 0 0;
}
.delete-button {
  color: #b9352c;
  margin-right: auto;
}
@media (width<=900px) {
  .hero:after {
    font-size: 100px;
    top: 110px;
    right: 0;
  }
  .link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (width<=640px) {
  .topbar,
  .hero,
  .directory,
  footer {
    width: min(100% - 32px, 1180px);
  }
  .topbar {
    height: 70px;
  }
  .local-note {
    display: none;
  }
  .hero {
    padding: 68px 0 52px;
  }
  .hero:after {
    font-size: 76px;
    top: 70px;
    right: -18px;
  }
  .hero h1 {
    max-width: 92%;
    font-size: clamp(48px, 15vw, 72px);
  }
  .search-box {
    height: 56px;
    margin-top: 42px;
  }
  .search-box kbd {
    display: none;
  }
  .directory-head {
    overflow-x: auto;
  }
  .tabs {
    gap: 20px;
  }
  .tabs button {
    white-space: nowrap;
  }
  .directory-head p {
    display: none;
  }
  .link-group {
    padding: 34px 0 42px;
    display: block;
  }
  .group-title {
    margin-bottom: 20px;
  }
  .link-grid {
    grid-template-columns: 1fr;
    gap: 9px;
  }
  .link-card,
  .add-card {
    min-height: 78px;
  }
  footer {
    gap: 20px;
    padding-bottom: 30px;
  }
  footer span:last-child {
    text-align: right;
  }
  .modal {
    padding: 24px 20px;
    box-shadow: 8px 8px #0000002e;
  }
  .form-actions {
    flex-wrap: wrap;
  }
  .save-button {
    flex: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
.nav-link {
  color: #142f2b94;
  align-items: center;
  gap: 6px;
  font-weight: 750;
  text-decoration: none;
  display: inline-flex;
}
.nav-link:hover,
.nav-link.active {
  color: var(--accent);
}
.nav-link span {
  font-size: 18px;
}
.file-shell {
  width: min(1180px, 100% - 48px);
  min-height: calc(100vh - 190px);
  margin: 0 auto;
  padding: 76px 0 100px;
}
.file-heading {
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 42px;
  display: flex;
}
.file-heading h1,
.locked-view h1 {
  letter-spacing: -0.05em;
  margin: 0;
  font:
    500 clamp(54px, 7vw, 92px) / 0.92 Georgia,
    Songti SC,
    serif;
}
.file-heading h1 span,
.locked-view h1 span {
  color: var(--accent);
  font-style: italic;
}
.lock-button {
  border: 1px solid var(--line);
  cursor: pointer;
  background: 0 0;
  padding: 10px 18px;
  font-size: 12px;
  font-weight: 700;
}
.storage-card {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  margin-bottom: 20px;
  padding: 25px 28px;
}
.storage-copy {
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  display: flex;
}
.storage-copy > div {
  gap: 6px;
  display: grid;
}
.storage-copy span {
  color: var(--mint);
  font:
    700 10px/1 var(--font-geist-mono),
    monospace;
  letter-spacing: 0.16em;
}
.storage-copy strong {
  font:
    500 30px/1.1 Georgia,
    Songti SC,
    serif;
}
.storage-copy p {
  text-align: right;
  font:
    12px/1.45 var(--font-geist-mono),
    monospace;
  margin: 0;
}
.storage-copy small {
  color: #f2f0e88c;
}
.storage-track {
  background: #ffffff1f;
  height: 7px;
  margin-top: 22px;
  overflow: hidden;
}
.storage-track span {
  background: var(--accent);
  height: 100%;
  transition: width 0.35s;
  display: block;
}
.upload-zone {
  background: #ffffff47;
  border: 1px dashed #142f2b61;
  align-items: center;
  gap: 22px;
  min-height: 180px;
  padding: 28px;
  transition:
    border-color 0.15s,
    background 0.15s;
  display: flex;
}
.upload-zone.dragging {
  border-color: var(--accent);
  background: #fffdf5;
}
.upload-mark {
  background: var(--mint);
  border-radius: 50%;
  flex: 0 0 68px;
  place-items: center;
  width: 68px;
  height: 68px;
  font:
    40px/1 Georgia,
    serif;
  display: grid;
}
.upload-zone h2 {
  margin: 0 0 8px;
  font:
    500 27px/1.1 Georgia,
    Songti SC,
    serif;
}
.upload-zone p {
  color: #142f2b8c;
  margin: 0;
  font-size: 12px;
}
.upload-button {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
  margin-left: auto;
  padding: 13px 20px;
  font-weight: 700;
}
.upload-button input {
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
  position: absolute;
}
.form-message {
  border-left: 3px solid var(--mint);
  background: #ffffff57;
  margin: 14px 0 0;
  padding: 10px 14px;
  font-size: 13px;
}
.error-message {
  border-left-color: var(--accent);
  color: #a52f25;
}
.file-list-head {
  border-bottom: 1px solid var(--ink);
  justify-content: space-between;
  align-items: end;
  margin-top: 46px;
  padding-bottom: 16px;
  display: flex;
}
.file-list-head > div {
  align-items: baseline;
  gap: 9px;
  display: flex;
}
.file-list-head h2 {
  margin: 0;
  font:
    600 24px/1.2 Georgia,
    Songti SC,
    serif;
}
.file-list-head span {
  color: var(--accent);
  font:
    700 10px/1 var(--font-geist-mono),
    monospace;
}
.file-list-head button {
  cursor: pointer;
  background: 0 0;
  border: 0;
  font-size: 12px;
  font-weight: 700;
}
.file-list {
  border-bottom: 1px solid var(--line);
}
.file-row {
  border-bottom: 1px solid var(--line);
  min-height: 76px;
  color: var(--ink);
  grid-template-columns: 62px minmax(0, 1fr) auto 30px;
  align-items: center;
  gap: 16px;
  padding: 12px 8px;
  text-decoration: none;
  display: grid;
}
.file-row:hover {
  background: #ffffff6b;
}
.file-type {
  background: var(--mint);
  width: 52px;
  height: 38px;
  font:
    700 9px/1 var(--font-geist-mono),
    monospace;
  place-items: center;
  display: grid;
}
.file-name {
  gap: 5px;
  min-width: 0;
  display: grid;
}
.file-name strong {
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  overflow: hidden;
}
.file-name small,
.file-size {
  color: #142f2b80;
  font:
    10px/1 var(--font-geist-mono),
    monospace;
}
.file-download {
  color: var(--accent);
  font-size: 22px;
}
.no-files {
  color: #142f2b80;
  text-align: center;
  padding: 55px 20px;
}
.locked-view {
  max-width: 760px;
  padding-top: 110px;
}
.unlock-form {
  gap: 10px;
  width: min(520px, 100%);
  margin-top: 50px;
  display: grid;
}
.unlock-form label {
  font-size: 12px;
  font-weight: 700;
}
.unlock-form > div {
  border-bottom: 2px solid var(--ink);
  display: flex;
}
.unlock-form input {
  background: 0 0;
  border: 0;
  outline: 0;
  flex: 1;
  min-width: 0;
  height: 54px;
  font-size: 18px;
}
.unlock-form button {
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  border: 0;
  padding: 0 20px;
  font-weight: 700;
}
@media (width<=700px) {
  .topbar nav {
    gap: 12px;
  }
  .nav-link {
    font-size: 13px;
  }
  .file-shell {
    width: min(100% - 32px, 1180px);
    padding: 55px 0 70px;
  }
  .file-heading {
    margin-bottom: 30px;
  }
  .file-heading h1,
  .locked-view h1 {
    font-size: 52px;
  }
  .storage-card {
    padding: 22px 18px;
  }
  .storage-copy {
    flex-direction: column;
    align-items: flex-start;
  }
  .storage-copy p {
    text-align: left;
  }
  .upload-zone {
    flex-wrap: wrap;
    align-items: flex-start;
    padding: 22px 18px;
  }
  .upload-mark {
    flex-basis: 50px;
    width: 50px;
    height: 50px;
    font-size: 30px;
  }
  .upload-zone > div {
    width: calc(100% - 72px);
  }
  .upload-button {
    text-align: center;
    width: 100%;
    margin: 8px 0 0;
  }
  .file-row {
    grid-template-columns: 50px minmax(0, 1fr) 24px;
    gap: 10px;
  }
  .file-size {
    display: none;
  }
  .file-type {
    width: 44px;
  }
  .locked-view {
    padding-top: 80px;
  }
  .unlock-form > div {
    border-bottom: 0;
    display: grid;
  }
  .unlock-form input {
    border-bottom: 2px solid var(--ink);
  }
  .unlock-form button {
    height: 48px;
  }
  .local-note {
    display: none;
  }
}
.account-button {
  color: var(--ink);
  cursor: pointer;
  background: 0 0;
  border: 1px solid #142f2b3d;
  padding: 9px 14px;
  font-weight: 750;
}
.account-button:hover,
.login-button {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}
.auth-backdrop {
  z-index: 80;
}
.auth-modal {
  width: min(500px, 100% - 32px);
}
.auth-form {
  gap: 20px;
  display: grid;
}
.auth-form label {
  gap: 8px;
  font-size: 12px;
  font-weight: 750;
  display: grid;
}
.auth-form input {
  width: 100%;
  height: 50px;
  color: var(--ink);
  font: inherit;
  background: #fffef9;
  border: 1px solid #142f2b47;
  border-radius: 0;
  outline: none;
  padding: 0 14px;
  font-size: 17px;
}
.auth-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px #df5b491f;
}
.auth-help,
.locked-copy,
.recovery-panel > p {
  color: #142f2ba8;
  line-height: 1.65;
}
.totp-qr {
  border: 1px solid var(--line);
  width: 236px;
  max-width: 100%;
  margin: 0 auto;
}
.auth-form details {
  color: #142f2bb3;
  font-size: 13px;
}
.auth-form summary {
  cursor: pointer;
}
.secret-code {
  overflow-wrap: anywhere;
  background: var(--mint);
  color: var(--ink);
  letter-spacing: 0.08em;
  margin-top: 10px;
  padding: 12px;
  font-size: 14px;
  display: block;
}
.full-button {
  width: 100%;
  min-height: 50px;
}
.recovery-panel {
  gap: 22px;
  display: grid;
}
.recovery-grid {
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  display: grid;
}
.recovery-grid code {
  border: 1px solid var(--line);
  background: var(--mint);
  text-align: center;
  padding: 11px 8px;
  font-size: 13px;
}
.gate-button {
  min-width: 150px;
  margin-top: 28px;
  padding: 0 24px;
}
.locked-copy {
  max-width: 540px;
  margin-top: 20px;
}
@media (width<=700px) {
  .topbar nav {
    gap: 8px;
  }
  .text-button {
    display: none;
  }
  .account-button {
    padding: 8px 10px;
    font-size: 12px;
  }
  .recovery-grid {
    grid-template-columns: 1fr;
  }
}
.file-actions {
  align-items: center;
  gap: 6px;
  display: flex;
}
.file-actions a,
.file-actions button {
  border: 1px solid var(--line);
  width: 30px;
  height: 30px;
  color: var(--ink);
  cursor: pointer;
  background: 0 0;
  place-items: center;
  text-decoration: none;
  display: grid;
}
.file-actions a:hover,
.file-actions button:hover {
  border-color: var(--ink);
  background: var(--mint);
}
.file-actions .danger {
  color: #b9352c;
}
.link-card-link {
  min-width: 0;
  color: inherit;
  flex: 1;
  align-self: stretch;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  display: flex;
}
.drag-handle {
  color: #142f2b5c;
  cursor: grab;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  background: 0 0;
  border: 0;
  flex: 0 0 34px;
  place-items: center;
  width: 34px;
  height: 44px;
  margin: -6px -8px -6px 0;
  font-size: 22px;
  line-height: 1;
  display: grid;
}
.drag-handle:hover {
  color: var(--accent);
  background: var(--mint);
}
.drag-handle:active {
  cursor: grabbing;
}
.link-card.is-dragging {
  opacity: 0.42;
  border-color: var(--accent);
  transform: scale(0.98);
}
.link-group.drag-target {
  box-shadow: inset 4px 0 0 var(--accent);
  background: #e0efe48c;
}
.link-group.drag-target .group-title h2 {
  color: var(--accent);
}
.tabs button.drag-target-tab {
  color: var(--accent);
  box-shadow: inset 0 -3px 0 var(--accent);
  background: var(--mint);
}
@media (width<=700px) {
  .drag-handle {
    flex-basis: 38px;
    width: 38px;
    margin-right: -10px;
  }
  .link-group.drag-target {
    margin-inline: -8px;
    padding-inline: 8px;
  }
}
.icon-backdrop {
  z-index: 85;
}
.icon-modal {
  width: min(520px, 100% - 32px);
}
.icon-form {
  gap: 16px;
  display: grid;
}
.icon-form > label:not(.icon-upload-button) {
  gap: 8px;
  font-size: 12px;
  font-weight: 750;
  display: grid;
}
.icon-form > label input {
  width: 100%;
  height: 48px;
  color: var(--ink);
  font: inherit;
  background: #fffef9;
  border: 1px solid #142f2b47;
  outline: none;
  padding: 0 13px;
}
.icon-form > label input:focus {
  border-color: var(--accent);
}
.icon-preview {
  border: 1px solid var(--line);
  background: var(--mint);
  place-items: center;
  width: 112px;
  height: 112px;
  margin: 0 auto 4px;
  display: grid;
}
.icon-preview img {
  object-fit: contain;
  width: 72px;
  height: 72px;
}
.icon-upload-button {
  border: 1px dashed var(--ink);
  min-height: 48px;
  color: var(--ink);
  cursor: pointer;
  place-items: center;
  font-weight: 750;
  display: grid;
}
.icon-upload-button:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--mint);
}
.icon-upload-button input {
  display: none;
}
.icon-tip {
  color: #142f2b8f;
  line-height: 1.5;
}
.mobile-badge {
  width: 24px;
  height: 30px;
  color: var(--accent);
  flex: 0 0 24px;
  place-items: center;
  font-size: 18px;
  line-height: 1;
  display: grid;
}
.mobile-empty {
  border-bottom: 1px solid var(--line);
  text-align: center;
  align-content: center;
  place-items: center;
  gap: 10px;
  min-height: 260px;
  padding: 50px 20px;
  display: grid;
}
.mobile-empty > span {
  color: var(--accent);
  font-size: 42px;
}
.mobile-empty h2 {
  margin: 0;
  font:
    600 28px/1.2 Georgia,
    Songti SC,
    serif;
}
.mobile-empty p {
  color: #142f2b8f;
  max-width: 430px;
  margin: 0;
  line-height: 1.6;
}
@media (width<=700px) {
  .mobile-badge {
    display: none;
  }
}
.directory-compact {
  padding-top: 22px;
}
.directory-tools {
  justify-content: flex-end;
  align-items: center;
  min-height: 66px;
  display: flex;
}
.compact-search {
  border: 1px solid var(--line);
  background: #ffffff4d;
  align-items: center;
  gap: 9px;
  width: min(360px, 100%);
  height: 42px;
  padding: 0 12px;
  display: flex;
}
.compact-search > span {
  color: var(--accent);
  font:
    24px/1 Georgia,
    serif;
  transform: rotate(-20deg);
}
.compact-search input {
  min-width: 0;
  color: var(--ink);
  background: 0 0;
  border: 0;
  outline: 0;
  flex: 1;
}
.compact-search input::placeholder {
  color: #142f2b6b;
}
.compact-search button {
  cursor: pointer;
  background: 0 0;
  border: 0;
  font-size: 20px;
}
.link-group {
  position: relative;
}
.group-title {
  align-items: center;
}
.group-drag-handle {
  color: #142f2b66;
  cursor: grab;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  background: 0 0;
  border: 0;
  flex: 0 0 30px;
  place-items: center;
  width: 30px;
  height: 38px;
  margin-left: -8px;
  font-size: 20px;
  display: grid;
}
.group-drag-handle:hover {
  color: var(--accent);
  background: var(--mint);
}
.group-drag-handle:active {
  cursor: grabbing;
}
.link-group.group-is-dragging {
  opacity: 0.42;
}
.link-group.group-order-target:before {
  content: "";
  z-index: 3;
  background: var(--accent);
  pointer-events: none;
  height: 4px;
  position: absolute;
  left: 0;
  right: 0;
}
.link-group.group-order-target.before:before {
  top: -2px;
}
.link-group.group-order-target.after:before {
  bottom: -2px;
}
@media (width<=700px) {
  .directory-compact {
    padding-top: 10px;
  }
  .directory-tools {
    min-height: 58px;
  }
  .compact-search {
    width: 100%;
  }
  .group-drag-handle {
    margin-left: 0;
  }
}
.directory-tools {
  gap: 18px;
}
.bookmark-drop-zone {
  color: #142f2bb3;
  background: #fff3;
  border: 1px dashed #142f2b47;
  flex: 1;
  align-items: center;
  gap: 14px;
  min-width: 0;
  height: 72px;
  padding: 0 18px;
  transition:
    border-color 0.16s,
    background 0.16s,
    transform 0.16s;
  display: flex;
}
.bookmark-drop-zone > span {
  border: 1px solid var(--line);
  background: var(--paper);
  width: 38px;
  height: 38px;
  color: var(--accent);
  flex: 0 0 38px;
  place-items: center;
  font-size: 24px;
  display: grid;
}
.bookmark-drop-zone > div {
  gap: 5px;
  min-width: 0;
  display: grid;
}
.bookmark-drop-zone strong {
  color: var(--ink);
  font-size: 14px;
}
.bookmark-drop-zone small {
  color: #142f2b80;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  overflow: hidden;
}
.bookmark-drop-zone.active {
  border: 2px dashed var(--accent);
  background: var(--mint);
  transform: translateY(-2px);
}
.bookmark-drop-zone.active > span {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}
@media (width<=700px) {
  .bookmark-drop-zone {
    display: none;
  }
  .directory-tools {
    gap: 0;
  }
}
.ip-chip {
  border: 1px solid var(--line);
  min-width: 0;
  color: var(--ink);
  background: #ffffff47;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  text-decoration: none;
  display: flex;
}
.ip-chip span {
  background: var(--mint);
  color: var(--accent);
  font:
    800 9px/1 var(--font-geist-mono),
    monospace;
  letter-spacing: 0.08em;
  padding: 3px 5px;
}
.ip-chip strong {
  max-width: 150px;
  font:
    700 11px/1 var(--font-geist-mono),
    monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}
.ip-chip:hover {
  border-color: var(--accent);
}
.speed-button {
  color: #142f2ba6;
  cursor: pointer;
  white-space: nowrap;
  background: 0 0;
  border: 0;
  padding: 9px 12px;
  font-weight: 750;
}
.speed-button:hover {
  color: var(--accent);
}
.speed-backdrop {
  z-index: 90;
}
.speed-modal {
  width: min(510px, 100% - 32px);
}
.speed-help {
  color: #142f2b9e;
  margin: -8px 0 22px;
  font-size: 13px;
  line-height: 1.65;
}
.speed-options {
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 20px;
  display: grid;
}
.speed-options button {
  border: 1px solid var(--line);
  cursor: pointer;
  background: #ffffff59;
  min-height: 44px;
  font-weight: 750;
}
.speed-options button.active {
  border-color: var(--ink);
  background: var(--mint);
  color: var(--accent);
}
.speed-options button:disabled {
  cursor: default;
  opacity: 0.55;
}
.speed-result {
  border: 1px solid var(--ink);
  background: var(--ink);
  min-height: 140px;
  color: var(--paper);
  text-align: center;
  align-content: center;
  justify-items: center;
  gap: 10px;
  padding: 20px;
  display: grid;
}
.speed-result span {
  color: var(--mint);
  font:
    700 10px/1 var(--font-geist-mono),
    monospace;
  letter-spacing: 0.16em;
}
.speed-result strong {
  font:
    500 42px/1 Georgia,
    Songti SC,
    serif;
}
.speed-result small {
  color: #f2f0e89e;
  font-size: 11px;
}
.server-speed-section {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 16px;
}
.server-speed-heading h3 {
  margin: 0 0 6px;
  font: 600 22px/1.2 Georgia, Songti SC, serif;
}
.server-speed-heading p {
  margin: 0;
  color: rgba(20, 47, 43, 0.62);
  font-size: 12px;
}
.server-speed-results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.server-speed-results > div {
  min-width: 0;
  padding: 14px 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.35);
  display: grid;
  gap: 8px;
  text-align: center;
}
.server-speed-results span {
  color: rgba(20, 47, 43, 0.55);
  font-size: 10px;
}
.server-speed-results strong {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.server-speed-location {
  color: rgba(20, 47, 43, 0.55);
  text-align: center;
}
.speed-track {
  background: #142f2b1f;
  height: 7px;
  margin-bottom: 18px;
  overflow: hidden;
}
.speed-track span {
  background: var(--accent);
  height: 100%;
  transition: width 0.12s linear;
  display: block;
}
@media (width<=850px) {
  .topbar {
    height: auto;
    min-height: 70px;
    padding: 10px 0;
  }
  .topbar nav {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .ip-chip strong {
    max-width: 112px;
  }
}
@media (width<=640px) {
  .brand > span:last-child {
    display: none;
  }
  .topbar nav {
    gap: 6px;
  }
  .ip-chip {
    order: -1;
    padding: 7px 8px;
  }
  .ip-chip strong {
    max-width: 96px;
    font-size: 10px;
  }
  .speed-button {
    padding: 8px 6px;
    font-size: 12px;
  }
  .nav-link {
    font-size: 0;
  }
  .nav-link span {
    font-size: 17px;
  }
  .speed-result strong {
    font-size: 36px;
  }
}
.topbar-identity {
  align-items: center;
  gap: 16px;
  min-width: 0;
  display: flex;
}
.brand-ip-list {
  align-items: center;
  gap: 7px;
  min-width: 0;
  display: flex;
}
.brand-ip-list > span {
  width: 126px;
  height: 30px;
  color: var(--ink);
  font:
    700 10px/1 var(--font-geist-mono),
    monospace;
  white-space: nowrap;
  background: 0 0;
  border: 0;
  justify-content: center;
  align-items: center;
  display: flex;
  overflow: hidden;
}
.group-delete-button {
  width: 28px;
  height: 28px;
  margin-left: auto;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: rgba(20, 47, 43, 0.38);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.group-delete-button:hover {
  background: rgba(251, 96, 60, 0.1);
  color: var(--accent);
}
.compact-search {
  height: 72px;
}
@media (width<=900px) {
  .topbar {
    gap: 10px;
    height: auto;
    min-height: 70px;
    padding: 10px 0;
  }
  .topbar-identity {
    gap: 9px;
  }
  .brand-ip-list {
    gap: 4px;
  }
  .brand-ip-list > span {
    width: 92px;
    height: 28px;
    font-size: 9px;
  }
}
@media (width<=640px) {
  .topbar,
  .topbar-identity {
    align-items: flex-start;
  }
  .brand-ip-list {
    gap: 3px;
    display: grid;
  }
  .brand-ip-list > span {
    width: 112px;
    height: 20px;
  }
  .compact-search {
    height: 72px;
  }
}
.bookmark-import-button {
  border: 1px solid var(--line);
  background: #ffffff4d;
  color: var(--ink);
  cursor: pointer;
  flex: 0 0 auto;
  height: 72px;
  padding: 0 18px;
  font-weight: 750;
  transition:
    border-color 0.16s,
    background 0.16s,
    color 0.16s;
}
.bookmark-import-button:hover {
  border-color: var(--accent);
  background: var(--mint);
  color: var(--accent);
}
.bookmark-import-button:disabled {
  cursor: wait;
  opacity: 0.58;
}
@media (width<=700px) {
  .directory-tools {
    flex-wrap: wrap;
    gap: 10px;
  }
  .bookmark-import-button {
    width: 100%;
    height: 44px;
  }
}
