/* ROAS1000x Content: "B Bento Neon". Tokens, base, components, shell, palette.
   Page-specific screens live in views.css. Light theme is its own palette (warm paper, white cards), not an invert. */

@font-face { font-family: 'Geist'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/static/fonts/geist-latin.woff2') format('woff2'); }
@font-face { font-family: 'Geist Mono'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/static/fonts/geist-mono-latin.woff2') format('woff2'); }

:root, [data-theme="dark"] {
  color-scheme: dark;
  --bg: #0B0C0E; --bg-2: #0F1013; --card: #15171B; --card-2: #1B1E23; --card-3: #22262C;
  --line: rgba(255,255,255,.07); --line-2: rgba(255,255,255,.12);
  --ink: #F2F4F3; --ink-2: #A3A8AE; --ink-3: #8A9098;
  --accent: #C6FF3D; --accent-ink: #0B0C0E; --accent-text: #C6FF3D; --accent-strong: #C6FF3D; --accent-soft: rgba(198,255,61,.12);
  --accent-hover: #D6FF70; --ring: #C6FF3D;
  --ok: #3DD68C; --info: #60A5FA; --warn: #F5A524; --err: #FF5A5F;
  --ok-soft: rgba(61,214,140,.12); --info-soft: rgba(96,165,250,.12); --warn-soft: rgba(245,165,36,.12); --err-soft: rgba(255,90,95,.12);
  --heat-0: #1D2118; --heat-1: #2E3A16; --heat-2: #4E6B12; --heat-3: #86B51C; --heat-4: #C6FF3D;
  --card-shadow: inset 0 1px 0 rgba(255,255,255,.04);
  --pop-shadow: 0 18px 48px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.05);
  --cta-shadow: 0 6px 22px rgba(198,255,61,.18);
  --scrim: rgba(0,0,0,.62);
  --sel: rgba(198,255,61,.28);
  --link: #9BC2FF;
}
[data-theme="light"] {
  color-scheme: light;
  --bg: #F5F3EE; --bg-2: #EFECE6; --card: #FFFFFF; --card-2: #F8F7F4; --card-3: #F1EFEA;
  --line: #E7E3DB; --line-2: #D9D4CA;
  --ink: #1A1C1E; --ink-2: #55595F; --ink-3: #686C72;
  --accent: #C6FF3D; --accent-ink: #0B0C0E; --accent-text: #4F7A00; --accent-strong: #7BAA00; --accent-soft: rgba(123,170,0,.14);
  --accent-hover: #B6EE2C; --ring: #4F7A00;
  --ok: #15803D; --info: #1D4ED8; --warn: #B45309; --err: #DC2626;
  --ok-soft: rgba(21,128,61,.10); --info-soft: rgba(29,78,216,.09); --warn-soft: rgba(180,83,9,.10); --err-soft: rgba(220,38,38,.09);
  --heat-0: #EEF0E8; --heat-1: #DCE9B8; --heat-2: #B7D86A; --heat-3: #8FC21A; --heat-4: #6E9A00;
  --card-shadow: 0 1px 2px rgba(28,25,20,.05), 0 6px 20px rgba(28,25,20,.06);
  --pop-shadow: 0 18px 44px rgba(28,25,20,.18), 0 2px 6px rgba(28,25,20,.08);
  --cta-shadow: 0 1px 2px rgba(28,25,20,.16);
  --scrim: rgba(28,25,20,.42);
  --sel: rgba(123,170,0,.30);
  --link: #1D4ED8;
}

:root {
  --font: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --t-11: .6875rem; --t-12: .75rem; --t-13: .8125rem; --t-14: .875rem; --t-15: .9375rem; --t-17: 1.0625rem; --t-20: 1.25rem; --t-24: 1.5rem; --t-28: 1.75rem; --t-32: 2rem; --t-40: 2.5rem;
  --r-card: 18px; --r-in: 12px; --r-btn: 12px; --r-pill: 999px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --dur: 260ms; --dur-fast: 160ms;
  --side-w: 232px;
  --tabbar-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --topbar-h: 56px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; font-size: 100%; background: var(--bg); }
body { margin: 0; font-family: var(--font); font-size: var(--t-15); line-height: 1.5; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
img, video, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
::selection { background: var(--sel); color: var(--ink); }
input, textarea { caret-color: var(--accent-text); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent-strong); }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
* { scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 999px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: var(--ink-3); background-clip: padding-box; border: 2px solid transparent; }
::placeholder { color: var(--ink-3); opacity: 1; }
.skip { position: fixed; left: 8px; top: 8px; z-index: 200; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; background: var(--accent); color: var(--accent-ink); border-radius: var(--r-btn); font-weight: 600; }
.skip:focus, .skip:focus-visible { width: auto; height: auto; padding: 8px 14px; overflow: visible; clip-path: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.ic { width: 20px; height: 20px; flex: none; }
.ic-sm { width: 16px; height: 16px; }
.ic-lg { width: 24px; height: 24px; }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.spin { animation: spin 900ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- surfaces ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--card-shadow); min-width: 0; }
.card-h { display: flex; align-items: center; gap: 10px; min-height: 36px; }
.card-h h2 { font-size: var(--t-17); font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.card-h .ic { color: var(--accent-text); }
.card-h .grow { flex: 1; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: var(--r-btn); border: 1px solid var(--line-2); background: var(--card-2); color: var(--ink); font-size: var(--t-14); font-weight: 600; white-space: nowrap; transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), opacity var(--dur-fast); }
.btn:hover { background: var(--card-3); border-color: var(--ink-3); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; pointer-events: none; }
.btn-primary { min-height: 44px; background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 700; box-shadow: var(--cta-shadow); }
[data-theme="light"] .btn-primary { border-color: rgba(79,122,0,.45); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
[data-theme="light"] .btn-primary:hover { border-color: var(--accent-strong); }
.btn-primary[disabled] { box-shadow: none; }
.btn-ghost { border-color: transparent; background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--card-2); color: var(--ink); border-color: transparent; }
.btn-danger { color: var(--err); border-color: var(--line-2); background: transparent; }
.btn-danger:hover { background: var(--err-soft); border-color: var(--err); }
.btn-danger-solid { background: var(--err); border-color: var(--err); color: #fff; }
.btn-danger-solid:hover { background: var(--err); filter: brightness(1.08); border-color: var(--err); }
.btn-sm { min-height: 32px; padding: 0 12px; font-size: var(--t-13); border-radius: 10px; }
.btn-lg { min-height: 52px; font-size: var(--t-15); padding: 0 24px; }
.btn-primary.btn-sm { min-height: 34px; }
.btn-block { width: 100%; }
.btn .ic { width: 18px; height: 18px; }
.btn-sm .ic { width: 16px; height: 16px; }
.icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--r-btn); color: var(--ink-2); transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease); }
.icon-btn:hover { background: var(--card-2); color: var(--ink); }
.icon-btn:active { background: var(--card-3); }
.icon-btn[aria-expanded="true"] { background: var(--card-2); color: var(--ink); }
.icon-btn.has-dot::after { content: ''; position: absolute; top: 9px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); border: 2px solid var(--bg); box-sizing: content-box; }
[data-theme="light"] .icon-btn.has-dot::after { background: var(--accent-strong); }
.link { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-text); font-weight: 600; font-size: var(--t-14); text-underline-offset: 3px; }
.link:hover { text-decoration: underline; }
.link .ic { width: 16px; height: 16px; }

/* ---------- inputs ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .label { font-size: var(--t-13); font-weight: 500; color: var(--ink-2); }
.input, .select, .textarea { width: 100%; min-height: 44px; padding: 10px 14px; background: var(--card-2); border: 1px solid var(--line-2); border-radius: var(--r-in); color: var(--ink); font-size: var(--t-15); transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast), box-shadow var(--dur-fast); }
[data-theme="light"] .input, [data-theme="light"] .select, [data-theme="light"] .textarea { background: var(--card); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--ink-3); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--ring); box-shadow: 0 0 0 3px var(--accent-soft); }
.textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
.select { appearance: none; padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.input[disabled], .select[disabled], .textarea[disabled] { opacity: .5; cursor: not-allowed; }
input[type="date"], input[type="time"] { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.hint { font-size: var(--t-13); color: var(--ink-3); }
.counter { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: var(--t-12); color: var(--ink-3); }
.counter.warn { color: var(--warn); } .counter.err { color: var(--err); }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.switch { appearance: none; -webkit-appearance: none; position: relative; width: 44px; height: 26px; flex: none; margin: 0; border-radius: var(--r-pill); background: var(--card-3); border: 1px solid var(--line-2); cursor: pointer; transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--ink-2); transition: transform var(--dur) var(--ease), background var(--dur) var(--ease); }
[data-theme="light"] .switch { background: #E3DFD6; }
[data-theme="light"] .switch::after { background: #fff; box-shadow: 0 1px 3px rgba(28,25,20,.35); }
.switch:hover { border-color: var(--ink-3); }
.switch:checked { background: var(--accent); border-color: var(--accent); }
[data-theme="light"] .switch:checked { border-color: var(--accent-strong); background: var(--accent); }
.switch:checked::after { transform: translateX(18px); background: var(--accent-ink); box-shadow: none; }
.switch[disabled] { opacity: .4; cursor: not-allowed; }

/* ---------- segmented / chips / pills ---------- */
.seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-btn); max-width: 100%; }
[data-theme="light"] .seg { background: var(--card-3); }
.seg > button, .seg > a { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 34px; padding: 0 14px; border-radius: 9px; font-size: var(--t-13); font-weight: 600; color: var(--ink-2); white-space: nowrap; transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease); }
.seg > button:hover, .seg > a:hover { color: var(--ink); }
.seg > [aria-selected="true"], .seg > [aria-pressed="true"] { background: var(--card-3); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
[data-theme="light"] .seg > [aria-selected="true"], [data-theme="light"] .seg > [aria-pressed="true"] { background: var(--card); box-shadow: 0 1px 2px rgba(28,25,20,.12), 0 0 0 1px var(--line-2); }
.seg > [aria-pressed="true"] .ic, .seg > [aria-selected="true"] .ic { color: var(--accent-text); }
.seg-full { display: flex; width: 100%; } .seg-full > * { flex: 1; }
.seg-sm > button, .seg-sm > a { min-height: 30px; padding: 0 10px; font-size: var(--t-12); }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border-radius: var(--r-pill); border: 1px solid var(--line-2); background: transparent; color: var(--ink-2); font-size: var(--t-13); font-weight: 600; transition: background var(--dur-fast) var(--ease), color var(--dur-fast), border-color var(--dur-fast); }
.chip:hover { border-color: var(--ink-3); color: var(--ink); background: var(--card-2); }
.chip[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent-strong); color: var(--ink); }
.chip[disabled] { opacity: .4; cursor: not-allowed; pointer-events: none; }
.chip .n { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: var(--t-12); color: var(--ink-3); }
.chip[aria-pressed="true"] .n { color: var(--accent-text); }

.pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: var(--r-pill); font-size: var(--t-12); font-weight: 600; background: var(--card-3); color: var(--ink-2); white-space: nowrap; }
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill-ok { background: var(--ok-soft); color: var(--ok); } .pill-info { background: var(--info-soft); color: var(--info); }
.pill-warn { background: var(--warn-soft); color: var(--warn); } .pill-err { background: var(--err-soft); color: var(--err); }
.pill-mute { background: var(--card-3); color: var(--ink-2); }
.pill-plain::before { display: none; }
[data-theme="light"] .pill-ok { color: #126C33; } [data-theme="light"] .pill-warn { color: #9A4507; } [data-theme="light"] .pill-err { color: #B91C1C; }
.pill-lg { height: 30px; padding: 0 12px; font-size: var(--t-13); }

.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); display: inline-block; flex: none; }
.dot-ok { background: var(--ok); } .dot-info { background: var(--info); } .dot-warn { background: var(--warn); } .dot-err { background: var(--err); } .dot-pending { background: var(--ink-3); }

.callout { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-in); border: 1px solid var(--line-2); background: var(--card-2); font-size: var(--t-14); }
.callout .ic { margin-top: 2px; }
.callout-warn { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 40%, transparent); } .callout-warn .ic { color: var(--warn); }
.callout-err { background: var(--err-soft); border-color: color-mix(in srgb, var(--err) 40%, transparent); } .callout-err .ic { color: var(--err); }
.callout-info { background: var(--info-soft); border-color: color-mix(in srgb, var(--info) 40%, transparent); } .callout-info .ic { color: var(--info); }
.callout a { text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.callout ul { display: grid; gap: 4px; }

kbd { display: inline-flex; align-items: center; height: 22px; padding: 0 7px; border-radius: 7px; border: 1px solid var(--line-2); background: var(--card-2); font-family: var(--mono); font-size: var(--t-11); color: var(--ink-2); }

/* ---------- toasts / popovers ---------- */
.toasts { position: fixed; z-index: 160; left: 12px; right: 12px; bottom: calc(var(--tabbar-h) + var(--safe-b) + 84px); display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; max-width: 420px; width: 100%; padding: 12px 14px; background: var(--card-3); border: 1px solid var(--line-2); border-radius: var(--r-in); box-shadow: var(--pop-shadow); font-size: var(--t-14); animation: toast-in var(--dur) var(--ease); }
[data-theme="light"] .toast { background: var(--card); }
.toast.out { opacity: 0; transform: translateY(8px); transition: opacity 180ms, transform 180ms; }
.toast .ic { width: 18px; height: 18px; }
.toast-success .ic { color: var(--ok); } .toast-error .ic { color: var(--err); } .toast-info .ic { color: var(--info); }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.menu-wrap { position: relative; }
.pop { position: absolute; z-index: 70; top: calc(100% + 8px); right: 0; min-width: 232px; padding: 6px; background: var(--card-2); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: var(--pop-shadow); animation: pop-in var(--dur-fast) var(--ease); }
[data-theme="light"] .pop { background: var(--card); }
@keyframes pop-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.pop a, .pop button.mi { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 0 10px; border-radius: 9px; font-size: var(--t-14); font-weight: 500; color: var(--ink); text-align: left; }
.pop a:hover, .pop button.mi:hover { background: var(--card-3); }
.pop .ic { width: 18px; height: 18px; color: var(--ink-2); }
.pop-mail { padding: 8px 10px; font-size: var(--t-13); color: var(--ink-3); border-bottom: 1px solid var(--line); margin-bottom: 6px; overflow: hidden; text-overflow: ellipsis; }
.pop-events { width: 340px; max-width: calc(100vw - 24px); padding: 0; right: -8px; }
.pop-events h3 { padding: 14px 16px 10px; font-size: var(--t-14); font-weight: 700; letter-spacing: -.01em; border-bottom: 1px solid var(--line); }
.ev-list { max-height: 360px; overflow-y: auto; padding: 6px; }
.ev { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 9px 10px; border-radius: 9px; font-size: var(--t-13); }
.ev:hover { background: var(--card-3); }
.ev .dot { margin-top: 7px; }
.ev p { color: var(--ink); line-height: 1.4; overflow-wrap: anywhere; }
.ev small { display: block; color: var(--ink-3); font-size: var(--t-12); margin-top: 2px; }
.ev time { color: var(--ink-3); font-family: var(--mono); font-size: var(--t-11); white-space: nowrap; padding-top: 2px; }
.pop-empty { padding: 28px 16px; text-align: center; color: var(--ink-3); font-size: var(--t-13); }

.avatar { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: var(--t-14); border: 1px solid var(--line-2); flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-sm { width: 30px; height: 30px; font-size: var(--t-12); }

/* ---------- skeleton ---------- */
.skel { background: var(--card-3); border-radius: 8px; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }

/* ---------- shell ---------- */
.sidebar { display: none; }
.topbar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 8px; height: calc(var(--topbar-h) + var(--safe-t)); padding: var(--safe-t) 12px 0 16px; background: var(--bg); border-bottom: 1px solid var(--line); }
.topbar-actions { display: flex; align-items: center; gap: 2px; }
.top-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.02em; font-size: var(--t-17); }
.top-brand span:last-child { color: var(--ink-3); font-weight: 500; letter-spacing: 0; font-size: var(--t-15); }
.logo-mark { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 12px; background: var(--accent); color: var(--accent-ink); flex: none; }
.logo-mark .ic { width: 20px; height: 20px; stroke-width: 2.2; }
[data-theme="light"] .logo-mark { box-shadow: inset 0 0 0 1px rgba(79,122,0,.35); }
.cmdbar { display: none; }
.main { padding: 20px 16px calc(var(--tabbar-h) + var(--safe-b) + 96px); max-width: 1400px; margin: 0 auto; outline: none; min-height: calc(100dvh - var(--topbar-h)); }

.tabbar { position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, 1fr); height: calc(var(--tabbar-h) + var(--safe-b)); padding-bottom: var(--safe-b); background: var(--bg-2); border-top: 1px solid var(--line); }
.tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 48px; font-size: var(--t-11); font-weight: 600; color: var(--ink-3); transition: color var(--dur-fast); }
.tabbar a:hover, .tabbar button:hover { color: var(--ink); }
.tabbar [aria-current="page"] { color: var(--accent-text); }
.tabbar [aria-current="page"] .ic { stroke-width: 2.2; }
.tab-ic { position: relative; display: inline-flex; }
.tab-badge { position: absolute; top: -7px; left: 12px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); font-size: 11px; font-style: normal; font-weight: 700; line-height: 18px; text-align: center; }
.tab-dot { position: absolute; top: -2px; right: -4px; width: 8px; height: 8px; border-radius: 50%; background: var(--err); border: 2px solid var(--bg-2); box-sizing: content-box; }
.tab-dot.warn { background: var(--warn); }
.fab { position: fixed; z-index: 45; right: 16px; bottom: calc(var(--tabbar-h) + var(--safe-b) + 16px); width: 56px; height: 56px; min-height: 56px; padding: 0; border-radius: 50%; display: none; }
.fab .ic { width: 26px; height: 26px; }
body[data-route="home"] .fab, body[data-route="dashboard"] .fab, body[data-route="social"] .fab, body[data-route="calendar"] .fab, body[data-route="media"] .fab { display: inline-flex; }
body[data-route="social-new"] .tabbar, body[data-route="social-new"] .fab { display: none; }
body[data-route="social-new"] .main { padding-bottom: 0; }

dialog { color: var(--ink); padding: 0; border: 0; background: transparent; max-width: none; max-height: none; }
dialog::backdrop { background: var(--scrim); }
.sheet { position: fixed; inset: auto 0 0 0; margin: 0; width: 100%; max-height: 86dvh; overflow-y: auto; background: var(--bg-2); border: 1px solid var(--line-2); border-bottom: 0; border-radius: 22px 22px 0 0; padding: 10px 16px calc(20px + var(--safe-b)); box-shadow: var(--pop-shadow); }
[data-theme="light"] .sheet { background: var(--card); }
.sheet[open] { animation: sheet-in var(--dur) var(--ease); }
@keyframes sheet-in { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet-grab { width: 40px; height: 4px; border-radius: 4px; background: var(--line-2); margin: 0 auto 14px; }
.sheet-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.sheet-grid a { display: grid; justify-items: center; gap: 8px; padding: 16px 8px; border-radius: 14px; background: var(--card-2); border: 1px solid var(--line); font-size: var(--t-13); font-weight: 600; color: var(--ink-2); }
.sheet-grid a:hover { color: var(--ink); background: var(--card-3); }
.sheet-grid a[aria-current="page"] { color: var(--accent-text); border-color: var(--accent-strong); }
.sheet-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 4px 0; border-top: 1px solid var(--line); margin-top: 4px; }
.sheet-row + .sheet-row { border-top: 0; padding-top: 10px; }
.sheet-row > span { font-size: var(--t-13); color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.palette { position: fixed; inset: 0; margin: 0; width: 100%; height: 100%; display: none; }
.palette[open] { display: block; }
.pal-box { position: absolute; left: 50%; top: 10vh; transform: translateX(-50%); width: min(620px, calc(100vw - 24px)); max-height: 76dvh; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line-2); border-radius: 18px; box-shadow: var(--pop-shadow); overflow: hidden; animation: pal-in var(--dur) var(--ease); }
[data-theme="dark"] .pal-box { background: var(--card-2); }
@keyframes pal-in { from { opacity: 0; transform: translate(-50%, -8px); } to { opacity: 1; transform: translate(-50%, 0); } }
.pal-in { display: flex; align-items: center; gap: 12px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.pal-in .ic { color: var(--ink-3); }
.pal-in input { flex: 1; min-height: 56px; background: transparent; border: 0; outline: none; font-size: var(--t-17); color: var(--ink); min-width: 0; }
.pal-list { overflow-y: auto; padding: 8px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; }
.pal-group { padding: 12px 10px 6px; font-size: var(--t-11); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.pal-item { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: 11px; font-size: var(--t-14); font-weight: 500; color: var(--ink); text-align: left; width: 100%; }
.pal-item .ic { width: 18px; height: 18px; color: var(--ink-2); }
.pal-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.pal-item small { margin-left: auto; color: var(--ink-3); font-size: var(--t-12); font-family: var(--mono); white-space: nowrap; }
.pal-item[aria-selected="true"] { background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent-strong); }
.pal-item[aria-selected="true"] .ic { color: var(--accent-text); }
.pal-empty { padding: 32px 16px; text-align: center; color: var(--ink-3); font-size: var(--t-14); }
.pal-foot { display: flex; gap: 16px; padding: 10px 16px; border-top: 1px solid var(--line); font-size: var(--t-12); color: var(--ink-3); }
.pal-foot span { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 1023.98px) { .pal-foot { display: none; } .pal-box { top: calc(var(--safe-t) + 12px); } }

@media (min-width: 1024px) {
  :root { --tabbar-h: 0px; }
  body.app { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); }
  .tabbar, .fab, .top-brand, .topbar .search-m { display: none !important; }
  .toasts { left: auto; right: 24px; bottom: 24px; align-items: flex-end; width: 400px; }
  .sidebar { display: flex; flex-direction: column; position: sticky; top: 0; align-self: start; height: 100dvh; padding: 16px 12px 14px; background: var(--bg-2); border-right: 1px solid var(--line); overflow-y: auto; }
  .shell { min-width: 0; }
  .topbar { display: grid; grid-template-columns: 1fr minmax(0, 560px) 1fr; height: 68px; padding: 0 28px; background: transparent; border-bottom: 0; }
  .cmdbar { display: flex; grid-column: 2; align-items: center; gap: 12px; height: 44px; padding: 0 12px 0 16px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--card); color: var(--ink-3); font-size: var(--t-14); text-align: left; width: 100%; transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast); }
  .cmdbar:hover { border-color: var(--ink-3); background: var(--card-2); }
  .cmdbar span { flex: 1; }
  .cmdbar .ic { color: var(--ink-2); width: 18px; height: 18px; }
  .topbar-actions { grid-column: 3; justify-self: end; gap: 8px; }
  .main { width: 100%; padding: 4px 28px 56px; min-height: calc(100dvh - 68px); }
  body[data-route="social-new"] .main { padding-bottom: 0; }
}

.ws { position: relative; margin-bottom: 14px; }
.ws-btn { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px 8px; border-radius: 14px; text-align: left; transition: background var(--dur-fast) var(--ease); }
.ws-btn:hover, .ws-btn[aria-expanded="true"] { background: var(--card-2); }
.ws-text { display: grid; line-height: 1.15; min-width: 0; flex: 1; }
.ws-text b { font-size: var(--t-15); font-weight: 800; letter-spacing: -.02em; }
.ws-text span { font-size: var(--t-12); color: var(--ink-3); }
.ws-btn .ic { color: var(--ink-3); width: 18px; height: 18px; }
.ws .pop { left: 0; right: auto; width: 100%; min-width: 200px; }
.nav { display: grid; gap: 2px; }
.nav-label { padding: 18px 12px 6px; font-size: var(--t-11); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.nav-item { position: relative; display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 0 12px; border-radius: 12px; font-size: var(--t-14); font-weight: 500; color: var(--ink-2); transition: background var(--dur-fast) var(--ease), color var(--dur-fast); }
.nav-item:hover { background: var(--card); color: var(--ink); }
.nav-item[aria-current="page"] { background: var(--card-2); color: var(--ink); font-weight: 600; box-shadow: inset 0 0 0 1px var(--line); }
[data-theme="light"] .nav-item[aria-current="page"] { background: var(--card); box-shadow: 0 1px 2px rgba(28,25,20,.06), 0 0 0 1px var(--line); }
.nav-item[aria-current="page"] .ic { color: var(--accent-text); }
.nav-item[aria-current="page"]::after { content: ''; position: absolute; right: 12px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--accent-strong); }
.nav-item .count { margin-left: auto; font-size: var(--t-12); color: var(--ink-3); }
.nav-item .count-hot { min-width: 20px; height: 20px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); text-align: center; line-height: 20px; font-weight: 700; padding: 0 6px; }
.nav-item[aria-current="page"] .count-hot { margin-right: 14px; }
.side-grow { flex: 1; min-height: 16px; }
.nav-bottom { display: grid; gap: 2px; padding-top: 12px; border-top: 1px solid var(--line); margin-bottom: 14px; }
.theme-seg { width: 100%; }
.theme-seg > button { flex: 1; padding: 0 6px; min-height: 32px; }
.side-user { display: flex; align-items: center; gap: 10px; padding: 12px 6px 0; font-size: var(--t-13); color: var(--ink-2); min-width: 0; }
.side-user .user-mail { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

/* ---------- page structure ---------- */
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 8px 0 20px; }
.page-title { font-size: var(--t-28); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; text-wrap: balance; min-width: 0; }
.page-title .sub { color: var(--ink-3); font-weight: 600; }
.page-sub { color: var(--ink-3); font-size: var(--t-14); margin-top: 6px; }
@media (min-width: 1024px) { .page-title { font-size: var(--t-32); } .page-title.big { font-size: var(--t-40); } .page-head { margin: 4px 0 24px; } }
@media (max-width: 1023.98px) { .page-head > .btn-primary { display: none; } }
.toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.stack { display: grid; gap: 16px; }
.stack-sm { display: grid; gap: 8px; }
.back { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; margin-left: -6px; padding: 0 8px 0 4px; color: var(--ink-2); font-size: var(--t-14); font-weight: 500; border-radius: var(--r-btn); }
.back:hover { color: var(--ink); }

.empty { display: grid; justify-items: center; gap: 12px; padding: 48px 24px; text-align: center; border: 1px dashed var(--line-2); border-radius: var(--r-card); }
.empty .ic { width: 28px; height: 28px; color: var(--ink-3); }
.empty p { max-width: 38ch; color: var(--ink-2); }
.empty .actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 4px; }
.empty-art { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: var(--card-2); border: 1px solid var(--line); }
.empty-art .ic { color: var(--accent-text); }

/* ---------- list rows (content, history) ---------- */
.board { display: grid; gap: 10px; }
.day-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 22px 0 2px; padding: 0 4px; }
.day-head:first-child { margin-top: 0; }
.day-head h2 { font-size: var(--t-17); font-weight: 700; letter-spacing: -.02em; }
.day-head span { font-size: var(--t-13); color: var(--ink-3); }
.dep { display: grid; grid-template-columns: 56px 44px minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--card-shadow); transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease); }
.dep:hover { border-color: var(--line-2); background: var(--card-2); }
[data-theme="light"] .dep:hover { background: var(--card); box-shadow: 0 1px 2px rgba(28,25,20,.06), 0 10px 28px rgba(28,25,20,.09); }
.dep-time { display: grid; gap: 2px; align-content: center; }
.dep-time b { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: var(--t-20); font-weight: 500; letter-spacing: -.03em; line-height: 1.1; }
.dep-time small { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: var(--t-11); color: var(--ink-3); white-space: nowrap; }
.thumb { position: relative; width: 44px; height: 78px; border-radius: 10px; overflow: hidden; background: var(--card-3); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--ink-3); flex: none; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-wide { width: 76px; height: 48px; }
.dep-body { display: grid; gap: 6px; min-width: 0; }
.dep-title { font-size: var(--t-15); font-weight: 600; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dep-line { display: flex; align-items: center; gap: 12px; min-width: 0; }
.gates { display: flex; align-items: center; gap: 12px; }
.gate { position: relative; display: inline-flex; width: 16px; height: 16px; flex: none; }
.gate > svg { width: 16px; height: 16px; }
.gate .sd { position: absolute; right: -4px; bottom: -4px; width: 6px; height: 6px; border-radius: 50%; border: 2px solid var(--card); box-sizing: content-box; background: var(--ink-3); }
.dep:hover .gate .sd { border-color: var(--card-2); }
[data-theme="light"] .dep:hover .gate .sd { border-color: var(--card); }
.sd-ok { background: var(--ok) !important; } .sd-info { background: var(--info) !important; } .sd-err { background: var(--err) !important; } .sd-pending { background: var(--ink-3) !important; }
.gate.is-cancelled > svg { opacity: .35; }
.gate.is-cancelled::after { content: ''; position: absolute; left: -2px; right: -2px; top: 50%; height: 1.5px; background: var(--ink-3); transform: rotate(-45deg); }
.gate.is-cancelled .sd { display: none; }
.dep-status { margin-left: auto; flex: none; }
.dep-err { display: flex; align-items: flex-start; gap: 6px; font-size: var(--t-13); color: var(--err); min-width: 0; }
.dep-err .ic { width: 14px; height: 14px; margin-top: 2px; flex: none; }
.dep-err span { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.d-only { display: none; }
@media (min-width: 1024px) { .d-only { display: inline; } .dep { grid-template-columns: 84px 48px minmax(0, 1fr); gap: 20px; padding: 14px 20px; } .dep-time b { font-size: 22px; } .dep-title { font-size: var(--t-17); } .thumb { width: 48px; height: 85px; } }
.dep.is-failed { border-color: color-mix(in srgb, var(--err) 40%, var(--line)); }
.tile { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.tile svg { width: 20px; height: 20px; }

.flip { position: relative; display: inline-flex; overflow: hidden; height: 20px; align-items: center; font-size: var(--t-13); font-weight: 600; line-height: 20px; white-space: nowrap; vertical-align: middle; }
.flip > span { display: block; }
.flip.t-ok { color: var(--ok); } .flip.t-info { color: var(--info); } .flip.t-warn { color: var(--warn); } .flip.t-err { color: var(--err); } .flip.t-mute { color: var(--ink-3); } .flip.t-plain { color: var(--ink-2); } .flip.t-inherit { color: inherit; }
.flip .ghost { position: absolute; left: 0; top: 0; }

.now { display: flex; align-items: center; gap: 10px; height: 28px; margin: 4px 0 6px; color: var(--accent-text); }
.now::after { content: ''; flex: 1; height: 1px; background: var(--accent-strong); opacity: .55; }
.now-note { order: 1; font-size: var(--t-12); color: var(--ink-3); white-space: nowrap; }
.now-pill { display: inline-flex; align-items: center; gap: 8px; height: 26px; padding: 0 12px 0 10px; border-radius: var(--r-pill); background: var(--accent); color: var(--accent-ink); font-size: var(--t-12); font-weight: 700; }
.now-pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-ink); }

.confirm { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: var(--t-13); color: var(--ink-2); }

/* ---------- phone preview ---------- */
.pv-wrap { display: grid; justify-items: center; gap: 14px; min-width: 0; }
.phone { --pw: 190px; width: var(--pw); font-size: calc(var(--pw) / 24); padding: calc(var(--pw) * .028); border-radius: calc(var(--pw) * .16); background: #050608; border: 1px solid var(--line-2); box-shadow: 0 18px 40px rgba(0,0,0,.35); margin: 0 auto; }
[data-theme="light"] .phone { box-shadow: 0 2px 4px rgba(28,25,20,.08), 0 18px 40px rgba(28,25,20,.18); border-color: #2a2d33; }
.phone-screen { position: relative; aspect-ratio: 9 / 16; border-radius: calc(var(--pw) * .135); overflow: hidden; background: #000; color: #fff; isolation: isolate; }
.phone-media { position: absolute; inset: 0; background: #000; }
.phone-media[hidden] { display: none; }
.phone-screen video, .phone-screen .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.phone-notch { position: absolute; z-index: 5; top: 1em; left: 50%; width: 4.6em; height: 1.15em; transform: translateX(-50%); border-radius: 1em; background: #000; }
.phone-empty { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: .8em; padding: 2em; text-align: center; color: #9aa1ac; font-size: 1.15em; background: #0b0d12; }
.phone-empty svg { width: 3em; height: 3em; }
/* overlay: top label + account/caption on a bottom scrim, nothing over the middle of the video */
.ov { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; justify-content: space-between; padding: 3.1em 1.2em 1.5em; font-size: 1.05em; pointer-events: none;
  background: linear-gradient(to bottom, rgba(0,0,0,.42) 0, rgba(0,0,0,0) 17%, rgba(0,0,0,0) 56%, rgba(0,0,0,.72) 100%); text-shadow: 0 1px 2px rgba(0,0,0,.45); }
.ov-top { display: flex; align-items: center; font-weight: 700; font-size: 1.3em; letter-spacing: -.01em; }
.ov-tiktok .ov-top { justify-content: center; font-size: 1.15em; }
.ov-info { display: grid; gap: .55em; min-width: 0; padding-right: 1.4em; }
.ov-acct { display: flex; align-items: center; gap: .6em; min-width: 0; font-weight: 600; font-size: 1.05em; }
.ov-av { width: 2.4em; height: 2.4em; border-radius: 50%; background: #C6FF3D; color: #0B0C0E; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1em; flex: none; text-shadow: none; }
.ov-cap { font-size: 1em; line-height: 1.35; overflow: hidden; max-height: 2.7em; word-break: break-word; white-space: pre-wrap; color: rgba(255,255,255,.94); }
.ov-cap.is-title { font-weight: 600; color: #fff; }
.phone-card { position: absolute; inset: 0; z-index: 2; padding: 4.6em 1.4em 1.4em; background: #101114; color: #f3f5f7; display: flex; flex-direction: column; gap: 1em; font-size: 1.1em; overflow: hidden; }
.phone-card .tc-head { display: flex; align-items: center; gap: .7em; font-weight: 600; }
.phone-card .tc-head small { color: #8b919b; font-weight: 400; margin-left: auto; }
.phone-card .tc-text { font-size: 1.1em; line-height: 1.45; white-space: pre-wrap; word-break: break-word; }
.phone-card .tc-actions { display: flex; gap: 1.6em; color: #8a909b; }
.phone-card .tc-actions svg { width: 1.8em; height: 1.8em; }
.phone-card .tc-logo { margin: 0 auto; width: 2.2em; height: 2.2em; color: #fff; }
/* platform switch: one row always (glyphs, the active tab adds its name); a single platform is a plain label */
.ptabs { display: inline-flex; flex-wrap: nowrap; gap: 2px; padding: 3px; max-width: 100%; border-radius: var(--r-pill); background: var(--bg-2); border: 1px solid var(--line); }
.ptab { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 32px; min-width: 36px; padding: 0 10px; border-radius: var(--r-pill); font-size: var(--t-12); font-weight: 600; color: var(--ink-2); white-space: nowrap; transition: background var(--dur-fast), color var(--dur-fast), box-shadow var(--dur-fast); }
.ptab svg { width: 16px; height: 16px; flex: none; }
.ptab:hover { color: var(--ink); background: var(--card-2); }
.ptab:focus-visible { outline: 2px solid var(--ring); outline-offset: 1px; }
.ptab[aria-pressed="true"] { background: var(--card-3); color: var(--ink); padding: 0 12px 0 10px; }
[data-theme="light"] .ptab[aria-pressed="true"] { background: var(--card); box-shadow: 0 1px 2px rgba(28,25,20,.12); }
.ptab:not([aria-pressed="true"]) .ptab-l { display: none; }
.ptabs.is-single { padding: 0; background: none; border: 0; }
.ptab-one { display: inline-flex; align-items: center; gap: 7px; min-height: 32px; font-size: var(--t-13); font-weight: 600; color: var(--ink-2); }
.ptab-one svg { width: 16px; height: 16px; }

/* ---------- publish errors: one plain sentence, raw API text behind Details (errors.js) ---------- */
.errx { display: grid; gap: 4px; margin-top: 6px; min-width: 0; }
.errx-msg { display: flex; align-items: flex-start; gap: 8px; margin: 0; font-size: var(--t-14); line-height: 1.45; color: var(--ink); font-weight: 400; white-space: normal; }
.errx-msg .ic { width: 16px; height: 16px; margin-top: 2px; flex: none; color: var(--err); }
.errx-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; padding-left: 24px; }
.errx-tog, .errx-fix { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; font-size: var(--t-13); font-weight: 600; color: var(--ink-2); border-radius: 8px; }
.errx-tog:hover { color: var(--ink); }
.errx-tog .ic, .errx-fix .ic { width: 14px; height: 14px; transition: transform var(--dur-fast) var(--ease); }
.errx-tog[aria-expanded="true"] .ic { transform: rotate(180deg); }
.errx-fix { color: var(--accent-text); text-decoration: none; }
.errx-fix:hover { text-decoration: underline; text-underline-offset: 3px; }
.errx-tog:focus-visible, .errx-fix:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.errx-raw { display: grid; gap: 6px; margin: 2px 0 0 24px; padding: 10px 12px; border-radius: 10px; background: var(--card-2); border: 1px solid var(--line); }
.errx-raw[hidden] { display: none; }
.errx-raw code { display: block; padding: 0; margin: 0; background: none; border: 0; border-radius: 0; font-family: var(--code); font-size: var(--t-12); line-height: 1.55; color: var(--ink-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.errx-copy { justify-self: start; margin-left: -8px; }
.callout-errx { display: block; }
.callout-errx .errx { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Sidebar link that leaves the app (Email CRM, new tab): outbound cue at the row end */
.nav-ext .nav-ext-ic { margin-left: auto; color: var(--ink-3); transition: color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease); }
.nav-ext:hover .nav-ext-ic { color: var(--ink-2); transform: translate(1px, -1px); }
@media (prefers-reduced-motion: reduce) { .nav-ext:hover .nav-ext-ic { transform: none; } }
