/* Socialfy — glass UI after Martin's references (docs/design-refs): light = soft pastel glass ("Sense"),
   dark = deep navy glass with blue glow. One brand colour: his blue scale #03195b → #cbe9fd.
   Phone first: one column + bottom tab bar; from 960 px a glass sidebar. The theme is set on <html data-theme>
   by the inline script in base.html before the first paint. */
@font-face { font-family: "Inter"; src: url("fonts/Inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("fonts/Montserrat.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --blue-900: #03195b; --blue-700: #0b2cb1; --blue-600: #1951fc; --blue-500: #3781fc; --blue-100: #cbe9fd;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-sm: 12px; --r: 18px; --r-lg: 24px; --r-xl: 30px;
  --blur: blur(26px) saturate(170%);
  --ease: cubic-bezier(.2, .8, .2, 1);

  --bg: #eceef4;
  --scene:
    radial-gradient(42% 38% at 4% 104%, rgba(255, 168, 196, .85), transparent 70%),
    radial-gradient(48% 46% at 100% 100%, rgba(190, 160, 255, .8), transparent 70%),
    radial-gradient(38% 34% at 96% 0%, rgba(160, 200, 255, .6), transparent 72%),
    radial-gradient(30% 30% at 0% 0%, rgba(255, 214, 190, .5), transparent 70%),
    linear-gradient(180deg, #eef0f5 0%, #ebe8f3 60%, #efe4ef 100%);
  --ink: #0f1222; --ink-2: #3a4058; --muted: #676d86; --faint: #9ba1b5;
  --glass: rgba(255, 255, 255, .46); --glass-2: rgba(255, 255, 255, .7); --glass-3: rgba(255, 255, 255, .92);
  --edge: rgba(255, 255, 255, .85); --line: rgba(15, 18, 34, .08); --field: rgba(255, 255, 255, .7);
  --accent: var(--blue-600); --accent-text: #1647db; --accent-soft: rgba(25, 81, 252, .1);
  --shadow: 0 1px 2px rgba(15, 18, 34, .04), 0 18px 40px -20px rgba(46, 52, 110, .28);
  --shadow-lg: 0 34px 70px -28px rgba(46, 52, 110, .42);
  --hi: inset 0 1px 0 rgba(255, 255, 255, .95);
  --haze: rgba(255, 255, 255, .94); --frame: rgba(255, 255, 255, .78); --dot: rgba(15, 18, 34, .11);
  --nav-on: rgba(255, 255, 255, .95); --nav-on-edge: rgba(255, 255, 255, 1); --nav-on-glow: 0 10px 26px -12px rgba(46, 52, 110, .4);
  --ok: #138a45; --ok-soft: rgba(22, 163, 74, .13); --warn: #b86200; --warn-soft: rgba(217, 119, 6, .14);
  --bad: #d12d2d; --bad-soft: rgba(220, 38, 38, .11); --work: var(--blue-600); --work-soft: rgba(25, 81, 252, .11);
  --todo: #7c3aed; --todo-soft: rgba(124, 58, 237, .12); --mute-soft: rgba(15, 18, 34, .06);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #050817;
  --scene:
    radial-gradient(46% 40% at 88% -6%, rgba(25, 81, 252, .52), transparent 70%),
    radial-gradient(42% 42% at -4% 104%, rgba(110, 60, 255, .4), transparent 70%),
    radial-gradient(30% 30% at 104% 98%, rgba(255, 120, 60, .17), transparent 70%),
    radial-gradient(30% 28% at 42% 46%, rgba(55, 129, 252, .08), transparent 70%),
    linear-gradient(180deg, #070b1f 0%, #050817 100%);
  --ink: #eef2ff; --ink-2: #c6cdea; --muted: #8f99bd; --faint: #5f6992;
  --glass: rgba(17, 25, 58, .5); --glass-2: rgba(22, 31, 70, .62); --glass-3: rgba(30, 41, 88, .78);
  --edge: rgba(255, 255, 255, .09); --line: rgba(255, 255, 255, .08); --field: rgba(255, 255, 255, .045);
  --accent: var(--blue-500); --accent-text: #8fb6ff; --accent-soft: rgba(55, 129, 252, .17);
  --shadow: 0 1px 1px rgba(0, 0, 0, .2), 0 24px 50px -24px rgba(0, 0, 0, .75);
  --shadow-lg: 0 40px 80px -30px rgba(0, 0, 0, .85), 0 0 60px -30px rgba(55, 129, 252, .35);
  --hi: inset 0 1px 0 rgba(255, 255, 255, .07);
  --haze: rgba(10, 15, 38, .9); --frame: rgba(255, 255, 255, .08); --dot: rgba(160, 190, 255, .16);
  --nav-on: linear-gradient(180deg, rgba(55, 129, 252, .32), rgba(25, 81, 252, .12)); --nav-on-edge: rgba(80, 145, 255, .45);
  --nav-on-glow: 0 0 30px -6px rgba(55, 129, 252, .65);
  --ok: #4ade80; --ok-soft: rgba(74, 222, 128, .14); --warn: #fbbf24; --warn-soft: rgba(251, 191, 36, .14);
  --bad: #f87171; --bad-soft: rgba(248, 113, 113, .15); --work: #7fb0ff; --work-soft: rgba(55, 129, 252, .18);
  --todo: #c4a5ff; --todo-soft: rgba(167, 139, 250, .17); --mute-soft: rgba(255, 255, 255, .07);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; color: var(--ink); font: 15px/1.5 var(--font); -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11", "ss01"; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; background: var(--scene); }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; letter-spacing: -.025em; text-wrap: balance; line-height: 1.15; }
h1 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); font-weight: 650; letter-spacing: -.04em; }
h2 { font-size: 1.12rem; font-weight: 650; }
h3 { font-size: .98rem; font-weight: 650; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: .84rem; }
.tiny { font-size: .74rem; }
.num { font-variant-numeric: tabular-nums; }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ic.fill { fill: currentColor; stroke: none; }
.ic.sm { width: 16px; height: 16px; }
.ic.lg { width: 24px; height: 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- glass */
.glass, .card { background: var(--glass); border: 1px solid var(--edge); box-shadow: var(--shadow), var(--hi);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
.card { border-radius: var(--r-xl); padding: 24px; display: grid; gap: 16px; align-content: start; min-width: 0; }
.card.tight { padding: 18px; gap: 12px; }
.card.strong { background: var(--glass-2); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.card-head h2 { display: flex; align-items: center; gap: 10px; }
.card-head .link { font-size: .84rem; font-weight: 600; color: var(--accent-text); text-decoration: none; }
.card-head .link:hover { text-decoration: underline; }
.divider { height: 1px; background: var(--line); margin: 2px 0; }
@media (prefers-reduced-transparency: reduce) {
  .glass, .card, .side, .tabbar, .menu-panel { background: var(--glass-3); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ---------- app shell */
.app { display: grid; grid-template-columns: 252px minmax(0, 1fr); gap: 22px; max-width: 1520px; margin: 0 auto; padding: 22px; min-height: 100vh;
  overflow-x: clip; }
.side { position: sticky; top: 22px; height: calc(100vh - 44px); display: flex; flex-direction: column; gap: 2px; padding: 22px 14px 14px;
  border-radius: var(--r-xl); overflow-y: auto; scrollbar-width: none; }
.logo { display: flex; align-items: center; gap: 12px; padding: 2px 10px 16px; font-weight: 650; font-size: 1.32rem; letter-spacing: -.03em;
  text-decoration: none; color: var(--ink); }
.orb { width: 34px; height: 34px; border-radius: 50%; flex: none; display: inline-block;
  background: radial-gradient(circle at 33% 27%, #fff 0 3%, #cbe9fd 13%, #3781fc 41%, #1951fc 63%, #0b2cb1 84%, #03195b 100%);
  box-shadow: 0 10px 24px -8px rgba(25, 81, 252, .8), inset -3px -4px 9px rgba(3, 25, 91, .45); }
.orb.xl { width: 78px; height: 78px; box-shadow: 0 22px 44px -14px rgba(25, 81, 252, .85), inset -7px -9px 18px rgba(3, 25, 91, .45); }
.orb.xs { width: 18px; height: 18px; box-shadow: 0 4px 10px -3px rgba(25, 81, 252, .7); }
.orb.me { background: radial-gradient(circle at 33% 27%, #fff 0 3%, #ffd2dc 14%, #ff8a9a 42%, #ef4d6c 66%, #a8173c 100%);
  box-shadow: 0 4px 10px -3px rgba(239, 77, 108, .6); }
.navlabel { font-size: .67rem; font-weight: 650; letter-spacing: .09em; text-transform: uppercase; color: var(--faint); padding: 16px 14px 6px; }
.navlink { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 14px; border-radius: 16px; color: var(--ink-2);
  text-decoration: none; font: 500 .94rem var(--font); border: 1px solid transparent; background: none; cursor: pointer; text-align: left;
  transition: background .2s, color .2s; }
.navlink:hover { background: var(--glass); color: var(--ink); }
.navlink.on { background: var(--nav-on); border-color: var(--nav-on-edge); color: var(--ink); font-weight: 650; box-shadow: var(--nav-on-glow), var(--hi); }
.navlink.on .ic { color: var(--accent); }
.navlink .count { margin-left: auto; font-size: .72rem; font-weight: 700; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 99px;
  display: grid; place-items: center; background: var(--accent); color: #fff; }
.side form { margin: 0; }
.side-foot { margin-top: auto; display: grid; gap: 12px; padding-top: 14px; }
.me-card { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 18px; background: var(--glass); border: 1px solid var(--edge);
  text-decoration: none; color: inherit; }
.avatar { width: 36px; height: 36px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 700; font-size: .82rem; color: #fff;
  background: linear-gradient(135deg, #3781fc, #8b5cf6); box-shadow: 0 6px 16px -6px rgba(55, 129, 252, .7); overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.me-card .who { min-width: 0; line-height: 1.25; }
.me-card .who b { display: block; font-size: .86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-card .who span { font-size: .74rem; color: var(--muted); }

.theme { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 14px; background: var(--mute-soft); gap: 4px; }
.theme button { display: flex; align-items: center; justify-content: center; gap: 6px; height: 34px; border: 0; border-radius: 10px; background: none;
  color: var(--muted); font: 600 .8rem var(--font); cursor: pointer; }
:root:not([data-theme="dark"]) .theme [data-set="light"], :root[data-theme="dark"] .theme [data-set="dark"] {
  background: var(--glass-3); color: var(--ink); box-shadow: var(--shadow); }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; gap: 12px; margin: 6px 0 22px; min-height: 48px; }
.topbar .title { margin-right: auto; min-width: 0; display: grid; gap: 2px; }
.topbar .title .crumb { font-size: .82rem; font-weight: 600; color: var(--muted); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.topbar .title .crumb:hover { color: var(--ink); }
.mobile-logo { display: none; }
.search { display: flex; align-items: center; gap: 10px; height: 46px; width: min(320px, 30vw); padding: 0 18px; border-radius: 99px;
  background: var(--glass-2); border: 1px solid var(--edge); box-shadow: var(--shadow), var(--hi); color: var(--muted); }
.search input { border: 0; background: none; outline: none; box-shadow: none; font: inherit; color: var(--ink); width: 100%; padding: 0; min-height: 0; }
.search input:focus { box-shadow: none; }
.icon-btn { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--glass-2);
  border: 1px solid var(--edge); box-shadow: var(--shadow), var(--hi); color: var(--ink); cursor: pointer; position: relative; text-decoration: none; }
.icon-btn:hover { background: var(--glass-3); }
.icon-btn .dot { position: absolute; top: 11px; right: 12px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 2px var(--glass-3), 0 0 10px var(--accent); }
.content { display: grid; gap: 22px; align-content: start; flex: 1; }
.foot { display: flex; gap: 16px; justify-content: center; padding: 30px 0 6px; font-size: .78rem; color: var(--faint); }
.foot a { text-decoration: none; } .foot a:hover { color: var(--ink); }

.tabbar { display: none; }

/* ---------- dropdown menus (details/summary) */
.menu { position: relative; }
.menu > summary { list-style: none; } .menu > summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; right: 0; top: calc(100% + 10px); z-index: 60; width: min(340px, calc(100vw - 28px)); padding: 10px;
  border-radius: 22px; background: var(--glass-3); border: 1px solid var(--edge); box-shadow: var(--shadow-lg), var(--hi);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); display: grid; gap: 2px; animation: pop .18s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.menu-panel .navlink { padding: 10px 12px; }
.menu-head { padding: 8px 12px 10px; display: grid; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.event { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 14px; text-decoration: none; color: inherit; }
.event:hover { background: var(--mute-soft); }
.event .badge { margin-top: 1px; }
.event b { display: block; font-size: .86rem; font-weight: 600; }
.event span { font-size: .76rem; color: var(--muted); }

/* ---------- controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 99px;
  border: 1px solid var(--edge); background: var(--glass-2); color: var(--ink); font: 600 .92rem var(--font); cursor: pointer; text-decoration: none;
  box-shadow: var(--shadow), var(--hi); transition: transform .15s var(--ease), box-shadow .2s, background .2s, filter .2s; white-space: nowrap; }
.btn:hover { background: var(--glass-3); }
.btn:active { transform: scale(.98); }
.btn.primary { color: #fff; border-color: transparent; background: linear-gradient(180deg, #4b8eff 0%, var(--blue-600) 100%);
  box-shadow: 0 12px 26px -10px rgba(25, 81, 252, .75), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn.primary:hover { filter: brightness(1.06); box-shadow: 0 16px 32px -10px rgba(25, 81, 252, .85), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn.dark { background: var(--ink); color: var(--bg); border-color: transparent; box-shadow: var(--shadow); }
.btn.ghost { background: none; border-color: transparent; box-shadow: none; color: var(--muted); height: 38px; padding: 0 12px; }
.btn.ghost:hover { color: var(--ink); background: var(--mute-soft); }
.btn.danger { color: var(--bad); }
.btn.sm { height: 36px; padding: 0 14px; font-size: .83rem; }
.btn.block { width: 100%; }
.btn.round { width: 46px; padding: 0; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 2px; }

.field { display: grid; gap: 7px; font-size: .83rem; font-weight: 600; color: var(--ink-2); min-width: 0; }
.field .hint, .hint { font-weight: 450; color: var(--muted); font-size: .79rem; }
.field .row-label { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.field output { font-weight: 650; color: var(--ink); font-variant-numeric: tabular-nums; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=datetime-local], input[type=search], input[type=tel],
textarea, select {
  font: 450 .95rem var(--font); color: var(--ink); width: 100%; min-height: 46px; padding: 11px 16px; border-radius: 16px; border: 1px solid var(--line);
  background: var(--field); box-shadow: inset 0 1px 2px rgba(15, 18, 34, .04); transition: border-color .2s, box-shadow .2s; }
select { appearance: none; -webkit-appearance: none; padding-right: 42px; cursor: pointer;
  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='%238a90a6' stroke-width='2.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 14px center; }
input:focus, textarea:focus, select:focus { outline: none; border-color: rgba(55, 129, 252, .6); box-shadow: 0 0 0 4px rgba(55, 129, 252, .16); }
textarea { min-height: 110px; resize: vertical; line-height: 1.55; }
::placeholder { color: var(--faint); }
input[type=color] { width: 46px; height: 46px; padding: 4px; border-radius: 14px; border: 1px solid var(--line); background: var(--field); cursor: pointer; }
input[type=color]::-webkit-color-swatch-wrapper { padding: 0; } input[type=color]::-webkit-color-swatch { border: 0; border-radius: 10px; }

.check { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: .9rem; cursor: pointer; color: var(--ink-2); }
.check input { width: 18px; height: 18px; accent-color: var(--accent); flex: none; }

.switch { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line);
  cursor: pointer; font-weight: 500; font-size: .92rem; color: var(--ink); }
.switch:last-child { border-bottom: 0; }
.switch .hint { display: block; margin-top: 2px; }
.switch input { appearance: none; -webkit-appearance: none; width: 48px; height: 28px; margin: 0; border-radius: 99px; background: var(--mute-soft);
  border: 1px solid var(--line); position: relative; flex: none; cursor: pointer; transition: background .25s; }
.switch input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; border-radius: 50%; background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .25); transition: transform .28s var(--ease); }
.switch input:checked { background: linear-gradient(180deg, #4b8eff, var(--blue-600)); border-color: transparent; box-shadow: 0 0 16px -4px rgba(55, 129, 252, .7); }
.switch input:checked::after { transform: translateX(20px); }

input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; margin: 10px 0; border-radius: 99px; cursor: pointer;
  background: linear-gradient(90deg, var(--accent) 0 var(--p, 50%), var(--mute-soft) var(--p, 50%)); }
input[type=range]:focus { outline: none; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff;
  border: 1px solid rgba(15, 18, 34, .1); box-shadow: 0 3px 10px rgba(15, 18, 34, .25); }
input[type=range]::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 1px solid rgba(15, 18, 34, .1);
  box-shadow: 0 3px 10px rgba(15, 18, 34, .25); }
input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 5px rgba(55, 129, 252, .3); }

.seg { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 16px; background: var(--mute-soft); }
.seg label { flex: 1 1 auto; position: relative; }
.seg input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.seg span { display: block; text-align: center; padding: 8px 12px; border-radius: 12px; font-weight: 600; font-size: .83rem; color: var(--muted);
  white-space: nowrap; transition: background .2s, color .2s; }
.seg input:checked + span { background: var(--glass-3); color: var(--ink); box-shadow: var(--shadow); }
.seg input:focus-visible + span { outline: 2px solid var(--accent); }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 16px; border-radius: 99px; border: 1px solid var(--edge);
  background: var(--glass); color: var(--ink-2); font-weight: 600; font-size: .84rem; text-decoration: none; white-space: nowrap;
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); transition: background .2s; }
.chip:hover { background: var(--glass-2); }
.chip.on { background: var(--nav-on); border-color: var(--nav-on-edge); color: var(--ink); box-shadow: var(--nav-on-glow), var(--hi); }
.chip .n { font-variant-numeric: tabular-nums; color: var(--faint); font-weight: 600; }

.badge { --c: var(--muted); display: inline-flex; align-items: center; gap: 6px; font-size: .73rem; font-weight: 650; padding: 4px 10px;
  border-radius: 99px; white-space: nowrap; color: var(--c); background: var(--mute-soft); }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c); flex: none; }
.badge.ok { --c: var(--ok); background: var(--ok-soft); } .badge.work { --c: var(--work); background: var(--work-soft); }
.badge.wait { --c: var(--warn); background: var(--warn-soft); } .badge.todo { --c: var(--todo); background: var(--todo-soft); }
.badge.bad { --c: var(--bad); background: var(--bad-soft); } .badge.mute { --c: var(--muted); background: var(--mute-soft); }
.badge.media { color: #fff; background: rgba(8, 10, 24, .5); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.badge.media::before { box-shadow: 0 0 8px var(--c); }
.badge.media.ok { --c: #4ade80; } .badge.media.work { --c: #7fb0ff; } .badge.media.wait { --c: #fbbf24; } .badge.media.todo { --c: #c4a5ff; }
.badge.media.bad { --c: #f87171; } .badge.media.mute { --c: #c3c7d4; }
.work .pulse, .badge.work::before { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }

.flash { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 20px; font-weight: 600; font-size: .92rem;
  background: var(--glass-2); border: 1px solid var(--edge); box-shadow: var(--shadow), var(--hi); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
.flash .ic { color: var(--ok); }
.flash.bad .ic { color: var(--bad); }
.flash.bad { color: var(--bad); }
.note { padding: 14px 16px; border-radius: 18px; background: var(--accent-soft); color: var(--ink-2); font-size: .88rem; display: flex; gap: 12px; align-items: flex-start; }
.note .ic { color: var(--accent); margin-top: 1px; }
.note.warn { background: var(--warn-soft); } .note.warn .ic { color: var(--warn); }
.note.bad { background: var(--bad-soft); } .note.bad .ic { color: var(--bad); }

.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.stack { display: grid; gap: 12px; }
.stack-lg { display: grid; gap: 22px; align-content: start; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.empty { text-align: center; padding: 34px 12px; color: var(--muted); display: grid; gap: 12px; justify-items: center; }
.empty .orb { opacity: .9; }

/* ---------- art tiles (painted gradients like the Sense cards) */
.art { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; isolation: isolate; }
.art::before { content: ""; position: absolute; inset: -18%; background: var(--g); filter: blur(16px) saturate(1.2); }
.art::after { content: ""; position: absolute; inset: 0; opacity: .45; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E"); }
.art.dawn { --g: radial-gradient(55% 45% at 28% 32%, #ff9fd6 0%, transparent 70%), radial-gradient(45% 40% at 72% 42%, #c77dff 0%, transparent 70%),
  repeating-linear-gradient(171deg, transparent 0 16px, rgba(255, 110, 190, .55) 16px 24px, transparent 24px 42px), linear-gradient(180deg, #a998f2 0%, #f6cde8 58%, #fff 100%); }
.art.meadow { --g: radial-gradient(50% 42% at 74% 34%, #63d98a 0%, transparent 70%), radial-gradient(48% 48% at 24% 46%, #ffa95e 0%, transparent 70%),
  repeating-linear-gradient(152deg, transparent 0 18px, rgba(255, 160, 110, .5) 18px 30px, transparent 30px 52px), linear-gradient(160deg, #ffc6a2, #f2efe2 62%, #fff); }
.art.ocean { --g: radial-gradient(58% 52% at 70% 28%, #3781fc 0%, transparent 70%), radial-gradient(48% 48% at 22% 62%, #cbe9fd 0%, transparent 70%),
  repeating-linear-gradient(102deg, transparent 0 16px, rgba(25, 81, 252, .38) 16px 26px, transparent 26px 46px), linear-gradient(180deg, #1951fc, #93bfff 62%, #fff); }
.art.dusk { --g: repeating-linear-gradient(90deg, #8eaefc 0 9%, #ffa3c4 9% 21%, #ffd6b5 21% 29%, #b29dff 29% 41%, #ff9db5 41% 52%),
  linear-gradient(180deg, #7f8ff0, #ffd2c4); }
.art.mist { --g: radial-gradient(70% 48% at 62% 72%, #93d9b0 0%, transparent 70%), radial-gradient(38% 38% at 18% 60%, #ffb07c 0%, transparent 70%),
  linear-gradient(180deg, #e3f5ea, #fdf1e6); }
.art.flame { --g: radial-gradient(42% 55% at 50% 72%, #ff6b1f 0%, transparent 70%), radial-gradient(38% 38% at 28% 30%, #ffbfe0 0%, transparent 70%),
  radial-gradient(38% 38% at 76% 34%, #ffd166 0%, transparent 70%), linear-gradient(180deg, #ffd5ea, #ffe4cc); }
.art.night { --g: radial-gradient(50% 50% at 70% 30%, #5b8cff 0%, transparent 70%), radial-gradient(45% 45% at 25% 70%, #a855f7 0%, transparent 70%),
  linear-gradient(180deg, #0b2cb1, #03195b); }
:root[data-theme="dark"] .art::before { filter: blur(16px) saturate(1.25) brightness(.85); }

.tile { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 176px; padding: 18px 20px; border-radius: 28px;
  text-decoration: none; color: var(--ink); overflow: hidden; isolation: isolate; border: 5px solid var(--frame); box-shadow: var(--shadow);
  transition: transform .3s var(--ease), box-shadow .3s; }
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.tile .art { z-index: -1; }
.tile .fade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 38%, var(--haze) 100%); }
.tile .label { font-size: 1.22rem; font-weight: 550; letter-spacing: -.02em; }
.tile .sub { font-size: .8rem; color: var(--muted); margin-top: 2px; }
.tile:has(.go) .sub, .tile:has(.go) .lines { padding-right: 46px; }
.tile .go { position: absolute; right: 16px; bottom: 16px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--glass-3); color: var(--accent); box-shadow: var(--shadow); }
.tile .top-right { position: absolute; right: 16px; top: 16px; display: flex; gap: 6px; }

/* ---------- dashboard */
.dash { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; align-items: start; }
.dash-side { display: grid; gap: 22px; position: sticky; top: 22px; }
.hero { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 22px; }
.greet { position: relative; overflow: hidden; text-align: center; justify-items: center; padding: 34px 28px 28px; }
.greet::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(var(--dot) 1.1px, transparent 1.4px); background-size: 9px 9px;
  -webkit-mask-image: radial-gradient(52% 46% at 50% 18%, #000 0%, transparent 78%); mask-image: radial-gradient(52% 46% at 50% 18%, #000 0%, transparent 78%); }
.greet h1 { font-size: clamp(1.5rem, 2.3vw, 2.15rem); font-weight: 400; letter-spacing: -.035em; line-height: 1.12; }
.greet h1 b { font-weight: 700; }
.drop { width: 100%; display: grid; gap: 6px; justify-items: center; padding: 22px 18px; border-radius: 24px; cursor: pointer;
  border: 1.5px dashed color-mix(in srgb, var(--accent) 45%, transparent); background: var(--accent-soft); transition: background .2s, transform .2s; }
.drop:hover, .drop.over { background: color-mix(in srgb, var(--accent) 18%, transparent); }
.drop.over { transform: scale(1.01); }
.drop .up { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff; margin-bottom: 4px;
  background: linear-gradient(180deg, #4b8eff, var(--blue-600)); box-shadow: 0 12px 26px -10px rgba(25, 81, 252, .8); }
.drop strong { font-size: 1.05rem; font-weight: 650; }
.upload-opts { width: 100%; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 12px; text-align: left; }
.progress { width: 100%; display: grid; gap: 8px; text-align: left; }
.bar { height: 10px; border-radius: 99px; background: var(--mute-soft); overflow: hidden; }
.bar > i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #7cc4ff, var(--blue-600));
  box-shadow: 0 0 14px rgba(55, 129, 252, .7); transition: width .25s; }
.quota { justify-items: center; text-align: center; }
.quota .card-head { width: 100%; }
.ring { width: 150px; height: 150px; display: block; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 11; stroke-linecap: round; }
.ring .track { stroke: var(--mute-soft); }
.ring .val { stroke: url(#ringgrad); filter: drop-shadow(0 0 6px rgba(55, 129, 252, .55)); transition: stroke-dasharray .8s var(--ease); }
.ring-wrap { position: relative; width: 150px; height: 150px; }
.ring-wrap .in { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring-wrap .in b { font-size: 2rem; font-weight: 650; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.ring-wrap .in span { font-size: .75rem; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; gap: 8px; }
.stat { display: grid; gap: 2px; padding: 10px 6px; border-radius: 16px; background: var(--mute-soft); text-align: center; }
.stat b { font-size: 1.25rem; font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.stat span { font-size: .7rem; color: var(--muted); font-weight: 550; overflow-wrap: anywhere; }
.tiles { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 22px; }

.plan-list { display: grid; gap: 10px; }
.plan-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 10px; border-radius: 22px; background: var(--glass-2);
  border: 1px solid var(--edge); box-shadow: var(--shadow), var(--hi); text-decoration: none; color: inherit; }
.plan-item .thumb { width: 46px; height: 46px; border-radius: 50%; flex: none; background: #0d1020 center / cover no-repeat; position: relative; overflow: hidden; }
.plan-item .thumb .art { border-radius: 50%; }
.plan-item .txt { min-width: 0; flex: 1; line-height: 1.3; }
.plan-item .txt b { display: block; font-size: .9rem; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plan-item .txt span { font-size: .76rem; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.play { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--glass-3);
  color: #ff6a1a; box-shadow: var(--shadow); }
.play .ic { width: 14px; height: 14px; }

.bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; height: 150px; margin-top: 8px; }
.bars .b { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 8px; height: 100%; position: relative;
  font-size: .72rem; color: var(--muted); font-weight: 550; }
.bars i { display: block; width: 100%; max-width: 24px; border-radius: 99px; min-height: 8px; height: calc((100% - 26px) * var(--k, 0));
  background: linear-gradient(180deg, rgba(90, 150, 255, .95), rgba(25, 81, 252, .3)); box-shadow: 0 0 18px -6px rgba(55, 129, 252, .8); }
.bars .plan i { background: none; border: 1.5px dashed color-mix(in srgb, var(--accent) 60%, transparent); box-shadow: none; }
.bars .today { color: var(--ink); font-weight: 700; }
.bars .tip { position: absolute; bottom: calc((100% - 26px) * var(--k, 0) + 34px); font-size: .7rem; font-weight: 700; padding: 3px 8px;
  border-radius: 99px; background: var(--glass-3); color: var(--ink); box-shadow: var(--shadow); white-space: nowrap; }

/* ---------- chat (notes, style instructions) */
.chat { display: grid; gap: 14px; }
.msg { display: grid; gap: 6px; max-width: 92%; }
.msg .who { display: flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 650; color: var(--ink); }
.msg p { font-size: .9rem; color: var(--ink-2); line-height: 1.55; }
.msg.me { justify-self: end; text-align: right; }
.msg.me .who { justify-content: flex-end; }
.msg.bot { padding-top: 14px; border-top: 1px solid var(--line); }
.msg.me + .msg.me, .msg.bot + .msg.bot { border-top: 0; padding-top: 0; }
.msg .meta { font-size: .72rem; color: var(--faint); }
.typing { display: inline-flex; gap: 4px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.composer { display: flex; align-items: flex-end; gap: 4px; padding: 6px 6px 6px 18px; border-radius: 26px; background: var(--glass-3);
  border: 1px solid var(--edge); box-shadow: var(--shadow), var(--hi); }
.composer textarea { border: 0; background: none; box-shadow: none; padding: 11px 0; min-height: 44px; height: 44px; max-height: 180px; resize: none; flex: 1; }
.composer textarea:focus { box-shadow: none; }
.composer button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: none; color: var(--muted); display: grid; place-items: center;
  cursor: pointer; flex: none; margin-bottom: 2px; }
.composer button:hover { color: var(--ink); background: var(--mute-soft); }
.composer button.send { background: linear-gradient(180deg, #4b8eff, var(--blue-600)); color: #fff; box-shadow: 0 8px 18px -8px rgba(25, 81, 252, .9); }
.composer button.rec { color: #fff; background: var(--bad); animation: pulse 1.2s infinite; }
.composer-opts { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 0 6px; }

/* ---------- videos */
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 20px 18px; }
.vcard { display: grid; gap: 10px; text-decoration: none; color: inherit; min-width: 0; }
.vcard .cover { position: relative; aspect-ratio: 3 / 4; border-radius: 24px; overflow: hidden; background: #0d1020 50% 18% / cover no-repeat;
  border: 4px solid var(--frame); box-shadow: var(--shadow); transition: transform .3s var(--ease), box-shadow .3s; isolation: isolate; }
.vcard:hover .cover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.vcard .cover .badge { position: absolute; left: 10px; top: 10px; z-index: 2; }
.vcard .cover .nets { position: absolute; right: 10px; bottom: 10px; display: flex; gap: 4px; z-index: 2; }
.vcard .cover .wait { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 10px; color: #fff; font-size: .8rem;
  font-weight: 600; text-align: center; padding: 12px; }
.vcard .cover .wait .art { z-index: -1; }
.vcard .t { font-weight: 600; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 4px; }
.vcard .m { font-size: .76rem; color: var(--muted); padding: 0 4px; margin-top: -6px; }
.spin { width: 30px; height: 30px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .3); border-top-color: #fff; animation: sp 1s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }

.video-layout { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 22px; align-items: start; }
.video-layout > .sticky { position: sticky; top: 22px; display: grid; gap: 14px; }
.phone { padding: 9px; border-radius: 42px; background: var(--glass-2); border: 1px solid var(--edge); box-shadow: var(--shadow-lg), var(--hi);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
.phone video, .phone .screen { display: block; width: 100%; aspect-ratio: 9 / 16; max-height: 76vh; border-radius: 34px; background: #070912; object-fit: contain; }
.phone .screen { position: relative; overflow: hidden; display: grid; place-items: center; align-content: center; gap: 12px; text-align: center; padding: 26px;
  color: #fff; isolation: isolate; }
.phone .screen .art { z-index: -1; }
.phone .screen h2 { color: #fff; font-size: 1.25rem; }
.phone .screen p { color: rgba(255, 255, 255, .82); font-size: .88rem; }
.phone .screen::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(5, 8, 23, .35); }

.steps { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 0; }
.step { display: flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 600; color: var(--faint); white-space: nowrap; }
.step i { width: 10px; height: 10px; border-radius: 50%; background: var(--mute-soft); border: 2px solid var(--line); flex: none; }
.step.done { color: var(--ink-2); } .step.done i { background: var(--accent); border-color: var(--accent); }
.step.now { color: var(--ink); } .step.now i { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
.step.fail { color: var(--bad); } .step.fail i { background: var(--bad); border-color: var(--bad); }
.steps .sep { flex: 1 1 18px; height: 2px; min-width: 14px; max-width: 70px; margin: 0 10px; background: var(--line); border-radius: 2px; }
.steps .sep.done { background: var(--accent); }

.accs { display: grid; gap: 8px; }
.acc { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border-radius: 20px; background: var(--glass-2);
  border: 1px solid var(--edge); cursor: pointer; }
.acc:has(input:checked) { border-color: var(--nav-on-edge); box-shadow: var(--nav-on-glow); }
.acc .txt { flex: 1; min-width: 0; line-height: 1.3; }
.acc .txt b { display: block; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc .txt span { font-size: .76rem; color: var(--muted); }
.acc input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--accent); }
.acc img.pic { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: none; }

.net { --glow: rgba(0, 0, 0, .3); width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: #fff; flex: none;
  box-shadow: 0 10px 22px -10px var(--glow), inset 0 1px 0 rgba(255, 255, 255, .25); }
.net .ic { width: 22px; height: 22px; }
.net.sm { width: 24px; height: 24px; border-radius: 8px; } .net.sm .ic { width: 13px; height: 13px; }
.net.md { width: 34px; height: 34px; border-radius: 11px; } .net.md .ic { width: 18px; height: 18px; }
.net.instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); --glow: rgba(214, 36, 159, .7); }
.net.facebook { background: linear-gradient(180deg, #3b93ff, #1466e0); --glow: rgba(24, 119, 242, .7); }
.net.tiktok { background: #0b0b10; --glow: rgba(37, 244, 238, .5); }
.net.tiktok .ic { filter: drop-shadow(-1.2px -1px 0 #25f4ee) drop-shadow(1.2px 1px 0 #fe2c55); }
.net.youtube { background: linear-gradient(180deg, #ff4136, #e00000); --glow: rgba(255, 0, 0, .55); }
.net.linkedin { background: linear-gradient(180deg, #2a8cf0, #0a66c2); --glow: rgba(10, 102, 194, .6); }

.netcard { display: grid; gap: 14px; align-content: start; }
.netcard .head { display: flex; align-items: center; gap: 14px; }
.netcard .head .txt { flex: 1; min-width: 0; }
.netcard .head h2 { font-size: 1.05rem; }
.conn { display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 12px; border-radius: 18px; background: var(--mute-soft); }
.conn .txt { flex: 1; min-width: 0; line-height: 1.3; }
.conn .txt b { display: block; font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conn .txt span { font-size: .75rem; color: var(--muted); }
.conn img, .conn .pic { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: none; background: var(--glass-2); }

/* ---------- styles (presets) */
.style-tile { min-height: 210px; }
.style-tile .lines { display: grid; gap: 2px; font-size: .78rem; color: var(--ink-2); margin-top: 6px; }
.cap-preview { position: relative; aspect-ratio: 9 / 16; width: 100%; max-width: 216px; margin: 0 auto; border-radius: 26px; overflow: hidden;
  isolation: isolate; box-shadow: var(--shadow); }
.cap-preview .art { z-index: -1; }
.cap-preview::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, .05), rgba(0, 0, 0, .4)); }
.cap-preview .cap { position: absolute; left: 7%; right: 7%; top: var(--pos, 63%); transform: translateY(-50%); justify-self: center; margin: 0 auto;
  width: fit-content; max-width: 86%; font-family: "Montserrat", var(--font); font-weight: 800; color: #fff; text-align: center; line-height: 1.12;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .55); font-size: 15px; }
.cap-preview .cap em { font-style: normal; color: var(--cap-accent, #ffd60a); }
.cap-preview .cap.box { background: rgba(10, 10, 14, .8); padding: 3px 8px; border-radius: 7px; text-shadow: none; }
.cap-preview .hook { position: absolute; top: 13%; left: 50%; transform: translateX(-50%); width: max-content; max-width: 84%; text-align: center;
  font: 800 12px/1.15 "Montserrat", var(--font); color: #111; background: #fff; padding: 5px 8px; border-radius: 7px; }
.settings-group { display: grid; gap: 4px; }
.settings-group h3 { display: flex; align-items: center; gap: 10px; font-size: .95rem; margin-bottom: 6px; }
.settings-group h3 .ic { color: var(--accent); }
.sliders { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 6px 22px; }
details.more > summary { cursor: pointer; font-weight: 600; font-size: .86rem; color: var(--accent-text); list-style: none; display: inline-flex; gap: 6px; align-items: center; }
details.more > summary::-webkit-details-marker { display: none; }
details.more[open] > summary .ic { transform: rotate(180deg); }

/* ---------- plans (subscription) */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; align-items: stretch; }
.plan { display: grid; gap: 16px; align-content: start; position: relative; }
.plan .price { font-size: 2.3rem; font-weight: 650; letter-spacing: -.045em; line-height: 1; }
.plan .price small { font-size: .9rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan .deal { margin-top: -4px; font-size: .88rem; font-weight: 650; color: var(--accent); }
.note.launch { margin-bottom: 18px; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: .9rem; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li .ic { color: var(--accent); width: 18px; height: 18px; margin-top: 2px; }
.plan li.soon { color: var(--muted); }
.plan li.soon .ic { color: var(--faint); }
.plan .cta { margin-top: auto; }
.holo { border-color: transparent; box-shadow: var(--shadow-lg), 0 0 50px -18px rgba(167, 139, 250, .8), var(--hi); }
.holo::before { content: ""; position: absolute; inset: -1.5px; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--a, 0deg), #7cf3ff, #8b9dff, #c084fc, #ff9ad5, #ffd36e, #7cf3ff);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: holo 7s linear infinite; }
@property --a { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes holo { to { --a: 360deg; } }
.ribbon { position: absolute; top: 18px; right: 18px; font-size: .72rem; font-weight: 700; padding: 5px 11px; border-radius: 99px; color: #fff;
  background: linear-gradient(90deg, #6d7cff, #c084fc); box-shadow: 0 6px 16px -6px rgba(140, 100, 255, .8); }
.usage { display: grid; gap: 8px; }

/* ---------- auth + landing */
.solo { min-height: 100vh; display: grid; grid-template-rows: auto 1fr auto; padding: 22px; max-width: 1240px; margin: 0 auto; }
.solo-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.solo-main { display: grid; align-items: center; padding: 30px 0; }
.auth { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 440px); gap: 28px; align-items: stretch; }
.pitch { position: relative; overflow: hidden; padding: 40px; display: grid; gap: 22px; align-content: space-between; min-height: 520px; }
.pitch h1 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 600; letter-spacing: -.045em; }
.pitch h1 span { background: linear-gradient(90deg, #3781fc, #8b5cf6 60%, #ec4899); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pitch .feats { display: grid; gap: 12px; }
.feat { display: flex; gap: 14px; align-items: flex-start; }
.feat .fi { width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; flex: none; background: var(--glass-3); color: var(--accent); box-shadow: var(--shadow); }
.feat b { display: block; font-size: .95rem; }
.feat span { font-size: .85rem; color: var(--muted); }
.form-card { padding: 34px; gap: 18px; align-content: center; }
.form-card h1 { font-size: 1.9rem; }
.landing { display: grid; gap: 70px; padding-bottom: 40px; }
.lhero { text-align: center; display: grid; justify-items: center; gap: 22px; padding: 50px 0 10px; }
.lhero h1 { font-size: clamp(2.3rem, 6vw, 4.4rem); font-weight: 600; letter-spacing: -.05em; max-width: 900px; line-height: 1.03; }
.lhero h1 span { background: linear-gradient(90deg, #3781fc, #8b5cf6 55%, #ec4899); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lhero p { font-size: 1.12rem; color: var(--ink-2); max-width: 620px; }
.how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.how .tile { min-height: 230px; }
.how .tile .n { position: absolute; top: 16px; left: 18px; font-size: .78rem; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: var(--glass-3); }
.section-head { text-align: center; display: grid; gap: 8px; justify-items: center; margin-bottom: 26px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 600; letter-spacing: -.04em; }

/* ---------- tables, lists, misc */
.table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.table th, .table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { font-size: .7rem; text-transform: uppercase; letter-spacing: .07em; color: var(--faint); font-weight: 650; }
.table td.n, .table th.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.scroll { overflow-x: auto; }
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.list li { padding-left: 18px; position: relative; font-size: .9rem; }
.list li::before { content: ""; position: absolute; left: 2px; top: .58em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 8px var(--accent); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.kpi { display: grid; gap: 4px; padding: 16px 18px; border-radius: 22px; background: var(--glass-2); border: 1px solid var(--edge); box-shadow: var(--shadow), var(--hi); }
.kpi span { font-size: .76rem; color: var(--muted); font-weight: 600; }
.kpi b { font-size: 1.7rem; font-weight: 650; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
code { background: var(--mute-soft); padding: 2px 7px; border-radius: 7px; font-size: .85em; word-break: break-all; }
.legal { max-width: 780px; margin: 0 auto; }
.legal h3 { margin-top: 10px; }
.legal p { color: var(--ink-2); }
.day { display: grid; gap: 10px; }
.day-head { display: flex; align-items: baseline; gap: 10px; font-weight: 650; }
.day-head span { font-size: .8rem; color: var(--muted); font-weight: 500; }

/* ---------- responsive */
@media (max-width: 1280px) {
  .dash { grid-template-columns: minmax(0, 1fr); }
  .dash-side { position: static; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; }
}
@media (max-width: 1100px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .quota { grid-template-columns: auto minmax(0, 1fr); justify-items: start; text-align: left; align-items: center; }
  .quota .card-head { grid-column: 1 / -1; }
  .video-layout { grid-template-columns: minmax(0, 320px) minmax(0, 1fr); }
  .auth { grid-template-columns: minmax(0, 1fr); }
  .pitch { min-height: 0; }
}
@media (max-width: 959px) {
  .app { grid-template-columns: minmax(0, 1fr); padding: 10px 14px calc(104px + env(safe-area-inset-bottom)); gap: 0; }
  .side { display: none; }
  .mobile-logo { display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: 1.15rem; letter-spacing: -.03em; text-decoration: none; margin-right: auto; }
  .mobile-logo .orb { width: 30px; height: 30px; }
  .topbar { margin: 4px 0 14px; }
  .topbar .title { display: none; }
  .topbar .search { display: none; }
  .page-title { display: block !important; margin: 0 0 4px; }
  .tabbar { display: flex; position: fixed; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 50; justify-content: space-around;
    align-items: center; height: 68px; padding: 0 6px; border-radius: 26px; }
  .tab { display: grid; justify-items: center; gap: 3px; font-size: .66rem; font-weight: 650; color: var(--muted); text-decoration: none; padding: 6px 4px;
    min-width: 56px; border: 0; background: none; font-family: var(--font); }
  .tab.on { color: var(--accent); }
  .tab.plus { width: 56px; height: 56px; min-width: 0; padding: 0; border-radius: 50%; place-items: center; color: #fff; margin-top: -26px;
    background: linear-gradient(180deg, #4b8eff, var(--blue-600)); box-shadow: 0 14px 28px -8px rgba(25, 81, 252, .85), 0 0 0 5px var(--bg); }
  .tab.plus .ic { width: 26px; height: 26px; }
  .tiles { grid-template-columns: 1fr 1fr; gap: 14px; }
  .tiles .tile:first-child { grid-column: 1 / -1; }
  .tile { min-height: 140px; border-radius: 24px; }
  .grid-2, .grid-3, .how { grid-template-columns: minmax(0, 1fr); }
  .video-layout { grid-template-columns: minmax(0, 1fr); }
  .video-layout > .sticky { position: static; }
  .phone { max-width: 360px; margin: 0 auto; width: 100%; }
  .card { padding: 20px; border-radius: 26px; }
  .content, .dash, .dash-side, .stack-lg { gap: 16px; }
  .upload-opts { grid-template-columns: minmax(0, 1fr); }
  .quota { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
  .vgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
  .pitch { padding: 26px; }
  .form-card { padding: 24px; }
  .solo { padding: 14px; }
  .lhero { padding-top: 24px; }
  .landing { gap: 48px; }
}
.page-title { display: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
