/* ───────────────────────────────────────────────
   Megaphoon — Lux layer: liquid glass, quiet controls, light theme, small glass cursor.
   Restraint per taste-skill: buttons step 1px and press .985, cards lift 2px, no rainbow effects.
   Loaded last. Dark stays the default; light is a full pearl theme.
   ─────────────────────────────────────────────── */
:root {
  --g-fill: linear-gradient(180deg, rgba(255, 255, 255, .085), rgba(255, 255, 255, .035));
  --g-fill-hi: linear-gradient(180deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .055));
  --g-rim: rgba(255, 255, 255, .11);
  --g-rim-hi: rgba(255, 255, 255, .2);
  --g-top: rgba(255, 255, 255, .14);
  --g-shadow: 0 1px 2px rgba(0, 0, 0, .25), 0 12px 32px -18px rgba(0, 0, 0, .7);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --press: 120ms;
}

/* ══ light theme (pearl) ═══════════════════════════════ */
:root[data-theme="light"] {
  color-scheme: light;
  --night-0: #EDF1F0; --night-1: #F6F5FA;
  --ink: #0D1714; --ink-2: rgba(13, 23, 20, .74); --ink-3: rgba(13, 23, 20, .5);
  --muted: rgba(13, 23, 20, .62); --dim: rgba(13, 23, 20, .46);
  --glass-1: rgba(255, 255, 255, .56); --glass-1-hover: rgba(255, 255, 255, .74); --glass-2: rgba(255, 255, 255, .7);
  --rim: rgba(13, 23, 20, .09); --rim-strong: rgba(13, 23, 20, .16);
  --glint: inset 0 1px 0 rgba(255, 255, 255, .95);
  --lift: 0 24px 60px -28px rgba(24, 48, 40, .32);
  --glass-fallback: rgba(250, 251, 251, .96); --opaque: #FFFFFF; --well: rgba(13, 23, 20, .045);
  --signal: #6C47E0; --signal-ink: #FFFFFF; --signal-deep: #4F2FC0; --signal-soft: rgba(108,71,224, .12);
  --smart: #6A50D6; --smart-soft: rgba(106, 80, 214, .12);
  --bg: var(--night-0); --solid: rgba(255, 255, 255, .62);
  --line: rgba(13, 23, 20, .07); --line-2: rgba(13, 23, 20, .12);
  --accent: var(--signal); --accent-hi: #7D5BEA; --accent-soft: var(--signal-soft); --accent-text: #5232C8; --accent-2: #CFC2F7;
  --on-accent: #fff;
  --good: #16824F; --good-soft: rgba(22, 130, 79, .12);
  --warn: #9A5B00; --warn-soft: rgba(196, 128, 20, .14);
  --bad: #B8352F; --bad-soft: rgba(184, 53, 47, .1);
  --info: #22648F; --info-soft: rgba(34, 100, 143, .1);
  --sand: #9A5B00; --hot: #9A5B00; --hot-soft: rgba(196, 128, 20, .14);
  --night: #FFFFFF; --night-2: #F2F5F4;
}
:root[data-theme="light"] html, :root[data-theme="light"] { background: var(--night-0); }
:root[data-theme="light"] body::before {
  background:
    radial-gradient(38vmax 30vmax at 10% 4%, rgba(246, 230, 190, .7), transparent 70%),
    radial-gradient(34vmax 30vmax at 92% 30%, rgba(170, 224, 196, .55), transparent 70%),
    radial-gradient(30vmax 24vmax at 40% 100%, rgba(214, 236, 226, .6), transparent 70%);
}
:root[data-theme="light"] body::after { opacity: .018; }
:root[data-theme="light"] ::selection { background: rgba(108,71,224, .22); }
:root[data-theme="light"] :focus-visible { outline-color: rgba(108,71,224, .7); }
:root[data-theme="light"] .stop, :root[data-theme="light"] .topbar.scrolled { background: rgba(246, 247, 249, .66) !important; }
:root[data-theme="light"] :is(.gs-res, .nav.open, .mm) { background: rgba(255, 255, 255, .94) !important; }
:root[data-theme="light"] .srail .ri .tip { background: rgba(255, 255, 255, .97); }
:root[data-theme="light"] .shell .spanel { background: rgba(248, 250, 249, .96); }
@media (min-width: 1101px) { :root[data-theme="light"] .shell .spanel { background: none; } }
:root[data-theme="light"] :is(.nav a:hover, .sp-nav a:hover, .srail a.ri:hover, .srail button.ri:hover) { background: rgba(13, 23, 20, .05); }
:root[data-theme="light"] .sp-nav a[aria-current="page"] { background: rgba(255, 255, 255, .8); }
:root[data-theme="light"] :is(.tag.dark, .ava, .score-chips span, .cal-chip, .src-tag.manual, code, .fin-q a, .warn-box, .info-box) { background: rgba(13, 23, 20, .06) !important; }
:root[data-theme="light"] :is(table.plain td, table.data td) { border-bottom-color: rgba(13, 23, 20, .06); }
:root[data-theme="light"] :is(table.plain tbody tr:hover td, table.data tbody tr:hover td) { background: rgba(255, 255, 255, .55); }
:root[data-theme="light"] :is(.bar-line, .bp-bar, .pw-meter, .stages i, .sp-prog .bar, .form-nav .prog) { background: rgba(13, 23, 20, .08); }
:root[data-theme="light"] :is(.empty .e-ic, .otp-mail, .h-ic, .lg-ic, .k-ic, .t-ic, .f-ic, .rail-n, .drop .drop-ic) { background: rgba(255, 255, 255, .8); }
:root[data-theme="light"] .tbl-wrap table.data th { background: rgba(250, 251, 251, .96); }
:root[data-theme="light"] .icon-btn .badge, :root[data-theme="light"] .icon-btn .dot { box-shadow: 0 0 0 2px var(--night-0); }
:root[data-theme="light"] .mk-msg.mine { background: rgba(108,71,224, .1); }
:root[data-theme="light"] .mk-sorsa { background: rgba(106, 80, 214, .12); color: #5039B8; }
:root[data-theme="light"] .mk-kaito { background: rgba(14, 140, 116, .12); color: #0B6E5B; }
:root[data-theme="light"] :is(input, select, textarea) { background-color: rgba(255, 255, 255, .7); color: var(--ink); }
:root[data-theme="light"] .btn-primary:hover { background: var(--accent-hi); }
:root[data-theme="light"] .btn-primary:active { background: var(--signal-deep); }
:root[data-theme="light"] .text-link, :root[data-theme="light"] :where(a:not([class])) { color: var(--accent-text); text-decoration-color: rgba(17, 112, 79, .35); }
:root[data-theme="light"] .theme-ic-dark { display: none !important; }
:root[data-theme="light"] .theme-ic-light { display: inline-block !important; }
:root:not([data-theme="light"]) .theme-btn .theme-ic-light { display: none; }
:root:not([data-theme="light"]) .theme-btn .theme-ic-dark { display: inline-block; }
:root[data-theme="light"] .theme-btn .theme-ic-dark { display: none; }

/* ══ glass panels: one material everywhere ═════════════ */
.g1, .panel, .section-card, .login-card, .tbl-wrap, .lx-glass {
  box-shadow: inset 0 0 0 1px var(--g-rim), inset 0 1px 0 var(--g-top), var(--g-shadow);
}
.lx-glass {
  position: relative; border-radius: 24px;
  background: var(--g-fill);
  -webkit-backdrop-filter: blur(24px) saturate(150%); backdrop-filter: blur(24px) saturate(150%);
}
:root[data-theme="light"] {
  --g-fill: linear-gradient(180deg, rgba(255, 255, 255, .78), rgba(255, 255, 255, .58));
  --g-fill-hi: linear-gradient(180deg, rgba(255, 255, 255, .94), rgba(255, 255, 255, .72));
  --g-rim: rgba(13, 23, 20, .08); --g-rim-hi: rgba(13, 23, 20, .16); --g-top: rgba(255, 255, 255, .95);
  --g-shadow: 0 1px 2px rgba(24, 40, 34, .06), 0 14px 34px -20px rgba(24, 40, 34, .28);
}

/* ══ buttons: quiet glass; step 1px on hover, press .985 ══ */
.btn, .icon-btn, .chip, .role-switch button, .tabs a, .seg a, .choice span { -webkit-tap-highlight-color: transparent; }
.btn, .icon-btn {
  isolation: isolate;
  transition: transform 150ms var(--ease-out), background 150ms var(--ease-out), box-shadow 150ms var(--ease-out), color 150ms;
}
@media (hover: hover) and (pointer: fine) {
  .btn:hover:not([disabled]), .icon-btn:hover { transform: translateY(-1px); }
  .btn-lg:hover:not([disabled]) { transform: translateY(-2px); }
}
.btn:active:not([disabled]), .icon-btn:active { transform: translateY(1px) scale(.985); transition-duration: 90ms; }
.btn > *, .btn > .ic { position: relative; z-index: 1; }
.btn::after { display: none !important; }

/* primary: solid mint, a clean top light, no shimmer */
.btn-primary, .btn-hot {
  background: linear-gradient(180deg, #9FE6C1, #9B7BFF); color: #06150D;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -1px 0 rgba(0, 0, 0, .1), 0 8px 20px -12px rgba(155,123,255, .8);
}
.btn-primary:hover, .btn-hot:hover {
  background: linear-gradient(180deg, #B1EDCD, #8FDAB0);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .65), inset 0 -1px 0 rgba(0, 0, 0, .08), 0 12px 26px -12px rgba(155,123,255, .9);
}
.btn-primary:active, .btn-hot:active { background: linear-gradient(180deg, #8FDAB0, #72C496); }
/* light theme: ink pill, the way the reference app does it */
:root[data-theme="light"] .btn-primary, :root[data-theme="light"] .btn-hot {
  background: linear-gradient(180deg, #1C2623, #0D1714); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 8px 20px -12px rgba(13, 23, 20, .7);
}
:root[data-theme="light"] .btn-primary:hover, :root[data-theme="light"] .btn-hot:hover { background: linear-gradient(180deg, #2A3532, #17211E); }

/* glass, ghost, icon: frosted fill, hairline rim, top light */
.btn-glass, .btn-ghost, .icon-btn {
  background: var(--g-fill); color: var(--ink);
  -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%);
  box-shadow: inset 0 0 0 1px var(--g-rim), inset 0 1px 0 var(--g-top);
}
.btn-glass:hover, .btn-ghost:hover, .icon-btn:hover {
  background: var(--g-fill-hi); color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--g-rim-hi), inset 0 1px 0 var(--g-top), 0 8px 18px -12px rgba(0, 0, 0, .6);
}
:root[data-theme="light"] :is(.btn-glass, .btn-ghost, .icon-btn):hover { box-shadow: inset 0 0 0 1px var(--g-rim-hi), inset 0 1px 0 #fff, 0 8px 18px -12px rgba(24, 40, 34, .35); }
.icon-btn { position: relative; }
.icon-btn > :not(.badge):not(.dot) { position: relative; z-index: 1; }
.icon-btn .badge, .icon-btn .dot { z-index: 2; }

/* tap feedback: a soft fill from the touch point (touch only, desktop already presses) */
.lx-ripple { position: absolute; border-radius: 50%; pointer-events: none; z-index: 0; transform: scale(0); opacity: .35;
  background: radial-gradient(circle, rgba(255, 255, 255, .6), rgba(255, 255, 255, 0) 70%); animation: lx-rip 520ms var(--ease-out) forwards; }
:root[data-theme="light"] .lx-ripple { background: radial-gradient(circle, rgba(13, 23, 20, .18), rgba(13, 23, 20, 0) 70%); }
@keyframes lx-rip { to { transform: scale(1); opacity: 0; } }

/* ══ glass cursor: a small lens beside the system pointer ══ */
.lx-cursor { position: fixed; left: 0; top: 0; z-index: 9999; pointer-events: none; width: 12px; height: 12px; margin: -6px 0 0 -6px;
  border-radius: 50%; opacity: 0;
  transition: width 200ms var(--ease-out), height 200ms var(--ease-out), margin 200ms var(--ease-out), opacity 200ms, background 200ms;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .55), rgba(255, 255, 255, .12) 70%);
  -webkit-backdrop-filter: blur(2px) saturate(160%); backdrop-filter: blur(2px) saturate(160%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55), 0 2px 6px rgba(0, 0, 0, .3); }
.lx-cursor.on { opacity: .9; }
.lx-cursor.hot { width: 28px; height: 28px; margin: -14px 0 0 -14px; background: transparent;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6), 0 0 0 1px rgba(0, 0, 0, .12); }
.lx-cursor.down { width: 8px; height: 8px; margin: -4px 0 0 -4px; }
.lx-cursor.text { opacity: 0; }
:root[data-theme="light"] .lx-cursor { background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .9), rgba(255, 255, 255, .4) 70%);
  box-shadow: inset 0 0 0 1px rgba(13, 23, 20, .28), 0 2px 6px rgba(24, 40, 34, .25); }
:root[data-theme="light"] .lx-cursor.hot { background: transparent; box-shadow: inset 0 0 0 1px rgba(13, 23, 20, .45), 0 0 0 1px rgba(255, 255, 255, .5); }
@media (pointer: coarse), (prefers-reduced-motion: reduce) { .lx-cursor { display: none; } }

/* ══ logo: graphite glass tile, white M, one mint signal dot ══ */
.logo-mark { flex: none; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .35)); }
.logo-mark .lm-t1 { stop-color: #2A3431; } .logo-mark .lm-t2 { stop-color: #111816; }
.logo-mark .lm-rim { stroke: rgba(255, 255, 255, .22); }
.logo-mark .lm-glyph { stroke: #F3F5F2; }
.logo-mark .lm-dot { fill: #8FDAB0; }
:root[data-theme="light"] .logo-mark { filter: drop-shadow(0 4px 10px rgba(24, 40, 34, .25)); }
.wordmark { font: 700 20px/1 var(--font); letter-spacing: -.035em; color: var(--ink); }
.logo:hover .logo-mark { transform: translateY(-1px); }
.logo .logo-mark { transition: transform 150ms var(--ease-out); }

/* ══ header ══════════════════════════════════════════════ */
.topbar .actions { gap: 8px; }
.theme-btn { width: 38px; height: 38px; border-radius: 50%; display: inline-grid; place-items: center; }

/* ══ reduced motion ══════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .lx-ripple { display: none; }
  .btn, .icon-btn { transition: none; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .lx-glass { background: var(--glass-fallback); }
}

/* ══ home ════════════════════════════════════════════════ */
.lx-home main { overflow-x: clip; }
.lx-hero { padding: clamp(36px, 7vw, 96px) 0 0; }
.lx-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.lx-switch { margin-bottom: 26px; }
.lx-h1 { font: 700 clamp(46px, 7vw, 96px)/.94 var(--font); letter-spacing: -.045em; margin: 0; color: var(--ink);
  background: linear-gradient(180deg, var(--ink) 30%, color-mix(in oklab, var(--ink) 62%, transparent)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.lx-h2 { font: 700 clamp(36px, 5vw, 64px)/1 var(--font); letter-spacing: -.04em; margin: 0; }
.lx-lede { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; color: var(--ink-2); max-width: 30ch; margin: 22px 0 0; }
.lx-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.lx-ctas .btn-lg { min-height: 54px; padding: 0 26px; font-size: 16px; border-radius: 999px; }
.lx-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0; margin: 30px 0 0; color: var(--ink-3); font-size: 14px; }
.lx-facts li { display: inline-flex; align-items: center; gap: 7px; }
.lx-facts .ic { color: var(--signal); }

/* first-load choreography: copy rises, the orb settles in */
@media (prefers-reduced-motion: no-preference) {
  .lx-hero-copy > * { animation: lx-up 900ms var(--ease-out) both; }
  .lx-hero-copy > :nth-child(2) { animation-delay: 80ms; } .lx-hero-copy > :nth-child(3) { animation-delay: 160ms; }
  .lx-hero-copy > :nth-child(4) { animation-delay: 240ms; }
  .lx-orb { animation: lx-orb-in 1400ms var(--ease-out) both 120ms; }
}
@keyframes lx-up { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } }
@keyframes lx-orb-in { from { opacity: 0; transform: scale(.86) rotate(-8deg); filter: blur(12px); } }

/* the orb: a glass lens with smart creators orbiting it */
.lx-orb-wrap { display: grid; place-items: center; }
.lx-orb { --R: clamp(150px, 19vw, 232px); position: relative; width: calc(var(--R) * 2); aspect-ratio: 1; border-radius: 50%;
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, .34), transparent 34%),
    radial-gradient(circle at 70% 78%, rgba(143, 218, 176, .16), transparent 46%),
    radial-gradient(circle at 24% 80%, rgba(255, 255, 255, .06), transparent 44%),
    radial-gradient(circle at 50% 50%, rgba(142, 240, 194, .10), rgba(255, 255, 255, .03) 70%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22), inset 0 -30px 60px rgba(0, 0, 0, .25), inset 0 24px 50px rgba(255, 255, 255, .06), 0 40px 120px -50px rgba(155,123,255, .45); }
:root[data-theme="light"] .lx-orb { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9), inset 0 -30px 60px rgba(24, 40, 34, .06), 0 40px 120px -50px rgba(108,71,224, .35); background-color: rgba(255, 255, 255, .4); }
.lx-orb::before { border-radius: 50%; }
.orb-core { position: absolute; inset: 22%; border-radius: 50%; display: grid; place-content: center; text-align: center; gap: 4px;
  background: radial-gradient(circle at 40% 30%, rgba(255, 255, 255, .16), rgba(255, 255, 255, .03));
  box-shadow: inset 0 0 0 1px var(--rim), inset 0 1px 0 rgba(255, 255, 255, .3);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.orb-core b { font-size: clamp(44px, 5vw, 68px); font-weight: 500; letter-spacing: -.04em; line-height: 1; }
.orb-core span { color: var(--ink-2); font-size: 14px; line-height: 1.3; }
.orb-empty-ic { display: grid; place-items: center; color: var(--signal); margin-bottom: 4px; }
.orb-ring { position: absolute; inset: 0; animation: lx-orbit 60s linear infinite; }
.orb-ava { --a: calc(360deg / var(--n, 8) * var(--i, 0)); position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px;
  transform: rotate(var(--a)) translate(calc(var(--R) - 8px)) rotate(calc(-1 * var(--a))); }
.orb-ava > .lx-ava { width: 100%; height: 100%; animation: lx-orbit 60s linear infinite reverse; box-shadow: 0 0 0 2px rgba(255, 255, 255, .14), 0 8px 18px -8px rgba(0, 0, 0, .6); }
.orb-ava.ghost { border-radius: 50%; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px dashed var(--rim); border: 1px dashed var(--rim-strong); }
.lx-orb:hover .orb-ring, .lx-orb:hover .orb-ava > .lx-ava { animation-play-state: paused; }
.orb-glare { position: absolute; inset: 6% 18% 58% 14%; border-radius: 50%; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .28), transparent); filter: blur(2px); transform: rotate(-18deg); }
@keyframes lx-orbit { to { transform: rotate(360deg); } }

/* avatar */
.lx-ava { --h: 150; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; flex: none;
  font: 700 14px/1 var(--font); color: #fff; letter-spacing: -.02em;
  background: linear-gradient(150deg, hsl(var(--h) 30% 46%), hsl(calc(var(--h) + 30) 26% 28%));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16), inset 0 1px 0 rgba(255, 255, 255, .22); }
.lx-ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lx-ava:has(img) { background: #1A2220; }
.lx-ava.sm { width: 28px; height: 28px; font-size: 11px; }
.lx-ava.lg { width: 56px; height: 56px; font-size: 18px; }

/* smart marks */
.lx-mark { display: inline-flex; padding: 2px 8px; border-radius: 999px; font: 600 11px/1.5 var(--font); margin-right: 3px; }
.lx-sorsa { background: rgba(166, 148, 255, .16); color: #C4B8FF; }
.lx-kaito { background: rgba(111, 227, 242, .14); color: #8BE9F5; }
.lx-moni { background: rgba(243, 198, 160, .16); color: #F3C6A0; }
:root[data-theme="light"] .lx-sorsa { color: #5039B8; background: rgba(106, 80, 214, .12); }
:root[data-theme="light"] .lx-kaito { color: #0B6E7A; background: rgba(14, 140, 160, .12); }
:root[data-theme="light"] .lx-moni { color: #8A4B12; background: rgba(196, 120, 40, .14); }

/* marquee: a loop of smart creators */
.lx-marquee { margin-top: clamp(40px, 6vw, 80px); overflow: hidden; padding: 10px 0;
  -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.mq-track { display: flex; gap: 12px; width: max-content; }
.lx-marquee.ready .mq-track { animation: lx-mq var(--mq-dur, 40s) linear infinite; }
.lx-marquee:hover .mq-track { animation-play-state: paused; }
@keyframes lx-mq { to { transform: translateX(calc(-1 * var(--mq-w))); } }
.mq-item { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 999px; text-decoration: none; color: var(--ink); white-space: nowrap; font-size: 14px; }
.mq-item .num { font-size: 13px; }
.lx-marquee.empty { -webkit-mask: none; mask: none; }
.mq-empty { max-width: 560px; margin: 0 auto; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 22px; border-radius: 999px; color: var(--ink-3); font-size: 14px; border: 1px dashed var(--rim-strong); }
.wrap > .mq-empty, .lx-marquee.empty { padding-left: var(--gutter, 16px); padding-right: var(--gutter, 16px); }

/* sections */
.lx-sec { padding: clamp(64px, 9vw, 128px) 0 0; }
.lx-sec:last-child { padding-bottom: clamp(64px, 9vw, 120px); }
.lx-sec-h { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.lx-sec-h h2 { font: 700 clamp(32px, 4vw, 52px)/1 var(--font); letter-spacing: -.035em; margin: 0; }
[data-rise] { --d: 0; }
@media (prefers-reduced-motion: no-preference) {
  .js [data-rise] { opacity: 0; transform: translateY(22px) scale(.985); transition: opacity 800ms var(--ease-out) calc(var(--d) * 70ms), transform 900ms var(--ease-out) calc(var(--d) * 70ms); }
  .js [data-rise].in { opacity: 1; transform: none; }
}

/* smart cards */
.lx-smart-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.lx-scard { display: flex; flex-direction: column; gap: 14px; padding: 20px; border-radius: 24px; text-decoration: none; color: var(--ink); height: 100%; transition: transform 320ms var(--spring); }
.lx-scard:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--g-rim-hi), inset 0 1px 0 var(--g-top), var(--g-shadow); }
.sc-main { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sc-main b { font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-stats { display: flex; gap: 18px; margin: auto 0 0; }
.sc-stats dt { color: var(--ink-3); font-size: 12px; }
.sc-stats dd { margin: 2px 0 0; font-size: 15px; }

/* glass icons: frosted tile, hairline rim, a soft coloured light under a luminous glyph */
.app-ic { --tc: #C7B5FF; --tg: rgba(155,123,255, .55); width: 54px; height: 54px; flex: none; border-radius: 17px;
  display: grid; place-items: center; position: relative; isolation: isolate; color: var(--tc);
  background:
    radial-gradient(120% 90% at 50% 115%, var(--tg), transparent 62%),
    linear-gradient(180deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .035));
  -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .13), inset 0 1px 0 rgba(255, 255, 255, .3),
    inset 0 -10px 18px -12px rgba(0, 0, 0, .5), 0 10px 24px -16px rgba(0, 0, 0, .8); }
.app-ic::after { content: ""; position: absolute; inset: 1px 1px 52% 1px; border-radius: 16px 16px 60% 60% / 16px 16px 26% 26%;
  background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0)); pointer-events: none; z-index: -1; }
.app-ic .ic { stroke-width: 1.8; filter: drop-shadow(0 0 6px var(--tg)) drop-shadow(0 1px 0 rgba(0, 0, 0, .25)); }
.app-ic.t-mint   { --tc: #C7B5FF; --tg: rgba(111, 207, 160, .55); }
.app-ic.t-blue   { --tc: #A9CFF3; --tg: rgba(110, 160, 230, .5); }
.app-ic.t-pink   { --tc: #F1B9CE; --tg: rgba(222, 130, 168, .5); }
.app-ic.t-amber  { --tc: #F3D49B; --tg: rgba(230, 170, 80, .5); }
.app-ic.t-violet { --tc: #C9C0F6; --tg: rgba(150, 130, 235, .5); }
.app-ic.t-gold   { --tc: #EEDFAE; --tg: rgba(214, 186, 100, .45); }
:root[data-theme="light"] .app-ic {
  background: radial-gradient(120% 90% at 50% 115%, var(--tg), transparent 62%), linear-gradient(180deg, rgba(255, 255, 255, .95), rgba(255, 255, 255, .62));
  box-shadow: inset 0 0 0 1px rgba(13, 23, 20, .07), inset 0 1px 0 #fff, 0 10px 22px -14px rgba(24, 40, 34, .35); }
:root[data-theme="light"] .app-ic .ic { filter: none; }
:root[data-theme="light"] .app-ic.t-mint   { --tc: #137A53; --tg: rgba(111, 207, 160, .32); }
:root[data-theme="light"] .app-ic.t-blue   { --tc: #2A5C9E; --tg: rgba(110, 160, 230, .3); }
:root[data-theme="light"] .app-ic.t-pink   { --tc: #A63E68; --tg: rgba(222, 130, 168, .3); }
:root[data-theme="light"] .app-ic.t-amber  { --tc: #9A5E10; --tg: rgba(230, 170, 80, .32); }
:root[data-theme="light"] .app-ic.t-violet { --tc: #5340B0; --tg: rgba(150, 130, 235, .3); }
:root[data-theme="light"] .app-ic.t-gold   { --tc: #866619; --tg: rgba(214, 186, 100, .32); }
.lx-apps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.lx-app { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 20px 18px; border-radius: 24px; background: var(--glass-1); box-shadow: inset 0 0 0 1px var(--rim), var(--glint);
  -webkit-backdrop-filter: var(--blur-1); backdrop-filter: var(--blur-1); transition: transform 320ms var(--spring); }
.lx-app:hover { transform: translateY(-2px); }

.lx-app .app-ic { margin-bottom: 6px; }
.lx-app b { font-size: 16px; }
.lx-app span { color: var(--ink-2); font-size: 14px; line-height: 1.4; }

/* live campaigns */
.lx-live { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.lx-lcard { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 22px; text-decoration: none; color: var(--ink); }
.lc-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lc-main b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lc-main span { color: var(--ink-3); font-size: 13px; }
.lc-amt { font-size: 15px; text-align: right; }
.lx-status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font: 600 12px/1.3 var(--font); }
.lx-status i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.lx-status.live { color: var(--signal); background: var(--signal-soft); }
.lx-status.live i { box-shadow: 0 0 0 0 currentColor; animation: lx-pulse 2s ease-out infinite; }
@keyframes lx-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in oklab, currentColor 60%, transparent); } 100% { box-shadow: 0 0 0 9px transparent; } }

/* steps */
.lx-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.lx-steps li { display: flex; flex-direction: column; gap: 8px; padding: 26px; border-radius: 26px; }
.lx-steps li .app-ic { margin-bottom: 10px; }
.lx-steps b { font-size: 19px; }
.lx-steps span { color: var(--ink-2); }

.lx-ledger { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0; padding: 8px; border-radius: 26px; }
.lx-ledger > div { padding: 22px; position: relative; }
.lx-ledger > div + div { box-shadow: inset 1px 0 0 var(--rim); }
.lx-ledger dt { color: var(--ink-3); font-size: 13px; }
.lx-ledger dd { margin: 8px 0 0; font-size: clamp(28px, 3.4vw, 44px); letter-spacing: -.03em; }
.lx-ledger .src { position: absolute; top: 22px; right: 22px; font-size: 12px; }

.lx-faq { display: grid; grid-template-columns: minmax(0, .6fr) minmax(0, 1.4fr); gap: 32px; margin-bottom: 64px; }
.lx-faq h2 { font: 700 clamp(30px, 3.5vw, 44px)/1 var(--font); letter-spacing: -.03em; margin: 0; }
.lx-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: clamp(28px, 4vw, 48px); border-radius: 32px; flex-wrap: wrap;
  background: radial-gradient(600px 300px at 90% 120%, rgba(142, 240, 194, .22), transparent 70%), radial-gradient(500px 260px at 0% -20%, rgba(166, 148, 255, .2), transparent 70%), var(--glass-1); }
.lx-cta h2 { font: 700 clamp(28px, 3.6vw, 48px)/1.02 var(--font); letter-spacing: -.035em; margin: 0; max-width: 16ch; }
.lx-empty { display: flex; align-items: center; gap: 18px; padding: 22px 24px; border-radius: 24px; flex-wrap: wrap; border: 1px dashed var(--rim-strong); }
.lx-empty > div { flex: 1; min-width: 200px; }
.lx-empty h3 { margin: 0 0 4px; font-size: 18px; }
.lx-empty p { margin: 0; color: var(--ink-2); }

/* /smarts */
.lx-page { padding: clamp(28px, 5vw, 64px) 0 80px; }
.lx-page-h { margin-bottom: 26px; }
.lx-page-h .lx-lede { max-width: 60ch; margin-top: 14px; }
.lx-toolbar { display: flex; flex-wrap: wrap; gap: 10px 14px; justify-content: space-between; margin-bottom: 14px; }
.lx-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lx-row { display: grid; grid-template-columns: 34px 44px minmax(0, 1fr) repeat(5, minmax(76px, auto)); align-items: center; gap: 14px; padding: 12px 18px; border-radius: 20px; text-decoration: none; color: var(--ink); }
.lx-row .lx-ava { width: 44px; height: 44px; }
.lx-rank { color: var(--ink-3); text-align: right; }
.lr-who { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.lr-who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lr-n { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.lr-n small { color: var(--ink-3); font-size: 11px; }

.lift { transition: transform 180ms var(--ease-out), background-color var(--t-ui), box-shadow var(--t-ui); }

@media (max-width: 1100px) {
  .lx-apps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lx-smart-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .lx-hero-grid { grid-template-columns: 1fr; }
  .lx-orb-wrap { order: -1; }
  .lx-orb { --R: min(38vw, 160px); }
  .orb-ava { width: 40px; height: 40px; margin: -20px 0 0 -20px; }
  .lx-live, .lx-steps, .lx-faq { grid-template-columns: 1fr; }
  .lx-ledger { grid-template-columns: 1fr; }
  .lx-ledger > div + div { box-shadow: inset 0 1px 0 var(--rim); }
  .lx-row { grid-template-columns: 26px 40px minmax(0, 1fr) auto auto; }
  .lx-row .hide-sm { display: none; }
}
@media (max-width: 560px) {
  .lx-apps, .lx-smart-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .lx-app { padding: 16px 14px; }
  .lx-lcard { grid-template-columns: auto minmax(0, 1fr) auto; }
  .lx-lcard .lx-status { display: none; }
  .lx-ctas .btn-lg { flex: 1; justify-content: center; }
  .lx-row { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .lx-row .lx-rank, .lx-row .lr-n:last-child { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .orb-ring, .orb-ava > .lx-ava, .lx-marquee.ready .mq-track, .lx-status.live i { animation: none !important; }
  .lx-marquee { overflow-x: auto; }
}
.sc-stats { flex-wrap: wrap; gap: 8px 16px; }
.lx-scard { min-width: 0; overflow: hidden; }
@media (max-width: 560px) { .lx-scard { padding: 16px; } .sc-stats div:nth-child(n+3) { display: none; } .lx-lcard { padding: 12px 14px; gap: 10px; } }
:root[data-theme="light"] .nav a { color: var(--ink-2); }
:root[data-theme="light"] .nav a[aria-current="page"] { color: var(--ink); background: rgba(255, 255, 255, .8); }
.wl-list { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.wl-list[hidden] { display: none; }
.wl-pick img { width: 18px; height: 18px; border-radius: 5px; }

/* ══ brand campaigns, calendar, billing, payout methods ══ */
.app-ic.sm { width: 36px; height: 36px; border-radius: 12px; }
.app-ic.sm::after { border-radius: 11px 11px 60% 60% / 11px 11px 26% 26%; }
.bc-types { list-style: none; padding: 0; margin: 0 0 22px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.bc-types .lx-app { text-decoration: none; color: var(--ink); height: 100%; }
.bc-list { display: grid; gap: 10px; }
.bc-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto auto; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 20px; text-decoration: none; color: var(--ink); }
.bc-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bc-main b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bc-main span { color: var(--ink-3); font-size: 13px; }
.bc-nums { display: flex; gap: 16px; }
.bc-nums span { display: flex; flex-direction: column; align-items: flex-end; }
.bc-nums small { color: var(--ink-3); font-size: 11px; }
.bc-nums .hot b { color: var(--warn); }
.lx-status.st-review, .lx-status.st-soon, .bcal-e.st-review i { color: var(--warn); background: var(--warn-soft); }
.lx-status.st-live { color: var(--signal); background: var(--signal-soft); }
.lx-status.st-rejected { color: var(--bad); background: var(--bad-soft); }
.lx-status.st-done, .lx-status.st-draft { color: var(--ink-3); background: rgba(127, 127, 127, .12); }
.lx-status:not([class*="st-"]):not(.live) { color: var(--ink-2); background: rgba(127, 127, 127, .12); }
.bc-split { border: 0; padding: 0; margin: 0; background: none; box-shadow: none; }
.err-line { display: block; }

.bcal-h { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.bcal-h h2 { margin: 0; font-size: 22px; min-width: 180px; text-align: center; }
.bcal { padding: 8px; border-radius: 24px; overflow: hidden; }
.bcal-row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.bcal-row + .bcal-row { margin-top: 6px; }
.bcal-dow span { text-align: center; color: var(--ink-3); font-size: 12px; padding: 6px 0; }
.bcal-d { min-height: 104px; border-radius: 14px; padding: 8px; background: rgba(255, 255, 255, .025); box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
:root[data-theme="light"] .bcal-d { background: rgba(255, 255, 255, .5); }
.bcal-d.out { background: none; box-shadow: none; }
.bcal-d.today { box-shadow: inset 0 0 0 1.5px var(--signal); }
.bcal-n { font: 500 13px var(--mono); color: var(--ink-3); }
.bcal-d.today .bcal-n { color: var(--signal); }
.bcal-e { display: flex; align-items: center; gap: 5px; font-size: 12px; text-decoration: none; color: var(--ink); padding: 3px 6px; border-radius: 8px; background: var(--glass-1); min-width: 0; }
.bcal-e span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bcal-e i { width: 6px; height: 6px; border-radius: 50%; background: var(--signal); flex: none; }
.bcal-e.st-review i { background: var(--warn); } .bcal-e.st-done i, .bcal-e.st-draft i { background: var(--ink-3); }
.bcal-e.st-rejected i { background: var(--bad); }

.bl-list { display: grid; gap: 12px; }
.bl-card { padding: 18px; border-radius: 22px; display: flex; flex-direction: column; gap: 10px; }
.bl-card header { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.bl-card header > div { display: flex; flex-direction: column; gap: 2px; }
.bl-amt b { font-size: 30px; font-weight: 500; letter-spacing: -.02em; }
.bl-tx, .bl-opt { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.bl-tx input { flex: 1; min-width: 220px; }
.bl-card.paid, .bl-card.cancelled { opacity: .8; }
.acc-copy { display: flex; gap: 8px; align-items: center; }
.acc-copy input { flex: 1; min-width: 0; font-family: var(--mono); font-size: 13px; }

.pm-list { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.pm-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 16px; background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px var(--line); }
.pm-item.on { box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--signal) 50%, transparent); }
.pm-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pm-main code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.pm-acts { display: flex; gap: 6px; margin: 0; }
.pm-kinds { margin-bottom: 12px; }
.pm-card { margin-top: 16px; }
@media (max-width: 760px) {
  .bc-types { grid-template-columns: 1fr; }
  .bc-row { grid-template-columns: auto minmax(0, 1fr) auto; }
  .bc-nums { display: none; }
  .bcal-d { min-height: 64px; padding: 4px; }
  .bcal-e span { display: none; }
  .pm-item { grid-template-columns: auto minmax(0, 1fr); }
}
span.app-ic.app-ic { color: var(--tc); }

/* ══ creator sheet /u/<nick> — CV layout: graphite side column with photo, glass sheet ══ */
.cv-wrap { padding-top: 28px; padding-bottom: 90px; max-width: 1120px; }
.cv-own { margin-bottom: 16px; }
.cv-back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); margin-bottom: 14px; text-decoration: none; }
.cv-back:hover { color: var(--ink); }
.cv { display: grid; grid-template-columns: 330px minmax(0, 1fr); border-radius: 28px; overflow: hidden;
  background: var(--g-fill); box-shadow: inset 0 0 0 1px var(--g-rim), inset 0 1px 0 var(--g-top), var(--g-shadow);
  backdrop-filter: blur(22px) saturate(150%); -webkit-backdrop-filter: blur(22px) saturate(150%); }

/* side column stays graphite in both themes, like the printed CV */
.cv-side { position: relative; padding: 40px 30px 34px; color: #E9EEEB;
  background: linear-gradient(180deg, #1A2421 0%, #131A18 100%); isolation: isolate; }
.cv-side::after { content: ""; position: absolute; inset: 0 0 0 auto; width: 1px; background: rgba(255,255,255,.06); }
.cv-wave { position: absolute; inset: 0 0 auto 0; width: 100%; height: 250px; z-index: -1; }
.cv-photo { width: 176px; height: 176px; margin: 6px auto 34px; border-radius: 50%; padding: 6px; position: relative;
  background: linear-gradient(160deg, rgba(255,255,255,.5), rgba(155,123,255,.25) 45%, rgba(255,255,255,.08));
  box-shadow: 0 22px 40px -20px rgba(0,0,0,.85), 0 0 0 1px rgba(255,255,255,.12); }
.cv-photo img, .cv-photo span { width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center; object-fit: cover;
  background: #2A2350; font: 600 46px/1 var(--display, inherit); color: #E2D8FF; letter-spacing: -.02em; }
.cv-side section { margin-top: 26px; }
.cv-side h3 { font-size: 15px; font-weight: 600; letter-spacing: .01em; margin: 0 0 12px; padding-bottom: 9px; color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; align-items: baseline; }
.cv-side h3 b { font-size: 13px; color: #C7B5FF; font-weight: 600; }
.cv-contacts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cv-contacts a { display: flex; gap: 11px; align-items: center; color: inherit; text-decoration: none; min-width: 0; }
.cv-contacts a span:last-child { display: grid; min-width: 0; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cv-contacts small { font-size: 11px; color: rgba(233,238,235,.5); }
.cv-contacts a[href]:hover span:last-child { color: #C7B5FF; }
.cv-ci { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.03)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14), inset 0 1px 0 rgba(255,255,255,.22); }
.cv-ci .plat-ic { background: none !important; color: #E2D8FF; width: auto; height: auto; }
.cv-line { display: flex; gap: 9px; align-items: center; margin: 0 0 8px; font-size: 13.5px; color: rgba(233,238,235,.82); }
.cv-line .ic { color: #9B7BFF; flex: none; }
.cv-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.cv-bars li { display: grid; gap: 6px; font-size: 12.5px; color: rgba(233,238,235,.78); }
.cv-bars i { display: block; height: 4px; border-radius: 4px; background: rgba(255,255,255,.1); position: relative; overflow: hidden; }
.cv-bars i::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: inherit;
  background: linear-gradient(90deg, #7A55EC, #C7B5FF); box-shadow: 0 0 10px rgba(155,123,255,.5); }

/* main sheet */
.cv-main { padding: 44px 46px 36px; min-width: 0; }
.cv-mini { display: none; }
.cv-head h1 { font-size: clamp(38px, 5.4vw, 64px); line-height: .98; letter-spacing: -.035em; margin: 0; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; overflow-wrap: anywhere; }
.cv-head h1 .vcheck { width: 26px; height: 26px; }
.cv-handle { margin: 10px 0 0; color: var(--muted); font-size: 14px; }
.cv-handle a { color: inherit; }
.cv-role { display: inline-flex; align-items: center; gap: 9px; margin-top: 18px; padding: 9px 18px; border-radius: 999px; font-size: 14px; font-weight: 500;
  background: #1A2421; color: #E9EEEB; box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 10px 20px -14px rgba(0,0,0,.7); }
.cv-dot { width: 8px; height: 8px; border-radius: 50%; }
.cv-marks { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.cv-mark { display: inline-flex; gap: 6px; align-items: center; font-size: 12.5px; padding: 5px 11px; border-radius: 999px;
  color: var(--accent-text, #C7B5FF); background: var(--accent-soft); box-shadow: inset 0 0 0 1px rgba(155,123,255,.25); }
.cv-sec { margin-top: 34px; }
.cv-sec h2 { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 600; margin: 0 0 14px; letter-spacing: 0; }
.cv-sec h2::before { content: ""; width: 22px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, #7A55EC, #C7B5FF); }
.cv-sec h2 small { margin-left: auto; font-weight: 400; font-size: 12px; color: var(--dim); }
.cv-bio { margin: 0; white-space: pre-line; color: var(--ink-2); max-width: 66ch; line-height: 1.65; }
.cv-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); border-radius: 18px; overflow: hidden;
  background: #171E1C; box-shadow: inset 0 0 0 1px var(--g-rim), inset 0 1px 0 var(--g-top); }
.cv-stats > div { padding: 15px 17px; display: grid; gap: 6px; box-shadow: 1px 0 0 var(--g-rim), 0 1px 0 var(--g-rim); }
.cv-empty { display: flex; gap: 8px; align-items: center; margin: 0; font-size: 13.5px; color: var(--muted); }
.cv-stats span { display: flex; gap: 7px; align-items: center; font-size: 12.5px; color: var(--muted); }
.cv-stats span .ic { color: var(--accent); }
.cv-stats b { font-size: 22px; letter-spacing: -.02em; font-weight: 600; }
.cv-time { list-style: none; margin: 0; padding: 0 0 0 4px; }
.cv-time li { display: grid; grid-template-columns: 84px 1fr; gap: 16px; position: relative; padding: 0 0 18px; }
.cv-time li::before { content: ""; position: absolute; left: 92px; top: 6px; bottom: -6px; width: 1px; background: var(--line-2, rgba(255,255,255,.12)); }
.cv-time li:last-child::before { display: none; }
.cv-time li::after { content: ""; position: absolute; left: 88px; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.cv-time time { font-size: 12.5px; color: var(--dim); padding-top: 1px; }
.cv-time li > div { padding-left: 14px; }
.cv-time p { margin: 0; }
.cv-t-meta { font-size: 12px; color: var(--muted); }
.cv-t-title { font-weight: 600; margin-top: 2px !important; }
.cv-t-num { font-size: 12.5px; color: var(--ink-2); margin-top: 3px !important; }
.cv-posts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cv-posts a { display: flex; gap: 11px; align-items: center; padding: 11px 14px; border-radius: 14px; color: inherit; text-decoration: none;
  background: var(--g-fill); box-shadow: inset 0 0 0 1px var(--g-rim); }
.cv-posts a:hover { box-shadow: inset 0 0 0 1px var(--g-rim-hi); }
.cv-posts span:not(.plat-ic) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; }
.cv-posts b { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.cv-tags { margin: 0; display: grid; gap: 10px; }
.cv-tags div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; align-items: baseline; }
.cv-tags dt { font-size: 12.5px; color: var(--muted); }
.cv-tags dd { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.cv-tags dd span { font-size: 12.5px; padding: 4px 10px; border-radius: 999px; background: var(--well, rgba(255,255,255,.05)); box-shadow: inset 0 0 0 1px var(--g-rim); }
.cv-cta { margin-top: 40px; padding: 20px 22px; border-radius: 20px; display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  background: radial-gradient(120% 140% at 0% 0%, rgba(155,123,255,.16), transparent 60%), var(--g-fill); box-shadow: inset 0 0 0 1px var(--g-rim), inset 0 1px 0 var(--g-top); }
.cv-cta p { margin: 3px 0 0; font-size: 13px; color: var(--muted); }

:root[data-theme="light"] .cv-stats { background: #FBFCFC; }
.cv-side .cv-contacts a, :root[data-theme="light"] .cv-side .cv-contacts a { color: #E9EEEB; }
.cv-posts a, :root[data-theme="light"] .cv-posts a { color: var(--ink); }
:root[data-theme="light"] .cv-posts a, :root[data-theme="light"] .cv-cta { background: rgba(255,255,255,.7); }
:root[data-theme="light"] .cv-mark { color: #5232C8; }

@media (max-width: 860px) {
  .cv { grid-template-columns: 1fr; border-radius: 22px; }
  .cv-side { padding: 8px 22px 26px; order: 2; }
  .cv-side .cv-wave, .cv-side .cv-photo { display: none; }
  .cv-side::before { content: ""; display: block; height: 1px; background: rgba(255,255,255,.08); margin: 0 -22px; }
  .cv-mini { display: block; width: 76px; height: 76px; border-radius: 50%; padding: 3px; margin-bottom: 16px;
    background: linear-gradient(160deg, rgba(255,255,255,.5), rgba(155,123,255,.3)); box-shadow: 0 12px 24px -14px rgba(0,0,0,.8); }
  .cv-mini img, .cv-mini span { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: grid; place-items: center; background: #2A2350; color: #E2D8FF; font-weight: 600; font-size: 24px; }
  .cv-side::after { display: none; }
  .cv-photo { width: 140px; height: 140px; margin-bottom: 20px; }
  .cv-main { padding: 28px 20px 24px; }
  .cv-head { text-align: left; }
  .cv-tags div { grid-template-columns: 1fr; gap: 6px; }
  .cv-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cv-stats b { font-size: 19px; }
  .cv-time li { grid-template-columns: 64px 1fr; }
  .cv-time li::before { left: 72px; } .cv-time li::after { left: 68px; }
}

/* ══ footer: link columns with mint arrows, newsletter field ══ */
footer.site { padding: 70px 0 34px; }
.ft { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.25fr) minmax(0, 1.45fr); gap: 34px;
  padding: 34px 36px; border-radius: 26px; }
.ft h4 { margin: 0 0 16px; font-size: 16px; font-weight: 600; letter-spacing: -.005em; color: var(--ink); }
.ft-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.ft-list a { position: relative; display: inline-block; padding-left: 15px; font-size: 14px; color: var(--muted); text-decoration: none;
  transition: color .15s ease, transform .15s ease; }
.ft-list a::before { content: ""; position: absolute; left: 0; top: 50%; margin-top: -4.5px;
  border-left: 6px solid var(--accent); border-top: 4.5px solid transparent; border-bottom: 4.5px solid transparent;
  filter: drop-shadow(0 0 4px rgba(155,123,255,.45)); transition: transform .15s ease; }
.ft-list a:hover { color: var(--ink); }
.ft-list a:hover::before { transform: translateX(2px); }
.ft-list a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.ft-reach { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.ft-reach a { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; color: var(--muted); text-decoration: none; }
.ft-reach a .ic { color: var(--accent); }
.ft-reach a:hover { color: var(--ink); }
.ft-call { margin: 4px 0 2px; font-size: 15px; color: var(--ink); }
.ft .ft-big { display: inline-block; font-size: 22px; font-weight: 500; letter-spacing: -.01em; color: #C7B5FF; text-decoration: none; overflow-wrap: anywhere; }
.ft .ft-big:hover { text-shadow: 0 0 18px rgba(155,123,255,.5); }
:root[data-theme="light"] .ft .ft-big { color: #6C47E0; }
footer.site .ft-list a, footer.site .ft-reach a { color: var(--muted); }
footer.site .ft-list a:hover, footer.site .ft-reach a:hover, footer.site .ft-list a[aria-current="page"] { color: var(--ink); }
.ft-note { margin: 6px 0 0; font-size: 12.5px; color: var(--dim); line-height: 1.5; }
.ft-sub { display: flex; height: 46px; border-radius: 14px; overflow: hidden; background: var(--g-fill);
  box-shadow: inset 0 0 0 1px var(--g-rim), inset 0 1px 0 var(--g-top); transition: box-shadow .15s ease; }
.ft-sub:focus-within { box-shadow: inset 0 0 0 1px rgba(155,123,255,.6), 0 0 0 4px rgba(155,123,255,.12); }
.ft-sub input[type=email] { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 14px; font-size: 14px; color: var(--ink); box-shadow: none; outline: none; height: 100%; border-radius: 0; }
.ft-sub button { width: 48px; flex: none; border: 0; display: grid; place-items: center; cursor: pointer; color: #0B1512;
  background: linear-gradient(180deg, #C7B5FF, #8B6CF0); box-shadow: inset 0 1px 0 rgba(255,255,255,.5); transition: filter .15s ease; }
.ft-sub button:hover { filter: brightness(1.06); }
.ft-sub button:active { transform: scale(.97); }
.ft-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.ft-follow { display: flex; align-items: center; gap: 10px; margin: 18px 0 16px; font-size: 15px; color: var(--ink); }
.ft-follow span { margin-right: 4px; }
.ft-soc { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--muted);
  background: var(--g-fill); box-shadow: inset 0 0 0 1px var(--g-rim), inset 0 1px 0 var(--g-top); transition: color .15s ease, transform .15s ease; }
.ft-soc:hover { color: var(--accent); transform: translateY(-1px); }
.ft-news .foot-chip { margin-top: 16px; display: inline-flex; }
.ft-bar { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 22px 6px 0; }
.ft-bar p { margin: 0; font-size: 13px; color: var(--dim); flex: 1; min-width: 200px; }
:root[data-theme="light"] .ft-sub { background: rgba(255,255,255,.8); }
:root[data-theme="light"] .ft-sub button { background: #0D1714; color: #fff; box-shadow: none; }
@media (max-width: 1080px) { .ft { grid-template-columns: repeat(3, minmax(0, 1fr)); } .ft-contacts { grid-column: span 1; } .ft-news { grid-column: span 2; } }
@media (max-width: 640px) { .ft { grid-template-columns: 1fr 1fr; padding: 26px 20px; gap: 28px 18px; } .ft-contacts, .ft-news { grid-column: 1 / -1; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ══ cabinet sidebar (Veyra-style): one panel, grouped menu with counters, views with dots, status card ══ */
.shell.vshell { grid-template-columns: 272px minmax(0, 1fr); background: none !important; }
.shell.vshell.panel-closed { grid-template-columns: 84px minmax(0, 1fr); }
.vside { position: sticky; top: 10px; height: calc(100vh - 20px); margin: 10px 0 10px 10px; z-index: 30; display: flex; flex-direction: column;
  padding: 14px 12px 12px; border-radius: 22px; overflow: hidden auto; scrollbar-width: none;
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.02) 40%, rgba(255,255,255,.03));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), inset 0 1px 0 rgba(255,255,255,.1), 0 20px 40px -30px rgba(0,0,0,.9);
  -webkit-backdrop-filter: blur(24px) saturate(150%); backdrop-filter: blur(24px) saturate(150%); }
.vside::-webkit-scrollbar { display: none; }
.vs-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 4px 12px; }
.vs-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-width: 0; }
.vs-brand svg { width: 30px; height: 30px; flex: none; }
.vs-word { font-weight: 600; font-size: 17px; letter-spacing: -.01em; }
.vs-btn { width: 32px; height: 32px; flex: none; border-radius: 10px; border: 0; display: grid; place-items: center; cursor: pointer; color: var(--muted);
  background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px rgba(255,255,255,.07); transition: color .15s, background .15s; }
.vs-btn:hover { color: var(--ink); background: rgba(255,255,255,.08); }
.vs-acct { display: flex; align-items: center; gap: 10px; padding: 9px 10px; margin: 0 0 6px; border-radius: 14px; text-decoration: none; color: var(--ink);
  background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px rgba(255,255,255,.07); transition: background .15s; }
.vs-acct:hover { background: rgba(255,255,255,.07); }
.vs-ava { position: relative; width: 34px; height: 34px; flex: none; border-radius: 10px; display: grid; place-items: center; font-size: 12px; font-weight: 600;
  color: #E2D8FF; background: linear-gradient(160deg, #3B2E73, #221B43); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.vs-ava img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.vs-ava .on { position: absolute; right: -2px; bottom: -2px; width: 9px; height: 9px; border-radius: 50%; background: #5BD69A; box-shadow: 0 0 0 2px #121816; }
.vs-who { display: grid; min-width: 0; line-height: 1.25; }
.vs-who b { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vs-who small { font-size: 11.5px; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vs-chev { margin-left: auto; color: var(--dim); flex: none; }
.vs-label { display: flex; align-items: center; gap: 8px; margin: 16px 10px 6px; font-size: 11.5px; font-weight: 500; color: var(--dim); letter-spacing: .02em; }
.vs-lc { margin-left: auto; font-size: 11px; color: #F2C66D; }
.vs-nav, .vs-views { display: grid; gap: 1px; }
.vs-i, .vs-views a { position: relative; display: flex; align-items: center; gap: 11px; height: 36px; padding: 0 10px; border-radius: 11px; font-size: 13.5px;
  color: var(--muted); text-decoration: none; transition: color .15s, background .15s; }
.vs-i .ic { flex: none; opacity: .85; }
.vs-i:hover, .vs-views a:hover { color: var(--ink); background: rgba(255,255,255,.045); }
.vs-i[aria-current="page"] { color: var(--ink); background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.04));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), inset 0 1px 0 rgba(255,255,255,.1); }
.vs-i[aria-current="page"] .ic { color: #C7B5FF; opacity: 1; filter: drop-shadow(0 0 6px rgba(155,123,255,.5)); }
.vs-i .t, .vs-views .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vside .cnt { margin-left: auto; min-width: 20px; padding: 1px 6px; border-radius: 999px; font-size: 11px; font-variant-numeric: tabular-nums; text-align: center; color: var(--dim); }
.vside .cnt.hot { color: #0B1512; background: #C7B5FF; font-weight: 600; }
.vside .att { width: 7px; height: 7px; border-radius: 50%; background: #F2C66D; margin-left: auto; }
.vs-sub { display: grid; margin: 2px 0 6px 20px; padding-left: 14px; border-left: 1px solid rgba(255,255,255,.08); }
.vs-sub a { display: flex; align-items: center; height: 30px; padding: 0 8px; border-radius: 9px; font-size: 13px; color: var(--dim); text-decoration: none; }
.vs-sub a:hover { color: var(--ink); }
.vs-sub a[aria-current="page"] { color: var(--ink); background: rgba(255,255,255,.05); }
.vs-sub .t { flex: 1; }
.vs-views .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; margin: 0 4px 0 5px; box-shadow: 0 0 8px currentColor; }
.dot.t-amber { color: #F2C66D; background: #F2C66D; } .dot.t-violet { color: #B7A6F7; background: #B7A6F7; }
.dot.t-blue { color: #8EC5F2; background: #8EC5F2; } .dot.t-mint { color: #9B7BFF; background: #9B7BFF; }
.dot.t-pink { color: #F2A0B8; background: #F2A0B8; } .dot.t-gold { color: #E3C27A; background: #E3C27A; }
.vs-views .cnt { color: var(--ink-2); }
.vs-clear { display: flex; gap: 9px; align-items: center; margin: 0; padding: 6px 10px; font-size: 13px; color: var(--dim); }
.vs-clear .ic { color: #9B7BFF; flex: none; }
.vs-foot { margin-top: auto; padding-top: 14px; display: grid; gap: 10px; }
.vs-sync { display: grid; gap: 8px; padding: 12px; border-radius: 14px; text-decoration: none; color: var(--ink);
  background: rgba(255,255,255,.035); box-shadow: inset 0 0 0 1px rgba(255,255,255,.07); }
.vs-sync .row { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.vs-sync .row .t { flex: 1; color: var(--muted); }
.vs-sync .row b { font-size: 12px; font-weight: 600; }
.vside .live { width: 7px; height: 7px; border-radius: 50%; background: #5BD69A; box-shadow: 0 0 0 3px rgba(91,214,154,.18); flex: none; }
.vs-sync .segs { display: flex; gap: 3px; }
.vs-sync .segs i { flex: 1; height: 4px; border-radius: 3px; background: rgba(255,255,255,.1); }
.vs-sync .segs i.on { background: linear-gradient(90deg, #7A55EC, #C7B5FF); }
.vs-sync small { font-size: 11.5px; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vs-acts { display: flex; align-items: center; gap: 6px; padding: 0 2px; }
.vs-meta { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--dim); }
.vside .tip { display: none; }
.vtabs { display: none; }

/* collapsed: icons only, tips on hover */
.shell.vshell.panel-closed .vside { padding: 14px 10px 12px; }
.shell.vshell.panel-closed .vside :is(.vs-word, .vs-who, .vs-chev, .t, .vs-sub, .vs-meta, .vs-sync small, .vs-sync .row b, .vs-sync .segs) { display: none; }
.shell.vshell.panel-closed .vs-top { flex-direction: column; gap: 10px; padding-bottom: 10px; }
.shell.vshell.panel-closed .vs-acct { justify-content: center; padding: 8px 0; }
.shell.vshell.panel-closed .vs-label { font-size: 0; margin: 12px 8px 6px; height: 1px; background: rgba(255,255,255,.08); }
.shell.vshell.panel-closed :is(.vs-i, .vs-views a) { justify-content: center; padding: 0; }
.shell.vshell.panel-closed .vside .cnt { position: absolute; top: 3px; right: 6px; min-width: 0; width: 7px; height: 7px; padding: 0; font-size: 0; background: #F2C66D; }
.shell.vshell.panel-closed .vs-views .dot { margin: 0; }
.shell.vshell.panel-closed .vs-sync { justify-items: center; padding: 10px 0; }
.shell.vshell.panel-closed .vs-acts { flex-direction: column; }
.shell.vshell.panel-closed .vside { overflow: visible; }
.shell.vshell.panel-closed .vside .tip { display: block; position: absolute; left: calc(100% + 12px); top: 50%; transform: translate(-4px, -50%); opacity: 0; pointer-events: none;
  white-space: nowrap; padding: 6px 10px; border-radius: 9px; font-size: 12.5px; color: var(--ink); background: #1A2220; box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 10px 24px -10px rgba(0,0,0,.8);
  transition: opacity .15s, transform .15s; z-index: 60; }
.shell.vshell.panel-closed :is(.vs-i, .vs-views a):is(:hover, :focus-visible) .tip { opacity: 1; transform: translate(0, -50%); }

/* light theme */
:root[data-theme="light"] .vside { background: rgba(255,255,255,.66); box-shadow: inset 0 0 0 1px rgba(13,23,20,.07), inset 0 1px 0 #fff, 0 20px 40px -30px rgba(24,48,40,.35); }
:root[data-theme="light"] :is(.vs-btn, .vs-acct, .vs-sync) { background: rgba(13,23,20,.035); box-shadow: inset 0 0 0 1px rgba(13,23,20,.06); }
:root[data-theme="light"] :is(.vs-i, .vs-views a):hover { background: rgba(13,23,20,.04); }
:root[data-theme="light"] .vs-i[aria-current="page"] { background: #fff; box-shadow: inset 0 0 0 1px rgba(13,23,20,.07), 0 6px 14px -10px rgba(24,48,40,.4); }
:root[data-theme="light"] .vs-i[aria-current="page"] .ic { color: #6C47E0; filter: none; }
:root[data-theme="light"] .vside .cnt.hot { background: #0D1714; color: #fff; }
:root[data-theme="light"] .vs-sub { border-left-color: rgba(13,23,20,.1); }
:root[data-theme="light"] .vs-sync .segs i { background: rgba(13,23,20,.1); }
:root[data-theme="light"] .vs-ava .on { box-shadow: 0 0 0 2px #fff; }
:root[data-theme="light"] .shell.vshell.panel-closed .vside .tip { background: #fff; box-shadow: 0 0 0 1px rgba(13,23,20,.08), 0 10px 24px -12px rgba(24,48,40,.35); }

/* tablet and phone: drawer */
@media (max-width: 1100px) {
  .shell.vshell, .shell.vshell.panel-closed { grid-template-columns: minmax(0, 1fr); }
  .vside { position: fixed; left: 0; top: 0; bottom: 0; height: auto; width: min(300px, 86vw); margin: 0; border-radius: 0 22px 22px 0; z-index: 70;
    transform: translateX(-105%); transition: transform .32s cubic-bezier(.2,.8,.2,1); background: rgba(16,21,19,.97); }
  .shell.vshell.panel-open .vside { transform: none; }
  .vs-collapse .ic { transform: rotate(180deg); }
  :root[data-theme="light"] .vside { background: rgba(250,251,251,.98); }
}
@media (max-width: 760px) {
  .shell.vshell { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .vtabs { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 10px; right: 10px; bottom: calc(8px + env(safe-area-inset-bottom)); z-index: 60;
    height: 60px; padding: 6px; border-radius: 20px; background: rgba(16,21,19,.86); -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.09), inset 0 1px 0 rgba(255,255,255,.1), 0 16px 32px -16px rgba(0,0,0,.9); }
  .vtabs a, .vtabs button { position: relative; display: grid; place-items: center; align-content: center; gap: 3px; border: 0; background: none; border-radius: 14px;
    font: 500 10.5px/1 inherit; color: var(--dim); text-decoration: none; cursor: pointer; }
  .vtabs [aria-current="page"] { color: var(--ink); background: rgba(255,255,255,.07); }
  .vtabs [aria-current="page"] .ic { color: #C7B5FF; }
  .vtabs .att { position: absolute; top: 7px; right: calc(50% - 15px); width: 7px; height: 7px; border-radius: 50%; background: #F2C66D; }
  .srail { display: none !important; }
  :root[data-theme="light"] .vtabs { background: rgba(255,255,255,.88); box-shadow: inset 0 0 0 1px rgba(13,23,20,.07), 0 16px 32px -18px rgba(24,48,40,.4); }
  :root[data-theme="light"] .vtabs [aria-current="page"] { background: rgba(13,23,20,.05); }
  :root[data-theme="light"] .vtabs [aria-current="page"] .ic { color: #6C47E0; }
}
@media (max-width: 760px) { .shell.vshell .stop .panel-btn { display: none; } }
.vside .theme-ic-dark { display: none; } :root[data-theme="dark"] .vside .theme-ic-dark { display: inline-block; } :root[data-theme="dark"] .vside .theme-ic-light { display: none; }
:root[data-theme="light"] .vside :is(.vs-views a, .vs-i, .vs-sub a) { color: var(--muted); }
:root[data-theme="light"] .vside :is(.vs-views a, .vs-i, .vs-sub a):is(:hover, [aria-current="page"]) { color: var(--ink); }
:root[data-theme="light"] .vs-sync .segs i.on { background: linear-gradient(90deg, #6C47E0, #7A55EC); }
:root[data-theme="light"] .vs-lc { color: #9A5B00; }

/* ══ cabinet overview: KPI row (Ebbline), main + right column with «Needs attention» and «Upcoming» ══ */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 16px; }
.kpi { display: grid; gap: 8px; padding: 16px 18px; border-radius: 18px; background: var(--g-fill); box-shadow: inset 0 0 0 1px var(--g-rim), inset 0 1px 0 var(--g-top), var(--g-shadow); min-width: 0; }
.kpi .k-l { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.kpi .k-l .ic { width: 26px; height: 26px; padding: 6px; border-radius: 8px; color: var(--accent); background: rgba(155,123,255,.1); box-shadow: inset 0 0 0 1px rgba(155,123,255,.18); }
.kpi > b { font-size: 26px; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.kpi > b small { font-size: 13px; font-weight: 500; color: var(--dim); margin-left: 3px; }
.kpi .k-s { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-size: 12px; color: var(--dim); }
.chg { font-style: normal; font-size: 11.5px; font-weight: 600; padding: 2px 7px; border-radius: 7px; }
.chg.up { color: #8FE3B5; background: rgba(91,214,154,.13); } .chg.down { color: #F2A0A0; background: rgba(242,120,120,.13); }
.chg.warn { color: #F2C66D; background: rgba(242,198,109,.13); } .chg.info { color: #8EC5F2; background: rgba(142,197,242,.13); }

.dash2 { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.d-main { min-width: 0; }
.d-main .dash-score { margin-bottom: 4px; }
.d-side { display: grid; gap: 14px; position: sticky; top: 84px; }
.d-card { padding: 18px; border-radius: 20px; }
.d-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.d-head h2 { font-size: 15.5px; margin: 0; font-weight: 600; }
.d-ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: var(--muted);
  background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.d-n { margin-left: auto; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; color: #F2C66D; background: rgba(242,198,109,.12); }
.d-more { margin-left: auto; font-size: 12.5px; color: var(--muted); text-decoration: none; padding: 4px 10px; border-radius: 9px; box-shadow: inset 0 0 0 1px var(--g-rim); }
.d-more:hover { color: var(--ink); }
.sugg { padding: 14px; border-radius: 14px; margin-bottom: 12px; background: linear-gradient(160deg, rgba(155,123,255,.14), rgba(155,123,255,.04));
  box-shadow: inset 0 0 0 1px rgba(155,123,255,.22); }
.sg-top { display: flex; justify-content: space-between; align-items: center; font-size: 11.5px; color: #C7B5FF; }
.sg-top span { display: inline-flex; gap: 6px; align-items: center; } .sg-top b { color: #F2C66D; font-weight: 600; }
.sg-t { margin: 8px 0 3px; font-weight: 600; font-size: 14px; }
.sg-s { margin: 0 0 12px; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.sg-acts { display: flex; gap: 8px; }
.att-list, .upc-list { list-style: none; margin: 0; padding: 0; display: grid; }
.att-list li + li, .upc-list li + li { border-top: 1px solid rgba(255,255,255,.06); }
.att-list a, .upc-list a { display: flex; align-items: center; gap: 11px; padding: 10px 2px; color: inherit; text-decoration: none; min-width: 0; }
.att-list a:hover .a-tx b, .upc-list a:hover .u-tx b { color: #C7B5FF; }
.a-ic { width: 30px; height: 30px; flex: none; border-radius: 9px; display: grid; place-items: center; color: var(--muted); box-shadow: inset 0 0 0 1px var(--g-rim); }
.a-tx, .u-tx { flex: 1; min-width: 0; display: grid; line-height: 1.3; }
.a-tx b, .u-tx b { font-size: 13.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color .15s; }
.a-tx small, .u-tx small { font-size: 11.5px; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.a-st { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); flex: none; }
.a-st i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.a-st.bad { color: #F2A0A0; } .a-st.warn { color: #F2C66D; } .a-st.info { color: #8EC5F2; }
.att-none { display: flex; gap: 8px; align-items: center; margin: 0; padding: 8px 2px; font-size: 13px; color: var(--dim); list-style: none; }
.att-none .ic { color: #9B7BFF; }
.u-date { width: 40px; flex: none; display: grid; justify-items: center; gap: 1px; padding: 5px 0; border-radius: 10px; line-height: 1;
  background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px rgba(255,255,255,.07); }
.u-date small { font-size: 9.5px; font-weight: 600; letter-spacing: .04em; color: var(--dim); }
.u-date b { font-size: 16px; font-weight: 600; }
.u-date.t-amber b { color: #F2C66D; } .u-date.t-violet b { color: #B7A6F7; } .u-date.t-blue b { color: #8EC5F2; }
.u-date.t-mint b { color: #C7B5FF; } .u-date.t-gold b { color: #E3C27A; }
.u-amt { font-size: 13px; font-weight: 600; flex: none; }
.upc-cal { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 10px; padding: 9px; border-radius: 12px; font-size: 13px;
  color: var(--muted); text-decoration: none; box-shadow: inset 0 0 0 1px var(--g-rim); }
.upc-cal:hover { color: var(--ink); background: rgba(255,255,255,.03); }

:root[data-theme="light"] :is(.att-list, .upc-list) li + li { border-top-color: rgba(13,23,20,.07); }
:root[data-theme="light"] :is(.u-date, .d-ic) { background: rgba(13,23,20,.035); box-shadow: inset 0 0 0 1px rgba(13,23,20,.06); }
:root[data-theme="light"] .u-date.t-amber b { color: #9A5B00; } :root[data-theme="light"] .u-date.t-violet b { color: #5B41C6; }
:root[data-theme="light"] .u-date.t-blue b { color: #22648F; } :root[data-theme="light"] .u-date.t-mint b { color: #5232C8; } :root[data-theme="light"] .u-date.t-gold b { color: #86651A; }
:root[data-theme="light"] .a-st.bad { color: #B8352F; } :root[data-theme="light"] .a-st.warn { color: #9A5B00; } :root[data-theme="light"] .a-st.info { color: #22648F; }
:root[data-theme="light"] .chg.up { color: #5232C8; } :root[data-theme="light"] .chg.down { color: #B8352F; } :root[data-theme="light"] .chg.warn { color: #9A5B00; } :root[data-theme="light"] .chg.info { color: #22648F; }
:root[data-theme="light"] .sg-top { color: #5232C8; } :root[data-theme="light"] .sg-top b { color: #9A5B00; }
:root[data-theme="light"] .d-n { color: #9A5B00; }
:root[data-theme="light"] :is(.att-list a, .upc-list a):hover :is(.a-tx b, .u-tx b) { color: #5232C8; }
:root[data-theme="light"] :is(.att-list a, .upc-list a, .upc-cal, .d-more) { color: inherit; }

@media (max-width: 1280px) { .dash2 { grid-template-columns: minmax(0, 1fr) 320px; } }
@media (max-width: 1100px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 960px) {
  .dash2 { grid-template-columns: minmax(0, 1fr); }
  .d-side { position: static; order: -1; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
}
@media (max-width: 560px) {
  .kpis { gap: 8px; } .kpi { padding: 13px 14px; } .kpi > b { font-size: 21px; }
  .kpi .k-l { font-size: 11.5px; } .kpi .k-l .ic { display: none; }
  .d-side { grid-template-columns: minmax(0, 1fr); }
}
.d-main .ccards.three { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.u-amt small { font-size: 11px; color: var(--dim); font-weight: 500; }
.shell.vshell.panel-closed .vside .cnt:not(.hot) { display: none; }
.shell.vshell.panel-closed .vs-views .cnt { display: block; }
.shell.vshell.panel-closed .vs-lc { display: none; }

/* how it works: step cards (no landing timeline line), small connectors between cards */
.steps4:has(.step-card) { gap: 14px; }
.steps4:has(.step-card)::before { display: none; }
.step-card { position: relative; padding: 18px 18px 20px; border-radius: 18px; background: var(--g-fill);
  box-shadow: inset 0 0 0 1px var(--g-rim), inset 0 1px 0 var(--g-top), var(--g-shadow); }
.step-card h3 { margin: 14px 0 6px; font-size: 16.5px; }
.step-card p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.step-card .sc-top { display: flex; align-items: center; justify-content: space-between; }
.step-card .sc-n { font-size: 12px; font-weight: 600; color: var(--dim); font-variant-numeric: tabular-nums; }
.step-card:not(:last-child)::after { content: ""; position: absolute; top: 30px; right: -12px; width: 10px; height: 10px; z-index: 2;
  border-top: 1.5px solid rgba(155,123,255,.55); border-right: 1.5px solid rgba(155,123,255,.55); transform: rotate(45deg); }
.step-card:last-child { background: radial-gradient(120% 90% at 100% 0%, rgba(155,123,255,.14), transparent 60%), var(--g-fill); }
.step-card:last-child .sc-n { color: #C7B5FF; }
:root[data-theme="light"] .step-card { background: rgba(255,255,255,.72); }
:root[data-theme="light"] .step-card:not(:last-child)::after { border-color: rgba(108,71,224,.6); }
:root[data-theme="light"] .step-card:last-child .sc-n { color: #5232C8; }
@media (max-width: 1100px) { .step-card:nth-child(2)::after { display: none; } }
@media (max-width: 720px) { .step-card::after { display: none; } }

/* platform icons: glass tile, glyph in a soft brand tint, glow underneath (replaces pastel squares) */
.plat-ic { --pc: #E9EEEB; --pg: rgba(255,255,255,.18); }
.plat-ic.plat-ic { position: relative; isolation: isolate; flex: none; width: 30px; height: 30px; border-radius: 10px;
  display: grid; place-items: center; color: var(--pc);
  background: radial-gradient(110% 80% at 50% 120%, var(--pg), transparent 65%), linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.035));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), inset 0 1px 0 rgba(255,255,255,.22), 0 6px 14px -10px rgba(0,0,0,.8); }
.plat-ic .ic { width: 15px; height: 15px; filter: drop-shadow(0 0 5px var(--pg)); }
.plat-ic.x { --pc: #F2F4F3; --pg: rgba(255,255,255,.22); }
.plat-ic.telegram { --pc: #8ED0F5; --pg: rgba(64,170,230,.5); }
.plat-ic.youtube { --pc: #FF9C95; --pg: rgba(240,80,70,.48); }
.plat-ic.tiktok { --pc: #9BF0EE; --pg: rgba(255,60,120,.38); }
.plat-ic.instagram { --pc: #F7A6D2; --pg: rgba(220,70,160,.48); }
.plat-ic.discord { --pc: #B3B9FF; --pg: rgba(100,110,245,.5); }
.plat-ic.linkedin { --pc: #8EC0F2; --pg: rgba(30,120,210,.5); }
:root[data-theme="light"] .plat-ic.plat-ic { color: var(--pc); background: radial-gradient(110% 80% at 50% 120%, var(--pg), transparent 65%), linear-gradient(180deg, #fff, rgba(255,255,255,.75));
  box-shadow: inset 0 0 0 1px rgba(13,23,20,.08), 0 6px 14px -10px rgba(24,48,40,.4); }
:root[data-theme="light"] .plat-ic.x { --pc: #0D1714; --pg: rgba(13,23,20,.12); }
:root[data-theme="light"] .plat-ic.telegram { --pc: #1F82B8; --pg: rgba(64,170,230,.28); }
:root[data-theme="light"] .plat-ic.youtube { --pc: #C4302B; --pg: rgba(240,80,70,.24); }
:root[data-theme="light"] .plat-ic.tiktok { --pc: #13191A; --pg: rgba(255,60,120,.2); }
:root[data-theme="light"] .plat-ic.instagram { --pc: #B3307A; --pg: rgba(220,70,160,.24); }
:root[data-theme="light"] .plat-ic.discord { --pc: #4E57E0; --pg: rgba(100,110,245,.26); }
:root[data-theme="light"] .plat-ic.linkedin { --pc: #0A66C2; --pg: rgba(30,120,210,.26); }
:root[data-theme="light"] .plat-ic .ic { filter: none; }
.auto-in, input.auto-in { opacity: .85; cursor: default; background-image: linear-gradient(90deg, rgba(155,123,255,.07), transparent) !important; }
.m-src.auto { display: inline-flex; align-items: center; gap: 5px; color: #C7B5FF; }
:root[data-theme="light"] .m-src.auto { color: #5232C8; }
.cv-sec h2 small .ic { vertical-align: -1px; }
.cv-fb-l { margin: 16px 0 8px; font-size: 12.5px; color: var(--muted); }
.cv-fb { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.cv-fb a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px; color: inherit; text-decoration: none; min-width: 0;
  background: var(--g-fill); box-shadow: inset 0 0 0 1px var(--g-rim); }
.cv-fb a:hover { box-shadow: inset 0 0 0 1px var(--g-rim-hi); }
.fb-ava { width: 32px; height: 32px; flex: none; border-radius: 50%; overflow: hidden; display: grid; place-items: center; font-size: 11px; font-weight: 600;
  color: #E2D8FF; background: #2A2350; box-shadow: 0 0 0 1px rgba(255,255,255,.12); }
.fb-ava img { width: 100%; height: 100%; object-fit: cover; }
.fb-tx { display: grid; min-width: 0; line-height: 1.25; }
.fb-tx b { font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fb-tx small { font-size: 11.5px; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:root[data-theme="light"] .cv-fb a { background: rgba(255,255,255,.75); }

/* ══ HOME HERO «tx» — cinematic lens, floating terminals, sand-yellow headline (from the reference video) ══ */
.lx-home { --tx-y: #EAD27C; --tx-y2: #F5E3A0; --tx-ink: #E9ECE6; --tx-bg: #08090A; }
.tx-hero { --px: 0; --py: 0; position: relative; isolation: isolate; overflow: hidden; min-height: calc(100svh - 64px); min-height: max(640px, calc(100svh - 64px));
  margin-top: -1px; background: var(--tx-bg); color: var(--tx-ink); display: flex; flex-direction: column; justify-content: flex-end; }
.tx-bg { position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background: radial-gradient(60% 50% at 50% 55%, rgba(255,170,90,.10), transparent 70%), radial-gradient(90% 70% at 50% 120%, #15181A, transparent 70%), #08090A; }
.tx-smoke { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; }
.tx-smoke.s1 { left: -10%; top: 30%; width: 55%; height: 60%; background: radial-gradient(closest-side, rgba(70,80,86,.55), transparent); animation: txdrift 22s ease-in-out infinite alternate; }
.tx-smoke.s2 { right: -12%; top: 20%; width: 50%; height: 55%; background: radial-gradient(closest-side, rgba(60,68,74,.5), transparent); animation: txdrift 26s ease-in-out -8s infinite alternate-reverse; }
.tx-smoke.s3 { left: 25%; bottom: -25%; width: 50%; height: 50%; background: radial-gradient(closest-side, rgba(110,80,50,.35), transparent); animation: txdrift 30s ease-in-out -4s infinite alternate; }
@keyframes txdrift { to { transform: translate3d(6%, -4%, 0) scale(1.08); } }
.tx-grain { position: absolute; inset: -50%; opacity: .09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: txgrain 1.2s steps(4) infinite; }
@keyframes txgrain { 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -1%); } }

/* faint code wall behind the lens */
.tx-code { position: absolute; left: 50%; top: 11%; z-index: -1; margin: 0; width: min(560px, 46vw); transform: translate(calc(-54% + var(--px) * -10px), calc(var(--py) * -8px));
  font: 500 11.5px/1.55 'Geist Mono', ui-monospace, Menlo, monospace; color: rgba(233,236,230,.38); white-space: pre; overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 12%, #000 70%, transparent); mask-image: linear-gradient(180deg, transparent, #000 12%, #000 70%, transparent);
  text-shadow: 0 0 8px rgba(233,236,230,.25); }

/* floating terminals */
.tx-term { position: absolute; z-index: 1; font: 500 12.5px/1.5 'Geist Mono', ui-monospace, Menlo, monospace; color: #F2F3EE;
  text-shadow: 0 0 10px rgba(255,255,255,.35), 0 0 22px rgba(255,236,200,.18); transform: translate(calc(var(--px) * var(--m, 14px)), calc(var(--py) * var(--m, 14px))); transition: transform .4s ease-out; }
.tx-term p { margin: 0; white-space: pre; opacity: 0; transform: translateY(3px); transition: opacity .25s ease, transform .25s ease; }
.tx-term p.in { opacity: 1; transform: none; }
.tx-term .hl { background: rgba(242,243,238,.88); color: #0B0C0C; text-shadow: none; display: inline-block; }
.tx-term .bar { width: 170px; height: 9px; margin: 4px 0; background: rgba(255,255,255,.12); position: relative; overflow: hidden; }
.tx-term .bar i { position: absolute; inset: 0 auto 0 0; width: 0; background: rgba(242,243,238,.9); box-shadow: 0 0 12px rgba(255,255,255,.5); }
.tx-term .bar.in i { animation: txbar 1.6s .2s cubic-bezier(.4,.1,.2,1) forwards; }
@keyframes txbar { to { width: 100%; } }
.tx-term .caret { display: inline-block; width: 8px; height: 14px; margin-left: 2px; vertical-align: -2px; background: #F2F3EE; animation: txblink 1s steps(1) infinite; }
@keyframes txblink { 50% { opacity: 0; } }
.tx-term.t1 { left: 13%; top: 20%; --m: 22px; }
.tx-term.t2 { right: 10%; top: 30%; --m: 18px; }
.tx-term.t3 { left: 2%; top: 49%; --m: 10px; opacity: .8; }

/* the lens */
.tx-lens { position: absolute; left: 50%; top: 47%; z-index: 0; width: clamp(220px, 26vw, 380px); aspect-ratio: 1; overflow: hidden;
  transform: translate(calc(-50% + var(--px) * 8px), calc(-50% + var(--py) * 6px));
  box-shadow: 0 0 0 1px rgba(255,236,210,.35), 0 0 40px 6px rgba(255,190,130,.38), 0 0 120px 30px rgba(255,160,90,.22), 0 0 260px 80px rgba(255,140,70,.10); }
.tx-shots, .tx-shots img, .tx-tint, .tx-streaks, .tx-scan { position: absolute; inset: 0; }
.tx-shots { background: radial-gradient(circle at 50% 45%, #6B4A35, #1F1714); }
.tx-shots img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); filter: grayscale(.3) sepia(.55) saturate(1.15) contrast(1.08) brightness(1.06);
  transition: opacity 1.2s ease, transform 3.4s ease; }
.tx-shots img.on { opacity: 1; transform: scale(1); }
.tx-mark { position: absolute; inset: 0; display: grid; place-items: center; filter: drop-shadow(0 0 30px rgba(255,200,150,.6)); }
.tx-tint { background: linear-gradient(180deg, rgba(255,214,170,.25), rgba(255,150,80,.18)); mix-blend-mode: soft-light; }
.tx-streaks i { position: absolute; left: var(--x); top: 0; width: 3px; height: var(--h); background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,250,240,.75), rgba(255,255,255,0));
  box-shadow: 0 0 8px rgba(255,245,230,.6); opacity: .0; animation: txstreak var(--d) var(--l) ease-in-out infinite; }
@keyframes txstreak { 0% { transform: translateY(-40%); opacity: 0; } 25%, 60% { opacity: .85; } 100% { transform: translateY(120%); opacity: 0; } }
.tx-scan { background: repeating-linear-gradient(180deg, rgba(0,0,0,0) 0 3px, rgba(0,0,0,.08) 3px 4px); mix-blend-mode: multiply; }

/* bottom copy row */
.tx-bottom { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 40px; align-items: end; padding-bottom: 54px; padding-top: 52vh; }
.tx-switch { display: inline-flex; gap: 2px; padding: 3px; margin-bottom: 18px; border-radius: 6px; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.tx-switch button { border: 0; background: none; color: rgba(233,236,230,.6); font: 600 12.5px/1 'Chakra Petch', var(--font, inherit); letter-spacing: .04em; padding: 7px 12px; border-radius: 4px; cursor: pointer; }
.tx-switch button[aria-pressed="true"] { background: rgba(234,210,124,.16); color: var(--tx-y); }
.tx-eyebrow { margin: 0 0 12px; font: 500 12.5px/1.4 'Geist Mono', ui-monospace, monospace; color: rgba(233,236,230,.55); }
.tx-eyebrow::before { content: ""; display: inline-block; width: 26px; height: 1px; margin-right: 10px; vertical-align: 4px; background: rgba(234,210,124,.6); }
.tx-h1 { margin: 0; font: 700 clamp(40px, 5.6vw, 84px)/.95 'Chakra Petch', var(--font, inherit); letter-spacing: -.005em; text-transform: uppercase; color: var(--tx-y);
  text-shadow: 0 0 40px rgba(234,210,124,.25); }
.tx-side { justify-self: end; width: min(100%, 420px); }
.tx-lede { margin: 0 0 16px; font-size: 14.5px; line-height: 1.55; color: rgba(233,236,230,.78); }
.tx-form { display: flex; height: 48px; background: #F1F1EC; box-shadow: 0 0 0 1px rgba(255,255,255,.2), 0 20px 50px -20px rgba(0,0,0,.9); }
.tx-form input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; padding: 0 14px; font-size: 14px; color: #121212; border-radius: 0; box-shadow: none; outline: none; }
.tx-form input::placeholder { color: #8A8A84; }
.tx-form button { flex: none; display: inline-flex; align-items: center; gap: 8px; border: 0; margin: 4px; padding: 0 14px; cursor: pointer; background: #121414; color: var(--tx-y);
  font: 600 13px/1 'Chakra Petch', var(--font, inherit); letter-spacing: .03em; text-transform: uppercase; transition: background .15s; }
.tx-form button:hover { background: #000; }
.tx-form:focus-within { box-shadow: 0 0 0 2px var(--tx-y), 0 20px 50px -20px rgba(0,0,0,.9); }
.tx-links { display: flex; gap: 18px; margin: 12px 0 0; font-size: 13px; }
.tx-links a { color: rgba(233,236,230,.6); text-decoration: none; border-bottom: 1px solid rgba(233,236,230,.2); padding-bottom: 1px; }
.tx-links a:hover { color: var(--tx-y); border-color: var(--tx-y); }
.tx-down { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 2; color: rgba(233,236,230,.45); padding: 6px; animation: txbob 2.4s ease-in-out infinite; }
@keyframes txbob { 50% { transform: translate(-50%, 4px); } }
.tx-ticker { position: relative; background: var(--tx-bg); padding: 4px 0 18px; border-bottom: 1px solid rgba(255,255,255,.05); }
.tx-ticker .lx-marquee { margin-top: 0; }

/* the hero is dark in both themes, like the reference */
:root[data-theme="light"] .lx-home .tx-hero, :root[data-theme="light"] .lx-home .tx-ticker { color-scheme: dark; }
:root[data-theme="light"] .lx-home .tx-ticker .mq-item { background: rgba(255,255,255,.06); color: #E9ECE6; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }

/* home sections pick up the hero voice: square-ish display headings */
.lx-home .lx-sec-h h2, .lx-home .lx-sec h2 { font-family: 'Chakra Petch', var(--font, inherit); font-weight: 700; text-transform: uppercase; letter-spacing: .005em; }

@media (max-width: 1000px) {
  .tx-term.t3, .tx-code { display: none; }
  .tx-term.t1 { left: 5%; top: 9%; }
  .tx-term.t2 { right: 5%; top: auto; bottom: calc(100% - 52vh); }
  .tx-bottom { grid-template-columns: minmax(0, 1fr); gap: 22px; padding-top: 60vh; }
  .tx-side { justify-self: stretch; width: 100%; }
}
@media (max-width: 640px) {
  .tx-hero { min-height: auto; }
  .tx-lens { top: 33%; width: 64vw; }
  .tx-term { font-size: 10.5px; }
  .tx-term.t1 { top: 4%; left: 4%; }
  .tx-term.t2 { right: 4%; bottom: auto; top: 53%; }
  .tx-term .bar { width: 110px; }
  .tx-bottom { padding-top: calc(64vw + 34vh); padding-bottom: 46px; }
  .tx-h1 { font-size: clamp(36px, 11vw, 52px); }
  .tx-form { height: 46px; }
  .tx-form button { padding: 0 10px; font-size: 12px; }
  .tx-down { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .tx-smoke, .tx-grain, .tx-streaks i, .tx-down, .tx-term .caret { animation: none; }
  .tx-term p { opacity: 1; transform: none; transition: none; }
  .tx-term .bar i { width: 100%; animation: none; }
}
/* home: closing CTA speaks the hero language */
.lx-home .lx-cta .btn-primary { background: var(--tx-y); color: #14130C; border-radius: 4px; font-family: 'Chakra Petch', var(--font, inherit); text-transform: uppercase; letter-spacing: .03em;
  box-shadow: 0 10px 30px -14px rgba(234,210,124,.8); }
.lx-home .lx-cta .btn-primary:hover { background: var(--tx-y2); }
:root[data-theme="light"] .lx-home .lx-cta .btn-primary { background: #14130C; color: var(--tx-y); }

/* ══ 3D theme switch: recessed track, glowing word (DARK amber / LIGHT ice), matte knob ══ */
.tgl3d { --w: 88px; --h: 36px; --k: 28px; position: relative; flex: none; width: var(--w); height: var(--h); padding: 0; border: 0; border-radius: 999px; cursor: pointer;
  background: linear-gradient(180deg, #2A2C30, #1E2023); -webkit-tap-highlight-color: transparent;
  box-shadow: 0 1px 0 rgba(255,255,255,.07), 0 6px 14px -8px rgba(0,0,0,.8); }
.tg-track { position: absolute; inset: 3px; border-radius: inherit; overflow: hidden;
  background: radial-gradient(90% 140% at 70% 50%, rgba(255,120,40,.22), transparent 65%), #0B0C0E;
  box-shadow: inset 0 2px 5px rgba(0,0,0,.9), inset 0 -1px 0 rgba(255,255,255,.06), inset 0 0 0 1px rgba(255,140,60,.28); transition: background .45s ease, box-shadow .45s ease; }
.tg-w { position: absolute; top: 50%; transform: translateY(-50%); font: 700 11.5px/1 'Chakra Petch', var(--font, inherit); letter-spacing: .08em; text-transform: uppercase;
  transition: opacity .35s ease, transform .45s cubic-bezier(.3,1.3,.5,1); pointer-events: none; }
.tg-dark { right: 11px; color: #FFE3C7; text-shadow: 0 0 4px #FF9A4A, 0 0 10px #FF6A1F, 0 0 18px rgba(255,90,20,.7); }
.tg-light { left: 10px; color: #F2FAFF; text-shadow: 0 0 4px #8FD3FF, 0 0 10px #4FB4F5, 0 0 18px rgba(80,180,245,.7); opacity: 0; transform: translate(-6px, -50%); }
.tg-knob { position: absolute; top: calc((var(--h) - var(--k)) / 2); left: calc((var(--h) - var(--k)) / 2); width: var(--k); height: var(--k); border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #4A4D53, #2A2C30 55%, #1C1D20);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), inset 0 -2px 3px rgba(0,0,0,.5), 0 3px 6px rgba(0,0,0,.6), 0 8px 14px -4px rgba(0,0,0,.7);
  transition: left .45s cubic-bezier(.34,1.4,.5,1), background .45s ease, box-shadow .45s ease; }
.tgl3d:hover .tg-knob { box-shadow: inset 0 1px 0 rgba(255,255,255,.24), inset 0 -2px 3px rgba(0,0,0,.5), 0 3px 6px rgba(0,0,0,.6), 0 10px 18px -4px rgba(0,0,0,.75); }
.tgl3d:active .tg-knob { width: calc(var(--k) + 4px); }
.tgl3d:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
/* light state */
:root[data-theme="light"] .tgl3d { background: linear-gradient(180deg, #E9ECF2, #D4D9E1); box-shadow: 0 1px 0 #fff, 0 6px 14px -8px rgba(40,60,90,.45); }
:root[data-theme="light"] .tg-track { background: radial-gradient(90% 140% at 30% 50%, rgba(90,180,245,.35), transparent 65%), #9FB4C8;
  box-shadow: inset 0 2px 5px rgba(30,50,80,.55), inset 0 -1px 0 rgba(255,255,255,.6), inset 0 0 0 1px rgba(120,190,240,.45); }
:root[data-theme="light"] .tg-dark { opacity: 0; transform: translate(6px, -50%); }
:root[data-theme="light"] .tg-light { opacity: 1; transform: translateY(-50%); }
:root[data-theme="light"] .tg-knob { left: calc(var(--w) - var(--k) - (var(--h) - var(--k)) / 2);
  background: radial-gradient(circle at 35% 28%, #FFFFFF, #E3E7EE 55%, #C9CFD9);
  box-shadow: inset 0 1px 0 #fff, inset 0 -2px 3px rgba(60,80,110,.25), 0 3px 6px rgba(40,60,90,.35), 0 8px 14px -4px rgba(40,60,90,.4); }
@media (max-width: 480px) { .topbar .tgl3d { --w: 74px; --h: 32px; --k: 24px; } .topbar .tg-w { font-size: 10px; } }
@media (prefers-reduced-motion: reduce) { .tg-knob, .tg-w, .tg-track { transition: none; } }
/* sidebar: switch when open, icon when collapsed */
.vside .vs-tgl { --w: 80px; --h: 32px; --k: 24px; }
.vside .vs-tgl .tg-w { font-size: 10.5px; }
.vside .vs-tgl-ic { display: none; }
.shell.vshell.panel-closed .vside .vs-tgl { display: none; }
.shell.vshell.panel-closed .vside .vs-tgl-ic { display: grid; }

/* hero: the smart orb sits where the lens was, warmed up to the hero light */
.tx-orb { position: absolute; left: 50%; top: 45%; z-index: 0; transform: translate(calc(-50% + var(--px) * 8px), calc(-50% + var(--py) * 6px)); }
.tx-orb .lx-orb { --R: clamp(130px, 15vw, 200px);
  box-shadow: inset 0 0 0 1px rgba(255,236,210,.28), inset 0 -30px 60px rgba(0,0,0,.35), inset 0 24px 50px rgba(255,255,255,.06),
    0 0 60px 4px rgba(255,190,130,.16), 0 0 160px 40px rgba(255,150,80,.10); }
.tx-orb .orb-core b { color: var(--tx-y); text-shadow: 0 0 30px rgba(234,210,124,.35); }
.tx-orb .orb-core span { color: rgba(233,236,230,.7); }
:root[data-theme="light"] .lx-home .tx-orb .lx-orb { background-color: rgba(255,255,255,.04); }
:root[data-theme="light"] .lx-home .tx-orb .orb-core span { color: rgba(233,236,230,.7); }
@media (max-width: 640px) { .tx-orb { top: 31%; } .tx-orb .lx-orb { --R: 31vw; } .tx-orb .orb-ava { width: 40px; height: 40px; margin: -20px 0 0 -20px; } }
@media (max-width: 440px) { .topbar .logo .wordmark { display: none; } .topbar .tgl3d { --w: 70px; --h: 32px; --k: 24px; } .topbar .tg-w { font-size: 9.5px; letter-spacing: .06em; } .topbar .tg-dark { right: 8px; } .topbar .tg-light { left: 8px; } }
