:root {
  --bg: #04060d; --glass: rgba(255,255,255,.045); --line: rgba(255,255,255,.09); --text: #f2f6ff; --muted: #8d9bb8;
  --accent: #8cc4ff; --accent2: #4a7dff; --violet: #8f7bff; --on-accent: #04101f;
  --good: #5fd6a2; --warn: #f3bd62; --bad: #ff7d7d; --raised: rgba(255,255,255,.07);
  --top: env(safe-area-inset-top, 0px); --bottom: env(safe-area-inset-bottom, 0px); --ease: cubic-bezier(.2,.8,.2,1);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; margin: 0; background: var(--bg); color: var(--text); font: 16px/1.45 -apple-system, "SF Pro Display", Inter, "Segoe UI", Roboto, system-ui, sans-serif; overscroll-behavior: none; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; background:
  radial-gradient(60% 38% at 12% -6%, rgba(74,125,255,.30), transparent 70%),
  radial-gradient(55% 38% at 105% 28%, rgba(143,123,255,.17), transparent 70%),
  radial-gradient(70% 42% at 50% 118%, rgba(95,214,162,.09), transparent 70%); }
#root { position: relative; height: 100dvh; display: flex; flex-direction: column; }
button, input { font: inherit; color: inherit; }
button { border: 0; background: none; cursor: pointer; padding: 0; transition: transform .16s var(--ease), opacity .16s; }
button:active:not(:disabled) { transform: scale(.96); }
button:disabled { opacity: .45; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, p { margin: 0; }
b { font-weight: 620; }

/* entrance motion: only when a screen first appears, never on the 4 second refresh */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0% { transform: scale(.7); opacity: .7; } 100% { transform: scale(1.9); opacity: 0; } }
@keyframes blink { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes shine { to { background-position: 200% 0; } }
.enter > * { animation: rise .5s var(--ease) both; }
.enter > *:nth-child(2) { animation-delay: .06s; } .enter > *:nth-child(3) { animation-delay: .12s; }
.enter > *:nth-child(4) { animation-delay: .18s; } .enter > *:nth-child(5) { animation-delay: .24s; } .enter > *:nth-child(6) { animation-delay: .3s; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* header */
.head { position: relative; padding: calc(var(--top) + 16px) 20px 10px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.head .hi { color: var(--muted); font-size: 13px; font-weight: 560; letter-spacing: .02em; }
.head h1 { font-size: 31px; line-height: 1.1; font-weight: 720; letter-spacing: -.035em; }
.pill { display: inline-flex; align-items: center; gap: 7px; margin-top: 8px; padding: 4px 11px 4px 9px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); color: var(--muted); font-size: 12.5px; font-weight: 520; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 0 rgba(95,214,162,.6); }
.dot.live { animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(95,214,162,.55); } 70%, 100% { box-shadow: 0 0 0 7px rgba(95,214,162,0); } }
.dot.off { background: var(--bad); animation: none; }
.headbtns { display: flex; align-items: center; gap: 10px; }
.logo { width: 42px; height: 42px; border-radius: 13px; flex: none; box-shadow: 0 6px 20px rgba(74,125,255,.28); }
.iconbtn { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; color: var(--muted); background: var(--glass); border: 1px solid var(--line); }
.iconbtn[aria-pressed="true"] { color: var(--accent); border-color: rgba(140,196,255,.4); background: rgba(140,196,255,.1); }
.iconbtn svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.main { position: relative; flex: 1; min-height: 0; overflow-y: auto; padding: 6px 16px 112px; display: flex; flex-direction: column; gap: 14px; scrollbar-width: none; }
.main::-webkit-scrollbar { display: none; }

/* floating tab bar */
.tabs { position: absolute; left: 12px; right: 12px; bottom: calc(var(--bottom) + 10px); z-index: 4; display: grid; grid-template-columns: repeat(5, 1fr); padding: 7px; border-radius: 28px; background: rgba(12,17,30,.72); border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(0,0,0,.5), 0 1px 0 rgba(255,255,255,.07) inset; backdrop-filter: blur(22px) saturate(1.4); -webkit-backdrop-filter: blur(22px) saturate(1.4); }
.tabs button { display: grid; justify-items: center; gap: 3px; padding: 7px 0 6px; color: var(--muted); font-size: 10.5px; font-weight: 580; letter-spacing: .01em; border-radius: 21px; }
.tabicon { display: grid; place-items: center; width: 44px; height: 30px; border-radius: 15px; transition: background .25s var(--ease), box-shadow .25s var(--ease); }
.tabs svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tabs button[aria-current="page"] { color: #fff; }
.tabs button[aria-current="page"] .tabicon { background: linear-gradient(135deg, rgba(140,196,255,.34), rgba(74,125,255,.5)); box-shadow: 0 6px 18px rgba(74,125,255,.45), 0 1px 0 rgba(255,255,255,.25) inset; }

/* cards */
.card { background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03)); border: 1px solid var(--line); border-radius: 26px; padding: 18px; box-shadow: 0 1px 0 rgba(255,255,255,.07) inset, 0 16px 36px rgba(0,0,0,.28); }
button.card { width: 100%; text-align: left; display: block; }
.label { color: var(--muted); font-size: 11.5px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.big { font-size: 21px; font-weight: 680; letter-spacing: -.02em; line-height: 1.2; }
.sub { color: var(--muted); font-size: 14px; }
.empty { color: var(--muted); text-align: center; padding: 30px 12px; font-size: 15px; }
.tinted { background: linear-gradient(145deg, rgba(74,125,255,.34), rgba(143,123,255,.2)); border-color: rgba(140,196,255,.28); }

/* my pc hero */
.hero { display: grid; gap: 18px; }
.hero-top { display: flex; align-items: center; gap: 14px; }
.hero-top .logo { width: 52px; height: 52px; border-radius: 16px; }
.hero-top .big { font-size: 19px; }
.gauges { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gauge { position: relative; display: grid; place-items: center; }
.gauge svg { width: 100%; max-width: 132px; display: block; }
.arc { transition: stroke-dashoffset 1s var(--ease); }
.gnum { position: absolute; display: grid; justify-items: center; line-height: 1.1; }
.gnum b { font-size: 26px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.gnum span { color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; margin-top: 3px; }

/* rows */
.row { display: flex; align-items: center; gap: 13px; padding: 13px 0; border-top: 1px solid var(--line); min-height: 56px; }
.row:first-of-type { border-top: 0; padding-top: 2px; }
.row:last-child { padding-bottom: 0; }
.row .grow { flex: 1; min-width: 0; }
.row b { display: block; overflow-wrap: anywhere; }
.avatar { width: 42px; height: 42px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 700; color: #fff; background: linear-gradient(135deg, #5b8cff, #8f7bff); box-shadow: 0 6px 16px rgba(91,140,255,.3); }
.avatar.miss { background: linear-gradient(135deg, #ff7d7d, #ff9d6b); box-shadow: 0 6px 16px rgba(255,125,125,.25); }
.check { width: 28px; height: 28px; flex: none; border-radius: 50%; border: 2px solid rgba(255,255,255,.25); display: grid; place-items: center; transition: background .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease); }
.check.on { background: linear-gradient(135deg, #a8d2ff, #4a7dff); border-color: transparent; box-shadow: 0 4px 14px rgba(74,125,255,.45); }
.check svg { width: 15px; height: 15px; fill: none; stroke: var(--on-accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.done b { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(255,255,255,.25); }
.chip { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 650; background: rgba(243,189,98,.14); color: var(--warn); }
.chip.red { background: rgba(255,125,125,.14); color: var(--bad); }
.late { color: var(--warn); }
.when { flex: none; width: 52px; text-align: center; padding: 8px 0; border-radius: 16px; background: linear-gradient(180deg, rgba(140,196,255,.18), rgba(74,125,255,.1)); border: 1px solid rgba(140,196,255,.2); line-height: 1.05; }
.when b { font-size: 21px; display: block; }
.when span { color: var(--accent); font-size: 10.5px; font-weight: 650; text-transform: uppercase; letter-spacing: .07em; }
.daylabel { color: var(--muted); font-size: 12px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; padding: 4px 6px 0; }
.daylabel.today { color: var(--accent); }
.event { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 20px; background: var(--glass); border: 1px solid var(--line); border-left: 3px solid var(--accent2); }
.event time { flex: none; width: 56px; color: var(--accent); font-size: 14px; font-weight: 650; font-variant-numeric: tabular-nums; }

/* forms */
.add { display: flex; gap: 10px; }
.field { flex: 1; min-width: 0; height: 52px; padding: 0 18px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.055); color: var(--text); outline: none; transition: border-color .2s, background .2s, box-shadow .2s; }
.field:focus { border-color: rgba(140,196,255,.55); background: rgba(255,255,255,.08); box-shadow: 0 0 0 4px rgba(74,125,255,.16); }
.field::placeholder { color: #6f7d9a; }
.stack { display: grid; gap: 10px; }
.twin { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn { height: 52px; padding: 0 22px; border-radius: 18px; background: linear-gradient(135deg, #a8d2ff, #5b8cff); color: var(--on-accent); font-weight: 680; flex: none; box-shadow: 0 8px 22px rgba(74,125,255,.38), 0 1px 0 rgba(255,255,255,.45) inset; }
.btn.quiet { background: var(--raised); color: var(--text); border: 1px solid var(--line); box-shadow: none; }
.btn.wide { width: 100%; }
.send { width: 52px; padding: 0; display: grid; place-items: center; border-radius: 50%; }
.send svg, .btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.suggest { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 14px; }
.suggest button { padding: 9px 15px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); font-size: 14px; color: var(--accent); }

/* chat */
.chat { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; }
.log { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 16px 12px; display: flex; flex-direction: column; gap: 12px; scrollbar-width: none; }
.msg { display: flex; align-items: flex-end; gap: 8px; max-width: 92%; animation: rise .35s var(--ease) both; }
.msg.me { align-self: flex-end; }
.msg .logo { width: 28px; height: 28px; border-radius: 9px; box-shadow: none; }
.bubble { padding: 12px 16px; border-radius: 22px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.42; }
.msg.me .bubble { background: linear-gradient(135deg, #5b8cff, #7a6bff); color: #fff; border-bottom-right-radius: 7px; box-shadow: 0 8px 22px rgba(91,110,255,.35); }
.msg.bott .bubble { background: rgba(255,255,255,.07); border: 1px solid var(--line); border-bottom-left-radius: 7px; }
.typing { display: inline-flex; gap: 5px; padding: 3px 0; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
.compose { padding: 10px 14px 4px; }
.hint { color: #6f7d9a; font-size: 12px; text-align: center; padding: 4px 24px calc(var(--bottom) + 96px); }

/* calls */
.ringcard { position: relative; overflow: hidden; text-align: center; padding: 30px 18px 22px; border-color: rgba(140,196,255,.3); background: radial-gradient(90% 70% at 50% 0%, rgba(74,125,255,.32), rgba(255,255,255,.03) 70%); }
.callavatar { position: relative; width: 92px; height: 92px; margin: 6px auto 16px; }
.callavatar .avatar { width: 92px; height: 92px; font-size: 32px; position: relative; z-index: 1; }
.callavatar i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(140,196,255,.55); animation: pulse 2.4s var(--ease) infinite; }
.callavatar i:nth-child(2) { animation-delay: .8s; } .callavatar i:nth-child(3) { animation-delay: 1.6s; }
.ringcard .big { font-size: 27px; letter-spacing: -.03em; overflow-wrap: anywhere; }
.ringcard .label { margin: 0 0 4px; }
.roundrow { display: flex; justify-content: center; gap: 48px; margin: 26px 0 20px; }
.round { display: grid; justify-items: center; gap: 8px; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.round span { width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; }
.round svg { width: 28px; height: 28px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.round.no span { background: linear-gradient(135deg, #ff8a8a, #ff5a6a); box-shadow: 0 10px 26px rgba(255,90,106,.45); }
.round.no svg { transform: rotate(135deg); }
.round.yes span { background: linear-gradient(135deg, #7ae6b4, #2fc58a); box-shadow: 0 10px 26px rgba(47,197,138,.45); }
.round.mute span { background: var(--raised); border: 1px solid var(--line); }
.bottbtn { position: relative; width: 100%; height: 56px; border-radius: 20px; display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 680; color: #fff; background: linear-gradient(110deg, rgba(91,140,255,.4), rgba(143,123,255,.45), rgba(91,140,255,.4)); background-size: 200% 100%; animation: shine 4s linear infinite; border: 1px solid rgba(140,196,255,.4); box-shadow: 0 8px 26px rgba(91,110,255,.35); }
.bottbtn img { width: 28px; height: 28px; border-radius: 9px; }
.fine { color: var(--muted); font-size: 12.5px; margin-top: 10px; }
.icobig { width: 64px; height: 64px; border-radius: 22px; display: grid; place-items: center; margin-bottom: 14px; background: linear-gradient(135deg, rgba(140,196,255,.2), rgba(74,125,255,.12)); border: 1px solid rgba(140,196,255,.25); color: var(--accent); }
.icobig svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* settings widgets */
.switch { flex: none; width: 56px; height: 34px; border-radius: 17px; background: var(--raised); border: 1px solid var(--line); position: relative; transition: background .25s; }
.switch i { position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #aab6cf; transition: transform .25s var(--ease), background .25s; box-shadow: 0 2px 6px rgba(0,0,0,.4); }
.switch.on { background: linear-gradient(135deg, #7fb4ff, #4a7dff); border-color: transparent; }
.switch.on i { transform: translateX(22px); background: #fff; }
.seg { display: flex; border: 1px solid var(--line); border-radius: 13px; overflow: hidden; flex: none; }
.seg button { padding: 9px 12px; font-size: 13px; color: var(--muted); background: var(--raised); }
.seg button.on { background: linear-gradient(135deg, #a8d2ff, #5b8cff); color: var(--on-accent); font-weight: 680; }
.planbadge { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 680; background: linear-gradient(135deg, rgba(168,210,255,.22), rgba(91,140,255,.3)); border: 1px solid rgba(140,196,255,.35); color: #dcecff; }

/* full screens: welcome, pairing, lock */
.full { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 14px; padding: calc(var(--top) + 24px) 28px calc(var(--bottom) + 24px); animation: rise .6s var(--ease) both; }
.orb { position: relative; display: grid; place-items: center; width: 150px; height: 150px; margin-bottom: 6px; }
.orb::before { content: ""; position: absolute; inset: -30px; border-radius: 50%; background: radial-gradient(closest-side, rgba(91,140,255,.55), rgba(143,123,255,.2) 55%, transparent 72%); filter: blur(8px); animation: float 6s ease-in-out infinite; }
.orb .logo { position: relative; width: 104px; height: 104px; border-radius: 30px; box-shadow: 0 18px 50px rgba(74,125,255,.5); animation: float 6s ease-in-out infinite; }
.full h1 { font-size: 30px; font-weight: 730; letter-spacing: -.035em; line-height: 1.12; background: linear-gradient(180deg, #fff, #b9d4ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.full p { color: var(--muted); max-width: 320px; }
.steps { display: grid; gap: 10px; width: 100%; max-width: 330px; margin-top: 8px; text-align: left; }
.step { display: flex; align-items: center; gap: 14px; padding: 13px 16px; border-radius: 20px; background: var(--glass); border: 1px solid var(--line); }
.step i { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: 14px; color: var(--on-accent); background: linear-gradient(135deg, #a8d2ff, #5b8cff); }
.match { font-size: 46px; font-weight: 740; letter-spacing: .14em; font-variant-numeric: tabular-nums; margin: 8px 0; background: linear-gradient(135deg, #a8d2ff, #8f7bff); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 22px rgba(120,150,255,.5)); }
.dots { display: flex; gap: 14px; margin: 8px 0; }
.dots i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255,255,255,.3); transition: all .2s var(--ease); }
.dots i.on { background: linear-gradient(135deg, #a8d2ff, #5b8cff); border-color: transparent; transform: scale(1.1); box-shadow: 0 0 14px rgba(91,140,255,.7); }
.keys { display: grid; grid-template-columns: repeat(3, 78px); gap: 12px; }
.keys button { height: 68px; border-radius: 50%; background: var(--glass); border: 1px solid var(--line); font-size: 25px; font-weight: 520; }
.keys button.plain { background: none; border: 0; font-size: 14px; color: var(--muted); }
.err { color: var(--bad); font-size: 14px; min-height: 20px; }
.toast { position: fixed; left: 16px; right: 16px; bottom: calc(var(--bottom) + 100px); background: rgba(20,28,48,.92); border: 1px solid rgba(140,196,255,.45); border-radius: 18px; padding: 13px 16px; font-size: 14px; box-shadow: 0 14px 36px rgba(0,0,0,.55); z-index: 9; backdrop-filter: blur(16px); animation: rise .35s var(--ease) both; }

.gauge.small svg { max-width: 84px; }
.gauge.small .gnum b { font-size: 18px; }
.gauge.small .gnum span { font-size: 9px; }
select.field { appearance: none; -webkit-appearance: none; cursor: pointer; background-image: none; }
select.field option { background: #0e1424; color: #f2f6ff; }
.row .field { height: 44px; }
.btn.send { width: 52px; padding: 0; }
.main > * { flex-shrink: 0; }

/* voice conversation */
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes spin { to { transform: rotate(360deg); } }
.btn.send.mic { background: linear-gradient(135deg, #b9a8ff, #7a6bff); box-shadow: 0 8px 22px rgba(122,107,255,.4), 0 1px 0 rgba(255,255,255,.4) inset; color: #120a30; }
.voice { position: fixed; inset: 0; z-index: 20; display: flex; flex-direction: column; align-items: center; justify-content: space-between; text-align: center; padding: calc(var(--top) + 36px) 24px calc(var(--bottom) + 32px); background: radial-gradient(80% 50% at 50% 34%, rgba(74,125,255,.38), rgba(4,6,13,.97) 72%), var(--bg); animation: rise .4s var(--ease) both; }
.vstate { font-size: 14px; font-weight: 680; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.vorb { --lvl: 0; position: relative; width: 190px; height: 190px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(closest-side, rgba(91,140,255,.45), rgba(143,123,255,.18) 70%, transparent); transition: transform .12s linear; transform: scale(calc(1 + var(--lvl) * .22)); }
.vorb::before { content: ""; position: absolute; inset: -26px; border-radius: 50%; border: 2px solid rgba(140,196,255,.35); animation: pulse 2.6s var(--ease) infinite; }
.vorb::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--accent); opacity: 0; }
.vorb .logo { width: 92px; height: 92px; border-radius: 28px; box-shadow: 0 16px 44px rgba(74,125,255,.55); }
.vorb.thinking::after { opacity: 1; animation: spin 1s linear infinite; }
.vorb.thinking::before { animation: none; opacity: .3; }
.vorb.speaking { animation: breathe 1.1s ease-in-out infinite; }
.vcap { max-width: 340px; min-height: 130px; display: grid; gap: 12px; align-content: start; }
.vcap .me { color: var(--muted); font-size: 15px; }
.vcap .bot { font-size: 19px; font-weight: 560; line-height: 1.35; overflow-wrap: anywhere; max-height: 34vh; overflow-y: auto; }

.btn.send.stop { background: linear-gradient(135deg, #ffb0b0, #ff6a7a); color: #2a0610; box-shadow: 0 8px 22px rgba(255,90,106,.4), 0 1px 0 rgba(255,255,255,.4) inset; }

.confirmrow { display: flex; gap: 10px; align-items: center; }
.confirmrow .btn { height: 48px; }
.holdbtn { position: relative; overflow: hidden; flex: 1; height: 48px; border-radius: 16px; border: 1px solid rgba(255,125,125,.5); background: rgba(255,125,125,.12); color: #ffd6d6; font-weight: 680; user-select: none; touch-action: none; }
.holdbtn i { position: absolute; inset: 0; width: 0; background: linear-gradient(90deg, rgba(255,90,106,.55), rgba(255,125,125,.85)); }
.holdbtn span { position: relative; }
.holdbtn.holding i { width: 100%; transition: width 1s linear; }

.chatbar { display: flex; align-items: center; gap: 10px; padding: 2px 14px 8px; }
.chattitle { flex: 1; min-width: 0; text-align: center; font-weight: 640; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chatrow { width: 100%; text-align: left; }
.clip { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sheetwrap { position: fixed; inset: 0; z-index: 30; background: rgba(2,4,10,.6); display: flex; align-items: flex-end; backdrop-filter: blur(4px); animation: rise .25s var(--ease) both; }
.sheet { width: 100%; display: grid; gap: 10px; padding: 18px 16px calc(var(--bottom) + 18px); border-radius: 28px 28px 0 0; background: #0e1424; border-top: 1px solid var(--line); }
.btn.quiet.danger { color: var(--bad); }

/* smoothness: keep each card's layout separate, keep the tab bar on its own layer, and keep scrolling on the compositor */
.card, .event, .row, .bubble { contain: layout style; }
.tabs { transform: translateZ(0); will-change: transform; }
.main, .log { -webkit-overflow-scrolling: touch; overscroll-behavior-y: contain; }
.msg, .enter > * { will-change: opacity, transform; }
.msg { animation-fill-mode: both; }
.gauge svg, .callavatar i, .vorb::before { will-change: transform; }
@media (prefers-reduced-transparency: reduce) { .tabs, .toast, .sheetwrap { backdrop-filter: none; -webkit-backdrop-filter: none; background-color: #0e1424; } }

/* widgets */
.wlabel { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 11.5px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; min-height: 22px; }
.chip.glow { color: #dcecff; background: rgba(91,140,255,.28); box-shadow: 0 0 18px rgba(91,140,255,.45); letter-spacing: 0; text-transform: none; }
.wname { font-size: 17px; font-weight: 680; letter-spacing: -.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w-calls, .w-plan { min-height: 168px; }
.w-next { padding: 20px 18px; }
.nextrow { display: flex; align-items: center; gap: 16px; }
.bigtime { font-size: 40px; line-height: 1; font-weight: 740; letter-spacing: -.04em; font-variant-numeric: tabular-nums; background: linear-gradient(180deg, #fff, #b9d4ff); -webkit-background-clip: text; background-clip: text; color: transparent; flex: none; }
.nexttitle { font-size: 18px; font-weight: 640; line-height: 1.25; overflow-wrap: anywhere; }
.minis { display: grid; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.12); }
.mini { display: flex; align-items: baseline; gap: 10px; font-size: 14px; }
.mini time { color: var(--accent); font-weight: 650; font-variant-numeric: tabular-nums; width: 46px; flex: none; }
.mini span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini em { color: var(--muted); font-style: normal; font-size: 12px; }
.w-tasks .hero-top { gap: 14px; }
.tlist { display: grid; margin-top: 10px; }
.trow { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.trow .grow { flex: 1; min-width: 0; }
.trow b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.more { margin-top: 6px; padding: 10px 0 2px; color: var(--accent); font-weight: 620; font-size: 14px; }
.qa { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; padding: 16px 8px 14px; }
.qabtn { display: grid; justify-items: center; gap: 9px; color: var(--muted); font-size: 11.5px; font-weight: 620; }
.qabtn span { width: 54px; height: 54px; border-radius: 19px; display: grid; place-items: center; box-shadow: 0 10px 22px rgba(0,0,0,.35), 0 1px 0 rgba(255,255,255,.4) inset; }
.qabtn svg { width: 25px; height: 25px; fill: none; stroke: #fff; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.qabtn.violet span { background: linear-gradient(135deg, #b9a8ff, #7a6bff); }
.qabtn.green span { background: linear-gradient(135deg, #7ae6b4, #2fc58a); }
.qabtn.amber span { background: linear-gradient(135deg, #ffd37a, #f0a23a); }
.qabtn.blue span { background: linear-gradient(135deg, #a8d2ff, #4a7dff); }
.qabtn.pink span { background: linear-gradient(135deg, #ffb0d6, #e86aa8); }
.qabtn:disabled span { filter: grayscale(.7) brightness(.7); }
.meter { height: 6px; border-radius: 3px; background: rgba(255,255,255,.1); overflow: hidden; margin-top: 8px; }
.meter i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #a8d2ff, #5b8cff); }
.wedit { display: grid; gap: 8px; padding: 8px; border-radius: 30px; border: 2px dashed rgba(140,196,255,.35); background: rgba(140,196,255,.04); }
.wedit .grid { margin: 0; }
.wtools { display: flex; align-items: center; gap: 8px; }
.wtools span { flex: 1; color: var(--accent); font-size: 12.5px; font-weight: 650; padding-left: 8px; }
.wtool { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--raised); border: 1px solid var(--line); color: var(--text); }
.wtool svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wtool:disabled { opacity: .3; }
.winert { pointer-events: none; opacity: .85; }
.grid .wedit { padding: 6px; border-radius: 26px; }
.grid .wtools { gap: 4px; justify-content: center; }
.grid .wtools span { display: none; }
.grid .wtool { width: 30px; height: 30px; border-radius: 10px; }
