html { background: #0b202b; }
body.glass-ui {
  --paper: #f0f7fa; --text: #f0f7fa; --muted: #bed0d9; --paper-dim: #bed0d9;
  --bg: #0b202b; --surface: #142e3b5c; --surface-2: #25455266; --surface-solid: #15303e;
  --line: #ddf7ff30; --line-soft: #ddf7ff20; --btn-line: #e8faff40;
  --brand: #6dd9d1; --brand-soft: #b7ece7; --brand-deep: #25867e; --coral: #ffc0b2;
  --glass: linear-gradient(135deg, #efffff13, #efffff03 55%, #ddfaff0c), #10293643;
  --glass-edge: inset 0 1px 0 #f2ffff52, inset 0 -1px 0 #ddfaff12, 0 8px 24px #02131d26;
  --face: var(--glass); --lift: var(--glass-edge);
  position: relative; isolation: isolate; background: transparent;
  min-height: 100%; color-scheme: dark;
}
#wallpaperLayer {
  position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background: radial-gradient(ellipse at 70% 30%, #225d60, transparent 65%), #102635;
  contain: strict;
}
#wallpaperLayer::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, #03152448, #03152410 35%, #03152410 62%, #03152460);
}
#wallpaperCanvas, #wallpaperVideo, #wallpaperImage {
  display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
body.glass-ui #stage { background: transparent; border-radius: 0; }
body.glass-ui #stage::before, body.glass-ui #stage::after,
body.glass-ui #voicePanel::before { display: none; }
body.glass-ui #topbar, body.glass-ui #hero, body.glass-ui main,
body.glass-ui #view-voice, body.glass-ui #voiceBar, body.glass-ui #voicePanel { background: transparent; }
body.glass-ui #voiceBar { mask-image: none; -webkit-mask-image: none; }
body.glass-ui .hcard, body.glass-ui .more, body.glass-ui #tabs,
body.glass-ui #voiceBar .chip, body.glass-ui .ltool, body.glass-ui .card,
body.glass-ui .kpi, body.glass-ui .topic-item, body.glass-ui #liveTab,
body.glass-ui button.wide, body.glass-ui #send, body.glass-ui .face,
body.glass-ui .wcard, body.glass-ui .lesson-node, body.glass-ui .bank-card {
  background: var(--glass); border: 1px solid var(--btn-line); color: var(--text);
  box-shadow: var(--glass-edge); -webkit-backdrop-filter: blur(12px) saturate(1.25);
  backdrop-filter: blur(12px) saturate(1.25);
}
body.glass-ui #tabs { border-radius: 22px; padding: 5px; }
body.glass-ui .tab { color: #d3e5ec; border: 1px solid transparent; border-radius: 17px; }
body.glass-ui .tab.active {
  color: #fff; background: linear-gradient(140deg, #e9ffff40, #b5f7e518);
  border-color: #ebffff54; box-shadow: inset 0 1px #fff6, 0 3px 9px #0c27332e;
}
body.glass-ui #micBtn {
  background: radial-gradient(ellipse at 30% 10%, #e8ffff58, transparent 60%), #5fb7c42b;
  border: 1px solid #ddffff9c; box-shadow: inset 0 2px 2px #ffffff80, inset 0 -3px 8px #a8e5ed22, 0 14px 36px #0521325c;
  -webkit-backdrop-filter: blur(15px) saturate(1.3); backdrop-filter: blur(15px) saturate(1.3);
  color: #f4ffff;
}
body.glass-ui #micBtn::before { opacity: .24; }
body.glass-ui #micBtn .mic-halo { opacity: .2; }
body.glass-ui #micBtn.listening { border-color: #b5fff3; box-shadow: 0 0 0 7px #a1f4dd2b, var(--glass-edge); }
body.glass-ui #micBtn.thinking, body.glass-ui #micBtn.speaking { background-color: #9adbcc40; }
body.glass-ui .sheet, body.glass-ui #livePanel, body.glass-ui #toast,
body.glass-ui .nova-picker {
  background: linear-gradient(130deg, #c9eeed16, #c9eeed02), #102936b8;
  border: 1px solid #efffff3b; color: var(--text); box-shadow: inset 0 1px #fff3, 0 22px 60px #03141f73;
  -webkit-backdrop-filter: blur(22px) saturate(1.2); backdrop-filter: blur(22px) saturate(1.2);
}
body.glass-ui #voiceSheet, body.glass-ui #topicSheet, body.glass-ui #wordSheet,
body.glass-ui #lessonSheet, body.glass-ui #liveScrim { background-color: #00152155; -webkit-backdrop-filter: none; backdrop-filter: none; }
body.glass-ui .nova-picker::backdrop { background: #00152177; }
body.glass-ui .sheet-meaning, body.glass-ui .hc-note, body.glass-ui .hc-line i,
body.glass-ui #voiceStatus, body.glass-ui #voiceHint { color: #d0e2e8; }
body.glass-ui #voiceHint, body.glass-ui #voiceStatus, body.glass-ui #novaTag,
body.glass-ui .brand { text-shadow: 0 2px 12px #00141c99; }
body.glass-ui .hc-track span { background: linear-gradient(90deg, #66c5c4, #b5f2cb); }
body.glass-ui #voiceBar .chip .ni, body.glass-ui .ltool .ico { color: #b3eee5; }
body.glass-ui .logo { color: #efffff; }
body.glass-ui .logo-en, body.glass-ui .sheet-word { color: #c6ece7; }
body.glass-ui .tagline { color: #acd0d8; }
body.glass-ui input[type="range"] { accent-color: #9ce4cf; }
body.glass-ui input:not([type="range"]):not([type="checkbox"]), body.glass-ui textarea,
body.glass-ui select { background-color: #102b3866; color: var(--text); border-color: #d8f8ff38; }
body.glass-ui #liveTab::before { background: #d8fff4; }
body.glass-ui button:focus-visible, body.glass-ui summary:focus-visible,
body.glass-ui input:focus-visible { outline: 2px solid #c1ffea; outline-offset: 3px; }
body.glass-ui #voiceSheet .sheet { max-width: 520px; padding: 24px; border-radius: 28px 28px 0 0; }
.wallpaper-heading { margin: 24px 0 7px; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.wallpaper-heading .wallpaper-title { margin: 0; font-size: 20px; font-family: var(--display); font-weight: 500; }
.wallpaper-count { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: #a8d5cf; }
#wallpaperGrid, #wallpaperClassic { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin: 16px 0; }
body.glass-ui .wallpaper-choice {
  position: relative; overflow: hidden; height: 137px; isolation: isolate;
  border: 1px solid #d7faff26; border-radius: 17px; padding: 12px; color: #fff;
  background-color: #284751; background-size: cover; background-position: center;
  text-shadow: 0 1px 5px #001521aa; box-shadow: inset 0 1px #ffffff22;
  display: flex; align-items: flex-end; text-align: left; cursor: pointer;
}
.wallpaper-choice canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.wallpaper-choice::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(transparent 30%, #051c2ab8); }
.wallpaper-choice > span { display: block; }
.wallpaper-choice b { display: block; font-size: 12px; line-height: 1.4; }
.wallpaper-choice small { display: block; color: #d5e9ec; font-size: 9px; font-weight: 400; line-height: 1.4; margin-top: 3px; }
.wallpaper-live { position: absolute; top: 9px; left: 9px; font-size: 8px; font-style: normal; font-weight: 600; letter-spacing: .02em; padding: 3px 6px; border: 1px solid #e6ffff32; border-radius: 20px; background: #0e28364d; }
.wallpaper-live::before { content: ""; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: #b1f6d8; margin: 0 4px 1px 0; }
body.glass-ui .wallpaper-choice[aria-pressed="true"] { border-color: #bcf7de; outline: 2px solid #b2f5de33; }
.wallpaper-choice[aria-pressed="true"]::before { content: "✓"; position: absolute; top: 8px; right: 8px; color: #0f3638; background: #c0f4df; border-radius: 50%; width: 19px; height: 19px; text-align: center; font-size: 12px; line-height: 19px; text-shadow: none; }
#wallpaperUpload { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; margin-top: 12px; }
#wallpaperUpload svg { width: 18px; height: 18px; }
.wallpaper-help { text-align: center; color: #b9cfd5; font-size: 10px; margin: 9px 0 0; }
.wallpaper-motion { display: flex; gap: 12px; justify-content: space-between; align-items: center; font-size: 13px; padding: 17px 0; border-bottom: 1px solid #c4edee22; }
.wallpaper-motion input { accent-color: #94e5cc; width: 21px; height: 21px; }
.wallpaper-older summary { font-size: 12px; padding: 16px 0 4px; color: #bcd2d9; cursor: pointer; }
#wallpaperClassic .wallpaper-choice { height: 96px; }
body.glass-ui #wallpaperStatus { font-size: 11px; line-height: 1.5; color: #bee9df; min-height: 28px; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  body.glass-ui { --glass: linear-gradient(135deg, #8fb9c42a, #173c4a9c); }
  body.glass-ui .sheet, body.glass-ui #livePanel, body.glass-ui .nova-picker { background-color: #173442ed; }
}
@media (min-width: 700px) {
  body.glass-ui #voiceSheet .sheet { border-radius: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  body.glass-ui *, body.glass-ui *::before, body.glass-ui *::after { scroll-behavior: auto; }
}
