/* Sendclave visual system, design book page 4. */
@font-face {
  font-family: Geist;
  src: url("geist.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("geist-mono.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --radius: 9px;
  --radius-sm: 7px;
  --radius-lg: 14px;
  --max: 1350px;
  --display: Geist, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  --page-title: 2.125rem;
  --signal: #FB5728;
  --grad: var(--accent);
  font-family: var(--display);
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #fff; --surface: #fff; --surface-2: #F5F5F3; --surface-3: #EBECEA;
  --ink: #1D2125; --muted: #525A63; --faint: #626B74;
  --line: #DDDFE0; --line-strong: #BDC1C4;
  --accent: #B53711; --accent-2: #9C300F; --accent-strong: #8C2C10;
  --on-accent: #fff; --primary: #1D2125; --primary-hover: #363C42; --on-primary: #fff;
  --ok: #146445; --ok-bg: #E6F4EC; --warn: #77500A;
  --danger: #A72F40; --danger-bg: #FBEAED;
  --shadow: 0 16px 44px rgb(29 33 37 / 13%); --shadow-sm: 0 1px 3px rgb(29 33 37 / 6%);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #191C1F; --surface: #212529; --surface-2: #1D2125; --surface-3: #32363A;
  --ink: #F5F5F3; --muted: #C0C3C6; --faint: #A9AEB3;
  --line: #3C4145; --line-strong: #5E646A;
  --accent: #FF9D7E; --accent-2: #FFAD94; --accent-strong: #FFC8B7;
  --on-accent: #1D2125; --primary: #F5F5F3; --primary-hover: #DEE0DF; --on-primary: #1D2125;
  --ok: #85D9AE; --ok-bg: #203A2F; --warn: #EAC284;
  --danger: #FF9DAB; --danger-bg: #43282E;
  --shadow: 0 16px 44px rgb(0 0 0 / 36%); --shadow-sm: 0 1px 3px rgb(0 0 0 / 20%);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
}

body {
  margin: 0;
  min-height: 100vh;
  font-size: .9375rem;
  line-height: 1.5;
  position: relative;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

.app-shell,
#toastRoot,
#modalRoot {
  position: relative;
  z-index: 1;
}

code,
pre,
kbd,
samp,
.record-id,
input[autocomplete="one-time-code"],
.link-row code,
.file-size,
.q-path {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accent);
}

.sprite {
  display: none;
}

.app-shell {
  min-height: 100vh;
}

/* ---- Header ------------------------------------------------------------- */

.app-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  backdrop-filter: blur(20px);
}

.header-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}


.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav {
  display: flex;
  gap: 6px;
}

.nav-button {
  padding: 0 14px;
  min-height: 40px;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 650;
  transition: all 150ms ease;
}

.nav-button.active {
  color: var(--ink);
  background: var(--surface-3);
  border-color: var(--line);
}

.nav-button:hover {
  color: var(--ink);
  background: var(--surface-2);
}

/* ---- Buttons ------------------------------------------------------------ */

.btn {
  color: var(--ink);
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  min-height: 44px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 680;
  transition:
    transform 140ms ease,
    background 150ms ease,
    border-color 150ms ease,
    box-shadow 150ms ease,
    color 150ms ease;
}

.btn:hover { border-color: var(--accent); }

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  color: var(--on-primary);
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: none;
}

.btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}

.btn-primary:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  box-shadow: none;
}

.btn-ghost {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-soft {
  color: var(--ink);
  background: var(--surface-3);
}

.btn-soft:hover {
  background: var(--surface-2);
}

.btn-block {
  width: 100%;
}

.icon-btn {
  width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  border-radius: 10px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  transition: all 150ms ease;
}

.icon-btn:hover {
  color: var(--ink);
  border-color: var(--line-strong);
  background: var(--surface-2);
}

.icon-btn.danger { color:var(--danger); }
.icon-btn.danger:hover {
  color: var(--danger);
  border-color: color-mix(in srgb, var(--danger) 50%, transparent);
}

.icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.9;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.icon-fill {
  fill: currentColor;
  stroke: none;
}

.icon-sm {
  width: 16px;
  height: 16px;
}

/* ---- Layout ------------------------------------------------------------- */

.page {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 64px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
  gap: 30px;
  align-items: start;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface-3);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 650;
  margin-bottom: 18px;
}

.eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 4px var(--ok-bg);
}

.title {
  margin: 0 0 14px;
  font-size: var(--page-title);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.title .grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
  max-width: 56ch;
}

/* ---- Cards & panels ----------------------------------------------------- */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.card-pad {
  padding: 22px;
}

.panel-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 6px;
  font-size: 1.04rem;
  font-weight: 720;
}

.panel-copy {
  color: var(--muted);
  margin: 0 0 16px;
  line-height: 1.55;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
}

.meta-item {
  padding: 14px 16px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.meta-label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--faint);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  margin-bottom: 6px;
}

.meta-value {
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

/* ---- Forms -------------------------------------------------------------- */

.field {
  display: grid;
  gap: 7px;
  margin-bottom: 16px;
}

.field label {
  font-size: 0.86rem;
  font-weight: 680;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  background: var(--surface-2);
  outline: none;
  transition:
    border-color 140ms ease,
    box-shadow 140ms ease;
}

.field textarea {
  min-height: 90px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.error {
  color: var(--danger);
  font-size: 0.9rem;
  min-height: 1.2em;
  margin: 0 0 4px;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}

.switch {
  position: relative;
  width: 46px;
  height: 26px;
  flex: 0 0 auto;
}

.switch input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

.switch .track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--line-strong);
  transition: background 160ms ease;
}

.switch .track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: transform 160ms ease;
}

.switch input:checked + .track {
  background: var(--accent);
}

.switch input:checked + .track::after {
  background: var(--on-accent);
  transform: translateX(20px);
}

/* ---- Dropzone ----------------------------------------------------------- */

.dropzone {
  position: relative;
  min-height: 280px;
  border: 2px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--surface-2);
  display: grid;
  place-items: center;
  padding: 32px;
  text-align: center;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.dropzone.dragover {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, var(--surface-2));
  transform: scale(1.006);
}

.dz-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  color: var(--on-accent);
  background: var(--grad);
  box-shadow: var(--shadow-sm);
}

.dz-icon .icon {
  width: 34px;
  height: 34px;
  stroke-width: 2;
}

.dropzone h2 {
  margin: 0 0 8px;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  letter-spacing: -0.01em;
}

.dropzone p {
  color: var(--muted);
  margin: 0 0 20px;
  line-height: 1.5;
  max-width: 46ch;
}

.dz-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.dz-hint {
  margin-top: 16px;
  font-size: 0.82rem;
  color: var(--faint);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---- Transfer dashboard ------------------------------------------------- */

.upload-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.85fr);
  gap: 22px;
  align-items: start;
}

.stack {
  display: grid;
  gap: 20px;
}

.dashboard {
  display: grid;
  gap: 18px;
}

.dash-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.dash-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.stat {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.stat-value {
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.stat-label {
  color: var(--faint);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
  margin-top: 3px;
}

.overall-progress {
  height: 12px;
  border-radius: 999px;
  background: var(--surface-3);
  overflow: hidden;
}

.overall-progress span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--grad);
  transition: width 220ms ease;
}

.dash-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ---- Queue -------------------------------------------------------------- */

.queue-group {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.queue-group + .queue-group {
  margin-top: 12px;
}

.group-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  font-weight: 700;
}

.group-head .icon {
  color: var(--accent);
}

.group-meta {
  margin-left: auto;
  color: var(--faint);
  font-size: 0.84rem;
  font-weight: 600;
}

.queue-list {
  display: grid;
}

.queue-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
}

.queue-item + .queue-item {
  border-top: 1px solid var(--line);
}

.q-thumb {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--surface-3);
  display: grid;
  place-items: center;
  color: var(--accent);
  overflow: hidden;
}

.q-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.q-name {
  font-weight: 660;
  overflow-wrap: anywhere;
  display: flex;
  align-items: center;
  gap: 8px;
}

.q-path {
  color: var(--faint);
  font-weight: 500;
  font-size: 0.84rem;
}

.q-sub {
  color: var(--muted);
  font-size: 0.83rem;
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.q-progress {
  height: 6px;
  border-radius: 999px;
  background: var(--surface-3);
  overflow: hidden;
  margin-top: 8px;
}

.q-progress span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--grad);
  transition: width 200ms ease;
}

.q-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

.status-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.status-tag.queued {
  color: var(--muted);
  background: var(--surface-3);
}
.status-tag.active {
  color: var(--accent-strong);
  background: color-mix(in srgb, var(--accent) 16%, transparent);
}
.status-tag.done {
  color: var(--ok);
  background: var(--ok-bg);
}
.status-tag.error {
  color: var(--danger);
  background: var(--danger-bg);
}
.status-tag.paused {
  color: var(--warn);
  background: color-mix(in srgb, var(--warn) 16%, transparent);
}

/* ---- Access-log event badges ------------------------------------------- */
/* Colour-coded so "just looked at the page" reads differently from a real
   action (uploaded / downloaded bytes). */
.ev-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
  white-space: nowrap;
  border: 1px solid transparent;
}
.ev-badge .icon {
  width: 13px;
  height: 13px;
}
.ev-badge.ev-view {
  color: var(--muted);
  background: var(--surface-3);
  border-color: var(--line);
}
.ev-badge.ev-unlock {
  color: var(--warn);
  background: color-mix(in srgb, var(--warn) 14%, transparent);
}
.ev-badge.ev-upload {
  color: var(--accent-strong);
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  border-color: color-mix(in srgb, var(--accent) 35%, transparent);
}
.ev-badge.ev-download {
  color: var(--ok);
  background: var(--ok-bg);
}

/* Admin access log */
.access-log { min-width:0; }
.access-log .title { margin-bottom:.25rem; }
.acc-filters,.acc-toolbar,.acc-paging { display:flex; align-items:center; flex-wrap:wrap; gap:10px 14px; }
.acc-filters { align-items:flex-end; }
.acc-filters .field { margin:0; min-width:0; }
.acc-filters .field:first-child { flex:1 1 210px; max-width:440px; }
.acc-toolbar { padding-block:10px; border-block:1px solid var(--line); }
.acc-toolbar label,.acc-paging label { display:inline-flex; align-items:center; gap:7px; }
.acc-toolbar input { width:18px; height:18px; accent-color:var(--accent); }
.acc-paging [data-status] { margin-right:auto; font:.86rem/1.5 var(--mono); color:var(--muted); }
.acc-paging select { padding:5px 8px; background:var(--surface); color:var(--ink); border:1px solid var(--line-strong); border-radius:var(--radius-sm); }
.access-log [data-error]:empty { display:none; }
.acc-register { border-block:1px solid var(--line); min-width:0; }
.acc-register summary { cursor:pointer; }
.acc-register summary:focus-visible { outline:2px solid var(--accent); outline-offset:-2px; }
.acc-ip,.acc-event { border-bottom:1px solid var(--line); }
.acc-ip:last-child,.acc-event:last-child { border-bottom:0; }
.acc-ip > summary,.acc-event > summary { display:flex; align-items:center; gap:10px; min-height:48px; padding:10px 12px; list-style:none; }
.acc-register summary::-webkit-details-marker { display:none; }
.acc-ip > summary:hover,.acc-event > summary:hover { background:var(--surface-2); }
.acc-arrow { flex:none; display:inline-block; font:1.2rem/1 var(--mono); color:var(--muted); }
.acc-ip[open] > summary > .acc-arrow,.acc-event[open] > summary > .acc-arrow { transform:rotate(90deg); }
.acc-group-label,.acc-event-text { display:flex; align-items:baseline; flex-wrap:wrap; flex:1; gap:4px 12px; min-width:0; overflow-wrap:anywhere; }
.acc-group-label small,.acc-event-text small,.acc-last,.acc-event time { color:var(--muted); font-size:.84rem; }
.acc-count { min-width:26px; text-align:center; font:600 .85rem var(--mono); color:var(--ink); }
.acc-children { margin-left:20px; border-left:2px solid var(--line); }
.acc-event[open] > summary { background:var(--surface-2); }
.acc-event time { font-variant-numeric:tabular-nums; }
.acc-detail { padding:6px 18px 18px; background:var(--surface); display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px 20px; }
.acc-detail h3 { margin:12px 0 6px; font-size:1rem; }
.acc-detail dl { margin:0; }
.acc-detail dl > div { display:grid; grid-template-columns:minmax(76px,.75fr) minmax(0,1.7fr); gap:8px; border-top:1px solid var(--line); padding:6px 0; }
.acc-detail dt { color:var(--muted); font-size:.82rem; }
.acc-detail dd { margin:0; overflow-wrap:anywhere; white-space:pre-wrap; font-size:.9rem; }
.acc-client { grid-column:1/-1; min-width:0; }
.acc-client dl { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); column-gap:20px; }
.acc-client p,.acc-detail section > p { margin:4px 0; color:var(--muted); font-size:.9rem; }
.acc-raw { margin-top:12px; }
.acc-raw summary { list-style:disclosure-closed; padding:6px 0; width:fit-content; }
.acc-raw[open] summary { list-style:disclosure-open; }
.acc-raw pre { max-height:24rem; overflow:auto; white-space:pre-wrap; overflow-wrap:anywhere; background:var(--surface-2); padding:12px; font:.82rem/1.5 var(--mono); }
@media(max-width:700px) {
  .acc-detail,.acc-client dl { grid-template-columns:minmax(0,1fr); }
  .acc-event > summary { display:grid; grid-template-columns:14px minmax(0,1fr); row-gap:3px; }
  .acc-event time { grid-column:2; }
  .acc-last { display:none; }
  .acc-children { margin-left:7px; }
  .acc-detail { padding:4px 12px 12px; }
}

/* ---- Trust list --------------------------------------------------------- */

.trust-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 11px;
}

.trust-list li {
  display: flex;
  gap: 10px;
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.92rem;
}

.trust-list .icon {
  color: var(--ok);
  width: 18px;
  height: 18px;
  margin-top: 1px;
}

/* ---- Pills / chips ------------------------------------------------------ */

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--muted);
}

.pill .icon-sm {
  color: var(--accent);
}

/* ---- Share / download view ---------------------------------------------- */

.share-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.share-tools {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.file-table {
  display: grid;
}

.file-row {
  display: grid;
  grid-template-columns: 22px 44px minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  padding: 13px 16px;
}

.file-row + .file-row,
.file-row.folder + .file-row {
  border-top: 1px solid var(--line);
}

.file-row:hover {
  background: var(--surface-2);
}

.file-row.folder {
  background: var(--surface-2);
  font-weight: 700;
  grid-template-columns: 22px 44px minmax(0, 1fr) auto;
}

.file-row.folder .icon {
  color: var(--accent);
}

.file-name {
  font-weight: 620;
  overflow-wrap: anywhere;
}

.file-size {
  color: var(--muted);
  font-size: 0.88rem;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.checkbox {
  width: 20px;
  height: 20px;
  accent-color: var(--accent);
}

.f-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--surface-3);
  color: var(--accent);
}

/* ---- Success screen ----------------------------------------------------- */

.success {
  text-align: center;
  padding: 44px 24px;
  max-width: 560px;
  margin: 0 auto;
}

.success .badge {
  width: 84px;
  height: 84px;
  margin: 0 auto 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ok);
  background: var(--ok-bg);
  border: 1px solid var(--line-strong);
}

.success .badge .icon {
  width: 44px;
  height: 44px;
  stroke-width: 2.2;
}

.success h1 {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}

.success p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0 auto 24px;
}

/* ---- Link rows ---------------------------------------------------------- */

.link-list {
  display: grid;
  gap: 14px;
}

.link-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.link-row code {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  font-size: 0.9rem;
}

/* ---- Empty state -------------------------------------------------------- */

.empty {
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  color: var(--muted);
  background: var(--surface-2);
}

/* ---- Modal / preview ---------------------------------------------------- */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(8, 9, 16, 0.74);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  padding: 22px;
  animation: fade 160ms ease;
}

.modal {
  width: min(880px, 100%);
  max-height: calc(100vh - 60px);
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

.modal-head strong {
  font-size: 1.04rem;
}

.modal-body {
  padding: 20px;
}

/* ---- Toast -------------------------------------------------------------- */

#toastRoot {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  display: grid;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  box-shadow: var(--shadow);
  max-width: min(380px, calc(100vw - 36px));
  display: flex;
  align-items: center;
  gap: 10px;
  animation: rise 200ms ease;
}

.toast .icon {
  color: var(--accent);
}

.toast.ok .icon {
  color: var(--ok);
}
.toast.error .icon {
  color: var(--danger);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

@keyframes fade {
  from {
    opacity: 0;
  }
}

.noscript {
  padding: 40px;
  max-width: 600px;
  margin: 0 auto;
}

/* ---- Responsive --------------------------------------------------------- */

@media (max-width: 1000px) {
  .hero,
  .upload-grid {
    grid-template-columns: 1fr;
  }
  .dash-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .header-inner {
    flex-wrap: wrap;
    min-height: 0;
    padding: 12px 0;
    gap: 12px;
  }
  .nav {
    order: 3;
    width: 100%;
  }
  .nav-button {
    flex: 1;
    justify-content: center;
  }
  .meta-grid,
  .field-row,
  .link-row {
    grid-template-columns: 1fr;
  }
  .file-row {
    grid-template-columns: 22px 44px minmax(0, 1fr) auto;
  }
  .file-row .file-size {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* The same file controls and selection remain available in either view. */
.view-switch { display:inline-flex; gap:2px; align-items:center; padding:3px; border:1px solid var(--line-strong); border-radius:var(--radius-sm); background:var(--surface-2); }
.view-switch button { border:0; color:var(--muted); background:transparent; font:inherit; font-size:.85rem; cursor:pointer; padding:7px 10px; border-radius:5px; }
.view-switch button[aria-pressed="true"] { background:var(--surface-3); color:var(--ink); box-shadow:inset 0 0 0 1px var(--line-strong); }
.view-switch button:focus-visible { outline:2px solid var(--accent); }
.file-visual { display:inline-grid; place-items:center; flex-shrink:0; vertical-align:middle; }
.file-table.thumbnail-grid, .team-files.thumbnail-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(185px,100%),1fr)); gap:12px; padding:12px 0; }
.file-table.thumbnail-grid { padding:14px; }
.thumbnail-grid .team-entry, .thumbnail-grid .file-row { position:relative; display:flex; flex-wrap:wrap; align-content:flex-start; align-items:center; justify-content:flex-start; gap:7px; min-width:0; border:1px solid var(--line); border-radius:var(--radius-sm); padding:10px; background:var(--surface); }
.thumbnail-grid .team-entry:has(:checked), .thumbnail-grid .file-row:has(:checked) { border-color:var(--accent); }
.thumbnail-grid .checkbox { position:absolute; z-index:1; top:16px; left:16px; }
.thumbnail-grid .f-icon, .thumbnail-grid .team-entry > .file-visual { margin:0; width:100%; height:120px; order:-1; overflow:hidden; border-radius:6px; background:var(--surface-2); color:var(--accent); }
.thumbnail-grid .f-icon .file-visual { height:100%; width:100%; }
.thumbnail-grid .file-visual { position:relative; }
.thumbnail-grid .file-visual > svg, .thumbnail-grid .f-icon > svg { width:34px; height:34px; }
.thumbnail-grid .file-visual img, .thumbnail-grid .file-visual video { position:absolute; inset:0; width:100%; height:100%; object-fit:contain; opacity:0; }
.thumbnail-grid .has-media > img, .thumbnail-grid .has-media > video { opacity:1; }
.thumbnail-grid .has-media > svg { visibility:hidden; }
.thumbnail-grid .team-entry > strong, .thumbnail-grid .team-name, .thumbnail-grid .file-row > div:has(.file-name) { flex-basis:100%; width:100%; max-width:100%; min-width:0; overflow-wrap:anywhere; }
.thumbnail-grid .file-row > span:empty { display:none; }
.thumbnail-grid .team-meta, .thumbnail-grid .file-size { margin:0 auto 0 0; display:inline; }
.thumbnail-grid .q-actions { flex-wrap:wrap; }
@media(max-width:620px) {
  .queue-item { grid-template-columns:38px minmax(0,1fr); padding:10px; }
  .queue-item .q-actions { grid-column:2; justify-content:flex-start; flex-wrap:wrap; }
  .queue-item .q-sub { overflow-wrap:anywhere; }
  .share-tools { flex-wrap:wrap; }
  .thumbnail-grid .team-entry > .file-visual { height:110px; }
}
/* Upload date and local-time filtering */
.date-controls { display:flex; align-items:flex-start; flex-wrap:wrap; gap:8px; margin:8px 0 12px; }
.date-filter { min-width:0; max-width:100%; }
.date-filter summary { cursor:pointer; font-weight:650; padding:8px 2px; overflow-wrap:anywhere; }
.date-filter form { display:flex; align-items:flex-end; flex-wrap:wrap; gap:10px; padding:8px 0; }
.date-filter label { display:grid; gap:4px; font-size:.85rem; }
.date-filter input { color:var(--ink); background:var(--surface-2); font:inherit; border:1px solid var(--line-strong); border-radius:var(--radius-sm); padding:7px; }
.date-help { flex-basis:100%; color:var(--muted); font-size:.85rem; }
.upload-stamp, .match-path { display:block; font-size:.78rem; color:var(--muted); overflow-wrap:anywhere; }
.card > .date-controls { margin-left:16px; margin-right:16px; }
/* File list navigation */
.file-pager, .file-selection, .file-pager label, .file-selection label {
  display:flex; align-items:center; flex-wrap:wrap; gap:8px;
}
.file-pager { margin:0 0 12px; padding:8px 0; border-bottom:1px solid var(--line); scroll-margin-top:12px; }
.file-pager[data-pager="bottom"] { border-bottom:0; border-top:1px solid var(--line); margin:8px 0 0; }
.card > .file-pager { padding:10px 16px; }
.page-range { margin-right:auto; color:var(--muted); font-variant-numeric:tabular-nums; }
.file-pager select { font:inherit; color:var(--ink); background:var(--surface-2); border:1px solid var(--line-strong); border-radius:var(--radius-sm); padding:5px; }
.file-selection label { font-weight:650; }
.file-selection [role="status"] { color:var(--muted); }
@media(max-width:620px) {
  .page-range { flex-basis:100%; }
  .file-pager, .file-selection { font-size:.88rem; }
}
/* Team folder browser */
.team-heading, .team-entry, .team-crumbs { display:flex; align-items:center; gap:12px; }
.team-heading { justify-content:space-between; flex-wrap:wrap; margin:12px 0; }
.team-heading .title { font-size:var(--page-title); }
.team-entry { padding:12px 2px; border-bottom:1px solid var(--line); color:var(--ink); text-decoration:none; min-width:0; }
.team-entry:last-child { border-bottom:0; }
.team-entry strong, .team-name { overflow-wrap:anywhere; min-width:0; }
.team-meta { margin-left:auto; color:var(--muted); font-size:.85rem; }
.team-name, .team-crumbs button { background:none; border:0; color:var(--accent); cursor:pointer; font:inherit; padding:4px 0; text-align:left; }
.team-name:hover, .team-crumbs button:hover { text-decoration:underline; }
.team-crumbs { flex-wrap:wrap; color:var(--muted); margin-bottom:16px; }
.team-crumbs button { display:inline-flex; align-items:center; gap:6px; }
.team-files { margin-top:12px; }
.team-entry .icon, .team-entry .checkbox { flex-shrink:0; }
.team-gate { max-width:490px; margin:6vh auto; }
.team-dialog { background:var(--surface); color:var(--ink); padding:0; width:min(550px,94vw); max-height:88vh; overflow:auto; }
.team-dialog::backdrop { background:rgb(0 0 0 / 65%); }
.team-dialog hr { border:0; border-top:1px solid var(--line); margin:20px 0; }
.team-dialog select { font:inherit; background:var(--surface-2); color:var(--ink); border:1px solid var(--line-strong); padding:.65rem; border-radius:var(--radius-sm); }
.team-dialog .team-error:empty { display:none; }
.team-media img, .team-media video { display:block; max-width:100%; max-height:65vh; margin:auto; }
@media (max-width:640px) {
  .team-entry { flex-wrap:wrap; gap:8px; }
  .team-entry strong, .team-name { max-width:68%; }
  .team-meta { font-size:.75rem; }
}


/* Folder identity and file list */
.folder-back { display: inline-flex; align-items: center; color: var(--muted); min-height: 36px; font-size: .9rem; font-weight: 600; text-decoration: none; }
.folder-back:hover { text-decoration: underline; }
.folder-identity { display: flex; gap: 16px; align-items: center; max-width: 100%; }
.folder-identity > div { min-width: 0; }
.folder-identity .title { overflow-wrap: anywhere; margin-bottom: 4px; }
.folder-identity .lede { margin-bottom: 0; font-size: .92rem; }
.team-files:not(.thumbnail-grid) .file-visual { width: 32px; height: 36px; color: var(--accent); background: var(--surface-2); border-radius: 6px; }
.team-files:not(.thumbnail-grid) .team-entry:has(input:checked) { background: var(--surface-3); }
.team-files:not(.thumbnail-grid) .team-entry:hover { background: var(--surface-2); }
.team-files .team-entry > .btn { min-height: 36px; padding-inline: 12px; }
#dropzone, main { scroll-margin-top: 130px; }
@media (max-width: 680px) {
    .folder-identity { gap: 10px; }
}

/* Workspace chrome */
.app-shell { min-height: 100dvh; }
.app-header { background: var(--bg); backdrop-filter: none; }
.header-inner, .page {
  width: min(var(--max), calc(100% - clamp(32px, 8vw, 112px)));
  margin-inline: auto;
}
.header-inner { min-height: 68px; flex-wrap: nowrap; }
/* Half the symbol width is reserved around the outlined lockup. */
.brand { flex:0 0 auto; padding:12px; }
.brand-lockup { display:block; width:132px; height:auto; aspect-ratio:342/69; color:var(--ink); }
.nav-short { display:none; }
.nav-primary,.nav-admin { display:flex; align-items:stretch; gap:3px; }
.header-inner .header-actions { margin-left: auto; min-width: 0; }
.account-button { min-width: 0; max-width: min(38vw,300px); }
.account-button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.header-actions .icon-btn { background: transparent; border-color: transparent; color: var(--muted); }
.header-actions .icon-btn:hover { background: var(--surface-3); color: var(--ink); }
.app-header .nav { display: flex; gap: 4px; min-width: 0; }
.nav-button.active > .icon { color:var(--accent); }
.nav .nav-button { flex: 0 0 auto; min-height: 40px; white-space: nowrap; border-radius: 0; }
.nav .nav-button.active { color: var(--ink); background: transparent; border-color: transparent; box-shadow: inset 0 -2px var(--signal); }
.skip-link { position: fixed; z-index: 100; top: 6px; left: 10px; padding: 10px 16px; border-radius: 6px; background: var(--surface); transform: translateY(-160%); }
.skip-link:focus { transform: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
main:focus { outline: none; }
.page { padding-block: clamp(24px,4vw,52px) 48px; }
.title { font-family: var(--display); font-weight: 600; letter-spacing: -.04em; text-wrap: balance; }
.workspace-title { margin: 0 0 24px; }
.panel-title { font-family: inherit; font-size: 1.11rem; line-height: 1.4; letter-spacing: -.025em; }
.panel-title > .icon { color: var(--accent); flex-shrink: 0; }
.card-pad { padding: clamp(16px,2.2vw,28px); }

.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; box-shadow: none; }
.team-entry { gap: 12px; padding: 14px 6px; }
a.team-entry:hover { background: var(--surface-2); }
a.team-entry > .icon { box-sizing: content-box; width: 20px; height: 20px; color: var(--accent); padding: 8px; border-radius: 8px; background: var(--surface-3); }
#summaryBar { padding: 0; overflow: hidden; }
#summaryBar .dash-stats { gap: 1px; background: var(--line); }
#summaryBar .stat { padding: 17px clamp(14px,2vw,26px); border: 0; border-radius: 0; background: var(--surface); }
#summaryBar .stat-value { font-size: clamp(1.35rem,2.1vw,2rem); font-weight: 650; line-height: 1.2; }
#summaryBar .stat-label { color: var(--muted); font-size: .85rem; font-weight: 500; text-transform: none; letter-spacing: 0; }
.stat-value, .page-range { font-variant-numeric: tabular-nums; }
.file-size, .page-range, .upload-stamp, #summaryBar .stat-label { font-family: var(--mono); }
.settings-layout { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; align-items: start; }
.settings-heading { grid-column: 1 / -1; }
.settings-heading .lede { margin: 0; }
.settings-layout > :empty { display: none; }
.enrollment-layout { max-width: 660px; margin: auto; }
/* Account entry and the standalone identity callback. */
.public-header { border-bottom: 0; }
.public-header .header-inner { min-height: 74px; }
.page:has(> .login-layout) { padding-block: 4px 32px; }
.login-layout { display:grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap:clamp(28px,6vw,90px); align-items:center; }
.login-form { width:min(100%,395px); justify-self:center; padding:24px 0; }
.login-form .title { margin-bottom:8px; }
.login-form .lede { margin-bottom:28px; }
.login-form .field { margin-bottom:18px; }
.login-form .field label { font-size:.9rem; font-weight:500; }
.login-form input { background:var(--surface); min-height:46px; }
.login-form .error:empty { display:none; }
.login-form .btn-primary { min-height:46px; margin:6px 0 10px; }
.signin-art { margin:0; min-width:0; min-height:clamp(485px,75vh,780px); display:flex; flex-direction:column; align-items:center; justify-content:center; background:#EFEDE7; color:#1D2125; padding:clamp(20px,3vw,46px); border-radius:16px; }
.signin-art picture { display:block; width:min(100%,460px); }
.signin-art img { width:100%; height:auto; }
.signin-art figcaption { display:grid; gap:8px; text-align:center; margin-top:8px; }
.signin-art figcaption strong { font:600 clamp(1.35rem,2.35vw,2rem)/1.15 var(--display); letter-spacing:-.04em; }
.signin-art figcaption span { font-size:.94rem; color:#525A63; }
.callback-card { width:min(460px,calc(100% - 32px)); margin:12vh auto; }
.callback-card h1 { font:600 var(--page-title)/1.15 var(--display); letter-spacing:-.04em; }

/* The workspace reads as a file register. Only editing controls use panels. */
.register-heading, .index-labels { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.register-heading { flex-wrap: wrap; margin-bottom: 25px; }
.register-heading .workspace-title { margin: 0; }
.workspace-header + .page .title { font-size: var(--page-title); }
.workspace-header + .page .team-heading { margin-top: 0; }
.folder-back { margin-bottom: 8px; }
.folder-index, .folder-register, .request-register { border-top: 1px solid var(--line-strong); }
.folder-register { padding-block: 12px; }
.folder-location { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 20px; }
.folder-location .team-crumbs { margin: 0; }
.folder-location .date-controls { margin: 0; }
.folder-location .date-controls:has(details[open]) { flex: 1 0 100%; min-width: 0; }
.date-filter:not([open]) > form { display: none; }
.folder-register > .file-pager { margin-top: 8px; }

.folder-index .team-entry { padding-inline: 4px; }
.folder-index a.team-entry > .icon { width: 21px; height: 21px; padding: 0; border-radius: 0; background: transparent; }
.index-labels, .register-label { font: 550 .82rem/1.5 var(--display); color: var(--muted); }
.index-labels { padding: 12px 4px; border-bottom: 1px solid var(--line); }
.register-label { margin: 0; padding: 13px 0; }
.request-register .file-row { grid-template-columns: 27px minmax(0,1fr) auto; padding: 12px 0; }
.request-register .file-row > span:first-child, .request-register .file-size { display: none; }
.request-register .f-icon { background: transparent; color: var(--accent); width: auto; }
.request-name { color: var(--ink); text-decoration: none; }
.request-name:hover { text-decoration: underline; }
.request-composer { max-width: 680px; margin-bottom: 24px; }
#createdLink:not(:empty) { margin-bottom: 22px; }
#summaryBar { background: transparent; border: 0; border-radius: 0; box-shadow: none; }
#summaryBar .dash-stats { display: flex; flex-wrap: wrap; gap: 8px 22px; background: transparent; }
#summaryBar .stat { display: flex; gap: 6px; align-items: baseline; padding: 0; background: transparent; }
#summaryBar .stat-value { font: 650 1rem/1.35 var(--display); }
#summaryBar .stat-label { font: 400 .87rem/1.4 var(--display); text-transform: lowercase; }
.folder-actions { align-items: center; }
.action-disclosure { position: relative; }
.action-disclosure > summary { cursor: pointer; color: var(--muted); font-size: .9rem; }
.folder-more > summary { padding: 10px 8px; }
.disclosure-list {
  position: absolute; top: 100%; right: 0; z-index: 5; margin: 3px 0 0;
  padding: 6px; min-width: 180px; background: var(--surface); border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-sm); border-radius: var(--radius-sm);
}
.disclosure-list > .btn { display: flex; justify-content: flex-start; width: 100%; background: transparent; border-color: transparent; }
.disclosure-list > .btn:hover { background: var(--surface-3); }
.app-shell:has(> .recipient-footer) { display:flex; flex-direction:column; }
.recipient-footer { width:min(var(--max),calc(100% - clamp(32px,8vw,112px))); margin:auto auto 0; padding:12px 0 max(18px,env(safe-area-inset-bottom)); border-top:1px solid var(--line); }
.visitor-privacy { color:var(--muted); font-size:.8125rem; line-height:1.5; }
.visitor-privacy summary { width:fit-content; cursor:pointer; padding:6px 0; }
.visitor-privacy summary:hover { color:var(--ink); }
.visitor-privacy p { margin:4px 0 8px; max-width:62ch; }

@media (min-width: 1024px) {
  .app-shell:has(> .workspace-header) { display: grid; grid-template-columns: clamp(195px,17vw,245px) minmax(0,1fr); align-items: start; }
  .workspace-header { height: 100vh; height: 100dvh; overflow-y: auto; border: 0; border-right: 1px solid var(--line); background: var(--surface-2); }
  .workspace-header .header-inner { width: auto; min-height: 100%; display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; padding: 28px 17px 18px; }
  .workspace-header .brand { padding:12px; }
  .workspace-header :is(.nav-primary,.nav-admin) { flex-direction:column; }
  .workspace-header .nav-admin { border-top:1px solid var(--line); margin-top:12px; padding-top:12px; }
  .workspace-header .nav { flex-direction: column; margin-block: 30px 24px; gap: 3px; }
  .workspace-header .nav-button { justify-content: flex-start; }
  .workspace-header .nav .nav-button.active { border-color:var(--line); border-radius:var(--radius-sm); background:var(--surface); box-shadow:var(--shadow-sm); }
  .workspace-header .header-actions { margin: auto 0 0; display: flex; flex-wrap: wrap; gap: 3px; border-top: 1px solid var(--line); padding-top: 12px; }
  .workspace-header .account-button { width: 100%; max-width: none; padding-inline: 8px; font-size: .87rem; }
  .workspace-header + .page { width: min(1320px,100%); margin: 0 auto; min-width: 0; padding: clamp(32px,4vw,64px) clamp(28px,4.2vw,76px) 60px; }
  .workspace-header + main, .workspace-header + main #dropzone { scroll-margin-top: 20px; }
}
@media (max-width: 1023px) {
  .workspace-header .header-inner { min-height: auto; padding-block: 9px; gap: 7px 12px; flex-wrap: wrap; }
  .workspace-header .nav { order: 3; width: 100%; flex-wrap: wrap; }
  .nav .nav-button { padding-inline: 9px; gap: 6px; font-size: .9rem; }
  .header-actions { gap: 3px; }
}
@media (max-width: 680px) {
  .public-header .header-inner { min-height: 60px; }
  .settings-layout, .login-layout { grid-template-columns: 1fr; }
  .page:has(> .login-layout) { padding-block: 34px; }
  .login-layout { gap: 0; max-width: 440px; margin-inline: auto; }
  .signin-art { display:none; }
  :root { --page-title:1.75rem; }
  :is(.page,.team-dialog,.modal) .btn.btn-primary { min-height:44px; }
  .login-form { width: 100%; }
  .login-form .lede { margin-bottom: 20px; }
  .account-button { padding-inline: 8px; max-width: 27vw; }
  .account-button > .icon { flex: 0 0 auto; }
  .workspace-header .nav { width:auto; margin:0; }
  .workspace-header .nav:has(.nav-admin) { width:100%; }
  .nav-primary { position:fixed; z-index:30; bottom:0; left:0; right:0; display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); padding:4px 4px max(4px,env(safe-area-inset-bottom)); background:var(--surface); border-top:1px solid var(--line); }
  .workspace-header .nav-primary .nav-button { gap:3px; min-width:0; min-height:48px; justify-content:center; flex-direction:column; padding:3px 1px; border-radius:6px; font-size:.74rem; }
  .nav-primary .nav-full { display:none; }
  .nav-primary .nav-short { display:inline; }
  .nav-primary .nav-button.active { color:var(--accent); box-shadow:none; background:var(--surface-2); }
  .nav-admin .nav-button { min-height:44px; }
  .workspace-header + .page { padding-bottom:calc(78px + env(safe-area-inset-bottom)); }
  html:has(.workspace-header) { scroll-padding-bottom:80px; }
  .folder-more[open] { flex: 1 0 100%; }
  .folder-more .disclosure-list { position: static; width: 100%; }
}
@media (max-width: 390px) {
  .account-button span { display: none; }
  .workspace-header .nav-admin .icon { display:none; }
}
