/* 화면별 스타일: 로그인 · 장비 · 센서 구성 · 시뮬레이터 · 실시간 센서 · 설정 · 관리. 색은 tokens.css 의 변수만 쓴다.
   공용 구성 요소(단추·칩·카드·표·앱 틀·침대 타일)는 components.css. */

/* ---------- 로그인·가입 ---------- */
.auth-wrap { min-height: calc(100dvh - var(--strip-h)); display: grid; place-items: center; padding: var(--s-8) var(--s-4); background: var(--bg); position: relative; overflow: hidden; }
.auth-wrap::before { content: ""; position: absolute; left: 50%; top: -18rem; width: 56rem; height: 36rem; translate: -50% 0; background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 13%, transparent), transparent); pointer-events: none; }
.auth-card { position: relative; width: min(25rem, 100%); display: grid; gap: var(--s-6); animation: page-in var(--d-slow) var(--ease); }
.auth-card .brand { justify-self: start; font-size: var(--fs-16); }
.auth-card h1 { font-size: var(--fs-24); }
.auth-card .lead { color: var(--text-2); margin-top: var(--s-1); }
.auth-card > .card { padding: var(--s-6); box-shadow: var(--shadow-2); }
.auth-foot { text-align: center; color: var(--text-2); font-size: var(--fs-13); }
.auth-theme { position: fixed; right: var(--s-4); bottom: var(--s-4); z-index: 2; }
@media (max-width: 600px) { .auth-theme { top: calc(var(--strip-h) + var(--s-3)); bottom: auto; right: var(--s-3); } }
.pw-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.pw-meter i { height: 3px; border-radius: 2px; background: var(--surface-3); transition: background-color var(--d-base); }
.pw-meter[data-s="1"] i:nth-child(-n+1) { background: var(--st-critical-line); }
.pw-meter[data-s="2"] i:nth-child(-n+2) { background: var(--st-delay-line); }
.pw-meter[data-s="3"] i:nth-child(-n+3) { background: var(--st-due-line); }
.pw-meter[data-s="4"] i { background: var(--st-done-line); }
.status-hero { display: grid; justify-items: center; text-align: center; gap: var(--s-3); }
.status-hero .big-ico { width: 3rem; height: 3rem; border-radius: var(--r-card); display: grid; place-items: center; background: var(--st-bg); color: var(--st-fg); }
.status-hero .big-ico .icon { width: 1.5rem; height: 1.5rem; }
.steps { display: grid; gap: var(--s-3); text-align: left; width: 100%; margin: var(--s-2) 0; }
.steps li { display: flex; gap: var(--s-3); align-items: flex-start; }
.steps .n { width: 1.5rem; height: 1.5rem; border-radius: 50%; display: grid; place-items: center; font-size: var(--fs-12); font-weight: 700; background: var(--st-bg); color: var(--st-fg); flex: none; }

/* ---------- 관리 화면 공용 ---------- */
.row-actions { display: flex; gap: var(--s-1); justify-content: flex-end; flex-wrap: wrap; }
.tag-input { display: flex; flex-wrap: wrap; gap: var(--s-1); padding: .3125rem; min-height: var(--h-md); background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--r-ctl); }
.tag-input:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
.tag-input input { flex: 1; min-width: 6rem; border: 0; background: none; outline: none; padding: 0 var(--s-2); }
.mobile-cards { display: none; }
.secret-box { display: flex; gap: var(--s-2); align-items: stretch; }
.secret-box code { flex: 1; padding: var(--s-3); border-radius: var(--r-ctl); background: var(--surface-2); border: 1px dashed var(--border-strong); word-break: break-all; user-select: all; font-size: var(--fs-13); }
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); gap: var(--s-3); align-items: end; }
.hash { color: var(--text-3); font-family: var(--font-mono); font-size: var(--fs-12); white-space: nowrap; }
/* 긴 값(대상 id·이름)은 한 줄로 자르고 title 로 전체 */
.cell-trunc { max-width: 16rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mono-sm { font-family: var(--font-mono); font-size: var(--fs-12); }
.outcome-ok { color: var(--st-done-fg); } .outcome-denied, .outcome-error { color: var(--st-critical-fg); }
.stat-row { display: flex; gap: var(--s-2); flex-wrap: wrap; }
.stat { display: inline-flex; align-items: center; gap: var(--s-2); height: 2rem; padding: 0 .75rem; border-radius: var(--r-full); border: 1px solid var(--border); background: var(--surface); color: var(--text-2); cursor: pointer; font-size: var(--fs-13); font-weight: 550; transition: border-color var(--d-fast), background-color var(--d-fast); }
.stat:hover { border-color: var(--border-strong); color: var(--text); }
.stat b { font-size: var(--fs-14); color: var(--text); font-variant-numeric: tabular-nums; }
.stat[data-st]::before { content: ""; width: .4375rem; height: .4375rem; border-radius: 50%; background: var(--st-line); }
.stat[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-soft-fg); }
@media (max-width: 768px) {
  .desktop-table { display: none; }
  .mobile-cards { display: grid; gap: var(--s-3); }
  .m-card { display: grid; gap: var(--s-2); padding: var(--s-4); border: 1px solid var(--border); border-radius: var(--r-card); background: var(--surface); }
  .card.card-flush:has(.mobile-cards) { border: 0; background: none; box-shadow: none; }
}

/* ---------- 준비 중 화면 ---------- */
.soon { display: grid; place-items: center; min-height: min(36rem, 70dvh); padding: var(--s-7) var(--s-4); }
.soon-card { width: min(34rem, 100%); display: grid; gap: var(--s-5); padding: var(--s-7); text-align: center; justify-items: center; }
.soon-card .soon-ico { width: 3rem; height: 3rem; display: grid; place-items: center; border-radius: var(--r-card); background: var(--brand-soft); color: var(--brand); }
.soon-card .soon-ico .icon { width: 1.375rem; height: 1.375rem; }
.soon-card h1 { font-size: var(--fs-20); }
.soon-card p { color: var(--text-2); max-width: 26rem; }
.soon-list { display: grid; gap: var(--s-2); width: 100%; text-align: left; }
.soon-list li { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-4); border: 1px solid var(--border); border-radius: var(--r-ctl); background: var(--surface-2); font-size: var(--fs-13); color: var(--text-2); }
.soon-list li .icon { color: var(--text-3); }

/* ---------- 알림 센터 ---------- */
.al-layout { display: grid; gap: var(--s-5); }
.al-toolbar { display: flex; gap: var(--s-3); align-items: center; flex-wrap: wrap; justify-content: space-between; }
.al-list { display: grid; }
.al-row { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--s-1) var(--s-4); align-items: center; padding: var(--s-4) var(--s-5) var(--s-4) var(--s-6); border-bottom: 1px solid var(--border); }
.al-row[data-new] { animation: slide-down var(--d-base) var(--ease); }
.al-row:last-child { border-bottom: 0; }
.al-row::before { content: ""; position: absolute; left: 0; top: var(--s-3); bottom: var(--s-3); width: 3px; border-radius: 0 3px 3px 0; background: var(--lv, var(--border)); }
.al-row[data-lv="p1"] { --lv: var(--lv-p1); } .al-row[data-lv="p2"] { --lv: var(--lv-p2); } .al-row[data-lv="p3"] { --lv: var(--lv-p3); } .al-row[data-lv="p4"] { --lv: var(--lv-p4); }
.al-row[data-lv="p1"][data-state="open"] { background: color-mix(in srgb, var(--st-critical-line) 6%, var(--surface)); }
.al-row.is-done { opacity: .62; }
.al-bed { color: var(--text); text-decoration: none; font-size: var(--fs-20); font-weight: 750; letter-spacing: -.02em; font-variant-numeric: tabular-nums; min-width: 3.25rem; }
.al-main { display: grid; gap: 3px; min-width: 0; }
.al-title { display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; font-weight: 600; }
.al-sub { display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; font-size: var(--fs-12); color: var(--text-2); font-variant-numeric: tabular-nums; }
.al-sub .sep { color: var(--text-3); }
.al-acts { display: flex; gap: var(--s-2); align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.al-acts .inline-msg { max-width: 16rem; }
@media (max-width: 768px) {
  .al-row { grid-template-columns: auto minmax(0, 1fr); padding: var(--s-3) var(--s-4) var(--s-3) var(--s-5); }
  .al-acts { grid-column: 1 / -1; justify-content: flex-start; }
  .al-acts .btn { flex: 1; }
}

/* ---------- 공용 ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-3); }
@media (max-width: 560px) { .grid-2 { grid-template-columns: 1fr; } }
.toolbar { padding: var(--sp-3); }
.stat-row { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.tag-sensor { gap: .35em; } .tag-sensor .icon { width: .9em; height: .9em; }
.vtag { margin-left: .5rem; font-variant-numeric: tabular-nums; vertical-align: middle; }
.code, textarea.code { font-family: var(--font-mono); font-size: var(--fs-sm); line-height: 1.5; tab-size: 2; }
.codebox { margin: 0; padding: var(--sp-3); border-radius: var(--r-2); background: var(--surface-3); border: 1px solid var(--border); font-family: var(--font-mono); font-size: var(--fs-sm); white-space: pre-wrap; word-break: break-all; max-height: 18rem; overflow: auto; }
.jsonv { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--text-2); word-break: break-all; }
.rot { transform: rotate(-90deg); } .rot-l { transform: rotate(90deg); width: 1em; height: 1em; }
.back { display: inline-flex; align-items: center; gap: .25rem; font-size: var(--fs-sm); text-decoration: none; margin-bottom: var(--sp-2); }
tr.is-off td, .is-off { opacity: .6; }
.table tfoot td { padding: var(--sp-3) var(--sp-4); border-top: 1px solid var(--border); background: var(--surface-2); }
details > summary { cursor: pointer; list-style: none; } details > summary::-webkit-details-marker { display: none; }

/* ---------- 장비 ---------- */
.table-nodes { min-width: 62rem; } .table-nodes td { vertical-align: middle; } .table-nodes td:first-child { min-width: 12rem; } .table-nodes .tags { flex-wrap: nowrap; }
.table-nodes td:nth-child(2), .table-nodes td:nth-child(4), .table-nodes td:nth-child(5), .table-nodes td:nth-child(6), .table-nodes td:nth-child(7) { white-space: nowrap; }
.table-nodes td:last-child > * { display: flex; gap: var(--s-2); flex-wrap: nowrap; justify-content: flex-end; }
.batt { display: inline-flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-sm); }
.batt i { display: inline-block; width: 1.5rem; height: .65rem; border: 1px solid var(--border-strong); border-radius: 3px; position: relative; overflow: hidden; }
.batt i::after { content: ""; position: absolute; inset: 1px; width: calc(var(--p) - 2px); border-radius: 1px; background: var(--st-bar); }
.rep { display: inline-flex; align-items: center; }
a.plink { color: var(--text); font-weight: 650; text-decoration: none; } a.plink:hover { text-decoration: underline; }

/* ---------- 센서 구성: 목록 ---------- */
.plist { display: grid; }
.prow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto auto; align-items: center; gap: var(--sp-4); padding: var(--sp-4) var(--sp-5); border-bottom: 1px solid var(--border); color: var(--text); text-decoration: none; transition: background-color var(--dur-fast); }
.prow:last-child { border-bottom: 0; } .prow:hover { background: var(--surface-2); }
.p-ico { width: 2.5rem; height: 2.5rem; display: grid; place-items: center; border-radius: var(--r-2); background: var(--accent-soft); color: var(--accent-soft-fg); }
.p-main { display: grid; gap: .35rem; min-width: 0; } .p-sub { display: flex; gap: var(--sp-2); align-items: center; flex-wrap: wrap; }
.prow .rot { width: 1.1rem; height: 1.1rem; color: var(--text-3); }
@media (max-width: 720px) { .prow { grid-template-columns: auto minmax(0, 1fr) auto; padding: var(--sp-3); } .p-meta, .p-date { display: none; } .card.card-flush:has(.plist) { border: 1px solid var(--border); background: var(--surface); } }

/* ---------- 센서 구성: 상세 ---------- */
.detail-body { display: grid; gap: var(--s-5); min-width: 0; }
.detail-body > .tabs + .card { margin-top: calc(var(--s-5) * -1 + var(--s-3)); }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: var(--sp-5); align-items: start; }
.detail-grid .col { display: grid; gap: var(--sp-5); min-width: 0; }
@media (max-width: 1100px) { .detail-grid { grid-template-columns: minmax(0, 1fr); } }
.plan-box { display: grid; gap: var(--sp-3); }
.plan { display: grid; gap: var(--sp-2); justify-items: center; }
.plan-svg { width: 100%; height: auto; max-height: 72vh; border-radius: var(--r-2); user-select: none; }
.plan-pad { fill: var(--plan-pad); stroke: var(--border-strong); stroke-width: .5; }
.plan-grid line { stroke: var(--plan-grid); stroke-width: .25; }
.plan-svg text { font-family: var(--font); fill: var(--text-3); }
.plan-svg .tick, .plan-svg .side { font-size: 3.3px; }
.plan-svg .zlabel { font-size: 4.2px; fill: var(--plan-ink); font-weight: 700; pointer-events: none; }
.zone polygon { fill-opacity: .22; stroke-width: .45; stroke-opacity: .9; }
.plan-body { fill: none; stroke: var(--plan-ink); stroke-width: .4; stroke-dasharray: 2 1.5; opacity: .7; }
.plan-sensors .on { fill: var(--accent); } .plan-sensors .off { fill: none; stroke: var(--text-3); stroke-width: .35; }
.plan-env path, .plan-env circle { fill: var(--st-caution-bar); opacity: .9; }
.plan-prox .p rect { fill: var(--st-active-bar); } .plan-prox .p text { fill: var(--bg); font-size: 4px; font-weight: 800; }
.plan-prox .fov { fill: var(--st-active-bar); opacity: .16; } .plan-prox .p.off { opacity: .4; }
.plan-blind rect { fill: var(--st-critical-bar); opacity: .2; }
.plan-hl * { fill: none; stroke: var(--st-critical-bar); stroke-width: 1.1; animation: hl-pulse var(--d-pulse) var(--ease-in-out) 3; }
@keyframes hl-pulse { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
.plan.no-zones .plan-zones, .plan.no-sensors .plan-sensors, .plan.no-prox .plan-prox, .plan.no-prox .plan-env, .plan.no-body .plan-body, .plan.no-blind .plan-blind { display: none; }
.plan-cap { font-size: var(--fs-xs); color: var(--text-3); min-height: 1.2em; font-variant-numeric: tabular-nums; }
.plan-legend { display: flex; gap: var(--sp-4); flex-wrap: wrap; font-size: var(--fs-sm); color: var(--text-2); }
.lg { display: inline-flex; align-items: center; gap: .4rem; cursor: pointer; } .lg input { accent-color: var(--accent); }
.sw { width: .8rem; height: .8rem; border-radius: 50%; display: inline-block; }
.sw.sensor { background: var(--accent); } .sw.zone { background: var(--zone-3); opacity: .5; border-radius: 3px; } .sw.prox { background: var(--st-active-bar); border-radius: 3px; } .sw.body { border: 2px dashed var(--plan-ink); background: none; border-radius: 3px; } .sw.blind { background: var(--st-critical-bar); opacity: .35; border-radius: 3px; }
.val-sum { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.msg-box { display: grid; gap: var(--sp-4); } .msg-box.is-busy { opacity: .6; }
.msg-group h3 { font-size: var(--fs-sm); color: var(--text-2); margin-bottom: var(--sp-2); }
.msgs { display: grid; gap: 4px; }
.msg { display: flex; gap: var(--sp-3); align-items: flex-start; width: 100%; padding: var(--sp-2) var(--sp-3); border: 1px solid var(--border); border-radius: var(--r-2); background: var(--surface-2); text-align: left; color: var(--text); }
button.msg { cursor: pointer; transition: background-color var(--dur-fast), border-color var(--dur-fast); } button.msg:hover { background: var(--surface-3); border-color: var(--border-strong); }
.mi { color: var(--st-bar); margin-top: .1rem; } .mt { display: grid; gap: 2px; min-width: 0; } .mm { font-size: var(--fs-sm); } .mc { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--text-3); }
.msg-ok { display: flex; align-items: center; gap: var(--sp-2); padding: var(--sp-3); border-radius: var(--r-2); background: var(--st-done-bg); border: 1px solid var(--st-done-border); color: var(--st-done-chip-fg); font-weight: 600; }
.msg-ok.bad { background: var(--st-critical-bg); border-color: var(--st-critical-border); color: var(--st-critical-chip-fg); }
.msg-scroll { max-height: 18rem; overflow: auto; }
.editor { display: grid; gap: var(--sp-3); }
.editor-bar, .editor-foot { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3); flex-wrap: wrap; }
.editor-foot .input { flex: 1; min-width: 12rem; }
textarea.editor, .editor textarea { min-height: 22rem; white-space: pre; overflow: auto; resize: vertical; }
.mini-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: var(--sp-3); margin: var(--sp-4) 0; }
.mini-stats > div { display: grid; gap: 2px; padding: var(--sp-3); border-radius: var(--r-2); background: var(--surface-2); border: 1px solid var(--border); }
.mini-stats span { font-size: var(--fs-xs); color: var(--text-3); font-weight: 650; } .mini-stats b { font-size: var(--fs-lg); } .mini-stats em { font-style: normal; font-size: var(--fs-xs); color: var(--text-2); }
.table-zones th, .table-zones td { padding: var(--sp-2) var(--sp-3); } .table-zones tr.is-empty td { color: var(--st-critical-chip-fg); }
.zdot { display: inline-block; width: .6rem; height: .6rem; border-radius: 50%; margin-right: .5rem; }
.bar-cell { display: flex; align-items: center; gap: var(--sp-2); min-width: 8rem; }
.vlist { display: grid; } .vrow { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3) 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; } .vrow:last-child { border-bottom: 0; }
.vrow .vtag { margin: 0; } .v-main { display: grid; flex: 1; min-width: 12rem; } .vrow.is-cur { background: linear-gradient(90deg, var(--accent-soft), transparent 60%); margin: 0 calc(var(--sp-5) * -1); padding-left: var(--sp-5); padding-right: var(--sp-5); }
.ver-view { display: grid; gap: var(--sp-4); }

/* ---------- 시뮬레이터 ---------- */
.sim-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--sp-6); align-items: start; }
@media (max-width: 900px) { .sim-grid { grid-template-columns: 1fr; } }
.sim-status { display: grid; gap: var(--sp-2); justify-items: start; padding: var(--sp-4); border-radius: var(--r-3); background: var(--surface-2); border: 1px solid var(--border); }
.sim-clock { white-space: nowrap; font-size: var(--fs-32); font-weight: 700; line-height: 1.1; letter-spacing: -.025em; font-variant-numeric: tabular-nums; color: var(--text); }
.sim-clock-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); width: 100%; flex-wrap: wrap; }
.sim-chips { display: flex; gap: var(--s-2); flex-wrap: wrap; }
.sim-clock-actions { margin-top: var(--s-1); }
.sim-clock-actions .btn[hidden] { display: none; }
.duty { display: flex; align-items: center; gap: var(--sp-3); }
details.inject { padding: var(--sp-4) var(--sp-5); }

/* ---------- 실시간 센서 ---------- */
.live-grid { display: grid; gap: var(--sp-3); grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.livecard { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); grid-template-areas: "top top" "fig stats" "badge badge" "foot foot"; gap: var(--sp-2) var(--sp-3); padding: var(--sp-4); border: 1px solid var(--border); border-radius: var(--r-3); background: var(--surface); box-shadow: var(--shadow-1); text-align: left; color: var(--text); cursor: pointer; transition: box-shadow var(--dur-base), border-color var(--dur-base); }
.livecard:hover { border-color: var(--border-strong); box-shadow: var(--shadow-2); }
.livecard.is-sel { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 30%, transparent); }
.livecard[data-health="offline"] { border-style: dashed; opacity: .78; }
.lc-top { grid-area: top; display: flex; justify-content: space-between; align-items: center; gap: var(--sp-2); } .lc-no { font-size: var(--fs-xl); letter-spacing: -.02em; }
.livecard .bodyfig { grid-area: fig; width: 100%; height: auto; } .livecard .tag { grid-area: badge; justify-self: start; } .livecard .live-stats { grid-area: stats; } .lc-foot { grid-area: foot; display: flex; align-items: center; gap: .35rem; font-size: var(--fs-xs); }
.lc-foot .icon { width: .95em; height: .95em; }
.live-stats { display: grid; gap: 3px; margin: 0; align-content: start; font-size: var(--fs-sm); }
.live-stats > div { display: flex; justify-content: space-between; gap: var(--sp-2); } .live-stats > div:not(.wide) dt { white-space: nowrap; flex: none; } .live-stats > div:not(.wide) dd { text-align: right; min-width: 0; } .live-stats .wide { display: grid; gap: 0; } .live-stats dt { color: var(--text-3); } .live-stats dd { margin: 0; font-weight: 650; }
.prox-on { color: var(--st-active-chip-fg); font-weight: 700; }
.bf-bed { fill: var(--surface-2); stroke: var(--border); stroke-width: .8; } .bf-zone { fill: transparent; stroke: var(--border-strong); stroke-width: .6; transition: fill var(--d-heat) var(--ease-out); }
.bf-cop circle { fill: none; stroke: var(--text); stroke-width: 1.1; } .bf-cop path { stroke: var(--text); stroke-width: 1; fill: none; }
.live-detail { scroll-margin-top: calc(var(--banner-h) + 4rem); }
.live-detail-grid { display: grid; grid-template-columns: minmax(0, 19rem) minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-6); align-items: start; }
@media (max-width: 1100px) { .live-detail-grid { grid-template-columns: minmax(0, 1fr); } }
.hm-wrap { max-width: 22rem; width: 100%; display: grid; place-items: center; padding: var(--sp-2); overflow: hidden; border-radius: var(--r-3); background: var(--surface-2); border: 1px solid var(--border); }
.hm { width: 100%; height: auto; border-radius: var(--r-2); transform-origin: center; will-change: transform, filter; }
.hm-col { display: grid; gap: var(--sp-2); } .hm-legend { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-xs); color: var(--text-3); } .ramp { flex: 1; height: .55rem; border-radius: var(--r-full); background: linear-gradient(90deg, var(--heat-0), var(--heat-1), var(--heat-2), var(--heat-3), var(--heat-4), var(--heat-5), var(--heat-6), var(--heat-7)); }
.zbars { display: grid; gap: 6px; margin-top: var(--sp-2); } .zb { display: grid; grid-template-columns: 8.5rem 1fr 3rem; gap: var(--sp-2); align-items: center; font-size: var(--fs-sm); } .zb b { text-align: right; }
.live-side h3, .zbars + h3, .col > h3 { font-size: var(--fs-sm); color: var(--text-2); }
.live-side { display: grid; gap: var(--sp-2); align-content: start; }
.kvs { display: grid; gap: 4px; margin: 0 0 var(--sp-3); } .kvs > div { display: flex; justify-content: space-between; gap: var(--sp-3); padding: 4px 0; border-bottom: 1px solid var(--border); font-size: var(--fs-sm); } .kvs dt { color: var(--text-2); } .kvs dd { margin: 0; font-weight: 650; }
.live-grid.is-empty .livecard { display: none; }

/* ---------- 설정 보기 ---------- */
.gchips .btn[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-soft-fg); }
.setvals { display: grid; gap: var(--sp-5); }
.set-head { display: flex; justify-content: space-between; align-items: baseline; padding: var(--sp-4) var(--sp-5); border-bottom: 1px solid var(--border); background: var(--surface-2); }
.setlist { display: grid; }
.setitem { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--sp-4); padding: var(--sp-4) var(--sp-5); border-bottom: 1px solid var(--border); align-items: start; }
.setitem:last-child { border-bottom: 0; }
.si-main { display: grid; gap: 4px; min-width: 0; } .si-help { font-size: var(--fs-sm); color: var(--text-2); }
.si-val { display: grid; gap: var(--sp-2); justify-items: start; font-size: var(--fs-lg); font-weight: 650; }
@media (max-width: 720px) { .setitem { grid-template-columns: 1fr; padding: var(--sp-3) var(--sp-4); } .card.card-flush:has(.setlist) { border: 1px solid var(--border); background: var(--surface); } }
.listgrid { display: grid; gap: var(--sp-3); }
.listcard { padding: 0; } .listcard summary { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3); padding: var(--sp-4) var(--sp-5); flex-wrap: wrap; }
.ls-main { display: grid; gap: 2px; } .li-items { border-top: 1px solid var(--border); }

@media (max-width: 720px) { .card-flush > .mobile-cards { padding: 0 !important; } .stat-row { gap: var(--sp-1); } }
@media (max-width: 720px) {
  .page-head .actions { width: 100%; } .page-head .actions .btn { flex: 1; }
  .zb { grid-template-columns: 6.5rem 1fr 2.4rem; } .editor-foot .input { min-width: 0; }
}

.sim-progress { display: grid; gap: var(--sp-1); width: 100%; } .sim-progress:empty { display: none; }
.seg button { white-space: nowrap; } .sim-fields { grid-template-columns: minmax(0, 1fr) auto; }
@media (max-width: 560px) { .sim-fields { grid-template-columns: 1fr; } }


/* ---------- 기타 ---------- */
.noscript { padding: var(--s-7); }
.mon-clock { font-size: var(--fs-display); font-weight: 650; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.display-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; }
@media (max-width: 768px) { .mon-clock { font-size: var(--fs-32); } }

/* 장비 점검 요청(devices.js) */
.dc-card { border-color: color-mix(in srgb, var(--st-delay-line) 45%, var(--border)); }
.dc-h { display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; padding: var(--s-3) var(--s-4) 0; }
.dc-h svg { width: 1.125rem; height: 1.125rem; color: var(--st-delay-fg); }
.dc-list { display: grid; gap: 4px; margin: 0; padding: var(--s-3) var(--s-4); list-style: none; }
.dc-row { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; padding: .5rem .625rem; border-radius: 10px; background: var(--surface-2); }
.dc-bed { min-width: 3rem; font-variant-numeric: tabular-nums; }
.dc-why { flex: 1; min-width: 10rem; }

/* 설정 줄: 항목 코드(turn.interval_min 등)는 평소 숨기고 줄에 마우스·초점이 있을 때만(대표 지적 ⑨) */
.si-key { display: none; }
.si-main:hover .si-key, .setitem:focus-within .si-key, .setitem.is-open .si-key { display: inline; }
.st-density { display: inline-flex; }
