/* 제타멜레온 — 실험 준비 페이지 (site.css 토큰 위에서) */
:root { --bench-bg: #e3e9e6; --bench-grid: rgba(40, 70, 60, 0.07); --sch-bg: #ffffff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bench-bg: #121a17; --bench-grid: rgba(150, 205, 185, 0.06); --sch-bg: #151d1a; } }
:root[data-theme="dark"] { --bench-bg: #121a17; --bench-grid: rgba(150, 205, 185, 0.06); --sch-bg: #151d1a; }

.setup-head { padding-bottom: 14px; }
.jump { margin-top: 14px; }
.jump .chip { text-decoration: none; color: var(--ink); display: inline-flex; align-items: center; }
.notices { gap: 10px; margin-bottom: 8px; }
.lead-s { max-width: 70ch; margin-bottom: 16px; }
.h-sm { font-size: 0.9375rem; margin-bottom: 8px; }
.grow { flex: 1 1 auto; }

/* ---------- 작업대 ---------- */
.bench { padding-block: 26px 34px; }
.bench-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 12px; }
.bench-head h2 { font-size: 1.5rem; margin-right: auto; }
.bench-switches { display: flex; flex-wrap: wrap; gap: 8px; }
.bench-grid { display: grid; gap: 14px; }
.bench-main { display: grid; gap: 10px; min-width: 0; align-content: start; }
.bench-side { display: grid; gap: 14px; align-content: start; min-width: 0; }
@media (min-width: 1080px) {
  .bench-grid { grid-template-columns: minmax(0, 1fr) 360px; }
}
@media (max-width: 640px) {
  .bench-switches { display: grid; grid-template-columns: 1fr; width: 100%; }
  .bench-switches .seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; }
  .bench-switches .seg button { padding: 6px 4px; }
}

.stage {
  position: relative; height: clamp(360px, 64vh, 640px); border-radius: var(--r-l); overflow: hidden;
  background: var(--bench-bg) radial-gradient(var(--bench-grid) 1px, transparent 1.3px) 0 0 / 18px 18px;
  border: 1px solid var(--line);
}
@media (max-width: 640px) {
  .stage { height: clamp(330px, 68vh, 520px); border-radius: var(--r-m); }
  .bench.is-practice .stage { height: clamp(300px, 58vh, 480px); }
}
.view { position: absolute; inset: 0; }
.bb-svg, .sch-svg { width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.bb-svg.is-panning, .sch-svg.is-panning { cursor: grabbing; }
#view-sch { background: var(--sch-bg); }
#view-3d canvas { display: block; width: 100%; height: 100%; touch-action: none; outline: none; }

/* SVG 부품 */
.bb-svg .hit { fill: none; stroke: transparent; stroke-width: 1.0; pointer-events: stroke; }
.bb-svg .it { cursor: pointer; }
.bb-svg .is-sel { filter: url(#zlSel); }
.bb-svg .is-new { filter: url(#zlNew); }
.bb-svg .is-dim { opacity: 0.2; }
.bb-svg .it-ghost { opacity: 0.32; pointer-events: none; }
.bb-svg .it-ghost.is-next { opacity: 0.75; animation: ghostPulse 1.3s ease-in-out infinite; }
@keyframes ghostPulse { 50% { opacity: 0.3; } }
.bb-svg .plbl { pointer-events: none; }
.bb-svg .plbl rect { fill: #ffffff; fill-opacity: 0.93; stroke: #c3ccc8; stroke-width: 0.06; }
.bb-svg .plbl text { fill: #1d2824; font-weight: 600; }
.bb-svg .mark { animation: ghostPulse 1s ease-in-out infinite; }

/* 회로도 */
.sch-svg { color: var(--ink); }
.sch .st { stroke: none; fill: currentColor; }
.sch .sb { font-weight: 700; }
.sch .sm { opacity: 0.8; }
.sch .sbox { fill: var(--sch-bg); }
.sch .sdot, .sch .sfill { fill: currentColor; stroke: none; }
.sch .sit, .sch .snet { cursor: pointer; transition: opacity 0.15s; }
.sch .sit.is-sel { color: var(--accent); }
.sch .snet.is-on { color: var(--accent); stroke-width: 0.55; }
.sch .is-dim { opacity: 0.28; }

.stage-ctl { position: absolute; right: 10px; bottom: 10px; display: grid; gap: 6px; z-index: 3; }
.sbtn {
  width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel); color: var(--ink);
  font-size: 1.25rem; font-weight: 700; line-height: 1; cursor: pointer; display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.sbtn svg { width: 20px; height: 20px; }
.sbtn:hover { border-color: var(--accent); }
.stage-opts { position: absolute; left: 10px; bottom: 10px; z-index: 3; display: flex; gap: 6px; flex-wrap: wrap; max-width: calc(100% - 70px); }
.stage-opt[hidden] { display: none; }
.stage-opt[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
button.stage-opt { font: inherit; font-size: 0.875rem; font-weight: 600; color: var(--ink); }
.stage-opt {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--panel); border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 12px; font-size: 0.875rem; font-weight: 600; cursor: pointer;
}
.stage-tip {
  position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); z-index: 3; width: max-content; max-width: calc(100% - 240px);
  background: rgba(16, 24, 21, 0.86); color: #eef4f1; border-radius: 8px; padding: 5px 10px; font-size: 0.8125rem; pointer-events: none;
}
.stage-status {
  position: absolute; left: 8px; right: 8px; top: 8px; z-index: 4; display: flex; align-items: center; gap: 10px;
  background: var(--panel); border: 1px solid var(--line-2); border-radius: 10px; padding: 7px 8px 7px 12px; font-size: 0.875rem; line-height: 1.45;
  box-shadow: 0 4px 14px rgba(10, 30, 25, 0.12);
}
.stage-status > span:first-child { flex: 1 1 15rem; min-width: 0; }
.stage-status.is-held { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 4px 14px rgba(10, 30, 25, 0.12); }
.stage-status .btn { flex: none; }
.is-practice .hint3d { display: none; }
.stage-msg { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; padding: 24px; text-align: center; color: var(--ink-2); background: var(--bench-bg); font-weight: 600; }
.stage-msg[hidden] { display: none; }

/* 3D 이름표 */
.l3d { position: absolute; z-index: 2; pointer-events: none; transform: translate(-50%, -100%); white-space: nowrap;
  background: rgba(255, 255, 255, 0.92); color: #1d2824; border: 1px solid #c3ccc8; border-radius: 999px; padding: 1px 8px; font-size: 0.75rem; font-weight: 600; }
.l3d.is-sel { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.hint3d { position: absolute; left: 10px; top: 10px; z-index: 3; font-size: 0.8125rem; color: var(--ink-2); background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px; pointer-events: none; }

/* 단계 */
.stepper { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-m); padding: 10px 12px; display: grid; gap: 10px; }
.stepper-row { display: flex; align-items: center; gap: 10px; }
.stepper-mid { flex: 1; min-width: 0; text-align: center; display: grid; line-height: 1.35; }
.stepper-mid strong { font-size: 1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.step-no { font-size: 0.8125rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.step-dots { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.dot {
  min-width: 32px; height: 32px; padding: 0 6px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel); color: var(--ink-2);
  font-size: 0.8125rem; font-weight: 700; cursor: pointer; font-variant-numeric: tabular-nums;
}
.dot.is-done { background: var(--accent-soft); border-color: transparent; color: var(--ink); }
.dot.is-on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.dot-all { padding: 0 12px; }

/* 부품 상자 */
.tray { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-m); padding: 10px 12px; display: grid; gap: 10px; }
.tray-label { font-size: 0.75rem; font-weight: 700; color: var(--ink-3); letter-spacing: 0.02em; margin-bottom: -4px; }
.tray-parts { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; scroll-snap-type: x proximity; }
@media (min-width: 1080px) { .tray-parts { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); overflow: visible; } }
.kit {
  position: relative; flex: none; width: 104px; display: grid; justify-items: center; gap: 2px; padding: 8px 6px 7px; scroll-snap-align: start;
  border: 1px solid var(--line-2); border-radius: 10px; background: var(--panel); color: var(--ink); cursor: pointer; text-align: center;
}
@media (min-width: 1080px) { .kit { width: auto; } }
.kit:hover { border-color: var(--accent); }
.kit.is-on { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent) inset; }
.kit.is-extra { border-style: dashed; }
.kit-t { font-weight: 700; font-size: 0.8125rem; line-height: 1.25; }
.kit-s { font-size: 0.6875rem; color: var(--ink-3); line-height: 1.25; }
.kit-n { position: absolute; top: 4px; right: 4px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--ok-bg); color: var(--ok); font-size: 0.6875rem; font-weight: 800; display: grid; place-items: center; padding: 0 4px; }
.kit-warn { position: absolute; top: 4px; left: 4px; font-size: 0.625rem; font-weight: 700; color: var(--warn); background: var(--warn-bg); border-radius: 4px; padding: 0 4px; }
.kit-ico { width: 44px; height: 22px; display: block; margin-bottom: 2px; border-radius: 4px; }
.kit-res { background: linear-gradient(90deg, transparent 0 6px, #e5cf9f 6px 38px, transparent 38px), linear-gradient(#a9afb5, #a9afb5) center / 100% 2px no-repeat; border-radius: 11px; position: relative;
  background-image: linear-gradient(90deg, transparent 0 13px, #ef7d1a 13px 16px, transparent 16px 19px, #ef7d1a 19px 22px, transparent 22px 25px, #ef7d1a 25px 28px, transparent 28px 32px, #c8a23a 32px 34px, transparent 34px), linear-gradient(90deg, transparent 0 6px, #e5cf9f 6px 38px, transparent 38px), linear-gradient(#a9afb5, #a9afb5); background-size: 100% 12px, 100% 12px, 100% 2px; background-position: center; background-repeat: no-repeat; }
.kit-ind { background-image: linear-gradient(90deg, transparent 0 13px, #7a4a26 13px 16px, transparent 16px 19px, #1d1d1d 19px 22px, transparent 22px 25px, #f2c81e 25px 28px, transparent 28px), linear-gradient(90deg, transparent 0 5px, #2f8b68 5px 39px, transparent 39px), linear-gradient(#a9afb5, #a9afb5); background-size: 100% 15px, 100% 15px, 100% 2px; background-position: center; background-repeat: no-repeat; }
.kit-cap { background: radial-gradient(circle at 50% 50%, #c8402f 0 9px, transparent 9.5px), linear-gradient(#a9afb5, #a9afb5) center / 2px 100% no-repeat; }
.kit-chip { background: linear-gradient(#242628, #242628) center / 30px 14px no-repeat, repeating-linear-gradient(90deg, #c3c8cc 0 3px, transparent 3px 7px) 9px 50% / 28px 22px no-repeat; }
.kit-wire { background: radial-gradient(circle at 8px 15px, #1c1c1c 0 4px, transparent 4.5px), radial-gradient(circle at 36px 7px, #1c1c1c 0 4px, transparent 4.5px), linear-gradient(160deg, transparent 0 40%, #d93a32 40% 55%, transparent 55%); }
.kit-probe { background: linear-gradient(#c9302c, #c9302c) 12px 50% / 7px 18px no-repeat, linear-gradient(#2a2a2a, #2a2a2a) 26px 50% / 7px 18px no-repeat; }
.kit-tr { background: radial-gradient(ellipse at 50% 30%, #242628 0 10px, transparent 10.5px); }
.kit-mod { background: linear-gradient(#2257bd, #2257bd) center / 34px 20px no-repeat; }
.kit-res.kit-ico, .kit-ind.kit-ico { border-radius: 0; }

.stage-status { flex-wrap: wrap; }
.wire-opts { display: inline-flex; gap: 6px; flex: none; margin-left: auto; }
.input.mini { width: auto; min-height: 32px; padding: 2px 8px; font-size: 0.8125rem; }
.seg-sm button { min-height: 30px; padding: 4px 10px; font-size: 0.8125rem; }
.seg [role="radio"][aria-checked="true"] { background: var(--panel); color: var(--ink); box-shadow: 0 0 0 1px var(--line-2); }
.swatches { display: flex; flex-wrap: wrap; gap: 6px; }
.swatches button { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--panel); background: var(--c); box-shadow: 0 0 0 1px var(--line-2); cursor: pointer; }
.swatches button[aria-checked="true"] { box-shadow: 0 0 0 2px var(--accent); }
.tray-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tray-actions [aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); }

/* 옆 패널 */
.item-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ichip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-2); background: var(--panel); color: var(--ink); border-radius: 999px; padding: 4px 10px; font-size: 0.8125rem; cursor: pointer; text-align: left; }
.ichip:hover { border-color: var(--accent); }
.sw { width: 12px; height: 12px; border-radius: 3px; flex: none; display: inline-block; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18); }
.panel-title .sw { width: 14px; height: 14px; }
.tips { margin: 10px 0 0; padding-left: 1.2em; display: grid; gap: 4px; font-size: 0.875rem; color: var(--ink-2); }
.legend-list { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.legend-list li { display: inline-flex; align-items: center; gap: 6px; }
.facts { margin: 8px 0 0; padding-left: 1.1em; display: grid; gap: 3px; color: var(--ink-2); }
.table.conn { font-size: 0.8125rem; margin-top: 10px; }
.table.conn td, .table.conn th { text-align: left; white-space: normal; padding: 5px 6px; }
.table.conn td.mono { white-space: nowrap; font-size: 0.75rem; }
.ins-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; align-items: center; }
.inline-sel { display: inline-flex; align-items: center; gap: 6px; }
.inline-sel .input { width: auto; min-height: 32px; padding: 2px 8px; }
#inspector.flash { animation: flash 0.9s ease-out; }
@keyframes flash { 0% { box-shadow: 0 0 0 3px var(--accent); } 100% { box-shadow: 0 0 0 0 transparent; } }

/* 직접 조립 패널 */
.lv-desc { margin: 8px 0 10px; }
.progress { height: 8px; border-radius: 4px; background: var(--panel-2); overflow: hidden; border: 1px solid var(--line); }
.progress span { display: block; height: 100%; background: var(--accent); transition: width 0.3s; }
.next-card { margin-top: 10px; padding: 10px 12px; border-radius: var(--r-s); background: var(--warn-bg); display: grid; gap: 2px; }
.next-card.ok { background: var(--ok-bg); }
.checklist { margin-top: 10px; font-size: 0.875rem; }
.checklist summary { cursor: pointer; font-weight: 700; padding: 4px 0; }
.cl-group { margin-top: 8px; }
.cl-net { font-size: 0.75rem; font-weight: 700; color: var(--ink-3); }
.cl-group ul { list-style: none; margin: 2px 0 0; padding: 0; display: grid; gap: 2px; }
.cl-group li { color: var(--ink-2); }
.cl-group li.ok { color: var(--ok); }
.check-head { margin-top: 12px; padding: 10px 12px; border-radius: var(--r-s); font-weight: 700; font-size: 0.9375rem; }
.check-head.ok { background: var(--ok-bg); color: var(--ok); }
.check-head.warn { background: var(--warn-bg); }
.check-head.bad { background: var(--bad-bg); color: var(--bad); }
.findings { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 10px; }
.findings li { display: grid; grid-template-columns: 22px 1fr auto; gap: 8px; align-items: start; font-size: 0.875rem; }
.findings .t { font-weight: 600; }
.findings .hint { color: var(--ink-2); font-size: 0.8125rem; margin-top: 3px; }
.findings .btn { min-height: 28px; padding: 2px 8px; font-size: 0.8125rem; }

/* ---------- 코드 ---------- */
.code-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
@media (min-width: 1080px) { .code-tabs { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 720px) { .code-tabs { grid-template-columns: 1fr 1fr; } }
.code-tabs button.is-opt { border-style: dashed; }
.code-tabs button {
  display: grid; gap: 1px; text-align: left; padding: 10px 12px; border-radius: var(--r-m); border: 1px solid var(--line-2); background: var(--panel); color: var(--ink); cursor: pointer;
}
.code-tabs button[aria-selected="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; background: var(--accent-soft); }
.code-tabs .ct { font-weight: 800; }
.code-tabs .cs { font-size: 0.8125rem; color: var(--ink-2); }
.code-tabs .cb { font-size: 0.75rem; color: var(--ink-3); }
.code-panel { display: grid; gap: 14px; }
.code-meta { display: grid; gap: 12px; grid-template-columns: auto 1fr; align-items: start; }
.code-cols { display: grid; gap: 14px; }
@media (min-width: 760px) { .code-cols { grid-template-columns: 1fr 1fr; } }
.table.pins td { text-align: left; white-space: normal; }
.table.pins td.mono { width: 4.5em; font-weight: 700; }
.checks-plain { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; font-size: 0.875rem; }
.code-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
pre.code {
  margin: 0; background: #0d1714; color: #dbe7e2; border-radius: var(--r-m); padding: 12px 0; overflow: auto; max-height: 560px;
  font-family: var(--mono); font-size: 0.8125rem; line-height: 1.55; counter-reset: ln; tab-size: 2;
}
pre.code code { display: block; min-width: max-content; }
pre.code .ln { display: inline-block; padding: 0 14px 0 0; }
pre.code .ln::before { counter-increment: ln; content: counter(ln); display: inline-block; width: 2.6em; margin-right: 12px; text-align: right; color: #5d7269; user-select: none; -webkit-user-select: none; }
.c-com { color: #86a59a; }
.c-str { color: #e6c27a; }
.c-kw { color: #6fd2df; }
.c-pre { color: #c7a4f0; }
.c-num { color: #f2a36b; }

/* ---------- 부품 현황 ---------- */
.parts-grid { display: grid; gap: 14px; }
@media (min-width: 1000px) { .parts-grid { grid-template-columns: 320px minmax(0, 1fr); align-items: start; } }
.ptable td, .ptable th { white-space: normal; text-align: left; vertical-align: top; }
.ptable th:first-child, .ptable td:first-child { padding-left: 0; }
.ptable td.c, .ptable th:nth-child(2), .ptable th:nth-child(3), .ptable th:nth-child(4) { text-align: center; }
.ptable .pn { font-weight: 700; }
.ptable select.input { min-height: 34px; padding: 4px 8px; width: 7.5rem; }
.ptable .memo { margin-top: 6px; min-height: 34px; width: 100%; min-width: 9rem; }
.ptable select.input.st-0 { background: var(--ok-bg); }
.ptable select.input.st-1 { background: var(--accent-soft); }
.ptable select.input.st-2 { background: var(--warn-bg); }
.ptable select.input.st-3 { background: var(--panel-2); color: var(--ink-3); }
.check-grid { display: grid; gap: 14px; }
@media (min-width: 900px) { .check-grid { grid-template-columns: 1fr 1fr; align-items: start; } }
@media (max-width: 760px) {
  .ptable thead { display: none; }
  .ptable, .ptable tbody, .ptable tr, .ptable td { display: block; width: 100%; }
  .ptable tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .ptable td { border: 0; padding: 2px 0; text-align: left !important; }
  .ptable td.c { display: inline-block; width: auto; margin-right: 12px; font-size: 0.8125rem; color: var(--ink-2); }
  .ptable td.c:nth-of-type(2)::before { content: "필요 "; color: var(--ink-3); }
  .ptable td.c:nth-of-type(3)::before { content: "구매 "; color: var(--ink-3); }
  .ptable td:last-child { display: flex; gap: 8px; margin-top: 6px; }
  .ptable .memo { margin-top: 0; }
}

/* ---------- 점검표 ---------- */
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks .toggle { align-items: flex-start; font-size: 0.9375rem; }
.ticks input { margin-top: 3px; flex: none; }
.ticks input:checked + span { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--line-2); }

/* ---------- 읽는 법 ---------- */
.guide-grid { display: grid; gap: 14px; }
@media (min-width: 900px) { .guide-grid { grid-template-columns: 1fr 1fr; } }
.guide-grid h3 { font-size: 1.0625rem; margin-bottom: 10px; }
.guide-grid ul { margin: 10px 0 0; padding-left: 1.2em; display: grid; gap: 5px; color: var(--ink-2); }
.gfig { width: 100%; max-width: 380px; height: auto; display: block; color: var(--ink); }
.table.bands td { white-space: normal; text-align: left; }
.bands .b { display: inline-block; width: 10px; height: 16px; background: var(--c); border-radius: 2px; margin-right: 2px; vertical-align: -3px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15); }

/* ---------- 고르기 창 ---------- */
dialog.picker { width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 40px); padding: 0; border: 1px solid var(--line-2); border-radius: var(--r-l); background: var(--panel); color: var(--ink); }
dialog.picker::backdrop { background: rgba(6, 14, 12, 0.5); }
.picker-body { padding: 14px 18px 18px; display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.picker-body .full { grid-column: 1 / -1; }
.pick { display: grid; gap: 1px; padding: 8px 10px; text-align: left; border: 1px solid var(--line-2); border-radius: var(--r-s); background: var(--panel); color: var(--ink); cursor: pointer; }
.pick:hover { border-color: var(--accent); }

@media print { .bench, .notices, .jump { display: none; } }
@media (prefers-reduced-motion: reduce) { .bb-svg .it-ghost.is-next, .bb-svg .mark { animation: none; } }

/* 가상 멀티미터 */
.meter {
  position: absolute; left: 8px; top: 8px; z-index: 5; width: min(330px, calc(100% - 16px)); display: grid; gap: 8px;
  background: #e8732a; color: #1b1b1b; border-radius: 14px; padding: 10px; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22); font-size: 0.8125rem;
}
.meter[hidden] { display: none; }
.meter .lcd { background: #b9c9b0; border-radius: 8px; padding: 6px 10px; display: flex; align-items: baseline; justify-content: flex-end; gap: 6px; font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.25); }
.meter .lcd .val { font-size: 2rem; font-weight: 700; letter-spacing: 0.02em; line-height: 1.1; }
.meter .lcd .u { font-size: 1rem; font-weight: 700; }
.meter .lcd .md { margin-right: auto; font-size: 0.75rem; font-weight: 700; opacity: 0.7; }
.meter .lcd.bad .val { color: #a3150c; }
.meter .row { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.meter .mbtn { font: inherit; font-weight: 700; border: 0; border-radius: 8px; padding: 6px 10px; background: #2a2a2a; color: #f3f3f3; cursor: pointer; min-height: 32px; }
.meter .mbtn[aria-pressed="true"] { background: #fff; color: #1b1b1b; box-shadow: inset 0 0 0 2px #1b1b1b; }
.meter .mbtn.ghost { background: rgba(255, 255, 255, 0.35); color: #1b1b1b; }
.meter .grow { flex: 1; }
.meter label { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; }
.meter input[type="number"] { width: 4.2rem; font: inherit; border: 0; border-radius: 6px; padding: 4px 6px; }
.meter .say { background: rgba(255, 255, 255, 0.9); border-radius: 8px; padding: 6px 8px; line-height: 1.45; }
.meter .say ul { margin: 4px 0 0; padding-left: 1.1em; }
.meter .say details { margin-top: 2px; }
.meter .say summary { cursor: pointer; font-weight: 700; color: #8a3c0c; }
.meter .leads { display: flex; gap: 6px; font-weight: 700; }
.meter .leads span { display: inline-flex; align-items: center; gap: 4px; }
.meter .leads i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
@media (max-width: 640px) {
  .meter { gap: 6px; padding: 8px; }
  .meter .lcd .val { font-size: 1.5rem; }
  .meter .mbtn { padding: 4px 9px; min-height: 30px; }
  .meter .say { max-height: 7.5em; overflow: auto; }
}
.kit-meter { background: linear-gradient(#e8732a, #e8732a) center / 20px 22px no-repeat; border-radius: 4px; }

/* ---------- 고장 찾기 ---------- */
.faultbar .fault-jump { justify-self: center; text-decoration: none; }
.bench.is-fault .bench-side #inspector { order: -1; }
@media (min-width: 1080px) { .bench.is-fault .bench-main { position: sticky; top: calc(var(--sb-h, 0px) + 10px); align-self: start; } }
@media (min-width: 1080px) { .faultbar .fault-jump { display: none; } }
.fault-panel { scroll-margin-top: 12px; }
.fault-intro { margin: 6px 0 10px; }
.fault-sym { display: grid; gap: 8px; padding: 10px; border-radius: var(--r-s); background: var(--panel-2); border: 1px solid var(--line); min-width: 0; }
.fault-sym-h { display: flex; align-items: center; gap: 8px; }
.fault-sym p { margin: 0; }
.fault-scope { padding: 8px; }
.fault-scope .scope-screen { height: 170px; }
.fault-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 6px 2px 0; font-size: 0.75rem; color: var(--scope-text); }
.fault-legend span { display: inline-flex; align-items: center; gap: 5px; }
.fault-legend .lk { width: 14px; height: 3px; border-radius: 2px; display: inline-block; }
.fault-normal { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; cursor: pointer; }
.fault-kv { font-size: 0.8125rem; }
.fault-kv th, .fault-kv td { padding: 4px 6px; text-align: left; white-space: normal; vertical-align: top; }
.fault-kv thead th { font-size: 0.75rem; color: var(--ink-3); }
.fault-q { margin-top: 12px; }
.fault-q-t { font-weight: 700; margin-bottom: 6px; }
.fault-opts { display: grid; gap: 6px; }
.fopt { display: flex; gap: 8px; align-items: flex-start; text-align: left; width: 100%; padding: 8px 10px; border: 1px solid var(--line-2); border-radius: var(--r-s); background: var(--panel); color: var(--ink); font: inherit; font-size: 0.875rem; line-height: 1.45; cursor: pointer; }
.fopt:hover:not(:disabled) { border-color: var(--accent); }
.fopt[aria-checked="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: var(--accent-soft); }
.fopt .fo-mark { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-2); display: inline-grid; place-items: center; font-size: 0.6875rem; font-weight: 700; margin-top: 1px; }
.fopt[aria-checked="true"] .fo-mark { border-color: var(--accent); background: var(--accent); }
.fopt:disabled { cursor: default; }
.fopt.is-wrong { color: var(--ink-3); }
.fopt.is-wrong span:last-child { text-decoration: line-through; }
.fopt.is-wrong .fo-mark { border-color: var(--bad); color: var(--bad); }
.fopt.is-right { border-color: var(--ok); background: var(--ok-bg); box-shadow: none; }
.fopt.is-right .fo-mark { border-color: var(--ok); background: var(--ok); color: #fff; }
.fault-acts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 10px; }
.fault-msg { margin: 8px 0 0; padding: 8px 10px; border-radius: var(--r-s); background: var(--bad-bg); }
.fault-hints { display: grid; gap: 8px; margin-top: 10px; }
.fault-hints:empty { display: none; }
.fh { display: flex; gap: 8px; font-size: 0.875rem; padding: 8px 10px; border-radius: var(--r-s); background: var(--warn-bg); line-height: 1.5; }
.fh-n { flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--warn); color: #fff; display: inline-grid; place-items: center; font-size: 0.75rem; font-weight: 700; margin-top: 1px; }
.fh .btn { margin-top: 6px; display: inline-flex; }
.fault-res { margin-top: 12px; padding: 12px; border-radius: var(--r-s); background: var(--ok-bg); display: grid; gap: 6px; }
.fr-head { font-weight: 700; color: var(--ok); line-height: 1.45; }
.fault-res .h-sm { margin: 6px 0 0; }
.fault-res p { margin: 0; }
.fault-res .banner { margin-top: 4px; }
.fault-foot { margin-top: 12px; }
.fault-foot .btn { margin-left: 4px; }
