/* ==========================================================================
   D24 아키플랜 — 원형: 상단 가로 내비 + 도면 표제란형 헤더 + 블루프린트 방안지 그리드
   타이포: IBM Plex Sans KR(본문) + IBM Plex Mono(라벨·코드·축)
   컬러: 라이트 그레이 방안지 + 블루 1px 선, 모서리 0, 마커는 사각
   ========================================================================== */
:root {
  --ailo-bg: #eceff3;
  --ailo-fg: #14213a;
  --ailo-muted: #56627a;
  --ailo-line: rgba(31, 95, 209, .28);
  --ailo-accent: #1f5fd1;
  --ailo-font: "IBM Plex Sans KR", "Pretendard Variable", Pretendard, system-ui, sans-serif;

  --d24-sans: "IBM Plex Sans KR", "Pretendard Variable", sans-serif;
  --d24-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --d24-panel: #fbfcfd;
  --d24-ink-line: #1f5fd1;
  --d24-hair: rgba(31, 95, 209, .16);
  --d24-grid: #e3e8f0;
  --d24-axis: #9fb3d6;
  /* 차트 시리즈 (라이트 표면 all-pairs 검증 통과) + 기타는 중립 회색 */
  --d24-s1: #1f5fd1;
  --d24-s2: #eb6834;
  --d24-s3: #1baf7a;
  --d24-other: #b7bfcb;
  --d24-good: #0f7a3a;
  --d24-bad: #c23a2b;
  --d24-warn: #a86a00;
  --d24-gap: 14px;
}

body {
  font-size: 14px; line-height: 1.55;
  background-color: var(--ailo-bg);
  background-image:
    linear-gradient(rgba(31, 95, 209, .09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 95, 209, .09) 1px, transparent 1px),
    linear-gradient(rgba(31, 95, 209, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 95, 209, .045) 1px, transparent 1px);
  background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
  background-position: -1px -1px;
}
code { font-family: var(--d24-mono); color: inherit; font-size: inherit; }

/* ===== Header ===== */
.hdr { position: sticky; top: 0; z-index: 50; background: rgba(251, 252, 253, .94); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border-bottom: 1px solid var(--d24-ink-line); }
.hdr__row { display: flex; align-items: center; gap: 16px; padding: 10px clamp(16px, 3vw, 40px); border-bottom: 1px solid var(--d24-hair); }
.hdr__burger { display: none; width: 40px; height: 40px; border: 1px solid var(--ailo-line); background: transparent; color: var(--ailo-accent); flex: none; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--d24-mono); font-weight: 600; letter-spacing: .14em; font-size: 15px; color: var(--ailo-fg); }
.brand b { color: var(--ailo-accent); font-weight: 600; }
.brand__mk { width: 30px; height: 30px; color: var(--ailo-accent); }
.hdr__search { position: relative; margin-left: auto; width: min(320px, 28vw); }
.hdr__search i { position: absolute; left: 12px; top: 50%; translate: 0 -50%; color: var(--ailo-muted); font-size: 12px; }
.hdr__search input { width: 100%; height: 38px; border: 1px solid var(--ailo-line); border-radius: 0; background: #fff; padding: 0 12px 0 34px; font-size: 13px; }
.hdr__search input:focus { outline: none; border-color: var(--ailo-accent); box-shadow: 3px 3px 0 rgba(31, 95, 209, .18); }
.ib { position: relative; width: 38px; height: 38px; border: 1px solid var(--ailo-line); background: #fff; color: var(--ailo-fg); }
.ib:hover { border-color: var(--ailo-accent); color: var(--ailo-accent); }
.ib__n { position: absolute; top: -6px; right: -6px; min-width: 17px; height: 17px; line-height: 17px; padding: 0 4px; background: var(--ailo-accent); color: #fff; font-family: var(--d24-mono); font-size: 10px; font-weight: 600; }
.hdr__noti { position: relative; }
.drop { position: absolute; right: 0; top: calc(100% + 8px); width: min(340px, calc(100vw - 24px)); background: #fff; border: 1px solid var(--d24-ink-line); box-shadow: 6px 6px 0 rgba(31, 95, 209, .12); z-index: 70; }
.drop__hd { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--d24-hair); font-family: var(--d24-mono); font-size: 11px; letter-spacing: .1em; color: var(--ailo-muted); }
.drop__read { border: 0; background: none; color: var(--ailo-accent); font-family: var(--ailo-font); font-size: 12px; letter-spacing: 0; }
.drop li { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-bottom: 1px solid var(--d24-hair); }
.drop li:last-child { border-bottom: 0; }
.drop li.is-read { opacity: .5; }
.drop b { display: block; font-size: 13px; font-weight: 600; }
.drop small { font-size: 12px; color: var(--ailo-muted); }
.me { display: flex; align-items: center; gap: 10px; }
.me__av { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--d24-ink-line); color: var(--ailo-accent); font-family: var(--d24-mono); font-weight: 600; font-size: 13px; background: repeating-linear-gradient(135deg, #fff 0 4px, #eef3fc 4px 8px); flex: none; }
.me__t { display: grid; line-height: 1.25; }
.me__t b { font-size: 13px; }
.me__t small { font-size: 11px; color: var(--ailo-muted); }

/* GNB */
.gnb { padding: 0 clamp(16px, 3vw, 40px); }
.gnb__hd, .gnb__foot { display: none; }
.gnb ul { display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; }
.gnb ul::-webkit-scrollbar { display: none; }
.gnb a { position: relative; display: flex; align-items: baseline; gap: 7px; padding: 11px 16px; font-size: 14px; font-weight: 500; color: #3a4762; white-space: nowrap; border-right: 1px solid var(--d24-hair); }
.gnb li:first-child a { border-left: 1px solid var(--d24-hair); }
.gnb__no { font-family: var(--d24-mono); font-size: 10px; color: #8a98b3; }
.gnb a:hover { color: var(--ailo-accent); background: rgba(31, 95, 209, .04); }
.gnb a.is-active { color: var(--ailo-accent); font-weight: 700; background: #fff; }
.gnb a.is-active::after { content: ""; position: absolute; left: -1px; right: -1px; bottom: -1px; height: 3px; background: var(--ailo-accent); }
.gnb a.is-active .gnb__no { color: var(--ailo-accent); }
.sb-dim { display: none; }

/* ===== Page ===== */
.page { padding: clamp(16px, 2.4vw, 32px) clamp(16px, 3vw, 40px) 28px; display: grid; gap: var(--d24-gap); max-width: 1680px; margin-inline: auto; }

/* Title block (도면 표제란) */
.titleblock { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.2fr) auto; border: 1px solid var(--d24-ink-line); background: var(--d24-panel); }
.tbk { padding: 14px 18px; min-width: 0; }
.tbk + .tbk { border-left: 1px solid var(--d24-ink-line); }
.crumb { display: flex; gap: 6px; font-family: var(--d24-mono); font-size: 11px; color: var(--ailo-muted); letter-spacing: .04em; }
.crumb li + li::before { content: "/"; margin-right: 6px; color: var(--d24-axis); }
.crumb a:hover { color: var(--ailo-accent); }
.titleblock h1 { font-size: clamp(22px, 2vw, 28px); font-weight: 700; letter-spacing: -.02em; line-height: 1.25; margin-top: 2px; }
.tbk--meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 0; margin: 0; }
.tbk--meta div { padding: 12px 14px; border-right: 1px solid var(--d24-hair); display: flex; flex-direction: column; justify-content: center; }
.tbk--meta div:last-child { border-right: 0; }
.tbk--meta dt { font-family: var(--d24-mono); font-size: 10px; font-weight: 500; color: #7d8ba6; letter-spacing: .12em; }
.tbk--meta dd { margin: 0; font-family: var(--d24-mono); font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tbk--filter { display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.tbk__lb { font-family: var(--d24-mono); font-size: 10px; color: #7d8ba6; letter-spacing: .12em; }
.tbk__range { font-family: var(--d24-mono); font-size: 12px; color: var(--ailo-muted); }
.seg { display: inline-flex; border: 1px solid var(--d24-ink-line); }
.seg button { border: 0; background: transparent; padding: 6px 14px; font-size: 13px; font-weight: 600; color: #3a4762; white-space: nowrap; }
.seg button + button { border-left: 1px solid var(--d24-ink-line); }
.seg button:hover { background: #eef3fc; }
.seg button.is-on { background: var(--ailo-accent); color: #fff; }

/* KPI */
.kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--d24-ink-line); background: var(--d24-panel); }
.kpi { position: relative; padding: 14px 18px 12px; min-width: 0; display: grid; gap: 1px; }
.kpi + .kpi { border-left: 1px solid var(--d24-hair); }
.kpi__no { position: absolute; top: 12px; right: 14px; font-family: var(--d24-mono); font-size: 10px; color: #8a98b3; letter-spacing: .08em; }
.kpi__l { font-size: 13px; font-weight: 500; color: var(--ailo-muted); }
.kpi__v { font-size: clamp(30px, 2.6vw, 40px); font-weight: 300; letter-spacing: -.03em; line-height: 1.1; }
.kpi__v small { font-family: var(--d24-sans); font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--ailo-muted); margin-left: 6px; }
.kpi__d { font-size: 12px; line-height: 1.4; margin-top: 2px; }
.kpi__c { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.kpi__vs { color: var(--ailo-muted); white-space: nowrap; }
.kpi__d.is-good .kpi__c { color: var(--d24-good); }
.kpi__d.is-bad .kpi__c { color: var(--d24-bad); }
.kpi__d.is-flat .kpi__c { color: #3a4762; }
.kpi__sp { width: 100%; height: 28px; margin-top: 8px; }
.sp-base { stroke: var(--d24-hair); stroke-width: 1; }
.sp-l { stroke: #8a98b3; stroke-width: 1.4; stroke-linejoin: miter; }
.sp-v { fill: #8a98b3; }
.sp-d { fill: var(--ailo-accent); stroke: var(--d24-panel); stroke-width: 1.5; }

/* Panels */
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--d24-gap); }
.grid > * { min-width: 0; }
.g-phase { grid-column: span 8; } .g-permit { grid-column: span 4; }
.g-trend { grid-column: span 7; } .g-team { grid-column: span 5; }
.g-table { grid-column: span 8; } .g-log { grid-column: span 4; }

.pn { position: relative; background: var(--d24-panel); border: 1px solid var(--d24-ink-line); padding: 16px 18px 18px; }
/* 모서리 치수 표시 */
.pn::before, .pn::after { content: ""; position: absolute; width: 9px; height: 9px; border-color: var(--d24-ink-line); border-style: solid; pointer-events: none; }
.pn::before { top: -5px; left: -5px; border-width: 0 1px 1px 0; }
.pn::after { bottom: -5px; right: -5px; border-width: 1px 0 0 1px; }
.pn__hd { display: flex; align-items: flex-start; gap: 12px; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px dashed var(--d24-hair); }
.pn__hd--wrap { flex-wrap: wrap; }
.pn__hd > div { margin-right: auto; min-width: 0; }
.pn__no { font-family: var(--d24-mono); font-size: 11px; font-weight: 600; color: #fff; background: var(--ailo-accent); padding: 2px 6px; line-height: 1.4; margin-top: 2px; flex: none; }
.pn h2 { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.pn__sub { font-size: 12px; color: var(--ailo-muted); }

.lg { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--ailo-muted); }
.lg li { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.lg i { width: 16px; height: 2px; background: var(--c); position: relative; }
.lg i::after { content: ""; position: absolute; left: 5px; top: -2px; width: 6px; height: 6px; background: var(--c); }
.lg i.sq { width: 10px; height: 10px; }
.lg i.sq::after { display: none; }
.lg--block { margin: -4px 0 8px; }

.cv { position: relative; width: 100%; }
.cv--trend { height: 270px; }
.cv--team { height: 270px; }

/* Phase stepper */
.phase-scroll { overflow-x: auto; }
.phase { min-width: 760px; }
.phase__head, .phase__row { display: grid; grid-template-columns: 220px repeat(5, minmax(0, 1fr)) 64px; gap: 4px; align-items: center; }
.phase__head { font-family: var(--d24-mono); font-size: 10.5px; color: #7d8ba6; letter-spacing: .04em; padding-bottom: 6px; }
.phase__head span:not(:first-child) { text-align: center; }
.phase__head span:last-child { text-align: right; }
.phase__rows { display: grid; }
.phase__row { padding: 10px 0; border-top: 1px solid var(--d24-hair); }
.phase__p { display: grid; line-height: 1.3; min-width: 0; }
.phase__p code { font-size: 11px; color: var(--ailo-accent); }
.phase__p b { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phase__p small { font-size: 11px; color: var(--ailo-muted); }
.ph { position: relative; height: 22px; border: 1px solid var(--d24-hair); background: repeating-linear-gradient(135deg, transparent 0 5px, rgba(31, 95, 209, .05) 5px 6px); overflow: hidden; }
.ph i { position: absolute; inset: 0 auto 0 0; background: var(--d24-s1); }
.ph.is-done { border-color: var(--d24-s1); }
.ph.is-done i { background: #b9cdf1; }
.ph.is-cur { border-color: var(--d24-s1); }
.ph.is-cur.is-warn { border-color: var(--d24-s2); }
.ph.is-cur.is-warn i { background: var(--d24-s2); }
.ph b { position: absolute; right: 5px; top: 50%; translate: 0 -50%; font-family: var(--d24-mono); font-size: 11px; font-weight: 600; color: var(--ailo-fg); background: rgba(251, 252, 253, .92); padding: 0 3px; line-height: 16px; }
.phase__due { text-align: right; display: grid; line-height: 1.2; font-family: var(--d24-mono); }
.phase__due b { font-size: 13px; }
.phase__due small { font-size: 10.5px; color: var(--ailo-muted); }
.phase__due.is-hot b { color: var(--d24-bad); }

/* Permit tracker */
.permits { display: grid; gap: 0; }
.permits > li { padding: 12px 0; border-top: 1px solid var(--d24-hair); }
.permits > li:first-child { border-top: 0; padding-top: 0; }
.permit__t { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.permit__t b { font-size: 14px; font-weight: 600; }
.permit__m { font-size: 12px; color: var(--ailo-muted); margin-top: 6px; }
.permit__m b { font-family: var(--d24-mono); color: var(--ailo-fg); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 10px; counter-reset: st; }
.steps li { position: relative; padding-top: 16px; font-size: 11px; color: #8a98b3; text-align: center; counter-increment: st; }
.steps li::before { content: ""; position: absolute; top: 4px; left: 0; right: 0; height: 1px; background: var(--d24-axis); }
.steps li::after { content: ""; position: absolute; top: 0; left: 50%; width: 9px; height: 9px; translate: -50% 0; background: var(--d24-panel); border: 1px solid var(--d24-axis); }
.steps li:first-child::before { left: 50%; } .steps li:last-child::before { right: 50%; }
.steps li.is-done { color: var(--ailo-fg); }
.steps li.is-done::before { background: var(--ailo-accent); }
.steps li.is-done::after { background: var(--ailo-accent); border-color: var(--ailo-accent); }
.steps li.is-cur { color: var(--ailo-accent); font-weight: 700; }
.steps li.is-cur::after { border: 2px solid var(--ailo-accent); width: 11px; height: 11px; top: -1px; }
.steps li.is-cur.is-warn { color: #b14a1d; }
.steps li.is-cur.is-warn::after { border-color: var(--d24-s2); background: #fde9df; }
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; padding: 2px 7px; border: 1px solid currentColor; white-space: nowrap; color: #3a4762; flex: none; }
.tag i { font-size: 9px; }
.tag--rev { color: #b14a1d; background: #fdf0e9; }
.tag--rej { color: var(--d24-bad); background: #fcecea; }
.tag--ing { color: var(--ailo-accent); background: #eef3fc; }
.tag--ok { color: var(--d24-good); background: #e9f6ee; }

/* Table */
.tools { display: flex; gap: 8px; flex-wrap: wrap; }
.fld { position: relative; }
.fld i { position: absolute; left: 11px; top: 50%; translate: 0 -50%; font-size: 12px; color: var(--ailo-muted); }
.fld input { height: 36px; width: 230px; max-width: 100%; border: 1px solid var(--ailo-line); border-radius: 0; background: #fff; padding: 0 12px 0 32px; font-size: 13px; }
.fld input:focus { outline: none; border-color: var(--ailo-accent); }
.btn-b { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border: 1px solid var(--ailo-accent); background: var(--ailo-accent); color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; }
.btn-b:hover { background: #174aa6; }
.tw { overflow-x: auto; }
.tbl { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 13px; }
.tbl th { padding: 0; border-top: 1px solid var(--d24-ink-line); border-bottom: 1px solid var(--d24-ink-line); text-align: left; white-space: nowrap; }
.tbl th button { width: 100%; border: 0; background: none; text-align: inherit; padding: 8px 10px; font-family: var(--d24-mono); font-size: 11px; font-weight: 600; letter-spacing: .06em; color: var(--ailo-muted); display: flex; align-items: center; gap: 6px; }
.tbl th button::after { content: "\f0dc"; font: var(--fa-font-solid); font-size: 9px; opacity: .45; }
.tbl th[aria-sort="ascending"] button::after { content: "\f0de"; opacity: 1; color: var(--ailo-accent); }
.tbl th[aria-sort="descending"] button::after { content: "\f0dd"; opacity: 1; color: var(--ailo-accent); }
.tbl th button:hover { color: var(--ailo-accent); }
.tbl td { padding: 10px; border-bottom: 1px solid var(--d24-hair); white-space: nowrap; }
.tbl tbody tr:hover td { background: #f3f6fc; }
.dno { font-weight: 600; color: var(--ailo-accent); }
.t-proj { color: var(--ailo-muted); }
.t-date { font-family: var(--d24-mono); font-size: 12px; }
.t-empty { text-align: center; color: var(--ailo-muted); padding: 28px !important; }
.rv { font-family: var(--d24-mono); font-size: 11px; font-weight: 600; padding: 1px 6px; border: 1px solid var(--d24-axis); color: #2c3d5f; background: #fff; }
.ds { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 2px 8px; border: 1px solid; }
.ds i { font-size: 10px; }
.ds--draft { color: #4b5770; border-color: #b7bfcb; border-style: dashed; }
.ds--review { color: var(--d24-warn); border-color: #e8c06a; background: #fff8e6; }
.ds--reject { color: var(--d24-bad); border-color: #eaa59c; background: #fcecea; }
.ds--approve { color: var(--d24-good); border-color: #8fd0a7; background: #e9f6ee; }
.ds--issue { color: #fff; border-color: var(--ailo-accent); background: var(--ailo-accent); }
.pager { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-top: 14px; }
.pager p { font-family: var(--d24-mono); font-size: 11px; color: var(--ailo-muted); letter-spacing: .06em; }
.pager ul { display: flex; }
.pager button { min-width: 34px; height: 32px; border: 1px solid var(--ailo-line); margin-left: -1px; background: #fff; font-family: var(--d24-mono); font-size: 12px; }
.pager button:hover:not(:disabled) { color: var(--ailo-accent); }
.pager button.is-on { background: var(--ailo-accent); color: #fff; border-color: var(--ailo-accent); position: relative; }
.pager button:disabled { opacity: .35; cursor: not-allowed; }

/* History */
.hist { position: relative; display: grid; padding-left: 16px; }
.hist::before { content: ""; position: absolute; left: 4px; top: 6px; bottom: 6px; width: 1px; background: var(--d24-axis); }
.hist li { position: relative; padding: 0 0 14px; }
.hist li::before { content: ""; position: absolute; left: -16px; top: 5px; width: 9px; height: 9px; background: var(--d24-panel); border: 1px solid var(--ailo-accent); }
.hist li:first-child::before { background: var(--ailo-accent); }
.hist time { display: block; font-family: var(--d24-mono); font-size: 11px; color: #7d8ba6; }
.hist p { font-size: 13px; }
.hist p b { font-family: var(--d24-mono); font-weight: 600; color: var(--ailo-accent); }
.hist small { display: block; font-size: 12px; color: var(--ailo-muted); }

/* Footer */
.ftr { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; padding: 14px clamp(16px, 3vw, 40px) 24px; max-width: 1680px; margin-inline: auto; font-size: 12px; color: var(--ailo-muted); border-top: 1px solid var(--d24-hair); }
.ftr__scale { display: inline-flex; align-items: center; gap: 0; font-family: var(--d24-mono); font-size: 10px; letter-spacing: .1em; }
.ftr__scale span { width: 18px; height: 6px; border: 1px solid var(--ailo-fg); }
.ftr__scale span:nth-child(odd) { background: var(--ailo-fg); }
.ftr__scale span:last-of-type { margin-right: 8px; }

/* ===== Responsive ===== */
@media (max-width: 1439.98px) {
  .titleblock { grid-template-columns: minmax(0, 1fr) auto; }
  .tbk--meta { display: none; }
}
@media (max-width: 1199.98px) {
  .g-phase, .g-permit, .g-trend, .g-team, .g-table, .g-log { grid-column: span 12; }
  .g-permit .permits { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .g-permit .permits > li { border-top: 0; padding: 0; }
  .g-trend, .g-team { grid-column: span 6; }
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kpi:nth-child(4) { border-left: 0; }
  .kpi:nth-child(n+4) { border-top: 1px solid var(--d24-hair); }
}
@media (max-width: 991.98px) {
  /* backdrop-filter 는 fixed 자식(드로어)의 기준 박스를 헤더로 바꾸므로 끈다 */
  .hdr { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--d24-panel); }
  .hdr__burger { display: grid; place-items: center; }
  .hdr__search { display: none; }
  .hdr__noti { margin-left: auto; }
  .me__t { display: none; }
  .gnb {
    position: fixed; left: 0; top: 0; bottom: 0; width: min(300px, 86vw); z-index: 130; padding: 0; background: var(--d24-panel);
    border-right: 1px solid var(--d24-ink-line); display: flex; flex-direction: column; overflow-y: auto;
    translate: -100% 0; visibility: hidden; transition: translate .3s var(--ailo-ease), visibility 0s linear .3s;
  }
  html.sb-open .gnb { translate: 0 0; visibility: visible; transition: translate .3s var(--ailo-ease), visibility 0s; box-shadow: 10px 0 0 rgba(31, 95, 209, .1); }
  .gnb__hd { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--d24-ink-line); }
  .gnb__close { width: 38px; height: 38px; border: 1px solid var(--ailo-line); background: #fff; color: var(--ailo-accent); }
  .gnb ul { flex-direction: column; overflow: visible; }
  .gnb a { padding: 14px 18px; border-right: 0; border-bottom: 1px solid var(--d24-hair); font-size: 15px; }
  .gnb li:first-child a { border-left: 0; }
  .gnb a.is-active::after { left: 0; right: auto; top: 0; bottom: 0; width: 3px; height: auto; }
  .gnb__foot { display: block; margin-top: auto; padding: 14px 18px; font-family: var(--d24-mono); font-size: 11px; color: var(--ailo-muted); border-top: 1px solid var(--d24-hair); }
  .sb-dim { display: block; position: fixed; inset: 0; z-index: 120; background: rgba(20, 33, 58, .4); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
  html.sb-open .sb-dim { opacity: 1; visibility: visible; }
  html.sb-open body { overflow: hidden; }
}
@media (max-width: 767.98px) {
  .g-trend, .g-team { grid-column: span 12; }
  .g-permit .permits { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .g-permit .permits > li { border-top: 1px solid var(--d24-hair); padding: 12px 0; }
  .g-permit .permits > li:first-child { border-top: 0; padding-top: 0; }
  .titleblock { grid-template-columns: minmax(0, 1fr); }
  .tbk + .tbk { border-left: 0; border-top: 1px solid var(--d24-ink-line); }
  .tbk--filter { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
  /* 단계 진행표: 프로젝트명을 위로 올리고 5단계 막대를 전체 폭으로 */
  .phase { min-width: 0; }
  .phase__head, .phase__row { grid-template-columns: repeat(5, minmax(0, 1fr)) 50px; row-gap: 6px; }
  .phase__head span:first-child { display: none; }
  .phase__head { font-size: 10px; }
  .phase__p { grid-column: 1 / -1; grid-template-columns: auto 1fr; column-gap: 8px; align-items: baseline; }
  .phase__p small { display: none; }
  .ph b { right: 2px; font-size: 10px; }
}
@media (max-width: 575.98px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi { padding: 12px 12px 10px; border-left: 0 !important; border-top: 1px solid var(--d24-hair); }
  .kpi:nth-child(-n+2) { border-top: 0; }
  .kpi:nth-child(even) { border-left: 1px solid var(--d24-hair) !important; }
  .kpi:last-child { grid-column: 1 / -1; }
  .kpi__vs { display: block; }
  .hdr__row { gap: 10px; padding-inline: 12px; }
  .brand { font-size: 13px; letter-spacing: .1em; }
  .page { padding-inline: 12px; }
  .pn { padding: 14px 12px; }
  .tools, .fld, .fld input { width: 100%; }
  .seg button { padding: 6px 11px; }
  .lg { width: 100%; }
  .pn__hd { flex-wrap: wrap; }
  .pn__hd > div { flex: 1; }
}
