/* ==========================================================================
   AILO Dashboard D23 — 분양센터 (아파트 분양 현황판)
   원형: 아이콘 레일(펼침) + 동·호수 배치표 중심 고밀도 그리드 / 타이포: IBM Plex Sans KR · 표 숫자 tabular / 컬러: 화이트 + 로열 블루, 앰버(가계약)
   ========================================================================== */
:root {
  --ailo-font: "IBM Plex Sans KR", "Pretendard Variable", Pretendard, -apple-system, system-ui, sans-serif;
  --ailo-bg: #f5f7fc;
  --ailo-fg: #141a2e;
  --ailo-muted: #5d6680;
  --ailo-line: #dfe4f0;
  --ailo-accent: #2446c8;
  --ailo-header-h: 60px;
  --d23-navy: #13226b;
  --d23-blue-dk: #1b3aa8;
  --d23-blue-2: #2f55d4;
  --d23-blue-3: #5b7de0;
  --d23-blue-4: #8aa2ea;
  --d23-blue-50: #eaf0fd;
  --d23-amber: #e39b0b;
  --d23-amber-50: #fdf3dc;
  --d23-hold: #8e9ab3;
  --d23-left: #ffffff;
  --d23-left-line: #c3cce2;
  --d23-up: #12793c;
  --d23-down: #bf3321;
  --d23-rail: 76px;
  --d23-rail-open: 232px;
  --d23-r: 8px;
}
body { font-size: 13px; letter-spacing: -.01em; }
.tnum, .tbl td, .kpi__v { font-variant-numeric: tabular-nums; }

/* ===== Rail ===== */
.rail {
  position: fixed; inset: 0 auto 0 0; width: var(--d23-rail); background: var(--d23-navy); color: #c9d3f5; z-index: 110;
  display: flex; flex-direction: column; transition: width .28s var(--ailo-ease), translate .35s var(--ailo-ease);
}
.rail__logo { height: var(--ailo-header-h); display: flex; align-items: center; gap: 10px; padding: 0 18px; border-bottom: 1px solid rgba(255,255,255,.08); flex: none; overflow: hidden; }
.rail__mark { width: 40px; height: 40px; flex: none; border-radius: 10px; background: #fff; color: var(--ailo-accent); display: grid; place-items: center; font-weight: 800; font-size: 15px; letter-spacing: -.04em; }
.rail__brand { white-space: nowrap; line-height: 1.2; opacity: 0; transition: opacity .2s; }
.rail__brand b { display: block; color: #fff; font-size: 15px; }
.rail__brand span { font-size: 11px; color: #9fb0e8; }
.rail__nav { flex: 1; padding: 10px 10px; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; overflow-x: hidden; }
.rail__nav a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 56px; border-radius: 10px;
  font-size: 10.5px; color: #b6c3ef; text-align: center; position: relative; transition: background .2s, color .2s; white-space: nowrap;
}
.rail__nav a i { font-size: 17px; }
.rail__nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.rail__nav a[aria-current="page"] { background: var(--ailo-accent); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.rail__nav a .n { position: absolute; top: 6px; right: 8px; min-width: 16px; height: 16px; border-radius: 8px; background: var(--d23-amber); color: #141a2e; font-size: 10px; font-weight: 700; line-height: 16px; padding: 0 4px; }
.rail__foot { padding: 10px; border-top: 1px solid rgba(255,255,255,.08); flex: none; }
.rail__toggle, .rail__close { width: 100%; height: 40px; border-radius: 10px; border: 1px solid rgba(255,255,255,.14); background: transparent; color: #c9d3f5; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 12px; }
.rail__toggle:hover { background: rgba(255,255,255,.07); color: #fff; }
.rail__toggle span { display: none; }
.rail__close { display: none; width: 36px; height: 36px; margin-left: auto; flex: none; }

/* 레일 펼침 (데스크톱) */
@media (min-width: 992px) {
  .is-wide .rail { width: var(--d23-rail-open); }
  .is-wide .rail__brand { opacity: 1; }
  .is-wide .rail__nav a { flex-direction: row; justify-content: flex-start; min-height: 42px; padding: 0 14px; gap: 12px; font-size: 13px; }
  .is-wide .rail__nav a i { width: 20px; font-size: 15px; text-align: center; }
  .is-wide .rail__nav a .n { position: static; margin-left: auto; }
  .is-wide .rail__toggle span { display: inline; }
  .is-wide .rail__toggle i { rotate: 180deg; }
  .is-wide .shell { margin-left: var(--d23-rail-open); }
}
.rail-scrim { position: fixed; inset: 0; background: rgba(10, 18, 50, .5); z-index: 105; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }

/* ===== Shell ===== */
.shell { margin-left: var(--d23-rail); transition: margin-left .28s var(--ailo-ease); min-height: 100vh; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 90; height: var(--ailo-header-h); background: #fff; border-bottom: 1px solid var(--ailo-line); display: flex; align-items: center; gap: 14px; padding: 0 clamp(14px, 2vw, 24px); }
.top .ailo-burger { margin-left: -8px; }
.top__title { min-width: 0; }
.crumb { font-size: 11px; color: var(--ailo-muted); display: flex; gap: 6px; white-space: nowrap; }
.crumb a:hover { color: var(--ailo-accent); }
.top__title h1 { font-size: 17px; font-weight: 700; letter-spacing: -.03em; white-space: nowrap; }
.proj { display: inline-flex; align-items: center; gap: 8px; height: 36px; border: 1px solid var(--ailo-line); border-radius: var(--d23-r); padding: 0 10px; background: #fff; font-size: 13px; margin-left: 10px; }
.proj select { border: 0; background: transparent; font: inherit; font-weight: 600; outline: 0; padding-right: 2px; }
.proj i { color: var(--ailo-accent); }
.top__tools { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.tsearch { position: relative; }
.tsearch input { width: 240px; height: 36px; border: 1px solid var(--ailo-line); border-radius: var(--d23-r); background: var(--ailo-bg); padding: 0 10px 0 32px; font-size: 13px; outline: 0; }
.tsearch input:focus { border-color: var(--ailo-accent); background: #fff; }
.tsearch i { position: absolute; left: 11px; top: 50%; translate: 0 -50%; color: var(--ailo-muted); font-size: 12px; }
.ib { width: 36px; height: 36px; border: 1px solid var(--ailo-line); background: #fff; border-radius: var(--d23-r); display: inline-flex; align-items: center; justify-content: center; position: relative; color: #39425c; }
.ib:hover, .ib[aria-expanded="true"] { border-color: var(--ailo-accent); color: var(--ailo-accent); }
.ib .n { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; border-radius: 9px; background: #d4372b; color: #fff; font-size: 10px; font-weight: 700; line-height: 18px; padding: 0 5px; }
.user { display: flex; align-items: center; gap: 8px; border: 0; background: none; padding: 0 0 0 8px; margin-left: 4px; border-left: 1px solid var(--ailo-line); }
.user__av { width: 34px; height: 34px; border-radius: 50%; background: var(--d23-blue-50); color: var(--ailo-accent); font-weight: 700; display: grid; place-items: center; font-size: 13px; }
.user__t { text-align: left; line-height: 1.2; white-space: nowrap; }
.user__t b { display: block; font-size: 13px; }
.user__t span { font-size: 11px; color: var(--ailo-muted); }

.dd { position: relative; }
.dd__panel { position: absolute; right: 0; top: calc(100% + 8px); width: min(340px, calc(100vw - 24px)); background: #fff; border: 1px solid var(--ailo-line); border-radius: 10px; box-shadow: 0 16px 36px -14px rgba(20,26,46,.35); z-index: 120; display: none; }
.dd__panel.is-open { display: block; }
.dd__h { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--ailo-line); }
.dd__h button { border: 0; background: none; color: var(--ailo-accent); font-size: 12px; font-weight: 600; }
.dd__panel li { padding: 11px 14px; border-bottom: 1px solid var(--ailo-line); font-size: 12.5px; line-height: 1.5; display: grid; grid-template-columns: 8px 1fr; gap: 10px; }
.dd__panel li:last-child { border-bottom: 0; }
.dd__panel li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; background: var(--c, var(--ailo-accent)); }
.dd__panel li.is-read::before { background: var(--ailo-line); }
.dd__panel time { display: block; color: var(--ailo-muted); font-size: 11px; }

/* ===== Content ===== */
.content { padding: 16px clamp(14px, 2vw, 24px) 0; flex: 1; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; margin-bottom: 14px; }
.seg { display: inline-flex; border: 1px solid var(--ailo-line); border-radius: var(--d23-r); background: #fff; overflow: hidden; }
.seg button { border: 0; border-right: 1px solid var(--ailo-line); background: none; height: 34px; padding: 0 14px; font-size: 12.5px; font-weight: 600; color: var(--ailo-muted); }
.seg button:last-child { border-right: 0; }
.seg button:hover { color: var(--ailo-fg); background: var(--ailo-bg); }
.seg button[aria-pressed="true"] { background: var(--ailo-accent); color: #fff; }
.asof { font-size: 12px; color: var(--ailo-muted); display: inline-flex; align-items: center; gap: 8px; }
.asof b { color: var(--ailo-fg); font-weight: 600; }
.bar__r { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.btn-p { height: 34px; border: 0; border-radius: var(--d23-r); background: var(--ailo-accent); color: #fff; font-weight: 600; font-size: 12.5px; padding: 0 14px; display: inline-flex; align-items: center; gap: 6px; }
.btn-p:hover { background: var(--d23-blue-dk); color: #fff; }
.btn-s { height: 34px; border: 1px solid var(--ailo-line); border-radius: var(--d23-r); background: #fff; font-weight: 600; font-size: 12.5px; padding: 0 12px; display: inline-flex; align-items: center; gap: 6px; }
.btn-s:hover { border-color: var(--ailo-accent); color: var(--ailo-accent); }

/* KPI strip */
.kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); background: #fff; border: 1px solid var(--ailo-line); border-radius: 10px; margin-bottom: 14px; overflow: hidden; }
.kpi { padding: 14px 16px 12px; border-right: 1px solid var(--ailo-line); min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "l l" "v s" "d d"; gap: 2px 8px; align-items: end; transition: opacity .2s; }
.kpi:last-child { border-right: 0; }
.kpi__l { grid-area: l; font-size: 12px; color: var(--ailo-muted); font-weight: 500; display: flex; align-items: center; gap: 6px; }
.kpi__l i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.kpi__v { grid-area: v; font-size: clamp(20px, 1.7vw, 26px); font-weight: 700; letter-spacing: -.03em; line-height: 1.2; white-space: nowrap; }
.kpi__v small { font-size: 12px; font-weight: 500; color: var(--ailo-muted); margin-left: 2px; letter-spacing: 0; }
.kpi__s { grid-area: s; width: 64px; height: 24px; }
.kpi__d { grid-area: d; font-size: 11.5px; color: var(--ailo-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi__d b { font-weight: 700; }
.kpi__d .up { color: var(--d23-up); }
.kpi__d .dn { color: var(--d23-down); }
.kpi--main { background: var(--ailo-accent); color: #fff; border-right-color: var(--ailo-accent); }
.kpi--main .kpi__l, .kpi--main .kpi__d, .kpi--main .kpi__v small { color: #d6e0ff; }
.kpi--main .kpi__d .up { color: #fff; }

/* Grid & panels */
.g { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.s8 { grid-column: span 8; } .s4 { grid-column: span 4; } .s5 { grid-column: span 5; } .s3 { grid-column: span 3; } .s12 { grid-column: span 12; }
.col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.pn { background: #fff; border: 1px solid var(--ailo-line); border-radius: 10px; min-width: 0; transition: opacity .2s; }
.pn__h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--ailo-line); flex-wrap: wrap; }
.pn__t { font-size: 14px; font-weight: 700; letter-spacing: -.02em; display: flex; align-items: center; gap: 8px; }
.pn__t small { font-size: 11.5px; font-weight: 500; color: var(--ailo-muted); }
.pn__b { padding: 14px 16px; }
.lg { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: #39425c; }
.lg span { display: inline-flex; align-items: center; gap: 5px; }
.lg i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }

/* ===== 동·호수 배치표 ===== */
.board__tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dong-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.dong-tabs button { height: 30px; padding: 0 10px; border: 1px solid var(--ailo-line); border-radius: 6px; background: #fff; font-size: 12.5px; font-weight: 600; color: #39425c; display: inline-flex; align-items: center; gap: 6px; }
.dong-tabs button em { font-style: normal; font-size: 10.5px; color: var(--ailo-muted); font-weight: 500; }
.dong-tabs button:hover { border-color: var(--ailo-accent); }
.dong-tabs button[aria-selected="true"] { background: var(--d23-navy); border-color: var(--d23-navy); color: #fff; }
.dong-tabs button[aria-selected="true"] em { color: #b6c3ef; }
.chk { display: flex; gap: 4px; flex-wrap: wrap; }
.chk button { height: 28px; border: 1px solid var(--ailo-line); border-radius: 14px; background: #fff; padding: 0 10px 0 8px; font-size: 12px; display: inline-flex; align-items: center; gap: 6px; color: #39425c; }
.chk button i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.chk button b { font-weight: 700; color: var(--ailo-fg); }
.chk button[aria-pressed="false"] { opacity: .45; text-decoration: line-through; }
.board { display: grid; grid-template-columns: minmax(0, 1fr) 270px; }
.board__grid { padding: 14px 16px 16px; border-right: 1px solid var(--ailo-line); min-width: 0; }
.board__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
.units { display: grid; grid-template-columns: 34px repeat(var(--cols), minmax(46px, 1fr)); gap: 3px; min-width: min-content; }
.units__fl { font-size: 10.5px; color: var(--ailo-muted); display: flex; align-items: center; justify-content: flex-end; padding-right: 6px; font-variant-numeric: tabular-nums; }
.units__hd { font-size: 10.5px; color: var(--ailo-muted); text-align: center; padding-bottom: 2px; line-height: 1.3; }
.units__hd b { display: block; color: var(--ailo-fg); font-size: 11px; }
.u {
  height: 22px; border-radius: 3px; border: 0; padding: 0; font-size: 10.5px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.02em;
  display: flex; align-items: center; justify-content: center; transition: transform .12s, box-shadow .12s, opacity .2s; cursor: pointer;
}
.u--c { background: var(--ailo-accent); color: #fff; }
.u--h { background: var(--d23-amber); color: #141a2e; }
.u--a { background: var(--d23-left); color: var(--ailo-accent); box-shadow: inset 0 0 0 1px var(--d23-left-line); }
.u--x { background: repeating-linear-gradient(135deg, #d5dbe8 0 3px, #eef1f7 3px 6px); color: #4d5670; }
.u:hover, .u:focus-visible { transform: scale(1.12); box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ailo-fg); position: relative; z-index: 2; outline: 0; }
.u.is-sel { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--d23-amber); position: relative; z-index: 2; }
.u.is-dim { opacity: .12; }
.u--na { background: transparent; color: #b9c0d3; font-weight: 400; cursor: default; font-size: 9.5px; }
.u--na:hover { transform: none; box-shadow: none; }
.board__note { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 11.5px; color: var(--ailo-muted); margin-top: 10px; }
.board__side { padding: 14px 16px; display: flex; flex-direction: column; gap: 14px; background: #fbfcff; border-radius: 0 0 10px 0; min-width: 0; }
.side__t { font-size: 12px; font-weight: 700; color: var(--ailo-muted); margin-bottom: 8px; display: flex; justify-content: space-between; }
.site { width: 100%; height: auto; border: 1px solid var(--ailo-line); border-radius: 8px; background: #fff; }
.site .bld { cursor: pointer; }
.site .bld rect { stroke: #fff; stroke-width: 2; transition: opacity .2s; }
.site .bld:hover rect, .site .bld:focus rect { opacity: .8; }
.site .bld.is-on rect { stroke: var(--d23-amber); stroke-width: 3; }
.site text { font-size: 9.5px; font-weight: 700; pointer-events: none; font-family: var(--ailo-font); }
.detail { border: 1px solid var(--ailo-line); border-radius: 8px; background: #fff; padding: 12px; }
.detail__no { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.detail__no b { font-size: 20px; letter-spacing: -.03em; }
.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 10px; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: currentColor; }
.pill--c { background: var(--d23-blue-50); color: var(--ailo-accent); }
.pill--h { background: var(--d23-amber-50); color: #8a5a00; }
.pill--a { background: #f1f3f8; color: #39425c; }
.pill--a::before { background: #fff; box-shadow: inset 0 0 0 1.5px currentColor; }
.pill--x { background: #eef1f7; color: #4d5670; }
.detail dl { display: grid; grid-template-columns: auto 1fr; gap: 5px 10px; font-size: 12px; margin: 0; }
.detail dt { color: var(--ailo-muted); font-weight: 400; }
.detail dd { margin: 0; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.detail__act { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 12px; }
.detail__act button { height: 32px; font-size: 12px; justify-content: center; }

/* 가계약 만료 */
.exp li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 8px 16px; border-bottom: 1px solid var(--ailo-line); font-size: 12.5px; }
.exp li:last-child { border-bottom: 0; }
.exp__no { font-weight: 700; font-variant-numeric: tabular-nums; min-width: 0; }
.exp__no small { display: block; font-size: 11px; font-weight: 400; color: var(--ailo-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.exp__t { font-size: 11.5px; color: var(--ailo-muted); display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.exp__t.is-hot { color: #9a5b00; font-weight: 700; }
.exp .btn-s { height: 28px; padding: 0 10px; font-size: 11.5px; }

/* 동별 · 평형별 */
.plot { position: relative; }
.typ li { display: grid; grid-template-columns: 56px minmax(0, 1fr) 44px; gap: 10px; align-items: center; font-size: 12px; padding: 7px 0; border-bottom: 1px solid var(--ailo-line); }
.typ li:last-child { border-bottom: 0; }
.typ b { font-weight: 700; }
.typ small { display: block; font-size: 10.5px; color: var(--ailo-muted); }
.typ .bar3 { display: flex; height: 10px; gap: 2px; }
.typ .bar3 span { height: 100%; border-radius: 2px; }
.typ .pct { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }

/* 퍼널 */
.fun { display: flex; flex-direction: column; gap: 10px; }
.fun__row { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; font-size: 12px; }
.fun__row b { font-variant-numeric: tabular-nums; }
.fun__bar { grid-column: 1 / -1; height: 26px; background: var(--ailo-bg); border-radius: 4px; overflow: hidden; }
.fun__bar span { display: flex; align-items: center; height: 100%; border-radius: 0 4px 4px 0; color: #fff; font-size: 11px; font-weight: 700; padding-left: 8px; white-space: nowrap; transition: width .5s var(--ailo-ease); }
.fun__bar span.lt { color: #141a2e; }
.fun__cv { grid-column: 1 / -1; font-size: 11px; color: var(--ailo-muted); text-align: right; margin-top: -2px; }

/* 로그 */
.feed li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--ailo-line); font-size: 12.5px; line-height: 1.5; }
.feed li:last-child { border-bottom: 0; }
.feed time { font-size: 11px; color: var(--ailo-muted); font-variant-numeric: tabular-nums; padding-top: 1px; }
.feed .k { display: inline-block; font-size: 10.5px; font-weight: 700; padding: 0 6px; border-radius: 4px; margin-right: 4px; }
.feed .k--c { background: var(--d23-blue-50); color: var(--ailo-accent); }
.feed .k--h { background: var(--d23-amber-50); color: #8a5a00; }
.feed .k--v { background: #e8f5ec; color: var(--d23-up); }
.feed .k--x { background: #fbe9e6; color: var(--d23-down); }

/* 테이블 */
.tools { display: flex; gap: 6px; flex-wrap: wrap; }
.fi { position: relative; }
.fi input, .fi select { height: 32px; border: 1px solid var(--ailo-line); border-radius: 6px; font-size: 12.5px; padding: 0 10px; background: #fff; outline: 0; }
.fi input { padding-left: 28px; width: 220px; }
.fi input:focus, .fi select:focus { border-color: var(--ailo-accent); }
.fi i { position: absolute; left: 10px; top: 50%; translate: 0 -50%; font-size: 11px; color: var(--ailo-muted); }
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl { width: 100%; min-width: 980px; border-collapse: collapse; font-size: 12.5px; }
.tbl th { background: #f7f9fd; color: var(--ailo-muted); font-weight: 600; font-size: 11.5px; text-align: left; padding: 0; border-bottom: 1px solid var(--ailo-line); white-space: nowrap; }
.tbl th button { border: 0; background: none; width: 100%; padding: 9px 12px; display: flex; align-items: center; gap: 5px; font: inherit; color: inherit; }
.tbl th button i { font-size: 9px; opacity: .4; }
.tbl th[aria-sort] { color: var(--ailo-accent); }
.tbl th[aria-sort] button i { opacity: 1; }
.tbl th.r button { justify-content: flex-end; }
.tbl td { padding: 9px 12px; border-bottom: 1px solid var(--ailo-line); white-space: nowrap; }
.tbl tbody tr:hover td { background: #f8faff; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .r { text-align: right; }
.tbl .muted { color: var(--ailo-muted); }
.typechip { display: inline-block; font-size: 11px; font-weight: 700; color: var(--ailo-accent); border: 1px solid #c9d5f6; border-radius: 4px; padding: 0 5px; margin-right: 2px; }
.bd { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 4px; }
.bd i { font-size: 10px; }
.bd--wait { background: #f1f3f8; color: #39425c; }
.bd--visit { background: #e8f5ec; color: var(--d23-up); }
.bd--conv { background: var(--d23-blue-50); color: var(--ailo-accent); }
.bd--noshow { background: #fbe9e6; color: var(--d23-down); }
.pnfoot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 16px; border-top: 1px solid var(--ailo-line); font-size: 12px; color: var(--ailo-muted); }
.pager { display: flex; gap: 3px; }
.pager button { min-width: 30px; height: 30px; border: 1px solid var(--ailo-line); border-radius: 6px; background: #fff; font-size: 12px; font-weight: 600; }
.pager button:hover:not(:disabled) { border-color: var(--ailo-accent); color: var(--ailo-accent); }
.pager button[aria-current="page"] { background: var(--ailo-accent); border-color: var(--ailo-accent); color: #fff; }
.pager button:disabled { opacity: .4; cursor: default; }
.empty { text-align: center; color: var(--ailo-muted); padding: 24px 0 !important; }

.foot { padding: 6px clamp(14px, 2vw, 24px) 20px; font-size: 11.5px; color: var(--ailo-muted); display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.foot a:hover { color: var(--ailo-accent); }
.is-loading .pn, .is-loading .kpis { opacity: .5; }

/* ===== Responsive ===== */
@media (max-width: 1399.98px) {
  .tsearch input { width: 180px; }
  .user__t { display: none; }
  .board { grid-template-columns: minmax(0, 1fr) 240px; }
}
@media (max-width: 1199.98px) {
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kpi:nth-child(3) { border-right: 0; }
  .kpi:nth-child(-n+3) { border-bottom: 1px solid var(--ailo-line); }
  .s8, .s4 { grid-column: span 12; }
  .col.s4 { display: grid; grid-template-columns: 1fr 1fr; }
  .s5 { grid-column: span 7; } .s3 { grid-column: span 5; } .s4.feedcol { grid-column: span 12; }
  .proj { display: none; }
}
@media (max-width: 991.98px) {
  .shell { margin-left: 0; }
  .rail { width: min(280px, 84vw); translate: -100% 0; visibility: hidden; transition: translate .35s var(--ailo-ease), visibility .35s; }
  html.nav-open .rail { translate: 0 0; visibility: visible; transition: translate .35s var(--ailo-ease), visibility 0s; } /* 열 때 visibility 즉시 → 곧바로 포커스 가능 */
  html.nav-open .rail-scrim { opacity: 1; visibility: visible; }
  .rail__brand { opacity: 1; }
  .rail__close { display: inline-flex; }
  .rail__nav a { flex-direction: row; justify-content: flex-start; min-height: 44px; padding: 0 14px; gap: 12px; font-size: 14px; }
  .rail__nav a i { width: 20px; font-size: 15px; text-align: center; }
  .rail__nav a .n { position: static; margin-left: auto; }
  .rail__foot { display: none; }
  .board { grid-template-columns: 1fr; }
  .board__grid { border-right: 0; border-bottom: 1px solid var(--ailo-line); }
  .board__side { display: grid; grid-template-columns: 1fr 1fr; border-radius: 0 0 10px 10px; }
}
@media (max-width: 767.98px) {
  .tsearch { display: none; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi:nth-child(n) { border-right: 1px solid var(--ailo-line); border-bottom: 1px solid var(--ailo-line); }
  .kpi:nth-child(even) { border-right: 0; }
  .kpi:nth-last-child(-n+2) { border-bottom: 0; }
  .col.s4 { display: flex; }
  .s5, .s3 { grid-column: span 12; }
  .board__side { grid-template-columns: 1fr; }
  .fi, .fi input { width: 100%; }
  .tools { width: 100%; }
  .tools .fi:first-child { flex: 1 1 100%; }
  .top__title h1 { font-size: 15px; }
  .crumb { display: none; }
}
@media (max-width: 575.98px) {
  .kpi { padding: 12px 12px 10px; }
  .kpi__s { width: 48px; }
  .kpi__v { font-size: 20px; }
  .bar .asof { width: 100%; }
  .units { grid-template-columns: 28px repeat(var(--cols), minmax(36px, 1fr)); gap: 2px; }
  .u { font-size: 9.5px; height: 20px; }
  .seg button { padding: 0 11px; }
  .btn-s span { display: none; }
}
