/* ==========================================================================
   AILO Dashboard D13 — 함께나눔 (사단법인 운영)
   원형: 클래식 좌측 사이드바(접기) + 라운드 카드 그리드 / 타이포: Pretendard + Gowun Batang(인사말) / 컬러: 화이트 + 포레스트 그린, 앰버·블루 보조
   ========================================================================== */
:root {
  --ailo-bg: #f3f6f2;
  --ailo-fg: #17231c;
  --ailo-muted: #5f6d64;
  --ailo-line: #e1e7e0;
  --ailo-accent: #1a7f4b;
  --ailo-header-h: 68px;
  --d13-green-dk: #0f5c35;
  --d13-green-50: #e8f3ec;
  --d13-green-100: #d3e9db;
  --d13-amber: #e0a100;
  --d13-blue: #3a64c8;
  --d13-terra: #c75b39;
  --d13-gray: #b6bfb8;
  --d13-card: #ffffff;
  --d13-up: #13803f;
  --d13-down: #b4371f;
  --d13-sb: 264px;
  --d13-sb-mini: 76px;
  --d13-radius: 14px;
  --d13-shadow: 0 1px 2px rgba(23,35,28,.04), 0 6px 20px -12px rgba(23,35,28,.18);
  --d13-serif: "Gowun Batang", "Noto Serif KR", serif;
}
body { font-size: 14px; }
.tnum { font-variant-numeric: tabular-nums; }

/* ===== Sidebar ===== */
.sb {
  position: fixed; top: 0; left: 0; bottom: 0; width: var(--d13-sb); background: #fff; border-right: 1px solid var(--ailo-line);
  display: flex; flex-direction: column; z-index: 110; transition: width .3s var(--ailo-ease), translate .35s var(--ailo-ease);
}
.sb__brand { height: var(--ailo-header-h); display: flex; align-items: center; gap: 12px; padding: 0 20px; border-bottom: 1px solid var(--ailo-line); flex: none; }
.sb__mark { width: 38px; height: 38px; border-radius: 11px; background: var(--ailo-accent); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 17px; flex: none; }
.sb__name { line-height: 1.2; white-space: nowrap; overflow: hidden; }
.sb__name b { display: block; font-size: 17px; letter-spacing: -.03em; }
.sb__name span { font-size: 11px; color: var(--ailo-muted); }
.sb__close { display: none; margin-left: auto; width: 34px; height: 34px; border: 1px solid var(--ailo-line); border-radius: 9px; background: #fff; }
.sb__nav { flex: 1; overflow-y: auto; padding: 14px 12px; }
.sb__grp { font-size: 11px; font-weight: 700; color: #8a968e; letter-spacing: .06em; padding: 14px 12px 6px; white-space: nowrap; }
.sb__grp:first-child { padding-top: 2px; }
.sb__nav a {
  display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 12px; border-radius: 10px; color: #3c4a41; font-weight: 500;
  white-space: nowrap; position: relative; transition: background .2s, color .2s;
}
.sb__nav a i { width: 20px; text-align: center; font-size: 15px; color: #8a968e; flex: none; transition: color .2s; }
.sb__nav a:hover { background: #f4f7f4; color: var(--ailo-fg); }
.sb__nav a:hover i { color: var(--ailo-accent); }
.sb__nav a[aria-current="page"] { background: var(--d13-green-50); color: var(--d13-green-dk); font-weight: 700; }
.sb__nav a[aria-current="page"] i { color: var(--ailo-accent); }
.sb__nav a[aria-current="page"]::before { content: ""; position: absolute; left: -12px; top: 9px; bottom: 9px; width: 4px; border-radius: 0 4px 4px 0; background: var(--ailo-accent); }
.sb__cnt { font-style: normal; margin-left: auto; font-size: 11px; font-weight: 700; background: var(--d13-terra); color: #fff; border-radius: 20px; padding: 1px 7px; }
.sb__cnt--soft { background: var(--d13-green-100); color: var(--d13-green-dk); }
.sb__foot { padding: 12px; border-top: 1px solid var(--ailo-line); flex: none; }
.sb__help { background: linear-gradient(150deg, var(--ailo-accent), var(--d13-green-dk)); color: #fff; border-radius: 12px; padding: 16px; margin-bottom: 10px; position: relative; overflow: hidden; }
.sb__help::after { content: ""; position: absolute; right: -24px; bottom: -24px; width: 90px; height: 90px; border-radius: 50%; border: 14px solid rgba(255,255,255,.12); }
.sb__help b { display: block; font-size: 13px; }
.sb__help p { font-size: 12px; opacity: .85; margin: 4px 0 10px; line-height: 1.5; }
.sb__help a { font-size: 12px; font-weight: 700; background: #fff; color: var(--d13-green-dk); border-radius: 8px; padding: 6px 10px; display: inline-flex; gap: 6px; align-items: center; }
.sb__collapse { width: 100%; height: 38px; border: 1px solid var(--ailo-line); border-radius: 10px; background: #fff; color: var(--ailo-muted); font-size: 13px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.sb__collapse:hover { color: var(--ailo-fg); border-color: #c8d2c9; }
.sb__collapse i { transition: rotate .3s; }

/* 접힌 사이드바 (데스크톱) */
@media (min-width: 992px) {
  .is-mini .sb { width: var(--d13-sb-mini); }
  .is-mini .sb__name, .is-mini .sb__nav a span, .is-mini .sb__cnt, .is-mini .sb__help, .is-mini .sb__collapse span { display: none; }
  .is-mini .sb__brand { padding: 0 19px; }
  .is-mini .sb__grp { font-size: 0; padding: 8px 0; border-top: 1px solid var(--ailo-line); margin: 8px 6px 0; }
  .is-mini .sb__grp:first-child { border-top: 0; margin-top: 0; }
  .is-mini .sb__nav a { justify-content: center; padding: 0; }
  .is-mini .sb__collapse i { rotate: 180deg; }
  .is-mini .app { margin-left: var(--d13-sb-mini); }
}

.sb-scrim { position: fixed; inset: 0; background: rgba(15, 30, 20, .42); z-index: 105; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }

/* ===== App shell ===== */
.app { margin-left: var(--d13-sb); min-height: 100vh; display: flex; flex-direction: column; transition: margin-left .3s var(--ailo-ease); }
.top { position: sticky; top: 0; z-index: 90; height: var(--ailo-header-h); background: rgba(255,255,255,.96); border-bottom: 1px solid var(--ailo-line); display: flex; align-items: center; gap: 14px; padding: 0 clamp(16px, 2.4vw, 32px); }
.top .ailo-burger { margin-left: -8px; color: var(--ailo-fg); }
.top__search { position: relative; flex: 0 1 360px; }
.top__brand { display: none; align-items: center; gap: 8px; font-weight: 800; font-size: 16px; letter-spacing: -.03em; }
.top__brand i { width: 30px; height: 30px; border-radius: 9px; background: var(--ailo-accent); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; }
.top__search input { width: 100%; height: 40px; border-radius: 10px; border: 1px solid var(--ailo-line); background: #f6f8f5; padding: 0 14px 0 38px; font-size: 13px; outline: 0; transition: border-color .2s, box-shadow .2s, background .2s; }
.top__search input:focus { border-color: var(--ailo-accent); background: #fff; box-shadow: 0 0 0 3px var(--d13-green-50); }
.top__search i { position: absolute; left: 14px; top: 50%; translate: 0 -50%; color: #8a968e; font-size: 13px; }
.top__tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.tbtn { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--ailo-line); background: #fff; display: inline-flex; align-items: center; justify-content: center; position: relative; color: #3c4a41; }
.tbtn:hover, .tbtn[aria-expanded="true"] { border-color: var(--ailo-accent); color: var(--ailo-accent); }
.tbtn .badge-n { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--d13-terra); color: #fff; font-size: 10px; font-weight: 700; line-height: 18px; text-align: center; padding: 0 5px; border: 2px solid #fff; box-sizing: content-box; }
.profile { display: flex; align-items: center; gap: 10px; padding: 4px 10px 4px 4px; border-radius: 12px; border: 1px solid transparent; background: none; }
.profile:hover { border-color: var(--ailo-line); }
.profile img { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; }
.profile__txt { text-align: left; line-height: 1.25; }
.profile__txt b { display: block; font-size: 13px; }
.profile__txt span { font-size: 11px; color: var(--ailo-muted); }

.dd { position: relative; }
.dd__panel { position: absolute; right: 0; top: calc(100% + 10px); width: min(360px, calc(100vw - 24px)); background: #fff; border: 1px solid var(--ailo-line); border-radius: 14px; box-shadow: 0 18px 40px -16px rgba(23,35,28,.3); z-index: 120; display: none; overflow: hidden; }
.dd__panel.is-open { display: block; }
.dd__head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--ailo-line); }
.dd__head b { font-size: 14px; }
.dd__head button { border: 0; background: none; color: var(--ailo-accent); font-size: 12px; font-weight: 600; }
.dd__list li { display: flex; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--ailo-line); font-size: 13px; line-height: 1.5; }
.dd__list li:last-child { border-bottom: 0; }
.dd__ic { width: 32px; height: 32px; border-radius: 9px; flex: none; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; background: var(--d13-green-50); color: var(--ailo-accent); }
.dd__ic--warn { background: #fbeee8; color: var(--d13-terra); }
.dd__ic--blue { background: #e9eefa; color: var(--d13-blue); }
.dd__list time { display: block; font-size: 11px; color: var(--ailo-muted); }
.dd__list .is-unread { background: #fafcf9; }
.dd__list .is-unread p::after { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--ailo-accent); margin-left: 6px; vertical-align: middle; }
.dd__foot { display: block; text-align: center; padding: 11px; font-size: 12px; font-weight: 600; color: var(--ailo-accent); background: #f8faf7; }

/* ===== Content ===== */
.content { padding: clamp(20px, 2.6vw, 32px) clamp(16px, 2.4vw, 32px) 0; flex: 1; }
.phead { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 22px; }
.crumb { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--ailo-muted); margin-bottom: 8px; }
.crumb i { font-size: 9px; color: #a8b2ab; }
.crumb a:hover { color: var(--ailo-accent); }
.phead h1 { font-size: clamp(22px, 2.2vw, 28px); font-weight: 800; letter-spacing: -.035em; }
.phead__greet { font-family: var(--d13-serif); color: var(--ailo-muted); font-size: 15px; margin-top: 4px; }
.phead__greet b { color: var(--d13-green-dk); }
.phead__act { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.pills { display: inline-flex; background: #fff; border: 1px solid var(--ailo-line); border-radius: 12px; padding: 4px; gap: 2px; }
.pills button { border: 0; background: transparent; height: 32px; padding: 0 14px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--ailo-muted); transition: background .2s, color .2s; }
.pills button:hover { color: var(--ailo-fg); background: #f4f7f4; }
.pills button[aria-pressed="true"] { background: var(--ailo-accent); color: #fff; box-shadow: 0 2px 6px -2px rgba(26,127,75,.6); }
.btn-g { height: 42px; padding: 0 16px; border-radius: 12px; border: 0; background: var(--d13-green-dk); color: #fff; font-weight: 600; font-size: 13px; display: inline-flex; align-items: center; gap: 8px; }
.btn-g:hover { background: var(--ailo-accent); color: #fff; }
.btn-o { height: 42px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--ailo-line); background: #fff; font-weight: 600; font-size: 13px; display: inline-flex; align-items: center; gap: 8px; }
.btn-o:hover { border-color: var(--ailo-accent); color: var(--ailo-accent); }

.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
.c-12 { grid-column: span 12; } .c-8 { grid-column: span 8; } .c-4 { grid-column: span 4; } .c-7 { grid-column: span 7; } .c-5 { grid-column: span 5; }
.card { background: var(--d13-card); border: 1px solid var(--ailo-line); border-radius: var(--d13-radius); box-shadow: var(--d13-shadow); padding: 20px 22px; min-width: 0; transition: opacity .25s; }
.card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.card__title { font-size: 16px; font-weight: 700; letter-spacing: -.02em; display: flex; align-items: center; gap: 8px; }
.card__title i { color: var(--ailo-accent); font-size: 14px; }
.card__sub { font-size: 12px; color: var(--ailo-muted); margin-top: 2px; }
.more { font-size: 12px; color: var(--ailo-muted); display: inline-flex; gap: 4px; align-items: center; font-weight: 600; }
.more:hover { color: var(--ailo-accent); }

/* KPI */
.kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.kpi { padding: 18px 18px 14px; display: flex; flex-direction: column; gap: 6px; position: relative; overflow: hidden; }
.kpi__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.kpi__label { font-size: 13px; color: var(--ailo-muted); font-weight: 600; }
.kpi__ic { width: 34px; height: 34px; border-radius: 10px; background: var(--d13-green-50); color: var(--ailo-accent); display: inline-flex; align-items: center; justify-content: center; font-size: 14px; flex: none; }
.kpi__value { font-size: clamp(22px, 1.8vw, 28px); font-weight: 800; letter-spacing: -.04em; line-height: 1.15; white-space: nowrap; }
.kpi__value small { font-size: 14px; font-weight: 600; margin-left: 2px; color: var(--ailo-muted); letter-spacing: 0; }
.kpi__delta { font-size: 12px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; color: var(--ailo-muted); }
.chip { display: inline-flex; align-items: center; gap: 3px; font-weight: 700; padding: 1px 7px; border-radius: 6px; font-size: 11.5px; }
.chip.is-good { background: #e3f3e8; color: var(--d13-up); }
.chip.is-bad { background: #fbeae4; color: var(--d13-down); }
.kpi__spark { max-width: none; height: 34px; margin: 4px -18px -14px; display: block; width: calc(100% + 36px); }

/* 차트 */
.plot { position: relative; height: 300px; }
.plot--sm { height: 220px; }
.lgd { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: #3c4a41; }
.lgd span { display: inline-flex; align-items: center; gap: 6px; }
.lgd i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.sum-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--ailo-line); }
.sum-row dt { font-size: 12px; color: var(--ailo-muted); display: flex; align-items: center; gap: 6px; }
.sum-row dt i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.sum-row dd { margin: 2px 0 0; font-size: 17px; font-weight: 800; letter-spacing: -.03em; }
.sum-row dd small { font-size: 12px; color: var(--ailo-muted); font-weight: 500; margin-left: 4px; letter-spacing: 0; }

/* 후원 목표 게이지 */
.goal { display: flex; flex-direction: column; }
.gauge { position: relative; height: 170px; margin: 2px auto 0; width: 100%; max-width: 320px; }
.gauge__center { position: absolute; left: 0; right: 0; bottom: 6px; text-align: center; pointer-events: none; }
.gauge__pct { font-size: 44px; font-weight: 800; color: var(--d13-green-dk); line-height: 1; letter-spacing: -.02em; }
.gauge__pct small { font-size: 22px; }
.gauge__lbl { font-size: 12px; color: var(--ailo-muted); margin-top: 4px; }
.goal__nums { display: flex; justify-content: space-between; font-size: 12px; color: var(--ailo-muted); padding: 10px 6px 14px; border-bottom: 1px solid var(--ailo-line); }
.goal__nums b { display: block; font-size: 15px; color: var(--ailo-fg); letter-spacing: -.02em; }
.goal__nums div:last-child { text-align: right; }
.camp-list { display: flex; flex-direction: column; gap: 12px; padding-top: 14px; }
.camp__row { display: flex; justify-content: space-between; font-size: 13px; gap: 10px; margin-bottom: 6px; }
.camp__row b { font-weight: 600; }
.camp__row span { color: var(--ailo-muted); font-size: 12px; white-space: nowrap; }
.meter { height: 8px; border-radius: 8px; background: var(--d13-green-100); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 8px; background: var(--ailo-accent); transition: width .6s var(--ailo-ease); }
.meter.is-warn { background: #f6ead0; }
.meter.is-warn i { background: var(--d13-amber); }
.dday { font-size: 11px; font-weight: 700; color: var(--d13-green-dk); background: var(--d13-green-50); padding: 1px 6px; border-radius: 5px; margin-left: 6px; }

/* 도넛 */
.donut-wrap { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 18px; align-items: center; }
.donut { position: relative; height: 150px; }
.donut__c { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; }
.donut__c b { font-size: 26px; font-weight: 800; letter-spacing: -.04em; line-height: 1.1; }
.donut__c span { font-size: 11px; color: var(--ailo-muted); }
.dl { display: flex; flex-direction: column; gap: 9px; }
.dl li { display: grid; grid-template-columns: 10px 1fr auto; gap: 8px; align-items: center; font-size: 13px; white-space: nowrap; }
.dl i { width: 10px; height: 10px; border-radius: 3px; }
.dl b { font-variant-numeric: tabular-nums; }
.dl small { color: var(--ailo-muted); font-size: 11px; margin-left: 4px; font-weight: 500; }
.notice-mini { margin-top: 14px; background: #fbf5e6; border-radius: 10px; padding: 10px 12px; font-size: 12px; color: #6b4e00; display: flex; gap: 8px; align-items: flex-start; }
.notice-mini button { margin-left: auto; border: 0; background: #fff; border-radius: 7px; font-size: 11px; font-weight: 700; padding: 4px 8px; color: #6b4e00; white-space: nowrap; }

/* 행사 */
.events { display: flex; flex-direction: column; gap: 4px; }
.ev { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--ailo-line); }
.ev:last-child { border-bottom: 0; }
.ev__date { border-radius: 12px; background: var(--d13-green-50); text-align: center; padding: 6px 0; line-height: 1.15; align-self: start; }
.ev__date b { display: block; font-size: 20px; color: var(--d13-green-dk); letter-spacing: -.03em; }
.ev__date span { font-size: 11px; color: var(--ailo-muted); }
.ev__date.is-blue { background: #e9eefa; } .ev__date.is-blue b { color: var(--d13-blue); }
.ev__date.is-amber { background: #fbf2dc; } .ev__date.is-amber b { color: #8a6200; }
.ev h3 { font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.ev p { font-size: 12px; color: var(--ailo-muted); margin-bottom: 6px; }
.ev__cap { display: flex; justify-content: space-between; font-size: 11px; color: var(--ailo-muted); margin-top: 4px; }

/* 테이블 */
.tbl-tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.field { position: relative; }
.field input, .field select { height: 36px; border: 1px solid var(--ailo-line); border-radius: 9px; font-size: 13px; padding: 0 12px; background: #fff; outline: 0; }
.field input { padding-left: 32px; width: 210px; }
.field input:focus, .field select:focus { border-color: var(--ailo-accent); box-shadow: 0 0 0 3px var(--d13-green-50); }
.field i { position: absolute; left: 11px; top: 50%; translate: 0 -50%; font-size: 12px; color: #8a968e; }
.tbl-wrap { overflow-x: auto; margin: 0 -22px; padding: 0 22px; -webkit-overflow-scrolling: touch; }
.tbl { width: 100%; min-width: 680px; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.tbl th { background: #f6f8f5; color: var(--ailo-muted); font-weight: 600; font-size: 12px; text-align: left; padding: 0; white-space: nowrap; border-top: 1px solid var(--ailo-line); border-bottom: 1px solid var(--ailo-line); }
.tbl th:first-child { border-left: 1px solid var(--ailo-line); border-radius: 10px 0 0 10px; }
.tbl th:last-child { border-right: 1px solid var(--ailo-line); border-radius: 0 10px 10px 0; }
.tbl th button { border: 0; background: none; width: 100%; padding: 10px; display: flex; align-items: center; gap: 6px; font: inherit; color: inherit; justify-content: inherit; }
.tbl th.r button { justify-content: flex-end; }
.tbl th button i { font-size: 10px; opacity: .4; }
.tbl th[aria-sort] { color: var(--d13-green-dk); }
.tbl th[aria-sort] button i { opacity: 1; color: var(--ailo-accent); }
.tbl td { padding: 11px 10px; border-bottom: 1px solid var(--ailo-line); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tbl tbody tr:hover td { background: #fafcf9; }
.tbl .r { text-align: right; }
.who { display: flex; align-items: center; gap: 8px; }
.ini { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex: none; }
.who small { display: block; font-size: 11px; color: var(--ailo-muted); }
.tag { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 6px; background: #f1f4f1; color: #3c4a41; }
.st { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 20px; }
.st.ok { background: #e3f3e8; color: var(--d13-up); }
.st.wait { background: #fbf2dc; color: #7a5600; }
.st.fail { background: #fbeae4; color: var(--d13-down); }
.st i { font-size: 10px; }
.tbl-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 14px; font-size: 12px; color: var(--ailo-muted); }
.pager { display: flex; gap: 4px; }
.pager button { min-width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--ailo-line); background: #fff; font-size: 12px; font-weight: 600; }
.pager button:hover:not(:disabled) { border-color: var(--ailo-accent); color: var(--ailo-accent); }
.pager button[aria-current="page"] { background: var(--ailo-accent); border-color: var(--ailo-accent); color: #fff; }
.pager button:disabled { opacity: .4; cursor: default; }
.empty { text-align: center; color: var(--ailo-muted); padding: 30px 0 !important; }

/* 활동 로그 */
.log { position: relative; display: flex; flex-direction: column; }
.log li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; padding: 0 0 16px; position: relative; font-size: 13px; line-height: 1.5; }
.log li::before { content: ""; position: absolute; left: 14.5px; top: 30px; bottom: 0; width: 1px; background: var(--ailo-line); }
.log li:last-child::before { display: none; }
.log__ic { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; background: var(--d13-green-50); color: var(--ailo-accent); }
.log__ic.is-amber { background: #fbf2dc; color: #8a6200; }
.log__ic.is-blue { background: #e9eefa; color: var(--d13-blue); }
.log__ic.is-terra { background: #fbeae4; color: var(--d13-terra); }
.log time { display: block; font-size: 11px; color: var(--ailo-muted); }

.foot { padding: 22px clamp(16px, 2.4vw, 32px) 26px; font-size: 12px; color: var(--ailo-muted); display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.foot a:hover { color: var(--ailo-accent); }
.is-loading .card { opacity: .5; }

/* ===== Responsive ===== */
@media (max-width: 1399.98px) {
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .c-4.ev-card { grid-column: span 12; }
  .c-4.donut-card, .c-4.alloc-card { grid-column: span 6; }
}
@media (max-width: 1199.98px) {
  .c-8, .c-4, .c-7, .c-5 { grid-column: span 12; }
  .c-4.donut-card, .c-4.alloc-card { grid-column: span 6; }
  .profile__txt { display: none; }
}
@media (max-width: 991.98px) {
  .app { margin-left: 0; }
  .sb { translate: -100% 0; visibility: hidden; transition: translate .35s var(--ailo-ease), visibility .35s; width: min(300px, 86vw); box-shadow: 20px 0 40px -20px rgba(0,0,0,.3); }
  html.nav-open .sb { translate: 0 0; visibility: visible; transition: translate .35s var(--ailo-ease), visibility 0s; } /* 열 때 visibility 즉시 → 곧바로 포커스 가능 */
  html.nav-open .sb-scrim { opacity: 1; visibility: visible; }
  .sb__close { display: inline-flex; align-items: center; justify-content: center; }
  .sb__collapse { display: none; }
  .c-4.donut-card, .c-4.alloc-card { grid-column: span 12; }
}
@media (max-width: 767.98px) {
  .top__search { display: none; }
  .top__brand { display: inline-flex; }
  .phead__act { width: 100%; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .kpi { padding: 14px 14px 12px; }
  .kpi__spark { margin: 2px -14px -12px; width: calc(100% + 28px); }
  .kpi__ic { width: 28px; height: 28px; font-size: 12px; }
  .grid { gap: 14px; }
  .card { padding: 18px 16px; }
  .tbl-wrap { margin: 0 -16px; padding: 0 16px; }
  .field, .field input { width: 100%; }
  .tbl-tools { width: 100%; }
  .tbl-tools .field:first-child { flex: 1 1 100%; }
  .plot { height: 260px; }
  .sum-row dd { font-size: 15px; }
}
@media (max-width: 575.98px) {
  .donut-wrap { grid-template-columns: 1fr; }
  .donut { max-width: 200px; margin: 0 auto; width: 100%; }
  .kpi__value { font-size: 21px; }
  .pills button { padding: 0 11px; }
  .btn-o span { display: none; }
}
