@font-face {
  font-family: "Cairo";
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url("fonts/cairo-var-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("fonts/manrope-var-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "DM Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/dmmono-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "DM Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/dmmono-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  --bg: #090c0d;
  --panel: rgba(18, 22, 22, 0.9);
  --panel-strong: #141817;
  --line: rgba(232, 224, 207, 0.12);
  --line-strong: rgba(232, 224, 207, 0.2);
  --text: #eee8dc;
  --text-2: #bab5aa;
  --muted: #9a978e;
  --muted-dim: #8a8379;
  --acid: #c89e5b;
  --acid-soft: rgba(200, 158, 91, 0.14);
  --cyan: #6f9e96;
  --orange: #c7764c;
  --radius: 22px;
  font-family: "Manrope", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { min-width: 320px; background: var(--bg); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 76% 8%, rgba(68, 119, 111, 0.11), transparent 31rem),
    radial-gradient(circle at 11% 76%, rgba(154, 112, 54, 0.07), transparent 34rem),
    linear-gradient(145deg, #0d1112 0%, #080a0b 58%, #0a0d0e 100%);
}

button, input, select, textarea { font: inherit; }
button, select { color: inherit; }
button { border: 0; -webkit-tap-highlight-color: transparent; }

.ambient {
  position: fixed;
  width: 32rem;
  height: 32rem;
  border-radius: 999px;
  filter: blur(130px);
  opacity: 0.06;
  pointer-events: none;
}
.ambient-one { top: 15%; right: -14rem; background: #4b8078; }
.ambient-two { bottom: -15rem; left: -12rem; background: #9b713d; }

.app-shell { width: min(1500px, calc(100% - 64px)); margin: 0 auto; padding-right: env(safe-area-inset-right); padding-left: env(safe-area-inset-left); }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 96px;
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: 13px; color: inherit; text-decoration: none; }
.brand-mark { display: grid; width: 39px; height: 39px; flex: 0 0 auto; place-items: center; }
.brand-mark svg { width: 100%; height: 100%; overflow: visible; }
.brand-mark ellipse, .brand-mark path.brand-antenna { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.brand-mark .brand-field { stroke: var(--acid); stroke-width: 1.7; opacity: .78; }
.brand-mark .brand-loop { stroke: var(--cyan); stroke-width: 2; }
.brand-mark .brand-antenna { fill: none; stroke: var(--acid); stroke-width: 2; stroke-linecap: round; }
.brand-mark .brand-letter { fill: var(--text); filter: drop-shadow(0 0 5px rgba(200,158,91,.3)); }
.brand strong { display: block; font-size: 13px; letter-spacing: 0.28em; }
.brand .brand-name-arabic { font-family: "Cairo", "Noto Naskh Arabic", Tahoma, sans-serif; font-size: 20px; font-weight: 600; line-height: 1.25; letter-spacing: 0; }
.brand small { display: block; margin-top: 4px; font: 500 10px/1 "DM Mono", monospace; color: var(--muted); letter-spacing: 0.24em; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { color: var(--muted); font: 500 11px/1 "DM Mono", monospace; letter-spacing: .12em; text-decoration: none; text-transform: uppercase; transition: 160ms ease; }
.site-nav a:hover { color: var(--acid); }

.topbar-actions { display: flex; align-items: center; gap: 12px; }
.guide-button { padding: 8px 2px; border-bottom: 1px solid rgba(200,158,91,.3); background: transparent; color: var(--text-2); font: 500 11px/1 "DM Mono", monospace; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.guide-button:hover { border-color: var(--acid); color: var(--acid); }
.status-pill { display: flex; align-items: center; gap: 9px; min-height: 36px; padding: 0 15px; border: 1px solid var(--line); border-radius: 999px; font: 500 10px/1 "DM Mono", monospace; color: var(--text-2); letter-spacing: 0.08em; text-transform: uppercase; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 12px var(--acid); }
.status-pill.error .status-dot { background: var(--orange); box-shadow: 0 0 12px var(--orange); }
.icon-button { display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer; transition: 180ms ease; }
.icon-button:hover { border-color: var(--acid); color: var(--acid); }
.icon-button svg { width: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; }

.hero-copy { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.6fr); gap: 64px; align-items: end; padding: 64px 0 44px; }
.eyebrow { margin: 0 0 17px; font: 500 11px/1 "DM Mono", monospace; color: var(--acid); letter-spacing: 0.25em; }
.eyebrow [lang="ar"] { display: inline-block; font-family: "Cairo", "Noto Naskh Arabic", Tahoma, sans-serif; font-size: 14px; letter-spacing: 0; transform: translateY(1px); }
h1 { margin: 0; max-width: 780px; font-size: clamp(50px, 6vw, 86px); font-weight: 500; line-height: 0.94; letter-spacing: -0.065em; }
h1 em { font-family: Georgia, serif; font-weight: 400; color: var(--acid); }
.hero-introduction { max-width: 440px; margin-left: auto; }
.intro { margin: 0; font-size: 14px; line-height: 1.8; color: var(--muted); }
.chamber-invite { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; width: 100%; margin-top: 23px; padding: 14px 15px; border: 1px solid rgba(200,158,91,.24); border-radius: 13px; background: linear-gradient(110deg, rgba(200,158,91,.09), rgba(111,158,150,.025)); color: var(--text); text-align: left; cursor: pointer; transition: 180ms ease; }
.chamber-invite:hover, .chamber-invite[aria-pressed="true"] { border-color: rgba(200,158,91,.55); background: linear-gradient(110deg, rgba(200,158,91,.14), rgba(111,158,150,.045)); transform: translateY(-1px); }
.chamber-invite-mark { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid rgba(200,158,91,.28); border-radius: 50%; color: var(--acid); font-size: 18px; }
.chamber-invite strong, .chamber-invite small { display: block; }.chamber-invite strong { font-size: 10px; }.chamber-invite small { margin-top: 4px; color: var(--muted); font: 500 10px/1.2 "DM Mono", monospace; letter-spacing: .08em; text-transform: uppercase; }

.instrument-layout { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 18px; align-items: stretch; }
#studio, #community { content-visibility: auto; contain-intrinsic-size: 900px; }
.stage-card, .control-panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); backdrop-filter: blur(20px); overflow: hidden; box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25); }

.stage { position: relative; min-height: 520px; overflow: hidden; overscroll-behavior: contain; touch-action: none; user-select: none; -webkit-user-select: none; background: radial-gradient(circle at 52% 43%, rgba(72, 120, 113, 0.12), transparent 28%), linear-gradient(150deg, #14191a, #080b0c 72%); cursor: crosshair; isolation: isolate; transition: min-height 600ms cubic-bezier(.2,.8,.2,1), background 600ms ease; }
.stage:focus-visible { outline: 2px solid var(--acid); outline-offset: -4px; }
#camera, #trackingCanvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); opacity: 0; transition: opacity 600ms ease; }
#trackingCanvas { transform: none; z-index: 2; pointer-events: none; }
.stage.camera-active #camera { opacity: 0.72; filter: saturate(.62) contrast(1.08) brightness(.82); }
.stage.camera-active #trackingCanvas { opacity: 0.8; }
.stage-grid { position: absolute; inset: 0; z-index: 1; opacity: 0.24; background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px); background-size: 9% 16%; -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 70%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 70%, transparent 100%); }
.stage::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; background: radial-gradient(circle at var(--field-x, 62%) var(--field-y, 42%), rgba(200, 158, 91, 0.16), transparent 20%); }

.pitch-lines { position: absolute; z-index: 1; inset: 19% 8% 24%; pointer-events: none; }
.pitch-lines span { position: absolute; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(200,158,91,.16) 36%, rgba(200,158,91,.18) 72%, transparent); }
.pitch-lines span:nth-child(1) { top: 0; }
.pitch-lines span:nth-child(2) { top: 25%; }
.pitch-lines span:nth-child(3) { top: 50%; }
.pitch-lines span:nth-child(4) { top: 75%; }
.pitch-lines span:nth-child(5) { top: 100%; }

.antenna { position: absolute; z-index: 4; bottom: 13%; display: flex; align-items: center; gap: 10px; font: 500 10px/1 "DM Mono", monospace; color: rgba(255,255,255,.45); letter-spacing: .16em; writing-mode: vertical-rl; }
.antenna i { position: relative; display: block; width: 3px; height: 210px; border-radius: 9px; background: linear-gradient(to bottom, var(--acid), rgba(200,158,91,.16)); box-shadow: 0 0 17px rgba(200,158,91,.2); }
.antenna i::before { content: ""; position: absolute; top: -6px; left: -4px; width: 11px; height: 11px; border-radius: 50%; border: 1px solid var(--acid); box-shadow: 0 0 12px rgba(200,158,91,.45); }
.antenna-volume { left: 3.5%; bottom: 14%; flex-direction: column-reverse; writing-mode: initial; }
.antenna-volume i { width: 78px; height: 34px; border: 3px solid var(--cyan); border-radius: 50%; background: transparent; box-shadow: 0 0 17px rgba(111,158,150,.22), inset 0 0 13px rgba(111,158,150,.12); transform: rotate(-9deg); }
.antenna-volume i::before { display: none; }
.antenna-pitch { right: 5%; }
.stage.left-handed .antenna-pitch { right: auto; left: 5%; }
.stage.left-handed .antenna-volume { right: 3.5%; left: auto; }

.hand-cursor { position: absolute; z-index: 5; left: 50%; top: 50%; display: grid; place-items: center; width: 78px; height: 78px; transform: translate(-50%, -50%); pointer-events: none; transition: opacity 220ms ease; }
.hand-cursor span { position: absolute; top: calc(100% + 5px); font: 500 10px/1 "DM Mono", monospace; letter-spacing: .17em; color: var(--cyan); }
.cursor-ring { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--cyan); background: radial-gradient(circle, rgba(111,158,150,.3), rgba(111,158,150,.04) 48%, transparent 52%); box-shadow: 0 0 0 8px rgba(111,158,150,.04), 0 0 30px rgba(111,158,150,.24); }
.pitch-cursor { left: 68%; top: 43%; }
.pitch-cursor span { color: var(--acid); }
.pitch-cursor .cursor-ring { border-color: var(--acid); background: radial-gradient(circle, rgba(200,158,91,.35), rgba(200,158,91,.04) 48%, transparent 52%); box-shadow: 0 0 0 8px rgba(200,158,91,.04), 0 0 30px rgba(200,158,91,.25); }
.stage.pointer-idle .hand-cursor { opacity: 0.28; }

.readout { position: absolute; z-index: 5; left: 50%; top: 50%; display: flex; flex-direction: column; align-items: center; transform: translate(-50%, -50%); pointer-events: none; }
.readout::before { content: "CURRENT NOTE"; margin-bottom: 6px; font: 500 10px/1 "DM Mono", monospace; color: var(--muted); letter-spacing: .2em; }
.note { font-size: clamp(52px, 6vw, 88px); font-weight: 500; line-height: .95; letter-spacing: -.07em; text-shadow: 0 0 50px rgba(200,158,91,.12); }
.frequency, .volume-readout { margin-top: 8px; font: 500 10px/1 "DM Mono", monospace; color: var(--acid); letter-spacing: .08em; }
.volume-readout { margin-top: 7px; color: var(--cyan); }

.recording-badge { position: absolute; z-index: 8; top: 18px; left: 18px; display: flex; align-items: center; gap: 7px; min-height: 30px; padding: 0 11px; border: 1px solid rgba(255,105,86,.35); border-radius: 999px; background: rgba(10,10,11,.7); color: #ff8a78; font: 500 10px/1 "DM Mono", monospace; letter-spacing: .12em; backdrop-filter: blur(8px); }
.recording-badge[hidden] { display: none; }
.recording-badge span, .record-dot { width: 7px; height: 7px; border-radius: 50%; background: #ff705c; box-shadow: 0 0 10px rgba(255,112,92,.65); }
.recording-badge span { animation: recordPulse 1.25s ease-in-out infinite; }
.recording-badge time { margin-left: 4px; color: var(--text); letter-spacing: .04em; }
@keyframes recordPulse { 50% { opacity: .3; transform: scale(.7); } }

.pointer-hint { position: absolute; z-index: 6; left: 50%; bottom: 20px; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; background: rgba(8,11,15,.68); transform: translateX(-50%); backdrop-filter: blur(10px); color: var(--muted); transition: opacity 250ms ease; pointer-events: none; }
.pointer-hint svg { width: 15px; fill: none; stroke: var(--acid); stroke-width: 1.5; }
.pointer-hint span { white-space: nowrap; font-size: 11px; }
.pointer-hint strong { margin-right: 8px; color: var(--text); font-weight: 600; }
.pointer-hint.hidden { opacity: 0; }

.camera-message { position: absolute; z-index: 10; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(7,10,13,.88); backdrop-filter: blur(10px); }
.camera-message[hidden] { display: none; }
.camera-message strong { margin-top: 18px; font-size: 14px; }
.camera-message span { margin-top: 6px; color: var(--muted); font-size: 11px; }
.camera-message-actions { display: none; gap: 14px; align-items: center; margin-top: 20px; }
.camera-message.is-error .loader { display: none; }
.camera-message.is-error strong { margin-top: 0; color: var(--orange); }
.camera-message.is-error span { max-width: 430px; padding: 0 24px; line-height: 1.6; text-align: center; }
.camera-message.is-error .camera-message-actions { display: flex; }
.camera-message.is-error .button { min-width: 105px; }
.loader { width: 34px; height: 34px; border: 1px solid var(--line-strong); border-top-color: var(--acid); border-radius: 50%; animation: spin 900ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.lesson-hud { position: absolute; z-index: 10; top: 16px; left: 16px; width: min(340px, calc(100% - 32px)); padding: 16px; border: 1px solid rgba(200,158,91,.34); border-radius: 16px; background: linear-gradient(145deg, rgba(19,22,21,.96), rgba(12,15,15,.92)); box-shadow: 0 20px 60px rgba(0,0,0,.36); backdrop-filter: blur(16px); cursor: default; }
.lesson-hud[hidden] { display: none; }
.lesson-hud-heading { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; color: var(--muted); font: 500 10px/1 "DM Mono", monospace; letter-spacing: .15em; }
.lesson-hud-heading strong { color: var(--acid); font-weight: 500; }
.lesson-hud-heading button { display: grid; width: 24px; height: 24px; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--muted); font-size: 16px; cursor: pointer; }
.lesson-number { margin: 18px 0 8px; color: var(--cyan); font: 500 10px/1 "DM Mono", monospace; letter-spacing: .14em; }
.lesson-hud h3 { margin: 0; font-family: Georgia, serif; font-size: 24px; font-weight: 400; line-height: 1.05; letter-spacing: -.035em; }
.lesson-verse { margin: 9px 0 15px; color: var(--text-2); font-size: 11px; line-height: 1.65; }
.lesson-meter { height: 3px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.08); }
.lesson-meter i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--cyan), var(--acid)); box-shadow: 0 0 12px rgba(200,158,91,.35); transition: width 120ms linear; }
.lesson-cue { min-height: 16px; margin: 11px 0 0; color: var(--text); font-size: 11px; line-height: 1.45; }
.lesson-skip { margin-top: 9px; padding: 4px 0; background: transparent; color: var(--muted-dim); font: 500 10px/1 "DM Mono", monospace; letter-spacing: .08em; cursor: pointer; }
.lesson-skip:hover { color: var(--acid); }
.lesson-hud.is-complete { border-color: rgba(111,158,150,.55); }

.practice-hud { position: absolute; z-index: 9; top: 16px; left: 50%; width: min(350px, calc(100% - 140px)); padding: 13px 16px 11px; border: 1px solid rgba(200,158,91,.26); border-radius: 14px; background: rgba(9,13,16,.86); box-shadow: 0 16px 50px rgba(0,0,0,.34); transform: translateX(-50%); backdrop-filter: blur(16px); cursor: default; }
.practice-hud[hidden] { display: none; }
.practice-hud-heading { display: grid; grid-template-columns: 1fr 1fr auto; gap: 18px; align-items: start; }.practice-hud-heading span { display: flex; flex-direction: column; gap: 4px; }.practice-hud-heading span:nth-child(2) { text-align: right; }.practice-hud-heading strong { font: 500 16px/1 "DM Mono", monospace; }.practice-hud-heading small { color: var(--muted); font: 500 10px/1 "DM Mono", monospace; letter-spacing: .14em; }
.practice-hud-heading button { width: 22px; height: 22px; margin-top: -3px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--muted); font-size: 15px; line-height: 1; cursor: pointer; }.practice-hud-heading button:hover { border-color: var(--orange); color: var(--orange); }
.hud-tuning-track { position: relative; height: 2px; margin-top: 11px; background: linear-gradient(90deg, var(--orange), var(--acid), var(--orange)); opacity: .7; }.hud-tuning-track::after { content: ""; position: absolute; top: -3px; left: 50%; width: 1px; height: 8px; background: white; }.hud-tuning-track i { position: absolute; top: -4px; left: 50%; width: 4px; height: 10px; border-radius: 2px; background: white; box-shadow: 0 0 8px white; transform: translateX(-50%); transition: left 80ms linear; }
.practice-hud p { margin: 9px 0 0; color: var(--text-2); font-size: 10px; text-align: center; }

.transport { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 86px; padding: 14px 18px 14px 22px; border-top: 1px solid var(--line); }
.transport-copy { display: flex; flex-direction: column; gap: 6px; }
.transport-label { font: 500 10px/1 "DM Mono", monospace; color: var(--muted); letter-spacing: .18em; }
.transport-copy strong { font-size: 12px; font-weight: 600; }
.transport-actions { display: flex; gap: 8px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 42px; padding: 0 17px; border-radius: 999px; color: var(--text); font-size: 11px; font-weight: 700; text-decoration: none; cursor: pointer; transition: 180ms ease; }
.button svg { width: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.button.secondary { border: 1px solid var(--line-strong); background: transparent; }
.button.secondary:hover { border-color: var(--text); }
.camera-fullscreen-button.active { border-color: var(--cyan); background: rgba(111,158,150,.1); color: var(--cyan); }
.button.record-button { border: 1px solid rgba(255,112,92,.28); background: rgba(255,112,92,.08); color: #ff9b8c; }
.button.record-button:hover, .button.record-button.active { border-color: #ff705c; background: rgba(255,112,92,.16); }
.button.record-button.active .record-dot { border-radius: 1px; }
.button.primary { min-width: 142px; background: var(--acid); color: var(--bg); box-shadow: 0 8px 30px rgba(200,158,91,.1); }
.button.primary:hover { background: #d8b877; transform: translateY(-1px); }
.button.primary.active { background: #f0f2ee; }
.play-icon { width: 0; height: 0; border-top: 4px solid transparent; border-bottom: 4px solid transparent; border-left: 7px solid currentColor; }
.button.active .play-icon { width: 7px; height: 8px; border: 0; border-left: 2px solid currentColor; border-right: 2px solid currentColor; }

.control-panel { display: flex; flex-direction: column; padding: 27px 26px 22px; }
.panel-heading { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.panel-heading .eyebrow { margin-bottom: 10px; }
.panel-heading h2 { margin: 0; font-size: 23px; font-weight: 500; letter-spacing: -.045em; }
.setup-actions { display: flex; align-items: center; gap: 7px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.setup-chip { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 9px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--text-2); font-size: 10px; cursor: pointer; }
.setup-chip:hover { border-color: var(--acid); color: var(--acid); }
.setup-chip span { color: var(--acid); font-size: 12px; }
.handedness-label { margin-left: auto; color: var(--muted-dim); font: 500 10px/1 "DM Mono", monospace; text-transform: uppercase; }
.text-button { padding: 5px 0; background: transparent; color: var(--muted); font: 500 11px/1 "DM Mono", monospace; text-transform: uppercase; letter-spacing: .1em; cursor: pointer; }
.text-button:hover { color: var(--acid); }
.control-group { padding: 19px 0; border-bottom: 1px solid var(--line); }
.control-group > label, .label-row label { font: 500 11px/1 "DM Mono", monospace; color: var(--text-2); letter-spacing: .11em; text-transform: uppercase; }
.label-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 13px; }
.label-row output { font: 500 11px/1 "DM Mono", monospace; color: var(--acid); }
.segmented { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; margin-top: 13px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: rgba(0,0,0,.16); }
.segmented button { min-width: 0; height: 31px; border-radius: 7px; background: transparent; color: var(--muted); font-size: 11px; cursor: pointer; }
.segmented button.active { background: var(--acid-soft); color: var(--acid); box-shadow: inset 0 0 0 1px rgba(200,158,91,.16); }
input[type="range"] { width: 100%; height: 14px; margin: 0; appearance: none; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 2px; border-radius: 4px; background: linear-gradient(90deg, var(--acid) 0 var(--fill, 50%), rgba(255,255,255,.13) var(--fill, 50%)); }
input[type="range"]::-webkit-slider-thumb { width: 11px; height: 11px; margin-top: -4.5px; appearance: none; border: 2px solid var(--bg); border-radius: 50%; background: var(--acid); box-shadow: 0 0 0 1px var(--acid), 0 0 12px rgba(200,158,91,.32); }
.range-labels { display: flex; justify-content: space-between; margin-top: 5px; font: 400 10px/1 "DM Mono", monospace; color: var(--muted-dim); letter-spacing: .12em; }
.select-wrap { position: relative; display: flex; align-items: center; margin-top: 13px; }
.select-wrap select { width: 100%; height: 39px; appearance: none; padding: 0 33px 0 42px; border: 1px solid var(--line); border-radius: 9px; outline: none; background: rgba(0,0,0,.15); font-size: 11px; cursor: pointer; }
.select-wrap::after { content: "⌄"; position: absolute; right: 13px; color: var(--muted); pointer-events: none; }
.wave-icon { position: absolute; left: 14px; z-index: 1; color: var(--acid); }
.dual-control { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.level-card { margin-top: 20px; padding: 15px; border-radius: 12px; background: rgba(0,0,0,.2); }
.level-topline { display: flex; justify-content: space-between; font: 500 10px/1 "DM Mono", monospace; color: var(--muted); letter-spacing: .12em; }
.level-topline span:last-child { color: var(--acid); }
.meter { height: 3px; margin: 12px 0; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.09); }
.meter i { display: block; width: 0%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--cyan), var(--acid)); box-shadow: 0 0 10px var(--acid); transition: width 80ms linear; }
.level-card p { margin: 0; color: var(--muted-dim); font-size: 11px; line-height: 1.55; }
.keyboard-help { display: grid; grid-template-columns: auto 1fr auto 1fr; align-items: center; gap: 7px; margin-top: auto; padding-top: 16px; color: var(--muted); font-size: 10px; }
kbd { min-width: 23px; padding: 4px 6px; border: 1px solid var(--line); border-radius: 5px; background: rgba(255,255,255,.03); color: var(--text-2); font: 500 10px/1 "DM Mono", monospace; text-align: center; }

.creator-section, .community-section { padding: 120px 0 20px; scroll-margin-top: 32px; }
.section-heading { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .6fr); gap: 50px; align-items: end; margin-bottom: 42px; }
.section-heading h2 { margin: 0; font-size: clamp(40px, 5vw, 68px); font-weight: 500; line-height: .98; letter-spacing: -.06em; }
.section-heading > p { max-width: 420px; margin: 0 0 4px auto; color: var(--muted); font-size: 13px; line-height: 1.75; }
.studio-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); gap: 18px; }
.recording-console, .creator-profile { min-height: 430px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); overflow: hidden; }
.recording-console { display: flex; flex-direction: column; padding: 28px; background: radial-gradient(circle at 50% 35%, rgba(200,158,91,.07), transparent 35%), var(--panel); }
.console-topline { display: flex; align-items: center; justify-content: space-between; font: 500 11px/1 "DM Mono", monospace; color: var(--muted); letter-spacing: .12em; }
.console-topline span { display: flex; align-items: center; gap: 8px; }
.console-topline i { width: 6px; height: 6px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 9px var(--acid); }
.console-topline time { color: var(--text); }
.studio-waveform { display: flex; align-items: center; justify-content: center; gap: 5px; height: 150px; margin: 24px 0 18px; padding: 0 6%; overflow: hidden; }
.studio-waveform i { flex: 1; max-width: 6px; min-width: 2px; height: var(--level, 12%); border-radius: 10px; background: linear-gradient(to top, rgba(111,158,150,.25), var(--acid)); box-shadow: 0 0 8px rgba(200,158,91,.12); transition: height 90ms linear; }
.console-readout { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.console-readout div { padding: 16px; border-right: 1px solid var(--line); }
.console-readout div:last-child { border-right: 0; }
.console-readout span { display: block; margin-bottom: 7px; font: 500 10px/1 "DM Mono", monospace; color: var(--muted); letter-spacing: .13em; }
.console-readout strong { display: block; overflow: hidden; font-size: 11px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.studio-record-button { align-self: center; min-width: 190px; margin-top: 25px; }
.studio-record-button.active { background: #ff705c; }
.studio-record-button.active .record-dot { background: #111; border-radius: 1px; box-shadow: none; }
.recording-note { margin: 10px 0 0; color: var(--muted-dim); font-size: 10px; text-align: center; }

.creator-profile { background: #141817; }
.profile-cover { display: flex; height: 132px; align-items: flex-start; padding: 18px 20px; background: radial-gradient(circle at 20% 10%, rgba(200,158,91,.38), transparent 34%), radial-gradient(circle at 90% 80%, rgba(111,158,150,.23), transparent 36%), linear-gradient(135deg, #1d2826, #11171a); }
.profile-cover span { font: 500 10px/1 "DM Mono", monospace; color: rgba(255,255,255,.7); letter-spacing: .14em; }
.profile-body { position: relative; padding: 0 24px 24px; }
.profile-avatar { display: grid; width: 66px; height: 66px; margin-top: -33px; place-items: center; border: 4px solid #141817; border-radius: 50%; background: var(--acid); color: var(--bg); font: 600 24px/1 "DM Mono", monospace; }
.profile-body .text-button { position: absolute; top: 16px; right: 24px; }
.profile-body h3 { margin: 18px 0 7px; font-size: 21px; font-weight: 500; letter-spacing: -.035em; }
.profile-body > p { min-height: 42px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.profile-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.profile-stats div { border-right: 1px solid var(--line); text-align: center; }
.profile-stats div:last-child { border-right: 0; }
.profile-stats strong, .profile-stats span { display: block; }
.profile-stats strong { font-size: 13px; font-weight: 600; }
.profile-stats span { margin-top: 6px; font: 500 10px/1 "DM Mono", monospace; color: var(--muted); letter-spacing: .1em; }

.portfolio-heading { display: flex; justify-content: space-between; align-items: flex-end; margin: 60px 0 20px; }
.portfolio-heading .eyebrow { margin-bottom: 8px; }
.portfolio-heading h3 { margin: 0; font-size: 30px; font-weight: 500; letter-spacing: -.045em; }
.portfolio-heading > span { color: var(--muted); font: 500 11px/1 "DM Mono", monospace; }
.portfolio-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.portfolio-empty { grid-column: 1 / -1; display: flex; min-height: 280px; align-items: center; justify-content: center; flex-direction: column; padding: 35px; border: 1px dashed var(--line-strong); border-radius: var(--radius); background: rgba(255,255,255,.015); text-align: center; }
.portfolio-empty[hidden] { display: none; }
.portfolio-empty strong { margin-top: 18px; font-size: 15px; }
.portfolio-empty p { max-width: 380px; margin: 8px 0 18px; color: var(--muted); font-size: 10px; line-height: 1.6; }
.empty-actions { display: flex; align-items: center; gap: 16px; }
.empty-orbit { position: relative; display: block; width: 52px; height: 52px; border: 1px solid rgba(200,158,91,.35); border-radius: 50%; transform: rotate(-30deg); }
.empty-orbit::after { content: ""; position: absolute; inset: 10px -12px; border: 1px solid rgba(111,158,150,.35); border-radius: 50%; }
.empty-orbit i { position: absolute; top: -3px; left: 22px; width: 6px; height: 6px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 10px var(--acid); }
.performance-card { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: var(--panel); }
.performance-art { position: relative; display: flex; height: 155px; align-items: center; justify-content: center; background: var(--art, linear-gradient(135deg, #2a2519, #12191b)); }
.performance-art::before, .performance-art::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; }
.performance-art::before { width: 105px; height: 105px; }
.performance-art::after { width: 62px; height: 62px; }
.performance-art .art-note { z-index: 1; font: 500 34px/1 "DM Mono", monospace; color: rgba(255,255,255,.9); }
.performance-duration { position: absolute; right: 10px; bottom: 10px; padding: 5px 7px; border-radius: 999px; background: rgba(0,0,0,.55); font: 500 10px/1 "DM Mono", monospace; }
.performance-body { padding: 17px; }
.performance-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; font: 500 10px/1 "DM Mono", monospace; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }
.visibility-label { color: var(--cyan); }
.performance-body h4 { margin: 0; overflow: hidden; font-size: 14px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.performance-body p { min-height: 34px; margin: 7px 0 14px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.performance-actions { display: flex; gap: 7px; }
.performance-actions button, .performance-actions a { display: grid; min-width: 34px; height: 34px; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--text); text-decoration: none; cursor: pointer; }
.performance-actions button:hover, .performance-actions a:hover { border-color: var(--acid); color: var(--acid); }
.performance-actions .publish-performance.active { border-color: rgba(111,158,150,.35); background: rgba(111,158,150,.07); color: var(--cyan); }
.performance-actions .play-performance { flex: 1; grid-auto-flow: column; border-radius: 999px; font-size: 11px; }

.community-heading { margin-bottom: 34px; }
.community-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.community-card { min-height: 330px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.card-kicker, .backend-label { font: 500 10px/1 "DM Mono", monospace; color: var(--acid); letter-spacing: .14em; }
.community-card h3 { margin: 34px 0 12px; font-size: 31px; font-weight: 500; letter-spacing: -.05em; }
.community-card p { color: var(--muted); font-size: 11px; line-height: 1.7; }
.principles-card ol { display: grid; gap: 0; margin: 24px 0 0; padding: 0; list-style: none; }
.principles-card li { padding: 16px 0; border-top: 1px solid var(--line); }
.principles-card b, .principles-card span { display: block; }
.principles-card b { font-size: 11px; }
.principles-card span { margin-top: 5px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.online-card { position: relative; overflow: hidden; }
.online-pulse { position: absolute; top: 29px; right: 29px; width: 9px; height: 9px; border: 1px solid var(--cyan); border-radius: 50%; box-shadow: 0 0 0 7px rgba(111,158,150,.06), 0 0 16px rgba(111,158,150,.35); }
.online-card .backend-label { display: block; margin-top: 28px; color: var(--cyan); }

.room-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin: 70px 0 20px; }.room-heading .eyebrow { margin-bottom: 8px; }.room-heading h3 { margin: 0; font-size: 34px; font-weight: 500; letter-spacing: -.05em; }

.listening-feed { display: grid; gap: 12px; }
.listening-post { display: grid; grid-template-columns: 230px 1fr; min-height: 250px; overflow: hidden; border: 1px solid var(--line); border-radius: 19px; background: var(--panel); }
.post-art { position: relative; display: flex; min-height: 250px; align-items: center; justify-content: center; overflow: hidden; background: var(--post-art); }.post-art::before { content: ""; position: absolute; width: 130px; height: 130px; border: 1px solid rgba(255,255,255,.17); border-radius: 50%; box-shadow: 0 0 0 28px rgba(255,255,255,.025); }.post-art strong { position: relative; z-index: 1; font: 500 42px/1 "DM Mono", monospace; }
.post-wave { position: absolute; right: 18px; bottom: 18px; left: 18px; display: flex; height: 36px; align-items: center; gap: 3px; }.post-wave i { flex: 1; height: var(--wave); border-radius: 4px; background: rgba(255,255,255,.48); }
.post-play { position: relative; z-index: 2; display: grid; width: 54px; height: 54px; place-items: center; border: 1px solid rgba(255,255,255,.42); border-radius: 50%; background: rgba(8,11,15,.6); color: white; cursor: pointer; backdrop-filter: blur(8px); }.post-play:hover { border-color: var(--acid); color: var(--acid); }.post-play span:last-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.post-body { display: flex; min-width: 0; flex-direction: column; padding: 23px 26px 20px; }
.post-topline { display: flex; align-items: center; justify-content: space-between; gap: 20px; }.post-author { display: flex; min-width: 0; align-items: center; gap: 10px; }.post-avatar { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: var(--acid-soft); color: var(--acid); font: 600 11px/1 "DM Mono", monospace; }.post-author strong, .post-author span { display: block; }.post-author strong { font-size: 10px; }.post-author span { margin-top: 4px; color: var(--muted); font: 500 10px/1 "DM Mono", monospace; }
.post-badges { display: flex; gap: 6px; }.post-badge { padding: 6px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font: 500 10px/1 "DM Mono", monospace; letter-spacing: .11em; }.post-badge.preview { border-color: rgba(111,158,150,.22); color: var(--cyan); }
.post-body h4 { margin: 22px 0 7px; font-size: 21px; font-weight: 500; letter-spacing: -.04em; }.post-description { max-width: 680px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.65; }
.post-prompt { margin-top: 12px; color: var(--acid); font: 500 10px/1 "DM Mono", monospace; letter-spacing: .1em; }
.post-social { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: auto; padding-top: 18px; }.reaction-group { display: flex; flex-wrap: wrap; gap: 6px; }.reaction-button { min-height: 30px; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); font-size: 10px; cursor: pointer; }.reaction-button:hover, .reaction-button.active { border-color: rgba(200,158,91,.45); background: var(--acid-soft); color: var(--acid); }.reaction-button b { margin-left: 4px; font-weight: 500; }
.post-actions { display: flex; gap: 7px; }.post-actions button { min-height: 30px; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--text-2); font-size: 10px; cursor: pointer; }.post-actions button:hover { border-color: var(--cyan); color: var(--cyan); }
.feedback-note { margin-top: 12px; padding: 10px 12px; border-left: 2px solid var(--cyan); background: rgba(111,158,150,.035); color: var(--text-2); font-size: 10px; line-height: 1.55; }.feedback-note strong { color: var(--text); }

footer { display: flex; justify-content: space-between; padding: 30px 3px 48px; font: 500 10px/1 "DM Mono", monospace; color: var(--muted-dim); letter-spacing: .12em; }
footer b[lang="ar"] { display: inline-block; color: var(--text); font-family: "Cairo", "Noto Naskh Arabic", Tahoma, sans-serif; font-size: 12px; font-weight: 500; letter-spacing: 0; }

.tutorial-dialog { width: min(980px, calc(100% - 32px)); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow: auto; padding: 0; border: 1px solid var(--line-strong); border-radius: 24px; background: #141817; color: var(--text); box-shadow: 0 35px 120px rgba(0,0,0,.72); }
.tutorial-dialog::backdrop { background: rgba(3,5,7,.82); backdrop-filter: blur(12px); }
.tutorial-shell { position: relative; padding: 42px; }
.dialog-close { position: absolute; top: 20px; right: 22px; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; }
.dialog-close:hover { border-color: var(--acid); color: var(--acid); }
.tutorial-shell h2 { margin: 0; max-width: 600px; font-size: clamp(32px, 5vw, 52px); font-weight: 500; letter-spacing: -.055em; }
.tutorial-intro { max-width: 660px; margin: 17px 0 30px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.tutorial-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.tutorial-steps article { position: relative; min-height: 235px; padding: 20px; border: 1px solid var(--line); border-radius: 15px; background: rgba(0,0,0,.15); }
.step-number { font: 500 10px/1 "DM Mono", monospace; color: var(--acid); letter-spacing: .12em; }
.tutorial-steps h3 { margin: 17px 0 8px; font-size: 13px; font-weight: 600; }
.tutorial-steps p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.65; }
.gesture-icon { display: flex; align-items: center; justify-content: center; gap: 12px; height: 64px; margin-top: 15px; color: var(--acid); font: 400 22px/1 "DM Mono", monospace; }
.gesture-icon i { display: block; width: 3px; height: 52px; border-radius: 5px; background: var(--acid); box-shadow: 0 0 13px rgba(200,158,91,.35); }
.gesture-icon b { font-weight: 400; }
.volume-gesture { color: var(--cyan); }
.volume-gesture i { width: 55px; height: 24px; border: 2px solid var(--cyan); border-radius: 50%; background: transparent; box-shadow: 0 0 13px rgba(111,158,150,.3); }
.vibrato-gesture { font-size: 48px; color: var(--acid); }
.stillness-gesture { font-family: Georgia, serif; font-size: 42px; color: var(--cyan); }
.authentic-note { display: flex; gap: 14px; align-items: center; margin-top: 12px; padding: 14px 17px; border-radius: 11px; background: var(--acid-soft); font-size: 10px; }
.authentic-note strong { color: var(--acid); white-space: nowrap; }
.authentic-note span { color: var(--muted); }
.tutorial-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 22px; }

.save-dialog, .profile-dialog, .calibration-dialog, .practice-dialog, .publish-dialog, .feedback-dialog { width: min(650px, calc(100% - 30px)); max-height: calc(100vh - 30px); max-height: calc(100dvh - 30px); overflow: auto; padding: 0; border: 1px solid var(--line-strong); border-radius: 22px; background: #141817; color: var(--text); box-shadow: 0 35px 120px rgba(0,0,0,.75); }
.save-dialog::backdrop, .profile-dialog::backdrop, .calibration-dialog::backdrop, .practice-dialog::backdrop, .publish-dialog::backdrop, .feedback-dialog::backdrop { background: rgba(3,5,7,.84); backdrop-filter: blur(12px); }
.save-shell { position: relative; padding: 38px; }
.save-shell h2 { margin: 0 0 24px; font-size: 34px; font-weight: 500; letter-spacing: -.05em; }
.save-shell audio { width: 100%; height: 42px; margin-bottom: 24px; accent-color: var(--acid); }
.field-label { display: flex; justify-content: space-between; margin: 16px 0 8px; font: 500 10px/1 "DM Mono", monospace; color: var(--text-2); letter-spacing: .1em; text-transform: uppercase; }
.field-label span { color: var(--muted-dim); }
.text-field { width: 100%; border: 1px solid var(--line); border-radius: 10px; outline: none; background: rgba(0,0,0,.2); color: var(--text); font-size: 12px; }
input.text-field { height: 44px; padding: 0 13px; }
textarea.text-field { padding: 12px 13px; resize: vertical; line-height: 1.5; }
.text-field:focus { border-color: rgba(200,158,91,.6); box-shadow: 0 0 0 3px rgba(200,158,91,.06); }
.save-meta { display: grid; grid-template-columns: 1fr auto; gap: 22px; align-items: end; margin-top: 18px; }
.save-meta label > span, .save-meta div > span { display: block; margin-bottom: 8px; font: 500 10px/1 "DM Mono", monospace; color: var(--muted); letter-spacing: .1em; }
.save-meta select { width: 100%; height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; background: #141817; font-size: 10px; }
.save-meta div { min-width: 70px; text-align: right; }
.save-meta strong { font: 500 13px/1 "DM Mono", monospace; }
.save-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 28px; }
.profile-shell { padding-top: 44px; }
.dialog-intro { margin: -12px 0 25px; color: var(--muted); font-size: 11px; line-height: 1.65; }
.calibration-row { display: flex; align-items: center; justify-content: space-between; padding: 17px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.calibration-row strong, .calibration-row span { display: block; }
.calibration-row strong { font-size: 11px; }.calibration-row span { margin-top: 4px; color: var(--muted); font-size: 11px; }
.mini-segmented { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 9px; }
.mini-segmented button { height: 29px; padding: 0 13px; border-radius: 6px; background: transparent; color: var(--muted); font-size: 11px; cursor: pointer; }
.mini-segmented button.active { background: var(--acid-soft); color: var(--acid); }
.calibration-slider { padding: 18px 0 10px; border-bottom: 1px solid var(--line); }
.calibration-slider p { margin: 5px 0 0; color: var(--muted-dim); font-size: 10px; }
.safety-toggle { display: flex; align-items: center; gap: 12px; padding: 17px 0; cursor: pointer; }
.safety-toggle input { position: absolute; opacity: 0; }.safety-toggle > span { position: relative; width: 36px; height: 20px; border-radius: 99px; background: #30383c; }
.safety-toggle > span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--muted); transition: 160ms ease; }
.safety-toggle input:checked + span { background: var(--acid-soft); }.safety-toggle input:checked + span::after { left: 19px; background: var(--acid); }
.safety-toggle strong, .safety-toggle small { display: block; }.safety-toggle strong { font-size: 10px; }.safety-toggle small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.response-card { display: grid; grid-template-columns: 1fr auto; gap: 15px 22px; align-items: center; margin: 2px 0 18px; padding: 18px; border: 1px solid var(--line); border-radius: 13px; background: rgba(0,0,0,.16); text-align: left; }
.response-copy strong, .response-copy span { display: block; }.response-copy strong { margin: 6px 0; font-size: 11px; }.response-copy p { max-width: 390px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.response-kicker { color: var(--acid); font: 500 10px/1 "DM Mono", monospace; letter-spacing: .15em; }
.response-reading { min-width: 92px; text-align: right; }.response-reading strong, .response-reading span { display: block; }.response-reading strong { font: 500 25px/1 "DM Mono", monospace; letter-spacing: -.08em; }.response-reading span { margin-top: 6px; color: var(--muted); font: 500 10px/1 "DM Mono", monospace; letter-spacing: .1em; }
.response-reading.is-good strong, .response-reading.is-good span { color: var(--acid); }.response-reading.is-fair strong { color: #f3d36a; }.response-reading.is-slow strong { color: var(--orange); }
.response-button { grid-column: 1 / -1; width: 100%; height: 36px; font-size: 11px; }.response-button:disabled { cursor: wait; opacity: .55; }
.calibration-save { width: 100%; margin-top: 5px; }
.practice-shell { position: relative; padding: 40px; text-align: center; }.practice-shell h2 { margin: 0 0 25px; font-size: 36px; font-weight: 500; letter-spacing: -.05em; }
.practice-shell .eyebrow, .practice-shell .dialog-intro { text-align: left; }
.practice-score { display: flex; min-height: 150px; align-items: center; justify-content: center; flex-direction: column; }.practice-score span { align-self: flex-end; color: var(--muted); font: 500 10px/1 "DM Mono", monospace; }
.practice-score strong { font-size: 72px; font-weight: 500; letter-spacing: -.08em; }.practice-score small { color: var(--acid); font: 500 10px/1 "DM Mono", monospace; letter-spacing: .15em; }
.tuning-track { position: relative; height: 3px; margin: 12px 0 28px; background: linear-gradient(90deg, var(--orange), var(--acid), var(--orange)); }
.tuning-track::after { content: ""; position: absolute; top: -8px; left: 50%; width: 1px; height: 19px; background: white; opacity: .4; }
.tuning-track i { position: absolute; top: -6px; left: 50%; width: 5px; height: 15px; border-radius: 3px; background: white; box-shadow: 0 0 10px white; transform: translateX(-50%); transition: left 80ms linear; }
.flat-label, .sharp-label { position: absolute; top: 11px; color: var(--muted-dim); font: 500 10px/1 "DM Mono", monospace; }.flat-label { left: 0; }.sharp-label { right: 0; }
.practice-feedback { min-height: 20px; margin-bottom: 17px; color: var(--muted); font-size: 10px; }
.practice-result { padding: 22px 0 8px; text-align: center; }.practice-result[hidden] { display: none; }
.result-kicker, .result-label { display: block; font: 500 10px/1 "DM Mono", monospace; letter-spacing: .16em; }.result-kicker { color: var(--acid); }.result-label { margin-top: 6px; color: var(--muted); }
.result-score { display: block; margin: 10px 0 0; font-size: 86px; font-weight: 500; line-height: .95; letter-spacing: -.09em; }
.result-metrics { display: grid; grid-template-columns: repeat(3, 1fr); margin: 24px 0 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }.result-metrics div { padding: 15px 8px; border-right: 1px solid var(--line); }.result-metrics div:last-child { border: 0; }.result-metrics strong, .result-metrics span { display: block; }.result-metrics strong { font: 500 15px/1 "DM Mono", monospace; }.result-metrics span { margin-top: 6px; color: var(--muted); font: 500 10px/1 "DM Mono", monospace; letter-spacing: .13em; }
.practice-result p { margin: 0 0 20px; color: var(--muted); font-size: 10px; }
.practice-history { display: grid; grid-template-columns: auto auto auto auto 1fr; gap: 15px; align-items: end; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); text-align: left; }.practice-history > div:not(.history-bars) { min-width: 42px; }.practice-history strong, .practice-history span { display: block; }.practice-history strong { font: 500 13px/1 "DM Mono", monospace; }.practice-history span { margin-top: 5px; color: var(--muted); font: 500 10px/1 "DM Mono", monospace; letter-spacing: .11em; }
.history-clear { align-self: center; padding: 5px 7px; background: transparent; color: var(--muted); font: 500 10px/1 "DM Mono", monospace; cursor: pointer; }.history-clear:hover, .history-clear.is-confirming { color: var(--orange); }.history-clear[hidden] { display: none; }
.history-bars { display: flex; height: 27px; align-items: flex-end; justify-content: flex-end; gap: 4px; }.history-bars i { width: 5px; min-height: 3px; border-radius: 2px 2px 0 0; background: var(--acid); opacity: .25; }.history-bars i:last-child { opacity: 1; }
.publish-shell h2, .feedback-shell h2 { margin-bottom: 24px; }.publish-preview { display: flex; align-items: center; gap: 15px; margin-bottom: 22px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(0,0,0,.17); }.publish-preview > span { display: grid; width: 50px; height: 50px; flex: 0 0 auto; place-items: center; border-radius: 10px; background: radial-gradient(circle at 70% 20%, rgba(200,158,91,.35), transparent 40%), #26201a; color: var(--acid); font: 500 20px/1 "DM Mono", monospace; }.publish-preview strong, .publish-preview small { display: block; }.publish-preview strong { font-size: 12px; }.publish-preview small { margin-top: 6px; color: var(--muted); font: 500 10px/1 "DM Mono", monospace; letter-spacing: .1em; }
.publish-select { height: 44px; padding: 0 12px; appearance: auto; }
.publish-check { display: flex; align-items: center; gap: 12px; padding: 15px 0; border-bottom: 1px solid var(--line); cursor: pointer; }.publish-check input { position: absolute; opacity: 0; }.publish-check > span { position: relative; width: 36px; height: 20px; flex: 0 0 auto; border-radius: 99px; background: #30383c; }.publish-check > span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--muted); transition: 160ms ease; }.publish-check input:checked + span { background: var(--acid-soft); }.publish-check input:checked + span::after { left: 19px; background: var(--acid); }.publish-check strong, .publish-check small { display: block; }.publish-check strong { font-size: 10px; }.publish-check small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.publish-safety { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 18px; }.publish-safety span { padding: 9px; border-radius: 8px; background: rgba(111,158,150,.045); color: var(--muted); font-size: 10px; line-height: 1.45; }
.feedback-prompts { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 22px; }.feedback-prompts button { padding: 8px 10px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); font-size: 10px; cursor: pointer; }.feedback-prompts button:hover { border-color: var(--cyan); color: var(--cyan); }.feedback-privacy { margin: 9px 0 0; color: var(--muted-dim); font-size: 10px; }
.toast { position: fixed; z-index: 100; left: 50%; bottom: max(28px, env(safe-area-inset-bottom)); min-width: 220px; max-width: calc(100% - 28px); padding: 13px 18px; border: 1px solid var(--line-strong); border-radius: 999px; background: rgba(17,22,27,.94); box-shadow: 0 14px 40px rgba(0,0,0,.45); transform: translateX(-50%); color: var(--text); font-size: 10px; text-align: center; }
.toast[hidden] { display: none; }

body.camera-focus-mode { overflow: hidden; }
.stage-card:is(:fullscreen, :-webkit-full-screen, .camera-focus) { display: flex; width: 100vw; height: 100vh; height: 100dvh; max-width: none; flex-direction: column; border: 0; border-radius: 0; background: #090c0d; }
.stage-card.camera-focus { position: fixed; z-index: 200; inset: 0; }
.stage-card:is(:fullscreen, :-webkit-full-screen, .camera-focus) .stage { min-height: 0; flex: 1; border-radius: 0; }
.stage-card:is(:fullscreen, :-webkit-full-screen, .camera-focus) .transport { min-height: 78px; flex: 0 0 auto; padding-inline: max(20px, env(safe-area-inset-left)) max(20px, env(safe-area-inset-right)); background: rgba(14,18,19,.96); }
.stage-card:is(:fullscreen, :-webkit-full-screen, .camera-focus) #camera { opacity: .82; }
.stage-card:is(:fullscreen, :-webkit-full-screen, .camera-focus) .readout { top: 46%; }
.stage-card:is(:fullscreen, :-webkit-full-screen, .camera-focus) .camera-fullscreen-button { border-color: var(--cyan); color: var(--cyan); }

/* Aether Archive chamber */
.chamber-environment { position: absolute; z-index: 0; inset: 0; overflow: hidden; opacity: .34; pointer-events: none; perspective: 700px; transition: opacity 650ms ease, transform 650ms ease; }
.chamber-environment::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 32%, rgba(200,158,91,.13), transparent 31%), linear-gradient(90deg, rgba(0,0,0,.42), transparent 26% 74%, rgba(0,0,0,.42)); }
.chamber-vault { position: absolute; inset: -35% 9% 5%; border: 1px solid rgba(200,158,91,.12); border-bottom: 0; border-radius: 50% 50% 0 0; box-shadow: inset 0 0 80px rgba(0,0,0,.62), 0 0 0 22px rgba(200,158,91,.012), 0 0 0 23px rgba(200,158,91,.06), 0 0 0 70px rgba(0,0,0,.08); }
.chamber-vault::before, .chamber-vault::after { content: ""; position: absolute; top: 36%; bottom: 0; width: 1px; background: linear-gradient(transparent, rgba(200,158,91,.12)); }.chamber-vault::before { left: 20%; }.chamber-vault::after { right: 20%; }
.chamber-window { position: absolute; top: 8%; left: 50%; display: grid; width: 66px; height: 66px; place-items: center; border: 1px solid rgba(200,158,91,.22); border-radius: 50%; background: radial-gradient(circle, rgba(200,158,91,.09), transparent 65%); transform: translateX(-50%); color: rgba(200,158,91,.55); font-family: Georgia, serif; font-size: 25px; }
.chamber-window::before, .chamber-window::after { content: ""; position: absolute; background: rgba(200,158,91,.14); }.chamber-window::before { width: 1px; height: 130%; }.chamber-window::after { width: 130%; height: 1px; }.chamber-window i { position: absolute; inset: 10px; border: 1px solid rgba(200,158,91,.12); border-radius: 50%; transform: rotate(32deg); }
.chamber-beam { position: absolute; top: 9%; left: 50%; width: 42%; height: 72%; background: linear-gradient(115deg, rgba(200,158,91,.055), transparent 65%); clip-path: polygon(48% 0, 62% 0, 100% 100%, 0 100%); transform: translateX(-52%); filter: blur(5px); }
.chamber-floor { position: absolute; left: -18%; right: -18%; bottom: -42%; height: 78%; background-image: linear-gradient(rgba(200,158,91,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(200,158,91,.08) 1px, transparent 1px); background-size: 54px 42px; transform: rotateX(64deg); transform-origin: center top; -webkit-mask-image: linear-gradient(black, transparent 78%); mask-image: linear-gradient(black, transparent 78%); }
.field-console { position: absolute; left: 50%; bottom: 5%; width: 240px; height: 92px; padding: 14px 17px; border: 1px solid rgba(200,158,91,.19); border-radius: 7px 7px 2px 2px; background: linear-gradient(145deg, rgba(69,46,27,.88), rgba(20,15,11,.92)); box-shadow: inset 0 1px rgba(255,255,255,.05), 0 24px 50px rgba(0,0,0,.55); transform: translateX(-50%); }
.field-console::before { content: ""; position: absolute; inset: 7px; border: 1px solid rgba(200,158,91,.08); }.field-console > span { position: relative; display: block; color: rgba(200,158,91,.45); font: 500 10px/1 "DM Mono", monospace; letter-spacing: .18em; text-align: center; }
.console-dials { position: relative; display: flex; justify-content: center; gap: 20px; margin-top: 19px; }.console-dials i { position: relative; width: 19px; height: 19px; border: 1px solid rgba(200,158,91,.3); border-radius: 50%; background: radial-gradient(circle at 35% 30%, #665039, #17110d 60%); box-shadow: 0 0 0 5px rgba(0,0,0,.14); }.console-dials i::after { content: ""; position: absolute; top: 2px; left: 50%; width: 1px; height: 6px; background: rgba(200,158,91,.55); transform: rotate(var(--dial, 20deg)); transform-origin: 0 8px; }.console-dials i:nth-child(2) { --dial: 75deg; }.console-dials i:nth-child(3) { --dial: -35deg; }.console-dials i:nth-child(4) { --dial: 42deg; }
.archive-dust { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 7px var(--acid); opacity: .35; animation: archiveDrift 8s ease-in-out infinite alternate; }.dust-one { top: 31%; left: 24%; }.dust-two { top: 21%; right: 27%; animation-delay: -2.7s; }.dust-three { top: 56%; right: 36%; animation-delay: -5.1s; }
@keyframes archiveDrift { to { transform: translate(20px, -28px); opacity: .08; } }
.chamber-status { position: absolute; z-index: 7; top: 18px; right: 18px; display: flex; align-items: center; gap: 7px; padding: 8px 10px; border: 1px solid rgba(200,158,91,.2); border-radius: 999px; background: rgba(13,10,8,.62); color: rgba(200,158,91,.72); font: 500 10px/1 "DM Mono", monospace; letter-spacing: .13em; opacity: 0; transform: translateY(-5px); transition: 350ms ease; backdrop-filter: blur(8px); }.chamber-status i { width: 5px; height: 5px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 9px var(--acid); }
.chamber-toggle { border: 1px solid rgba(200,158,91,.23); background: rgba(200,158,91,.055); color: #d8c49d; }.chamber-toggle:hover, .chamber-toggle[aria-pressed="true"] { border-color: rgba(200,158,91,.55); background: rgba(200,158,91,.12); color: var(--acid); }.chamber-toggle > span:first-child { font-size: 15px; }
.stage.chamber-active { min-height: 610px; background: radial-gradient(circle at var(--field-x, 58%) var(--field-y, 40%), rgba(200,158,91,.13), transparent 25%), linear-gradient(150deg, #151a1a, #070909 74%); }
.stage.chamber-active .chamber-environment { opacity: 1; transform: scale(1.015); }.stage.chamber-active .chamber-status { opacity: 1; transform: translateY(0); }.stage.chamber-active .stage-grid { opacity: .11; }.stage.chamber-active .pitch-lines { opacity: .65; }.stage.chamber-active .field-console { transform: translateX(-50%) translateY(-4px); }
body.chamber-open .stage-card { border-color: rgba(200,158,91,.23); box-shadow: 0 30px 100px rgba(0,0,0,.45), 0 0 70px rgba(123,87,40,.06); }
body.chamber-open .control-panel { border-color: rgba(200,158,91,.17); }
.tutorial-dialog, .save-dialog, .profile-dialog, .calibration-dialog, .practice-dialog, .publish-dialog, .feedback-dialog { background: var(--panel-strong); }
.toast { background: rgba(24,19,15,.95); }

@media (max-width: 1050px) {
  .instrument-layout { grid-template-columns: 1fr; }
  .control-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
  .panel-heading, .level-card, .keyboard-help { grid-column: 1 / -1; }
  .stage { min-height: 500px; }
  .stage.chamber-active { min-height: 570px; }
  .studio-grid { grid-template-columns: 1fr; }
  .creator-profile { min-height: 390px; }
  .portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .community-grid { grid-template-columns: 1fr 1fr; }
  .tutorial-steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .status-pill { display: none; }
  .transport { align-items: stretch; flex-direction: column; }
  .transport-actions { width: 100%; flex-wrap: wrap; }
  .transport-actions .button { min-width: 0; flex: 1 1 130px; }
}

@media (max-width: 720px) {
  .app-shell { width: min(100% - 28px, 1500px); }
  .topbar { min-height: 74px; }
  .status-pill { display: none; }
  .site-nav { display: none; }
  .hero-copy { grid-template-columns: 1fr; gap: 24px; padding: 46px 0 32px; }
  .hero-introduction { max-width: none; margin-left: 0; }
  h1 { font-size: clamp(45px, 15vw, 68px); }
  .intro { margin: 0; }
  .stage { min-height: 470px; }
  .stage.chamber-active { min-height: 520px; }
  .chamber-status { top: 12px; right: 12px; max-width: 150px; padding: 7px 8px; font-size: 10px; }
  .chamber-vault { inset-inline: 4%; }
  .field-console { width: 190px; height: 78px; }.console-dials { gap: 14px; margin-top: 15px; }.console-dials i { width: 16px; height: 16px; }
  .readout { top: 46%; }
  .antenna i { height: 170px; }
  .antenna-volume i { width: 62px; height: 27px; }
  .pointer-hint span { max-width: 210px; white-space: normal; line-height: 1.4; }
  .practice-hud { top: 12px; width: calc(100% - 104px); padding: 11px 12px 9px; }
  .lesson-hud { top: 12px; left: 12px; width: calc(100% - 24px); padding: 14px; }
  .lesson-hud h3 { font-size: 21px; }
  .practice-hud-heading { gap: 10px; }
  .transport { align-items: stretch; flex-direction: column; }
  .transport-actions { display: grid; width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .transport-actions .button { width: 100%; min-width: 0; height: auto; min-height: 44px; padding-block: 8px; line-height: 1.2; }
  .transport-actions .chamber-toggle { grid-column: 1 / -1; }
  .stage-card:is(:fullscreen, :-webkit-full-screen, .camera-focus) .transport { padding-bottom: max(14px, env(safe-area-inset-bottom)); }
  .control-panel { display: block; }
  .keyboard-help { display: none; }
  .tutorial-shell { padding: 34px 20px 24px; }
  .tutorial-steps { grid-template-columns: 1fr; }
  .tutorial-steps article { min-height: 0; }
  .tutorial-actions { align-items: stretch; flex-direction: column-reverse; }
  .tutorial-actions .button { width: 100%; }
  .authentic-note { align-items: flex-start; flex-direction: column; gap: 6px; }
  .creator-section, .community-section { padding-top: 82px; }
  .section-heading { grid-template-columns: 1fr; gap: 20px; }
  .section-heading > p { margin: 0; }
  .recording-console { padding: 20px; }
  .console-readout div { padding: 12px 8px; }
  .portfolio-grid, .community-grid { grid-template-columns: 1fr; }
  .room-heading { align-items: flex-start; flex-direction: column; }

  .listening-post { grid-template-columns: 1fr; }.post-art { min-height: 190px; }.post-body { padding: 20px; }.post-social { align-items: flex-start; flex-direction: column; }.post-actions { width: 100%; }.post-actions button { flex: 1; }
  .save-shell { padding: 34px 20px 24px; }
  .save-meta { grid-template-columns: 1fr; }
  .save-meta div { text-align: left; }
  .practice-shell { padding: 34px 20px 24px; }
  .practice-shell h2 { font-size: 30px; }
  .response-card { grid-template-columns: 1fr; }
  .response-reading { text-align: left; }
  .practice-history { grid-template-columns: repeat(3, 1fr) auto; }
  .history-bars { grid-column: 1 / -1; justify-content: stretch; }
  .history-bars i { flex: 1; }
  .publish-safety { grid-template-columns: 1fr; }
  .publish-shell .save-actions { align-items: stretch; flex-direction: column-reverse; }.publish-shell .save-actions .button { width: 100%; }
  .empty-actions { flex-direction: column; }
  input.text-field, textarea.text-field, select.text-field, .publish-select { font-size: 16px; }
}

@media (max-width: 380px) {
  .app-shell { width: calc(100% - 20px); }
  .brand { gap: 8px; }
  .brand small { display: none; }
  .brand-mark { width: 36px; height: 36px; }
  .topbar-actions { gap: 8px; }
  .guide-button { font-size: 10px; }
  h1 { font-size: clamp(42px, 15vw, 58px); }
  .transport-actions .button { min-height: 44px; padding: 7px 10px; line-height: 1.2; }
  .post-actions { flex-wrap: wrap; }
}

@media (pointer: coarse) {
  button, select, input[type="range"] { min-height: 44px; }
  .icon-button { width: 44px; }
  .reaction-button, .post-actions button { min-height: 44px; }
}

@media (max-height: 500px) and (orientation: landscape) {
  .stage-card:is(:fullscreen, :-webkit-full-screen, .camera-focus) .transport-copy { display: none; }
  .stage-card:is(:fullscreen, :-webkit-full-screen, .camera-focus) .transport { min-height: 60px; padding-block: 7px; flex-direction: row; }
  .stage-card:is(:fullscreen, :-webkit-full-screen, .camera-focus) .transport-actions { flex-wrap: nowrap; }
  .stage-card:is(:fullscreen, :-webkit-full-screen, .camera-focus) .transport-actions .button { height: 44px; min-width: 0; padding: 0 10px; flex: 1 1 0; font-size: 11px; }
  .stage-card:is(:fullscreen, :-webkit-full-screen, .camera-focus) .chamber-toggle { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
