/* voictip — voice-memo bubbles over a ridgeline of callers, a ranked board, receipts on thermal paper */
:root {
  --bg: #0c2fc0; --ink: #f2efe6; --acc: #ffd400;
  --panel: #0a29aa; --bub: #1c41d2; --bub2: #2a4ddc;
  --line: rgba(242, 239, 230, .15); --line2: rgba(242, 239, 230, .28);
  --dim: rgba(242, 239, 230, .78); --faint: rgba(242, 239, 230, .64);
  --paper: #f2efe6; --pink: #0c2fc0;
  --display: 'Instrument Serif', 'Times New Roman', serif;
  --body: 'Chivo Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --e: cubic-bezier(.22, 1, .36, 1);
  --r: 18px;
}
* { box-sizing: border-box; }
html { background: var(--bg); color: var(--ink); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 14px/1.45 var(--body); -webkit-font-smoothing: antialiased; min-height: 100vh; overflow-x: hidden; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
::selection { background: var(--acc); color: var(--bg); }
#bg { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
.num { font-variant-numeric: tabular-nums; }
.up { color: var(--acc); }
.dn { color: var(--dim); }

/* ---------- header ---------- */
.top { position: fixed; z-index: 20; top: 0; left: 0; right: 0; height: 68px; display: flex; align-items: center; gap: 28px; padding: 0 40px; background: linear-gradient(var(--bg) 62%, rgba(12, 47, 192, 0)); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 400 30px/1 var(--display); letter-spacing: -.01em; }
.brand svg { width: 34px; height: 34px; display: block; }
.nav { display: flex; gap: 4px; }
.nav a { text-decoration: none; font: 600 11px/1 var(--body); letter-spacing: .16em; text-transform: uppercase; padding: 9px 12px; border-radius: 99px; color: var(--dim); transition: color 140ms var(--e), background 140ms var(--e); }
.nav a:hover { color: var(--ink); background: rgba(242, 239, 230, .08); }
.tr { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.live { display: inline-flex; align-items: center; gap: 8px; font: 500 12px/1 var(--body); color: var(--dim); white-space: nowrap; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--acc); animation: ping 1.6s ease-in-out infinite; }
.live b { color: var(--ink); font-weight: 600; }
@keyframes ping { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.xl { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line2); transition: background 140ms var(--e); }
.xl:hover { background: rgba(242, 239, 230, .1); }
.xl svg { width: 15px; height: 15px; fill: var(--ink); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 46px; padding: 0 22px; border-radius: 99px; font: 700 12px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; transition: transform 140ms var(--e), background 140ms var(--e), color 140ms var(--e), box-shadow 140ms var(--e); }
.btn:active { transform: scale(.97); }
.btn.acc { background: var(--acc); color: var(--bg); }
.btn.acc:hover { transform: translateY(-1px); }
.btn.ghost { border: 1.5px solid var(--line2); background: var(--bg); }
.btn.ghost:hover { border-color: var(--ink); }
.btn.paper { background: var(--paper); color: var(--bg); }
.btn.sm { height: 34px; padding: 0 14px; font-size: 11px; }
.btn[disabled] { opacity: .38; pointer-events: none; }
.btn .dot { width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.btn .tri { width: 0; height: 0; border-left: 9px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
#connect.on { border-color: var(--acc); color: var(--acc); }

/* ---------- app grid ---------- */
.app { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto minmax(0, 1fr); gap: 22px 24px; padding: 86px 40px 26px; height: 100vh; min-height: 720px; }
.hero { grid-column: 1 / span 7; align-self: center; display: flex; flex-direction: column; gap: 26px; padding: 6px 0 4px; }
h1 { margin: 0; font: 400 min(6.3vw, 13.4vh, 98px)/.98 var(--display); letter-spacing: -.012em; }
h1 span, h1 em { display: block; white-space: nowrap; }
h1 em { color: var(--acc); }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.np { grid-column: 8 / span 5; align-self: stretch; }
.feed { grid-column: 1 / span 6; }
.board { grid-column: 7 / span 6; }

/* ---------- panels ---------- */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 22px; display: flex; flex-direction: column; min-height: 0; overflow: hidden; transition: box-shadow 320ms var(--e); }
.panel.flash { box-shadow: 0 0 0 3px var(--acc); }
.ph { display: flex; align-items: center; gap: 12px; padding: 14px 16px 12px 20px; border-bottom: 1px solid var(--line); }
.ph h2 { margin: 0; font: 400 28px/1 var(--display); letter-spacing: -.005em; }
.ph h2 i { font-style: italic; color: var(--acc); }
.seg { margin-left: auto; display: inline-flex; padding: 3px; border-radius: 99px; background: rgba(0, 0, 0, .16); }
.seg button { height: 28px; padding: 0 12px; border-radius: 99px; font: 600 11px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); transition: background 140ms var(--e), color 140ms var(--e); }
.seg button.on { background: var(--ink); color: var(--bg); }
.scroll { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line2) transparent; min-height: 0; flex: 1; }

/* ---------- now playing (the receipt) ---------- */
.np { position: relative; background: var(--paper); color: var(--bg); border-radius: 22px 22px 6px 6px; padding: 18px 20px 26px; display: flex; flex-direction: column; gap: 12px;
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 9px) no-repeat, conic-gradient(from -45deg at 50% 100%, #000 90deg, #0000 0) bottom / 18px 9px repeat-x;
  mask: linear-gradient(#000 0 0) top / 100% calc(100% - 9px) no-repeat, conic-gradient(from -45deg at 50% 100%, #000 90deg, #0000 0) bottom / 18px 9px repeat-x; }
.np-h { display: flex; align-items: center; gap: 10px; font: 600 13px/1 var(--body); }
.np-h .who { font-weight: 700; }
.np-h .tag { font: 600 10px/1 var(--body); letter-spacing: .16em; text-transform: uppercase; padding: 5px 7px; border-radius: 99px; background: var(--bg); color: var(--paper); }
.np-h .tag.acc { background: var(--acc); color: var(--bg); }
.np-h .on { opacity: .75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.np .av { background: var(--bg); color: var(--paper); }
.np-h .snd { margin-left: auto; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid rgba(12, 47, 192, .25); }
.np-h .snd svg { width: 16px; height: 16px; fill: none; stroke: var(--bg); stroke-width: 2; stroke-linecap: round; }
.np-h .snd .w { display: none; } .np-h .snd.on .w { display: inline; } .np-h .snd.on .m { display: none; }
.np .bubble { background: var(--bg); }
.np .bubble .bars i { background: rgba(242, 239, 230, .4); }
.np .bubble .bars i.on { background: var(--acc); }
.np .bubble::after { border-top-color: var(--bg); }
.np .bubble.playing::after { border-top-color: var(--acc); }
.say { margin: 0; font: italic 400 22px/1.22 var(--display); letter-spacing: 0; min-height: 2.44em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.say s { text-decoration: none; opacity: .4; transition: opacity 220ms var(--e); }
.say s.h { opacity: 1; }
.say s.c { opacity: 1; background: var(--acc); box-shadow: 0 0 0 2px var(--acc); border-radius: 2px; }
.stamp { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding-top: 12px; border-top: 1.5px dashed rgba(12, 47, 192, .35); font: 500 12px/1.2 var(--body); }
.stamp span { white-space: nowrap; }
.stamp em { font-style: normal; opacity: .6; margin-right: 4px; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.stamp .res { margin-left: auto; font: 400 30px/1 var(--display); letter-spacing: -.01em; }
.stamp .res.up { color: var(--bg); background: var(--acc); padding: 3px 8px 1px; border-radius: 6px; }
.stamp .res.dn { color: var(--bg); opacity: .55; }
.np .acts { display: flex; gap: 8px; }
.np .acts .btn { border-color: rgba(12, 47, 192, .3); }

/* ---------- the voice-memo bubble ---------- */
.bubble { position: relative; display: flex; align-items: center; gap: 12px; height: 54px; padding: 0 16px 0 7px; border-radius: 27px; background: var(--bub); }
.bubble::after { content: ""; position: absolute; left: 20px; bottom: -9px; border-left: 11px solid transparent; border-top: 10px solid var(--bub); transition: border-color 220ms var(--e); }
.bubble.playing::after { border-top-color: var(--acc); }
.pl { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--bg); display: grid; place-items: center; transition: transform 140ms var(--e), background 140ms var(--e); }
.pl:hover { transform: scale(1.06); }
.pl svg { width: 14px; height: 14px; fill: currentColor; }
.pl .ps { display: none; } .playing .pl .ps { display: block; } .playing .pl .py { display: none; }
.playing .pl { background: var(--acc); }
.bars { flex: 1; min-width: 0; height: 34px; display: flex; align-items: center; gap: 2px; cursor: pointer; }
.bars i { flex: 1; min-width: 2px; max-width: 5px; height: calc(var(--h) * 100%); border-radius: 2px; background: rgba(242, 239, 230, .45); transition: background 140ms linear; }
.bars i.on { background: var(--acc); }
.dur { flex: none; font: 500 12px/1 var(--body); color: var(--dim); min-width: 34px; text-align: right; }
.np .dur { color: rgba(242, 239, 230, .75); }

/* ---------- feed ---------- */
.feed .list { padding: 6px 0 10px; }
.call { padding: 14px 20px 14px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; transition: background 320ms var(--e); }
.call.fresh { animation: fresh 1.6s var(--e); }
@keyframes fresh { 0% { background: rgba(255, 212, 0, .2); } 100% { background: transparent; } }
.call.mine { background: rgba(255, 212, 0, .07); }
.call-h { display: flex; align-items: center; gap: 9px; font: 500 12px/1 var(--body); color: var(--dim); min-width: 0; }
.call-h .who { color: var(--ink); font-weight: 700; font-size: 13px; text-decoration: none; }
.call-h .who:hover { text-decoration: underline; }
.call-h .tk { color: var(--ink); font-weight: 700; }
.call-h .side { font: 600 10px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; padding: 4px 6px; border-radius: 99px; border: 1px solid var(--line2); color: var(--ink); }
.call-h .side.fade { border-style: dashed; }
.call-h time { margin-left: auto; white-space: nowrap; }
.call-f { display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap; font: 500 12px/1 var(--body); color: var(--dim); }
.call-f .mv b { color: var(--ink); font-weight: 600; }
.call-f .r { font-weight: 700; font-size: 13px; }
.call-f .r.up { color: var(--acc); }
.call-f .r.dn { color: var(--ink); opacity: .6; }
.call-f .sp { flex: 1; }
.call-h .meta { display: contents; }
.call-f .acts { display: inline-flex; gap: 8px; }
.ib { height: 30px; padding: 0 11px; border-radius: 99px; border: 1px solid var(--line2); display: inline-flex; align-items: center; gap: 7px; font: 600 10.5px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); transition: background 140ms var(--e), border-color 140ms var(--e); }
.ib:hover { border-color: var(--ink); }
.ib.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.ib svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ib .tsum { color: var(--acc); }
.ib.on .tsum { color: var(--bg); }
.tips { display: none; gap: 6px; flex-wrap: wrap; }
.tips.open { display: flex; animation: rise 220ms var(--e); }
.tips button { height: 32px; padding: 0 12px; border-radius: 99px; background: var(--acc); color: var(--bg); font: 700 12px/1 var(--body); transition: transform 140ms var(--e); }
.tips button:hover { transform: translateY(-2px); }
.tips .lab { align-self: center; font: 500 11px/1 var(--body); color: var(--dim); margin-left: 4px; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.more { display: none; margin: 12px 20px 4px; }

/* ---------- receipt (thermal paper) ---------- */
.rcpt { display: none; background: var(--paper); color: var(--bg); border-radius: 10px 10px 3px 3px; padding: 14px 16px 20px; font: 500 12px/1.65 var(--body);
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 7px) no-repeat, conic-gradient(from -45deg at 50% 100%, #000 90deg, #0000 0) bottom / 14px 7px repeat-x;
  mask: linear-gradient(#000 0 0) top / 100% calc(100% - 7px) no-repeat, conic-gradient(from -45deg at 50% 100%, #000 90deg, #0000 0) bottom / 14px 7px repeat-x; }
.rcpt.open { display: block; animation: print 320ms var(--e); transform-origin: top; }
@keyframes print { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
.rcpt .rt { display: flex; justify-content: space-between; align-items: baseline; font: 400 20px/1 var(--display); padding-bottom: 8px; margin-bottom: 6px; border-bottom: 1.5px dashed rgba(12, 47, 192, .35); }
.rcpt .rt small { font: 600 10px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; opacity: .6; }
.rcpt dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 0 16px; }
.rcpt dt { opacity: .58; text-transform: uppercase; font-size: 10.5px; letter-spacing: .12em; line-height: 1.9; }
.rcpt dd { margin: 0; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rcpt dd.ok::after { content: " ✓"; font-weight: 800; }
.rcpt .rb { display: flex; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1.5px dashed rgba(12, 47, 192, .35); }
.rcpt .rb .ib { color: var(--bg); border-color: rgba(12, 47, 192, .35); }
.rcpt .rb .ib:hover { border-color: var(--bg); }
.rcpt .rb .ib.on { background: var(--bg); color: var(--paper); }
.rcpt .vf { margin-left: auto; align-self: center; font: 600 11px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; }

/* ---------- board ---------- */
.tbl { font: 500 13px/1 var(--body); }
.tr-h, .row { display: grid; grid-template-columns: 46px minmax(0, 1fr) 92px 58px 74px 74px; align-items: center; gap: 0 10px; padding: 0 18px 0 16px; }
.tr-h { height: 36px; font: 600 10px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--panel); z-index: 1; }
.tr-h button { text-align: right; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; }
.tr-h button.on { color: var(--acc); }
.tr-h button.on::after { content: " ↓"; }
.tr-h .c { text-align: right; }
.row { height: 50px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background 140ms var(--e), transform 320ms var(--e); position: relative; }
.row:hover { background: rgba(242, 239, 230, .05); }
.row .rk { font: italic 400 26px/1 var(--display); color: var(--dim); }
.row:nth-child(1) .rk { color: var(--acc); }
.row .cl { display: flex; align-items: center; gap: 10px; min-width: 0; }
.row .cl b { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .c { text-align: right; }
.row .med { font-weight: 700; }
.row .med.up { color: var(--acc); }
.row .tp { color: var(--ink); }
.row .mv { position: absolute; left: 4px; font: 700 9px/1 var(--body); color: var(--acc); opacity: 0; transition: opacity 320ms var(--e); }
.row .mv.show { opacity: 1; }
.row.bump { animation: bump 900ms var(--e); }
@keyframes bump { 0% { background: rgba(255, 212, 0, .22); } 100% { background: transparent; } }
.spark { display: flex; align-items: center; gap: 2px; height: 30px; justify-content: flex-end; background: linear-gradient(transparent calc(50% - .5px), var(--line) calc(50% - .5px), var(--line) calc(50% + .5px), transparent calc(50% + .5px)); }
.spark i { width: 5px; border-radius: 1px; background: var(--acc); }
.spark i.n { background: var(--faint); }
.spark .ax { display: none; }
.av { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 700 10px/1 var(--body); letter-spacing: .02em; color: var(--bg); background: var(--ink); overflow: hidden; position: relative; }
.av svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.av.me { background: var(--acc); }

/* ---------- how ---------- */
.how { position: relative; z-index: 1; padding: 90px 40px 40px; }
.how h2 { margin: 0 0 30px; font: 400 min(7vw, 84px)/1 var(--display); letter-spacing: -.012em; }
.how h2 em { color: var(--acc); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 24px; display: flex; flex-direction: column; gap: 18px; min-height: 290px; }
.step .vis { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.step p { margin: 0; font: 400 30px/1.05 var(--display); }
.step p em { color: var(--acc); }
.mini-r { background: var(--paper); color: var(--bg); border-radius: 8px 8px 2px 2px; padding: 12px 14px 16px; font: 500 12px/1.7 var(--body);
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 6px) no-repeat, conic-gradient(from -45deg at 50% 100%, #000 90deg, #0000 0) bottom / 12px 6px repeat-x;
  mask: linear-gradient(#000 0 0) top / 100% calc(100% - 6px) no-repeat, conic-gradient(from -45deg at 50% 100%, #000 90deg, #0000 0) bottom / 12px 6px repeat-x; }
.mini-r div { display: flex; justify-content: space-between; }
.mini-r div span:first-child { opacity: .6; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; }
.mini-b { display: flex; flex-direction: column; gap: 6px; }
.mini-b div { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px; height: 40px; padding: 0 12px; border-radius: 12px; background: var(--bub); font: 600 13px/1 var(--body); transition: transform 320ms var(--e); }
.mini-b div i { font: italic 400 24px/1 var(--display); color: var(--dim); }
.mini-b div.lead i { color: var(--acc); }
.mini-b div.lead { background: var(--bub2); }
.mini-b div b { text-align: right; color: var(--acc); }
details.under { margin-top: 22px; background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 18px 24px; }
details.under summary { cursor: pointer; font: 600 11px/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--dim); list-style: none; }
details.under summary::-webkit-details-marker { display: none; }
details.under summary::before { content: "+ "; color: var(--acc); }
details.under[open] summary::before { content: "− "; }
details.under ol { margin: 14px 0 0; padding-left: 20px; display: grid; gap: 6px; color: var(--ink); }

/* ---------- footer ---------- */
.foot { position: relative; z-index: 1; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding: 26px 40px 34px; margin-top: 30px; border-top: 1px solid var(--line); background: var(--bg); font: 500 12px/1 var(--body); color: var(--dim); }
.foot .brand { font-size: 24px; color: var(--ink); }
.foot .brand svg { width: 28px; height: 28px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }
.foot .sp { flex: 1; }
#ca { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--acc); color: var(--acc); font: 600 12px/1 var(--body); }
#ca[hidden] { display: none; }

/* ---------- dialogs ---------- */
dialog { border: 0; padding: 0; color: var(--ink); background: transparent; max-width: none; max-height: none; }
dialog::backdrop { background: rgba(4, 16, 70, .62); }
.sheet { width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 48px); overflow: auto; background: var(--panel); border: 1px solid var(--line2); border-radius: 26px; padding: 0 0 22px; }
.sheet[open] { animation: rise 320ms var(--e); }
.sh-h { display: flex; align-items: center; gap: 12px; padding: 18px 18px 14px 24px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--panel); z-index: 2; }
.sh-h h3 { margin: 0; font: 400 30px/1 var(--display); }
.sh-h h3 em { color: var(--acc); }
.sh-h .x { margin-left: auto; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line2); display: grid; place-items: center; font: 400 20px/1 var(--body); }
.sh-b { padding: 18px 24px 0; display: flex; flex-direction: column; gap: 18px; }
.fld { display: flex; flex-direction: column; gap: 10px; }
.fld > span { font: 600 10.5px/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.inp { display: flex; align-items: center; height: 48px; border-radius: 14px; border: 1.5px solid var(--line2); padding: 0 14px; gap: 10px; transition: border-color 140ms var(--e); }
.inp:focus-within { border-color: var(--acc); }
.inp input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; color: var(--ink); font: 500 14px/1 var(--body); outline: none; }
.inp input::placeholder { color: var(--faint); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { height: 36px; padding: 0 12px; border-radius: 99px; background: var(--bub); display: inline-flex; align-items: center; gap: 8px; font: 600 12px/1 var(--body); transition: background 140ms var(--e), color 140ms var(--e); }
.chip small { font-weight: 500; color: var(--dim); }
.chip:hover { background: var(--bub2); }
.chip.on { background: var(--ink); color: var(--bg); }
.chip.on small { color: rgba(12, 47, 192, .7); }
.recbox { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 18px; padding: 16px; border-radius: 20px; background: var(--bg); border: 1px solid var(--line); }
.recbox.off { opacity: .4; pointer-events: none; }
.mic { position: relative; width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; }
.mic svg.ring { position: absolute; inset: 0; transform: rotate(-90deg); }
.mic svg.ring circle { fill: none; stroke-width: 4; }
.mic .core { width: 64px; height: 64px; border-radius: 50%; background: var(--acc); display: grid; place-items: center; transition: transform 140ms var(--e), border-radius 220ms var(--e); }
.mic .core i { width: 20px; height: 20px; border-radius: 50%; background: var(--bg); transition: border-radius 220ms var(--e), width 220ms var(--e), height 220ms var(--e); }
.mic.rec .core i { border-radius: 4px; width: 18px; height: 18px; }
.mic.done .core { background: var(--ink); }
.mic.done .core i { width: 0; height: 0; border-radius: 0; background: none; border-left: 16px solid var(--bg); border-top: 10px solid transparent; border-bottom: 10px solid transparent; margin-left: 5px; }
.recr { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
#micWave { width: 100%; height: 46px; display: block; }
.rect { display: flex; justify-content: space-between; align-items: center; font: 500 12px/1 var(--body); color: var(--dim); }
.rect b { color: var(--ink); font-size: 18px; font-weight: 600; }
.rect button { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; font-size: 12px; }
.opt { display: flex; gap: 8px; flex-wrap: wrap; }
.stamping { display: none; flex-direction: column; gap: 14px; }
.stamping.open { display: flex; }
.stamping .rcpt { display: block; }
.sline { opacity: 0; transform: translateY(4px); transition: opacity 220ms var(--e), transform 220ms var(--e); }
.sline.in { opacity: 1; transform: none; }
.sh-f { display: flex; gap: 10px; padding: 18px 24px 0; }
.sh-f .btn { flex: 1; }

/* caller sheet */
.cs-top { display: flex; align-items: center; gap: 16px; }
.cs-top .av { width: 64px; height: 64px; font-size: 18px; }
.cs-top div b { display: block; font: 400 34px/1 var(--display); }
.cs-top div span { font: 500 12px/1.6 var(--body); color: var(--dim); }
.cs-top .btn { margin-left: auto; }
.kv { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.kv div { background: var(--bg); border-radius: 14px; padding: 12px 12px 10px; display: flex; flex-direction: column; gap: 8px; }
.kv span { font: 600 10px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.kv b { font: 400 28px/1 var(--display); }
.kv b.up { color: var(--acc); }
.hist { display: flex; align-items: center; gap: 3px; height: 92px; padding: 0 2px; background: linear-gradient(transparent calc(50% - .5px), var(--line2) calc(50% - .5px), var(--line2) calc(50% + .5px), transparent calc(50% + .5px)); }
.hist i { flex: 1; border-radius: 2px; background: var(--acc); }
.hist i.n { background: var(--faint); }
.cs-calls { display: flex; flex-direction: column; border-top: 1px solid var(--line); margin: 0 -24px; }

/* share card */
#shareCv { width: 100%; height: auto; display: block; border-radius: 14px; }

/* toast */
.toast { position: fixed; z-index: 60; left: 50%; bottom: 26px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 18px; border-radius: 99px; background: var(--ink); color: var(--bg); font: 600 13px/1 var(--body); white-space: nowrap; transition: transform 220ms var(--e), opacity 220ms var(--e); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast i { width: 10px; height: 10px; border-radius: 50%; background: var(--bg); }
.fly { position: fixed; z-index: 61; pointer-events: none; font: 800 13px/1 var(--body); color: var(--bg); background: var(--acc); padding: 6px 9px; border-radius: 99px; transition: transform 900ms var(--e), opacity 900ms var(--e); }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .app { height: auto; min-height: 0; grid-template-rows: auto; padding-top: 92px; }
  .hero { grid-column: 1 / -1; }
  .np { grid-column: 1 / -1; }
  .feed { grid-column: 1 / span 6; max-height: 760px; }
  .board { grid-column: 7 / span 6; max-height: 760px; }
  h1 { font-size: min(9.4vw, 96px); }
}
@media (max-width: 860px) {
  .top { padding: 0 16px; height: 60px; gap: 12px; }
  .nav, .live { display: none; }
  .brand { font-size: 27px; }
  .brand svg { width: 30px; height: 30px; }
  .app { display: flex; flex-direction: column; gap: 20px; padding: 76px 16px 16px; }
  h1 { font-size: min(10.6vw, 80px); }
  .hero { gap: 20px; }
  .ctas .btn { flex: 1 1 0; padding: 0 12px; }
  .feed, .board { max-height: none; }
  .feed .list .call:nth-child(n+6) { display: none; }
  .feed.all .list .call:nth-child(n+6) { display: flex; }
  .more { display: flex; }
  .feed.all .more { display: none; }
  .np { padding: 16px 16px 24px; }
  .np-h .sd { display: none; }
  .say { font-size: 20px; }
  .stamp .res { font-size: 26px; }
  .call { padding: 14px 16px; }
  .tr-h, .row { grid-template-columns: 36px minmax(0, 1fr) 56px 78px; padding: 0 14px; gap: 0 8px; }
  .tr-h .h-tips, .row .tp, .tr-h .h-spark, .row .spark { display: none; }
  .call-h { flex-wrap: wrap; row-gap: 8px; }
  .call-h .meta { display: flex; order: 9; width: 100%; padding-left: 37px; gap: 8px; align-items: center; }
  .call-f .sp { display: none; }
  .call-f .acts { width: 100%; display: flex; gap: 8px; }
  .call-f .acts .ib { flex: 1; justify-content: center; height: 36px; }
  .more { width: calc(100% - 32px); margin: 14px 16px 6px; }
  .how { padding: 60px 16px 20px; }
  .how h2 { font-size: 44px; line-height: 1.02; }
  .steps { grid-template-columns: 1fr; }
  .step { min-height: 0; }
  .foot { padding: 22px 16px 30px; gap: 14px 18px; }
  .foot .fl { display: none; }
  .kv { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sheet { width: 100vw; max-height: 92vh; border-radius: 26px 26px 0 0; margin: auto auto 0; }
  .sh-h, .sh-b, .sh-f { padding-left: 16px; padding-right: 16px; }
  .cs-calls { margin: 0 -16px; }
}
@media (max-width: 380px) {
  .ctas .btn { font-size: 11px; letter-spacing: .1em; }
  .tr-h, .row { grid-template-columns: 30px minmax(0, 1fr) 50px 70px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; }
  html { scroll-behavior: auto; }
}
