/* ==========================================================================
   AILO Dashboard D21 — 이벤트보드 (행사대행 준비 운영)
   원형: 상단 가로 내비 + 전폭 간트/타임라인 중심, 에디토리얼 규선 레이아웃
   타이포: Pretendard + Space Grotesk(숫자) / 컬러: 화이트 + 비비드 마젠타 + 잉크 블랙
   ========================================================================== */

:root {
  --ailo-bg: #ffffff;
  --ailo-fg: #141014;
  --ailo-muted: #6c6370;
  --ailo-line: #ebe4ea;
  --ailo-accent: #c2187a;
  --ailo-header-h: 64px;

  --d21-num: "Space Grotesk", "Pretendard Variable", Pretendard, system-ui, sans-serif;
  --d21-ink: #141014;
  --d21-paper: #faf6f9;
  --d21-pink-50: #fdf0f7;
  --d21-pink-100: #f9d9ea;
  --d21-pink-700: #8e0f58;
  --d21-grid: #efe9ee;
  --d21-axis: #d3c8d0;
  --d21-plan: #dccfd8;

  /* 범주(등록 경로) — validate_palette 통과 순서 */
  --d21-s1: #c2187a;
  --d21-s2: #3a63d6;
  --d21-s3: #14a37a;
  --d21-s4: #e08600;

  --d21-good-ink: #0a6b1f;
  --d21-warn-ink: #8a5500;
  --d21-crit: #d03b3b;
  --d21-crit-ink: #b02727;

  --d21-gap: clamp(16px, 1.8vw, 26px);
  --d21-max: 1480px;
}

body { font-size: 14px; }
.num { font-family: var(--d21-num); font-variant-numeric: tabular-nums; }
.wrap { max-width: var(--d21-max); margin: 0 auto; padding: 0 clamp(16px, 2.4vw, 36px); }
main { padding: clamp(18px, 2.4vw, 32px) 0 clamp(28px, 3vw, 44px); }
main > .wrap { display: flex; flex-direction: column; gap: var(--d21-gap); }

/* ===== Top nav ===== */
.top { position: sticky; top: 0; z-index: 50; background: var(--d21-ink); color: #fff; }
.top__in { max-width: var(--d21-max); margin: 0 auto; height: 64px; padding: 0 clamp(16px, 2.4vw, 36px); display: flex; align-items: center; gap: 28px; }
.top__burger { color: #fff; margin-left: -8px; }
.top__logo { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 17px; letter-spacing: -.02em; white-space: nowrap; color: inherit; }
.top__mark { width: 30px; height: 30px; border-radius: 50%; background: var(--ailo-accent); display: grid; place-items: center; font: 700 18px/1 var(--d21-num); color: #fff; padding-bottom: 3px; }
.top__nav { display: flex; height: 100%; gap: 2px; }
.top__nav a { position: relative; display: flex; align-items: center; padding: 0 12px; font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, .7); white-space: nowrap; transition: color .2s; }
.top__nav a:hover { color: #fff; }
.top__nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 4px; background: var(--ailo-accent); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ailo-ease); }
.top__nav a:hover::after { transform: scaleX(1); background: rgba(255, 255, 255, .35); }
.top__nav a.is-active { color: #fff; font-weight: 700; }
.top__nav a.is-active::after { transform: scaleX(1); background: var(--ailo-accent); }
.top__actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.top__search { position: relative; }
.top__search i { position: absolute; left: 13px; top: 50%; translate: 0 -50%; font-size: 12px; color: rgba(255, 255, 255, .55); }
.top__search input { width: 220px; height: 36px; border-radius: 18px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .08); color: #fff; padding: 0 14px 0 34px; font-size: 13px; }
.top__search input::placeholder { color: rgba(255, 255, 255, .5); }
.top__search input:focus { outline: none; border-color: var(--ailo-accent); background: rgba(255, 255, 255, .12); }
.top__icon { position: relative; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .16); background: transparent; color: #fff; }
.top__icon:hover { background: rgba(255, 255, 255, .1); }
.top__badge { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--ailo-accent); font: 700 10.5px var(--d21-num); display: grid; place-items: center; border: 2px solid var(--d21-ink); }
.top__profile { display: flex; align-items: center; gap: 9px; background: transparent; border: 0; color: #fff; text-align: left; padding: 2px; }
.top__who b { display: block; font-size: 13px; line-height: 1.2; }
.top__who small { font-size: 11.5px; color: rgba(255, 255, 255, .6); white-space: nowrap; }
.ava { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; font-style: normal; background: #efe8ee; color: var(--d21-ink); }
.ava--me { background: var(--ailo-accent); color: #fff; }
.ava--xs { width: 20px; height: 20px; flex-basis: 20px; font-size: 10px; }

.dd { position: relative; }
.dd__panel { position: absolute; right: 0; top: calc(100% + 12px); width: 340px; background: #fff; color: var(--ailo-fg); border: 1px solid var(--ailo-line); border-top: 3px solid var(--ailo-accent); box-shadow: 0 24px 50px -24px rgba(20, 16, 20, .4); z-index: 70; }
.dd__head { display: flex; justify-content: space-between; padding: 12px 16px; font-weight: 700; border-bottom: 1px solid var(--ailo-line); }
.dd__head span { font-weight: 500; font-size: 12px; color: var(--ailo-muted); }
.dd__list li { display: grid; grid-template-columns: 18px 1fr auto; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--d21-grid); }
.dd__list li:last-child { border-bottom: 0; }
.dd__list li:hover { background: var(--d21-paper); }
.dd__list li > i { margin-top: 3px; font-size: 13px; }
.dd__list b { font-size: 13px; display: block; }
.dd__list p { font-size: 12px; color: var(--ailo-muted); }
.dd__list time { font-size: 11px; color: var(--ailo-muted); white-space: nowrap; }
.is-crit { color: var(--d21-crit); }
.is-warn { color: #c98500; }
.is-info { color: var(--ailo-accent); }

/* drawer (mobile) */
.drawer, .drawer-dim { display: none; }

/* ===== Hero ===== */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 340px; border: 1px solid var(--ailo-line); border-top: 3px solid var(--d21-ink); }
.hero__main { padding: clamp(18px, 2vw, 28px); min-width: 0; }
.evtabs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 18px; }
.evtabs button { border: 1px solid var(--ailo-line); background: #fff; border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 600; color: var(--ailo-muted); transition: all .2s; }
.evtabs button:hover { border-color: var(--d21-ink); color: var(--d21-ink); }
.evtabs button[aria-selected="true"] { background: var(--d21-ink); border-color: var(--d21-ink); color: #fff; }
.evtabs__more { font-size: 12px; color: var(--ailo-muted); margin-left: 4px; }
.crumb { font-size: 12px; color: var(--ailo-muted); font-family: var(--d21-num); letter-spacing: .02em; }
.crumb a:hover { color: var(--ailo-accent); }
.hero__t { font-size: clamp(28px, 3.6vw, 50px); font-weight: 800; letter-spacing: -.045em; line-height: 1.1; margin: 6px 0 14px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 13.5px; color: #3e3640; }
.hero__meta i { color: var(--ailo-accent); width: 16px; }
.hero__dday { background: var(--ailo-accent); color: #fff; padding: clamp(18px, 2vw, 26px); display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.hero__dday::before { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; border: 36px solid rgba(255, 255, 255, .09); }
.hero__dl { font-size: 13px; font-weight: 600; opacity: .85; }
.hero__dn { font: 700 clamp(64px, 7vw, 104px)/.95 var(--d21-num); letter-spacing: -.04em; margin: 4px 0 18px; }
.hero__prog p { display: flex; justify-content: space-between; font-size: 12.5px; margin-bottom: 6px; }
.hero__prog b { font-family: var(--d21-num); }
.bar { height: 8px; background: rgba(255, 255, 255, .25); border-radius: 4px; overflow: hidden; }
.bar i { display: block; height: 100%; width: var(--v); background: #fff; border-radius: 4px; transition: width .5s var(--ailo-ease); }

/* ===== Filter bar ===== */
.fbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.seg { display: inline-flex; border: 1px solid var(--d21-ink); }
.seg button { border: 0; background: #fff; padding: 8px 16px; font-size: 13px; font-weight: 600; color: var(--d21-ink); white-space: nowrap; transition: background .2s, color .2s; }
.seg button + button { border-left: 1px solid var(--d21-ink); }
.seg button:hover { background: var(--d21-pink-50); }
.seg button[aria-pressed="true"] { background: var(--d21-ink); color: #fff; }
.fbar__note { font-size: 12.5px; color: var(--ailo-muted); }

/* ===== KPI strip ===== */
.kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--ailo-line); border-top: 3px solid var(--d21-ink); }
.kpi { padding: 16px 18px 14px; border-left: 1px solid var(--ailo-line); min-width: 0; display: flex; flex-direction: column; }
.kpi:first-child { border-left: 0; }
.kpi--lead { background: var(--d21-pink-50); }
.kpi__l { font-size: 12.5px; font-weight: 700; color: var(--ailo-muted); }
.kpi__v { display: flex; align-items: baseline; gap: 4px; margin-top: 4px; }
.kpi__v b { font: 700 clamp(28px, 2.6vw, 38px)/1.1 var(--d21-num); letter-spacing: -.03em; }
.kpi__v span { font-size: 13px; font-weight: 600; color: var(--ailo-muted); }
.kpi__d { font-size: 12px; margin-top: 2px; }
.kpi__d b { font-weight: 700; }
.kpi__d small { color: var(--ailo-muted); font-size: 11.5px; }
.kpi__d.is-good { color: var(--d21-good-ink); }
.kpi__d.is-bad { color: var(--d21-crit-ink); }
.kpi__d.is-flat { color: var(--d21-ink); }
.kpi__bars { display: flex; align-items: flex-end; gap: 2px; height: 30px; margin-top: auto; padding-top: 10px; }
.kpi__bars i { flex: 1; max-width: 24px; background: var(--d21-pink-100); border-radius: 2px 2px 0 0; }
.kpi__bars i.is-last { background: var(--ailo-accent); }
.spark { width: 100%; height: 28px; margin-top: auto; padding-top: 6px; overflow: visible; }
.spark path { fill: none; stroke: var(--d21-ink); stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-linejoin: round; }

/* ===== Blocks ===== */
.block { border: 1px solid var(--ailo-line); border-top: 3px solid var(--d21-ink); padding: clamp(16px, 1.8vw, 24px); min-width: 0; background: #fff; }
.block__h { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; margin-bottom: 16px; }
.block__h--wrap { flex-wrap: wrap; }
.block__k { font: 600 11.5px var(--d21-num); letter-spacing: .12em; color: var(--ailo-accent); }
.block__t { font-size: clamp(17px, 1.5vw, 20px); font-weight: 800; letter-spacing: -.03em; line-height: 1.25; }
.more { font-size: 12.5px; font-weight: 700; color: var(--d21-ink); white-space: nowrap; border-bottom: 2px solid var(--ailo-accent); }
.more:hover { color: var(--ailo-accent); }
.big-num { text-align: right; line-height: 1.1; white-space: nowrap; }
.big-num b { font: 700 clamp(22px, 2vw, 28px) var(--d21-num); letter-spacing: -.02em; }
.big-num span { display: block; font-size: 12px; color: var(--ailo-muted); margin-top: 2px; }

/* ===== Gantt ===== */
.gantt-card .block__h { align-items: center; flex-wrap: wrap; }
.g-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: #3e3640; }
.g-legend li { display: flex; align-items: center; gap: 6px; }
.g-legend li > i { width: 22px; height: 10px; border-radius: 3px; display: inline-block; }
.lg-done { background: #4a4048; }
.lg-prog { background: linear-gradient(90deg, var(--ailo-accent) 55%, var(--d21-pink-100) 55%); }
.lg-todo { border: 1.5px solid #bfb2bb; background: #fff; }
.lg-late { background: linear-gradient(90deg, var(--d21-crit) 40%, #fbe0e0 40%); }
.lg-ms { width: 10px !important; height: 10px !important; border-radius: 0 !important; background: var(--d21-ink); rotate: 45deg; margin: 0 4px; }
.g-legend .fa-triangle-exclamation { color: var(--d21-crit); }

.gantt__scroll { overflow-x: auto; border: 1px solid var(--ailo-line); overscroll-behavior-x: contain; }
.gantt { --lab: 260px; --cell: 25px; position: relative; min-width: calc(var(--lab) + var(--days) * var(--cell) + 30px); font-size: 13px; }
.gantt__label { position: sticky; left: 0; z-index: 4; flex: 0 0 var(--lab); width: var(--lab); background: #fff; border-right: 1px solid var(--ailo-line); display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 14px; min-width: 0; }
.gantt__head { display: flex; border-bottom: 1px solid var(--d21-ink); position: relative; }
.gantt__label--head { font-size: 11.5px; font-weight: 700; color: var(--ailo-muted); background: var(--d21-paper); }
.gantt__days { display: grid; grid-template-columns: repeat(var(--days), var(--cell)); }
.gday { position: relative; height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding-bottom: 6px; line-height: 1.15; }
.gday b { font: 600 12px var(--d21-num); }
.gday span { font-size: 10px; color: var(--ailo-muted); }
.gday em { position: absolute; top: 6px; left: 3px; font-style: normal; font-size: 10.5px; font-weight: 700; color: var(--d21-ink); white-space: nowrap; }
.gday.is-we { background: var(--d21-paper); }
.gday.is-we span { color: var(--d21-crit-ink); }
.gday.is-today b { background: var(--d21-ink); color: #fff; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; }
.gday.is-dday b { background: var(--ailo-accent); color: #fff; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; }
.gantt__body { position: relative; }
.grow { display: flex; height: 30px; background: var(--d21-paper); border-bottom: 1px solid var(--ailo-line); }
.grow .gantt__label { background: var(--d21-paper); font-size: 11.5px; font-weight: 800; letter-spacing: .04em; color: var(--d21-ink); justify-content: flex-start; }
.grow .gantt__label::before { content: ""; width: 8px; height: 8px; background: var(--ailo-accent); margin-right: 2px; }
.trow { display: flex; height: 46px; border-bottom: 1px solid var(--d21-grid); }
.trow:hover .gantt__label, .trow:hover .trow__track { background-color: #fdf7fb; }
.trow__n { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.trow__m { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; font-size: 12px; color: var(--ailo-muted); }
.trow__m .num { min-width: 34px; text-align: right; font-weight: 600; color: var(--d21-ink); }
.trow__track {
  position: relative; flex: 0 0 calc(var(--days) * var(--cell)); width: calc(var(--days) * var(--cell));
  background-image:
    linear-gradient(90deg, var(--d21-grid) 1px, transparent 1px),
    linear-gradient(90deg, transparent calc(var(--cell) * 5), rgba(250, 246, 249, .9) calc(var(--cell) * 5));
  background-size: calc(var(--cell) * 7) 100%, calc(var(--cell) * 7) 100%;
}
.gbar {
  position: absolute; top: 15px; height: 20px; left: calc(var(--s) * var(--cell) + 2px); width: calc(var(--len) * var(--cell) - 4px);
  border: 0; padding: 0; border-radius: 4px; background: var(--d21-pink-100); text-align: left; transition: box-shadow .2s, translate .2s; z-index: 1;
}
.gbar:hover, .gbar:focus-visible { box-shadow: 0 6px 14px -6px rgba(20, 16, 20, .45); translate: 0 -1px; }
.gbar__fill { position: absolute; left: 0; top: 0; bottom: 0; width: var(--p); background: var(--ailo-accent); border-radius: 4px; }
.gbar__l { position: absolute; left: calc(100% + 7px); top: 50%; translate: 0 -50%; font: 600 11.5px var(--d21-num); color: var(--d21-ink); white-space: nowrap; }
.gbar--done { background: #4a4048; }
.gbar--done .gbar__fill { display: none; }
.gbar--done .gbar__l { color: var(--ailo-muted); font-weight: 500; }
.gbar--todo { background: #fff; box-shadow: inset 0 0 0 1.5px #bfb2bb; }
.gbar--late { background: #fbe0e0; box-shadow: inset 0 0 0 1.5px var(--d21-crit); }
.gbar--late .gbar__fill { background: var(--d21-crit); }
.gbar--late .gbar__l { color: var(--d21-crit-ink); font-family: var(--ailo-font); font-weight: 700; }
.gbar--main { background: repeating-linear-gradient(135deg, var(--ailo-accent) 0 6px, #d94a9a 6px 12px); box-shadow: none; }
.gbar--main .gbar__l { color: var(--ailo-accent); font-weight: 700; }
.gms { position: absolute; top: 25px; left: calc((var(--s) + .5) * var(--cell)); z-index: 2; pointer-events: auto; }
.gms i { position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; background: var(--d21-ink); border: 2px solid #fff; rotate: 45deg; }
.gms em { position: absolute; left: -4px; top: -24px; font-style: normal; font-size: 10.5px; font-weight: 700; white-space: nowrap; background: #fff; color: var(--d21-ink); padding: 0 4px; border: 1px solid var(--ailo-line); line-height: 14px; }
.gline { position: absolute; top: 0; bottom: 0; left: calc(var(--lab) + (var(--s) + .5) * var(--cell) - 1px); width: 2px; z-index: 3; pointer-events: none; }
.gline span { position: absolute; top: -1px; left: 50%; translate: -50% 0; font: 700 10px var(--d21-num); color: #fff; padding: 2px 6px; white-space: nowrap; letter-spacing: .04em; }
.gline--today { background: var(--d21-ink); }
.gline--today span { background: var(--d21-ink); }
.gline--dday { background: var(--ailo-accent); }
.gline--dday span { background: var(--ailo-accent); }

/* ===== Rows ===== */
.row-2 { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--d21-gap); }
.row-3 { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: var(--d21-gap); }
.chart { position: relative; }
.chart--reg { height: 280px; }
.chart--bud { height: 420px; }

.split { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--ailo-line); }
.split__t { font-size: 12.5px; font-weight: 700; margin-bottom: 8px; }
.split__bar { display: flex; gap: 2px; height: 28px; }
.split__bar span { flex: 0 0 calc(var(--w) - 2px); min-width: 0; background: var(--c); border-radius: 4px; color: #fff; font: 700 12px var(--d21-num); display: flex; align-items: center; padding: 0 8px; white-space: nowrap; overflow: hidden; }
.split__bar span:nth-child(4) { color: #1a1206; }
.split__lg { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; font-size: 12.5px; color: #3e3640; }
.split__lg i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; background: var(--c); margin-right: 6px; vertical-align: -1px; }

/* table */
.tsearch { position: relative; }
.tsearch i { position: absolute; left: 0; top: 50%; translate: 0 -50%; font-size: 12px; color: var(--ailo-muted); }
.tsearch input { width: 230px; max-width: 100%; height: 36px; border: 0; border-bottom: 2px solid var(--d21-ink); padding: 0 6px 0 22px; font-size: 13px; background: transparent; color: var(--ailo-fg); border-radius: 0; }
.tsearch input:focus { outline: none; border-color: var(--ailo-accent); }
.tbl-scroll { overflow-x: auto; }
.tbl { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 13px; }
.tbl th { padding: 0; border-bottom: 1px solid var(--d21-ink); }
.tbl th button { width: 100%; border: 0; background: transparent; text-align: left; padding: 9px 10px; font-size: 12px; font-weight: 700; color: var(--ailo-muted); white-space: nowrap; }
.tbl th.r button { text-align: right; }
.tbl th button i { font-size: 10px; margin-left: 4px; color: var(--d21-axis); }
.tbl th button:hover, .tbl th[aria-sort] button { color: var(--d21-ink); }
.tbl th[aria-sort] button i { color: var(--ailo-accent); }
.tbl td { padding: 12px 10px; border-bottom: 1px solid var(--d21-grid); white-space: nowrap; vertical-align: middle; }
.tbl td b { font-weight: 700; }
.tbl td.r { text-align: right; }
.tbl td.num { font-size: 12.5px; }
.tbl tbody tr:hover td { background: var(--d21-paper); }
.bdg { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.bdg i { font-size: 10px; }
.bdg--ok { background: #e7f5ea; color: var(--d21-good-ink); }
.bdg--warn { background: #fff1d6; color: var(--d21-warn-ink); }
.bdg--crit { background: #fde6e6; color: var(--d21-crit-ink); }
.bdg--info { background: var(--d21-pink-50); color: var(--d21-pink-700); }
.tbl-empty { text-align: center; color: var(--ailo-muted); padding: 24px 0; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.pager p { font-size: 12.5px; color: var(--ailo-muted); }
.pager ul { display: flex; gap: 2px; }
.pager nav a { min-width: 32px; height: 32px; display: grid; place-items: center; font: 600 12.5px var(--d21-num); color: var(--d21-ink); }
.pager nav a:hover { background: var(--d21-pink-50); color: var(--ailo-accent); }
.pager nav a.is-on { background: var(--d21-ink); color: #fff; }

/* feed */
.feed li { position: relative; padding: 0 0 16px 18px; border-left: 1px solid var(--ailo-line); margin-left: 4px; }
.feed li:last-child { padding-bottom: 0; }
.feed li::before { content: ""; position: absolute; left: -5px; top: 4px; width: 9px; height: 9px; border-radius: 50%; background: #fff; border: 2px solid var(--d21-ink); }
.feed li:first-child::before { background: var(--ailo-accent); border-color: var(--ailo-accent); }
.feed time { display: block; font: 600 11.5px var(--d21-num); color: var(--ailo-muted); }
.feed p { font-size: 13px; line-height: 1.5; margin-top: 2px; }
.feed .tag { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; font-size: 11px; font-weight: 700; padding: 2px 8px; border: 1px solid var(--ailo-line); color: #3e3640; }
.tag--crit { border-color: #f2b9b9; color: var(--d21-crit-ink); background: #fff5f5; }
.tag--ok { border-color: var(--d21-pink-100); color: var(--d21-pink-700); background: var(--d21-pink-50); }

/* footer */
.ft { border-top: 3px solid var(--d21-ink); }
.ft__in { display: flex; justify-content: space-between; gap: 8px 20px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 26px; font-size: 12px; color: var(--ailo-muted); }
.ft__links { display: flex; gap: 16px; }
.ft__links a:hover { color: var(--ailo-accent); }
.ft b { color: var(--d21-ink); }

/* ===== Responsive ===== */
@media (max-width: 1399.98px) {
  .top__search { display: none; }
  .top__in { gap: 18px; }
  .top__nav a { padding: 0 9px; }
}
@media (max-width: 1199.98px) {
  .top__who { display: none; }
  .row-2, .row-3 { grid-template-columns: 1fr; }
  .chart--bud { height: 360px; }
  .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: 991.98px) {
  .top__nav { display: none; }
  .drawer {
    display: flex; flex-direction: column; position: fixed; left: 0; top: 0; bottom: 0; width: min(300px, 86vw); z-index: 200;
    background: var(--d21-ink); color: #fff; padding: 18px 16px; overflow-y: auto;
    transform: translateX(-100%); visibility: hidden; transition: transform .3s var(--ailo-ease), visibility .3s;
  }
  html.drawer-open .drawer { transform: none; visibility: visible; transition: transform .3s var(--ailo-ease), visibility 0s; } /* 열 때 visibility 즉시 → 곧바로 포커스 가능 */
  .drawer__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
  .drawer__close { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); background: transparent; color: #fff; }
  .drawer__nav a { display: flex; align-items: center; gap: 12px; padding: 13px 10px; font-size: 15px; font-weight: 600; color: rgba(255, 255, 255, .78); border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .drawer__nav a i { width: 18px; text-align: center; color: rgba(255, 255, 255, .45); }
  .drawer__nav a:hover { color: #fff; }
  .drawer__nav a.is-active { color: #fff; box-shadow: inset 4px 0 0 var(--ailo-accent); padding-left: 16px; }
  .drawer__nav a.is-active i { color: var(--ailo-accent); }
  .drawer-dim { display: block; position: fixed; inset: 0; z-index: 190; background: rgba(20, 16, 20, .5); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
  html.drawer-open .drawer-dim { opacity: 1; visibility: visible; }
  .hero { grid-template-columns: 1fr; }
  .hero__dday { flex-direction: row; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
  .hero__dl { flex: 0 0 100%; }
  .hero__dn { margin: 0; }
  .hero__prog { flex: 1 1 180px; }
}
@media (max-width: 767.98px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi { border-left: 1px solid var(--ailo-line) !important; border-top: 1px solid var(--ailo-line); }
  .kpi:nth-child(odd) { border-left: 0 !important; }
  .kpi:nth-child(-n+2) { border-top: 0; }
  .kpi:last-child { grid-column: 1 / -1; }
  .gantt { --lab: 168px; --cell: 24px; }
  .trow__m .ava { display: none; }
}
@media (max-width: 575.98px) {
  .top__in { height: 58px; gap: 10px; }
  .dd__panel { position: fixed; left: 10px; right: 10px; top: 64px; width: auto; }
  .hero__dday { padding: 16px 18px; }
  .hero__dn { font-size: 60px; }
  .hero__meta { flex-direction: column; }
  .seg { width: 100%; }
  .seg button { flex: 1; padding: 8px 4px; }
  .kpi { padding: 13px 14px 12px; }
  .kpi__d small { display: block; }
  .block__h { flex-wrap: wrap; align-items: flex-start; }
  .big-num { text-align: left; }
  .gantt { --lab: 132px; --cell: 22px; }
  .gantt__label { padding: 0 10px; }
  .trow__n { font-size: 12px; white-space: normal; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .trow__m { display: none; }
  .gantt__label--head span + span { display: none; }
  .chart--reg { height: 240px; }
  .chart--bud { height: 340px; }
  .tsearch, .tsearch input { width: 100%; }
  .pager { justify-content: center; }
  .ft__in { justify-content: center; text-align: center; }
}
