/* Campaign flow and command centre. The app's hairline system with restrained radii, large type,
   white and off-white surfaces, black text, and orange only for the one thing that matters now. */

:root { --r: 12px; --r-sm: 8px; }

/* ---- Guided flow -------------------------------------------------------------------------- */
.flow { max-width: 1080px; margin: 0 auto; padding-bottom: 120px; }
.flow-steps { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 4px 0 56px; font-size: 13px; color: var(--faint); list-style: none; padding: 0; }
.flow-steps li { display: flex; align-items: center; gap: 10px; }
.flow-steps li + li::before { content: ""; width: 22px; height: 1px; background: var(--line); }
.flow-steps button { border: 0; background: none; padding: 4px 0; color: inherit; font-weight: 500; cursor: default; }
.flow-steps .done { color: var(--muted); }
.flow-steps .done button { cursor: pointer; }
.flow-steps .done button:hover { color: var(--ink); }
.flow-steps .now { color: var(--ink); }
.flow-steps .now button { font-weight: 650; }
.flow-steps .now button::after { content: ""; display: block; height: 2px; background: var(--orange); margin-top: 3px; border-radius: 2px; }

.flow-h { font: 700 clamp(34px, 4.2vw, 52px)/1.02 var(--display); font-stretch: 112%; letter-spacing: -.03em; margin: 0; max-width: 18ch; }
.flow-lead { font-size: 17px; line-height: 1.5; color: var(--muted); max-width: 58ch; margin: 14px 0 40px; }
.flow-body { animation: flow-in .45s var(--ease) both; }
@keyframes flow-in { from { opacity: 0; transform: translateY(8px); } }
.flow-sub { font: 600 15px/1.3 var(--sans); margin: 40px 0 14px; }
.flow-note { color: var(--muted); font-size: 13px; line-height: 1.5; max-width: 62ch; }
.flow-note b { color: var(--ink); font-weight: 600; }

.flow-foot { position: sticky; bottom: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 56px; padding: 16px 0; background: color-mix(in srgb, var(--paper) 88%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
.flow-foot .btn { border-radius: var(--r-sm); padding: 11px 20px; font-size: 15px; }
.flow-foot .hint { color: var(--muted); font-size: 13px; }

/* Large selectable cards (objectives, audience modes, channels). */
.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.choices.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.choice { position: relative; display: grid; align-content: start; gap: 10px; text-align: left; border: 1px solid var(--line); background: var(--raised); color: var(--ink); border-radius: var(--r); padding: 20px 20px 22px; cursor: pointer; transition: border-color .2s, box-shadow .25s var(--ease), transform .25s var(--ease); }
.choice:hover { border-color: var(--faint); transform: translateY(-1px); box-shadow: 0 10px 28px rgba(0, 0, 0, .06); }
.choice[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.choice[aria-pressed="true"]::after { content: ""; position: absolute; top: 18px; right: 18px; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.choice .t { font-weight: 650; font-size: 17px; letter-spacing: -.01em; }
.choice .d { color: var(--muted); font-size: 14px; line-height: 1.45; }
.choice .icon { color: var(--ink); }
.choice.big { padding: 28px 26px 30px; gap: 14px; }
.choice.big .t { font: 700 22px/1.15 var(--display); font-stretch: 110%; letter-spacing: -.02em; }
.more { margin-top: 14px; border: 0; background: none; color: var(--muted); font-weight: 600; cursor: pointer; padding: 6px 0; }
.more:hover { color: var(--ink); }

.chips-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--raised); border-radius: 999px; padding: 7px 14px; font-weight: 500; cursor: pointer; color: var(--ink); }
.chip:hover { border-color: var(--faint); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip .x { opacity: .6; }

.big-input { width: 100%; max-width: 620px; border: 1px solid var(--field); border-radius: var(--r-sm); background: var(--raised); padding: 14px 16px; font-size: 17px; }
.big-input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.ask-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.ask-row .btn { border-radius: var(--r-sm); }

/* What counts as success: the outcome versus weaker signals. */
.counts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; max-width: 820px; }
.counts > div { border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; background: var(--raised); }
.counts .k { font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.counts .v { font-weight: 650; font-size: 16px; margin: 8px 0 4px; }
.counts p { margin: 0; color: var(--muted); font-size: 13px; }
.counts .outcome { border-color: var(--ink); }

/* Company profile. */
.profile { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--raised); max-width: 820px; }
.profile .band { height: 96px; position: relative; }
.profile .band .swatches { position: absolute; right: 16px; bottom: 12px; display: flex; gap: 6px; }
.profile .band .swatches i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .85); }
.profile .who { display: flex; gap: 16px; align-items: flex-end; padding: 0 24px; margin-top: -30px; position: relative; }
.profile .mark { width: 64px; height: 64px; border-radius: 14px; background: var(--ink); color: var(--paper); display: grid; place-items: center; font: 800 28px/1 var(--display); border: 3px solid var(--raised); }
.profile .who h2 { margin: 0 0 4px; font-size: 24px; }
.profile .who a { color: var(--muted); font-size: 13px; }
.profile .about { padding: 18px 24px 24px; display: grid; gap: 16px; }
.profile .about p { margin: 0; font-size: 15px; line-height: 1.55; }
.profile dl { display: grid; grid-template-columns: 130px 1fr; gap: 8px 16px; margin: 0; font-size: 14px; }
.profile dt { color: var(--muted); }
.profile dd { margin: 0; }

/* Budget. */
.amount { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.amount .cur { font: 700 clamp(40px, 6vw, 76px)/1 var(--display); font-stretch: 112%; color: var(--faint); }
.amount input { font: 700 clamp(56px, 8vw, 104px)/1 var(--display); font-stretch: 112%; letter-spacing: -.04em; border: 0; background: none; padding: 0; field-sizing: content; min-width: 1ch; font-variant-numeric: tabular-nums; color: var(--ink); }
.amount input:focus { outline: none; }
.amount .per { font: 600 22px/1 var(--display); color: var(--muted); }
.slider { width: 100%; max-width: 820px; margin: 26px 0 18px; accent-color: var(--ink); }
.periods { display: inline-grid; grid-template-columns: repeat(4, auto); border: 1px solid var(--line); border-radius: 999px; padding: 3px; gap: 2px; }
.periods button { border: 0; background: none; border-radius: 999px; padding: 7px 14px; font-weight: 550; color: var(--muted); cursor: pointer; }
.periods button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.budget-row { display: flex; gap: 28px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.budget-row label { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; }
.budget-row input[type="date"] { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 7px 10px; background: var(--raised); }
.pay-note { display: flex; gap: 12px; align-items: flex-start; margin-top: 36px; padding: 16px 18px; border-radius: var(--r); background: var(--wash); max-width: 820px; font-size: 14px; line-height: 1.5; }
.pay-note .icon { flex: none; margin-top: 1px; }

/* Proportional allocation bars. */
.alloc { display: grid; gap: 12px; max-width: 820px; }
.alloc .row { display: grid; grid-template-columns: 28px minmax(120px, 200px) 1fr 128px; gap: 14px; align-items: center; }
.alloc .name { font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.alloc .track { height: 10px; border-radius: 999px; background: var(--wash); overflow: hidden; }
.alloc .track i { display: block; height: 100%; border-radius: 999px; background: var(--ink); transition: width .6s var(--ease); }
.alloc .row.free .track i { background: var(--faint); }
.alloc .amt { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.alloc .amt small { display: block; color: var(--muted); font-weight: 400; font-size: 12px; }

/* Logos. */
.logo { flex: none; display: block; }
.logo-letter { flex: none; display: inline-grid; place-items: center; border-radius: 6px; background: var(--ink); color: var(--paper); font-weight: 700; font-family: var(--display); }

/* Channel cards. */
.channel { gap: 12px; }
.channel .top { display: flex; align-items: center; gap: 12px; }
.channel .share { margin-left: auto; font-weight: 650; font-variant-numeric: tabular-nums; }
.channel .why { color: var(--muted); font-size: 13px; line-height: 1.45; min-height: 2.9em; }
.channel .how { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 11px; }
.channel .how .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); }
.channel .how.on .dot { background: var(--good); }

/* ---- The plan: campaign → master funnel → audience branches ------------------------------ */
.plan { display: grid; gap: 0; }
.plan-hero { background: #0b0b0b; color: #f4f4f2; border-radius: var(--r); padding: 40px 32px 44px; text-align: center; display: grid; gap: 10px; justify-items: center; }
.plan-hero .k { font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #9a9a96; }
.plan-hero .name { font: 700 clamp(24px, 3vw, 38px)/1.1 var(--display); font-stretch: 110%; letter-spacing: -.025em; margin: 6px 0 0; border: 0; background: none; color: inherit; text-align: center; width: 100%; max-width: 900px; }
.plan-hero .name:hover, .plan-hero .name:focus { outline: none; box-shadow: inset 0 -1px 0 #444; }
.plan-hero .meta { color: #b9b9b5; font-size: 16px; }
.plan-hero .money { font: 700 clamp(30px, 3.6vw, 46px)/1 var(--display); font-stretch: 110%; letter-spacing: -.02em; margin-top: 6px; }
.plan-hero .money small { font-size: .55em; color: #9a9a96; font-weight: 600; }
.plan-link { display: grid; place-items: center; height: 40px; color: var(--faint); }
.plan-link::before { content: ""; width: 1px; height: 100%; background: var(--line); }
.plan-master { border: 1px solid var(--line); border-radius: var(--r); background: var(--raised); padding: 24px; text-align: center; display: grid; gap: 6px; justify-items: center; }
.plan-master b { font-size: 18px; }
.plan-master span { color: var(--muted); }
.branches { position: relative; height: 56px; }
.branches svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.branches path { fill: none; stroke: var(--field); stroke-width: 1.25; vector-effect: non-scaling-stroke; }
.segments { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.segments.one { grid-template-columns: minmax(0, 460px); justify-content: center; }
.segment { border: 1px solid var(--line); border-radius: var(--r); background: var(--raised); overflow: hidden; display: grid; grid-template-rows: auto auto 1fr; text-align: left; color: var(--ink); padding: 0; cursor: pointer; transition: border-color .2s, box-shadow .25s var(--ease), transform .25s var(--ease); }
.segment:hover { border-color: var(--faint); transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0, 0, 0, .08); }
.segment[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.segment .seg-foot { display: flex; justify-content: space-between; align-items: end; gap: 10px; padding: 16px 18px 18px; border-top: 1px solid var(--line); }
.segment .seg-foot b { font: 700 22px/1 var(--display); font-stretch: 108%; font-variant-numeric: tabular-nums; }
.segment .seg-foot span { color: var(--muted); font-size: 13px; }
.segment .seg-name { font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 16px 18px 0; }
.seg-add { margin-top: 16px; border: 1px dashed var(--field); border-radius: var(--r); padding: 26px; display: grid; gap: 6px; justify-items: center; text-align: center; color: var(--muted); background: none; cursor: pointer; width: 100%; }
.seg-add:hover { border-color: var(--ink); color: var(--ink); }
.seg-add b { color: var(--ink); font-size: 16px; }

/* A miniature website: brand band, nav, headline, line, call to action. */
.mini { --brand: var(--ink); --on-brand: #fff; position: relative; aspect-ratio: 16 / 11; overflow: hidden; background: #fff; color: #0a0a0a; container-type: inline-size; border-bottom: 1px solid var(--line); }
.mini .m-nav { display: flex; align-items: center; justify-content: space-between; padding: 3.6cqi 5cqi; font: 700 3.2cqi/1 var(--display); }
.mini .m-nav i { display: inline-block; width: 9cqi; height: 1.4cqi; border-radius: 2px; background: #e7e7e5; margin-left: 2cqi; }
.mini .m-hero { margin: 0 5cqi; border-radius: 2.4cqi; background: var(--brand); color: var(--on-brand); height: 26cqi; display: grid; place-items: center; position: relative; overflow: hidden; }
.mini .m-hero .icon { width: 14cqi; height: 14cqi; opacity: .9; }
.mini .m-hero .m-tag { position: absolute; left: 3.4cqi; bottom: 3cqi; font: 600 2.6cqi/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.mini .m-copy { padding: 4.4cqi 5cqi 0; }
.mini .m-h { font: 700 5.6cqi/1.1 var(--display); font-stretch: 104%; letter-spacing: -.02em; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mini .m-p { font-size: 3.2cqi; line-height: 1.35; color: #5d5d5b; margin: 1.6cqi 0 0; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.mini .m-cta { position: absolute; left: 5cqi; right: 5cqi; bottom: 4.4cqi; border-radius: 1.8cqi; background: var(--orange); color: #fff; text-align: center; font: 600 3.4cqi/1 var(--sans); padding: 2.8cqi 0; }
.mini .m-label { position: absolute; top: 2.2cqi; right: 2.4cqi; font: 500 2.2cqi/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: #9a9a96; }
.mini.live iframe { position: absolute; top: 0; left: 0; width: 1280px; height: 880px; border: 0; transform-origin: 0 0; pointer-events: none; background: #fff; }

/* Ad and post previews. */
.ads { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.ad { border: 1px solid var(--line); border-radius: var(--r); background: var(--raised); overflow: hidden; }
.ad .ad-k { display: flex; align-items: center; gap: 8px; padding: 12px 14px; font-size: 13px; font-weight: 600; border-bottom: 1px solid var(--line); }
.ad .ad-k span { margin-left: auto; font: 500 10px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--faint); }
.ad .search { padding: 16px; font-family: Arial, Helvetica, sans-serif; background: #fff; color: #202124; }
.ad .search .sp { font-size: 12px; font-weight: 700; }
.ad .search .url { font-size: 12px; color: #4d5156; margin: 2px 0 6px; }
.ad .search .hl { font-size: 18px; line-height: 1.3; color: #1a0dab; }
.ad .search .ds { font-size: 13px; line-height: 1.5; color: #4d5156; margin-top: 4px; }
.ad .post { background: #fff; color: #0a0a0a; }
.ad .post .ph { display: flex; align-items: center; gap: 8px; padding: 10px 12px; font-size: 13px; font-weight: 600; }
.ad .post .ph i { width: 26px; height: 26px; border-radius: 50%; background: var(--brand, #0a0a0a); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.ad .post .ph small { display: block; font-weight: 400; color: #6b6b6b; font-size: 11px; }
.ad .post .img { aspect-ratio: 4 / 3; background: var(--brand, #0a0a0a); color: #fff; display: grid; align-content: end; padding: 18px; gap: 6px; }
.ad .post .img b { font: 700 22px/1.08 var(--display); font-stretch: 106%; letter-spacing: -.02em; }
.ads { align-items: start; }
.ad .post .img span { font-size: 13px; opacity: .85; }
.ad .post .cta { display: flex; justify-content: space-between; align-items: center; padding: 11px 12px; font-size: 13px; font-weight: 600; border-top: 1px solid #ececea; }
.ad .post .cta em { font-style: normal; font-weight: 400; color: #6b6b6b; }

/* What the agent may and may not do. */
.authority { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.authority > div { border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; background: var(--raised); }
.authority h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.authority ul { margin: 0; padding-left: 18px; display: grid; gap: 7px; color: var(--ink-2); font-size: 14px; line-height: 1.45; }
.authority .limit { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; }
.launch-btn { background: var(--orange) !important; border-color: var(--orange) !important; color: #fff !important; }

.progress-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; max-width: 620px; }
.progress-list li { display: flex; align-items: center; gap: 12px; color: var(--muted); }
.progress-list li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--field); flex: none; }
.progress-list li.doing { color: var(--ink); }
.progress-list li.doing::before { border-color: var(--orange); border-top-color: transparent; animation: spin .8s linear infinite; }
.progress-list li.ok { color: var(--ink); }
.progress-list li.ok::before { background: var(--ink); border-color: var(--ink); }
.progress-list li.bad { color: var(--bad); }
.progress-list li.bad::before { background: var(--bad); border-color: var(--bad); }
@keyframes spin { to { transform: rotate(360deg); } }

/* Connections. */
.link-btn { border: 0; background: none; padding: 0; color: var(--ink); font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.channel .how.on, .chan .how.on { color: var(--good); }
.conn-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.conn { border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; background: var(--raised); display: grid; gap: 12px; align-content: start; }
.conn-top { display: grid; grid-template-columns: 26px 1fr auto; gap: 12px; align-items: center; }
.conn-top .btn, .conn-acct .btn { border-radius: var(--r-sm); }
.conn-acct { display: flex; justify-content: space-between; gap: 12px; align-items: center; border-top: 1px solid var(--line); padding-top: 12px; }
.grants { grid-column: 1 / -1; display: grid; gap: 10px; margin-top: 12px; }
.grant { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; background: var(--raised); cursor: pointer; }
.grant input { margin-top: 3px; accent-color: var(--ink); width: 16px; height: 16px; }
.grant b { display: block; font-weight: 650; }
.grant small { display: block; color: var(--muted); font-size: 13px; line-height: 1.45; margin-top: 3px; }
.chan.wide { grid-column: span 2; }
.ad-list { display: grid; gap: 2px; border-top: 1px solid var(--line); padding-top: 8px; }
.ad-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 8px 0; }
.ad-row + .ad-row { border-top: 1px solid var(--line); }
.ad-main b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-row .btn { border-radius: 6px; }

/* ---- Command centre ----------------------------------------------------------------------- */
.cc-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; padding-bottom: 22px; border-bottom: 1px solid var(--line); margin-bottom: 30px; }
.cc-head .k { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 13px; margin-bottom: 10px; flex-wrap: wrap; }
.cc-head h1 { font: 700 clamp(30px, 3.4vw, 44px)/1.04 var(--display); font-stretch: 112%; letter-spacing: -.03em; margin: 0; }
.cc-head p { margin: 8px 0 0; color: var(--muted); max-width: 70ch; }
.cc-head .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cc-head .actions .btn, .cc-head select { border-radius: var(--r-sm); }
.more-menu { position: relative; }
.more-menu summary { list-style: none; border-radius: var(--r-sm); }
.more-menu summary::-webkit-details-marker { display: none; }
.more-menu .menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 10; min-width: 230px; display: grid; gap: 2px; padding: 6px; background: var(--raised); border: 1px solid var(--line); border-radius: var(--r-sm); box-shadow: var(--shadow); }
.more-menu .menu .btn { justify-content: flex-start; border-radius: 6px; }
.more-menu .menu label { display: grid; gap: 4px; padding: 8px 6px 4px; font-size: 12px; color: var(--muted); }
.more-menu .menu select { border: 1px solid var(--line); border-radius: 6px; background: var(--paper); padding: 6px; }
.cc-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.cc-metric { border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; background: var(--raised); }
.cc-metric .label { color: var(--muted); font-size: 13px; font-weight: 500; }
.cc-metric .value { font: 700 44px/1 var(--display); font-stretch: 110%; letter-spacing: -.03em; margin-top: 14px; font-variant-numeric: tabular-nums; }
.cc-metric .note { color: var(--muted); font-size: 12px; margin-top: 8px; line-height: 1.4; }
.cc-metric.lead { border-color: var(--ink); }
.cc-section { margin-top: 56px; }
.cc-section > header { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 16px; }
.cc-section > header h2 { margin: 0; font-size: 22px; }
.cc-section > header p { margin: 0; color: var(--muted); font-size: 13px; max-width: 60ch; }
.cc-budget { border: 1px solid var(--line); border-radius: var(--r); padding: 24px; background: var(--raised); display: grid; gap: 22px; }
.cc-budget .nums { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.cc-budget .nums div span { display: block; color: var(--muted); font-size: 13px; }
.cc-budget .nums div b { font: 700 28px/1.1 var(--display); font-stretch: 108%; font-variant-numeric: tabular-nums; }
.spendbar { height: 12px; border-radius: 999px; background: var(--wash); overflow: hidden; display: flex; }
.spendbar i { display: block; height: 100%; background: var(--ink); }
.spendbar i.pending { background: repeating-linear-gradient(135deg, var(--faint) 0 4px, transparent 4px 8px); }
.chan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.chan { border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; background: var(--raised); display: grid; gap: 14px; }
.chan .top { display: flex; align-items: center; gap: 12px; }
.chan .top b { font-size: 15px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chan { align-content: start; }
.chan .top .pill { margin-left: auto; }
.chan dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin: 0; }
.chan dt { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chan dd { margin: 0; font: 700 20px/1.1 var(--display); font-variant-numeric: tabular-nums; }
.chan .btn { justify-self: start; border-radius: var(--r-sm); }
.timeline { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); margin-left: 6px; }
.timeline li { position: relative; padding: 0 0 22px 24px; }
.timeline li::before { content: ""; position: absolute; left: -5px; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--ink); }
.timeline li.agent::before { border-color: var(--orange); background: var(--orange); }
.timeline li.bad::before { border-color: var(--bad); }
.timeline .what { font-weight: 600; }
.timeline .meta { color: var(--muted); font-size: 12px; margin-top: 2px; }
.seg-detail { margin-top: 16px; border: 1px solid var(--line); border-radius: var(--r); padding: 22px 24px; background: var(--raised); display: grid; gap: 16px; animation: flow-in .35s var(--ease) both; }

@media (max-width: 900px) {
  .choices.three, .counts, .authority { grid-template-columns: 1fr; }
  .alloc .row { grid-template-columns: 24px 1fr 80px; }
  .alloc .track { grid-column: 2 / -1; grid-row: 2; }
  .profile dl { grid-template-columns: 1fr; }
  .branches { display: none; }
  .chan.wide { grid-column: auto; }
  .ad-row { grid-template-columns: 1fr; }
  .plan-link { height: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .flow-body, .seg-detail { animation: none; }
  .choice, .segment { transition: none; }
}
