/* ==========================================================================
   AILO Dashboard D10 — 사이트컨트롤 (건설 현장 통합관제)
   레이아웃: 접이식 좌측 사이드바 + 고밀도 12열 패널 그리드 / 타이포: Pretendard + Barlow Condensed(라벨)
   컬러: 차콜 다크 + 안전 옐로, 경고 줄무늬(hazard stripe) 포인트
   ========================================================================== */

:root {
  --ailo-bg: #121314;
  --ailo-fg: #ecebe6;
  --ailo-muted: #a3a29c;
  --ailo-line: rgba(255, 255, 255, .09);
  --ailo-accent: #f5c400;
  --ailo-accent-ink: #111;

  --d10-panel: #1b1c1e;
  --d10-panel-2: #232427;
  --d10-panel-3: #2c2d31;
  --d10-ink-2: #c9c8c2;
  --d10-sb-w: 248px;
  --d10-sb-mini: 76px;
  --d10-top-h: 64px;
  --d10-radius: 4px;
  --d10-cond: "Barlow Condensed", var(--ailo-font);

  /* 상태(예약 색, 아이콘+텍스트와 함께만 사용) */
  --d10-good: #4cc38a;
  --d10-warn: #ff9a3c;
  --d10-bad: #ff6159;
  --d10-hold: #8e96a3;

  /* 차트 계열(다크 표면 검증 통과: 블루/오렌지/아쿠아/옐로) */
  --d10-s1: #3987e5;
  --d10-s2: #d95926;
  --d10-s3: #199e70;
  --d10-s4: #c98500;
  --d10-plan: #7d8590;
  --d10-grid: rgba(255, 255, 255, .07);

  --d10-stripe: repeating-linear-gradient(-45deg, var(--ailo-accent) 0 10px, #111 10px 20px);
}

html { scroll-behavior: auto; }
body { background: var(--ailo-bg); color: var(--ailo-fg); font-size: 14px; }

/* ===== 레이아웃 셸 ===== */
.d10 { display: flex; min-height: 100vh; }
.d10-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }

/* ===== 사이드바 ===== */
.sb {
  position: sticky; top: 0; height: 100vh; flex: 0 0 var(--d10-sb-w); width: var(--d10-sb-w);
  background: #0c0d0e; border-right: 1px solid var(--ailo-line);
  display: flex; flex-direction: column; z-index: 130;
  transition: width .3s var(--ailo-ease), flex-basis .3s var(--ailo-ease), transform .3s var(--ailo-ease);
}
.sb__stripe { height: 6px; background: var(--d10-stripe); flex: none; }
.sb__brand { display: flex; align-items: center; gap: 12px; padding: 18px 20px; min-height: 72px; }
.sb__mark {
  width: 36px; height: 36px; flex: none; display: grid; place-items: center;
  background: var(--ailo-accent); color: #111; border-radius: 3px; font-size: 17px;
}
.sb__name { font-family: var(--d10-cond); font-weight: 700; font-size: 21px; letter-spacing: .04em; line-height: 1; text-transform: uppercase; }
.sb__name small { display: block; font-size: 11px; color: var(--ailo-muted); font-weight: 500; letter-spacing: .14em; margin-top: 4px; }
.sb__close { margin-left: auto; display: none; width: 40px; height: 40px; border: 1px solid var(--ailo-line); background: transparent; border-radius: var(--d10-radius); }

.sb__site { margin: 4px 16px 14px; padding: 12px 14px; background: var(--d10-panel); border-left: 3px solid var(--ailo-accent); border-radius: 0 var(--d10-radius) var(--d10-radius) 0; }
.sb__site span { display: block; font-family: var(--d10-cond); font-size: 11px; letter-spacing: .14em; color: var(--ailo-muted); text-transform: uppercase; }
.sb__site strong { display: block; font-size: 13px; line-height: 1.35; margin-top: 2px; }

.sb__nav { flex: 1; overflow-y: auto; padding: 4px 12px 12px; }
.sb__group { font-family: var(--d10-cond); font-size: 11px; letter-spacing: .16em; color: #7c7b76; text-transform: uppercase; padding: 14px 10px 6px; white-space: nowrap; }
.sb__link {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px; margin-bottom: 2px;
  border-radius: var(--d10-radius); color: var(--d10-ink-2); white-space: nowrap; font-weight: 500;
}
.sb__link i { width: 20px; text-align: center; font-size: 15px; color: #8b8a85; flex: none; }
.sb__link:hover, .sb__link:focus-visible { background: var(--d10-panel); color: #fff; }
.sb__link[aria-current="page"] { background: var(--d10-panel-2); color: #fff; }
.sb__link[aria-current="page"]::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 4px; background: var(--ailo-accent); }
.sb__link[aria-current="page"] i { color: var(--ailo-accent); }
.sb__count { margin-left: auto; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 3px; background: var(--d10-bad); color: #fff; }

.sb__foot { border-top: 1px solid var(--ailo-line); padding: 12px; }
.sb__collapse {
  width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: transparent;
  border: 1px solid var(--ailo-line); border-radius: var(--d10-radius); color: var(--ailo-muted); white-space: nowrap;
}
.sb__collapse:hover { color: #fff; border-color: rgba(255,255,255,.25); }
.sb__collapse i { width: 20px; text-align: center; transition: rotate .3s; }

/* 접힘 상태(데스크톱) */
@media (min-width: 992px) {
  html.sb-mini .sb { flex-basis: var(--d10-sb-mini); width: var(--d10-sb-mini); }
  html.sb-mini .sb__name, html.sb-mini .sb__site, html.sb-mini .sb__label,
  html.sb-mini .sb__group, html.sb-mini .sb__count { display: none; }
  html.sb-mini .sb__brand { padding-inline: 20px; }
  html.sb-mini .sb__link { justify-content: center; padding-inline: 0; }
  html.sb-mini .sb__collapse { justify-content: center; padding-inline: 0; }
  html.sb-mini .sb__collapse i { rotate: 180deg; }
  html.sb-mini .sb__nav { padding-top: 12px; }
}

.sb-overlay { display: none; }

/* ===== 상단바 ===== */
.top {
  position: sticky; top: 0; z-index: 100; height: var(--d10-top-h);
  display: flex; align-items: center; gap: 14px; padding: 0 clamp(16px, 2.2vw, 28px);
  background: rgba(18, 19, 20, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--ailo-line);
}
.top .ailo-burger { color: var(--ailo-fg); margin-left: -8px; }
.top__title { min-width: 0; }
.crumb { display: flex; gap: 6px; font-size: 12px; color: var(--ailo-muted); white-space: nowrap; }
.crumb li + li::before { content: "/"; margin-right: 6px; color: #5d5c58; }
.top__title h1 { font-size: 17px; font-weight: 700; line-height: 1.25; white-space: nowrap; }
.top__search { margin-left: auto; position: relative; width: min(300px, 26vw); }
.top__search i { position: absolute; left: 12px; top: 50%; translate: 0 -50%; color: var(--ailo-muted); font-size: 13px; }
.top__search input {
  width: 100%; height: 38px; padding: 0 12px 0 36px; background: var(--d10-panel); border: 1px solid var(--ailo-line);
  border-radius: var(--d10-radius); color: var(--ailo-fg); font-size: 13px;
}
.top__search input::placeholder { color: #85847f; }
.top__search input:focus { outline: none; border-color: var(--ailo-accent); }
.wx { display: flex; align-items: center; gap: 10px; padding: 0 12px; height: 38px; border: 1px solid var(--ailo-line); border-radius: var(--d10-radius); font-size: 12px; white-space: nowrap; }
.wx i { color: var(--ailo-accent); }
.wx b { color: var(--d10-good); font-weight: 600; }
.icon-btn {
  position: relative; width: 40px; height: 40px; display: grid; place-items: center; flex: none;
  background: var(--d10-panel); border: 1px solid var(--ailo-line); border-radius: var(--d10-radius); color: var(--ailo-fg);
}
.icon-btn:hover { border-color: rgba(255,255,255,.25); }
.badge-dot { position: absolute; top: -6px; right: -6px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--d10-bad); color: #fff; font-size: 11px; font-weight: 700; line-height: 19px; text-align: center; }

.noti { position: relative; }
.noti__panel {
  position: absolute; right: 0; top: calc(100% + 10px); width: 340px; max-width: calc(100vw - 32px);
  background: var(--d10-panel); border: 1px solid rgba(255,255,255,.14); border-radius: var(--d10-radius);
  box-shadow: 0 18px 40px rgba(0,0,0,.5); z-index: 140;
}
.noti__panel[hidden] { display: none; }
.noti__head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--ailo-line); }
.noti__head strong { font-size: 14px; }
.noti__head button { background: none; border: 0; color: var(--ailo-accent); font-size: 12px; }
.noti__list li { display: flex; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--ailo-line); font-size: 13px; line-height: 1.45; }
.noti__list li:last-child { border-bottom: 0; }
.noti__list i { margin-top: 3px; width: 16px; text-align: center; }
.noti__list time { display: block; color: var(--ailo-muted); font-size: 11px; margin-top: 2px; }

.me { display: flex; align-items: center; gap: 10px; padding-left: 4px; white-space: nowrap; }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--ailo-accent); color: #111; font-weight: 800; font-size: 14px; flex: none; }
.me__txt { line-height: 1.25; }
.me__txt strong { display: block; font-size: 13px; }
.me__txt span { font-size: 11px; color: var(--ailo-muted); }

/* ===== 본문 ===== */
.main { flex: 1; padding: clamp(16px, 2.2vw, 28px); }
.pagehead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.pagehead__eyebrow { font-family: var(--d10-cond); font-size: 13px; letter-spacing: .18em; color: var(--ailo-accent); text-transform: uppercase; font-weight: 600; }
.pagehead h2 { font-size: clamp(19px, 2vw, 24px); font-weight: 800; letter-spacing: -.01em; margin-top: 2px; }
.pagehead__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--ailo-muted); font-size: 12.5px; margin-top: 6px; }
.pagehead__meta i { color: #77766f; margin-right: 4px; }
.pagehead__ctl { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.seg { display: inline-flex; background: var(--d10-panel); border: 1px solid var(--ailo-line); border-radius: var(--d10-radius); padding: 3px; }
.seg button {
  border: 0; background: transparent; color: var(--d10-ink-2); padding: 7px 14px; border-radius: 3px; font-size: 13px; font-weight: 600; white-space: nowrap;
}
.seg button:hover { color: #fff; }
.seg button[aria-pressed="true"] { background: var(--ailo-accent); color: #111; }
.btn-y {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border: 1px solid var(--ailo-accent);
  background: transparent; color: var(--ailo-accent); border-radius: var(--d10-radius); font-weight: 700; font-size: 13px; white-space: nowrap;
}
.btn-y:hover { background: var(--ailo-accent); color: #111; }

.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }
.panel { background: var(--d10-panel); border: 1px solid var(--ailo-line); border-radius: var(--d10-radius); padding: 18px; min-width: 0; }
.panel__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.panel__head h3 { font-size: 15px; font-weight: 700; }
.panel__head p { font-size: 12px; color: var(--ailo-muted); margin-top: 2px; }
.tag { font-family: var(--d10-cond); font-size: 11px; letter-spacing: .14em; color: var(--ailo-muted); text-transform: uppercase; white-space: nowrap; border: 1px solid var(--ailo-line); padding: 2px 8px; border-radius: 3px; }

.c-4 { grid-column: span 4; } .c-5 { grid-column: span 5; } .c-3 { grid-column: span 3; }
.c-8 { grid-column: span 8; } .c-6 { grid-column: span 6; } .c-12 { grid-column: span 12; }

/* ===== 무재해 위젯 ===== */
.zero { position: relative; padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.zero__stripe { height: 14px; background: var(--d10-stripe); }
.zero__in { padding: 20px 22px 22px; flex: 1; display: flex; flex-direction: column; }
.zero__label { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; }
.zero__label i { color: var(--ailo-accent); }
.zero__num { display: flex; align-items: baseline; gap: 8px; margin: 10px 0 4px; }
.zero__num strong { font-size: clamp(64px, 7vw, 92px); font-weight: 800; line-height: .95; letter-spacing: -.04em; color: var(--ailo-accent); }
.zero__num span { font-size: 20px; font-weight: 700; }
.zero__sub { color: var(--ailo-muted); font-size: 12.5px; }
.zero__bar { margin-top: auto; padding-top: 18px; }
.zero__bar-top { display: flex; justify-content: space-between; font-size: 12px; color: var(--d10-ink-2); margin-bottom: 6px; }
.meter { height: 8px; background: #3a3420; border-radius: 4px; overflow: hidden; }
.meter > i { display: block; height: 100%; background: var(--ailo-accent); border-radius: 4px; }
.zero__facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--ailo-line); border-top: 1px solid var(--ailo-line); }
.zero__facts div { background: var(--d10-panel); padding: 12px 14px; }
.zero__facts dt { font-size: 11px; color: var(--ailo-muted); font-weight: 500; }
.zero__facts dd { margin: 2px 0 0; font-size: 15px; font-weight: 700; }

/* ===== KPI ===== */
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.kpi { background: var(--d10-panel); border: 1px solid var(--ailo-line); border-radius: var(--d10-radius); padding: 16px 16px 12px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.kpi__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.kpi__label { font-size: 12.5px; color: var(--d10-ink-2); font-weight: 600; }
.kpi__ico { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 3px; background: var(--d10-panel-3); color: var(--ailo-accent); font-size: 12px; flex: none; }
.kpi__val { font-size: clamp(24px, 2.3vw, 30px); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.kpi__val small { font-size: 14px; font-weight: 600; color: var(--d10-ink-2); margin-left: 2px; }
.kpi__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.delta { font-size: 12px; font-weight: 600; white-space: nowrap; }
.delta.is-good { color: var(--d10-good); }
.delta.is-bad { color: var(--d10-bad); }
.delta.is-flat { color: var(--ailo-muted); }
.delta em { font-style: normal; color: var(--ailo-muted); font-weight: 500; margin-left: 4px; }
.spark { width: 96px; height: 30px; flex: none; overflow: visible; }

/* ===== 차트 ===== */
.chart-box { position: relative; height: 290px; }
.chart-box--sm { height: 240px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--d10-ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.legend i { width: 12px; height: 12px; border-radius: 2px; display: inline-block; }
.legend i.line { height: 3px; border-radius: 2px; width: 16px; }

/* ===== 안전 지표 ===== */
.safety li { padding: 12px 0; border-bottom: 1px solid var(--ailo-line); }
.safety li:first-child { padding-top: 0; }
.safety__row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 7px; font-size: 13px; }
.safety__row b { font-size: 16px; }
.safety .meter { background: #2e2f33; }
.safety .meter > i.is-warn { background: var(--d10-warn); }
.ptw { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.ptw div { background: var(--d10-panel-2); border-radius: var(--d10-radius); padding: 10px; text-align: center; }
.ptw i { color: var(--ailo-accent); font-size: 14px; }
.ptw strong { display: block; font-size: 20px; line-height: 1.2; margin-top: 4px; }
.ptw span { font-size: 11.5px; color: var(--ailo-muted); }

/* ===== 기성 ===== */
.claim__total { font-size: 12.5px; color: var(--ailo-muted); }
.claim__big { font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; margin: 4px 0 2px; }
.claim__big small { font-size: 14px; font-weight: 600; color: var(--d10-ink-2); }
.segbar { display: flex; gap: 2px; height: 28px; margin: 16px 0 10px; }
.segbar > div { border-radius: 4px; display: flex; align-items: center; padding: 0 6px 0 8px; font-size: 11.5px; font-weight: 700; color: #fff; overflow: hidden; white-space: nowrap; min-width: 0; }
.claim__list li { display: flex; align-items: center; gap: 8px; padding: 7px 0; font-size: 12.5px; border-bottom: 1px solid var(--ailo-line); }
.claim__list li:last-child { border-bottom: 0; }
.claim__list i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; flex: none; }
.claim__list b { margin-left: auto; font-variant-numeric: tabular-nums; }

/* ===== 테이블 ===== */
.tbl-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.tbl-search { position: relative; }
.tbl-search i { position: absolute; left: 11px; top: 50%; translate: 0 -50%; font-size: 12px; color: var(--ailo-muted); }
.tbl-search input { height: 34px; width: 210px; max-width: 100%; padding: 0 10px 0 32px; background: var(--d10-panel-2); border: 1px solid var(--ailo-line); border-radius: var(--d10-radius); color: var(--ailo-fg); font-size: 13px; }
.tbl-search input:focus { outline: none; border-color: var(--ailo-accent); }
.tbl-wrap { overflow-x: auto; margin: 0 -18px; padding: 0 18px; }
.tbl { width: 100%; min-width: 820px; border-collapse: collapse; font-size: 13px; }
.tbl th { font-weight: 600; color: var(--ailo-muted); font-size: 12px; text-align: left; padding: 0 10px 10px; border-bottom: 1px solid rgba(255,255,255,.16); white-space: nowrap; }
.tbl th button { background: none; border: 0; padding: 0; color: inherit; font-weight: inherit; display: inline-flex; align-items: center; gap: 6px; }
.tbl th button:hover { color: #fff; }
.tbl th button i { font-size: 10px; opacity: .5; }
.tbl th[aria-sort="ascending"] button, .tbl th[aria-sort="descending"] button { color: var(--ailo-accent); }
.tbl th[aria-sort] button i { opacity: 1; }
.tbl td { padding: 11px 10px; border-bottom: 1px solid var(--ailo-line); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tbl tbody tr:hover { background: rgba(255,255,255,.03); }
.tbl .num { text-align: right; }
.tbl th.num button { flex-direction: row-reverse; }
.site-name strong { display: block; font-weight: 600; }
.site-name span { font-size: 11.5px; color: var(--ailo-muted); }
.prog { display: flex; align-items: center; gap: 10px; }
.prog__bar { position: relative; width: 110px; height: 6px; background: #34353a; border-radius: 3px; }
.prog__bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--ailo-accent); border-radius: 3px; }
.prog__bar u { position: absolute; top: -4px; bottom: -4px; width: 2px; background: #fff; text-decoration: none; }
.dev-neg { color: var(--d10-bad); }
.dev-pos { color: var(--d10-good); }
.st { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 3px; }
.st--ok { background: rgba(76,195,138,.14); color: var(--d10-good); }
.st--warn { background: rgba(255,154,60,.14); color: var(--d10-warn); }
.st--late { background: rgba(255,97,89,.15); color: var(--d10-bad); }
.st--hold { background: rgba(142,150,163,.16); color: #b7bec9; }
.tbl-empty td { text-align: center; color: var(--ailo-muted); padding: 28px; }
.pager { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-top: 14px; font-size: 12.5px; color: var(--ailo-muted); }
.pager__btns { display: flex; gap: 4px; }
.pager__btns button { min-width: 32px; height: 32px; padding: 0 8px; background: var(--d10-panel-2); border: 1px solid var(--ailo-line); border-radius: 3px; color: var(--d10-ink-2); font-size: 12.5px; }
.pager__btns button[aria-current="page"] { background: var(--ailo-accent); color: #111; border-color: var(--ailo-accent); font-weight: 700; }
.pager__btns button:disabled { opacity: .35; cursor: default; }

/* ===== 활동 로그 ===== */
.log { position: relative; }
.log li { position: relative; display: grid; grid-template-columns: 46px 1fr; gap: 12px; padding: 0 0 14px; }
.log li::before { content: ""; position: absolute; left: 58px; top: 18px; bottom: -2px; width: 1px; background: var(--ailo-line); }
.log li:last-child::before { display: none; }
.log time { font-family: var(--d10-cond); font-size: 14px; font-weight: 600; color: var(--d10-ink-2); padding-top: 1px; }
.log__body { position: relative; padding-left: 18px; font-size: 13px; line-height: 1.45; }
.log__body::before { content: ""; position: absolute; left: -5px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--d10-hold); box-shadow: 0 0 0 3px var(--d10-panel); }
.log__body.k-safe::before { background: var(--d10-good); }
.log__body.k-warn::before { background: var(--d10-bad); }
.log__body.k-work::before { background: var(--ailo-accent); }
.log__body strong { display: block; font-weight: 600; }
.log__body span { color: var(--ailo-muted); font-size: 12px; }

/* ===== 푸터 ===== */
.foot { padding: 18px clamp(16px, 2.2vw, 28px); border-top: 1px solid var(--ailo-line); color: #85847f; font-size: 12px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.foot a:hover { color: var(--ailo-accent); }

/* ===== 반응형 ===== */
@media (max-width: 1399.98px) {
  .c-zero { grid-column: span 12; }
  .c-kpis { grid-column: span 12; }
  .zero { flex-direction: row; flex-wrap: wrap; }
  .zero__stripe { width: 100%; }
  .zero__in { flex: 1 1 340px; }
  .zero__facts { flex: 1 1 340px; grid-template-columns: 1fr; border-top: 0; border-left: 1px solid var(--ailo-line); }
  .zero__facts div { display: flex; flex-direction: column; justify-content: center; }
  .c-chart-main { grid-column: span 12; }
  .c-safety { grid-column: span 12; }
  .safety-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 24px; }
  .safety-cols li:first-child { padding-top: 12px; }
}
@media (max-width: 1199.98px) {
  .c-crew, .c-viol { grid-column: span 6; }
  .c-claim { grid-column: span 12; }
  .claim-in { display: grid; grid-template-columns: 1fr 1.4fr; gap: 0 28px; align-items: center; }
  .c-table, .c-log { grid-column: span 12; }
  .wx { display: none; }
}
@media (max-width: 991.98px) {
  .sb {
    position: fixed; left: 0; top: 0; bottom: 0; height: 100%; width: min(86vw, 300px);
    transform: translateX(-100%); visibility: hidden; transition: transform .3s var(--ailo-ease), visibility .3s;
    box-shadow: 0 0 40px rgba(0,0,0,.6);
  }
  html.nav-open .sb { transform: none; visibility: visible; transition: transform .3s var(--ailo-ease), visibility 0s; } /* 열 때 visibility 즉시 → 곧바로 포커스 가능 */
  .sb__close { display: grid; place-items: center; }
  .sb__foot { display: none; }
  .sb-overlay { display: block; position: fixed; inset: 0; z-index: 125; background: rgba(0,0,0,.6); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
  html.nav-open .sb-overlay { opacity: 1; visibility: visible; }
  .me__txt { display: none; }
  .top__search { width: auto; flex: 0 1 220px; }
}
@media (max-width: 767.98px) {
  .c-crew, .c-viol { grid-column: span 12; }
  .safety-cols { grid-template-columns: 1fr; }
  .safety-cols li:first-child { padding-top: 0; }
  .claim-in { grid-template-columns: 1fr; }
  .zero__facts { grid-template-columns: repeat(3, 1fr); border-left: 0; border-top: 1px solid var(--ailo-line); flex-basis: 100%; }
  .top__search { display: none; }
}
@media (max-width: 575.98px) {
  body { font-size: 13.5px; }
  .grid { gap: 12px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi { padding: 13px 12px 10px; }
  .kpi__ico { display: none; }
  .kpi__foot { flex-direction: column; align-items: flex-start; gap: 4px; }
  .spark { width: 100%; height: 26px; }
  .delta em { display: block; margin-left: 0; }
  .panel { padding: 15px; }
  .tbl-wrap { margin: 0 -15px; padding: 0 15px; }
  .chart-box { height: 250px; }
  .pagehead__ctl { width: 100%; }
  .seg { width: 100%; }
  .seg button { flex: 1; padding-inline: 4px; }
  .btn-y { width: 100%; justify-content: center; }
  .top { gap: 8px; }
  .top__title h1 { font-size: 15px; }
  .crumb { display: none; }
  .zero__facts { grid-template-columns: 1fr; }
  .zero__facts div { flex-direction: row; justify-content: space-between; align-items: baseline; padding: 9px 16px; }
  .zero__facts dd { font-size: 13.5px; margin: 0; }
  .tbl-tools, .tbl-search, .tbl-search input { width: 100%; }
  .panel__head { flex-wrap: wrap; }
}
