/* ==========================================================================
   AILO Dashboard D26 — 펫케어 차트 (동물병원 진료·입원 운영)
   원형: 프렌들리 라운드 + 일러스트 · 민트 아이콘 타일 레일(라벨 아래) + 크림 카드 + 인사 배너
   타이포: Jua(제목·인사) + Pretendard(본문·숫자) · 컬러: 크림 #fbf6ea + 민트 #12a184 / 딥 민트 #0c7a64
   ========================================================================== */

:root {
  --ailo-bg: #fbf6ea;
  --ailo-fg: #263330;
  --ailo-muted: #6f7a73;
  --ailo-line: #ece4d2;
  --ailo-accent: #0c7a64;

  --d26-card: #fffdf7;
  --d26-mint: #12a184;
  --d26-mint-ink: #0c7a64;
  --d26-mint-deep: #0a6955;
  --d26-mint-soft: #def3ec;
  --d26-mint-soft2: #a8dccd;
  --d26-cream-2: #f5eedd;
  --d26-grid: #f0e9d9;
  --d26-base: #ddd3bd;
  --d26-axis: #857f71;
  /* 범주 4색 — 검증 통과 (light, #fffdf7; 대비 경고분은 범례·툴팁·요약으로 보완) */
  --d26-s1: #12a184;
  --d26-s2: #ef7547;
  --d26-s3: #5b7fe0;
  --d26-s4: #d99a00;
  --d26-other: #bdb4a2;
  /* 상태 */
  --d26-good: #1f8a4c;
  --d26-good-bg: #e2f4e8;
  --d26-warn: #9a6400;
  --d26-warn-bg: #fff1d2;
  --d26-crit: #c8373b;
  --d26-crit-bg: #fde6e4;
  --d26-info: #3a5fc8;
  --d26-info-bg: #e7edfc;
  /* 파스텔 KPI */
  --d26-p-mint: #e3f5ee;
  --d26-p-peach: #fde9df;
  --d26-p-sky: #e6eefc;
  --d26-p-butter: #fdf2d3;

  --d26-rail: 108px;
  --d26-rail-mini: 80px;
  --d26-radius: 26px;
  --d26-gap: clamp(14px, 1.5vw, 22px);
  --d26-display: "Jua", var(--ailo-font);
}

body { background: var(--ailo-bg); font-size: 14px; }

/* ===== Shell ===== */
.app { min-height: 100vh; }
.shell { margin-left: var(--d26-rail); min-width: 0; display: flex; flex-direction: column; min-height: 100vh; transition: margin-left .28s var(--ailo-ease); }
html.sb-mini .shell { margin-left: var(--d26-rail-mini); }

/* ===== Rail ===== */
.sb {
  position: fixed; inset: 0 auto 0 0; z-index: 130; width: var(--d26-rail);
  background: var(--d26-mint-ink); color: #fff;
  border-radius: 0 32px 32px 0; padding: 18px 12px 14px;
  display: flex; flex-direction: column; align-items: stretch; overflow: hidden auto;
  transition: width .28s var(--ailo-ease), transform .3s var(--ailo-ease), visibility .3s;
}
.sb::after { content: ""; position: absolute; right: -40px; bottom: 80px; width: 120px; height: 120px; border-radius: 50%; background: rgba(255, 255, 255, .06); pointer-events: none; }
.sb__head { display: flex; justify-content: center; margin-bottom: 18px; position: relative; }
.sb__logo { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.sb__mark { width: 50px; height: 50px; border-radius: 18px; display: grid; place-items: center; background: #fff7e3; color: var(--d26-mint-ink); font-size: 22px; rotate: -8deg; box-shadow: 0 6px 0 rgba(0, 0, 0, .12); }
.sb__brand { font-family: var(--d26-display); font-size: 14px; line-height: 1.1; text-align: center; color: #fff7e3; }
.sb__close { display: none; position: absolute; right: 0; top: 0; width: 40px; height: 40px; border: 0; border-radius: 14px; background: rgba(255, 255, 255, .12); color: #fff; }

.sb__nav { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.sb__nav a {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 10px 4px 9px; border-radius: 20px; color: #e3f5ee; font-size: 12px; font-weight: 600; text-align: center;
  transition: background .2s, color .2s, translate .2s;
}
.sb__nav a i { font-size: 19px; width: 24px; text-align: center; }
.sb__nav a span { white-space: nowrap; }
.sb__nav a em { position: absolute; top: 4px; right: 12px; font-style: normal; font-size: 10.5px; font-weight: 800; min-width: 18px; height: 18px; line-height: 18px; padding: 0 5px; border-radius: 99px; background: #ffb38f; color: #4a1d08; }
.sb__nav a:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.sb__nav a.is-active { background: #fff7e3; color: var(--d26-mint-deep); box-shadow: 0 5px 0 rgba(0, 0, 0, .14); translate: 0 -1px; }

.sb__fold { margin-top: 10px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0; border: 0; border-radius: 16px; background: rgba(255, 255, 255, .1); color: #e3f5ee; font-size: 11.5px; font-weight: 600; }
.sb__fold i { transition: rotate .28s; }
.sb__fold:hover { background: rgba(255, 255, 255, .18); }

html.sb-mini .sb { width: var(--d26-rail-mini); }
html.sb-mini .sb__nav a span, html.sb-mini .sb__brand, html.sb-mini .sb__fold span { display: none; }
html.sb-mini .sb__nav a { padding: 13px 0; }
html.sb-mini .sb__nav a em { right: 6px; }
html.sb-mini .sb__fold i { rotate: 180deg; }
.sb-dim { display: none; }

/* ===== Topbar ===== */
.tb { position: sticky; top: 0; z-index: 100; display: flex; align-items: center; gap: 14px; padding: 14px clamp(16px, 2.4vw, 36px); background: rgba(251, 246, 234, .9); backdrop-filter: blur(10px); }
.tb__title { margin-right: auto; min-width: 0; }
.tb__crumb { display: flex; gap: 6px; font-size: 12px; color: var(--ailo-muted); }
.tb__crumb li + li::before { content: "·"; margin-right: 6px; }
.tb__crumb a:hover { color: var(--d26-mint-ink); }
.tb__title h1 { font-family: var(--d26-display); font-weight: 400; font-size: clamp(22px, 2vw, 28px); line-height: 1.15; white-space: nowrap; }
.tb__search { position: relative; width: min(320px, 30vw); }
.tb__search i { position: absolute; left: 16px; top: 50%; translate: 0 -50%; color: var(--d26-mint-ink); font-size: 14px; }
.tb__search input { width: 100%; height: 46px; border-radius: 99px; border: 2px solid transparent; background: #fff; padding: 0 18px 0 42px; font-size: 14px; outline: 0; box-shadow: 0 3px 0 var(--ailo-line); }
.tb__search input:focus { border-color: var(--d26-mint); }
.tb__actions { display: flex; align-items: center; gap: 10px; }
.tb__icon { position: relative; width: 46px; height: 46px; border-radius: 16px; border: 0; background: #fff; font-size: 17px; color: var(--ailo-fg); box-shadow: 0 3px 0 var(--ailo-line); }
.tb__icon:hover { background: var(--d26-mint-soft); }
.tb__badge { position: absolute; top: -5px; right: -5px; min-width: 20px; height: 20px; line-height: 16px; padding: 0 5px; border-radius: 99px; background: var(--d26-s2); color: #3a1406; font-size: 11px; font-weight: 800; border: 2px solid var(--ailo-bg); }
.tb__profile { display: flex; align-items: center; gap: 10px; border: 0; background: #fff; border-radius: 99px; padding: 4px 16px 4px 4px; box-shadow: 0 3px 0 var(--ailo-line); text-align: left; }
.tb__profile:hover { background: var(--d26-mint-soft); }
.tb__who { line-height: 1.2; }
.tb__who b { display: block; font-size: 13.5px; }
.tb__who small { font-size: 11.5px; color: var(--ailo-muted); }
.tb__burger { color: var(--ailo-fg); margin-left: -8px; }
.avatar { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #ffd9c7; color: #7a2f12; font-family: var(--d26-display); font-size: 17px; }

/* 알림 */
.dd { position: relative; }
.dd__panel { position: absolute; right: 0; top: calc(100% + 12px); width: 340px; max-width: calc(100vw - 24px); background: #fff; border-radius: 22px; padding: 10px; box-shadow: 0 20px 40px -18px rgba(60, 50, 20, .35), 0 0 0 1px var(--ailo-line); z-index: 140; }
.dd__head { display: flex; justify-content: space-between; align-items: center; padding: 6px 10px 8px; }
.dd__head strong { font-family: var(--d26-display); font-weight: 400; font-size: 18px; }
.dd__link { border: 0; background: none; color: var(--d26-mint-ink); font-weight: 700; font-size: 12.5px; }
.noti li { display: flex; gap: 10px; padding: 10px; border-radius: 16px; position: relative; }
.noti li:hover { background: var(--ailo-bg); }
.noti li.is-new::after { content: ""; position: absolute; right: 12px; top: 16px; width: 8px; height: 8px; border-radius: 50%; background: var(--d26-s2); }
.noti p { font-size: 13px; line-height: 1.45; padding-right: 14px; }
.noti small { display: block; font-size: 11.5px; color: var(--ailo-muted); }
.noti__ic { flex: none; width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; background: var(--d26-mint-soft); color: var(--d26-mint-ink); }
.noti__ic--crit { background: var(--d26-crit-bg); color: var(--d26-crit); }
.noti__ic--warn { background: var(--d26-warn-bg); color: var(--d26-warn); }

/* ===== Main ===== */
.main { flex: 1; padding: 4px clamp(16px, 2.4vw, 36px) 32px; display: flex; flex-direction: column; gap: var(--d26-gap); }

/* 인사 배너 */
.hello {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 380px); align-items: center; gap: 20px;
  background: var(--d26-mint-soft); border-radius: 32px; padding: clamp(20px, 2.4vw, 32px) clamp(20px, 3vw, 40px) 0; overflow: hidden;
}
.hello::before { content: ""; position: absolute; left: -60px; bottom: -80px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255, 255, 255, .5); }
.hello__txt { position: relative; padding-bottom: clamp(20px, 2.4vw, 32px); }
.hello__date { font-size: 13px; color: var(--d26-mint-deep); font-weight: 600; }
.hello h2 { font-family: var(--d26-display); font-weight: 400; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.25; margin: 6px 0 6px; color: #1e3a33; }
.hello__desc { font-size: 15px; color: #3d4f4a; }
.hello__desc b { color: var(--d26-mint-deep); }
.hello__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.btn-p, .btn-s { display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 99px; padding: 11px 20px; font-weight: 700; font-size: 14px; transition: translate .15s, box-shadow .15s; }
.btn-p { background: var(--d26-mint-ink); color: #fff; box-shadow: 0 4px 0 var(--d26-mint-deep); }
.btn-s { background: #fff; color: var(--d26-mint-deep); box-shadow: 0 4px 0 #c4e6da; }
.btn-p:hover, .btn-s:hover { translate: 0 -2px; }
.btn-p:active, .btn-s:active { translate: 0 2px; box-shadow: none; }
.hello__art { position: relative; width: 100%; height: auto; align-self: end; }

/* 필터 */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.seg { display: inline-flex; gap: 4px; padding: 5px; background: #fff; border-radius: 99px; box-shadow: 0 3px 0 var(--ailo-line); }
.seg button { border: 0; background: transparent; border-radius: 99px; padding: 8px 20px; font-weight: 700; font-size: 13.5px; color: var(--ailo-muted); }
.seg button:hover { color: var(--ailo-fg); background: var(--ailo-bg); }
.seg button.is-on { background: var(--d26-mint-ink); color: #fff; }
.filters__range { font-size: 13px; color: var(--ailo-muted); }

/* KPI */
.kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--d26-gap); }
.kpi { position: relative; border-radius: 24px; padding: 18px 18px 14px; min-width: 0; }
.kpi--mint { background: var(--d26-p-mint); }
.kpi--peach { background: var(--d26-p-peach); }
.kpi--sky { background: var(--d26-p-sky); }
.kpi--butter { background: var(--d26-p-butter); }
.kpi__ic { position: absolute; right: 14px; top: 14px; width: 38px; height: 38px; border-radius: 14px; display: grid; place-items: center; background: #fff; color: var(--ailo-fg); font-size: 15px; rotate: 6deg; }
.kpi__label { font-size: 13px; font-weight: 700; color: #4b5753; padding-right: 44px; }
.kpi__value { font-size: clamp(26px, 2.3vw, 32px); font-weight: 800; letter-spacing: -.03em; line-height: 1.2; margin-top: 6px; white-space: nowrap; }
.kpi__value small { font-size: .46em; font-weight: 600; color: var(--ailo-muted); margin-left: 4px; letter-spacing: 0; }
.delta { font-size: 12.5px; font-weight: 700; margin-top: 2px; }
.delta__t { font-weight: 500; color: var(--ailo-muted); }
.delta--good { color: var(--d26-good); }
.delta--bad { color: var(--d26-crit); }
.delta--flat { color: #5f6a64; }
.spark { display: block; width: 100%; height: 30px; margin-top: 10px; overflow: visible; }
.spark__line { fill: none; stroke: rgba(38, 51, 48, .28); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.spark__end { fill: var(--d26-mint-ink); stroke: #fff; stroke-width: 2; }

/* ===== Grid ===== */
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--d26-gap); }
.g-ward { grid-column: span 7; }
.g-appt { grid-column: span 5; }
.g-table { grid-column: span 8; }
.g-vac { grid-column: span 4; }
.g-rev { grid-column: span 7; }
.g-log { grid-column: span 5; }

.card { color: var(--ailo-fg); background: var(--d26-card); border-radius: var(--d26-radius); padding: clamp(18px, 1.8vw, 26px); box-shadow: 0 4px 0 var(--ailo-line); min-width: 0; }
.card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.card__head--wrap { flex-wrap: wrap; }
.card h2 { font-family: var(--d26-display); font-weight: 400; font-size: 20px; line-height: 1.25; display: flex; align-items: center; gap: 8px; }
.card h2 i { font-size: 15px; width: 32px; height: 32px; border-radius: 11px; display: grid; place-items: center; background: var(--d26-mint-soft); color: var(--d26-mint-ink); }
.card__sub { font-size: 12.5px; color: var(--ailo-muted); margin-top: 4px; }
.sub-title { font-size: 13px; font-weight: 700; margin: 18px 0 10px; }

.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: #4b5753; margin: -4px 0 10px; }
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.lk { width: 12px; height: 12px; border-radius: 4px; background: var(--c); }
.chart { position: relative; height: 260px; }
.chart--rev { height: 220px; }

/* 병동 탭 */
.tabs { display: inline-flex; gap: 4px; background: var(--ailo-bg); border-radius: 99px; padding: 4px; }
.tabs button { border: 0; background: transparent; border-radius: 99px; padding: 6px 14px; font-size: 12.5px; font-weight: 700; color: var(--ailo-muted); }
.tabs button.is-on { background: #fff; color: var(--d26-mint-deep); box-shadow: 0 2px 0 var(--ailo-line); }

/* ===== Cages ===== */
.ward-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--ailo-muted); margin-bottom: 12px; }
.ward-legend li { display: inline-flex; align-items: center; gap: 6px; }
.ward-legend .st { padding: 0; width: 20px; height: 20px; justify-content: center; }
.cages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.cage { position: relative; border-radius: 20px; padding: 12px 12px 11px; background: #fff; border: 2px solid var(--ailo-line); min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.cage::before { content: ""; position: absolute; left: 14px; right: 14px; top: -2px; height: 4px; border-radius: 0 0 4px 4px; }
.cage--good::before { background: var(--d26-good); }
.cage--warn::before { background: #e6a417; }
.cage--crit { border-color: #f3b9b6; background: #fff8f7; }
.cage--crit::before { background: var(--d26-crit); }
.cage--info::before { background: var(--d26-info); }
.cage--empty { border-style: dashed; background: transparent; align-items: center; justify-content: center; min-height: 140px; }
.cage__top { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.cage__id { font-weight: 800; font-size: 12px; color: var(--ailo-muted); letter-spacing: .04em; }
.cage--empty .cage__id { position: absolute; left: 12px; top: 10px; }
.cage__empty { font-size: 12.5px; color: #a49c8a; font-weight: 600; }
.cage__pet { display: flex; align-items: center; gap: 8px; min-width: 0; }
.cage__pet div { min-width: 0; line-height: 1.25; }
.cage__name { font-family: var(--d26-display); font-weight: 400; font-size: 17px; display: block; }
.cage__breed { font-size: 11.5px; color: var(--ailo-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.cage__dx { font-size: 12.5px; color: #3f4b47; line-height: 1.35; min-height: 2.7em; }
.cage__meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 11.5px; color: var(--ailo-muted); font-weight: 600; }
.cage__iv { color: var(--d26-info); }
.cage--crit .cage__meta > span:first-child { color: var(--d26-crit); }

.st { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 99px; white-space: nowrap; }
.st--good { background: var(--d26-good-bg); color: var(--d26-good); }
.st--warn { background: var(--d26-warn-bg); color: var(--d26-warn); }
.st--crit { background: var(--d26-crit-bg); color: var(--d26-crit); }
.st--info { background: var(--d26-info-bg); color: var(--d26-info); }

.pet { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 16px; }
.pet--dog { background: #fde3c8; color: #9a5419; }
.pet--cat { background: #e4e7f1; color: #4e5873; }
.pet--sm { width: 30px; height: 30px; font-size: 13px; }

/* ===== Table ===== */
.tbl-tools { display: flex; gap: 8px; flex-wrap: wrap; }
.mini-search { position: relative; }
.mini-search i { position: absolute; left: 14px; top: 50%; translate: 0 -50%; font-size: 12px; color: var(--d26-mint-ink); }
.mini-search input, .mini-select { height: 40px; border-radius: 99px; border: 2px solid var(--ailo-line); background: #fff; font-size: 13px; outline: 0; }
.mini-search input { width: 190px; padding: 0 14px 0 34px; }
.mini-select { padding: 0 14px; }
.mini-search input:focus, .mini-select:focus { border-color: var(--d26-mint); }
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; min-width: 640px; border-collapse: separate; border-spacing: 0 6px; font-size: 13.5px; }
.tbl th { text-align: left; font-size: 12px; font-weight: 700; color: var(--ailo-muted); padding: 0 12px 4px; white-space: nowrap; }
.tbl th button { border: 0; background: none; padding: 0; color: inherit; font-weight: inherit; display: inline-flex; align-items: center; gap: 6px; }
.tbl th button i { font-size: 10.5px; opacity: .45; }
.tbl th[aria-sort="ascending"] button, .tbl th[aria-sort="descending"] button { color: var(--d26-mint-ink); }
.tbl th[aria-sort="ascending"] i, .tbl th[aria-sort="descending"] i { opacity: 1; }
.tbl td { padding: 10px 12px; background: var(--ailo-bg); white-space: nowrap; vertical-align: middle; }
.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: var(--d26-mint-soft); }
.c-time { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--d26-mint-deep); }
.who { display: flex; align-items: center; gap: 10px; }
.who div { line-height: 1.25; }
.who b { display: block; }
.who small { font-size: 11.5px; color: var(--ailo-muted); }
.type { display: inline-flex; align-items: center; gap: 6px; }
.type__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 99px; line-height: 1.3; }
.badge--done { background: #ece6d8; color: #5f5949; }
.badge--now { background: var(--d26-mint-ink); color: #fff; }
.badge--wait { background: var(--d26-warn-bg); color: var(--d26-warn); }
.badge--book { background: var(--d26-info-bg); color: var(--d26-info); }
.badge--now::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #9ff0d8; animation: blink 1.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .2; } }
.tbl-empty { text-align: center; color: var(--ailo-muted); padding: 26px; }
.pager { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.pager__info { font-size: 12.5px; color: var(--ailo-muted); }
.pager__btns { display: flex; gap: 6px; }
.pager__btns button { min-width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--ailo-bg); font-size: 13px; font-weight: 700; }
.pager__btns button:hover:not(:disabled) { background: var(--d26-mint-soft); }
.pager__btns button.is-on { background: var(--d26-mint-ink); color: #fff; }
.pager__btns button:disabled { opacity: .4; cursor: default; }

/* 카드 높이 맞춤 */
.g-appt, .g-vac { display: flex; flex-direction: column; }
.g-appt .chart { flex: 1; min-height: 260px; }
.more { margin-top: auto; display: flex; justify-content: center; align-items: center; gap: 6px; padding: 12px; border-radius: 16px; background: var(--ailo-bg); color: var(--d26-mint-deep); font-weight: 700; font-size: 13px; }
.more:hover { background: var(--d26-mint-soft); color: var(--d26-mint-deep); }
.vac { margin-bottom: 14px; }

/* ===== Vaccine ===== */
.vac li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 10px 0; border-top: 2px dotted var(--ailo-line); }
.vac li:first-child { border-top: 0; padding-top: 0; }
.vac div { min-width: 0; line-height: 1.3; }
.vac b { font-size: 14px; }
.vac small { font-size: 11.5px; color: var(--ailo-muted); }
.vac p { font-size: 12.5px; color: #4b5753; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dday { font-weight: 800; font-size: 12px; color: var(--d26-mint-deep); background: var(--d26-mint-soft); border-radius: 10px; padding: 3px 8px; }
.dday--hot { background: #ffe2d4; color: #a33c12; }
.send { border: 2px solid var(--d26-mint); background: #fff; color: var(--d26-mint-deep); font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px; white-space: nowrap; }
.send:hover:not(:disabled) { background: var(--d26-mint-soft); }
.send.is-sent { border-color: var(--ailo-line); color: var(--ailo-muted); cursor: default; }

/* ===== Segment bar ===== */
.segbar { display: flex; gap: 2px; height: 28px; }
.segbar__part { display: flex; align-items: center; padding-left: 8px; border-radius: 4px; font-size: 12px; font-weight: 800; color: #1a1a1a; white-space: nowrap; overflow: visible; outline-offset: 2px; transition: filter .15s; }
.segbar__part:hover, .segbar__part:focus-visible { filter: brightness(1.08); }
.legend--seg { margin: 10px 0 0; }

/* ===== Log ===== */
.log li { display: flex; gap: 12px; padding: 10px 0; position: relative; }
.log li:not(:last-child)::after { content: ""; position: absolute; left: 6px; top: 28px; bottom: -8px; width: 2px; background: var(--ailo-line); border-radius: 2px; }
.log__dot { flex: none; width: 14px; height: 14px; border-radius: 50%; background: var(--d26-mint-soft2); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--d26-mint-soft2); margin-top: 4px; }
.log__dot--crit { background: var(--d26-crit); box-shadow: 0 0 0 2px #f3b9b6; }
.log__dot--info { background: var(--d26-info); box-shadow: 0 0 0 2px #c8d5f6; }
.log p { font-size: 13.5px; line-height: 1.45; }
.log small { font-size: 11.5px; color: var(--ailo-muted); }

/* ===== Footer ===== */
.ft { padding: 8px clamp(16px, 2.4vw, 36px) 28px; font-size: 12px; color: var(--ailo-muted); }

/* ===== Responsive ===== */
@media (max-width: 1399.98px) {
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .g-ward, .g-appt { grid-column: span 12; }
}
@media (max-width: 1199.98px) {
  .g-table, .g-rev { grid-column: span 12; }
  .g-vac, .g-log { grid-column: span 6; }
}
@media (max-width: 991.98px) {
  .shell, html.sb-mini .shell { margin-left: 0; }
  .sb, html.sb-mini .sb { width: min(280px, 82vw); transform: translateX(-100%); visibility: hidden; padding: 18px 16px; }
  html.nav-open .sb { transform: none; visibility: visible; transition: width .28s var(--ailo-ease), transform .3s var(--ailo-ease), visibility 0s; } /* 열 때 visibility 즉시 → 곧바로 포커스 가능 */
  .sb__head { justify-content: flex-start; }
  .sb__logo { flex-direction: row; gap: 10px; }
  .sb__brand br { display: none; }
  html.sb-mini .sb__brand, html.sb-mini .sb__nav a span { display: revert; }
  .sb__brand { font-size: 20px; }
  .sb__close { display: grid; place-items: center; }
  .sb__nav a, html.sb-mini .sb__nav a { flex-direction: row; justify-content: flex-start; gap: 14px; padding: 12px 16px; font-size: 14px; text-align: left; }
  .sb__nav a em, html.sb-mini .sb__nav a em { position: static; margin-left: auto; }
  .sb__fold { display: none; }
  .sb-dim { display: block; position: fixed; inset: 0; z-index: 125; background: rgba(30, 40, 35, .45); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
  html.nav-open .sb-dim { opacity: 1; visibility: visible; }
  .tb__who { display: none; }
  .tb__profile { padding: 4px; }
  .cages { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767.98px) {
  .g-vac, .g-log { grid-column: span 12; }
  .tb { flex-wrap: wrap; row-gap: 10px; }
  .tb__search { order: 5; width: 100%; }
  .hello { grid-template-columns: 1fr; padding-bottom: 0; }
  .hello__txt { padding-bottom: 0; }
  .hello__art { max-width: 300px; margin: 0 auto; }
  .cages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .kpi { padding: 14px 14px 12px; border-radius: 20px; }
  .kpi:last-child { grid-column: span 2; }
  .kpi__ic { width: 32px; height: 32px; font-size: 13px; right: 10px; top: 10px; }
  .kpi__label { font-size: 12.5px; padding-right: 36px; }
  .delta__t { display: block; font-size: 11.5px; }
  .tbl-tools, .mini-search, .mini-search input { width: 100%; }
  .mini-search { flex: 1; }
  .vac li { grid-template-columns: auto minmax(0, 1fr) auto; }
  .vac .send { grid-column: 2 / -1; justify-self: start; }
  .seg button { padding: 8px 16px; }
  .cage { padding: 10px; }
}
