/* ==========================================================================
   AILO Dashboard D18 — 마음쉼 케어 (심리상담센터 예약·상담사 일정)
   원형: 떠 있는 둥근 사이드바 + 캘린더 중심 벤토 / 타이포: Gowun Dodum(제목) + Pretendard
   컬러: 라벤더 + 크림, 파스텔 타일, 차트 팔레트 4색(라벤더·코랄·틸·블루, 검증 통과)
   ========================================================================== */
:root {
  --ailo-bg: #f6f1e8;
  --ailo-fg: #2d2640;
  --ailo-muted: #6b6280;
  --ailo-line: rgba(74, 56, 112, .12);
  --ailo-accent: #7c5cc4;

  --d18-surface: #fffdf9;
  --d18-lav: #efe9fb;
  --d18-lav-2: #e2d8f6;
  --d18-lav-deep: #5b3fa6;
  --d18-peach: #fde9df;
  --d18-mint: #dff2ec;
  --d18-butter: #fbf0cf;
  --d18-round: "Gowun Dodum", "Pretendard Variable", sans-serif;
  --d18-r: 24px;
  --d18-r-sm: 14px;
  --d18-shadow: 0 1px 2px rgba(60, 40, 100, .04), 0 10px 30px -12px rgba(60, 40, 100, .14);
  --d18-grid: #eee8f2;
  --d18-axis: #d6cfe0;
  --d18-axis-ink: #807895;
  /* 차트 범주 색 (validate_palette.js: light / #fffdf9 전 항목 PASS) */
  --d18-s1: #7c5cc4;
  --d18-s2: #d9704e;
  --d18-s3: #0f9a8a;
  --d18-s4: #3b74c4;
  --d18-t1: #ebe4fa;
  --d18-t2: #fbe4da;
  --d18-t3: #d9f1ec;
  --d18-t4: #dfe8f8;
  /* 상태 */
  --d18-good: #17734f;
  --d18-bad: #b43b3b;
  --d18-warn: #8a5a00;
  --d18-sb-w: 248px;
}

body { background: var(--ailo-bg); font-size: 14px; }
.num { font-variant-numeric: tabular-nums; }

.app { display: grid; grid-template-columns: auto minmax(0, 1fr); min-height: 100vh; }

/* ===== Sidebar ===== */
.sb { position: sticky; top: 16px; margin: 16px 0 16px 16px; height: calc(100vh - 32px); width: var(--d18-sb-w); background: var(--d18-surface); border-radius: 28px; box-shadow: var(--d18-shadow); display: flex; flex-direction: column; padding: 18px 14px; transition: width .3s var(--ailo-ease); overflow: hidden; z-index: 40; }
.sb__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 4px 18px; }
.logo { display: flex; align-items: center; gap: 10px; min-width: 0; }
.logo__mark { width: 40px; height: 40px; border-radius: 14px; background: linear-gradient(140deg, #9a7fe0, var(--d18-s1)); display: grid; place-items: center; flex: none; }
.logo__txt { font-family: var(--d18-round); font-size: 19px; color: var(--ailo-fg); white-space: nowrap; }
.logo__txt b { font-weight: 400; color: var(--d18-lav-deep); }
.sb__collapse, .sb__close { width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--d18-lav); color: var(--d18-lav-deep); font-size: 12px; flex: none; transition: rotate .3s; }
.sb__collapse:hover { background: var(--d18-lav-2); }
.sb__close { display: none; }
.sb__nav { flex: 1; overflow-y: auto; overflow-x: hidden; }
.sb__group { font-size: 11.5px; font-weight: 600; letter-spacing: .08em; color: var(--d18-axis-ink); padding: 12px 12px 6px; white-space: nowrap; }
.sb__nav ul { display: flex; flex-direction: column; gap: 2px; }
.sb__nav a { position: relative; display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 16px; color: var(--ailo-muted); font-weight: 500; white-space: nowrap; transition: background .2s, color .2s; }
.sb__nav a i { width: 20px; text-align: center; font-size: 15px; flex: none; }
.sb__nav a:hover { background: #f7f3fd; color: var(--ailo-fg); }
.sb__nav a.is-active { background: var(--d18-lav); color: var(--d18-lav-deep); font-weight: 700; }
.sb__nav a em { margin-left: auto; font-style: normal; font-size: 11.5px; font-weight: 700; background: var(--d18-lav-2); color: var(--d18-lav-deep); padding: 1px 8px; border-radius: 99px; }
.sb__nav a em.is-warm { background: var(--d18-peach); color: #9a3f1e; }
.sb__care { margin-top: 12px; background: var(--d18-butter); border-radius: 20px; padding: 14px; display: flex; gap: 10px; font-size: 12.5px; color: #5d4a1c; line-height: 1.5; }
.sb__care i { font-size: 16px; margin-top: 2px; color: #a0781c; }
.sb__care b { display: block; font-size: 13px; color: #4b3a10; }

/* 접힌 상태 */
html.sb-collapsed { --d18-sb-w: 84px; }
html.sb-collapsed .logo__txt, html.sb-collapsed .sb__nav a span, html.sb-collapsed .sb__nav a em, html.sb-collapsed .sb__care p, html.sb-collapsed .sb__group { display: none; }
html.sb-collapsed .sb__top { flex-direction: column; padding-inline: 0; }
html.sb-collapsed .sb__collapse { rotate: 180deg; }
html.sb-collapsed .sb__nav a { justify-content: center; padding-inline: 0; }
html.sb-collapsed .sb__nav ul + .sb__group, html.sb-collapsed .sb__nav ul + ul { margin-top: 10px; }
html.sb-collapsed .sb__nav ul:nth-of-type(2) { border-top: 1px solid var(--ailo-line); padding-top: 10px; margin-top: 10px; }
html.sb-collapsed .sb__care { justify-content: center; padding: 12px 0; }
html.sb-collapsed .sb__nav a:hover::after, html.sb-collapsed .sb__nav a:focus-visible::after { content: attr(data-tip); position: fixed; left: 92px; background: #3a2f52; color: #fff; font-size: 12px; padding: 4px 10px; border-radius: 8px; white-space: nowrap; pointer-events: none; }
.dim { display: none; }

/* ===== Main column ===== */
.main-col { min-width: 0; display: flex; flex-direction: column; padding: 16px clamp(16px, 2.2vw, 28px) 0; }
.tb { display: flex; align-items: center; gap: 14px; padding: 6px 0 14px; position: relative; z-index: 30; }
.tb__burger { display: none; }
.tb__title { min-width: 0; }
.crumb { display: flex; gap: 6px; font-size: 12px; color: var(--d18-axis-ink); }
.crumb li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.crumb a:hover { color: var(--d18-lav-deep); }
.tb__page { font-family: var(--d18-round); font-size: 20px; line-height: 1.3; }
.tb__search { position: relative; margin-left: auto; width: min(320px, 32vw); }
.tb__search i { position: absolute; left: 16px; top: 50%; translate: 0 -50%; color: var(--d18-axis-ink); font-size: 13px; }
.tb__search input { width: 100%; height: 44px; border-radius: 99px; border: 1px solid transparent; background: var(--d18-surface); padding: 0 16px 0 40px; box-shadow: var(--d18-shadow); font-size: 13.5px; color: var(--ailo-fg); }
.tb__search input:focus { outline: none; border-color: var(--d18-s1); }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--d18-surface); box-shadow: var(--d18-shadow); color: var(--ailo-fg); display: inline-grid; place-items: center; position: relative; flex: none; }
.icon-btn:hover { background: #fff; color: var(--d18-lav-deep); }
.icon-btn--sm { width: 32px; height: 32px; box-shadow: none; background: var(--d18-lav); font-size: 12px; color: var(--d18-lav-deep); }
.nt { position: relative; }
.nt__dot { position: absolute; top: 4px; right: 3px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--d18-s2); color: #fff; font-size: 10.5px; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--d18-surface); box-sizing: content-box; }
.nt__panel { position: absolute; right: 0; top: calc(100% + 10px); width: min(340px, calc(100vw - 32px)); background: var(--d18-surface); border-radius: 22px; box-shadow: 0 20px 50px -10px rgba(60, 40, 100, .3); padding: 8px; display: none; }
.nt__panel.is-open { display: block; animation: d18-pop .2s var(--ailo-ease); }
@keyframes d18-pop { from { opacity: 0; translate: 0 -6px; } }
.nt__head { padding: 10px 12px; font-family: var(--d18-round); font-size: 16px; }
.nt__head small { font-family: var(--ailo-font); font-size: 11px; background: var(--d18-lav); color: var(--d18-lav-deep); border-radius: 99px; padding: 1px 7px; font-weight: 700; vertical-align: 2px; }
.nt__panel li { display: flex; gap: 12px; padding: 10px 12px; border-radius: 16px; }
.nt__panel li:hover { background: #f8f4ee; }
.nt__panel li b { font-size: 13.5px; }
.nt__panel li p { font-size: 12.5px; color: var(--ailo-muted); }
.nt__panel time { font-size: 11.5px; color: var(--d18-axis-ink); }
.nt__ic { width: 36px; height: 36px; border-radius: 12px; background: var(--d18-lav); color: var(--d18-lav-deep); display: grid; place-items: center; flex: none; }
.nt__ic--warm { background: var(--d18-peach); color: #a24521; }
.nt__ic--mint { background: var(--d18-mint); color: #0f6b5f; }
.nt__more { display: block; text-align: center; padding: 10px; font-size: 13px; font-weight: 600; color: var(--d18-lav-deep); border-top: 1px solid var(--ailo-line); margin-top: 4px; }
.me { display: flex; align-items: center; gap: 10px; background: var(--d18-surface); padding: 4px 14px 4px 4px; border-radius: 99px; box-shadow: var(--d18-shadow); flex: none; }
.me__av { width: 36px; height: 36px; border-radius: 50%; background: var(--d18-peach); color: #9a3f1e; display: grid; place-items: center; font-weight: 700; }
.me__txt { display: flex; flex-direction: column; line-height: 1.2; }
.me__txt b { font-size: 13px; }
.me__txt small { font-size: 11px; color: var(--ailo-muted); }

/* ===== Greeting ===== */
.hello { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; padding: clamp(10px, 1.6vw, 18px) 0 clamp(16px, 2vw, 22px); }
.hello__title { font-family: var(--d18-round); font-weight: 400; font-size: clamp(24px, 2.6vw, 34px); letter-spacing: -.01em; line-height: 1.3; }
.hello__sub { color: var(--ailo-muted); margin-top: 4px; }
.hello__sub b { color: var(--d18-lav-deep); }
.hello__tools { display: flex; gap: 10px; flex-wrap: wrap; }
.pill-seg { display: inline-flex; padding: 4px; background: var(--d18-surface); border-radius: 99px; box-shadow: var(--d18-shadow); }
.pill-seg button { border: 0; background: transparent; border-radius: 99px; padding: 8px 18px; font-weight: 600; font-size: 13.5px; color: var(--ailo-muted); transition: background .2s, color .2s; }
.pill-seg button:hover { color: var(--ailo-fg); }
.pill-seg button[aria-pressed="true"] { background: var(--d18-s1); color: #fff; box-shadow: 0 6px 14px -6px rgba(124, 92, 196, .7); }
.btn-soft { border: 0; border-radius: 99px; background: var(--ailo-fg); color: #fff; padding: 10px 20px; font-weight: 600; font-size: 13.5px; display: inline-flex; align-items: center; gap: 8px; }
.btn-soft:hover { background: var(--d18-lav-deep); }

/* ===== KPI ===== */
.scope { display: flex; flex-direction: column; gap: 18px; padding-bottom: 28px; }
.kpis, .bento { transition: opacity .2s; }
.is-loading .kpis, .is-loading .b-a, .is-loading .b-b, .is-loading .b-m { opacity: .5; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.kpi { position: relative; border-radius: var(--d18-r); padding: 20px 20px 16px; min-width: 0; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "label ic" "value value" "delta delta" "spark spark"; }
.kpi--lav { background: var(--d18-lav); }
.kpi--peach { background: var(--d18-peach); }
.kpi--mint { background: var(--d18-mint); }
.kpi--butter { background: var(--d18-butter); }
.kpi__ic { grid-area: ic; width: 40px; height: 40px; border-radius: 14px; background: rgba(255, 255, 255, .7); display: grid; place-items: center; font-size: 16px; color: var(--ailo-fg); }
.kpi__label { grid-area: label; font-size: 13.5px; font-weight: 600; color: var(--ailo-muted); align-self: center; }
.kpi__value { grid-area: value; margin: 6px 0 2px; display: flex; align-items: baseline; gap: 6px; }
.kpi__value strong { font-size: clamp(30px, 2.8vw, 40px); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.kpi__value span { color: var(--ailo-muted); font-weight: 500; }
.kpi__delta { grid-area: delta; font-size: 12.5px; color: var(--ailo-muted); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.kpi__delta b { font-weight: 700; background: rgba(255, 255, 255, .75); padding: 1px 8px; border-radius: 99px; }
.kpi__delta.is-good b { color: var(--d18-good); }
.kpi__delta.is-bad b { color: var(--d18-bad); }
.kpi__spark { grid-area: spark; width: 100%; height: 34px; margin-top: 10px; overflow: visible; }
.sp-line { fill: none; stroke: rgba(45, 38, 64, .35); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.sp-dot { fill: var(--ailo-fg); stroke: #fff; stroke-width: 2; vector-effect: non-scaling-stroke; }

/* ===== Bento ===== */
.bento { display: grid; gap: 18px; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-areas: "s s s s s s" "a a b b c c" "t t t t w w" "m m x x x x"; }
.b-s { grid-area: s; } .b-a { grid-area: a; } .b-b { grid-area: b; } .b-c { grid-area: c; }
.b-t { grid-area: t; } .b-w { grid-area: w; } .b-m { grid-area: m; } .b-x { grid-area: x; }
.card { background: var(--d18-surface); border-radius: var(--d18-r); box-shadow: var(--d18-shadow); min-width: 0; display: flex; flex-direction: column; }
.card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 20px 22px 8px; }
.card__head--tight { align-items: center; }
.card__head--wrap { flex-wrap: wrap; }
.card__head--stack { flex-direction: column; gap: 8px; }
.card__head--stack .lg { justify-content: flex-start; }
.card__title { font-family: var(--d18-round); font-weight: 400; font-size: 18px; line-height: 1.35; }
.card__sub { font-size: 12.5px; color: var(--ailo-muted); margin-top: 2px; }
.card__more { font-size: 12.5px; font-weight: 600; color: var(--d18-lav-deep); white-space: nowrap; }
.card__more:hover { text-decoration: underline; }
.card__big { text-align: right; line-height: 1.1; }
.card__big b { font-size: 26px; font-weight: 700; letter-spacing: -.02em; display: block; }
.card__big small { font-size: 11.5px; color: var(--ailo-muted); }
.lg { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--ailo-muted); justify-content: flex-end; }
.lg li { display: inline-flex; align-items: center; gap: 6px; }
.k-box { width: 10px; height: 10px; border-radius: 3px; display: inline-block; flex: none; }
.cv { position: relative; height: 250px; padding: 8px 18px 16px 10px; }

/* ===== Counselor schedule ===== */
.sched__scroll { overflow-x: auto; padding: 6px 22px 20px; }
.sched__scroll:focus-visible { outline-offset: -4px; border-radius: var(--d18-r); }
.sched__grid { --who: 176px; position: relative; min-width: 920px; }
.sched__hours { display: flex; height: 30px; align-items: flex-end; }
.sched__corner { width: var(--who); flex: none; font-size: 11.5px; color: var(--d18-axis-ink); padding-bottom: 6px; }
.sched__ticks { position: relative; flex: 1; height: 100%; }
.sched__ticks span { position: absolute; bottom: 6px; font-size: 11.5px; color: var(--d18-axis-ink); font-variant-numeric: tabular-nums; translate: -50% 0; }
.sched__ticks span:first-child { translate: 0 0; }
.sched__row { display: flex; align-items: center; min-height: 64px; border-top: 1px solid var(--d18-grid); }
.sched__who { width: var(--who); flex: none; display: flex; align-items: center; gap: 10px; padding-right: 12px; }
.sched__who b { display: block; font-size: 13.5px; }
.sched__who small { font-size: 11.5px; color: var(--ailo-muted); white-space: nowrap; }
.sched__who em { margin-left: auto; font-style: normal; font-size: 11px; font-weight: 700; color: var(--d18-lav-deep); background: var(--d18-lav); padding: 1px 7px; border-radius: 99px; }
.sched__lane { position: relative; flex: 1; height: 64px; background-image: repeating-linear-gradient(to right, var(--d18-grid) 0 1px, transparent 1px calc(100% / 11)); }
.sched__break { position: absolute; top: 6px; bottom: 6px; border-radius: 12px; background: repeating-linear-gradient(135deg, #f4efe6 0 6px, #fbf8f2 6px 12px); }
.blk { position: absolute; top: 8px; bottom: 8px; border-radius: 12px; padding: 6px 8px 6px 10px; display: flex; flex-direction: column; justify-content: center; overflow: hidden; border-left: 4px solid; cursor: default; transition: translate .15s, box-shadow .15s; }
.blk b, .blk small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.blk b { font-size: 12.5px; font-weight: 600; color: var(--ailo-fg); }
.blk small { font-size: 11px; color: var(--ailo-muted); font-variant-numeric: tabular-nums; }
.blk:hover, .blk:focus-visible { translate: 0 -2px; box-shadow: 0 8px 16px -8px rgba(60, 40, 100, .35); z-index: 3; }
.blk--1 { background: var(--d18-t1); border-color: var(--d18-s1); }
.blk--2 { background: var(--d18-t2); border-color: var(--d18-s2); }
.blk--3 { background: var(--d18-t3); border-color: var(--d18-s3); }
.blk--4 { background: var(--d18-t4); border-color: var(--d18-s4); }
.blk.is-done { opacity: .5; }
.blk.is-now { box-shadow: 0 0 0 2px var(--d18-surface), 0 0 0 4px var(--d18-s1); }
.sched__now { position: absolute; top: 24px; bottom: -4px; left: calc(var(--who) + (100% - var(--who)) * var(--now)); width: 0; border-left: 2px solid var(--d18-s2); z-index: 4; pointer-events: none; }
.sched__now::before { content: ""; position: absolute; top: 4px; left: -6px; width: 10px; height: 10px; border-radius: 50%; background: var(--d18-s2); }
.sched__now em { position: absolute; top: -22px; left: 0; translate: -50% 0; font-style: normal; font-size: 11px; font-weight: 700; color: #fff; background: var(--d18-s2); padding: 1px 8px; border-radius: 99px; white-space: nowrap; }

/* avatar */
.av { width: 36px; height: 36px; border-radius: 13px; display: grid; place-items: center; font-weight: 700; font-size: 14px; flex: none; }
.av--a { background: var(--d18-t1); color: #4c3591; }
.av--b { background: var(--d18-t2); color: #8f3a1d; }
.av--c { background: var(--d18-t3); color: #0b6157; }
.av--d { background: var(--d18-t4); color: #23508f; }
.av--e { background: var(--d18-butter); color: #6f520c; }
.av--f { background: #f1e6ef; color: #7b2f68; }

/* ===== Mini calendar ===== */
.cal__nav { display: flex; gap: 6px; }
.cal__grid { padding: 4px 18px 6px; }
.cal__row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal__row--head span { text-align: center; font-size: 11.5px; color: var(--d18-axis-ink); padding: 6px 0; font-weight: 600; }
.cal__d { position: relative; aspect-ratio: 1; max-height: 42px; border: 0; background: transparent; border-radius: 14px; font-size: 13px; font-weight: 600; color: var(--ailo-fg); font-variant-numeric: tabular-nums; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; margin-bottom: 4px; }
.cal__d:hover { background: var(--d18-lav); }
.cal__d.is-sun, .cal__row--head .is-sun { color: #b43b3b; }
.cal__d.is-sat, .cal__row--head .is-sat { color: #3b62a8; }
.cal__d.is-past { opacity: .45; }
.cal__d.is-today { background: var(--d18-s1); color: #fff; box-shadow: 0 6px 14px -6px rgba(124, 92, 196, .8); }
.cal__d i, .cal__legend i { display: block; width: 14px; height: 4px; border-radius: 4px; }
.lv1 { background: var(--d18-lav-2); }
.lv2 { background: #b6a2e6; }
.lv3 { background: var(--d18-lav-deep); }
.cal__d.is-today i { background: #fff; }
.cal__legend { display: flex; gap: 14px; justify-content: center; padding: 4px 18px 18px; font-size: 11.5px; color: var(--ailo-muted); }
.cal__legend span { display: inline-flex; align-items: center; gap: 6px; }

/* ===== Waitlist ===== */
.wait__list { padding: 4px 14px 14px; }
.wait__list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 10px 8px; border-radius: 16px; }
.wait__list li:hover { background: #f8f4ee; }
.wait__list b { font-size: 13.5px; display: block; }
.wait__list b small { font-weight: 400; font-size: 11.5px; color: var(--ailo-muted); }
.wait__list p { font-size: 12px; color: var(--ailo-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wait__list em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--ailo-muted); font-variant-numeric: tabular-nums; min-width: 28px; text-align: right; }
.chip { font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: #f1ede6; color: var(--ailo-muted); white-space: nowrap; display: inline-flex; gap: 4px; align-items: center; }
.chip--hot { background: #fde3dc; color: var(--d18-bad); }
.chip--warn { background: var(--d18-butter); color: var(--d18-warn); }

/* ===== Type mix ===== */
.mix__bar { display: flex; gap: 2px; margin: 14px 22px 8px; height: 28px; }
.mix__seg { min-width: 4px; border-radius: 4px; color: #fff; font-size: 11.5px; font-weight: 700; display: flex; align-items: center; padding-left: 8px; font-variant-numeric: tabular-nums; outline-offset: 2px; transition: filter .15s; }
.mix__seg:hover, .mix__seg:focus-visible { filter: brightness(1.08); }
.mix__seg--1 { background: var(--d18-s1); } .mix__seg--2 { background: var(--d18-s2); } .mix__seg--3 { background: var(--d18-s3); } .mix__seg--4 { background: var(--d18-s4); }
.mix__list { padding: 6px 22px 8px; }
.mix__list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto 40px; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px dashed var(--ailo-line); font-size: 13px; }
.mix__list li:last-child { border-bottom: 0; }
.mix__list b { font-variant-numeric: tabular-nums; }
.mix__list small { text-align: right; color: var(--ailo-muted); font-variant-numeric: tabular-nums; }
.mix__note { margin: auto 16px 16px; background: var(--d18-mint); border-radius: 16px; padding: 12px 14px; display: flex; gap: 10px; align-items: center; font-size: 12.5px; color: #1f4f47; }
.mix__note b { color: #0b4d43; }

/* ===== Table ===== */
.tsearch { position: relative; width: min(240px, 100%); }
.tsearch i { position: absolute; left: 14px; top: 50%; translate: 0 -50%; font-size: 12px; color: var(--d18-axis-ink); }
.tsearch input { width: 100%; height: 38px; border-radius: 99px; border: 1px solid var(--ailo-line); background: #fbf8f2; padding: 0 14px 0 34px; font-size: 13px; }
.tsearch input:focus { outline: none; border-color: var(--d18-s1); background: #fff; }
.tscroll { overflow-x: auto; padding: 4px 12px 0; }
.tscroll:focus-visible { outline-offset: -3px; }
.dt { width: 100%; min-width: 720px; border-collapse: separate; border-spacing: 0 4px; font-size: 13.5px; }
.dt th { padding: 0; text-align: left; white-space: nowrap; }
.dt th button { border: 0; background: none; padding: 6px 12px; font-size: 12px; font-weight: 600; color: var(--d18-axis-ink); display: inline-flex; gap: 6px; align-items: center; border-radius: 99px; }
.dt th button:hover { background: var(--d18-lav); color: var(--d18-lav-deep); }
.dt th button i::before { font-family: "Font Awesome 6 Free"; font-weight: 900; font-style: normal; content: "\f0dc"; font-size: 10.5px; opacity: .4; }
.dt th[aria-sort="ascending"] button, .dt th[aria-sort="descending"] button { color: var(--d18-lav-deep); background: var(--d18-lav); }
.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 12px; background: #fbf8f2; white-space: nowrap; }
.dt td:first-child { border-radius: 14px 0 0 14px; }
.dt td:last-child { border-radius: 0 14px 14px 0; }
.dt tbody tr:hover td { background: var(--d18-lav); }
.dt td.strong { font-weight: 700; }
.dt .is-empty td { text-align: center; padding: 28px; color: var(--ailo-muted); border-radius: 14px; }
.type { display: inline-flex; align-items: center; gap: 7px; }
.st { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: #fff; }
.st i { font-size: 10px; }
.st--done { color: var(--ailo-muted); }
.st--now { color: var(--d18-good); background: #e3f4ec; }
.st--now i { font-size: 7px; animation: d18-blink 1.4s infinite; }
@keyframes d18-blink { 50% { opacity: .25; } }
.st--ok { color: var(--d18-lav-deep); background: var(--d18-lav); }
.st--hold { color: var(--d18-warn); background: var(--d18-butter); }
.st--noshow { color: var(--d18-bad); background: #fde3dc; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 22px 18px; font-size: 12.5px; color: var(--ailo-muted); }
.pager ul { display: flex; gap: 6px; }
.pager button { width: 32px; height: 32px; border-radius: 50%; border: 0; background: #f4efe6; font-size: 12.5px; font-weight: 600; color: var(--ailo-fg); }
.pager button:hover:not(:disabled) { background: var(--d18-lav-2); }
.pager button[aria-current] { background: var(--d18-s1); color: #fff; }
.pager button:disabled { opacity: .35; cursor: default; }

/* ===== Activity ===== */
.act { padding: 6px 22px 18px; position: relative; }
.act li { display: flex; gap: 14px; padding: 10px 0; position: relative; }
.act li:not(:last-child)::after { content: ""; position: absolute; left: 6px; top: 30px; bottom: -8px; width: 2px; background: var(--d18-grid); border-radius: 2px; }
.act__dot { width: 14px; height: 14px; border-radius: 50%; background: var(--d18-axis); flex: none; margin-top: 4px; box-shadow: 0 0 0 4px var(--d18-surface); position: relative; z-index: 1; }
.act__dot--a { background: var(--d18-s1); } .act__dot--b { background: var(--d18-s2); } .act__dot--c { background: var(--d18-s3); } .act__dot--d { background: var(--d18-s4); }
.act div { display: flex; justify-content: space-between; gap: 12px; flex: 1; min-width: 0; }
.act p { font-size: 13.5px; }
.act small { display: block; font-size: 12px; color: var(--ailo-muted); }
.act time { font-size: 12px; color: var(--d18-axis-ink); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ===== Footer ===== */
.ft { margin-top: auto; padding: 18px 4px 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; font-size: 12px; color: var(--ailo-muted); border-top: 1px solid var(--ailo-line); }

/* ===== Responsive ===== */
@media (max-width: 1399.98px) {
  .bento { grid-template-areas: "s s s s s s" "a a a b b b" "c c t t t t" "w w t t t t" "m m x x x x"; }
}
@media (max-width: 1199.98px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "s s" "a b" "c w" "t t" "m x"; }
}
@media (max-width: 991.98px) {
  .app { display: block; }
  .sb { position: fixed; top: 10px; left: 10px; bottom: 10px; height: auto; margin: 0; width: min(290px, calc(100vw - 40px)); z-index: 200; translate: calc(-100% - 20px) 0; visibility: hidden; transition: translate .32s var(--ailo-ease), visibility .32s; }
  html.sb-open .sb { translate: 0 0; visibility: visible; transition: translate .32s var(--ailo-ease), visibility 0s; } /* 열 때 visibility 즉시 → 곧바로 포커스 가능 */
  html.sb-collapsed { --d18-sb-w: 248px; }
  .sb__collapse { display: none; }
  .sb__close { display: grid; place-items: center; }
  .dim { display: block; position: fixed; inset: 0; z-index: 190; background: rgba(45, 38, 64, .38); backdrop-filter: blur(3px); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
  html.sb-open .dim { opacity: 1; visibility: visible; }
  html.sb-open body { overflow: hidden; }
  .tb__burger { display: inline-grid; }
  .me__txt { display: none; }
  .me { padding: 4px; }
}
@media (max-width: 767.98px) {
  .bento { grid-template-columns: minmax(0, 1fr); grid-template-areas: "s" "c" "w" "a" "b" "m" "t" "x"; }
  .tb__search { display: none; }
  .tb__title { margin-right: auto; }
}
@media (max-width: 575.98px) {
  .main-col { padding-top: 12px; }
  .hello__tools, .pill-seg { width: 100%; }
  .pill-seg button { flex: 1; }
  .btn-soft { width: 100%; justify-content: center; }
  .kpis { gap: 12px; }
  .kpi { padding: 16px 14px 12px; border-radius: 20px; }
  .kpi__ic { width: 32px; height: 32px; border-radius: 11px; font-size: 13px; }
  .card__head { padding: 18px 16px 6px; flex-wrap: wrap; }
  .lg { justify-content: flex-start; }
  .sched__scroll { padding-inline: 16px; }
  .sched__grid { --who: 132px; }
  .sched__who small, .sched__who em { display: none; }
  .cv { height: 230px; padding-inline: 4px 10px; }
  .mix__bar, .mix__list { margin-inline: 16px; padding-inline: 0; }
  .wait__list li { grid-template-columns: auto minmax(0, 1fr) auto; }
  .wait__list .chip { grid-column: 2; justify-self: start; }
  .wait__list em { grid-row: 1; grid-column: 3; }
  .act { padding-inline: 16px; }
  .act div { flex-direction: column; gap: 2px; }
}
