:root {
  color-scheme: dark;
  --bg: #11151f;
  --surface: #1a202d;
  --surface-2: #222a39;
  --surface-3: #2b3547;
  --line: rgba(255,255,255,.09);
  --text: #f2f4f8;
  --muted: #929baa;
  --teal: #5cddd2;
  --teal-2: #32b9b0;
  --coral: #ff8b73;
  --yellow: #f2c76b;
  font-family: Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: #0b0e15; color: var(--text); }
button, input, select { font: inherit; }
button { cursor: pointer; }
.app-shell { position: relative; isolation: isolate; width: min(100%, 520px); min-height: 100svh; margin: 0 auto; padding: max(20px, env(safe-area-inset-top)) 18px calc(92px + env(safe-area-inset-bottom)); overflow: hidden; background: radial-gradient(circle at 10% 0%, #253248 0, transparent 34%), var(--bg); }
.app-glow { position: absolute; z-index: -1; border-radius: 50%; filter: blur(1px); pointer-events: none; opacity: .22; }
.app-glow-one { width: 220px; height: 220px; top: 180px; right: -120px; background: #2e9e98; }
.app-glow-two { width: 160px; height: 160px; top: 600px; left: -100px; background: #c06450; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand-lockup { display: flex; align-items: center; gap: 11px; }
.brand-mark { display: flex; align-items: end; gap: 3px; width: 30px; height: 29px; padding: 5px; border-radius: 10px; background: linear-gradient(145deg, var(--teal), #248a91); }
.brand-mark span { display: block; width: 4px; border-radius: 4px; background: #0d2731; }.brand-mark span:nth-child(1) { height: 9px; }.brand-mark span:nth-child(2) { height: 17px; }.brand-mark span:nth-child(3) { height: 12px; }
.eyebrow, .section-kicker, .small-label { margin: 0; color: var(--muted); letter-spacing: .14em; font-size: 10px; font-weight: 700; }
h1 { margin: 2px 0 0; font-size: 17px; letter-spacing: .01em; } h1 span { color: var(--teal); }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.icon-button { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 12px; color: var(--text); background: rgba(255,255,255,.06); font-size: 20px; }
.mode-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; padding: 4px; margin: 24px 0 22px; border: 1px solid var(--line); border-radius: 14px; background: rgba(0,0,0,.18); }
.mode-button { border: 0; border-radius: 10px; padding: 11px 8px; color: var(--muted); background: transparent; font-size: 14px; font-weight: 700; }.mode-button span { margin-right: 5px; font-size: 18px; }.mode-button.active { color: #092126; background: var(--teal); box-shadow: 0 5px 17px rgba(92,221,210,.18); }
.panel-heading { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin: 0 2px 15px; }.panel-heading h2 { margin: 5px 0 0; font-size: 22px; line-height: 1.15; letter-spacing: -.03em; }.live-badge, .tempo-label { white-space: nowrap; color: var(--teal); font-size: 10px; font-weight: 700; letter-spacing: .08em; }.live-badge i { display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(92,221,210,.12); }
.tuner-card, .tempo-card { border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(145deg, rgba(38,48,65,.97), rgba(24,29,41,.97)); box-shadow: 0 18px 34px rgba(0,0,0,.18); }.tuner-card { padding: 22px 15px 17px; text-align: center; }.tuner-readout { display: flex; justify-content: center; align-items: baseline; gap: 13px; }.note-label { color: var(--teal); font-size: 73px; line-height: .94; font-weight: 800; letter-spacing: -.08em; }.readout-meta { display: grid; gap: 4px; text-align: left; color: var(--muted); font-size: 12px; }.readout-meta strong { color: var(--text); font-size: 16px; }
.gauge-wrap { position: relative; width: min(88vw, 360px); height: 174px; margin: 3px auto 0; overflow: hidden; }.gauge-arc { position: absolute; top: 16px; left: 50%; width: 305px; height: 305px; transform: translateX(-50%); border: 19px solid rgba(255,255,255,.045); border-bottom-color: transparent; border-left-color: #4b5f6b; border-right-color: #4b5f6b; border-radius: 50%; }.gauge-ticks { position: absolute; inset: 25px 22px 2px; display: flex; justify-content: space-between; align-items: start; transform: rotate(0deg); }.gauge-ticks i { display: block; width: 2px; height: 11px; border-radius: 2px; background: #607187; transform-origin: 50% 132px; }.gauge-ticks i:nth-child(1) { transform: rotate(-62deg); }.gauge-ticks i:nth-child(2) { transform: rotate(-43deg); }.gauge-ticks i:nth-child(3) { transform: rotate(-23deg); }.gauge-ticks i:nth-child(4) { transform: rotate(-8deg); height: 17px; background: var(--coral); }.gauge-ticks i:nth-child(5) { height: 22px; background: var(--teal); }.gauge-ticks i:nth-child(6) { transform: rotate(8deg); height: 17px; background: var(--coral); }.gauge-ticks i:nth-child(7) { transform: rotate(23deg); }.gauge-ticks i:nth-child(8) { transform: rotate(43deg); }.gauge-ticks i:nth-child(9) { transform: rotate(62deg); }.gauge-scale { position: absolute; left: 18px; right: 18px; bottom: 11px; display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; }.needle { position: absolute; z-index: 2; bottom: 17px; left: 50%; width: 2px; height: 120px; border-radius: 5px; background: var(--coral); transform-origin: 50% 100%; transform: translateX(-50%) rotate(-34deg); transition: transform .28s ease; }.needle b { position: absolute; bottom: -6px; left: 50%; width: 14px; height: 14px; transform: translateX(-50%); border: 3px solid var(--surface); border-radius: 50%; background: var(--coral); }.center-target { position: absolute; bottom: 15px; left: 50%; width: 32px; height: 32px; transform: translateX(-50%); border: 2px solid var(--teal); border-radius: 50%; opacity: .4; }.center-target span { position: absolute; inset: 7px; border-radius: 50%; background: var(--teal); opacity: .7; }.tuner-status { margin-top: -2px; color: var(--text); font-size: 14px; font-weight: 600; }.cents-row { display: flex; align-items: center; gap: 9px; margin: 13px 11px 16px; color: var(--muted); font-size: 10px; }.cents-track { flex: 1; height: 5px; overflow: hidden; border-radius: 5px; background: linear-gradient(90deg, var(--coral) 0 35%, var(--teal) 45% 55%, var(--coral) 65%); opacity: .7; }.cents-track div { width: 50%; height: 100%; transform: translateX(0); border-radius: inherit; background: var(--text); transition: transform .25s ease; }
.primary-button { width: 100%; border: 0; border-radius: 12px; padding: 13px 16px; color: #082024; background: var(--teal); font-weight: 800; box-shadow: 0 8px 20px rgba(92,221,210,.15); }.primary-button:hover { filter: brightness(1.05); }.mic-button span { margin-right: 5px; }.helper-text { margin: 10px 0 0; color: var(--muted); font-size: 11px; }.subsection-header { display: flex; align-items: center; justify-content: space-between; margin: 23px 2px 10px; }.subsection-header h3 { margin: 0; font-size: 14px; }.text-button { border: 0; color: var(--teal); background: transparent; font-size: 12px; }.text-button span { font-size: 18px; vertical-align: -1px; }.instrument-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }.instrument-card { min-width: 0; padding: 12px 4px 10px; border: 1px solid var(--line); border-radius: 14px; color: var(--muted); background: rgba(255,255,255,.045); text-align: center; }.instrument-card.active { border-color: rgba(92,221,210,.6); color: var(--text); background: rgba(92,221,210,.11); }.instrument-icon { display: block; height: 26px; color: var(--teal); font-size: 25px; line-height: 23px; }.instrument-card strong, .instrument-card small { display: block; }.instrument-card strong { margin-top: 5px; font-size: 11px; }.instrument-card small { margin-top: 3px; overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.needle-test-button { margin-top: 8px; border: 0; color: var(--teal); background: transparent; font-size: 11px; text-decoration: underline; text-underline-offset: 3px; }
/* News Carousel */
.news-carousel { position: relative; width: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.045); }
.news-track { display: flex; transition: transform .35s ease; }
.news-slide { flex: 0 0 100%; padding: 16px 18px; cursor: pointer; text-align: left; }
.news-slide .news-tag { display: inline-block; padding: 2px 6px; border-radius: 4px; background: rgba(92,221,210,.15); color: var(--teal); font-size: 10px; font-weight: 700; margin-bottom: 8px; }
.news-slide .news-tag.pinned { background: rgba(255,139,115,.18); color: var(--coral); }
.news-slide h4 { margin: 0 0 6px; font-size: 14px; line-height: 1.35; color: var(--text); }
.news-slide a { text-decoration: none; color: inherit; display: block; }
.news-slide a:hover h4 { color: var(--teal); }
.news-indicators { display: flex; justify-content: center; gap: 5px; padding: 8px 0 12px; }
.news-indicators button { width: 6px; height: 6px; border: 0; border-radius: 50%; background: rgba(255,255,255,.22); padding: 0; }
.news-indicators button.active { background: var(--teal); }
.news-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--text); font-size: 12px; display: grid; place-items: center; cursor: pointer; z-index: 2; }
.news-nav:hover { background: var(--surface-2); }
.news-nav-prev { left: 6px; }
.news-nav-next { right: 6px; }
.signature-chip-row { display: grid; grid-template-columns: repeat(4, 1fr); }
.hidden { display: none !important; }.tempo-card { padding: 22px 17px 17px; text-align: center; }.tempo-topline { display: flex; align-items: baseline; justify-content: space-between; }.bpm-value strong { font-size: 50px; line-height: .9; letter-spacing: -.05em; }.bpm-value small { color: var(--muted); font-size: 11px; font-weight: 700; }.tempo-stepper { display: flex; align-items: center; justify-content: space-between; margin-top: 13px; }.step-button { display: grid; place-items: center; width: 48px; height: 42px; border: 1px solid var(--line); border-radius: 12px; color: var(--text); background: var(--surface-3); font-size: 26px; line-height: 1; }.tempo-name { color: var(--yellow); font-size: 15px; font-weight: 700; }.tempo-slider { width: 100%; height: 5px; margin: 22px 0 5px; accent-color: var(--teal); }.slider-labels { display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; }.beat-visualizer { display: flex; justify-content: center; gap: 12px; margin: 23px 0; }.beat-visualizer i { width: 13px; height: 13px; border: 2px solid #556173; border-radius: 50%; transition: .16s; }.beat-visualizer i.active { border-color: var(--teal); background: var(--teal); box-shadow: 0 0 0 6px rgba(92,221,210,.12); }.play-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; width: 100%; border: 0; border-radius: 12px; padding: 14px; color: #092126; background: var(--teal); font-weight: 800; }.play-button .stop-symbol { display: none; }.play-button.running .play-symbol { display: none; }.play-button.running .stop-symbol { display: inline; }.tap-button { margin-top: 11px; border: 0; color: var(--muted); background: transparent; font-size: 11px; font-weight: 700; letter-spacing: .08em; }.tap-button span { color: var(--teal); font-size: 15px; }.settings-grid { display: grid; gap: 13px; margin-top: 18px; }.setting-block { padding: 1px 2px 0; }.setting-block .subsection-header { margin: 0 0 9px; }.setting-value { color: var(--teal); font-size: 12px; }.chip-row { display: flex; gap: 7px; }.chip { flex: 1; padding: 10px 5px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: rgba(255,255,255,.04); font-size: 11px; }.chip.active { border-color: rgba(92,221,210,.55); color: var(--teal); background: rgba(92,221,210,.1); }.practice-card { display: flex; align-items: center; justify-content: space-between; margin-top: 20px; padding: 15px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.045); }.practice-card strong { display: block; margin-top: 5px; font-size: 23px; }.record-button { border: 1px solid rgba(255,139,115,.4); border-radius: 10px; padding: 10px 12px; color: var(--coral); background: rgba(255,139,115,.1); font-size: 11px; font-weight: 700; }.record-button span { font-size: 11px; }.record-button.recording { color: #11151f; background: var(--coral); }
.bottom-nav { position: fixed; z-index: 3; right: max(0px, calc((100vw - 520px) / 2)); bottom: 0; left: max(0px, calc((100vw - 520px) / 2)); display: grid; grid-template-columns: repeat(3, 1fr); padding: 8px 18px max(8px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(17,21,31,.9); backdrop-filter: blur(20px); }.nav-item { display: grid; place-items: center; gap: 3px; border: 0; color: var(--muted); background: transparent; }.nav-item span { font-size: 21px; line-height: 20px; }.nav-item small { font-size: 10px; }.nav-item.active { color: var(--teal); }.toast { position: fixed; z-index: 5; bottom: 85px; left: 50%; max-width: calc(100% - 50px); padding: 10px 14px; border: 1px solid rgba(92,221,210,.22); border-radius: 11px; color: var(--text); background: rgba(34,42,57,.96); box-shadow: 0 9px 25px rgba(0,0,0,.3); font-size: 12px; opacity: 0; pointer-events: none; transform: translate(-50%, 12px); transition: .25s; }.toast.show { opacity: 1; transform: translate(-50%, 0); }
.settings-dialog { width: min(440px, calc(100% - 32px)); padding: 20px; border: 1px solid var(--line); border-radius: 20px; color: var(--text); background: #1a202d; box-shadow: 0 22px 70px rgba(0,0,0,.6); }.settings-dialog::backdrop { background: rgba(0,0,0,.62); backdrop-filter: blur(4px); }.dialog-header { display: flex; justify-content: space-between; align-items: start; margin-bottom: 6px; }.dialog-header h2 { margin: 5px 0 0; font-size: 22px; }.close-button { width: 32px; height: 32px; font-size: 22px; }.dialog-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 16px 0; border-bottom: 1px solid var(--line); }.dialog-row strong, .dialog-row small { display: block; }.dialog-row strong { font-size: 13px; }.dialog-row small { margin-top: 4px; color: var(--muted); font-size: 10px; }.dialog-row select { padding: 8px 8px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); background: var(--surface-3); font-size: 12px; }.toggle-row { cursor: pointer; }.toggle-row input { position: absolute; opacity: 0; }.toggle-row i { position: relative; width: 42px; height: 24px; flex: 0 0 auto; border-radius: 20px; background: #4b5564; }.toggle-row i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: .2s; }.toggle-row input:checked + i { background: var(--teal-2); }.toggle-row input:checked + i::after { left: 21px; }.dialog-done { margin-top: 20px; }
@media (min-width: 600px) { body { padding: 24px 0; }.app-shell { min-height: calc(100svh - 48px); border: 1px solid var(--line); border-radius: 30px; } .bottom-nav { bottom: 24px; border-radius: 0 0 29px 29px; } }
