/* ===================== 시안 C · 밝은 테마 · 왼쪽 세로 배치 (2026-11-23) ===================== */
.screen {
  --bg: #f5f5f7; --bg-2: #ffffff; --surface: #ffffff; --surface-2: #fbfbfd;
  --line: rgba(0,0,0,0.08); --line-2: rgba(0,0,0,0.14);
  --text: #1d1d1f; --text-2: #424245; --muted: #6e6e73; --faint: #a1a1a6;
  --accent: #0b7d93; --accent-2: #096b7e; --accent-bg: rgba(11,125,147,0.08);
  --ok: #1e8a55; --ok-bg: rgba(30,138,85,0.08); --warn: #a4670a; --warn-bg: rgba(164,103,10,0.08); --ng: #c2392d; --ng-bg: rgba(194,57,45,0.07);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif;
  color: var(--text); font-family: var(--font); background: var(--bg);
}
.screen .btn, .screen button.btn, .screen .debrief button { background: #fff; border-color: var(--line-2); color: var(--text); }
.screen .btn:hover, .screen .debrief button:hover { background: #f2f2f4; border-color: rgba(0,0,0,0.22); }
.screen .btn.primary, .screen button.primary, .screen .debrief button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.screen .btn.primary:hover, .screen button.primary:hover, .screen .debrief button.primary:hover { background: var(--accent-2); border-color: var(--accent-2); }
.screen .btn.ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.screen .btn.ghost:hover { background: rgba(0,0,0,0.04); }
.screen .btn.primary kbd { color: #fff; border-color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.12); }
.screen input { background: #fff; color: var(--text); border-color: var(--line-2); }
.screen .sw { background: #d2d2d7; }
.screen .sw::after { background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,0.2); }
.screen::-webkit-scrollbar-thumb, .cCases::-webkit-scrollbar-thumb, .rdSide::-webkit-scrollbar-thumb { background: #c7c7cc; border-radius: 4px; }
.cCases::-webkit-scrollbar { width: 6px; }
.btn.lg { min-height: 48px; padding: 12px 26px; font-size: 15.5px; border-radius: 980px; }
.btn.sm { min-height: 34px; padding: 6px 12px; font-size: 13px; }
.screen .topBar { background: rgba(255,255,255,0.82); border-bottom-color: var(--line); }
.screen .wmDot { border-color: var(--accent); background: radial-gradient(circle, rgba(11,125,147,0.45) 0 30%, transparent 32%); }

#menu { background: var(--bg); overflow: hidden; }
.cShell { display: grid; grid-template-columns: 380px minmax(0, 1fr); height: 100vh; }
.cSide { display: flex; flex-direction: column; min-height: 0; background: rgba(255,255,255,0.9); border-right: 1px solid var(--line); }
.cBrand { padding: 30px 28px 22px; }
.cBrand .wordmark { font-size: 16px; }
.cBrandSub { margin: 6px 0 0 24px; font-size: 12.5px; color: var(--muted); }
.cSideBlock { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; padding: 4px 16px 0; }
.cLabel { font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 10px 12px; }

.cTracks { display: flex; flex-direction: column; gap: 4px; }
.cTrack { display: grid; grid-template-columns: 34px 1fr auto 14px; align-items: center; gap: 10px; width: 100%; padding: 16px 12px; text-align: left;
  background: transparent; border: 0; border-radius: 12px; color: var(--text); transition: background .15s; }
.cTrack:hover { background: rgba(0,0,0,0.04); }
.cTrack:focus-visible, .cCase:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.ctNo { font-family: var(--mono); font-size: 13px; color: var(--accent); align-self: start; padding-top: 3px; }
.ctBody { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ctName { font-size: 18px; font-weight: 650; letter-spacing: -0.02em; }
.ctEn { font-size: 12px; color: var(--muted); }
.ctSub { font-size: 13px; color: var(--text-2); margin-top: 4px; line-height: 1.45; }
.ctCount { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ctChev { font-size: 22px; line-height: 1; color: var(--faint); }

.cBack { align-self: flex-start; margin: 2px 0 6px 4px; padding: 6px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--accent); font-size: 14px; font-weight: 550; }
.cBack:hover { background: var(--accent-bg); }
.cTrackHead { padding: 0 12px 12px; border-bottom: 1px solid var(--line); }
.cTrackHead .cLabel { padding: 6px 0 4px; }
.cTrackHead h2 { margin: 0 0 6px; font-size: 24px; letter-spacing: -0.025em; }
.cTrackHead p { margin: 0; font-size: 13px; line-height: 1.55; color: var(--text-2); }
.cCases { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 8px 0 12px; display: flex; flex-direction: column; gap: 2px; }
.cCase { display: grid; grid-template-columns: 30px 1fr; gap: 8px; width: 100%; padding: 11px 12px; text-align: left; border: 0; border-radius: 10px; background: transparent; color: var(--text); }
.cCase:hover { background: rgba(0,0,0,0.04); }
.cCase.on { background: var(--accent-bg); }
.cCase.on .ccNo { color: var(--accent); }
.ccNo { font-family: var(--mono); font-size: 12px; color: var(--faint); padding-top: 2px; }
.ccBody { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ccTitle { font-size: 14.5px; font-weight: 600; line-height: 1.4; letter-spacing: -0.01em; }
.ccMeta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.cTagReal, .cTagSrc { font-size: 10.5px; font-weight: 650; letter-spacing: 0.04em; padding: 1px 6px; border-radius: 4px; }
.cTagReal { color: #fff; background: var(--accent); }
.cTagSrc { color: var(--text-2); background: rgba(0,0,0,0.06); }

.cSideFoot { padding: 12px 16px 18px; border-top: 1px solid var(--line); }
.cSideFoot .settings { border: 0; background: transparent; }
.cSideFoot .settings summary { padding: 8px 12px; border-radius: 10px; }
.cSideFoot .settings summary:hover { background: rgba(0,0,0,0.04); }
.cSideFoot .sumTitle { flex: 1; }
.cSideFoot .sumMeta { display: block; padding: 0 12px 4px; font-size: 11.5px; }
.cSideFoot .setBody { display: grid; grid-template-columns: 1fr; gap: 14px; padding: 10px 12px 4px; border-top: 0; max-height: 46vh; overflow-y: auto; }

.cMain { position: relative; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; }
.cPane { flex: 1 0 auto; padding: clamp(40px, 7vh, 88px) clamp(36px, 5vw, 96px) 24px; }
.cHero { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(380px, 1.1fr); gap: clamp(24px, 4vw, 72px); align-items: center; }
.cEyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.cTitle { margin: 14px 0 10px; font-size: clamp(42px, 4.4vw, 68px); line-height: 1.04; letter-spacing: -0.04em; font-weight: 700; color: var(--text); }
.cTag { margin: 0 0 14px; font-size: clamp(18px, 1.5vw, 22px); font-weight: 500; letter-spacing: -0.015em; color: var(--text); }
.cIntro { margin: 0 0 30px; max-width: 540px; font-size: 16px; line-height: 1.7; color: var(--text-2); }
.cCta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.cCtaNote { font-size: 13px; color: var(--muted); }

.cMap { margin: 0; }
.cMap svg { width: 100%; height: auto; display: block; }
.cMap figcaption { margin-top: 6px; text-align: center; font-size: 11.5px; color: var(--faint); letter-spacing: 0.02em; }
.mTube .tOut { fill: none; stroke: #c9ced6; stroke-width: 30; stroke-linecap: round; }
.mTube .tIn { fill: none; stroke: #ffffff; stroke-width: 27; stroke-linecap: round; }
.mTube .sBody { fill: #ffffff; stroke: #c9ced6; stroke-width: 1.5; }
.mTube .tSeam { stroke: #ffffff; stroke-width: 4; }
.mTube .tPyl { stroke: #c9ced6; stroke-width: 1.5; stroke-dasharray: 2 3; }
.mRoute { fill: none; stroke: rgba(11,125,147,0.3); stroke-width: 1.5; stroke-dasharray: 3 5; }
.mTrail { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 60 1400; animation: cTrail 16s linear infinite; }
@keyframes cTrail { from { stroke-dashoffset: 60; } to { stroke-dashoffset: -1400; } }
.mDot { fill: var(--accent); stroke: #fff; stroke-width: 2; }
.mPts circle { fill: var(--accent); }
.mPts circle.hollow { fill: #fff; stroke: var(--accent); stroke-width: 1.5; }
.mPts line { stroke: #b5bac2; stroke-width: 1; }
.mPts text { font-family: var(--font); font-size: 13.5px; fill: #515154; letter-spacing: -0.01em; }
@media (prefers-reduced-motion: reduce) { .mTrail { animation: none; } .mDot { display: none; } }

.cStats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(28px, 5vh, 56px); padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cStats div { padding: 0 24px; }
.cStats div + div { border-left: 1px solid var(--line); }
.cStats div:first-child { padding-left: 0; }
.cStats b { display: block; font-size: 34px; font-weight: 650; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.cStats span { font-size: 13px; color: var(--muted); }
.cMeta { display: grid; gap: 8px; margin: 24px 0 0; }
.cMeta div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; font-size: 13px; }
.cMeta dt { color: var(--muted); }
.cMeta dd { margin: 0; color: var(--text-2); }

.cPreview { max-width: 760px; }
.cpTop { display: flex; align-items: center; gap: 10px; }
.cpKind { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.cpLevel { font-size: 12px; font-weight: 600; color: var(--text-2); background: rgba(0,0,0,0.05); border-radius: 980px; padding: 2px 10px; }
.cpTitle { margin: 14px 0 16px; font-size: clamp(32px, 3.2vw, 48px); line-height: 1.12; letter-spacing: -0.035em; font-weight: 700; }
.cpBlurb { margin: 0 0 22px; font-size: 17px; line-height: 1.7; color: var(--text-2); max-width: 640px; }
.cpPt { display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 16px 18px; margin: 0 0 22px; border-radius: 14px; background: #fff; border: 1px solid var(--line); font-size: 14.5px; line-height: 1.6; color: var(--text); }
.cpPt span { color: var(--muted); font-size: 13px; }
.cpFacts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 34px; }
.cpFacts div { padding: 6px 12px; border-radius: 980px; background: #fff; border: 1px solid var(--line); font-size: 13px; color: var(--text-2); }
.cpFacts dd { margin: 0; }
.cpAct { display: flex; align-items: center; gap: 16px; }
.cpHint { font-size: 12.5px; color: var(--muted); }
.cFoot { padding: 16px clamp(36px, 5vw, 96px) 22px; font-size: 12px; color: var(--muted); }

@media (max-width: 1100px) { .cShell { grid-template-columns: 320px minmax(0,1fr); } .cHero { grid-template-columns: 1fr; } .cMap { max-width: 460px; } }

/* 결과·로딩·실사 판독 화면(밝은 테마 보정). 사진 영역(.rdStage)은 검정 유지 */
.screen .debrief .ring { background: conic-gradient(var(--rc) calc(var(--p) * 1%), rgba(0,0,0,0.07) 0); }
.screen .bar { background: rgba(0,0,0,0.07); }
.screen .chip { background: #fff; }
.screen .chip.ng { color: var(--ng); }
.screen .noteList li { color: #6b4a05; border-color: rgba(164,103,10,0.25); }
.screen .lesionRes { background: #fff; }
.screen .finalTxt { color: var(--text); }
.screen .badge.na { background: rgba(0,0,0,0.03); }
.screen .refRow figure { background: #fff; }
.reading .rdSide { background: #fff; }
.reading .rdOpt { background: #fff; color: var(--text); }
.reading .rdOpt:hover:not([disabled]) { background: #f7f7f9; }
.reading .rdWhy { background: #f5f5f7; }
.cpFlow { list-style: none; display: flex; gap: 0; margin: 0 0 26px; padding: 0; counter-reset: f; max-width: 640px; }
.cpFlow li { flex: 1; display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); font-size: 14px; color: var(--text); }
.cpFlow li + li { border-left: 0; }
.cpFlow li:first-child { border-radius: 14px 0 0 14px; }
.cpFlow li:last-child { border-radius: 0 14px 14px 0; }
.cpFlow li span { flex: none; width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 650; color: var(--accent); background: var(--accent-bg); }
/* 위 = 한 번의 획(스우시형 상징) */
.mEso { fill: none; stroke: #0b7d93; stroke-opacity: 0.45; stroke-width: 3; stroke-linecap: round; }
.mStroke { fill: url(#cStroke); }
.mSheen { fill: url(#cSheen); pointer-events: none; }
.mRoute { fill: none; stroke: rgba(255,255,255,0.75); stroke-width: 1.4; stroke-dasharray: 2 6; }
.mDot { fill: #ffffff; stroke: #065a6b; stroke-width: 1.5; }
.mPts circle { fill: #fff; stroke: #0b7d93; stroke-width: 1.5; }
.mPts circle.w { fill: #fff; }

/* 상세 화면: 시안 B의 해부 도판(실제 위 모양·검사 경로 번호) */
.cPlate { --ink: #1d1d1f; }
.plate { margin: 0; display: flex; flex-direction: column; align-items: center; }
.plateSvg { display: block; width: 100%; height: auto; max-height: calc(100vh - 300px); min-height: 330px; overflow: visible; font-family: var(--font); }
.plateCap { align-self: stretch; display: grid; grid-template-columns: auto 1fr; gap: 12px; margin-top: 6px; padding-top: 10px;
  border-top: 1px solid var(--line); font-size: 12px; line-height: 1.55; color: var(--muted); }
.plateCap .fig { font-family: var(--mono); font-size: 11.5px; color: var(--ink); font-weight: 600; }
.pCorner path { fill: none; stroke: #b9bcc3; stroke-width: 1; }
.pFill { fill: #f4f5f7; stroke: none; }
.pLine path, .pLine circle { fill: none; stroke: #2b2d33; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.pLine .pRing { stroke-width: 3.2; stroke-linecap: butt; }
.pLine .pCut { stroke: #9a9da5; stroke-width: 1; stroke-dasharray: 2 3; }
.pLine .pZ { stroke: #8b8f98; stroke-width: 1; }
.pLine .pPapilla { stroke-width: 1.1; fill: #fff; }
.pRugae path { fill: none; stroke: #c8ccd3; stroke-width: 0.9; stroke-linecap: round; }
.pAnat text { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.12em; fill: #6b6b72; }
.pRoute { fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.pRetro { fill: none; stroke: var(--accent); stroke-width: 1.4; stroke-dasharray: 4 4; stroke-linecap: round; opacity: 0.9; }
.pRetroHead { fill: none; stroke: var(--accent); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.pTip { fill: var(--accent); }
.pLead path { fill: none; stroke: #8b8f98; stroke-width: 0.8; }
.pSt circle { fill: #fff; stroke: var(--accent); stroke-width: 1.3; }
.pSt text { font-family: var(--mono); font-size: 10.5px; font-weight: 600; text-anchor: middle; fill: var(--accent); }
.pSt .r circle { stroke-dasharray: 2.5 2; }
.pLbl text { font-size: 13px; font-weight: 600; fill: #1d1d1f; letter-spacing: -0.01em; }
.pLbl .en { font-family: var(--mono); font-size: 10px; font-weight: 400; fill: #5f6168; letter-spacing: 0.02em; }
.pOrient path { fill: none; stroke: #8b8f98; stroke-width: 1; stroke-linecap: round; }
.pOrient text { font-size: 11px; fill: #5f6168; }
/* 절제된 움직임: 진입 시 경로가 한 번 그려지고, 정거장 표지가 순서대로 나타난다 */
@media (prefers-reduced-motion: no-preference) {
  .pRoute { animation: pDraw 2.4s cubic-bezier(.45,.05,.25,1) .2s both; }
  .pRetro, .pRetroHead { animation: pFade .6s ease 2.3s both; }
  .pTip { animation: pFade .4s ease 2.5s both; }
  .pSt g { animation: pFade .5s ease both; animation-delay: calc(.35s + var(--i) * .26s); }
  @keyframes pDraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
  @keyframes pFade { from { opacity: 0; } to { opacity: 1; } }
}
.cTrackGrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.cTrackGrid .plateSvg { max-height: calc(100vh - 220px); min-height: 300px; }
@media (max-width: 1250px) { .cTrackGrid { grid-template-columns: 1fr; } .cTrackGrid .cPlate { max-width: 520px; } }

/* ---------- 증례 토의 (v0.1, 2026-11-23) ---------- */
.discuss .dsSteps { display: flex; gap: 4px; list-style: none; margin: 0 12px 0 0; padding: 0; font-size: 12px; color: var(--muted); }
.discuss .dsSteps li { padding: 4px 10px; border-radius: 980px; background: rgba(0,0,0,0.04); }
.discuss .dsSteps li.done { color: var(--accent); background: var(--accent-bg); }
.discuss .dsSteps li.on { color: #fff; background: var(--accent); }
.dsBody { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 520px; }
.dsBody.wide { grid-template-columns: minmax(0, 0.8fr) minmax(560px, 1.2fr); }
.dsStage { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 18px; background: #000; min-height: 0; }
.dsStage .rdMon { flex: 1 1 auto; width: 100%; min-height: 0; display: flex; align-items: center; justify-content: center; }
.dsStage .rdImgWrap img { max-width: 100%; max-height: calc(100vh - 60px - 160px); }
.dsCap { color: rgba(255,255,255,0.7); font-size: 13px; text-align: center; max-width: 80%; line-height: 1.5; }
.dsThumbs { display: flex; gap: 8px; }
.dsThumb { padding: 0; border: 2px solid transparent; border-radius: 6px; background: none; }
.dsThumb.on { border-color: var(--accent); }
.dsThumb img { height: 56px; display: block; border-radius: 4px; }
.dsSide { background: #fff; border-left: 1px solid var(--line); overflow-y: auto; min-height: 0; }
.dsBlock { padding: 26px 28px 30px; }
.dsBlock h2 { font-size: 21px; margin: 8px 0 10px; letter-spacing: -0.02em; }
.dsBlock h3 { font-size: 15px; margin: 24px 0 10px; }
.dsPt { font-size: 15.5px; line-height: 1.7; padding: 16px 18px; border-radius: 14px; background: var(--bg); margin: 0 0 14px; }
.dsMeta { display: grid; grid-template-columns: 90px 1fr; gap: 6px 12px; font-size: 13.5px; margin: 16px 0 22px; }
.dsMeta span { color: var(--muted); }
.wideBtn { width: 100%; margin-top: 12px; }
.dsForm { display: grid; gap: 10px; margin: 14px 0 6px; }
.dsField { display: grid; gap: 4px; font-size: 12.5px; color: var(--muted); }
.dsField input, .dsField textarea { width: 100%; font: inherit; font-size: 14px; color: var(--text); background: #fff; border: 1px solid var(--line-2); border-radius: 10px; padding: 9px 12px; resize: vertical; }
.dsField input:focus, .dsField textarea:focus, .dsInput textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-bg); }
.dsQs { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 14px; }
.dsQq { font-size: 14px; font-weight: 600; margin-bottom: 6px; line-height: 1.5; }
.dsOpt { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; line-height: 1.5; padding: 5px 2px; color: var(--text-2); cursor: pointer; }
.dsOpt input { margin-top: 3px; }
.dsChatBox { display: flex; flex-direction: column; height: 100%; box-sizing: border-box; }
.dsReportMini { font-size: 12.5px; color: var(--text-2); background: var(--bg); border-radius: 10px; padding: 8px 12px; margin: 10px 0; }
.dsChat { flex: 1 1 auto; min-height: 220px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 6px 2px; }
.dsMsg { max-width: 88%; }
.dsMsg .dsWho { font-size: 11.5px; color: var(--muted); margin: 0 0 3px 4px; }
.dsMsg .dsTxt { padding: 10px 14px; border-radius: 16px; font-size: 14px; line-height: 1.6; }
.dsMsg.peer .dsTxt { background: #eef3f6; border-top-left-radius: 4px; }
.dsMsg.expert .dsTxt { background: #e8f3f5; border: 1px solid rgba(11,125,147,0.25); border-top-left-radius: 4px; }
.dsMsg.me { align-self: flex-end; }
.dsMsg.me .dsWho { text-align: right; margin-right: 4px; }
.dsMsg.me .dsTxt { background: var(--accent); color: #fff; border-top-right-radius: 4px; }
.dsMsg.typing .dsTxt { color: var(--muted); }
.dsInput { display: flex; gap: 8px; margin-top: 10px; }
.dsInput textarea { flex: 1; font: inherit; font-size: 14px; border: 1px solid var(--line-2); border-radius: 12px; padding: 9px 12px; resize: none; }
.dsFinal { font-size: 15.5px; line-height: 1.7; font-weight: 600; }
.dsScores { display: flex; gap: 18px; font-size: 13.5px; color: var(--muted); margin: 10px 0; }
.dsScores b { color: var(--text); font-size: 17px; margin-left: 4px; }
.dsRb { line-height: 2; }
.dsAiGrade { margin: 14px 0; padding: 14px 16px; border-radius: 12px; background: #e8f3f5; font-size: 14px; line-height: 1.7; }
.dsCmp { width: 100%; border-collapse: collapse; font-size: 13px; }
.dsCmp th, .dsCmp td { border-top: 1px solid var(--line); padding: 8px 8px; vertical-align: top; text-align: left; line-height: 1.5; }
.dsCmp th { color: var(--muted); font-weight: 600; width: 84px; }
.dsCmp td.dsModel { background: var(--accent-bg); }
.dsPeerRep { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; font-size: 13.5px; }
.screen select { font: inherit; padding: 8px 10px; border: 1px solid var(--line-2); border-radius: 8px; background: #fff; color: var(--text); width: 100%; }
@media (max-width: 1150px) { .dsBody, .dsBody.wide { grid-template-columns: 1fr; grid-template-rows: 45vh auto; } }

/* ---------- 실사 삽입(초심자 교실, realnav.js) ---------- */
.rnBody { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 360px; }
.rnStage { display: flex; flex-direction: column; background: #000; min-height: 0; }
.rnMon { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.rnView { position: relative; height: 100%; aspect-ratio: 1350 / 1080; max-width: 100%; display: flex; align-items: center; justify-content: center; transition: transform 60ms linear; will-change: transform; }
.rnView img { width: 100%; height: 100%; object-fit: contain; display: block; }
.rnRed { position: absolute; inset: 0; clip-path: polygon(12% 0, 88% 0, 100% 16%, 100% 84%, 88% 100%, 12% 100%, 0 84%, 0 16%); background: radial-gradient(circle, rgba(190, 40, 30, .95) 30%, rgba(120, 10, 10, .95) 70%); opacity: 0; pointer-events: none; }
.rnOsd { position: absolute; left: 18px; top: 14px; color: #fff; font: 600 13px/1.4 var(--font, system-ui); letter-spacing: .02em; opacity: .85; }
.rnLoad { position: absolute; right: 18px; top: 14px; color: #fff; font-size: 12px; opacity: .7; }
.rnCmd { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; padding: 12px 20px 16px; color: #fff; background: #0b0b0c; min-height: 64px; }
.rnCmd .rnStep { font-size: 12px; color: #9aa0a6; letter-spacing: .04em; }
.rnCmd b { font-size: 18px; font-weight: 600; }
.rnCmd .rnSay { font-size: 15px; color: #5fd3e6; }
.rnCmd .rnHint { flex-basis: 100%; font-size: 14px; color: #ffd27a; }
.rnTime { font-variant-numeric: tabular-nums; color: var(--muted, #6e6e73); margin-right: 8px; }
.rnSide { background: #fff; border-left: 1px solid var(--line); overflow-y: auto; min-height: 0; padding: 18px 20px; display: flex; flex-direction: column; gap: 18px; }
.rnSegs { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; font-size: 14px; color: #86868b; }
.rnSegs li { padding: 5px 10px; border-radius: 8px; }
.rnSegs li.done { color: #1d1d1f; }
.rnSegs li.done::before { content: '✓ '; color: #0a7f96; }
.rnSegs li.on { background: #e8f4f6; color: #0a7f96; font-weight: 600; }
.rnPh { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.rnChip { font: 600 12px/1 var(--font, system-ui); padding: 6px 7px; border-radius: 6px; background: #f0f0f2; color: #86868b; min-width: 30px; text-align: center; }
.rnChip.ok { background: #0a7f96; color: #fff; }
.rnKeys { font-size: 13px; color: #515154; display: grid; gap: 6px; }
.rnKeys kbd { display: inline-block; min-width: 20px; padding: 2px 5px; margin-right: 2px; border: 1px solid #d2d2d7; border-bottom-width: 2px; border-radius: 5px; background: #fafafa; font: 600 11px/1.3 var(--font, system-ui); text-align: center; }
@media (max-width: 1100px) { .rnBody { grid-template-columns: 1fr; grid-template-rows: 60vh auto; } }
/* 실사 탐색 v0.2: 위치·관찰 범위 지도, 길게 누르기 표시, 장면 전환 */
.rnView .rnFade { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.rnMap { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; font-size: 14px; color: #515154; }
.rnMap li { display: grid; grid-template-columns: 1fr 70px 38px; align-items: center; gap: 8px; padding: 5px 10px; border-radius: 8px; }
.rnMap li > span:first-child { grid-column: 1; }
.rnMap li small { color: #86868b; font-size: 11px; }
.rnMap li.on { background: #e8f4f6; color: #0a7f96; font-weight: 600; }
.rnMap em { display: block; height: 6px; border-radius: 3px; background: #ececf0; overflow: hidden; }
.rnMap em b { display: block; height: 100%; background: #0a7f96; }
.rnMap .rnPct { text-align: right; font-variant-numeric: tabular-nums; }
.rnMapResult { max-width: 560px; }
.rnAcc { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); width: 220px; height: 26px; border-radius: 13px; background: rgba(0, 0, 0, .55); overflow: hidden; opacity: 0; transition: opacity .15s; }
.rnAcc i { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(95, 211, 230, .55); }
.rnAcc span { position: relative; display: block; text-align: center; line-height: 26px; color: #fff; font-size: 13px; }

/* 영상 크게: 오른쪽 패널을 줄이고 구령 줄을 영상 위에 겹친다 */
.rnBody { grid-template-columns: minmax(0, 1fr) 300px; }
.rnStage { position: relative; }
.rnMon { padding: 0; }
.rnView { height: 100%; width: auto; max-height: 100%; }
.rnCmd { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(transparent, rgba(0, 0, 0, .78) 38%); padding: 26px 22px 14px; min-height: 0; pointer-events: none; }
.rnAcc { bottom: 86px; }
.rnSide { padding: 14px 16px; gap: 14px; }
.rnMap li { grid-template-columns: 1fr 56px 34px; padding: 4px 8px; font-size: 13px; }
.rdDone h4 { margin: 14px 0 4px; font-size: 14px; }
.rnBody { grid-template-rows: minmax(0, 1fr); align-items: stretch; }
.rnStage, .rnSide { align-self: stretch; height: 100%; min-height: 0; }
.rnMon { height: 100%; }
.rnView { height: auto; width: min(100%, calc((100vh - 60px) * 1.25)); max-height: 100%; aspect-ratio: 1350 / 1080; }
