@font-face { font-family: "Poppins"; src: url("/vendor/poppins-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/vendor/poppins-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/vendor/poppins-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/vendor/poppins-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

/* ---------- tokens: Growmails dark (default) */
:root, :root[data-theme="dark"] {
  --bg: #110e15;
  --surface: #1a1620;
  --surface-2: #211c29;
  --surface-3: #2a2433;
  --line: #2c2636;
  --line-2: #3b3346;
  --fg: #f5f2f9;
  --muted: #a8a1b3;
  --faint: #716a7c;
  --accent: #debbff;            /* growmails lavender */
  --accent-ink: #301e41;        /* text on lavender */
  --accent-strong: #c79bf5;
  --accent-soft: rgba(222, 187, 255, .11);
  --accent-ring: rgba(222, 187, 255, .28);
  --glow: rgba(126, 64, 214, .33);
  --good: #4ade80;
  --bad: #fb7185;
  --warn: #fbbf24;
  --warn-soft: rgba(251, 191, 36, .12);
  --danger: #fb7185;
  --s1: #9370ea;  /* campaigns  (validated, dark surface) */
  --s2: #139c80;  /* flows */
  --s3: #cf7a26;  /* store total */
  --grid: #2a2432;
  --accent-2: #b98bf0;
  --canvas: #0c0a0f; --canvas-dot: #1e1a24;
  --ok: #4ade80; --ok-bg: #16a34a; --ok-soft: rgba(74, 222, 128, .12);
  --warn-bg: #d97706; --danger-soft: rgba(251, 113, 133, .13);
  --review: #93c5fd; --review-soft: rgba(147, 197, 253, .13);
  --draft: #a8a1b3; --draft-soft: #2a2433;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --sheet-shadow: 0 1px 3px rgba(0, 0, 0, .5), 0 24px 60px -16px rgba(0, 0, 0, .85);
  --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 10px 30px -12px rgba(0, 0, 0, .6);
  --shadow-lg: 0 2px 8px rgba(0, 0, 0, .4), 0 30px 70px -20px rgba(0, 0, 0, .75);
  --r: 16px;
  --font: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f6f4f9;
  --surface: #ffffff;
  --surface-2: #faf8fc;
  --surface-3: #f2eef7;
  --line: #ebe6f1;
  --line-2: #dcd5e5;
  --fg: #1b1722;
  --muted: #645d6e;
  --faint: #9a93a5;
  --accent: #7c4fe0;
  --accent-ink: #ffffff;
  --accent-strong: #6a3dd0;
  --accent-soft: #f1ebfd;
  --accent-ring: rgba(124, 79, 224, .22);
  --glow: rgba(160, 110, 240, .18);
  --good: #15803d;
  --bad: #be123c;
  --warn: #b45309;
  --warn-soft: #fdf3e2;
  --danger: #dc2626;
  --s1: #7c4fe0;  /* validated, light surface */
  --s2: #0f8f73;
  --s3: #c46a14;
  --grid: #eeeaf2;
  --accent-2: #6a3dd0;
  --canvas: #ebe8ee; --canvas-dot: #d9d4de;
  --ok: #15803d; --ok-bg: #16a34a; --ok-soft: #e7f6ec;
  --warn-bg: #ea8a0c; --danger-soft: #fdeceb;
  --review: #2563eb; --review-soft: #e9f0fd;
  --draft: #71717a; --draft-soft: #f0eef2;
  --shadow-sm: 0 1px 2px rgba(30, 20, 50, .05);
  --sheet-shadow: 0 1px 3px rgba(0, 0, 0, .06), 0 18px 50px -14px rgba(0, 0, 0, .28);
  --shadow: 0 1px 2px rgba(30, 20, 50, .05), 0 8px 24px -10px rgba(30, 20, 50, .12);
  --shadow-lg: 0 2px 8px rgba(30, 20, 50, .06), 0 30px 70px -20px rgba(30, 20, 50, .25);
  color-scheme: light;
}

/* ---------- base */
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--bg); color: var(--fg); font: 14.5px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, dl, dd { margin: 0; }
img { display: block; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }
.pad { padding: 18px 20px; }
.ic { flex: none; }
.row-tight { display: flex; align-items: center; gap: 8px; }
.nowrap { white-space: nowrap; }
::selection { background: var(--accent-ring); }
.boot { min-height: 100vh; display: grid; place-items: center; }

/* ---------- controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--fg); font-size: 13.5px; font-weight: 600; white-space: nowrap; transition: background .15s, border-color .15s, box-shadow .15s, transform .06s, filter .15s; }
.btn:hover { border-color: var(--faint); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; pointer-events: none; }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; box-shadow: 0 0 0 0 var(--accent-ring), 0 6px 20px -6px var(--glow); }
.btn.primary:hover { filter: brightness(1.06); box-shadow: 0 0 0 4px var(--accent-ring), 0 8px 26px -6px var(--glow); }
.btn.ghost { background: none; border-color: transparent; }
.btn.ghost:hover { background: var(--surface-3); }
.btn.danger, .danger { color: var(--danger); }
.btn.lg { height: 48px; font-size: 15px; padding: 0 22px; }
.btn.sm { height: 30px; padding: 0 12px; font-size: 12.5px; }
.btn.block { width: 100%; }
.btn:focus-visible, .icon-btn:focus-visible, .nav-item:focus-visible, .input:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-ring); }
.icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; border: 0; background: none; color: var(--muted); transition: background .15s, color .15s; }
.icon-btn:hover { background: var(--surface-3); color: var(--fg); }
.link-btn { display: inline-flex; align-items: center; gap: 5px; border: 0; background: none; padding: 0; color: var(--accent); font-weight: 600; font-size: 13px; }
.link-btn:hover { text-decoration: underline; }
.link-btn.center { align-self: center; margin-top: 4px; }
.muted-btn { color: var(--muted); }
.input { width: 100%; height: 40px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface-2); outline: none; transition: border-color .15s, box-shadow .15s; }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.input.lg { height: 50px; font-size: 15.5px; padding: 0 16px; border-radius: 14px; }
.input::placeholder { color: var(--faint); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field-label { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.field-label em { font-style: normal; font-weight: 400; color: var(--faint); margin-left: 6px; }
.error { color: var(--danger); font-size: 13px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); cursor: pointer; }
.check input { accent-color: var(--accent-strong); width: 16px; height: 16px; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); gap: 2px; }
.seg button { border: 0; background: none; height: 30px; min-width: 46px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--muted); transition: background .15s, color .15s; }
.seg button:hover { color: var(--fg); }
.seg button.on { background: var(--accent); color: var(--accent-ink); box-shadow: 0 4px 14px -4px var(--glow); }
.pill { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px; border-radius: 999px; background: var(--surface-3); color: var(--muted); font-size: 12px; font-weight: 600; }
.pill.gold { background: rgba(251, 191, 36, .14); color: var(--warn); }
.note { padding: 10px 14px; border-radius: 12px; font-size: 13px; margin-top: 12px; }
.note.warn { background: var(--warn-soft); color: var(--warn); }
.spinner { width: 26px; height: 26px; border-radius: 50%; border: 2.5px solid var(--accent-soft); border-top-color: var(--accent); animation: spin .7s linear infinite; display: inline-block; }
.spinner.xs { width: 12px; height: 12px; border-width: 2px; }
@keyframes spin { to { transform: rotate(360deg); } }
.avatar { display: inline-grid; place-items: center; flex: none; border-radius: 50%; font-weight: 700; color: #fff; background: hsl(var(--h, 270) 45% 50%); }
.avatar.owner { background: var(--accent); color: var(--accent-ink); }

/* menu, modal, toast */
.menu-wrap { position: relative; display: flex; }
.menu { position: absolute; top: calc(100% + 6px); min-width: 220px; max-height: 60vh; overflow-y: auto; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 6px; z-index: 60; animation: pop .12s ease-out; }
.menu.right { right: 0; } .menu.left { left: 0; right: 0; }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 5px 0; }
.menu-item { display: flex; align-items: center; gap: 9px; width: 100%; padding: 9px 10px; border: 0; background: none; border-radius: 9px; font-size: 13.5px; text-align: left; }
.menu-item:hover { background: var(--surface-3); }
.menu-item .ic { color: var(--accent); }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } }
.modal-bg { position: fixed; inset: 0; z-index: 100; background: rgba(8, 6, 12, .6); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 16px; animation: fade .15s; }
.modal { width: 100%; background: var(--surface); border-radius: 20px; border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); animation: rise .18s cubic-bezier(.2, .9, .3, 1.2); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px 6px; }
.modal-head h3 { font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.modal-body { padding: 10px 22px 8px; }
.modal-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 22px 20px; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.toasts { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 8px; background: var(--fg); color: var(--bg); padding: 11px 18px; border-radius: 14px; font-size: 13.5px; font-weight: 500; box-shadow: var(--shadow-lg); animation: rise .2s; max-width: calc(100vw - 32px); }
.toast.err { background: var(--danger); color: #fff; }

/* ---------- logo */
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-mark { width: 26px; height: auto; }
.logo-full { height: 28px; width: auto; }
.logo-full.on-light { display: none; }
:root[data-theme="light"] .logo-full.on-dark { display: none; }
:root[data-theme="light"] .logo-full.on-light { display: block; }

/* ---------- sign in */
.auth { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 16px; position: relative; overflow: hidden; }
.auth-glow { position: absolute; inset: -20% -10% auto; height: 80vh; background: radial-gradient(closest-side, var(--glow), transparent 70%); pointer-events: none; }
.auth-card { position: relative; width: 100%; max-width: 420px; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(16px); border: 1px solid var(--line-2); border-radius: 24px; padding: 32px 30px; box-shadow: var(--shadow-lg); }
.auth-card .logo { margin-bottom: 26px; }
.auth-card form { display: flex; flex-direction: column; gap: 12px; }
.auth-card h1 { font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.auth-card p { margin-bottom: 6px; }
.code-input { text-align: center; font-size: 26px; letter-spacing: .5em; font-weight: 700; padding-left: .5em; }
.auth-foot { position: relative; margin-top: 22px; font-size: 12.5px; color: var(--faint); }

/* ---------- frame */
.frame { display: grid; grid-template-columns: 256px minmax(0, 1fr); min-height: 100vh; background: linear-gradient(to right, var(--surface) 256px, transparent 256px); }
.side .menu-wrap, .side .menu-wrap > span { width: 100%; display: block; }
.ws-badge .ic { color: #fff; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 14px; padding: 20px 14px 14px; background: var(--surface); border-right: 1px solid var(--line); overflow-y: auto; }
.side-top { padding: 2px 8px 6px; }
.ws-switch { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface-2); text-align: left; transition: border-color .15s; }
.ws-switch:hover { border-color: var(--faint); }
.ws-badge { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex: none; font-weight: 700; background: linear-gradient(135deg, #b98bf0, #6d3fc4); color: #fff; }
.ws-badge.lg { width: 42px; height: 42px; font-size: 18px; border-radius: 13px; }
.ws-name { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.3; }
.ws-name b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws-name em { font-style: normal; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.nav-label { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); padding: 14px 12px 6px; }
.nav-item { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 12px; color: var(--muted); font-weight: 600; font-size: 14px; transition: background .15s, color .15s; }
.nav-item:hover { color: var(--fg); background: var(--surface-2); }
.nav-item.on { color: var(--fg); background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.nav-item.on .ic { color: var(--accent); }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.me-row { display: flex; align-items: center; gap: 8px; padding: 10px 6px 0; border-top: 1px solid var(--line); }
.me-text { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.3; }
.me-text b { font-size: 13px; }
.me-text em { font-style: normal; font-size: 11.5px; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sync-badge { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); padding: 8px 10px; border-radius: 10px; background: var(--surface-2); }
.sync-badge.warn { color: var(--warn); background: var(--warn-soft); }
.sync-badge.busy { color: var(--accent); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 3px color-mix(in srgb, var(--good) 22%, transparent); }
.main-col { min-width: 0; position: relative; }
.main-col::before { content: ""; position: absolute; top: -200px; left: 10%; right: 10%; height: 520px; background: radial-gradient(closest-side, var(--glow), transparent 75%); opacity: .55; pointer-events: none; z-index: 0; }
.page { position: relative; z-index: 1; max-width: 1240px; margin: 0 auto; padding: 30px 36px 70px; }
.mobile-top, .scrim { display: none; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head h1 { font-size: 30px; font-weight: 700; letter-spacing: -.03em; line-height: 1.15; }
.page-head p { margin-top: 4px; }
.head-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* ---------- cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; box-shadow: var(--shadow); margin-bottom: 18px; }
.card.flush { padding: 0; overflow: hidden; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.card-head h2 { font-size: 16.5px; font-weight: 700; letter-spacing: -.01em; display: inline-flex; align-items: center; gap: 8px; }
.card-head h2 .ic { color: var(--accent); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.two-col .card { margin-bottom: 0; }
.empty-card { text-align: center; padding: 64px 24px; display: flex; flex-direction: column; align-items: center; gap: 12px; background: var(--surface); border: 1px dashed var(--line-2); border-radius: 22px; }
.empty-card h2 { font-size: 21px; letter-spacing: -.02em; }
.empty-card p { max-width: 440px; }
.empty-ic { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }

/* ---------- overview hero */
.hero-card { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 24px; align-items: center; padding: 26px 28px; margin-bottom: 18px; border-radius: 22px; border: 1px solid var(--line-2);
  background: radial-gradient(600px 220px at 0% 0%, var(--glow), transparent 70%), linear-gradient(160deg, var(--surface-2), var(--surface)); box-shadow: var(--shadow); }
.hero-label { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.hero-value { font-size: 52px; font-weight: 700; letter-spacing: -.035em; line-height: 1.05; margin: 8px 0 10px; }
.hero-meta { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.hero-share { display: flex; align-items: center; gap: 16px; padding-left: 24px; border-left: 1px solid var(--line-2); }
.hero-share b { font-size: 15px; }
.share-ring { --p: 0; width: 84px; height: 84px; border-radius: 50%; flex: none; display: grid; place-items: center; background: conic-gradient(var(--accent) calc(var(--p) * 1%), var(--surface-3) 0); position: relative; }
.share-ring::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: var(--surface); }
.share-ring span { position: relative; font-weight: 700; font-size: 19px; letter-spacing: -.02em; }
.hero-split { display: flex; flex-direction: column; gap: 12px; padding-left: 24px; border-left: 1px solid var(--line-2); }
.hero-split > div { display: grid; grid-template-columns: 14px 1fr auto auto; align-items: center; gap: 10px; font-size: 13.5px; }
.hero-split span { color: var(--muted); }
.hero-split b { font-size: 16px; }
.key { display: inline-block; flex: none; }
.key.bar { width: 10px; height: 10px; border-radius: 3px; }
.key.line { width: 14px; height: 2px; border-radius: 2px; }
.key.s1 { background: var(--s1); } .key.s2 { background: var(--s2); } .key.s3 { background: var(--s3); }
.delta { display: inline-flex; align-items: center; gap: 3px; font-size: 12.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.delta.good { color: var(--good); background: color-mix(in srgb, var(--good) 13%, transparent); }
.delta.bad { color: var(--bad); background: color-mix(in srgb, var(--bad) 13%, transparent); }
.delta.flat, .delta.none { color: var(--muted); background: var(--surface-3); }

.tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 18px; }
.stat-tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 16px 14px; box-shadow: var(--shadow); }
.stat-label { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.stat-label .ic { color: var(--accent); }
.stat-value { font-size: 25px; font-weight: 700; letter-spacing: -.025em; margin: 8px 0 8px; }
.stat-foot { display: flex; align-items: center; gap: 8px; font-size: 12px; }

/* ---------- charts */
.chart-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: -4px 0 10px; flex-wrap: wrap; }
.legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.chart-box { position: relative; width: 100%; }
.chart svg { display: block; overflow: visible; }
.chart .grid { stroke: var(--grid); stroke-width: 1; shape-rendering: crispEdges; }
.chart .axis { stroke: var(--line-2); stroke-width: 1; shape-rendering: crispEdges; }
.chart .tick { fill: var(--faint); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.chart .bar.s1 { fill: var(--s1); } .chart .bar.s2 { fill: var(--s2); }
.chart .series-line { fill: none; stroke: var(--s3); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .end-dot { fill: var(--s3); stroke: var(--surface); stroke-width: 2; }
.chart .hit { fill: transparent; cursor: crosshair; }
.chart .hover-band { fill: var(--accent-soft); }
.tooltip { position: absolute; width: 220px; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 12px; box-shadow: var(--shadow-lg); pointer-events: none; font-size: 12.5px; z-index: 5; }
.tooltip b { display: block; margin-bottom: 6px; font-size: 13px; }
.tt-row { display: flex; align-items: center; gap: 7px; padding: 2px 0; color: var(--muted); }
.tt-row span { margin-left: auto; color: var(--fg); font-weight: 600; font-variant-numeric: tabular-nums; }
.tt-row.strong { color: var(--fg); font-weight: 600; border-top: 1px solid var(--line); margin-top: 3px; padding-top: 5px; }
.tt-row.muted span { color: var(--muted); }
.spark { display: block; }
.spark path { fill: none; stroke: var(--faint); stroke-width: 1.75; stroke-linejoin: round; }
.spark circle { fill: var(--accent); stroke: var(--surface); stroke-width: 2; }
.spark-empty { color: var(--faint); }
.rank-bar { display: block; height: 4px; border-radius: 99px; background: var(--surface-3); margin-top: 7px; overflow: hidden; }
.rank-bar i { display: block; height: 100%; border-radius: 99px; }
.rank-bar i.s1 { background: var(--s1); } .rank-bar i.s2 { background: var(--s2); }
.mini-chart { margin-bottom: 18px; }
.mini-bars { display: flex; align-items: flex-end; gap: 2px; height: 150px; padding: 0 2px; border-bottom: 1px solid var(--line-2); }
.mini-col { flex: 1; height: 100%; display: flex; align-items: flex-end; cursor: crosshair; }
.mini-col i { display: block; width: 100%; max-width: 24px; margin: 0 auto; border-radius: 4px 4px 0 0; transition: filter .1s; }
.mini-col i.s2 { background: var(--s2); }
.mini-col i.hot { filter: brightness(1.3); }
.mini-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; }

/* ---------- ranked lists */
.rank-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.rank-row { display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: center; padding: 11px 8px; margin: 0 -8px; border-radius: 12px; transition: background .15s; }
.rank-row:hover { background: var(--surface-2); }
.rank-n { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-weight: 700; font-size: 12.5px; background: var(--surface-3); color: var(--muted); }
.rank-n.gold { background: linear-gradient(135deg, #f6d27a, #d99a2b); color: #3a2603; }
.rank-text { display: flex; flex-direction: column; min-width: 0; }
.rank-text b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-text .muted { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-val { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-weight: 700; font-size: 14.5px; }

/* ---------- campaigns & flows */
.summary-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); margin-bottom: 18px; overflow: hidden; }
.summary-strip > div { padding: 15px 18px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.summary-strip > div:last-child { border-right: 0; }
.summary-strip span { font-size: 12px; font-weight: 600; color: var(--muted); }
.summary-strip b { font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.podium-card { display: flex; flex-direction: column; gap: 6px; text-align: left; padding: 18px 18px 16px; border-radius: 18px; border: 1px solid var(--line-2); background: linear-gradient(160deg, var(--surface-2), var(--surface)); box-shadow: var(--shadow); transition: transform .18s, border-color .18s; }
.podium-card:hover { transform: translateY(-3px); border-color: var(--accent-ring); }
.podium-card.p1 { background: radial-gradient(400px 160px at 0% 0%, var(--glow), transparent 70%), linear-gradient(160deg, var(--surface-2), var(--surface)); border-color: var(--accent-ring); }
.podium-rank { font-size: 18px; }
.podium-rank em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--muted); margin-left: 4px; vertical-align: middle; }
.podium-name { font-size: 15px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.podium-rev { font-size: 26px; font-weight: 700; letter-spacing: -.03em; }
.table-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.search { position: relative; width: min(320px, 100%); }
.search .ic { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--faint); }
.search .input { padding-left: 36px; height: 38px; }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.data-table th { text-align: left; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--faint); padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface); position: sticky; top: 0; }
.data-table th.sortable { cursor: pointer; user-select: none; }
.data-table th.sortable:hover, .data-table th.sorted { color: var(--fg); }
.data-table th .ic { vertical-align: -2px; margin-left: 4px; color: var(--accent); }
.data-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.data-table tr.clickable { cursor: pointer; transition: background .12s; }
.data-table tr.clickable:hover td { background: var(--surface-2); }
.data-table.compact td, .data-table.compact th { padding: 8px 10px; }
.name-cell { min-width: 240px; max-width: 420px; }
.name-cell b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.name-cell .muted { display: block; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--surface-3); color: var(--muted); margin-right: 6px; }
.status-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-pill.live { color: var(--good); background: color-mix(in srgb, var(--good) 12%, transparent); }
.status-pill.manual { color: var(--warn); background: var(--warn-soft); }

/* drawer */
.drawer-bg { position: fixed; inset: 0; z-index: 90; background: rgba(8, 6, 12, .55); backdrop-filter: blur(3px); animation: fade .15s; }
.drawer { position: absolute; top: 0; right: 0; bottom: 0; width: min(1080px, 100%); background: var(--surface); border-left: 1px solid var(--line-2); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; animation: slide .22s cubic-bezier(.2, .8, .2, 1); }
.drawer.narrow { width: min(620px, 100%); }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
.drawer-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 22px 24px 16px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 20px; font-weight: 700; letter-spacing: -.02em; line-height: 1.25; }
.drawer-head p { margin-top: 4px; font-size: 13px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 22px 24px 40px; }
.drawer-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, 1fr); gap: 26px; align-items: start; }
.email-preview { border-radius: 16px; overflow: hidden; border: 1px solid var(--line-2); background: #fff; }
.inbox-line { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-bottom: 1px solid #ececf0; color: #1f1d24; font-size: 13px; }
.inbox-av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none; color: #fff; font-weight: 700; background: linear-gradient(135deg, #b98bf0, #6d3fc4); }
.inbox-line .inbox-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 440px; }
.inbox-line .inbox-sub span { color: #6f6b78; }
.email-frame { display: block; width: 100%; border: 0; background: #fff; }
.drawer-stats { position: sticky; top: 0; display: flex; flex-direction: column; gap: 16px; }
.big-rev { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; margin-bottom: 4px; }
.big-rev b { font-size: 38px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.cmp-grid { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.cmp { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; gap: 2px 12px; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.cmp:last-child { border-bottom: 0; }
.cmp-label { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.cmp b { grid-row: span 2; align-self: center; font-size: 17px; }
.cmp-avg { font-size: 12px; color: var(--faint); }
.cmp-avg.good { color: var(--good); } .cmp-avg.bad { color: var(--bad); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.facts.cols { grid-template-columns: repeat(3, 1fr); margin-bottom: 14px; }
.facts dt { font-size: 12px; color: var(--muted); font-weight: 600; }
.facts dd { font-weight: 600; margin-top: 2px; font-size: 14px; }
.sub-head { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; margin: 22px 0 12px; }

/* ---------- clients (agency) */
.client-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.client-card { display: flex; flex-direction: column; gap: 16px; text-align: left; padding: 20px; border-radius: 20px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); transition: transform .18s, border-color .18s; }
.client-card:hover { transform: translateY(-3px); border-color: var(--accent-ring); }
.client-top { display: flex; align-items: center; gap: 12px; }
.client-top > div { display: flex; flex-direction: column; min-width: 0; }
.client-top b { font-size: 16px; }
.client-rev { display: flex; flex-direction: column; gap: 6px; }
.client-rev b { font-size: 30px; font-weight: 700; letter-spacing: -.03em; }
.client-card .spark { width: 100%; height: 44px; }
.client-card .spark path { stroke: var(--s1); stroke-width: 2; vector-effect: non-scaling-stroke; }
.client-card .spark circle { display: none; }
.client-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.work-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.work-pill { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 99px; font-size: 12px; font-weight: 600; background: var(--accent-soft); color: var(--accent); }
.work-pill.warn { background: var(--warn-soft); color: var(--warn); }
.work-pill.quiet { background: var(--surface-3); color: var(--muted); }
.client-foot .muted { display: inline-flex; align-items: center; gap: 5px; }

/* ---------- settings */
.settings { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.settings .card { margin: 0; }
.settings .card:first-child { grid-column: 1 / -1; }
.kv { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.kv span { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
.kv b { font-size: 14px; }
.invite-row { display: grid; grid-template-columns: 1fr 1.3fr auto; gap: 8px; margin-bottom: 14px; }
.member-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.member-list li { display: flex; align-items: center; gap: 12px; padding: 9px 6px; border-radius: 12px; }
.member-list li > div { display: flex; flex-direction: column; flex: 1; min-width: 0; }

/* ---------- skeletons */
.skeleton-page { display: flex; flex-direction: column; gap: 18px; }
.sk { border-radius: var(--r); background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 50%, var(--surface) 75%); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; border: 1px solid var(--line); }
.sk.hero { height: 150px; border-radius: 22px; }
.sk.tile { height: 104px; flex: 1; }
.sk.chart { height: 360px; }
.sk.line { height: 22px; width: 260px; border-radius: 8px; }
.sk-row { display: flex; gap: 14px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- responsive */
@media (max-width: 1180px) {
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .hero-card { grid-template-columns: 1fr 1fr; }
  .hero-split { grid-column: 1 / -1; padding: 16px 0 0; border-left: 0; border-top: 1px solid var(--line-2); flex-direction: row; flex-wrap: wrap; gap: 12px 28px; }
  .drawer-grid { grid-template-columns: 1fr; }
  .drawer-stats { position: static; order: -1; }
}
@media (max-width: 900px) {
  .frame { grid-template-columns: 1fr; background: none; }
  .side { position: fixed; z-index: 80; left: 0; top: 0; bottom: 0; width: 280px; transform: translateX(-105%); transition: transform .22s cubic-bezier(.2, .8, .2, 1); }
  .frame.nav-open .side { transform: none; box-shadow: var(--shadow-lg); }
  .frame.nav-open .scrim { display: block; position: fixed; inset: 0; z-index: 70; background: rgba(8, 6, 12, .5); }
  .mobile-top { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--surface); position: sticky; top: 0; z-index: 20; }
  .page { padding: 20px 16px 60px; }
  .page-head h1 { font-size: 24px; }
  .two-col, .settings { grid-template-columns: 1fr; }
  .podium { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .tiles { grid-template-columns: 1fr 1fr; }
  .tiles > :last-child:nth-child(odd) { grid-column: span 2; }
  .hero-card { grid-template-columns: 1fr; padding: 22px 20px; }
  .hero-share { padding: 16px 0 0; border-left: 0; border-top: 1px solid var(--line-2); }
  .hero-value { font-size: 42px; }
  .seg.period button { min-width: 40px; padding: 0 9px; }
  .invite-row { grid-template-columns: 1fr; }
  .facts.cols { grid-template-columns: 1fr 1fr; }
  .summary-strip > div { border-bottom: 1px solid var(--line); }
}

/* ===================== review screen (from Proofs) ===================== */
/* ---------- review layout */
.review { height: 100dvh; display: grid; grid-template-rows: 60px 1fr; overflow: hidden; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 14px 0 12px; background: var(--surface); border-bottom: 1px solid var(--line); z-index: 20; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 10px; min-width: 0; }
.topbar .sep { width: 1px; height: 22px; background: var(--line-2); }
.title-block { min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.title-block h1 { font-size: 15px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.progress { width: 120px; height: 6px; border-radius: 99px; background: var(--draft-soft); overflow: hidden; margin-left: 6px; flex: none; }
.progress i { display: block; height: 100%; background: var(--ok-bg); border-radius: 99px; transition: width .4s ease; }
.who-chip { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px 0 6px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--surface); font-size: 13px; font-weight: 500; }

.review-body { display: grid; grid-template-columns: 236px minmax(0, 1fr) 368px; min-height: 0; }

/* rail */
.rail { background: var(--surface); border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; transition: background .15s; }
.rail.drop-over { background: var(--accent-soft); box-shadow: inset 0 0 0 2px var(--accent); }
.rail-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 10px 4px 16px; font-size: 12px; font-weight: 600; color: var(--faint); text-transform: uppercase; letter-spacing: .03em; }
.rail-list { list-style: none; margin: 0; padding: 6px 10px 10px; overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.rail-item { display: flex; gap: 10px; padding: 7px; border-radius: 12px; cursor: pointer; border: 1px solid transparent; transition: background .12s, border-color .12s; }
.rail-item:hover { background: rgba(127, 127, 127, .07); }
.rail-item.on { background: var(--accent-soft); border-color: var(--accent-ring); }
.rail-item.dragging { opacity: .4; }
.rail-thumb { position: relative; width: 62px; height: 78px; flex: none; border-radius: 7px; overflow: hidden; background: var(--canvas); box-shadow: 0 0 0 1px var(--line) inset; }
.rail-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.rail-count { position: absolute; right: 4px; bottom: 4px; display: inline-flex; align-items: center; gap: 2px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--accent); color: #fff; font-size: 10.5px; font-weight: 700; }
.rail-meta { display: flex; flex-direction: column; justify-content: center; gap: 3px; min-width: 0; }
.rail-name { font-size: 13px; font-weight: 500; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rail-name em { font-style: normal; color: var(--faint); font-weight: 600; margin-right: 5px; font-variant-numeric: tabular-nums; }
.rail-status { font-size: 11.5px; font-weight: 600; color: var(--muted); }
.rail-status.approved { color: var(--ok); }
.rail-status.changes { color: var(--warn); }
.rail-status.in_review { color: var(--review); }
.rail-item.uploading { cursor: default; }
.up-bar { position: absolute; left: 8px; right: 8px; top: 50%; height: 4px; border-radius: 99px; background: var(--line-2); overflow: hidden; }
.up-bar i { display: block; height: 100%; background: var(--accent); transition: width .2s; }
.rail-drop { margin: 0 10px 12px; height: 44px; border-radius: 11px; border: 1.5px dashed var(--line-2); background: none; color: var(--muted); font-size: 12.5px; font-weight: 500; display: flex; align-items: center; justify-content: center; gap: 7px; }
.rail-drop:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

/* stage */
.stage-area { isolation: isolate; display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--canvas); background-image: radial-gradient(var(--canvas-dot) 1.1px, transparent 1.1px); background-size: 18px 18px; position: relative; }
.stage-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; flex-wrap: wrap; }
.tb-group { display: flex; align-items: center; gap: 8px; min-width: 0; }
.design-title { font-size: 16px; font-weight: 600; letter-spacing: -.015em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 340px; }
.banner { margin: 0 16px 6px; padding: 9px 14px; border-radius: 10px; background: var(--warn-soft); color: var(--warn); font-size: 13px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.canvas-wrap { flex: 1; overflow: auto; padding: 8px 24px 140px; min-height: 0; }
.canvas-inner { display: flex; justify-content: center; gap: 28px; min-width: min-content; }
.canvas-inner .col { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.col-label { font-size: 12px; font-weight: 600; color: var(--muted); background: var(--surface); padding: 3px 10px; border-radius: 99px; box-shadow: var(--shadow-sm); }
.col-label.current { color: var(--accent); }
.sheet { background: #fff; border-radius: 12px; box-shadow: var(--sheet-shadow); position: relative; }
.sheet > img { border-radius: 0 0 12px 12px; }
/* Mobile designs sit in a phone frame. The bezel is a box-shadow so it adds no width (the design keeps
   its exact size) and nothing is clipped (no overflow:hidden, so the comment popover can extend out). */
.sheet.phone { border-radius: 26px; margin: 10px; box-shadow: 0 0 0 9px #121214, 0 0 0 10px #34343a, var(--sheet-shadow); }
.sheet.phone .inbox { border-radius: 26px 26px 0 0; padding: 22px 14px 12px; }
.sheet.phone > img, .sheet.phone .stage img, .sheet.phone .skeleton { border-radius: 0 0 26px 26px; }
.stage { position: relative; }
.stage img { border-radius: 0 0 12px 12px; user-select: none; -webkit-user-drag: none; transition: opacity .25s; }
.stage img.loading { opacity: 0; position: absolute; top: 0; }
.stage.can-comment { cursor: crosshair; }
.skeleton { border-radius: 0 0 12px 12px; background: linear-gradient(90deg, #f1f1ef 25%, #e7e7e4 50%, #f1f1ef 75%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* inbox preview (always light: it's how the email looks) */
.inbox { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-bottom: 1px solid #ececea; background: #fff; border-radius: 12px 12px 0 0; color: #1f1f23; font-size: 13px; }
.inbox.empty { cursor: pointer; }
.inbox.empty:hover .inbox-sub { color: #5b4cf0; }
.inbox-avatar { width: 36px; height: 36px; border-radius: 50%; flex: none; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 15px; background: hsl(var(--h) 55% 50%); }
.inbox-text { min-width: 0; flex: 1; }
.inbox-row { display: flex; justify-content: space-between; gap: 10px; }
.inbox-row b { font-weight: 600; }
.inbox-row span { color: #8a8a92; font-size: 12px; flex: none; }
.inbox-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #1f1f23; }
.inbox-sub b { font-weight: 600; }
.inbox-sub span, .inbox-sub.muted { color: #74747c; }

/* pins */
.pin {
  position: absolute; z-index: 3; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50% 50% 50% 4px;
  display: grid; place-items: center; background: var(--accent); color: #fff; border: 2.5px solid #fff; font-size: 12.5px; font-weight: 700;
  box-shadow: 0 3px 10px rgba(30, 20, 120, .35); cursor: pointer; transition: transform .14s ease, box-shadow .14s;
  font-variant-numeric: tabular-nums; padding: 0;
}
.pin:hover { transform: scale(1.12); }
.pin.active { transform: scale(1.18); box-shadow: 0 0 0 5px var(--accent-ring), 0 4px 14px rgba(30, 20, 120, .4); z-index: 4; }
.pin.owner { background: #18181b; }
.pin.resolved { background: #16a34a; opacity: .7; transform: scale(.85); }
.pin.resolved:hover, .pin.resolved.active { opacity: 1; }
.pin.draft { background: var(--accent); border-style: dashed; animation: pulse-pin 1.4s ease-in-out infinite; pointer-events: none; }
@keyframes pulse-pin { 50% { box-shadow: 0 0 0 8px var(--accent-ring); } }

.popover { position: absolute; z-index: 30; width: 290px; transform: translate(22px, -14px); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 10px; cursor: default; animation: pop .14s ease-out; }
.popover.flip { transform: translate(calc(-100% - 22px), -14px); }
.popover textarea { min-height: 76px; }
.popover-who { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; margin: 0 0 8px 2px; color: var(--muted); }
.popover-foot, .composer-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; gap: 8px; }

/* decision bar */
.decision-bar { position: absolute; z-index: 15; left: 50%; bottom: 18px; transform: translateX(-50%); width: min(620px, calc(100% - 32px)); display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(14px) saturate(1.4); border: 1px solid var(--line); border-radius: 16px; padding: 10px 10px 10px 18px; box-shadow: var(--shadow-lg); z-index: 15; }
.decision-state { font-size: 13.5px; font-weight: 500; min-width: 0; }
.ok-text { color: var(--ok); display: inline-flex; gap: 6px; align-items: center; }
.warn-text { color: var(--warn); }
.hint-toast { position: fixed; bottom: 96px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; align-items: center; background: var(--fg); color: var(--bg); padding: 9px 15px; border-radius: 99px; font-size: 13px; font-weight: 500; box-shadow: var(--shadow-lg); z-index: 14; pointer-events: none; animation: rise .4s .6s both; }

/* empty stage */
.empty-stage { flex: 1; display: grid; place-items: center; padding: 24px; }
.big-drop { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 56px 48px; border-radius: 22px; border: 2px dashed var(--line-2); background: var(--surface); cursor: pointer; max-width: 520px; transition: border-color .15s, background .15s; }
.big-drop:hover { border-color: var(--accent); background: var(--accent-soft); }
.big-drop h2 { font-size: 20px; letter-spacing: -.015em; }
.big-drop .btn { margin-top: 10px; }

/* panel */
.panel { background: var(--surface); border-left: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.panel-tabs { display: flex; align-items: center; gap: 4px; padding: 10px 12px 0; border-bottom: 1px solid var(--line); }
.panel-tabs > button:not(.icon-btn) { border: 0; background: none; padding: 9px 10px 11px; font-size: 13.5px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; display: inline-flex; gap: 6px; align-items: center; }
.panel-tabs > button.on { color: var(--fg); border-bottom-color: var(--accent); }
.panel-tabs > button span { font-size: 11.5px; color: var(--accent); font-weight: 700; }
.panel-tabs .icon-btn { margin-left: auto; }

.comments { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.comments > .seg { margin: 12px 14px 4px; width: auto; }
.thread-list { flex: 1; overflow-y: auto; padding: 8px 14px 14px; display: flex; flex-direction: column; gap: 10px; }
.thread { border: 1px solid var(--line); border-radius: 14px; padding: 11px 12px 10px; background: var(--surface); cursor: pointer; transition: border-color .12s, box-shadow .12s, background .12s; }
.thread:hover { border-color: var(--line-2); }
.thread.active { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.thread.resolved { background: var(--surface-2); }
.thread.resolved .thread-body { color: var(--muted); }
.thread-head { display: flex; align-items: center; gap: 8px; }
.thread-num { width: 22px; height: 22px; border-radius: 50% 50% 50% 3px; display: grid; place-items: center; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; flex: none; }
.thread.resolved .thread-num { background: #16a34a; }
.thread-num.general { background: var(--draft-soft); color: var(--muted); border-radius: 6px; }
.thread-who { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 7px; min-width: 0; flex: 1; font-size: 12.5px; }
.thread-who b { font-weight: 600; font-size: 13px; }
.thread-who span { color: var(--faint); }
.vtag { font-style: normal; font-weight: 600; color: var(--warn); }
.resolve { width: 28px; height: 28px; }
.resolve:hover { color: var(--ok); background: var(--ok-soft); }
.resolve.on { color: var(--ok); }
.thread-body { margin: 7px 0 2px; font-size: 13.5px; line-height: 1.55; white-space: pre-wrap; word-wrap: break-word; }
.reply { display: flex; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.reply .thread-body { margin-top: 3px; }
.thread-actions { display: flex; gap: 14px; margin-top: 6px; }
.thread-actions .link-btn { color: var(--muted); }
.thread-actions .link-btn:hover { color: var(--accent); }
.composer { margin-top: 8px; }
.composer.compact textarea { min-height: 58px; }
.general-box { border-top: 1px solid var(--line); padding: 12px 14px 14px; }
.general-box .composer { margin: 0; }
.panel-empty { text-align: center; color: var(--faint); padding: 40px 18px; display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 13px; line-height: 1.55; }

/* details */
.details { overflow-y: auto; padding: 4px 16px 24px; }
.details section { padding: 16px 0; border-bottom: 1px solid var(--line); }
.details section:last-child { border-bottom: 0; }
.details h4 { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--faint); margin-bottom: 12px; }
.section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.section-head h4 { margin: 0; }
.inline-edit { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; text-align: left; border: 1px solid transparent; background: var(--surface-2); padding: 8px 11px; border-radius: 10px; font-size: 13.5px; line-height: 1.45; min-height: 38px; }
.inline-edit .ic { color: var(--faint); opacity: 0; transition: opacity .12s; }
.inline-edit:hover { border-color: var(--line-2); }
.inline-edit:hover .ic { opacity: 1; }
.inline-edit.empty { color: var(--faint); }
.inline-input { font-size: 13.5px; }
.status-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.status-opt { border: 1.5px solid transparent; background: none; padding: 1px; border-radius: 99px; opacity: .55; transition: opacity .12s; }
.status-opt:hover { opacity: .9; }
.status-opt.on { opacity: 1; border-color: currentColor; }
.versions { display: flex; flex-direction: column; gap: 6px; }
.version { display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: 11px; border: 1px solid transparent; }
.version:hover { background: var(--surface-2); }
.version.on { border-color: var(--accent-ring); background: var(--accent-soft); }
.version img { width: 40px; height: 50px; object-fit: cover; object-position: top; border-radius: 5px; cursor: pointer; box-shadow: 0 0 0 1px var(--line); }
.version-info { flex: 1; display: flex; flex-direction: column; font-size: 12.5px; cursor: pointer; min-width: 0; }
.version-info b { font-size: 13.5px; }
.version-info span { color: var(--muted); }
.version-actions { display: flex; }
.version-actions .icon-btn { width: 30px; height: 30px; }
.mobile-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding: 10px 12px; border-radius: 11px; background: var(--surface-2); font-size: 12.5px; flex-wrap: wrap; }
.mobile-row .muted { display: inline-flex; gap: 6px; align-items: center; }
.busy-line { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); margin: 0 0 10px; }
.decision { display: flex; gap: 10px; font-size: 13px; margin-bottom: 10px; }
.decision .dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; flex: none; }
.dot.ok { background: var(--ok-bg); }
.dot.warn { background: var(--warn-bg); }
.decision-note { margin-top: 4px; padding: 8px 10px; border-radius: 9px; background: var(--surface-2); white-space: pre-wrap; }
.activity { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 12.5px; }
.activity b { font-weight: 600; }


.status { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 99px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.status i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.s-draft { background: var(--draft-soft); color: var(--draft); }
.s-review { background: var(--review-soft); color: var(--review); }
.s-changes { background: var(--warn-soft); color: var(--warn); }
.s-approved { background: var(--ok-soft); color: var(--ok); }


/* ---------- responsive */
@media (max-width: 1180px) {
  .review-body { grid-template-columns: 210px minmax(0, 1fr); }
  .panel { position: fixed; top: 60px; right: 0; bottom: 0; width: min(380px, 100%); z-index: 30; box-shadow: var(--shadow-lg); transform: translateX(105%); transition: transform .22s cubic-bezier(.2, .8, .2, 1); }
  .review.panel-open .panel { transform: none; }
  .only-small { display: inline-grid !important; }
  .progress { display: none; }
}
@media (max-width: 760px) {
  .review { grid-template-rows: 56px 1fr; }
  .review-body { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
  .rail { border-right: 0; border-bottom: 1px solid var(--line); }
  .rail-head, .rail-drop { display: none; }
  .rail-list { flex-direction: row; overflow-x: auto; padding: 8px 10px; }
  .rail-item { flex-direction: column; width: 84px; flex: none; gap: 4px; padding: 5px; }
  .rail-thumb { width: 72px; height: 72px; }
  .rail-meta .rail-status { display: none; }
  .rail-name { font-size: 11.5px; -webkit-line-clamp: 1; }
  .panel { top: 56px; }
  .topbar-right .btn { font-size: 0; gap: 0; padding: 0 10px; }
  .who-chip { font-size: 0; gap: 0; padding: 0 4px; }
  .title-block .small { display: none; }
  .stage-toolbar { padding: 8px 12px; }
  .design-title { max-width: 180px; font-size: 14.5px; }
  .canvas-wrap { padding: 4px 12px 150px; }
  .decision-bar { bottom: 12px; padding: 8px 8px 8px 14px; }
  .decision-state { font-size: 12.5px; }
  .dash { padding: 0 16px 48px; }
  .dash-hero h1 { font-size: 23px; }
  .stats { width: 100%; }
  .stat { flex: 1; min-width: 0; padding: 10px 12px; }
  .stat b { font-size: 20px; }
  .popover { width: 240px; }
  .decision-bar { flex-wrap: wrap; gap: 8px; padding: 10px; }
  .decision-state { width: 100%; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 4px; }
  .decision-bar .row-tight { width: 100%; }
  .decision-bar .row-tight .btn { flex: 1; }
  .hint-toast { bottom: 124px; font-size: 12.5px; white-space: nowrap; }
}

/* ===================== round 2: collaboration pages ===================== */
.nav-badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--accent); color: var(--accent-ink); font-size: 11.5px; font-weight: 700; display: grid; place-items: center; }
.section-label { font-size: 12px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--faint); margin: 22px 0 12px; }
.accent-text { color: var(--accent); }
.warn-text { color: var(--warn); }
.count-pill { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 700; }
.due { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); font-weight: 600; }
.due.late { color: var(--bad); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.seg.wide { display: flex; }
.seg.wide button { flex: 1; }
.btn.approve { background: var(--ok-bg); color: #fff; border-color: transparent; }
.btn.warn { background: var(--warn-bg); color: #fff; border-color: transparent; }
.center-screen { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.note-card { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: var(--r); background: var(--accent-soft); border: 1px solid var(--accent-ring); margin-bottom: 18px; }
.note-card .ic { color: var(--accent); margin-top: 2px; }
.dropzone { border: 1.5px dashed var(--line-2); border-radius: 14px; padding: 18px; text-align: center; color: var(--muted); font-size: 13px; margin-bottom: 6px; }
.dropzone:hover { border-color: var(--accent); }
.pre { white-space: pre-wrap; line-height: 1.6; }

/* review boards */
.board-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.board-card { text-align: left; padding: 0; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; transition: transform .18s, border-color .18s; }
.board-card:hover { transform: translateY(-3px); border-color: var(--accent-ring); }
.board-card.archived { opacity: .65; }
.board-thumbs { height: 150px; display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 16px) / 3); justify-content: center; gap: 8px; padding: 14px 14px 0; background: var(--canvas); background-image: radial-gradient(var(--canvas-dot) 1px, transparent 1px); background-size: 14px 14px; overflow: hidden; align-items: start; }
.board-thumbs img { width: 100%; height: 140px; object-fit: cover; object-position: top; border-radius: 7px 7px 0 0; background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .25); }
.board-thumbs > span { grid-column: 1 / -1; align-self: center; display: inline-flex; gap: 6px; align-items: center; margin-top: -14px; }
.board-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px; }
.board-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.board-top b { font-size: 15.5px; }
.board-foot { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; font-weight: 600; }
.stack-bar { display: flex; height: 6px; border-radius: 99px; background: var(--draft-soft); overflow: hidden; }
.stack-bar i { display: block; height: 100%; }
.stack-bar .st-approved { background: var(--ok-bg); }
.stack-bar .st-changes { background: var(--warn-bg); }
.stack-bar .st-review { background: var(--review); opacity: .8; }

/* the full-screen review sits outside the portal frame */
.rv.review { background: var(--bg); }
.rv .topbar .logo-mark { width: 22px; }
.rv .topbar .title-block { margin-left: 4px; }

/* calendar */
.month-nav { display: inline-flex; align-items: center; gap: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px 4px; }
.month-nav b { min-width: 140px; text-align: center; font-size: 14px; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: 12.5px; color: var(--muted); margin: -6px 0 14px; }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.stage-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; display: inline-block; }
.stage-dot.st-idea { background: #a8a1b3; }
.stage-dot.st-design { background: #f472b6; }
.stage-dot.st-review { background: #60a5fa; }
.stage-dot.st-approved { background: #4ade80; }
.stage-dot.st-scheduled { background: #c79bf5; }
.stage-dot.st-sent { background: #64748b; }
.stage-dot.klaviyo { background: transparent; border: 2px solid var(--s1); width: 9px; height: 9px; }
.stage-dot.key { background: #fbbf24; border-radius: 2px; transform: rotate(45deg); }
.cal-head { display: grid; grid-template-columns: repeat(7, 1fr); border-bottom: 1px solid var(--line); }
.cal-head div { padding: 10px 12px; font-size: 11.5px; font-weight: 700; color: var(--faint); text-transform: uppercase; letter-spacing: .03em; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-day { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 6px 6px 8px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cal-day:nth-child(7n) { border-right: 0; }
.cal-day.out { background: color-mix(in srgb, var(--bg) 50%, var(--surface)); }
.cal-day.out .cal-date span { color: var(--faint); }
.cal-day.today .cal-date span { background: var(--accent); color: var(--accent-ink); }
.cal-date { display: flex; justify-content: space-between; align-items: center; }
.cal-date span { font-size: 12.5px; font-weight: 600; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; }
.cal-add { opacity: 0; border: 0; background: var(--surface-3); color: var(--muted); width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; transition: opacity .12s; }
.cal-day:hover .cal-add { opacity: 1; }
.cal-key { font-size: 11px; font-weight: 600; color: var(--warn); padding: 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-item { display: flex; align-items: center; gap: 6px; width: 100%; text-align: left; border: 0; border-radius: 7px; padding: 4px 6px; font-size: 11.5px; font-weight: 600; background: var(--surface-2); color: var(--fg); min-width: 0; }
.cal-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.cal-item em { font-style: normal; font-size: 10.5px; color: var(--muted); flex: none; }
.cal-item:hover { background: var(--surface-3); }
.cal-item.klaviyo { background: transparent; border: 1px dashed var(--line-2); color: var(--muted); }
.stage-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.stage-chip { border: 1px solid var(--line-2); background: var(--surface-2); border-radius: 99px; padding: 5px 11px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.stage-chip.on { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.stage-chip.sm { padding: 2px 9px; font-size: 11.5px; }
.upcoming { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.upcoming li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.upcoming li:last-child { border-bottom: 0; }
.up-date { width: 110px; font-size: 12.5px; color: var(--muted); font-weight: 600; }

/* requests */
.req-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; align-items: start; }
.req-col { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow); }
.req-col-head h2 { font-size: 15.5px; font-weight: 700; display: flex; gap: 8px; align-items: center; }
.req-col-head h2 span { font-size: 12px; color: var(--accent); background: var(--accent-soft); border-radius: 99px; padding: 1px 8px; }
.req-empty { padding: 12px 2px; }
.req-card { display: flex; flex-direction: column; gap: 6px; text-align: left; padding: 13px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); transition: border-color .15s, transform .15s; }
.req-card:hover { border-color: var(--accent-ring); transform: translateY(-1px); }
.req-card.done { opacity: .65; }
.req-card b { font-size: 14px; line-height: 1.35; }
.req-top, .req-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.req-status { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; color: var(--muted); }
.req-status.in_progress { color: var(--review); }
.req-status.done { color: var(--ok); }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.req-done { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; margin-top: 12px; }
.req-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.req-controls .input.sm { width: auto; height: 38px; }
.req-body { white-space: pre-wrap; line-height: 1.6; padding: 14px 16px; background: var(--surface-2); border-radius: 12px; }
.req-thread { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.req-thread li { display: flex; gap: 10px; }
.req-thread p { margin-top: 3px; white-space: pre-wrap; line-height: 1.55; }
.req-reply { display: flex; flex-direction: column; gap: 8px; }

/* brand kit */
.brand-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.brand-grid .card { margin: 0; }
.brand-grid .card.wide { grid-column: 1 / -1; }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.swatch { text-align: left; border: 1px solid var(--line); background: var(--surface-2); border-radius: 14px; padding: 0 0 10px; overflow: hidden; display: flex; flex-direction: column; gap: 2px; }
.swatch i { height: 64px; display: block; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.swatch b, .swatch span { padding: 0 10px; font-size: 12.5px; }
.font-list, .link-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.font-list li { display: flex; flex-direction: column; }
.font-list b { font-size: 17px; }
.link-list a { display: inline-flex; gap: 7px; align-items: center; color: var(--accent); font-weight: 600; }
.list-edit { display: flex; flex-direction: column; gap: 8px; }
.list-row { display: flex; gap: 8px; align-items: center; }
.list-row .input { flex: 1; }
.swatch-input { width: 38px; height: 34px; border-radius: 10px; background: var(--c); border: 1px solid var(--line-2); flex: none; overflow: hidden; position: relative; cursor: pointer; }
.swatch-input input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.asset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.asset { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface-2); display: flex; flex-direction: column; }
.asset-preview { height: 130px; display: grid; place-items: center; background: var(--canvas); background-image: radial-gradient(var(--canvas-dot) 1px, transparent 1px); background-size: 12px 12px; }
.asset-preview img { max-width: 90%; max-height: 110px; object-fit: contain; }
.asset-ext { font-weight: 700; font-size: 18px; color: var(--muted); letter-spacing: .02em; }
.asset-meta { padding: 10px 12px 4px; display: flex; flex-direction: column; min-width: 0; }
.asset-meta b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.asset-actions { display: flex; justify-content: flex-end; padding: 0 6px 6px; }

/* audience */
.alerts { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.alert { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-radius: 14px; font-size: 13.5px; font-weight: 500; }
.alert.warning { background: var(--warn-soft); color: var(--warn); }
.alert.critical { background: var(--danger-soft); color: var(--bad); }
.tiles.three { grid-template-columns: repeat(3, 1fr); }
.growth-plot { position: relative; display: flex; align-items: stretch; gap: 2px; padding-left: 46px; }
.growth-plot::after { content: ""; position: absolute; left: 46px; right: 0; top: 50%; border-top: 1px solid var(--line-2); }
.axis-label { position: absolute; left: 0; width: 40px; text-align: right; font-size: 11px; color: var(--faint); font-variant-numeric: tabular-nums; }
.axis-label.top { top: -6px; }
.axis-label.mid { top: calc(50% - 8px); }
.axis-label.bot { bottom: -6px; }
.g-col { flex: 1; display: flex; flex-direction: column; cursor: crosshair; min-width: 0; }
.g-col:hover { background: var(--accent-soft); border-radius: 4px; }
.g-up { flex: 1; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 1px; }
.g-down { flex: 1; display: flex; align-items: flex-start; justify-content: center; padding-top: 1px; }
.g-up i, .g-down i { display: block; width: 100%; max-width: 22px; }
.g-up i { border-radius: 4px 4px 0 0; }
.g-down i { border-radius: 0 0 4px 4px; }
.g-col i.s2 { background: var(--s2); }
.g-col i.s3 { background: var(--s3); }
.growth .legend { margin-bottom: 12px; }
.health-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.health { border-radius: 14px; padding: 12px 14px; background: var(--surface-2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 3px; }
.health-label { font-size: 12px; color: var(--muted); font-weight: 600; }
.health b { font-size: 22px; letter-spacing: -.02em; }
.health-status { display: inline-flex; gap: 5px; align-items: center; font-size: 12px; font-weight: 700; }
.health.good .health-status { color: var(--ok); }
.health.warning .health-status { color: var(--warn); }
.health.critical .health-status { color: var(--bad); }
.health.critical { border-color: color-mix(in srgb, var(--bad) 40%, transparent); }
.list-sizes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.list-sizes li { display: flex; justify-content: space-between; gap: 14px; align-items: center; }
.list-sizes li > div { flex: 1; min-width: 0; }
.list-sizes b { font-size: 13.5px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-sizes li > span { font-weight: 700; font-variant-numeric: tabular-nums; min-width: 64px; text-align: right; }
.grade-warning { color: var(--warn); font-weight: 700; }
.grade-critical { color: var(--bad); font-weight: 700; }
.tt-title { font-size: 15.5px; font-weight: 700; }

/* reports */
.report-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.report-card { padding: 18px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.report-card.ready { background: radial-gradient(300px 120px at 0% 0%, var(--glow), transparent 70%), var(--surface); border-color: var(--line-2); }
.report-month { font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.report-teaser { font-size: 13.5px; line-height: 1.5; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.report { max-width: 1000px; margin: 0 auto; }
.report-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.report-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 26px; border-radius: 22px; margin-bottom: 18px; background: radial-gradient(500px 200px at 100% 0%, var(--glow), transparent 70%), var(--surface); border: 1px solid var(--line-2); flex-wrap: wrap; }
.report-head h1 { font-size: 28px; letter-spacing: -.03em; text-align: right; }
.report-head p { text-align: right; }
.report-headline { display: flex; gap: 14px; align-items: flex-start; padding: 18px 22px; border-radius: 18px; background: var(--accent-soft); border: 1px solid var(--accent-ring); margin-bottom: 18px; }
.report-headline .ic { color: var(--accent); margin-top: 3px; }
.report-headline p { font-size: 17px; font-weight: 600; line-height: 1.5; }
.report-tiles { grid-template-columns: repeat(5, 1fr); }
.report-h { font-size: 15px; font-weight: 700; margin-bottom: 12px; }
.report-h.good { color: var(--ok); }
.report-h.warn { color: var(--warn); }
.report-text { line-height: 1.7; font-size: 14.5px; }
.report-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; line-height: 1.55; }
.next-steps { background: radial-gradient(400px 160px at 0% 100%, var(--glow), transparent 70%), var(--surface); }
.rank-row.static:hover { background: none; }
.report-foot { text-align: center; margin: 10px 0 30px; }
.two-col + .two-col, .two-col + .card, .card + .two-col { margin-top: 18px; }

@media (max-width: 900px) {
  .req-columns, .brand-grid { grid-template-columns: 1fr; }
  .cal-head { display: none; }
  .cal-grid { grid-template-columns: 1fr; grid-template-rows: none !important; }
  .cal-day { border-right: 0; }
  .cal-day.out { display: none; }
  .cal-day:not(:has(.cal-item, .cal-key)) { display: none; }
  .report-tiles { grid-template-columns: repeat(2, 1fr); }
  .health-grid, .tiles.three { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
}
@media print {
  .side, .mobile-top, .no-print, .toasts { display: none !important; }
  .frame { display: block; background: none; }
  .main-col::before { display: none; }
  .page { padding: 0; max-width: none; }
  .card, .stat-tile, .report-head, .report-headline { box-shadow: none; break-inside: avoid; }
}
