:root {
  --bg: #05070b;
  --bg-elevated: #0b0e14;
  --bg-soft: #11151d;
  --surface: rgba(255,255,255,0.06);
  --surface-strong: rgba(255,255,255,0.09);
  --surface-soft: rgba(255,255,255,0.035);
  --border: rgba(255,255,255,0.09);
  --border-strong: rgba(255,255,255,0.16);
  --text: #f5f7fb;
  --text-dim: rgba(245,247,251,0.72);
  --text-muted: rgba(245,247,251,0.44);
  --accent: #8cb8ff;
  --accent-strong: #cfe1ff;
  --accent-soft: rgba(140,184,255,0.14);
  --green: #65d38d;
  --yellow: #f0c45c;
  --red: #ff727a;
  --font: 'DM Sans', sans-serif;
  --mono: 'DM Mono', monospace;
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --shadow-lg: 0 24px 70px rgba(0,0,0,0.42);
  --shadow-md: 0 16px 34px rgba(0,0,0,0.24);
  --shadow-sm: 0 10px 18px rgba(0,0,0,0.18);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-tap-highlight-color: transparent;
}
body { overflow-x: hidden; overflow-y: auto; }
button, input, textarea, select { font: inherit; }
button { appearance: none; -webkit-appearance: none; }

#app {
  min-height: 100vh;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
  background:
    radial-gradient(circle at 50% -8%, rgba(255,255,255,.12), transparent 34%),
    radial-gradient(circle at 78% 72%, rgba(140,184,255,.10), transparent 24%),
    linear-gradient(180deg, #0a0c11 0%, #05070b 38%, #06080c 100%);
}
#app::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.03), transparent 18%, transparent 82%, rgba(255,255,255,.02));
  opacity: .7;
}

.screen {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 18px 22px 28px;
  animation: screenEnter .32s cubic-bezier(.22,1,.36,1) both;
}
.screen-home { padding-top: 18px; }
.screen-form { padding-bottom: 20px; }
@keyframes screenEnter {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.nav,
.nav-minimal {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.nav-logo {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text);
}
.page-kicker,
.eyebrow,
.lbl,
.section-meta,
.scan-meta,
.scan-brand,
.hero-topline,
.hero-side-label,
.stat-label,
.field-label,
.mc-lbl,
.badge,
.page-kicker {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: .14em;
}
.page-kicker,
.eyebrow,
.lbl,
.section-meta,
.field-label,
.hero-side-label,
.stat-label,
.mc-lbl,
.scan-brand,
.scan-meta { color: var(--text-muted); }
.page-kicker,
.eyebrow { font-size: 11px; }

.page-intro {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 2px;
}
.page-intro-home { margin-bottom: 6px; }
.h1 {
  font-size: 48px;
  line-height: .94;
  letter-spacing: -.05em;
  font-weight: 600;
}
.h2 {
  font-size: 34px;
  line-height: .98;
  letter-spacing: -.045em;
  font-weight: 600;
}
.body {
  font-size: 14px;
  line-height: 1.64;
  color: var(--text-dim);
}
.body-wide { max-width: 36ch; }

.card,
.section-card,
.hero-panel,
.score-toast,
.permission-card,
.quick-sheet,
.profile-card,
.mc,
.ind-row,
.action-box {
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.03));
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}
.card,
.section-card,
.hero-panel,
.profile-card,
.metric-feature-card,
.action-box { border-radius: var(--radius-lg); }
.card { padding: 22px; }
.section-card { padding: 18px; }
.form-card { display: flex; flex-direction: column; gap: 22px; }
.profile-card { padding: 22px; }

.hero-panel {
  padding: 24px;
  background:
    radial-gradient(circle at 14% 12%, rgba(255,255,255,.12), transparent 30%),
    linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03));
}
.hero-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.hero-score-line {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-top: 6px;
}
.hero-score-xl {
  font-size: 78px;
  line-height: .88;
  letter-spacing: -.07em;
  font-weight: 400;
  font-family: var(--mono);
}
.hero-score-den,
.score-den {
  font-size: 15px;
  color: var(--text-muted);
  padding-bottom: 10px;
}
.hero-panel-side {
  min-width: 120px;
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hero-side-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.hero-side-meta {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
}
.hero-progress,
.progress,
.scan-meter {
  position: relative;
  height: 8px;
  margin-top: 22px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,.06);
}
.hero-progress-fill,
.progress-fill,
.scan-meter-fill {
  height: 100%;
  border-radius: 999px;
  transition: width .45s ease;
}
.progress-fill,
.scan-meter-fill {
  background: linear-gradient(90deg, rgba(255,255,255,.95), rgba(140,184,255,.85));
}

.stats-grid {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}
.stats-grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.stat-card,
.home-stat,
.mc {
  border-radius: 18px;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.06);
  padding: 14px 14px 12px;
}
.stat-value,
.home-stat-value,
.mc-val {
  font-size: 24px;
  line-height: 1;
  font-family: var(--mono);
  color: var(--text);
}
.home-stat-label,
.mc-lbl,
.stat-label {
  margin-top: 8px;
  font-size: 10px;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.section-title { font-size: 15px; font-weight: 600; }
.history-card { padding-bottom: 10px; }
.history-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,.05);
}
.history-row.first { border-top: none; padding-top: 6px; }
.history-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.history-bullet { width: 9px; height: 9px; border-radius: 50%; }
.history-title { font-size: 14px; font-weight: 500; }
.history-sub,
.empty-state,
.field-note,
.trend,
.hero-date,
.range-val,
.permission-text,
.baseline-meta { font-size: 12px; color: var(--text-muted); }
.history-score { font-size: 19px; font-family: var(--mono); }
.empty-state { line-height: 1.7; padding: 4px 0 8px; }

.btn {
  width: 100%;
  min-height: 58px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.08);
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.01em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: transform .16s ease, opacity .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
}
.btn:hover { box-shadow: 0 14px 26px rgba(0,0,0,.18); }
.btn:active { transform: scale(.985); }
.btn:disabled { opacity: .42; cursor: not-allowed; }
.btn-lg { min-height: 60px; }
.btn-primary {
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(230,234,241,.9));
  color: #0b0e13;
  border-color: rgba(255,255,255,.5);
  box-shadow: 0 14px 28px rgba(0,0,0,.20), inset 0 1px 0 rgba(255,255,255,.8);
}
.btn-ghost {
  min-height: 46px;
  border-radius: 999px;
  padding: 0 18px;
  width: auto;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 14px;
}
.btn-ghost:hover { border-color: var(--border-strong); color: var(--text); }
.btn-ghost-subtle {
  width: 100%;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-family: var(--mono);
  color: var(--text-muted);
  border-style: dashed;
}
.sticky-bottom {
  position: sticky;
  bottom: 0;
  padding-top: 14px;
  background: linear-gradient(180deg, transparent, rgba(5,7,11,.88) 24%, rgba(5,7,11,1));
}

.field { display: flex; flex-direction: column; gap: 10px; }
.field:last-child { margin-bottom: 0; }
.field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.field-note { line-height: 1.58; }
.field-separated { padding-top: 14px; border-top: 1px solid rgba(255,255,255,.06); }
.toggle-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.split-2 .tog { flex: 1 1 calc(50% - 5px); }
.split-3 .tog { flex: 1 1 calc(33.333% - 7px); }
.tog {
  flex: 1;
  min-height: 50px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  color: var(--text-dim);
  text-align: center;
  cursor: pointer;
  transition: all .18s ease;
}
.tog.on {
  background: rgba(255,255,255,.12);
  color: var(--text);
  border-color: rgba(255,255,255,.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.range-wrap { position: relative; padding: 4px 0 2px; }
input[type=range] {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  outline: none;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 10px 18px rgba(0,0,0,.26);
}
input[type=range]::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 10px 18px rgba(0,0,0,.26);
}
.range-val {
  font-family: var(--mono);
  color: var(--text);
}
.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.switch-title { font-size: 14px; font-weight: 500; }
.switch {
  width: 50px;
  height: 30px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid var(--border);
  position: relative;
  flex-shrink: 0;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}
.switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,.28);
  transition: transform .2s cubic-bezier(.4,0,.2,1);
}
.switch.on { background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.16); }
.switch.on::after { transform: translateX(20px); }

.full-screen-shell,
.scan-screen {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 24px;
  background:
    radial-gradient(circle at 50% 16%, rgba(255,255,255,.1), transparent 26%),
    linear-gradient(180deg, #07090d 0%, #020305 100%);
}
.modal-brand,
.scan-brand {
  font-size: 12px;
  letter-spacing: .22em;
  margin-bottom: 18px;
}
.modal-head,
.computing-copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  text-align: center;
  margin-bottom: 10px;
}
.permission-screen { gap: 18px; }
.permission-stack {
  width: 100%;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.permission-card {
  width: 100%;
  padding: 18px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.permission-icon { font-size: 22px; }
.permission-copy { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.permission-title { font-size: 15px; font-weight: 600; }
.permission-status {
  font-size: 16px;
  font-family: var(--mono);
  color: var(--text-muted);
}
.error-text {
  min-height: 20px;
  max-width: 300px;
  text-align: center;
  color: var(--red);
  font-size: 13px;
  line-height: 1.5;
}
.modal-actions {
  width: 100%;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quick-update-screen { justify-content: flex-end; padding: 0; }
.quick-sheet-wrap {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: flex-end;
}
.quick-sheet {
  width: 100%;
  border-radius: 28px 28px 0 0;
  padding: 24px 22px 36px;
  transform: translateY(100%);
  transition: transform .48s cubic-bezier(.22,1,.36,1);
}
.quick-sheet.is-visible { transform: translateY(0); }
.sheet-handle {
  width: 40px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  margin: 0 auto 22px;
}
.quick-title { font-size: 30px; }
.quick-copy { margin-bottom: 6px; }
.sheet-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }

.profile-screen .scroll { padding-bottom: 6px; }
.scroll { overflow-y: auto; flex: 1; -ms-overflow-style: none; scrollbar-width: none; }
.scroll::-webkit-scrollbar { display: none; }
.spacer { height: 18px; }
.bottom { padding-top: 14px; }

.test-zone,
.result {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 8px 0;
}
.test-title {
  font-size: 28px;
  line-height: 1.02;
  letter-spacing: -.04em;
  font-weight: 600;
  text-align: center;
}
.test-sub {
  font-size: 15px;
  color: var(--text-dim);
  text-align: center;
  max-width: 300px;
  line-height: 1.6;
}
.test-footnote,
.test-footnote.live,
.test-footnote.done { min-height: 20px; text-align: center; color: var(--text-muted); }
.c-timer,
.score-ring,
.score-ring-clean { position: relative; width: 190px; height: 190px; }
.c-timer { width: 150px; height: 150px; }
.c-timer svg,
.score-ring svg,
.hold-ring { position: absolute; inset: 0; transform: rotate(-90deg); }
.c-inner,
.score-inner,
.computing-orb-center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.c-time,
.score-num,
.computing-pct {
  font-family: var(--mono);
  font-weight: 400;
  letter-spacing: -.05em;
}
.c-time { font-size: 36px; }
.c-lbl { font-size: 10px; color: var(--text-muted); margin-top: 4px; }
.score-num { font-size: 68px; line-height: .9; }
.score-ring-clean { filter: drop-shadow(0 16px 40px rgba(0,0,0,.22)); }

.hold-shell {
  position: relative;
  width: 214px;
  height: 214px;
}
.hold-ring .track {
  stroke: rgba(255,255,255,.08);
  stroke-width: 6;
}
.hold-ring .progress {
  stroke: rgba(255,255,255,.96);
  stroke-width: 6;
  stroke-linecap: round;
}
.touch-disc {
  position: absolute;
  inset: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 30%, rgba(255,255,255,.09), rgba(255,255,255,.02) 62%, rgba(255,255,255,.01));
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 24px 50px rgba(0,0,0,.26);
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}
.touch-disc::before {
  content: '';
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  border: 1px solid rgba(140,184,255,.18);
}
.touch-disc.active {
  transform: scale(.985);
  border-color: rgba(255,255,255,.2);
  background: radial-gradient(circle at 50% 28%, rgba(140,184,255,.22), rgba(255,255,255,.04) 62%, rgba(255,255,255,.01));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 0 0 8px rgba(140,184,255,.06), 0 24px 50px rgba(0,0,0,.26);
}
.touch-disc.done {
  border-color: rgba(101,211,141,.34);
  background: radial-gradient(circle at 50% 28%, rgba(101,211,141,.18), rgba(255,255,255,.04) 62%, rgba(255,255,255,.01));
}
.touch-label { font-size: 14px; letter-spacing: .2em; color: var(--text-dim); }

.tap-area {
  width: 100%;
  height: 220px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.03));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.tap-target,
.drag-ball {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(206,224,255,.86));
  box-shadow: 0 14px 28px rgba(0,0,0,.22);
  display: flex;
  align-items: center;
  justify-content: center;
}
.drag-track {
  width: 100%;
  height: 60px;
  border-radius: 30px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.drag-dest {
  position: absolute;
  top: 50%;
  width: 48px;
  height: 48px;
  margin-top: -24px;
  border-radius: 50%;
  border: 1px dashed rgba(255,255,255,.2);
}

.metrics {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 10px;
}
.results-summary {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.08);
  font-size: 11px;
  font-weight: 700;
}
.badge-floating { margin-top: 2px; }
.trend {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
}
.baseline-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 12px;
}
.indicators {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ind-row {
  border-radius: 18px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.ind-name {
  min-width: 84px;
  font-size: 13px;
  color: var(--text-dim);
}
.ind-bar-wrap {
  flex: 1;
  height: 5px;
  background: rgba(255,255,255,.08);
  border-radius: 999px;
  overflow: hidden;
}
.ind-bar { height: 100%; border-radius: 999px; }
.ind-val {
  min-width: 64px;
  font-size: 12px;
  text-align: right;
  font-family: var(--mono);
  font-weight: 600;
}
.action-box {
  width: 100%;
  padding: 16px 18px;
  text-align: center;
  font-size: 13px;
  line-height: 1.6;
}
.metric-feature-card {
  width: 100%;
  text-align: center;
}
.metric-feature-value {
  font-size: 42px;
  line-height: .95;
  margin-top: 8px;
  font-family: var(--mono);
  color: var(--accent-strong);
}

.scan-shell {
  width: 100%;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.scan-shell-premium {
  padding: 28px 22px;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.035);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.scan-title {
  font-size: 26px;
  line-height: 1;
  letter-spacing: -.04em;
  font-weight: 600;
}

.computing-screen { gap: 18px; }
.computing-orb {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 6px 0 4px;
}
.computing-orb-svg { position: absolute; inset: 0; }
.computing-orb-arc {
  transform: rotate(-90deg);
  transform-origin: 60px 60px;
  transition: stroke-dasharray 3.8s cubic-bezier(.4,0,.2,1);
}
.computing-pct { font-size: 30px; color: var(--accent-strong); }
.score-toast {
  width: 100%;
  max-width: 360px;
  padding: 18px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  transform: translateY(130px);
  opacity: 0;
  transition: transform .56s cubic-bezier(.22,1,.36,1), opacity .3s ease;
}
.score-toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}
.score-toast-value {
  font-size: 48px;
  line-height: .9;
  letter-spacing: -.05em;
  font-family: var(--mono);
}
.score-toast-label { margin-top: 6px; font-size: 13px; font-weight: 600; }

.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5,7,11,.94);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  z-index: 100;
}
.spinner {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.1);
  border-top-color: #fff;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

video { display: none; }

@media (max-height: 760px) {
  .h1 { font-size: 42px; }
  .h2 { font-size: 30px; }
  .hero-score-xl { font-size: 68px; }
  .test-zone,
  .result { justify-content: flex-start; padding-top: 14px; }
}


.nav-actions { display:flex; align-items:center; gap:10px; }

.avatar-btn {
  width:40px;
  height:40px;
  border-radius:50%;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.05);
  color:var(--text);
  font-size:13px;
  font-weight:600;
  letter-spacing:-.01em;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  transition:transform .16s ease, background .16s ease, border-color .16s ease;
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
}

.avatar-btn:hover {
  background:rgba(255,255,255,.09);
  border-color:rgba(255,255,255,.16);
}

.avatar-btn:active { transform:scale(.98); }

.text-input {
  width:100%;
  min-height:52px;
  padding:14px 16px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.04);
  color:var(--text);
  font-size:15px;
  font-family:var(--font);
  outline:none;
  transition:border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.text-input::placeholder { color:var(--text-muted); }

.text-input:focus {
  border-color:rgba(255,255,255,.18);
  background:rgba(255,255,255,.06);
  box-shadow:0 0 0 4px rgba(255,255,255,.03);
}

/* ── Fullscreen test screens ───────────────────────────────────────── */
.test-zone {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 0;
}

/* rhythm bars in variability */
.rhythm {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 68px;
}

.rbar {
  flex: 1;
  background: rgba(140,184,255,.18);
  border-radius: 3px 3px 0 0;
  transition: height .12s cubic-bezier(.22,1,.36,1);
}

/* vertical timer bar */
#v-timer {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  z-index: 10;
  pointer-events: none;
}

#v-timer-fill {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, #00d4ff, #0055ff);
  height: 100%;
  border-radius: 0 0 3px 3px;
  transition: height .9s linear;
}
