/* Registered so the header collapse animates as one transition instead of
   being written on every scroll frame. */
@property --shear {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}

:root {
  --bg: #f6f4ef;
  --surface: #fffefb;
  --ink: #1b211e;
  --muted: #6f7973;
  --line: #e6e2d9;
  --accent: #2f6a55;
  --on-accent: #ffffff;
  --soft: #eaf1ec;
  --soft-line: #cfdcd4;
  --danger: #a5493a;
  --shadow: 0 1px 0 rgba(28, 40, 33, 0.03), 0 18px 40px -32px rgba(24, 48, 38, 0.55);
  --glow-a: rgba(47, 106, 85, 0.30);
  --glow-b: rgba(47, 106, 85, 0.18);
  --trail: rgba(47, 106, 85, 0.5);
  --star: rgba(27, 33, 30, 0.38);
  --shear: 0;
  transition: --shear 0.28s cubic-bezier(0.22, 0.61, 0.36, 1);
}

:root[data-theme="dark"] {
  --bg: #141815;
  --surface: #1a201c;
  --ink: #e9ece7;
  --muted: #98a39b;
  --line: #28312b;
  --accent: #8cc4a8;
  --on-accent: #10231b;
  --soft: #202b25;
  --soft-line: #34473c;
  --danger: #e09384;
  --shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
  --glow-a: rgba(140, 196, 168, 0.26);
  --glow-b: rgba(140, 196, 168, 0.15);
  --trail: rgba(158, 212, 184, 0.5);
  --star: rgba(233, 236, 231, 0.55);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(120% 55% at 50% -8%, var(--soft) 0%, var(--bg) 58%) fixed;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Ambient technology backdrop: a slow accent glow under a faint drifting
   dot matrix. Both layers sit behind the content and never take input. */
body::before {
  content: '';
  position: fixed;
  inset: -18%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(closest-side at 22% 24%, var(--glow-a), transparent 70%),
    radial-gradient(closest-side at 80% 74%, var(--glow-b), transparent 72%),
    radial-gradient(closest-side at 62% 6%, var(--glow-b), transparent 70%);
  animation: bg-drift 20s ease-in-out infinite alternate;
}

/* A slow star-trail field traces the RFID hero: long arcs turning around a
   far-off pole. The canvas is decorative and never takes input. */
#ambient {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

@keyframes bg-drift {
  from { transform: translate3d(-2.5%, -2%, 0) scale(1.02); }
  to { transform: translate3d(3%, 2.5%, 0) scale(1.12); }
}

@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
  :root { transition: none; }
}

.shell {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 20px calc(44px + env(safe-area-inset-bottom));
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: transparent;
}

/* The pane fades in with scroll instead of switching on at a threshold. */
.topbar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--bg) 74%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 65%, transparent);
  box-shadow: 0 18px 32px -30px rgba(12, 26, 19, 0.55);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  backdrop-filter: blur(18px) saturate(1.5);
  opacity: var(--shear);
  pointer-events: none;
}

.topbar-inner {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0 auto;
  padding:
    calc(max(24px, env(safe-area-inset-top)) - 15px * var(--shear))
    20px
    calc(14px - 5px * var(--shear));
}

.top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.brand {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
}

.apple-tile {
  --tile: 56px;
  --tile-svg: 31px;
  --tile-radius: 18px;
  display: grid;
  place-items: center;
  flex: none;
  width: calc(var(--tile) - 16px * var(--shear));
  height: calc(var(--tile) - 16px * var(--shear));
  margin-top: 1px;
  border: 1px solid var(--line);
  border-radius: calc(var(--tile-radius) - 6px * var(--shear));
  background: linear-gradient(150deg, var(--surface), var(--soft));
  color: var(--ink);
  box-shadow: var(--shadow);
}

.apple-tile svg {
  width: calc(var(--tile-svg) - 7px * var(--shear));
  height: calc(var(--tile-svg) - 7px * var(--shear));
}

.brand-copy { min-width: 0; }

h1 {
  --h1: 29px;
  --h1-min: 20px;
  margin: 0 0 calc(6px - 6px * var(--shear));
  font-size: calc(var(--h1) + (var(--h1-min) - var(--h1)) * var(--shear));
  line-height: 1.08;
  font-weight: 650;
  letter-spacing: -0.035em;
}

.lede {
  margin: 0;
  max-width: 34ch;
  max-height: calc(96px * (1 - var(--shear)));
  overflow: hidden;
  font-size: 14px;
  color: var(--muted);
  opacity: calc(1 - var(--shear) * 1.1);
  transform: translateY(calc(-3px * var(--shear)));
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.theme-btn svg { width: 17px; height: 17px; }
.theme-btn .i-moon { display: none; }
:root[data-theme="dark"] .theme-btn .i-sun { display: none; }
:root[data-theme="dark"] .theme-btn .i-moon { display: block; }

/* ---- tabs -------------------------------------------------------------- */
.tabs-slot { margin-top: calc(14px - 6px * var(--shear)); }
.tabs-slot:empty { margin-top: 0; }

.tabs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 4px;
  width: 100%;
  padding: calc(4px - 1px * var(--shear));
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  height: calc(42px - 8px * var(--shear));
  padding: 0 4px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: calc(13.5px - 1px * var(--shear));
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, transform 0.14s ease;
}

.tab:hover { color: var(--ink); }
.tab:active { transform: scale(0.985); }
.tab.is-active { background: var(--soft); color: var(--ink); }

.tab-icon {
  display: grid;
  place-items: center;
  flex: none;
  color: var(--accent);
  opacity: calc(1 - var(--shear) * 1.6);
}
.tab-icon svg { display: block; width: 16px; height: 16px; }

.tab-count {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 11px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
}

.panel[hidden] { display: none; }

.panel { animation: panel-in 0.18s ease; }

@keyframes panel-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .panel { animation: none; }
}

.card {
  margin-top: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.card-head { margin-bottom: 14px; }

.card-head h2 {
  margin: 0;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.card-head p {
  margin: 3px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.card-head.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.greet { padding: 2px 4px 0; }

.greet p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  letter-spacing: -0.01em;
}

.greet strong {
  font-size: 17px;
  font-weight: 650;
  color: var(--ink);
}

.owner-line {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}

/* ---- admin checklist --------------------------------------------------- */
.checks { list-style: none; margin: 2px 0 0; padding: 0; }

.check {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.check:last-child { border-bottom: 0; padding-bottom: 2px; }

.check-mark {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--soft);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
}

.check-label { font-size: 13.5px; font-weight: 500; }

.check-value {
  font-size: 12.5px;
  color: var(--muted);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* The small line under "Ruang penyimpanan" explains quota at a glance. */
.check-note {
  margin: -4px 0 2px;
  padding-left: 32px;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.storage-trend {
  margin-top: 16px;
  padding: 14px 14px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--soft);
}

.trend-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.trend-head h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
}

.trend-key { display: flex; gap: 10px; }

.trend-key-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  color: var(--muted);
}

.trend-key-item::before {
  content: '';
  width: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

.trend-key-item.free::before {
  background: var(--muted);
  opacity: 0.55;
}

.trend-plot { margin-top: 10px; }
.trend-plot svg { display: block; width: 100%; height: auto; overflow: visible; }

.trend-grid {
  stroke: var(--soft-line);
  stroke-width: 1;
  stroke-dasharray: 3 4;
}

.trend-line {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trend-line.used { stroke: var(--accent); }

.trend-line.free {
  stroke: var(--muted);
  stroke-width: 1.4;
  opacity: 0.55;
  stroke-dasharray: 4 4;
}

.trend-dot { fill: var(--accent); }

.trend-note {
  margin: 8px 0 0;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--muted);
}

.user-admin-tag {
  margin-left: 8px;
  padding: 2px 7px;
  font-size: 9px;
  vertical-align: 2px;
}

.check-foot { margin-top: 14px; }

.check-action {
  height: 34px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.14s ease, border-color 0.14s ease;
}

.check-action:hover { color: var(--accent); border-color: var(--soft-line); }

.section-split { margin: 18px 0 16px; border-top: 1px solid var(--line); }

button { font-family: inherit; }

.primary {
  width: 100%;
  height: 50px;
  margin-top: 18px;
  border: 0;
  border-radius: 14px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.14s ease, opacity 0.14s ease;
}

.primary:active { transform: scale(0.992); }
.primary:disabled { opacity: 0.55; cursor: default; }

.ghost {
  height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.14s ease, border-color 0.14s ease;
}

.ghost:hover { color: var(--ink); border-color: var(--soft-line); }
.small { font-size: 12.5px; height: 34px; padding: 0 12px; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---- picker ------------------------------------------------------------ */
.drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 100%;
  padding: 24px 16px 22px;
  border: 1.5px dashed var(--soft-line);
  border-radius: 18px;
  background: var(--soft);
  color: inherit;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.drop:hover { border-color: var(--accent); }
.drop:active { background: var(--surface); }

.drop-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 8px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--accent);
  font-size: 19px;
  line-height: 1;
}

.drop-title { font-size: 15.5px; font-weight: 600; }

.drop-sub {
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
}

.tiny {
  margin: 12px 2px 0;
  font-size: 12px;
  color: var(--muted);
}

/* ---- queue ------------------------------------------------------------- */
.queue { margin-top: 14px; display: grid; gap: 12px; }

.queue-item {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.queue-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.queue-name {
  overflow: hidden;
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.queue-state {
  flex: none;
  font-size: 11.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.bar {
  height: 4px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}

.bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 0.18s ease;
}

.queue-item.done { border-color: var(--soft-line); }
.queue-item.failed .bar span { background: var(--danger); }
.queue-item.failed .queue-state { color: var(--danger); }

.retry {
  margin-top: 10px;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  cursor: pointer;
}

/* ---- file list --------------------------------------------------------- */
.files { list-style: none; margin: 0; padding: 0; }

.file {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.file:last-child { border-bottom: 0; padding-bottom: 4px; }

.chip {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--soft);
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  overflow: hidden;
}

.file-main { min-width: 0; }

.file-name {
  display: block;
  overflow: hidden;
  font-size: 14.5px;
  font-weight: 500;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.file-meta {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
}

.file-actions { display: flex; gap: 7px; }

.icon-btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.14s ease, border-color 0.14s ease;
}

.icon-btn:hover { color: var(--accent); border-color: var(--soft-line); }
.icon-btn.danger:hover { color: var(--danger); border-color: var(--danger); }
.icon-btn:disabled { opacity: 0.45; cursor: default; }

.btn-glyph { display: grid; place-items: center; color: inherit; }
.btn-glyph svg { display: block; width: 16px; height: 16px; }

.empty { padding: 22px 2px 6px; }
.empty p { margin: 0; font-size: 13.5px; color: var(--muted); }
.empty .empty-title { margin-bottom: 3px; font-size: 14.5px; font-weight: 600; color: var(--ink); }

/* ---- devices ----------------------------------------------------------- */
.head-actions { display: flex; align-items: center; gap: 8px; }

.admin-tag {
  padding: 4px 9px;
  border: 1px solid var(--soft-line);
  border-radius: 999px;
  background: var(--soft);
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-note {
  margin: 2px 0 4px;
  font-size: 12px;
  color: var(--muted);
}

.devices { margin-top: 2px; }

.device {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.device:last-child { border-bottom: 0; padding-bottom: 4px; }

.device-chip {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--accent);
}

.device-chip svg { display: block; width: 20px; height: 20px; }

.device-dot {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line);
}

.device-dot.on {
  background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}

.device-actions { display: flex; align-items: center; gap: 10px; }

.device-remove {
  height: 30px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.14s ease, border-color 0.14s ease, background 0.14s ease;
}

.device-remove:hover { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 45%, var(--line)); }
.device-remove.is-armed {
  background: var(--danger);
  border-color: var(--danger);
  color: #fff;
  font-weight: 600;
}
.device-remove:disabled { opacity: 0.5; cursor: default; }

.skeleton {
  height: 56px;
  margin-top: 10px;
  border-radius: 14px;
  background: linear-gradient(90deg, var(--soft) 25%, var(--surface) 50%, var(--soft) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite linear;
}

@keyframes shimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

/* ---- gate (setup / login) ---------------------------------------------- */
.gate {
  max-width: 400px;
  margin: 7vh auto 0;
  padding: 26px 22px 22px;
}

.gate h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.02em;
  text-align: center;
}

.gate-sub {
  margin: 8px 0 0;
  font-size: 13.5px;
  color: var(--muted);
  text-align: center;
}

.field { display: block; margin-top: 16px; }

.field-gap {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.field span {
  display: block;
  margin-bottom: 6px;
  font-size: 12.5px;
  color: var(--muted);
}

.field input {
  width: 100%;
  height: 54px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  font-size: 22px;
  letter-spacing: 0.42em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.field input:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}

.field input.text-input {
  padding: 0 16px;
  font-size: 17px;
  letter-spacing: 0;
  text-align: left;
  font-variant-numeric: normal;
}

.gate-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin-top: 14px;
}

.gate-links .gate-switch { margin: 0; }

.form-error {
  min-height: 19px;
  margin: 10px 0 0;
  font-size: 12.5px;
  color: var(--danger);
}

.gate-note {
  margin: 16px 0 0;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

.gate-switch {
  display: block;
  margin: 14px auto 0;
  padding: 6px 2px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.14s ease;
}

.gate-switch:hover { color: var(--accent); }

/* ---- misc -------------------------------------------------------------- */
.foot {
  margin-top: 26px;
  text-align: center;
}

.foot p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(26px + env(safe-area-inset-bottom));
  z-index: 10;
  max-width: min(90vw, 420px);
  padding: 10px 16px;
  border-radius: 999px;
  background: #1e2a24;
  color: #f4f7f4;
  font-size: 13px;
  opacity: 0;
  transform: translate(-50%, 10px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.show { opacity: 1; transform: translate(-50%, 0); }

.error-card p { margin: 0 0 12px; font-size: 14px; color: var(--muted); }

/* ---- image preview ------------------------------------------------------ */
.preview {
  width: min(94vw, 760px);
  max-width: 760px;
  max-height: 92vh;
  margin: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.preview::backdrop {
  background: rgba(10, 20, 15, 0.62);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px 10px 16px;
  border-bottom: 1px solid var(--line);
}

.preview-title {
  overflow: hidden;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.preview-body {
  display: grid;
  place-items: center;
  min-height: 160px;
  max-height: calc(92vh - 58px);
  padding: 12px;
  overflow: auto;
  background: color-mix(in srgb, var(--bg) 60%, transparent);
}

.preview-img {
  display: block;
  max-width: 100%;
  max-height: calc(92vh - 92px);
  border-radius: 12px;
  object-fit: contain;
}

.preview-note {
  margin: 18px 8px;
  font-size: 13.5px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 480px) {
  .shell { padding-left: 16px; padding-right: 16px; }
  .topbar-inner { padding-left: 16px; padding-right: 16px; }
  .brand { gap: 11px; }
  .apple-tile { --tile: 48px; --tile-svg: 27px; --tile-radius: 15px; }
  h1 { --h1: 23px; --h1-min: 18px; }
  .lede { font-size: 13.5px; }
  .ghost.small { padding: 0 10px; }
  .tab { gap: 5px; font-size: calc(12.5px - 0.5px * var(--shear)); }
  .tab-icon svg { width: 14px; height: 14px; }
  .tab-count { min-width: 18px; height: 18px; padding: 0 5px; font-size: 10px; line-height: 18px; }
  .check { grid-template-columns: 22px minmax(0, 1fr) auto; gap: 8px; }
  .check-value { font-size: 12px; }
}

@media (max-width: 380px) {
  h1 { --h1: 21px; --h1-min: 17px; }
  .card { padding: 17px; }
  .file { grid-template-columns: 38px minmax(0, 1fr) auto; gap: 10px; }
}
