/* ==========================================================================
   AILO Dashboard D08 — 캠퍼스 포털 (대학교 학사 운영)
   원형: 상단 가로 내비(포털 탭) + 괘선 KPI 띠 + 학기 타임라인 / 타이포: Noto Serif KR(제목) + Pretendard
   컬러: 화이트 + 딥 블루(#0f2c6b), 차트 팔레트 4색(검증 통과: 블루·오렌지·틸·바이올렛)
   ========================================================================== */
:root {
  --ailo-bg: #ffffff;
  --ailo-fg: #0e1a33;
  --ailo-muted: #56627a;
  --ailo-line: #dde3ee;
  --ailo-accent: #1f4fbf;

  --d08-navy: #0f2c6b;
  --d08-navy-2: #0a2154;
  --d08-soft: #f3f6fb;
  --d08-soft-2: #e8eef8;
  --d08-surface: #ffffff;
  --d08-serif: "Noto Serif KR", "Apple Myungjo", serif;
  --d08-grid: #e6eaf2;
  --d08-axis: #b9c2d3;
  --d08-axis-ink: #6a7590;
  /* 차트 범주 색 (validate_palette.js: light / #ffffff 전 항목 PASS) */
  --d08-s1: #1f4fbf;
  --d08-s1-hover: #183f9c;
  --d08-s2: #e0782f;
  --d08-s3: #17a389;
  --d08-s4: #8a5cc7;
  /* 상태 */
  --d08-good: #11793a;
  --d08-good-bg: #e6f4ea;
  --d08-bad: #b42323;
  --d08-bad-bg: #fbe9e9;
  --d08-warn: #8a5a00;
  --d08-warn-bg: #fdf1d8;
  --d08-r: 4px;
  --ailo-header-h: 0px;
}

body { background: var(--ailo-bg); font-size: 14px; }
.wrap { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: clamp(16px, 3vw, 40px); }
.num, .mono { font-variant-numeric: tabular-nums; }
.mono { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 12.5px; color: var(--ailo-muted); }

/* ===== Utility bar ===== */
.ut { background: var(--d08-navy-2); color: #c5d0ea; font-size: 12px; }
.ut__in { max-width: 1440px; margin-inline: auto; padding: 7px clamp(16px, 3vw, 40px); display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.ut__term { margin: 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ut__term b { color: #fff; font-weight: 600; }
.ut__sep { opacity: .4; }
.ut__links { display: flex; gap: 18px; }
.ut__links a:hover { color: #fff; text-decoration: underline; }

/* ===== Top bar ===== */
.tb { background: #fff; border-bottom: 1px solid var(--ailo-line); position: relative; z-index: 60; }
.tb__in { max-width: 1440px; margin-inline: auto; padding: 14px clamp(16px, 3vw, 40px); display: flex; align-items: center; gap: clamp(12px, 2vw, 28px); }
.tb__burger { display: none; width: 40px; height: 40px; border: 1px solid var(--ailo-line); border-radius: var(--d08-r); background: #fff; color: var(--d08-navy); flex: none; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--d08-navy); flex: none; }
.brand__crest { width: 34px; height: 38px; }
.brand__txt { font-family: var(--d08-serif); font-weight: 700; font-size: 20px; line-height: 1.1; letter-spacing: -.01em; display: flex; flex-direction: column; }
.brand__txt small { font-family: var(--ailo-font); font-size: 11px; font-weight: 600; letter-spacing: .14em; color: var(--ailo-muted); }
.tb__search { position: relative; flex: 1; max-width: 460px; margin-left: auto; }
.tb__search > i { position: absolute; left: 13px; top: 50%; translate: 0 -50%; color: var(--ailo-muted); font-size: 13px; }
.tb__search input { width: 100%; height: 40px; border: 1px solid var(--ailo-line); border-radius: var(--d08-r); padding: 0 40px 0 36px; background: var(--d08-soft); font-size: 13.5px; color: var(--ailo-fg); }
.tb__search input:focus { outline: none; border-color: var(--ailo-accent); background: #fff; box-shadow: 0 0 0 3px rgba(31, 79, 191, .15); }
.tb__search kbd { position: absolute; right: 9px; top: 50%; translate: 0 -50%; background: #fff; color: var(--ailo-muted); border: 1px solid var(--ailo-line); font-size: 11px; padding: 1px 7px; border-radius: 3px; }
.tb__actions { display: flex; align-items: center; gap: 14px; flex: none; }

.nt { position: relative; }
.nt__btn { width: 40px; height: 40px; border: 1px solid var(--ailo-line); border-radius: var(--d08-r); background: #fff; color: var(--d08-navy); position: relative; }
.nt__btn:hover, .tb__burger:hover { background: var(--d08-soft); }
.nt__badge { position: absolute; top: -6px; right: -6px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--d08-bad); color: #fff; font-size: 11px; font-weight: 700; line-height: 19px; border: 2px solid #fff; box-sizing: content-box; }
.nt__panel { position: absolute; right: 0; top: calc(100% + 10px); width: min(340px, calc(100vw - 32px)); background: #fff; border: 1px solid var(--ailo-line); border-top: 3px solid var(--d08-navy); box-shadow: 0 16px 40px rgba(14, 26, 51, .14); display: none; z-index: 80; }
.nt__panel.is-open { display: block; }
.nt__head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--ailo-line); }
.nt__all { border: 0; background: none; color: var(--ailo-accent); font-size: 12.5px; }
.nt__list li { display: flex; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--d08-grid); font-size: 13px; }
.nt__list li:last-child { border-bottom: 0; }
.nt__list li > i { color: var(--d08-navy); margin-top: 3px; width: 16px; text-align: center; }
.nt__list li.is-new { background: var(--d08-soft); }
.nt__list li.is-new p { font-weight: 600; }
.nt__list time { color: var(--ailo-muted); font-size: 12px; }

.me { display: flex; align-items: center; gap: 10px; }
.me__av { width: 38px; height: 38px; border-radius: 50%; background: var(--d08-navy); color: #fff; display: grid; place-items: center; font-weight: 700; font-family: var(--d08-serif); }
.me__txt { display: flex; flex-direction: column; line-height: 1.25; }
.me__txt b { font-size: 13.5px; }
.me__txt small { font-size: 11.5px; color: var(--ailo-muted); }

/* ===== GNB (desktop 가로 탭) ===== */
.gnb { background: var(--d08-navy); position: sticky; top: 0; z-index: 50; }
.gnb__head, .gnb__foot { display: none; }
.gnb__list { max-width: 1440px; margin-inline: auto; padding-inline: clamp(16px, 3vw, 40px); display: flex; gap: 2px; }
.gnb__list a { display: flex; align-items: center; gap: 8px; padding: 13px 16px 12px; color: #c9d4ee; font-weight: 500; font-size: 14px; white-space: nowrap; border-top: 3px solid transparent; }
.gnb__list a i { font-size: 13px; opacity: .7; }
.gnb__list a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.gnb__list a.is-active { background: #fff; color: var(--d08-navy); font-weight: 700; border-top-color: var(--d08-s2); }
.gnb__list a.is-active i { opacity: 1; }
.gnb a:focus-visible { outline-color: #fff; outline-offset: -3px; }
.dim { display: none; }

/* ===== Page head ===== */
.ph { background: var(--d08-soft); border-bottom: 1px solid var(--ailo-line); }
.ph__in { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 24px; padding-block: clamp(18px, 2.4vw, 28px); flex-wrap: wrap; }
.crumb { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12.5px; color: var(--ailo-muted); margin-bottom: 6px; }
.crumb li + li::before { content: "›"; margin-right: 6px; color: var(--d08-axis); }
.crumb a:hover { color: var(--ailo-accent); text-decoration: underline; }
.crumb [aria-current] { color: var(--ailo-fg); font-weight: 600; }
.ph__title { font-family: var(--d08-serif); font-weight: 700; font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -.02em; color: var(--d08-navy); line-height: 1.25; }
.ph__meta { margin-top: 4px; color: var(--ailo-muted); font-size: 13px; }
.ph__tools { display: flex; gap: 10px; flex-wrap: wrap; }
.seg { display: inline-flex; border: 1px solid var(--d08-navy); border-radius: var(--d08-r); overflow: hidden; background: #fff; }
.seg button { border: 0; background: transparent; padding: 8px 16px; font-size: 13.5px; font-weight: 600; color: var(--d08-navy); }
.seg button + button { border-left: 1px solid var(--d08-navy); }
.seg button:hover { background: var(--d08-soft-2); }
.seg button[aria-pressed="true"] { background: var(--d08-navy); color: #fff; }
.btn-line { border: 1px solid var(--ailo-line); background: #fff; border-radius: var(--d08-r); padding: 8px 14px; font-size: 13.5px; font-weight: 600; color: var(--ailo-fg); display: inline-flex; gap: 6px; align-items: center; }
.btn-line:hover { border-color: var(--d08-navy); color: var(--d08-navy); }

/* ===== Body ===== */
.body { padding-block: clamp(18px, 2.4vw, 28px) clamp(32px, 4vw, 56px); display: flex; flex-direction: column; gap: 16px; }
.body .row { --bs-gutter-y: 16px; --bs-gutter-x: 16px; }
.charts, .body .row { transition: opacity .2s; }
.is-loading .charts, .is-loading .kpis { opacity: .45; }

/* KPI strip — 괘선으로 나눈 한 줄 */
.kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border: 1px solid var(--ailo-line); border-top: 3px solid var(--d08-navy); background: #fff; transition: opacity .2s; }
.kpi { padding: 16px 18px 12px; border-left: 1px solid var(--ailo-line); display: flex; flex-direction: column; min-width: 0; }
.kpi:first-child { border-left: 0; }
.kpi__label { font-size: 12.5px; font-weight: 600; color: var(--ailo-muted); letter-spacing: .02em; }
.kpi__value { margin: 6px 0 2px; display: flex; align-items: baseline; gap: 4px; }
.kpi__value strong { font-size: clamp(24px, 2.1vw, 30px); font-weight: 700; letter-spacing: -.02em; color: var(--ailo-fg); line-height: 1.1; }
.kpi__value span { font-size: 13px; color: var(--ailo-muted); font-weight: 500; }
.kpi__delta { font-size: 12px; color: var(--ailo-muted); display: flex; gap: 6px; flex-wrap: wrap; min-height: 18px; }
.kpi__delta b { font-weight: 700; }
.kpi__delta.is-good b { color: var(--d08-good); }
.kpi__delta.is-bad b { color: var(--d08-bad); }
.kpi__spark { width: 100%; height: 32px; margin-top: 10px; overflow: visible; }
.sp-line { fill: none; stroke: var(--d08-axis); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.sp-area { fill: var(--d08-soft); }
.sp-dot { fill: var(--d08-s1); stroke: #fff; stroke-width: 1.5; vector-effect: non-scaling-stroke; }

/* Panel */
.pn { background: #fff; border: 1px solid var(--ailo-line); border-radius: var(--d08-r); height: 100%; display: flex; flex-direction: column; min-width: 0; }
.pn__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 16px 20px 12px; border-bottom: 1px solid var(--d08-grid); }
.pn__head--wrap { flex-wrap: wrap; }
.pn__title { font-family: var(--d08-serif); font-size: 17px; font-weight: 700; color: var(--d08-navy); letter-spacing: -.01em; }
.pn__sub { font-size: 12.5px; color: var(--ailo-muted); margin-top: 2px; }
.pn__more { font-size: 12.5px; color: var(--ailo-muted); white-space: nowrap; }
.pn__more:hover { color: var(--ailo-accent); }
.pn__live { font-size: 12px; color: var(--d08-good); font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.pn__live i { width: 7px; height: 7px; border-radius: 50%; background: var(--d08-good); animation: d08-pulse 1.6s infinite; }
@keyframes d08-pulse { 50% { opacity: .3; } }

.lg { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--ailo-muted); justify-content: flex-end; }
.lg li { display: inline-flex; align-items: center; gap: 6px; }
.k-line { width: 14px; height: 2px; border-radius: 2px; display: inline-block; }
.k-box { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.cv { position: relative; height: 260px; padding: 12px 16px 12px 8px; }
.cv--lg { height: 300px; }
.cv--fill { flex: 1 1 auto; min-height: 260px; }
@media (max-width: 1199.98px) { .cv--fill { flex: none; height: 260px; } }

/* ===== Timeline ===== */
.tl { --tl-lane: 92px; }
.tl__prog { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--ailo-muted); }
.tl__prog b { color: var(--d08-navy); font-variant-numeric: tabular-nums; }
.meter { width: 140px; height: 8px; background: var(--d08-soft-2); border-radius: 8px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--d08-navy); border-radius: 8px; }
.tl__grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; }
.tl__scroll { overflow-x: auto; padding: 14px 20px 18px; border-right: 1px solid var(--d08-grid); }
.tl__scroll:focus-visible { outline-offset: -3px; }
.tl__track { position: relative; min-width: 760px; }
.tl__axis { position: relative; margin-left: var(--tl-lane); height: 34px; border-bottom: 1px solid var(--d08-axis); }
.tl__month { position: absolute; top: 0; font-size: 12.5px; font-weight: 700; color: var(--d08-navy); padding-left: 6px; border-left: 2px solid var(--d08-navy); line-height: 1; }
.tl__wk { position: absolute; bottom: 3px; font-size: 10.5px; color: var(--d08-axis-ink); font-variant-numeric: tabular-nums; translate: 2px 0; }
.tl__lane { display: flex; align-items: center; min-height: 62px; border-bottom: 1px solid var(--d08-grid); }
.tl__lname { width: var(--tl-lane); flex: none; font-size: 12px; font-weight: 600; color: var(--ailo-muted); }
.tl__bars { position: relative; flex: 1; height: 62px; background-image: repeating-linear-gradient(to right, transparent 0, transparent calc(100% / 17 * 1 - 1px), var(--d08-grid) calc(100% / 17 * 1 - 1px), var(--d08-grid) calc(100% / 17)); }
.tl__bar { position: absolute; top: 7px; height: 22px; border-radius: 4px; background: var(--d08-s1); color: #fff; font-size: 11.5px; display: flex; align-items: center; padding-inline: 6px; white-space: nowrap; overflow: visible; min-width: 6px; }
.tl__bar b { font-weight: 600; position: relative; }
.tl__bar--x { background: var(--d08-navy); }
.tl__bar--h { background: #c9d1e1; color: var(--ailo-fg); }
.tl__bar--b { background: var(--d08-s4); }
.tl__bar--c { background: #fff; color: var(--d08-s2); box-shadow: inset 0 0 0 1.5px var(--d08-s2); }
.tl__bar--c b { color: #9a4a10; }
.tl__bar.tl__r1, .tl__ms.tl__r1 { top: 33px; }
.tl__bar.is-out b { position: absolute; left: calc(100% + 5px); color: var(--ailo-fg); font-weight: 600; }
.tl__bar.is-past { opacity: .45; }
.tl__bar.is-past.is-out { opacity: 1; background: #c9d1e1; box-shadow: none; }
.tl__bar.is-past.is-out b { color: var(--ailo-muted); }
.tl__ms.is-past { color: var(--ailo-muted); }
.tl__ms { position: absolute; top: 9px; font-size: 11.5px; font-weight: 700; color: var(--d08-navy); display: flex; align-items: center; gap: 4px; translate: -5px 0; white-space: nowrap; }
.tl__ms i { width: 10px; height: 10px; rotate: 45deg; background: var(--d08-s2); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--d08-s2); }
.tl__today { position: absolute; top: 24px; bottom: -6px; width: 0; border-left: 2px solid var(--d08-bad); z-index: 2; pointer-events: none; }
.tl__today em { position: absolute; top: -20px; left: -2px; translate: -50% 0; background: var(--d08-bad); color: #fff; font-style: normal; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 3px; white-space: nowrap; }
.tl__next { padding: 14px 20px 18px; }
.tl__next h3 { font-size: 13px; font-weight: 700; color: var(--ailo-fg); margin-bottom: 10px; }
.tl__next li { display: flex; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px dotted var(--ailo-line); }
.tl__next li:last-child { border-bottom: 0; }
.tl__next b { display: block; font-size: 13.5px; font-weight: 600; }
.tl__next small { font-size: 12px; color: var(--ailo-muted); font-variant-numeric: tabular-nums; }
.dday { flex: none; min-width: 56px; text-align: center; font-size: 12px; font-weight: 700; padding: 3px 0; border-radius: 3px; background: var(--d08-soft-2); color: var(--d08-navy); font-variant-numeric: tabular-nums; }
.dday.is-soon { background: var(--d08-navy); color: #fff; }

/* ===== Table ===== */
.tsearch { position: relative; width: min(260px, 100%); }
.tsearch i { position: absolute; left: 11px; top: 50%; translate: 0 -50%; font-size: 12px; color: var(--ailo-muted); }
.tsearch input { width: 100%; height: 34px; border: 1px solid var(--ailo-line); border-radius: var(--d08-r); padding: 0 10px 0 30px; font-size: 13px; }
.tsearch input:focus { outline: none; border-color: var(--ailo-accent); box-shadow: 0 0 0 3px rgba(31, 79, 191, .15); }
.tscroll { overflow-x: auto; flex: 1; }
.tscroll:focus-visible { outline-offset: -3px; }
.dt { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 13.5px; }
.dt th { background: var(--d08-soft); border-bottom: 1px solid var(--ailo-line); padding: 0; text-align: left; white-space: nowrap; }
.dt th button { border: 0; background: none; width: 100%; text-align: inherit; padding: 10px 14px; font-size: 12.5px; font-weight: 700; color: var(--ailo-muted); display: inline-flex; align-items: center; gap: 6px; }
.dt th.num button { justify-content: flex-end; }
.dt th button:hover { color: var(--d08-navy); }
.dt th button i::before { font-family: "Font Awesome 6 Free"; font-weight: 900; font-style: normal; content: "\f0dc"; opacity: .35; font-size: 11px; }
.dt th[aria-sort="ascending"] button, .dt th[aria-sort="descending"] button { color: var(--d08-navy); }
.dt th[aria-sort="ascending"] button i::before { content: "\f0de"; opacity: 1; }
.dt th[aria-sort="descending"] button i::before { content: "\f0dd"; opacity: 1; }
.dt td { padding: 11px 14px; border-bottom: 1px solid var(--d08-grid); white-space: nowrap; vertical-align: middle; }
.dt td.num { text-align: right; }
.dt td.strong { font-weight: 600; }
.dt tbody tr:nth-child(even) td { background: #fafbfd; }
.dt tbody tr:hover td { background: var(--d08-soft-2); }
.dt .is-empty td { text-align: center; color: var(--ailo-muted); padding: 32px; background: #fff; }
.fill { display: inline-flex; align-items: center; gap: 8px; }
.fill__bar { width: 64px; height: 6px; border-radius: 6px; background: var(--d08-soft-2); overflow: hidden; }
.fill__bar i { display: block; height: 100%; background: var(--d08-s1); border-radius: 6px; }
.fill .num { font-size: 12.5px; min-width: 34px; }
.st { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 3px; }
.st i { font-size: 11px; }
.st--ok { background: var(--d08-good-bg); color: var(--d08-good); }
.st--full { background: var(--d08-soft-2); color: var(--d08-navy); }
.st--split { background: var(--d08-warn-bg); color: var(--d08-warn); }
.st--close { background: var(--d08-bad-bg); color: var(--d08-bad); }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--ailo-muted); }
.pager ul { display: flex; gap: 4px; }
.pager button { min-width: 30px; height: 30px; border: 1px solid var(--ailo-line); background: #fff; border-radius: 3px; font-size: 12.5px; color: var(--ailo-fg); }
.pager button:hover:not(:disabled) { border-color: var(--d08-navy); }
.pager button[aria-current] { background: var(--d08-navy); border-color: var(--d08-navy); color: #fff; font-weight: 700; }
.pager button:disabled { opacity: .35; cursor: default; }

/* ===== Notices & log ===== */
.ntc li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 20px; border-bottom: 1px solid var(--d08-grid); }
.ntc li:last-child { border-bottom: 0; }
.ntc a { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ntc a:hover { color: var(--ailo-accent); text-decoration: underline; }
.ntc time { font-size: 12.5px; color: var(--ailo-muted); font-variant-numeric: tabular-nums; }
.tag { font-size: 11.5px; font-weight: 700; padding: 2px 8px; border: 1px solid currentColor; border-radius: 2px; }
.tag--a { color: var(--d08-navy); }
.tag--b { color: #a14f12; }
.tag--c { color: #0d6e5d; }
.tag--d { color: #6a3fa8; }
.log { padding: 6px 20px 14px; }
.log li { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px dotted var(--ailo-line); position: relative; }
.log li:last-child { border-bottom: 0; }
.log time { font-size: 12px; color: var(--ailo-muted); font-variant-numeric: tabular-nums; padding-top: 1px; }
.log p { font-size: 13.5px; }
.log b { color: var(--d08-navy); margin-right: 4px; }

/* ===== Footer ===== */
.ft { border-top: 1px solid var(--ailo-line); background: var(--d08-soft); }
.ft__in { display: flex; justify-content: space-between; gap: 8px 20px; flex-wrap: wrap; padding-block: 18px; font-size: 12.5px; color: var(--ailo-muted); }

/* ===== Responsive ===== */
@media (max-width: 1399.98px) {
  .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(--ailo-line); }
}
@media (max-width: 1199.98px) {
  /* 992~1199px: 가로 탭 9개가 한 줄을 넘쳐 문서 폭이 늘어남 → 탭 좌우 여백 축소 */
  .gnb__list a { padding-inline: 11px; gap: 6px; }
  .tl__grid { grid-template-columns: 1fr; }
  .tl__scroll { border-right: 0; border-bottom: 1px solid var(--d08-grid); }
  .tl__next ol { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); column-gap: 20px; }
}
@media (max-width: 991.98px) {
  .ut__links { display: none; }
  .tb__burger { display: inline-grid; place-items: center; }
  .me__txt { display: none; }
  .gnb { position: fixed; top: 0; left: 0; bottom: 0; width: min(300px, 86vw); z-index: 200; display: flex; flex-direction: column; translate: -100% 0; visibility: hidden; transition: translate .3s var(--ailo-ease), visibility .3s; overflow-y: auto; }
  html.sb-open .gnb { translate: 0 0; visibility: visible; box-shadow: 12px 0 40px rgba(0, 0, 0, .25); transition: translate .3s var(--ailo-ease), visibility 0s; } /* 열 때 visibility 즉시 → 곧바로 포커스 가능 */
  .gnb__head { display: flex; justify-content: space-between; align-items: center; padding: 18px 18px 14px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
  .gnb__title { font-family: var(--d08-serif); color: #fff; font-weight: 700; font-size: 17px; }
  .gnb__close { width: 38px; height: 38px; border: 1px solid rgba(255, 255, 255, .25); background: transparent; color: #fff; border-radius: var(--d08-r); }
  .gnb__list { flex-direction: column; padding: 10px; gap: 2px; }
  .gnb__list a { border-top: 0; border-left: 3px solid transparent; padding: 12px 14px; border-radius: 0 var(--d08-r) var(--d08-r) 0; }
  .gnb__list a.is-active { border-left-color: var(--d08-s2); }
  .gnb__foot { display: block; margin-top: auto; padding: 16px 18px; font-size: 12px; color: #9fb0d6; border-top: 1px solid rgba(255, 255, 255, .12); }
  .dim { display: block; position: fixed; inset: 0; background: rgba(8, 18, 42, .5); z-index: 190; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
  html.sb-open .dim { opacity: 1; visibility: visible; }
  html.sb-open body { overflow: hidden; }
}
@media (max-width: 767.98px) {
  .tb__search kbd { display: none; }
  .tl__next ol { display: block; }
}
@media (max-width: 575.98px) {
  body { font-size: 13.5px; }
  .ut__term .ut__sep, .ut__term .ut__sep ~ * { display: none; }
  .tb__in { flex-wrap: wrap; row-gap: 10px; }
  .tb__search { order: 5; flex-basis: 100%; max-width: none; }
  .tb__actions { margin-left: auto; }
  .brand__txt { font-size: 18px; }
  .ph__tools { width: 100%; }
  .seg { flex: 1; }
  .seg button { flex: 1; padding-inline: 6px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi { padding: 14px 14px 10px; }
  .kpi:nth-child(n) { border-left: 1px solid var(--ailo-line); border-top: 1px solid var(--ailo-line); }
  .kpi:nth-child(odd) { border-left: 0; }
  .kpi:nth-child(-n+2) { border-top: 0; }
  .pn__head { padding: 14px 16px 10px; flex-wrap: wrap; }
  .lg { justify-content: flex-start; }
  .tl__prog { width: 100%; }
  .meter { flex: 1; }
  .tl__scroll, .tl__next { padding-inline: 16px; }
  .cv, .cv--lg { height: 240px; }
  .ntc li { grid-template-columns: auto minmax(0, 1fr); padding: 12px 16px; }
  .ntc time { grid-column: 2; margin-top: -8px; }
  .ntc a { white-space: normal; }
  .log { padding-inline: 16px; }
  .log li { grid-template-columns: 1fr; gap: 2px; }
}
