:root {
  color-scheme: dark;
  --ink: #15120f;
  --ink-2: #211b17;
  --ink-3: #332a24;
  --cream: #eee4d2;
  --cream-2: #d8c8ae;
  --muted: #9f9488;
  --ember: #e5592e;
  --ember-light: #f29a7e;
  --green: #8bbf79;
  --danger: #ee796b;
  --line: rgba(238, 228, 210, .13);
  --shadow: 0 28px 90px rgba(0, 0, 0, .38);
}

* { box-sizing: border-box; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--ink);
  color: var(--cream);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }

.shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.nav {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.nav img { width: 196px; height: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--cream-2); text-decoration: none; font-size: 14px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: var(--ember);
  color: #160d09;
  font-weight: 750;
  text-decoration: none;
  box-shadow: 0 10px 32px rgba(229, 89, 46, .2);
}
.button:hover { background: #f06a3f; transform: translateY(-1px); }
.button.secondary { background: transparent; color: var(--cream); border-color: var(--line); box-shadow: none; }
.button.secondary:hover { background: rgba(238, 228, 210, .06); }
.button.small { min-height: 38px; padding: 0 15px; font-size: 13px; }
.button:disabled { opacity: .45; cursor: not-allowed; transform: none; }

.eyebrow {
  color: var(--ember-light);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.hero {
  min-height: 690px;
  display: grid;
  grid-template-columns: 1.03fr .97fr;
  align-items: center;
  gap: 72px;
  padding: 72px 0 84px;
}
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; }
h1 { margin: 18px 0 26px; font-size: clamp(54px, 6.3vw, 91px); line-height: .98; letter-spacing: -.04em; }
h2 { margin: 14px 0 20px; font-size: clamp(38px, 4.2vw, 62px); line-height: 1.02; letter-spacing: -.025em; }
h3 { margin: 0 0 12px; font-size: 26px; }
.lede { max-width: 650px; color: var(--cream-2); font-size: 20px; line-height: 1.55; }
.hero-actions { display: flex; align-items: center; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.fud { margin-top: 18px; color: var(--muted); font-size: 13px; }
.proof-row { display: flex; gap: 26px; margin-top: 42px; flex-wrap: wrap; }
.proof { padding-left: 13px; border-left: 2px solid var(--ember); }
.proof b { display: block; font-size: 17px; }
.proof span { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }

.hero-stage {
  position: relative;
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: radial-gradient(circle at 50% 16%, rgba(229, 89, 46, .13), transparent 40%), var(--ink-2);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.metronome { position: absolute; inset: 42px 38px 150px; display: grid; place-items: center; }
.metronome img { width: min(275px, 65%); filter: drop-shadow(0 24px 45px rgba(0,0,0,.5)); }
.pendulum {
  position: absolute;
  width: 5px;
  height: 196px;
  left: calc(50% - 2px);
  top: 98px;
  background: var(--cream);
  transform-origin: 50% 91%;
  animation: tick 1.081s ease-in-out infinite alternate;
}
.pendulum::after { content: ""; position: absolute; left: -16px; top: 74px; width: 37px; height: 28px; border-radius: 5px; background: var(--ember); }
@keyframes tick { from { transform: rotate(-13deg); } to { transform: rotate(13deg); } }
.mini-player {
  position: absolute;
  left: 24px; right: 24px; bottom: 24px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(21, 18, 15, .91);
  backdrop-filter: blur(15px);
}
.mini-top { display: flex; justify-content: space-between; gap: 20px; font-size: 13px; }
.mini-top span:last-child { color: var(--muted); font-variant-numeric: tabular-nums; }
.mini-wave { height: 48px; display: flex; align-items: center; gap: 3px; margin-top: 12px; }
.mini-wave i { display: block; flex: 1; height: var(--h); border-radius: 2px; background: var(--ember); opacity: .82; }

.band { border-top: 1px solid var(--line); }
.section { padding: 110px 0; }
.section-head { max-width: 790px; }
.section-head p { color: var(--cream-2); font-size: 18px; line-height: 1.6; }
.pain-grid, .feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 52px; }
.card { padding: 28px; border: 1px solid var(--line); border-radius: 12px; background: var(--ink-2); }
.card .n { color: var(--ember); font: 700 12px ui-monospace, monospace; margin-bottom: 18px; }
.card p { margin: 0; color: var(--muted); line-height: 1.55; }

.proof-split { display: grid; grid-template-columns: .86fr 1.14fr; gap: 64px; align-items: center; }
.proof-shot { padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--ink-2); box-shadow: var(--shadow); }
.proof-shot img { width: 100%; display: block; border-radius: 9px; }
.steps { list-style: none; padding: 0; margin: 34px 0 0; }
.steps li { position: relative; padding: 0 0 30px 50px; color: var(--cream-2); line-height: 1.5; }
.steps li::before { content: attr(data-n); position: absolute; left: 0; top: -2px; width: 29px; height: 29px; display: grid; place-items: center; border: 1px solid var(--ember); border-radius: 50%; color: var(--ember-light); font-size: 12px; font-weight: 800; }
.steps strong { color: var(--cream); }

.cta { margin: 60px auto 100px; padding: 70px; text-align: center; border: 1px solid var(--line); border-radius: 18px; background: radial-gradient(circle at 50% 0, rgba(229,89,46,.16), transparent 54%), var(--ink-2); }
.cta h2 { max-width: 800px; margin-left: auto; margin-right: auto; }
.cta p { color: var(--cream-2); font-size: 18px; }
footer { padding: 32px 0 48px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; display: flex; justify-content: space-between; }

/* Shared review and studio surfaces */
.app-nav { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.app-main { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 52px 0 90px; }
.app-title { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 34px; }
.app-title h1 { max-width: 800px; font-size: clamp(42px, 6vw, 70px); margin: 12px 0 0; }
.artist { margin: 13px 0 0; color: var(--cream-2); font-size: 16px; }
.brand-link { display: inline-flex; }
.privacy-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 99px; color: var(--cream-2); font-size: 12px; }
.privacy-pill span { color: var(--green); font-size: 9px; }
.meta { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 7px 10px; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.player-card { padding: 28px; border: 1px solid var(--line); border-radius: 14px; background: var(--ink-2); box-shadow: var(--shadow); }
.player-controls { display: flex; align-items: center; gap: 16px; }
.round { width: 52px; height: 52px; border: 0; border-radius: 50%; background: var(--ember); color: var(--ink); font-size: 18px; font-weight: 900; }
.clock { min-width: 110px; font: 13px ui-monospace, monospace; color: var(--cream-2); }
.clock-muted { color: var(--muted); }
.player-copy { display: flex; flex: 1; flex-direction: column; gap: 3px; font-size: 12px; }
.player-copy strong { color: var(--cream-2); font-weight: 650; }
.player-copy span { color: var(--muted); }
.copy-link { margin-left: auto; }
.wave-shell { position: relative; margin: 24px 0 26px; }
.waveform { height: 126px; display: flex; align-items: center; gap: 2px; cursor: crosshair; border-radius: 7px; overflow: hidden; }
.waveform i { flex: 1; min-width: 1px; height: calc(var(--h) * 100%); border-radius: 2px; background: var(--ink-3); transition: background .12s; }
.waveform i.done { background: var(--ember); }
.markers { position: absolute; inset: 0; pointer-events: none; }
.marker { position: absolute; bottom: -14px; width: 27px; height: 27px; margin-left: -13px; padding: 0; border: 2px solid var(--ink-2); border-radius: 50%; background: var(--cream); color: var(--ink); box-shadow: 0 2px 8px rgba(0,0,0,.36); font-size: 8px; font-weight: 850; transform: scale(1); pointer-events: auto; z-index: 2; }
.marker:hover, .marker:focus-visible { background: var(--ember-light); transform: scale(1.16); z-index: 5; }
.marker::after { content: attr(data-tip); position: absolute; left: 50%; bottom: 34px; width: max-content; max-width: 260px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 6px; background: #0f0d0b; color: var(--cream-2); box-shadow: 0 12px 30px rgba(0,0,0,.4); font-size: 11px; font-weight: 500; line-height: 1.35; text-align: left; white-space: normal; opacity: 0; pointer-events: none; transform: translate(-50%, 5px); transition: opacity .12s, transform .12s; }
.marker:hover::after, .marker:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
.now { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; }
.wave-comment { display: grid; grid-template-columns: 38px 1fr; gap: 12px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.listener-avatar, .comment-avatar { display: grid; place-items: center; border-radius: 50%; background: var(--ember); color: var(--ink); font-size: 10px; font-weight: 850; }
.listener-avatar { width: 38px; height: 38px; margin-top: 19px; }
.wave-comment-fields { display: grid; grid-template-columns: 122px 1fr; gap: 8px; }
.author-input { height: 40px; padding: 9px 11px; }
.comment-input-row { display: grid; grid-template-columns: auto 1fr auto; height: 40px; border: 1px solid var(--line); border-radius: 7px; background: var(--ink); overflow: hidden; }
.comment-input-row:focus-within { border-color: var(--ember); box-shadow: 0 0 0 3px rgba(229,89,46,.12); }
.comment-input-row input { height: 38px; min-width: 0; padding: 8px 10px; border: 0; border-radius: 0; box-shadow: none; }
.comment-at, .post-comment { border: 0; background: transparent; }
.comment-at { min-width: 53px; padding: 0 9px; border-right: 1px solid var(--line); color: var(--ember-light); font: 11px ui-monospace, monospace; }
.post-comment { padding: 0 14px; background: var(--ember); color: var(--ink); font-size: 12px; font-weight: 800; }
.post-comment:hover { background: #f06a3f; }
.post-comment:disabled { opacity: .45; }
.wave-comment .form-status { grid-column: 2; margin: 0; min-height: 15px; }
.review-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 22px; margin-top: 22px; }
.review-grid.thread-layout { grid-template-columns: 1fr 330px; }
.panel { padding: 26px; border: 1px solid var(--line); border-radius: 12px; background: var(--ink-2); }
.panel h2 { font: 600 21px Inter, sans-serif; margin: 0 0 18px; letter-spacing: 0; }
.panel-kicker { margin-bottom: 8px; color: var(--ember-light); font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.panel-intro { margin: -5px 0 22px; color: var(--muted); font-size: 14px; line-height: 1.5; }
label { display: block; margin: 16px 0 7px; color: var(--cream-2); font-size: 13px; }
input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 13px 14px;
  background: var(--ink);
  color: var(--cream);
  outline: none;
}
input:focus, textarea:focus { border-color: var(--ember); box-shadow: 0 0 0 3px rgba(229,89,46,.12); }
textarea { min-height: 126px; resize: vertical; line-height: 1.45; }
.form-foot { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 14px; }
.at { color: var(--ember-light); font: 12px ui-monospace, monospace; }
.error { min-height: 20px; color: var(--danger); font-size: 13px; margin-top: 10px; }
.form-status { min-height: 20px; margin: 12px 0 0; color: var(--muted); font-size: 12px; line-height: 1.4; }
.form-status.success { color: var(--green); }
.form-status.error { color: var(--danger); }
.privacy-note { display: grid; grid-template-columns: 28px 1fr; gap: 10px; margin-top: 24px; padding-top: 19px; border-top: 1px solid var(--line); color: var(--muted); }
.privacy-note > span { display: grid; width: 25px; height: 25px; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--green); }
.privacy-note p { margin: 1px 0 0; font-size: 12px; line-height: 1.5; }
.privacy-note strong { color: var(--cream-2); }
.conversation-head { display: flex; justify-content: space-between; align-items: start; gap: 20px; }
.count { padding: 6px 8px; border-radius: 5px; background: rgba(229,89,46,.13); color: var(--ember-light); font-size: 11px; white-space: nowrap; }
.comment-list { display: grid; gap: 10px; }
.comment { display: grid; grid-template-columns: 34px 58px 1fr; gap: 12px; padding: 15px; border: 1px solid var(--line); border-radius: 8px; background: rgba(21,18,15,.58); }
.comment-avatar { width: 34px; height: 34px; background: var(--ink-3); color: var(--cream-2); }
.comment-time { border: 0; padding: 0; background: transparent; color: var(--ember-light); font: 12px ui-monospace, monospace; text-align: left; }
.comment-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.comment-head b { font-size: 13px; }
.comment-head span { color: var(--muted); font-size: 11px; }
.comment p { margin: 0; color: var(--cream-2); line-height: 1.45; font-size: 14px; overflow-wrap: anywhere; }
.sync-state { display: inline-flex; align-items: center; gap: 5px; margin-top: 10px; color: var(--ember-light); font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.sync-state::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.sync-state.synced { color: var(--green); }
.comment-actions { display: flex; align-items: center; gap: 14px; }
.comment-actions button { padding: 0; border: 0; background: transparent; color: var(--muted); font-size: 11px; }
.comment-actions button:hover { color: var(--cream); }
.empty { color: var(--muted); padding: 28px 0; text-align: center; }
.review-guide h2 { font: 500 24px Georgia, serif; line-height: 1.15; }
.review-guide ol { display: grid; gap: 18px; margin: 26px 0 0; padding: 0; list-style: none; }
.review-guide li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; }
.review-guide li > span { display: grid; width: 25px; height: 25px; place-items: center; border: 1px solid var(--ember); border-radius: 50%; color: var(--ember-light); font-size: 10px; font-weight: 800; }
.review-guide li p { margin: 2px 0 0; color: var(--cream-2); font-size: 13px; line-height: 1.45; }
.handoff-strip { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 16px; margin-top: 22px; padding: 18px 22px; border: 1px solid var(--line); border-radius: 10px; background: linear-gradient(90deg, rgba(229,89,46,.08), transparent 45%), var(--ink-2); }
.handoff-icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; background: rgba(229,89,46,.14); color: var(--ember-light); font-size: 22px; }
.handoff-strip > div:nth-child(2) { display: flex; flex-direction: column; gap: 4px; }
.handoff-strip strong { font: 500 17px Georgia, serif; }
.handoff-strip span { color: var(--muted); font-size: 12px; line-height: 1.4; }
.handoff-strip .live-ready { color: var(--green); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.app-footer { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 26px 0 38px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; display: flex; justify-content: space-between; gap: 24px; }

/* Waveform-first score review: familiar timed comments, Maestro workflow. */
.review-page .app-main, .review-page .app-footer { width: min(1220px, calc(100% - 32px)); }
.review-context { align-items: center; margin-bottom: 20px; }
.review-context p { margin: 7px 0 0; color: var(--muted); font-size: 13px; }
.track-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 30px;
  min-height: 420px;
  padding: 24px;
  background: radial-gradient(circle at 69% 18%, rgba(229,89,46,.08), transparent 31%), #090807;
}
.track-main { display: flex; min-width: 0; flex-direction: column; }
.track-heading { display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 18px; }
.track-heading h1 { margin: 0; max-width: 100%; font: 650 clamp(25px, 3vw, 38px)/1.08 Inter, sans-serif; letter-spacing: -.035em; }
.track-heading .artist { margin-top: 8px; color: var(--muted); font-size: 12px; }
.track-heading .round { width: 64px; height: 64px; border: 1px solid var(--line); background: var(--cream); font-size: 21px; }
.track-heading .round:hover { background: var(--ember-light); }
.track-card .wave-shell { margin: 42px 0 28px; }
.track-card .waveform { height: 128px; border-radius: 3px; }
.track-card .waveform i { background: #5e5b58; }
.track-card .waveform i.done { background: var(--ember); }
.track-card .now { margin-top: -9px; }
.track-card .wave-comment { margin-top: 20px; }
.track-card .post-comment { min-width: 42px; font-size: 18px; }
.track-actions { display: flex; align-items: center; gap: 16px; margin-top: auto; padding-top: 14px; color: var(--muted); font-size: 11px; }
.track-actions .secure-inline { margin-left: auto; color: var(--green); }

.picture-monitor { position: relative; aspect-ratio: 1; align-self: center; border: 1px solid var(--line); border-radius: 10px; background: #050403; overflow: hidden; }
.picture-monitor video { display: none; width: 100%; height: 100%; object-fit: contain; background: #000; cursor: pointer; }
.picture-monitor.has-video video { display: block; }
.picture-monitor.has-video .cover-art { display: none; }
.cover-art { position: absolute; inset: 0; background: radial-gradient(circle at 65% 30%, rgba(229,89,46,.7), transparent 28%), radial-gradient(circle at 20% 70%, rgba(242,154,126,.24), transparent 30%), linear-gradient(145deg, #17100d, #040303 64%); }
.cover-grid { position: absolute; inset: 0; opacity: .22; background-image: linear-gradient(rgba(238,228,210,.18) 1px, transparent 1px), linear-gradient(90deg, rgba(238,228,210,.18) 1px, transparent 1px); background-size: 26px 26px; transform: perspective(500px) rotateX(55deg) scale(1.5); transform-origin: center bottom; }
.cover-art > img { position: absolute; top: 27px; left: 27px; width: 48px; filter: drop-shadow(0 8px 18px rgba(0,0,0,.5)); }
.cover-copy { position: absolute; inset: auto 28px 46px; display: flex; flex-direction: column; gap: 7px; }
.cover-copy span, .cover-copy small { color: var(--cream-2); font-size: 9px; font-weight: 750; letter-spacing: .16em; text-transform: uppercase; }
.cover-copy strong { font: 500 26px/1.02 Georgia, serif; }
.cover-copy small { color: var(--ember-light); }
.picture-status { position: absolute; right: 0; bottom: 0; left: 0; padding: 10px 12px; background: rgba(5,4,3,.84); color: var(--muted); font-size: 9px; letter-spacing: .03em; backdrop-filter: blur(8px); }
.picture-status span { color: var(--green); }

.marker-wrap { position: absolute; bottom: -14px; width: 27px; height: 27px; margin-left: -13px; pointer-events: auto; z-index: 2; }
.marker-wrap:hover, .marker-wrap:focus-within { z-index: 8; }
.marker-wrap .marker { position: relative; inset: auto; width: 27px; height: 27px; margin: 0; transform: none; }
.marker-wrap .marker:hover, .marker-wrap .marker:focus-visible { transform: scale(1.16); }
.marker-wrap .marker::after { content: none; }
.marker-popover { position: absolute; left: 50%; bottom: 34px; width: 250px; padding: 10px 11px; border: 1px solid var(--line); border-radius: 7px; background: #0f0d0b; box-shadow: 0 12px 30px rgba(0,0,0,.5); opacity: 0; pointer-events: none; transform: translate(-50%, 6px); transition: opacity .12s, transform .12s; }
.marker-wrap:hover .marker-popover, .marker-wrap:focus-within .marker-popover { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.marker-popover p { margin: 0 0 9px; color: var(--cream-2); font-size: 11px; line-height: 1.35; }
.marker-popover div { display: flex; gap: 12px; }
.marker-popover button { padding: 0; border: 0; background: transparent; color: var(--ember-light); font-size: 10px; font-weight: 750; }

.thread-layout .conversation-panel { padding: 18px 0 0; border: 0; background: transparent; }
.thread-layout .conversation-panel .comment { border-width: 1px 0 0; border-radius: 0; background: transparent; }

.upload { border: 1px dashed rgba(238,228,210,.25); border-radius: 12px; padding: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 180px 150px; gap: 14px; }
.progress { height: 6px; border-radius: 99px; background: var(--ink-3); overflow: hidden; margin-top: 18px; }
.progress i { display: block; height: 100%; width: var(--progress, 0%); background: var(--ember); transition: width .2s; }
.mix-list { display: grid; gap: 12px; margin-top: 24px; }
.mix { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--ink-2); }
.mix h3 { font: 650 17px Inter, sans-serif; margin: 0 0 7px; }
.mix p { margin: 0; color: var(--muted); font-size: 12px; }
.mix-actions { display: flex; gap: 8px; }
.pending { color: var(--ember-light); }

@media (max-width: 860px) {
  .nav-links a:not(.button) { display: none; }
  .hero, .proof-split, .review-grid, .review-grid.thread-layout { grid-template-columns: 1fr; }
  .hero { padding-top: 50px; }
  .hero-stage { min-height: 460px; }
  .pain-grid, .feature-grid { grid-template-columns: 1fr; }
  .section { padding: 78px 0; }
  .cta { padding: 46px 24px; }
  .app-title { align-items: start; flex-direction: column; }
  .form-row { grid-template-columns: 1fr; }
  .mix { grid-template-columns: 1fr; }
  .player-controls { flex-wrap: wrap; }
  .player-copy { order: 3; flex-basis: 100%; }
  .copy-link { margin-left: auto; }
  .handoff-strip { grid-template-columns: 42px 1fr; }
  .handoff-strip .live-ready { grid-column: 2; }
  .wave-comment-fields { grid-template-columns: 110px 1fr; }
  .track-card { grid-template-columns: 1fr; }
  .picture-monitor { width: min(100%, 560px); aspect-ratio: 16 / 9; justify-self: center; }
}

@media (max-width: 540px) {
  .app-main { padding-top: 34px; }
  .player-card, .panel { padding: 20px; }
  .waveform { height: 100px; }
  .comment { grid-template-columns: 34px 48px 1fr; gap: 8px; }
  .wave-comment { grid-template-columns: 32px 1fr; gap: 9px; }
  .listener-avatar { width: 32px; height: 32px; }
  .wave-comment-fields { grid-template-columns: 1fr; }
  .wave-comment .form-status { grid-column: 1 / -1; }
  .form-foot { align-items: stretch; flex-direction: column; }
  .form-foot .button { width: 100%; }
  .app-footer { flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pendulum { animation: none; transform: rotate(8deg); }
  * { transition-duration: 0s !important; }
}

/* ─────────────────────────────────────────────────────────────
   PRIVATE REVIEW — the deck's real arrangement workspace
   ───────────────────────────────────────────────────────────── */
.arrangement-review {
  min-width: 320px;
  background: #0d0b0a;
  color: var(--cream);
  overflow-x: hidden;
}
.arrangement-review .review-app {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #15120f;
}
.review-chrome {
  height: 38px;
  display: grid;
  grid-template-columns: 80px minmax(240px, 460px) 80px;
  justify-content: space-between;
  align-items: center;
  padding: 0 14px;
  background: #090807;
  border-bottom: 1px solid rgba(238,228,210,.04);
}
.chrome-dots { display: flex; gap: 7px; }
.chrome-dots i { width: 11px; height: 11px; border-radius: 50%; background: #3a3634; }
.review-address {
  height: 23px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #211e1b;
  color: #77716c;
  font: 500 10px ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .025em;
}
.review-project-header {
  min-height: 82px;
  display: grid;
  grid-template-columns: 29px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 16px 30px;
  border-bottom: 1px solid rgba(238,228,210,.09);
  background: #15120f;
}
.project-mark { width: 27px; height: 27px; }
.project-copy { min-width: 0; }
.project-copy h1 {
  overflow: hidden;
  margin: 0;
  color: var(--cream);
  font: 600 clamp(20px, 2.2vw, 28px)/1.05 Georgia, "Times New Roman", serif;
  letter-spacing: -.015em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.project-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 6px;
  overflow: hidden;
  color: #77716c;
  font: 10px ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: nowrap;
}
.project-meta b { color: #48433f; font-weight: 400; }
.review-identity { display: flex; align-items: center; gap: 9px; color: #918983; font-size: 10px; }
.privacy-dot { width: 7px; height: 7px; border-radius: 50%; background: #70b87e; box-shadow: 0 0 7px rgba(112,184,126,.55); }
.review-identity button {
  height: 30px;
  margin-left: 8px;
  padding: 0 12px;
  border: 1px solid rgba(238,228,210,.15);
  border-radius: 7px;
  background: transparent;
  color: var(--cream-2);
  font-size: 10px;
}

.review-workspace {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(330px, 27vw, 410px);
}
.arrangement-pane {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 26px 30px 18px;
  background: #15120f;
}
.version-strip { display: flex; align-items: center; gap: 18px; min-height: 37px; }
.version {
  width: 48px;
  height: 38px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(238,228,210,.16);
  border-radius: 8px;
  background: transparent;
  color: #6f6964;
  font: 10px ui-monospace, SFMono-Regular, Menlo, monospace;
}
.version b { font-size: 11px; }
.version span { margin-top: 1px; font-size: 8px; }
.version.current { border-color: var(--ember); background: var(--ember); color: #1b100b; }
.version-summary { display: flex; gap: 7px; color: #77716c; font-size: 10px; }
.version-summary b { color: var(--ember-light); }

.score-timeline {
  position: relative;
  flex: 1;
  min-height: 480px;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  grid-template-rows: auto auto minmax(280px, 1fr);
  margin-top: 20px;
}
.wave-gutter { grid-column: 1; grid-row: 1; }
.wave-area { grid-column: 2; grid-row: 1; min-width: 0; }
.arrangement-review .wave-shell { position: relative; margin: 0; }
.arrangement-review .waveform {
  height: 118px;
  display: flex;
  align-items: center;
  gap: 2px;
  overflow: visible;
  border-radius: 0;
  cursor: crosshair;
}
.arrangement-review .waveform i {
  flex: 1;
  min-width: 1px;
  height: calc(var(--h) * 100%);
  border-radius: 1px;
  background: #504c49;
  transition: background .1s;
}
.arrangement-review .waveform i.done { background: #b84726; }
.wave-playhead {
  position: absolute;
  top: -7px;
  bottom: -7px;
  left: 0;
  width: 2px;
  background: var(--cream);
  opacity: .9;
  pointer-events: none;
  z-index: 5;
}
.timeline-axis {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  color: #625d58;
  font: 9px ui-monospace, SFMono-Regular, Menlo, monospace;
}
.section-axis {
  position: relative;
  height: 58px;
  margin-top: 5px;
  overflow: hidden;
  border-top: 1px solid rgba(238,228,210,.08);
  border-bottom: 1px solid rgba(238,228,210,.08);
  background: rgba(0,0,0,.12);
}
.section-segment {
  position: absolute;
  top: 0;
  bottom: 0;
  min-width: 24px;
  overflow: hidden;
  padding: 8px 9px;
  border: 0;
  border-right: 1px solid rgba(238,228,210,.12);
  background: transparent;
  color: #8f8780;
  text-align: left;
  white-space: nowrap;
}
.section-segment:hover,
.section-segment:focus-visible { z-index: 2; background: rgba(229,89,46,.13); color: var(--cream-2); outline: none; }
.section-segment strong,
.section-segment span { display: block; overflow: hidden; text-overflow: ellipsis; }
.section-segment strong { color: var(--cream-2); font: 650 10px Inter, sans-serif; }
.section-segment span { margin-top: 6px; font: 8px ui-monospace, SFMono-Regular, Menlo, monospace; }
.section-segment[data-source="detected"] strong::after {
  content: " detected";
  margin-left: 5px;
  color: #6f6964;
  font: 7px ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 400;
}

.arrangement-controls {
  grid-column: 1 / -1;
  grid-row: 2;
  display: grid;
  gap: 8px;
  margin-top: 8px;
}
.arrangement-toolbar {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  color: #77716c;
  font: 9px ui-monospace, SFMono-Regular, Menlo, monospace;
}
.arrangement-toolbar button,
.arrangement-toolbar output {
  height: 27px;
  min-width: 28px;
  display: inline-grid;
  place-items: center;
  padding: 0 9px;
  border: 1px solid rgba(238,228,210,.13);
  border-radius: 6px;
  background: rgba(238,228,210,.035);
  color: #aaa19a;
  font: inherit;
}
.arrangement-toolbar button:hover,
.arrangement-toolbar button[aria-pressed="true"] {
  border-color: rgba(229,89,46,.55);
  color: var(--cream-2);
}
.arrangement-toolbar button:disabled { opacity: .35; }
.arrangement-toolbar output { min-width: 46px; border-color: transparent; background: transparent; }
.arrangement-toolbar i { width: 1px; height: 18px; margin: 0 3px; background: rgba(238,228,210,.1); }
.arrangement-overview {
  position: relative;
  height: 54px;
  display: none;
  overflow: hidden;
  border: 1px solid rgba(238,228,210,.12);
  border-radius: 5px;
  background: #0c0a09;
  cursor: crosshair;
  outline: none;
}
.arrangement-overview:focus-visible { border-color: rgba(229,89,46,.75); }
.overview-clips { position: absolute; inset: 4px; }
.overview-clip { position: absolute; min-width: 1px; background: var(--clip-color); opacity: .65; }
.overview-window {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  min-width: 12px;
  border: 1px solid rgba(238,228,210,.68);
  background: rgba(238,228,210,.07);
  box-shadow: 0 0 0 999px rgba(0,0,0,.25);
  pointer-events: none;
}
.overview-playhead {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  width: 2px;
  background: var(--ember-light);
  pointer-events: none;
}

.arrangement-map {
  --lane-gutter: 112px;
  position: relative;
  grid-column: 1 / -1;
  grid-row: 3;
  min-height: 280px;
  margin-top: 2px;
  overflow: auto hidden;
  overscroll-behavior-x: contain;
  scrollbar-color: rgba(238,228,210,.2) transparent;
  scrollbar-width: thin;
  border-top: 1px solid rgba(238,228,210,.05);
  border-bottom: 1px solid rgba(238,228,210,.05);
  cursor: crosshair;
}
.arrangement-map::-webkit-scrollbar { height: 7px; }
.arrangement-map::-webkit-scrollbar-thumb { border-radius: 999px; background: rgba(238,228,210,.2); }
.arrangement-canvas { position: relative; min-width: 100%; }
.arrangement-empty { padding: 42px 0 0 112px; color: #69635e; font-size: 11px; }
.arrangement-track {
  height: var(--row-height, 11px);
  display: grid;
  grid-template-columns: var(--lane-gutter) minmax(0, 1fr);
  align-items: stretch;
}
.arrangement-track:nth-child(even) .track-lane { background-color: rgba(255,255,255,.007); }
.track-name {
  position: sticky;
  left: 0;
  z-index: 4;
  overflow: hidden;
  padding-right: 8px;
  border-right: 1px solid rgba(238,228,210,.06);
  background: #15120f;
  color: #77716c;
  font-size: clamp(6px, calc(var(--row-height, 11px) * .68), 9px);
  line-height: var(--row-height, 11px);
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.arrangement-map.wide-track-names { --lane-gutter: 220px; }
.arrangement-map.readable-rows .track-name { color: #aaa19a; font-size: 11px; }
.track-lane {
  position: relative;
  border-bottom: 1px solid rgba(238,228,210,.025);
  background: rgba(0,0,0,.16);
}
.arrangement-clip {
  position: absolute;
  top: 1px;
  bottom: 1px;
  min-width: 2px;
  overflow: hidden;
  border-radius: 1px;
  background: var(--clip-color, #8fa8c8);
  opacity: .9;
  color: rgba(21,18,15,.75);
  font-size: 0;
}
.arrangement-clip.audio { opacity: .82; }
.arrangement-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: var(--lane-gutter);
  pointer-events: none;
}
.arrangement-grid-line,
.arrangement-section-line,
.arrangement-comment-line,
.arrangement-playhead {
  position: absolute;
  top: 0;
  bottom: 0;
  margin-left: 0;
  pointer-events: none;
}
.arrangement-grid-line { width: 1px; background: rgba(238,228,210,.07); }
.arrangement-section-line { width: 1px; background: rgba(229,89,46,.28); }
.arrangement-comment-line { width: 1px; background: rgba(229,89,46,.38); z-index: 5; }
.arrangement-comment-line::before {
  content: attr(data-initials);
  position: absolute;
  top: 2px;
  left: -9px;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--cream-2);
  color: #15120f;
  font: 700 7px Inter, sans-serif;
}
.arrangement-playhead { width: 2px; background: var(--cream); z-index: 6; }

.arrangement-review .notes-rail .picture-monitor {
  position: relative;
  z-index: 2;
  width: 100%;
  aspect-ratio: 16 / 9;
  display: none;
  overflow: hidden;
  flex: 0 0 auto;
  border: 0;
  border-bottom: 1px solid rgba(238,228,210,.12);
  border-radius: 0;
  background: #050403;
}
.arrangement-review .notes-rail .picture-monitor.has-video { display: block; }
.arrangement-review .picture-monitor video { width: 100%; height: 100%; display: block; object-fit: contain; background: #000; cursor: pointer; }
.arrangement-review .picture-monitor.has-video .cover-art { display: none; }
.arrangement-review .cover-art { position: absolute; inset: 0; display: grid; place-items: center; background: #090807; }
.arrangement-review .cover-art img { width: 34px; }
.arrangement-review .cover-art strong { position: absolute; bottom: 30px; font: 500 14px Georgia, serif; }
.arrangement-review .picture-status {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(8,7,6,.74);
  color: #aaa19a;
  font-size: 8px;
  backdrop-filter: blur(7px);
}

.review-transport {
  min-height: 60px;
  display: flex;
  align-items: center;
  gap: 13px;
  border-bottom: 1px solid rgba(238,228,210,.09);
}
.transport-play {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--ember);
  color: #17100c;
  font-size: 14px;
}
.review-transport strong { font: 500 18px ui-monospace, SFMono-Regular, Menlo, monospace; }
.review-transport > span { color: #77716c; font: 9px ui-monospace, SFMono-Regular, Menlo, monospace; }
.review-transport .transport-help { margin-left: auto; font: 10px Inter, sans-serif; }

.review-composer {
  display: grid;
  grid-template-columns: 28px 110px auto minmax(120px, 1fr) 74px;
  align-items: center;
  gap: 9px;
  padding-top: 18px;
}
.arrangement-review .listener-avatar {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #d3bb92;
  color: #15120f;
  font-size: 9px;
  font-weight: 750;
}
.composer-name, .composer-note {
  height: 42px;
  min-width: 0;
  border: 1px solid rgba(238,228,210,.15);
  background: rgba(238,228,210,.045);
  color: var(--cream);
  outline: none;
}
.composer-name { padding: 0 10px; border-radius: 9px; font-size: 10px; }
.composer-note { padding: 0 13px; border-radius: 9px; font-size: 11px; }
.composer-name:focus, .composer-note:focus { border-color: rgba(229,89,46,.7); }
.arrangement-review .comment-at {
  height: 29px;
  padding: 0 9px;
  border: 0;
  border-radius: 6px;
  background: rgba(229,89,46,.14);
  color: var(--ember-light);
  font: 10px ui-monospace, SFMono-Regular, Menlo, monospace;
}
.composer-send { height: 42px; border: 0; border-radius: 9px; background: var(--ember); color: #17100c; font-size: 11px; font-weight: 750; }
.review-composer .form-status { grid-column: 2 / -1; min-height: 13px; margin: -3px 0 0; color: #77716c; font-size: 9px; }
.review-composer .form-status.error { color: var(--danger); }
.review-composer .form-status.success { color: var(--green); }

.notes-rail {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-left: 1px solid rgba(238,228,210,.09);
  background: #15120f;
}
.notes-header {
  height: 58px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  border-bottom: 1px solid rgba(238,228,210,.09);
}
.notes-header h2 { margin: 0; color: var(--cream); font: 600 12px Inter, sans-serif; }
.notes-header span { margin-left: auto; color: #77716c; font-size: 10px; }
.notes-rail .comment-list { flex: 1; min-height: 0; overflow: auto; }
.notes-rail .empty { margin: 22px 20px; padding: 0; border: 0; background: transparent; color: #77716c; font-size: 11px; }
.notes-rail .comment {
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr);
  gap: 10px;
  margin: 0;
  padding: 18px 20px;
  border: 0;
  border-bottom: 1px solid rgba(238,228,210,.08);
  border-radius: 0;
  background: transparent;
}
.notes-rail .comment-avatar { grid-column: 1; grid-row: 1 / span 2; width: 24px; height: 24px; overflow: hidden; font-size: 8px; }
.notes-rail .comment-avatar img,
.arrangement-review .listener-avatar img { width: 100%; height: 100%; display: block; object-fit: cover; border-radius: inherit; }
/* The content div spans the same grid cell and paints later; lift the
   timestamp button above it or its clicks land on .comment-head instead. */
.notes-rail .comment-time { grid-column: 2; grid-row: 1; justify-self: start; min-width: 0; height: 22px; margin-left: 84px; padding: 0 7px; border-radius: 5px; font-size: 9px; position: relative; z-index: 1; }
.notes-rail .comment > div:last-child { grid-column: 2; grid-row: 1 / span 2; min-width: 0; }
.notes-rail .comment-head { min-height: 23px; padding-right: 0; }
.notes-rail .comment-head b { color: var(--cream-2); font-size: 11px; }
.notes-rail .comment-head span { display: none; }
.notes-rail .comment p { margin: 9px 0 10px; color: #c4b9ac; font-size: 11px; line-height: 1.45; }
.notes-rail .comment-actions { display: flex; align-items: center; gap: 12px; }
.notes-rail .sync-state { color: var(--ember-light); font-size: 9px; }
.notes-rail .comment-actions button { border: 0; background: transparent; color: #77716c; font-size: 9px; }
.notes-footer {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 20px;
  border-top: 1px solid rgba(238,228,210,.09);
  background: rgba(0,0,0,.18);
  color: #77716c;
  font-size: 9px;
}

.arrangement-review .markers { position: absolute; inset: 0; pointer-events: none; }
.arrangement-review .marker-wrap { bottom: auto; top: -12px; pointer-events: auto; }
.arrangement-review .marker-wrap .marker { width: 22px; height: 22px; border-color: #15120f; background: var(--cream-2); color: #15120f; font-size: 7px; }
.arrangement-review .marker-popover { bottom: auto; top: 28px; }

@media (max-width: 900px) {
  .review-chrome { display: none; }
  .review-project-header { grid-template-columns: 25px minmax(0,1fr); padding: 14px 18px; }
  .review-identity { grid-column: 1 / -1; }
  .review-workspace { grid-template-columns: 1fr; }
  .arrangement-pane { padding: 20px 16px 16px; }
  .score-timeline { min-height: 450px; grid-template-columns: 82px minmax(0,1fr); }
  .arrangement-map { --lane-gutter: 82px; }
  .arrangement-map.wide-track-names { --lane-gutter: 200px; }
  .arrangement-overview { display: block; }
  .arrangement-toolbar { justify-content: flex-start; flex-wrap: wrap; }
  .notes-rail { min-height: 340px; border-top: 1px solid rgba(238,228,210,.09); border-left: 0; }
  .review-composer { grid-template-columns: 28px 1fr auto; }
  .composer-name { grid-column: 2 / -1; }
  .comment-at { grid-column: 2; }
  .composer-note { grid-column: 2 / -1; }
  .composer-send { grid-column: 3; grid-row: 3; }
  .review-composer .form-status { grid-column: 2 / -1; }
}

@media (max-width: 560px) {
  .project-meta #artist, .project-meta b:last-of-type { display: none; }
  .version-summary { font-size: 9px; }
  .score-timeline { min-height: 390px; grid-template-columns: 64px minmax(0,1fr); }
  .arrangement-map { --lane-gutter: 82px; }
  .arrangement-map.wide-track-names { --lane-gutter: 176px; }
  .arrangement-toolbar > span { display: none; }
  .arrangement-toolbar button { padding: 0 7px; }
  .section-axis { height: 49px; }
  .section-segment { padding: 7px 6px; }
  .section-segment span { display: none; }
  .section-segment strong { font-size: 8px; }
  .section-segment[data-source="detected"] strong::after { display: none; }
  .arrangement-review .waveform { height: 92px; }
  .review-transport .transport-help { display: none; }
}
