/* ── TekSwipe Client Files — design system ─────────────────────────────── */
:root {
  --bg: #f2f4f8;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --ink: #10192b;
  --muted: #5b6b83;
  --faint: #8b99ad;
  --line: #e3e8f0;
  --line-strong: #cfd8e3;
  --amber: #f59e0b;
  --amber-deep: #b45309;
  --amber-soft: #fef3c7;
  --amber-ghost: #fffbeb;
  --navy: #0f1a2e;
  --navy-2: #16233d;
  --navy-3: #1e2f52;
  --ok: #16a34a;
  --ok-soft: #dcfce7;
  --danger: #dc2626;
  --danger-soft: #fee2e2;
  --blue: #2563eb;
  --blue-soft: #dbeafe;
  --violet: #7c3aed;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(16, 25, 43, .05), 0 4px 18px rgba(16, 25, 43, .07);
  --shadow-lg: 0 8px 40px rgba(16, 25, 43, .18);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 14px; line-height: 1.5;
  background: var(--bg); color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
button { font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: 14px; }
a { color: var(--amber-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
::selection { background: var(--amber-soft); }

/* ── buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong); background: var(--surface);
  color: var(--ink); font-size: 13.5px; font-weight: 600; cursor: pointer;
  transition: background .12s, border-color .12s, box-shadow .12s, transform .05s;
  white-space: nowrap; text-decoration: none !important;
}
.btn:hover { background: var(--surface-2); border-color: var(--faint); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 15px; height: 15px; flex: none; }
.btn.primary { background: var(--amber); border-color: var(--amber); color: #241a02; }
.btn.primary:hover { background: #e8930a; border-color: #e8930a; }
.btn.dark { background: var(--navy-2); border-color: var(--navy-2); color: #fff; }
.btn.dark:hover { background: var(--navy-3); border-color: var(--navy-3); }
.btn.danger { color: var(--danger); border-color: #f3c1c1; }
.btn.danger:hover { background: var(--danger-soft); border-color: var(--danger); }
.btn.ghost { border-color: transparent; background: transparent; color: var(--muted); }
.btn.ghost:hover { background: rgba(16,25,43,.06); color: var(--ink); }
.btn.sm { padding: 5px 10px; font-size: 12.5px; border-radius: 7px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.iconbtn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 7px; border: none; background: transparent;
  color: var(--muted); cursor: pointer; flex: none;
}
.iconbtn:hover { background: rgba(16,25,43,.07); color: var(--ink); }
.iconbtn svg { width: 16px; height: 16px; }

/* ── inputs ── */
.input {
  width: 100%; padding: 9px 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
  outline: none; transition: border-color .12s, box-shadow .12s;
}
.input:focus { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(245, 158, 11, .18); }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); margin-bottom: 5px; }
.hint { font-size: 12px; color: var(--faint); margin-top: 5px; }

.checkrow { display: flex; align-items: flex-start; gap: 9px; padding: 9px 0; cursor: pointer; }
.checkrow input { margin: 2px 0 0; accent-color: var(--amber); width: 15px; height: 15px; cursor: pointer; }
.checkrow b { font-weight: 600; display: block; }
.checkrow small { color: var(--muted); }

/* ── layout: admin shell ── */
.shell { display: flex; height: 100vh; overflow: hidden; }
.sidebar {
  width: 300px; flex: none; background: var(--navy); color: #cdd7e5;
  display: flex; flex-direction: column; overflow: hidden;
}
.side-head { padding: 18px 16px 12px; display: flex; align-items: center; gap: 11px; }
.side-head .logo { width: 38px; height: 38px; flex: none; }
.side-head .t1 { font-weight: 800; font-size: 15.5px; color: #fff; letter-spacing: .2px; }
.side-head .t2 { font-size: 11.5px; color: #94a6c0; margin-top: -2px; }
.side-search { padding: 4px 12px 10px; }
.side-search .input {
  background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.12); color: #e8eef7;
  padding: 7px 11px; font-size: 13px;
}
.side-search .input::placeholder { color: #7d8fa9; }
.side-search .input:focus { border-color: var(--amber); box-shadow: none; }
.tree { flex: 1; overflow-y: auto; padding: 2px 8px 12px; }
.tree::-webkit-scrollbar { width: 8px; }
.tree::-webkit-scrollbar-thumb { background: rgba(255,255,255,.14); border-radius: 4px; }
.side-foot { padding: 12px; border-top: 1px solid rgba(255,255,255,.08); }
.side-foot .btn { width: 100%; justify-content: center; background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: #e8eef7; }
.side-foot .btn:hover { background: rgba(255,255,255,.12); }

.node { user-select: none; }
.node-row {
  display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 8px;
  cursor: pointer; color: #c3d0e2; font-size: 13.5px; position: relative;
}
.node-row:hover { background: rgba(255,255,255,.06); color: #fff; }
.node-row.active { background: var(--amber); color: #241a02; font-weight: 700; }
.node-row.active .badge-count { background: rgba(0,0,0,.15); color: #241a02; }
.node-row .chev { width: 14px; height: 14px; flex: none; transition: transform .15s; opacity: .7; }
.node-row .chev.open { transform: rotate(90deg); }
.node-row .nlabel { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.node-row .add-sub { opacity: 0; }
.node-row:hover .add-sub { opacity: 1; }
.node-row .add-sub:hover { background: rgba(255,255,255,.15); color: #fff; }
.node-row.active .add-sub { color: #241a02; }
.node-kids { margin-left: 15px; border-left: 1px solid rgba(255,255,255,.09); padding-left: 5px; }
.badge-count {
  font-size: 10.5px; background: rgba(255,255,255,.1); color: #9fb1ca;
  border-radius: 999px; padding: 1px 7px; flex: none;
}
.share-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); flex: none; }
.tree-empty { color: #7d8fa9; font-size: 13px; text-align: center; padding: 26px 14px; }

.main { flex: 1; overflow-y: auto; position: relative; }
.main-inner { max-width: 1060px; margin: 0 auto; padding: 26px 30px 80px; }

/* ── page header ── */
.crumbs { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--amber-deep); }
.crumbs .sep { color: var(--line-strong); }
.page-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head h1 { margin: 0; font-size: 23px; letter-spacing: -.2px; flex: 1; min-width: 200px; }
.page-head .sub { color: var(--muted); font-size: 13px; margin-top: 3px; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ── cards & panels ── */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.panel + .panel { margin-top: 18px; }
.panel-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.panel-head h2 { margin: 0; font-size: 14.5px; flex: 1; }
.panel-body { padding: 18px; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 15px 16px; cursor: pointer; transition: border-color .12s, box-shadow .12s, transform .08s;
  position: relative;
}
.card:hover { border-color: var(--amber); box-shadow: var(--shadow); transform: translateY(-1px); }
.card h3 { margin: 0 0 3px; font-size: 14.5px; display: flex; align-items: center; gap: 8px; }
.card .meta { color: var(--muted); font-size: 12.5px; }
.card .cardmenu { position: absolute; top: 9px; right: 9px; opacity: 0; }
.card:hover .cardmenu { opacity: 1; }

/* ── chips / badges ── */
.chip {
  display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px;
  font-size: 11.5px; font-weight: 700; border-radius: 999px; white-space: nowrap;
}
.chip.ok { background: var(--ok-soft); color: #14532d; }
.chip.off { background: #eef1f6; color: var(--muted); }
.chip.amber { background: var(--amber-soft); color: #713f12; }
.chip.blue { background: var(--blue-soft); color: #1e3a8a; }
.chip svg { width: 11px; height: 11px; }

/* ── folder grid ── */
.folders { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.folder-card {
  display: flex; align-items: center; gap: 11px; padding: 12px 13px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  cursor: pointer; transition: border-color .12s, background .12s; position: relative;
}
.folder-card:hover { border-color: var(--amber); background: var(--amber-ghost); }
.folder-card .ficon { width: 34px; height: 34px; flex: none; }
.folder-card .fname { font-weight: 600; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.folder-card .fmeta { font-size: 11.5px; color: var(--muted); }
.folder-card .fmenu { position: absolute; top: 8px; right: 8px; opacity: 0; }
.folder-card:hover .fmenu { opacity: 1; }
.folder-card .fbody { min-width: 0; flex: 1; }

/* ── file list ── */
.filelist { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.file-row {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px;
  border-bottom: 1px solid var(--line); transition: background .1s; cursor: pointer;
}
.file-row:last-child { border-bottom: none; }
.file-row:hover { background: var(--surface-2); }
.file-row .icon { width: 34px; height: 34px; flex: none; }
.file-row .fmain { flex: 1; min-width: 0; }
.file-row .fname { font-weight: 600; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; align-items: center; gap: 8px; }
.file-row .fsub { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-row .fsize, .file-row .fdate { font-size: 12.5px; color: var(--muted); flex: none; }
.file-row .fsize { width: 74px; text-align: right; }
.file-row .fdate { width: 92px; }
.file-row .factions { display: flex; gap: 2px; flex: none; opacity: 0; transition: opacity .1s; }
.file-row:hover .factions { opacity: 1; }
.inv-flags { display: flex; gap: 12px; flex: none; padding: 4px 10px; background: var(--amber-ghost); border: 1px solid #fde8b8; border-radius: 8px; }
.inv-flags label { display: flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; color: #713f12; cursor: pointer; white-space: nowrap; }
.inv-flags input { accent-color: var(--amber-deep); margin: 0; cursor: pointer; }

/* ── empty state ── */
.empty { text-align: center; padding: 46px 20px; color: var(--muted); }
.empty svg { width: 46px; height: 46px; color: var(--line-strong); margin-bottom: 10px; }
.empty h3 { margin: 0 0 5px; color: var(--ink); font-size: 15px; }
.empty p { margin: 0 0 16px; font-size: 13px; }

/* ── login / gate screens ── */
.gate { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; background: radial-gradient(1200px 600px at 20% -10%, #1e2f52 0%, var(--navy) 55%); }
.gate-card {
  width: 100%; max-width: 400px; background: var(--surface); border-radius: 16px;
  box-shadow: var(--shadow-lg); padding: 34px 34px 30px; text-align: center;
}
.gate-card .logo { width: 58px; height: 58px; margin: 0 auto 14px; }
.gate-card h1 { margin: 0 0 4px; font-size: 20px; }
.gate-card .sub { color: var(--muted); font-size: 13.5px; margin-bottom: 22px; }
.gate-card .btn { width: 100%; justify-content: center; padding: 11px; font-size: 14.5px; margin-top: 4px; }
.gate-err { color: var(--danger); font-size: 13px; margin-top: 12px; min-height: 18px; }
.gate-foot { margin-top: 20px; color: var(--faint); font-size: 12px; }

/* ── share page ── */
.share-top {
  background: var(--navy); color: #fff; padding: 0 22px;
  display: flex; align-items: center; gap: 14px; height: 62px; position: sticky; top: 0; z-index: 30;
}
.share-top .logo { width: 34px; height: 34px; }
.share-top .t1 { font-weight: 800; font-size: 15px; }
.share-top .t2 { font-size: 11.5px; color: #94a6c0; margin-top: -2px; }
.share-wrap { max-width: 1020px; margin: 0 auto; padding: 26px 22px 80px; }
.share-hero { margin-bottom: 22px; }
.share-hero h1 { margin: 0 0 4px; font-size: 24px; letter-spacing: -.2px; }
.share-hero .sub { color: var(--muted); font-size: 13.5px; }
.share-section { margin: 26px 0 10px; display: flex; align-items: baseline; gap: 10px; }
.share-section h2 { margin: 0; font-size: 16px; }
.share-section .cnt { color: var(--faint); font-size: 12.5px; }
.share-foot { text-align: center; color: var(--faint); font-size: 12px; padding: 30px 0 10px; }
.share-foot b { color: var(--muted); }

/* ── modal ── */
.overlay {
  position: fixed; inset: 0; background: rgba(10, 16, 28, .55); z-index: 100;
  display: flex; align-items: center; justify-content: center; padding: 18px;
  animation: fadein .13s ease;
}
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: var(--surface); border-radius: 14px; box-shadow: var(--shadow-lg);
  width: 100%; max-width: 460px; max-height: 90vh; overflow-y: auto;
  animation: pop .14s ease;
}
@keyframes pop { from { transform: scale(.97); opacity: .6; } to { transform: scale(1); opacity: 1; } }
.modal-head { display: flex; align-items: center; padding: 16px 20px 0; }
.modal-head h2 { margin: 0; font-size: 16.5px; flex: 1; }
.modal-body { padding: 14px 20px 6px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 20px 18px; }

/* ── viewer ── */
.viewer {
  position: fixed; inset: 0; background: rgba(8, 12, 22, .93); z-index: 200;
  display: flex; flex-direction: column; animation: fadein .12s ease;
}
.viewer-top { display: flex; align-items: center; gap: 10px; padding: 12px 16px; color: #dbe4f0; }
.viewer-top .vicon { width: 26px; height: 26px; flex: none; }
.viewer-top .vname { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.viewer-top .vmeta { color: #8fa0b8; font-size: 12px; flex: none; }
.viewer-top .spacer { flex: 1; }
.viewer-top .iconbtn { color: #b9c6d8; width: 36px; height: 36px; }
.viewer-top .iconbtn:hover { background: rgba(255,255,255,.12); color: #fff; }
.viewer-top .iconbtn svg { width: 18px; height: 18px; }
.viewer-stage { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 0; padding: 0 62px 18px; position: relative; }
.viewer-stage img { max-width: 100%; max-height: 100%; border-radius: 6px; box-shadow: 0 10px 60px rgba(0,0,0,.5); }
.viewer-stage video { max-width: 100%; max-height: 100%; border-radius: 6px; outline: none; }
.viewer-stage iframe.docframe { width: 100%; height: 100%; border: none; border-radius: 8px; background: #fff; }
.viewer-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,.12); color: #fff; display: flex; align-items: center; justify-content: center;
  transition: background .12s;
}
.viewer-nav:hover { background: rgba(255,255,255,.25); }
.viewer-nav.prev { left: 12px; }
.viewer-nav.next { right: 12px; }
.viewer-nav svg { width: 20px; height: 20px; }
.viewer-count { color: #8fa0b8; font-size: 12px; }
.viewer-fallback { text-align: center; color: #c6d2e2; }
.viewer-fallback .bigicon { width: 74px; height: 74px; margin: 0 auto 16px; }
.viewer-fallback h3 { margin: 0 0 4px; font-size: 16px; color: #fff; }
.viewer-fallback p { margin: 0 0 18px; color: #8fa0b8; font-size: 13px; }
.viewer-spin { color: #8fa0b8; font-size: 13px; }

/* email viewer */
.email-pane {
  width: min(860px, 100%); height: 100%; background: #fff; border-radius: 10px;
  display: flex; flex-direction: column; overflow: hidden;
}
.email-head { padding: 16px 20px 12px; border-bottom: 1px solid var(--line); }
.email-head h3 { margin: 0 0 8px; font-size: 16px; }
.email-head .erow { font-size: 12.5px; color: var(--muted); margin: 2px 0; display: flex; gap: 6px; }
.email-head .erow b { color: var(--ink); font-weight: 600; flex: none; width: 42px; }
.email-atts { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.email-att {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px;
  border: 1px solid var(--line-strong); border-radius: 999px; font-size: 12px; font-weight: 600;
  color: var(--ink); cursor: pointer; background: var(--surface-2);
}
.email-att:hover { border-color: var(--amber); background: var(--amber-ghost); text-decoration: none; }
.email-att svg { width: 12px; height: 12px; color: var(--muted); }
.email-body { flex: 1; border: none; width: 100%; background: #fff; }

/* ── spinner ── */
.spin { width: 22px; height: 22px; border: 2.5px solid var(--line-strong); border-top-color: var(--amber); border-radius: 50%; animation: rot .7s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }
.loading-page { display: flex; align-items: center; justify-content: center; min-height: 60vh; }

/* ── toast ── */
.toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 400; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast {
  background: var(--navy-2); color: #fff; padding: 10px 18px; border-radius: 10px;
  font-size: 13.5px; font-weight: 600; box-shadow: var(--shadow-lg);
  animation: toastin .18s ease; display: flex; align-items: center; gap: 9px; max-width: 90vw;
}
.toast.err { background: #7f1d1d; }
.toast svg { width: 15px; height: 15px; flex: none; }
@keyframes toastin { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ── popover menu ── */
.pop {
  position: fixed; z-index: 300; background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px; box-shadow: var(--shadow-lg); padding: 5px; min-width: 190px;
  animation: pop .1s ease;
}
.pop button {
  display: flex; align-items: center; gap: 9px; width: 100%; text-align: left;
  padding: 8px 11px; border: none; background: none; border-radius: 7px;
  font-size: 13px; font-weight: 500; color: var(--ink); cursor: pointer;
}
.pop button:hover { background: var(--surface-2); }
.pop button.danger { color: var(--danger); }
.pop button.danger:hover { background: var(--danger-soft); }
.pop button svg { width: 14px; height: 14px; color: var(--muted); flex: none; }
.pop button.danger svg { color: var(--danger); }
.pop hr { border: none; border-top: 1px solid var(--line); margin: 4px 6px; }

/* ── upload progress panel ── */
.upl-panel {
  position: fixed; right: 18px; bottom: 18px; width: 330px; z-index: 90;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.upl-head { display: flex; align-items: center; padding: 11px 14px; background: var(--navy-2); color: #fff; font-size: 13px; font-weight: 700; }
.upl-head span { flex: 1; }
.upl-list { max-height: 230px; overflow-y: auto; }
.upl-item { padding: 9px 14px; border-bottom: 1px solid var(--line); }
.upl-item:last-child { border-bottom: none; }
.upl-item .n { font-size: 12.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; justify-content: space-between; gap: 8px; }
.upl-item .n small { color: var(--muted); font-weight: 500; flex: none; }
.upl-bar { height: 4px; background: var(--line); border-radius: 2px; margin-top: 6px; overflow: hidden; }
.upl-bar i { display: block; height: 100%; background: var(--amber); border-radius: 2px; transition: width .15s; }
.upl-item.done .upl-bar i { background: var(--ok); }
.upl-item.err .n, .upl-item.err small { color: var(--danger); }
.upl-item.err .upl-bar i { background: var(--danger); }

/* ── dropzone ── */
.dropzone {
  position: absolute; inset: 0; z-index: 80; display: none;
  align-items: center; justify-content: center;
  background: rgba(245, 158, 11, .13); backdrop-filter: blur(2px);
  border: 3px dashed var(--amber); border-radius: 0;
}
.dropzone.on { display: flex; }
.dropzone .dz-card {
  background: var(--surface); padding: 26px 40px; border-radius: 14px; box-shadow: var(--shadow-lg);
  text-align: center; font-weight: 700; font-size: 16px; pointer-events: none;
}
.dropzone .dz-card small { display: block; font-weight: 500; color: var(--muted); margin-top: 3px; }

/* ── share link box ── */
.linkbox { display: flex; gap: 8px; align-items: center; }
.linkbox .input { flex: 1; font-size: 12.5px; color: var(--muted); background: var(--surface-2); }
.share-banner {
  display: flex; align-items: center; gap: 10px; padding: 11px 15px;
  background: var(--ok-soft); border: 1px solid #bbe7c8; border-radius: var(--radius-sm);
  font-size: 13px; margin-bottom: 18px; flex-wrap: wrap;
}
.share-banner svg { width: 15px; height: 15px; color: var(--ok); flex: none; }
.share-banner .lnk { flex: 1; min-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #14532d; font-weight: 600; }

/* ── search results label ── */
.results-note { font-size: 12.5px; color: var(--muted); margin: 0 0 10px; }

/* ── toolbar row ── */
.toolbar { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.toolbar .grow { flex: 1; }
.toolbar .input { max-width: 240px; padding: 7px 11px; font-size: 13px; }
.pathbar { display: flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; flex-wrap: wrap; }
.pathbar a { color: var(--muted); padding: 3px 7px; border-radius: 6px; }
.pathbar a:hover { background: rgba(16,25,43,.06); text-decoration: none; color: var(--ink); }
.pathbar .cur { color: var(--ink); padding: 3px 7px; }
.pathbar .sep { color: var(--line-strong); }

.section-label { font-size: 11.5px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: var(--faint); margin: 20px 0 9px; }

/* ── responsive ── */
@media (max-width: 860px) {
  .sidebar { position: fixed; z-index: 60; height: 100vh; left: 0; top: 0; transform: translateX(-100%); transition: transform .18s ease; box-shadow: var(--shadow-lg); }
  .sidebar.open { transform: none; }
  .main-inner { padding: 18px 16px 70px; }
  .menu-toggle { display: inline-flex !important; }
  .file-row .fdate { display: none; }
  .viewer-stage { padding: 0 10px 12px; }
  .viewer-nav.prev { left: 4px; } .viewer-nav.next { right: 4px; }
}
.menu-toggle { display: none; position: fixed; top: 14px; left: 14px; z-index: 50; background: var(--navy); color: #fff; border: none; box-shadow: var(--shadow); }
.scrim { position: fixed; inset: 0; background: rgba(10,16,28,.4); z-index: 55; display: none; }
.scrim.on { display: block; }
