:root {
  --bg: #000;
  --surface: #1c1c1e;
  --surface-2: #2c2c2e;
  --sheet: #1f1f22;
  --glass: rgba(44, 44, 48, 0.62);
  --glass-strong: rgba(58, 58, 62, 0.72);
  --edge: rgba(255, 255, 255, 0.12);
  --text: #fff;
  --text-2: rgba(235, 235, 245, 0.62);
  --text-3: rgba(235, 235, 245, 0.38);
  --blue: #0a84ff;
  --pearl: #f5f3ee;
  --glow: linear-gradient(135deg, #7b6cff 0%, #c86cff 30%, #ff6b8b 60%, #ffb35c 85%, #7b6cff 100%);
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", Inter, system-ui, sans-serif;
  --serif: "Instrument Serif", "New York", Georgia, serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: #0b0b0d; color: var(--text); font-family: var(--sans); -webkit-font-smoothing: antialiased; overflow: hidden; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img { display: block; }

/* ---------- stage & device ---------- */
#stage { position: fixed; inset: 0; display: grid; place-items: center; background: radial-gradient(1200px 700px at 50% 0%, #1a1a22 0%, #0b0b0d 60%); }
.phone { position: relative; width: 390px; height: 844px; border-radius: 56px; background: var(--bg); overflow: hidden; transform: scale(var(--s, 1)); transform-origin: center; box-shadow: 0 0 0 10px #1b1b1d, 0 0 0 12px #3a3a3e, 0 40px 120px rgba(0, 0, 0, 0.6); }
body.bare .phone { border-radius: 0; box-shadow: none; }
body.bare #stage { background: #000; }
body.bare .dynamic-island { display: none; }
.dynamic-island { position: absolute; top: 11px; left: 50%; width: 124px; height: 36px; margin-left: -62px; border-radius: 20px; background: #000; z-index: 50; pointer-events: none; }
.app { position: absolute; inset: 0; }

/* ---------- status bar ---------- */
.statusbar { position: absolute; top: 0; left: 0; right: 0; height: 54px; padding: 18px 32px 0 52px; display: flex; justify-content: space-between; align-items: flex-start; font-weight: 600; font-size: 17px; z-index: 40; pointer-events: none; }
.statusbar svg { height: 13px; }

/* ---------- screens ---------- */
.screen { position: absolute; inset: 0; background: var(--bg); opacity: 0; transform: translateX(24px); transition: opacity .35s var(--ease), transform .45s var(--ease); pointer-events: none; overflow: hidden; }
.screen.active { opacity: 1; transform: none; pointer-events: auto; }
.screen.back { transform: translateX(-24px); }
.scroll { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; padding: 64px 0 200px; scrollbar-width: none; }
.scroll::-webkit-scrollbar { display: none; }

.topbar { display: flex; align-items: center; gap: 8px; padding: 6px 16px 10px; }
.topbar h1 { margin: 0; flex: 1; font-size: 34px; line-height: 41px; font-weight: 700; letter-spacing: -0.4px; }
.circle { width: 44px; height: 44px; border-radius: 22px; display: grid; place-items: center; background: var(--glass); border: 0.5px solid var(--edge); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: 0 6px 16px rgba(0, 0, 0, .35); transition: transform .15s; }
.circle:active, .pill:active, .tap:active { transform: scale(.95); }
.circle svg { width: 20px; height: 20px; }
.pill { height: 44px; padding: 0 18px; border-radius: 22px; display: inline-flex; align-items: center; gap: 8px; background: var(--glass); border: 0.5px solid var(--edge); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); font-size: 17px; transition: transform .15s; }
.pill.sm { height: 34px; padding: 0 14px; font-size: 15px; }
.pill.blue { color: var(--blue); background: rgba(10, 132, 255, .12); border-color: transparent; }
.circle.blue-fill { background: var(--blue); border-color: transparent; box-shadow: 0 6px 18px rgba(10, 132, 255, .45); }
.circle.blue { color: var(--blue); background: rgba(10, 132, 255, .14); border-color: transparent; width: 40px; height: 32px; border-radius: 16px; box-shadow: none; }

.sec-head { display: flex; align-items: center; gap: 8px; padding: 0 16px; margin: 0 0 14px; }
.sec-head h2 { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -0.2px; }
.sec-head .count { color: var(--text-2); font-size: 17px; }
.sec-head .grow { flex: 1; }
.divider { height: 0.5px; background: rgba(255, 255, 255, .22); margin: 4px 16px 24px; }
.section { margin-bottom: 28px; }

/* overview */
.recent { display: flex; align-items: center; gap: 12px; padding: 10px 16px; width: 100%; text-align: left; }
.recent .ic { width: 36px; height: 36px; border-radius: 18px; background: var(--surface); display: grid; place-items: center; flex: none; }
.recent .ic svg { width: 16px; height: 16px; color: var(--text-2); }
.recent .tx { flex: 1; min-width: 0; }
.recent .q { font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recent .sub { font-size: 15px; color: var(--text-2); margin-top: 2px; }
.stack { display: flex; }
.stack img { width: 32px; height: 32px; border-radius: 9px; object-fit: cover; border: 2px solid #000; margin-left: -14px; }
.stack img:first-child { margin-left: 0; }
.rail { display: flex; gap: 12px; padding: 0 16px; overflow-x: auto; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.person { flex: none; width: 76px; text-align: center; }
.person .av { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; margin: 0 auto 8px; }
.person.unknown .av { outline: 2px dashed var(--blue); outline-offset: 2px; }
.person span { font-size: 13px; color: var(--text-2); }
.person.unknown span { color: var(--blue); }
.tile { flex: none; width: 100px; text-align: center; }
.tile .im { position: relative; width: 100px; height: 100px; border-radius: 20px; overflow: hidden; margin-bottom: 8px; }
.tile .im img { width: 100%; height: 100%; object-fit: cover; }
.tile .date { position: absolute; left: 8px; bottom: 8px; font-size: 12px; font-weight: 500; padding: 3px 8px; border-radius: 10px; background: rgba(0, 0, 0, .45); backdrop-filter: blur(8px); }
.tile span { font-size: 13px; color: var(--text-2); }

/* bottom search dock */
.dock { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 34px; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .85) 45%, #000); z-index: 20; }
.searchbar { display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 8px 0 16px; border-radius: 25px; background: var(--glass-strong); border: 0.5px solid var(--edge); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }
.searchbar > svg { width: 20px; height: 20px; color: var(--text-2); flex: none; }
.searchbar input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--text); font: inherit; font-size: 17px; }
.searchbar input::placeholder { color: var(--text-2); }
.mic { width: 38px; height: 38px; border-radius: 19px; display: grid; place-items: center; flex: none; }
.mic svg { width: 20px; height: 22px; }
.mic.hint { animation: hint 2.4s ease-in-out infinite; }
@keyframes hint { 0%, 100% { box-shadow: 0 0 0 0 rgba(10, 132, 255, 0); } 50% { box-shadow: 0 0 0 6px rgba(10, 132, 255, .25); background: rgba(10, 132, 255, .18); } }

/* ---------- speaking ---------- */
.speaking { background: #000; }
.edge-glow { position: absolute; inset: 0; border-radius: 56px; pointer-events: none; z-index: 30; }
.edge-glow::before, .edge-glow::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 5px; background: conic-gradient(from var(--a, 0deg), #7b6cff, #c86cff, #ff4f7b, #ff9b4a, #ffd36b, #7b6cff); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: spin 4s linear infinite; }
.edge-glow::after { filter: blur(18px); opacity: .9; padding: 10px; }
body.bare .edge-glow { border-radius: 0; }
@property --a { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes spin { to { --a: 360deg; } }
.speaking .top { position: absolute; top: 60px; left: 16px; right: 16px; display: flex; justify-content: space-between; z-index: 31; }
.transcript { position: absolute; top: 230px; left: 32px; right: 32px; text-align: center; font-size: 30px; line-height: 38px; font-weight: 600; letter-spacing: -0.3px; text-shadow: 0 0 18px rgba(255, 255, 255, .35); min-height: 114px; }
.transcript .w { opacity: 0; filter: blur(6px); display: inline-block; transition: opacity .25s, filter .25s; }
.transcript .w.on { opacity: 1; filter: none; }
.transcript.listening { color: var(--text-2); font-weight: 500; font-size: 22px; text-shadow: none; }
.status-line { position: absolute; top: 590px; left: 0; right: 0; text-align: center; color: var(--text-2); font-size: 15px; height: 20px; transition: opacity .3s; }

/* Siri-style orb: ribbons are drawn on a canvas (see Orb in app.js); the
   glass shell, rim light and halo are CSS layered on top and around it. */
.orb-wrap { position: absolute; top: 392px; left: 50%; width: 168px; height: 168px; margin-left: -84px; --lvl: .4; }
.orb-halo { position: absolute; inset: -90px; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, rgba(255, 70, 120, .30) 0%, rgba(120, 90, 255, .22) 30%, rgba(40, 160, 255, .10) 48%, transparent 68%); transform: scale(calc(.82 + var(--lvl) * .32)); opacity: calc(.55 + var(--lvl) * .45); filter: blur(6px); animation: halohue 9s linear infinite; }
@keyframes halohue { to { filter: blur(6px) hue-rotate(360deg); } }
.orb { position: relative; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; background: #000; transform: scale(calc(.97 + var(--lvl) * .05)); box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 18px 50px rgba(0, 0, 0, .7), 0 0 calc(20px + var(--lvl) * 40px) rgba(150, 100, 255, calc(.2 + var(--lvl) * .35)); }
.orb canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.orb .shell { position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background:
    radial-gradient(ellipse 46% 26% at 38% 16%, rgba(255, 255, 255, .55), rgba(255, 255, 255, .08) 60%, transparent 72%),
    radial-gradient(ellipse 60% 22% at 50% 96%, rgba(255, 255, 255, .16), transparent 70%),
    radial-gradient(circle at 50% 50%, transparent 58%, rgba(0, 0, 0, .55) 100%);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .35), inset 0 -2px 6px rgba(160, 140, 255, .18), inset 0 0 0 1px rgba(255, 255, 255, .10); }
.orb .rim { position: absolute; inset: 0; border-radius: 50%; padding: 1.5px; pointer-events: none; background: conic-gradient(from 200deg, rgba(255, 255, 255, .7), rgba(255, 255, 255, .05) 25%, rgba(255, 120, 160, .35) 50%, rgba(255, 255, 255, .05) 70%, rgba(120, 180, 255, .45) 90%, rgba(255, 255, 255, .7)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: .8; }

.mini-orb { flex: none; position: relative; width: 28px; height: 28px; border-radius: 50%; overflow: hidden; background: #000; margin-top: -2px; box-shadow: 0 0 0 .5px rgba(255, 255, 255, .25), 0 0 10px rgba(150, 100, 255, .35); }
.mini-orb canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.mini-orb::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(ellipse 50% 28% at 38% 18%, rgba(255, 255, 255, .5), transparent 70%), radial-gradient(circle, transparent 55%, rgba(0, 0, 0, .5)); }

.prompts { position: absolute; left: 0; right: 0; bottom: 40px; z-index: 31; transition: opacity .3s, transform .3s; }
.prompts.hide { opacity: 0; transform: translateY(16px); pointer-events: none; }
.prompts .lbl { display: flex; justify-content: space-between; align-items: center; padding: 0 20px 12px; color: var(--text-2); font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.prompts .lbl button { color: var(--blue); text-transform: none; letter-spacing: 0; font-size: 15px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.prompts .lbl button svg { width: 14px; height: 16px; }
.prompts .rail { gap: 10px; padding: 0 20px; }
.prompt { flex: none; height: 44px; padding: 0 18px; border-radius: 22px; background: rgba(44, 44, 48, .8); border: 0.5px solid var(--edge); font-size: 15px; white-space: nowrap; transition: transform .15s, background .2s; }
.prompt:hover { background: rgba(70, 70, 76, .9); }

/* ---------- results ---------- */
.lumi { display: flex; gap: 12px; padding: 0 16px 18px; font-size: 17px; line-height: 22px; }
.lumi .sub { color: var(--text-2); }
.lumi a { color: var(--blue); cursor: pointer; text-decoration: none; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; padding: 0 16px; margin-bottom: 30px; }
.ph { position: relative; aspect-ratio: 1; border-radius: 20px; overflow: hidden; cursor: pointer; background: var(--surface); opacity: 0; transform: translateY(10px) scale(.98); animation: rise .5s var(--ease) forwards; }
.ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.ph:hover img { transform: scale(1.03); }
@keyframes rise { to { opacity: 1; transform: none; } }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0 16px; }
.row3 .ph { border-radius: 18px; }

.best { position: relative; margin: 0 16px 30px; border-radius: 22px; padding: 2px; background: var(--glow); box-shadow: 0 0 28px rgba(200, 108, 255, .45); cursor: pointer; opacity: 0; animation: rise .6s var(--ease) .1s forwards; }
.best .in { position: relative; border-radius: 20px; overflow: hidden; height: 352px; }
.best img { width: 100%; height: 100%; object-fit: cover; }
.best .scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .1), transparent 45%, rgba(0, 0, 0, .7)); }
.best .tag { position: absolute; top: 14px; left: 14px; }
.best .cap { position: absolute; left: 16px; bottom: 14px; }
.best .cap b { display: block; font-size: 20px; font-weight: 600; }
.best .cap span { font-size: 15px; color: rgba(255, 255, 255, .8); }
.glass-tag { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px 0 12px; border-radius: 17px; background: rgba(30, 30, 34, .5); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 0.5px solid rgba(255, 255, 255, .16); font-size: 15px; }
.glass-tag svg { width: 16px; height: 16px; }

.chips { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.chips .rail { flex: 1; padding: 0; gap: 8px; }
.chip { flex: none; height: 38px; padding: 0 16px 0 12px; border-radius: 19px; display: inline-flex; align-items: center; gap: 8px; font-size: 17px; background: rgba(60, 70, 90, .55); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 0.5px solid rgba(255, 255, 255, .14); transition: opacity .2s, transform .15s; }
.chip svg { width: 18px; height: 18px; }
.chip.off { opacity: .45; text-decoration: line-through; }
.chip.new { animation: pop .45s var(--ease); }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 100% { transform: none; opacity: 1; } }
.bookmark { width: 38px; height: 38px; border-radius: 19px; flex: none; display: grid; place-items: center; background: rgba(60, 50, 50, .6); backdrop-filter: blur(20px); border: 0.5px solid rgba(255, 255, 255, .14); }
.bookmark svg { width: 18px; height: 18px; }
.bookmark.saved { background: var(--blue); }
.querybar { display: flex; align-items: center; gap: 8px; height: 50px; padding: 0 8px; border-radius: 25px; background: var(--glass-strong); border: 0.5px solid var(--edge); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
.qtoken { flex: 1; min-width: 0; display: flex; }
.qtoken span { max-width: 100%; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 17px; background: rgba(255, 255, 255, .18); font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xbtn { width: 26px; height: 26px; border-radius: 13px; display: grid; place-items: center; background: rgba(255, 255, 255, .85); color: #222; flex: none; }
.xbtn svg { width: 12px; height: 12px; }

/* ---------- sheets ---------- */
.scrim-bg { position: absolute; inset: 0; background: rgba(0, 0, 0, .45); opacity: 0; transition: opacity .3s; pointer-events: none; z-index: 60; }
.scrim-bg.on { opacity: 1; pointer-events: auto; }
.sheet { position: absolute; left: 0; right: 0; top: 66px; bottom: 0; border-radius: 38px 38px 0 0; background: var(--sheet); transform: translateY(105%); transition: transform .5s var(--ease); z-index: 61; overflow-y: auto; scrollbar-width: none; padding-bottom: 40px; box-shadow: 0 -10px 40px rgba(0, 0, 0, .5); }
.sheet::-webkit-scrollbar { display: none; }
.sheet.on { transform: none; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 20px; position: sticky; top: 0; z-index: 2; background: linear-gradient(180deg, var(--sheet) 70%, transparent); }
.sheet-head h3 { margin: 0; font-size: 17px; font-weight: 600; }
.sheet-head .circle svg { width: 18px; height: 18px; }
.sheet-head .circle.blue-fill svg { width: 22px; height: 22px; }

.faces { display: flex; justify-content: space-between; padding: 0 16px 20px; }
.face { width: 82px; text-align: center; }
.face .ring { position: relative; width: 76px; height: 76px; margin: 0 auto 10px; border-radius: 50%; padding: 3px; transition: box-shadow .25s; }
.face img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; transition: opacity .2s; }
.face .badge { position: absolute; right: -2px; bottom: -2px; width: 24px; height: 24px; border-radius: 12px; background: var(--blue); display: grid; place-items: center; border: 2px solid var(--sheet); transform: scale(0); transition: transform .25s var(--ease); }
.face .badge svg { width: 12px; height: 12px; }
.face.sel .ring { box-shadow: 0 0 0 3px var(--blue), 0 0 18px rgba(255, 180, 80, .45); }
.face.sel .badge { transform: scale(1); }
.face:not(.sel) img { opacity: .8; }
.face span { font-size: 15px; color: var(--text-2); }
.face.sel span { color: var(--text); }
.rowbtn { display: flex; align-items: center; gap: 12px; margin: 0 16px 20px; height: 48px; padding: 0 16px; border-radius: 24px; background: var(--surface-2); width: calc(100% - 32px); font-size: 17px; }
.rowbtn svg { width: 22px; height: 22px; }
.rowbtn .grow { flex: 1; text-align: left; }
.card { margin: 0 16px 16px; padding: 18px 16px; border-radius: 26px; background: rgba(255, 255, 255, .07); border: 0.5px solid var(--edge); }
.card .k { font-size: 13px; color: var(--text-2); margin-bottom: 14px; }
.aliases { display: flex; flex-wrap: wrap; gap: 10px; }
.alias { height: 36px; padding: 0 16px; border-radius: 18px; display: inline-flex; align-items: center; gap: 8px; font-size: 15px; border: 0.5px solid var(--edge); color: var(--text-2); background: rgba(255, 255, 255, .04); transition: all .2s; }
.alias.on { background: var(--pearl); color: #111; border-color: transparent; box-shadow: 0 4px 14px rgba(255, 200, 120, .25); }
.alias svg { width: 14px; height: 14px; }

.cover { position: relative; margin: 0 16px 16px; padding: 2px; border-radius: 30px; background: linear-gradient(135deg, #8b7bff, #c86cff 50%, #ff8a6b); box-shadow: 0 0 26px rgba(160, 110, 255, .45); }
.cover .in { position: relative; height: 350px; border-radius: 28px; overflow: hidden; }
.cover img { width: 100%; height: 100%; object-fit: cover; transition: opacity .3s; }
.cover .scrim { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, .75)); }
.cover .tag { position: absolute; top: 16px; left: 16px; }
.cover .title { position: absolute; left: 16px; right: 70px; bottom: 44px; font-family: var(--serif); font-size: 46px; line-height: 48px; outline: none; }
.cover .meta { position: absolute; left: 16px; bottom: 16px; display: flex; align-items: center; gap: 8px; font-size: 14px; color: rgba(255, 255, 255, .78); }
.cover .meta .avs { display: flex; }
.cover .meta .avs img { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid #000; margin-left: -8px; }
.cover .meta .avs img:first-child { margin-left: 0; }
.cover .edit { position: absolute; right: 16px; bottom: 34px; width: 38px; height: 38px; }
.thumbs { display: flex; gap: 8px; padding: 0 16px 20px; }
.thumbs button { width: 68px; height: 68px; border-radius: 16px; overflow: hidden; opacity: .9; transition: transform .15s, box-shadow .2s; }
.thumbs button.cur { box-shadow: 0 0 0 2px var(--blue); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.opt { display: flex; gap: 14px; align-items: flex-start; }
.opt + .opt { margin-top: 20px; }
.opt .oi { width: 40px; height: 40px; border-radius: 20px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); flex: none; }
.opt .oi svg { width: 20px; height: 20px; }
.opt .ot { flex: 1; }
.opt b { display: block; font-size: 17px; font-weight: 600; margin: 2px 0 2px; }
.opt small { font-size: 15px; color: var(--text-2); }
.tagrow { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; align-items: center; }
.tagrow span { font-size: 15px; padding: 5px 10px; border-radius: 8px; background: rgba(255, 255, 255, .1); }
.tagrow em { font-style: normal; font-size: 13px; color: var(--text-3); margin-left: 4px; }
.toggle { width: 52px; height: 32px; border-radius: 16px; background: rgba(120, 120, 128, .32); position: relative; flex: none; transition: background .25s; }
.toggle::after { content: ""; position: absolute; top: 2px; left: 2px; width: 28px; height: 28px; border-radius: 14px; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); transition: transform .25s var(--ease); }
.toggle.on { background: linear-gradient(90deg, #8b7bff, #ff8ab0, #ffb36b); }
.toggle.on::after { transform: translateX(20px); }

/* ---------- viewer & toast ---------- */
.viewer { position: absolute; inset: 0; background: #000; z-index: 70; opacity: 0; pointer-events: none; transition: opacity .3s; }
.viewer.on { opacity: 1; pointer-events: auto; }
.viewer img { position: absolute; top: 110px; left: 0; width: 100%; height: 600px; object-fit: contain; }
.viewer .vtop { position: absolute; top: 56px; left: 16px; right: 16px; display: flex; align-items: center; gap: 12px; }
.viewer .vtop div { flex: 1; text-align: center; }
.viewer .vtop b { display: block; font-size: 17px; }
.viewer .vtop span { font-size: 13px; color: var(--text-2); }
.viewer .who { position: absolute; bottom: 60px; left: 16px; right: 16px; display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.toast { position: absolute; bottom: 150px; left: 50%; transform: translate(-50%, 20px); opacity: 0; z-index: 90; display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border-radius: 24px; background: rgba(40, 40, 44, .9); backdrop-filter: blur(20px); border: 0.5px solid var(--edge); font-size: 15px; white-space: nowrap; transition: opacity .3s, transform .4s var(--ease); pointer-events: none; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.thinking-steps { position: absolute; top: 600px; left: 0; right: 0; text-align: center; font-size: 15px; color: var(--text-2); }

.menu { position: absolute; top: 108px; right: 16px; width: 220px; border-radius: 14px; background: rgba(44, 44, 48, .95); backdrop-filter: blur(20px); z-index: 80; overflow: hidden; transform-origin: top right; transform: scale(.9); opacity: 0; pointer-events: none; transition: all .2s var(--ease); }
.menu.on { transform: none; opacity: 1; pointer-events: auto; }
.menu button { display: flex; width: 100%; padding: 13px 16px; font-size: 17px; justify-content: space-between; border-bottom: 0.5px solid rgba(255, 255, 255, .1); }
.menu button:last-child { border-bottom: 0; }
