/* derdium drive — brand UI. Dark first, amber accent, mobile first. */

:root {
  --accent: #e9a21a;
  --accent-ink: #111;
  --accent-soft: color-mix(in srgb, var(--accent) 14%, transparent);

  --bg: #0b0b0c;
  --bg-elev: #111112;
  --surface: #161617;
  --surface-2: #1d1d1f;
  --surface-3: #262628;
  --line: rgba(255, 255, 255, .07);
  --line-2: rgba(255, 255, 255, .12);
  --text: #f4f4f2;
  --muted: #a3a3a8;
  --faint: #6e6e74;
  --danger: #ff6b5e;
  --danger-soft: rgba(255, 107, 94, .12);
  --ok: #5fd08a;
  --ok-soft: rgba(95, 208, 138, .12);
  --shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 20px 50px -12px rgba(0,0,0,.6);
  --scrim: rgba(0, 0, 0, .6);

  --f-brand: "Poppins", ui-sans-serif, system-ui, sans-serif;
  --f-ui: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --r-xl: 24px;
  --tap: 44px;
  --side: 264px;
  --top: 64px;
  --nav: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}

:root[data-theme="light"] {
  --accent-ink: #111;
  --bg: #f6f6f4;
  --bg-elev: #fbfbfa;
  --surface: #ffffff;
  --surface-2: #f2f2f0;
  --surface-3: #e8e8e5;
  --line: rgba(0, 0, 0, .07);
  --line-2: rgba(0, 0, 0, .12);
  --text: #0b0b0c;
  --muted: #5d5d63;
  --faint: #8d8d93;
  --danger: #d93a2b;
  --danger-soft: rgba(217, 58, 43, .08);
  --ok: #1f9d55;
  --ok-soft: rgba(31, 157, 85, .1);
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 18px 40px -16px rgba(0,0,0,.18);
  --scrim: rgba(10, 10, 10, .38);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; height: 100%; }
body {
  margin: 0; min-height: 100%;
  background: var(--bg); color: var(--text);
  font: 400 15px/1.5 var(--f-ui);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}
h1, h2, h3, h4 { font-family: var(--f-brand); font-weight: 600; letter-spacing: -.01em; margin: 0; line-height: 1.2; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
img, video { max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--accent-ink); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- brand ---------- */
.wordmark { font: 700 22px/1 var(--f-brand); letter-spacing: -.02em; color: var(--text); display: inline-flex; align-items: baseline; white-space: nowrap; }
.wordmark i { font-style: normal; color: var(--accent); margin-left: 1px; }
.wordmark b { font: 500 11px/1 var(--f-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  margin-left: 10px; padding: 5px 8px; border: 1px solid var(--line-2); border-radius: 999px; transform: translateY(-3px); }

.boot { min-height: 100vh; display: grid; place-content: center; gap: 22px; justify-items: center; }
.boot .wordmark { font-size: 30px; }
.boot-bar { width: 120px; height: 2px; background: var(--surface-3); border-radius: 2px; overflow: hidden; position: relative; }
.boot-bar::after { content: ""; position: absolute; inset: 0; width: 40%; background: var(--accent); animation: slide 1s var(--ease) infinite; }
@keyframes slide { from { transform: translateX(-100%); } to { transform: translateX(260%); } }

/* ---------- buttons & inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px;
  border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-weight: 500; font-size: 14px;
  white-space: nowrap; transition: background .15s, border-color .15s, transform .1s, opacity .15s; user-select: none; }
.btn:hover { background: var(--surface-3); }
.btn:active { transform: scale(.98); }
.btn svg { width: 18px; height: 18px; }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; font-weight: 600; }
.btn.primary:hover { filter: brightness(1.06); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--surface-2); }
.btn.danger { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.btn.danger:hover { background: color-mix(in srgb, var(--danger) 20%, transparent); }
.btn.lg { min-height: 50px; padding: 0 22px; font-size: 15px; }
.btn.sm { min-height: 32px; padding: 0 12px; font-size: 13px; }
.btn.block { width: 100%; }
.btn[disabled], .btn.loading { opacity: .55; pointer-events: none; }
.btn.loading::after { content: ""; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.icon-btn { width: var(--tap); height: var(--tap); display: inline-grid; place-items: center; border-radius: 999px; color: var(--muted); transition: background .15s, color .15s; flex: none; position: relative; }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn.on { color: var(--accent); }

.form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; min-width: 0; }
.field label, .label { font-size: 13px; font-weight: 500; color: var(--muted); }
.field small, .hint { font-size: 12.5px; color: var(--faint); line-height: 1.45; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], input[type=url], input:not([type]), select, textarea {
  width: 100%; min-height: 48px; padding: 0 14px; background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--r); outline: none; transition: border-color .15s, background .15s; font-size: 16px; /* 16px stops iOS zoom */
}
textarea { padding: 12px 14px; min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); background: var(--surface); }
input::placeholder { color: var(--faint); }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
.suffix { position: relative; }
.suffix span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--faint); font-size: 14px; pointer-events: none; }
.suffix input { padding-right: 52px; }
.grid-2 { display: grid; gap: 16px; }
@media (min-width: 560px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

.toggle-row { display: flex; gap: 14px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-2); cursor: pointer; }
.toggle-row input { position: absolute; opacity: 0; pointer-events: none; }
.toggle-row strong { display: block; font-weight: 500; font-size: 14.5px; }
.toggle-row small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.switch { width: 40px; height: 24px; border-radius: 999px; background: var(--surface-3); position: relative; flex: none; transition: background .2s; margin-top: 1px; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease); box-shadow: 0 1px 3px rgba(0,0,0,.3); }
input:checked + .switch { background: var(--accent); }
input:checked + .switch::after { transform: translateX(16px); }
input:focus-visible + .switch { outline: 2px solid var(--accent); outline-offset: 2px; }

.seg { display: inline-flex; padding: 3px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; gap: 2px; }
.seg button { min-height: 32px; padding: 0 12px; border-radius: 999px; color: var(--muted); font-size: 13px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.seg button svg { width: 17px; height: 17px; }

.alert { padding: 12px 14px; border-radius: var(--r); font-size: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.alert.error { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.alert.ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.alert.note { background: var(--accent-soft); border-color: transparent; color: var(--text); }

.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: var(--surface-3); color: var(--muted); white-space: nowrap; }
.badge.accent { background: var(--accent-soft); color: var(--accent); }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.bad { background: var(--danger-soft); color: var(--danger); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* ---------- standalone pages (install, login, share errors) ---------- */
.solo-wrap { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 16px calc(32px + var(--safe-b)); }
.solo-card { width: 100%; max-width: 420px; }
.solo-card.wide { max-width: 560px; }
.solo-brand { margin-bottom: 40px; }
.solo-brand .wordmark { font-size: 26px; }
.solo-title { font-size: 28px; margin-bottom: 8px; }
.solo-sub { color: var(--muted); margin: 0 0 28px; }
.solo-foot { color: var(--faint); font-size: 12.5px; margin-top: 40px; }
.solo-alt { text-align: center; color: var(--muted); font-size: 14px; margin-top: 22px; }
.solo-alt a, .link { color: var(--accent); font-weight: 500; }
.checks { list-style: none; padding: 0; margin: 0 0 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; font-size: 13.5px; color: var(--muted); }
.checks li { display: flex; align-items: center; gap: 8px; }
.checks span { width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.checks .ok span { background: var(--ok-soft); }
.checks .ok span::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.checks .bad { color: var(--danger); }
.checks .bad span { background: var(--danger-soft); }
.checks .bad span::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--danger); }
.field.inline { grid-template-columns: 1fr 140px; align-items: center; }
.state-icon { width: 56px; height: 56px; border-radius: 16px; background: var(--surface-2); display: grid; place-items: center; font: 700 24px var(--f-brand); color: var(--accent); margin-bottom: 20px; }
.state-icon.bad { color: var(--danger); background: var(--danger-soft); }
.state-icon svg { width: 26px; height: 26px; }

/* ---------- app shell ---------- */
.shell { min-height: 100vh; min-height: 100dvh; }
.side { display: none; }
.main { min-width: 0; padding-bottom: calc(var(--nav) + var(--safe-b) + 24px); }

.topbar { position: sticky; top: 0; z-index: 30; height: var(--top); display: flex; align-items: center; gap: 4px; padding: 0 8px 0 16px;
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid transparent; transition: border-color .2s; }
.topbar.scrolled { border-bottom-color: var(--line); }
.topbar .t-brand { display: flex; align-items: center; }
.topbar .t-brand .wordmark { font-size: 20px; }
.topbar .t-brand .wordmark b { display: none; }
.topbar .grow { flex: 1; min-width: 0; }
.search { position: relative; flex: 1; max-width: 560px; display: none; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--faint); width: 18px; height: 18px; }
.search input { min-height: 44px; padding-left: 42px; border-radius: 999px; background: var(--surface); }
.search.open { display: block; position: absolute; inset: 10px 8px; max-width: none; z-index: 2; }
.search.open input { padding-right: 48px; }
.search .close { position: absolute; right: 2px; top: 0; }

.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--surface-3); color: var(--text); display: grid; place-items: center;
  font: 600 13px var(--f-brand); flex: none; text-transform: uppercase; }
.avatar.lg { width: 52px; height: 52px; font-size: 18px; }
.avatar.accent { background: var(--accent); color: var(--accent-ink); }

/* bottom navigation (mobile) */
.bnav { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; height: calc(var(--nav) + var(--safe-b)); padding-bottom: var(--safe-b);
  display: flex; background: color-mix(in srgb, var(--bg-elev) 90%, transparent); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--line); }
.bnav a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 11px; font-weight: 500; color: var(--faint); transition: color .15s; }
.bnav a svg { width: 22px; height: 22px; }
.bnav a.on { color: var(--text); }
.bnav a.on svg { color: var(--accent); }

.fab { position: fixed; z-index: 41; right: 16px; bottom: calc(var(--nav) + var(--safe-b) + 16px); width: 56px; height: 56px; border-radius: 18px;
  background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; box-shadow: 0 10px 30px -6px color-mix(in srgb, var(--accent) 55%, transparent);
  transition: transform .2s var(--ease); }
.fab:active { transform: scale(.94); }
.fab svg { width: 26px; height: 26px; stroke-width: 2.2; }

/* desktop shell */
@media (min-width: 1024px) {
  .shell { display: grid; grid-template-columns: var(--side) 1fr; }
  .side { display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; padding: 20px 14px; border-right: 1px solid var(--line); background: var(--bg-elev); overflow-y: auto; }
  .side .s-brand { padding: 6px 10px 26px; }
  .side .new { margin: 0 4px 18px; }
  .main { padding-bottom: 40px; }
  .bnav, .fab, .topbar .t-brand { display: none; }
  .topbar { padding: 0 24px; gap: 10px; }
  .search { display: block; }
  .m-only { display: none !important; }
}
@media (max-width: 1023.98px) { .d-only { display: none !important; } }

.nav-group { display: grid; gap: 2px; margin-bottom: 18px; }
.nav-title { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); padding: 0 12px 8px; }
.nav-item { display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 0 12px; border-radius: 10px; color: var(--muted); font-weight: 500; font-size: 14px; transition: background .15s, color .15s; }
.nav-item:hover { background: var(--surface-2); color: var(--text); }
.nav-item.on { background: var(--surface-2); color: var(--text); }
.nav-item.on svg { color: var(--accent); }
.nav-item .count { margin-left: auto; font-size: 12px; color: var(--faint); }

.storage-card { margin-top: auto; padding: 16px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.storage-card .row1 { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.storage-card strong { color: var(--text); font-weight: 600; font-size: 14px; }
.meter { height: 6px; border-radius: 6px; background: var(--surface-3); overflow: hidden; display: flex; }
.meter i { display: block; height: 100%; background: var(--accent); border-radius: 6px; transition: width .6s var(--ease); }
.meter i.warn { background: var(--danger); }
.meter.lg { height: 10px; }
.meter.split i { border-radius: 0; }
.meter.split i + i { margin-left: 2px; }

/* ---------- page content ---------- */
.page { padding: 8px 16px 24px; max-width: 1400px; margin: 0 auto; }
@media (min-width: 1024px) { .page { padding: 12px 32px 40px; } }
.page-head { display: flex; align-items: center; gap: 12px; min-height: 52px; margin: 6px 0 14px; flex-wrap: wrap; }
.page-head h1 { font-size: 24px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (min-width: 1024px) { .page-head h1 { font-size: 28px; } }
.page-head .actions { display: flex; gap: 8px; align-items: center; }
.page-sub { color: var(--muted); margin: -8px 0 20px; font-size: 14px; }

.crumbs { display: flex; align-items: center; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; font-family: var(--f-brand); font-size: 22px; font-weight: 600; white-space: nowrap; }
.crumbs::-webkit-scrollbar { display: none; }
.crumbs a, .crumbs button { padding: 4px 8px; border-radius: 8px; color: var(--muted); transition: background .15s, color .15s; }
.crumbs a:hover, .crumbs button:hover { background: var(--surface-2); color: var(--text); }
.crumbs > :first-child { padding-left: 0; }
.crumbs .cur { color: var(--text); padding: 4px 8px; }
.crumbs .sep { color: var(--faint); font-weight: 400; }
@media (min-width: 1024px) { .crumbs { font-size: 26px; } }

.toolbar { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.toolbar .grow { flex: 1; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; margin-right: auto; flex: 1; min-width: 0; }
.chips::-webkit-scrollbar { display: none; }
.chip { min-height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); font-size: 13px; font-weight: 500; white-space: nowrap; display: inline-flex; align-items: center; }
.chip.on { background: var(--text); color: var(--bg); border-color: var(--text); }

/* ---------- file list ---------- */
.list { display: grid; }
.list-head { display: none; }
.item { position: relative; display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 14px; min-height: 64px; padding: 8px 4px 8px 6px;
  border-radius: var(--r); user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; transition: background .12s; cursor: default; }
.item + .item::before { content: ""; position: absolute; top: 0; left: 64px; right: 8px; height: 1px; background: var(--line); }
.item:hover { background: var(--surface); }
.item:hover::before, .item:hover + .item::before { opacity: 0; }
.item.sel { background: var(--accent-soft); }
.item.sel::before, .item.sel + .item::before { opacity: 0; }
.item.drop { outline: 2px dashed var(--accent); outline-offset: -2px; }
.item .name { min-width: 0; }
.item .name b { display: block; font-weight: 500; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item .name small { display: flex; gap: 6px; align-items: center; color: var(--faint); font-size: 12.5px; margin-top: 2px; white-space: nowrap; overflow: hidden; }
.item .name small svg { width: 13px; height: 13px; }
.item .col { display: none; color: var(--muted); font-size: 13.5px; white-space: nowrap; }
.item .more { color: var(--faint); }
.item .star-mark { color: var(--accent); }

@media (min-width: 768px) {
  .list-head, .item { grid-template-columns: 40px minmax(0, 1fr) 140px 110px 44px; }
  .list-head { display: grid; gap: 14px; padding: 0 4px 8px 6px; font-size: 12px; font-weight: 500; color: var(--faint); border-bottom: 1px solid var(--line); margin-bottom: 4px; }
  .list-head span:first-child { grid-column: 1 / 3; padding-left: 0; }
  .item { min-height: 56px; }
  .item .col { display: block; }
  .item + .item::before { left: 60px; }
  .item .name small { display: none; }
  .item .name small.always { display: flex; }
}

/* file glyphs */
.ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); position: relative; overflow: hidden; flex: none; }
.ico svg { width: 22px; height: 22px; }
.ico.folder { background: var(--accent-soft); color: var(--accent); }
.ico.image { color: #7cc4ff; background: rgba(124,196,255,.1); }
.ico.video { color: #ff8db5; background: rgba(255,141,181,.1); }
.ico.audio { color: #b79bff; background: rgba(183,155,255,.1); }
.ico.pdf { color: #ff7a6b; background: rgba(255,122,107,.1); }
.ico.doc { color: #6ba8ff; background: rgba(107,168,255,.1); }
.ico.sheet { color: #5fd08a; background: rgba(95,208,138,.1); }
.ico.archive { color: #d9b36c; background: rgba(217,179,108,.12); }
.ico.code { color: #9fd3c7; background: rgba(159,211,199,.1); }
.ico img.thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 768px) { .ico { width: 40px; height: 40px; border-radius: 11px; } }
.item.sel .ico::after { content: ""; position: absolute; inset: 0; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 20px no-repeat; }

/* grid view */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 560px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; } }
.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; transition: border-color .15s, transform .15s; }
.card:hover { border-color: var(--line-2); }
.card.sel { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.card .art { aspect-ratio: 4 / 3; display: grid; place-items: center; background: var(--surface-2); position: relative; overflow: hidden; }
.card .art .ico { width: 56px; height: 56px; border-radius: 16px; }
.card .art .ico svg { width: 28px; height: 28px; }
.card .art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card .meta { display: flex; align-items: center; gap: 4px; padding: 10px 4px 10px 12px; }
.card .meta div { flex: 1; min-width: 0; }
.card .meta b { display: block; font-weight: 500; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card .meta small { color: var(--faint); font-size: 12px; }
.card .more { width: 36px; height: 36px; }
.card.folder .art { aspect-ratio: auto; height: 72px; background: transparent; place-items: center start; padding-left: 14px; }
.card.sel .art::after { content: ""; position: absolute; top: 10px; left: 10px; width: 24px; height: 24px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 14px no-repeat; }

.section-label { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin: 18px 0 10px; }

/* selection bar */
.selbar { position: sticky; top: 0; z-index: 35; height: var(--top); display: flex; align-items: center; gap: 4px; padding: 0 8px;
  background: var(--bg-elev); border-bottom: 1px solid var(--line); animation: drop .2s var(--ease); }
.selbar strong { flex: 1; font-weight: 600; font-size: 16px; padding-left: 4px; }
@keyframes drop { from { transform: translateY(-8px); opacity: 0; } }
@media (min-width: 1024px) { .selbar { padding: 0 24px; } }

/* empty states & skeletons */
.empty { text-align: center; padding: 64px 24px; max-width: 380px; margin: 0 auto; }
.empty-art { width: 88px; height: 88px; margin: 0 auto 22px; border-radius: 26px; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; color: var(--accent); }
.empty-art svg { width: 36px; height: 36px; stroke-width: 1.5; }
.empty h3 { font-size: 18px; margin-bottom: 6px; }
.empty p { color: var(--muted); margin: 0 0 22px; font-size: 14px; }
.skel { background: linear-gradient(90deg, var(--surface) 0, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--r); }
@keyframes shimmer { to { background-position: -200% 0; } }
.skel-row { height: 56px; margin-bottom: 8px; }

/* drag & drop overlay */
.dropzone { position: fixed; inset: 0; z-index: 80; background: color-mix(in srgb, var(--bg) 70%, transparent); backdrop-filter: blur(6px); display: none; place-items: center; pointer-events: none; }
.dropzone.on { display: grid; }
.dropzone div { padding: 40px 56px; border: 2px dashed var(--accent); border-radius: var(--r-xl); text-align: center; background: var(--surface); }
.dropzone svg { width: 36px; height: 36px; color: var(--accent); margin-bottom: 10px; }
.dropzone h3 { font-size: 20px; }

/* ---------- overlays: sheet (mobile) / modal & menu (desktop) ---------- */
.scrim { position: fixed; inset: 0; z-index: 90; background: var(--scrim); animation: fade .2s; }
.scrim.clear { background: transparent; }
@keyframes fade { from { opacity: 0; } }
.sheet { position: fixed; z-index: 91; left: 0; right: 0; bottom: 0; max-height: 92vh; max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain;
  background: var(--bg-elev); border-radius: var(--r-xl) var(--r-xl) 0 0; padding: 8px 0 calc(16px + var(--safe-b)); box-shadow: var(--shadow);
  animation: up .28s var(--ease); border-top: 1px solid var(--line); }
@keyframes up { from { transform: translateY(100%); } }
.sheet .grab { width: 40px; height: 4px; border-radius: 4px; background: var(--surface-3); margin: 4px auto 10px; }
.sheet-head { display: flex; align-items: center; gap: 12px; padding: 4px 20px 14px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.sheet-head .ico { width: 40px; height: 40px; }
.sheet-head div { min-width: 0; flex: 1; }
.sheet-head b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sheet-head small { color: var(--faint); font-size: 12.5px; }
.menu-item { display: flex; align-items: center; gap: 16px; width: 100%; min-height: 52px; padding: 0 22px; text-align: left; font-size: 15px; transition: background .12s; }
.menu-item:hover, .menu-item:focus-visible { background: var(--surface-2); outline: none; }
.menu-item svg { color: var(--muted); }
.menu-item.danger, .menu-item.danger svg { color: var(--danger); }
.menu-sep { height: 1px; background: var(--line); margin: 6px 0; }

.modal-body { padding: 4px 20px 8px; }
.modal-title { font-size: 20px; padding: 6px 20px 4px; }
.modal-sub { color: var(--muted); font-size: 14px; padding: 0 20px 14px; margin: 0; }
.modal-foot { display: flex; gap: 10px; padding: 18px 20px 4px; }
.modal-foot .btn { flex: 1; min-height: 48px; }

@media (min-width: 640px) {
  .sheet.modal { left: 50%; top: 50%; bottom: auto; right: auto; width: min(480px, calc(100vw - 32px)); transform: translate(-50%, -50%); border-radius: var(--r-xl);
    padding: 20px 0 16px; animation: pop .22s var(--ease); max-height: 86vh; border: 1px solid var(--line); }
  .sheet.modal.wide { width: min(640px, calc(100vw - 32px)); }
  .sheet.modal .grab { display: none; }
  .modal-foot { justify-content: flex-end; }
  .modal-foot .btn { flex: none; min-height: 42px; }
  .sheet.menu { left: auto; right: auto; bottom: auto; width: 260px; border-radius: 14px; padding: 6px 0; animation: pop .14s var(--ease); border: 1px solid var(--line-2); max-height: 80vh; }
  .sheet.menu .grab { display: none; }
  .sheet.menu .sheet-head { padding: 8px 16px 10px; }
  .sheet.menu .sheet-head .ico { display: none; }
  .sheet.menu .menu-item { min-height: 40px; padding: 0 16px; font-size: 14px; gap: 12px; }
  .sheet.menu .menu-item svg { width: 18px; height: 18px; }
}
@keyframes pop { from { opacity: 0; transform: translate(-50%, -48%) scale(.98); } }
.sheet.menu { animation-name: up; }
@media (min-width: 640px) { .sheet.menu { animation-name: fade; } }

/* preview */
.viewer { position: fixed; inset: 0; z-index: 95; background: #000; display: flex; flex-direction: column; animation: fade .2s; color: #f4f4f2; }
.viewer-top { display: flex; align-items: center; gap: 4px; padding: 8px 8px 8px 16px; padding-top: max(8px, env(safe-area-inset-top)); background: linear-gradient(#000c, #0000); position: relative; z-index: 2; }
.viewer-top .title { flex: 1; min-width: 0; }
.viewer-top b { display: block; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.viewer-top small { color: #a3a3a8; font-size: 12px; }
.viewer .icon-btn { color: #ddd; }
.viewer .icon-btn:hover { background: #ffffff1a; color: #fff; }
.viewer-stage { flex: 1; min-height: 0; display: grid; place-items: center; padding: 0 0 calc(12px + var(--safe-b)); position: relative; touch-action: pan-y; }
.viewer-stage img, .viewer-stage video { max-width: 100%; max-height: 100%; object-fit: contain; }
.viewer-stage iframe { width: 100%; height: 100%; border: 0; background: #fff; }
.viewer-stage pre { width: min(960px, 100%); height: 100%; margin: 0; overflow: auto; padding: 20px; background: #111; color: #e8e8e6; font: 13px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; word-break: break-word; border-radius: 12px; }
.viewer-stage .nofile { text-align: center; color: #a3a3a8; }
.viewer-stage .nofile .ico { margin: 0 auto 16px; width: 72px; height: 72px; border-radius: 20px; }
.viewer-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; background: #ffffff14; display: grid; place-items: center; color: #fff; }
.viewer-nav.prev { left: 12px; }
.viewer-nav.next { right: 12px; }
@media (max-width: 640px) { .viewer-nav { display: none; } }

/* toasts */
.toasts { position: fixed; z-index: 120; left: 16px; right: 16px; bottom: calc(var(--nav) + var(--safe-b) + 84px); display: grid; gap: 8px; justify-items: center; pointer-events: none; }
@media (min-width: 1024px) { .toasts { left: auto; right: 24px; bottom: 24px; justify-items: end; } }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 12px; max-width: 440px; padding: 12px 14px 12px 16px; border-radius: 14px;
  background: var(--text); color: var(--bg); font-size: 14px; font-weight: 500; box-shadow: var(--shadow); animation: up .25s var(--ease); }
.toast.error { background: var(--danger); color: #fff; }
.toast button { color: var(--accent); font-weight: 600; padding: 4px 6px; }
.toast.error button { color: #fff; text-decoration: underline; }
.toast.out { opacity: 0; transform: translateY(8px); transition: .2s; }

/* upload tray */
.tray { position: fixed; z-index: 60; left: 12px; right: 12px; bottom: calc(var(--nav) + var(--safe-b) + 12px); background: var(--bg-elev); border: 1px solid var(--line-2); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; animation: up .25s var(--ease); }
@media (min-width: 1024px) { .tray { left: auto; right: 24px; bottom: 24px; width: 400px; } }
.tray-head { display: flex; align-items: center; gap: 8px; padding: 10px 8px 10px 16px; }
.tray-head div { flex: 1; min-width: 0; }
.tray-head b { display: block; font-size: 14px; font-weight: 600; }
.tray-head small { color: var(--muted); font-size: 12.5px; }
.tray-head .icon-btn { width: 36px; height: 36px; }
.tray-body { max-height: 40vh; overflow-y: auto; border-top: 1px solid var(--line); }
.tray.min .tray-body { display: none; }
.up { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 10px 16px; align-items: center; border-bottom: 1px solid var(--line); }
.up:last-child { border-bottom: 0; }
.up b { font-size: 13.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up small { color: var(--faint); font-size: 12px; grid-column: 1; }
.up .meter { grid-column: 1 / -1; height: 3px; }
.up.done small { color: var(--ok); }
.up.err small { color: var(--danger); white-space: normal; }
.up .icon-btn { width: 32px; height: 32px; grid-row: 1 / 3; grid-column: 2; }
.tray-bar { height: 2px; background: var(--surface-3); }
.tray-bar i { display: block; height: 100%; background: var(--accent); transition: width .3s; }

/* ---------- panels (admin, settings) ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.panel-pad { padding: 18px; }
@media (min-width: 768px) { .panel-pad { padding: 22px 24px; } }
.panel-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.panel-head h3 { font-size: 16px; flex: 1; }
@media (min-width: 768px) { .panel-head { padding: 18px 24px; } }

.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
.stat { padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); min-width: 0; }
.stat .k { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.stat .k svg { width: 16px; height: 16px; color: var(--faint); }
.stat .v { font: 600 24px/1.2 var(--f-brand); margin-top: 10px; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat .s { font-size: 12.5px; color: var(--faint); margin-top: 2px; }
@media (min-width: 768px) { .stat { padding: 20px; } .stat .v { font-size: 28px; } }

.cols { display: grid; gap: 16px; }
@media (min-width: 1100px) { .cols { grid-template-columns: 1.5fr 1fr; } }
.stack { display: grid; gap: 16px; align-content: start; }

.pool-hero { padding: 20px; display: grid; gap: 16px; }
@media (min-width: 768px) { .pool-hero { padding: 24px; } }
.pool-hero .big { font: 600 34px/1 var(--f-brand); letter-spacing: -.03em; }
.pool-hero .big small { font: 500 15px var(--f-ui); color: var(--muted); letter-spacing: 0; margin-left: 6px; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 9px; height: 9px; border-radius: 3px; }

.bars { display: flex; align-items: flex-end; gap: 6px; height: 120px; padding-top: 8px; }
.bars div { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; position: relative; }
.bars i { display: block; background: var(--surface-3); border-radius: 4px 4px 2px 2px; min-height: 3px; transition: height .5s var(--ease); }
.bars div:last-child i { background: var(--accent); }
.bars div:hover i { background: var(--accent); }
.bars-x { display: flex; justify-content: space-between; color: var(--faint); font-size: 11.5px; margin-top: 8px; }

.kv { display: grid; gap: 0; }
.kv > div { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; min-width: 0; }
.kv > div:last-child { border-bottom: 0; }
.kv span { color: var(--muted); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kv b { font-weight: 500; white-space: nowrap; }

/* drive cards */
.drives { display: grid; gap: 12px; }
@media (min-width: 720px) { .drives { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1400px) { .drives { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.drive { padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); display: grid; gap: 14px; min-width: 0; }
.drive.off { opacity: .6; }
.drive-top { display: flex; gap: 12px; align-items: center; min-width: 0; }
.drive-top > div { flex: 1; min-width: 0; }
.drive-top b { display: block; font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drive-top small { display: block; color: var(--faint); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drive-top .icon-btn { margin-right: -10px; }
.plogo { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--surface-2); border: 1px solid var(--line); }
.plogo svg { width: 22px; height: 22px; stroke: none; }
.plogo.local svg, .plogo.webdav svg, .plogo.s3 svg { stroke: currentColor; fill: none; color: var(--muted); }
.drive-nums { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.drive-nums b { color: var(--text); font-weight: 600; }
.drive-err { font-size: 12.5px; color: var(--danger); background: var(--danger-soft); border-radius: 10px; padding: 8px 10px; word-break: break-word; }
.drive-foot { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.provider-list { display: grid; gap: 8px; }
.provider { display: flex; align-items: center; gap: 14px; padding: 12px 14px; min-height: 64px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-2); text-align: left; width: 100%; transition: border-color .15s, background .15s; }
.provider:hover { border-color: var(--line-2); background: var(--surface-3); }
.provider > div { flex: 1; min-width: 0; }
.provider b { display: block; font-weight: 500; font-size: 14.5px; }
.provider small { color: var(--faint); font-size: 12.5px; }

/* users table → cards on mobile */
.utable { display: grid; }
.urow { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); min-width: 0; }
.urow:last-child { border-bottom: 0; }
.urow .who { min-width: 0; }
.urow .who b { display: flex; gap: 8px; align-items: center; font-weight: 500; overflow: hidden; white-space: nowrap; }
.urow .who b span { overflow: hidden; text-overflow: ellipsis; }
.urow .who small { display: block; color: var(--faint); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.urow .usage { grid-column: 2 / 4; font-size: 12.5px; color: var(--muted); display: grid; gap: 6px; }
.urow .usage .meter { height: 4px; }
.urow .last { display: none; color: var(--muted); font-size: 13px; }
.urow .umenu { grid-row: 1; grid-column: 3; }
.urow.head { display: none; }
@media (min-width: 900px) {
  .urow { grid-template-columns: 40px minmax(0, 1.4fr) minmax(0, 1fr) 120px 44px; padding: 12px 24px; }
  .urow .usage { grid-column: auto; }
  .urow .umenu { grid-row: auto; grid-column: auto; }
  .urow .last { display: block; }
  .urow.head { display: grid; font-size: 12px; color: var(--faint); font-weight: 500; padding-top: 14px; padding-bottom: 10px; }
  .urow.head span:first-child { grid-column: 1 / 3; }
}

.logs { display: grid; }
.log { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.log:last-child { border-bottom: 0; }
.log .a { font-weight: 500; }
.log .d { color: var(--muted); grid-column: 1 / -1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.log .t { color: var(--faint); font-size: 12.5px; white-space: nowrap; }
@media (min-width: 768px) {
  .log { grid-template-columns: 160px 140px minmax(0, 1fr) 120px 150px; padding: 11px 24px; align-items: center; }
  .log .d { grid-column: auto; }
}

.tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { padding: 12px 4px; margin-right: 18px; color: var(--muted); font-weight: 500; font-size: 14px; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a.on { color: var(--text); border-bottom-color: var(--accent); }

.set-grid { display: grid; gap: 16px; }
@media (min-width: 1100px) { .set-grid { grid-template-columns: 240px 1fr; gap: 32px; } }
.set-section { display: grid; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.set-section:first-child { padding-top: 0; }
.set-section:last-child { border-bottom: 0; }
.set-section h3 { font-size: 16px; }
.set-section > p { color: var(--muted); font-size: 13.5px; margin: -10px 0 0; }
.copy { display: flex; gap: 8px; align-items: center; padding: 6px 6px 6px 14px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line); font: 13px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; min-width: 0; }
.copy code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.copy code::-webkit-scrollbar { display: none; }
.steps { margin: 0; padding-left: 20px; color: var(--muted); font-size: 13.5px; display: grid; gap: 6px; }
.steps b { color: var(--text); font-weight: 500; }
.steps a { color: var(--accent); }
details.guide { border: 1px solid var(--line); border-radius: var(--r); padding: 0 14px; background: var(--surface-2); }
details.guide summary { cursor: pointer; padding: 12px 0; font-size: 14px; font-weight: 500; list-style: none; display: flex; align-items: center; gap: 8px; }
details.guide summary::-webkit-details-marker { display: none; }
details.guide summary::after { content: "+"; margin-left: auto; color: var(--faint); font-size: 18px; }
details.guide[open] summary::after { content: "–"; }
details.guide[open] { padding-bottom: 14px; }
.sticky-save { position: sticky; bottom: calc(var(--nav) + var(--safe-b) + 12px); display: flex; justify-content: flex-end; margin-top: 16px; z-index: 5; }
@media (min-width: 1024px) { .sticky-save { bottom: 20px; } }
.sticky-save .btn { box-shadow: var(--shadow); }

/* folder picker */
.picker { max-height: 46vh; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-2); }
.picker button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 0 12px; text-align: left; font-size: 14px; }
.picker button:hover { background: var(--surface-3); }
.picker button.on { background: var(--accent-soft); color: var(--text); }
.picker button svg { color: var(--accent); width: 18px; height: 18px; }
.picker button[disabled] { opacity: .4; }

/* profile sheet */
.me-card { display: flex; gap: 14px; align-items: center; padding: 6px 20px 18px; }
.me-card b { display: block; font-weight: 600; font-size: 16px; }
.me-card small { color: var(--muted); font-size: 13px; }

/* share page */
.share-page { min-height: 100vh; }
.share-top { display: flex; align-items: center; gap: 12px; padding: 16px; max-width: 1100px; margin: 0 auto; flex-wrap: wrap; }
.share-brand .wordmark { font-size: 20px; }
.share-by { margin-left: auto; color: var(--muted); font-size: 13.5px; }
.share-by strong { color: var(--text); font-weight: 500; }
.share-main { max-width: 1100px; margin: 0 auto; padding: 8px 16px calc(40px + var(--safe-b)); }
.share-file { display: grid; gap: 16px; }
.share-preview { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); min-height: 260px; display: grid; place-items: center; overflow: hidden; padding: 24px; gap: 20px; }
.share-preview.image, .share-preview.video { padding: 0; background: #000; }
.share-preview img, .share-preview video { max-height: 72vh; width: 100%; object-fit: contain; display: block; }
.share-preview iframe { width: 100%; height: 72vh; border: 0; background: #fff; }
.share-preview.pdf { padding: 0; }
.share-preview audio { width: min(480px, 100%); }
.file-glyph.big { width: 96px; height: 120px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line-2); position: relative; }
.file-glyph.big::after { content: attr(data-ext); position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); font: 700 14px var(--f-brand); color: var(--accent); }
.share-meta { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.share-meta h1 { font-size: 22px; word-break: break-word; }
.share-meta p { color: var(--muted); margin: 4px 0 0; font-size: 14px; }
@media (max-width: 560px) { .share-meta .btn { width: 100%; } }
.share-head { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.share-head .crumbs { font-size: 20px; }
@media (max-width: 560px) { .share-head .btn span { display: none; } .share-head .btn { width: 44px; padding: 0; } }
.rows { list-style: none; margin: 0; padding: 0; }
.row { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 8px 6px; border-bottom: 1px solid var(--line); border-radius: 0; }
.row:hover { background: var(--surface); }
.row .ico::after { content: attr(data-ext); font: 700 10px var(--f-brand); letter-spacing: .02em; }
.row .ico.folder::after { content: ""; width: 20px; height: 15px; border-radius: 3px; background: currentColor; }
.row-name { flex: 1; min-width: 0; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-meta { color: var(--faint); font-size: 13px; white-space: nowrap; }
.row-act { width: 40px; height: 40px; display: grid; place-items: center; color: var(--muted); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
