/* =====================================================================
   HLB 1:1 보컬 과외 — Design System v3.0
   Deep Onyx × Champagne Gold · Pretendard · Glass surfaces
   ---------------------------------------------------------------------
   1. Tokens          2. Reset & base        3. Layout shell
   4. Typography      5. Components          6. Feature blocks
   7. Overlays        8. Motion & a11y       9. Utilities
   ===================================================================== */

/* 1. TOKENS ---------------------------------------------------------- */
:root {
  --bg: #07070b;
  --bg-2: #0b0b11;
  --surface: #10101a;
  --surface-2: #161623;
  --surface-3: #1d1d2c;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.13);
  --text: #f3f1ec;
  --text-2: #b9b6ae;
  --text-3: #7f7c76;

  --gold: #e6b15c;
  --gold-2: #f5d79e;
  --gold-3: #c8923c;
  --gold-dim: rgba(230, 177, 92, 0.1);
  --gold-line: rgba(230, 177, 92, 0.3);
  --gold-glow: rgba(230, 177, 92, 0.35);

  --emerald: #34d399;
  --amber: #fbbf24;
  --rose: #fb7185;
  --sky: #38bdf8;
  --violet: #a78bfa;

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  --shadow-1: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-gold: 0 8px 26px rgba(230, 177, 92, 0.25);

  --font: "Pretendard", -apple-system, BlinkMacSystemFont, system-ui, "Apple SD Gothic Neo", "Segoe UI", Roboto, sans-serif;
  --mono: "SF Mono", ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace;

  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);

  --app-w: 430px;
  --dock-h: 128px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* 2. RESET & BASE ---------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
img, video, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
::selection { background: var(--gold-dim); color: var(--gold-2); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px; }

/* 3. LAYOUT SHELL ---------------------------------------------------- */
.ambient {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 40% at 50% 0%, rgba(230, 177, 92, 0.14), transparent 70%),
    var(--bg);
}
.ambient::after {
  content: ""; position: absolute; inset: 0;
  background: url("/public/studio_ambient.jpg") center/cover no-repeat;
  opacity: 0; filter: blur(14px) saturate(0.8) brightness(0.45);
  transform: scale(1.08);
}
.app {
  position: relative; z-index: 1;
  width: 100%; max-width: var(--app-w);
  margin: 0 auto; min-height: 100dvh;
  background: var(--bg);
  display: flex; flex-direction: column;
  border-left: 1px solid var(--line); border-right: 1px solid var(--line);
}
.topbar {
  position: sticky; top: 0; z-index: 30;
  padding: calc(10px + var(--safe-top)) 16px 10px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: rgba(7, 7, 11, 0.78);
  backdrop-filter: blur(22px) saturate(150%); -webkit-backdrop-filter: blur(22px) saturate(150%);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.brand__logo {
  width: 34px; height: 34px; border-radius: 50%; overflow: hidden;
  border: 1px solid var(--gold-line); box-shadow: 0 0 0 3px rgba(230, 177, 92, 0.08);
  flex: none;
}
.brand__logo img { width: 100%; height: 100%; object-fit: cover; }
.brand__text { min-width: 0; flex: 1; }
.brand__name { font-size: 13px; font-weight: 800; letter-spacing: -0.01em; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.brand__name .brand__badge { display: none; padding: 1px 7px; font-size: 9px; }
.brand__sub { font-size: 10.5px; color: var(--text-3); font-weight: 500; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar__actions { display: flex; align-items: center; gap: 6px; flex: none; }
.topbar__actions .btn--xs { padding: 0 9px; font-size: 11px; }
@media (min-width: 430px) { .brand__name .brand__badge { display: inline-flex; } }

main.views { flex: 1; padding-bottom: calc(var(--dock-h) + var(--safe-bottom) + 12px); }
.view { display: flex; flex-direction: column; gap: 14px; padding: 16px 16px 8px; animation: viewIn 0.32s var(--ease); }
.view[hidden] { display: none; }

.dock {
  position: fixed; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 100%; max-width: var(--app-w); z-index: 30;
  background: rgba(9, 9, 14, 0.9);
  backdrop-filter: blur(24px) saturate(150%); -webkit-backdrop-filter: blur(24px) saturate(150%);
  border-top: 1px solid var(--line);
  padding-bottom: var(--safe-bottom);
}
.dock__progress { height: 2px; background: var(--surface-3); }
.dock__progress > div { height: 100%; width: 0; background: linear-gradient(90deg, var(--gold-3), var(--gold-2)); transition: width 0.2s linear; }

.miniplayer { display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-bottom: 1px solid var(--line); }
.miniplayer__meta { min-width: 0; flex: 1; }
.miniplayer__title { font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.miniplayer__sub { font-size: 10px; color: var(--gold); font-family: var(--mono); }
.miniplayer__ctl { display: flex; align-items: center; gap: 2px; }

.tabbar { display: flex; align-items: stretch; justify-content: space-around; padding: 6px 4px 6px; }
.tab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 4px 2px; color: var(--text-3); font-size: 10px; font-weight: 600; border-radius: 12px; transition: color 0.2s; }
.tab__icon { width: 34px; height: 30px; display: grid; place-items: center; border-radius: 10px; border: 1px solid transparent; transition: all 0.25s var(--ease); font-size: 14px; }
.tab[aria-selected="true"] { color: var(--gold); }
.tab[aria-selected="true"] .tab__icon { background: var(--gold-dim); border-color: var(--gold-line); transform: translateY(-1px); }

/* 4. TYPOGRAPHY ------------------------------------------------------ */
.eyebrow { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.eyebrow--muted { color: var(--text-3); }
.h1 { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; margin: 0; }
.h2 { font-size: 15px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.3; margin: 0; }
.h3 { font-size: 13px; font-weight: 700; line-height: 1.35; margin: 0; }
.lead { font-size: 13px; color: var(--text-2); line-height: 1.6; margin: 0; }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.small { font-size: 12px; }
.tiny { font-size: 11px; }
.mono { font-family: var(--mono); }
.gold { color: var(--gold); }
.emerald { color: var(--emerald); }
.amber { color: var(--amber); }
.rose { color: var(--rose); }
.sky { color: var(--sky); }
.violet { color: var(--violet); }
p { margin: 0; }

/* 5. COMPONENTS ------------------------------------------------------ */
/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 16px;
  display: flex; flex-direction: column; gap: 12px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.02) inset;
}
.card--tight { padding: 12px; gap: 10px; border-radius: var(--r-md); }
.card--sub { background: var(--surface-2); }
.card--hero {
  position: relative;
  background: linear-gradient(180deg, #14141f 0%, #0c0c13 100%);
  border-color: var(--gold-line);
  box-shadow: var(--shadow-1);
}
.card--hero::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  background: radial-gradient(70% 40% at 50% 0%, rgba(230, 177, 92, 0.18), transparent 70%);
}
.card--gold { background: linear-gradient(135deg, rgba(230, 177, 92, 0.16), rgba(230, 177, 92, 0.03) 60%, transparent); border-color: var(--gold-line); }
.card--emerald { border-color: rgba(52, 211, 153, 0.35); }
.card--amber { border-color: rgba(251, 191, 36, 0.35); }
.card--rose { border-color: rgba(251, 113, 133, 0.35); }
.card--violet { border-color: rgba(167, 139, 250, 0.35); }
.card--sky { border-color: rgba(56, 189, 248, 0.35); }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card__head .h3 { display: flex; align-items: center; gap: 7px; }
.card__head .h3 i { color: var(--gold); font-size: 12px; }
.card__art { margin: -16px -16px 0; height: 96px; border-radius: var(--r-lg) var(--r-lg) 0 0; overflow: hidden; position: relative; }
.card__art img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }
.card__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 20%, var(--surface) 100%); }
.divider { height: 1px; background: var(--line); margin: 2px 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 16px; border-radius: var(--r-md);
  font-size: 13px; font-weight: 800; letter-spacing: -0.01em;
  transition: transform 0.12s var(--ease), background 0.2s, border-color 0.2s, opacity 0.2s;
  white-space: nowrap; user-select: none;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn--primary { background: linear-gradient(135deg, var(--gold-2), var(--gold) 55%, var(--gold-3)); color: #100c04; box-shadow: var(--shadow-gold); }
.btn--ghost { background: var(--surface-2); border: 1px solid var(--line-2); color: var(--text); }
.btn--ghost:hover { border-color: var(--gold-line); }
.btn--soft { background: var(--gold-dim); border: 1px solid var(--gold-line); color: var(--gold-2); }
.btn--emerald { background: linear-gradient(135deg, #6ee7b7, var(--emerald)); color: #04140d; box-shadow: 0 8px 22px rgba(52, 211, 153, 0.25); }
.btn--danger { background: linear-gradient(135deg, #fda4af, var(--rose)); color: #1b0509; }
.btn--sm { min-height: 34px; padding: 0 12px; font-size: 12px; border-radius: 11px; }
.btn--xs { min-height: 28px; padding: 0 10px; font-size: 11px; border-radius: 9px; }
.btn--block { width: 100%; }
.btn--icon { width: 40px; min-height: 40px; padding: 0; border-radius: 50%; }
.btn--icon.btn--sm { width: 34px; min-height: 34px; }
.btn--rec { background: linear-gradient(135deg, #fb7185, #e11d48); color: #fff; box-shadow: 0 8px 26px rgba(225, 29, 72, 0.35); animation: pulseRec 1.2s infinite; }
.btn--big { width: 92px; height: 92px; border-radius: 50%; flex-direction: column; gap: 4px; font-size: 24px; padding: 0; margin: 0 auto; }
.btn--big .btn__label { font-size: 10px; letter-spacing: 0; }
.iconbtn { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--line); transition: all 0.2s; }
.iconbtn:hover { color: var(--text); border-color: var(--line-2); }
.iconbtn--gold { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #100c04; border: 0; }

/* Chips */
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 999px;
  font-size: 10.5px; font-weight: 700; line-height: 1.5;
  background: var(--surface-3); color: var(--text-2); border: 1px solid var(--line);
  white-space: nowrap;
}
.chip--mono { font-family: var(--mono); letter-spacing: 0.04em; }
.chip--gold { background: var(--gold-dim); color: var(--gold); border-color: var(--gold-line); }
.chip--emerald { background: rgba(52, 211, 153, 0.12); color: var(--emerald); border-color: rgba(52, 211, 153, 0.3); }
.chip--amber { background: rgba(251, 191, 36, 0.12); color: var(--amber); border-color: rgba(251, 191, 36, 0.3); }
.chip--rose { background: rgba(251, 113, 133, 0.12); color: var(--rose); border-color: rgba(251, 113, 133, 0.3); }
.chip--sky { background: rgba(56, 189, 248, 0.12); color: var(--sky); border-color: rgba(56, 189, 248, 0.3); }
.chip--violet { background: rgba(167, 139, 250, 0.12); color: var(--violet); border-color: rgba(167, 139, 250, 0.3); }
.chip--solid { background: var(--gold); color: #100c04; border-color: transparent; }
.chip--btn { cursor: pointer; transition: all 0.2s; }
.chip--btn:hover, .chip--btn[aria-pressed="true"] { border-color: var(--gold-line); color: var(--gold-2); background: var(--gold-dim); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips--scroll { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; }

/* Segmented control */
.seg { display: flex; gap: 4px; padding: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; }
.seg--scroll { overflow-x: auto; }
.seg__btn { flex: 1; min-height: 34px; padding: 0 10px; border-radius: 10px; font-size: 12px; font-weight: 700; color: var(--text-3); transition: all 0.2s var(--ease); white-space: nowrap; }
.seg__btn[aria-selected="true"] { background: var(--surface-3); color: var(--text); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35); }
.seg--tier .seg__btn[aria-selected="true"][data-tier="beginner"] { background: rgba(52, 211, 153, 0.16); color: var(--emerald); }
.seg--tier .seg__btn[aria-selected="true"][data-tier="intermediate"] { background: rgba(251, 191, 36, 0.16); color: var(--amber); }
.seg--tier .seg__btn[aria-selected="true"][data-tier="advanced"] { background: rgba(251, 113, 133, 0.16); color: var(--rose); }

/* Inputs */
.input, .select, .textarea {
  width: 100%; min-height: 42px; padding: 10px 12px;
  background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--r-md);
  color: var(--text); font-size: 13px; transition: border-color 0.2s;
}
.input::placeholder { color: var(--text-3); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--gold); }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%), linear-gradient(135deg, var(--text-3) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
.label { font-size: 11px; font-weight: 700; color: var(--text-2); margin-bottom: 5px; display: block; }
.field { display: flex; flex-direction: column; }
.inputrow { display: flex; gap: 8px; }
.inputrow .input { flex: 1; }

input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 20px; background: transparent; }
input[type="range"]:focus { outline: none; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; height: 14px; width: 14px; border-radius: 50%; background: var(--gold); border: 2px solid #fff; margin-top: -5px; box-shadow: 0 0 10px var(--gold-glow); transition: transform 0.1s; }
input[type="range"]::-webkit-slider-thumb:active { transform: scale(1.3); }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); }
input[type="range"]::-moz-range-thumb { height: 14px; width: 14px; border-radius: 50%; background: var(--gold); border: 2px solid #fff; }

/* Meters & stats */
.meter { height: 6px; background: #05050a; border-radius: 999px; overflow: hidden; border: 1px solid var(--line); }
.meter > div { height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--gold-3), var(--gold-2)); transition: width 0.6s var(--ease); }
.meter--emerald > div { background: linear-gradient(90deg, #059669, var(--emerald)); }
.meter--sky > div { background: linear-gradient(90deg, #0284c7, var(--sky)); }
.meter--violet > div { background: linear-gradient(90deg, #7c3aed, var(--violet)); }
.meter--rose > div { background: linear-gradient(90deg, #be123c, var(--rose)); }
.metric { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md); }
.metric__row { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; font-size: 11px; color: var(--text-2); }
.metric__row > span:first-child { white-space: nowrap; flex: none; }
.metric__val { font-family: var(--mono); font-weight: 800; font-size: 12px; text-align: right; line-height: 1.4; }
.stat { padding: 10px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md); text-align: center; }
.stat__label { font-size: 10px; color: var(--text-3); font-weight: 600; }
.stat__val { font-size: 13px; font-weight: 800; margin-top: 2px; font-family: var(--mono); }

/* Grid helpers */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }

/* Callouts */
.callout { padding: 10px 12px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface-2); display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--text-2); line-height: 1.55; }
.callout__title { font-size: 11px; font-weight: 800; display: flex; align-items: center; gap: 6px; }
.callout--why { background: linear-gradient(135deg, rgba(230, 177, 92, 0.14), rgba(230, 177, 92, 0.02)); border-color: var(--gold-line); color: var(--text); }
.callout--how .callout__title { color: var(--emerald); }
.callout--pitfall .callout__title { color: var(--rose); }
.callout--quote { border-left: 3px solid var(--gold); background: var(--gold-dim); font-style: italic; color: var(--gold-2); }
.callout--result { border-color: rgba(52, 211, 153, 0.4); }

/* Lists */
.list { display: flex; flex-direction: column; gap: 8px; }
.li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md); font-size: 12px; }
.li__n { width: 22px; height: 22px; border-radius: 8px; background: var(--gold); color: #100c04; font-weight: 900; font-size: 11px; display: grid; place-items: center; flex: none; font-family: var(--mono); }
.li__body { flex: 1; min-width: 0; }
.li__title { font-weight: 700; color: var(--text); }
.li__sub { color: var(--text-2); margin-top: 2px; line-height: 1.5; }

/* Checklist */
.check { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line); cursor: pointer; font-size: 12px; transition: all 0.2s; text-align: left; width: 100%; }
.check__box { width: 18px; height: 18px; border-radius: 6px; border: 1.5px solid var(--line-2); display: grid; place-items: center; font-size: 10px; color: transparent; flex: none; transition: all 0.2s; }
.check[aria-checked="true"] { border-color: rgba(52, 211, 153, 0.4); }
.check[aria-checked="true"] .check__box { background: var(--emerald); border-color: var(--emerald); color: #04140d; }
.check[aria-checked="true"] .check__label { color: var(--text-2); text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, 0.25); }

/* Avatar */
.avatar { position: relative; width: 132px; height: 132px; border-radius: 50%; overflow: hidden; margin: 0 auto; border: 2px solid var(--gold-line); background: #000; box-shadow: 0 0 0 6px rgba(230, 177, 92, 0.06), var(--shadow-1); }
.avatar--sq { border-radius: 22px; width: 160px; height: 160px; }
.avatar video, .avatar img, .avatar canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.avatar__rest { transition: opacity 0.25s; }
.avatar__aura { position: absolute; inset: 0; border-radius: inherit; border: 3px solid var(--gold); opacity: 0; pointer-events: none; transition: opacity 0.2s; box-shadow: 0 0 24px var(--gold-glow) inset; }
.avatar-wrap { position: relative; width: max-content; margin: 0 auto; }
.avatar-wrap .ringpulse { position: absolute; inset: -10px; border-radius: 50%; border: 1px solid var(--gold-line); opacity: 0; pointer-events: none; }
.is-speaking .ringpulse { animation: ringOut 1.6s ease-out infinite; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; color: var(--text-2); }
.status__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); }
.is-speaking .status__dot { background: var(--emerald); animation: blink 1s infinite; }
.is-speaking .status { color: var(--emerald); }

/* Player */
.player { display: flex; align-items: center; gap: 10px; }
.player__time { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10px; color: var(--text-3); margin-top: -4px; }
.player__body { flex: 1; min-width: 0; }
.speed { min-width: 44px; padding: 5px 8px; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--line); font-family: var(--mono); font-size: 10px; font-weight: 800; color: var(--gold); }

/* Steps */
.step { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.step__n { width: 22px; height: 22px; border-radius: 50%; background: var(--gold); color: #100c04; font-size: 11px; font-weight: 900; display: grid; place-items: center; font-family: var(--mono); }
.step__title { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 800; }

/* Journey map */
.journey { display: flex; flex-direction: column; gap: 10px; }
.block { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.block__head { position: relative; height: 84px; display: flex; align-items: flex-end; padding: 12px 14px; }
.block__head img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.block__head::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 7, 11, 0.1), rgba(16, 16, 26, 0.95)); }
.block__head > div { position: relative; z-index: 1; display: flex; align-items: flex-end; justify-content: space-between; width: 100%; gap: 8px; }
.block__title { font-size: 14px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.block__title i { color: var(--gold); font-size: 12px; }
.block__body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; }
.node { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface-2); text-align: left; width: 100%; transition: all 0.2s var(--ease); position: relative; }
.node:hover { border-color: var(--line-2); }
.node__num { width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; font-family: var(--mono); font-weight: 900; font-size: 13px; background: var(--surface-3); color: var(--text-3); border: 1px solid var(--line); flex: none; }
.node__body { flex: 1; min-width: 0; }
.node__title { font-size: 12.5px; font-weight: 800; display: flex; align-items: center; gap: 6px; }
.node__sub { font-size: 11px; color: var(--text-3); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.node__state { font-size: 10px; font-family: var(--mono); font-weight: 700; flex: none; }
.node.is-done .node__num { background: rgba(52, 211, 153, 0.15); color: var(--emerald); border-color: rgba(52, 211, 153, 0.35); }
.node.is-done .node__state { color: var(--emerald); }
.node.is-current { border-color: var(--gold-line); background: linear-gradient(135deg, rgba(230, 177, 92, 0.14), var(--surface-2) 60%); box-shadow: 0 6px 20px rgba(230, 177, 92, 0.12); }
.node.is-current .node__num { background: var(--gold); color: #100c04; border-color: transparent; }
.node.is-current .node__state { color: var(--gold); }
.node.is-locked { opacity: 0.55; }
.node.is-locked .node__state { color: var(--text-3); }
.node__connector { position: absolute; left: 28px; bottom: -8px; width: 2px; height: 8px; background: var(--line-2); }

/* Drills & timer */
.drill { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md); transition: all 0.2s; }
.drill.is-active { border-color: var(--gold-line); background: linear-gradient(135deg, rgba(230, 177, 92, 0.12), var(--surface-2) 70%); }
.drill.is-done { opacity: 0.6; }
.drill__body { flex: 1; min-width: 0; }
.drill__name { font-size: 12.5px; font-weight: 800; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.drill__inst { font-size: 11px; color: var(--text-2); margin-top: 2px; line-height: 1.5; }
.drill__cue { font-size: 10.5px; color: var(--gold); margin-top: 3px; font-weight: 600; }
.timer { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: var(--r-lg); background: linear-gradient(135deg, rgba(230, 177, 92, 0.12), var(--surface-2) 70%); border: 1px solid var(--gold-line); }
.ring { position: relative; width: 66px; height: 66px; flex: none; }
.ring svg { transform: rotate(-90deg); width: 100%; height: 100%; }
.ring__bg { fill: none; stroke: rgba(255, 255, 255, 0.1); stroke-width: 5; }
.ring__fg { fill: none; stroke: var(--gold); stroke-width: 5; stroke-linecap: round; transition: stroke-dashoffset 0.9s linear; }
.ring__txt { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--mono); font-weight: 900; font-size: 15px; }
.timer__body { flex: 1; min-width: 0; }
.timer__name { font-size: 13px; font-weight: 800; }
.timer__cue { font-size: 11px; color: var(--gold); margin-top: 2px; }
.timer__ctl { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }

/* Cam HUD */
.cam { position: relative; width: 100%; aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden; background: #000; border: 1px solid var(--line-2); }
.cam video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.cam__overlay { position: absolute; inset: 0; pointer-events: none; display: flex; align-items: center; justify-content: center; }
.reticle { width: 138px; height: 178px; border-radius: 50% / 60%; border: 1px dashed rgba(230, 177, 92, 0.5); position: relative; }
.reticle span { position: absolute; left: 50%; transform: translateX(-50%); font-family: var(--mono); font-size: 7px; color: var(--gold-2); background: rgba(0, 0, 0, 0.7); padding: 1px 5px; border-radius: 4px; white-space: nowrap; }
.reticle span.top { top: 6px; }
.reticle span.bottom { bottom: 6px; }
.reticle::after { content: ""; position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); width: 26px; height: 2px; background: rgba(230, 177, 92, 0.6); }
.cam__scope { position: absolute; left: 8px; right: 8px; bottom: 8px; height: 40px; pointer-events: none; opacity: 0.9; }
.cam__scope canvas { width: 100%; height: 100%; }
.cam__prompt { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.82); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 16px; text-align: center; font-size: 12px; color: var(--text-2); }
.cam__prompt i { font-size: 26px; color: var(--gold); }
.cam__count { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.72); backdrop-filter: blur(3px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.cam__hud { position: absolute; top: 8px; left: 8px; right: 8px; display: flex; justify-content: space-between; pointer-events: none; }
.hudtag { font-family: var(--mono); font-size: 9px; padding: 2px 7px; border-radius: 6px; background: rgba(0, 0, 0, 0.6); color: var(--gold-2); border: 1px solid var(--gold-line); }
.hudtag--live { color: #fda4af; border-color: rgba(251, 113, 133, 0.4); }
.hudtag--live::before { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--rose); margin-right: 5px; animation: blink 1s infinite; }

/* Ghost mirror */
.ghost { position: relative; height: 110px; border-radius: var(--r-md); background: #05050a; border: 1px solid var(--line); overflow: hidden; }
.ghost canvas { width: 100%; height: 100%; }
.ghost__legend { position: absolute; top: 6px; left: 8px; right: 8px; display: flex; justify-content: space-between; font-family: var(--mono); font-size: 9px; pointer-events: none; }
.ghost__legend span::before { content: "●"; margin-right: 4px; }
.ghost__score { position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%); font-family: var(--mono); font-size: 10px; font-weight: 800; padding: 2px 10px; border-radius: 999px; background: rgba(0, 0, 0, 0.7); border: 1px solid var(--line-2); white-space: nowrap; }

/* Visualizer (singing) */
.viz { position: relative; height: 96px; border-radius: var(--r-md); background: #05050a; border: 1px solid var(--line); overflow: hidden; }
.viz canvas { width: 100%; height: 100%; }
.viz__hint { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--mono); font-size: 10px; color: var(--text-3); pointer-events: none; }
.viz__pitch { position: absolute; top: 6px; right: 8px; font-family: var(--mono); font-size: 10px; color: var(--gold-2); background: rgba(0, 0, 0, 0.6); padding: 2px 7px; border-radius: 6px; border: 1px solid var(--gold-line); }

/* Radar */
.radar { width: 100%; max-width: 250px; margin: 0 auto; display: block; }
.radar .grid { fill: none; stroke: rgba(255, 255, 255, 0.1); stroke-width: 1; }
.radar .axis { stroke: rgba(255, 255, 255, 0.12); stroke-width: 1; }
.radar .area { fill: rgba(230, 177, 92, 0.22); stroke: var(--gold); stroke-width: 2; stroke-linejoin: round; }
.radar .lbl { font-size: 9px; fill: var(--text-2); font-family: var(--font); font-weight: 700; }
.radar .dot { fill: var(--gold-2); }

/* Badges */
.badge { padding: 10px 6px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line); text-align: center; opacity: 0.4; transition: all 0.3s; }
.badge__icon { font-size: 18px; }
.badge__name { font-size: 9px; font-weight: 800; margin-top: 4px; line-height: 1.3; color: var(--text-2); }
.badge.is-on { opacity: 1; }
.badge.is-on[data-tone="emerald"] { border-color: rgba(52, 211, 153, 0.4); background: rgba(52, 211, 153, 0.1); }
.badge.is-on[data-tone="sky"] { border-color: rgba(56, 189, 248, 0.4); background: rgba(56, 189, 248, 0.1); }
.badge.is-on[data-tone="violet"] { border-color: rgba(167, 139, 250, 0.4); background: rgba(167, 139, 250, 0.1); }
.badge.is-on[data-tone="gold"] { border-color: var(--gold-line); background: var(--gold-dim); box-shadow: var(--shadow-gold); }

/* Sparkline / history */
.history { display: flex; flex-direction: column; gap: 6px; }
.hist { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md); font-size: 11px; }
.hist__score { font-family: var(--mono); font-weight: 900; font-size: 13px; width: 40px; }
.hist__meta { flex: 1; min-width: 0; color: var(--text-2); }
.hist__date { color: var(--text-3); font-family: var(--mono); font-size: 10px; }

/* Glossary / FAQ accordions */
.acc { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-2); overflow: hidden; }
.acc__btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 12px; text-align: left; }
.acc__title { font-size: 12.5px; font-weight: 800; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.acc__title small { font-size: 11px; font-weight: 500; color: var(--text-2); line-height: 1.45; }
.acc__chev { color: var(--text-3); transition: transform 0.25s var(--ease); flex: none; }
.acc[open] .acc__chev { transform: rotate(180deg); }
.acc__body { padding: 0 12px 12px; display: flex; flex-direction: column; gap: 8px; font-size: 12px; color: var(--text-2); line-height: 1.6; }
details.acc > summary { list-style: none; }
details.acc > summary::-webkit-details-marker { display: none; }
.tierline { display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.tierline__b { font-size: 12px; flex: none; }
.tierline__t { color: var(--text-2); font-size: 11.5px; line-height: 1.55; }

/* Song cards */
.song { display: flex; gap: 10px; padding: 10px 12px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md); align-items: flex-start; }
.song__n { width: 30px; height: 30px; border-radius: 9px; background: var(--gold-dim); color: var(--gold); border: 1px solid var(--gold-line); display: grid; place-items: center; font-size: 12px; flex: none; }
.song__body { flex: 1; min-width: 0; }
.song__title { font-size: 12.5px; font-weight: 800; }
.song__artist { color: var(--text-3); font-weight: 500; font-size: 11px; }
.song__why { font-size: 11px; color: var(--text-2); margin-top: 3px; line-height: 1.5; }

/* Pricing */
.plan { position: relative; padding: 12px 14px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line); cursor: pointer; transition: all 0.2s; text-align: left; width: 100%; }
.plan[aria-checked="true"] { border: 2px solid var(--gold); background: var(--gold-dim); }
.plan__best { position: absolute; top: -9px; right: 12px; padding: 2px 8px; border-radius: 999px; background: var(--gold); color: #100c04; font-size: 9px; font-weight: 900; }
.plan__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.plan__name { font-size: 12.5px; font-weight: 800; }
.plan__price { font-family: var(--mono); font-weight: 900; color: var(--gold); font-size: 14px; }
.plan__orig { font-family: var(--mono); font-size: 10px; color: var(--text-3); text-decoration: line-through; text-align: right; }
.plan__desc { font-size: 11px; color: var(--text-2); margin-top: 4px; line-height: 1.5; }

/* Certificate */
.cert { padding: 18px 16px; border-radius: var(--r-lg); background: linear-gradient(180deg, #14131c, #0a0a10); border: 1px solid var(--gold-line); position: relative; overflow: hidden; text-align: center; display: flex; flex-direction: column; gap: 10px; }
.cert::before { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(230, 177, 92, 0.25); border-radius: 14px; pointer-events: none; }
.cert__seal { width: 56px; height: 56px; border-radius: 50%; margin: 0 auto; background: radial-gradient(circle at 30% 30%, var(--gold-2), var(--gold-3)); display: grid; place-items: center; color: #100c04; font-size: 22px; box-shadow: var(--shadow-gold); }
.cert__name { font-size: 18px; font-weight: 900; color: var(--gold-2); letter-spacing: -0.01em; }
.cert__body { font-size: 11.5px; color: var(--text-2); line-height: 1.65; }
.cert__foot { display: flex; justify-content: space-between; font-size: 10px; color: var(--text-3); padding-top: 8px; border-top: 1px solid var(--line); }

/* Empty / skeleton */
.skeleton { border-radius: var(--r-md); background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; min-height: 48px; }
.empty { padding: 20px; text-align: center; color: var(--text-3); font-size: 12px; border: 1px dashed var(--line-2); border-radius: var(--r-md); }

/* Setting rule bar */
.rule { display: flex; height: 26px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); font-family: var(--mono); font-size: 10px; font-weight: 800; }
.rule > div { display: grid; place-items: center; color: #100c04; white-space: nowrap; overflow: hidden; }
.rule .r1 { background: var(--gold); }
.rule .r2 { background: var(--gold-2); }
.rule .r3 { background: #fff1d6; }
.rule-legend { display: flex; gap: 12px; font-size: 11px; color: var(--text-2); flex-wrap: wrap; }
.rule-legend span::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.rule-legend .l1::before { background: var(--gold); }
.rule-legend .l2::before { background: var(--gold-2); }
.rule-legend .l3::before { background: #fff1d6; }

/* Q&A bubbles */
.bubble { padding: 10px 12px; border-radius: 14px; font-size: 12px; line-height: 1.55; }
.bubble--user { background: var(--surface-3); color: var(--text-2); border-bottom-right-radius: 4px; align-self: flex-end; max-width: 92%; }
.bubble--master { background: linear-gradient(135deg, rgba(230, 177, 92, 0.16), var(--surface-2)); border: 1px solid var(--gold-line); color: var(--text); border-bottom-left-radius: 4px; }
.bubble__who { font-size: 10px; font-weight: 800; margin-bottom: 3px; }

/* 7. OVERLAYS -------------------------------------------------------- */
.backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(2, 2, 4, 0.78); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); display: flex; align-items: center; justify-content: center; padding: 18px; animation: fadeIn 0.2s; }
.modal { width: 100%; max-width: 380px; max-height: calc(100dvh - 36px); overflow-y: auto; background: var(--surface); border: 1px solid var(--gold-line); border-radius: var(--r-xl); padding: 22px 20px; display: flex; flex-direction: column; gap: 14px; position: relative; box-shadow: var(--shadow-1); animation: popIn 0.28s var(--ease); }
.modal--emerald { border-color: rgba(52, 211, 153, 0.5); }
.modal__close { position: absolute; top: 12px; right: 12px; }
.modal__icon { width: 52px; height: 52px; border-radius: 16px; margin: 0 auto; display: grid; place-items: center; font-size: 20px; color: #100c04; background: linear-gradient(135deg, var(--gold-2), var(--gold-3)); box-shadow: var(--shadow-gold); }
.modal__icon--emerald { background: linear-gradient(135deg, #6ee7b7, var(--emerald)); }

.sheet-backdrop { position: fixed; inset: 0; z-index: 45; background: rgba(2, 2, 4, 0.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fadeIn 0.2s; }
.sheet { position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); width: 100%; max-width: var(--app-w); max-height: 88dvh; z-index: 46; background: var(--surface); border: 1px solid var(--line-2); border-bottom: 0; border-radius: var(--r-xl) var(--r-xl) 0 0; display: flex; flex-direction: column; animation: sheetUp 0.32s var(--ease); box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.6); }
.sheet__grip { width: 40px; height: 4px; border-radius: 999px; background: var(--line-2); margin: 10px auto 0; }
.sheet__head { padding: 10px 18px 12px; display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line); }
.sheet__body { padding: 14px 18px calc(18px + var(--safe-bottom)); overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }

.focus { position: fixed; inset: 0; z-index: 60; background: #030305; display: flex; flex-direction: column; animation: fadeIn 0.3s; }
.focus__bg { position: absolute; inset: 0; background: url("/public/masterclass_hall.jpg") center/cover no-repeat; opacity: 0.22; filter: blur(6px) saturate(0.8); }
.focus__glow { position: absolute; left: 50%; top: 32%; width: 420px; height: 420px; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, var(--gold-glow), transparent 65%); opacity: 0.35; pointer-events: none; transition: opacity 0.12s, transform 0.12s; }
.focus__inner { position: relative; z-index: 1; width: 100%; max-width: var(--app-w); margin: 0 auto; flex: 1; display: flex; flex-direction: column; padding: calc(14px + var(--safe-top)) 18px calc(18px + var(--safe-bottom)); gap: 16px; }
.focus__top { display: flex; align-items: center; justify-content: space-between; }
.focus .avatar { width: 200px; height: 200px; }
.focus__script { flex: 1; overflow-y: auto; font-size: 16px; line-height: 1.85; font-weight: 600; color: var(--text-3); text-align: center; padding: 6px 4px; }
.focus__script span { transition: color 0.3s; }
.focus__script span.is-past { color: var(--text-2); }
.focus__script span.is-now { color: var(--gold-2); text-shadow: 0 0 18px var(--gold-glow); }
.focus__ctl { display: flex; align-items: center; justify-content: center; gap: 14px; }

.toasts { position: fixed; left: 50%; bottom: calc(var(--dock-h) + var(--safe-bottom) + 14px); transform: translateX(-50%); z-index: 70; display: flex; flex-direction: column; gap: 8px; width: min(92vw, 380px); pointer-events: none; }
.toast { padding: 10px 14px; border-radius: 14px; background: rgba(20, 20, 30, 0.95); border: 1px solid var(--line-2); color: var(--text); font-size: 12px; font-weight: 600; display: flex; align-items: center; gap: 8px; box-shadow: var(--shadow-1); animation: toastIn 0.3s var(--ease); pointer-events: auto; }
.toast i { color: var(--gold); }
.toast--ok { border-color: rgba(52, 211, 153, 0.4); }
.toast--ok i { color: var(--emerald); }
.toast--err { border-color: rgba(251, 113, 133, 0.4); }
.toast--err i { color: var(--rose); }

/* 8. MOTION & A11Y --------------------------------------------------- */
@keyframes viewIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { from { opacity: 0; transform: scale(0.96) translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes sheetUp { from { transform: translate(-50%, 40px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes blink { 50% { opacity: 0.35; } }
@keyframes ringOut { 0% { transform: scale(0.9); opacity: 0.6; } 100% { transform: scale(1.25); opacity: 0; } }
@keyframes pulseRec { 0%, 100% { box-shadow: 0 8px 26px rgba(225, 29, 72, 0.35); } 50% { box-shadow: 0 8px 40px rgba(225, 29, 72, 0.6); } }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* 9. UTILITIES ------------------------------------------------------- */
.row { display: flex; align-items: center; gap: 8px; }
.col { display: flex; flex-direction: column; gap: 8px; }
.between { justify-content: space-between; }
.center { text-align: center; }
.wrap { flex-wrap: wrap; }
.gap-4 { gap: 4px; } .gap-6 { gap: 6px; } .gap-10 { gap: 10px; } .gap-12 { gap: 12px; }
.mt-4 { margin-top: 4px; } .mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; }
.flex-1 { flex: 1; min-width: 0; }
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hide-scroll { scrollbar-width: none; -ms-overflow-style: none; }
.hide-scroll::-webkit-scrollbar { display: none; }
.clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.link { color: var(--gold); font-weight: 700; cursor: pointer; }
.link:hover { text-decoration: underline; }

/* Desktop framing */
@media (min-width: 768px) {
  .ambient::after { opacity: 1; }
  .app { margin: 24px auto; min-height: calc(100dvh - 48px); border-radius: 34px; border: 1px solid var(--line-2); box-shadow: 0 40px 120px rgba(0, 0, 0, 0.7), 0 0 0 8px rgba(255, 255, 255, 0.02); overflow: clip; }
  .topbar { border-radius: 34px 34px 0 0; }
  .dock { bottom: 24px; border-radius: 0 0 34px 34px; overflow: hidden; }
  .sheet { bottom: 24px; border-radius: var(--r-xl); border-bottom: 1px solid var(--line-2); }
  .toasts { bottom: calc(var(--dock-h) + 40px); }
}
@media (max-width: 360px) {
  .view { padding: 12px 12px 8px; }
  .card { padding: 14px; }
  .tab { font-size: 9.5px; }
}

/* 3.0.1 accessibility and readable narrow-screen finishing */
.focus.has-video .avatar { width: min(70vw, 225px); height: min(124.44vw, 400px); border-radius: 20px; }
.focus.has-video .ringpulse { display: none; }
.focus.has-video .focus__inner { gap: 10px; }
.input, .select, textarea { font-size: 16px; }
.topbar__actions .btn, .speed, .chip--btn, .seg__btn, .iconbtn { min-height: 44px; }
.iconbtn { min-width: 44px; }
.callout p, .li__sub { font-size: 13px; line-height: 1.75; }
.tiny { font-size: 12px; }
.brand__sub { white-space: normal; font-size: 10px; }
.modal { max-height: calc(100dvh - 32px); overflow-y: auto; }
@media (max-width: 380px) {
  .topbar { padding-inline: 12px; flex-wrap: wrap; gap: 8px; }
  .brand { flex: 1 1 100%; }
  .topbar__actions { width: 100%; justify-content: flex-end; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .avatar__aura, .focus__glow, .ringpulse { display: none !important; }
}

.focus.has-square-video .avatar { width: min(82vw, 320px); height: min(82vw, 320px); }
.iconbtn--gold i { color: #17130d; }
