/* core.css: design tokens + the shared components. Restyle an app mostly by changing the tokens below
   (colours, fonts, radius, shadow); fonts are loaded in web/head.html. Light and dark are both required. */
:root {
  --c-bg: #f5efe6;          /* page: drafting paper */
  --c-surface: #fffcf7;     /* cards, menus, inputs */
  --c-surface-2: #efe6d8;   /* subtle fills, hovers */
  --c-ink: #2a231e;         /* text */
  --c-muted: #6e6258;       /* secondary text */
  --c-faint: #9c8f83;       /* hints, placeholders */
  --c-line: #e2d6c4;        /* borders */
  --c-grid: rgba(120, 96, 70, .075); /* drafting grid lines */
  --c-brand: #c2522b;       /* terracotta: primary buttons, links, focus */
  --c-brand-ink: #ffffff;   /* text on brand */
  --c-brand-soft: #f6e1d5;  /* brand tints */
  --c-accent: #4f7f6a;      /* sage: a second colour for highlights */
  --c-accent-soft: #dfeae2;
  --c-good: #3d7a5a; --c-good-soft: #e1efe5;
  --c-warn: #9a6210; --c-warn-soft: #f8ead0;
  --c-bad: #b23a2a;  --c-bad-soft: #f8e1dc;
  --c-stage: #2a231e;       /* behind 3D views */
  --radius: 18px; --radius-sm: 12px;
  --shadow: 0 1px 0 rgba(42, 35, 30, .04), 0 12px 28px -14px rgba(60, 40, 20, .22);
  --shadow-lg: 0 24px 60px -18px rgba(60, 40, 20, .35);
  --font-body: "Work Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --maxw: 1180px;
  --header-h: 64px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --c-bg: #1a1512; --c-surface: #241d18; --c-surface-2: #2e251f; --c-ink: #f1e8dd; --c-muted: #b9aa9a; --c-faint: #8a7b6d;
    --c-line: #3a3029; --c-grid: rgba(241, 232, 221, .045); --c-brand: #e07a52; --c-brand-ink: #1a1512; --c-brand-soft: #3a2419;
    --c-accent: #8dbfa6; --c-accent-soft: #1f2d26;
    --c-good: #7fc79d; --c-good-soft: #18291f; --c-warn: #e9b35a; --c-warn-soft: #2e2311; --c-bad: #f08a78; --c-bad-soft: #351a15;
    --c-stage: #110d0b;
    --shadow: none; --shadow-lg: 0 24px 60px -12px rgba(0, 0, 0, .6); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --c-bg: #1a1512; --c-surface: #241d18; --c-surface-2: #2e251f; --c-ink: #f1e8dd; --c-muted: #b9aa9a; --c-faint: #8a7b6d;
  --c-line: #3a3029; --c-grid: rgba(241, 232, 221, .045); --c-brand: #e07a52; --c-brand-ink: #1a1512; --c-brand-soft: #3a2419;
  --c-accent: #8dbfa6; --c-accent-soft: #1f2d26;
  --c-good: #7fc79d; --c-good-soft: #18291f; --c-warn: #e9b35a; --c-warn-soft: #2e2311; --c-bad: #f08a78; --c-bad-soft: #351a15;
  --c-stage: #110d0b;
  --shadow: none; --shadow-lg: 0 24px 60px -12px rgba(0, 0, 0, .6); color-scheme: dark;
}

/* The app owns the page (not Anvil's theme). */
html, body { background: var(--c-bg) !important; color: var(--c-ink); }
/* drafting-paper grid behind every page */
.ui-shell { background-color: var(--c-bg); background-image: linear-gradient(var(--c-grid) 1px, transparent 1px), linear-gradient(90deg, var(--c-grid) 1px, transparent 1px);
  background-size: 28px 28px; background-position: -1px -1px; }
body { margin: 0; font: 16px/1.55 var(--font-body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
html.ui-modal-open { overflow: hidden; }

.ui, .ui *, .ui *::before, .ui *::after { box-sizing: border-box; }
.ui { font: 16px/1.55 var(--font-body); color: var(--c-ink); }
.ui h1, .ui h2, .ui h3, .ui h4 { font-family: var(--font-display); line-height: 1.12; margin: 0 0 .4em; letter-spacing: -.01em; font-weight: 600; color: var(--c-ink);
  font-variation-settings: "opsz" 72, "SOFT" 50; }
.ui h3, .ui h4 { font-variation-settings: "opsz" 24; }
.ui h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
.ui h2 { font-size: clamp(1.45rem, 3vw, 1.9rem); }
.ui h3 { font-size: 1.2rem; }
.ui h4 { font-size: 1rem; }
.ui p { margin: 0 0 .8em; }
.ui a { color: var(--c-brand); text-underline-offset: 3px; }
.ui [hidden] { display: none !important; }
.ui img { max-width: 100%; }
.ui .muted { color: var(--c-muted); }
.ui .faint { color: var(--c-faint); }
.ui .small { font-size: .875rem; }
.ui .eyebrow { font: 600 .74rem/1.2 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--c-brand); margin-bottom: 14px;
  display: inline-flex; align-items: center; gap: 10px; }
.ui .eyebrow::before { content: ""; width: 26px; height: 9px; border: solid currentColor; border-width: 0 1.5px; background: linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat; opacity: .8; }
.ui .mono { font-family: var(--font-mono); font-size: .92em; letter-spacing: -.01em; }
.ui-ic { width: 18px; height: 18px; flex: none; vertical-align: -3px; }

/* layout */
.ui-wrap { max-width: var(--maxw); margin: 0 auto; padding: 32px 24px 72px; }
.ui-narrow { max-width: 720px; margin-left: auto; margin-right: auto; }
.ui-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ui-row.end { justify-content: flex-end; }
.ui-row.between { justify-content: space-between; }
.ui-row.top { align-items: flex-start; }
.ui-spacer { flex: 1; }
.ui-stack > * + * { margin-top: 14px; }
.ui-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.ui-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ui-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.ui-page-head h1 { margin: 0; font-size: clamp(1.7rem, 3.4vw, 2.3rem); }
.ui-page-head p { margin: 6px 0 0; }

/* cards */
.ui-card { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.ui-card.flat { box-shadow: none; }
.ui-card.tight { padding: 14px 16px; }
.ui-card > :last-child { margin-bottom: 0; }

/* buttons */
.ui-btn { font: 600 .95rem/1.2 var(--font-body); display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; min-height: 44px; border-radius: var(--radius-sm); border: 1px solid var(--c-line); background: var(--c-surface); color: var(--c-ink);
  cursor: pointer; text-decoration: none; white-space: nowrap; transition: transform .12s, background .15s, border-color .15s, opacity .15s; }
.ui-btn:hover { border-color: var(--c-ink); }
.ui-btn:active { transform: translateY(1px); }
.ui-btn.primary { background: var(--c-brand); border-color: var(--c-brand); color: var(--c-brand-ink); box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 6px 16px -8px color-mix(in srgb, var(--c-brand) 80%, transparent); }
.ui-btn.accent { background: var(--c-accent); border-color: var(--c-accent); color: #fff; }
.ui-dark .ui-btn.accent { color: #13201a; }
.ui-btn.primary:hover { opacity: .92; }
.ui-btn.ghost { background: transparent; border-color: transparent; color: var(--c-muted); }
.ui-btn.ghost:hover { background: var(--c-surface-2); color: var(--c-ink); }
.ui-btn.danger { color: var(--c-bad); }
.ui-btn.danger:hover { border-color: var(--c-bad); }
.ui-btn.danger.solid { background: var(--c-bad); border-color: var(--c-bad); color: #fff; }
.ui-btn.sm { min-height: 34px; padding: 6px 12px; font-size: .85rem; }
.ui-btn.lg { min-height: 54px; padding: 14px 26px; font-size: 1.05rem; }
.ui-btn.icon { width: 40px; min-height: 40px; padding: 0; }
.ui-btn.block { width: 100%; }
.ui-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.ui-btn.is-busy { position: relative; color: transparent !important; }
.ui-btn.is-busy::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor;
  border-color: var(--c-muted) transparent var(--c-muted) transparent; animation: ui-spin .8s linear infinite; }
.ui-btn.primary.is-busy::after { border-color: var(--c-brand-ink) transparent var(--c-brand-ink) transparent; }
@keyframes ui-spin { to { transform: rotate(360deg); } }
.ui :focus-visible { outline: 3px solid color-mix(in srgb, var(--c-brand) 55%, transparent); outline-offset: 2px; }

/* forms */
.ui-field { display: block; }
.ui-field > span { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.ui-field > span em { font-style: normal; font-weight: 400; color: var(--c-muted); }
.ui input[type=text], .ui input[type=email], .ui input[type=password], .ui input[type=search], .ui input[type=number], .ui input[type=url],
.ui input[type=tel], .ui input[type=date], .ui input[type=time], .ui input[type=datetime-local], .ui select, .ui textarea {
  font: inherit; font-size: 1rem; color: var(--c-ink); background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius-sm);
  padding: 11px 13px; width: 100%; min-height: 46px; margin: 0; box-shadow: none; transition: border-color .15s, box-shadow .15s; }
.ui textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.ui input:focus, .ui select:focus, .ui textarea:focus { outline: none; border-color: var(--c-brand); box-shadow: 0 0 0 3px var(--c-brand-soft); }
.ui ::placeholder { color: var(--c-faint); }
.ui-hint { font-size: .85rem; color: var(--c-muted); margin: 6px 0 0; }
.ui-check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: .95rem; }
.ui-check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--c-brand); flex: none; }
.ui-error { background: var(--c-bad-soft); color: var(--c-bad); border-radius: var(--radius-sm); padding: 10px 14px; font-size: .92rem; }
.ui-note { background: var(--c-brand-soft); color: var(--c-ink); border-radius: var(--radius-sm); padding: 10px 14px; font-size: .92rem; }
.ui-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.ui-choice input { position: absolute; opacity: 0; pointer-events: none; }
.ui-choice span { display: flex; align-items: center; gap: 8px; padding: 11px 13px; border: 1px solid var(--c-line); border-radius: var(--radius-sm); cursor: pointer; font-weight: 500; background: var(--c-surface); }
.ui-choice input:checked + span { border-color: var(--c-brand); background: var(--c-brand-soft); }
.ui-choice input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--c-brand) 55%, transparent); }

/* small pieces */
.ui-badge { display: inline-flex; align-items: center; gap: 5px; font: 600 .74rem/1.3 var(--font-body); padding: 4px 9px; border-radius: 7px;
  background: var(--c-surface-2); color: var(--c-muted); white-space: nowrap; }
.ui-badge.brand { background: var(--c-brand-soft); color: var(--c-brand); }
.ui-badge.good { background: var(--c-good-soft); color: var(--c-good); }
.ui-badge.warn { background: var(--c-warn-soft); color: var(--c-warn); }
.ui-badge.bad { background: var(--c-bad-soft); color: var(--c-bad); }
.ui-badge.accent { background: var(--c-accent-soft); color: var(--c-accent); }
.ui-badge .ui-ic { width: 13px; height: 13px; }
.ui-seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--c-surface-2); border-radius: var(--radius-sm); border: 1px solid var(--c-line); }
.ui-seg button { font: 500 .85rem/1 var(--font-body); border: 0; background: none; color: var(--c-muted); padding: 8px 13px; border-radius: 9px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.ui-seg button.on { background: var(--c-surface); color: var(--c-ink); box-shadow: var(--shadow); }
.ui-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--c-line); margin-bottom: 22px; overflow-x: auto; scrollbar-width: none; }
.ui-tabs a, .ui-tabs button { font: 600 .92rem/1 var(--font-body); border: 0; background: none; color: var(--c-muted); padding: 12px 14px; border-bottom: 2px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap; display: inline-flex; gap: 7px; align-items: center; margin-bottom: -1px; }
.ui-tabs .on { color: var(--c-ink); border-bottom-color: var(--c-brand); }
.ui-tabs .count { font-size: .75rem; background: var(--c-surface-2); border-radius: 999px; padding: 2px 7px; }
.ui-empty { text-align: center; padding: 48px 20px; border: 1px dashed var(--c-line); border-radius: var(--radius); color: var(--c-muted); }
.ui-empty .ui-ic { width: 34px; height: 34px; color: var(--c-faint); margin-bottom: 8px; }
.ui-empty h3 { color: var(--c-ink); }
.ui-avatar { width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center; flex: none;
  background: var(--c-brand-soft); color: var(--c-brand); font: 700 .85rem/1 var(--font-body); }
.ui-list { display: grid; gap: 10px; }
.ui-item { display: flex; gap: 14px; align-items: flex-start; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 16px 18px; }
.ui-item .grow { flex: 1; min-width: 0; }
.ui-item h3 { margin: 0 0 4px; font-size: 1.05rem; }
.ui-item p { margin: 0; overflow-wrap: anywhere; }
.ui-skel { border-radius: var(--radius); background: linear-gradient(90deg, var(--c-surface-2), var(--c-surface), var(--c-surface-2)); background-size: 200% 100%;
  animation: ui-skel 1.2s ease-in-out infinite; min-height: 80px; }
@keyframes ui-skel { to { background-position: -200% 0; } }
.ui-stat { display: block; }
.ui-stat b { display: block; font: 600 2rem/1.1 var(--font-display); }
.ui-stat span { color: var(--c-muted); font-size: .9rem; }

/* header */
.ui-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--c-bg) 84%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--c-line); }
.ui-header-in { max-width: var(--maxw); margin: 0 auto; height: var(--header-h); padding: 0 24px; display: flex; align-items: center; gap: 22px; }
.ui-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--c-ink) !important; font: 600 1.3rem/1 var(--font-display); letter-spacing: -.01em; font-variation-settings: "opsz" 72, "SOFT" 100; }
.ui-brand img { width: 32px; height: 32px; border-radius: 9px; }
.ui-nav { display: flex; gap: 2px; }
.ui-nav a { display: inline-flex; align-items: center; gap: 7px; padding: 9px 13px; border-radius: var(--radius-sm); color: var(--c-muted); text-decoration: none; font-weight: 600; font-size: .93rem; }
.ui-nav a:hover { color: var(--c-ink); background: var(--c-surface-2); }
.ui-nav a.on { color: var(--c-ink); background: var(--c-surface-2); }
.ui-header-right { margin-left: auto; display: flex; align-items: center; gap: 8px; position: relative; }
.ui-avatar-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer; background: var(--c-accent); color: #fff; font: 600 .85rem/1 var(--font-body); }
.ui-dark .ui-avatar-btn { color: #13201a; }
.ui-menu { position: absolute; right: 0; top: calc(100% + 10px); width: 280px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 8px; z-index: 60; animation: ui-pop .14s ease-out; }
.ui-menu-head { padding: 10px 12px 12px; border-bottom: 1px solid var(--c-line); margin-bottom: 6px; display: grid; gap: 2px; overflow-wrap: anywhere; }
.ui-menu > a, .ui-menu > button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm); border: 0; background: none;
  font: 500 .95rem/1.2 var(--font-body); color: var(--c-ink); text-decoration: none; cursor: pointer; text-align: left; }
.ui-menu > a:hover, .ui-menu > button:hover { background: var(--c-surface-2); }
.ui-menu-block { padding: 8px 12px 10px; display: grid; gap: 8px; }
@keyframes ui-pop { from { opacity: 0; transform: translateY(-4px); } }

/* main + footer */
.ui-shell { min-height: 100vh; display: flex; flex-direction: column; }
.ui-main { flex: 1; }
.ui-shell.no-chrome .ui-header, .ui-shell.no-chrome .ui-footer, .ui-shell.no-chrome .ui-tabbar { display: none; }
.ui-footer { border-top: 1px solid var(--c-line); background: var(--c-surface); }
.ui-footer-in .ui-brand img { width: 28px; height: 28px; }
.ui-footer-in { max-width: var(--maxw); margin: 0 auto; padding: 32px 24px 40px; display: grid; grid-template-columns: 1fr auto; gap: 18px 24px; align-items: start; }
.ui-footer-brand p { margin: 8px 0 0; }
.ui-footer-links { display: flex; gap: 6px 18px; flex-wrap: wrap; justify-content: flex-end; }
.ui-footer-links a, .ui-footer-links button { font: 500 .92rem/1.4 var(--font-body); color: var(--c-muted); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: none; }
.ui-footer-links a:hover, .ui-footer-links button:hover { color: var(--c-ink); }
.ui-footer-legal { grid-column: 1 / -1; margin: 0; }

/* phone tab bar (shown on small screens when signed in) */
.ui-tabbar { display: none; }
.ui-tabbar:empty { display: none !important; }

/* toasts + modals */
.ui-toasts { position: fixed; z-index: 1000; left: 50%; bottom: 24px; transform: translateX(-50%); display: grid; gap: 8px; width: min(92vw, 440px); pointer-events: none; }
.ui-toast { display: flex; gap: 10px; align-items: center; background: var(--c-ink); color: var(--c-bg); padding: 13px 16px; border-radius: 14px; box-shadow: var(--shadow-lg);
  font-weight: 500; animation: ui-pop .2s ease-out; transition: opacity .3s, transform .3s; }
.ui-toast.error { background: var(--c-bad); color: #fff; }
.ui-toast.ok { background: var(--c-good); color: #fff; }
.ui-toast.out { opacity: 0; transform: translateY(8px); }
.ui-modal-wrap { position: fixed; inset: 0; z-index: 900; background: rgba(10, 12, 20, .5); display: grid; place-items: center; padding: 16px; overflow-y: auto; animation: ui-fade .15s; }
.ui-modal { position: relative; width: min(100%, 520px); background: var(--c-surface); border-radius: calc(var(--radius) + 4px); padding: 28px; box-shadow: var(--shadow-lg); animation: ui-pop .18s ease-out; outline: none; }
.ui-modal.wide { width: min(100%, 760px); }
.ui-modal h2 { padding-right: 40px; }
.ui-modal-x { position: absolute; top: 14px; right: 14px; }
@keyframes ui-fade { from { opacity: 0; } }

@media (max-width: 720px) {
  .ui-wrap { padding: 22px 16px 56px; }
  .ui-header-in { padding: 0 16px; gap: 12px; }
  .ui-nav { display: none; }
  .ui-brand span { font-size: 1.05rem; }
  .ui-header-right .ui-btn { padding: 9px 13px; min-height: 40px; font-size: .9rem; }
  .ui-shell.signed-in .ui-tabbar { display: flex; position: fixed; z-index: 45; left: 0; right: 0; bottom: 0; background: var(--c-surface); border-top: 1px solid var(--c-line);
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); }
  .ui-tabbar a { flex: 1; display: grid; justify-items: center; gap: 3px; padding: 6px 2px; border-radius: 12px; color: var(--c-muted); text-decoration: none; font: 600 .7rem/1 var(--font-body); }
  .ui-tabbar a .ui-ic { width: 22px; height: 22px; }
  .ui-tabbar a.on { color: var(--c-brand); }
  .ui-shell.signed-in:has(.ui-tabbar:not(:empty)) .ui-footer { padding-bottom: 72px; }
  .ui-footer-in { grid-template-columns: 1fr; }
  .ui-footer-links { justify-content: flex-start; }
  .ui-grid.two { grid-template-columns: 1fr; }
  .ui-menu { position: fixed; left: 12px; right: 12px; top: calc(var(--header-h) + 6px); width: auto; }
  .ui-modal { padding: 24px 18px; }
}
@media (max-width: 380px) {
  .ui-header-right .ui-btn.ghost { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ui *, .ui-toast, .ui-modal, .ui-menu { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}


/* ===== _cards.html ===== */
.ls-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.ls-card { display: flex; flex-direction: column; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); overflow: hidden;
  text-decoration: none; color: inherit; box-shadow: var(--shadow); transition: transform .16s, box-shadow .16s, border-color .16s; position: relative; }
.ls-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--c-brand) 40%, var(--c-line)); box-shadow: var(--shadow-lg); }
.ls-thumb { position: relative; aspect-ratio: 4 / 3; background: var(--c-stage); overflow: hidden; }
.ls-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; background: var(--c-stage); }
.ls-thumb .art { position: absolute; inset: 0; display: grid; place-items: center; background:
  linear-gradient(var(--c-grid) 1px, transparent 1px) 0 0 / 18px 18px, linear-gradient(90deg, var(--c-grid) 1px, transparent 1px) 0 0 / 18px 18px, var(--c-surface-2); }
.ls-thumb .art svg { width: 62%; height: auto; color: var(--c-muted); }
.ls-thumb.cover img { filter: saturate(.85) brightness(.82); }
.ls-tl { position: absolute; left: 10px; top: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.ls-tr { position: absolute; right: 10px; top: 10px; }
.ls-thumb .ui-badge { background: rgba(255, 252, 247, .92); color: #2a231e; backdrop-filter: blur(4px); }
.ls-thumb .ui-badge.bad { background: #f8e1dc; color: #b23a2a; }
.ls-thumb .ui-badge.warn { background: #f8ead0; color: #8a560c; }
.ls-thumb .ui-badge.brand { background: #c2522b; color: #fff; }
.ls-dim { position: absolute; left: 12px; right: 12px; bottom: 10px; height: 14px; display: flex; align-items: center; color: rgba(255, 252, 247, .92);
  font: 600 .7rem/1 var(--font-mono); text-shadow: 0 1px 2px rgba(0, 0, 0, .5); pointer-events: none; }
.ls-dim::before, .ls-dim::after { content: ""; flex: 1; height: 1.5px; background: currentColor; opacity: .75; }
.ls-dim span { padding: 0 8px; }
.ls-dim i { position: absolute; top: 0; bottom: 0; width: 1.5px; background: currentColor; opacity: .75; }
.ls-dim i:first-child { left: 0; } .ls-dim i:last-child { right: 0; }
.ls-prog { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px; color: #fff; background: linear-gradient(transparent, rgba(20, 14, 10, .78)); }
.ls-prog small { display: block; font: 500 .78rem/1.3 var(--font-body); margin-bottom: 7px; opacity: .95; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ls-prog .track { height: 5px; border-radius: 5px; background: rgba(255, 255, 255, .22); overflow: hidden; }
.ls-prog .track i { display: block; height: 100%; background: linear-gradient(90deg, #e07a52, #f4d35e); border-radius: 5px; transition: width .6s; }
.ls-prog .track.wait i { width: 30% !important; animation: ls-wait 1.6s ease-in-out infinite alternate; }
@keyframes ls-wait { from { transform: translateX(-20%); } to { transform: translateX(260%); } }
.ls-card-body { padding: 14px 16px 16px; display: grid; gap: 4px; }
.ls-card-body h3 { margin: 0; font-size: 1.12rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ls-card-body .meta { margin: 0; color: var(--c-muted); font-size: .88rem; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.ls-card-body .stats { margin: 2px 0 0; color: var(--c-faint); font: 500 .76rem/1.3 var(--font-mono); display: flex; gap: 10px; flex-wrap: wrap; }
.ls-card-body .stats .ui-ic { width: 13px; height: 13px; vertical-align: -2px; }
.ls-card .heart { display: inline-flex; gap: 4px; align-items: center; }
.ls-card .heart.on { color: var(--c-brand); }
.ls-card .heart.on .ui-ic { fill: currentColor; }
.ls-card.ready-pop { animation: ls-pop .9s ease-out; }
@keyframes ls-pop { 30% { transform: scale(1.03); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c-good) 45%, transparent); } }

/* ===== _viewer.html ===== */
.ls-view { position: relative; background: var(--c-stage); border-radius: var(--radius); overflow: hidden; min-height: 260px; isolation: isolate;
  touch-action: none; user-select: none; -webkit-user-select: none; }
.ls-view canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; outline: none; }
.ls-view.full { position: fixed !important; inset: 0; z-index: 800; border-radius: 0; height: 100% !important; }
.ls-overlay { position: absolute; inset: 0; pointer-events: none; z-index: 2; overflow: hidden; }
.ls-pin { position: absolute; left: 0; top: 0; transform: translate(-50%, -100%); pointer-events: auto; cursor: pointer; display: flex; flex-direction: column;
  align-items: center; gap: 2px; will-change: transform; }
.ls-pin b { font: 600 .74rem/1.2 var(--font-body); color: #fff; background: rgba(42, 35, 30, .82); padding: 4px 8px; border-radius: 7px; white-space: nowrap;
  max-width: 180px; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 4px 14px rgba(0, 0, 0, .25); }
.ls-pin i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; background: #c2522b; box-shadow: 0 0 0 3px rgba(194, 82, 43, .35); }
.ls-pin.accent i { background: #4f7f6a; box-shadow: 0 0 0 3px rgba(79, 127, 106, .35); }
.ls-pin.gold i { background: #d9a43c; box-shadow: 0 0 0 3px rgba(217, 164, 60, .35); }
.ls-pin.ink i { background: #2a231e; }
.ls-pin.open b { white-space: normal; max-width: 220px; }
.ls-pin small { display: none; font-weight: 400; opacity: .85; }
.ls-pin.open small { display: block; margin-top: 2px; }
.ls-measure { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); font: 600 .78rem/1 var(--font-mono); color: #2a231e; background: #f4d35e;
  padding: 5px 8px; border-radius: 6px; white-space: nowrap; box-shadow: 0 4px 12px rgba(0, 0, 0, .3); }
.ls-hint { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); z-index: 3; background: rgba(42, 35, 30, .78); color: #f5efe6; border-radius: 10px;
  padding: 8px 12px; font: 500 .85rem/1.3 var(--font-body); pointer-events: none; text-align: center; max-width: calc(100% - 28px); }
.ls-load { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; color: #e9dfd2; text-align: center; padding: 20px;
  background: radial-gradient(circle at 50% 45%, rgba(194, 82, 43, .18), transparent 60%), var(--c-stage); }
.ls-load .bar { width: min(240px, 70vw); height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .12); margin: 14px auto 8px; overflow: hidden; }
.ls-load .bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #c2522b, #e07a52); transition: width .2s; }
.ls-load .ls-load-ic { width: 54px; height: 54px; margin: 0 auto; animation: ls-bob 1.6s ease-in-out infinite; }
@keyframes ls-bob { 50% { transform: translateY(-6px) rotate(-4deg); } }
.ls-load small { font: 500 .78rem/1.2 var(--font-mono); opacity: .7; }
.ls-pip { position: absolute; right: 12px; bottom: 12px; z-index: 3; width: min(34%, 220px); aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; border: 2px solid rgba(255, 255, 255, .85);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .4); background: #000; pointer-events: none; }
.ls-pip img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ls-pip span { position: absolute; left: 6px; bottom: 5px; font: 600 .66rem/1 var(--font-mono); color: #fff; text-shadow: 0 1px 3px #000; }
.ls-joy { position: absolute; left: 18px; bottom: 18px; width: 108px; height: 108px; border-radius: 50%; z-index: 3; background: rgba(255, 255, 255, .12);
  border: 1.5px solid rgba(255, 255, 255, .35); pointer-events: auto; touch-action: none; }
.ls-joy i { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: rgba(255, 255, 255, .8); }
.ls-scalebar { position: absolute; left: 14px; bottom: 14px; z-index: 3; color: #f5efe6; font: 600 .72rem/1 var(--font-mono); pointer-events: none; }
.ls-scalebar i { display: block; height: 8px; border: 2px solid #f5efe6; border-top: 0; margin-bottom: 4px; }
.ls-compass { position: absolute; right: 14px; top: 14px; z-index: 3; width: 34px; height: 34px; border-radius: 50%; background: rgba(42, 35, 30, .6); color: #f5efe6;
  display: grid; place-items: center; font: 700 .7rem/1 var(--font-mono); pointer-events: none; }

/* control bar under a view */
.ls-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 10px 0 0; }
.ls-bar .ui-seg button { padding: 8px 11px; }
.ls-bar .ui-seg .ui-ic, .ls-bar .ui-btn .ui-ic { width: 17px; height: 17px; }
.ls-bar .ui-btn.sm { min-height: 38px; }
.ls-bar .ui-btn.on { background: var(--c-brand-soft); border-color: var(--c-brand); color: var(--c-brand); }
.ls-bar .grow { flex: 1; }
.ls-replay { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 12px; border: 1px solid var(--c-line); border-radius: var(--radius-sm);
  background: var(--c-surface); margin-top: 8px; }
.ls-replay input[type=range] { flex: 1; accent-color: var(--c-brand); min-width: 60px; }
.ls-replay .mono { color: var(--c-muted); font-size: .8rem; white-space: nowrap; }
.ls-more { position: relative; }
.ls-pop { position: absolute; right: 0; bottom: calc(100% + 8px); z-index: 30; width: 250px; background: var(--c-surface); border: 1px solid var(--c-line);
  border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 14px; display: grid; gap: 12px; }
.ls-pop label { display: grid; gap: 6px; font: 600 .82rem/1.2 var(--font-body); color: var(--c-muted); }
.ls-pop input[type=range] { accent-color: var(--c-brand); width: 100%; }
.ls-pop .ui-seg { width: 100%; }
.ls-pop .ui-seg button { flex: 1; justify-content: center; }
@media (max-width: 720px) {
  .ls-bar { gap: 6px; }
  .ls-bar .lbl { display: none; }
  .ls-pop { position: fixed; left: 12px; right: 12px; bottom: 84px; width: auto; }
}

/* ===== admin.html ===== */
.ad-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.ad-fb { display: grid; gap: 10px; }
.ad-fb .ui-item { display: block; }
.ad-fb .meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: .85rem; color: var(--c-muted); margin-bottom: 8px; }
.ad-fb .msg { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0 0 10px; }
.ad-fb .ctx { font-size: .8rem; color: var(--c-faint); overflow-wrap: anywhere; margin-bottom: 10px; }
.ad-fb textarea { min-height: 60px; font-size: .92rem; }
.ad-users { width: 100%; border-collapse: collapse; font-size: .93rem; }
.ad-users th, .ad-users td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--c-line); vertical-align: middle; }
.ad-users th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--c-muted); }
.ad-users td.email { overflow-wrap: anywhere; }
.ad-st { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 16px; align-items: start; }
.ad-st > *, .ad-st .ui-card { min-width: 0; }
.ad-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--c-faint); margin-right: 6px; }
.ad-dot.on { background: var(--c-good); box-shadow: 0 0 0 4px var(--c-good-soft); }
.ad-key { font: 600 .9rem/1.4 var(--font-mono); background: var(--c-ink); color: #f4d35e; padding: 12px 14px; border-radius: var(--radius-sm); overflow-wrap: anywhere; user-select: all; }
.ad-code { font: 500 .8rem/1.55 var(--font-mono); background: #2a231e; color: #efe6d8; padding: 12px 14px; border-radius: var(--radius-sm); overflow-x: auto; white-space: pre; margin: 8px 0 12px; }
.ad-steps { margin: 0; padding-left: 20px; display: grid; gap: 10px; }
.ad-steps li::marker { color: var(--c-brand); font-weight: 700; }
.ad-steps > li { min-width: 0; overflow-wrap: anywhere; }
.ad-jobs .ui-item { align-items: center; }
.ad-jobs .bar { height: 5px; border-radius: 5px; background: var(--c-surface-2); overflow: hidden; margin-top: 6px; max-width: 260px; }
.ad-jobs .bar i { display: block; height: 100%; background: var(--c-brand); }
.ad-scans .ui-item { align-items: center; }
.ad-scans img, .ad-scans .ph { width: 72px; height: 54px; object-fit: cover; border-radius: 8px; background: var(--c-surface-2); flex: none; }
.ad-scans select { width: auto; min-height: 36px; padding: 6px 10px; font-size: .88rem; }
@media (max-width: 860px) { .ad-st { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 720px) {
  .ad-scans .ui-item { flex-wrap: wrap; }
  .ad-users thead { display: none; }
  .ad-users tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 12px 0; border-bottom: 1px solid var(--c-line); }
  .ad-users td { border: 0; padding: 0; }
  .ad-users td.joined { display: none; }
}

/* ===== auth.html ===== */
.au-wrap { min-height: calc(100vh - var(--header-h) - 160px); display: grid; place-items: center; padding: 40px 16px 64px; }
.au-card { width: min(100%, 440px); padding: 30px; }
.au-card h1 { font-size: 1.8rem; margin-bottom: 4px; }
.au-card .ui-seg { width: 100%; margin: 18px 0 20px; }
.au-card .ui-seg button { flex: 1; padding: 10px; }
.au-pw { position: relative; }
.au-pw input { padding-right: 70px; }
.au-pw button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--c-muted); font: 600 .8rem/1 var(--font-body); padding: 8px; cursor: pointer; }
.au-links { display: flex; justify-content: space-between; gap: 10px; margin-top: 16px; font-size: .9rem; flex-wrap: wrap; }
.au-links a { cursor: pointer; }
.au-card .lk-consent, .au-card [class*="consent"] { font-size: .9rem; }
@media (max-width: 480px) { .au-card { padding: 24px 18px; } }

/* ===== capture.html ===== */
.cp-wrap { max-width: 980px; }
.cp-methods { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 14px; margin: 20px 0 24px; }
.cp-method { text-align: left; cursor: pointer; display: grid; gap: 8px; align-content: start; padding: 20px; border-radius: var(--radius); border: 1.5px solid var(--c-line);
  background: var(--c-surface); color: var(--c-ink); font: inherit; position: relative; transition: border-color .15s, transform .15s; }
.cp-method:hover { transform: translateY(-2px); border-color: var(--c-brand); }
.cp-method.on { border-color: var(--c-brand); box-shadow: 0 0 0 3px var(--c-brand-soft); }
.cp-method .ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--c-brand-soft); color: var(--c-brand); }
.cp-method .ic .ui-ic { width: 24px; height: 24px; }
.cp-method b { font: 600 1.15rem/1.2 var(--font-display); }
.cp-method span { color: var(--c-muted); font-size: .9rem; }
.cp-method .ui-badge { position: absolute; right: 14px; top: 14px; }
.cp-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cp-form .wide { grid-column: 1 / -1; }
.cp-rooms { display: flex; flex-wrap: wrap; gap: 6px; }
.cp-rooms label input { position: absolute; opacity: 0; pointer-events: none; }
.cp-rooms label span { display: inline-block; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--c-line); background: var(--c-surface); cursor: pointer; font-size: .9rem; }
.cp-rooms input:checked + span { background: var(--c-ink); color: var(--c-bg); border-color: var(--c-ink); }
.cp-rooms input:focus-visible + span { outline: 3px solid var(--c-brand-soft); }
.cp-go { display: flex; gap: 10px; justify-content: flex-end; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.cp-note { display: flex; gap: 10px; align-items: flex-start; }
.cp-note .ui-ic { color: var(--c-brand); margin-top: 3px; }
/* the camera screen */
.cp-cam { position: fixed; inset: 0; z-index: 1500; background: #000; color: #fff; display: grid; grid-template-rows: auto 1fr auto; touch-action: none; }
.cp-cam video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cp-cam .top, .cp-cam .bot { position: relative; z-index: 2; display: flex; align-items: center; gap: 10px; padding: calc(12px + env(safe-area-inset-top)) 14px 12px;
  background: linear-gradient(rgba(0, 0, 0, .55), transparent); }
.cp-cam .bot { padding: 18px 18px calc(22px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, rgba(0, 0, 0, .6)); justify-content: space-between; }
.cp-cam .x { width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .45); color: #fff; display: grid; place-items: center; cursor: pointer; }
.cp-chip { font: 600 .82rem/1 var(--font-mono); background: rgba(0, 0, 0, .5); padding: 8px 11px; border-radius: 999px; display: inline-flex; gap: 6px; align-items: center; }
.cp-chip.rec::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #ff5a3c; animation: lb-pulse 1.2s infinite; }
.cp-mid { position: relative; z-index: 1; display: grid; place-items: center; pointer-events: none; }
.cp-frame { width: min(76vw, 520px); aspect-ratio: 4 / 3; border-radius: 18px; position: relative; }
.cp-frame::before, .cp-frame::after { content: ""; position: absolute; inset: 0; border-radius: 18px; border: 2px solid rgba(255, 255, 255, .55);
  clip-path: polygon(0 0, 18% 0, 18% 4px, 4px 4px, 4px 18%, 0 18%, 0 82%, 4px 82%, 4px calc(100% - 4px), 18% calc(100% - 4px), 18% 100%, 82% 100%, 82% calc(100% - 4px), calc(100% - 4px) calc(100% - 4px), calc(100% - 4px) 82%, 100% 82%, 100% 18%, calc(100% - 4px) 18%, calc(100% - 4px) 4px, 82% 4px, 82% 0, 100% 0, 100% 100%, 0 100%); }
.cp-frame.flash::before { border-color: #f4d35e; }
.cp-msg { position: absolute; left: 50%; bottom: 18%; transform: translateX(-50%); background: rgba(0, 0, 0, .62); padding: 10px 16px; border-radius: 12px; font: 600 .95rem/1.3 var(--font-body);
  text-align: center; max-width: 86vw; transition: opacity .25s; }
.cp-msg.warn { background: #b23a2a; }
.cp-rec { width: 78px; height: 78px; border-radius: 50%; border: 4px solid #fff; background: transparent; display: grid; place-items: center; cursor: pointer; padding: 0; }
.cp-rec i { width: 58px; height: 58px; border-radius: 50%; background: #e0553a; transition: all .2s; }
.cp-rec.on i { width: 30px; height: 30px; border-radius: 8px; }
.cp-ring { width: 64px; height: 64px; position: relative; }
.cp-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.cp-ring b { position: absolute; inset: 0; display: grid; place-items: center; font: 600 .72rem/1 var(--font-mono); }
.cp-side { width: 64px; display: grid; justify-items: center; gap: 4px; font: 600 .7rem/1.2 var(--font-mono); text-align: center; }
.cp-sharp { width: 64px; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .25); overflow: hidden; }
.cp-sharp i { display: block; height: 100%; background: #8dbfa6; transition: width .2s; }
.cp-start { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; background: rgba(20, 14, 10, .72); padding: 24px; text-align: center; }
.cp-start h2 { color: #fff; font-size: 1.6rem; }
.cp-start ol { text-align: left; display: grid; gap: 10px; margin: 0 auto 22px; max-width: 360px; padding-left: 22px; color: #efe6d8; }
.cp-start .ui-btn { background: #c2522b; border-color: #c2522b; color: #fff; }
/* review + upload */
.cp-film { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; max-height: 320px; overflow-y: auto; padding: 2px; }
.cp-film img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; display: block; }
.cp-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0; }
.cp-sum div { border: 1px solid var(--c-line); border-radius: var(--radius-sm); padding: 12px; background: var(--c-bg); }
.cp-sum b { display: block; font: 600 1.4rem/1.1 var(--font-display); }
.cp-sum span { font-size: .8rem; color: var(--c-muted); }
.cp-up { height: 10px; border-radius: 10px; background: var(--c-surface-2); overflow: hidden; margin: 16px 0 8px; }
.cp-up i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--c-brand), #f4d35e); transition: width .3s; }
.cp-drop { border: 2px dashed var(--c-line); border-radius: var(--radius); padding: 34px 20px; text-align: center; color: var(--c-muted); cursor: pointer; display: block; transition: border-color .15s, background .15s; }
.cp-drop:hover, .cp-drop.over { border-color: var(--c-brand); background: color-mix(in srgb, var(--c-brand-soft) 45%, transparent); }
.cp-drop .ui-ic { width: 36px; height: 36px; color: var(--c-brand); }
.cp-drop b { display: block; color: var(--c-ink); font: 600 1.1rem/1.3 var(--font-display); margin: 6px 0 4px; }
.cp-drop input { display: none; }
.cp-prev { height: 340px; margin: 16px 0; }
@media (max-width: 860px) { .cp-methods { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .cp-form { grid-template-columns: 1fr; } .cp-sum { grid-template-columns: 1fr 1fr 1fr; } .cp-go .ui-btn { flex: 1; } }

/* ===== explore.html ===== */
.ex-head { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: end; margin-bottom: 18px; }
.ex-head h1 { margin: 0; font-size: clamp(1.9rem, 4vw, 2.6rem); }
.ex-head p { margin: 6px 0 0; color: var(--c-muted); }
.ex-search { display: flex; gap: 8px; }
.ex-search input { min-width: 240px; }
.ex-rooms { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; margin-bottom: 14px; }
.ex-rooms button { flex: none; font: 500 .88rem/1 var(--font-body); padding: 9px 13px; border-radius: 999px; border: 1px solid var(--c-line); background: var(--c-surface);
  color: var(--c-muted); cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.ex-rooms button.on { background: var(--c-ink); color: var(--c-bg); border-color: var(--c-ink); }
.ex-rooms button small { font: 600 .7rem/1 var(--font-mono); opacity: .7; }
.ex-sort { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
@media (max-width: 720px) {
  .ex-head { grid-template-columns: 1fr; }
  .ex-search input { min-width: 0; }
  .ex-search { width: 100%; }
}

/* ===== home.html ===== */
.lb-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.lb-head h1 { margin: 0; font-size: clamp(1.9rem, 4vw, 2.6rem); }
.lb-head p { margin: 6px 0 0; color: var(--c-muted); }
.lb-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.lb-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.lb-station { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--c-muted); background: var(--c-surface); border: 1px solid var(--c-line);
  border-radius: 999px; padding: 6px 12px 6px 10px; }
.lb-station i { width: 9px; height: 9px; border-radius: 50%; background: var(--c-faint); flex: none; }
.lb-station.on i { background: var(--c-good); box-shadow: 0 0 0 4px var(--c-good-soft); animation: lb-pulse 2s infinite; }
@keyframes lb-pulse { 50% { box-shadow: 0 0 0 7px transparent; } }
.lb-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 22px; }
.lb-stat { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius-sm); padding: 12px 14px; }
.lb-stat b { display: block; font: 600 1.5rem/1.1 var(--font-display); }
.lb-stat span { font-size: .8rem; color: var(--c-muted); }
.lb-tips { margin-top: 30px; }
.lb-tips summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 10px; font-weight: 600; }
.lb-tips summary::-webkit-details-marker { display: none; }
.lb-tips summary .ui-ic { color: var(--c-brand); }
.lb-tips[open] summary { margin-bottom: 14px; }
.lb-tip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.lb-tip { display: grid; gap: 6px; align-content: start; }
.lb-tip b { font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; }
.lb-tip p { margin: 0; color: var(--c-muted); font-size: .9rem; }
.lb-tip .n { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--c-brand); color: var(--c-brand); display: grid; place-items: center;
  font: 600 .85rem/1 var(--font-mono); }
.ui .lb-new { border: 1.5px dashed var(--c-line); border-radius: var(--radius); display: grid; place-items: center; text-align: center; padding: 26px; color: var(--c-muted);
  text-decoration: none; min-height: 220px; transition: border-color .15s, color .15s, background .15s; }
.ui .lb-new:hover { border-color: var(--c-brand); color: var(--c-brand); background: color-mix(in srgb, var(--c-brand-soft) 40%, transparent); }
.lb-new .ui-ic { width: 34px; height: 34px; margin-bottom: 8px; }
.lb-new b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--c-ink); }
@media (max-width: 860px) { .lb-tip-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) {
  .lb-stats { grid-template-columns: 1fr 1fr; }
  .lb-actions { width: 100%; }
  .lb-actions .ui-btn { flex: 1; }
  .lb-bar .ui-seg { width: 100%; overflow-x: auto; }
  .lb-bar .ui-seg button { flex: 1; white-space: nowrap; }
}
@media (max-width: 420px) { .lb-tip-grid { grid-template-columns: 1fr; } }

/* ===== landing.html ===== */
.page-landing .ui-main { overflow-x: clip; }
.lp-hero { position: relative; padding: 60px 0 36px; }
.lp-hero .ui-wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding-top: 0; padding-bottom: 0; }
.lp-hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.3rem); line-height: 1.02; margin-bottom: 20px; font-weight: 600; letter-spacing: -.025em; }
.lp-hero h1 em { font-style: italic; color: var(--c-brand); font-weight: 500; }
.lp-lead { font-size: 1.2rem; color: var(--c-muted); max-width: 33em; margin-bottom: 28px; }
.lp-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.lp-proof { margin-top: 22px; display: flex; gap: 18px; flex-wrap: wrap; color: var(--c-muted); font-size: .92rem; }
.lp-proof span { display: inline-flex; gap: 6px; align-items: center; }
.lp-proof .ui-ic { color: var(--c-accent); }
.lp-art { position: relative; width: 100%; max-width: 560px; justify-self: center; }
.lp-art > svg { width: 100%; height: auto; display: block; overflow: visible; }
.lp-art .wall-l { fill: var(--c-surface); } .lp-art .wall-r { fill: var(--c-surface-2); } .lp-art .floor { fill: color-mix(in srgb, var(--c-accent) 22%, var(--c-surface)); }
.lp-art .ink { stroke: var(--c-ink); } .lp-art .soft { stroke: var(--c-muted); } .lp-art .brand { stroke: var(--c-brand); } .lp-art .fbrand { fill: var(--c-brand); }
.lp-art .faccent { fill: var(--c-accent); } .lp-art .fink { fill: var(--c-ink); } .lp-art .fsurf { fill: var(--c-surface); } .lp-art .ftext { fill: var(--c-muted); }
.lp-art .dots circle { fill: var(--c-brand); animation: lp-dot 3.2s ease-in-out infinite; }
.lp-art .dots circle:nth-child(3n) { fill: var(--c-accent); animation-delay: .6s; }
.lp-art .dots circle:nth-child(4n) { animation-delay: 1.2s; }
@keyframes lp-dot { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
.lp-art .beam { fill: var(--c-brand); opacity: .12; transform-origin: 382px 238px; animation: lp-beam 4s ease-in-out infinite; }
@keyframes lp-beam { 50% { transform: rotate(-12deg); } }
.lp-art .steps ellipse { fill: var(--c-ink); opacity: .22; }
.lp-tag { position: absolute; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 9px 12px;
  font-size: .82rem; display: flex; gap: 8px; align-items: center; }
.lp-tag b { font-family: var(--font-mono); font-size: .86rem; }
.lp-tag .ui-ic { color: var(--c-brand); }
.lp-tag.t1 { left: -4%; top: 12%; } .lp-tag.t2 { right: -2%; bottom: 10%; }
.lp-section { padding: 54px 0; }
.lp-section .ui-wrap { padding-top: 0; padding-bottom: 0; }
.lp-head { text-align: center; max-width: 660px; margin: 0 auto 34px; }
.lp-head p { color: var(--c-muted); font-size: 1.08rem; }
.lp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.lp-step { position: relative; padding-top: 22px; }
.lp-step .num { font: 600 .78rem/1 var(--font-mono); color: var(--c-brand); letter-spacing: .1em; display: block; margin-bottom: 14px; }
.lp-step .pic { height: 110px; border-radius: 12px; margin-bottom: 16px; display: grid; place-items: center; color: var(--c-muted);
  background: linear-gradient(var(--c-grid) 1px, transparent 1px) 0 0 / 14px 14px, linear-gradient(90deg, var(--c-grid) 1px, transparent 1px) 0 0 / 14px 14px, var(--c-bg); }
.lp-step .pic svg { height: 84px; width: auto; }
.lp-who { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.lp-who .ui-card { padding: 18px; }
.lp-who .ui-ic { width: 24px; height: 24px; color: var(--c-accent); margin-bottom: 10px; }
.lp-who h3 { font-size: 1.08rem; margin-bottom: 6px; }
.lp-who p { color: var(--c-muted); margin: 0; font-size: .93rem; }
.lp-feature .ui-ic { width: 24px; height: 24px; color: var(--c-brand); margin-bottom: 12px; }
.lp-feature h3 { margin-bottom: 6px; font-size: 1.12rem; }
.lp-feature p { color: var(--c-muted); margin: 0; }
.lp-rooms-foot { text-align: center; margin-top: 20px; }
.lp-faq { max-width: 780px; margin: 0 auto; display: grid; gap: 10px; }
.lp-faq details { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 4px 20px; }
.lp-faq summary { cursor: pointer; font-weight: 600; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: "+"; color: var(--c-brand); font-size: 1.3rem; line-height: 1; }
.lp-faq details[open] summary::after { content: "–"; }
.lp-faq details p { color: var(--c-muted); margin: 0 0 16px; }
.lp-band { background: var(--c-ink); color: var(--c-bg); border-radius: calc(var(--radius) + 8px); padding: 44px; display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 24px 24px; }
.lp-band h2 { color: var(--c-bg); margin: 0 0 6px; }
.lp-band p { margin: 0; opacity: .8; }
.lp-band .ui-btn { background: var(--c-brand); border-color: var(--c-brand); color: #fff; }
.lp-credit { text-align: center; color: var(--c-faint); font-size: .85rem; margin-top: 26px; }
@media (max-width: 980px) { .lp-who { grid-template-columns: 1fr 1fr; } }
@media (max-width: 860px) {
  .lp-hero { padding-top: 30px; }
  .lp-hero .ui-wrap { grid-template-columns: 1fr; gap: 26px; }
  .lp-steps { grid-template-columns: 1fr; }
  .lp-band { padding: 30px 22px; }
  .lp-section { padding: 38px 0; }
  .lp-tag.t1 { left: 0; } .lp-tag.t2 { right: 0; }
}
@media (max-width: 520px) { .lp-who { grid-template-columns: 1fr; } .lp-tag { font-size: .74rem; padding: 7px 9px; } }

/* ===== profile.html ===== */
.pf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pf-head { display: flex; gap: 16px; align-items: center; margin-bottom: 22px; }
.pf-head .ui-avatar { width: 64px; height: 64px; font-size: 1.3rem; }
.pf-head h1 { margin: 0; font-size: 1.8rem; }
.pf-links { display: grid; gap: 4px; }
.pf-links button, .pf-links a { display: flex; gap: 10px; align-items: center; padding: 11px 12px; border-radius: var(--radius-sm); border: 0; background: none;
  font: 500 .97rem/1.2 var(--font-body); color: var(--c-ink); cursor: pointer; text-decoration: none; text-align: left; width: 100%; }
.pf-links button:hover, .pf-links a:hover { background: var(--c-surface-2); }
@media (max-width: 720px) { .pf-grid { grid-template-columns: 1fr; } }

/* ===== scan.html ===== */
.sc-wrap { max-width: 1320px; }
.sc-top { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.sc-top .ui-btn.ghost { padding-left: 8px; }
.sc-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; align-items: start; }
.sc-view { height: min(68vh, 640px); }
.sc-sticky { position: sticky; top: calc(var(--header-h) + 14px); }
.sc-side { display: grid; gap: 14px; }
.sc-title h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 0 0 4px; overflow-wrap: anywhere; }
.sc-title .meta { color: var(--c-muted); font-size: .9rem; display: flex; gap: 6px; flex-wrap: wrap; }
.sc-title .row { display: flex; gap: 8px; align-items: flex-start; }
.sc-title input { font: 600 1.4rem/1.2 var(--font-display) !important; }
.sc-dims { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 4px 0 12px; }
.sc-dims div { border: 1px solid var(--c-line); border-radius: var(--radius-sm); padding: 9px 10px; text-align: center; background: var(--c-bg); }
.sc-dims b { display: block; font: 600 1.15rem/1.1 var(--font-mono); letter-spacing: -.02em; }
.sc-dims span { font-size: .74rem; color: var(--c-muted); text-transform: uppercase; letter-spacing: .08em; }
.sc-kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: .9rem; margin: 0; }
.sc-kv dt { color: var(--c-muted); }
.sc-kv dd { margin: 0; text-align: right; font-family: var(--font-mono); font-size: .85rem; }
.sc-card h3 { display: flex; align-items: center; gap: 8px; font-size: 1.08rem; margin-bottom: 10px; }
.sc-card h3 .ui-ic { color: var(--c-brand); }
.sc-share .ui-seg { width: 100%; margin-bottom: 10px; }
.sc-share .ui-seg button { flex: 1; justify-content: center; }
.sc-link { display: flex; gap: 6px; }
.sc-link input { font: 500 .82rem/1 var(--font-mono) !important; min-height: 40px !important; padding: 8px 10px !important; }
.sc-pins { display: grid; gap: 6px; margin-bottom: 10px; }
.sc-pin { display: flex; align-items: center; gap: 10px; padding: 7px 8px 7px 10px; border: 1px solid var(--c-line); border-radius: var(--radius-sm); font-size: .92rem; }
.sc-pin .dot { width: 10px; height: 10px; border-radius: 50%; background: #c2522b; flex: none; }
.sc-pin .dot.accent { background: #4f7f6a; } .sc-pin .dot.gold { background: #d9a43c; } .sc-pin .dot.ink { background: var(--c-ink); }
.sc-pin .grow { flex: 1; min-width: 0; }
.sc-pin small { display: block; color: var(--c-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-vers { display: grid; gap: 6px; }
.sc-ver { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: var(--radius-sm); border: 1px solid var(--c-line); }
.sc-ver.cur { border-color: var(--c-accent); background: var(--c-accent-soft); }
.sc-ver .n { font: 600 .8rem/1 var(--font-mono); color: var(--c-muted); }
.sc-ver p { margin: 0; font-size: .9rem; }
.sc-ver small { color: var(--c-muted); font-size: .78rem; }
.sc-dl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sc-dl .ui-btn { justify-content: flex-start; }
.sc-notes textarea { min-height: 80px; font-size: .95rem; }
/* not ready */
.sc-wait { display: grid; grid-template-columns: 1.1fr .9fr; gap: 22px; align-items: start; }
.sc-hero { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--c-stage); aspect-ratio: 4 / 3; }
.sc-hero img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) brightness(.75); }
.sc-hero .art { position: absolute; inset: 0; display: grid; place-items: center; color: #b9aa9a; }
.sc-hero .art svg { width: 60%; }
.sc-scanline { position: absolute; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, #f4d35e, transparent); box-shadow: 0 0 18px 4px rgba(244, 211, 94, .45);
  animation: sc-scan 3.2s ease-in-out infinite; top: 10%; }
@keyframes sc-scan { 50% { top: 88%; } }
.sc-stage { font: 600 1.25rem/1.3 var(--font-display); margin: 6px 0 12px; }
.sc-bar { height: 8px; border-radius: 8px; background: var(--c-surface-2); overflow: hidden; margin-bottom: 8px; }
.sc-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--c-brand), #f4d35e); border-radius: 8px; transition: width .6s; }
.sc-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-top: 14px; }
.sc-strip img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: var(--c-surface-2); }
.sc-steps { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.sc-steps li { display: flex; gap: 10px; align-items: center; font-size: .92rem; color: var(--c-muted); }
.sc-steps li .ui-ic { width: 18px; height: 18px; }
.sc-steps li.done { color: var(--c-good); }
.sc-steps li.now { color: var(--c-ink); font-weight: 600; }
@media (max-width: 980px) {
  .sc-grid, .sc-wait { grid-template-columns: 1fr; }
  .sc-sticky { position: static; }
  .sc-view { height: 58vh; min-height: 320px; }
}
@media (max-width: 720px) {
  .sc-wrap.ui-wrap { padding-top: 12px; }
  .sc-view { margin: 0 -16px; border-radius: 0; height: 56vh; }
  .sc-dl { grid-template-columns: 1fr; }
}

/* ===== share.html ===== */
.sh-wrap { max-width: 1320px; }
.sh-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.sh-head h1 { margin: 0; font-size: clamp(1.7rem, 3.6vw, 2.5rem); overflow-wrap: anywhere; }
.sh-by { display: flex; gap: 10px; align-items: center; color: var(--c-muted); font-size: .92rem; margin-top: 6px; flex-wrap: wrap; }
.sh-by .ui-avatar { width: 30px; height: 30px; font-size: .72rem; }
.sh-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.sh-heart.on { background: var(--c-brand-soft); border-color: var(--c-brand); color: var(--c-brand); }
.sh-heart.on .ui-ic { fill: currentColor; }
.sh-heart.pop .ui-ic { animation: sh-pop .5s; }
@keyframes sh-pop { 40% { transform: scale(1.5); } }
.sh-view { height: min(72vh, 700px); }
.sh-info { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; margin-top: 22px; }
.sh-info .sc-dims { margin-top: 0; }
.sh-notes { white-space: pre-wrap; margin: 0; }
.sh-pins { display: grid; gap: 8px; }
.sh-cta { margin-top: 26px; display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; background: var(--c-ink); color: var(--c-bg);
  border-radius: calc(var(--radius) + 4px); padding: 22px 26px; }
.sh-cta h3 { color: var(--c-bg); margin: 0 0 4px; }
.sh-cta p { margin: 0; opacity: .8; }
.sh-cta img { width: 52px; height: 52px; border-radius: 14px; }
.sh-cta .ui-btn { background: var(--c-brand); border-color: var(--c-brand); color: #fff; }
@media (max-width: 860px) { .sh-info { grid-template-columns: 1fr; } .sh-cta { grid-template-columns: 1fr; text-align: left; } .sh-cta img { display: none; } }
@media (max-width: 720px) { .sh-view { margin: 0 -16px; border-radius: 0; height: 58vh; } .sh-actions { width: 100%; } .sh-actions .ui-btn { flex: 1; } }

/* ===== studio.html ===== */
.page-studio .ui-main { background: var(--c-bg); }
.page-studio .ui-footer { display: none; }
.st { display: grid; grid-template-columns: 58px minmax(0, 1fr) 320px; grid-template-rows: auto minmax(0, 1fr); height: calc(100vh - var(--header-h)); min-height: 560px; }
.st-top { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-bottom: 1px solid var(--c-line); background: var(--c-surface); flex-wrap: wrap; }
.st-top h1 { font-size: 1.15rem; margin: 0; max-width: 32ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-top .dirty { font: 600 .72rem/1 var(--font-mono); color: var(--c-warn); background: var(--c-warn-soft); padding: 4px 7px; border-radius: 6px; }
.st-rail { display: flex; flex-direction: column; gap: 4px; padding: 10px 8px; border-right: 1px solid var(--c-line); background: var(--c-surface); overflow: visible; position: relative; z-index: 20; }
.st-rail button { width: 42px; height: 42px; border-radius: 11px; border: 1px solid transparent; background: none; color: var(--c-muted); display: grid; place-items: center; cursor: pointer; position: relative; }
.st-rail button:hover { background: var(--c-surface-2); color: var(--c-ink); }
.st-rail button.on { background: var(--c-brand); color: var(--c-brand-ink); }
.st-rail button .ui-ic { width: 20px; height: 20px; }
.st-rail hr { border: 0; border-top: 1px solid var(--c-line); margin: 4px 2px; width: 38px; }
.st-rail button[data-tip]:hover::after { content: attr(data-tip); position: absolute; left: calc(100% + 10px); top: 50%; transform: translateY(-50%); white-space: nowrap; z-index: 50;
  background: var(--c-ink); color: var(--c-bg); font: 500 .8rem/1 var(--font-body); padding: 7px 9px; border-radius: 7px; pointer-events: none; }
.st-stage { position: relative; min-width: 0; min-height: 0; }
.st-stage .ls-view { position: absolute; inset: 0; border-radius: 0; }
.st-sel { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.st-sel svg { width: 100%; height: 100%; }
.st-hud { position: absolute; left: 12px; bottom: 12px; z-index: 6; display: flex; gap: 6px; flex-wrap: wrap; pointer-events: none; }
.st-hud span { font: 600 .74rem/1 var(--font-mono); background: rgba(42, 35, 30, .78); color: #f5efe6; padding: 7px 9px; border-radius: 8px; }
.st-hud span.sel { background: #d9a43c; color: #2a231e; }
.st-panel { border-left: 1px solid var(--c-line); background: var(--c-surface); overflow-y: auto; padding: 14px; display: grid; gap: 14px; align-content: start; }
.st-sec { border: 1px solid var(--c-line); border-radius: var(--radius-sm); padding: 12px; background: var(--c-bg); }
.st-sec h3 { font-size: .98rem; margin: 0 0 8px; display: flex; gap: 8px; align-items: center; }
.st-sec h3 .ui-ic { color: var(--c-brand); width: 17px; height: 17px; }
.st-sec p { font-size: .86rem; color: var(--c-muted); margin: 0 0 10px; }
.st-sec label.rng { display: grid; grid-template-columns: 82px 1fr 44px; gap: 8px; align-items: center; font-size: .84rem; margin-bottom: 6px; }
.st-sec label.rng input { accent-color: var(--c-brand); width: 100%; }
.st-sec label.rng output { font: 500 .78rem/1 var(--font-mono); color: var(--c-muted); text-align: right; }
.st-sec .ui-row { gap: 6px; }
.st-sec .ui-btn.sm { min-height: 34px; }
.st-kv { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; font-size: .85rem; margin: 0; }
.st-kv dt { color: var(--c-muted); } .st-kv dd { margin: 0; font-family: var(--font-mono); font-size: .8rem; }
.st-hist { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; max-height: 180px; overflow-y: auto; font-size: .85rem; }
.st-hist li { display: flex; gap: 8px; align-items: center; padding: 4px 6px; border-radius: 6px; }
.st-hist li.undone { opacity: .45; text-decoration: line-through; }
.st-hist li .ui-ic { width: 14px; height: 14px; color: var(--c-muted); }
.st-keys { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; font-size: .88rem; }
.st-keys kbd { font: 600 .74rem/1 var(--font-mono); background: var(--c-surface-2); border: 1px solid var(--c-line); border-bottom-width: 2px; border-radius: 5px; padding: 4px 6px; text-align: center; }
.st-small { display: none; }
.st-swatch { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.st-swatch button { width: 26px; height: 26px; border-radius: 7px; border: 2px solid var(--c-surface); box-shadow: 0 0 0 1px var(--c-line); cursor: pointer; }
.st-swatch input[type=color] { width: 30px; height: 30px; border: 0; padding: 0; background: none; }
@media (max-width: 980px) {
  .st { grid-template-columns: 1fr; grid-template-rows: auto auto 60vh auto; height: auto; }
  .st-rail { flex-direction: row; border-right: 0; border-bottom: 1px solid var(--c-line); overflow-x: auto; padding: 6px 8px; }
  .st-rail hr { border-top: 0; border-left: 1px solid var(--c-line); height: 34px; width: 0; margin: 4px 2px; }
  .st-rail button[data-tip]:hover::after { display: none; }
  .st-panel { border-left: 0; border-top: 1px solid var(--c-line); }
  .st-small { display: flex; }
  .st-top h1 { max-width: 60vw; }
}
