/* =====================================================================
   LITCHI DELIVERY — Design system
   Litchi Media × Cyrille Ardaud-Redon
   ===================================================================== */

@font-face { font-family: "Geist"; src: url("../fonts/geist.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/geist-mono.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif.woff2") format("woff2"); font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif-italic.woff2") format("woff2"); font-style: italic; font-display: swap; }

:root {
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --serif: "Instrument Serif", "Times New Roman", serif;

  --bg: #0c090a;
  --bg-2: #120e0f;
  --card: #161112;
  --card-2: #1c1617;
  --elev: #221b1c;
  --glass: rgba(26, 20, 21, .72);
  --hover: rgba(255, 255, 255, .045);
  --press: rgba(255, 255, 255, .08);
  --line: rgba(255, 236, 228, .08);
  --line-2: rgba(255, 236, 228, .14);
  --text: #f8efea;
  --text-2: rgba(248, 239, 234, .66);
  --text-3: rgba(248, 239, 234, .42);

  --litchi: #ff3b5f;
  --litchi-2: #ff7a6b;
  --litchi-deep: #c8103c;
  --litchi-soft: rgba(255, 59, 95, .14);
  --flesh: #fff3ea;
  --leaf: #3fd18f;
  --leaf-soft: rgba(63, 209, 143, .14);
  --amber: #ffb340;
  --amber-soft: rgba(255, 179, 64, .14);
  --sky: #6ea8ff;
  --sky-soft: rgba(110, 168, 255, .14);
  --violet: #a68cff;
  --grad: linear-gradient(135deg, #ff3b5f 0%, #ff6a5b 55%, #ff9a5a 100%);
  --grad-soft: linear-gradient(135deg, rgba(255, 59, 95, .18), rgba(255, 154, 90, .10));

  --r-xs: 6px; --r-sm: 9px; --r: 12px; --r-lg: 18px; --r-xl: 24px;
  --shadow-1: 0 1px 0 rgba(255,255,255,.03) inset, 0 1px 2px rgba(0,0,0,.4);
  --shadow-2: 0 10px 30px -10px rgba(0,0,0,.6), 0 2px 6px rgba(0,0,0,.3);
  --shadow-3: 0 30px 80px -20px rgba(0,0,0,.75), 0 8px 24px rgba(0,0,0,.35);
  --glow: 0 0 0 1px rgba(255,59,95,.35), 0 8px 30px -6px rgba(255,59,95,.45);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --sidebar: 248px;
  --topbar: 64px;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f7f2ee;
  --bg-2: #f1ebe6;
  --card: #ffffff;
  --card-2: #fbf8f6;
  --elev: #ffffff;
  --glass: rgba(255, 255, 255, .78);
  --hover: rgba(40, 12, 18, .04);
  --press: rgba(40, 12, 18, .08);
  --line: rgba(40, 12, 18, .08);
  --line-2: rgba(40, 12, 18, .14);
  --text: #1d1316;
  --text-2: rgba(29, 19, 22, .64);
  --text-3: rgba(29, 19, 22, .42);
  --litchi: #e5194a;
  --litchi-soft: rgba(229, 25, 74, .09);
  --leaf: #12a56a;
  --leaf-soft: rgba(18, 165, 106, .1);
  --amber: #d98400;
  --amber-soft: rgba(217, 132, 0, .1);
  --sky: #2f6fe0;
  --sky-soft: rgba(47, 111, 224, .09);
  --shadow-1: 0 1px 2px rgba(40,12,18,.06);
  --shadow-2: 0 12px 32px -12px rgba(40,12,18,.18), 0 2px 6px rgba(40,12,18,.05);
  --shadow-3: 0 30px 80px -20px rgba(40,12,18,.28), 0 8px 24px rgba(40,12,18,.08);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font: 400 14.5px/1.5 var(--font);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body::before {
  content: ""; position: fixed; inset: -20vmax; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40vmax 30vmax at 12% 0%, rgba(255, 59, 95, .13), transparent 70%),
    radial-gradient(36vmax 28vmax at 100% 100%, rgba(255, 140, 90, .08), transparent 70%);
}
:root[data-theme="light"] body::before {
  background:
    radial-gradient(40vmax 30vmax at 12% 0%, rgba(255, 59, 95, .09), transparent 70%),
    radial-gradient(36vmax 28vmax at 100% 100%, rgba(255, 160, 90, .08), transparent 70%);
}
::selection { background: rgba(255, 59, 95, .35); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
img, svg, canvas, video { display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--litchi); outline-offset: 2px; border-radius: 6px; }
.mono { font-family: var(--mono); font-feature-settings: "tnum"; letter-spacing: -.01em; }
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.nowrap { white-space: nowrap; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.grow { flex: 1 1 auto; min-width: 0; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.col { display: flex; flex-direction: column; gap: 10px; }
.between { justify-content: space-between; }
.sp-4 { height: 4px; } .sp-8 { height: 8px; } .sp-16 { height: 16px; } .sp-24 { height: 24px; }
.ico { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ico.sm { width: 15px; height: 15px; }
.ico.lg { width: 22px; height: 22px; }
.ico.xl { width: 28px; height: 28px; }
.ico.fill { fill: currentColor; stroke: none; }

/* ---------------------------------------------------------------- boot */
.boot { position: fixed; inset: 0; display: grid; place-items: center; }
.boot-mark { width: 54px; height: 54px; animation: breathe 1.6s var(--ease) infinite; }
@keyframes breathe { 0%, 100% { transform: scale(.92); opacity: .7; } 50% { transform: scale(1); opacity: 1; } }

/* ---------------------------------------------------------------- brand */
.brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.brand-mark { width: 34px; height: 34px; flex: none; filter: drop-shadow(0 6px 14px rgba(255, 59, 95, .35)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; }
.brand-name { font-size: 17px; font-weight: 600; letter-spacing: -.02em; white-space: nowrap; }
.brand-name em { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 21px; letter-spacing: -.01em; margin-right: 2px; }
.brand-sub { font: 500 9.5px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------------------------------------------------------------- buttons */
.btn {
  --h: 38px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); padding: 0 15px; border-radius: 10px;
  font-weight: 550; font-size: 13.5px; letter-spacing: -.005em; white-space: nowrap;
  background: var(--card-2); color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line-2);
  transition: transform .18s var(--ease), background .18s, box-shadow .18s, opacity .18s, color .18s;
  user-select: none; -webkit-user-select: none; position: relative;
}
.btn:hover { background: var(--elev); box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow-1); }
.btn:active { transform: scale(.97); }
.btn[disabled], .btn.is-disabled { opacity: .45; pointer-events: none; }
.btn.primary { background: var(--grad); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 8px 22px -8px rgba(255, 59, 95, .7); }
.btn.primary:hover { filter: brightness(1.06) saturate(1.05); box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 12px 28px -8px rgba(255, 59, 95, .85); }
.btn.success { background: var(--leaf); color: #04150d; box-shadow: 0 8px 22px -10px rgba(63, 209, 143, .8); }
.btn.success:hover { filter: brightness(1.06); }
.btn.ghost { background: transparent; box-shadow: none; color: var(--text-2); }
.btn.ghost:hover { background: var(--hover); color: var(--text); }
.btn.danger { color: var(--litchi); }
.btn.danger:hover { background: var(--litchi-soft); }
.btn.sm { --h: 31px; padding: 0 11px; font-size: 12.8px; border-radius: 8px; gap: 6px; }
.btn.lg { --h: 46px; padding: 0 20px; font-size: 15px; border-radius: 12px; }
.btn.icon { width: var(--h); padding: 0; }
.btn.block { width: 100%; }
.btn .badge-dot { position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--litchi); box-shadow: 0 0 0 2px var(--bg); }
.btn.loading { color: transparent !important; pointer-events: none; }
.btn.loading::after { content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-color: rgba(255,255,255,.9) rgba(255,255,255,.9) transparent transparent; animation: spin .7s linear infinite; }
.btn.loading:not(.primary)::after { border-color: var(--text) var(--text) transparent transparent; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------- forms */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .label { font-size: 12.5px; font-weight: 550; color: var(--text-2); display: flex; align-items: center; gap: 6px; }
.field .hint { font-size: 12px; color: var(--text-3); line-height: 1.45; }
.input, .select, .textarea {
  width: 100%; height: 42px; padding: 0 13px; border-radius: 10px;
  background: var(--bg-2); border: 1px solid var(--line-2); color: var(--text);
  transition: border-color .15s, box-shadow .15s, background .15s; outline: none;
}
:root[data-theme="light"] .input, :root[data-theme="light"] .select, :root[data-theme="light"] .textarea { background: #fff; }
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.input:focus, .select:focus, .textarea:focus { border-color: rgba(255, 59, 95, .6); box-shadow: 0 0 0 4px rgba(255, 59, 95, .14); }
.textarea { height: auto; min-height: 96px; padding: 11px 13px; resize: vertical; line-height: 1.5; }
.select { appearance: none; -webkit-appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; }
.input-group { position: relative; display: flex; align-items: center; }
.input-group .input { padding-right: 44px; }
.input-group .suffix { position: absolute; right: 6px; }
.input-group .prefix-ico { position: absolute; left: 12px; color: var(--text-3); pointer-events: none; }
.input-group .prefix-ico + .input { padding-left: 38px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.switch { position: relative; width: 40px; height: 24px; flex: none; }
.switch input { position: absolute; opacity: 0; inset: 0; cursor: pointer; z-index: 1; margin: 0; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: var(--line-2); transition: background .2s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.3); transition: transform .25s var(--spring); }
.switch input:checked + span { background: var(--litchi); }
.switch input:checked + span::after { transform: translateX(16px); }
.seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); gap: 2px; }
.seg button { height: 28px; padding: 0 11px; border-radius: 7px; font-size: 12.5px; font-weight: 550; color: var(--text-2); transition: background .15s, color .15s; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.seg button:hover { color: var(--text); }
.seg button.on { background: var(--card-2); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.25), inset 0 0 0 1px var(--line-2); }
:root[data-theme="light"] .seg button.on { background: #fff; }
.choice-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.choice { position: relative; padding: 12px; border-radius: 12px; border: 1px solid var(--line-2); cursor: pointer; transition: border-color .15s, background .15s; background: var(--bg-2); }
.choice:hover { border-color: var(--text-3); }
.choice input { position: absolute; opacity: 0; }
.choice.on { border-color: var(--litchi); background: var(--litchi-soft); }
.choice b { display: block; font-size: 13px; font-weight: 600; }
.choice small { display: block; color: var(--text-3); font-size: 11.5px; margin-top: 3px; line-height: 1.35; }

/* ---------------------------------------------------------------- cards & surfaces */
.card { background: var(--card); border-radius: var(--r-lg); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-1); position: relative; }
.card.pad { padding: 20px; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.card-h h3 { margin: 0; font-size: 14.5px; font-weight: 600; letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; }
.card-b { padding: 18px 20px; }
.glass { background: var(--glass); backdrop-filter: blur(22px) saturate(1.6); -webkit-backdrop-filter: blur(22px) saturate(1.6); }
.divider { height: 1px; background: var(--line); margin: 14px 0; }

/* ---------------------------------------------------------------- badges & chips */
.badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 99px; font-size: 11.8px; font-weight: 600; white-space: nowrap; background: var(--hover); color: var(--text-2); box-shadow: inset 0 0 0 1px var(--line); }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .9; }
.badge.plain::before { display: none; }
.badge.draft { color: var(--text-2); }
.badge.review { color: var(--sky); background: var(--sky-soft); box-shadow: none; }
.badge.changes, .badge.awaiting_payment, .badge.warn { color: var(--amber); background: var(--amber-soft); box-shadow: none; }
.badge.approved, .badge.paid, .badge.ok { color: var(--leaf); background: var(--leaf-soft); box-shadow: none; }
.badge.expired, .badge.danger { color: var(--litchi); background: var(--litchi-soft); box-shadow: none; }
.badge.brand { color: var(--litchi); background: var(--litchi-soft); box-shadow: none; }
.badge.lg { height: 30px; padding: 0 12px; font-size: 12.8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 9px; border-radius: 8px; font: 550 12px/1 var(--mono); background: var(--litchi-soft); color: var(--litchi); white-space: nowrap; transition: background .15s, transform .15s; }
button.chip:hover { background: rgba(255, 59, 95, .24); }
.chip.neutral { background: var(--hover); color: var(--text-2); }
.chip .x { opacity: .7; margin-left: 2px; display: grid; place-items: center; }
.chip .x:hover { opacity: 1; }
.kbd { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 5px; font: 600 11px/1 var(--mono); color: var(--text-2); background: var(--hover); box-shadow: inset 0 -1px 0 var(--line-2), inset 0 0 0 1px var(--line); }
.count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; font: 650 11px/1 var(--font); background: var(--litchi); color: #fff; }
.count.soft { background: var(--hover); color: var(--text-2); }

/* ---------------------------------------------------------------- avatar */
.avatar { --c: #ff3b5f; width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 12.5px; font-weight: 650; letter-spacing: .02em; color: #fff; background: linear-gradient(135deg, var(--c), color-mix(in oklab, var(--c) 55%, #000)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.avatar.sm { width: 26px; height: 26px; font-size: 10.5px; }
.avatar.xs { width: 20px; height: 20px; font-size: 9px; }
.avatar.lg { width: 52px; height: 52px; font-size: 17px; }
.avatar.xl { width: 72px; height: 72px; font-size: 24px; }
.avatar.studio { background: var(--grad); }
.c0 { --c: #ff3b5f; } .c1 { --c: #ff8a3d; } .c2 { --c: #e8b93b; } .c3 { --c: #3fbf86; }
.c4 { --c: #33b5c9; } .c5 { --c: #5b8cff; } .c6 { --c: #9a6bff; } .c7 { --c: #e25bc2; }

/* ---------------------------------------------------------------- layout: studio shell */
.shell { display: grid; grid-template-columns: var(--sidebar) 1fr; min-height: 100vh; min-height: 100dvh; }
.sidebar { position: sticky; top: 0; height: 100vh; height: 100dvh; display: flex; flex-direction: column; gap: 6px; padding: 20px 14px; border-right: 1px solid var(--line); background: color-mix(in oklab, var(--bg) 80%, transparent); }
.sidebar .brand { padding: 4px 8px 18px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-label { font: 600 10.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); padding: 16px 12px 8px; }
.nav a { display: flex; align-items: center; gap: 11px; height: 40px; padding: 0 12px; border-radius: 10px; color: var(--text-2); font-weight: 520; transition: background .15s, color .15s; position: relative; }
.nav a:hover { background: var(--hover); color: var(--text); }
.nav a.on { background: var(--card-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.nav a.on::before { content: ""; position: absolute; left: -14px; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--grad); }
.nav a .count { margin-left: auto; }
.sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.me { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.me .who { min-width: 0; flex: 1; line-height: 1.25; }
.me .who b { font-size: 13px; font-weight: 600; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me .who small { font-size: 11.5px; color: var(--text-3); }
.search-trigger { display: flex; align-items: center; gap: 9px; height: 38px; padding: 0 10px 0 12px; border-radius: 10px; color: var(--text-3); background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; margin-bottom: 4px; transition: color .15s, box-shadow .15s; }
.search-trigger:hover { color: var(--text-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.search-trigger .kbd { margin-left: auto; }

.main { min-width: 0; display: flex; flex-direction: column; }
.page { width: 100%; max-width: 1240px; margin: 0 auto; padding: 32px 36px 80px; animation: pageIn .45s var(--ease) both; }
.page.wide { max-width: 1600px; }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.page-head h1 { margin: 0; font-size: 30px; line-height: 1.1; font-weight: 600; letter-spacing: -.03em; }
.page-head h1 em { font-family: var(--serif); font-weight: 400; font-style: italic; font-size: 1.18em; letter-spacing: -.01em; }
.page-head p { margin: 6px 0 0; color: var(--text-2); }
.eyebrow { font: 600 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.eyebrow a:hover { color: var(--text); }
.section-title { display: flex; align-items: center; justify-content: space-between; margin: 32px 0 14px; }
.section-title h2 { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: -.01em; display: flex; gap: 8px; align-items: center; }

.mobile-top, .tabbar { display: none; }

/* ---------------------------------------------------------------- client shell */
.cshell { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.ctop { position: sticky; top: 0; z-index: 30; height: 68px; display: flex; align-items: center; gap: 16px; padding: 0 28px; border-bottom: 1px solid var(--line); }
.ctop .brand-mark { width: 30px; height: 30px; }
.ctop-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }

/* ---------------------------------------------------------------- KPI */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.kpi { padding: 18px 18px 16px; border-radius: var(--r-lg); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); position: relative; overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s; }
.kpi:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow-2); }
.kpi .k-label { font-size: 12.5px; color: var(--text-2); display: flex; align-items: center; gap: 8px; }
.kpi .k-ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--hover); color: var(--text-2); }
.kpi .k-val { font-size: 30px; font-weight: 600; letter-spacing: -.035em; margin-top: 14px; line-height: 1; font-feature-settings: "tnum"; }
.kpi .k-val small { font-size: 15px; color: var(--text-3); font-weight: 500; margin-left: 3px; }
.kpi .k-sub { font-size: 12px; color: var(--text-3); margin-top: 8px; }
.kpi.accent { background: radial-gradient(120% 140% at 100% 0%, rgba(255, 59, 95, .22), transparent 60%), var(--card); }
.kpi.accent .k-ico { background: var(--grad); color: #fff; }

/* ---------------------------------------------------------------- lists / rows */
.list { display: flex; flex-direction: column; }
.list-row { display: flex; align-items: center; gap: 14px; padding: 13px 20px; border-top: 1px solid var(--line); transition: background .15s; min-width: 0; }
.list-row:first-child { border-top: 0; }
a.list-row:hover, button.list-row:hover, .list-row.clickable:hover { background: var(--hover); }
button.list-row { width: 100%; text-align: left; }
.list-row .title { font-weight: 560; letter-spacing: -.005em; }
.list-row .meta { font-size: 12.5px; color: var(--text-3); }

/* ---------------------------------------------------------------- project cards */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.pcard { display: flex; flex-direction: column; border-radius: var(--r-lg); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s; position: relative; }
.pcard:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow-2); }
.pcard-cover { height: 132px; position: relative; overflow: hidden; background: var(--grad-soft); }
.pcard-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.pcard:hover .pcard-cover img { transform: scale(1.04); }
.pcard-cover canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.pcard-cover .kinds { position: absolute; left: 12px; bottom: 12px; display: flex; gap: 6px; }
.pcard-cover .kinds span { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: rgba(12, 9, 10, .55); backdrop-filter: blur(10px); color: #fff; }
.pcard-cover .badge { position: absolute; right: 12px; top: 12px; backdrop-filter: blur(10px); background: rgba(12, 9, 10, .55); }
.pcard-body { padding: 15px 16px 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.pcard-title { font-size: 15.5px; font-weight: 600; letter-spacing: -.015em; line-height: 1.3; }
.pcard-foot { display: flex; align-items: center; gap: 10px; margin-top: auto; font-size: 12.5px; color: var(--text-2); }
.progress { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; position: relative; }
.progress > i { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: var(--grad); transition: width .5s var(--ease); }
.progress.ok > i { background: var(--leaf); }

/* ---------------------------------------------------------------- stepper */
.stepper { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; position: relative; }
.step { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; position: relative; padding-right: 12px; min-width: 0; }
.step .dot { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); box-shadow: inset 0 0 0 1.5px var(--line-2); color: var(--text-3); font: 600 12px/1 var(--mono); position: relative; z-index: 1; transition: all .3s var(--ease); }
.step::after { content: ""; position: absolute; left: 34px; right: 4px; top: 15px; height: 2px; border-radius: 2px; background: var(--line); }
.step:last-child::after { display: none; }
.step.done .dot { background: var(--leaf); color: #04150d; box-shadow: none; }
.step.done::after { background: var(--leaf); opacity: .6; }
.step.now .dot { background: var(--grad); color: #fff; box-shadow: 0 0 0 5px var(--litchi-soft); }
.step b { font-size: 13px; font-weight: 600; display: block; }
.step small { display: block; font-size: 11.8px; color: var(--text-3); line-height: 1.4; }
.step:not(.done):not(.now) b { color: var(--text-2); }

/* ---------------------------------------------------------------- callout */
.callout { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 14px; background: var(--grad-soft); box-shadow: inset 0 0 0 1px rgba(255, 59, 95, .22); }
.callout .c-ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--grad); color: #fff; flex: none; }
.callout h4 { margin: 0 0 3px; font-size: 14.5px; font-weight: 600; }
.callout p { margin: 0; color: var(--text-2); font-size: 13.5px; }
.callout.ok { background: var(--leaf-soft); box-shadow: inset 0 0 0 1px rgba(63, 209, 143, .28); }
.callout.ok .c-ico { background: var(--leaf); color: #04150d; }
.callout.warn { background: var(--amber-soft); box-shadow: inset 0 0 0 1px rgba(255, 179, 64, .28); }
.callout.warn .c-ico { background: var(--amber); color: #1a0f00; }
.callout.info { background: var(--sky-soft); box-shadow: inset 0 0 0 1px rgba(110, 168, 255, .25); }
.callout.info .c-ico { background: var(--sky); color: #fff; }
.tip { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 11px; background: var(--hover); color: var(--text-2); font-size: 12.8px; box-shadow: inset 0 0 0 1px var(--line); }
.tip .ico { color: var(--litchi); }

/* ---------------------------------------------------------------- empty state */
.empty { text-align: center; padding: 56px 24px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.empty .e-ico { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: var(--grad-soft); color: var(--litchi); box-shadow: inset 0 0 0 1px rgba(255, 59, 95, .2); margin-bottom: 4px; }
.empty h3 { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
.empty p { margin: 0; color: var(--text-2); max-width: 420px; }

/* ---------------------------------------------------------------- skeleton */
.skel { border-radius: 10px; background: linear-gradient(90deg, var(--hover) 25%, var(--press) 50%, var(--hover) 75%); background-size: 200% 100%; animation: shimmer 1.3s infinite linear; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------------------------------------------------------------- modal */
.modal-wrap { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(6, 3, 4, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fadeIn .2s var(--ease); }
.modal { width: 100%; max-width: 560px; max-height: calc(100dvh - 40px); overflow: auto; border-radius: var(--r-xl); background: var(--card); box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow-3); animation: popIn .35s var(--spring); overscroll-behavior: contain; }
.modal.wide { max-width: 760px; }
.modal.narrow { max-width: 440px; }
.modal-h { display: flex; align-items: flex-start; gap: 14px; padding: 22px 24px 6px; }
.modal-h h2 { margin: 0; font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.modal-h p { margin: 4px 0 0; color: var(--text-2); font-size: 13.5px; }
.modal-h .m-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--grad-soft); color: var(--litchi); flex: none; box-shadow: inset 0 0 0 1px rgba(255, 59, 95, .2); }
.modal-h .m-ico.ok { background: var(--leaf-soft); color: var(--leaf); box-shadow: none; }
.modal-h .m-ico.danger { background: var(--litchi-soft); color: var(--litchi); }
.modal-h .close { margin-left: auto; margin-top: -4px; margin-right: -8px; }
.modal-b { padding: 16px 24px; display: flex; flex-direction: column; gap: 16px; }
.modal-f { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 14px 24px 22px; }
.modal-f .left { margin-right: auto; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes popIn { from { opacity: 0; transform: translateY(14px) scale(.97); } }
.modal-wrap.out { animation: fadeOut .18s var(--ease) forwards; }
.modal-wrap.out .modal { animation: popOut .18s var(--ease) forwards; }
@keyframes fadeOut { to { opacity: 0; } }
@keyframes popOut { to { opacity: 0; transform: translateY(8px) scale(.98); } }

/* credentials card */
.cred { border-radius: 16px; padding: 18px; background: radial-gradient(140% 120% at 100% 0%, rgba(255, 59, 95, .25), transparent 55%), var(--bg-2); box-shadow: inset 0 0 0 1px var(--line-2); display: flex; flex-direction: column; gap: 12px; }
.cred-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 11px; background: var(--hover); }
.cred-row .k { font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: .12em; font-family: var(--mono); width: 92px; flex: none; }
.cred-row .v { font: 600 15px/1.2 var(--mono); flex: 1; min-width: 0; overflow-wrap: anywhere; }

/* ---------------------------------------------------------------- toasts */
#toasts { position: fixed; z-index: 200; right: 20px; top: 20px; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 11px; min-height: 46px; max-width: min(420px, calc(100vw - 32px)); padding: 10px 16px 10px 12px; border-radius: 14px; background: var(--elev); box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow-3); font-size: 13.5px; animation: toastIn .45s var(--spring); }
.toast .t-ico { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; flex: none; background: var(--leaf-soft); color: var(--leaf); }
.toast.error .t-ico { background: var(--litchi-soft); color: var(--litchi); }
.toast.info .t-ico { background: var(--sky-soft); color: var(--sky); }
.toast.out { animation: toastOut .3s var(--ease) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-14px) scale(.95); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(30px); } }

/* ---------------------------------------------------------------- dropdown menu */
.menu { position: fixed; z-index: 150; min-width: 210px; padding: 6px; border-radius: 14px; background: var(--elev); box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow-3); animation: menuIn .18s var(--ease); }
@keyframes menuIn { from { opacity: 0; transform: translateY(-4px) scale(.98); } }
.menu button, .menu a { width: 100%; display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border-radius: 8px; font-size: 13.5px; color: var(--text); text-align: left; }
.menu button:hover, .menu a:hover { background: var(--hover); }
.menu .danger { color: var(--litchi); }
.menu hr { border: 0; height: 1px; background: var(--line); margin: 5px 4px; }

/* ---------------------------------------------------------------- command palette */
.cmdk { position: fixed; inset: 0; z-index: 120; background: rgba(6, 3, 4, .5); backdrop-filter: blur(5px); display: flex; justify-content: center; padding: 12vh 16px 16px; animation: fadeIn .15s; }
.cmdk-box { width: 100%; max-width: 620px; height: fit-content; max-height: 70vh; display: flex; flex-direction: column; border-radius: 18px; background: var(--elev); box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow-3); overflow: hidden; animation: popIn .25s var(--spring); }
.cmdk-in { display: flex; align-items: center; gap: 12px; padding: 0 18px; border-bottom: 1px solid var(--line); }
.cmdk-in input { flex: 1; height: 58px; background: none; border: 0; outline: none; font-size: 16px; }
.cmdk-list { overflow: auto; padding: 8px; }
.cmdk-group { font: 600 10.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); padding: 12px 10px 6px; }
.cmdk-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 10px; border-radius: 10px; text-align: left; }
.cmdk-item.on { background: var(--hover); box-shadow: inset 0 0 0 1px var(--line); }
.cmdk-item .ci { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--hover); color: var(--text-2); flex: none; }
.cmdk-item small { color: var(--text-3); font-size: 12px; }

/* ---------------------------------------------------------------- auth */
.auth { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: 1.15fr 1fr; }
.auth-art { position: relative; overflow: hidden; padding: 44px; display: flex; flex-direction: column; justify-content: space-between; background: radial-gradient(120% 90% at 0% 0%, rgba(255, 59, 95, .28), transparent 55%), radial-gradient(90% 80% at 100% 100%, rgba(255, 150, 80, .16), transparent 60%), #0e0a0b; color: #f8efea; isolation: isolate; }
.auth-art canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.auth-art h1 { font-size: clamp(38px, 4.6vw, 68px); line-height: .98; letter-spacing: -.045em; font-weight: 600; margin: 0; max-width: 11ch; }
.auth-art h1 em { font-family: var(--serif); font-weight: 400; font-style: italic; letter-spacing: -.02em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
.auth-art p { color: rgba(248, 239, 234, .7); max-width: 440px; font-size: 15.5px; margin: 18px 0 0; }
.auth-feats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.auth-feats span { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border-radius: 99px; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); font-size: 12.8px; color: rgba(248, 239, 234, .85); backdrop-filter: blur(10px); }
.auth-panel { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-card { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 18px; animation: pageIn .6s var(--ease) both; }
.auth-card h2 { margin: 0; font-size: 28px; font-weight: 600; letter-spacing: -.03em; }
.auth-card h2 em { font-family: var(--serif); font-style: italic; font-weight: 400; }
.auth-card .lead { color: var(--text-2); margin: 6px 0 0; }
.auth-foot { font-size: 12.5px; color: var(--text-3); display: flex; align-items: center; gap: 8px; }
.err { color: var(--litchi); font-size: 13px; display: flex; gap: 8px; align-items: center; padding: 10px 12px; background: var(--litchi-soft); border-radius: 10px; animation: shake .4s var(--ease); }
@keyframes shake { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }
.checks { display: grid; gap: 6px; font-size: 12.8px; }
.checks div { display: flex; align-items: center; gap: 8px; color: var(--text-2); }
.checks .ok { color: var(--leaf); } .checks .ko { color: var(--litchi); }
.pw-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.pw-meter i { height: 4px; border-radius: 3px; background: var(--line-2); transition: background .25s; }

/* ---------------------------------------------------------------- dropzone */
.dropzone { position: relative; border-radius: var(--r-lg); padding: 30px 20px; text-align: center; border: 1.5px dashed var(--line-2); background: var(--card); transition: border-color .2s, background .2s, transform .2s var(--ease); cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.dropzone:hover { border-color: var(--text-3); }
.dropzone.over { border-color: var(--litchi); background: var(--litchi-soft); transform: scale(1.01); }
.dropzone .dz-ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--grad); color: #fff; box-shadow: 0 10px 26px -8px rgba(255, 59, 95, .7); }
.dropzone h4 { margin: 4px 0 0; font-size: 15.5px; font-weight: 600; }
.dropzone p { margin: 0; color: var(--text-2); font-size: 13px; }
.dz-opts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.drop-overlay { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: rgba(12, 9, 10, .7); backdrop-filter: blur(8px); border: 3px dashed var(--litchi); border-radius: 22px; margin: 10px; pointer-events: none; animation: fadeIn .15s; }
.drop-overlay div { text-align: center; font-size: 22px; font-weight: 600; display: flex; flex-direction: column; align-items: center; gap: 14px; }

/* ---------------------------------------------------------------- asset cards (project) */
.agrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.acard { border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s; position: relative; }
.acard:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow-2); }
.acard.dragging { opacity: .5; }
.acard.drop-target { box-shadow: inset 0 0 0 2px var(--litchi); }
.athumb { aspect-ratio: 16 / 10; position: relative; overflow: hidden; background: var(--bg-2); display: grid; place-items: center; }
.athumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.acard:hover .athumb img { transform: scale(1.05); }
.athumb canvas { width: 100%; height: 100%; }
.athumb .wave-bg { position: absolute; inset: 0; background: radial-gradient(100% 120% at 50% 100%, rgba(255, 59, 95, .18), transparent 70%); }
.athumb .k-tag { position: absolute; left: 10px; top: 10px; height: 24px; padding: 0 8px; border-radius: 7px; display: flex; align-items: center; gap: 5px; font: 600 11px/1 var(--mono); color: #fff; background: rgba(12, 9, 10, .6); backdrop-filter: blur(8px); text-transform: uppercase; letter-spacing: .06em; }
.athumb .v-tag { position: absolute; right: 10px; top: 10px; height: 24px; padding: 0 8px; border-radius: 7px; display: flex; align-items: center; font: 650 11px/1 var(--mono); color: #fff; background: var(--grad); }
.athumb .dur { position: absolute; right: 10px; bottom: 10px; height: 22px; padding: 0 7px; border-radius: 6px; display: flex; align-items: center; font: 600 11px/1 var(--mono); color: #fff; background: rgba(12, 9, 10, .6); }
.athumb .play-hint { position: absolute; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.92); color: #111; opacity: 0; transform: scale(.85); transition: all .3s var(--ease); box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.acard:hover .play-hint { opacity: 1; transform: none; }
.abody { padding: 13px 14px 14px; display: flex; flex-direction: column; gap: 9px; }
.abody .title { font-weight: 600; font-size: 14px; letter-spacing: -.01em; }
.ameta { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--text-3); flex-wrap: wrap; }
.ameta span { display: inline-flex; align-items: center; gap: 5px; }
.acard .a-more { position: absolute; right: 8px; bottom: 8px; }

/* ---------------------------------------------------------------- processing dock */
#dock { position: fixed; z-index: 80; right: 20px; bottom: 20px; width: 380px; max-width: calc(100vw - 24px); }
.dock { border-radius: 18px; background: var(--elev); box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow-3); overflow: hidden; animation: popIn .35s var(--spring); }
.dock-h { display: flex; align-items: center; gap: 10px; padding: 12px 14px; cursor: pointer; }
.dock-h b { font-size: 13.5px; font-weight: 600; }
.dock-list { max-height: 50vh; overflow: auto; border-top: 1px solid var(--line); }
.dock.min .dock-list { display: none; }
.job { display: flex; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--line); align-items: center; }
.job:first-child { border-top: 0; }
.job-viz { width: 72px; height: 46px; border-radius: 9px; overflow: hidden; background: var(--bg-2); flex: none; display: grid; place-items: center; color: var(--text-3); position: relative; }
.job-viz canvas, .job-viz video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.job-viz video { opacity: .02; }
.job-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.job-info .name { font-size: 13px; font-weight: 560; }
.job-info .stage { font-size: 11.8px; color: var(--text-3); display: flex; justify-content: space-between; gap: 8px; }
.job.done .stage { color: var(--leaf); }
.job.error .stage { color: var(--litchi); }

/* ---------------------------------------------------------------- review page */
.reviewer { display: grid; grid-template-columns: minmax(0, 1fr) 390px; height: 100vh; height: 100dvh; overflow: hidden; }
.review-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.rtop { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--line); min-height: 64px; flex-wrap: nowrap; }
.rtop .crumbs { min-width: 0; display: flex; flex-direction: column; line-height: 1.2; flex: 1; }
.rtop .crumbs small { font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rtop .crumbs b { font-size: 15.5px; font-weight: 600; letter-spacing: -.015em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rtop-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.stage-area { flex: 1; min-height: 0; position: relative; display: flex; flex-direction: column; overflow: auto; }
.review-side { border-left: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; background: color-mix(in oklab, var(--card) 60%, transparent); }
.side-h { padding: 14px 18px 12px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.side-h h3 { margin: 0; font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.threads { flex: 1; overflow: auto; padding: 8px 10px 16px; overscroll-behavior: contain; }
.composer { border-top: 1px solid var(--line); padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 9px; background: var(--card); }
.composer-box { border-radius: 14px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line-2); transition: box-shadow .15s; }
:root[data-theme="light"] .composer-box { background: #fff; }
.composer-box:focus-within { box-shadow: inset 0 0 0 1px rgba(255, 59, 95, .6), 0 0 0 4px rgba(255, 59, 95, .12); }
.composer textarea { width: 100%; min-height: 46px; max-height: 180px; padding: 12px 13px 4px; background: transparent; border: 0; outline: none; resize: none; line-height: 1.45; display: block; }
.composer-bar { display: flex; align-items: center; gap: 6px; padding: 6px 8px 8px 10px; }
.composer-bar .hint { font-size: 11.5px; color: var(--text-3); margin-left: auto; margin-right: 6px; }

.thread { padding: 12px 10px; border-radius: 14px; transition: background .2s, box-shadow .2s; position: relative; }
.thread:hover { background: var(--hover); }
.thread.focus { background: var(--litchi-soft); box-shadow: inset 0 0 0 1px rgba(255, 59, 95, .3); }
.thread.resolved { opacity: .55; }
.thread.resolved:hover { opacity: .9; }
.cmt { display: flex; gap: 10px; }
.cmt-body { flex: 1; min-width: 0; }
.cmt-head { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.cmt-head b { font-size: 13px; font-weight: 600; }
.cmt-head .when { font-size: 11.5px; color: var(--text-3); }
.cmt-head .role { font: 600 9.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; padding: 3px 5px; border-radius: 4px; background: var(--grad); color: #fff; }
.cmt-text { margin: 4px 0 0; font-size: 13.5px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.cmt-ctx { display: flex; gap: 6px; margin-top: 7px; flex-wrap: wrap; }
.cmt-actions { display: flex; gap: 2px; margin-top: 6px; opacity: .0; transition: opacity .15s; }
.thread:hover .cmt-actions, .thread.focus .cmt-actions { opacity: 1; }
.cmt-actions button { height: 26px; padding: 0 8px; border-radius: 7px; font-size: 12px; color: var(--text-2); display: inline-flex; align-items: center; gap: 5px; }
.cmt-actions button:hover { background: var(--press); color: var(--text); }
.replies { margin: 10px 0 0 22px; padding-left: 14px; border-left: 2px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.reply-box { margin: 10px 0 0 36px; }
.reply-box textarea { width: 100%; min-height: 40px; padding: 9px 11px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line-2); outline: none; resize: none; font-size: 13px; }
.pin-num { width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; font: 700 11px/1 var(--mono); background: var(--grad); color: #fff; flex: none; }

/* decision bar */
.decision { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-top: 1px solid var(--line); background: var(--card); flex-wrap: wrap; }
.decision .q { flex: 1; min-width: 180px; }
.decision .q b { display: block; font-size: 14px; font-weight: 600; }
.decision .q small { color: var(--text-3); font-size: 12.5px; }

/* ---------------------------------------------------------------- players */
.player { padding: 28px 32px; display: flex; flex-direction: column; gap: 18px; flex: 1; justify-content: center; min-height: 0; }
.audio-hero { display: flex; align-items: center; gap: 18px; }
.audio-art { width: 86px; height: 86px; border-radius: 22px; flex: none; position: relative; overflow: hidden; background: var(--grad); box-shadow: 0 18px 40px -14px rgba(255, 59, 95, .7); display: grid; place-items: center; color: #fff; }
.audio-art canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.audio-hero h2 { margin: 0; font-size: 26px; font-weight: 600; letter-spacing: -.03em; line-height: 1.15; }
.audio-hero .sub { color: var(--text-2); font-size: 13.5px; margin-top: 4px; display: flex; gap: 12px; flex-wrap: wrap; }
.wave-card { border-radius: 22px; padding: 18px 18px 12px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-2); position: relative; }
.wave-wrap { position: relative; height: 190px; touch-action: pan-y; cursor: crosshair; user-select: none; -webkit-user-select: none; }
.wave-wrap canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.wave-markers { position: relative; height: 30px; margin-bottom: 4px; }
.marker { position: absolute; top: 2px; transform: translateX(-50%); width: 24px; height: 24px; border-radius: 50% 50% 50% 6px; rotate: -45deg; display: grid; place-items: center; cursor: pointer; transition: transform .2s var(--spring), opacity .2s; box-shadow: 0 4px 10px rgba(0,0,0,.3); }
.marker > span { rotate: 45deg; font: 700 10px/1 var(--font); color: #fff; }
.marker:hover, .marker.on { transform: translateX(-50%) scale(1.22); z-index: 2; }
.marker.resolved { opacity: .35; }
.wave-time { position: absolute; top: -32px; transform: translateX(-50%); padding: 4px 7px; border-radius: 7px; background: var(--text); color: var(--bg); font: 600 11.5px/1 var(--mono); pointer-events: none; white-space: nowrap; opacity: 0; transition: opacity .15s; z-index: 3; }
.wave-wrap:hover .wave-time, .wave-time.show { opacity: 1; }
.wave-time:empty { display: none; }
.minimap { position: relative; height: 30px; margin-top: 10px; border-radius: 8px; overflow: hidden; background: var(--bg-2); cursor: pointer; }
.minimap canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.minimap .view { position: absolute; top: 0; bottom: 0; border-radius: 6px; background: rgba(255, 59, 95, .16); box-shadow: inset 0 0 0 1.5px var(--litchi); cursor: grab; }
.transport { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tbtn { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--text-2); transition: background .15s, color .15s, transform .15s; flex: none; position: relative; }
.tbtn:hover { background: var(--hover); color: var(--text); }
.tbtn:active { transform: scale(.93); }
.tbtn.on { color: var(--litchi); background: var(--litchi-soft); }
.tbtn small { position: absolute; font: 700 8px/1 var(--mono); bottom: 7px; }
.play { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; box-shadow: 0 12px 30px -10px rgba(255, 59, 95, .85); transition: transform .2s var(--spring), box-shadow .2s; flex: none; }
.play:hover { transform: scale(1.06); }
.play:active { transform: scale(.94); }
.timecode { font: 500 14px/1 var(--mono); letter-spacing: -.02em; color: var(--text-2); white-space: nowrap; }
.timecode b { color: var(--text); font-weight: 600; }
.vol { display: flex; align-items: center; gap: 4px; }
.range { -webkit-appearance: none; appearance: none; width: 76px; height: 4px; border-radius: 4px; background: var(--line-2); outline: none; }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: var(--text); box-shadow: 0 2px 6px rgba(0,0,0,.4); cursor: pointer; }
.range::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--text); border: 0; }
.t-spacer { flex: 1; }

/* video */
.vplayer { display: flex; flex-direction: column; gap: 12px; padding: 20px 24px; flex: 1; min-height: 0; }
.vstage { position: relative; flex: 1; min-height: 220px; border-radius: 18px; overflow: hidden; background: #000; display: grid; place-items: center; box-shadow: var(--shadow-2); }
.vstage video { max-width: 100%; max-height: 100%; width: 100%; height: 100%; object-fit: contain; }
.vframe { position: absolute; }
.vstage .big-play { position: absolute; width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.94); color: #111; box-shadow: 0 16px 40px rgba(0,0,0,.5); transition: transform .25s var(--spring), opacity .25s; }
.vstage .big-play:hover { transform: scale(1.07); }
.vstage.playing .big-play { opacity: 0; pointer-events: none; transform: scale(.8); }
.region-layer { position: absolute; inset: 0; }
.region-layer.drawing { cursor: crosshair; }
.region { position: absolute; border: 2px solid var(--litchi); border-radius: 6px; background: rgba(255, 59, 95, .12); box-shadow: 0 0 0 9999px rgba(0,0,0,0); transition: box-shadow .3s, opacity .3s; }
.region.draft { border-style: dashed; animation: dash 1s linear infinite; }
.region .rl { position: absolute; left: -2px; top: -26px; }
.region.dim { opacity: .55; }
.live-wm { position: absolute; pointer-events: none; font: 600 12px/1 var(--mono); color: rgba(255,255,255,.28); letter-spacing: .08em; white-space: nowrap; text-shadow: 0 1px 2px rgba(0,0,0,.4); transition: left 6s linear, top 6s linear; z-index: 2; user-select: none; }
.vtimeline { position: relative; height: 54px; border-radius: 10px; overflow: hidden; background: var(--bg-2); cursor: pointer; touch-action: none; }
.vtimeline .strip { position: absolute; inset: 0; display: flex; opacity: .55; }
.vtimeline .strip div { flex: 1; background-repeat: no-repeat; background-size: auto 100%; }
.vtimeline canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.vtimeline .played { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, rgba(255, 59, 95, .18), rgba(255, 59, 95, .32)); border-right: 2px solid var(--litchi); pointer-events: none; }
.vtimeline .vrange { position: absolute; top: 0; bottom: 0; background: rgba(255, 179, 64, .28); box-shadow: inset 0 0 0 1.5px var(--amber); pointer-events: none; }
.vhover { position: absolute; bottom: 64px; transform: translateX(-50%); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-3), inset 0 0 0 1px var(--line-2); background: #000; pointer-events: none; z-index: 5; }
.vhover div { width: 160px; height: 90px; background-repeat: no-repeat; }
.vhover span { display: block; text-align: center; font: 600 11px/1 var(--mono); padding: 5px; background: var(--elev); color: var(--text); }

/* image */
.iviewer { position: relative; flex: 1; min-height: 300px; overflow: hidden; background: repeating-conic-gradient(var(--bg-2) 0 25%, var(--bg) 0 50%) 0 0 / 22px 22px; touch-action: none; user-select: none; -webkit-user-select: none; cursor: crosshair; }
.iviewer.pan { cursor: grab; }
.iviewer.panning { cursor: grabbing; }
.icanvas { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.icanvas img { display: block; max-width: none; box-shadow: 0 20px 60px rgba(0,0,0,.45); pointer-events: none; -webkit-user-drag: none; }
.ipin { position: absolute; width: 28px; height: 28px; margin: -28px 0 0 -14px; border-radius: 50% 50% 50% 4px; rotate: -45deg; display: grid; place-items: center; cursor: pointer; transform-origin: 50% 100%; box-shadow: 0 6px 16px rgba(0,0,0,.4); transition: transform .2s var(--spring); }
.ipin > span { rotate: 45deg; font: 700 11px/1 var(--font); color: #fff; }
.ipin:hover, .ipin.on { transform: scale(1.2); }
.ipin.resolved { opacity: .4; }
.ibox { position: absolute; border: 2px solid var(--litchi); border-radius: 4px; background: rgba(255, 59, 95, .1); }
.ibox.on { background: rgba(255, 59, 95, .2); box-shadow: 0 0 0 4px rgba(255, 59, 95, .25); }
.ibox.draft { border-style: dashed; }
.itools { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; align-items: center; gap: 4px; padding: 5px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow-3); z-index: 4; }
.itools .zl { font: 600 12px/1 var(--mono); min-width: 52px; text-align: center; color: var(--text-2); }
.compare-handle { position: absolute; top: 0; bottom: 0; width: 2px; background: #fff; box-shadow: 0 0 12px rgba(0,0,0,.5); z-index: 3; cursor: ew-resize; touch-action: none; }
.compare-handle::after { content: "⟷"; position: absolute; top: 50%; left: 50%; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%; background: #fff; color: #111; display: grid; place-items: center; font-size: 16px; box-shadow: 0 6px 18px rgba(0,0,0,.45); }
.compare-label { position: absolute; top: 14px; z-index: 3; padding: 4px 9px; border-radius: 7px; font: 650 11px/1 var(--mono); background: rgba(12,9,10,.7); color: #fff; }

/* doc */
.docview { display: grid; place-items: center; flex: 1; padding: 40px; }
.doc-card { width: min(420px, 100%); text-align: center; padding: 40px 28px; border-radius: 22px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-2); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.doc-ico { width: 74px; height: 92px; border-radius: 12px; background: var(--grad); color: #fff; display: grid; place-items: center; box-shadow: 0 20px 40px -14px rgba(255, 59, 95, .7); font: 700 13px/1 var(--mono); position: relative; margin-bottom: 8px; }

/* gate (consultation) */
.gate { position: absolute; inset: 0; z-index: 20; display: grid; place-items: center; padding: 24px; background: color-mix(in oklab, var(--bg) 70%, transparent); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); animation: fadeIn .3s; }
.gate-card { width: min(480px, 100%); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 32px 28px; border-radius: 24px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow-3); animation: popIn .45s var(--spring); }
.gate-card h3 { margin: 0; font-size: 21px; font-weight: 600; letter-spacing: -.02em; }
.gate-card p { margin: 0; color: var(--text-2); font-size: 13.8px; }
.ring { --p: 0; --size: 92px; width: var(--size); height: var(--size); border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--litchi) calc(var(--p) * 1%), var(--line) 0); position: relative; flex: none; }
.ring::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--card); }
.ring > * { position: relative; text-align: center; line-height: 1; }
.ring b { font-size: 24px; font-weight: 650; letter-spacing: -.03em; display: block; }
.ring small { font-size: 10.5px; color: var(--text-3); }
.ring.sm { --size: 34px; }
.ring.sm::before { inset: 4px; }
.ring.sm b { font-size: 11px; }
.views-pill { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px 0 4px; border-radius: 99px; background: var(--hover); box-shadow: inset 0 0 0 1px var(--line); font-size: 12.5px; color: var(--text-2); white-space: nowrap; }
.views-pill .ring { --size: 28px; }
.views-pill .ring::before { inset: 3.5px; }
.views-pill .ring b { font-size: 10px; }

/* versions */
.vswitch { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.vswitch button { height: 28px; min-width: 34px; padding: 0 8px; border-radius: 7px; font: 650 12px/1 var(--mono); color: var(--text-3); }
.vswitch button:hover { color: var(--text); }
.vswitch button.on { background: var(--grad); color: #fff; }
.vswitch button.ab { color: var(--amber); box-shadow: inset 0 0 0 1.5px var(--amber); }

/* activity */
.feed { display: flex; flex-direction: column; }
.feed-item { display: flex; gap: 12px; padding: 12px 20px; position: relative; transition: background .15s; }
.feed-item:hover { background: var(--hover); }
.feed-item .f-ico { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--hover); color: var(--text-2); }
.feed-item .f-ico.brand { background: var(--litchi-soft); color: var(--litchi); }
.feed-item .f-ico.ok { background: var(--leaf-soft); color: var(--leaf); }
.feed-item .f-ico.warn { background: var(--amber-soft); color: var(--amber); }
.feed-item .f-ico.info { background: var(--sky-soft); color: var(--sky); }
.feed-item .f-txt { flex: 1; min-width: 0; font-size: 13.5px; }
.feed-item .f-txt b { font-weight: 600; }
.feed-item .f-txt .q { display: block; margin-top: 4px; color: var(--text-2); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-item .f-when { font-size: 11.5px; color: var(--text-3); white-space: nowrap; }
.feed-item.unseen::before { content: ""; position: absolute; left: 7px; top: 24px; width: 6px; height: 6px; border-radius: 50%; background: var(--litchi); }

/* pipeline */
.pipeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.lane { border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); padding: 12px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.lane-h { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 6px; font-size: 13px; font-weight: 600; }
.lane-item { display: flex; flex-direction: column; gap: 6px; padding: 11px 12px; border-radius: 12px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); transition: transform .2s var(--ease), box-shadow .2s; }
.lane-item:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow-2); }
.lane-item b { font-size: 13px; font-weight: 600; }
.lane-item small { font-size: 12px; color: var(--text-3); }
.lane-empty { font-size: 12.5px; color: var(--text-3); padding: 14px 6px; text-align: center; border: 1px dashed var(--line-2); border-radius: 12px; }

/* faq */
.faq details { border-top: 1px solid var(--line); }
.faq details:first-child { border-top: 0; }
.faq summary { list-style: none; cursor: pointer; padding: 16px 20px; display: flex; align-items: center; gap: 12px; font-weight: 560; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico:last-child { margin-left: auto; transition: transform .25s var(--ease); color: var(--text-3); }
.faq details[open] summary .ico:last-child { transform: rotate(180deg); }
.faq .ans { padding: 0 20px 18px 50px; color: var(--text-2); font-size: 13.8px; line-height: 1.6; }
.faq .ans p { margin: 0 0 8px; }

.how { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.how-step { padding: 16px; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 8px; position: relative; overflow: hidden; }
.how-step .n { font: 600 11px/1 var(--mono); color: var(--text-3); letter-spacing: .1em; }
.how-step .hi { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--grad-soft); color: var(--litchi); }
.how-step b { font-size: 14px; font-weight: 600; }
.how-step p { margin: 0; font-size: 12.8px; color: var(--text-2); line-height: 1.5; }

.pay-card { border-radius: 20px; padding: 22px; background: radial-gradient(120% 140% at 100% 0%, rgba(255, 59, 95, .2), transparent 55%), var(--card); box-shadow: inset 0 0 0 1px var(--line-2); display: flex; flex-direction: column; gap: 14px; }
.pay-amount { font-size: 38px; font-weight: 650; letter-spacing: -.04em; line-height: 1; font-feature-settings: "tnum"; }
.pay-amount small { font-size: 16px; color: var(--text-3); font-weight: 500; }
.pay-ins { white-space: pre-wrap; font-size: 13.5px; color: var(--text-2); padding: 12px 14px; border-radius: 12px; background: var(--hover); line-height: 1.55; }
.lock-note { display: flex; gap: 10px; align-items: center; font-size: 12.8px; color: var(--text-2); }

.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; align-items: start; }
.two-col > * { min-width: 0; }
.acard, .pcard { min-width: 0; }
.sticky-col { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 16px; }
.info-list { display: flex; flex-direction: column; }
.info-list > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 13.3px; }
.info-list > div:first-child { border-top: 0; }
.info-list span { color: var(--text-3); }
.info-list b { font-weight: 560; text-align: right; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; scrollbar-width: none; }
.tabs button { height: 42px; padding: 0 14px; font-weight: 550; color: var(--text-2); position: relative; white-space: nowrap; display: inline-flex; align-items: center; gap: 7px; }
.tabs button.on { color: var(--text); }
.tabs button.on::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--grad); }

.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font: 600 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); padding: 12px 20px; border-bottom: 1px solid var(--line); }
.table td { padding: 13px 20px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .15s; cursor: pointer; }
.table tbody tr:hover { background: var(--hover); }
.ccard { display: flex; flex-direction: column; gap: 14px; padding: 18px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); transition: transform .25s var(--ease), box-shadow .25s; }
.ccard:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow-2); }
.ccard .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ccard .stats div { padding: 9px 10px; border-radius: 10px; background: var(--hover); }
.ccard .stats b { display: block; font-size: 15px; font-weight: 600; font-feature-settings: "tnum"; }
.ccard .stats small { font-size: 11px; color: var(--text-3); }
.cgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }

.toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.toolbar .input-group { flex: 1; min-width: 200px; max-width: 360px; }
.toolbar .input { height: 38px; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1180px) {
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .pipeline { grid-template-columns: repeat(2, 1fr); }
  .how { grid-template-columns: repeat(3, 1fr); }
  .two-col { grid-template-columns: 1fr; }
  .sticky-col { position: static; }
  .reviewer { grid-template-columns: minmax(0, 1fr) 340px; }
}

@media (max-width: 900px) {
  :root { --topbar: 58px; }
  .shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .shell.is-review .mobile-top, .shell.is-review .tabbar { display: none; }
  .mobile-top { display: flex; position: sticky; top: 0; z-index: 40; height: var(--topbar); align-items: center; gap: 10px; padding: 0 14px; padding-top: env(safe-area-inset-top); border-bottom: 1px solid var(--line); }
  .mobile-top .brand-mark { width: 28px; height: 28px; }
  .mobile-top .brand-name { font-size: 15px; }
  .mobile-top .brand-name em { font-size: 18px; }
  .mobile-top .actions { margin-left: auto; display: flex; gap: 4px; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; z-index: 40; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); height: 62px; border-radius: 20px; padding: 6px; box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow-3); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border-radius: 14px; font-size: 10.5px; font-weight: 550; color: var(--text-3); position: relative; transition: color .15s, background .15s; }
  .tabbar a.on { color: var(--text); background: var(--hover); }
  .tabbar a.on .ico { color: var(--litchi); }
  .tabbar a .count { position: absolute; top: 4px; right: calc(50% - 22px); min-width: 17px; height: 17px; font-size: 10px; }
  .page { padding: 20px 16px 110px; }
  .page-head h1 { font-size: 25px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .choice-cards { grid-template-columns: 1fr; }
  .how { display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 74%; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px 6px; scrollbar-width: none; }
  .how::-webkit-scrollbar { display: none; }
  .how-step { scroll-snap-align: start; }
  .hide-m { display: none !important; }
  .callout { flex-wrap: wrap; }
  .callout > .btn { width: 100%; }
  .stepper { grid-template-columns: 1fr !important; gap: 0; }
  .step { flex-direction: row; align-items: center; gap: 12px; padding: 0 0 18px; }
  .step::after { left: 14px; right: auto; top: 34px; bottom: 2px; width: 2px; height: auto; }
  .ctop { padding: 0 14px; height: 60px; }
  .ctop .brand-sub { display: none; }

  /* review stacks */
  .reviewer { grid-template-columns: 1fr; height: auto; min-height: 100dvh; overflow: visible; display: flex; flex-direction: column; }
  .review-main { min-height: auto; }
  .rtop { position: sticky; top: 0; z-index: 30; padding: 10px 12px; gap: 8px; min-height: 58px; }
  .rtop .hide-m { display: none; }
  .stage-area { overflow: visible; flex: none; }
  .player { padding: 18px 14px; gap: 14px; }
  .audio-art { width: 64px; height: 64px; border-radius: 16px; }
  .audio-hero h2 { font-size: 20px; }
  .wave-card { padding: 12px 10px 8px; border-radius: 18px; }
  .wave-wrap { height: 130px; }
  .vplayer { padding: 12px; }
  .vstage { min-height: 0; aspect-ratio: 16 / 9; flex: none; border-radius: 14px; }
  .iviewer { min-height: 58vh; flex: none; }
  .review-side { border-left: 0; border-top: 1px solid var(--line); min-height: 60vh; }
  .threads { overflow: visible; }
  .composer { position: sticky; bottom: 0; z-index: 20; padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
  .decision { padding: 12px 14px; }
  .decision .btn { flex: 1; }
  .transport { gap: 6px; }
  .transport .hide-m { display: none; }
  .tbtn { width: 36px; height: 36px; }
  .play { width: 50px; height: 50px; }
  .cmt-actions { opacity: 1; }
  #dock { right: 12px; left: 12px; width: auto; bottom: calc(84px + env(safe-area-inset-bottom)); }
  #toasts { left: 12px; right: 12px; top: calc(10px + env(safe-area-inset-top)); align-items: stretch; }
  .modal-wrap { align-items: end; padding: 0; }
  .modal { max-width: none !important; border-radius: 24px 24px 0 0; max-height: 92dvh; animation: sheetIn .4s var(--ease); padding-bottom: env(safe-area-inset-bottom); }
  @keyframes sheetIn { from { transform: translateY(100%); } }
  .modal-h { padding: 20px 18px 4px; }
  .modal-b { padding: 14px 18px; }
  .modal-f { padding: 12px 18px 18px; flex-wrap: wrap; }
  .modal-f .btn { flex: 1; }
  .auth { grid-template-columns: 1fr; }
  .auth-art { min-height: 300px; padding: 28px 22px; }
  .auth-art h1 { font-size: 40px; }
  .auth-art .hide-m { display: none; }
  .table .hide-m { display: none; }
}

@media (max-width: 560px) {
  .kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi { padding: 14px; }
  .kpi .k-val { font-size: 23px; }
  .pipeline { grid-template-columns: 1fr; }
  .agrid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .abody { padding: 10px 11px 12px; }
  .athumb .play-hint { display: none; }
  .ameta { gap: 8px; }
  .rtop-actions .btn:not(.icon) span.lbl { display: none; }
  .pay-amount { font-size: 32px; }
  .cred-row { flex-wrap: wrap; }
  .cred-row .k { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@media print {
  .sidebar, .tabbar, .mobile-top { display: none; }
}
