/* ==========================================================================
   AILO Dashboard D09 — 에듀매니저 (학원 원장 대시보드)
   원형: 플로팅 라운드 사이드바 + 파스텔 라운드 카드 그리드 / 타이포: Jua(제목) + Pretendard(본문·숫자)
   컬러: 크림 바탕 + 민트·피치·라벤더·버터 파스텔, 차트는 진한 민트·코랄·바이올렛(검증 팔레트)
   ========================================================================== */

:root {
  --ailo-bg: #f7f3ec;
  --ailo-fg: #2b2a35;
  --ailo-muted: #67647a;
  --ailo-line: rgba(43, 42, 53, .09);
  --ailo-accent: #6c54cf;

  --d09-card: #ffffff;
  --d09-mint: #dcf3ea;
  --d09-peach: #ffe5d9;
  --d09-lav: #ebe6ff;
  --d09-butter: #fff1c4;
  --d09-sky: #deeefc;
  --d09-mint-ink: #0d7563;
  --d09-peach-ink: #b4461f;
  --d09-lav-ink: #5a43bd;
  --d09-butter-ink: #8a5f00;
  --d09-sky-ink: #1f5f99;

  /* 차트(검증: 3색 all-pairs, 백색 바탕) */
  --d09-s1: #14907a;
  --d09-s2: #e0663e;
  --d09-s3: #7c64d8;
  --d09-good: #0ca30c;
  --d09-warn: #fab219;
  --d09-bad: #d03b3b;
  --d09-good-ink: #0a6b2c;
  --d09-bad-ink: #b42a2a;
  --d09-grid: #ece9f2;
  --d09-axis: #7d7a8c;

  --d09-r: 26px;
  --d09-r-sm: 16px;
  --d09-shadow: 0 1px 0 rgba(43, 42, 53, .04), 0 10px 30px -12px rgba(108, 84, 207, .18);
  --d09-side-w: 264px;
  --d09-gap: clamp(14px, 1.6vw, 22px);
  --d09-head: "Jua", var(--ailo-font);
}

body { background: var(--ailo-bg); font-size: 15px; }
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(520px 380px at 92% -4%, rgba(255, 210, 190, .55), transparent 70%),
    radial-gradient(520px 420px at 18% 108%, rgba(200, 238, 224, .6), transparent 70%),
    radial-gradient(400px 300px at 60% 40%, rgba(226, 218, 255, .35), transparent 70%);
}

/* ===== App shell ===== */
.app { display: flex; min-height: 100vh; }
.shell { flex: 1; min-width: 0; display: flex; flex-direction: column; }

/* ===== Sidebar ===== */
.side {
  position: sticky; top: 14px; align-self: flex-start;
  width: var(--d09-side-w); height: calc(100vh - 28px); margin: 14px 0 14px 14px;
  background: var(--d09-card); border-radius: 30px; box-shadow: var(--d09-shadow);
  display: flex; flex-direction: column; padding: 20px 14px 14px; overflow-y: auto; overflow-x: hidden;
  transition: width .3s var(--ailo-ease);
  z-index: 60; flex: none;
}
.side__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 6px 16px; }
.side__brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.side__logo { flex: none; }
.side__name { font-family: var(--d09-head); font-size: 21px; line-height: 1.1; white-space: nowrap; }
.side__name small { display: block; font-family: var(--ailo-font); font-size: 12px; color: var(--ailo-muted); margin-top: 3px; }
.side__x { display: none; width: 40px; height: 40px; border: 0; border-radius: 14px; background: var(--d09-lav); color: var(--d09-lav-ink); }

.snav { display: flex; flex-direction: column; gap: 3px; }
.snav__cap { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; color: var(--ailo-muted); padding: 12px 12px 6px; white-space: nowrap; }
.snav a {
  display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 16px;
  font-weight: 600; color: #4a4858; white-space: nowrap; transition: background .2s, color .2s;
}
.snav a i { width: 20px; text-align: center; font-size: 16px; color: #8d89a3; flex: none; }
.snav a span { flex: 1; }
.snav a em { font-style: normal; font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--d09-mint); color: var(--d09-mint-ink); }
.snav a em.is-warn { background: var(--d09-peach); color: var(--d09-peach-ink); }
.snav a:hover { background: #f5f2fb; color: var(--ailo-fg); }
.snav a.is-active { background: var(--d09-lav); color: var(--d09-lav-ink); }
.snav a.is-active i { color: var(--d09-lav-ink); }

.side__card {
  margin: 18px 4px 12px; padding: 16px; border-radius: 22px; background: var(--d09-butter);
  position: relative; overflow: hidden;
}
.side__card::after { content: ""; position: absolute; right: -24px; top: -24px; width: 80px; height: 80px; border-radius: 50%; background: rgba(255, 255, 255, .55); }
.side__card-t { font-size: 12.5px; color: var(--d09-butter-ink); font-weight: 600; }
.side__card-v { font-size: 24px; font-weight: 800; margin-top: 2px; }
.side__card-v small { font-size: 13px; font-weight: 600; margin-left: 2px; }
.side__meter { height: 8px; border-radius: 99px; background: rgba(138, 95, 0, .16); margin: 8px 0 10px; overflow: hidden; }
.side__meter span { display: block; height: 100%; border-radius: 99px; background: #c98500; }
.side__card-a { font-size: 13px; font-weight: 700; color: var(--d09-butter-ink); }
.side__card-a:hover { color: var(--ailo-fg); }

.side__fold {
  margin-top: auto; display: flex; align-items: center; gap: 12px; padding: 11px 12px; border: 0; border-radius: 16px;
  background: transparent; color: var(--ailo-muted); font-weight: 600; white-space: nowrap;
}
.side__fold i { width: 20px; transition: rotate .3s; }
.side__fold:hover { background: #f5f2fb; color: var(--ailo-fg); }

/* 접힌 사이드바(데스크톱) */
@media (min-width: 992px) {
  html.side-folded { --d09-side-w: 84px; }
  html.side-folded .side__name,
  html.side-folded .snav a span,
  html.side-folded .snav a em,
  html.side-folded .snav__cap,
  html.side-folded .side__card,
  html.side-folded .side__fold span { display: none; }
  html.side-folded .side__head { justify-content: center; padding-inline: 0; }
  html.side-folded .snav a, html.side-folded .side__fold { justify-content: center; padding-inline: 0; }
  html.side-folded .side__fold i { rotate: 180deg; }
  html.side-folded .snav__cap + a { margin-top: 10px; }
}
.side-dim { display: none; }

/* ===== Topbar ===== */
.top {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 18px var(--d09-gap) 14px clamp(16px, 2vw, 28px);
  background: color-mix(in srgb, var(--ailo-bg) 82%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.top__burger { flex: none; width: 44px; height: 44px; border-radius: 14px; background: var(--d09-card); box-shadow: var(--d09-shadow); }
.top__title { min-width: 0; margin-right: auto; }
.crumb { display: flex; gap: 6px; font-size: 12.5px; color: var(--ailo-muted); }
.crumb li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.crumb a:hover { color: var(--ailo-fg); text-decoration: underline; }
.top h1 { font-family: var(--d09-head); font-weight: 400; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; }

.top__search { position: relative; width: min(340px, 32vw); }
.top__search i { position: absolute; left: 16px; top: 50%; translate: 0 -50%; color: var(--ailo-muted); font-size: 14px; }
.top__search input {
  width: 100%; height: 46px; border: 0; border-radius: 99px; padding: 0 18px 0 42px;
  background: var(--d09-card); box-shadow: var(--d09-shadow); color: var(--ailo-fg); font-size: 14px;
}
.top__search input::placeholder { color: #8c89a0; }
.top__search input:focus { outline: 2px solid var(--ailo-accent); outline-offset: 2px; }
.top__tools { display: flex; align-items: center; gap: 10px; }
.ico-btn {
  position: relative; width: 46px; height: 46px; border: 0; border-radius: 16px; background: var(--d09-card);
  box-shadow: var(--d09-shadow); font-size: 18px; display: grid; place-items: center;
}
.ico-btn:hover { background: var(--d09-lav); color: var(--d09-lav-ink); }
.dot-badge {
  position: absolute; top: 6px; right: 6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px;
  background: #d9482b; color: #fff; font-size: 11px; font-weight: 800; line-height: 18px; border: 2px solid #fff; box-sizing: content-box;
}
.profile { display: flex; align-items: center; gap: 10px; border: 0; background: var(--d09-card); box-shadow: var(--d09-shadow); padding: 5px 16px 5px 5px; border-radius: 99px; }
.profile__txt { text-align: left; line-height: 1.15; }
.profile__txt b { display: block; font-size: 14px; }
.profile__txt small { font-size: 12px; color: var(--ailo-muted); }
.profile:hover { background: #fbfaff; }

.avatar {
  width: 36px; height: 36px; border-radius: 50%; display: inline-grid; place-items: center; flex: none;
  font-weight: 800; font-size: 14px; background: var(--d09-lav); color: var(--d09-lav-ink);
}
.avatar--sm { width: 30px; height: 30px; font-size: 12.5px; }
.avatar--mint { background: var(--d09-mint); color: var(--d09-mint-ink); }
.avatar--peach { background: var(--d09-peach); color: var(--d09-peach-ink); }
.avatar--lav { background: var(--d09-lav); color: var(--d09-lav-ink); }
.avatar--butter { background: var(--d09-butter); color: var(--d09-butter-ink); }
.avatar--sky { background: var(--d09-sky); color: var(--d09-sky-ink); }

/* 알림 드롭다운 */
.pop { position: relative; }
.pop__panel {
  position: absolute; right: 0; top: calc(100% + 10px); width: 340px; z-index: 80;
  background: var(--d09-card); border-radius: 22px; box-shadow: 0 20px 50px -14px rgba(43, 42, 53, .3); padding: 8px;
}
.pop__head { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px 8px; }
.link-btn { border: 0; background: none; padding: 4px 2px; font-size: 13px; font-weight: 700; color: var(--d09-lav-ink); white-space: nowrap; }
.link-btn:hover { color: var(--ailo-fg); text-decoration: underline; }
.notif li { display: flex; gap: 12px; padding: 10px 12px; border-radius: 16px; position: relative; }
.notif li:hover { background: #f8f6fd; }
.notif li.is-new::after { content: ""; position: absolute; right: 12px; top: 16px; width: 8px; height: 8px; border-radius: 50%; background: #d9482b; }
.notif p { font-size: 13.5px; line-height: 1.45; padding-right: 12px; }
.notif b { display: block; }
.notif small { display: block; color: var(--ailo-muted); font-size: 12px; margin-top: 2px; }
.notif__ic { flex: none; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; font-size: 14px; }
.notif__ic--peach { background: var(--d09-peach); color: var(--d09-peach-ink); }
.notif__ic--mint { background: var(--d09-mint); color: var(--d09-mint-ink); }
.notif__ic--lav { background: var(--d09-lav); color: var(--d09-lav-ink); }
.notif__ic--butter { background: var(--d09-butter); color: var(--d09-butter-ink); }

/* ===== Main ===== */
.main { padding: 4px var(--d09-gap) var(--d09-gap) clamp(16px, 2vw, 28px); display: flex; flex-direction: column; gap: var(--d09-gap); }

.hello {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: linear-gradient(120deg, #e9e3ff 0%, #f6efff 45%, #ffece3 100%);
  border-radius: 32px; padding: clamp(20px, 3vw, 34px) clamp(20px, 3.4vw, 40px); position: relative; overflow: hidden;
}
.hello__date { font-size: 13px; font-weight: 600; color: var(--d09-lav-ink); }
.hello h2 { font-family: var(--d09-head); font-weight: 400; font-size: clamp(22px, 2.6vw, 32px); line-height: 1.3; margin: 8px 0 8px; }
.hello mark { background: linear-gradient(transparent 58%, #fff1a8 58%); color: inherit; padding: 0 2px; }
.hello__sub { color: #514e63; font-size: 14.5px; max-width: 560px; }
.hello__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.hello__art { flex: none; }

.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px;
  border-radius: 99px; border: 0; font-weight: 700; font-size: 14px; transition: transform .2s var(--ailo-ease), box-shadow .2s, background .2s;
}
.pill:hover { transform: translateY(-1px); }
.pill--dark { background: var(--ailo-fg); color: #fff; }
.pill--dark:hover { color: #fff; box-shadow: 0 8px 18px -8px rgba(43, 42, 53, .6); }
.pill--line { background: rgba(255, 255, 255, .8); box-shadow: inset 0 0 0 1.5px rgba(43, 42, 53, .14); }
.pill--line:hover { background: #fff; }
.pill--mint { background: var(--d09-mint); color: var(--d09-mint-ink); }
.pill--mint:hover { background: #c9ecdf; }
.pill--peach { background: var(--d09-peach); color: var(--d09-peach-ink); }
.pill--peach:hover { background: #ffd6c4; }
.pill--block { width: 100%; margin-top: auto; }

/* 기간 필터 */
.filterbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.seg { display: inline-flex; gap: 4px; padding: 5px; border-radius: 99px; background: var(--d09-card); box-shadow: var(--d09-shadow); }
.seg button { border: 0; background: transparent; height: 38px; padding: 0 18px; border-radius: 99px; font-weight: 700; font-size: 14px; color: #5d5a70; }
.seg button:hover { background: #f5f2fb; color: var(--ailo-fg); }
.seg button[aria-pressed="true"] { background: var(--ailo-fg); color: #fff; }
.filterbar__note { font-size: 13px; color: var(--ailo-muted); }

/* KPI */
.kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--d09-gap); }
.kpi {
  border-radius: var(--d09-r); padding: 18px 18px 12px; position: relative; overflow: hidden;
  display: flex; flex-direction: column; min-width: 0; box-shadow: var(--d09-shadow);
}
.kpi--mint { background: var(--d09-mint); --ink: var(--d09-mint-ink); }
.kpi--sky { background: var(--d09-sky); --ink: var(--d09-sky-ink); }
.kpi--lav { background: var(--d09-lav); --ink: var(--d09-lav-ink); }
.kpi--peach { background: var(--d09-peach); --ink: var(--d09-peach-ink); }
.kpi--butter { background: var(--d09-butter); --ink: var(--d09-butter-ink); }
.kpi--white { background: var(--d09-card); --ink: var(--d09-lav-ink); }
.kpi__label { font-size: 13.5px; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 7px; }
.kpi__label i { width: 26px; height: 26px; border-radius: 9px; background: rgba(255, 255, 255, .7); display: grid; place-items: center; font-size: 12px; }
.kpi--white .kpi__label i { background: var(--d09-lav); }
.kpi__val { font-size: clamp(24px, 2.1vw, 30px); font-weight: 800; letter-spacing: -.02em; margin-top: 10px; line-height: 1.1; white-space: nowrap; }
.kpi__val small { font-size: .5em; font-weight: 700; margin-left: 3px; letter-spacing: 0; }
.kpi__delta { font-size: 12.5px; font-weight: 700; margin-top: 6px; display: inline-flex; align-self: flex-start; padding: 2px 9px; border-radius: 99px; background: rgba(255, 255, 255, .72); white-space: nowrap; }
.kpi__delta.is-good { color: var(--d09-good-ink); }
.kpi__delta.is-bad { color: var(--d09-bad-ink); }
.kpi__delta.is-flat { color: var(--ailo-muted); }
.spark { width: 100%; height: 36px; margin-top: 10px; overflow: visible; }
.spark__line { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; opacity: .85; }
.spark__area { fill: var(--ink); opacity: .08; }
.spark__dot { fill: var(--ink); stroke: #fff; stroke-width: 2; }

/* 그리드 / 카드 */
.grid { display: grid; gap: var(--d09-gap); }
.g-2-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.g-1-1 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.card {
  background: var(--d09-card); border-radius: var(--d09-r); padding: clamp(18px, 1.8vw, 24px);
  box-shadow: var(--d09-shadow); min-width: 0; display: flex; flex-direction: column;
}
.card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.card__head--wrap { flex-wrap: wrap; }
.card__t { font-family: var(--d09-head); font-weight: 400; font-size: 20px; line-height: 1.3; }
.card__s { font-size: 13px; color: var(--ailo-muted); margin-top: 2px; }
.card__s b { color: var(--ailo-fg); font-weight: 700; }

.chart { position: relative; height: 260px; }
.chart--tall { height: auto; min-height: 300px; flex: 1; }

/* 도넛 */
.donut { position: relative; margin: 4px auto 8px; width: min(220px, 100%); }
.chart--donut { height: 200px; }
.donut__c { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; pointer-events: none; }
.donut__c b { font-size: 34px; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.donut__c small { color: var(--ailo-muted); font-size: 13px; font-weight: 600; margin-top: 4px; }
.legend-list { display: flex; flex-direction: column; gap: 6px; margin: 6px 0 16px; }
.legend-list li { display: flex; align-items: center; gap: 10px; font-size: 14px; padding: 8px 12px; border-radius: 14px; background: #faf8f4; }
.legend-list b { margin-left: auto; font-variant-numeric: tabular-nums; }
.legend-list small { color: var(--ailo-muted); width: 48px; text-align: right; font-variant-numeric: tabular-nums; }
.sw { width: 12px; height: 12px; border-radius: 4px; flex: none; }
.sw--s1 { background: var(--d09-s1); }
.sw--warn { background: var(--d09-warn); }
.sw--bad { background: var(--d09-bad); }

/* 상태 칩 */
.att-sum { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.st { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; font-size: 13px; font-weight: 600; }
.st b { font-size: 15px; font-weight: 800; }
.st--ok { background: #e3f6e3; color: var(--d09-good-ink); }
.st--late { background: #fff3d1; color: #7d5600; }
.st--abs { background: #fde4e4; color: var(--d09-bad-ink); }
.st--none { background: #f1eff5; color: #5d5a70; }

/* 출결 체크 그리드 */
.att-ctrl { flex: none; }
.sel {
  height: 40px; border: 0; border-radius: 14px; padding: 0 36px 0 14px; font: inherit; font-size: 13.5px; font-weight: 600;
  background: #f5f2fb url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235a43bd' stroke-width='2' fill='none'/%3E%3C/svg%3E") no-repeat right 14px center;
  appearance: none; color: var(--ailo-fg); max-width: 100%;
}
.att-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 10px; }
.att {
  width: 100%; border: 0; border-radius: 20px; padding: 12px 10px 10px; text-align: center;
  display: grid; justify-items: center; gap: 4px; background: #f6f4f9; position: relative;
  transition: transform .15s var(--ailo-ease), background .2s, box-shadow .2s;
}
.att:hover { transform: translateY(-2px); box-shadow: 0 10px 20px -12px rgba(43, 42, 53, .35); }
.att .avatar { width: 40px; height: 40px; font-size: 15px; }
.att__n { font-weight: 700; font-size: 14px; }
.att__st { font-size: 12.5px; font-weight: 700; display: inline-flex; gap: 5px; align-items: center; padding: 2px 9px; border-radius: 99px; background: #fff; }
.att__t { font-size: 11.5px; color: var(--ailo-muted); font-variant-numeric: tabular-nums; }
.att--ok { background: #ebf8ef; }
.att--ok .att__st { color: var(--d09-good-ink); }
.att--late { background: #fff6dc; }
.att--late .att__st { color: #7d5600; }
.att--abs { background: #fdeaea; }
.att--abs .att__st { color: var(--d09-bad-ink); }
.att--none { background: #fff; box-shadow: inset 0 0 0 2px #e6e2ef; }
.att--none .att__st { color: #5d5a70; background: #f3f1f7; }
.att-foot { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

/* 시간표 */
.tt { display: flex; flex-direction: column; gap: 4px; }
.tt li { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; position: relative; }
.tt time { font-weight: 800; font-size: 14px; font-variant-numeric: tabular-nums; }
.tt b { display: block; font-size: 14.5px; }
.tt small { color: var(--ailo-muted); font-size: 12.5px; }
.tt li.is-now { background: var(--d09-mint); }
.tt li.is-done { opacity: .62; }
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.tag--mint { background: #c9eedf; color: var(--d09-mint-ink); }
.tt li.is-now .tag--mint { background: #fff; }
.tag--lav { background: var(--d09-lav); color: var(--d09-lav-ink); }
.tag--peach { background: var(--d09-peach); color: var(--d09-peach-ink); }
.tag--butter { background: var(--d09-butter); color: var(--d09-butter-ink); }
.tag--gray { background: #efedf3; color: #5d5a70; }

/* 반 편성 정원 */
.cap { display: flex; flex-direction: column; gap: 12px; }
.cap__row { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-bottom: 6px; flex-wrap: wrap; }
.cap__row small { color: var(--ailo-muted); font-size: 12.5px; }
.cap__n { margin-left: auto; font-weight: 800; font-variant-numeric: tabular-nums; }
.cap__n small { font-weight: 600; }
.cap__bar { height: 10px; border-radius: 99px; background: #e9f6f1; overflow: hidden; }
.cap__bar span { display: block; height: 100%; border-radius: 99px; background: var(--d09-s1); }
.cap__bar--near { background: #fff2cf; }
.cap__bar--near span { background: #e7a100; }
.cap__bar--full { background: #ffe3d8; }
.cap__bar--full span { background: var(--d09-s2); }

/* 테이블 */
.tb-tools { display: flex; gap: 8px; flex-wrap: wrap; }
.tb-search { position: relative; }
.tb-search i { position: absolute; left: 13px; top: 50%; translate: 0 -50%; font-size: 13px; color: var(--ailo-muted); }
.tb-search input { height: 40px; width: 180px; border: 0; border-radius: 14px; padding: 0 12px 0 36px; background: #f5f2fb; font-size: 13.5px; color: var(--ailo-fg); }
.tbl-wrap { overflow-x: auto; margin: 0 -6px; padding: 0 6px; -webkit-overflow-scrolling: touch; }
.tbl-wrap:focus-visible { outline-offset: 0; }
.tbl { width: 100%; min-width: 720px; border-collapse: separate; border-spacing: 0 6px; font-size: 14px; }
.tbl th { font-size: 12.5px; color: var(--ailo-muted); font-weight: 700; text-align: left; padding: 4px 12px; white-space: nowrap; }
.tbl th button { border: 0; background: none; padding: 4px 0; font-weight: 700; color: inherit; display: inline-flex; align-items: center; gap: 6px; }
.tbl th button i { font-size: 11px; opacity: .55; }
.tbl th[aria-sort="ascending"] button, .tbl th[aria-sort="descending"] button { color: var(--d09-lav-ink); }
.tbl th[aria-sort="ascending"] i, .tbl th[aria-sort="descending"] i { opacity: 1; }
.tbl th button:hover { color: var(--ailo-fg); }
.tbl td { padding: 10px 12px; background: #faf8f4; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tbl td:first-child { border-radius: 16px 0 0 16px; }
.tbl td:last-child { border-radius: 0 16px 16px 0; }
.tbl tbody tr:hover td { background: #f3f0fb; }
.tbl .num { text-align: right; }
.tbl th.num button { flex-direction: row-reverse; }
.tbl__empty { text-align: center; color: var(--ailo-muted); padding: 28px 12px !important; border-radius: 16px !important; }
.who { display: inline-flex; align-items: center; gap: 10px; }
.who b { display: block; line-height: 1.2; }
.who small { font-size: 12px; color: var(--ailo-muted); }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 10px; flex-wrap: wrap; }
.pager__info { font-size: 13px; color: var(--ailo-muted); }
.pager__nav { display: flex; gap: 6px; }
.pager__nav button { min-width: 36px; height: 36px; border: 0; border-radius: 12px; background: #f5f2fb; font-weight: 700; font-size: 13.5px; }
.pager__nav button:hover:not(:disabled) { background: var(--d09-lav); color: var(--d09-lav-ink); }
.pager__nav button[aria-current="page"] { background: var(--ailo-fg); color: #fff; }
.pager__nav button:disabled { opacity: .4; cursor: default; }

/* 활동 로그 */
.log { display: flex; flex-direction: column; position: relative; }
.log::before { content: ""; position: absolute; left: 17px; top: 18px; bottom: 18px; width: 2px; background: #efecf5; border-radius: 2px; }
.log li { display: flex; gap: 12px; padding: 8px 0; position: relative; }
.log p { font-size: 13.5px; line-height: 1.5; }
.log time { display: block; font-size: 12px; color: var(--ailo-muted); font-variant-numeric: tabular-nums; }
.log__dot { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; border: 3px solid #fff; position: relative; }
.log__dot--mint { background: var(--d09-mint); color: var(--d09-mint-ink); }
.log__dot--lav { background: var(--d09-lav); color: var(--d09-lav-ink); }
.log__dot--peach { background: var(--d09-peach); color: var(--d09-peach-ink); }
.log__dot--butter { background: var(--d09-butter); color: var(--d09-butter-ink); }

/* 푸터 */
.foot { padding: 6px var(--d09-gap) 26px clamp(16px, 2vw, 28px); }
.foot p { font-size: 12.5px; color: var(--ailo-muted); }
.foot a:hover { color: var(--ailo-fg); text-decoration: underline; }
.foot b { color: var(--ailo-fg); }

/* ===== Responsive ===== */
@media (max-width: 1399.98px) {
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1199.98px) {
  .g-2-1, .g-1-1 { grid-template-columns: minmax(0, 1fr); }
  .top__search { width: min(280px, 30vw); }
}
@media (max-width: 991.98px) {
  .side {
    position: fixed; top: 0; left: 0; bottom: 0; height: auto; margin: 0; width: min(300px, 86vw);
    align-self: stretch;
    border-radius: 0 28px 28px 0; z-index: 130;
    translate: -105% 0; visibility: hidden; transition: translate .35s var(--ailo-ease), visibility .35s;
  }
  html.nav-open .side { translate: 0 0; visibility: visible; transition: translate .35s var(--ailo-ease), visibility 0s; } /* 열 때 visibility 즉시 → 곧바로 포커스 가능 */
  .side__x { display: grid; place-items: center; }
  .side__fold { display: none; }
  .side-dim {
    display: block; position: fixed; inset: 0; z-index: 125; background: rgba(43, 42, 53, .38);
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
  }
  html.nav-open .side-dim { opacity: 1; visibility: visible; }
  .top { gap: 10px; padding-top: 12px; }
  .top__search { order: 5; width: 100%; }
  .top__search input { height: 42px; }
  .hello__art { display: none; }
}
@media (max-width: 767.98px) {
  .profile__txt { display: none; }
  .profile { padding: 5px; }
  .pop__panel { position: fixed; left: 12px; right: 12px; top: 70px; width: auto; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
  body { font-size: 14px; }
  .crumb { display: none; }
  .ico-btn { width: 42px; height: 42px; }
  .kpi { padding: 14px 14px 10px; border-radius: 22px; }
  .kpi__label { font-size: 12.5px; }
  .kpi__label i { display: none; }
  .kpi__delta { font-size: 11.5px; padding: 2px 7px; }
  .seg { width: 100%; }
  .seg button { flex: 1; padding: 0 8px; }
  .card { border-radius: 22px; }
  .card__head { flex-wrap: wrap; }
  .att-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .att { padding: 10px 4px 8px; border-radius: 16px; }
  .att .avatar { width: 34px; height: 34px; }
  .att__n { font-size: 13px; }
  .att__st { font-size: 11.5px; padding: 1px 6px; }
  .tb-tools, .tb-search, .tb-search input { width: 100%; }
  .tb-tools .sel { width: 100%; }
  .chart { height: 240px; }
  .hello { border-radius: 26px; }
}
