:root {
  --bg: #282c34;
  --bg-deep: #21252b;
  --card: #2c313a;
  --line: #3e4451;
  --ink: #d7dae0;
  --dim: #abb2bf;
  --faint: #5c6370;
  --blue: #61afef;
  --purple: #c678dd;
  --cyan: #56b6c2;
  --red: #e06c75;
  --green: #98c379;
  --yellow: #e5c07b;
  --orange: #d19a66;
  --glass: rgba(33, 37, 43, 0.72);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "PingFang SC", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body { background: #14161c; color: var(--ink); font: 13px/1.4 var(--font); overflow: hidden; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
kbd { font: 600 11px var(--font); padding: 1px 6px; border-radius: 5px; border: 1px solid var(--line); background: rgba(255,255,255,.05); color: var(--dim); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

[data-icon] { display: inline-flex; width: 16px; height: 16px; align-items: center; justify-content: center; flex: none; }
[data-icon] svg { width: 100%; height: 100%; }
.t-red { color: var(--red); } .t-yellow { color: var(--yellow); } .t-cyan { color: var(--cyan); } .t-purple { color: var(--purple); }

/* Desktop */
#desktop { position: fixed; inset: 0; user-select: none; }
#wallpaper { position: absolute; inset: 0; background: radial-gradient(120% 90% at 20% 10%, #2b2f5a 0%, #1b1d33 45%, #12131f 100%); overflow: hidden; }
.aurora { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; animation: drift 24s ease-in-out infinite alternate; }
.a1 { width: 60vw; height: 50vh; left: -10vw; top: 5vh; background: #3d4ba8; }
.a2 { width: 50vw; height: 55vh; right: -12vw; top: 25vh; background: #7a3b8f; animation-delay: -8s; }
.a3 { width: 45vw; height: 40vh; left: 30vw; bottom: -15vh; background: #1f6f7a; animation-delay: -16s; }
@keyframes drift { to { transform: translate(6vw, -4vh) scale(1.12); } }
.ridges { position: absolute; inset: 0; width: 100%; height: 100%; }
.ridges path:first-child { fill: rgba(97,175,239,.07); }
.ridges path:last-child { fill: rgba(12,13,20,.55); }

/* Menu bar */
#menubar { position: absolute; top: 0; left: 0; right: 0; height: 30px; display: flex; justify-content: space-between; align-items: center; padding: 0 12px; background: rgba(18,20,26,.55); backdrop-filter: blur(24px) saturate(1.4); -webkit-backdrop-filter: blur(24px) saturate(1.4); z-index: 50; font-size: 13px; }
.mb-left, .mb-right, .mb-group { display: flex; align-items: center; gap: 14px; }
.mb-right { gap: 12px; }
.mb-logo { color: var(--blue); width: 15px; height: 15px; }
.mb-app { font-weight: 700; }
.mb-item { color: var(--ink); opacity: .92; }
.mb-icon { color: var(--ink); opacity: .9; width: 16px; height: 16px; display: inline-flex; align-items: center; justify-content: center; }
#hidden-icons { gap: 12px; overflow: hidden; transition: max-width .35s ease, opacity .25s; max-width: 140px; }
#hidden-icons.tucked { max-width: 0; opacity: 0; }
#hide-dot .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ink); opacity: .9; }
#hide-dot.revealed .dot { opacity: .35; }
.mb-widget { display: inline-flex; align-items: center; gap: 4px; font-variant-numeric: tabular-nums; }
.mb-widget b { font-weight: 500; }
.mb-net { flex-direction: column; align-items: flex-end; gap: 0; line-height: 10px; }
.mb-net i { font-style: normal; font: 500 9px ui-monospace, SFMono-Regular, Menlo, monospace; }
.mb-lang { padding: 1px 6px; border-radius: 5px; font-weight: 600; font-size: 11px; border: 1px solid rgba(255,255,255,.18); }
.mb-clock { font-variant-numeric: tabular-nums; }

/* Notch */
#notch { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 210px; height: 32px; background: #000; border-radius: 0 0 16px 16px; z-index: 60; transition: width .42s cubic-bezier(.3,1.3,.5,1), height .42s cubic-bezier(.3,1.3,.5,1), border-radius .3s; box-shadow: 0 0 0 rgba(0,0,0,0); }
#notch.expanded { width: 620px; height: 248px; border-radius: 0 0 28px 28px; box-shadow: 0 18px 40px rgba(0,0,0,.45); }
#notch.with-card { height: 96px; width: 420px; border-radius: 0 0 26px 26px; box-shadow: 0 14px 34px rgba(0,0,0,.4); }
.ears { position: absolute; inset: 0 0 auto 0; height: 32px; display: flex; justify-content: space-between; align-items: center; padding: 0 12px; transition: opacity .2s; }
#notch.expanded .ears, #notch.with-card .ears { opacity: 0; }
.art { background: linear-gradient(135deg, #ff7a8a, #c678dd 55%, #4c3ccf); border-radius: 10px; position: relative; overflow: hidden; }
.art::after { content: ""; position: absolute; left: 20%; right: 20%; top: 38%; height: 24%; border-radius: 50% 50% 0 0; background: rgba(255,230,200,.85); box-shadow: 0 10px 0 -4px rgba(255,255,255,.25), 0 18px 0 -6px rgba(255,255,255,.18); }
.art.mini { width: 20px; height: 20px; border-radius: 5px; }
.bars { display: flex; gap: 2px; align-items: center; height: 14px; }
.bars i { width: 3px; border-radius: 2px; background: var(--orange); animation: eq 1s ease-in-out infinite; }
.bars i:nth-child(2) { animation-delay: -.3s; } .bars i:nth-child(3) { animation-delay: -.6s; } .bars i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { 0%,100% { height: 4px; } 50% { height: 14px; } }

.island { position: absolute; inset: 0; padding: 40px 18px 14px; opacity: 0; pointer-events: none; transition: opacity .2s; overflow: hidden; }
#notch.expanded .island { opacity: 1; pointer-events: auto; transition-delay: .12s; }
.tabs { display: flex; gap: 4px; margin-bottom: 10px; }
.tabs button { display: flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 999px; color: rgba(255,255,255,.45); }
.tabs button em { display: none; font-style: normal; font-weight: 600; font-size: 12px; }
.tabs button.on { background: rgba(255,255,255,.14); color: #fff; }
.tabs button.on em { display: inline; }
.card { background: rgba(255,255,255,.06); border-radius: 14px; padding: 10px; }
.home-row { display: flex; gap: 6px; height: 128px; }
.media-card { width: 210px; display: flex; gap: 10px; align-items: center; }
.media-card .art { width: 56px; height: 56px; flex: none; }
.media-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.media-meta b { font-size: 12px; } .media-meta span { font-size: 10px; color: rgba(255,255,255,.55); }
.progress { height: 3px; background: rgba(255,255,255,.18); border-radius: 2px; margin: 6px 0 4px; overflow: hidden; }
.progress i { display: block; height: 100%; background: #fff; border-radius: 2px; }
.media-ctl { display: flex; justify-content: space-around; align-items: center; }
.media-ctl .big { width: 20px; height: 20px; }
.agenda { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.meeting { display: flex; align-items: center; gap: 8px; }
.meeting > i { width: 3px; align-self: stretch; border-radius: 2px; background: var(--green); }
.meeting div { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.meeting b { font-size: 12px; } .meeting span { font-size: 10px; color: var(--green); }
.join { background: var(--green); color: #1d2b12; font-weight: 700; font-size: 11px; padding: 4px 10px; border-radius: 999px; }
.agenda hr { border: 0; border-top: 1px solid rgba(255,255,255,.08); margin: 2px 0; width: 100%; }
.todos { display: flex; flex-direction: column; gap: 2px; font-size: 11px; color: rgba(255,255,255,.6); }
.todos b { color: #fff; display: flex; align-items: center; gap: 4px; font-size: 12px; }
.todos b [data-icon] { color: var(--orange); }
.markets-mini { width: 150px; display: flex; flex-direction: column; gap: 6px; cursor: pointer; }
.mm-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 11px; }
.mm-row b { font-weight: 600; }
.mm-row span { text-align: right; font-variant-numeric: tabular-nums; display: flex; flex-direction: column; line-height: 1.1; }
.mm-row small { font-size: 9px; font-weight: 600; }
.up { color: var(--green); } .down { color: var(--red); }
.quick { display: flex; gap: 6px; margin-top: 8px; }
.quick button, .agent-strip { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; height: 28px; border-radius: 8px; background: rgba(255,255,255,.06); }
.quick button:hover { background: rgba(255,255,255,.12); }
.quick em { font-style: normal; font-weight: 600; font-size: 11px; }
.agent-strip { width: 100%; margin-top: 8px; justify-content: flex-start; padding: 0 10px; background: rgba(209,154,102,.16); font-size: 11px; text-align: left; overflow: hidden; white-space: nowrap; }
.agent-strip b { font-weight: 600; } .agent-strip .k { color: var(--orange); font-weight: 600; } .agent-strip .s { color: rgba(255,255,255,.55); overflow: hidden; text-overflow: ellipsis; }
.media-big { display: flex; gap: 16px; align-items: center; height: 150px; }
.media-big .art.big { width: 120px; height: 120px; flex: none; }
.media-big > div:last-child { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.media-big b { font-size: 15px; } .media-big span { color: rgba(255,255,255,.55); font-size: 12px; }
.usage-row { display: flex; gap: 8px; }
.usage { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.usage > b { display: flex; align-items: center; gap: 6px; font-size: 13px; margin-bottom: 4px; }
.usage .dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.dot.claude { background: #d97757; } .dot.codex { background: #5cc8a0; }
.pill { font-style: normal; font-size: 10px; color: #d97757; background: rgba(217,119,87,.18); padding: 1px 6px; border-radius: 999px; }
.usage label { display: flex; align-items: baseline; gap: 6px; font-size: 11px; font-weight: 600; }
.usage label small { color: rgba(255,255,255,.4); font-weight: 400; flex: 1; }
.seg { display: flex; gap: 2px; height: 5px; }
.seg i { flex: 1; border-radius: 2px; background: rgba(255,255,255,.1); }
.seg i.on { background: #d97757; }
.usage:nth-child(2) .seg i.on { background: #5cc8a0; }
.usage p { margin: 4px 0 0; font-size: 11px; color: rgba(255,255,255,.45); }
.usage p b { color: #fff; }
.markets-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.mk { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 10px; background: rgba(255,255,255,.06); }
.mk .badge { font-size: 9px; font-weight: 700; color: rgba(255,255,255,.5); background: rgba(255,255,255,.08); border-radius: 999px; padding: 1px 6px; width: 40px; text-align: center; }
.mk .nm { flex: 1; display: flex; flex-direction: column; line-height: 1.15; }
.mk .nm b { font-size: 12px; } .mk .nm small { font-size: 9px; color: rgba(255,255,255,.45); }
.mk .px { display: flex; flex-direction: column; align-items: flex-end; font-variant-numeric: tabular-nums; line-height: 1.15; }
.mk .px b { font-size: 12px; } .mk .px small { font-size: 10px; font-weight: 600; }

.agent-card { position: absolute; left: 14px; right: 14px; bottom: 12px; display: flex; gap: 12px; align-items: center; text-align: left; opacity: 0; transition: opacity .2s .15s; }
#notch.with-card .agent-card { opacity: 1; }
.agent-card .ic { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex: none; }
.agent-card .ic [data-icon] { width: 18px; height: 18px; }
.agent-card .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.agent-card .row { display: flex; justify-content: space-between; gap: 8px; }
.agent-card b { font-size: 13px; } .agent-card .k { font-size: 10px; font-weight: 600; }
.agent-card .s { font-size: 11px; color: rgba(255,255,255,.65); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.bubble { position: absolute; top: 44px; left: 50%; transform: translateX(-50%); background: var(--glass); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,.1); padding: 8px 14px; border-radius: 12px; text-align: center; display: flex; flex-direction: column; z-index: 40; transition: opacity .3s; }
.bubble b { font-size: 13px; } .bubble span { font-size: 11px; color: var(--dim); }
.bubble.gone { opacity: 0; pointer-events: none; }

/* Notification */
.notice { position: absolute; top: 40px; right: 12px; width: 360px; display: flex; gap: 10px; align-items: center; padding: 12px; border-radius: 16px; background: var(--glass); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border: 1px solid rgba(255,255,255,.08); z-index: 45; box-shadow: 0 10px 30px rgba(0,0,0,.35); transition: transform .4s, opacity .4s; }
.notice.gone { transform: translateX(120%); opacity: 0; pointer-events: none; }
.notice .app-icon { width: 38px; height: 38px; flex: none; }
.notice div { flex: 1; display: flex; flex-direction: column; }
.notice b { font-size: 13px; } .notice span { font-size: 11px; color: var(--dim); }
.notice button { background: rgba(255,255,255,.1); padding: 5px 10px; border-radius: 8px; font-size: 11px; font-weight: 600; white-space: nowrap; }

/* Desktop icons, hints, dock */
#desk-icons { position: absolute; right: 22px; top: 170px; display: flex; flex-direction: column; gap: 18px; z-index: 5; }
.desk-icon { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 92px; }
.desk-icon em { font-style: normal; font-size: 12px; text-shadow: 0 1px 3px rgba(0,0,0,.6); text-align: center; }
.tile { width: 52px; height: 52px; border-radius: 13px; color: #fff; padding: 12px; box-shadow: 0 4px 12px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.2); }
.tile.img { padding: 0; background: none; box-shadow: none; width: 60px; height: 60px; margin: -4px; }
.t-blue-bg { background: linear-gradient(160deg, #78bdf5, #3f8fd8); }
.t-purple-bg { background: linear-gradient(160deg, #d68fe8, #9b52b8); }
.t-yellow-bg { background: linear-gradient(160deg, #f0d08c, #d1a24c); color: #4a3510; }
.t-green-bg { background: linear-gradient(160deg, #acd68e, #6fa14b); }
.t-dark-bg { background: linear-gradient(160deg, #3b404b, #22252b); }
.panel-glass { background: var(--glass); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,.08); border-radius: 14px; }
#keys { position: absolute; left: 20px; bottom: 24px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; z-index: 5; }
#keys b { font-size: 12px; color: var(--dim); }
#keys span { display: flex; align-items: center; gap: 3px; font-size: 12px; }
#keys em { font-style: normal; margin-left: 6px; color: var(--ink); }
#dock { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 20px; background: rgba(33,37,43,.55); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border: 1px solid rgba(255,255,255,.08); z-index: 30; }
#dock .tile { transition: transform .15s; }
#dock > :hover .tile { transform: translateY(-6px) scale(1.08); }
#dock .sep { width: 1px; height: 40px; background: rgba(255,255,255,.15); }

/* Windows */
.window { position: absolute; background: var(--bg); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; box-shadow: 0 24px 60px rgba(0,0,0,.5); overflow: hidden; z-index: 20; display: flex; flex-direction: column; animation: pop .22s ease-out; }
@keyframes pop { from { transform: scale(.96); opacity: 0; } }
.titlebar { height: 34px; display: flex; align-items: center; gap: 12px; padding: 0 12px; background: var(--bg-deep); cursor: grab; flex: none; }
.titlebar span { color: var(--dim); font-size: 12px; font-weight: 600; }
.lights { display: flex; gap: 7px; }
.lights i { width: 12px; height: 12px; border-radius: 50%; background: #febc2e; }
.lights i:first-child { background: #ff5f57; cursor: pointer; } .lights i:last-child { background: #28c840; }
.notes-body { padding: 16px 20px; font-size: 14px; line-height: 1.65; user-select: text; cursor: text; }
.notes-body p { margin: 0 0 12px; }
.notes-body ::selection { background: rgba(97,175,239,.45); }
/* The screenshot carries 2.5% of renderer backdrop on each side; crop it off. */
.shot { width: 105%; margin: -2.5% -2.5% -2.6%; display: block; }
#win-annotate { overflow: hidden; }
.term { background: #1d2026; font: 12.5px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; padding: 14px 16px; min-height: 230px; color: var(--dim); }
.term .c { color: var(--blue); } .term .g { color: var(--green); } .term .o { color: var(--orange); } .term .w { color: var(--ink); }
.term .opts { display: flex; gap: 8px; margin-top: 10px; }
.term .opts button { border: 1px solid var(--line); padding: 3px 10px; border-radius: 6px; font: inherit; }
.term .opts button:first-child { border-color: var(--green); color: var(--green); }

/* Settings */
.settings-body { flex: 1; display: flex; min-height: 0; }
.st-side { width: 200px; background: var(--bg-deep); padding: 10px 8px; overflow: auto; flex: none; }
.st-side h6 { margin: 10px 8px 4px; font-size: 10px; color: var(--faint); text-transform: uppercase; letter-spacing: .06em; }
.st-side button { width: 100%; display: flex; align-items: center; gap: 9px; padding: 6px 8px; border-radius: 7px; text-align: left; }
.st-side button:hover { background: rgba(255,255,255,.04); }
.st-side button.on { background: rgba(255,255,255,.08); font-weight: 600; }
.st-side button.off { color: var(--faint); }
.st-main { flex: 1; overflow: auto; padding: 22px 26px; }
.tonal { width: 30px; height: 30px; border-radius: 8px; padding: 7px; flex: none; }
.tonal.lg { width: 52px; height: 52px; border-radius: 14px; padding: 13px; }
.st-head { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.st-head h2 { margin: 0; font-size: 22px; font-weight: 650; flex: 1; }
.st-tag { color: var(--dim); margin: 0 0 18px; }
.st-row { display: flex; align-items: center; gap: 16px; padding: 12px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 11px; margin-bottom: 8px; }
.st-row div { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.st-row b { font-size: 13px; } .st-row span { font-size: 11.5px; color: var(--dim); }
.st-row.live b::after { content: "live on this page"; margin-left: 8px; font-size: 10px; font-weight: 600; color: var(--blue); background: rgba(97,175,239,.14); padding: 1px 6px; border-radius: 999px; }
html[lang="zh"] .st-row.live b::after { content: "本页可体验"; }
.switch { width: 38px; height: 22px; border-radius: 999px; background: var(--line); position: relative; flex: none; transition: background .2s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch.on { background: var(--blue); }
.switch.on::after { transform: translateX(16px); }
.ov-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ov-card { display: flex; flex-direction: column; gap: 10px; padding: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; text-align: left; }
.ov-card .top { display: flex; align-items: center; gap: 10px; }
.ov-card .top b { flex: 1; font-size: 14px; }
.ov-card p { margin: 0; color: var(--dim); font-size: 11.5px; }
.ov-card.off { opacity: .5; }

/* Launcher */
#launcher { position: absolute; inset: 0; z-index: 70; display: flex; justify-content: center; padding-top: 16vh; background: rgba(0,0,0,.15); }
.ln-box { width: 640px; max-height: 470px; display: flex; flex-direction: column; background: rgba(36,40,48,.88); backdrop-filter: blur(30px) saturate(1.4); -webkit-backdrop-filter: blur(30px) saturate(1.4); border: 1px solid rgba(255,255,255,.1); border-radius: 18px; box-shadow: 0 30px 80px rgba(0,0,0,.55); overflow: hidden; animation: pop .18s ease-out; }
.ln-input { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid rgba(255,255,255,.08); }
.ln-input [data-icon] { width: 20px; height: 20px; color: var(--dim); }
.ln-input input { flex: 1; background: none; border: 0; outline: none; color: var(--ink); font: 400 20px var(--font); }
.ln-input input::placeholder { color: var(--faint); }
.ln-list { flex: 1; overflow: auto; padding: 6px 8px; }
.ln-sec { font-size: 11px; font-weight: 600; color: var(--faint); margin: 8px 12px 4px; }
.ln-item { display: flex; align-items: center; gap: 12px; padding: 7px 12px; border-radius: 10px; width: 100%; text-align: left; }
.ln-item.sel { background: rgba(97,175,239,.2); }
.ln-item .tile { width: 30px; height: 30px; border-radius: 8px; padding: 7px; box-shadow: none; }
.ln-item b { flex: 1; font-weight: 500; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ln-item small { color: var(--faint); font-size: 11px; }
.ln-calc { padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; }
.ln-calc b { font-size: 28px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ln-ai { padding: 14px 18px; display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; }
.ln-ai .q { align-self: flex-end; background: rgba(97,175,239,.2); padding: 8px 12px; border-radius: 12px; }
.ln-ai .tools { align-self: flex-start; font-size: 11px; color: var(--dim); background: rgba(255,255,255,.06); padding: 3px 9px; border-radius: 999px; }
.ln-ai .a { white-space: pre-wrap; line-height: 1.55; }
.ln-ai code { background: rgba(255,255,255,.08); padding: 1px 5px; border-radius: 4px; font-size: 12px; }
.ln-foot { display: flex; justify-content: space-between; align-items: center; padding: 8px 16px; border-top: 1px solid rgba(255,255,255,.08); color: var(--dim); font-size: 12px; }
.ln-foot > span { display: flex; align-items: center; gap: 6px; }

/* Selection */
#selbar { position: absolute; z-index: 65; display: flex; gap: 2px; padding: 4px; border-radius: 12px; background: rgba(36,40,48,.92); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,.1); box-shadow: 0 10px 30px rgba(0,0,0,.4); animation: pop .15s ease-out; }
#selbar button { display: flex; align-items: center; gap: 5px; padding: 5px 9px; border-radius: 8px; }
#selbar button:hover { background: rgba(255,255,255,.1); }
#selbar em { font-style: normal; font-size: 12px; font-weight: 500; }
#selresult { position: absolute; z-index: 66; width: 400px; padding: 14px; border-radius: 14px; background: rgba(36,40,48,.95); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,.1); box-shadow: 0 16px 40px rgba(0,0,0,.45); animation: pop .15s ease-out; }
.sr-head { display: flex; justify-content: space-between; margin-bottom: 8px; }
.sr-head b { color: var(--purple); font-size: 12px; }
#sr-src { color: var(--faint); font-size: 12px; margin: 0 0 8px; }
#sr-out { margin: 0 0 12px; font-size: 14px; line-height: 1.6; min-height: 22px; }
.sr-actions { display: flex; justify-content: flex-end; gap: 8px; }
.sr-actions button { padding: 4px 12px; border-radius: 7px; background: rgba(255,255,255,.08); font-size: 12px; font-weight: 600; }
.sr-actions .primary { background: var(--blue); color: #10223a; }

/* Capture */
#capture { position: absolute; inset: 0; z-index: 80; background: rgba(0,0,0,.35); cursor: crosshair; }
#cap-rect { position: absolute; border: 1.5px solid #fff; background: rgba(255,255,255,.08); box-shadow: 0 0 0 9999px rgba(0,0,0,.25); display: none; }
.cap-tip { position: absolute; top: 46%; left: 50%; transform: translateX(-50%); background: var(--glass); padding: 8px 14px; border-radius: 10px; font-weight: 600; pointer-events: none; }

#toast { position: absolute; bottom: 96px; left: 50%; transform: translateX(-50%); z-index: 90; background: var(--glass); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,.1); padding: 8px 16px; border-radius: 12px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
#toast .sw { width: 14px; height: 14px; border-radius: 4px; }

/* Narrow screens */
#mobile { display: none; }
@media (max-width: 860px) {
  body { overflow: auto; background: var(--bg); }
  #desktop { display: none; }
  #mobile { display: flex; flex-direction: column; gap: 18px; padding: 40px 16px 60px; max-width: 640px; margin: 0 auto; }
  .m-hero { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
  .m-logo { width: 96px; height: 96px; }
  .m-hero h1 { margin: 4px 0 0; font-size: 34px; }
  .m-hero p { margin: 0; color: var(--dim); font-size: 15px; }
  .m-btn { background: var(--blue); color: #10223a; font-weight: 700; padding: 10px 22px; border-radius: 999px; margin-top: 6px; }
  .m-link { color: var(--blue); }
  .m-note { font-size: 12px !important; color: var(--faint) !important; }
  #mobile > img { width: 100%; border-radius: 14px; }
}

