:root {
  --bg: #f4f8f6;
  --surface: #ffffff;
  --surface-2: #f8fbf9;
  --ink: #0f1f1a;
  --ink-2: #33463f;
  --muted: #5f736c;
  --muted-2: #86968f;
  --line: #e3eae7;
  --line-strong: #cfdad5;
  --mint: #0f9d76;
  --mint-strong: #087a58;
  --mint-hover: #066348;
  --mint-soft: #e9f7f1;
  --mint-line: #bfe6d7;
  --danger: #b42318;
  --danger-soft: #fdf0ee;
  --danger-line: #f3cbc5;
  --warn: #92400e;
  --warn-soft: #fff8e8;
  --warn-line: #f1ddb0;
  --radius: 4px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
button, input, select { font: inherit; }
::selection { background: var(--mint-soft); color: var(--mint-strong); }
svg { display: block; }

/* brand */
.brand {
  display: inline-flex; align-items: center; gap: 9px;
  text-decoration: none; font-weight: 650; letter-spacing: -0.015em;
  font-size: 15px; color: var(--ink); min-width: 0;
}
.brand-mark {
  width: 30px; height: 30px; border-radius: var(--radius);
  display: grid; place-items: center; background: var(--mint-strong);
  color: #fff; flex: none;
}
.brand-mark svg { width: 17px; height: 17px; }
.brand-word { white-space: nowrap; }
.brand-tag {
  font-family: var(--mono); font-size: 9px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2);
  border-left: 1px solid var(--line-strong); padding-left: 8px; margin-left: 1px;
}

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: 1px solid transparent; border-radius: var(--radius); padding: 8px 13px;
  font-size: 13px; font-weight: 600; line-height: 1.3; cursor: pointer;
  text-decoration: none; transition: background 0.14s, border-color 0.14s, color 0.14s;
  white-space: nowrap;
}
.btn svg { width: 15px; height: 15px; }
.btn.primary { background: var(--mint-strong); border-color: var(--mint-strong); color: #fff; }
.btn.primary:hover { background: var(--mint-hover); border-color: var(--mint-hover); }
.btn.ghost { background: var(--surface); border-color: var(--line-strong); color: var(--ink-2); }
.btn.ghost:hover { background: var(--mint-soft); border-color: var(--mint-line); color: var(--mint-strong); }
.btn.icon {
  width: 30px; height: 30px; padding: 0; border-radius: var(--radius);
  background: transparent; border-color: transparent; color: var(--muted);
}
.btn.icon:hover { background: var(--mint-soft); border-color: var(--mint-line); color: var(--mint-strong); }
.btn.icon.danger { color: var(--danger); }
.btn.icon.danger:hover { background: var(--danger-soft); border-color: var(--danger-line); color: var(--danger); }
.btn.icon svg { width: 15px; height: 15px; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.btn-mini {
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-2);
  border-radius: var(--radius); padding: 6px 9px; font-size: 11.5px;
  font-weight: 600; cursor: pointer;
}
.btn-mini:hover { background: var(--mint-soft); border-color: var(--mint-line); color: var(--mint-strong); }
.icon-btn {
  display: grid; place-items: center; width: 30px; height: 30px;
  border: 1px solid transparent; border-radius: var(--radius);
  background: transparent; color: var(--muted); cursor: pointer;
}
.icon-btn:hover { background: var(--mint-soft); border-color: var(--mint-line); color: var(--mint-strong); }
.icon-btn svg { width: 15px; height: 15px; }

/* console */
.console { display: flex; min-height: 100vh; background: var(--bg); }
.sidebar {
  width: 234px; flex: none; background: var(--surface); border-right: 1px solid var(--line);
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column;
  padding: 18px 14px 16px;
}
.side-nav { margin-top: 26px; }
.side-label {
  font-family: var(--mono); font-size: 9.5px; font-weight: 500;
  letter-spacing: 0.11em; text-transform: uppercase; color: var(--muted-2);
  margin: 0 8px 8px;
}
.side-link {
  display: flex; align-items: center; gap: 9px; padding: 8px 9px;
  border-left: 2px solid transparent; border-radius: 0 var(--radius) var(--radius) 0;
  text-decoration: none; color: var(--ink-2); font-size: 13px; font-weight: 500;
}
.side-link svg { width: 16px; height: 16px; color: var(--muted); }
.side-link:hover { background: var(--surface-2); color: var(--ink); }
.side-link.active {
  background: var(--mint-soft); border-left-color: var(--mint);
  color: var(--mint-strong); font-weight: 600;
}
.side-link.active svg { color: var(--mint-strong); }
.side-count {
  margin-left: auto; font-family: var(--mono); font-size: 10px; line-height: 16px;
  color: var(--muted); background: var(--surface); border: 1px solid var(--line);
  border-radius: 3px; padding: 0 5px; font-variant-numeric: tabular-nums;
}
.side-hint {
  margin: 24px 8px 0; padding-left: 9px; border-left: 2px solid var(--mint-line);
  font-size: 10.5px; line-height: 1.75; color: var(--muted-2);
}
.side-hint strong {
  display: block; font-family: var(--mono); font-size: 9px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 5px;
}
.side-storage { margin-top: auto; padding: 15px 8px; border-top: 1px solid var(--line); }
.side-storage .side-label { margin-left: 0; }
.side-storage-list { margin: 0; display: grid; gap: 6px; }
.side-storage-list div {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 10px; font-size: 11px; min-width: 0;
}
.side-storage-list dt { color: var(--muted-2); flex: none; }
.side-storage-list dd {
  margin: 0; font-family: var(--mono); font-size: 10.5px; color: var(--ink-2);
  text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.storage-status {
  display: flex; align-items: center; gap: 6px; margin-top: 12px;
  padding-top: 11px; border-top: 1px solid var(--line); font-size: 11px; color: var(--muted);
}
.dot { width: 5px; height: 5px; border-radius: 50%; background: var(--mint); flex: none; }
.side-account {
  display: flex; align-items: center; gap: 9px; padding-top: 14px;
  border-top: 1px solid var(--line);
}
.avatar {
  width: 30px; height: 30px; border-radius: var(--radius); background: var(--mint-soft);
  border: 1px solid var(--mint-line); color: var(--mint-strong); display: grid;
  place-items: center; font-size: 11.5px; font-weight: 700; flex: none; text-transform: uppercase;
}
.account-meta { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.account-name {
  font-size: 12.5px; font-weight: 600; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
}
.account-role { font-family: var(--mono); font-size: 9px; letter-spacing: 0.06em; color: var(--muted-2); }
.logout-form { margin: 0 0 0 auto; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: 58px; flex: none; background: var(--surface); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 26px; position: sticky; top: 0; z-index: 10;
}
.topbar-left { display: flex; align-items: center; min-width: 0; }
.breadcrumb {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.04em;
  color: var(--muted-2); white-space: nowrap;
}
.breadcrumb span { color: var(--line-strong); margin: 0 7px; }
.breadcrumb b { color: var(--ink-2); font-weight: 500; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.mobile-brand, .mobile-logout { display: none; }
.content { width: 100%; max-width: 1320px; margin: 0 auto; padding: 26px 26px 64px; }
.page-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; margin-bottom: 22px;
}
.page-kicker {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--mint-strong); margin-bottom: 8px;
}
.page-head h1 {
  margin: 0 0 5px; font-size: 24px; line-height: 1.2;
  font-weight: 650; letter-spacing: -0.025em;
}
.page-head p { margin: 0; font-size: 12.5px; color: var(--muted); }

/* stats */
.stats-strip {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  margin-bottom: 30px;
}
.stat { padding: 15px 22px; border-left: 1px solid var(--line); min-width: 0; }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat-label {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--muted-2);
}
.stat-value {
  margin-top: 6px; font-size: 23px; font-weight: 600;
  letter-spacing: -0.03em; line-height: 1.15; font-variant-numeric: tabular-nums;
}
.stat-sub { margin-top: 2px; font-size: 10.5px; color: var(--muted-2); }

/* sections */
.section { margin-bottom: 32px; }
.section-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line);
}
.section-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 650; letter-spacing: 0.005em;
}
.marker { width: 2px; height: 12px; background: var(--mint); flex: none; }
.section-count {
  font-family: var(--mono); font-size: 10px; font-weight: 500; color: var(--muted);
  background: var(--surface); border: 1px solid var(--line); border-radius: 3px;
  padding: 0 5px; line-height: 16px;
}
.section-meta { font-family: var(--mono); font-size: 10px; color: var(--muted-2); white-space: nowrap; }

/* upload */
.upload-zone {
  margin-top: 14px; border: 1px dashed var(--line-strong); border-radius: var(--radius);
  background: var(--surface-2); padding: 30px 20px; text-align: center;
  cursor: pointer; transition: border-color 0.14s, background 0.14s;
}
.upload-zone:hover, .upload-zone.dragover { border-color: var(--mint); background: var(--mint-soft); }
.dz-icon {
  width: 38px; height: 38px; border: 1px solid var(--mint-line); border-radius: var(--radius);
  background: var(--surface); color: var(--mint-strong); display: grid; place-items: center;
  margin: 0 auto 12px;
}
.dz-icon svg { width: 18px; height: 18px; }
.dz-title { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.dz-title span { color: var(--mint-strong); font-weight: 650; }
.dz-hint { margin-top: 5px; font-size: 11px; color: var(--muted-2); }
.upload-list { margin-top: 12px; border-top: 1px solid var(--line); }
.upload-list:empty { display: none; }
.upload-item { padding: 10px 0; border-bottom: 1px solid var(--line); }
.upload-item-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; font-size: 12px; margin-bottom: 7px;
}
.upload-name { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-status {
  flex: none; font-family: var(--mono); font-size: 10px; color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.progress { height: 4px; background: var(--line); overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; background: var(--mint); transition: width 0.15s ease; }
.upload-item.done .progress span { background: var(--mint-strong); }
.upload-item.error .progress span { background: var(--danger); }
.upload-item.error .upload-status { color: var(--danger); }

/* table */
.table-wrap { overflow-x: auto; border-bottom: 1px solid var(--line); }
table.files { width: 100%; border-collapse: collapse; min-width: 760px; }
table.files th {
  text-align: left; padding: 9px 12px; font-family: var(--mono); font-size: 9.5px;
  font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted-2); background: var(--surface-2);
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
table.files td {
  padding: 11px 12px; border-bottom: 1px solid var(--line);
  vertical-align: middle; font-size: 12.5px;
}
table.files tbody tr:last-child td { border-bottom: 0; }
table.files tbody tr:hover { background: var(--surface-2); }
table.files th:first-child, table.files td:first-child { padding-left: 0; }
table.files th:last-child, table.files td:last-child { padding-right: 0; text-align: right; }
.file-cell { display: flex; align-items: center; gap: 10px; min-width: 0; }
.file-ico {
  width: 34px; height: 34px; border-radius: 3px; border: 1px solid var(--line);
  background: var(--surface); color: var(--muted); display: grid; place-items: center;
  font-family: var(--mono); font-size: 9px; font-weight: 600;
  letter-spacing: 0.02em; text-transform: uppercase; flex: none;
}
.file-ico.img { background: var(--mint-soft); border-color: var(--mint-line); color: var(--mint-strong); }
.file-name {
  font-size: 12.5px; font-weight: 600; max-width: 320px; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
}
.file-meta {
  margin-top: 2px; font-family: var(--mono); font-size: 9.5px;
  color: var(--muted-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.file-upload { margin-top: 5px; max-width: 230px; }
.file-upload-meta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; font-family: var(--mono); font-size: 9.5px;
  color: var(--mint-strong); margin-bottom: 3px;
}
.file-upload-bar { height: 3px; background: var(--line); overflow: hidden; }
.file-upload-bar span {
  display: block; height: 100%; width: 0;
  background: var(--mint); transition: width 0.35s ease;
}
.file-upload.failed .upload-error { font-family: var(--mono); font-size: 9.5px; color: var(--danger); }
.nowrap { white-space: nowrap; }
.muted { color: var(--muted); }
.tiny { font-size: 11px; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.pill {
  display: inline-flex; align-items: center; gap: 4px; font-family: var(--mono);
  font-size: 9.5px; font-weight: 500; letter-spacing: 0.03em;
  border-radius: 3px; border: 1px solid var(--line); padding: 2px 6px;
  background: var(--surface); color: var(--muted); white-space: nowrap;
}
.pill.on { background: var(--mint-soft); border-color: var(--mint-line); color: var(--mint-strong); }
.pill.expired, .pill.error {
  background: var(--danger-soft); border-color: var(--danger-line); color: var(--danger);
}
.share-cell { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.lock-mini { color: var(--muted-2); display: inline-flex; }
.lock-mini svg { width: 12px; height: 12px; }
.downloads {
  font-family: var(--mono); font-size: 9.5px; color: var(--muted-2);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.actions { display: flex; align-items: center; gap: 2px; justify-content: flex-end; }
.actions .btn.ghost {
  border-color: transparent; background: transparent;
  color: var(--mint-strong); padding: 6px 8px;
}
.actions .btn.ghost:hover { background: var(--mint-soft); border-color: var(--mint-line); }
.empty {
  padding: 48px 20px; text-align: center; color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.empty .dz-icon {
  width: 40px; height: 40px; margin-bottom: 11px;
  color: var(--muted-2); border-color: var(--line); background: var(--surface-2);
}
.empty strong { display: block; color: var(--ink-2); font-size: 13px; margin-bottom: 4px; }
.empty p { margin: 0; font-size: 11.5px; color: var(--muted-2); }

/* drawer */
dialog.modal {
  position: fixed; inset: 0 0 0 auto; margin: 0; width: min(430px, 100vw);
  max-width: 100vw; height: 100dvh; max-height: 100dvh; border: 0;
  border-left: 1px solid var(--line-strong); border-radius: 0; padding: 0;
  background: var(--surface); color: var(--ink); box-shadow: none;
}
dialog.modal[open] { animation: drawer-in 0.2s ease both; }
dialog.modal::backdrop { background: rgba(10, 25, 20, 0.34); }
.modal-head {
  height: 58px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 22px; border-bottom: 1px solid var(--line);
}
.modal-head h2 { margin: 0; font-size: 14px; font-weight: 650; letter-spacing: -0.01em; }
.modal-close {
  border: 1px solid transparent; background: transparent; color: var(--muted-2);
  width: 30px; height: 30px; border-radius: var(--radius); font-size: 19px;
  line-height: 1; cursor: pointer; display: grid; place-items: center;
}
.modal-close:hover { background: var(--surface-2); border-color: var(--line); color: var(--ink); }
.modal-body { padding: 20px 22px 28px; height: calc(100dvh - 58px); overflow-y: auto; }
.modal-file {
  border: 1px solid var(--line); background: var(--surface-2); border-radius: var(--radius);
  padding: 9px 11px; font-size: 12px; font-weight: 500; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; margin-bottom: 18px;
}
.field { display: block; margin-bottom: 15px; }
.field > .label {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; font-size: 11.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px;
}
.hint { font-size: 10.5px; font-weight: 400; color: var(--muted-2); }
.input, .select {
  width: 100%; border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 9px 11px; background: var(--surface); color: var(--ink);
  outline: none; font-size: 12.5px; transition: border-color 0.14s, box-shadow 0.14s;
}
.input:focus, .select:focus { border-color: var(--mint); box-shadow: 0 0 0 3px var(--mint-soft); }
.input[disabled] { background: var(--surface-2); color: var(--muted-2); }
.input-row { display: flex; gap: 7px; }
.input-row .input { flex: 1; min-width: 0; }
.check {
  display: flex; align-items: flex-start; gap: 8px; font-size: 11.5px;
  color: var(--ink-2); margin: 3px 0 13px; cursor: pointer; line-height: 1.5;
}
.check input { margin: 2px 0 0; accent-color: var(--mint-strong); width: 14px; height: 14px; flex: none; }
.link-row { display: flex; gap: 7px; }
.link-row .input { font-family: var(--mono); font-size: 10.5px; background: var(--surface-2); }
.modal-actions {
  display: flex; justify-content: flex-end; gap: 7px; margin-top: 18px;
  padding-top: 16px; border-top: 1px solid var(--line);
}
.danger-text {
  margin-top: 12px; border: 0; background: transparent; color: var(--danger);
  font-size: 11.5px; font-weight: 500; padding: 3px 0; cursor: pointer;
}
.danger-text:hover { text-decoration: underline; }
.note {
  margin: 0 0 14px; padding: 8px 10px; border-radius: var(--radius);
  background: var(--warn-soft); border: 1px solid var(--warn-line);
  color: var(--warn); font-size: 10.5px; line-height: 1.55;
}

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 10px);
  background: var(--ink); color: #fff; font-size: 12px; font-weight: 500;
  padding: 9px 15px; border-radius: var(--radius); border: 1px solid var(--ink);
  opacity: 0; pointer-events: none; transition: opacity 0.18s, transform 0.18s;
  z-index: 100; max-width: calc(100vw - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* login */
.login-body { min-height: 100vh; background: var(--surface); }
.login-shell {
  display: grid; grid-template-columns: minmax(390px, 44%) minmax(0, 1fr);
  min-height: 100vh;
}
.login-brand {
  background: var(--mint-strong); color: #fff; padding: 42px 48px 36px;
  display: flex; flex-direction: column; min-height: 100vh;
}
.login-brand .brand { color: #fff; }
.login-brand .brand-mark { background: #fff; color: var(--mint-strong); }
.login-hero { margin: auto 0; padding: 48px 0; max-width: 380px; }
.login-kicker {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.13em;
  text-transform: uppercase; color: rgba(255, 255, 255, 0.62); margin-bottom: 18px;
}
.login-hero h1 {
  margin: 0 0 16px; font-size: 34px; line-height: 1.3;
  font-weight: 620; letter-spacing: -0.035em;
}
.login-hero p { margin: 0; font-size: 13px; line-height: 1.75; color: rgba(255, 255, 255, 0.78); }
.feature-list { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 12px; }
.feature { display: flex; align-items: center; gap: 9px; font-size: 12px; color: rgba(255, 255, 255, 0.9); }
.feature svg { width: 14px; height: 14px; color: rgba(255, 255, 255, 0.72); flex: none; }
.login-brand-foot { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.04em; color: rgba(255, 255, 255, 0.5); }
.login-panel { display: grid; place-items: center; padding: 40px 32px; background: var(--surface); }
.login-form-wrap { width: min(350px, 100%); }
.login-form-wrap .mobile-brand { display: none; }
.login-title-kicker {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--mint-strong); margin-bottom: 12px;
}
.login-form-wrap h2 { margin: 0 0 6px; font-size: 22px; font-weight: 650; letter-spacing: -0.03em; }
.login-sub { margin: 0 0 26px; font-size: 12.5px; color: var(--muted); }
.form-error {
  display: flex; align-items: center; gap: 7px; background: var(--danger-soft);
  border: 1px solid var(--danger-line); border-radius: var(--radius);
  color: var(--danger); padding: 8px 10px; font-size: 11.5px; margin-bottom: 15px;
}
.login-form-wrap .field > .label { font-size: 11.5px; }
.login-form-wrap .input { height: 40px; }
.login-btn { width: 100%; height: 40px; border-radius: var(--radius); margin-top: 4px; font-size: 13px; }
.login-foot {
  margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line);
  font-size: 10.5px; color: var(--muted-2); line-height: 1.6;
}

/* public share */
.share-body { min-height: 100vh; background: var(--surface); display: flex; flex-direction: column; }
.share-topbar { background: var(--surface); border-bottom: 1px solid var(--line); flex: none; }
.share-topbar-inner {
  width: min(1040px, 100%); height: 58px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.share-tag {
  display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono);
  font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--mint-strong); border: 1px solid var(--mint-line);
  background: var(--mint-soft); border-radius: 3px; padding: 3px 7px; white-space: nowrap;
}
.share-tag.is-error { color: var(--muted); border-color: var(--line); background: var(--surface-2); }
.share-tag.is-error .dot { background: var(--muted-2); }
.share-tag.is-uploading { color: var(--warn); border-color: var(--warn-line); background: var(--warn-soft); }
.share-tag.is-uploading .dot { background: #d97706; }
.share-main { flex: 1; width: min(1040px, 100%); margin: 0 auto; padding: 46px 24px 60px; }
.share-main.is-centered { display: flex; align-items: center; justify-content: center; }
.share-main.is-centered .share-gate { margin: 0 auto; width: 100%; }
.share-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.75fr); }
.share-primary { padding-right: 46px; min-width: 0; }
.share-aside {
  border-left: 1px solid var(--line); padding-left: 46px;
  display: flex; flex-direction: column; justify-content: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono);
  font-size: 9.5px; letter-spacing: 0.11em; text-transform: uppercase;
  color: var(--mint-strong); margin-bottom: 18px;
}
.eyebrow-bar { width: 14px; height: 2px; background: var(--mint); flex: none; }
.preview { margin: 0 0 22px; }
.preview img {
  display: block; width: 100%; max-height: 420px; object-fit: contain;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2);
}
.file-glyph {
  width: 56px; height: 56px; border-radius: var(--radius); border: 1px solid var(--mint-line);
  background: var(--mint-soft); color: var(--mint-strong); display: grid;
  place-items: center; margin: 0 0 18px;
}
.file-glyph svg { width: 24px; height: 24px; }
.share-title {
  margin: 0 0 10px; font-size: 24px; line-height: 1.4; font-weight: 650;
  letter-spacing: -0.03em; word-break: break-word; overflow-wrap: anywhere;
}
.share-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  font-family: var(--mono); font-size: 10.5px; color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.share-meta .sep { width: 2px; height: 2px; background: var(--line-strong); }
.aside-label {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.11em;
  text-transform: uppercase; color: var(--muted-2); margin-bottom: 10px;
}
.aside-title { font-size: 15px; font-weight: 650; letter-spacing: -0.01em; margin-bottom: 8px; }
.aside-text { margin: 0; font-size: 11.5px; line-height: 1.75; color: var(--muted); }
.btn-download {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; margin-top: 18px; padding: 11px 16px;
  border: 1px solid var(--mint-strong); border-radius: var(--radius);
  background: var(--mint-strong); color: #fff; font-size: 13px;
  font-weight: 600; text-decoration: none; transition: background 0.14s, border-color 0.14s;
}
.btn-download:hover { background: var(--mint-hover); border-color: var(--mint-hover); }
.btn-download svg { width: 16px; height: 16px; }
.btn-download.disabled {
  background: var(--line); border-color: var(--line); color: var(--muted-2);
  pointer-events: none;
}
.share-note { margin: 13px 0 0; font-size: 10.5px; line-height: 1.7; color: var(--muted-2); }
.share-foot {
  flex: none; border-top: 1px solid var(--line); background: var(--surface);
  padding: 14px 24px; text-align: center; font-family: var(--mono);
  font-size: 9.5px; letter-spacing: 0.03em; color: var(--muted-2);
}

/* upload progress on share pages */
.share-upload {
  margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); max-width: 460px;
}
.share-upload-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.05em; color: var(--mint-strong); text-transform: uppercase;
}
.share-upload-head strong { font-size: 13px; font-variant-numeric: tabular-nums; }
.meter { height: 6px; background: var(--line); overflow: hidden; margin: 9px 0; }
.meter span {
  display: block; height: 100%; width: 0; background: var(--mint);
  transition: width 0.35s ease;
}
.share-upload.failed { color: var(--danger); font-size: 11.5px; }
.upload-pct {
  font-size: 42px; font-weight: 650; letter-spacing: -0.04em;
  line-height: 1; margin: 18px 0 12px; font-variant-numeric: tabular-nums;
}
.upload-pct span { font-size: 16px; font-weight: 500; color: var(--muted); margin-left: 3px; }
.upload-bytes { font-family: var(--mono); font-size: 10.5px; color: var(--muted); }
.upload-gate { max-width: 400px; margin: 0 auto; }
.upload-gate .meter { height: 8px; margin: 16px 0 12px; }

/* password gate / status */
.share-gate { max-width: 400px; margin: 34px auto 0; }
.lock-badge {
  width: 52px; height: 52px; border-radius: var(--radius); border: 1px solid var(--mint-line);
  background: var(--mint-soft); color: var(--mint-strong); display: grid;
  place-items: center; margin-bottom: 20px;
}
.lock-badge svg { width: 23px; height: 23px; }
.gate-title { margin: 0 0 7px; font-size: 24px; line-height: 1.3; font-weight: 650; letter-spacing: -0.03em; }
.gate-file {
  margin: 0 0 24px; font-family: var(--mono); font-size: 10.5px;
  color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.gate-error {
  margin: 0 0 14px; padding: 8px 10px; border-radius: var(--radius);
  border: 1px solid var(--danger-line); background: var(--danger-soft);
  color: var(--danger); font-size: 11.5px;
}
.gate-form { display: flex; flex-direction: column; gap: 9px; }
.gate-input {
  width: 100%; height: 42px; padding: 0 13px; border: 1px solid var(--line-strong);
  border-radius: var(--radius); background: var(--surface); color: var(--ink);
  font-size: 13px; outline: none; transition: border-color 0.14s, box-shadow 0.14s;
}
.gate-input:focus { border-color: var(--mint); box-shadow: 0 0 0 3px var(--mint-soft); }
.gate-btn {
  width: 100%; height: 42px; border: 1px solid var(--mint-strong);
  border-radius: var(--radius); background: var(--mint-strong); color: #fff;
  font-size: 13px; font-weight: 600; cursor: pointer;
}
.gate-btn:hover { background: var(--mint-hover); border-color: var(--mint-hover); }
.state-icon {
  width: 52px; height: 52px; border-radius: var(--radius); border: 1px solid var(--line-strong);
  background: var(--surface-2); color: var(--muted); display: grid;
  place-items: center; margin-bottom: 20px;
}
.state-icon svg { width: 23px; height: 23px; }
.state-title { margin: 0 0 8px; font-size: 24px; font-weight: 650; letter-spacing: -0.03em; }
.state-text { margin: 0; max-width: 360px; color: var(--muted); font-size: 12px; line-height: 1.8; }

@keyframes drawer-in {
  from { transform: translateX(24px); opacity: 0.5; }
  to { transform: translateX(0); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* responsive */
@media (max-width: 900px) {
  .sidebar { display: none; }
  .mobile-brand { display: inline-flex; }
  .mobile-brand .brand-mark { width: 26px; height: 26px; }
  .mobile-brand .brand-mark svg { width: 15px; height: 15px; }
  .mobile-brand span:last-child { font-size: 14px; font-weight: 650; }
  .breadcrumb { display: none; }
  .mobile-logout { display: block; margin: 0; }
  .topbar { height: 54px; padding: 0 16px; }
  .content { padding: 20px 16px 54px; }
  .page-head h1 { font-size: 21px; }
  .stats-strip { margin-bottom: 24px; }
  .stat { padding: 12px 12px; }
  .stat-value { font-size: 18px; }
  .stat-label { font-size: 8.5px; letter-spacing: 0.06em; }
  .stat-sub { display: none; }
  .section { margin-bottom: 26px; }
  .upload-zone { padding: 24px 14px; }
  table.files { min-width: 0; }
  table.files th, table.files td { padding: 10px 8px; }
  table.files th:last-child, table.files td:last-child { padding-right: 0; }
  .col-size, .col-date, .downloads { display: none; }
  .file-name { max-width: 108px; overflow-wrap: anywhere; white-space: normal; }
  .file-upload { max-width: 140px; }
  .actions .share-label { display: none; }
  .actions .btn.ghost { padding: 6px; font-size: 11.5px; }
  .actions { gap: 4px; }
  dialog.modal { width: 100vw; border-left: 0; }
  .login-shell { display: block; min-height: 100vh; }
  .login-brand { display: none; }
  .login-panel { min-height: 100vh; padding: 32px 22px; }
  .login-form-wrap .mobile-brand { display: inline-flex; margin-bottom: 34px; }
  .share-main { padding: 30px 20px 44px; }
  .share-layout { display: block; }
  .share-primary { padding-right: 0; }
  .share-aside {
    border-left: 0; border-top: 1px solid var(--line);
    margin-top: 28px; padding: 24px 0 0;
  }
  .share-title { font-size: 21px; }
  .preview img { max-height: 300px; }
  .share-gate { margin-top: 10px; }
  .gate-title, .state-title { font-size: 21px; }
}
@media (max-width: 430px) {
  .topbar-actions .btn.primary { padding: 7px 9px; font-size: 12px; }
  .topbar-actions .btn.primary svg { width: 14px; height: 14px; }
  .stat { padding: 11px 9px; }
  .stat-value { font-size: 16.5px; }
}
