/* 시뮬레이터 공통 틀(공연 · 멀티캠 / 인터뷰 앵글 / 촬영 팁 계산기) — 소개 배너 없이 바로
   ① 맨 위 슬림 바(‹ 홈 · 이름 · ? · 테마 · 언어) ② 위에 붙는 화면(.dock: 보기 전환 · 뷰포트 · 칩 · 수치 5칸 · 배지)
   ③ 고른 탭의 설정만(.spanel — 폰에서는 이 안에서만 스크롤) ④ 맨 아래 전용 5탭(.stabs).
   <body class="stg" data-sim="이름" data-sim-en="Name"> + <main class="stw">. 슬림 바는 site.js가 만듦 */
.topbar.slim { height: 48px; padding: 0 8px 0 2px; gap: 6px; }
.topbar.slim .sbk { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: var(--ink); text-decoration: none; }
.topbar.slim .sbk svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.topbar.slim .sbt { min-width: 0; font-size: clamp(14.5px, 4.1vw, 16px); font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar.slim .sbt .s { display: none; } @media (max-width: 479px) { .topbar.slim .sbt .l { display: none; } .topbar.slim .sbt .s { display: inline; } } /* 좁은 폰: 이름 끝의 '시뮬레이터'를 뺀 짧은 이름 */
.topbar.slim .thm { width: 40px; height: 40px; font: 800 17px/1 inherit; }
.topbar.slim .lang button { min-height: 40px; min-width: 40px; padding: 0 10px; }

.stw { max-width: 1180px; margin: 0 auto; padding: 14px 16px 40px; display: grid; gap: 12px 16px; grid-template-columns: minmax(0, 1.2fr) minmax(330px, 1fr); grid-template-areas: "dock tabs" "dock panel"; align-items: start; }
.dock { grid-area: dock; position: sticky; top: 60px; z-index: 5; padding: 12px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); min-width: 0; }
.stabs { grid-area: tabs; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 16px; background: var(--card); overflow: hidden; }
.spanel { grid-area: panel; padding: 14px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); min-width: 0; }
@media (max-width: 899px) {
  body.stg { height: 100dvh; overflow: hidden; display: flex; flex-direction: column; padding-bottom: 0 !important; } /* 공통 아래 탭 자리(여백)를 없애고 이 페이지의 5탭을 맨 아래에 */
  body.stg > .menu, body.stg > .tabbar, body.stg > .foot, body.stg > .allmenu { display: none !important; }
  body.stg > .topbar { position: static; flex: none; }
  .stw { flex: 1; width: 100%; min-height: 0; padding: 0; gap: 0; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; grid-template-areas: "dock" "panel" "tabs"; align-items: stretch; }
  .dock { position: static; border: 0; border-radius: 0; padding: 6px 10px 8px; background: var(--bg); }
  .spanel { overflow-y: auto; overscroll-behavior: contain; border: 0; border-top: 1px solid var(--line); border-radius: 18px 18px 0 0; padding: 12px 14px 20px; }
  .stabs { border: 0; border-top: 1px solid var(--line); border-radius: 0; padding-bottom: env(safe-area-inset-bottom); }
  dialog.stsheet { max-height: 54dvh; } dialog.stsheet::backdrop { background: transparent; } /* 커튼을 올려도 위쪽 화면은 그대로 보이게 */
}
.stabs button { display: grid; justify-items: center; gap: 2px; min-width: 0; min-height: 54px; padding: 7px 0 5px; border: 0; background: none; color: var(--muted); font: inherit; font-size: 11.5px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.stabs svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.stabs button[aria-selected="true"] { color: var(--blue-dark); }
.spanel > .tp[hidden] { display: none !important; }

/* 위쪽 화면 */
.vseg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 3px; padding: 3px; border-radius: 12px; background: var(--field); }
.vseg button { min-width: 0; min-height: 30px; border: 0; border-radius: 9px; background: none; color: var(--ink-2); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vseg button[aria-pressed="true"] { background: var(--cta); color: var(--on-cta); }
.vrow { display: flex; gap: 6px; align-items: center; } .vrow .vseg { flex: 1 1 auto; min-width: 0; }
.vtog { flex: none; min-height: 36px; padding: 0 11px; border: 1px solid var(--line); border-radius: 11px; background: var(--card); color: var(--ink-2); font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.vtog[aria-pressed="true"] { background: var(--cta) border-box; border-color: transparent; color: var(--on-cta); }
.scr { position: relative; width: min(100%, calc(33dvh * 16 / 9)); margin: 6px auto 0; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; }
@media (min-width: 900px) { .scr { width: 100%; } }
.scr > canvas { display: block; width: 100%; height: 100%; touch-action: pan-y; cursor: grab; }
.scr .wait { position: absolute; inset: 0; margin: 0; display: grid; place-items: center; padding: 12px; color: #d1d5db; font-size: 13px; text-align: center; pointer-events: none; }
.scr .wait[hidden] { display: none; }
.scr .sub { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 16px 9px 5px; background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, .74)); color: #f3f4f6; font: 600 11px/1.25 ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.scr .tag { position: absolute; left: 50%; top: 7px; transform: translateX(-50%); margin: 0; padding: 3px 9px; border-radius: 99px; background: rgba(11, 16, 27, .78); color: #fbbf24; font: 700 11.5px/1.3 inherit; white-space: nowrap; pointer-events: none; } /* 야외: 순광 · 측광 · 역광 */
.scr .tag.back { color: #fca5a5; } .scr .tag.hit { top: 34px; background: rgba(220, 38, 38, .88); color: #fff; } .scr .tag[hidden] { display: none; }
.camrow { display: flex; gap: 5px; margin-top: 6px; overflow-x: auto; scrollbar-width: none; } .camrow::-webkit-scrollbar { display: none; }
.camrow button { position: relative; flex: none; min-height: 30px; padding: 0 10px; border: 1px solid var(--line); border-radius: 99px; background: var(--card); color: var(--ink-2); font: 700 12px/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace; cursor: pointer; white-space: nowrap; }
.camrow button::after { content: ""; position: absolute; inset: -7px -2px; }
.camrow button[aria-pressed="true"] { background: var(--cta) border-box; border-color: transparent; color: var(--on-cta); }
.camrow button.x:not([aria-pressed="true"]), .camrow button.bad:not([aria-pressed="true"]) { border-color: var(--bad); color: var(--bad); }
.hud { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; margin-top: 6px; }
.hud div { min-width: 0; padding: 4px 7px; border-radius: 10px; background: var(--soft); }
.hud small { display: block; font-size: 10.5px; font-weight: 700; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hud b { display: block; font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hud b.m { color: var(--warn-ink); }
.badge { display: block; width: 100%; min-height: 30px; margin-top: 5px; padding: 4px 10px; border: 0; border-radius: 10px; background: var(--soft); color: var(--ink); font: inherit; font-size: 12.5px; font-weight: 700; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.badge.ok, .badge.lv3, .badge.lv2 { background: color-mix(in srgb, var(--ok) 14%, var(--card)); color: var(--ok); }
.badge.lv1 { background: color-mix(in srgb, var(--warn) 16%, var(--card)); color: var(--warn-ink); }
.badge.lv0 { background: color-mix(in srgb, var(--bad) 13%, var(--card)); color: var(--bad); }

/* 설정 */
.spanel h3 { margin: 16px 0 8px; font-size: 14px; } .spanel h3:first-child { margin-top: 0; }
.rw { display: grid; gap: 7px; margin-top: 12px; } .rw:first-child { margin-top: 0; } .rw > b { font-size: 13px; color: var(--muted); }
.rw .chips button { min-height: 40px; }
.inl { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.step { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--field); }
.step button { width: 44px; height: 42px; border: 0; background: none; color: var(--ink); font-size: 20px; cursor: pointer; } .step button:disabled { color: var(--line); cursor: default; }
.step b { min-width: 52px; text-align: center; font-size: 15px; font-variant-numeric: tabular-nums; }
.sl { display: grid; gap: 4px; margin-top: 12px; font-size: 13px; font-weight: 700; color: var(--muted); } .sl b { color: var(--ink); font-variant-numeric: tabular-nums; } .sl input { width: 100%; }
.pinfo { margin: 8px 2px 0; font-size: 12.5px; line-height: 1.5; color: var(--muted); font-variant-numeric: tabular-nums; }
.seg2 { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 3px; padding: 3px; border-radius: 12px; background: var(--field); }
.seg2 button { min-width: 0; min-height: 40px; border: 0; border-radius: 9px; background: none; color: var(--ink-2); font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.seg2 button[aria-pressed="true"] { background: var(--cta); color: var(--on-cta); }
.sw { display: flex; flex-wrap: wrap; gap: 6px; }
.sw button { min-height: 42px; display: inline-flex; align-items: center; gap: 6px; padding: 0 12px 0 8px; border: 1px solid var(--line); border-radius: 99px; background: var(--card); color: var(--ink-2); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.sw button i { width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .18); flex: none; }
.sw button[aria-pressed="true"] { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); color: var(--ink); }
.sw.dot button { padding: 0; width: 42px; justify-content: center; } .sw.dot button i { width: 26px; height: 26px; }
.plist { display: grid; gap: 6px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.plist button { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 3px 8px; min-height: 56px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--field); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.plist button > span { grid-row: span 2; display: flex; } .plist i { width: 20px; height: 20px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .2); margin-right: -6px; }
.plist b { font-size: 14px; } .plist small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.snotes { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.snotes li { padding: 8px 11px; border-radius: 10px; background: var(--soft); font-size: 13px; line-height: 1.5; }
.snotes li.w1, .snotes li.w { background: color-mix(in srgb, var(--warn) 14%, var(--card)); color: var(--warn-ink); font-weight: 600; } .snotes li.w0 { background: color-mix(in srgb, var(--bad) 12%, var(--card)); color: var(--bad); font-weight: 600; }
.tw { overflow-x: auto; margin-top: 8px; border: 1px solid var(--line); border-radius: 12px; }
.sumt { width: 100%; border-collapse: collapse; font-size: 12.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sumt th, .sumt td { padding: 7px 9px; text-align: left; border-bottom: 1px solid var(--line); } .sumt tr:last-child td { border-bottom: 0; } .sumt th { font-size: 11.5px; color: var(--muted); background: var(--soft); }
.sumt tr.on td:first-child { color: var(--blue-dark); font-weight: 800; }
.sumt .lv3, .sumt .lv2 { color: var(--ok); } .sumt .lv1 { color: var(--warn-ink); } .sumt .lv0 { color: var(--bad); }
.gpair { display: grid; gap: 8px; margin-top: 10px; }
.n3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; } /* 치수 입력: 가로 · 깊이 · 높이 */
.ni { display: grid; gap: 3px; font-size: 12px; font-weight: 700; color: var(--muted); }
.ni input, .ni select { width: 100%; min-height: 44px; padding: 0 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--field); color: var(--ink); font: inherit; font-size: 16px; font-variant-numeric: tabular-nums; }
.n2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.xbtns { display: grid; gap: 8px; margin-top: 14px; } .xbtns .btn { min-height: 46px; justify-content: center; } @media (min-width: 560px) { .xbtns { grid-template-columns: repeat(3, 1fr); } }
.xmsg { margin: 6px 2px 0; min-height: 18px; font-size: 12.5px; color: var(--muted); }

/* 인쇄: 화면은 숨기고 리포트 쪽(그림)만 — 워터마크는 리포트 그림 한가운데에 대각선으로 들어 있음 */
.simprint { display: none; }
@media print {
  @page { size: A4 portrait; margin: 6mm; }
  body.stg { height: auto !important; overflow: visible !important; display: block !important; background: #fff !important; padding: 0 !important; }
  body.stg > *:not(.simprint) { display: none !important; }
  .simprint { display: block; } .simprint img { display: block; width: 100%; height: auto; break-after: page; page-break-after: always; } .simprint img:last-child { break-after: auto; page-break-after: auto; }
}
