/* Requested reference screens. Navigation and unrelated cards retain their styles. */
.tour-dialog{font-family:var(--font);width:min(465px,calc(100vw - 36px));max-width:465px;padding:24px;background:#fff;border:1px solid var(--line);border-radius:22px;color:var(--ink);box-shadow:0 14px 48px #25332d26}
.tour-dialog #tour-progress{color:var(--green);font-size:14px;letter-spacing:1px;margin-bottom:12px}
.tour-dialog h2{font-size:28px;line-height:1.2;margin:0 0 12px}
.tour-dialog #tour-copy{font-size:19px;line-height:1.5;margin:0 0 22px;overflow-wrap:anywhere}
#tour-dialog{max-height:min(70vh,calc(100vh - 140px));max-height:min(70dvh,calc(100dvh - 140px));overflow:hidden}
#tour-dialog[open]{display:flex;flex-direction:column}
#tour-dialog>:not(#tour-copy){flex-shrink:0}
#tour-dialog #tour-copy{min-height:0;overflow-y:auto;overscroll-behavior:contain}
.tour-dialog #tour-message:empty{display:none}
.tour-actions{gap:10px;justify-content:flex-end}
.tour-actions #tour-skip{margin-inline-end:auto;text-decoration:none;font-size:16px;font-family:var(--font);font-weight:700;color:var(--green);background:transparent;border:0;padding:8px 0}
.tour-actions .button{min-height:54px;min-width:82px;font-size:16px;padding:12px 18px}
.tour-actions .button:disabled{opacity:.4;background:#f6f7f3;color:#6f7d76}
.recorder-card .recording-orb{width:140px;height:140px;font-size:56px;margin:12px 0}
.recorder-card .recording-orb::before{display:none}
.recorder-card .recording-status{font-size:20px;font-weight:600;line-height:1.4;text-align:center;color:var(--ink)}
.recorder-card .recording-clock{font-size:36px;font-weight:400;color:#7a8880;letter-spacing:1px;margin-top:12px}
.recorder-card .waveform:not(.is-recording){display:none}
.recorder-card .recorder-actions{margin-top:22px}
.recorder-card #start-btn,.recorder-card #resume-btn{width:100%;min-height:64px;font-size:20px;border-radius:10px}
.recorder-card .metro-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;align-items:end;gap:12px}
.recorder-card .metro-field{min-width:0}
.recorder-card #metro-tap{height:56px;padding-inline:16px;font-size:16px}
.recorder-card .metro-field input,.recorder-card .metro-field select{min-height:56px;font-size:20px}
.recorder-card .effort-control{border:0;padding-top:0;margin-top:18px}
.recorder-card #coach-effort{font-size:18px;min-height:58px;background:#fff}
.recorder-card #coach-effort-hint{font-size:16px;line-height:1.45}
.recorder-card .ladder{margin-bottom:18px}
.coin-pack-label{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.coin-pack-label .coach-coin{width:30px;height:30px;flex:none}
#account-signout{color:#b34e40;border-color:#bf5f50;background:#fff}
#account-signout:hover{background:#fcf0ed}
body:has(#recording-dialog[open]){overflow:hidden}
#recording-dialog{font-family:var(--font);inset:0;margin:0;width:100%;max-width:none;height:100dvh;max-height:none;padding:24px;border:0;border-radius:0;background:var(--paper);color:var(--ink);overflow:auto}
#recording-focus-body{width:min(440px,100%);min-height:calc(100dvh - 48px);margin:auto;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px}
#recording-dialog .recorder-core{width:100%;padding:0;flex:none}
#recording-dialog .recording-orb{width:min(272px,64vw);height:auto;aspect-ratio:1;background:#e5f0e9;color:var(--green);font-size:86px;margin:24px 0 12px;animation:recording-ring 2s ease-in-out infinite}
#recording-dialog .recording-orb::before{display:block;inset:0;border:20px solid #366f5d10;border-radius:50%}
@keyframes recording-ring{50%{box-shadow:0 0 0 12px #366f5d08}}
#recording-dialog .recording-status{font-size:20px;line-height:1.4;font-weight:600;color:var(--ink);text-align:center;max-width:100%}
#recording-dialog .recording-clock{font-size:clamp(54px,14vw,72px);font-weight:700;letter-spacing:1px;font-variant-numeric:tabular-nums;margin-top:18px}
#recording-dialog .waveform{width:min(360px,100%);height:80px;gap:5px;margin-top:24px;justify-content:center}
#recording-dialog .waveform i{flex:1;max-width:6px;border-radius:4px;background:var(--green)}
#recording-beat-pill{display:flex;align-items:center;gap:16px;border:1px solid var(--line);border-radius:999px;background:#fff;padding:10px 18px;font-size:16px;font-weight:700;color:#607467}
#recording-beat-dots{display:flex;gap:9px}
#recording-beat-dots i{width:14px;height:14px;background:#d6ded8;border-radius:50%}
#recording-beat-dots i.active{background:var(--green)}
#recording-dialog .recorder-actions{width:100%;margin-top:12px}
#recording-dialog #finish-btn{width:100%;min-height:54px;font-size:18px}
#recording-dialog #end-btn{min-height:44px}
#recording-dialog #recording-message{min-height:0;max-width:100%;font-size:14px;line-height:1.5}
#recording-dialog #recording-message:empty{display:none}
#feedback-dialog{width:min(640px,calc(100vw - 32px));max-width:640px;max-height:92dvh;padding:0;background:var(--paper);border-radius:18px;overflow:hidden}
#feedback-dialog>form{display:flex;flex-direction:column;max-height:92dvh;margin:0}
.feedback-scroll{overflow:auto;min-height:0;padding:24px;overscroll-behavior:contain}
#feedback-dialog .coach-avatar,#feedback-dialog>.eyebrow{display:none}
#feedback-title{font-size:24px;margin:0 0 20px}
.feedback-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0 0 20px}
.feedback-stat{min-width:0;padding:16px 12px;border-radius:16px;display:flex;flex-wrap:wrap;align-content:start;align-items:baseline;gap:4px}
.feedback-stat[data-metric=beat]{background:#e5f0e9}.feedback-stat[data-metric=tempo]{background:#f7f0d9}.feedback-stat[data-metric=pitch]{background:#eeeaf6}
.feedback-stat-label{display:block;width:100%;font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:1px;line-height:1.4;margin-bottom:4px;overflow-wrap:anywhere}
.feedback-stat-value{font-size:28px;font-weight:700;line-height:1.2;overflow-wrap:anywhere}
.feedback-stat-detail{font-size:14px;overflow-wrap:anywhere}
.feedback-stat.unavailable .feedback-stat-value{font-size:14px;line-height:1.4;font-weight:500}
.feedback-section{margin-bottom:20px}
.feedback-section p{font-size:18px;line-height:1.6;margin:0 0 8px}
.feedback-section strong{font-weight:700}
#feedback-dialog .feedback-actions{flex:none;display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:0;padding:16px 24px;background:var(--paper);border-top:1px solid var(--line)}
#feedback-dialog .feedback-actions .primary{flex:1;min-height:58px;font-size:18px}
#feedback-dialog .feedback-actions #feedback-talk{border:0;background:transparent;font-size:17px}
#feedback-dialog #feedback-retry:not([hidden]){width:100%}
#feedback-dialog .playback-controls{background:#fff;margin-top:24px;padding:16px}
#feedback-caption{display:block;font-size:13px;line-height:1.5;margin:20px 0 0}
#edit-feedback .feedback-section p{font-size:16px}
@media(max-width:760px){
 .tour-dialog{width:auto;max-width:465px}
 .tour-dialog h2{font-size:24px}.tour-dialog #tour-copy{font-size:17px}
 .tour-dialog{padding:20px}.tour-actions{gap:8px}.tour-actions .button{min-width:64px;padding-inline:12px}
 .recorder-card .metro-row{grid-template-columns:repeat(2,minmax(0,1fr))}
 .recorder-card #metro-tap{grid-column:1/-1;justify-self:stretch}
 .recorder-card #coach-effort{font-size:16px}
 .recorder-card .recording-status{font-size:18px}
 #feedback-dialog{width:100%;max-width:none;height:100dvh;max-height:100dvh;margin:0;border:0;border-radius:0}
 #feedback-dialog>form{height:100%;max-height:100dvh}
 .feedback-scroll{flex:1;padding:20px 16px}
 #feedback-dialog .feedback-actions{padding:14px 16px max(14px,env(safe-area-inset-bottom))}
 .feedback-stat{padding:14px 10px}.feedback-stat-value{font-size:25px}.feedback-stat-detail{font-size:13px}
 .feedback-section p{font-size:17px}
}
@media(prefers-reduced-motion:reduce){#recording-dialog .recording-orb{animation:none}}

#feedback-body,#edit-feedback{font-family:var(--font);color:var(--ink)}
#recording-dialog #end-btn{font-family:var(--font)}

.tour-dialog button,#recording-dialog button,#feedback-dialog button{font-family:var(--font)}

.recording-note{display:block;width:1em;height:1em}

/* Keep each measured issue beside its practice action and replay control. */
.feedback-section p{padding:16px 0;border-bottom:1px solid var(--line);overflow-wrap:break-word}
.feedback-section p:last-child{border-bottom:0}
.finding-jump{white-space:nowrap;margin-inline-start:6px}
.feedback-section h3{font-size:18px;margin:0 0 8px}
