/* Lone Dialer. Same system as the Lone AI site: near black, one hairline, huge type and tiny mono labels,
   silver for the thing you press. One signal color, used only for "live" and for wins. No cards. */
:root {
  --base: #060607;
  --raised: #0c0c0e;
  --graphite: #16161a;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .16);
  --text: #f2f3f5;
  --text-2: #a3a6ad;
  --text-3: #7f838a;
  --live: #45d6c4;
  --live-ink: #04211d;
  --warn: #e8b35a;
  --bad: #f0616d;
  --bad-ink: #2a070b;
  --sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --m: clamp(20px, 2.6vw, 44px);      /* the one margin: page edge and inside every pane */
  --vw: min(1vw, 19.2px);             /* type follows the screen, and stops growing past 1920 */
  --top: 64px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--base); }
body { margin: 0; min-height: 100dvh; background: var(--base); color: var(--text); font: 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
/* a little light from above and a breath of grain, so the black is a room and not a void */
body::before { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(70% 46% at 50% -6%, rgba(146, 160, 186, .1), transparent 72%); }
body::after { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.login, .app { position: relative; z-index: 1; }
::selection { background: #3a3c42; color: #fff; }
h1, h2, p, ol, ul, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: var(--text); }

/* ---------- type: huge, or tiny ---------- */
h1 { font-size: clamp(40px, calc(5.2 * var(--vw)), 100px); line-height: .94; font-weight: 500; letter-spacing: -.05em; text-wrap: balance; overflow-wrap: anywhere; }
.label { font: 400 11px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.label.split { display: flex; justify-content: space-between; gap: 12px; }
.lede { color: var(--text-2); font-size: clamp(16px, calc(1.1 * var(--vw)), 20px); line-height: 1.45; max-width: 46ch; margin-top: 18px; text-wrap: pretty; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.blank { color: var(--text-3); }
.brand { font: 500 12px var(--mono); letter-spacing: .26em; white-space: nowrap; }
.brandrow { display: flex; align-items: center; gap: 12px; }
.mark { display: block; }
kbd { font: 400 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; opacity: .5; margin-left: 14px; }

/* text rises from behind a clean edge when a screen arrives */
.ln { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
@supports (overflow: clip) { .ln { overflow-x: visible; overflow-y: clip; } }
.ln > span { display: block; animation: lift .8s var(--ease) both; }
@keyframes lift { from { transform: translateY(108%); } }
.screen:not([hidden]) > :not(.ln), .team:not([hidden]) { animation: settle .7s var(--ease) both; }
@keyframes settle { from { opacity: 0; transform: translateY(10px); } }

/* ---------- things you press ---------- */
.btn { appearance: none; border: 1px solid var(--line-2); background: transparent; color: var(--text); font: 500 15px var(--sans); padding: 12px 20px; border-radius: 999px; cursor: pointer; transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .15s var(--ease); }
.btn:hover:not(:disabled) { background: var(--text); color: #000; border-color: var(--text); }
.btn:active:not(:disabled) { transform: scale(.985); }
.btn:disabled { opacity: .35; cursor: not-allowed; }
.btn.primary { background: var(--text); border-color: var(--text); color: #000; font-weight: 600; }
.btn.primary:hover:not(:disabled) { background: #fff; border-color: #fff; }
.btn.danger { background: var(--bad); border-color: var(--bad); color: var(--bad-ink); font-weight: 600; }
.btn.danger:hover:not(:disabled) { background: #ff7783; border-color: #ff7783; color: var(--bad-ink); }
.btn.giant { display: flex; align-items: center; justify-content: center; width: 100%; min-height: clamp(68px, 9vh, 92px); font-size: clamp(20px, calc(1.5 * var(--vw)), 27px); letter-spacing: -.02em; margin-top: clamp(28px, 5vh, 52px); }
.btn.wide { width: 100%; min-height: 58px; font-size: 18px; margin-top: 28px; }
.btn.on { border-color: var(--warn); color: var(--warn); }
.link { appearance: none; background: linear-gradient(var(--text), var(--text)) 0 100% / 0 1px no-repeat; border: 0; padding: 6px 0; color: var(--text-2); font: 400 13.5px var(--sans); letter-spacing: .005em; cursor: pointer; transition: color .3s ease, background-size .6s var(--ease); }
.link:hover { color: var(--text); background-size: 100% 1px; }
:focus-visible { outline: 1px solid var(--text); outline-offset: 4px; border-radius: 3px; }

label { display: grid; gap: 10px; font: 400 11px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); margin-top: 26px; }
select, input[type="password"], input[type="date"], textarea { width: 100%; background: transparent; color: var(--text); border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0; padding: 12px 0; font: 400 19px var(--sans); letter-spacing: -.01em; text-transform: none; transition: border-color .3s ease; }
select:hover, input:hover, textarea:hover, select:focus, input:focus, textarea:focus { border-bottom-color: var(--text); outline: none; }
select { appearance: none; cursor: pointer; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23a3a6ad' stroke-width='1.4'/%3E%3C/svg%3E") right 2px center no-repeat; padding-right: 26px; }
select option { background: var(--raised); color: var(--text); }
textarea { resize: vertical; line-height: 1.4; }
label.check { display: flex; align-items: center; gap: 12px; color: var(--text-2); font: 400 15px var(--sans); letter-spacing: 0; text-transform: none; }
label.check input { width: 17px; height: 17px; accent-color: var(--text); }
.msg { color: var(--text-2); font-size: 15px; margin-top: 16px; min-height: 22px; }
.err { color: var(--bad); font-size: 15px; margin-top: 14px; min-height: 22px; }

/* ---------- sign in ---------- */
.login { min-height: 100dvh; padding: 0 var(--m) var(--m); display: flex; }
.login-card { flex: 1; display: flex; flex-direction: column; }
.login-card .brandrow { height: var(--top); }
.login-card h1 { margin-top: auto; font-size: clamp(54px, calc(8.6 * var(--vw)), 164px); letter-spacing: -.055em; line-height: .88; animation: settle .9s var(--ease) both; }
.login-card label, .login-card .btn, .login-card .err { width: min(520px, 100%); }
.login-card label:first-of-type { margin-top: clamp(24px, 5vh, 56px); }

/* ---------- the frame: top line, then three panes edge to edge ---------- */
.app { min-height: 100dvh; display: grid; grid-template-rows: var(--top) minmax(0, 1fr); }
.top { display: flex; align-items: center; gap: 22px; padding: 0 var(--m); border-bottom: 1px solid var(--line); }
.top-right { margin-left: auto; display: flex; gap: clamp(16px, 2.2vw, 34px); }
.flag { font: 400 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--warn); white-space: nowrap; }
.flag::before { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: currentColor; margin-right: 8px; vertical-align: 2px; }
.flag.rec { color: var(--bad); }

.layout { display: grid; grid-template-columns: minmax(250px, 23fr) minmax(0, 54fr) minmax(270px, 23fr); min-height: calc(100dvh - var(--top)); }
.rail, .stage { padding: clamp(22px, 4.4vh, 44px) var(--m) clamp(22px, 4vh, 40px); min-width: 0; }
.rail { position: sticky; top: 0; height: calc(100dvh - var(--top)); display: flex; flex-direction: column; justify-content: space-between; gap: 28px; overflow: auto; }
.rail.left { border-right: 1px solid var(--line); }
.rail.right { border-left: 1px solid var(--line); }
.stage { display: flex; flex-direction: column; container-type: inline-size; }

/* left: something to think about */
.quote { margin: auto 0; padding: 24px 0; }
.quote blockquote { font-size: clamp(24px, calc(2.15 * var(--vw)), 42px); line-height: 1.06; font-weight: 500; letter-spacing: -.04em; text-wrap: balance; }
.quote figcaption { margin-top: clamp(16px, 2.4vh, 26px); }
.fact { padding-top: 20px; border-top: 1px solid var(--line); }
.fact p { margin-top: 12px; font-size: 15px; line-height: 1.5; color: var(--text-2); text-wrap: pretty; }

/* right: your numbers */
.goal { margin-top: clamp(10px, 2vh, 22px); }
.goal-top { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.big { position: relative; display: inline-block; overflow: hidden; font: 500 clamp(72px, calc(7.2 * var(--vw)), 140px)/.86 var(--sans); letter-spacing: -.065em; font-variant-numeric: tabular-nums; padding: 0 .06em .04em 0; margin-left: -.03em; }
.big .cur { display: inline-block; }
.big .in { animation: rollin .5s var(--ease); }
.big .old { position: absolute; left: 0; top: 0; animation: rollout .5s var(--ease) forwards; }
@keyframes rollin { from { transform: translateY(80%); opacity: 0; } }
@keyframes rollout { to { transform: translateY(-80%); opacity: 0; } }
.goal-of { font: 400 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); white-space: nowrap; padding-bottom: .9em; }
.goal-of input { width: 3.6em; padding: 0 0 2px; background: transparent; border: 0; border-bottom: 1px dashed var(--line-2); border-radius: 0; color: var(--text); font: 500 12px var(--mono); text-align: center; -moz-appearance: textfield; }
.goal-of input::-webkit-outer-spin-button, .goal-of input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.bar { height: 1px; background: var(--line-2); margin-top: clamp(14px, 2.4vh, 24px); }
.bar i { display: block; height: 3px; margin-top: -1px; width: 0; background: var(--text); transition: width .9s var(--ease), background .4s ease; }
.bar[data-done="true"] i { background: var(--live); }
.rank { margin-top: 16px; font-size: 15px; color: var(--text); text-wrap: pretty; }
.nums { display: grid; grid-template-columns: 1fr auto; margin-top: clamp(16px, 3vh, 30px); }
.nums dt, .nums dd { padding: clamp(9px, 1.5vh, 15px) 0; border-top: 1px solid var(--line); }
.nums dt { font: 400 11px/1.9 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.nums dd { font: 500 17px var(--mono); font-variant-numeric: tabular-nums; text-align: right; transform-origin: right center; }
.bump { animation: bump .9s var(--ease); }
@keyframes bump { 0% { color: var(--live); transform: scale(1.22); } 100% { transform: scale(1); } }
.recap-link { align-self: flex-start; }
/* the notepad takes whatever height is left between the numbers and the bottom link */
.pad { flex: 1; display: flex; flex-direction: column; gap: 10px; min-height: 150px; }
.pad label { margin: 0; }
.pad textarea { flex: 1; min-height: 110px; resize: none; background: transparent; border: 0; border-top: 1px solid var(--line-2); border-radius: 0; padding: 14px 0; font: 400 15px/1.45 var(--sans); letter-spacing: 0; text-transform: none; transition: border-color .3s ease; }
.pad textarea:hover { border-top-color: var(--text-3); }
.pad textarea:focus { border-top-color: var(--text); outline: none; }

/* ---------- middle: one step at a time ---------- */
.steps { display: flex; flex-wrap: wrap; gap: 8px clamp(18px, 2.4vw, 40px); counter-reset: step; font: 400 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.steps li { counter-increment: step; transition: color .4s ease; }
.steps li::before { content: "0" counter(step); margin-right: 10px; }
.steps li[data-state="now"] { color: var(--text); }
.steps li[data-state="done"] { text-decoration: line-through; text-decoration-color: var(--text-3); }
.listbar { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; font: 400 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.listbar-name { color: var(--text-2); }
.listbar-actions { margin-left: auto; display: flex; gap: 26px; }
.listbar .link { font: inherit; letter-spacing: inherit; text-transform: inherit; color: var(--text-3); padding: 0 0 3px; }
.listbar .link:hover { color: var(--text); }
.errbar { border-left: 1px solid var(--bad); color: #ffd3d7; padding: 4px 0 4px 16px; font-size: 15px; margin-top: 22px; }

.screen { flex: 1; display: flex; flex-direction: column; padding-top: clamp(28px, 9vh, 110px); }
.screen > * { flex: none; }
/* the one big button always sits at the bottom of the middle pane, so the hand always knows where to go */
.screen > .giant { margin-top: auto; }
#scrReady h1, .lead h1 { font-size: clamp(46px, calc(6.6 * var(--vw)), 128px); letter-spacing: -.055em; line-height: .9; }
.over { margin-bottom: clamp(12px, 2vh, 22px); }
.pickers { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(20px, 3vw, 48px); margin-top: clamp(8px, 3vh, 36px); }
.leftout { margin-top: 16px; color: var(--text-2); font-size: 15px; }
.leftout li { padding: 3px 0; }
#keepList { align-self: flex-start; }

.modes { margin-top: 18px; }
.seg { display: flex; gap: 22px; }
.seg button { appearance: none; background: transparent; color: var(--text-3); border: 0; border-bottom: 1px solid transparent; padding: 6px 0; font: 400 13.5px var(--sans); cursor: pointer; transition: color .3s var(--ease), border-color .3s var(--ease); }
.seg button:hover { color: var(--text); }
.seg button[aria-checked="true"] { color: var(--text); border-bottom-color: var(--text); }
.lines-pick { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; font: 400 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.lines-pick .seg { gap: 18px; }

/* calling, and on the call */
#scrCall { padding-top: clamp(22px, 5vh, 56px); }
.callhead { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: clamp(14px, 2.6vh, 28px); min-height: 28px; }
.status { display: flex; align-items: center; gap: 12px; font: 400 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--live); }
.status .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status[data-tone="ring"] { color: var(--text-2); }
.status[data-tone="ring"] .dot { animation: pulse 1.2s ease-in-out infinite; }
.status[data-tone="warn"] { color: var(--warn); }
.status[data-tone="off"] { color: var(--text-3); }
@keyframes pulse { 50% { transform: scale(2.1); opacity: .25; } }
.timer { font: 400 clamp(20px, calc(1.5 * var(--vw)), 28px) var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }

/* several at once: every lead that is ringing, one ruled row each, big enough to read at a glance */
.lines { display: grid; border-top: 1px solid var(--line); }
.lines:empty { display: none; }
.ring { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: clamp(14px, 3vh, 34px) 0; border-bottom: 1px solid var(--line); min-width: 0; transition: opacity .3s ease; }
.ring-who { display: grid; gap: clamp(6px, 1vh, 12px); min-width: 0; }
.ring b { font: 500 clamp(30px, calc(3.5 * var(--vw)), 66px)/1 var(--sans); letter-spacing: -.045em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ring-who span { color: var(--text-2); font-size: clamp(15px, calc(1.05 * var(--vw)), 19px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ring-st { flex: none; font: 400 11px var(--mono); font-style: normal; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.ring-st::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: currentColor; margin-right: 10px; vertical-align: 1px; }
.ring:is([data-status="ringing"], [data-status="queued"]) .ring-st { color: var(--text); }
.ring:is([data-status="ringing"], [data-status="queued"]) .ring-st::before { animation: pulse 1.2s ease-in-out infinite; }
.ring[data-status="answered"] .ring-st { color: var(--live); }
.ring[data-status="dropping"] { opacity: .3; }
/* a row marked picked up stays bright, the others dim */
.lines:has(.ring[data-status="answered"]) .ring:not([data-status="answered"]) { opacity: .4; }
#nextSet { margin-top: clamp(12px, 2vh, 22px); }
#nextSet .ring { padding: clamp(8px, 1.5vh, 18px) 0; }
#nextSet .ring b { font-size: clamp(24px, calc(2.6 * var(--vw)), 50px); }
#scrReady:has(#nextSet:not([hidden])) { padding-top: clamp(20px, 5vh, 60px); }

.lead-co { font-size: clamp(20px, calc(1.7 * var(--vw)), 30px); color: var(--text-2); margin-top: 12px; letter-spacing: -.03em; line-height: 1.1; }
.lead-meta { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 18px; font: 400 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.lead-meta span:empty { display: none; }
.niche { color: var(--text); }
.niche::before { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--live); margin-right: 8px; vertical-align: 2px; }
.lead-body { margin-top: clamp(20px, 4vh, 40px); border-top: 1px solid var(--line); }
.block { padding: clamp(14px, 2.4vh, 22px) 0; border-bottom: 1px solid var(--line); }
.block .label { margin-bottom: 10px; display: block; }
.block p { font-size: 17px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
details.block summary { cursor: pointer; margin-bottom: 0; }
details.block[open] summary { margin-bottom: 10px; }
details.block p { color: var(--text-2); font-size: 15px; max-height: 220px; overflow: auto; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 7px 26px; font-size: 17px; }
.facts dt { color: var(--text-3); }
.facts dd { overflow-wrap: anywhere; }
.notes { display: grid; gap: 10px; max-height: 240px; overflow: auto; }
.notes li { font-size: 17px; line-height: 1.4; overflow-wrap: anywhere; }
.notes time { font: 400 11px var(--mono); letter-spacing: .08em; color: var(--text-3); margin-right: 12px; }
/* with room to spare, what they do sits beside the notes, so nothing scrolls mid call */
@container (min-width: 760px) {
  .lead-body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: clamp(28px, 4cqw, 64px); }
  .lead-body > #cardTouchWrap, .lead-body > #cardBlank, .lead-body > #cardHistoryWrap { grid-column: 1 / -1; }
}
.out { display: inline-block; margin-top: 20px; font: 400 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); text-decoration: none; padding-bottom: 3px; background: linear-gradient(var(--text), var(--text)) 0 100% / 0 1px no-repeat; transition: color .3s ease, background-size .6s var(--ease); }
.out::after { content: " \2197"; }
.out:hover { color: var(--text); background-size: 100% 1px; }

/* Hang up and Stop stay on screen however long the notes are */
.dock { position: sticky; bottom: 0; margin-top: auto; padding: 40px 0 clamp(8px, 2vh, 20px); background: linear-gradient(to bottom, rgba(6, 6, 7, 0), var(--base) 36px); }
.dock:not(:has(.call-btns:not([hidden]), .call-foot > :not([hidden]))) { display: none; }
.call-btns .giant { margin-top: 0; }
.call-more { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; margin-top: 14px; border-bottom: 1px solid var(--line); }
.call-more .btn { border: 0; border-radius: 0; border-left: 1px solid var(--line); padding: 15px 10px; font-size: 14.5px; font-weight: 400; color: var(--text-2); }
.call-more .btn:first-child, .call-more .btn[hidden] + .btn { border-left: 0; }
.call-more .btn:hover:not(:disabled) { background: transparent; color: var(--text); }
.call-more .btn.on { color: var(--text); }
.call-more .btn#mute.on { color: var(--warn); }
.call-more .btn:focus-visible, .keys .btn:focus-visible { outline-offset: -1px; border-radius: 0; }
.call-btns { position: relative; }
/* the keypad opens upward from its button, into the open space above Hang up */
.keypad { position: absolute; right: 0; bottom: calc(100% + 14px); width: clamp(252px, 33.34%, 360px); background: var(--base); border-top: 1px solid var(--line-2); border-left: 1px solid var(--line-2); animation: settle .35s var(--ease) both; z-index: 2; }
.keys-sent { min-height: 58px; display: flex; align-items: center; justify-content: flex-end; padding: 0 18px; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); font-size: 24px; font-weight: 500; letter-spacing: .08em; color: var(--text); overflow: hidden; white-space: nowrap; }
.keys-sent.empty { justify-content: flex-start; font: 400 14.5px var(--sans); letter-spacing: 0; color: var(--text-3); }
.keys { display: grid; grid-template-columns: repeat(3, 1fr); }
.keys .btn { height: clamp(48px, 7vh, 62px); padding: 0; border: 0; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); border-radius: 0; font: 400 21px var(--mono); color: var(--text-2); transition: color .2s ease; }
.keys .btn:active:not(:disabled) { transform: none; }
.keys .btn.hit { animation: keyhit .28s ease-out; }
@keyframes keyhit { 0% { background: var(--text); color: #000; } 100% { background: transparent; } }
.keys .btn:hover:not(:disabled) { background: transparent; color: var(--text); }
.call-foot { display: flex; align-items: center; gap: 24px; }
.call-btns:not([hidden]) + .call-foot { margin-top: 16px; }
.call-foot:not(:has(> :not([hidden]))) { display: none; }
.btn.stop { flex: 1; min-height: 64px; font-size: 18px; }

/* ---------- after the call ---------- */
dialog { color: var(--text); }
dialog::backdrop { background: rgba(0, 0, 0, .66); }
.sheet { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0; overflow: auto; background: var(--base); border: 0; border-radius: 0; }
.sheet::backdrop { background: var(--base); -webkit-backdrop-filter: none; backdrop-filter: none; }
.sheet-grid { display: grid; grid-template-columns: minmax(0, 38fr) minmax(0, 62fr); min-height: 100dvh; }
.sheet-side { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; padding: clamp(24px, 5vh, 64px) var(--m) clamp(20px, 3vh, 40px); border-right: 1px solid var(--line); }
.sheet-main { padding: clamp(24px, 5vh, 64px) var(--m) clamp(20px, 3vh, 40px); max-width: 980px; }
.sheet-main label { margin-top: clamp(18px, 3vh, 30px); }
.sheet .who { margin-top: clamp(22px, 4vh, 44px); display: grid; gap: 4px; font-size: clamp(19px, calc(1.5 * var(--vw)), 26px); line-height: 1.2; letter-spacing: -.02em; }
.sheet .who span:empty { display: none; }
.sheet .who span + span { color: var(--text-3); font-size: .78em; letter-spacing: -.01em; }
.sheet .talked { margin-top: auto; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sheet .talked .mono { font-size: 17px; font-weight: 500; }
#recapLine { font-size: 15px; color: var(--text-2); }
.sheet:focus { outline: none; }
.sheet[open] { animation: settle .5s var(--ease); }

.sheet h2 { font-size: clamp(44px, calc(5.6 * var(--vw)), 108px); line-height: .9; font-weight: 500; letter-spacing: -.055em; text-wrap: balance; }
.sheet .out { margin-top: 18px; align-self: flex-start; white-space: nowrap; }
.sheet .giant { margin-top: clamp(18px, 3.2vh, 36px); min-height: clamp(58px, 8vh, 68px); font-size: 20px; }
.sheet .giant:disabled { opacity: 1; background: transparent; border-color: var(--line-2); color: var(--text-3); font-weight: 400; }
.sheet .giant:disabled kbd { display: none; }
.sheet textarea { resize: none; }
.sheet .fields { display: flex; align-items: flex-end; gap: clamp(20px, 3vw, 48px); }
.sheet .fields label:first-child { flex: 1; }
.sheet .fields label[hidden] { display: none; }
.sheet .err:empty { display: none; }
.outcomes, .stages { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(20px, 3vw, 48px); border-top: 1px solid var(--line); margin-top: 12px; }
.outcomes button, .stages button { appearance: none; display: flex; align-items: center; gap: 16px; text-align: left; background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; color: var(--text-2); padding: clamp(9px, 1.55vh, 17px) 0; font: 400 clamp(16px, calc(1.2 * var(--vw)), 19px) var(--sans); letter-spacing: -.01em; cursor: pointer; transition: color .25s ease, border-color .25s ease; }
.outcomes button::after, .stages button::after { content: ""; flex: none; margin-left: auto; width: 8px; height: 8px; border-radius: 50%; background: var(--text); opacity: 0; transition: opacity .25s ease; }
.outcomes[data-picked] button, .stages button { color: var(--text-3); }
.outcomes button kbd { margin: 0; opacity: 1; color: var(--text-3); width: 14px; }
.outcomes button:hover, .stages button:hover { color: var(--text); }
.outcomes button[aria-pressed="true"], .stages button[aria-checked="true"] { color: var(--text); font-weight: 500; border-bottom-color: var(--text); }
.outcomes button[aria-pressed="true"]::after, .stages button[aria-checked="true"]::after { opacity: 1; }
.outcomes button[aria-pressed="true"] kbd { color: var(--text); }
/* where the lead's card goes: the pipeline's own stages */
.stagewrap { margin-top: clamp(16px, 3vh, 36px); }
.stages { grid-template-columns: repeat(3, 1fr); }
.stages button { font-size: 14.5px; padding: clamp(7px, 1.25vh, 13px) 0; gap: 10px; }
.stages button[data-now="true"] span::after { content: "now"; font: 400 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); margin-left: 10px; }
.save-stop { display: block; margin: 12px auto 0; }
.save-stop:disabled { opacity: .35; cursor: not-allowed; }

/* side panels: today's calls, wins */
.drawer { margin: 0 0 0 auto; width: min(440px, 100vw); height: 100dvh; max-height: 100dvh; background: var(--raised); border: 0; border-left: 1px solid var(--line-2); padding: clamp(22px, 3vw, 36px); overflow: auto; }
.drawer[open] { animation: slide .5s var(--ease); }
@keyframes slide { from { transform: translateX(28px); opacity: 0; } }
.drawer-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.drawer h2 { font-size: 36px; line-height: 1; font-weight: 500; letter-spacing: -.05em; }
.recent, .wins { margin-top: 26px; border-top: 1px solid var(--line); }
.recent li, .wins li { display: grid; grid-template-columns: 1fr auto; gap: 3px 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.recent li b, .wins li b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent li span, .wins li span { font: 400 11px/2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.wins li span { color: var(--live); }
.recent li em, .wins li em { font-style: normal; color: var(--text-2); font-size: 14px; grid-column: 1 / -1; }
#recentNone, #winsNone { margin-top: 22px; }
.drawer .check { margin-top: 30px; }
.drawer .check + .check { margin-top: 14px; }

/* end of day */
.recap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 clamp(20px, 3vw, 48px); border-top: 1px solid var(--line); }
.recap div { padding: clamp(12px, 2.6vh, 30px) 0 clamp(10px, 2vh, 22px); border-bottom: 1px solid var(--line); }
.recap dd { font: 500 clamp(30px, calc(3.6 * var(--vw)), 64px)/1 var(--sans); font-variant-numeric: tabular-nums; letter-spacing: -.05em; }
.recap dt { font: 400 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); margin-top: 8px; }
.eod { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(20px, 3vw, 48px); }
.eod label { margin-top: clamp(18px, 3vh, 30px); }

/* ---------- team ---------- */
.team { padding: clamp(28px, 7vh, 84px) var(--m) 96px; min-height: calc(100dvh - var(--top)); }
.team-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(24px, 5vh, 56px); }
.team-head h1 { font-size: clamp(54px, calc(8 * var(--vw)), 150px); letter-spacing: -.055em; line-height: .86; }
.team-head .seg { width: 280px; }
.tablewrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: clamp(16px, 2.6vh, 26px) 18px clamp(16px, 2.6vh, 26px) 0; border-top: 1px solid var(--line); white-space: nowrap; font-weight: 400; }
thead th { border-top: 0; padding-bottom: 14px; font: 400 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
tbody th { font-size: clamp(22px, calc(2 * var(--vw)), 36px); font-weight: 500; letter-spacing: -.04em; }
td.num, th.num { text-align: right; padding-right: 0; padding-left: 18px; }
td.num { font: 400 clamp(16px, calc(1.3 * var(--vw)), 22px) var(--mono); font-variant-numeric: tabular-nums; color: var(--text-2); }
td.best { color: var(--live); }
td.now { font-size: 15px; color: var(--text-3); }
td.now .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); margin-right: 12px; vertical-align: 1px; }
td.now[data-state="ready"], td.now[data-state="dialing"] { color: var(--text); }
td.now[data-state="ready"] .dot { background: var(--text); }
td.now[data-state="dialing"] .dot { background: var(--text); animation: pulse 1.2s ease-in-out infinite; }
td.now[data-state="connected"] { color: var(--live); }
td.now[data-state="connected"] .dot { background: var(--live); }
td.now .since { margin-left: 12px; color: var(--text-3); }
tfoot th, tfoot td { border-top: 1px solid var(--line-2); }
tfoot th { font: 400 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
tfoot td.num { color: var(--text); }

/* ---------- moments ---------- */
.toast { position: fixed; left: 0; right: 0; top: 0; height: var(--top); display: flex; align-items: center; justify-content: center; padding: 0 var(--m); background: var(--base); color: var(--text); border-bottom: 1px solid var(--line-2); font-weight: 500; font-size: 15px; letter-spacing: -.01em; z-index: 2147483647; animation: drop .6s var(--ease); }
.toast[data-kind="win"] { background: var(--live); border-bottom-color: var(--live); color: var(--live-ink); font-weight: 600; font-size: 17px; }
@keyframes drop { from { opacity: 0; transform: translateY(-100%); } }
.flash { position: fixed; inset: 0; pointer-events: none; z-index: 4; background: radial-gradient(120% 90% at 50% 0%, rgba(69, 214, 196, .3), rgba(69, 214, 196, 0) 70%); opacity: 0; }
.flash.go { animation: wash 1.4s var(--ease); }
@keyframes wash { 0% { opacity: 0; } 16% { opacity: 1; } 100% { opacity: 0; } }

/* ---------- smaller screens: the call first, then your numbers, then the quote ---------- */
@media (max-width: 1080px) {
  .sheet-grid { grid-template-columns: 1fr; }
  .sheet-side { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 22px; }
  .sheet .talked { margin-top: 22px; }
  .sheet-main { padding-top: 26px; }
  .layout { grid-template-columns: minmax(0, 1fr); }
  .rail { position: static; height: auto; overflow: visible; border: 0 !important; border-top: 1px solid var(--line) !important; }
  .rail.left { order: 3; }
  .rail.right { order: 2; }
  .quote { margin: 8px 0 0; }
  .stage { min-height: 0; }
  .screen > .giant { margin-top: clamp(28px, 5vh, 52px); }
}
@media (max-width: 600px) {
  .top { flex-wrap: wrap; height: auto; padding-top: 14px; padding-bottom: 14px; gap: 10px 16px; }
  .app { grid-template-rows: auto minmax(0, 1fr); }
  .top-right { width: 100%; margin-left: 0; gap: 20px; flex-wrap: wrap; }
  .pickers, .outcomes, .recap, .eod { grid-template-columns: 1fr; }
  .recap { grid-template-columns: 1fr 1fr; }
  .stages { grid-template-columns: 1fr 1fr; }
  .listbar-actions { margin-left: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
