aside [data-menu="opsroom"][hidden] { display: none; }
aside [data-menu="opsroom"]::before { content: "🛰"; margin-inline-end: .3em; }

/* D-334 상황실 — 시안 C 8판. 카드마다 높이 상한을 두고 자세한 것은 서랍으로 보낸다. */
.ops-room {
  --ops-ink: #241f31;
  --ops-ink2: #3d3650;
  --ops-sub: #6e6782;
  --ops-sub2: #7d7690;
  --ops-line: #e8e4f2;
  --ops-line2: #f1eef9;
  --ops-soft: #fbfaff;
  --ops-light: #f6f4fb;
  --ops-brand: #6b4de6;
  --ops-brand-soft: #eee9fc;
  --ops-good: #189a54;
  --ops-good-bar: #3daa6e;
  --ops-blue: #2f86d1;
  --ops-bad: #d64545;
  --ops-warn: #c77b12;
  --ops-hollow: #cfc8e0;
  --ops-lane-label: 150px;
  --ops-pipe-w: 168px;
  box-sizing: border-box;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--ops-light);
  color: var(--ops-ink);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.ops-room *, .ops-room *::before, .ops-room *::after { box-sizing: border-box; }
:where(.ops-room) button { font-family: inherit; font-size: inherit; color: inherit; cursor: pointer; }
.ops-room button:focus-visible, .ops-room [role="button"]:focus-visible { outline: 2px solid var(--ops-brand); outline-offset: 2px; }
.ops-room svg [role="button"]:focus-visible { outline: none; }

.tone-work, .tone-active, .tone-open { --tone: #6b4de6; }
.tone-quiet, .tone-late { --tone: #c77b12; }
.tone-stuck, .tone-blocked { --tone: #d64545; }
.tone-off, .tone-cancel { --tone: #8b849c; }
.tone-none, .tone-unknown { --tone: #b8b1c9; }
.tone-shipped, .tone-handoff { --tone: #2f86d1; }
.tone-waiting, .tone-plan { --tone: #a79fc0; }
.tone-closed, .tone-done, .tone-ok { --tone: #189a54; }

/* 머리 */
.ops-heading { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: flex-end; justify-content: space-between; }
.ops-heading-text { display: flex; flex-direction: column; gap: 4px; flex: 1 1 360px; min-width: 0; }
.ops-heading h1 { margin: 0; font-size: clamp(22px, 2.6vw, 27px); line-height: 1.25; font-weight: 700; }
.ops-heading p { margin: 0; font-size: 13px; line-height: 1.55; color: var(--ops-sub); }
.ops-now { display: inline-flex; align-items: center; gap: 9px; font-size: clamp(22px, 2.4vw, 28px); font-weight: 700; letter-spacing: .5px; }
.ops-pulse-dot { position: relative; width: 10px; height: 10px; border-radius: 999px; background: var(--ops-good); }
.ops-pulse-dot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: inherit; animation: ops-pulse 2.2s ease-out infinite; }

/* 한눈에 */
.ops-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 12px; }
.ops-kpi {
  display: flex; align-items: center; gap: 12px; min-width: 0; padding: 12px 14px; text-align: left;
  background: #fff; border: 1px solid var(--ops-line); border-radius: 14px; box-shadow: 0 1px 3px rgba(36, 27, 62, .05);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.ops-kpi:hover, .ops-session:hover, .ops-pipe-row:hover { border-color: #b9a8f0; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(36, 27, 62, .08); }
.ops-kpi-art { display: flex; align-items: center; gap: 3px; flex-shrink: 0; }
.ops-kpi-art.art-a { display: grid; grid-template-columns: repeat(3, 9px); gap: 3px; }
.ops-kpi-bar { width: 8px; height: 30px; border-radius: 3px; background: var(--tone); }
.ops-kpi-art.art-p b, .ops-kpi-art.art-p i + i { margin-left: 0; }
.ops-mini { width: 9px; height: 9px; border-radius: 3px; background: var(--ops-good-bar); animation: ops-hb 2s ease-out infinite; }
.ops-mini.is-late { background: var(--ops-warn); animation-name: ops-hbw; }
.ops-kpi-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ops-kpi-label { font-size: 12px; color: var(--ops-sub); font-weight: 500; }
.ops-kpi-text b { font-size: 14.5px; }
.ops-kpi-sub { font-size: 11.5px; color: var(--ops-sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 카드 */
.ops-card {
  min-width: 0; display: flex; flex-direction: column; gap: 10px; padding: 14px 18px;
  background: #fff; border: 1px solid var(--ops-line); border-radius: 18px; box-shadow: 0 1px 3px rgba(36, 27, 62, .05);
  animation: ops-rise .5s ease-out both;
}
.ops-card-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; }
.ops-card-head h2 { margin: 0; font-size: 15.5px; font-weight: 700; line-height: 1.35; }
.ops-card-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-left: auto; min-width: 0; }
.ops-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; }
.ops-card-relay { flex: 1 1 420px; }
.ops-card-pipe { flex: 1.3 1 480px; }
.ops-card-auto { flex: 1.35 1 520px; }
.ops-stack { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.ops-partial { padding: 2px 8px; border-radius: 999px; border: 1px dashed #d9d2ea; color: var(--ops-sub); font-size: 11px; font-weight: 700; white-space: nowrap; }
.ops-notice { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--ops-sub); }
.ops-empty { margin: 0; padding: 14px; text-align: center; font-size: 13px; color: var(--ops-sub); background: var(--ops-soft); border-radius: 12px; }

/* 칸별 읽은 시각 단추 */
.ops-rf {
  display: inline-flex; align-items: center; gap: 7px; min-height: 30px; max-width: 100%; padding: 0 11px;
  border-radius: 999px; border: 1px solid var(--ops-line); background: #fff; color: var(--ops-sub);
  font-size: 11.5px; white-space: nowrap; transition: border-color .2s, background .2s, color .2s;
}
.ops-rf:hover { border-color: var(--ops-brand); color: var(--ops-brand); }
.ops-rf-dot { width: 6px; height: 6px; border-radius: 999px; background: var(--ops-good); flex-shrink: 0; }
.ops-rf-label { overflow: hidden; text-overflow: ellipsis; }
.ops-rf-iv { color: #a79fc0; }
.ops-rf-track { width: 34px; height: 3px; flex-shrink: 0; overflow: hidden; border-radius: 2px; background: var(--ops-brand-soft); color: var(--ops-good); }
.ops-rf-track i { display: block; height: 3px; background: currentColor; }
.ops-rf-ico { font-size: 13px; line-height: 1; color: var(--ops-brand); display: inline-block; }
.ops-rf.is-busy { border-color: var(--ops-brand); background: var(--ops-brand-soft); color: var(--ops-brand); cursor: progress; }
.ops-rf.is-busy .ops-rf-dot { background: var(--ops-brand); }
.ops-rf.is-busy .ops-rf-ico { animation: ops-spin .8s linear infinite; }
.ops-rf.is-fresh { border-color: var(--ops-good); background: #e3f5ea; color: #14743f; }
.ops-rf.is-fresh .ops-rf-iv { color: var(--ops-good-bar); }
.ops-chip-button {
  display: inline-flex; align-items: center; gap: 6px; min-height: 30px; max-width: 100%; padding: 0 10px;
  border-radius: 999px; border: 1px solid #e2ddef; background: #f8f6fd; color: var(--ops-ink2); font-size: 11.5px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ops-chip-button .ops-cd { position: static; margin: 0; width: 8px; height: 8px; flex-shrink: 0; }

/* S 세션 */
.ops-sessions { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 10px; }
.ops-session {
  display: flex; flex-direction: column; gap: 9px; min-width: 0; padding: 12px; text-align: left;
  background: var(--ops-soft); border: 1px solid var(--ops-line2); border-radius: 14px; transition: border-color .2s, transform .2s, box-shadow .2s;
}
.ops-session-top { display: flex; align-items: center; gap: 10px; width: 100%; min-width: 0; }
.ops-avatar { position: relative; width: 40px; height: 40px; flex-shrink: 0; }
.ops-avatar b, .ops-pulse { position: absolute; inset: 3px; border-radius: 999px; background: var(--tone); }
.ops-avatar b { display: flex; align-items: center; justify-content: center; color: #fff; font-size: 12px; font-weight: 700; }
.ops-pulse { animation: ops-pulse 2.2s ease-out infinite; }
.ops-session-name { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ops-session-name b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ops-session-name small, .ops-session-state small { font-size: 11px; color: var(--ops-sub); }
.ops-session-state { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; flex-shrink: 0; text-align: right; }
.ops-session-state b { font-size: 12.5px; color: var(--tone); }
.ops-session-task { display: flex; gap: 6px; align-items: baseline; width: 100%; min-width: 0; }
.ops-session-task small { font-size: 11px; color: var(--ops-sub); flex-shrink: 0; }
.ops-session-task span { font-size: 13px; font-weight: 500; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ops-session-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; width: 100%; min-width: 0; }
.ops-session-foot small { font-size: 11px; color: var(--ops-sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ops-spark { display: flex; align-items: flex-end; gap: 2px; height: 20px; flex: 1 1 60px; min-width: 0; max-width: 150px; }
.ops-spark i { flex: 1 1 0; min-width: 2px; border-radius: 1.5px; background: var(--ops-line2); }
.ops-spark i.is-on { background: #c9bcf5; }

/* F 릴레이 */
.ops-relay { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ops-relay svg { display: block; width: 100%; height: auto; max-height: 280px; }
.ops-edge-base { fill: none; stroke: #d9cffa; stroke-linecap: round; }
.ops-edge-flow { fill: none; stroke: var(--ops-brand); stroke-dasharray: 2 12; stroke-linecap: round; animation: ops-flow 4s linear infinite; }
.ops-edge-none { fill: none; stroke: #e2ddef; stroke-width: 1.5; stroke-dasharray: 3 6; }
.ops-edge-hit { fill: none; stroke: transparent; stroke-width: 20; cursor: pointer; pointer-events: stroke; }
.ops-edge-hit:hover, .ops-edge-hit:focus-visible { stroke: rgba(107, 77, 230, .12); }
.ops-edge-num { font-size: 12px; font-weight: 700; fill: var(--ops-ink2); text-anchor: middle; paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round; pointer-events: none; }
.ops-edge-num.is-dim { fill: #a79fc0; }
.ops-edge-boss { fill: none; stroke: var(--ops-hollow); stroke-width: 2; stroke-dasharray: 3 5; }
.ops-edge-note { font-size: 11px; fill: var(--ops-sub2); }
.ops-edge-lost { font-size: 13px; fill: var(--ops-sub); text-anchor: middle; }
.ops-node-boss circle { fill: #fdf3e3; stroke: var(--ops-warn); stroke-width: 2; }
.ops-node-boss text { font-size: 11px; font-weight: 700; fill: #8a5208; text-anchor: middle; }
.ops-node { cursor: pointer; }
.ops-node-ring { fill: #f8f6fd; stroke: var(--tone); stroke-width: 2.5; }
.ops-node:hover .ops-node-ring, .ops-node:focus-visible .ops-node-ring { stroke-width: 4; }
.ops-node-code { font-size: 13px; font-weight: 700; fill: var(--ops-ink); text-anchor: middle; }
.ops-node-duty { font-size: 9px; fill: var(--ops-sub); text-anchor: middle; }
.ops-svg-pulse { fill: var(--tone); transform-box: fill-box; transform-origin: center; animation: ops-pulse 2.2s ease-out infinite; }
.ops-relay-sum { margin: 0; font-size: 12.5px; color: var(--ops-ink2); }

/* P 대표님 지시 */
.ops-pipe { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ops-pipe-head, .ops-pipe-row { display: grid; grid-template-columns: minmax(0, 1fr) var(--ops-pipe-w); gap: 10px; align-items: center; }
.ops-pipe-head { padding: 0 11px; font-size: 11.5px; color: var(--ops-sub2); }
.ops-pipe-stages { display: flex; justify-content: space-between; }
.ops-pipe-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ops-pipe-row {
  width: 100%; min-width: 0; padding: 6px 10px; text-align: left; background: var(--ops-soft);
  border: 1px solid var(--ops-line2); border-radius: 12px; transition: border-color .2s, transform .2s, box-shadow .2s;
}
.ops-pipe-row.kind-blocked { background: #fff7f7; border-color: #f3caca; }
.ops-pipe-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ops-pipe-title { font-size: 13.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ops-pipe-title em { font-style: normal; font-size: 11px; font-weight: 700; color: #fff; background: var(--ops-bad); border-radius: 5px; padding: 1px 5px; margin-right: 6px; }
.ops-pipe-sub { font-size: 11.5px; color: var(--ops-sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ops-steps { display: flex; align-items: center; min-width: 0; }
.ops-steps b { flex: 1 1 auto; height: 2px; background: #e2ddef; }
.ops-steps b.is-done { background: var(--ops-good); }
.ops-step { display: inline-block; width: 13px; height: 13px; border-radius: 999px; flex-shrink: 0; }
.ops-step.is-done { background: var(--ops-good); }
.ops-step.is-cur { background: var(--ops-brand); animation: ops-blink 1.6s ease-in-out infinite; }
.ops-step.is-stuck { background: var(--ops-bad); animation: ops-blink-red 1.6s ease-in-out infinite; }
.ops-step.is-todo { background: transparent; border: 2px solid var(--ops-hollow); }
.ops-kpi-art.art-p { gap: 5px; }
.ops-folds { display: flex; flex-wrap: wrap; gap: 8px; }
.ops-fold {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex: none; min-width: 0;
  min-height: 36px; padding: 6px 12px; border-radius: 10px; border: 1px dashed #d9d2ea; background: #fff;
  color: var(--ops-ink2); font-size: 12.5px; font-weight: 500; text-align: left;
}
.ops-folds .ops-fold { flex: 1 1 160px; }
.ops-fold:hover { border-color: var(--ops-brand); color: var(--ops-brand); }

/* T 오늘 기록 */
.ops-timeline { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ops-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 11.5px; color: var(--ops-ink2); }
.ops-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.ops-lanes-scroll { overflow-x: auto; overscroll-behavior-x: contain; padding-top: 4px; }
.ops-lanes { position: relative; min-width: 720px; }
.ops-hours { position: relative; height: 20px; margin-left: var(--ops-lane-label); }
.ops-hours span { position: absolute; transform: translateX(-50%); font-size: 11px; color: var(--ops-sub2); white-space: nowrap; }
.ops-hours span:first-child { transform: none; }
.ops-hours span:last-child { transform: translateX(-100%); }
.ops-lanes-body { position: relative; }
.ops-grid { position: absolute; left: var(--ops-lane-label); right: 0; top: 0; bottom: 0; pointer-events: none; }
.ops-grid-line { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--ops-line2); }
.ops-future { position: absolute; right: 0; top: 0; bottom: 0; background: rgba(107, 77, 230, .035); }
.ops-now-line { position: absolute; top: -6px; bottom: 0; width: 2px; margin-left: -1px; background: var(--ops-good); z-index: 5; }
.ops-now-tag { position: absolute; top: -22px; transform: translateX(-50%); padding: 1px 6px; border-radius: 6px; background: var(--ops-good); color: #fff; font-size: 11px; font-weight: 700; white-space: nowrap; z-index: 6; box-shadow: 0 0 0 3px #fff; }
.ops-lane { display: flex; border-top: 1px solid var(--ops-line2); }
.ops-lane-label {
  width: var(--ops-lane-label); flex-shrink: 0; display: flex; flex-direction: column; gap: 3px; padding: 8px 10px 8px 0;
  text-align: left; background: #fff; border: 0; position: sticky; left: 0; z-index: 7;
}
.ops-lane-name { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.ops-lane-name i { width: 8px; height: 8px; border-radius: 999px; background: var(--tone); flex-shrink: 0; }
.ops-lane-label small { font-size: 11px; line-height: 1.35; color: var(--ops-sub); }
.ops-lane-track { position: relative; flex: 1 1 auto; min-width: 0; }
.ops-bar { position: absolute; height: 12px; border-radius: 4px; border: 0; padding: 0; background: #b8b1c9; }
.ops-bar:hover, .ops-bar:focus-visible { outline: 2px solid var(--ops-ink) !important; outline-offset: 1px !important; z-index: 3; }
.ops-bar.is-open { background: repeating-linear-gradient(45deg, #6b4de6 0 7px, #5638c9 7px 14px); background-size: 28px 12px; }
.ops-bar.is-live { animation: ops-stripe 1.1s linear infinite; }
.ops-bar.is-done { background: var(--ops-good-bar); }
.ops-bar.is-handoff { background: var(--ops-blue); }
.ops-bar.is-blocked { background: var(--ops-bad); }
.ops-bar.is-cancel { background: var(--ops-hollow); }
.ops-bar.is-plan { background: transparent; border: 1.5px dashed #a79fc0; }
.ops-bar.is-unknown { background: #b8b1c9; }
.ops-bar.is-tick { min-width: 6px; opacity: .7; background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, .8) 0 2px, transparent 2px 4px); }
.ops-bar.is-carry {
  height: 16px; line-height: 14px; padding: 0 8px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; text-align: left;
  border: 1px solid var(--ops-warn); color: #8a5208; font-size: 11px; font-weight: 700;
  background: repeating-linear-gradient(135deg, rgba(199, 123, 18, .22) 0 6px, rgba(199, 123, 18, .08) 6px 12px);
}
.ops-swatch { position: static !important; display: inline-block; width: 22px; height: 10px; flex-shrink: 0; cursor: default; }
.ops-swatch.is-carry { height: 10px; padding: 0; }
.ops-density { position: absolute; bottom: 3px; height: 5px; border-radius: 1px; background: var(--ops-brand); }
.ops-density-swatch { height: 5px; background: var(--ops-brand); opacity: .6; }
.ops-lane.is-shared .ops-lane-label { padding-block: 4px; }
.ops-mark { position: absolute; top: 6px; height: 12px; border-radius: 2px; background: #9a93ae; }
.ops-mark.is-done { background: var(--ops-good-bar); }
.ops-mark.is-tick { margin-left: -1px; }

/* M 한도 · C 회사 결과 */
.ops-metrics { display: flex; flex-direction: column; gap: 10px; }
.ops-metric { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(48px, 1fr) auto; gap: 12px; align-items: center; }
.ops-metric-name { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.ops-metric-name span { font-size: 12.5px; font-weight: 500; line-height: 1.35; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ops-metric-name small { font-size: 11px; color: var(--ops-sub); }
.ops-meter { position: relative; height: 10px; border-radius: 999px; background: var(--ops-line2); overflow: hidden; }
.ops-meter.is-none { height: 2px; background: repeating-linear-gradient(90deg, #e2ddef 0 4px, transparent 4px 8px); }
.ops-meter i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; }
.ops-meter i.is-low { background: var(--ops-good); }
.ops-meter i.is-mid { background: var(--ops-warn); }
.ops-meter i.is-high { background: var(--ops-bad); }
.ops-metric > b { font-size: 13.5px; text-align: right; white-space: nowrap; }
.ops-room .is-dim { color: #a79fc0; font-weight: 500; }
.ops-company { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr)); gap: 10px; }
.ops-company-group { min-width: 0; display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; background: var(--ops-soft); border-radius: 12px; }
.ops-link { align-self: flex-start; border: 0; background: none; padding: 2px 0; color: var(--ops-brand); font-size: 13px; font-weight: 700; text-decoration: underline; }
.ops-stats { display: flex; flex-direction: column; gap: 4px; }
.ops-stat { display: flex; flex-direction: column; min-width: 0; }
.ops-stat small { font-size: 11px; color: var(--ops-sub); }
.ops-stat b { font-size: 17px; overflow-wrap: anywhere; }
.ops-stat-time { font-size: 11px; color: var(--ops-sub2); }

/* A 자동 일정 */
.ops-auto { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ops-auto-grid { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; }
.ops-auto-clock { flex: 0 1 240px; min-width: 0; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.ops-auto-caption { align-self: flex-start; font-size: 12.5px; font-weight: 500; color: var(--ops-ink2); }
.ops-dial { position: relative; width: 100%; max-width: 240px; aspect-ratio: 1 / 1; }
.ops-dial svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ops-dial-face { fill: #faf8fe; stroke: var(--ops-line); stroke-width: 1.5; }
.ops-dial-arc { fill: none; stroke: #d3efdd; stroke-width: 10; }
.ops-dial line { stroke: var(--ops-line); stroke-width: 1; }
.ops-dial line.is-major { stroke: var(--ops-hollow); stroke-width: 2; }
.ops-dial-text { font-size: 11px; fill: var(--ops-sub2); text-anchor: middle; }
.ops-dial-hand { position: absolute; left: 50%; top: 15%; width: 2px; height: 35%; margin-left: -1px; border-radius: 2px; background: var(--ops-good); transform-origin: 50% 100%; }
.ops-dial-pin { position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 999px; background: var(--ops-good); }
.ops-dial-center { position: absolute; left: 50%; top: 55%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 1px; white-space: nowrap; }
.ops-dial-center b { font-size: 13px; }
.ops-dial-center small { font-size: 10.5px; color: var(--ops-sub); }
.ops-cd { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 999px; border: 0; padding: 0; }
.ops-cd.is-ok { background: var(--ops-good); }
.ops-cd.is-late { background: var(--ops-warn); animation: ops-hbw 1.6s ease-in-out infinite; }
.ops-cd.is-unknown { background: #fff; border: 2px solid #b8b1c9; }
.ops-cd.is-off { background: var(--ops-hollow); }
.ops-cd.is-next { background: var(--ops-light); border: 2px solid var(--ops-brand); }
.ops-cd.is-week { background: #fff; border: 2px solid #e2ddef; }
.ops-swatch.ops-cd { width: 10px; height: 10px; margin: 0; border-radius: 999px; }
.ops-auto-others { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; max-width: 100%; }
.ops-auto-freq { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.ops-freqs { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.ops-freq { flex: 1 1 auto; min-width: 0; max-width: 100%; display: flex; flex-direction: column; gap: 6px; padding: 8px 10px; border: 1px solid var(--ops-line2); border-radius: 12px; }
.ops-freq.is-other .ops-chip-button { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ops-freq-label { font-size: 11.5px; font-weight: 700; color: var(--ops-sub); }
.ops-tiles { display: flex; flex-wrap: wrap; gap: 8px 6px; min-width: 0; }
.ops-tile-cell { width: 54px; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.ops-tile-cell small {
  font-size: 10.5px; line-height: 1.3; color: var(--ops-ink2); text-align: center; overflow-wrap: anywhere; max-width: 100%;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ops-tile { width: 26px; height: 26px; border-radius: 8px; border: 0; padding: 0; background: var(--ops-good-bar); animation: ops-hb 2s ease-out infinite; }
.ops-tile.is-late { background: var(--ops-warn); animation-name: ops-hbw; }
.ops-tile.is-unknown { background: #fff; border: 2px solid #b8b1c9; animation: none; }
.ops-tile.is-off { background: var(--ops-hollow); animation: none; }

/* 서랍: 넓은 화면은 오른쪽 패널, 좁은 화면은 전체 폭 시트. 닫으면 판으로 돌아간다. */
.ops-room .ops-drawer {
  position: fixed; inset: 16px 16px 16px auto; width: min(440px, calc(100vw - 32px)); height: auto;
  min-width: 0; min-height: 0; max-width: none; max-height: none; margin: 0; padding: 0;
  border: 1px solid #e2ddef; border-radius: 18px; background: #fff; color: var(--ops-ink);
  box-shadow: 0 24px 64px rgba(36, 27, 62, .18); resize: none; overflow: hidden;
  animation: ops-slide .28s ease-out both;
}
.ops-room .ops-drawer::backdrop { background: rgba(36, 31, 49, .29); }
.ops-drawer-panel { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.ops-drawer-head { display: flex; align-items: flex-start; gap: 10px; padding: 16px 16px 12px; border-bottom: 1px solid var(--ops-line); }
.ops-drawer-titles { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ops-drawer-titles h2 { margin: 0; font-size: 16px; line-height: 1.4; font-weight: 700; overflow-wrap: anywhere; }
.ops-drawer-titles p { margin: 0; font-size: 12px; line-height: 1.5; color: var(--ops-sub); overflow-wrap: anywhere; }
.ops-badge { align-self: flex-start; padding: 2px 8px; border-radius: 6px; background: var(--tone, var(--ops-brand)); color: #fff; font-size: 11.5px; font-weight: 700; }
.ops-drawer-close { width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; border: 1px solid #e2ddef; background: #f8f6fd; font-size: 15px; }
.ops-drawer-back { min-height: 36px; flex-shrink: 0; padding: 0 10px; border-radius: 10px; border: 1px solid #e2ddef; background: #fff; font-size: 12.5px; }
.ops-drawer-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 16px; }
.ops-drawer-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.ops-drawer-steps li { display: flex; gap: 12px; align-items: flex-start; padding-bottom: 12px; }
.ops-drawer-steps .ops-step { margin-top: 3px; }
.ops-drawer-steps span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ops-drawer-steps b { font-size: 13px; }
.ops-drawer-steps small { font-size: 12px; line-height: 1.5; color: var(--ops-sub); overflow-wrap: anywhere; }
.ops-drawer-rows { margin: 0; padding: 4px 12px; border-radius: 12px; background: var(--ops-soft); }
.ops-drawer-rows div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--ops-line2); }
.ops-drawer-rows div:last-child { border-bottom: 0; }
.ops-drawer-rows dt { font-size: 12.5px; color: var(--ops-sub); flex-shrink: 0; max-width: 55%; }
.ops-drawer-rows dd { margin: 0; font-size: 13px; font-weight: 500; text-align: right; min-width: 0; overflow-wrap: anywhere; }
.ops-filter { width: 100%; min-height: 38px; padding: 6px 12px; border-radius: 10px; border: 1.5px solid var(--ops-line); background: var(--ops-soft); font: inherit; color: inherit; }
.ops-filter:focus { outline: none; border-color: #8e6df5; }
.ops-drawer-group h3, .ops-drawer-note h3 { margin: 0 0 6px; font-size: 12.5px; font-weight: 700; color: var(--ops-ink2); }
.ops-drawer-group ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ops-drawer-item {
  width: 100%; display: flex; flex-direction: column; gap: 3px; padding: 9px 12px; text-align: left;
  background: var(--ops-soft); border: 0; border-left: 3px solid var(--tone); border-radius: 10px;
}
button.ops-drawer-item:hover { background: #f3effd; }
.ops-drawer-item span { font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.ops-drawer-item small { font-size: 11.5px; line-height: 1.45; color: var(--ops-sub); overflow-wrap: anywhere; }
.ops-drawer-note p { margin: 0; font-size: 12.5px; line-height: 1.6; color: var(--ops-ink2); white-space: pre-wrap; overflow-wrap: anywhere; }

@media (max-width: 620px) {
  .ops-room { --ops-pipe-w: 96px; --ops-lane-label: 120px; gap: 12px; }
  .ops-card { padding: 14px 12px; border-radius: 16px; }
  .ops-heading p { display: none; }
  .ops-step { width: 11px; height: 11px; }
  .ops-pipe-head { padding: 0 9px; font-size: 10.5px; }
  .ops-pipe-row { padding: 6px 9px; gap: 8px; }
  .ops-metric { grid-template-columns: minmax(0, 1fr) auto; row-gap: 6px; }
  .ops-meter { grid-column: 1 / -1; grid-row: 2; }
  .ops-room .ops-drawer { inset: 8dvh 0 0 0; width: 100%; border-radius: 18px 18px 0 0; border-width: 1px 0 0; animation-name: ops-sheet; }
}

@keyframes ops-pulse { 0% { transform: scale(1); opacity: .5; } 70%, 100% { transform: scale(2); opacity: 0; } }
@keyframes ops-flow { to { stroke-dashoffset: -28; } }
@keyframes ops-stripe { to { background-position: 28px 0; } }
@keyframes ops-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes ops-blink { 0%, 100% { box-shadow: 0 0 0 3px rgba(107, 77, 230, .35); } 50% { box-shadow: 0 0 0 7px rgba(107, 77, 230, .08); } }
@keyframes ops-blink-red { 0%, 100% { box-shadow: 0 0 0 3px rgba(214, 69, 69, .35); } 50% { box-shadow: 0 0 0 7px rgba(214, 69, 69, .08); } }
@keyframes ops-slide { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes ops-sheet { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes ops-spin { to { transform: rotate(360deg); } }
@keyframes ops-hb { 0% { box-shadow: 0 0 0 0 rgba(24, 154, 84, .45); } 60%, 100% { box-shadow: 0 0 0 9px rgba(24, 154, 84, 0); } }
@keyframes ops-hbw { 0%, 100% { box-shadow: 0 0 0 0 rgba(199, 123, 18, .6); } 50% { box-shadow: 0 0 0 8px rgba(199, 123, 18, 0); } }

@media (prefers-reduced-motion: reduce) {
  .ops-room *, .ops-room *::before, .ops-room *::after, .ops-room .ops-drawer::backdrop {
    animation: none !important; transition: none !important;
  }
  .ops-kpi:hover, .ops-session:hover, .ops-pipe-row:hover { transform: none; }
}
