/* Mini · Aurora v2 — ночное стекло и мягкое северное сияние */
:root {
  --bg: #070918; --page: #03040C;
  --text: #F4F5FF; --muted: #9296BE; --dim: #7E82AA;
  --accent: #B3A8FF; --grad: linear-gradient(155deg, #9A8BFF, #6C8CFF);
  --dawn: #FFB4D6; --grad2: linear-gradient(155deg, #FFCFE3, #AE8CFF);
  --mint: #8FE3C0;
  --danger: #FF9DB8; --danger-bg: rgba(255, 110, 150, .07); --danger-line: rgba(255, 157, 184, .22);
  --line: rgba(255, 255, 255, .08);
  --glass: linear-gradient(165deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .05));
  --glass-line: rgba(255, 255, 255, .09);
  --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 10px 30px -14px rgba(0, 0, 0, .5);
  --spring: cubic-bezier(.2, .9, .25, 1);
  --font: -apple-system, "SF Pro Text", "SF Pro Display", "Inter", system-ui, "Segoe UI", Roboto, sans-serif;
  --display: -apple-system, "SF Pro Display", "Inter Display", "Inter", system-ui, sans-serif;
  --sat: env(safe-area-inset-top, 0px); --sab: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--page); color: var(--text); font: 400 15px/1.35 var(--font);
  -webkit-font-smoothing: antialiased; overscroll-behavior: none; }
body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; overflow: hidden; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
textarea { font: inherit; color: inherit; }
.ic { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.noscript { padding: 40px; text-align: center; }

/* ───── фон ───── */
#app { position: relative; height: 100%; max-width: 440px; margin: 0 auto; overflow: hidden; isolation: isolate; background: var(--bg); }
@media (min-width: 520px) {
  body { display: grid; place-items: center; }
  #app { height: min(100%, 932px); border-radius: 44px; box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 40px 120px -40px rgba(110, 100, 255, .45); }
}
.aurora { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 42% at 92% 4%, rgba(130, 110, 255, .62), transparent 70%),
    radial-gradient(48% 36% at 0% 40%, rgba(240, 120, 200, .26), transparent 70%),
    radial-gradient(44% 34% at 100% 62%, rgba(70, 130, 255, .22), transparent 70%),
    radial-gradient(80% 40% at 40% 108%, rgba(100, 90, 255, .45), transparent 72%),
    var(--bg); }
.aurora::after { content: ""; position: absolute; inset: 0; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }

.glass { background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(26px) saturate(140%); backdrop-filter: blur(26px) saturate(140%); }

/* ───── экраны и переходы ───── */
.screen { position: absolute; inset: 0; display: flex; flex-direction: column; padding: calc(var(--sat) + 12px) 18px calc(var(--sab) + 18px);
  transition: transform .5s var(--spring), opacity .4s ease, filter .45s ease; }
.screen.enter { transform: translateX(28px); opacity: 0; filter: blur(8px); }
.screen.leave { transform: translateX(-28px); opacity: 0; filter: blur(8px); pointer-events: none; }
.screen.back.enter { transform: translateX(-28px); }
.screen.back.leave { transform: translateX(28px); }
.center { align-items: center; text-align: center; }
.grow { flex: 1; }

/* ───── знак ───── */
.logo { position: relative; }
.orb { position: absolute; top: 0; width: 66%; height: 100%; border-radius: 50%; }
.orb.a { left: 0; background: linear-gradient(155deg, #CFC8FF, #8F86FF); box-shadow: 0 0 24px rgba(160, 140, 255, .55); }
.orb.b { right: 0; background: linear-gradient(155deg, rgba(255, 207, 227, .92), rgba(174, 140, 255, .85)); mix-blend-mode: screen; box-shadow: 0 0 24px rgba(255, 170, 220, .35); }
.wordmark { font: 200 56px/1 var(--display); letter-spacing: -.02em; margin: 26px 0 10px; }
.tagline { color: #D3D5F2; font-size: 14px; }

/* ───── кнопки ───── */
.cta { display: flex; align-items: center; justify-content: center; gap: 8px; height: 54px; border-radius: 20px; width: 100%;
  background: var(--grad); font-weight: 600; font-size: 16px; color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 14px 30px -12px rgba(108, 140, 255, .8);
  transition: transform .25s var(--spring), filter .2s; }
.cta:active { transform: scale(.97); filter: brightness(1.08); }
.cta.ghost { background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--glass-shadow); font-weight: 500; }
.cta.danger { background: var(--danger-bg); border: 1px solid var(--danger-line); color: var(--danger); box-shadow: none; font-weight: 500; }
.cta[disabled] { opacity: .45; pointer-events: none; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 99px; font-size: 12px; color: #C9CBEA; }
.linkbtn { color: var(--accent); font-size: 14px; padding: 10px; }
.iconbtn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: #E6E7FF; transition: transform .2s var(--spring), background .2s; }
.iconbtn:active { transform: scale(.9); background: rgba(255,255,255,.08); }

/* ───── клавиатура PIN (экран 01) ───── */
.dots { display: flex; gap: 18px; justify-content: center; margin: 34px 0 30px; }
.dot { width: 12px; height: 12px; border-radius: 50%; border: 1.4px solid rgba(255, 255, 255, .45); transition: all .25s var(--spring); }
.dot.on { background: #CFC8FF; border-color: #CFC8FF; box-shadow: 0 0 14px 2px rgba(170, 150, 255, .75); transform: scale(1.12); }
.dots.shake { animation: shake .45s; }
@keyframes shake { 20% { transform: translateX(-12px) } 40% { transform: translateX(10px) } 60% { transform: translateX(-7px) } 80% { transform: translateX(4px) } }
.keypad { display: grid; grid-template-columns: repeat(3, 76px); gap: 16px 26px; justify-content: center; }
.key { width: 76px; height: 76px; border-radius: 50%; font: 200 33px/1 var(--display); display: grid; place-items: center;
  transition: transform .18s var(--spring), background .2s; }
.key.glass:active { transform: scale(.92); background: rgba(255, 255, 255, .2); }
.key.flat { color: #D8DAF5; }
.key.flat:active { transform: scale(.9); }
.hint { color: var(--dim); font-size: 12.5px; display: flex; align-items: center; gap: 6px; justify-content: center; }
.title-md { font: 200 30px/1.15 var(--display); letter-spacing: -.02em; margin: 0; }
.sub { color: var(--muted); font-size: 14px; margin-top: 8px; }

/* ───── карточки ───── */
.card { border-radius: 26px; padding: 18px; }
.card + .card { margin-top: 12px; }
.linkbox { font: 500 13px/1.4 ui-monospace, "SF Mono", Menlo, monospace; color: #DCDDF7; word-break: break-all; padding: 12px 14px; border-radius: 16px; background: rgba(0,0,0,.22); margin: 10px 0 14px; -webkit-user-select: all; user-select: all; }
.btnrow { display: flex; gap: 10px; }
.btnrow > * { flex: 1; }
.seg { display: flex; padding: 4px; border-radius: 16px; background: rgba(0,0,0,.22); gap: 4px; }
.seg button { flex: 1; height: 34px; border-radius: 12px; font-size: 13px; color: var(--muted); transition: all .25s var(--spring); }
.seg button.on { background: rgba(255,255,255,.14); color: var(--text); box-shadow: inset 0 1px 0 rgba(255,255,255,.15); }
.wait { display: flex; align-items: center; gap: 12px; }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(179,168,255,.6); animation: pulse 1.8s infinite; flex: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(179,168,255,0) } 100% { box-shadow: 0 0 0 0 rgba(179,168,255,0) } }
.label { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); font-weight: 600; }
.small { font-size: 12.5px; color: var(--muted); line-height: 1.45; }

/* ───── шапка чата (экран 02) ───── */
.chat { padding: 0; }
.header { position: absolute; z-index: 5; top: calc(var(--sat) + 10px); left: 14px; right: 14px; height: 58px; border-radius: 30px;
  display: flex; align-items: center; padding: 0 6px; gap: 4px; }
.avs { display: flex; margin-left: 2px; }
.av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 12.5px; font-weight: 600; color: #fff;
  background: var(--grad); border: 1.5px solid rgba(20, 20, 50, .8); }
.av + .av { margin-left: -8px; background: var(--grad2); }
.htxt { flex: 1; min-width: 0; margin-left: 8px; text-align: left; }
.htitle { font-weight: 600; font-size: 16px; line-height: 1.15; }
.hsub { font-size: 11.5px; color: var(--muted); display: flex; align-items: center; gap: 4px; white-space: nowrap; overflow: hidden; }
.hsub .ic { color: var(--mint); }
.hsub.warn .ic { color: #FFD48F; }

/* ───── лента ───── */
.feed { position: absolute; inset: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: calc(var(--sat) + 84px) 16px calc(var(--sab) + 104px);
  display: flex; flex-direction: column; gap: 6px; scroll-behavior: smooth; }
.feed::-webkit-scrollbar { display: none; }
.caps { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 10px 0 14px; }
.caps .pill:first-child { letter-spacing: .14em; font-size: 11px; font-weight: 600; text-transform: uppercase; padding: 6px 14px; }
.sys { align-self: center; font-size: 12px; color: var(--muted); padding: 4px 12px; margin: 4px 0; text-align: center; }
.sys.alert { color: #FFD48F; }

.msg { display: flex; flex-direction: column; max-width: 78%; animation: pop .26s var(--spring); position: relative; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.96) } }
.msg.mine { align-self: flex-end; align-items: flex-end; }
.msg.theirs { align-self: flex-start; align-items: flex-start; }
.bubble { padding: 10px 14px; border-radius: 23px; font-size: 16px; line-height: 1.3; white-space: pre-wrap; word-wrap: break-word; overflow-wrap: anywhere; position: relative;
  transition: transform .2s var(--spring), filter .3s; }
.theirs .bubble { border-bottom-left-radius: 8px; }
.mine .bubble { background: var(--grad); color: #fff; border-bottom-right-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 12px 28px -10px rgba(108, 140, 255, .75); }
.bubble:active { transform: scale(.98); }
.hidden-text .bubble .t { filter: blur(7px); transition: filter .2s; }
.hidden-text .bubble.reveal .t { filter: none; }
.meta { display: flex; align-items: center; gap: 4px; font-size: 10.5px; color: var(--dim); margin: 3px 6px 6px; }
.meta .ic { color: var(--dim); }
.meta .read { color: var(--accent); }
.meta .left { opacity: .8; }
.msg.dying { animation: dissolve .9s ease forwards; }
@keyframes dissolve { to { opacity: 0; filter: blur(10px); transform: scale(.94); } }
.quote { border-left: 2px solid var(--dawn); padding: 0 0 0 9px; margin: 2px 0 6px; font-size: 13px; color: #E9E2FF; }
.mine .quote { border-color: rgba(255,255,255,.75); color: rgba(255,255,255,.9); }
.quote b { display: block; font-size: 11px; font-weight: 600; color: var(--dawn); }
.mine .quote b { color: #fff; }
.react { position: absolute; right: -8px; bottom: 16px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: var(--dawn);
  background: rgba(40, 30, 80, .9); border: 1px solid var(--glass-line); animation: pop .3s var(--spring); }
.mine .react { right: auto; left: -8px; }
.react .ic { fill: currentColor; stroke: none; }

/* фото */
.photo { width: 196px; height: 196px; border-radius: 26px; overflow: hidden; position: relative; padding: 0; display: block; }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo .veil { position: absolute; inset: 0; -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px); background: rgba(30, 25, 70, .35); }
.photo .pill { position: absolute; left: 10px; bottom: 10px; background: rgba(20, 18, 45, .55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #fff; font-weight: 500; }
.photo.stub { height: auto; width: auto; padding: 10px 14px; border-radius: 23px; color: var(--muted); font-size: 14px; display: flex; gap: 8px; align-items: center; }
.progress { position: absolute; left: 12px; right: 12px; bottom: 12px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.2); overflow: hidden; }
.progress i { display: block; height: 100%; background: #fff; width: 0; transition: width .2s; }

/* голос */
.voice { display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; min-width: 210px; }
.vplay { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .9); color: #6C70F5; flex: none; }
.theirs .vplay { background: var(--grad); color: #fff; }
.vplay .ic { fill: currentColor; stroke: none; }
.vplay .ic path + path { stroke: currentColor; stroke-width: 2.5; }
.wave { display: flex; align-items: center; gap: 2px; height: 26px; flex: 1; }
.wave i { width: 2.5px; border-radius: 2px; background: rgba(255, 255, 255, .55); }
.wave i.on { background: #fff; }
.theirs .wave i { background: rgba(179, 168, 255, .45); }
.theirs .wave i.on { background: var(--accent); }
.vdur { font-size: 11.5px; opacity: .85; font-variant-numeric: tabular-nums; }

.typing { align-self: flex-start; display: flex; gap: 4px; padding: 12px 14px; border-radius: 20px; margin-top: 4px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #C9CBEA; animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s } .typing i:nth-child(3) { animation-delay: .3s }
@keyframes blink { 0%, 60%, 100% { opacity: .3; transform: translateY(0) } 30% { opacity: 1; transform: translateY(-2px) } }

/* ───── поле ввода ───── */
.composer { position: absolute; z-index: 5; left: 14px; right: 14px; bottom: calc(var(--sab) + 14px); display: flex; align-items: flex-end; gap: 8px; }
.cbtn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none; color: #E6E7FF; transition: transform .2s var(--spring); }
.cbtn:active { transform: scale(.9); }
.field { flex: 1; min-height: 44px; border-radius: 22px; display: flex; align-items: flex-end; padding: 0 6px 0 16px; }
.field textarea { flex: 1; background: none; border: 0; outline: 0; resize: none; font-size: 16px; line-height: 1.3; padding: 11px 0; max-height: 120px; -webkit-user-select: text; user-select: text; }
.field textarea::placeholder { color: var(--dim); }
.tbtn { height: 44px; min-width: 34px; display: flex; align-items: center; justify-content: center; gap: 2px; color: var(--muted); font-size: 11px; font-weight: 600; }
.tbtn.set { color: var(--accent); }
.send { background: var(--grad); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 0 22px rgba(130, 140, 255, .75); }
.rec { background: rgba(255, 110, 150, .2); color: var(--danger); animation: recpulse 1.4s infinite; }
@keyframes recpulse { 50% { box-shadow: 0 0 0 8px rgba(255, 110, 150, 0), 0 0 18px rgba(255,110,150,.5) } }
.replybar { position: absolute; z-index: 5; left: 14px; right: 14px; bottom: calc(var(--sab) + 66px); border-radius: 18px; padding: 8px 8px 8px 14px; display: flex; align-items: center; gap: 8px; font-size: 13px; animation: pop .25s var(--spring); }
.replybar .quote { flex: 1; margin: 0; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.locked-input { position: absolute; z-index: 5; left: 14px; right: 14px; bottom: calc(var(--sab) + 14px); border-radius: 22px; padding: 13px 16px; font-size: 13.5px; color: var(--muted); text-align: center; }

/* ───── экраны 04/05 ───── */
.topbar { display: flex; align-items: center; height: 44px; margin: 0 -6px 4px; }
.topbar h2 { flex: 1; text-align: center; font-size: 16px; font-weight: 600; margin: 0; }
.topbar .done { color: var(--accent); font-weight: 500; padding: 0 8px; min-width: 56px; text-align: right; }
.scroll { flex: 1; overflow-y: auto; margin: 0 -18px; padding: 0 18px 24px; }
.scroll::-webkit-scrollbar { display: none; }
.bigavs { display: flex; justify-content: center; margin: 18px 0 14px; }
.bigav { width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; font: 300 38px/1 var(--display); color: #fff; background: var(--grad);
  box-shadow: 0 0 40px rgba(140, 130, 255, .55), inset 0 1px 0 rgba(255,255,255,.4); border: 2px solid rgba(15, 15, 40, .9); }
.bigav + .bigav { margin-left: -18px; background: var(--grad2); box-shadow: 0 0 40px rgba(255, 160, 220, .35), inset 0 1px 0 rgba(255,255,255,.4); }
.bigname { text-align: center; font: 200 34px/1.1 var(--display); letter-spacing: -.02em; }
.bigsub { text-align: center; color: var(--muted); font-size: 13px; margin: 6px 0 22px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-radius: 22px; margin-bottom: 14px; }
.stat { text-align: center; padding: 14px 4px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat b { display: block; font: 300 23px/1.1 var(--display); }
.stat span { font-size: 11px; color: var(--dim); }
.group { border-radius: 22px; overflow: hidden; margin-bottom: 14px; }
.row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; width: 100%; text-align: left; min-height: 56px; }
.row + .row { border-top: 1px solid var(--line); }
button.row:active { background: rgba(255,255,255,.05); }
.row-ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, .07); color: #D8DAF5; flex: none; }
.row-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.row-t { font-size: 14.5px; font-weight: 500; }
.row-s { font-size: 11.5px; color: var(--dim); margin-top: 1px; }
.row-r { font-size: 13px; color: var(--muted); }
.row-chev { color: var(--dim); margin-left: -6px; }
.tgl { width: 48px; height: 29px; border-radius: 99px; background: rgba(255, 255, 255, .14); position: relative; flex: none; transition: background .3s, box-shadow .3s; }
.tgl .knob { position: absolute; top: 3px; left: 3px; width: 23px; height: 23px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.3); transition: transform .35s var(--spring); }
.tgl.on { background: var(--grad); box-shadow: 0 0 16px rgba(120, 130, 255, .55); }
.tgl.on .knob { transform: translateX(19px); }
.tgl[disabled] { opacity: .55; }

.keycard { display: flex; gap: 18px; align-items: center; border-radius: 26px; padding: 18px; margin: 8px 0 12px; }
.fpgrid { display: grid; grid-template-columns: repeat(7, 12px); gap: 5px; flex: none; }
.fpgrid i { width: 12px; height: 12px; border-radius: 50%; }
.fpgrid i.c1 { background: #8F86FF; box-shadow: 0 0 8px rgba(143,134,255,.6); }
.fpgrid i.c2 { background: #6C8CFF; box-shadow: 0 0 8px rgba(108,140,255,.6); }
.fpgrid i.c3 { background: #E5A6E8; box-shadow: 0 0 8px rgba(255,180,214,.5); }
.fphex { font: 500 12.5px/1.75 ui-monospace, "SF Mono", Menlo, monospace; color: #E0E1FA; letter-spacing: .04em; }
.fphex .label { display: flex; align-items: center; gap: 5px; margin-bottom: 4px; font-size: 9.5px; }
.note { text-align: center; color: var(--dim); font-size: 12px; line-height: 1.5; margin: 12px 8px; }

/* ───── SAS ───── */
.sas { display: flex; justify-content: center; gap: 10px; font-size: 40px; margin: 18px 0 10px; }
.sas span { width: 54px; height: 60px; border-radius: 18px; display: grid; place-items: center; animation: pop .4s var(--spring) backwards; }
.sas span:nth-child(2) { animation-delay: .06s } .sas span:nth-child(3) { animation-delay: .12s } .sas span:nth-child(4) { animation-delay: .18s } .sas span:nth-child(5) { animation-delay: .24s }

/* ───── sheet ───── */
.sheet-wrap { position: absolute; inset: 0; z-index: 50; pointer-events: none; }
.sheet-wrap.in { pointer-events: auto; }
.sheet-back { position: absolute; inset: 0; background: rgba(3, 4, 12, .55); opacity: 0; transition: opacity .35s; }
.sheet-wrap.in .sheet-back { opacity: 1; }
.sheet { position: absolute; left: 8px; right: 8px; bottom: calc(var(--sab) + 8px); border-radius: 32px; padding: 10px 20px 20px; transform: translateY(110%);
  transition: transform .45s var(--spring); max-height: 86%; overflow-y: auto; background: linear-gradient(165deg, rgba(40, 36, 90, .82), rgba(18, 18, 46, .9)); }
.sheet-wrap.in .sheet { transform: none; }
.grab { width: 38px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.22); margin: 0 auto 14px; }
.sheet h3 { font: 300 24px/1.2 var(--display); margin: 4px 0 6px; text-align: center; letter-spacing: -.01em; }
.sheet p { color: var(--muted); font-size: 14px; text-align: center; margin: 0 0 16px; line-height: 1.45; }
.sheet .cta + .cta { margin-top: 10px; }
.menu .row { border-radius: 0; }
.list { text-align: left !important; padding-left: 18px; }
.list li { margin-bottom: 8px; }

/* ───── звонок ───── */
.call { position: absolute; inset: 0; z-index: 40; display: flex; flex-direction: column; align-items: center; padding: calc(var(--sat) + 70px) 24px calc(var(--sab) + 40px);
  background: radial-gradient(70% 50% at 50% 30%, rgba(130, 110, 255, .55), transparent 70%), rgba(7, 9, 24, .92);
  -webkit-backdrop-filter: blur(30px); backdrop-filter: blur(30px); animation: fadein .35s ease; }
@keyframes fadein { from { opacity: 0 } }
.call .bigav { width: 120px; height: 120px; font-size: 46px; animation: breathe 2.6s ease-in-out infinite; }
@keyframes breathe { 50% { box-shadow: 0 0 70px rgba(150, 130, 255, .8), inset 0 1px 0 rgba(255,255,255,.4); } }
.call .ctitle { font: 200 34px/1.2 var(--display); margin-top: 26px; }
.call .cstate { color: var(--muted); margin-top: 6px; font-variant-numeric: tabular-nums; }
.call .sas { font-size: 30px; gap: 8px; margin-top: 30px; }
.call .sas span { width: 46px; height: 50px; }
.cbtns { display: flex; gap: 28px; margin-top: auto; }
.cbig { width: 70px; height: 70px; border-radius: 50%; display: grid; place-items: center; }
.cbig.red { background: #FF5C7C; box-shadow: 0 10px 30px -8px rgba(255, 92, 124, .8); color: #fff; }
.cbig.green { background: #3ECF8E; box-shadow: 0 10px 30px -8px rgba(62, 207, 142, .8); color: #fff; }
.cbig.on { background: #fff; color: #222; }
.clabel { font-size: 12px; color: var(--muted); text-align: center; margin-top: 8px; }

/* ───── тревога, конец ───── */
.alarm { background: radial-gradient(80% 50% at 50% 20%, rgba(255, 70, 110, .45), transparent 70%), #12060c; }
.alarm .bigico { color: #FF7C9C; }
.bigico { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 22px; }
.endtitle { font: 200 32px/1.2 var(--display); letter-spacing: -.02em; margin: 0 0 10px; }

/* ───── шторка приватности, блокировка ───── */
#shield { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; background: rgba(7, 9, 24, .7);
  -webkit-backdrop-filter: blur(40px); backdrop-filter: blur(40px); }
body.shielded #shield { display: grid; }
.shield-logo { width: 72px; height: 48px; }
.lock { position: absolute; inset: 0; z-index: 60; background: rgba(7, 9, 24, .78); -webkit-backdrop-filter: blur(34px); backdrop-filter: blur(34px); }

.toast { position: fixed; left: 50%; top: calc(var(--sat) + 16px); transform: translate(-50%, -30px); opacity: 0; z-index: 200; padding: 10px 18px; border-radius: 18px; font-size: 13.5px;
  transition: all .4s var(--spring); max-width: 90%; text-align: center; background: linear-gradient(165deg, rgba(50, 46, 110, .9), rgba(24, 24, 60, .92)); }
.toast.in { transform: translate(-50%, 0); opacity: 1; }
.toast.bad { color: #FFC1D2; }

.viewer { position: absolute; inset: 0; z-index: 70; background: rgba(0, 0, 0, .94); display: grid; place-items: center; animation: fadein .25s; }
.viewer img { max-width: 100%; max-height: 100%; }
.viewer .iconbtn { position: absolute; top: calc(var(--sat) + 14px); right: 14px; background: rgba(255,255,255,.1); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .screen.enter, .screen.leave { filter: none; }
}
