/* Self-Reliant Artist · shared design tokens and components
   Palette and type come from Brad's wordmark: paper, ink, periwinkle. */
:root {
  color-scheme: light;
  --paper: #F6F6F6;
  --card: #FFFFFF;
  --ink: #1C1C1C;
  --ink-2: #55585E;
  --ink-3: #62676F;
  --line: #E3E4E6;
  --peri: #90A7CC;
  --peri-deep: #4A6594;
  --peri-tint: #E7EDF6;
  --peri-wash: #F0F4FA;
  --due: #B4452B;
  --due-tint: #FBEBE6;
  --ok: #2F6E4E;
  --ok-tint: #E6F1EB;
  --dash: #CFD3DA;
  --accent: #3F5C8F;
  --on-accent: #FFFFFF;
  --on-ink: #FFFFFF;
  --on-peri: #1C1C1C;
  --clip-bar: rgba(255, 255, 255, .75);
  --media: #1C1C1C;
  --on-media: #FFFFFF;
  --shadow: rgba(28, 28, 28, .25);
  --scrim: rgba(28, 28, 28, .28);
  --side-bg: #E7EDF6;
  --side-line: #D3DDEC;
  --display: "Gloock", "Playfair Display", Georgia, serif;
  --body: "Instrument Sans", system-ui, -apple-system, sans-serif;
  --mono: "DM Mono", ui-monospace, Menlo, monospace;
  --r: 14px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --star-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0C12.8 7 17 11.2 24 12 17 12.8 12.8 17 12 24 11.2 17 7 12.8 0 12 7 11.2 11.2 7 12 0Z'/%3E%3C/svg%3E");
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #11141A;
  --card: #191E27;
  --ink: #F1F2F4;
  --ink-2: #A9AFBA;
  --ink-3: #929AA7;
  --line: #2A313D;
  --peri: #90A7CC;
  --peri-deep: #B7C8E4;
  --peri-tint: #232D3E;
  --peri-wash: #1A212D;
  --due: #E8836A;
  --due-tint: #3A211B;
  --ok: #6FBF95;
  --ok-tint: #18302A;
  --dash: #3A4352;
  --accent: #90A7CC;
  --on-accent: #11141A;
  --on-ink: #11141A;
  --on-peri: #11141A;
  --clip-bar: rgba(17, 20, 26, .5);
  --media: #0A0C10;
  --on-media: #F1F2F4;
  --shadow: rgba(0, 0, 0, .6);
  --scrim: rgba(0, 0, 0, .58);
  --side-bg: #172033;
  --side-line: #26324A;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.5 var(--body); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--peri-deep); outline-offset: 2px; border-radius: 6px; }

.display { font-family: var(--display); font-weight: 400; letter-spacing: -.02em; line-height: .98; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .02em; }
.lbl { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.muted { color: var(--ink-2); }
.star { width: 1em; height: 1em; fill: var(--peri); flex: none; }
.theme-btn { display: inline-flex; align-items: center; gap: 9px; min-height: 36px; padding: 6px 14px 6px 11px; border-radius: 999px; border: 1px solid var(--side-line); background: transparent; color: var(--ink-2); font-size: 13px; font-weight: 500; transition: background .2s, color .2s, border-color .2s; }
.theme-btn:hover { color: var(--ink); background: var(--card); }
.theme-btn svg { width: 16px; height: 16px; flex: none; }
.side-theme { margin-top: auto; padding-top: 18px; }
.side-theme + .side-foot { margin-top: 14px; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: 244px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; padding: 28px 20px 20px; display: flex; flex-direction: column; background: var(--side-bg); border-right: 1px solid var(--side-line); }
.wordmark { font-family: var(--display); font-size: 30px; line-height: .92; letter-spacing: -.03em; text-decoration: none; display: block; }
.wordmark em { font-style: normal; color: var(--peri); position: relative; }
.side .wordmark em { color: var(--peri-deep); }
.side .wordmark em svg { fill: var(--peri-deep); }
.wordmark em svg { position: absolute; width: 11px; height: 11px; left: 51%; top: -1px; fill: var(--peri); animation: twinkle 5s var(--ease) infinite; }
.side .who { margin-top: 10px; }
.nav { margin-top: 36px; display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; text-decoration: none; color: var(--ink-2); font-weight: 500; transition: background .2s, color .2s, transform .2s var(--ease); }
.nav a:hover { color: var(--ink); transform: translateX(2px); }
.nav a .star { opacity: 0; transform: scale(.2) rotate(-45deg); transition: .35s var(--ease); font-size: 13px; }
.nav a[aria-current] { color: var(--ink); background: var(--card); box-shadow: 0 0 0 1px var(--side-line); }
.nav a[aria-current] .star { opacity: 1; transform: none; }
.nav .n { margin-left: auto; font-family: var(--mono); font-size: 11px; padding: 1px 7px; border-radius: 20px; background: var(--due-tint); color: var(--due); }
.side-foot { margin-top: auto; display: grid; gap: 10px; }
.claude { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 50%, transparent); animation: pulse 2.4s infinite; }
.dot.off { background: var(--ink-3); animation: none; }
.main { padding: 40px clamp(20px, 4vw, 56px) 80px; min-width: 0; }
.view { max-width: 1180px; }

/* ---------- motion ---------- */
.view.in .rise { animation: rise .55s var(--ease) both; animation-delay: calc(var(--i, 0) * 55ms); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@keyframes twinkle { 0%, 80%, 100% { transform: scale(1) rotate(0); } 90% { transform: scale(1.35) rotate(90deg); } }
@keyframes grow { from { transform: scaleX(0); } }
@keyframes slide { from { left: 0; } }
@keyframes pop { 0% { transform: scale(.4) rotate(-90deg); } 60% { transform: scale(1.3); } }

/* ---------- page head ---------- */
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 30px; }
.head h1 { font-family: var(--display); font-weight: 400; font-size: clamp(38px, 5vw, 60px); letter-spacing: -.03em; line-height: .96; }
.head h1 em { font-style: normal; color: var(--peri); }
.head p { margin-top: 12px; max-width: 56ch; color: var(--ink-2); font-size: 16px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }

.btn { border: 1px solid var(--accent); background: var(--accent); color: var(--on-accent); padding: 9px 16px; border-radius: 999px; font-weight: 500; font-size: 14px; transition: transform .2s var(--ease), background .2s; white-space: nowrap; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(.97); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--ink); }
.btn.sm { padding: 5px 12px; font-size: 13px; }
.btn.peri { background: var(--peri-tint); border-color: var(--peri-tint); color: var(--peri-deep); }
.btn.sm.ghost, .btn.ghost.sm { background: transparent; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.card > h2, .sec > h2 { font-family: var(--display); font-weight: 400; font-size: 24px; letter-spacing: -.02em; }
.card-hd { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-hd h2 { font-family: var(--display); font-weight: 400; font-size: 24px; letter-spacing: -.02em; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.stack { display: grid; gap: 18px; }
.sec { margin-top: 34px; }
.sec-hd { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.sec-hd h2 { font-family: var(--display); font-weight: 400; font-size: 28px; letter-spacing: -.02em; }
.empty { padding: 22px; text-align: center; color: var(--ink-2); border: 1px dashed var(--line); border-radius: var(--r); }

/* periwinkle star ahead of card and section headings */
.card > h2::before, .card-hd h2::before, .sec > h2::before, .sec-hd h2::before { content: ""; display: inline-block; width: .38em; height: .38em; margin-right: .32em; vertical-align: .16em; background: var(--peri); -webkit-mask: var(--star-mask) center / contain no-repeat; mask: var(--star-mask) center / contain no-repeat; }

/* ---------- rows ---------- */
.row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.row:first-of-type { border-top: 0; }
.row .grow { flex: 1; min-width: 0; }
.row b { font-weight: 600; }
.row small { display: block; color: var(--ink-2); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.av { width: 34px; height: 34px; border-radius: 50%; background: var(--peri-tint); color: var(--peri-deep); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--peri) 45%, transparent); display: grid; place-items: center; font-weight: 600; font-size: 13px; flex: none; }
.tag { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11px; letter-spacing: .03em; padding: 3px 9px; border-radius: 999px; background: var(--peri-tint); color: var(--ink-2); white-space: nowrap; }
.tag.due { background: var(--due-tint); color: var(--due); }
.tag.ok { background: var(--ok-tint); color: var(--ok); }
.tag.peri { background: var(--card); color: var(--peri-deep); box-shadow: inset 0 0 0 1px var(--peri); }

/* ---------- numbers strip ---------- */
.nums { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-top: 2px solid var(--peri); border-radius: var(--r); background: var(--card); overflow: hidden; }
.nums > div { padding: 18px 20px; border-left: 1px solid var(--line); }
.nums > div:first-child { border-left: 0; }
.nums .v { font-family: var(--display); font-size: 38px; letter-spacing: -.03em; line-height: 1; margin-top: 8px; }
.nums .s { color: var(--ink-2); font-size: 13px; margin-top: 4px; }

/* ---------- signal flow (sales funnel) ---------- */
.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.flow .node .v { font-family: var(--display); font-size: 52px; letter-spacing: -.03em; line-height: 1; }
.flow .node .lbl { display: block; margin-top: 6px; }
.flow .wire { text-align: center; padding: 0 18px; min-width: 130px; }
.flow .wire .pct { font-family: var(--mono); font-size: 15px; color: var(--peri-deep); font-weight: 500; }
.flow .wire .bar { height: 3px; background: var(--peri-tint); border-radius: 3px; margin: 8px 0; overflow: hidden; }
.flow .wire .bar i { display: block; height: 100%; background: var(--peri); transform-origin: left; }
.view.in .flow .wire .bar i { animation: grow 1s var(--ease) both .2s; }

/* ---------- tables ---------- */
.tbl-wrap { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { background: var(--peri-wash); text-align: left; font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding: 12px 16px; white-space: nowrap; }
td { padding: 11px 16px; border-top: 1px solid var(--line); vertical-align: middle; }
tbody tr { transition: background .15s; }
tbody tr:hover { background: var(--peri-wash); }
td.num, th.num { text-align: right; font-family: var(--mono); font-size: 13px; }
td small { color: var(--ink-2); display: block; font-size: 12px; }
.sel { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 4px 10px; font-size: 13px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 5px 12px; font-size: 13px; color: var(--ink-2); transition: .2s; }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.vbar { height: 6px; border-radius: 6px; background: var(--peri-tint); min-width: 90px; overflow: hidden; }
.vbar i { display: block; height: 100%; background: var(--peri); border-radius: 6px; transform-origin: left; }
.view.in .vbar i { animation: grow .9s var(--ease) both; animation-delay: calc(var(--i, 0) * 50ms); }

/* ---------- arrangement view (clients) ---------- */
.arr { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow-x: auto; }
.arr-in { min-width: 860px; }
.arr-row { display: grid; grid-template-columns: 230px minmax(0, 1fr); align-items: center; border-top: 1px solid var(--line); }
.arr-row.ruler { border-top: 0; background: var(--peri-wash); border-bottom: 1px solid var(--line); }
.arr-row.lane { cursor: pointer; transition: background .15s; width: 100%; background: none; border-left: 0; border-right: 0; border-bottom: 0; text-align: left; padding: 0; }
.arr-row.lane:hover { background: var(--peri-wash); }
.arr-hd { padding: 12px 16px; display: flex; align-items: center; gap: 12px; border-right: 1px solid var(--line); min-width: 0; align-self: stretch; }
.arr-hd .grow { min-width: 0; }
.arr-hd b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.arr-hd small { color: var(--ink-2); font-size: 12px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meter { width: 5px; height: 30px; border-radius: 3px; background: var(--line); display: flex; align-items: flex-end; overflow: hidden; flex: none; }
.meter i { width: 100%; background: var(--ok); border-radius: 3px; }
.meter.quiet i { background: var(--due); }
.track { position: relative; display: flex; gap: 10px; padding: 10px 16px; }
.grp { display: flex; gap: 3px; }
.ruler .grp { display: block; padding: 9px 0; }
.clip { flex: 1; height: 32px; border-radius: 5px; border: 1px dashed var(--dash); display: flex; align-items: center; justify-content: center; gap: 2px; padding: 0 3px; overflow: hidden; }
.clip.on { border: 0; background: var(--peri); transform-origin: left; }
.clip.on i { width: 2px; border-radius: 2px; background: var(--clip-bar); }
.view.in .clip.on, .in .clip.on { animation: grow .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 28ms); }
.pace { position: absolute; top: 4px; bottom: 4px; width: 2px; background: var(--ink); border-radius: 2px; pointer-events: none; }
.pace::before { content: ""; position: absolute; top: -1px; left: -4px; border: 5px solid transparent; border-top-color: var(--ink); }
.view.in .pace, .in .pace { animation: slide 1.2s var(--ease) both .15s; }
.legend { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 12px; color: var(--ink-2); font-size: 13px; align-items: center; }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend .k { width: 18px; height: 10px; border-radius: 3px; background: var(--peri); }
.legend .k.todo { background: none; border: 1px dashed var(--dash); }
.legend .k.pc { width: 2px; height: 14px; background: var(--ink); border-radius: 2px; }

/* ---------- waveform (calls) ---------- */
.call { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 20px; margin-top: 10px; }
.call-top { display: grid; grid-template-columns: 40px minmax(150px, 220px) minmax(0, 1fr) auto; gap: 16px; align-items: center; }
.play { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--ink); background: var(--card); display: grid; place-items: center; transition: .2s var(--ease); }
.play:hover { background: var(--ink); }
.play:hover svg { fill: var(--on-ink); }
.play svg { width: 12px; height: 12px; fill: var(--ink); }
.wave { display: flex; align-items: center; gap: 2px; height: 40px; min-width: 0; }
.wave i { flex: 1; min-width: 1px; border-radius: 2px; background: var(--peri); opacity: .45; transition: opacity .15s, background .15s; }
.wave i.p { background: var(--ink); opacity: 1; }
.review { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; animation: rise .4s var(--ease); }
.review ul { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.review li { display: flex; gap: 10px; align-items: flex-start; }
.review li .star { margin-top: 4px; font-size: 12px; }
.connect { display: flex; align-items: center; gap: 16px; background: var(--peri-wash); border: 1px solid var(--peri-tint); border-radius: var(--r); padding: 16px 20px; flex-wrap: wrap; }
.connect .grow { flex: 1; min-width: 240px; }

/* ---------- to-dos ---------- */
.todo { display: flex; align-items: flex-start; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); width: 100%; background: none; border-left: 0; border-right: 0; border-bottom: 0; text-align: left; }
.todo:first-child { border-top: 0; }
.todo .box { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--ink-3); display: grid; place-items: center; flex: none; margin-top: 1px; transition: .2s; }
.todo:hover .box { border-color: var(--peri-deep); }
.todo .box svg { width: 12px; height: 12px; fill: var(--on-peri); display: none; }
.todo.done .box { background: var(--peri); border-color: var(--peri); }
.todo.done .box svg { display: block; animation: pop .45s var(--ease); }
.todo.done .t { color: var(--ink-3); text-decoration: line-through; }
.todo small { display: block; color: var(--ink-3); font-size: 12px; }
.add { display: flex; gap: 8px; margin-top: 12px; }
.inp, .add input { flex: 1; border: 1px solid var(--line); background: var(--card); border-radius: 10px; padding: 9px 12px; min-width: 0; width: 100%; }
.inp:focus, .add input:focus { outline: none; border-color: var(--peri-deep); box-shadow: 0 0 0 3px var(--peri-tint); }

/* ---------- chart ---------- */
.chart { width: 100%; height: 190px; display: block; overflow: visible; }
.chart .ln { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.view.in .chart .ln { animation: draw 1.4s var(--ease) both; }
@keyframes draw { from { stroke-dashoffset: 1; } }
.chart .ar { fill: var(--peri-tint); }

/* ---------- drawer and sheet ---------- */
.scrim { position: fixed; inset: 0; background: var(--scrim); opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 20; }
.scrim.open { opacity: 1; pointer-events: auto; }
.drawer { box-shadow: -20px 0 60px var(--shadow); position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100vw); background: var(--paper); border-left: 1px solid var(--line); transform: translateX(102%); transition: transform .45s var(--ease); z-index: 21; overflow-y: auto; padding: 28px; }
.drawer.open { transform: none; }
.drawer:not(.open) { box-shadow: none; }
.drawer h2.big { font-family: var(--display); font-weight: 400; font-size: 40px; letter-spacing: -.03em; line-height: 1; }
.x { border: 1px solid var(--line); background: var(--card); width: 34px; height: 34px; border-radius: 50%; font-size: 16px; line-height: 1; }
dialog { border: 0; border-radius: 18px; padding: 28px; width: min(480px, calc(100vw - 32px)); background: var(--paper); color: var(--ink); box-shadow: 0 30px 80px var(--shadow); }
dialog::backdrop { background: var(--scrim); }
dialog[open] { animation: rise .35s var(--ease); }
dialog h2 { font-family: var(--display); font-weight: 400; font-size: 30px; letter-spacing: -.02em; margin-bottom: 18px; }
.f { display: grid; gap: 6px; margin-bottom: 14px; }
.f label { font-size: 13px; font-weight: 500; }
.f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg label { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 400; cursor: pointer; }
.seg input { position: absolute; opacity: 0; }
.seg label:has(input:checked) { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.seg label:has(input:focus-visible) { outline: 2px solid var(--peri-deep); outline-offset: 2px; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 80px); background: var(--ink); color: var(--on-ink); padding: 10px 18px; border-radius: 999px; font-size: 14px; box-shadow: 0 8px 24px var(--shadow); transition: transform .4s var(--ease); z-index: 40; display: flex; gap: 8px; align-items: center; }
.toast.show { transform: translate(-50%, 0); }
.sample { font-family: var(--mono); font-size: 11px; color: var(--ink-3); }

@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 18px 20px 12px; }
  .wordmark { font-size: 24px; }
  .wordmark br { display: none; }
  .nav { flex-direction: row; overflow-x: auto; margin-top: 14px; }
  .nav a { white-space: nowrap; }
  .side-foot, .side .who { display: none; }
  .main { padding-top: 26px; }
  .grid2, .review { grid-template-columns: 1fr; }
  .nums { grid-template-columns: 1fr 1fr; }
  .nums > div:nth-child(3) { border-left: 0; }
  .nums > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .flow { grid-template-columns: 1fr; gap: 14px; }
  .flow .wire { text-align: left; padding: 0; }
  .call-top { grid-template-columns: 40px 1fr auto; }
  .call-top .wave { grid-column: 1 / -1; grid-row: 2; }
  .f2 { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- dashboard additions (same tokens, appended) ---------- */
.linkish { text-decoration: none; }
.linkish:hover { color: var(--ink); }
.card-foot { margin-top: 14px; }
.due-txt { color: var(--due); }
.small-note { font-size: 13px; margin-top: 14px; }

/* follower chart */
.chart-top { display: flex; align-items: baseline; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.big-n { font-size: 44px; line-height: 1; letter-spacing: -.03em; }
.chart-ax { display: flex; justify-content: space-between; margin-top: 8px; font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.vcell { display: grid; grid-template-columns: 56px minmax(90px, 1fr); gap: 10px; align-items: center; }

/* ads: paired weekly bars and ROAS scale */
.pairs { display: flex; align-items: stretch; gap: 8px; height: 190px; }
.pair { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.pair .bars { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 3px; border-bottom: 1px solid var(--line); }
.pair .bars i { width: 38%; max-width: 16px; min-height: 2px; border-radius: 4px 4px 1px 1px; background: var(--ink); transform-origin: bottom; }
.pair .bars i.rev { background: var(--peri); }
.view.in .pair .bars i { animation: growY .8s var(--ease) both; animation-delay: calc(var(--i, 0) * 50ms); }
@keyframes growY { from { transform: scaleY(0); } }
.pair .lbl { font-size: 10px; letter-spacing: .04em; white-space: nowrap; }
.legend .k.ink { background: var(--ink); }
.scale { position: relative; height: 10px; border-radius: 6px; background: var(--paper); border: 1px solid var(--line); margin: 44px 0 8px; }
.scale .band { position: absolute; top: -1px; bottom: -1px; background: var(--ok-tint); border: 1px solid var(--ok); border-radius: 6px; }
.scale .mark { position: absolute; top: -9px; bottom: -9px; width: 2px; margin-left: -1px; background: var(--ink); border-radius: 2px; }
.scale .mark span { position: absolute; bottom: 100%; left: 50%; transform: translate(-50%, -4px); font-family: var(--mono); font-size: 12px; white-space: nowrap; }
.scale-ax { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; color: var(--ink-3); }

/* sales */
.nudge { display: flex; align-items: center; gap: 8px; }

/* calls */
.ctitle { min-width: 0; }
.ctitle b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ctitle small { display: block; color: var(--ink-2); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmeta { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.nowave { font-family: var(--mono); font-size: 12px; color: var(--ink-3); border-top: 1px dashed var(--line); padding-top: 6px; }
.play.off { border-color: var(--line); cursor: default; }
.play.off svg { fill: var(--ink-3); }
.play.off:hover { background: var(--card); }
.play.off:hover svg { fill: var(--ink-3); }
.call.upcoming { background: var(--peri-wash); border-style: dashed; }
.past-lbl { display: block; margin-top: 22px; }
.rv-h { margin-top: 16px; }
.rv-h.first { margin-top: 0; }
.review p { margin-top: 8px; }
.rv-todo { align-items: center; }
.rv-todo .grow { flex: 1; min-width: 0; }

/* client manager drawer */
.dr-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.dr-sub { margin-top: 8px; }
.dr-note { margin-top: 10px; font-size: 14px; }
.dsec { margin-top: 30px; }
.dsec > .lbl { display: block; margin-bottom: 10px; }
.scorehd { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.scorehd .sv { font-family: var(--display); font-size: 64px; line-height: 1; letter-spacing: -.03em; }
.part { display: grid; grid-template-columns: minmax(0, 1fr) minmax(80px, 140px) 62px; gap: 12px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; }
.part .vbar { min-width: 0; }
.part .mono { text-align: right; }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.kv > div { background: var(--card); padding: 11px 14px; min-width: 0; }
.kv > div .lbl { display: block; }
.kv > div b { display: block; font-weight: 500; margin-top: 3px; }
.kv .kbig { font-family: var(--display); font-weight: 400; font-size: 30px; letter-spacing: -.02em; line-height: 1.1; }
.kv3 { grid-template-columns: repeat(3, 1fr); margin-top: 10px; }
.arr.solo .arr-in { min-width: 480px; }
.arr.solo .arr-row { grid-template-columns: minmax(0, 1fr); }
.arr.solo .arr-row:not(.ruler) { border-top: 0; }
.arr.solo .clip { height: 48px; }
.todos { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 2px 16px; }
.mods { margin-top: 8px; }
.mods .tag { white-space: normal; }
.portal-box { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.portal-box .code { font-family: var(--mono); font-size: 22px; letter-spacing: .08em; margin-top: 4px; }

/* dialogs */
.dlg-foot { justify-content: flex-end; margin-top: 8px; }
.f > .fl { font-size: 13px; font-weight: 500; }
fieldset.kfs { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.kfs[disabled] { display: none; }
.f .check, .check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 400; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; }
@media (max-width: 900px) {
  .kv3 { grid-template-columns: 1fr; }
  .checks { grid-template-columns: 1fr; }
  .pair .lbl { font-size: 9px; }
  .drawer { padding: 20px 16px; }
}

/* ---------- review fixes ---------- */
.clip { flex: 1 1 0; min-width: 0; }
.grp { min-width: 0; }
.kv .kbig, .nums .v, .flow .node .v { word-spacing: .14em; }
.ads-tbl td:first-child { min-width: 200px; }
.legend .k, .legend .k.todo { height: 10px; flex: none; }
.legend .k.pc { height: 14px; }
.legend .k.todo { display: inline-block; width: 18px; padding: 0; border: 1px dashed var(--dash); }
.clip.on i { flex: none; }
.ads-tbl td:first-child { min-width: 170px; }
.ads-tbl th, .ads-tbl td { padding-left: 11px; padding-right: 11px; }
