/* PC 관제 화면 */
body.pc { min-width: 1200px; }
.top { position: sticky; top: 0; z-index: 30; height: 64px; display: flex; align-items: center; gap: 16px; padding: 0 24px; background: #fff; border-bottom: 1px solid var(--line-2); }
.logo { display: flex; align-items: baseline; gap: 8px; }
.logo b { font-size: 20px; font-weight: 900; letter-spacing: .04em; color: var(--p-navy); }
.logo span { font-size: 14px; font-weight: 700; color: var(--fg-3); }
.top .evname { font-size: 15px; font-weight: 700; color: var(--fg-2); padding-left: 16px; border-left: 1px solid var(--line); }
.top .evname small { display: block; font-size: 12px; font-weight: 500; color: var(--fg-4); }
.top .grow { flex: 1; }
.phase-seg button { min-width: 92px; }
.phase-seg button small { display: none; }
.top .clock { font-size: 14px; font-weight: 700; color: var(--fg-2); }

.shell { display: grid; grid-template-columns: 96px 1fr; min-height: calc(100vh - 64px); }
.nav { background: #fff; border-right: 1px solid var(--line-2); padding: 12px 8px; display: flex; flex-direction: column; gap: 4px; }
.nav a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 4px; border-radius: 12px; font-size: 12.5px; font-weight: 600; color: var(--fg-4); text-align: center; }
.nav a:hover { background: var(--bg-fill); }
.nav a.on { background: var(--bg-accent); color: var(--fg-accent); }
.nav .sep { height: 1px; background: var(--line-2); margin: 8px 6px; }
.main { padding: 20px 24px 120px; max-width: 1600px; }

.phase-banner { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.phase-banner h1 { font: var(--t-title); margin: 0; }
.phase-banner h1 em { font-style: normal; color: var(--fg-accent); }
.phase-banner p { margin: 0; color: var(--fg-4); font-size: 15px; }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 12px; }
.kpi { background: #fff; border-radius: 16px; padding: 16px 20px; }
.kpi .l { font-size: 14px; color: var(--fg-3); font-weight: 600; }
.kpi .v { font-size: 30px; font-weight: 800; letter-spacing: -.01em; margin-top: 2px; }
.kpi .v small { font-size: 16px; font-weight: 700; margin-left: 2px; color: var(--fg-3); }
.kpi .n { font-size: 13px; color: var(--fg-4); margin-top: 2px; }
.kpi.danger .v { color: var(--fg-hazard); } .kpi.warn .v { color: var(--fg-warn); } .kpi.pass .v { color: var(--fg-pass); }

.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 12px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 12px; }

.alist { display: flex; flex-direction: column; }
.arow { display: flex; gap: 12px; align-items: center; padding: 12px 4px; border: 0; background: none; text-align: left; width: 100%; border-radius: 10px; }
.arow + .arow { border-top: 1px solid var(--line-2); }
.arow:hover { background: var(--bg-fill); }
.arow.sel { background: var(--bg-accent); }
.arow .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--bg-fill); color: var(--fg-2); }
.arow .ic.critical { background: var(--bg-hazard); color: var(--fg-hazard); }
.arow .ic.high { background: var(--bg-warn); color: var(--fg-warn); }
.arow .grow { flex: 1; min-width: 0; }
.arow .t { display: block; font-weight: 700; font-size: 15px; }
.arow .m { display: block; }
.arow .m { font-size: 13px; color: var(--fg-4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.arow .r { text-align: right; font-size: 13px; color: var(--fg-4); }

.tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hint { font-size: 13px; color: var(--fg-4); display: flex; align-items: center; gap: 6px; }

/* 혼잡 분석 */
.zone-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.capinfo { display: grid; grid-template-columns: 120px 1fr; gap: 6px 12px; font-size: 14px; }
.capinfo dt { color: var(--fg-4); }
.capinfo dd { margin: 0; font-weight: 600; }
.bms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.bm { background: var(--bg-fill); border-radius: 14px; padding: 12px; border: 0; text-align: left; }
.bm.sel { background: var(--bg-accent); }
.bm .cam { margin-bottom: 10px; }
.bm b { display: block; font-size: 15px; }

/* 이벤트 */
.ev-layout { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 12px; align-items: start; }
.steps { display: flex; gap: 6px; margin: 4px 0 16px; }
.steps div { flex: 1; text-align: center; padding: 10px 4px; border-radius: 10px; background: var(--bg-fill); font-size: 13px; font-weight: 700; color: var(--fg-off); }
.steps div.done { background: var(--bg-accent); color: var(--fg-accent); }
.steps div.now { background: var(--p-navy); color: #fff; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.facts div { background: var(--bg-fill); border-radius: 12px; padding: 10px 12px; }
.facts small { display: block; color: var(--fg-4); font-size: 12.5px; }
.facts b { font-size: 15px; }
.log { list-style: none; margin: 0; padding: 0; }
.log li { display: grid; grid-template-columns: 64px 1fr; gap: 10px; padding: 8px 0; font-size: 14px; }
.log li + li { border-top: 1px solid var(--line-2); }
.log li span { color: var(--fg-4); font-variant-numeric: tabular-nums; }
.photo { aspect-ratio: 4 / 3; border-radius: 10px; background: linear-gradient(135deg, #dee2e6, #f1f3f5); display: grid; place-items: center; color: var(--fg-4); font-size: 13px; font-weight: 600; }

/* 설정 */
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; font-weight: 600; color: var(--fg-4); padding: 8px 10px; border-bottom: 1px solid var(--line); background: var(--bg-fill); }
table.t td { padding: 9px 10px; border-bottom: 1px solid var(--line-2); }
table.t td.c, table.t th.c { text-align: center; }
table.t th.cur, table.t td.cur { background: var(--bg-accent); }
.dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; vertical-align: -2px; }
.dot.full { background: var(--p-navy); }
.dot.half { background: linear-gradient(90deg, var(--p-navy) 50%, transparent 50%); box-shadow: inset 0 0 0 2px var(--p-navy); }
.dot.none { width: 14px; }
select.sel { height: 34px; border-radius: 8px; border: 1px solid var(--line); padding: 0 8px; font: inherit; font-size: 14px; background: #fff; }

/* 둘러보기 */
.tour { position: fixed; right: 24px; bottom: 24px; width: 380px; z-index: 60; background: var(--p-navy); color: #fff; border-radius: 20px; padding: 18px 20px; box-shadow: 0 12px 32px rgba(15,23,51,.35); }
.tour .k { font-size: 12.5px; font-weight: 700; color: var(--p-yellow); }
.tour h3 { margin: 4px 0 6px; font-size: 18px; }
.tour p { margin: 0 0 14px; font-size: 14.5px; line-height: 1.55; color: #dbe4ff; }
.tour .row { display: flex; gap: 8px; align-items: center; }
.tour .row .grow { flex: 1; }
.tour .btn { background: #fff; color: var(--p-navy); }
.tour .btn.gray { background: rgba(255,255,255,.14); color: #fff; }
.tour .bar { height: 4px; background: rgba(255,255,255,.18); border-radius: 2px; margin-bottom: 12px; overflow: hidden; }
.tour .bar i { display: block; height: 100%; background: var(--p-yellow); }
.tour-fab { position: fixed; right: 24px; bottom: 24px; z-index: 60; }
.flash { animation: flash 1.2s 2; }
@keyframes flash { 50% { box-shadow: 0 0 0 4px var(--p-yellow); } }

/* ---------- DEMO (실시간 시연) ---------- */
.phase-seg button.demo { color: var(--p-red-800); display: inline-flex; align-items: center; gap: 6px; margin-left: 6px; }
.phase-seg button.demo::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--p-red); animation: blink 1.2s infinite; }
.phase-seg button.demo.on { background: var(--p-red-800); color: #fff; }
.phase-seg button.demo.on::before { background: #fff; }
.dm-stage { position: relative; aspect-ratio: 16 / 9; background: #0b0f1a; border-radius: 14px; overflow: hidden; }
.dm-stage video, .dm-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.dm-osd { position: absolute; left: 12px; right: 12px; top: 10px; display: flex; gap: 8px; align-items: center; color: #fff; font: 700 13px/1 var(--font); text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.dm-osd .rec { width: 9px; height: 9px; border-radius: 50%; background: var(--p-red); animation: blink 1.2s infinite; }
.dm-osd .grow { flex: 1; }
.dm-ai { position: absolute; left: 12px; bottom: 12px; background: rgba(15,23,51,.82); color: #fff; font: 700 12.5px/1 var(--font); padding: 7px 10px; border-radius: 7px; }
.dm-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: #ced4da; }
.dm-empty b { color: #fff; font-size: 17px; } .dm-empty span { font-size: 13px; }
.dm-alert { position: absolute; left: 50%; top: 44px; transform: translateX(-50%); display: flex; gap: 10px; align-items: center; background: var(--p-orange); color: #fff; padding: 12px 18px; border-radius: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.35); animation: dmIn 260ms cubic-bezier(.2,.9,.25,1); }
.dm-alert.sos { background: var(--p-red-800); }
.dm-alert b { display: block; font-size: 18px; } .dm-alert span { font-size: 13px; opacity: .9; }
@keyframes dmIn { from { transform: translate(-50%, -12px); opacity: 0; } }
.dm-tools { display: flex; align-items: center; gap: 14px; margin-top: 12px; flex-wrap: wrap; }
.dm-tg { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--fg-2); }
.dm-tg input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--p-navy); }
.dm-tg input[type=range] { width: 110px; accent-color: var(--p-navy); }
.dm-steps { margin: 0; padding-left: 20px; font-size: 14.5px; line-height: 1.9; }
.dm-state { display: grid; grid-template-columns: 1fr 1.3fr 1.3fr; gap: 8px; }
.dm-state > div { background: var(--bg-fill); border-radius: 14px; padding: 12px; transition: background-color 200ms ease, color 200ms ease; }
.dm-state small { display: block; font-size: 12.5px; color: var(--fg-4); font-weight: 600; }
.dm-state b { font-size: 19px; }
.dm-state .ok { background: var(--bg-pass); color: var(--fg-pass); } .dm-state .bad { background: var(--bg-hazard); color: var(--fg-hazard); }
.dm-meter { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 12.5px; color: var(--fg-4); }
.dm-meter i { position: relative; flex: 1; height: 8px; border-radius: 4px; background: var(--bg-fill-2); }
.dm-meter em { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: var(--p-navy); transition: width 120ms linear; }
.dm-meter u { position: absolute; top: -4px; width: 2px; height: 16px; background: var(--p-red-800); }
.dm-ev { display: flex; gap: 12px; align-items: center; padding: 10px 0; }
.dm-ev + .dm-ev { border-top: 1px solid var(--line-2); }
.dm-ev img { width: 112px; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px; background: #0b0f1a; flex: none; }
.dm-ev .grow { flex: 1; min-width: 0; } .dm-ev b { display: block; } .dm-ev .sub { display: block; }

/* ---------- 날씨 ---------- */
.wx-now { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.wx-now div { background: var(--bg-fill); border-radius: 10px; padding: 8px 10px; }
.wx-now small { display: block; font-size: 11.5px; color: var(--fg-4); }
.wx-now b { font-size: 17px; } .wx-now em { font-style: normal; font-size: 11px; color: var(--fg-4); margin-left: 2px; }
.wx-bars { display: flex; gap: 4px; align-items: flex-end; height: 76px; margin-top: 12px; }
.wx-bars > div { flex: 1; position: relative; height: 100%; display: flex; align-items: flex-end; justify-content: center; }
.wx-bars i { position: absolute; bottom: 16px; width: 60%; border-radius: 3px 3px 0 0; }
.wx-bars b { position: absolute; top: 0; width: 6px; border-radius: 3px; background: #1098AD; }
.wx-bars span { font-size: 10.5px; color: var(--fg-4); }
.wx-leg { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 11.5px; color: var(--fg-3); margin-top: 6px; }
.wx-leg i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; }
.wx-leg i.r { background: #1098AD; width: 6px; border-radius: 3px; }
.wx-act { margin-top: 12px; border-radius: 12px; padding: 12px 14px; }
.wx-act.warn { background: var(--bg-warn); color: var(--fg-warn); } .wx-act.danger { background: var(--bg-hazard); color: var(--fg-hazard); }
.wx-act ul { margin: 6px 0 10px; padding-left: 18px; color: var(--fg-1); font-size: 13.5px; line-height: 1.7; }

/* ---------- 결과보고서 화면 ---------- */
.rv-sum { margin: 0; padding: 14px 16px 14px 34px; background: var(--bg-accent); border-radius: 14px; font-size: 15px; line-height: 1.75; }
.rv-sum.plain { background: var(--bg-fill); }
.phase-banner .seg { margin-right: 4px; }

.dm-snap { position: relative; border-radius: 12px; overflow: hidden; background: #0b0f1a; aspect-ratio: 16/9; }
.dm-snap img { width: 100%; height: 100%; object-fit: contain; display: block; }
.dm-snap .tag { position: absolute; left: 10px; top: 10px; background: rgba(15,23,51,.82); color: #fff; font: 700 12px/1 var(--font); padding: 6px 8px; border-radius: 6px; }
.dm-meter .muted { font-size: 12px; }
.kpi .v#dmHelmet, .kpi .v#dmSos { font-size: 24px; padding: 4px 0 3px; }

/* ---------- 조치 이력 ---------- */
.act-list { list-style: none; margin: 0 0 12px; padding: 0; }
.act-list li { display: grid; grid-template-columns: 52px 1fr auto; gap: 10px; align-items: start; padding: 9px 0; }
.act-list li + li { border-top: 1px solid var(--line-2); }
.act-list li > span.num { color: var(--fg-4); font-size: 13.5px; padding-top: 1px; }
.act-list b { display: block; font-size: 14.5px; } .act-list .sub { display: block; }
.act-ph { width: 34px; height: 34px; border-radius: 8px; background: var(--bg-fill-2); display: grid; place-items: center; color: var(--fg-3); }
.act-form { background: var(--bg-fill); border-radius: 12px; padding: 12px; }
.act-row { display: flex; gap: 8px; margin-top: 10px; align-items: center; }
.act-in { flex: 1; min-width: 0; height: 36px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; font: inherit; font-size: 14px; background: #fff; }
.act-chk { display: inline-flex; gap: 4px; align-items: center; font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.act-chk input { accent-color: var(--p-navy); }

/* 로고 */
.logo { align-items: center; }
.logo-img { height: 22px; width: auto; display: block; }

/* 히트맵 범례 */
.hl { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: flex-end; justify-content: space-between; width: 100%; }
.hl-t b { display: block; font-size: 14px; color: var(--fg-1); } .hl-t span { font-size: 12.5px; color: var(--fg-4); }
.hl-r { display: flex; gap: 20px; align-items: flex-end; flex-wrap: wrap; }
.hl-bar .ramp { display: block; width: 220px; height: 12px; border-radius: 6px; }
.hl-tk { display: flex; justify-content: space-between; width: 220px; font-size: 11.5px; color: var(--fg-3); margin-top: 3px; }
.hl-z { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--fg-3); flex-wrap: wrap; } .hl-z small { color: var(--fg-4); }
/* 출입구 분산 안내 */
.gg { margin-top: 14px; border-top: 1px solid var(--line-2); padding-top: 14px; }
.gg-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.gg-head b { font-size: 16px; } .gg-head .seg button { height: 30px; font-size: 13px; }
.gg-gates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.gg-gates > div { background: var(--bg-fill); border-radius: 12px; padding: 10px 12px; }
.gg-gates small { display: block; font-size: 12.5px; color: var(--fg-4); } .gg-gates b { font-size: 17px; }
.gg-gates i { display: block; height: 6px; border-radius: 3px; background: var(--bg-fill-2); margin-top: 6px; overflow: hidden; } .gg-gates em { display: block; height: 100%; background: currentColor; }
.gg-gates .danger { color: var(--fg-hazard); background: var(--bg-hazard); } .gg-gates .warn { color: var(--fg-warn); } .gg-gates .pass { color: var(--fg-pass); }
.gg-msg { margin-top: 10px; background: var(--bg-accent); border-radius: 12px; padding: 12px 14px; }
.gg-msg p { margin: 6px 0 10px; font-size: 15px; font-weight: 600; color: var(--fg-1); line-height: 1.6; }
.act-list li.sys { color: var(--fg-3); font-size: 13.5px; padding: 6px 0; }
.act-list li.act { background: transparent; }

/* 왼쪽 메뉴 고정 */
.nav { position: sticky; top: 64px; height: calc(100vh - 64px); align-self: start; overflow-y: auto; }


.hl-bar .ramp { background: linear-gradient(90deg, #FFF4E6, #FFD8A8, #FFA94D, #F76707, #D9480F); }
.hl-z .sw { display: inline-flex; align-items: center; gap: 5px; }
.hl-z .sw i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }

/* 헤더 날씨 */
.hdr-wx { border: 1px solid var(--line); background: #fff; border-radius: 999px; height: 34px; padding: 0 12px; font-size: 13.5px; font-weight: 700; color: var(--fg-2); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.hdr-wx.warn { background: var(--bg-warn); color: var(--fg-warn); border-color: transparent; }
.hdr-wx.danger { background: var(--bg-hazard); color: var(--fg-hazard); border-color: transparent; }
/* 현황 위쪽 상태 배너 */
.sbanner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 24px; align-items: center; background: #fff; border-radius: 20px; padding: 18px 22px; margin-bottom: 12px; }
.sb-title { display: flex; align-items: center; gap: 10px; margin: 2px 0 6px; }
.sb-title h1 { font: var(--t-title); margin: 0; }
.sb-state { height: 28px; font-size: 14px; padding: 0 10px; }
.sb-now { font-size: 14.5px; color: var(--fg-2); line-height: 1.6; }
.sb-now b { margin-right: 8px; color: var(--fg-1); }
.sb-now a { color: var(--fg-hazard); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.sb-now a[href^="#/crowd"] { color: var(--fg-warn); }
.sb-now i { font-style: normal; color: var(--fg-off); margin: 0 6px; }
.sb-head { display: flex; justify-content: space-between; font-size: 13px; color: var(--fg-4); font-weight: 600; margin-bottom: 18px; }
.sb-next b { color: var(--fg-accent); }
.sb-track { position: relative; height: 8px; background: var(--bg-fill-2); border-radius: 4px; }
.sb-run { position: absolute; top: 0; bottom: 0; background: var(--p-blue-100); border-radius: 4px; }
.sb-done { position: absolute; top: 0; bottom: 0; background: var(--p-navy); border-radius: 4px; }
.sb-dot { position: absolute; top: 50%; width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 2px solid var(--fg-accent); transform: translate(-50%, -50%); }
.sb-dot.past { background: var(--p-navy); border-color: var(--p-navy); }
.sb-nowm { position: absolute; top: -6px; bottom: -6px; width: 2px; background: var(--p-red); transform: translateX(-50%); }
.sb-nowm em { position: absolute; top: -20px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 11.5px; font-weight: 800; color: #fff; background: var(--p-red); padding: 1px 6px; border-radius: 4px; }
.sb-labels { position: relative; height: 32px; font-size: 11.5px; color: var(--fg-4); }
.sb-labels span { position: absolute; top: 6px; transform: translateX(-50%); text-align: center; line-height: 1.3; }
.sb-items { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12.5px; color: var(--fg-2); }
.sb-items .past { color: var(--fg-off); }

/* 헤더 한 줄 정리 */
.top { gap: 12px; padding: 0 18px; }
.logo span, .top .clock, .hdr-wx, .top .badge { white-space: nowrap; }
.top .evname { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-left: 12px; }
.top .evname small { overflow: hidden; text-overflow: ellipsis; }
.phase-seg button { min-width: 0; padding: 0 12px; }
.top .grow { min-width: 4px; }
/* 고정 메뉴 스크롤바 숨김 */
.nav { scrollbar-width: none; } .nav::-webkit-scrollbar { display: none; }
.nav a { white-space: nowrap; font-size: 12px; }

/* 설정 화면 */
.cfg td, .cfg th { white-space: nowrap; }
.cfg-in { width: 64px; height: 34px; border: 1px solid var(--line); border-radius: 8px; padding: 0 8px; font: inherit; font-size: 14px; background: #fff; }
.cfg-hold { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--fg-3); }
.cfg-chk { display: flex; gap: 12px; flex-wrap: wrap; font-size: 13.5px; } .cfg-chk input { accent-color: var(--p-navy); }
.tgl { position: relative; display: inline-block; width: 42px; height: 24px; vertical-align: middle; }
.tgl input { opacity: 0; width: 0; height: 0; position: absolute; }
.tgl i { position: absolute; inset: 0; background: var(--p-g4); border-radius: 12px; transition: background-color 150ms ease; cursor: pointer; }
.tgl i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform 200ms cubic-bezier(.2,.9,.25,1); box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.tgl input:checked + i { background: var(--p-navy); } .tgl input:checked + i::after { transform: translateX(18px); }
.tgl input:disabled + i { opacity: .6; cursor: default; }

.stage-now { background: var(--bg-accent); border-radius: 14px; padding: 12px 14px; }
.stage-now small { display: block; font-size: 12.5px; color: var(--fg-4); } .stage-now b { font-size: 22px; color: var(--fg-accent); margin-right: 8px; } .stage-now span { font-size: 13.5px; color: var(--fg-3); }

/* 상태 배너 고정 (스크롤하면 얇게) */
.sbanner { position: sticky; top: 64px; z-index: 25; box-shadow: 0 0 0 12px var(--bg-page); transition: padding 200ms ease; }
.sbanner.compact { padding: 10px 22px; grid-template-columns: minmax(0, 1fr) auto; box-shadow: 0 0 0 12px var(--bg-page), 0 6px 14px rgba(15,23,51,.08); }
.sbanner.compact .sb-title { margin: 0; } .sbanner.compact .sb-title h1 { font-size: 19px; }
.sbanner.compact .sb-l { display: grid; grid-template-columns: auto auto; column-gap: 16px; align-items: center; justify-content: start; }
.sbanner.compact .sb-l .eyebrow { grid-column: 1 / -1; font-size: 12px; }
.sbanner.compact .sb-now { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sbanner.compact .sb-track, .sbanner.compact .sb-labels, .sbanner.compact .sb-items { display: none; }
.sbanner.compact .sb-head { margin: 0; gap: 10px; }
.sbanner.compact .sb-head > span:first-child { display: none; }

/* 행사 설정 */
.ecf { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.ecf h3 { font-size: 15px; margin: 14px 0 8px; } .ecf h3:first-child { margin-top: 0; } .ecf h3 small { font-weight: 500; color: var(--fg-4); font-size: 12.5px; }
.ecf-f { display: grid; grid-template-columns: 130px 1fr; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 14px; }
.ecf-f > span { color: var(--fg-3); font-weight: 600; }
.ecf-f input:not([type=checkbox]) { height: 36px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; font: inherit; font-size: 14px; background: #fff; min-width: 0; }
.ecf-f.row { grid-template-columns: 130px auto 1fr; } .ecf-f.row small { color: var(--fg-4); font-size: 12.5px; }
.ecf-range { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ecf-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ecf-chip { display: inline-flex; align-items: center; gap: 4px; background: var(--bg-fill); border-radius: 999px; padding: 4px 6px 4px 12px; font-size: 13.5px; font-weight: 600; }
.ecf-chip button { border: 0; background: var(--bg-fill-2); width: 22px; height: 22px; border-radius: 50%; font-size: 14px; line-height: 1; color: var(--fg-3); }
.ecf-add { display: inline-flex; gap: 4px; } .ecf-add input { width: 90px; height: 30px !important; }
.ecf-timeline { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 6px 140px; } .ecf-timeline span { background: var(--bg-accent); color: var(--fg-accent); border-radius: 8px; padding: 4px 8px; font-size: 12.5px; }
.ecf-daily > div { display: grid; grid-template-columns: 110px 1fr 34px; gap: 6px; margin-bottom: 6px; }
.ecf-daily > div.new { grid-template-columns: 110px 1fr auto; }
.ecf-daily input { height: 34px; border: 1px solid var(--line); border-radius: 8px; padding: 0 8px; font: inherit; font-size: 14px; }
.ecf-daily button:not(.btn) { border: 0; background: var(--bg-fill); border-radius: 8px; font-size: 16px; color: var(--fg-3); }
.card-head .stage-now { padding: 8px 12px; } .card-head .stage-now b { font-size: 18px; }
.cfg-rules summary { cursor: pointer; display: flex; gap: 10px; align-items: baseline; list-style: none; } .cfg-rules summary::before { content: '▸'; color: var(--fg-4); } .cfg-rules[open] summary::before { content: '▾'; }

/* 모든 화면 위쪽 제목 줄 고정 */
.phase-banner { position: sticky; top: 64px; z-index: 20; background: var(--bg-page); margin: -20px -24px 12px; padding: 14px 24px 10px; }
.phase-banner h1 { display: flex; align-items: center; gap: 10px; }
.sb-now { font-size: 14px !important; color: var(--fg-2) !important; }
.sb-now b { margin-right: 8px; color: var(--fg-1); } .sb-now i { font-style: normal; color: var(--fg-off); margin: 0 6px; }
.sb-now a { color: var(--fg-hazard); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; } .sb-now a.warn { color: var(--fg-warn); }
/* 요약 카드 줄 + 오늘 일정 */
.kpis.kp5 { grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 2.3fr); }
.kpi-day .l .muted { font-weight: 500; font-size: 12px; margin-left: 4px; }
.kd-next { font-size: 15px; margin: 6px 0 16px; color: var(--fg-2); } .kd-next b { font-size: 20px; color: var(--fg-accent); margin-right: 4px; }
.kpi-day .sb-track { margin: 0 6px; }
.kd-items { display: flex; flex-wrap: wrap; gap: 2px 10px; margin-top: 10px; } .kd-items .past { color: var(--fg-off); text-decoration: line-through; }
.ecf-daily > div { grid-template-columns: 140px 1fr 34px; } .ecf-daily > div.new { grid-template-columns: 140px 1fr auto; }


/* 현황 카메라 카드: 평면도에서 고른 경보 */
.cam-ev { --c: #E8590C; --bg: #FFF4E6; margin-top: 12px; padding: 14px 16px 16px; border-radius: 14px; background: var(--bg); border: 1px solid color-mix(in srgb, var(--c) 22%, transparent); }
.cam-ev.critical { --c: #C92A2A; --bg: #FFF5F5; }
.cam-ev.medium { --c: #E67700; --bg: #FFF9DB; }
.cam-ev.done { --c: #868E96; --bg: var(--bg-fill); border-color: var(--line); }
.ce-top { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; }
.ce-top .grow { flex: 1; }
.ce-st { display: inline-flex; align-items: center; gap: 6px; color: #fff; background: var(--c); height: 22px; padding: 0 9px; border-radius: 11px; }
.ce-dot { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: ceBlink 1.2s ease-in-out infinite; }
@keyframes ceBlink { 50% { opacity: .25; } }
.ce-sev { color: var(--c); }
.ce-time { color: var(--fg-3); font-weight: 600; }
.ce-main { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.ce-main .grow { flex: 1; min-width: 0; }
.ce-main .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; background: #fff; color: var(--c); }
.ce-main .ic svg { width: 20px; height: 20px; }
.ce-main b { display: block; font-size: 17px; letter-spacing: -0.01em; }
.ce-loc { display: inline-flex; align-items: center; gap: 4px; margin-top: 2px; font-size: 13.5px; color: var(--fg-2, #495057); }
.ce-loc svg { width: 14px; height: 14px; color: var(--fg-3); }
.ce-btn { margin-top: 14px; height: 46px; }
.ce-btn.go { background: var(--c); border-color: var(--c); color: #fff; }
.ce-btn.light { background: #fff; }
@media (prefers-reduced-motion: reduce) { .ce-dot { animation: none; } }

/* 오늘 일정 카드 */
.kpi-day { display: flex; flex-direction: column; }
.kd-head { display: flex; align-items: baseline; gap: 8px; } .kd-head .grow { flex: 1; }
.kd-range { font-size: 12px; color: var(--fg-4); }
.kd-now { font-size: 12px; color: var(--fg-3); } .kd-now b { font-size: 13px; color: #C92A2A; margin-left: 2px; }
.kd-next { display: flex; align-items: baseline; gap: 8px; margin: 8px 0 0; font-size: 15px; color: var(--fg-2); }
.kd-next b { font-size: 22px; color: var(--fg-accent); letter-spacing: -0.01em; margin: 0; }
.kd-name { font-weight: 700; color: var(--fg-1, #212529); }
.kd-chip { align-self: center; font-size: 11.5px; font-weight: 700; color: var(--fg-accent); background: var(--p-blue-100, #E7F5FF); padding: 2px 8px; border-radius: 10px; }
.kd-left { font-size: 12.5px; color: var(--fg-3); }
.kd-steps { position: relative; height: 58px; margin: 14px calc(50% / var(--n)) 0; margin-left: 28px; margin-right: 28px; }
.kd-line { position: absolute; left: 0; right: 0; top: 7px; height: 4px; border-radius: 2px; background: var(--bg-fill-2); }
.kd-line i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 2px; background: var(--p-navy); }
.kd-step { position: absolute; top: 0; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; width: 84px; text-align: center; }
.kd-dot { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid var(--line); display: grid; place-items: center; }
.kd-dot svg { width: 11px; height: 11px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.kd-step.past .kd-dot { background: var(--p-navy); border-color: var(--p-navy); }
.kd-step.next .kd-dot { border-color: var(--fg-accent); box-shadow: 0 0 0 4px var(--p-blue-100, #E7F5FF); }
.kd-t { margin-top: 6px; font-size: 12px; font-weight: 700; color: var(--fg-2); line-height: 1.2; }
.kd-n { font-size: 11.5px; color: var(--fg-3); line-height: 1.25; word-break: keep-all; }
.kd-step.past .kd-t, .kd-step.past .kd-n { color: var(--fg-off, #ADB5BD); }
.kd-step.next .kd-t { color: var(--fg-accent); } .kd-step.next .kd-n { color: var(--fg-1, #212529); font-weight: 700; }

/* 상단 '지금' 상태 칩 */
.phase-banner > .grow { flex: 1; }
.phase-banner .sb-now { display: flex; align-items: center; gap: 10px; margin-left: 12px; padding-left: 16px; border-left: 1px solid var(--line); min-width: 0; }
.sbn-l { font-size: 12.5px; font-weight: 700; color: var(--fg-4); flex: none; }
.sbn-list { display: flex; flex-wrap: wrap; gap: 6px; }
.sbn { --c: #868E96; --bg: var(--bg-fill); display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px 0 10px; border-radius: 15px; background: var(--bg); font-size: 13.5px; color: var(--fg-1, #212529); text-decoration: none !important; white-space: nowrap; transition: filter .15s; }
a.sbn:hover { filter: brightness(.96); }
.sbn > i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex: none; }
.sbn b { font-weight: 700; }
.sbn em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--c); }
.sbn.danger { --c: #C92A2A; --bg: #FFF5F5; } .sbn.danger > i { animation: ceBlink 1.2s ease-in-out infinite; }
.sbn.warn { --c: #E8590C; --bg: #FFF4E6; }
.sbn.crowd { --c: #E8590C; --bg: #FFF4E6; }
.sbn.doing { --c: #1864AB; --bg: #E7F5FF; }
.sbn.info { --c: #1864AB; --bg: #E7F5FF; }
.sbn.ok { --c: #2B8A3E; --bg: #EBFBEE; }
.sbn-watch { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--fg-3); white-space: nowrap; }
.sbn-watch i { width: 7px; height: 7px; border-radius: 50%; background: #2B8A3E; box-shadow: 0 0 0 3px #D3F9D8; }
@media (prefers-reduced-motion: reduce) { .sbn.danger > i { animation: none; } }

/* 운영 단계 전용 메뉴: 다른 단계에선 비활성 */
.nav a.off { opacity: .38; cursor: not-allowed; }
.nav a.off:hover { background: none; }

/* 행사 설정: 평면도 */
.ecf-plan { align-items: start; }
.ecf-plan-box { position: relative; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #F8F9FA; max-width: 420px; }
.ecf-plan-box svg { display: block; width: 100%; height: auto; }
.ecf-plan-tag { position: absolute; left: 8px; top: 8px; font-size: 11.5px; font-weight: 700; color: var(--fg-3); background: rgba(255,255,255,.9); border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px; }
.ecf-plan-act { display: flex; align-items: center; gap: 10px; margin-top: 8px; flex-wrap: wrap; } .ecf-plan-act small { color: var(--fg-4); font-size: 12.5px; }
.ecf-plan-act label.btn { cursor: pointer; }

/* 결과보고서: 이벤트별 감지 화면 */
.rv-ev td { vertical-align: middle; }
.rv-th { width: 140px; border-radius: 6px; overflow: hidden; }
.rv-th .osd, .rv-th .demo-mark, .rv-th .ptz { display: none; }

/* 요약 줄: 날씨 칸 */
.kpis.kp6 { grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1fr) minmax(0, 2.2fr); }
.kpi-wx .wx-b { height: 20px; font-size: 11.5px; padding: 0 6px; margin-left: 4px; vertical-align: 1px; }
.kpi-wx .wx-v { display: flex; align-items: baseline; gap: 6px; }
.kpi-wx .wx-ic { font-size: 24px; align-self: center; }
.kpi-wx .wx-v small { font-size: 15px; color: var(--fg-3); font-weight: 600; }

.wxf { display: grid; grid-template-columns: repeat(6, 1fr); gap: 2px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line-2, #F1F3F5); text-align: center; }
.wxf small { display: block; font-size: 10.5px; color: var(--fg-4); }
.wxf b { display: block; font-size: 12px; line-height: 1.3; color: var(--fg-3); font-weight: 600; }
.wxf span { font-size: 11.5px; font-weight: 700; color: var(--fg-2); } .wxf em { font-style: normal; font-size: 9px; color: var(--fg-4); margin-left: 1px; }
.wxf .w span { color: #E67700; } .wxf .d span { color: #C92A2A; }

/* 날씨 칸: 2칸 너비, 현재 + 예보 */
.kpis.kp7 { grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 2fr) minmax(0, 2.2fr); }
.kp7 .kpi-wx { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); gap: 14px; align-items: center; }
.kp7 .kpi-wx .wxf { margin: 0; padding: 0 0 0 14px; border-top: 0; border-left: 1px solid var(--line-2, #F1F3F5); align-self: stretch; align-content: center; }
.kp7 .kpi-wx .wxf small { font-size: 11.5px; } .kp7 .kpi-wx .wxf b { font-size: 16px; margin: 4px 0; } .kp7 .kpi-wx .wxf span { font-size: 13px; }

/* 날씨 칸: 12시간 예보 그래프 */
.kp7 .kpi-wx .wx-fc { padding-left: 14px; border-left: 1px solid var(--line-2, #F1F3F5); align-self: stretch; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.wx-fc-h { display: flex; justify-content: space-between; align-items: center; font-size: 11.5px; color: var(--fg-3); font-weight: 600; margin-bottom: 2px; }
.wx-fc-h .lg { display: inline-flex; align-items: center; gap: 4px; font-weight: 500; color: var(--fg-4); }
.wx-fc-h .lg i { display: inline-block; width: 10px; height: 3px; border-radius: 2px; background: #1864AB; } .wx-fc-h .lg i.r { width: 6px; height: 8px; background: #74C0FC; margin-left: 6px; }
.wx-chart { width: 100%; height: auto; display: block; overflow: visible; }

/* 날씨 칸 v3: 위 = 현재, 아래 = 12시간 그래프 */
.kp7 .kpi-wx { display: flex; flex-direction: column; gap: 4px; }
.kpi-wx .wx-top { display: flex; align-items: center; gap: 6px; } .kpi-wx .wx-top .grow { flex: 1; }
.kpi-wx .wx-top .lg { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: var(--fg-4); }
.kpi-wx .wx-top .lg i { display: inline-block; width: 10px; height: 3px; border-radius: 2px; background: #1864AB; } .kpi-wx .wx-top .lg i.r { width: 6px; height: 8px; background: #74C0FC; margin-left: 4px; }
.kpi-wx .wx-row { display: flex; align-items: center; gap: 12px; }
.kpi-wx .wx-row .wx-v { display: flex; align-items: baseline; gap: 6px; font-size: 26px; font-weight: 800; }
.kpi-wx .wx-meta { font-size: 12.5px; color: var(--fg-3); line-height: 1.4; } .kpi-wx .wx-meta b { color: var(--fg-1, #212529); font-size: 14px; }

/* 요약 줄 v4: 단계 핵심 1 · 경보 2 · 날씨 2 · 일정 */
.kpis.kp8 { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1.8fr) minmax(0, 2.1fr); }
.kpi-al { display: flex; flex-direction: column; gap: 2px; }
.al-top { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; } .al-top .l { margin: 0; }
.al-cnt { font-size: 12px; color: var(--fg-3); flex: 1; } .al-cnt b.d { color: var(--fg-hazard); font-weight: 700; }
.al-all { font-size: 12px; color: var(--fg-3); text-decoration: none; }
.al-row { display: grid; grid-template-columns: 24px auto 1fr auto; align-items: center; gap: 8px; padding: 5px 0; border: 0; border-top: 1px solid var(--line-2, #F1F3F5); background: none; text-align: left; font: inherit; cursor: pointer; }
.al-row:hover { background: var(--bg-fill); }
.al-row .ic { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; background: #FFF4E6; color: #E8590C; } .al-row .ic.critical { background: #FFF5F5; color: #C92A2A; } .al-row .ic svg { width: 14px; height: 14px; }
.al-row b { font-size: 13.5px; } .al-row .z { font-size: 12px; color: var(--fg-4); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; } .al-row .status { font-size: 12px; }
.kp7 .kpi-wx { align-items: stretch; }
.kpis.kp8.kp9 { grid-template-columns: minmax(0, 2fr) minmax(0, 1.8fr) minmax(0, 2.1fr); }

/* ===== 요약 줄(벤또) 글자 위계 통일 =====
   제목 15/700 · 큰 값 28/800 · 본문 15/700 · 보조 13.5/500 · 꼬리표 12.5/700 · 눈금 12/500 */
.kpis .kpi { padding: 16px 20px; }
.kpis .kpi .l, .kpis .kd-head .l, .kpis .al-top .l, .kpis .wx-top .l { font-size: 15px; font-weight: 700; color: var(--fg-2); margin: 0; line-height: 24px; }
.kpis .kpi .v, .kpis .kpi-wx .wx-row .wx-v, .kpis .kd-next b { font-size: 28px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.15; }
.kpis .kpi .v small, .kpis .kpi-wx .wx-v small { font-size: 15px; font-weight: 700; color: var(--fg-3); }
.kpis .kpi .n, .kpis .kpi-wx .wx-meta, .kpis .kd-left, .kpis .al-row .z { font-size: 13.5px; font-weight: 500; color: var(--fg-3); }
.kpis .kpi-wx .wx-meta b { font-size: 15px; font-weight: 700; }
.kpis .kd-name, .kpis .al-row b { font-size: 15px; font-weight: 700; color: var(--fg-1, #212529); }
.kpis .al-cnt, .kpis .al-all, .kpis .wx-top .lg, .kpis .kd-range, .kpis .kd-now { font-size: 12.5px; font-weight: 500; color: var(--fg-4); }
.kpis .al-cnt b.d { font-size: 12.5px; } .kpis .kd-now b { font-size: 12.5px; }
.kpis .al-row .status, .kpis .kd-chip, .kpis .kpi-wx .wx-b { font-size: 12.5px; font-weight: 700; }
.kpis .kd-t { font-size: 12.5px; } .kpis .kd-n { font-size: 12px; }
.kpis .al-top, .kpis .wx-top, .kpis .kd-head { min-height: 24px; margin-bottom: 6px; align-items: center; }
.kpis .al-row { grid-template-columns: 28px auto 1fr auto; padding: 7px 0; gap: 10px; }
.kpis .al-row .ic { width: 28px; height: 28px; border-radius: 8px; } .kpis .al-row .ic svg { width: 16px; height: 16px; }
.kpis .kpi-wx .wx-ic { font-size: 26px; }
.card > .gg:first-child { margin-top: 0; border-top: 0; padding-top: 0; } .gg-head b { font-size: 17px; }

/* 전체 혼잡도 칸: 출입구 3곳 혼잡 단계 */
.kpi-cg .cg-gates { display: flex; flex-direction: column; gap: 3px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line-2, #F1F3F5); }
.kpi-cg .cg-gates div { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--fg-3); }
.kpi-cg .cg-gates b { font-size: 13.5px; font-weight: 700; }

/* 혼잡 분석: 하루 전체 → 구역별 분석 */
.cr-sec { font-size: 15px; font-weight: 800; color: var(--fg-2); margin: 4px 0 10px; display: flex; align-items: center; gap: 8px; }
.cr-sec::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.cr-day { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 12px; margin-bottom: 20px; align-items: stretch; }
.cr-day .card { display: flex; flex-direction: column; } .cr-day #totalChart { flex: 1; display: flex; align-items: center; }
.cr-day table { font-size: 13px; }
@media (max-width: 1100px) { .cr-day { grid-template-columns: 1fr; } }

/* 혼잡 분석: 구역별 분석 2줄 격자 */
.cr-zone { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 12px; align-items: stretch; }
.cr-zone > .card { min-width: 0; }
.cr-now { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 14px; color: var(--fg-3); } .cr-now b { color: var(--fg-1, #212529); font-size: 16px; } .cr-now .grow { flex: 1; }
.bms.bms-v { display: flex; flex-direction: column; gap: 10px; }
.bms-v .bm { display: grid; grid-template-columns: 150px 1fr; gap: 12px; align-items: center; text-align: left; width: 100%; }
.bms-v .bm-t { display: flex; flex-direction: column; gap: 3px; } .bms-v .bm-t b { font-size: 15px; } .bms-v .bm-t span { font-size: 13px; color: var(--fg-3); }
.bm-t em { font-style: normal; font-weight: 700; } .bm-t .lv-danger { color: var(--fg-hazard); } .bm-t .lv-busy { color: var(--fg-warn); }
@media (max-width: 1100px) { .cr-zone { grid-template-columns: 1fr; } }
.bm .osd, .bm .demo-mark, .bm .ptz, .bm .gap-mark { display: none; }

/* 상단 상태 줄: 전체 혼잡도 + 출입구 */
.sb-cg { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 17px; background: #fff; border: 1px solid var(--line); font-size: 13.5px; color: var(--fg-3); text-decoration: none !important; white-space: nowrap; }
.sb-cg .lbl { font-weight: 700; color: var(--fg-2); } .sb-cg > b { font-size: 16px; font-weight: 800; color: var(--fg-hazard); } .sb-cg .idx { font-size: 12.5px; }
.sb-cg > i { width: 1px; height: 16px; background: var(--line); margin: 0 2px; }
.sb-cg .g b { font-weight: 700; }

/* 긴급 알림 띠 (상태 줄 아래) */
.al-strip { display: flex; flex-direction: column; gap: 8px; margin: -4px 0 12px; }
.als { --c: #E8590C; --bg: #FFF4E6; display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 14px; border-radius: 14px; background: var(--bg); border: 1px solid color-mix(in srgb, var(--c) 30%, transparent); }
.als.critical { --c: #C92A2A; --bg: #FFF5F5; }
.als-ic { width: 32px; height: 32px; border-radius: 10px; background: var(--c); color: #fff; display: grid; place-items: center; animation: ceBlink 1.4s ease-in-out infinite; } .als-ic svg { width: 18px; height: 18px; }
.als-tag { font-size: 12.5px; font-weight: 800; color: var(--c); }
.als b { font-size: 16px; } .als-m { font-size: 13.5px; color: var(--fg-3); } .als .grow { flex: 1; }
.als .als-go { background: var(--c); border-color: var(--c); color: #fff; }
@media (prefers-reduced-motion: reduce) { .als-ic { animation: none; } }
/* 카메라 카드: 영상 설명 한 줄 */
.cam-cap { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 13.5px; color: var(--fg-3); }
.cam-cap .d { width: 8px; height: 8px; border-radius: 50%; background: #E8590C; } .cam-cap .d.critical { background: #C92A2A; } .cam-cap .d.done { background: #ADB5BD; }
.cam-cap b { color: var(--fg-1, #212529); font-size: 14.5px; } .cam-cap .grow { flex: 1; }
.cam-cap .lnk { border: 0; background: none; color: var(--fg-accent); font: inherit; font-weight: 700; cursor: pointer; }

.live-tag { display: inline-flex; align-items: center; gap: 5px; margin-left: 6px; font-size: 11.5px; font-weight: 800; color: #C92A2A; background: #FFF5F5; border-radius: 10px; padding: 2px 8px; vertical-align: 3px; letter-spacing: .04em; }
.live-tag i { width: 7px; height: 7px; border-radius: 50%; background: #E03131; animation: ceBlink 1.2s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .live-tag i { animation: none; } }
.cr-sec { font-size: 20px !important; font-weight: 800; color: var(--fg-1, #212529) !important; margin: 8px 0 12px !important; letter-spacing: -0.01em; }
.al-date { font-size: 13px; font-weight: 800; color: var(--fg-3); padding: 12px 4px 6px; } .alist .al-date:first-child { padding-top: 2px; }

/* DEMO: 현황과 같은 틀 */
.dm-st .dm-row { display: grid; grid-template-columns: 84px auto 1fr; align-items: baseline; gap: 8px; padding: 7px 0; border-top: 1px solid var(--line-2, #F1F3F5); }
.dm-st .dm-row span { font-size: 13.5px; color: var(--fg-3); } .dm-st .dm-row b { font-size: 15px; font-weight: 700; } .dm-st .dm-row small { font-size: 12px; color: var(--fg-4); text-align: right; }
.dm-st .dm-row.danger b { color: var(--fg-hazard); } .dm-st .dm-row.pass b { color: var(--fg-pass); }
.dm-guide .dm-steps { margin: 0; padding-left: 18px; font-size: 13.5px; color: var(--fg-3); line-height: 1.75; } .dm-guide .dm-steps b { color: var(--fg-1, #212529); margin-right: 4px; }
.kpi-al #dmList .alist { gap: 0; } .kpi-al #dmList .arow { padding: 6px 0; border-radius: 0; border-top: 1px solid var(--line-2, #F1F3F5); background: none; }
.kpi-al #dmList .arow .ic { width: 28px; height: 28px; } .kpi-al #dmList .arow .t { font-size: 15px; } .kpi-al #dmList .arow .m { font-size: 12.5px; }
.al-date { display: flex; align-items: baseline; gap: 6px; } .al-date b { font-size: 14px; color: var(--fg-1, #212529); } .al-date span { font-size: 12.5px; font-weight: 600; color: var(--fg-4); }
.ev-layout > .card:first-child { max-height: calc(100vh - 160px); overflow: auto; position: sticky; top: 140px; }

.cr-sec { font-size: 24px !important; margin: 14px 0 12px !important; }
.cr-zone { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.cr-zone #zChart { margin-top: 8px; }

/* 실시간 CCTV: 누르면 전체 보기 */
#camView, #cv, #evCam, #dmStage { cursor: zoom-in; position: relative; }
#camView::after, #cv::after, #evCam::after { content: '⤢ 전체 보기'; position: absolute; right: 10px; top: 36px; font-size: 12px; font-weight: 700; color: #fff; background: rgba(0,0,0,.45); padding: 3px 8px; border-radius: 8px; opacity: 0; transition: opacity .15s; pointer-events: none; }
#camView:hover::after, #cv:hover::after, #evCam:hover::after { opacity: 1; }
#camView:fullscreen, #cv:fullscreen, #evCam:fullscreen, #dmStage:fullscreen { cursor: zoom-out; background: #000; display: flex; align-items: center; justify-content: center; border-radius: 0; }
#camView:fullscreen .cam, #cv:fullscreen.cam, #evCam:fullscreen.cam, .cam:fullscreen { width: min(100vw, 177.78vh); height: auto; border-radius: 0; }
#camView:fullscreen::after, #cv:fullscreen::after, #evCam:fullscreen::after { content: none; }
#dmStage:fullscreen video, #dmStage:fullscreen canvas { width: 100%; height: 100%; object-fit: contain; }

/* 왼쪽 메뉴: 고른 메뉴 = 꽉 찬 아이콘 + 진한 남색 + 굵은 글자 (모바일 하단 탭과 같은 방식) */
.nav .ic-f { display: none; }
.nav a { color: #6B7684; font-weight: 500; }
.nav a .i { width: 24px; height: 24px; }
.nav a.on { background: none; color: var(--p-navy); font-weight: 800; }
.nav a.on .ic-o { display: none; } .nav a.on .ic-f { display: block; }
.nav a:hover { background: var(--bg-fill); }

/* 화면 머리 통일: 큰 제목 = 화면 이름(메뉴와 같음) + 단계·날짜 칩 */
.pb-t { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pb-t h1 { font: var(--t-title); font-size: 26px; font-weight: 800; margin: 0; letter-spacing: -0.02em; }
.pb-ctx { display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 12px; border-radius: 15px; background: #fff; border: 1px solid var(--line); font-size: 13.5px; color: var(--fg-3); white-space: nowrap; }
.pb-ctx b { color: var(--p-navy); font-weight: 800; }
.rv-day { min-width: 210px; }

/* 알림 처리 카드: 지금 단계 할 일 */
.flow-h { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; } .flow-h b { font-size: 16px; color: var(--p-navy); } .flow-h span { font-size: 13.5px; color: var(--fg-3); }
.flow-row { display: flex; gap: 8px; align-items: center; } .flow-row .btn { height: 46px; padding: 0 22px; font-size: 15.5px; } .flow-row .sel { height: 46px; min-width: 200px; }
.flow-go { background: var(--p-navy); color: #fff; border-color: var(--p-navy); font-weight: 800; }
.btn.block.flow-go { margin-top: 12px; height: 50px; font-size: 16px; } .flow-go:disabled { opacity: .4; }
.flow-fp { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--bg-fill); } .flow-fp > span { font-size: 13.5px; font-weight: 700; color: var(--fg-3); margin-right: 4px; }
.flow-done { margin-top: 6px; padding: 12px 14px; border-radius: 12px; background: #EBFBEE; color: #2B8A3E; font-weight: 700; font-size: 15px; } .flow-done.fp { background: var(--bg-fill); color: var(--fg-3); }

/* 히트맵 범례 v2: 세 칸 나란히 */
.hl2 { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1.2fr); gap: 0; width: 100%; border: 1px solid var(--line-2, #F1F3F5); border-radius: 12px; overflow: hidden; }
.hl-g { padding: 12px 16px; display: flex; flex-direction: column; gap: 8px; } .hl-g + .hl-g { border-left: 1px solid var(--line-2, #F1F3F5); }
.hl-h { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; } .hl-h b { font-size: 14.5px; color: var(--fg-1, #212529); } .hl-h span { font-size: 13px; color: var(--fg-3); }
.hl-heat .ramp { display: block; height: 12px; border-radius: 6px; background: linear-gradient(90deg, #FFF4E6, #FFD8A8, #FFA94D, #F76707, #D9480F); }
.hl-heat .hl-tk { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--fg-3); width: auto; margin: 0; }
.hl-sw { display: flex; gap: 14px; flex-wrap: wrap; } .hl-sw span { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--fg-2); }
.hl-sw .bar { width: 18px; height: 8px; border-radius: 4px; display: inline-block; }
.hl-sw .box { width: 18px; height: 13px; border-radius: 3px; border: 2px dashed; display: inline-block; }

/* 가독성: 보조 글자 최소 13.5px */
.kpis .kd-n { font-size: 13px !important; } .kpis .kd-t { font-size: 13.5px !important; }
.kpis .al-cnt, .kpis .al-all, .kpis .wx-top .lg, .kpis .kd-range, .kpis .kd-now, .kpis .al-cnt b.d, .kpis .kd-now b { font-size: 13.5px !important; }
.sbn-watch, .al-date span, .live-tag { font-size: 13px !important; }
.card-head .sub, .sub { font-size: 14px; }
.legend, .legend .sw { font-size: 13.5px; }
.zoomr small, .zv small { font-size: 12.5px; }

/* 히트맵 범례 v3: 한 줄 */
.hl3 { display: flex; align-items: center; gap: 0; width: 100%; flex-wrap: nowrap; overflow: hidden; }
.hl-i { display: flex; align-items: center; gap: 10px; padding: 4px 18px; white-space: nowrap; } .hl-i:first-child { padding-left: 0; } .hl-i + .hl-i { border-left: 1px solid var(--line); }
.hl-i b { font-size: 14px; color: var(--fg-1, #212529); margin-right: 2px; }
.hl-i .ramp { display: inline-block; width: 110px; height: 10px; border-radius: 5px; background: linear-gradient(90deg, #FFF4E6, #FFD8A8, #FFA94D, #F76707, #D9480F); }
.hl-i .lo { font-size: 13px; color: var(--fg-3); }
.hl-i .it { display: inline-flex; align-items: center; gap: 5px; font-size: 13.5px; color: var(--fg-2); }
.hl-i .bar { width: 16px; height: 7px; border-radius: 4px; display: inline-block; } .hl-i .box { width: 16px; height: 12px; border-radius: 3px; border: 2px dashed; display: inline-block; }

/* 구역별 분석: 왼쪽 = 평면도·원본 영상, 오른쪽 = 혼잡 지수·혼잡 구간 (여백 없이 나란히) */
.cr-zone { align-items: start; }
.cr-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.cr-col > .card { min-width: 0; }
.cr-bm .bms-v { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
/* 범례 한 줄: 좁은 칸에서도 들어가게 */
.hl-i { gap: 8px; padding: 4px 12px; } .hl-i .ramp { width: 76px; }
.hl-i .it { gap: 4px; } .hl-i b { font-size: 13.5px; }
.hl-i { gap: 6px; padding: 4px 10px; } .hl-i .ramp { width: 56px; } .hl-i .it { font-size: 13px; } .hl-i b { font-size: 13px; }

/* ===== 알림 대응 흐름 (지금 할 일 하나) ===== */
.ev-main { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.ev-facts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 14px 0 8px; font-size: 15px; font-weight: 700; }
.ev-facts small { display: block; font-size: 12.5px; font-weight: 600; color: var(--fg-4); }
.ev-desc2 { margin: 0 0 10px; font-size: 15px; color: var(--fg-2); line-height: 1.55; }
#apCard { border-left: 1px solid var(--line); padding-left: 20px; min-height: 100%; }
.fx-steps { list-style: none; margin: 0 0 22px; padding: 0; display: flex; }
.fx-steps li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; font-size: 14px; font-weight: 700; color: var(--fg-off); }
.fx-steps li + li::before { content: ''; position: absolute; top: 15px; right: 50%; width: 100%; height: 2px; background: var(--line); z-index: 0; }
.fx-steps li.done + li::before, .fx-steps li.done + li.now::before { background: var(--p-navy); }
.fx-steps i { position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 15px; font-weight: 800; background: var(--bg-fill); color: var(--fg-4); border: 2px solid #fff; }
.fx-steps li.done { color: var(--p-navy); } .fx-steps li.done i { background: var(--p-navy); color: #fff; }
.fx-steps li.now { color: var(--p-navy); } .fx-steps li.now i { background: #fff; color: var(--p-navy); border-color: var(--p-navy); box-shadow: 0 0 0 4px rgba(26, 43, 92, .12); }
.fx-steps li.fp { color: var(--fg-3); } .fx-steps li.fp i { background: var(--fg-3); color: #fff; }
.fx-q { margin: 0 0 12px; font-size: 20px; font-weight: 800; letter-spacing: -0.01em; display: flex; align-items: baseline; gap: 10px; }
.fx-q span { font-size: 14px; font-weight: 600; color: var(--fg-3); }
.fx-go { display: block; width: 100%; height: 56px; margin-top: 14px; border: 0; border-radius: 14px; background: var(--p-navy); color: #fff; font: inherit; font-size: 17px; font-weight: 800; cursor: pointer; }
.fx-go:hover { filter: brightness(1.12); } .fx-go:disabled { background: var(--bg-fill); color: var(--fg-off); cursor: default; filter: none; }
.fx-link { display: block; margin: 10px auto 0; padding: 8px 14px; border: 0; background: none; font: inherit; font-size: 15px; font-weight: 700; color: var(--fg-3); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.fx-fp { margin-top: 6px; padding: 12px; border-radius: 14px; background: var(--bg-fill); } .fx-fp > b { display: block; font-size: 14px; margin-bottom: 8px; color: var(--fg-2); }
.fx-fp > div { display: flex; flex-wrap: wrap; gap: 6px; }
.fx-chip { height: 40px; padding: 0 14px; border-radius: 20px; border: 1px solid var(--line); background: #fff; font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer; } .fx-chip:hover { border-color: var(--p-navy); color: var(--p-navy); }
.fx-who { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fx-who button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 14px; border-radius: 14px; border: 2px solid var(--line); background: #fff; font: inherit; text-align: left; cursor: pointer; }
.fx-who button b { font-size: 16px; } .fx-who button span { font-size: 13.5px; color: var(--fg-3); }
.fx-who button.on { border-color: var(--p-navy); background: #EEF2FA; } .fx-who button.on b { color: var(--p-navy); }
.fx-acts { display: flex; flex-direction: column; gap: 8px; }
.fx-acts button { display: flex; align-items: center; gap: 12px; height: 50px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--line); background: #fff; font: inherit; font-size: 16px; font-weight: 600; text-align: left; cursor: pointer; }
.fx-acts button i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 800; background: var(--bg-fill); color: var(--fg-3); }
.fx-acts button.on { border-color: #B2F2BB; background: #EBFBEE; color: #2B8A3E; cursor: default; } .fx-acts button.on i { background: #2B8A3E; color: #fff; }
.fx-acts button:not(.on):hover { border-color: var(--p-navy); }
.fx-own { display: flex; gap: 8px; margin-top: 8px; }
.fx-own input { flex: 1; min-width: 0; height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); font: inherit; font-size: 15px; }
.fx-own button { height: 46px; padding: 0 18px; border-radius: 12px; border: 0; background: var(--bg-fill); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.fx-end { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 16px; background: var(--bg-fill); }
.fx-end i { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 20px; font-weight: 800; background: var(--fg-3); color: #fff; flex: none; }
.fx-end b { display: block; font-size: 19px; } .fx-end span { font-size: 14.5px; color: var(--fg-3); }
.fx-end.ok { background: #EBFBEE; } .fx-end.ok i { background: #2B8A3E; } .fx-end.ok b { color: #2B8A3E; }
.fx-log { list-style: none; margin: 0; padding: 0; }
.fx-log li { display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 9px 0; font-size: 15px; color: var(--fg-2); border-top: 1px solid var(--line-2, #F1F3F5); }
.fx-log li:first-child { border-top: 0; } .fx-log .num { color: var(--fg-4); font-weight: 600; }
.fx-log li.act b { color: #2B8A3E; font-weight: 700; } .fx-log li.act .sub { margin-left: 8px; font-size: 13.5px; }
@media (max-width: 1100px) { .ev-main { grid-template-columns: 1fr; } #apCard { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 18px; } }

/* ===== 혼잡도: 평면도 | 그래프(절반) + 혼잡 구간 ===== */
.cr-z2 { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-template-rows: auto 1fr; align-items: stretch; }
.cr-z2 .cr-plan { grid-row: 1 / span 2; }
.cr-z2 .cr-bm .bms-v { display: flex; flex-direction: column; gap: 10px; }
.cr-z2 .bm { cursor: pointer; transition: box-shadow .15s; } .cr-z2 .bm:hover { box-shadow: 0 0 0 2px var(--p-navy) inset; }
.cm-ov { position: fixed; inset: 0; z-index: 200; background: rgba(15, 20, 30, .55); display: grid; place-items: center; padding: 24px; }
.cm-box { width: min(960px, 100%); background: #fff; border-radius: 20px; padding: 18px; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.cm-h { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; } .cm-h b { display: block; font-size: 19px; } .cm-h span { font-size: 14.5px; color: var(--fg-3); }
.cm-x { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--bg-fill); font-size: 17px; cursor: pointer; }
.cm-f { display: flex; gap: 8px; align-items: center; margin-top: 12px; } .cm-f .grow { flex: 1; }
.cm-h em { font-style: normal; font-weight: 700; } .cr-z2 .bm > div:first-child { position: relative; } .cr-z2 .bm > div:first-child::after { content: "▶"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 22px; text-shadow: 0 1px 6px rgba(0,0,0,.6); pointer-events: none; }
/* 상단 머리 고정: 화면을 바꿔도 머리 요소 자리가 그대로 */
html { scrollbar-gutter: stable; overflow-y: scroll; }
.phase-seg.vh { visibility: hidden; }
.top .clock { font-variant-numeric: tabular-nums; min-width: 178px; text-align: right; }
.top .hdr-wx { min-width: 176px; justify-content: center; }
.phase-banner { min-height: 64px; box-sizing: border-box; }
.phase-banner .pb-t { flex-wrap: nowrap; }

/* 보고서: 요약 → 안전 경보 → 혼잡 → 다음 행사 제안 */
.rv-sumcard { margin-top: 12px; }
.rv-ph { display: flex; gap: 8px; flex-wrap: wrap; } .rv-ph span { height: 32px; display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; border-radius: 16px; background: var(--bg-fill); font-size: 14px; color: var(--fg-2); } .rv-ph b { color: var(--p-navy); }
.rv-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 12px; align-items: stretch; }
.rv-row > .card, .rv-row > .stack > .card { min-width: 0; }
.rv-row:has(> .card:only-child) { grid-template-columns: 1fr; }
.rv-io { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px; align-items: center; }
.rv-plan { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; }
@media (max-width: 1100px) { .rv-row, .rv-io, .rv-plan { grid-template-columns: 1fr; } }

/* 혼잡도: 선택 시각 영상 (그래프를 누르면 바뀜) */
.cr-z2 { grid-template-rows: auto auto 1fr; } .cr-z2 .cr-plan { grid-row: 1 / span 3; }
.cr-selrow { display: grid; grid-template-columns: 150px 1fr; gap: 12px; align-items: center; width: 100%; text-align: left; cursor: pointer; }
.cr-selrow .bm-t { display: flex; flex-direction: column; gap: 3px; } .cr-selrow .bm-t b { font-size: 18px; } .cr-selrow .bm-t span { font-size: 13.5px; color: var(--fg-3); } .cr-selrow em { font-style: normal; font-weight: 700; }
.cr-selrow:hover { box-shadow: 0 0 0 2px var(--p-navy) inset; }
.cr-selrow > div:first-child { position: relative; } .cr-selrow > div:first-child::after { content: "▶"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 22px; text-shadow: 0 1px 6px rgba(0,0,0,.6); pointer-events: none; }

/* PTZ 조작 기록: 지금 고른 카메라 것만 */
.ptz-log { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--bg-fill); display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; color: var(--fg-2); }
.ptz-log b { font-size: 13px; color: var(--fg-3); margin-bottom: 2px; } .ptz-log em { font-style: normal; color: var(--fg-4); margin-right: 8px; font-variant-numeric: tabular-nums; }
/* 선택 시각: 영상 크게 (위 영상 · 아래 정보) */
.cr-selrow { grid-template-columns: 1fr; gap: 10px; padding: 10px; }
.cr-selrow > div:first-child { width: 100%; }
.cr-selrow .bm-t { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 0 4px 2px; }
.cr-selrow > div:first-child::after { font-size: 34px; }
.cr-selrow .osd, .cr-selrow .ptz { display: flex; }
/* 구역별 분석: 혼잡 구간은 맨 아래 한 줄 전체, 평면도 칸은 높이에 맞춰 가운데 */
.cr-z2 { grid-template-rows: auto 1fr auto; } .cr-z2 .cr-plan { grid-row: 1 / span 2; display: flex; flex-direction: column; }
.cr-z2 .cr-plan > .plan-wrap, .cr-z2 .cr-plan > div:has(> .plan-wrap) { margin: auto 0; }
.cr-z2 .cr-bm { grid-column: 1 / -1; }
.cr-z2 .cr-bm .bms-v { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 10px; }

/* 둘러보기: 화면 5개 · 요소 번호 */
.tour { width: 420px; padding: 16px 18px; }
.tour-dots { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 12px; }
.tour-dots button { height: 28px; padding: 0 10px; border-radius: 14px; border: 0; background: rgba(255,255,255,.12); color: #c5d0f0; font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.tour-dots button.done { color: #fff; } .tour-dots button.on { background: var(--p-yellow); color: var(--p-navy); }
.tour h3 { margin: 0 0 10px; font-size: 19px; }
.tour-items { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.tour-items li { display: flex; gap: 10px; align-items: flex-start; padding: 7px 8px; border-radius: 10px; cursor: pointer; }
.tour-items li:hover { background: rgba(255,255,255,.1); }
.tour-items li > b { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--p-yellow); color: var(--p-navy); font-size: 12.5px; font-weight: 800; margin-top: 1px; }
.tour-items strong { display: block; font-size: 14.5px; color: #fff; } .tour-items span { font-size: 13px; color: #c5d0f0; line-height: 1.4; }
#tourMarks { position: absolute; left: 0; top: 0; width: 0; height: 0; z-index: 55; pointer-events: none; }
#tourMarks .tm { position: absolute; border: 2px dashed rgba(250, 176, 5, .9); border-radius: 18px; transition: box-shadow .15s, border-color .15s; }
#tourMarks .tm b { position: absolute; left: -10px; top: -10px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--p-yellow); color: var(--p-navy); font-size: 14px; font-weight: 800; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
#tourMarks .tm.hi { border-style: solid; border-width: 3px; border-color: var(--p-yellow); box-shadow: 0 0 0 9999px rgba(15, 20, 40, .35); }

body { overflow-x: clip; }

/* 접근성 점검(WCAG 2.2) 반영 */
.pbtn.blank { visibility: hidden; }
.al-more, .kpi-more, a.more, .more { min-height: 28px; display: inline-flex; align-items: center; padding: 2px 6px; }
.ptzopt input[type=checkbox] { width: 20px; height: 20px; }
.ptzopt label { min-height: 32px; display: inline-flex; align-items: center; gap: 6px; }
.zv small { font-size: 12px; }
:focus-visible { outline: 3px solid #1864AB; outline-offset: 2px; }
g[role=button]:focus-visible { outline: none; } g[role=button]:focus-visible circle, g[role=button]:focus-visible rect { stroke: #1864AB; stroke-width: 3; }
.al-all, .lnk { min-height: 28px; display: inline-flex; align-items: center; padding: 2px 6px; }
.ptzopt input[type=checkbox], .dm-opts input[type=checkbox], #main input[type=checkbox] { width: 24px; height: 24px; }
#main input[type=range] { height: 24px; }

/* ===== CCTV 분할 보기 ===== */
.cv-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 12px; align-items: start; }
.cv-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.cv-info, .cv-page { font-size: 14px; color: var(--fg-3); font-weight: 600; }
.cv-rot { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; min-height: 32px; }
.cv-grid { display: grid; gap: 6px; background: #0b0f1a; padding: 6px; border-radius: 14px; }
.cv-grid.g1 { grid-template-columns: 1fr; } .cv-grid.g4 { grid-template-columns: repeat(2, 1fr); }
.cv-grid.g9 { grid-template-columns: repeat(3, 1fr); } .cv-grid.g16 { grid-template-columns: repeat(4, 1fr); }
.cv-tile { position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #141a28; cursor: pointer; outline: 2px solid transparent; outline-offset: -2px; }
.cv-tile .cv-v { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; }
.cv-grid.g9 .cv-v .ptz, .cv-grid.g16 .cv-v .ptz, .cv-grid.g16 .cv-v .demo-mark { display: none; }
.cv-grid.g16 .cv-v .osd { display: none; }
.cv-tile.sel { outline: 3px solid #FAB005; }
.cv-tile.al { outline: 3px solid #E03131; } .cv-tile.al.sel { outline-color: #FAB005; box-shadow: inset 0 0 0 6px rgba(224,49,49,.7); }
.cv-lab { position: absolute; left: 8px; bottom: 8px; padding: 3px 8px; border-radius: 6px; background: rgba(10,14,24,.72); color: #fff; font-size: 13px; pointer-events: none; }
.cv-al { position: absolute; right: 8px; top: 8px; padding: 3px 8px; border-radius: 6px; background: #C92A2A; color: #fff; font-size: 13px; font-weight: 800; pointer-events: none; }
.cv-grid.g16 .cv-lab, .cv-grid.g16 .cv-al { font-size: 11.5px; padding: 2px 6px; }
.cv-grid.g16 .cam .osd, .cv-grid.g9 .cam .osd { font-size: 10px; }
.cv-tile.empty { display: grid; place-items: center; cursor: default; background: repeating-linear-gradient(135deg, #121826 0 10px, #161d2d 10px 20px); }
.cv-tile.empty > div { text-align: center; color: #8C96A8; } .cv-tile.empty b { display: block; font-size: 14px; color: #B8C1D1; } .cv-tile.empty span { font-size: 12px; }
.cv-side .plan-wrap { border-radius: 12px; overflow: hidden; }
@media (max-width: 1200px) { .cv-layout { grid-template-columns: 1fr; } }
.cv-grid:not(.g16) .cv-lab { display: none; }
.cv-al { top: 34px; }
.cv-grid.g16 .cv-al { top: 6px; }

/* 모니터링 큰 칸 [전시장 평면도 | CCTV] */
.mv-seg button { font-size: 16px; font-weight: 800; padding: 0 16px; }
.mv-card .card-head { gap: 12px; flex-wrap: wrap; }
.mv-card .cv-bar { margin: 0 0 10px; }

/* DEMO: CCTV 분할 (C7만 연결) */
.cv-tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #0b0f1a; }
.cv-tile .cv-off { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 6px; color: #B8C1D1; font-size: 14px; }

/* DEMO 디지털 PTZ: 영상이 칸 밖으로 넘치지 않게 */
.dm-stage { overflow: hidden; } .dm-stage video, .dm-stage canvas { transition: transform .25s ease; }

/* 알림 화면: 목록 | 상세 구분 */
.al-panel { padding-top: 0; }
.al-panel-h { position: sticky; top: 0; z-index: 2; background: var(--bg-elevated, #fff); padding: 18px 0 10px; margin-bottom: 6px; border-bottom: 1px solid var(--line-2); }
.al-panel-h .card-head { margin-bottom: 10px; }
.al-filter { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--bg-fill); }
.al-filter button { flex: 1; height: 34px; border: 0; border-radius: 9px; background: none; font: inherit; font-size: 13.5px; font-weight: 700; color: var(--fg-3); cursor: pointer; white-space: nowrap; }
.al-filter button b { font-weight: 800; } .al-filter button[data-af="open"] b { color: #C92A2A; }
.al-filter button.on { background: #fff; color: var(--p-navy); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.al-none { margin: 24px 0; text-align: center; font-size: 15px; color: var(--fg-3); }

.al-detail-h { margin: 0 0 10px; font-size: 13.5px; font-weight: 800; color: var(--fg-3); letter-spacing: .02em; }

/* 알림 화면: 혼잡도처럼 바깥 구역 제목 (알림 목록 | 알림 상세) */
.ev-col { min-width: 0; }
.ev-layout > .ev-left { position: sticky; top: 140px; align-self: start; }
.ev-layout > .ev-left > .card { max-height: calc(100vh - 220px); overflow: auto; position: static; }
.ev-layout > .ev-col > .cr-sec { margin-top: 0 !important; }
.cr-n { font-size: 15px; font-weight: 700; color: var(--fg-3); }
.al-panel-h { padding-top: 16px; }

/* ===== 건설현장 헤더 (시각·날씨 가운데 · 오늘 사고/위험 징후/활성 알람 · 아이콘) ===== */
.top { gap: 14px; }
.hdr-center { display: flex; align-items: center; gap: 16px; }
.top .clock { display: inline-flex; align-items: baseline; gap: 10px; min-width: 0; }
.top .clock .ck-d { font-size: 15px; font-weight: 600; color: var(--fg-3); }
.top .clock .ck-t { font-size: 22px; font-weight: 700; color: var(--fg-1, #212529); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; min-width: 150px; }
.hdr-div { width: 1px; height: 28px; background: var(--line); }
.top .hdr-wx { min-width: 0; border: 0; background: none; height: auto; padding: 0; gap: 8px; align-items: baseline; }
.hdr-wx .wx-ic { font-size: 22px; align-self: center; } .hdr-wx .wx-c { font-size: 18px; color: var(--fg-1, #212529); } .hdr-wx .wx-t { font-size: 22px; color: #1971C2; font-weight: 800; } .hdr-wx .wx-w { font-size: 14px; color: var(--fg-3); }
.hdr-stats { display: flex; gap: 8px; }
.hst { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 10px 0 12px; border-radius: 10px; border: 1px solid; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.hst b { min-width: 24px; height: 24px; padding: 0 6px; border-radius: 7px; display: inline-grid; place-items: center; color: #fff; font-size: 13.5px; }
.hst svg { width: 16px; height: 16px; }
.hst.crit { background: #FFF5F5; border-color: #FFC9C9; color: #C92A2A; } .hst.crit b { background: #E03131; }
.hst.warn { background: #FFF9DB; border-color: #FFE066; color: #A04E00; } .hst.warn b { background: #F08C00; }
.hst.act { background: #E7F5FF; border-color: #A5D8FF; color: #1864AB; } .hst.act b { background: #1971C2; }
.hdr-icons { display: flex; gap: 2px; }
.hic { width: 40px; height: 40px; border: 0; border-radius: 10px; background: none; color: var(--fg-3); display: grid; place-items: center; cursor: pointer; }
.hic svg { width: 19px; height: 19px; } .hic:hover { background: var(--bg-fill); color: var(--fg-1, #212529); } .hic.out:hover { background: #FFF5F5; color: #C92A2A; }
.subbar { position: sticky; top: 64px; z-index: 29; height: 54px; display: flex; align-items: center; gap: 8px; padding: 0 18px; background: var(--bg-elevated, #fff); border-bottom: 1px solid var(--line-2); }
.subbar .sb-l { font-size: 14px; font-weight: 700; color: var(--fg-3); margin-right: 2px; }
.subbar .sel { height: 38px; min-width: 150px; font-size: 14.5px; }
.subbar #selSite { min-width: 240px; } .subbar .sel:disabled { opacity: .5; }
.subbar .phase-seg.vh { visibility: hidden; }
.phase-banner { top: 118px !important; }
.ev-layout > .ev-left { top: 196px; }
/* 알림 목록 = 오른쪽(알림 상세 · 대응 기록) 높이에 맞춰 아래까지, 넘치면 목록 안에서 스크롤 */
.ev-layout:has(> .ev-left) { align-items: stretch; }
.ev-layout > .ev-left { position: relative; top: auto; align-self: stretch; display: flex; flex-direction: column; }
.ev-layout > .ev-left > .card { flex: 1 1 auto; min-height: 420px; max-height: none; contain: size; }
.nav { top: 118px !important; height: calc(100vh - 118px) !important; }
@media (max-width: 1360px) { .hdr-wx .wx-w, .top .clock .ck-d { display: none; } }

/* ===== 다크 모드 (화면 색 반전 + 사진·영상은 원래 색) ===== */
html[data-theme="dark"] { filter: invert(.92) hue-rotate(180deg); background: #111; }
html[data-theme="dark"] img, html[data-theme="dark"] video, html[data-theme="dark"] .cam, html[data-theme="dark"] canvas.heat { filter: invert(1) hue-rotate(180deg); }

/* ===== 설정 (관리) ===== */
.adm { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; align-items: start; }
.ad-nav { position: sticky; top: 196px; background: #fff; border-radius: 16px; padding: 12px 10px; display: flex; flex-direction: column; gap: 10px; }
.ad-g p { margin: 4px 10px 6px; font-size: 12.5px; font-weight: 800; color: var(--fg-4); letter-spacing: .02em; }
.ad-g button { display: flex; align-items: center; gap: 10px; width: 100%; height: 42px; padding: 0 10px; border: 0; border-radius: 10px; background: none; font: inherit; font-size: 15px; font-weight: 600; color: var(--fg-2); cursor: pointer; text-align: left; }
.ad-g button:hover { background: var(--bg-fill); }
.ad-g button.on { background: #EEF3FD; color: var(--p-navy); font-weight: 800; }
.ai-ic { width: 18px; height: 18px; flex: none; }
.ad-main { min-width: 0; }
.ad-h { display: flex; align-items: flex-end; gap: 12px; margin: 2px 0 14px; }
.ad-h h2 { margin: 0; font-size: 22px; font-weight: 800; }
.ad-h p { margin: 4px 0 0; font-size: 14.5px; color: var(--fg-3); }
.ad-seg button { height: 36px; padding: 0 16px; font-size: 14.5px; }
.ad-stats { display: flex; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.ad-stat { flex: 1; min-width: 140px; background: #fff; border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.ad-stat span { font-size: 13.5px; color: var(--fg-3); font-weight: 600; }
.ad-stat b { font-size: 24px; font-weight: 800; }
.ad-stat.ok b { color: #237032; } .ad-stat.info b { color: #1864AB; } .ad-stat.mute b { color: var(--fg-3); } .ad-stat.warn b { color: #A04E00; } .ad-stat.bad b { color: #C92A2A; } .ad-stat.navy b { color: var(--p-navy); }
.ad-tool { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.ad-search { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; min-width: 300px; color: var(--fg-4); background: #fff; }
.ad-search input { border: 0; outline: 0; flex: 1; font: inherit; font-size: 14.5px; background: none; }
.ad-t td, .ad-t th { vertical-align: middle; }
.ad-t td { font-size: 14.5px; }
.ad-act { white-space: nowrap; text-align: right; }
.ad-act .btn { margin-right: 4px; height: 32px; padding: 0 10px; font-size: 13px; }
.ad-ib { width: 32px; height: 32px; border: 0; border-radius: 8px; background: none; color: var(--fg-3); display: inline-grid; place-items: center; cursor: pointer; vertical-align: middle; }
.ad-ib:hover { background: var(--bg-fill); color: var(--fg-1, #212529); }
.ad-ib.del:hover { background: #FFF5F5; color: #C92A2A; }
.ad-ib.sm { width: 26px; height: 26px; }
.ad-ib svg { width: 16px; height: 16px; }
.ab { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 12px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.ab-ok { background: #EBFBEE; color: #237032; } .ab-info { background: #E7F5FF; color: #1864AB; } .ab-mute { background: #F1F3F5; color: #5E676F; } .ab-warn { background: #FFF4E6; color: #A04E00; } .ab-bad { background: #FFF5F5; color: #C92A2A; } .ab-navy { background: #EEF3FD; color: var(--p-navy); } .ab-line { background: #fff; border: 1px solid var(--line); color: var(--fg-2); }
.ad-empty { text-align: center; color: var(--fg-3); padding: 24px 0 !important; font-size: 14.5px; }
.ad-sub { font-size: 13.5px; color: var(--fg-3); }
p.ad-sub { margin: 0 0 12px; }
.ad-ct { margin: 0 0 14px; font-size: 17px; font-weight: 800; }
.ad-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.ad-f { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.ad-f > span { font-size: 14px; font-weight: 700; color: var(--fg-2); }
.ad-f small { font-size: 13px; color: var(--fg-4); }
.ad-f.row { flex-direction: row; align-items: center; justify-content: space-between; }
.ad-in { height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: 15px; background: #fff; }
.ad-in:disabled { background: var(--bg-fill); color: var(--fg-3); }
.ad-err { color: #C92A2A !important; font-weight: 700; }
.ad-split { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 12px; align-items: start; }
.ad-tree { background: #fff; border-radius: 16px; padding: 12px; }
.ad-tree-h { display: flex; align-items: center; justify-content: space-between; padding: 2px 6px 10px; font-size: 15px; }
.tn { display: flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 8px; border-radius: 9px; cursor: pointer; font-size: 14.5px; }
.tn span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tn em { font-style: normal; font-size: 12.5px; color: var(--fg-4); }
.tn .ad-ib { opacity: 0; }
.tn:hover .ad-ib, .tn.on .ad-ib { opacity: 1; }
.tn:hover { background: var(--bg-fill); }
.tn.on { background: #EEF3FD; color: var(--p-navy); font-weight: 800; }
.tn-s { font-weight: 700; } .tn-z { padding-left: 26px; } .tn-e { padding-left: 30px; color: var(--fg-4); font-size: 13.5px; cursor: default; }
.ad-det-h { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 14px; }
.ad-det-h h3 { margin: 0; font-size: 20px; }
.ad-det-h p { margin: 4px 0 0; font-size: 14px; color: var(--fg-3); }
.danger-t { color: #C92A2A !important; }
.ad-kv { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.ad-kv div { background: var(--bg-fill); border-radius: 12px; padding: 12px 14px; }
.ad-kv small { display: block; font-size: 13px; color: var(--fg-4); margin-bottom: 2px; }
.ad-kv b { font-size: 15px; }
.ad-sub-h { display: flex; align-items: center; justify-content: space-between; margin: 6px 0 10px; font-size: 15px; }
.ad-zcards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 16px; }
.ad-zc { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font: inherit; cursor: pointer; text-align: left; }
.ad-zc:hover { border-color: var(--p-navy); }
.ad-zc span { font-size: 13.5px; color: var(--fg-3); }
.ad-evform > .card { box-shadow: none; border: 1px solid var(--line); margin: 6px 0 0 !important; }
.ad-proc { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ad-pc { display: flex; flex-direction: column; gap: 8px; }
.ad-pc.now { box-shadow: inset 0 0 0 2px var(--p-navy); }
.ad-pc-h { display: flex; align-items: center; gap: 8px; }
.ad-pc-h b { font-size: 18px; }
.ad-pc-d { margin: 0; font-size: 14px; color: var(--fg-3); }
.ad-pc-n { margin: 0 0 6px; font-size: 14px; color: var(--fg-2); }
.ad-pc-n b { color: var(--p-navy); font-size: 16px; }
.ad-bar { height: 10px; border-radius: 5px; background: var(--bg-fill); overflow: hidden; }
.ad-bar i { display: block; height: 100%; background: var(--p-navy); border-radius: 5px; }
.ad-risk { color: #E8590C; }
.ad-cam { display: inline-flex; align-items: center; gap: 8px; }
.ad-cam .ai-ic { color: var(--fg-3); }
.ad-reg { max-width: 620px; }
.ad-checks { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.ad-checks label { display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; min-height: 32px; }
.ad-checks em { font-style: normal; font-size: 12.5px; color: #A04E00; }
.ad-checks input { width: 20px; height: 20px; }
.ad-okbox { margin-top: 14px; padding: 16px; border-radius: 12px; background: #EBFBEE; }
.ad-okbox > b { display: block; margin-bottom: 10px; color: #237032; }
.ad-ai { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.ad-aic { display: flex; flex-direction: column; gap: 10px; }
.ad-aic.off { opacity: .75; }
.ad-aic-h { display: flex; align-items: flex-start; gap: 10px; justify-content: space-between; }
.ad-aic-h b { font-size: 16px; }
.ad-aic-h p { margin: 3px 0 0; font-size: 13.5px; color: var(--fg-3); }
.ad-rng { display: flex; flex-direction: column; gap: 4px; margin: 4px 0 10px; }
.ad-rng > span { font-size: 14px; color: var(--fg-2); }
.ad-rng > span b { color: var(--p-navy); }
.ad-rng input { width: 100%; accent-color: var(--p-navy); height: 24px; }
.ad-rng small { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--fg-4); }
.ad-rng em { font-style: normal; }
.ad-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.ad-zt th { font-size: 12.5px; white-space: nowrap; }
.ad-adv { max-width: 760px; }
.ad-adv-r { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line-2); }
.ad-adv-r:first-child { border-top: 0; }
.ad-adv-r b { font-size: 15.5px; }
.ad-adv-r p { margin: 3px 0 0; font-size: 13.5px; color: var(--fg-3); }
.ad-roles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.ad-role { background: var(--bg-fill); border-radius: 12px; padding: 12px 14px; }
.ad-role ul { margin: 8px 0 0; padding-left: 18px; font-size: 14px; color: var(--fg-2); line-height: 1.7; }
.ad-ov { position: fixed; inset: 0; z-index: 210; background: rgba(15,20,30,.5); display: grid; place-items: center; padding: 20px; }
.ad-dlg { width: min(520px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: #fff; border-radius: 18px; padding: 22px 22px 18px; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.ad-dlg h3 { margin: 0 0 16px; font-size: 19px; }
.ad-dlg-f { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }
.ad-note { margin: 0 0 14px; padding: 12px 14px; border-radius: 10px; background: var(--bg-fill); font-size: 14.5px; line-height: 1.5; }
.ad-note.warn { background: #FFF4E6; color: #A04E00; }
.ad-note.bad { background: #FFF5F5; color: #C92A2A; }
.btn.danger-btn { background: #C92A2A; border-color: #C92A2A; color: #fff; }
@media (max-width: 1200px) { .adm { grid-template-columns: 1fr; } .ad-nav { position: static; flex-direction: row; flex-wrap: wrap; } .ad-split, .ad-two, .ad-proc, .ad-roles { grid-template-columns: 1fr; } }

/* 헤더 폭: 날짜는 시각 위 작은 줄, 현장명은 줄이지 않음 */
.top .clock { flex-direction: column; align-items: flex-end; gap: 0; line-height: 1.15; }
.top .clock .ck-d { font-size: 12.5px; display: block !important; } .top .clock .ck-t { font-size: 21px; min-width: 0; }
.top .evname { flex: none; max-width: 300px; }
.subbar .sb-l.vh { visibility: hidden; }

/* 헤더: 날짜·시각 한 줄 · 날씨 전부 */
.top .clock { flex-direction: row !important; align-items: baseline !important; gap: 8px !important; }
.top .clock .ck-d { font-size: 14px !important; } .top .clock .ck-t { font-size: 20px !important; }
.top .evname { max-width: 230px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top .evname small { overflow: hidden; text-overflow: ellipsis; }
.hdr-wx { gap: 7px !important; } .hdr-wx .wx-t { font-size: 20px !important; } .hdr-wx .wx-c { font-size: 16px !important; } .hdr-wx .wx-w { font-size: 13.5px !important; display: inline !important; }
.hst { padding: 0 8px 0 10px; font-size: 13.5px; gap: 6px; }
.top .logo { display: flex; align-items: center; cursor: pointer; }
.lg-dark { display: none; }
html[data-theme="dark"] .lg-light { display: none; }
html[data-theme="dark"] .lg-dark { display: block; filter: invert(1) hue-rotate(180deg); }
/* 설정 탭: 누를 때 폭이 바뀌지 않게 */
.ad-seg button { min-width: 96px; }
.ad-seg button.on { font-weight: 800; } .ad-seg button:not(.on) { font-weight: 800; color: var(--fg-3); }

/* 헤더 폭 맞춤 (1440px에서 로그아웃까지 보이게) */
.top { gap: 10px !important; padding: 0 14px !important; }
.hic { width: 36px; height: 36px; }
.top .evname { max-width: 200px; }
.hdr-center { gap: 12px; }
.hdr-stats { gap: 6px; }
@media (max-width: 1400px) { .top .evname { display: none; } }

/* 작업자 관리 탭: 표 칸 높이를 같게 (탭을 바꿔도 화면이 줄거나 스크롤이 튀지 않게) */
.ad-wcard { min-height: 760px; }

/* AI 설정: 항목 아이콘 · 구역 카드 */
.ad-aiico { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 12%, #fff); }
.ad-aiico .ai-ic { width: 22px; height: 22px; }
.ad-aic-h { align-items: center !important; } .ad-aic-t { flex: 1; min-width: 0; }
.ad-aic.off .ad-aiico { filter: grayscale(1); opacity: .6; }
.ad-zgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; }
.ad-zcard-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; } .ad-zcard-h b { font-size: 16px; }
.ad-zrow { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line-2); font-size: 14.5px; }
.ad-zrow span { flex: 1; } .ad-zrow .ad-aiico { width: 32px; height: 32px; border-radius: 9px; } .ad-zrow .ad-aiico .ai-ic { width: 18px; height: 18px; }
.ad-zrow em { font-style: normal; font-size: 12.5px; color: var(--fg-4); } .ad-zrow.dis span { color: var(--fg-4); } .ad-zrow.dis .ad-aiico { filter: grayscale(1); opacity: .5; }
.ad-zrow .ad-aiico { flex: none !important; }

/* 설정: 아이콘 · 아바타 · 점 배지 */
.ad-stat { flex-direction: row !important; align-items: center; gap: 12px !important; }
.ad-stat > div { display: flex; flex-direction: column; gap: 2px; }
.ad-sti { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--bg-fill); color: var(--fg-2); }
.ad-sti .ai-ic { width: 21px; height: 21px; }
.ad-stat.ok .ad-sti { background: #EBFBEE; color: #237032; } .ad-stat.info .ad-sti { background: #E7F5FF; color: #1864AB; } .ad-stat.warn .ad-sti { background: #FFF4E6; color: #A04E00; } .ad-stat.bad .ad-sti { background: #FFF5F5; color: #C92A2A; } .ad-stat.navy .ad-sti { background: #EEF3FD; color: var(--p-navy); } .ad-stat.mute .ad-sti { background: #F1F3F5; color: #868E96; }
.ab-i { gap: 5px; } .ab .ai-ic { width: 13px; height: 13px; } .ab-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; }
.ad-av { flex: none; width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; background: color-mix(in srgb, var(--c) 15%, #fff); color: var(--c); font-size: 12.5px; font-weight: 800; letter-spacing: -0.03em; }
.ad-av.big { width: 56px; height: 56px; font-size: 18px; }
.ad-who { display: inline-flex; align-items: center; gap: 10px; }
.ad-tic { width: 32px; height: 32px; border-radius: 9px; display: inline-grid; place-items: center; background: var(--bg-fill); color: var(--fg-3); } .ad-tic .ai-ic { width: 16px; height: 16px; }
.ad-ptz { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; color: #1864AB; } .ad-ptz.off { color: var(--fg-3); } .ad-ptz .ai-ic { width: 16px; height: 16px; }
.ad-link { display: inline-flex; align-items: center; gap: 5px; } .ad-link .ai-ic { width: 15px; height: 15px; color: var(--fg-4); }
.tn .zt-작업구역 { color: #E8590C; } .tn .zt-안전구역 { color: #C92A2A; } .tn .zt-출입구 { color: #2B8A3E; } .tn.on .ai-ic { color: inherit; }
.ad-zc { flex-direction: row !important; align-items: center !important; gap: 10px !important; flex-wrap: wrap; }
.ad-zc > b { flex: 1; } .ad-zc > span:last-child { width: 100%; padding-left: 44px; margin-top: -6px; }
.ad-zci { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; } .ad-zci .ai-ic { width: 18px; height: 18px; }
.ad-zci.zt-작업구역 { background: #FFF4E6; color: #E8590C; } .ad-zci.zt-안전구역 { background: #FFF5F5; color: #C92A2A; } .ad-zci.zt-출입구 { background: #EBFBEE; color: #2B8A3E; } .ad-zci.zt-기타 { background: var(--bg-fill); color: var(--fg-3); }
.ad-pci { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; } .ad-pci .ai-ic { width: 21px; height: 21px; }
.ad-pci.ph-setup { background: #FFF4E6; color: #B35C00; } .ad-pci.ph-live { background: #EEF3FD; color: var(--p-navy); } .ad-pci.ph-teardown { background: #F3F0FF; color: #6741D9; }
.ad-me { display: flex; align-items: center; gap: 14px; padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--line-2); }
.ad-me > div > b { display: block; font-size: 18px; margin-bottom: 4px; } .ad-me > div > span { font-size: 14px; color: var(--fg-3); display: inline-flex; align-items: center; gap: 6px; }
.ad-av { display: inline-grid !important; place-items: center; text-align: center; line-height: 1; padding: 0; }

/* 역할별 권한 카드 아이콘 */
.ad-role-h { display: flex; align-items: center; gap: 10px; }
.ad-role-h b { font-size: 16px; }
.ad-rci { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: #fff; } .ad-rci .ai-ic { width: 20px; height: 20px; }
.ad-role.r-bad .ad-rci, .ad-role.r-bad b { color: #C92A2A; } .ad-role.r-navy .ad-rci, .ad-role.r-navy b { color: var(--p-navy); }
.ad-role.r-info .ad-rci, .ad-role.r-info b { color: #1864AB; } .ad-role.r-ok .ad-rci, .ad-role.r-ok b { color: #237032; }

/* 보고서 화면: 현장 보고서 양식 목록 */
.rv-forms { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 10px; }
.rv-form { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 16px; background: #fff; text-decoration: none; color: inherit; border: 1px solid transparent; }
.rv-form:hover { border-color: var(--p-navy); }
.rv-fi { flex: none; width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 12%, #fff); }
.rv-fi svg { width: 24px; height: 24px; }
.rv-ft { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; } .rv-ft b { font-size: 16px; } .rv-ft small { font-size: 13px; color: var(--fg-3); } .rv-ft em { font-style: normal; font-size: 13px; color: var(--fg-2); }
.rv-fgo { flex: none; font-size: 13.5px; font-weight: 700; color: var(--p-navy); }

/* 알림 목록: 고른 알림 = 흰 카드 + 남색 테두리 (줄 위치는 그대로) */
.al-panel .arow { padding: 12px 10px; border-radius: 12px; position: relative; transition: background .12s; }
.al-panel .arow.sel { background: #EEF2FA; box-shadow: none; z-index: 1; }
.al-panel .arow.sel:hover { background: #E6ECF7; }
.al-panel .arow.sel, .al-panel .arow.sel + .arow { border-top-color: transparent; }
.al-panel .arow.sel .t { color: var(--p-navy); }
.al-panel .arow.sel::before { content: ''; position: absolute; left: 0; top: 12px; bottom: 12px; width: 4px; border-radius: 0 4px 4px 0; background: var(--p-navy); }
.al-panel .arow.sel .ic { box-shadow: 0 0 0 2px #fff; }
.al-panel .alist { padding: 2px 6px 2px 2px; }

/* 설정: 왼쪽 세부 설정 메뉴 위치 고정 — 탭·스크롤과 상관없이 같은 자리 (아래 여백 때문에 밀려 올라가지 않게) */
@media (min-width: 1201px) {
  .adm { min-height: calc(100vh - 236px); margin-bottom: -60px; }
  .ad-nav { top: 196px; max-height: calc(100vh - 212px); overflow-y: auto; }
}

/* 보고서 > 현장 보고서 양식: 한 목록 (양식 · 코드 · 가능 기간 · 미리보기) */
.rv-flist { padding: 6px 20px; }
.rv-frow { display: flex; align-items: center; gap: 14px; padding: 14px 0; }
.rv-frow + .rv-frow { border-top: 1px solid var(--line-2); }
.rv-frow .rv-fi { width: 40px; height: 40px; flex: none; }
.rv-frow .rv-ft { flex: 1; min-width: 0; }
.rv-fn { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rv-fn b { font-size: 15px; }
.rv-fc { font-size: 12px; color: var(--fg-4); font-weight: 600; }
.rv-fp { font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--bg-fill); color: var(--fg-3); }
.rv-fp.all { background: #EEF2FA; color: var(--p-navy); }
.rv-frow p { margin: 3px 0 0; font-size: 13px; color: var(--fg-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-frow .rv-fgo { flex: none; }
.rv-frow.off .rv-fi, .rv-frow.off .rv-ft { opacity: .45; }
.rv-fna { flex: none; font-size: 12.5px; color: var(--fg-4); padding: 0 8px; }

/* UX/UI 점검(a11y-audit · design-qa) 반영 */
.hst.warn b { background: #C2410C; }                                   /* 1.4.3: 흰 숫자 대비 2.48 → 5:1 이상 */
.top .logo { min-height: 40px; display: inline-flex; align-items: center; }   /* 2.5.8: 누르는 곳 22px → 40px */
.rv-frow.off .rv-fi { opacity: 1; filter: grayscale(1); }
.rv-frow.off .rv-ft { opacity: 1; }
.rv-frow.off .rv-fn b, .rv-frow.off .rv-fc, .rv-frow.off p, .rv-frow.off .rv-fp { color: #6B7280; }   /* 흐림은 투명도 대신 회색 글자 (대비 4.5:1 유지) */
.rv-fp { font-size: 12px; }
.ad-av { color: color-mix(in srgb, var(--c) 68%, #000) !important; }   /* 이름 동그라미 글자 대비 3.7 → 4.5 이상 */
.ad-aic.off { opacity: 1; }
.ad-aic.off .ad-aic-t p { color: #6B7280; }
.ad-search input { align-self: stretch; }
.rv-frow.off .rv-fp { color: #555C66; }
.ad-nav { scrollbar-width: thin; }
@media (max-width: 1280px) { .top { gap: 10px; padding: 0 16px; } .hdr-stats { gap: 4px; } }   /* 1200px에서 맨 오른쪽 로그아웃 단추가 7px 잘리던 것 */
@media (max-width: 1280px) { .hst { padding: 0 6px 0 8px !important; gap: 5px !important; font-size: 13px !important; } .hst svg { display: none; } .top .clock .ck-d { display: none; } }

/* 머리글 숫자에서 들어온 알림 거름 표시 */
.al-chip { display: flex; align-items: center; gap: 6px; margin: 8px 0 4px; padding: 8px 10px; border-radius: 10px; background: #EEF2FA; color: var(--p-navy); font-size: 13.5px; }
.al-chip b { font-weight: 800; }
.al-chip button { margin-left: auto; border: 0; background: #fff; color: var(--p-navy); font: inherit; font-size: 13px; font-weight: 700; border-radius: 8px; padding: 0 10px; height: 30px; cursor: pointer; }
/* 처리 끝난 뒤 다음 알림으로 */
.fx-next { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font: inherit; text-align: left; cursor: pointer; }
.fx-next:hover { background: #F6F8FC; border-color: var(--p-navy); }
.fx-next span { font-size: 12.5px; color: var(--fg-3); white-space: nowrap; }
.fx-next b { flex: 1; min-width: 0; font-size: 14.5px; color: var(--p-navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-next i { font-style: normal; font-size: 20px; color: var(--p-navy); }
.fx-allok { margin: 14px 0 0; font-size: 13.5px; color: #2B8A3E; font-weight: 700; }

.cr-key { margin-left: 8px; font-size: 12px; font-weight: 600; color: var(--fg-4); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; vertical-align: middle; }
.als .als-go { background: var(--p-navy); border-color: var(--p-navy); }   /* 실행 단추는 남색으로 통일 (빨강은 상태 표시만) */
/* 머리글 아이콘: 올리면 바로 이름 표시 (브라우저 기본 툴팁은 1초 늦게 뜸) */
.hic { position: relative; }
.hic:hover::after, .hic:focus-visible::after { content: attr(aria-label); position: absolute; top: calc(100% + 6px); right: 0; z-index: 50; background: #1A2B5C; color: #fff; font-size: 12.5px; font-weight: 600; line-height: 1; padding: 7px 9px; border-radius: 7px; white-space: nowrap; pointer-events: none; box-shadow: 0 4px 12px rgba(15,23,51,.18); }
.rv-ev td:last-child .btn { white-space: nowrap; }

/* 고른 구역에 알림이 없을 때 */
.al-empty { text-align: center; padding: 56px 24px; max-width: 560px; margin: 24px auto; }
.al-empty-ic { width: 56px; height: 56px; border-radius: 50%; display: inline-grid; place-items: center; background: #EBFBEE; color: #2B8A3E; margin-bottom: 12px; }
.al-empty-ic svg { width: 26px; height: 26px; }
.al-empty h2 { margin: 0 0 6px; font-size: 19px; } .al-empty p { margin: 0 0 18px; color: var(--fg-3); }

/* 둘러보기 단추: 머리글 아이콘 줄 */
.hic.hic-tour { width: auto; padding: 0 12px 0 10px; gap: 6px; display: inline-flex; align-items: center; font: inherit; font-size: 13.5px; font-weight: 700; color: var(--p-navy); background: #EEF2FA; margin-right: 4px; }
.hic.hic-tour:hover { background: #E2E9F7; color: var(--p-navy); }
.hic.hic-tour.on { background: var(--p-navy); color: #fff; }
.hic.hic-tour:hover::after { display: none; }
@media (max-width: 1360px) { .hic.hic-tour span { display: none; } .hic.hic-tour { padding: 0; width: 40px; justify-content: center; } .hic.hic-tour:hover::after { display: block; } }
@media (max-width: 1240px) { .hic, .hic.hic-tour { width: 34px; height: 34px; } .hdr-icons { gap: 0; } }   /* 1200px에서 둘러보기 단추가 들어갈 자리 */

/* 보고서 기간: 큰 제목 + 일간·주간·월간 + 한 줄 달력 */
.rv-banner .pb-t { align-items: baseline; gap: 10px; flex-wrap: wrap; }
.rv-ptitle { font-size: 22px; font-weight: 800; color: var(--p-navy); letter-spacing: -0.02em; }
.rv-psub { font-size: 14.5px; font-weight: 600; color: var(--fg-3); }
.rv-pchip { font-size: 13px; font-weight: 700; color: var(--fg-2); background: var(--bg-fill); border-radius: 999px; padding: 3px 10px; }
.rv-strip { display: flex; align-items: stretch; gap: 8px; margin: 0 0 14px; }
.rv-nav { flex: none; width: 40px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-size: 22px; color: var(--fg-2); cursor: pointer; }
.rv-nav:hover { border-color: var(--p-navy); color: var(--p-navy); }
.rv-cells { flex: 1; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; }
.rv-cell { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font: inherit; cursor: pointer; }
.rv-cell .w { font-size: 12px; font-weight: 600; color: var(--fg-4); }
.rv-cell b { font-size: 17px; font-weight: 800; color: var(--fg-1, #212529); }
.rv-cell em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--fg-4); }
.rv-cell.has em { color: #C92A2A; }
.rv-cell.sun .w { color: #E03131; } .rv-cell.sat .w { color: #1C7ED6; }
.rv-cell:hover { border-color: var(--p-navy); }
.rv-cell.on { background: var(--p-navy); border-color: var(--p-navy); }
.rv-cell.on .w, .rv-cell.on b, .rv-cell.on em { color: #fff; }
.rv-strip.month .rv-cell b { font-size: 15px; } .rv-strip.month .rv-cell .w { display: none; }
.rv-strip.week .rv-cell b { font-size: 14px; }

/* AI 설정: 감지 항목 묶음 제목 · 위험구역 지정 안내 */
.ad-aig { margin: 18px 0 8px; font-size: 14px; font-weight: 800; color: var(--fg-2); }
.ad-aig:first-of-type { margin-top: 6px; }
.ad-aizone { margin-top: 6px; border: 0; background: #FFF5F5; color: #C92A2A; font: inherit; font-size: 12.5px; font-weight: 700; border-radius: 8px; padding: 4px 8px; cursor: pointer; }
.ad-aizone:hover { background: #FFE3E3; }

/* 보고서 기간 한 줄: 일간·주간·월간 | ‹ 날짜 칸 › | 오늘 */
.rv-period { display: flex; align-items: center; gap: 14px; padding: 10px 14px; margin: 0 0 14px; }
.rv-period .seg { flex: none; }
.rv-period .rv-strip { flex: 1; margin: 0; min-width: 0; }
.rv-period .rv-cells { display: flex; gap: 6px; justify-content: center; overflow-x: auto; }
.rv-period .rv-cell { flex: none; width: 64px; padding: 6px 2px; gap: 0; border-radius: 10px; }
.rv-period .rv-cell b { font-size: 16px; line-height: 1.2; }
.rv-period .rv-cell .w { font-size: 11.5px; }
.rv-period .rv-cell em { min-height: 15px; font-size: 11.5px; }
.rv-period .rv-strip.week .rv-cell { width: 92px; }
.rv-period .rv-strip.month .rv-cell { width: 54px; padding: 9px 2px; }
.rv-period .rv-strip.month .rv-cell .w { display: none; }
.rv-period .rv-nav { width: 34px; height: 54px; align-self: center; }
.rv-period .rv-today { flex: none; }
.rv-cell.has:not(.on) b { color: var(--p-navy); }

/* 보고서 기간: [일간 주간 월간]  ‹ [날짜 ▾] ›  [오늘] · 달력 */
.rv-period { display: flex; align-items: center; gap: 12px; padding: 10px 14px; margin: 0 0 14px; flex-wrap: wrap; }
.rv-dnav { display: flex; align-items: center; gap: 6px; }
.rv-period .rv-nav { width: 38px; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 20px; color: var(--fg-2); cursor: pointer; }
.rv-dbox { position: relative; }
.rv-dbtn { display: inline-flex; align-items: center; gap: 8px; height: 40px; min-width: 250px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font: inherit; font-size: 15px; font-weight: 700; color: var(--fg-1, #212529); cursor: pointer; }
.rv-dbtn:hover, .rv-dbtn[aria-expanded="true"] { border-color: var(--p-navy); }
.rv-dbtn small { font-size: 12.5px; font-weight: 600; color: var(--fg-3); margin-left: 4px; }
.rv-dbtn i { margin-left: auto; font-style: normal; font-size: 11px; color: var(--fg-4); }
.rv-dbtn svg { color: var(--p-navy); }
.rv-pnote { margin-left: auto; font-size: 13.5px; font-weight: 600; color: var(--fg-3); }
.rv-cal { position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%); z-index: 40; width: 320px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 32px rgba(15,23,51,.16); padding: 12px; }
.rv-cal-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.rv-cal-h b { font-size: 15px; }
.rv-cal-nav { width: 32px; height: 32px; border: 0; border-radius: 8px; background: var(--bg-fill); font-size: 18px; cursor: pointer; }
.rv-cal-wd, .rv-cw { display: grid; grid-template-columns: repeat(7, 1fr); }
.rv-cal-wd span { text-align: center; font-size: 12px; font-weight: 700; color: var(--fg-4); padding: 4px 0; }
.rv-cal-wd .sun { color: #E03131; } .rv-cal-wd .sat { color: #1C7ED6; }
.rv-cw { border-radius: 10px; }
.rv-cw.wk { cursor: pointer; } .rv-cw.wk:hover { background: #EEF2FA; } .rv-cw.wk.on { background: var(--p-navy); }
.rv-cd { position: relative; height: 40px; border: 0; background: none; border-radius: 10px; font: inherit; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; cursor: pointer; }
.rv-cd b { font-size: 14px; font-weight: 600; }
.rv-cd em { font-style: normal; font-size: 10.5px; font-weight: 800; color: #fff; background: #E03131; border-radius: 8px; padding: 0 5px; line-height: 15px; }
.rv-cd.sun b { color: #E03131; } .rv-cd.sat b { color: #1C7ED6; }
.rv-cd.out b { color: #CED4DA; }
.rv-cd.today b { text-decoration: underline; text-underline-offset: 3px; }
.rv-cw:not(.wk) .rv-cd:hover { background: #EEF2FA; }
.rv-cd.on { background: var(--p-navy); } .rv-cd.on b { color: #fff; }
.rv-cw.wk .rv-cd { pointer-events: none; } .rv-cw.wk.on .rv-cd b { color: #fff; }
.rv-cal-m { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.rv-cm { height: 52px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font: inherit; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; }
.rv-cm b { font-size: 14.5px; } .rv-cm em { font-style: normal; font-size: 12px; font-weight: 700; color: #E03131; } .rv-cm em.z { color: #CED4DA; }
.rv-cm:hover { border-color: var(--p-navy); } .rv-cm.on { background: var(--p-navy); border-color: var(--p-navy); } .rv-cm.on b, .rv-cm.on em { color: #fff; }
.rv-cal-note { margin: 8px 2px 0; font-size: 12px; color: var(--fg-4); display: flex; align-items: center; gap: 6px; }
.rv-cal-note em { font-style: normal; font-size: 10.5px; font-weight: 800; color: #fff; background: #E03131; border-radius: 8px; padding: 0 5px; }

/* 보고서 만들기 (3단계 창) */
.rb-open { height: 40px; padding: 0 16px; font-size: 14.5px; }
.rb-ov { position: fixed; inset: 0; z-index: 210; background: rgba(15,20,30,.5); display: grid; place-items: center; padding: 20px; }
.rb-dlg { width: min(720px, 100%); max-height: calc(100vh - 40px); display: flex; flex-direction: column; background: #fff; border-radius: 18px; box-shadow: 0 20px 60px rgba(15,23,51,.3); overflow: hidden; }
.rb-h { display: flex; align-items: center; padding: 18px 22px 6px; } .rb-h h2 { margin: 0; font-size: 19px; flex: 1; }
.rb-x { width: 36px; height: 36px; border: 0; border-radius: 10px; background: var(--bg-fill); font-size: 15px; cursor: pointer; }
.rb-steps { list-style: none; margin: 6px 22px 0; padding: 0 0 14px; display: flex; gap: 8px; border-bottom: 1px solid var(--line-2); }
.rb-steps li { flex: 1; display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--fg-4); }
.rb-steps li i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 12.5px; background: var(--bg-fill); color: var(--fg-3); }
.rb-steps li.on { color: var(--p-navy); } .rb-steps li.on i { background: var(--p-navy); color: #fff; }
.rb-steps li.done { color: var(--fg-2); } .rb-steps li.done i { background: #EBFBEE; color: #2B8A3E; }
.rb-b { padding: 16px 22px; overflow: auto; }
.rb-q { margin: 0 0 12px; font-size: 15.5px; font-weight: 700; }
.rb-forms { display: grid; gap: 8px; }
.rb-f { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; font: inherit; text-align: left; cursor: pointer; }
.rb-f:hover { border-color: #9AA7C7; } .rb-f.on { border-color: var(--p-navy); background: #F3F6FC; box-shadow: inset 4px 0 0 var(--p-navy); }
.rb-f .rv-fi { width: 40px; height: 40px; }
.rb-ft { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rb-ft b { font-size: 15px; } .rb-ft small { font-size: 12px; color: var(--fg-4); font-weight: 600; } .rb-ft em { font-style: normal; font-size: 13px; color: var(--fg-3); }
.rb-p { flex: none; font-size: 12px; font-weight: 700; color: var(--p-navy); background: #EEF2FA; border-radius: 999px; padding: 3px 10px; }
.rb-seg { margin-bottom: 12px; } .rb-seg.sm { margin: 0; }
.rb-date { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; }
.rb-date b { flex: 1; text-align: center; font-size: 16px; } .rb-date small { font-size: 12.5px; color: var(--fg-3); }
.rb-date .rv-nav { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 20px; cursor: pointer; }
.rb-cnt { margin: 12px 2px 0; font-size: 14px; color: var(--fg-2); } .rb-cnt b { color: #C92A2A; } .rb-cnt.zero { color: var(--fg-4); }
.rb-note { margin: 6px 2px 0; font-size: 13px; color: var(--fg-4); }
.rb-sum { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.rb-sum th { width: 120px; text-align: left; color: var(--fg-3); font-weight: 600; padding: 10px 0; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.rb-sum td { padding: 10px 0; border-bottom: 1px solid var(--line-2); } .rb-sum small { color: var(--fg-4); margin-left: 4px; }
.rb-ft2 { display: flex; align-items: center; gap: 8px; padding: 14px 22px 18px; border-top: 1px solid var(--line-2); }
.rb-ft2 .btn { height: 44px; padding: 0 18px; }

/* 보고서 만들기 — 한 화면 (왼쪽 양식 · 오른쪽 기간·형식) */
.rb2 { width: min(900px, 100%); }
.rb2 .rb-h { padding-bottom: 12px; border-bottom: 1px solid var(--line-2); }
.rb-body { display: grid; grid-template-columns: 300px 1fr; min-height: 0; overflow: hidden; }
.rb-left { padding: 14px 14px 16px 22px; border-right: 1px solid var(--line-2); overflow: auto; background: #FAFBFC; }
.rb-lab { margin: 0 0 6px; font-size: 12.5px; font-weight: 800; color: var(--fg-3); }
.rb-g h4 { margin: 10px 0 6px; font-size: 12px; font-weight: 700; color: var(--fg-4); }
.rb-g:first-of-type h4 { margin-top: 0; }
.rb2 .rb-f { width: 100%; padding: 9px 10px; gap: 10px; margin-bottom: 6px; border-width: 1px; }
.rb2 .rb-f .rv-fi { width: 34px; height: 34px; border-radius: 10px; }
.rb2 .rb-ft b { font-size: 14px; } .rb2 .rb-ft small { font-size: 11.5px; }
.rb-right { padding: 16px 22px; overflow: auto; display: flex; flex-direction: column; gap: 14px; }
.rb-sel b { font-size: 18px; } .rb-sel p { margin: 4px 0 2px; font-size: 14px; color: var(--fg-2); } .rb-sel small { font-size: 12.5px; color: var(--fg-4); }
.rb-row { display: grid; grid-template-columns: 84px 1fr; gap: 10px; align-items: start; padding-top: 14px; border-top: 1px solid var(--line-2); }
.rb-row > label { padding-top: 9px; font-size: 13.5px; font-weight: 700; color: var(--fg-2); }
.rb-col { display: flex; flex-direction: column; gap: 8px; }
.rb2 .rb-seg { margin: 0; align-self: flex-start; }
.rb-only { font-size: 13px; font-weight: 600; color: var(--fg-3); padding-top: 8px; }
.rb2 .rb-date { padding: 8px 10px; } .rb2 .rb-date b { font-size: 15px; }
.rb2 .rb-cnt { margin: 0; font-size: 13.5px; }
.rb-fmts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rb-fmt { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; font: inherit; cursor: pointer; text-align: left; }
.rb-fmt b { font-size: 15px; } .rb-fmt small { font-size: 12px; color: var(--fg-4); }
.rb-fmt:hover { border-color: #9AA7C7; } .rb-fmt.on { border-color: var(--p-navy); background: #F3F6FC; box-shadow: inset 0 0 0 1px var(--p-navy); }
.rb-rule { margin: 0; font-size: 12.5px; color: var(--fg-4); }
.rb-make { min-width: 220px; justify-content: center; }

/* 공정 관리: 위쪽 상태 탭 (전체 · 진행 중 · 완료 · 예정) */
.ad-ptabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 0 0 12px; }
.ad-ptab { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border: 1.5px solid transparent; border-radius: 14px; background: #fff; font: inherit; cursor: pointer; text-align: left; }
.ad-ptab > span:nth-child(2) { flex: 1; font-size: 14px; font-weight: 700; color: var(--fg-2); }
.ad-ptab b { font-size: 22px; font-weight: 800; color: var(--fg-1, #212529); }
.ad-pti { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--bg-fill); color: var(--fg-3); }
.ad-pti svg { width: 18px; height: 18px; }
.ad-ptab.info .ad-pti { background: #E7F5FF; color: #1971C2; } .ad-ptab.ok .ad-pti { background: #EBFBEE; color: #2B8A3E; } .ad-ptab.mute .ad-pti { background: #F1F3F5; color: #868E96; }
.ad-ptab:hover { border-color: #C5CEE0; } .ad-ptab.on { border-color: var(--p-navy); box-shadow: 0 0 0 1px var(--p-navy) inset; }
.ad-acts { display: inline-flex; align-items: center; gap: 4px; }

/* 보고서 통계 */
.st-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.st-grid .st-trend { grid-column: span 2; }
.st-bars { display: flex; align-items: flex-end; gap: 6px; height: 170px; padding: 8px 2px 0; }
.st-b { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; }
.st-b i { width: 70%; max-width: 38px; background: #C5D0E6; border-radius: 6px 6px 0 0; position: relative; display: flex; align-items: flex-end; overflow: hidden; min-height: 0; }
.st-b i s { display: block; width: 100%; background: #E03131; }
.st-b em { font-style: normal; font-size: 12px; font-weight: 800; color: var(--fg-2); min-height: 15px; }
.st-b span { font-size: 11.5px; color: var(--fg-4); white-space: nowrap; }
.st-bars.month .st-b span { font-size: 10px; } .st-bars.month { gap: 2px; }
.st-leg { display: flex; gap: 14px; margin-top: 8px; font-size: 12px; color: var(--fg-3); }
.st-leg i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; } .st-leg .a { background: #C5D0E6; } .st-leg .c { background: #E03131; }
.st-h { display: grid; grid-template-columns: 96px 1fr 44px; align-items: center; gap: 8px; padding: 6px 0; font-size: 13.5px; }
.st-h b { height: 10px; background: var(--bg-fill); border-radius: 6px; overflow: hidden; } .st-h b i { display: block; height: 100%; background: var(--p-navy); border-radius: 6px; }
.st-h em { font-style: normal; text-align: right; font-weight: 700; }
.st-none { color: var(--fg-4); font-size: 13.5px; }
.st-stack { display: flex; height: 18px; border-radius: 9px; overflow: hidden; background: var(--bg-fill); margin-top: 6px; }
.st-stack i, .st-pl i { display: block; } .st-stack .d, .st-pl .d { background: #2B8A3E; } .st-stack .o, .st-pl .o { background: #E03131; } .st-stack .f, .st-pl .f { background: #ADB5BD; }
.st-pl { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; font-size: 13px; color: var(--fg-2); }
.st-pl i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.st-rate { margin: 10px 0 0; font-size: 13.5px; color: var(--fg-3); } .st-rate b { font-size: 18px; color: var(--p-navy); }
.st-ai ul { margin: 0; padding-left: 18px; display: grid; gap: 8px; font-size: 13.5px; line-height: 1.5; }
.st-aib { display: inline-block; font-size: 11px; font-weight: 800; color: #fff; background: linear-gradient(135deg, #1A2B5C, #4263EB); border-radius: 6px; padding: 2px 6px; margin-right: 4px; vertical-align: 2px; }

/* CCTV 분할: 격자 아이콘 · 레이아웃 편집(왼쪽 카메라 목록 → 칸에 끌어 놓기) */
.cv-split { display: inline-flex; gap: 4px; padding: 3px; background: var(--bg-fill); border-radius: 10px; }
.cv-split button { width: 36px; height: 32px; border: 0; border-radius: 8px; background: none; color: var(--fg-4); display: grid; place-items: center; cursor: pointer; }
.cv-split button:hover { color: var(--fg-2); } .cv-split button.on { background: #fff; color: var(--p-navy); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.cv-wrap.edit { display: grid; grid-template-columns: 190px 1fr; gap: 10px; }
.cv-list { background: #F8F9FB; border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 6px; max-height: 560px; overflow: auto; }
.cv-list > b { font-size: 13.5px; } .cv-list > p { margin: 0 0 4px; font-size: 11.5px; color: var(--fg-4); }
.cv-li { display: flex; align-items: center; gap: 6px; padding: 8px 9px; border: 1px solid var(--line); border-radius: 9px; background: #fff; font: inherit; font-size: 12.5px; cursor: grab; text-align: left; }
.cv-li span:not(.cv-dot) { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--fg-2); }
.cv-li em { font-style: normal; font-size: 10.5px; font-weight: 700; color: var(--p-navy); }
.cv-li.used { opacity: .7; } .cv-li.pick { border-color: var(--p-navy); box-shadow: 0 0 0 2px rgba(26,43,92,.2); }
.cv-dot { width: 7px; height: 7px; border-radius: 50%; background: #2B8A3E; flex: none; } .cv-dot.al { background: #E03131; }
.cv-tile.drop { outline: 2px dashed #9AA7C7; outline-offset: -4px; cursor: copy; }
.cv-tile.drop.over { outline-color: var(--p-navy); background: rgba(26,43,92,.08); }
.cv-x { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border: 0; border-radius: 7px; background: rgba(15,20,30,.7); color: #fff; font-size: 12px; cursor: pointer; z-index: 3; }
.cv-note { margin: 0 0 8px; padding: 8px 12px; border-radius: 10px; background: #FFF9DB; color: #8D6B00; font-size: 13px; font-weight: 600; }

/* 조치 후 사진 (알림 상세 · 조치 완료) */
.fx-after { margin: 12px 0 0; } .fx-after img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.fx-after figcaption { margin-top: 6px; font-size: 12.5px; color: var(--fg-3); }

/* 통계 화면 */
.st-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 12px; }
.st-k { background: #fff; border-radius: 16px; padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.st-k > span { font-size: 13.5px; font-weight: 700; color: var(--fg-3); }
.st-k > b { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; color: var(--fg-1, #212529); } .st-k > b small { font-size: 15px; margin-left: 2px; color: var(--fg-3); }
.st-dl { font-size: 12.5px; font-weight: 700; color: var(--fg-4); } .st-dl small { font-weight: 600; color: var(--fg-4); margin-left: 2px; }
.st-dl.good { color: #2B8A3E; } .st-dl.bad { color: #E03131; }
.st-row { display: grid; gap: 12px; margin-bottom: 12px; } .st-row.r1 { grid-template-columns: 2fr 1fr; } .st-row.r2 { grid-template-columns: repeat(3, 1fr); }
.st-h2 { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; } .st-h2 h2 { margin: 0; font-size: 16px; } .st-h2 .sub { font-size: 12.5px; color: var(--fg-4); }
.st-key { margin-left: auto; display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--fg-3); }
.st-key i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; } .st-key .o { background: #A5B4D4; } .st-key .c { background: #E03131; margin-left: 6px; }
.st-chart { width: 100%; height: auto; display: block; }
.st-chart .g { stroke: #EEF0F3; stroke-width: 1; } .st-chart .ax { font-size: 11px; fill: #868E96; } .st-chart .ax.we { fill: #E03131; }
.st-chart .o { fill: #A5B4D4; } .st-chart .c { fill: #E03131; } .st-chart .v { font-size: 12px; font-weight: 800; fill: #343A40; }
.st-ai ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.st-ai li { position: relative; padding: 10px 12px 10px 34px; border-radius: 12px; background: #F6F8FC; font-size: 13.5px; line-height: 1.5; }
.st-ai li::before { content: ''; position: absolute; left: 12px; top: 15px; width: 12px; height: 12px; border-radius: 4px; background: var(--p-navy); }
.st-ai li.ai-alert { background: #FFF5F5; } .st-ai li.ai-alert::before { background: #E03131; }
.st-ai li.ai-zone::before { background: #C2255C; } .st-ai li.ai-time::before { background: #1971C2; } .st-ai li.ai-fp::before { background: #ADB5BD; } .st-ai li.ai-trend::before { background: #2B8A3E; }
.st-dwrap { display: flex; align-items: center; gap: 16px; }
.st-donut { width: 132px; height: 132px; flex: none; } .st-donut .dc { font-size: 22px; font-weight: 800; fill: #212529; } .st-donut .ds { font-size: 11px; fill: #868E96; }
.st-legend { list-style: none; margin: 0; padding: 0; flex: 1; display: grid; gap: 7px; font-size: 13px; }
.st-legend li { display: grid; grid-template-columns: 10px 1fr auto auto; gap: 8px; align-items: center; }
.st-legend i { width: 10px; height: 10px; border-radius: 3px; } .st-legend b { font-weight: 800; } .st-legend em { font-style: normal; color: var(--fg-4); font-size: 12px; min-width: 32px; text-align: right; }
.st-z { display: grid; grid-template-columns: 20px 76px 1fr 40px; gap: 8px; align-items: center; padding: 6px 0; font-size: 13px; }
.st-z .rk { width: 20px; height: 20px; border-radius: 6px; background: var(--bg-fill); display: grid; place-items: center; font-size: 11px; font-weight: 800; color: var(--fg-3); }
.st-z .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-z .bar { height: 10px; background: var(--bg-fill); border-radius: 6px; overflow: hidden; } .st-z .bar i { display: flex; height: 100%; background: #A5B4D4; border-radius: 6px; } .st-z .bar s { display: block; height: 100%; background: #E03131; }
.st-z em { font-style: normal; text-align: right; font-weight: 700; }
.st-heat { display: grid; grid-template-columns: 30px repeat(8, 1fr); gap: 4px; }
.st-heat .hx { font-size: 11.5px; color: var(--fg-4); text-align: center; } .st-heat .hy { font-size: 12px; color: var(--fg-3); font-weight: 700; display: grid; align-items: center; }
.st-heat i { height: 30px; border-radius: 6px; background: rgba(224,49,49,var(--a)); outline: 1px solid #F1F3F5; display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 800; color: #fff; }
.rv-tostats { display: flex; align-items: center; gap: 10px; padding: 12px 16px; margin: 0 0 12px; border-radius: 14px; background: #fff; text-decoration: none; color: var(--fg-2); font-size: 13.5px; }
.rv-tostats b { color: var(--p-navy); margin-right: 6px; } .rv-tostats i { margin-left: auto; font-style: normal; font-size: 20px; color: var(--p-navy); } .rv-tostats:hover { box-shadow: 0 0 0 1.5px var(--p-navy) inset; }

/* 이벤트 타임라인 (모니터링 아래) */
.tl-card { margin: 0 0 16px; padding-top: 14px; padding-bottom: 12px; } .tl-card .card-head { margin-bottom: 4px; }
.tl-key { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--fg-3); }
.tl-key i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-left: 6px; } .tl-key .critical { background: #E03131; } .tl-key .high { background: #F08C00; } .tl-key .done { background: #fff; border: 2px solid #ADB5BD; }
.tl { position: relative; }
.tl-axis { display: grid; grid-template-columns: 150px 1fr; height: 22px; } .tl-axis > div { position: relative; }
.tl-axis em { position: absolute; transform: translateX(-50%); font-style: normal; font-size: 11.5px; color: var(--fg-4); }
.tl-row { display: grid; grid-template-columns: 150px 1fr; align-items: center; height: 40px; border-top: 1px solid var(--line-2); }
.tl-cam { font-size: 13px; color: var(--fg-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .tl-cam b { margin-right: 6px; color: var(--fg-1, #212529); }
.tl-track { position: relative; height: 100%; }
.tl-g { position: absolute; top: 0; bottom: 0; width: 1px; background: #F1F3F5; }
.tl-now { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--p-navy); opacity: .55; }
.tl-axis em.tl-nowlab { top: -2px; z-index: 1; padding: 1px 7px; border-radius: 6px; background: var(--p-navy); color: #fff; font-weight: 800; }
.tl-dot { position: absolute; top: 50%; transform: translate(-50%, -50%); width: 28px; height: 28px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; color: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.18); }
.tl-dot svg { width: 15px; height: 15px; } .tl-dot.critical { background: #E03131; } .tl-dot.high { background: #F08C00; }
.tl-dot.done { background: #fff; color: #868E96; box-shadow: inset 0 0 0 2px #ADB5BD; }
.tl-dot:hover, .tl-dot:focus-visible { transform: translate(-50%, -50%) scale(1.15); z-index: 2; }
/* 알림: 처리할 알림 | 이벤트 히스토리 */
.ev-tabs { flex: none; }
.hi-card { padding: 16px 18px; }
.hi-f { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line-2); }
.hi-f label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 700; color: var(--fg-3); }
.hi-f label > span { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.hi-f input { height: 36px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; font: inherit; font-size: 13.5px; }
.hi-f .sel { height: 36px; } .hi-q { flex: 1; min-width: 220px; } .hi-q input { width: 100%; }
.hi-sum { margin: 12px 0 6px; font-size: 13px; font-weight: 700; color: var(--fg-2); }
.hi-t tbody tr { cursor: pointer; } .hi-t tbody tr:hover { background: #F6F8FC; }
/* 알림 기록: 보고서 알림 · 조치 기록처럼 날짜로 묶음 */
.hi-t tbody tr.hi-day { cursor: default; } .hi-t tbody tr.hi-day:hover { background: none; }
.hi-t tr.hi-day td { background: #F6F8FB; padding: 8px 12px !important; font-size: 13.5px; font-weight: 800; color: var(--fg-1, #212529); border-top: 1px solid var(--line); }
.hi-t tr.hi-day td span { margin-left: 8px; font-size: 12px; font-weight: 600; color: var(--fg-4); }
.hi-ty { display: inline-flex; align-items: center; gap: 8px; } .hi-ty .ic { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--bg-fill); color: var(--fg-3); }
.hi-ty .ic.critical { background: #FFF5F5; color: #E03131; } .hi-ty .ic.high { background: #FFF4E6; color: #E8590C; }
.hi-none { text-align: center; color: var(--fg-4); padding: 30px 0 !important; }
.hi-pg { display: flex; justify-content: center; gap: 4px; margin-top: 12px; }
.hi-pg button { min-width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font: inherit; font-weight: 700; cursor: pointer; } .hi-pg button.on { background: var(--p-navy); border-color: var(--p-navy); color: #fff; }

/* 아이콘 규칙: 선 아이콘(outline)이 기본 · 크기 16(글·단추 안) / 20(목록·머리) / 24(메뉴) · 선 굵기 16~20px = 2, 24px 이상 = 1.8
   채움(filled)은 '지금 선택된 메뉴'에만 · 상태는 색과 바탕으로 구분 · 글자 기호(✓ ✕ ‹ › ▾ ▶)는 아이콘으로 */
svg.i { stroke-width: 2; } svg.i.l { stroke-width: 1.8; }
.nav svg.ic-o, .tabs svg.ic-o { stroke-width: 1.8; }
.hic svg { width: 20px; height: 20px; stroke-width: 2; }
.ad-aiico svg, .ad-pci svg, .ad-sti svg, .ad-tic svg, .ad-ib svg { stroke-width: 2; }
svg.i.wx { width: 20px; height: 20px; color: #5C7CFA; vertical-align: -4px; }
.wx-ic { display: inline-flex; align-items: center; }
.rv-caret svg { transform: rotate(90deg); width: 14px; height: 14px; color: var(--fg-4); }
.rv-nav svg, .rv-cal-nav svg { width: 16px; height: 16px; }
.cm-x svg, .rb-x svg, .cv-x svg { width: 15px; height: 15px; } .cv-x { display: grid; place-items: center; }
.al-chip button svg { width: 13px; height: 13px; vertical-align: -2px; }
.fx-steps i svg, .fx-end i svg { width: 15px; height: 15px; } .fx-acts i svg { width: 13px; height: 13px; }
.fx-allok svg { width: 15px; height: 15px; vertical-align: -3px; }

/* 통계 — 눈이 편한 색으로 (남색 계열 바탕 · 빨강은 작은 표시에만) */
.st-key .o { background: #CBD3E6; } .st-key .c { background: #E9A3A0; }
.st-chart .o { fill: #CBD3E6; } .st-chart .c { fill: #E9A3A0; } .st-chart .g { stroke: #F1F3F5; } .st-chart .v { fill: #495057; }
.st-chart .ax.we { fill: #C98B88; }
.st-z .bar i { background: #CBD3E6; } .st-z .bar s { background: #E9A3A0; }
.st-heat i { background: rgba(76,110,180,var(--a)); color: #fff; outline-color: #F3F5F8; }
.st-ai li { background: #F7F8FA; } .st-ai li::before { background: #8FA0C8; }
.st-ai li.ai-alert { background: #F7F8FA; } .st-ai li.ai-alert::before { background: #E9A3A0; }
.st-ai li.ai-zone::before { background: #B9A6D9; } .st-ai li.ai-time::before { background: #8FB3E3; } .st-ai li.ai-fp::before { background: #D5DAE1; } .st-ai li.ai-trend::before { background: #7FB89A; }
.st-ai li b { color: var(--p-navy); }
.st-dl.good { color: #3B8A5A; } .st-dl.bad { color: #C0605C; }
.st-k > b { color: #2B3A5C; }
.st-donut .dc { fill: #2B3A5C; }

/* 타임라인: 한 줄 / 카메라별 · 히스토리 보기 전환 */
.tl-tog { margin-left: 12px; }
.tl-card:not(.open) .tl-row { height: 46px; }
.hi-bar { display: flex; align-items: center; gap: 10px; margin: 12px 0 8px; } .hi-bar .hi-sum { margin: 0; }
.hi-card .tl-axis, .hi-card .tl-row { grid-template-columns: 90px 1fr; }

/* 모니터링: 평면도·영상(왼쪽) | 실시간 CCTV · 날씨 · 오늘 일정(오른쪽) → 아래 타임라인 */
.mon-side { display: grid; gap: 12px; }
.mon-side .kpi { margin: 0; }
.mon-grid { margin-bottom: 16px; }
.tl-card { margin: 0 0 16px; }

/* 시연 날짜(시연용 장치) — 제품 선택(현장·구역·층)과 구분: 오른쪽 끝, 점선 테두리 */
.subbar .sb-demo { margin-left: auto; font-size: 12px; color: var(--fg-4); }
.subbar .phase-seg { border: 1px dashed #CED4DA; background: transparent; }
.subbar .phase-seg button { font-size: 13px; }

/* 보고서 화면: 바로 만들기 · 이 기간 요약 · 만든 보고서 */
.rv-cols { display: grid; grid-template-columns: 1.5fr 1fr; gap: 12px; margin-bottom: 12px; }
.rv-qgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.rv-q { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font: inherit; text-align: left; cursor: pointer; }
.rv-q:hover { border-color: var(--p-navy); background: #F6F8FC; }
.rv-q .rv-fi { width: 38px; height: 38px; border-radius: 10px; }
.rv-qt { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .rv-qt b { font-size: 14px; } .rv-qt small { font-size: 11.5px; color: var(--fg-4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-sumcard .rv-sum { margin: 0; }
.rv-links { display: flex; gap: 14px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line-2); }
.rv-links a { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; color: var(--p-navy); text-decoration: none; } .rv-links a:hover { text-decoration: underline; }
.rv-made { margin-bottom: 12px; }
.rv-mc { color: var(--fg-4); font-weight: 600; margin-left: 4px; }
.rv-fmt { display: inline-block; min-width: 46px; font-size: 12px; font-weight: 800; border-radius: 6px; padding: 2px 8px; background: #F1F3F5; color: var(--fg-2); }
.rv-fmt.hwpx { background: #E7F5FF; color: #1864AB; } .rv-fmt.docx { background: #EDF2FF; color: #364FC7; } .rv-fmt.pdf { background: #FFF0F0; color: #C0605C; }

/* 모니터링 현황 줄 (날씨 · 다음 일정 · 오늘 알림 · 카메라) */
.mon-sum { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 0 0 12px; }
.ms-i { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 0; border-radius: 14px; background: #fff; font: inherit; text-align: left; cursor: pointer; min-width: 0; }
.ms-i:hover { box-shadow: 0 0 0 1.5px var(--p-navy) inset; }
.ms-ic { width: 36px; height: 36px; flex: none; border-radius: 10px; display: grid; place-items: center; background: #EEF2FA; color: var(--p-navy); }
.ms-ic.warn { background: #FFF0F0; color: #C0605C; } .ms-ic svg { width: 18px; height: 18px; }
.ms-ic svg.i.wx { color: #5C7CFA; vertical-align: 0; }
.ms-t { display: flex; flex-direction: column; min-width: 0; }
.ms-t small { font-size: 11.5px; font-weight: 700; color: var(--fg-4); }
.ms-t b { font-size: 15px; font-weight: 800; color: var(--fg-1, #212529); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ms-t em { font-style: normal; font-size: 12.5px; color: var(--fg-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .ms-t em.warn { color: #C0605C; font-weight: 700; }
.ms-flash { box-shadow: 0 0 0 2px var(--p-navy) !important; transition: box-shadow .3s; }

/* 통계: 알림 종류 5묶음으로 쌓은 막대 · 범례 */
.st-key5 { flex-wrap: wrap; gap: 4px 10px; }
.st-key5 span { display: inline-flex; align-items: center; gap: 5px; } .st-key5 i { width: 10px; height: 10px; border-radius: 3px; margin: 0; }
.st-z .bar i { display: flex; background: transparent; gap: 1px; } .st-z .bar s { flex: none; height: 100%; }

/* 모니터링 위 한 줄(알림 · 날씨 · 오늘 일정): 높이를 줄여 평면도가 첫 화면에 들어오게 */
.mon-kpis { margin-bottom: 12px; }
.mon-kpis > .kpi { padding-top: 14px; padding-bottom: 12px; }
.mon-kpis .alist .arow, .mon-kpis .al-row { padding-top: 7px; padding-bottom: 7px; }

/* 파일 형식: 파일 모양 아이콘 (애플판과 같은 모양) */
.rb-fmt { position: relative; flex-direction: column; align-items: center; justify-content: center; gap: 7px; min-height: 92px; padding: 12px 4px 10px; border-width: 2px; border-radius: 14px; }
.rb-fmt b { font-size: 14.5px; font-weight: 800; } .rb-fmt.on { box-shadow: none; }
.rb-fmt .ck { position: absolute; top: 6px; right: 6px; width: 20px; height: 20px; border-radius: 50%; display: none; place-items: center; background: var(--p-navy); color: #fff; } .rb-fmt .ck svg { width: 13px; height: 13px; }
.rb-fmt.on .ck { display: grid; }
.fb { position: relative; flex: none; display: inline-grid; place-items: end center; width: 32px; height: 40px; padding-bottom: 6px; border-radius: 4px 11px 4px 4px; background: var(--fc); color: #fff; font-size: 9.5px; font-weight: 900; letter-spacing: .02em; font-style: normal; line-height: 1; box-sizing: border-box; }
.fb::before { content: ''; position: absolute; top: 0; right: 0; width: 10px; height: 10px; border-radius: 0 0 0 4px; background: rgba(255,255,255,.45); }
.fb.sm { width: 18px; height: 23px; padding-bottom: 3px; font-size: 6px; border-radius: 2px 6px 2px 2px; } .fb.sm::before { width: 6px; height: 6px; border-radius: 0 0 0 2px; }
.rv-fmt2 { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--fg-2); }

/* 보고서 화면 다듬기: 요약 숫자 · 종류별 줄 · 파일 목록 · 개선 제안 */
.rv-cols { align-items: stretch; } .rv-sumcard { margin-top: 0 !important; display: flex; flex-direction: column; }
.rv-quick .rv-qgrid { gap: 10px; } .rv-q { padding: 14px; border-radius: 14px; transition: border-color .15s, background .15s; }
.rv-q .rv-qt b { font-size: 14.5px; font-weight: 800; }
.rv-nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; padding: 4px 0 14px; border-bottom: 1px solid var(--line-2); }
.rv-nums > div { display: flex; flex-direction: column; gap: 2px; padding: 0 12px; border-left: 1px solid var(--line-2); } .rv-nums > div:first-child { padding-left: 0; border-left: 0; }
.rv-nums small { font-size: 12px; font-weight: 700; color: var(--fg-4); } .rv-nums b { font-size: 24px; font-weight: 800; color: var(--fg-1, #212529); line-height: 1.2; }
.rv-nums b i, .rv-gn i { font-style: normal; font-size: 12.5px; font-weight: 700; color: var(--fg-4); margin-left: 2px; }
.rv-nums .warn b { color: #C0605C; }
.rv-gl { list-style: none; margin: 6px 0 0; padding: 0; }
.rv-gl li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line-2); } .rv-gl li:last-child { border-bottom: 0; }
.rv-dot { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.rv-gt { flex: 1; min-width: 0; display: flex; flex-direction: column; } .rv-gt b { font-size: 14px; font-weight: 800; } .rv-gt small { font-size: 12px; color: var(--fg-4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-chips { display: flex; gap: 4px; } .rv-chips em { font-style: normal; font-size: 11.5px; font-weight: 700; padding: 2px 7px; border-radius: 6px; white-space: nowrap; }
.rv-chips .ok { background: #EEF2FA; color: var(--p-navy); } .rv-chips .op { background: #FFF0F0; color: #C0605C; } .rv-chips .fp { background: #F1F3F5; color: #868E96; }
.rv-gn { min-width: 44px; text-align: right; font-size: 17px; font-weight: 800; }
.rv-wx { display: flex; align-items: center; gap: 6px; margin: 8px 0 0; font-size: 13px; color: var(--fg-3); }
.rv-none { margin: 8px 0; color: var(--fg-4); }
.rv-sumcard .rv-links { margin-top: auto; }
.rv-ml { list-style: none; margin: 0; padding: 0; }
.rv-ml li { display: flex; align-items: center; gap: 14px; padding: 12px 4px; border-bottom: 1px solid var(--line-2); } .rv-ml li:last-child { border-bottom: 0; }
.rv-ml li:hover { background: #F8F9FB; }
.rv-mt2 { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; } .rv-mt2 b { font-size: 14.5px; font-weight: 800; } .rv-mt2 small { font-size: 12.5px; color: var(--fg-4); }
.rv-mm { display: flex; gap: 16px; font-size: 13px; color: var(--fg-3); } .rv-mm span:first-child { font-variant-numeric: tabular-nums; min-width: 82px; }
.rv-dl { min-width: 128px; justify-content: center; }
.rv-plancard { margin-top: 12px; }
.rv-pl { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.rv-pl li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--bg-fill, #F6F7F9); font-size: 14px; }
.rv-pn { width: 22px; height: 22px; flex: none; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--p-navy); font-size: 12px; font-weight: 800; }
@media (max-width: 1100px) { .rv-pl { grid-template-columns: 1fr; } }
/* 만들기 창 아래 줄: 실행 단추 오른쪽 */
.rb-ft2 { justify-content: flex-end; }
.rv-cols { align-items: start; } .rv-stk { display: flex; flex-direction: column; gap: 12px; min-width: 0; } .rv-stk > .card { margin: 0 !important; }
.rv-pl { grid-template-columns: 1fr !important; } .rv-mm { gap: 12px; }

/* CCTV 분할 쪽 넘김 (자동 순환 대신) */
.cv-pg { display: inline-flex; align-items: center; gap: 6px; }
.cv-pg .rv-nav { width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 8px; background: #fff; display: grid; place-items: center; cursor: pointer; color: var(--fg-2); }
.cv-pg .rv-nav:disabled { opacity: .35; cursor: default; } .cv-pg .rv-nav svg { width: 15px; height: 15px; }

/* 타임라인 접기·펼치기 = 화살표 아이콘만 */
.tl-card .tl-tog { margin-left: 12px; width: 32px; height: 32px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--fg-2); display: grid; place-items: center; cursor: pointer; }
.tl-card .tl-tog:hover { border-color: var(--p-navy); color: var(--p-navy); }
.tl-card .tl-tog svg { width: 16px; height: 16px; transform: rotate(90deg); transition: transform .2s ease; }
.tl-card.open .tl-tog svg { transform: rotate(-90deg); }

/* 기간 고르기 줄: 단추 안 아이콘·글자 세로 가운데, 날짜는 가운데 정렬 (시계 아이콘 없음) */
.rv-period .rv-nav { display: grid; place-items: center; padding: 0; line-height: 1; }
.rv-period .rv-today { height: 40px; display: inline-flex; align-items: center; }
.rv-dbtn { position: relative; justify-content: center; padding: 0 34px; line-height: 1; }
.rv-dbtn .rv-dlab { display: inline-flex; align-items: baseline; gap: 6px; }
.rv-dbtn .rv-dlab small { margin-left: 0; }
.rv-dbtn i.rv-caret { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); margin: 0; display: grid; place-items: center; }

/* 타임라인 점: 아이콘을 원 한가운데로 */
.tl-dot { padding: 0; line-height: 0; }
.tl-dot > span { display: grid; place-items: center; width: 100%; height: 100%; line-height: 0; }
.tl-dot svg { display: block; margin: 0; }
.tl-dot.medium { background: #1C7ED6; } .tl-key i.medium { background: #1C7ED6; }

/* 모니터링: 평면도·영상 칸과 오른쪽 실시간 CCTV 칸 높이 맞춤 */
.grid2:has(> .stack > .mv-card) { align-items: stretch; }
.grid2:has(> .stack > .mv-card) > .stack { display: flex; flex-direction: column; }
.grid2:has(> .stack > .mv-card) > .stack > .card:not(.hidden) { flex: 1 0 auto; }
.grid2:has(> .stack > .mv-card) > .stack > .card:not(.mv-card):not(.hidden) { display: flex; flex-direction: column; }
.grid2:has(> .stack > .mv-card) .cam-cap { margin-top: auto; }

/* 이벤트 타임라인 점 = 처리 상태 (확인 필요 · 조치 중 · 완료 · 오탐) */
.tl-dot.open { background: #E03131; color: #fff; box-shadow: 0 2px 6px rgba(224,49,49,.35); }
.tl-dot.doing { background: #1C7ED6; color: #fff; }
.tl-dot.done { background: #fff; color: #2B8A3E; box-shadow: inset 0 0 0 2px #8CC9A0; }
.tl-dot.fp { background: #fff; color: #ADB5BD; box-shadow: inset 0 0 0 2px #DEE2E6; }
.tl-key i.open { background: #E03131; border: 0; } .tl-key i.doing { background: #1C7ED6; border: 0; }
.tl-key i.done { background: #fff; border: 2px solid #8CC9A0; } .tl-key i.fp { background: #fff; border: 2px solid #DEE2E6; }

/* 요일·시간대 색 범례 (적음 → 많음) */
.st-hlg { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--fg-4); font-weight: 600; }
.st-hlg i { width: 72px; height: 8px; border-radius: 4px; background: linear-gradient(90deg, rgba(76,110,180,.18), rgba(76,110,180,1)); }

/* 보고서: 왼쪽 양식 · 최근 보고서 / 오른쪽 미리보기 */
.rv2 { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 12px; align-items: start; }
.rv2-side { display: flex; flex-direction: column; gap: 12px; min-width: 0; } .rv2-side > .card { margin: 0 !important; }
.rv2-forms .rb-f { width: 100%; padding: 9px 10px; gap: 10px; margin-bottom: 6px; border-width: 1px; }
.rv2-forms .rb-f .rv-fi { width: 34px; height: 34px; border-radius: 10px; }
.rv2-forms .rb-ft b { font-size: 14px; } .rv2-forms .rb-ft small { font-size: 11.5px; }
.rv2-ml { list-style: none; margin: 0; padding: 0; }
.rv2-ml li { display: flex; align-items: center; gap: 10px; padding: 9px 2px; border-bottom: 1px solid var(--line-2); } .rv2-ml li:last-child { border-bottom: 0; }
.rv2-mt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rv2-mt b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .rv2-mt small { font-size: 11.5px; color: var(--fg-4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv2-dl { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; color: var(--p-navy); background: #EEF2FA; }
.rv2-dl:hover { background: #DFE6F5; }
.rv2-pv { margin: 0 !important; display: flex; flex-direction: column; min-width: 0; }
.rv2-ph { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.rv2-ph h2 { margin: 0; font-size: 17px; }
.rv2-meta { margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 12.5px; color: var(--fg-3); font-weight: 600; }
.rv2-meta span + span::before { content: '·'; margin-right: 6px; color: var(--fg-4); }
.rv2-meta .rv2-note { color: var(--p-navy); } .rv2-meta .zero { color: var(--fg-4); }
.rv2-col button { height: 34px; font-size: 13px; }
.rv2-fmt { display: inline-flex; align-items: center; gap: 6px; }
.xpb2 { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 12px 0 8px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; text-decoration: none; }
.xpb2 b { font-size: 13.5px; font-weight: 800; color: #343A40; } .xpb2:hover { border-color: var(--p-navy); background: #F6F8FC; }
.rv2-open { width: 38px; height: 38px; padding: 0; justify-content: center; }
.rv2-frw { border-radius: 12px; background: #E9ECEF; overflow: hidden; }
.rv2-fr { display: block; width: 100%; height: calc(100vh - 280px); min-height: 560px; border: 0; }
@media (max-width: 1100px) { .rv2 { grid-template-columns: 1fr; } }

/* 보고서: 양식 탭 + 관제 요약 한눈에 보기 / 서식 미리보기 */
.rv3-top { margin-bottom: 12px; padding-bottom: 14px; }
.rv3-tabs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; padding-bottom: 14px; border-bottom: 1px solid var(--line-2); margin-bottom: 14px; }
.rv3-tab { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font: inherit; text-align: left; cursor: pointer; }
.rv3-tab:hover { border-color: #9AA7C7; }
.rv3-tab.on { border-color: var(--p-navy); background: #F3F6FC; box-shadow: inset 0 -3px 0 var(--p-navy); }
.rv3-tab .rv-fi { width: 34px; height: 34px; border-radius: 10px; flex: none; }
.rv3-tt { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rv3-tt b { font-size: 13.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv3-tt small { font-size: 11.5px; color: var(--fg-4); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv3-tab.on .rv3-tt b { color: var(--p-navy); }
.rv3-ph { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.rv3-ph h2 { margin: 0; font-size: 18px; }
.rv3-pv { margin-bottom: 12px; }
.rv3-kpis { margin-bottom: 12px; }
.rv3-tw { overflow-x: auto; }
.rv-made { margin-top: 12px; }
@media (max-width: 1200px) { .rv3-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.rv3-ph > .grow { flex: 1; min-width: 0; }

/* 보고서 파일 받기: 한 묶음 단추 */
.rv2-fmt { display: inline-flex; align-items: center; gap: 10px; }
.rv4-l { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 700; color: var(--fg-3); }
.rv4-g { display: inline-flex; border: 1.5px solid var(--p-navy); border-radius: 10px; overflow: hidden; background: #fff; }
.rv4-b { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 16px 0 12px; text-decoration: none; color: var(--p-navy); }
.rv4-b + .rv4-b { border-left: 1px solid #C9D1E6; }
.rv4-b b { font-size: 14px; font-weight: 800; color: var(--p-navy); }
.rv4-b:hover { background: var(--p-navy); } .rv4-b:hover b { color: #fff; }
.rv4-b .fb.sm { width: 16px; height: 20px; font-size: 5.5px; padding-bottom: 2px; }
.rv4-o { display: inline-flex; align-items: center; gap: 5px; height: 38px; padding: 0 12px; border-radius: 10px; background: #F1F3F5; color: var(--fg-2, #343A40); font-size: 13.5px; font-weight: 700; text-decoration: none; }
.rv4-o:hover { background: #E9ECEF; }
.rv4-o, .rv4-l, .rv4-b { white-space: nowrap; flex: none; }
.rv3-ph > .grow { flex: 1 1 280px; }
.rv2-fmt { flex: none; flex-wrap: wrap; }
/* 양식 탭: 고른 탭 = 남색 채움 (밑줄·이중 테두리 없음) */
.rv3-tab { transition: background .15s, border-color .15s, color .15s; outline: none; box-shadow: none; }
.rv3-tab:hover { background: #F6F8FB; border-color: #C9D1E0; }
.rv3-tab:focus-visible { box-shadow: 0 0 0 3px rgba(26,43,92,.25); }
.rv3-tab.on, .rv3-tab.on:hover { background: var(--p-navy); border-color: var(--p-navy); box-shadow: none; }
.rv3-tab.on .rv3-tt b { color: #fff; } .rv3-tab.on .rv3-tt small { color: rgba(255,255,255,.72); }
.rv3-tab.on .rv-fi { background: rgba(255,255,255,.16) !important; color: #fff !important; }
.rv3-tab.on .rv-fi svg { color: #fff; stroke: currentColor; }
.rv4-o { min-width: 104px; justify-content: center; padding: 0 18px; gap: 7px; border: 1.5px solid var(--line); background: #fff; }
.rv4-o:hover { border-color: var(--p-navy); background: #F6F8FC; color: var(--p-navy); }
/* 관제 요약: 카드 사이 간격 (겹침 방지) */
#main > .rv-sumcard, #main > .rv3-kpis + .rv-sumcard { margin: 0 0 12px !important; }
#main > .rv-sumcard + .card, #main > .rv3-kpis + .card { margin-top: 0 !important; }

/* 최근 보고서 = 좁은 옆 칸 */
.rv5-row { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 12px; margin-bottom: 12px; align-items: stretch; }
.rv5-row > .card, .rv5-pvrow > .card { margin: 0 !important; }
.rv5-pvrow { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 12px; align-items: start; }
.rv5-pvrow .rv5-made { position: sticky; top: 12px; }
.rv5-made .rv-mf .fb.sm { width: 18px; height: 22px; }

/* 관제 요약: 알림 요약 · 최근 보고서 반반 */
.rv5-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }

/* 보고서 알림 요약: 종류 아이콘 · 상태 막대 */
.rv7-gl { list-style: none; margin: 4px 0 0; padding: 0; }
.rv7-g { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-2); } .rv7-g:last-child { border-bottom: 0; }
.rv7-ic { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: color-mix(in srgb, var(--c) 22%, #fff); color: color-mix(in srgb, var(--c) 55%, #212529); }
.rv7-ic svg { width: 20px; height: 20px; }
.rv7-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rv7-t b { font-size: 14.5px; font-weight: 800; } .rv7-t small { font-size: 12px; color: var(--fg-4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv7-st { flex: none; width: 150px; display: flex; flex-direction: column; gap: 5px; }
.rv7-bar { display: flex; height: 6px; border-radius: 3px; overflow: hidden; background: #F1F3F5; } .rv7-bar i { display: block; height: 100%; }
.rv7-sl { display: flex; gap: 8px; font-size: 11.5px; color: var(--fg-3); font-weight: 600; } .rv7-sl em { font-style: normal; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.rv7-sl em i { width: 6px; height: 6px; border-radius: 50%; }
.rv7-n { flex: none; min-width: 46px; text-align: right; font-size: 19px; font-weight: 800; } .rv7-n i { font-style: normal; font-size: 12px; color: var(--fg-4); margin-left: 2px; }
/* 알림 · 조치 기록: 상태 거르기 · 작은 사진 */
.rv7-f button { height: 34px; font-size: 13px; } .rv7-f button b { margin-left: 3px; font-weight: 800; } .rv7-f button:disabled { opacity: .45; cursor: default; }
.rv7-log .rv-th { width: 112px; }
.rv7-log .rv-ev td { padding-top: 8px; padding-bottom: 8px; }

.hst.act.zero { opacity: .6; }

/* 알림·조치 기록: 일자 묶음 줄 */
.rv7-log tr.rv7-day td { background: #F6F8FB; padding: 8px 12px !important; font-size: 13.5px; font-weight: 800; color: var(--fg-1, #212529); border-top: 1px solid var(--line); }
.rv7-log tr.rv7-day td span { margin-left: 8px; font-size: 12px; font-weight: 600; color: var(--fg-4); }

/* 알림 요약 머리: 전체 · 상태 3칸 · 비율 막대 */
.rv9-top { display: flex; align-items: stretch; gap: 10px; margin-top: 4px; }
.rv9-tot { flex: none; min-width: 108px; padding: 12px 14px; border-radius: 12px; background: #EEF2FA; display: flex; flex-direction: column; justify-content: center; }
.rv9-tot small { font-size: 12.5px; font-weight: 700; color: var(--p-navy); } .rv9-tot b { font-size: 28px; font-weight: 800; color: var(--p-navy); line-height: 1.15; }
.rv9-tot b i, .rv9-s b i { font-style: normal; font-size: 13px; font-weight: 700; color: var(--fg-4); margin-left: 2px; }
.rv9-sts { flex: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.rv9-s { padding: 10px 12px; border-radius: 12px; background: #F6F8FA; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rv9-s span { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 700; color: var(--fg-3); } .rv9-s span i { width: 7px; height: 7px; border-radius: 50%; }
.rv9-s b { font-size: 22px; font-weight: 800; line-height: 1.2; } .rv9-s b.warn { color: #C92A2A; }
.rv9-s small { font-size: 11.5px; color: var(--fg-4); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv9-bar { height: 8px; border-radius: 4px; margin: 12px 0 4px; }
.rv9-h { margin: 14px 0 0; font-size: 12.5px; font-weight: 700; color: var(--fg-4); }

/* 알림 요약 (간단): 상태 3칸 + 종류 목록 */
.rv10-sts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 2px 0 10px; }
.rv10-s { padding: 12px 14px; border-radius: 12px; background: #F6F8FA; display: flex; align-items: baseline; justify-content: space-between; }
.rv10-s small { font-size: 13px; font-weight: 700; color: var(--fg-3); } .rv10-s b { font-size: 24px; font-weight: 800; }
.rv10-s.ok { background: #EBF7EE; } .rv10-s.ok small, .rv10-s.ok b { color: #2B8A3E; }
.rv10-s.op { background: #FFF0F0; } .rv10-s.op small, .rv10-s.op b { color: #C92A2A; }
.rv10-s.fp b { color: #868E96; }
.rv10-op { flex: none; font-style: normal; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: #FFF0F0; color: #C92A2A; }

.rv7-f button { display: inline-flex; align-items: center; gap: 5px; } .rv11-d { width: 7px; height: 7px; border-radius: 50%; flex: none; }

.rv12-v button { height: 34px; font-size: 13px; padding: 0 14px; }

/* 보고서: 기간 줄 + 양식 탭 = 카드 하나 */
.rv-period.rv13-in { margin: 0 0 14px !important; padding: 0 0 14px !important; background: none; box-shadow: none; border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0; }
/* 머리글 미처리 알림: 흰 단추 · 남색 글자 · 빨간 숫자 점(있을 때만) */
.hst.act { position: relative; height: 40px; padding: 0 14px 0 12px; gap: 8px; background: #fff; border: 1px solid var(--line); color: var(--p-navy); font-weight: 700; transition: border-color .15s, background .15s; }
.hst.act:hover { border-color: var(--p-navy); background: #F6F8FC; }
.hst.act svg { width: 18px; height: 18px; color: var(--p-navy); display: block !important; }
.hst.act b { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: #E03131; color: #fff; font-size: 12.5px; font-weight: 800; }
.hst.act.zero { opacity: 1; color: var(--fg-3); } .hst.act.zero svg { color: var(--fg-4); } .hst.act.zero b { background: #E9ECEF; color: var(--fg-3); }

.ad-wd { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; } .ad-wd b { font-size: 13.5px; } .ad-wd .seg button { height: 34px; font-size: 13px; }

/* 평면도 뷰: 보기 · 도면 종류 */
.pv-ctl { display: flex; gap: 8px; flex-wrap: wrap; }
.pv-seg button { height: 34px; font-size: 13px; padding: 0 12px; }
.plan-wrap svg.zone-ov { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.plan-wrap.pv-elev svg.plan { border-radius: 12px; }
.zlg { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; font-size: 12.5px; }
.zlg-i { display: inline-flex; align-items: center; gap: 5px; } .zlg-i i { width: 10px; height: 10px; border-radius: 3px; }
.zlg-i b { font-weight: 800; } .zlg-i em { font-style: normal; color: var(--fg-4); } .zlg-i small { font-size: 11.5px; font-weight: 800; color: #C92A2A; margin-left: 2px; }

/* 구역 유형 색: 0 건물 내부 · 1 지하층 · 2 건물 외부 · 3 Zone 외부 */
.tn .zt-0 { color: #4C6EF5; } .tn .zt-1 { color: #E8590C; } .tn .zt-2 { color: #F59F00; } .tn .zt-3 { color: #868E96; }
.ad-zci.zt-0 { background: #EDF2FF; color: #4C6EF5; } .ad-zci.zt-1 { background: #FFF4E6; color: #E8590C; } .ad-zci.zt-2 { background: #FFF9DB; color: #E67700; } .ad-zci.zt-3 { background: var(--bg-fill); color: #868E96; }

/* 현장 개요 띠 */
.si-bar { display: flex; align-items: stretch; gap: 18px; padding: 14px 18px; margin-bottom: 12px; }
.si-thumb { position: relative; flex: none; width: 190px; padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #EAF2FB; cursor: zoom-in; }
.si-thumb svg { display: block; width: 100%; height: 100%; } .si-thumb span { position: absolute; left: 8px; bottom: 6px; font-size: 11.5px; font-weight: 800; color: #fff; background: rgba(26,43,92,.82); padding: 2px 7px; border-radius: 6px; }
.si-thumb:hover { border-color: var(--p-navy); }
.si-main { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.si-h { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; } .si-h b { font-size: 16px; font-weight: 800; } .si-h span { font-size: 12.5px; color: var(--fg-4); }
.si-kv { display: grid; grid-template-columns: 1.1fr repeat(4, minmax(0, 1fr)); gap: 8px; }
.si-kv > div { padding: 8px 12px; border-radius: 10px; background: #F6F8FA; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.si-kv small { font-size: 12px; font-weight: 700; color: var(--fg-4); } .si-kv b { font-size: 16px; font-weight: 800; white-space: nowrap; } .si-kv b em { font-style: normal; font-size: 12px; color: var(--fg-4); }
.si-kv .si-d { background: var(--p-navy); } .si-kv .si-d small { color: rgba(255,255,255,.75); } .si-kv .si-d b { color: #fff; font-size: 20px; }
.si-pg { height: 6px; border-radius: 3px; background: #E9ECEF; overflow: hidden; } .si-pg i { display: block; height: 100%; background: var(--p-navy); }
.si-ov { position: fixed; inset: 0; z-index: 200; background: rgba(15,23,42,.55); display: grid; place-items: center; padding: 24px; }
.si-dlg { width: min(980px, 100%); background: #fff; border-radius: 16px; padding: 14px; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.si-dh { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; } .si-img svg { display: block; width: 100%; height: auto; border-radius: 10px; }
/* 일일공사현황 */
.dw-t td, .dw-t th { font-size: 13px; } .dw-t tr.dw-sum td { font-weight: 800; background: #F6F8FA; }
/* 날씨 상세 */
.wx-dg { display: grid; gap: 3px; font-size: 12px; color: var(--fg-3); } .wx-dg span { display: flex; gap: 6px; align-items: baseline; white-space: nowrap; } .wx-dg small { min-width: 78px; font-size: 11.5px; color: var(--fg-4); font-weight: 700; }
.wx-arr { display: inline-block; font-style: normal; margin-right: 2px; color: var(--p-navy); }

/* 설정: 공사 개요 · 도면 · 날씨 */
.ad-sec { margin-bottom: 12px; } .ad-sec .ad-sub { margin: -4px 0 12px; }
.ad-form2 { display: grid; grid-template-columns: repeat(3, minmax(0, 220px)); gap: 12px; margin-bottom: 12px; }
.ad-imgs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ad-img { display: flex; gap: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; align-items: center; }
.ad-imgv { flex: none; width: 150px; height: 96px; border-radius: 10px; overflow: hidden; background: #F6F8FA; display: grid; place-items: center; }
.ad-imgv img { width: 100%; height: 100%; object-fit: cover; } .ad-imgv span { display: grid; place-items: center; gap: 4px; color: var(--fg-4); } .ad-imgv em { font-style: normal; font-size: 11.5px; }
.ad-imgt { display: flex; flex-direction: column; gap: 4px; min-width: 0; } .ad-imgt b { font-size: 14px; } .ad-imgt small { font-size: 12px; color: var(--fg-4); }
.ad-imgb { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; } .ad-imgb label.btn { cursor: pointer; }
.si-thumb img, .si-photo { display: block; width: 100%; height: 100%; object-fit: cover; } .si-img img.si-photo { height: auto; max-height: 70vh; object-fit: contain; border-radius: 10px; }
