@font-face { font-family: 'Unbounded'; src: url(fonts/unbounded-cyrillic-wght-normal.woff2) format('woff2'); font-weight: 200 900; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Unbounded'; src: url(fonts/unbounded-latin-wght-normal.woff2) format('woff2'); font-weight: 200 900; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Onest'; src: url(fonts/onest-cyrillic-wght-normal.woff2) format('woff2'); font-weight: 100 900; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; src: url(fonts/onest-latin-wght-normal.woff2) format('woff2'); font-weight: 100 900; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --ink: #110e28;        /* base: midnight */
  --ink-2: #15122f;
  --plum: #1c1840;       /* panels */
  --plum-2: #28235a;     /* raised */
  --line: #39337a;
  --paper: #f2f0ff;      /* text */
  --muted: #aaa5db;
  --ice: #5ff0e4;        /* encrypted / safe / primary action */
  --ice-ink: #06302d;
  --glow-ice: 0 0 0 1px color-mix(in srgb, var(--ice) 40%, transparent), 0 8px 28px -6px color-mix(in srgb, var(--ice) 55%, transparent);
  --ember: #ff8a5b;      /* disappears / destroys */
  --radius-bubble: 16px;
  --display: 'Unbounded', system-ui, sans-serif;
  --body: 'Onest', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { background: var(--ink); color: var(--paper); font: 15px/1.5 var(--body); overflow: hidden; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ice); outline-offset: 2px; }
* { scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 5px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-track { background: transparent; }

.btn { border: 0; border-radius: 999px; padding: 10px 20px; font-weight: 600; cursor: pointer; background: var(--plum-2); }
.btn.primary { background: linear-gradient(180deg, color-mix(in srgb, var(--ice) 72%, #fff), var(--ice)); color: var(--ice-ink); box-shadow: var(--glow-ice); transition: transform .15s, box-shadow .2s, filter .2s; }
.btn.primary:hover:not(:disabled) { filter: brightness(1.06); transform: translateY(-1px); }
.btn.primary:active:not(:disabled) { transform: translateY(0) scale(.98); }
.btn { transition: background .15s, transform .15s; }
.btn.danger { background: var(--ember); color: #3a1206; }
.btn.quiet { background: transparent; color: var(--muted); }
.btn:disabled { opacity: .5; cursor: progress; }
.icon-btn { width: 34px; height: 34px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; font-size: 17px; flex: none; }
.icon-btn:hover { background: var(--plum-2); color: var(--paper); }
.link-btn { border: 0; background: none; padding: 0; color: var(--muted); cursor: pointer; font-size: 12px; text-align: left; }
.link-btn:hover { color: var(--ice); }
input, textarea, select { background: var(--ink); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; width: 100%; }
input:focus, textarea:focus, select:focus { border-color: var(--ice); outline: none; }
label { display: grid; gap: 6px; color: var(--muted); font-size: 13px; }
.form-error { color: var(--ember); min-height: 1.5em; margin: 0; font-size: 14px; }

/* ---------- onboarding ---------- */
.onboard { position: fixed; inset: 0; display: grid; place-items: center; }
#vortex-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.onboard-card { position: relative; width: min(420px, 92vw); display: grid; gap: 16px; padding: 32px; background: color-mix(in srgb, var(--plum) 86%, transparent); border: 1px solid var(--line); border-radius: 24px; backdrop-filter: blur(14px); }
.wordmark { font: 800 40px/1 var(--display); letter-spacing: -0.02em; margin: 0; display: flex; align-items: center; gap: 14px; }
.wordmark img { width: 58px; height: 58px; flex: none; filter: drop-shadow(0 0 16px color-mix(in srgb, var(--ice) 40%, transparent)); animation: breathe 5s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.05) rotate(-6deg); } }
.onboard-card { box-shadow: 0 30px 80px -30px #000, inset 0 1px 0 color-mix(in srgb, var(--paper) 8%, transparent); }
.lede { margin: 0; color: var(--muted); }
.colors { border: 0; padding: 0; margin: 0; display: flex; gap: 10px; }
.colors legend { color: var(--muted); font-size: 13px; margin-bottom: 6px; }
.swatch { width: 30px; height: 30px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; padding: 0; }
.swatch[aria-pressed="true"] { border-color: var(--paper); box-shadow: 0 0 0 3px var(--ink) inset; }
.advanced summary { cursor: pointer; color: var(--muted); font-size: 13px; }
.advanced label { margin-top: 8px; }
.onboard.forging .onboard-card { animation: card-in-vortex 1.2s cubic-bezier(.6,0,.3,1) forwards; }
@keyframes card-in-vortex { to { transform: rotate(-200deg) scale(.05); opacity: 0; filter: blur(6px); } }

/* ---------- layout ---------- */
body::before { content: ''; position: fixed; inset: -20%; pointer-events: none; z-index: 0; opacity: .55;
  background: radial-gradient(40% 35% at 15% 10%, color-mix(in srgb, var(--ice) 14%, transparent), transparent 70%),
              radial-gradient(35% 30% at 90% 95%, color-mix(in srgb, #8b6cff 22%, transparent), transparent 70%),
              radial-gradient(30% 25% at 80% 5%, color-mix(in srgb, var(--ember) 9%, transparent), transparent 70%);
  animation: aurora 26s ease-in-out infinite alternate; }
@keyframes aurora { to { transform: translate3d(4%, -3%, 0) rotate(8deg); } }
.app, .onboard, .call, .ringing { position: relative; z-index: 1; }
.onboard { position: fixed; }
.app { display: grid; grid-template-columns: 72px 264px 1fr; height: 100vh; }
.rail { background: color-mix(in srgb, var(--ink) 80%, transparent); display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 14px 0; overflow-y: auto; }
.rail-spaces { display: contents; }
.rail-item { width: 48px; height: 48px; border-radius: 16px; border: 0; background: var(--plum-2); cursor: pointer; font: 700 15px var(--display); color: var(--paper); position: relative; transition: border-radius .2s; flex: none; }
.rail-item:hover, .rail-item.active { border-radius: 12px; }
.rail-item.active::before { content: ''; position: absolute; left: -12px; top: 10px; bottom: 10px; width: 4px; border-radius: 0 4px 4px 0; background: var(--paper); }
.rail-item.home { display: grid; place-items: center; color: var(--muted); }
.rail-item.home.active, .rail-item.home:hover { color: var(--ice); }
/* The logo: the same living mark as the website. It breathes slowly, springs on hover and leads home. */
.rail-logo { width: 48px; height: 48px; display: grid; place-items: center; flex: none; border-radius: 16px; }
.rail-logo img { width: 38px; height: 38px; filter: drop-shadow(0 0 8px color-mix(in srgb, var(--ice) 45%, transparent)); animation: logo-drift 7s ease-in-out infinite; transition: transform .6s cubic-bezier(.3,1.4,.5,1), filter .3s; }
.rail-logo:hover img, .rail-logo:focus-visible img { animation-play-state: paused; transform: rotate(-24deg) scale(1.1); filter: drop-shadow(0 0 14px color-mix(in srgb, var(--ice) 70%, transparent)); }
.rail-logo:active img { transform: rotate(-200deg) scale(.9); transition-duration: .4s; }
@keyframes logo-drift { 0%, 100% { rotate: 0deg; scale: 1; } 50% { rotate: -12deg; scale: 1.05; } }
/* Leaving for the website: the app folds into the vortex. */
html.leaving body::after { content: ''; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: 0;
  background: url(mark-256.webp) center / 160px no-repeat, radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--ice) 22%, transparent) 0, transparent 34%), #110e28;
  animation: leave-in .62s cubic-bezier(.6,0,.3,1) forwards; }
html.leaving .app { transition: transform .62s cubic-bezier(.7,0,.3,1), filter .62s, opacity .5s; transform: scale(.86) rotate(3deg); filter: blur(8px); opacity: .2; }
@keyframes leave-in { 0% { opacity: 0; background-size: 2400px, 100% 100%, auto; } 100% { opacity: 1; background-size: 160px, 100% 100%, auto; } }
@media (prefers-reduced-motion: reduce) { .rail-logo img { animation: none; } }
.rail-item.add { background: transparent; border: 1.5px dashed var(--line); color: var(--ice); font-size: 22px; }
.rail-item .badge { position: absolute; right: -3px; bottom: -3px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--ember); color: #3a1206; font: 700 11px/18px var(--body); padding: 0 5px; }
.rail-sep { width: 28px; height: 2px; background: var(--line); border-radius: 1px; }

.sidebar { background: color-mix(in srgb, var(--plum) 88%, transparent); backdrop-filter: blur(20px); border-right: 1px solid color-mix(in srgb, var(--line) 55%, transparent); display: flex; flex-direction: column; min-width: 0; }
.side-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 12px 12px 18px; border-bottom: 1px solid var(--line); }
.side-head h2 { font: 700 15px var(--display); margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-list { flex: 1; overflow-y: auto; padding: 10px 8px; }
.side-group { color: var(--muted); font-size: 12px; padding: 14px 10px 6px; }
.side-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 10px; background: none; cursor: pointer; text-align: left; color: var(--muted); }
.side-row:hover { background: var(--plum-2); color: var(--paper); }
.side-row.active { background: var(--plum-2); color: var(--paper); }
.side-row .row-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-row .unread { width: 8px; height: 8px; border-radius: 50%; background: var(--ice); }
.side-row .hash { color: var(--line); font-weight: 700; width: 18px; text-align: center; }
.verified-mark { color: var(--ice); font-size: 12px; }
.empty-side { color: var(--muted); padding: 18px 10px; font-size: 14px; }

.avatar { width: 32px; height: 32px; border-radius: 50%; display: inline-grid; place-items: center; font: 700 13px var(--display); color: var(--ink); flex: none; }
.userbar { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 12px; background: color-mix(in srgb, var(--ink) 55%, var(--plum)); }
.userbar-name { flex: 1; min-width: 0; display: grid; }
.userbar-name strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
.userbar-sub { display: flex; align-items: center; gap: 12px; }
.ghost-toggle { display: flex; align-items: center; gap: 5px; border: 0; background: none; padding: 0; cursor: pointer; font-size: 12px; color: var(--muted); }
.ghost-toggle:hover { color: var(--paper); }
.ghost-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.ghost-toggle[aria-checked="false"] .ghost-dot { background: var(--ice); }
.ghost-toggle[aria-checked="false"] .ghost-label::after { content: ''; }

/* ---------- chat ---------- */
.chat { display: flex; flex-direction: column; min-width: 0; background: color-mix(in srgb, var(--plum) 45%, var(--ink)); }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); min-height: 61px; }
.chat-head h3 { margin: 0; font: 700 16px var(--display); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seal { display: inline-flex; align-items: center; gap: 6px; color: var(--ice); font-size: 12px; border: 1px solid color-mix(in srgb, var(--ice) 40%, transparent); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.seal.warn { color: var(--muted); border-color: var(--line); }

.messages { flex: 1; overflow-y: auto; padding: 20px 20px 8px; display: flex; flex-direction: column; gap: 4px; }
.day-empty { margin: auto; text-align: center; max-width: 380px; color: var(--muted); }
.day-empty h4 { font: 700 20px/1.3 var(--display); color: var(--paper); margin: 0 0 8px; }
.msg { display: flex; gap: 10px; max-width: min(680px, 86%); align-items: flex-end; }
.msg.out { align-self: flex-end; flex-direction: row-reverse; }
.msg .avatar { width: 28px; height: 28px; font-size: 11px; }
.msg.grouped .avatar { visibility: hidden; }
.bubble { background: var(--plum-2); padding: 9px 13px; border-radius: var(--radius-bubble) var(--radius-bubble) var(--radius-bubble) 5px; position: relative; overflow-wrap: anywhere; white-space: pre-wrap; }
.msg.out .bubble { background: linear-gradient(160deg, color-mix(in srgb, var(--ice) 30%, var(--plum-2)), color-mix(in srgb, var(--ice) 14%, var(--plum-2))); box-shadow: inset 0 1px 0 color-mix(in srgb, var(--ice) 25%, transparent); border-radius: var(--radius-bubble) var(--radius-bubble) 5px var(--radius-bubble); }
.bubble .who { display: block; font-size: 12px; font-weight: 600; margin-bottom: 2px; }
.msg.grouped .who { display: none; }
.meta { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--muted); margin-top: 3px; justify-content: flex-end; }
.meta .unsend { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 11px; padding: 0; opacity: 0; }
.msg:hover .meta .unsend, .meta .unsend:focus-visible { opacity: 1; }
.meta .unsend:hover { color: var(--ember); }
.dead-man-note { color: var(--ember); font-size: 12px; display: block; margin-bottom: 4px; }

/* self-destruct ring: fills as the message runs out of time */
.burn { --p: 0; width: 16px; height: 16px; border-radius: 50%; background: conic-gradient(var(--ember) calc(var(--p) * 1turn), color-mix(in srgb, var(--ember) 22%, transparent) 0); flex: none; }
.msg.burning .bubble { box-shadow: 0 0 0 1px color-mix(in srgb, var(--ember) 45%, transparent); }
.msg.vanish { animation: vanish .9s cubic-bezier(.7,0,.3,1) forwards; pointer-events: none; }
@keyframes vanish { 60% { filter: blur(2px); } to { transform: rotate(160deg) scale(.1); opacity: 0; filter: blur(8px); } }

/* new messages resolve from cipher glyphs into text */
.msg.arrive .bubble { animation: arrive .35s ease-out; }
@keyframes arrive { from { opacity: 0; transform: translateY(6px); } }
.msg.out.arrive .bubble { animation: launch .55s cubic-bezier(.2,.9,.25,1.15); }
@keyframes launch { 0% { opacity: 0; transform: translateY(18px) scale(.92); filter: blur(3px); box-shadow: 0 0 0 0 color-mix(in srgb, var(--ice) 70%, transparent); } 60% { opacity: 1; filter: none; } 100% { box-shadow: 0 0 0 14px transparent; } }
.composer .send.fired { animation: fired .5s ease-out; }
@keyframes fired { 30% { transform: scale(.92); } 100% { box-shadow: 0 0 0 16px transparent; } }
.composer .send.fired svg { animation: fly .5s ease-in; }
@keyframes fly { 50% { transform: translate(14px, -14px); opacity: 0; } 51% { transform: translate(-10px, 10px); opacity: 0; } }

.file-chip { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; padding: 7px 11px; border-radius: 10px; background: color-mix(in srgb, var(--ink) 60%, transparent); border: 1px solid var(--line); cursor: pointer; color: var(--paper); font-size: 13px; }
.file-chip:hover { border-color: var(--ice); }
.pending-files { display: flex; gap: 6px; flex-wrap: wrap; }
.pending-files:empty { display: none; }
.pending-files .file-chip { margin: 0 0 6px; cursor: default; }
.pending-files .file-chip button { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 0; }

.composer { display: flex; align-items: flex-end; gap: 8px; padding: 12px 20px 18px; }
.composer-field { flex: 1; min-width: 0; }
.composer textarea { resize: none; max-height: 180px; border-radius: 14px; background: var(--plum); line-height: 1.45; }
.timer-pick { position: relative; display: flex; align-items: center; gap: 0; }
.timer-pick select { width: auto; padding: 10px 10px 10px 30px; border-radius: 999px; background: var(--plum); cursor: pointer; appearance: none; color: var(--muted); }
.timer-pick select.on { color: var(--ember); border-color: color-mix(in srgb, var(--ember) 55%, transparent); }
.timer-icon { position: absolute; left: 11px; width: 13px; height: 13px; border-radius: 50%; border: 2px solid currentColor; color: var(--muted); pointer-events: none; }
.timer-pick:has(select.on) .timer-icon { color: var(--ember); }
.send { padding: 11px 20px; }

/* ---------- modals ---------- */
.overlay { position: fixed; inset: 0; background: color-mix(in srgb, var(--ink) 70%, transparent); display: grid; place-items: center; z-index: 20; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.modal { width: min(480px, 92vw); max-height: 88vh; overflow-y: auto; background: var(--plum); border: 1px solid var(--line); border-radius: 22px; padding: 26px; display: grid; gap: 16px; animation: pop .2s ease-out; }
@keyframes pop { from { transform: scale(.96); opacity: 0; } }
.modal h3 { margin: 0; font: 700 19px/1.3 var(--display); }
.modal p { margin: 0; color: var(--muted); }
.modal .actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.modal .wide { width: min(640px, 94vw); }
.check-list { display: grid; gap: 6px; max-height: 220px; overflow-y: auto; }
.check-list label { display: flex; align-items: center; gap: 10px; color: var(--paper); font-size: 14px; padding: 6px 8px; border-radius: 10px; background: var(--ink); }
.check-list input { width: auto; }
.code-box { display: flex; gap: 8px; align-items: center; }
.code-box code { flex: 1; font-size: 13px; background: var(--ink); padding: 10px 12px; border-radius: 12px; overflow-wrap: anywhere; color: var(--ice); }
.qr-pair { display: flex; gap: 18px; align-items: center; }
.qr-pair img { width: 150px; height: 150px; border-radius: 14px; flex: none; }
.safety-digits { font: 600 20px/1.6 var(--display); letter-spacing: .04em; color: var(--paper); word-spacing: .35em; }
.settings-section { display: grid; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.settings-section h4 { margin: 0; font: 700 14px var(--display); }
.settings-section.danger h4 { color: var(--ember); }
.row { display: flex; gap: 10px; align-items: center; }

/* panic: hold to confirm */
.hold { position: relative; overflow: hidden; }
.hold::before { content: ''; position: absolute; inset: 0; background: color-mix(in srgb, #3a1206 35%, transparent); transform-origin: left; transform: scaleX(var(--hold, 0)); }
.hold span { position: relative; }

.collapse { position: fixed; inset: 0; z-index: 50; background: radial-gradient(circle at 50% 50%, transparent 0, var(--ink) 70%); animation: collapse 1.1s cubic-bezier(.7,0,.2,1) forwards; }
body.collapsing .app { animation: suck 1s cubic-bezier(.7,0,.2,1) forwards; }
@keyframes suck { to { transform: rotate(220deg) scale(0); opacity: 0; filter: blur(10px); } }
@keyframes collapse { from { opacity: 0; } to { opacity: 1; } }

.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); background: var(--paper); color: var(--ink); padding: 10px 18px; border-radius: 999px; font-weight: 600; z-index: 60; animation: pop .2s; max-width: 80vw; }
.toast.error { background: var(--ember); color: #3a1206; }

@media (max-width: 1000px) { .app { grid-template-columns: 64px 220px 1fr; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- v4.1 additions ---------- */
.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: middle; }
.i.sm { width: 16px; height: 16px; }
.i.lg { width: 40px; height: 40px; stroke-width: 1.4; }
.i circle[r="1.2"] { fill: currentColor; }
.icon-btn { display: inline-grid; place-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.rail-item.add { display: grid; place-items: center; }
.invite-note { margin: 0; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--ice) 16%, var(--plum-2)); color: var(--paper); font-size: 14px; }
.ghost-toggle[aria-checked="false"] { color: var(--ice); }
.timer-pick .timer-icon { position: absolute; left: 11px; width: 15px; height: 15px; border: 0; border-radius: 0; color: var(--muted); }

/* message actions appear on hover/focus */
.msg { position: relative; }
.msg-body { position: relative; min-width: 0; }
.actions-bar { position: absolute; top: -22px; right: 6px; display: flex; gap: 2px; padding: 3px; border-radius: 12px; background: var(--plum); border: 1px solid var(--line); opacity: 0; pointer-events: none; transition: opacity .12s; z-index: 2; }
.msg.out .actions-bar { right: auto; left: 6px; }
.msg:hover .actions-bar, .msg:focus-within .actions-bar { opacity: 1; pointer-events: auto; }
.actions-bar button { width: 30px; height: 30px; border: 0; border-radius: 8px; background: none; color: var(--muted); cursor: pointer; display: grid; place-items: center; font-size: 16px; }
.actions-bar button:hover { background: var(--plum-2); color: var(--paper); }
.actions-bar button.danger:hover { color: var(--ember); }
.react-pop { display: flex; gap: 2px; }
.react-pop[hidden] { display: none; }

.quote { display: block; border-left: 3px solid var(--ice); padding: 2px 0 2px 8px; margin-bottom: 6px; color: var(--muted); font-size: 13px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 420px; }
.quote b { color: var(--paper); font-weight: 600; }
.msg.flash .bubble { animation: flash 1.2s ease-out; }
@keyframes flash { 0%, 30% { box-shadow: 0 0 0 3px var(--ice); } }

.reactions { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.msg.out .reactions { justify-content: flex-end; }
.reaction { border: 1px solid var(--line); background: var(--plum); border-radius: 999px; padding: 1px 8px; font-size: 13px; cursor: pointer; color: var(--paper); }
.reaction.mine { border-color: var(--ice); background: color-mix(in srgb, var(--ice) 18%, var(--plum)); }
.reaction small { color: var(--muted); margin-left: 3px; }

.reply-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; padding: 6px 10px; border-left: 3px solid var(--ice); background: var(--plum); border-radius: 0 10px 10px 0; font-size: 13px; color: var(--muted); }
.reply-bar span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reply-bar button { border: 0; background: none; color: var(--muted); cursor: pointer; display: grid; }

.img-preview { display: block; max-width: 360px; max-height: 300px; border-radius: 12px; margin-top: 6px; cursor: zoom-in; }
.file-chip .i { width: 15px; height: 15px; }

.drop-zone { position: absolute; inset: 12px; border: 2px dashed var(--ice); border-radius: 20px; background: color-mix(in srgb, var(--ink) 82%, transparent); display: grid; place-items: center; text-align: center; color: var(--ice); z-index: 5; pointer-events: none; }
.drop-zone p { margin: 8px 0 0; font-weight: 600; }
.chat { position: relative; }

/* settings tabs */
.modal.settings { width: min(620px, 94vw); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: -4px 0 4px; }
.tabs button { border: 0; background: none; color: var(--muted); padding: 10px 12px; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 600; }
.tabs button[aria-selected="true"] { color: var(--paper); border-bottom-color: var(--ice); }
.tabs button.danger[aria-selected="true"] { border-bottom-color: var(--ember); }
.tab-panel { display: grid; gap: 16px; min-height: 300px; align-content: start; }
.tab-panel .settings-section:first-child { border-top: 0; padding-top: 0; }
.switch-row { display: flex; align-items: flex-start; gap: 12px; color: var(--paper); font-size: 15px; }
.switch-row input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--ice); flex: none; }
.switch-row small { display: block; color: var(--muted); font-size: 13px; }

.lightbox { position: fixed; inset: 0; z-index: 40; background: color-mix(in srgb, var(--ink) 92%, transparent); display: grid; place-items: center; cursor: zoom-out; }
.lightbox img { max-width: 92vw; max-height: 90vh; border-radius: 12px; }

/* ---------- v5: linking, devices, backup, voice ---------- */
.ob-alt { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 14px; }
.ob-alt .link-btn { font-size: 14px; color: var(--ice); }
.ob-panel { display: grid; gap: 14px; }
.ob-panel .qr { width: 220px; height: 220px; border-radius: 16px; justify-self: center; }
.ob-panel .waiting { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2.5px solid var(--ice); border-right-color: transparent; animation: spin 1s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.ob-panel ol { margin: 0; padding-left: 20px; color: var(--muted); font-size: 14px; display: grid; gap: 4px; }
.ob-panel textarea { min-height: 120px; resize: vertical; }

.words { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; counter-reset: w; margin: 0; padding: 0; list-style: none; }
.words li { white-space: nowrap; counter-increment: w; background: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; font-weight: 600; font-size: 15px; }
.words li::before { content: counter(w); color: var(--muted); font-weight: 500; font-size: 12px; margin-right: 8px; display: inline-block; min-width: 1.4em; text-align: right; }
.warn-box { background: color-mix(in srgb, var(--ember) 14%, var(--plum)); border: 1px solid color-mix(in srgb, var(--ember) 45%, transparent); border-radius: 12px; padding: 10px 12px; color: var(--paper); font-size: 14px; }

.device-list { display: grid; gap: 8px; }
.device-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--ink); }
.device-row .i { color: var(--muted); }
.device-row div { flex: 1; min-width: 0; }
.device-row strong { display: block; font-size: 14px; }
.device-row small { color: var(--muted); font-size: 12px; }
.device-row .this { color: var(--ice); font-size: 12px; font-weight: 600; }

.mic { color: var(--muted); }
.recorder { display: flex; align-items: center; gap: 12px; padding: 12px 20px 18px; }
.rec-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--ember); animation: pulse 1.2s ease-in-out infinite; flex: none; }
@keyframes pulse { 50% { opacity: .35; } }
.rec-time { font-variant-numeric: tabular-nums; min-width: 3.2em; font-weight: 600; }
.rec-wave { flex: 1; min-width: 0; height: 40px; }

.voice { display: flex; align-items: center; gap: 10px; margin-top: 6px; min-width: 240px; }
.voice .play { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--ice); color: var(--ice-ink); display: grid; place-items: center; cursor: pointer; flex: none; }
.voice .play .i { fill: currentColor; stroke-width: 2; }
.voice .track { flex: 1; height: 4px; border-radius: 2px; background: var(--line); position: relative; cursor: pointer; }
.voice .track span { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 2px; background: var(--ice); }
.voice small { color: var(--muted); font-variant-numeric: tabular-nums; min-width: 2.8em; text-align: right; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); display: inline-block; }
.live-dot.on { background: var(--ice); }

/* ---------- v6: calls ---------- */
.call { position: fixed; inset: 0; z-index: 30; background: radial-gradient(circle at 50% 40%, var(--plum-2), var(--ink) 70%); display: grid; grid-template-rows: 1fr auto; }
.call .remote { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: transparent; }
.call .remote.off { display: none; }
.call .local { position: absolute; right: 24px; top: 24px; width: 220px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; border: 2px solid var(--line); background: var(--ink); transform: scaleX(-1); }
.call .local.off { display: none; }
.call-who { position: relative; align-self: center; justify-self: center; text-align: center; display: grid; gap: 14px; justify-items: center; }
.call-who.over-video { align-self: start; justify-self: start; margin: 24px; text-align: left; justify-items: start; gap: 2px; background: color-mix(in srgb, var(--ink) 60%, transparent); padding: 10px 16px; border-radius: 14px; }
.call-who .big { width: 132px; height: 132px; font-size: 44px; box-shadow: 0 0 0 0 color-mix(in srgb, var(--ice) 50%, transparent); }
.call-who.waiting .big { animation: ripple 1.8s ease-out infinite; }
@keyframes ripple { to { box-shadow: 0 0 0 36px transparent; } }
.call-who h2 { margin: 0; font: 700 26px var(--display); }
.call-who.over-video h2 { font-size: 16px; }
.call-who p { margin: 0; color: var(--muted); font-variant-numeric: tabular-nums; }
.call-bar { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 18px 0 34px; }
.call-seal { display: inline-flex; gap: 6px; align-items: center; color: var(--ice); font-size: 13px; background: color-mix(in srgb, var(--ink) 60%, transparent); padding: 4px 12px; border-radius: 999px; }
.call-buttons { display: flex; gap: 16px; }
.round { width: 58px; height: 58px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; background: var(--plum-2); color: var(--paper); }
.round .i { width: 24px; height: 24px; }
.round[aria-pressed="true"] { background: var(--paper); color: var(--ink); }
.round.hang { background: var(--ember); color: #3a1206; }
.round.hang .i { fill: currentColor; stroke-width: 1.2; }
.round.accept { background: var(--ice); color: var(--ice-ink); }
.round.accept .i { fill: currentColor; stroke-width: 1.2; }
.ringing { position: fixed; inset: 0; z-index: 35; display: grid; place-items: center; background: color-mix(in srgb, var(--ink) 80%, transparent); backdrop-filter: blur(8px); }
.ring-card { width: min(360px, 92vw); background: var(--plum); border: 1px solid var(--line); border-radius: 28px; padding: 32px; text-align: center; display: grid; gap: 10px; justify-items: center; }
.ring-avatar .avatar { width: 96px; height: 96px; font-size: 34px; animation: ripple 1.5s ease-out infinite; box-shadow: 0 0 0 0 color-mix(in srgb, var(--ice) 55%, transparent); }
.ring-card h2 { margin: 8px 0 0; font: 700 20px var(--display); }
.ring-card p { margin: 0; color: var(--muted); }
.ring-actions { display: flex; gap: 44px; margin-top: 14px; }
.call-log span { margin-left: 4px; opacity: .8; }
.call-log { align-self: center; color: var(--muted); font-size: 13px; display: inline-flex; gap: 8px; align-items: center; padding: 6px 14px; border-radius: 999px; background: var(--plum); margin: 6px 0; }
.call-log.missed { color: var(--ember); }
.head-call { color: var(--muted); }
.head-call:hover { color: var(--ice); }

/* ---------- Whirlfox Drop ---------- */
.drop-btn { color: var(--ember); }
.drop-btn:hover { color: #ffb08e; }
.drop-title { display: flex; align-items: center; gap: 10px; }
.drop-title .i { color: var(--ember); width: 24px; height: 24px; }
.drop-out { display: grid; gap: 8px; animation: pop .25s ease-out; }
.drop-out .hint { color: var(--muted); font-size: 13px; margin: 0; }
.drop-out code { word-break: break-all; }

/* ---------- rooms ---------- */
.room-rules { display: inline-flex; gap: 10px; align-items: center; margin-left: 8px; color: var(--ember); font-size: 13px; font-weight: 600; }
.room-rules .i { width: 14px; height: 14px; margin-right: 3px; vertical-align: -2px; }
.count { display: inline-block; margin-left: 8px; vertical-align: 1px; font-weight: 600; font-size: 12px; color: var(--muted); background: var(--plum-2); border-radius: 999px; padding: 2px 9px; }
.count.full { color: var(--ember); }
.announce-note { margin: 0; padding: 16px 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; display: flex; align-items: center; gap: 8px; }
.announce-note[hidden] { display: none; }
.modal .muted { color: var(--muted); margin-top: -6px; }

/* What the server saw */
.wire-side { display: grid; gap: 6px; }
.wire-side > span { font-size: 12.5px; color: var(--muted); }
.wire-plain { margin: 0; padding: 10px 12px; background: var(--ink); border-radius: 12px; color: var(--paper, #f2f0ff) !important; overflow-wrap: anywhere; }
.wire-cipher { margin: 0; max-height: 180px; overflow: auto; padding: 10px 12px; background: var(--ink); border-radius: 12px; font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--ice); white-space: pre-wrap; word-break: break-all; }
.wire-facts { margin: 0; padding-left: 18px; color: var(--muted); font-size: 13.5px; display: grid; gap: 4px; }

/* ---------------------------------------------------------------- web app */
.rail-item.install { margin-top: auto; width: 40px; height: 40px; border-radius: 12px; background: transparent; color: var(--muted); display: grid; place-items: center; opacity: .7; }
.rail-item.install:hover { color: var(--ice); opacity: 1; background: var(--plum-2); }
.back-btn { display: none; }
.modal .howto { color: var(--paper); background: var(--ink); border-radius: 12px; padding: 10px 12px; }
.modal .small-print { font-size: 13px; }
.install-tip { position: absolute; left: 20px; bottom: 86px; display: flex; align-items: center; gap: 10px; max-width: min(460px, calc(100% - 40px)); padding: 8px 8px 8px 14px; background: var(--plum); border: 1px solid var(--line); border-radius: 14px; color: var(--muted); font-size: 13.5px; z-index: 5; animation: pop .25s ease-out; }
.install-tip > .i { color: var(--ice); flex: none; }
.install-tip span { flex: 1; }
.chat { position: relative; }

/* ---------------------------------------------------------------- the Whirlfox panel */
.rail-item.hub { margin-top: auto; width: 40px; height: 40px; border-radius: 12px; background: transparent; color: var(--muted); display: grid; place-items: center; transition: color .2s, background .2s, transform .4s cubic-bezier(.3,1.4,.5,1); }
.rail-item.install:not([hidden]) ~ .rail-item.hub { margin-top: 0; }
.rail-item.hub:hover, .rail-item.hub:focus-visible { color: var(--ice); background: var(--plum-2); transform: rotate(45deg); }
.modal.hub { width: min(660px, 94vw); }
.modal.hub .tab-panel { min-height: min(470px, 56vh); }
.hub-head { display: flex; align-items: center; gap: 16px; }
.hub-head p { margin-top: 2px; }
.hub-ring { width: 64px; height: 64px; flex: none; transform: rotate(-90deg); }
.hub-ring circle { fill: none; stroke-width: 7; }
.hub-ring .track { stroke: color-mix(in srgb, var(--ice) 14%, transparent); }
.hub-ring .fill { stroke: var(--ice); stroke-linecap: round; stroke-dashoffset: var(--off); animation: ring-in 1s cubic-bezier(.2,.9,.3,1) both; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--ice) 50%, transparent)); }
@keyframes ring-in { from { stroke-dashoffset: 214; } }
.hub-tabs { overflow-x: auto; scrollbar-width: none; }
.hub-tabs button { white-space: nowrap; }
.checkup { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.checkup li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--ink); border: 1px solid transparent; animation: in-up .45s cubic-bezier(.2,.9,.3,1) both; }
.checkup li:nth-child(2) { animation-delay: .05s; } .checkup li:nth-child(3) { animation-delay: .1s; } .checkup li:nth-child(4) { animation-delay: .15s; } .checkup li:nth-child(5) { animation-delay: .2s; }
.checkup li:not(.done) { border-color: color-mix(in srgb, var(--ember) 30%, transparent); }
.checkup li > div { flex: 1; display: grid; gap: 2px; min-width: 0; }
.checkup small { color: var(--muted); font-size: 13px; line-height: 1.4; }
.checkup .tick { width: 28px; height: 28px; border-radius: 50%; flex: none; display: grid; place-items: center; border: 2px dashed color-mix(in srgb, var(--ember) 55%, transparent); }
.checkup .done .tick { border: 0; background: color-mix(in srgb, var(--ice) 16%, transparent); color: var(--ice); }
.checkup .btn { padding: 8px 14px; font-size: 13.5px; }
.hub-sub { margin: 6px 0 0; font: 700 14px var(--display); }
.hub-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.hub-tile { padding: 12px 14px; border-radius: 14px; background: var(--ink); display: grid; gap: 2px; }
.hub-tile b { font: 700 22px var(--display); color: var(--paper); }
.hub-tile span { color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.proof-card { padding: 18px; border-radius: 16px; background: radial-gradient(120% 140% at 100% 0, color-mix(in srgb, var(--ice) 14%, transparent), transparent 60%), var(--ink); border: 1px solid color-mix(in srgb, var(--ice) 25%, transparent); display: grid; gap: 10px; }
.proof-card h4 { margin: 0; font: 700 16px var(--display); }
.actions.start-left { justify-content: flex-start; }
.muted-line { color: var(--muted); font-size: 13.5px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
ul.plain { margin: 6px 0 0; padding-left: 18px; color: var(--muted); font-size: 14px; display: grid; gap: 3px; }
.tech-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tech-grid > div { padding: 14px; border-radius: 14px; background: var(--ink); display: grid; gap: 4px; align-content: start; }
.tech-grid b { font-size: 14.5px; }
.tech-grid small { color: var(--muted); font-size: 13px; line-height: 1.45; }
.company-card { display: flex; align-items: center; gap: 14px; }
.company-card img { width: 52px; height: 52px; filter: drop-shadow(0 0 10px color-mix(in srgb, var(--ice) 40%, transparent)); }
.company-card div { display: grid; }
.company-card b { font: 700 18px var(--display); }
.company-card small { color: var(--muted); }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0; padding: 14px 16px; border-radius: 14px; background: var(--ink); }
.facts dt { color: var(--muted); font-size: 13.5px; }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.hub-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.modal a { color: var(--ice); }
.contact-form { display: grid; gap: 12px; }
.contact-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact-form .opt { color: var(--muted); font-weight: 400; }
.sent { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 40px 10px; animation: in-up .5s cubic-bezier(.2,.9,.3,1) both; }
.sent .i { width: 40px; height: 40px; color: var(--ice); }
.sent b { font: 700 18px var(--display); }
.sent small { color: var(--muted); max-width: 360px; }
@media (max-width: 760px) { .two-col, .tech-grid, .contact-form .row2 { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .hub-ring .fill, .checkup li, .sent { animation: none; } .rail-item.hub:hover { transform: none; } }

/* ---------------------------------------------------------------- appearance
   Night is the default. Day keeps the same layout with light surfaces and deeper accents,
   so text on accent buttons and accent links stays readable. */
html[data-accent="violet"] { --ice: #b3a4ff; --ice-ink: #1d1450; }
html[data-accent="rose"] { --ice: #ff8fc2; --ice-ink: #47102a; }
html[data-accent="sun"] { --ice: #f5d36e; --ice-ink: #3a2a00; }
html[data-theme="day"] {
  --ink: #f4f2fb; --ink-2: #ebe8f7; --plum: #ffffff; --plum-2: #ece8fb; --line: #d8d3ef;
  --paper: #1a1636; --muted: #5f5989; --ember: #d9562a;
  --ice: #0a8f86; --ice-ink: #ffffff;
  color-scheme: light;
}
html[data-theme="day"][data-accent="violet"] { --ice: #6b4fe0; }
html[data-theme="day"][data-accent="rose"] { --ice: #c8336f; }
html[data-theme="day"][data-accent="sun"] { --ice: #9a6a00; }
html[data-theme="day"] .btn.primary { background: var(--ice); }
html[data-theme="day"] .msg.out .bubble { background: color-mix(in srgb, var(--ice) 14%, #fff); }
html[data-theme="day"] .modal, html[data-theme="day"] .onboard-card { box-shadow: 0 30px 80px -30px rgba(40, 30, 90, .35); }
html[data-theme="day"] .overlay { background: color-mix(in srgb, #1a1636 35%, transparent); }
html[data-theme="night"] { color-scheme: dark; }
html.theme-fade, html.theme-fade * { transition: background-color .4s ease, color .4s ease, border-color .4s ease !important; }

.appearance { display: grid; gap: 12px; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 4px; border-radius: 14px; background: var(--ink); }
.seg button { border: 0; background: none; color: var(--muted); padding: 10px 8px; border-radius: 10px; cursor: pointer; font-weight: 600; display: inline-flex; gap: 7px; align-items: center; justify-content: center; }
.seg button[aria-pressed="true"] { background: var(--plum-2); color: var(--paper); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ice) 45%, transparent); }
.accents { display: flex; gap: 10px; }
.accents button { width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer; background: var(--sw); box-shadow: inset 0 0 0 2px color-mix(in srgb, #000 12%, transparent); transition: transform .2s; }
.accents button[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--plum), 0 0 0 5px var(--sw); }
.accents button:hover { transform: scale(1.08); }
.hub-head { position: relative; }
.theme-quick { margin-left: auto; align-self: flex-start; }

/* ---------------------------------------------------------------- phones
   One screen at a time: the conversation list, or the open conversation with a back button. */
@media (max-width: 760px) {
  body { height: 100dvh; }
  .app { grid-template-columns: 60px 1fr; height: 100dvh; }
  .rail { padding: 10px 0 calc(10px + env(safe-area-inset-bottom)); gap: 8px; }
  .rail-item { width: 42px; height: 42px; border-radius: 14px; }
  .chat { display: none; }
  body.in-conv .app { grid-template-columns: 1fr; }
  body.in-conv .rail, body.in-conv .sidebar { display: none; }
  body.in-conv .chat { display: flex; height: 100dvh; }
  .back-btn { display: inline-grid; margin-left: -8px; }
  .chat-head { padding: 10px 12px; gap: 8px; min-height: 56px; padding-top: calc(10px + env(safe-area-inset-top)); }
  .chat-head .seal, .chat-head .room-rules { display: none; }
  .chat-head #verify { padding: 8px 10px; font-size: 0; gap: 0; }
  .chat-head #verify .i { margin: 0; }
  .messages { padding-left: 12px; padding-right: 12px; }
  .composer { padding: 8px 8px calc(10px + env(safe-area-inset-bottom)); gap: 4px; }
  .composer .send { padding: 10px 12px; font-size: 0; gap: 0; }
  .composer .send .i { margin: 0; }
  .timer-pick select { width: 40px; padding: 10px 0 10px 40px; color: transparent; }
  .timer-pick select.on { color: transparent; }
  .timer-pick select option { color: var(--paper); background: var(--plum); }
  .timer-icon { left: 13px; }
  .composer textarea, input, select, textarea { font-size: 16px; } /* no zoom on focus in iOS */
  .userbar { padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
  .install-tip { left: 10px; right: 10px; bottom: 76px; max-width: none; }
  .modal { padding: 20px; border-radius: 18px; }
  .toast { bottom: calc(80px + env(safe-area-inset-bottom)); }
}

/* ---------------------------------------------------------------- arriving from the website
   The site's portal ends on the mark in the middle of the vortex; here the mark flies past
   you and the app unfolds behind it. */
html.arrive body::after { content: ''; position: fixed; inset: 0; z-index: 90; pointer-events: none;
  background: url(mark-256.webp) center / 160px no-repeat, radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--ice) 22%, transparent) 0, transparent 34%), var(--ink);
  animation: arrive-out .85s cubic-bezier(.6,0,.25,1) .05s forwards; }
@keyframes arrive-out {
  0% { opacity: 1; background-size: 160px, 100% 100%, auto; }
  55% { opacity: 1; }
  100% { opacity: 0; background-size: 2600px, 100% 100%, auto; }
}
@keyframes in-left { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
@keyframes in-up { from { opacity: 0; transform: translateY(26px) scale(.98); } to { opacity: 1; transform: none; } }
html.arrive .rail { animation: in-left .6s cubic-bezier(.2,.9,.3,1) .4s both; }
html.arrive .sidebar { animation: in-left .6s cubic-bezier(.2,.9,.3,1) .5s both; }
html.arrive .chat { animation: in-up .7s cubic-bezier(.2,.9,.3,1) .6s both; }
html.arrive .onboard-card { animation: in-up .7s cubic-bezier(.2,.9,.3,1) .45s both; }

/* First screen of a new account: three ways to start */
.start { margin: auto; width: min(760px, 100%); text-align: center; padding: 10px; }
.start h4 { font: 700 22px/1.3 var(--display); margin: 0 0 22px; }
.start-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.start-card { display: grid; justify-items: start; gap: 6px; text-align: left; padding: 20px 18px; border-radius: 20px; border: 1px solid var(--line); background: color-mix(in srgb, var(--plum) 80%, transparent); color: var(--paper); cursor: pointer; transition: transform .25s cubic-bezier(.3,1.4,.5,1), border-color .2s, box-shadow .25s; animation: in-up .55s cubic-bezier(.2,.9,.3,1) both; }
.start-card:nth-child(2) { animation-delay: .08s; }
.start-card:nth-child(3) { animation-delay: .16s; }
.start-card:hover, .start-card:focus-visible { transform: translateY(-4px); border-color: color-mix(in srgb, var(--ice) 55%, transparent); box-shadow: 0 18px 40px -20px color-mix(in srgb, var(--ice) 60%, transparent); }
.start-card.ember:hover, .start-card.ember:focus-visible { border-color: color-mix(in srgb, var(--ember) 60%, transparent); box-shadow: 0 18px 40px -20px color-mix(in srgb, var(--ember) 60%, transparent); }
.start-card b { font: 700 16px var(--display); }
.start-card small { color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.start-ic { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--ice) 14%, transparent); color: var(--ice); margin-bottom: 6px; }
.start-card.ember .start-ic { background: color-mix(in srgb, var(--ember) 16%, transparent); color: var(--ember); }
@media (prefers-reduced-motion: reduce) { .start-card { animation: none; transition: none; } }
@media (max-width: 760px) { .start-cards { grid-template-columns: 1fr; } }
