/* 옴니센스가드 — 평면 디자인. 그라데이션·그림자 효과 없음. */
:root {
  --font: "IBM Plex Sans KR", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  --mono: "IBM Plex Mono", Consolas, monospace;
  --ok: #3aa675;
  --caution: #d6a03a;
  --warning: #e0793a;
  --critical: #dc4a4a;
  --brand: #1a5fd6;
  --radius: 6px;
}
body.console {
  --bg: #0e1116;
  --panel: #151a21;
  --panel-2: #1b212a;
  --line: #262e39;
  --text: #e4e8ee;
  --muted: #8b96a5;
  --accent: #5b98e6;
  --accent-ink: #0e1116;
}
body.public {
  --bg: #f5f6f8;
  --panel: #ffffff;
  --panel-2: #f0f2f5;
  --line: #dde1e7;
  --text: #151a21;
  --muted: #5d6877;
  --accent: #1a5fd6;
  --accent-ink: #ffffff;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* 브랜드 */
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-text { font-weight: 600; font-size: 16px; line-height: 1.2; letter-spacing: -0.01em; }
.brand-text small { display: block; font-weight: 400; font-size: 11.5px; color: var(--muted); letter-spacing: 0; }

/* 버튼 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 38px; padding: 0 16px; border-radius: var(--radius);
  border: 1px solid transparent; background: none; cursor: pointer;
  font-weight: 500; font-size: 14px; white-space: nowrap;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-outline { border-color: var(--line); background: var(--panel); }
.btn-outline:hover { border-color: var(--muted); }
.btn-quiet { border-color: var(--line); color: var(--muted); }
.btn-quiet:hover { color: var(--text); border-color: var(--muted); }
.btn-quiet[aria-pressed="true"] { color: var(--text); border-color: var(--accent); }
.btn-danger { border-color: var(--critical); color: var(--critical); }
.btn-danger:hover { background: var(--critical); color: #fff; }
.btn-sm { height: 30px; padding: 0 11px; font-size: 13px; }
.btn-lg { height: 46px; padding: 0 22px; font-size: 15px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.link { color: var(--accent); font-size: 13px; }
.link:hover { text-decoration: underline; }

/* 등급 표시 */
.chip {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 46px; height: 24px; padding: 0 9px; border-radius: 4px;
  border: 1px solid var(--line); color: var(--muted);
  font-size: 12.5px; font-weight: 600; white-space: nowrap;
}
.chip-ok { border-color: var(--ok); color: var(--ok); }
.chip-caution { border-color: var(--caution); color: var(--caution); }
.chip-warning { background: var(--warning); border-color: var(--warning); color: #14100c; }
.chip-critical { background: var(--critical); border-color: var(--critical); color: #fff; }
.chip-off { border-style: dashed; }

.state { font-size: 13px; font-weight: 500; color: var(--muted); }
.state::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: currentColor; margin-right: 7px; vertical-align: 1px; }
.state-on, .state-ack { color: var(--ok); }
.state-new { color: var(--caution); }
.state-true { color: var(--critical); }
.state-off, .state-false { color: var(--muted); }

/* ───── 관제 화면 골격 ───── */
.shell { display: grid; grid-template-columns: 224px minmax(0, 1fr); min-height: 100vh; }
.side {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column;
  background: var(--panel); border-right: 1px solid var(--line);
  padding: 20px 14px 16px;
}
.side .brand { padding: 0 8px 22px; }
.menu { display: flex; flex-direction: column; gap: 2px; }
.menu a {
  display: flex; align-items: center; justify-content: space-between;
  height: 40px; padding: 0 12px; border-radius: var(--radius);
  color: var(--muted); font-weight: 500; font-size: 14.5px;
}
.menu a:hover { color: var(--text); background: var(--panel-2); }
.menu a.is-active, .menu a.is-active:hover { color: #fff; background: var(--brand); font-weight: 600; }
.menu-badge { font-style: normal; font-family: var(--mono); font-size: 12px; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--caution); color: #14100c; display: inline-flex; align-items: center; justify-content: center; font-weight: 500; }
.side-foot { margin-top: auto; display: grid; gap: 12px; padding: 14px 8px 0; border-top: 1px solid var(--line); }
.side-user strong { display: block; font-size: 14px; font-weight: 600; }
.side-user span { display: block; font-size: 12.5px; color: var(--muted); }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 58px; padding: 0 24px; border-bottom: 1px solid var(--line); background: var(--bg);
  position: sticky; top: 0; z-index: 5;
}
.topbar h1 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.topbar-right { display: flex; align-items: center; gap: 18px; }
.clock { font-family: var(--mono); font-size: 14px; color: var(--text); }
.link-state { font-size: 13px; color: var(--muted); }
.link-state::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); margin-right: 7px; vertical-align: 1px; }
.link-state.is-live { color: var(--ok); }
.link-state.is-live::before { background: var(--ok); }
.link-state.is-down { color: var(--critical); }
.link-state.is-down::before { background: var(--critical); }
.content { padding: 20px 24px 40px; display: grid; gap: 16px; align-content: start; }

.alarm { padding: 11px 24px; font-weight: 600; font-size: 15px; display: flex; gap: 14px; align-items: center; }
.alarm.is-warning { background: var(--warning); color: #14100c; }
.alarm.is-critical { background: var(--critical); color: #fff; }
.alarm a { margin-left: auto; text-decoration: underline; font-weight: 500; font-size: 13.5px; }

/* 패널 */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 8px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.panel-head h2 { font-size: 14.5px; font-weight: 600; }
.panel-head h2 small { font-weight: 400; color: var(--muted); font-size: 13px; margin-left: 6px; }
.empty { padding: 36px 16px; text-align: center; color: var(--muted); }
.note { color: var(--muted); font-size: 13px; }
.panel > .note { padding: 0 16px 14px; }
.crumbs { display: flex; gap: 8px; font-size: 13.5px; color: var(--muted); }
.crumbs a:hover { color: var(--text); }

/* 요약 지표 */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: grid; gap: 6px; }
.stat-label { font-size: 13px; color: var(--muted); }
.stat-value { display: flex; align-items: baseline; gap: 6px; min-height: 32px; font-weight: 500; }
.stat-value b { font-family: var(--mono); font-size: 24px; font-weight: 500; line-height: 1.2; }
.stat-value small { color: var(--muted); font-size: 13px; font-weight: 400; }
.stat-value .chip { height: 28px; font-size: 14px; align-self: center; }

/* 카메라 월: 5열 고정 격자. 빈 채널은 연결 대기로 채운다. */
.wall-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.wall { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; padding: 12px; }
.tile { display: block; border: 1px solid var(--line); border-radius: 4px; background: var(--panel-2); overflow: hidden; min-width: 0; }
.tile:hover { border-color: var(--muted); }
.tile-empty:hover { border-color: var(--line); }
.tile-link { display: block; }
.tile-ctl { border-top: 1px solid var(--line); padding: 6px 8px; }
.cam-toggle { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.row-actions .cam-toggle, td .cam-toggle { justify-content: flex-start; }
.tile.is-disabled .tile-name { color: var(--muted); }
.crumbs-note { margin-left: 8px; font-size: 12.5px; }
.cust-name { font-weight: 600; }
.cust-name:hover { color: var(--accent); text-decoration: underline; }
.tile.lv-1 { border-color: var(--caution); }
.tile.lv-2 { border-color: var(--warning); }
.tile.lv-3 { border-color: var(--critical); }
.video { position: relative; aspect-ratio: 16 / 9; background: #06080b; overflow: hidden; }
.video img { width: 100%; height: 100%; object-fit: contain; }
.video img:not([src]) { visibility: hidden; }
.video-off { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 13px; background: #06080b; }
.video-tag { position: absolute; left: 6px; top: 6px; padding: 1px 6px; border-radius: 3px; background: #06080b; border: 1px solid var(--line); color: var(--text); font-family: var(--mono); font-size: 11.5px; }
.video-risk { position: absolute; left: 6px; bottom: 9px; max-width: calc(100% - 12px); display: flex; gap: 6px; padding: 1px 6px; border-radius: 3px; background: #06080b; border: 1px solid var(--line); color: var(--muted); font-size: 11.5px; white-space: nowrap; overflow: hidden; }
.video-risk b { font-weight: 500; color: var(--text); }
.video-lg { border-radius: 0 0 var(--radius) var(--radius); }
.video-lg .video-off { font-size: 14px; }
.tile-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: #06080b; }
.tile-bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width 0.25s linear; }
.tile-bar i.is-mid { background: var(--caution); }
.tile-bar i.is-high { background: var(--critical); }
.tile-meta { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 8px; }
.tile-ch { font-size: 11.5px; color: var(--muted); flex: none; }
.tile-name { flex: 1; min-width: 0; font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip-sm { height: 20px; min-width: 0; padding: 0 6px; font-size: 11.5px; }
.tile-empty { background: var(--panel); }
.tile-empty .video { background: #0a0d12; }
.tile-empty .tile-name { color: var(--muted); font-weight: 400; }
.video-wait { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: #56616f; font-size: 12px; }
.video-wait svg { width: 26px; height: 26px; }

.bar { height: 8px; background: var(--bg); border: 1px solid var(--line); border-radius: 2px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width 0.25s linear; }
.bar i.is-mid { background: var(--caution); }
.bar i.is-high { background: var(--critical); }

/* 이벤트 목록 */
.feed li + li { border-top: 1px solid var(--line); }
.feed a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 10px 14px; }
.feed a:hover { background: var(--panel-2); }
.feed-body strong { display: block; font-size: 14px; font-weight: 500; }
.feed-body strong b { font-weight: 500; color: var(--muted); margin-left: 4px; }
.feed-body small { display: block; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed time { font-size: 12px; color: var(--muted); text-align: right; line-height: 1.35; }
.feed-empty { padding: 28px 16px; text-align: center; color: var(--muted); font-size: 14px; }

/* 카메라 상세 */
.cam-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.cam-main, .cam-side { display: grid; gap: 16px; min-width: 0; }
.chart-wrap { padding: 12px 14px 10px; }
.chart-wrap canvas { width: 100%; height: 200px; display: block; }
.legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12.5px; color: var(--muted); }
.legend span::before { content: ""; display: inline-block; width: 10px; height: 3px; margin-right: 6px; vertical-align: 3px; background: currentColor; }
.legend .s0 { color: #dc4a4a; } .legend .s1 { color: #e0a13a; } .legend .s2 { color: #5b98e6; } .legend .s3 { color: #3aa675; } .legend .s4 { color: #b07be0; }
.legend span i { font-style: normal; color: var(--muted); }

.verdict { display: flex; align-items: center; gap: 14px; padding: 16px; border-bottom: 1px solid var(--line); }
.verdict-level { font-size: 26px; font-weight: 600; line-height: 1; min-width: 56px; }
.verdict-text { font-size: 14px; color: var(--muted); }
.verdict.lv-0 .verdict-level { color: var(--ok); }
.verdict.lv-1 .verdict-level { color: var(--caution); }
.verdict.lv-2 { background: var(--warning); } .verdict.lv-2 .verdict-level, .verdict.lv-2 .verdict-text { color: #14100c; }
.verdict.lv-3 { background: var(--critical); } .verdict.lv-3 .verdict-level, .verdict.lv-3 .verdict-text { color: #fff; }

.bars { padding: 6px 16px 12px; }
.bars li { display: grid; grid-template-columns: 104px minmax(0, 1fr) 44px; align-items: center; gap: 10px; padding: 7px 0; font-size: 13.5px; }
.bars li.is-sub span { color: var(--muted); }
.bars b { font-weight: 500; text-align: right; }
.metrics { display: grid; grid-template-columns: 1fr 1fr; }
.metrics > div { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.metrics > div:nth-child(odd) { border-right: 1px solid var(--line); }
.metrics > div:nth-last-child(-n+2) { border-bottom: 0; }
.metrics dt { font-size: 12.5px; color: var(--muted); }
.metrics dd { display: flex; align-items: baseline; gap: 5px; }
.metrics dd b { font-size: 20px; font-weight: 500; }
.metrics dd small { font-size: 12.5px; color: var(--muted); }

.kv > div { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 10px; padding: 10px 16px; font-size: 14px; }
.kv > div + div { border-top: 1px solid var(--line); }
.kv dt { color: var(--muted); }
.evidence { background: #06080b; border-radius: 0 0 var(--radius) var(--radius); }
.evidence img { width: 100%; height: auto; }
.review { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 16px 10px; }
.review + .note, .panel-head + .note { padding: 10px 16px 0; }

/* 표 */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-weight: 500; font-size: 12.5px; color: var(--muted); padding: 10px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 11px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table td small { display: block; font-size: 12.5px; color: var(--muted); }
.table .num { text-align: right; white-space: nowrap; }
.filters { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.filters label { display: flex; align-items: center; gap: 7px; }
select { height: 30px; padding: 0 8px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel-2); color: var(--text); font-size: 13px; }
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 14px; border-top: 1px solid var(--line); }

/* 관리자 화면: 폼 */
.menu-group { margin: 16px 12px 4px; font-size: 11.5px; color: var(--muted); }
.stack { display: grid; gap: 16px; }
.flash { padding: 10px 14px; border: 1px solid var(--ok); border-radius: var(--radius); color: var(--ok); font-size: 14px; }
.flash.is-fail { border-color: var(--critical); color: var(--critical); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 16px; }
.form-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fld { display: grid; gap: 6px; align-content: start; min-width: 0; font-size: 13px; color: var(--muted); }
.fld > span { font-weight: 500; }
.fld small { font-size: 12.5px; }
.fld-wide { grid-column: 1 / -1; }
textarea { font: inherit; color: inherit; }
.inp { width: 100%; height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel-2); color: var(--text); font-size: 14px; }
textarea.inp { height: auto; min-height: 68px; padding: 8px 10px; line-height: 1.5; resize: vertical; }
.inp:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.inp-num { width: 104px; font-family: var(--mono); }
.inp-time { width: 150px; }
.inp[type="time"]::-webkit-calendar-picker-indicator { filter: invert(0.7); }
.with-unit { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--text); font-size: 14px; font-weight: 400; }
.with-unit em { font-style: normal; color: var(--muted); font-size: 13px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text); cursor: pointer; }
.check input { width: 16px; height: 16px; margin: 0; accent-color: var(--brand); flex: none; }
.check-strong { font-size: 14px; font-weight: 600; color: var(--text); }
.checks { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.form-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 14px 16px; border-top: 1px solid var(--line); }
.form-foot-bare { border-top: 0; padding: 0; }
.form-foot-plain { border-top: 0; }
.row-actions { display: inline-flex; align-items: center; gap: 8px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border: 1px solid var(--line); border-radius: 4px; font-size: 12.5px; color: var(--text); white-space: nowrap; }
.qlist > li { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; padding: 16px; border-top: 1px solid var(--line); }
.qlist > li.is-off .fld, .qlist > li.is-off .qopts > :not(:first-child) { opacity: 0.5; }
.qlist > li.is-new { background: var(--panel-2); }
.qopts { display: grid; gap: 9px; align-content: start; font-size: 13px; color: var(--muted); }
.qopts strong { font-size: 14px; color: var(--text); font-weight: 600; }
.panel > .note-pad { padding: 12px 16px; }
.panel > .note-line { padding: 12px 16px 14px; border-top: 1px solid var(--line); }
.opt { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; padding: 16px; border-top: 1px solid var(--line); }
.opt-body { display: grid; gap: 8px; }
.opt-body small { font-size: 12.5px; color: var(--muted); }
.metrics-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.metrics-4 > div { border-bottom: 0; border-right: 1px solid var(--line); }
.metrics-4 > div:last-child { border-right: 0; }

/* 사용량 */
.toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.toolbar-label { font-size: 13px; color: var(--muted); margin-right: 4px; }
.toolbar-gap { flex: 1; }
.cell-bar { width: 22%; min-width: 120px; }
.split-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.hours { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 4px; height: 190px; padding: 16px 16px 10px; }
.hour { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.hour-bar { flex: 1; display: flex; align-items: flex-end; border-bottom: 1px solid var(--line); }
.hour-bar i { display: block; width: 100%; height: 0; background: var(--accent); border-radius: 2px 2px 0 0; }
.hour:hover .hour-bar i { background: var(--text); }
.hour span { height: 14px; font-size: 11px; line-height: 14px; color: var(--muted); text-align: center; }

/* 가동 기록: 칸 하나가 1시간 */
.upstrip { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 2px; width: 100%; min-width: 240px; max-width: 420px; }
.upstrip i, .uplegend i { display: block; height: 18px; border: 1px solid var(--line); border-radius: 2px; }
.upstrip i.is-full, .uplegend i.is-full { background: var(--ok); border-color: var(--ok); }
.upstrip i.is-part, .uplegend i.is-part { background: var(--caution); border-color: var(--caution); }
.upstrip i.is-down, .uplegend i.is-down { background: var(--critical); border-color: var(--critical); }
.upstrip i.is-na, .uplegend i.is-na { border-style: dashed; }
.panel > .uplegend { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 12px 16px 14px; border-top: 1px solid var(--line); }
.uplegend span { display: inline-flex; align-items: center; gap: 7px; }
.uplegend i { width: 12px; height: 12px; }

/* 일시 정지 */
.paused { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; background: rgba(6, 8, 11, 0.86); }
.paused-box { width: min(380px, 90vw); background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: grid; gap: 10px; text-align: center; }
.paused-box p { color: var(--muted); font-size: 14px; margin-bottom: 8px; }

/* ───── 로그인 · 오류 화면 (홈페이지는 site.css) ───── */
.eyebrow { color: var(--accent); font-weight: 600; font-size: 14px; }
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.login-box { width: min(400px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: grid; gap: 8px; }
.login-box h1 { font-size: 20px; font-weight: 600; margin: 18px 0 10px; letter-spacing: -0.01em; }
.login-box label { font-size: 13.5px; font-weight: 500; margin-top: 8px; }
.login-box input[type="text"], .login-box input[type="password"] { height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); font-size: 15px; }
.login-box input:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.login-box .btn { margin-top: 16px; }
.login-note { font-size: 13px; color: var(--muted); margin-top: 8px; }
.form-error { padding: 10px 12px; border: 1px solid var(--critical); border-radius: var(--radius); color: #b02a2a; font-size: 14px; background: #fdf1f1; }

/* 반응형 */
@media (max-width: 1500px) {
  .wall { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1180px) {
  .wall-layout, .cam-layout { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split-2 { grid-template-columns: minmax(0, 1fr); }
  .metrics-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metrics-4 > div:nth-child(2) { border-right: 0; }
  .metrics-4 > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 720px) {
  .form-grid, .form-grid-3, .form-grid-4, .qlist > li, .opt { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 14px; border-right: 0; border-bottom: 1px solid var(--line); }
  .side .brand { padding: 0; margin-right: auto; }
  .menu { flex-direction: row; order: 3; width: 100%; overflow-x: auto; }
  .menu a { white-space: nowrap; gap: 8px; }
  .side-foot { margin: 0; padding: 0; border: 0; grid-auto-flow: column; align-items: center; }
  .side-user span { display: none; }
  .topbar { position: static; padding: 0 16px; }
  .content { padding: 16px; }
  .wall { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .stats { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
  .stat-value b { font-size: 20px; }
  .clock { display: none; }
  .wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { .bar i, .tile-bar i { transition: none; } }
