:root{
  color-scheme:light;
  --rr-blue:#0071e3;
  --rr-blue-dark:#0058b8;
  --rr-blue-soft:#eff6ff;
  --rr-bg:#f5f5f7;
  --rr-surface:#ffffff;
  --rr-text:#1d1d1f;
  --rr-muted:#6e6e73;
  --rr-line:#d2d2d7;
  --rr-success:#1d8a4e;
  --rr-danger:#b42318;
  --rr-danger-soft:#fef3f2;
  --rr-stage:#0b0c0f;
  --rr-stage-card:#17181d;
  --rr-stage-line:#30323a;
  --rr-radius:18px;
  --rr-shadow:0 1px 3px rgba(16,24,40,.06);
}
html{background:var(--rr-bg);scroll-behavior:smooth}
body{
  background:var(--rr-bg);color:var(--rr-text);font-family:-apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo","Noto Sans KR",sans-serif;
  display:block;min-height:100vh;padding:0 0 42px;line-height:1.65;word-break:keep-all;overflow-wrap:break-word;
}
.appHeader{background:linear-gradient(180deg,#fff 0%,#f5f5f7 100%);border-bottom:1px solid rgba(0,0,0,.06)}
.appHeaderInner{width:min(100%,800px);margin:0 auto;padding:24px 20px 18px}
.appEyebrow{display:block;color:var(--rr-blue);font-size:12px;font-weight:750;letter-spacing:.08em;margin-bottom:4px}
.appHeader h1{color:var(--rr-text);font-size:clamp(23px,5vw,32px);line-height:1.18;letter-spacing:-.025em;margin:0;font-weight:750}
.appHeader .sub{color:var(--rr-muted);font-size:14px;line-height:1.55;text-align:left;margin:7px 0 0}
.tabs{
  position:sticky;top:0;z-index:40;width:100%;margin:0;padding:9px max(12px,calc((100% - 800px)/2 + 20px));
  gap:5px;justify-content:flex-start;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;
  background:rgba(245,245,247,.88);border-bottom:1px solid rgba(0,0,0,.07);
  backdrop-filter:saturate(180%) blur(20px);-webkit-backdrop-filter:saturate(180%) blur(20px);
}
.tabs::-webkit-scrollbar{display:none}
.tab{
  min-height:44px;padding:10px 15px;border-radius:12px;border:1px solid transparent;background:transparent;color:#515154;
  font-size:14px;font-weight:650;white-space:nowrap;flex:0 0 auto;transition:background .16s,color .16s,border-color .16s,box-shadow .16s;
}
.tab:hover{background:rgba(255,255,255,.72)}
.tab.on{background:#fff;color:var(--rr-blue);border-color:rgba(0,113,227,.18);box-shadow:0 1px 3px rgba(0,0,0,.07)}
.tab.stop{margin-left:auto;color:var(--rr-danger);background:var(--rr-danger-soft);border-color:#fecdca}
.wrap{width:min(calc(100% - 24px),760px);max-width:none;margin:20px auto 0;gap:16px}
.sectionHeading{padding:4px 4px 0}
.sectionHeading .eyebrow{color:var(--rr-blue-dark);font-size:12px;font-weight:750;letter-spacing:.04em;margin:0 0 3px}
.sectionHeading h2{font-size:clamp(24px,5vw,32px);line-height:1.2;letter-spacing:-.025em;margin:0;color:var(--rr-text)}
.sectionHeading p{color:var(--rr-muted);font-size:15px;line-height:1.55;margin:7px 0 0}
.card{
  background:var(--rr-surface);border:1px solid var(--rr-line);border-radius:var(--rr-radius);padding:22px 24px;
  box-shadow:var(--rr-shadow);color:var(--rr-text);
}
.label{font-size:13px;color:var(--rr-muted);font-weight:650;margin-bottom:10px;align-items:center}
.label>span:last-child{font-weight:550}
.hint{font-size:14px;color:var(--rr-muted);line-height:1.7}
.hint b{color:var(--rr-text)}
button,input,select,textarea{font:inherit}
button{touch-action:manipulation}
.pfBtn,#monStartBtn{
  min-height:44px;border-radius:980px;padding:11px 20px;border:1px solid transparent;font-size:15px;font-weight:700;box-shadow:none;
}
#monStartBtn,.pfBtn.go,.pfBtn.next{background:var(--rr-blue);color:#fff}
#monStartBtn:hover,.pfBtn.go:hover,.pfBtn.next:hover{background:var(--rr-blue-dark)}
.pfBtn.redo{background:#fff;color:var(--rr-text);border-color:var(--rr-line)}
.pfBtn:disabled{opacity:.42;cursor:not-allowed}
.ptRow{gap:7px;margin-bottom:12px}
.pt{min-height:38px;padding:7px 13px;border-radius:980px;background:#fff;border:1px solid var(--rr-line);color:var(--rr-muted);font-size:13px;font-weight:650}
.pt.on{background:var(--rr-blue-soft);border-color:var(--rr-blue);color:var(--rr-blue)}
.privacy{color:#245a8d;background:#eff6ff;border:1px solid #bfdbfe;border-radius:12px;padding:10px 12px}
.privacyNotice{display:flex;gap:8px;align-items:flex-start;margin:8px 0 4px;padding:10px 12px;border-radius:12px;background:#f7f9fc;color:#57575b;font-size:13px;line-height:1.55}
.privacyNotice strong{color:var(--rr-text)}
#ui:not(.is-running)>.monitorLive{display:none}
.scoreViewport{border:1px solid var(--rr-line);border-radius:14px;background:#fffdf7}
#scoreCv{background:#fffdf7}
.songMeta{margin-bottom:12px}
#songTitle{font-size:20px;color:var(--rr-text);letter-spacing:-.02em}
#songProgress{font-size:13px;color:var(--rr-blue)}
input[type="range"]{accent-color:var(--rr-blue)}
.stepDot span{width:30px;height:30px;background:#e8e8ed;color:var(--rr-muted);font-size:13px}
.stepDot span.cur{background:var(--rr-blue);color:#fff}.stepDot span.done{background:var(--rr-success);color:#fff}
/* 소개: 밝은 정보 카드 + 하나의 어두운 브랜드 쇼케이스 */
.teacherCard,.noticeCard{background:#fff;border-color:var(--rr-line)}
.teacherAvatar{width:76px;height:76px;flex-basis:76px;border:0;box-shadow:0 4px 18px rgba(0,0,0,.12)}
.teacherName{font-size:20px;color:var(--rr-text);letter-spacing:-.02em}
.teacherBody,.teacherList li,.noticeBody{font-size:15px;color:#424245;line-height:1.72}
.teacherList{margin-top:16px;padding-left:21px}.teacherList li{margin-bottom:7px}
.albumCard{background:radial-gradient(120% 140% at 20% 0%,#292b33 0%,#0b0c0f 76%);border-color:rgba(255,255,255,.08);box-shadow:0 16px 44px rgba(8,10,18,.2);color:#fff}
.albumCard .label{color:#b8bdc8}.albumCard .albumTitle{color:#fff;font-size:20px;line-height:1.3}.albumCard .albumBody{color:#d2d5dc;font-size:14px}.albumCard .albumCredit{color:#9ea4b0;font-size:12px}
.albumShowcase{gap:20px;align-items:center}.albumCovers{gap:12px}
#diamond3d{position:relative;background:url('./refund119-diamond-poster.png') center/69px auto no-repeat}
#diamond3d canvas{position:relative;z-index:1;opacity:0;transition:opacity .25s ease}
#diamond3d.is3d{background:none}
#diamond3d.is3d canvas{opacity:1}
.noticeTitle{font-size:21px;color:var(--rr-text);letter-spacing:-.02em}
.noticeList{margin:12px 0 14px}.noticeItem{font-size:15px;color:#424245;border-color:#e8e8ed;padding:8px 0}.noticeItem b{color:var(--rr-blue)}
.noticeImportant{display:flex;flex-direction:column;gap:3px;background:#fff8db;border-color:#f0d568;color:#5b4300;font-size:14px;font-weight:600;line-height:1.55;border-radius:14px;padding:12px 14px}
.noticeImportant strong{color:#8a6100;font-size:14px;font-weight:800}
/* 레슨: 에디토리얼 리듬 */
.lessonHero{background:linear-gradient(135deg,#eff6ff,#f7fbff 55%,#fff);border-color:#bfdbfe;padding:28px}
.lessonDate{font-size:13px;color:var(--rr-blue)}
.lessonTitle{font-size:clamp(26px,5vw,36px);color:var(--rr-text);letter-spacing:-.03em}
.lessonLead{font-size:16px;color:#424245;line-height:1.72}
.lessonQuote{border-left:4px solid var(--rr-blue);background:#fff;color:#303034;font-size:15px;line-height:1.7;padding:13px 15px;border-radius:0 12px 12px 0}
.lessonChip{font-size:13px;color:var(--rr-blue);background:#fff;border-color:#bfdbfe;padding:7px 11px}
.lessonSection{padding:25px 27px}
.lessonSection h2{font-size:21px;color:var(--rr-text);line-height:1.35;letter-spacing:-.02em;margin-bottom:12px}
.lessonSection h3{font-size:17px;color:var(--rr-text)}
.lessonSection p,.lessonSection li{font-size:15px;color:#424245;line-height:1.78}
.lessonSection li{margin-bottom:7px}.lessonSection ul,.lessonSection ol{padding-left:22px}
.lessonTable{font-size:14px;color:#424245}.lessonTable th,.lessonTable td{border-color:#e8e8ed;padding:13px 10px;line-height:1.65}.lessonTable th{font-size:13px;color:var(--rr-text);background:#f7f7f9}
/* 분석·훈련은 어두운 무대 */
#ui>.card:not(#monStartCard):not(.hint),#tr>.card:not(.hint),#pf>.card:not(.hint){
  background:var(--rr-stage-card);border-color:var(--rr-stage-line);color:#f5f5f7;box-shadow:0 10px 30px rgba(10,12,20,.12)
}
#ui>.card:not(#monStartCard):not(.hint) .label,#tr>.card:not(.hint) .label,#pf>.card:not(.hint) .label{color:#aeb2bd}
#ui>.card:not(#monStartCard):not(.hint) .hint,#tr>.card:not(.hint) .hint,#pf>.card:not(.hint) .hint{color:#aeb2bd}
#ui>.card:not(#monStartCard):not(.hint) .pt,#tr>.card:not(.hint) .pt,#pf>.card:not(.hint) .pt{background:#202229;border-color:#3a3d47;color:#c7cad2}
#ui>.card:not(#monStartCard):not(.hint) .pt.on{background:#0c3d70;border-color:#4da3ff;color:#d9ecff}
#bigStatus,#noteBox .v,#diagMain,#trTitle,#pfTitle{color:#fff}
#detail,#voiceBadge,#bandInfo,#pfHz{color:#aeb2bd}
#diagRx,#trInst,#pfInst{color:#d7dae0}
#trStat,#pfStat{color:#7dbdff!important}
#spec,#hist{background:#0a0b0e}
/* 일관된 포커스와 키보드 탐색 */
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,[tabindex]:focus-visible{outline:3px solid var(--rr-blue);outline-offset:2px}
@media(max-width:700px){
  .appHeaderInner{padding:20px 16px 15px}
  .tabs{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));overflow:visible;padding:8px 12px;gap:5px}
  .tab{width:100%;padding:9px 7px;font-size:13px;min-width:0}
  .tab.stop{grid-column:1/-1;margin:0}
  .wrap{width:min(calc(100% - 20px),760px);margin-top:16px;gap:13px}
  .card{padding:19px 18px;border-radius:16px}
  .sectionHeading{padding-inline:2px}
  .albumShowcase{flex-direction:column;align-items:flex-start;gap:14px}
  .albumCovers{align-self:flex-start}
  .teacherProfile{align-items:center}
  .lessonHero{padding:23px 20px}.lessonSection{padding:21px 19px}
  .lessonTable thead{display:none}
  .lessonTable,.lessonTable tbody,.lessonTable tr,.lessonTable td{display:block;width:100%}
  .lessonTable tr{border:1px solid #e4e7ec;border-radius:13px;overflow:hidden;margin-bottom:12px;background:#fff}
  .lessonTable td{border:0;padding:12px 14px}
  .lessonTable td:first-child{background:#f1f7ff;color:var(--rr-blue);font-weight:750;border-bottom:1px solid #dbeafe}
  .noticeItem{align-items:flex-start}.noticeItem span{text-align:right}
  .pfBtns{flex-wrap:wrap}.pfBtn{flex:1 1 130px}
}
@media(max-width:380px){.tab{font-size:12px}.teacherAvatar{width:68px;height:68px;flex-basis:68px}.teacherName{font-size:18px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
