/* ==========================================================================
   AILO Dashboard D28 — 그린스케이프 (조경 현장·수목 재고·날씨)
   원형: 다크 올리브 레일(접으면 아이콘 레일) + 고밀도 어스톤 카드 보드 / 타이포: IBM Plex Sans KR(제목) + Pretendard
   컬러: 올리브 + 샌드, 차트 팔레트 4색(올리브·블루·클레이·바이올렛, 검증 통과)
   ========================================================================== */
:root {
  --ailo-bg: #ebe4d3;
  --ailo-fg: #232a17;
  --ailo-muted: #66634f;
  --ailo-line: #d8cfb8;
  --ailo-accent: #5f7424;

  --d28-olive: #2f3a1b;
  --d28-olive-2: #3b4923;
  --d28-olive-d: #4d6020;
  --d28-moss: #c9d48f;
  --d28-sand: #f4eedf;
  --d28-surface: #fdfaf3;
  --d28-clay: #b0582f;
  --d28-head: "IBM Plex Sans KR", "Pretendard Variable", sans-serif;
  --d28-grid: #ebe4d2;
  --d28-axis: #cfc5ab;
  --d28-axis-ink: #7b775f;
  /* 차트 범주 색 (validate_palette.js: light / #fffdf7 전 항목 PASS) */
  --d28-s1: #5f7424;
  --d28-s2: #3a76b0;
  --d28-s3: #c2643a;
  --d28-s4: #8a5aa8;
  /* 상태 */
  --d28-good: #3c6b12;
  --d28-bad: #a3341c;
  --d28-warn: #7f5600;
  --d28-rail: 236px;
  --d28-r: 10px;
}

body { background-color: var(--ailo-bg); background-image: radial-gradient(rgba(80, 70, 40, .07) 1px, transparent 1.2px); background-size: 14px 14px; font-size: 13.5px; }

/* ===== Rail ===== */
.rail { position: fixed; inset: 0 auto 0 0; width: var(--d28-rail); background: var(--d28-olive); color: #d8dcc3; display: flex; flex-direction: column; z-index: 60; transition: width .3s var(--ailo-ease); overflow: hidden; }
.rail__brand { display: flex; align-items: center; justify-content: space-between; padding: 18px 18px 22px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; min-width: 0; }
.brand__mark { flex: none; }
.brand__txt { font-family: var(--d28-head); font-weight: 700; letter-spacing: .06em; font-size: 15px; line-height: 1.05; white-space: nowrap; display: flex; flex-direction: column; }
.brand__txt b { color: var(--d28-moss); font-weight: 700; display: contents; }
.brand__txt small { font-size: 11px; font-weight: 500; letter-spacing: .02em; color: #a9b08d; margin-top: 3px; }
.rail__x { display: none; width: 34px; height: 34px; border: 1px solid rgba(255, 255, 255, .2); background: transparent; color: #fff; border-radius: 8px; }
.rail__nav { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 0 10px; }
.rail__nav ul { display: flex; flex-direction: column; gap: 2px; }
.rail__nav a { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; color: #c3c9aa; font-weight: 500; white-space: nowrap; }
.rail__nav a i { width: 22px; text-align: center; font-size: 15px; flex: none; }
.rail__nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.rail__nav a.is-active { background: var(--d28-moss); color: var(--d28-olive); font-weight: 700; }
.rail__nav a em { margin-left: auto; font-style: normal; font-size: 11px; font-weight: 700; padding: 0 7px; border-radius: 4px; background: rgba(255, 255, 255, .1); color: #e5e8d4; line-height: 18px; }
.rail__nav a em.is-alert { background: var(--d28-clay); color: #fff; }
.rail a:focus-visible, .rail button:focus-visible { outline-color: var(--d28-moss); }
.rail__foot { padding: 12px 10px 14px; border-top: 1px solid rgba(255, 255, 255, .08); display: flex; flex-direction: column; gap: 10px; }
.season { display: flex; gap: 10px; padding: 12px; border-radius: 8px; background: var(--d28-olive-2); font-size: 12px; line-height: 1.5; color: #c9cfb1; }
.season i { color: var(--d28-moss); margin-top: 3px; }
.season b { display: block; color: #fff; font-size: 12.5px; }
.rail__collapse { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border: 0; border-radius: 8px; background: transparent; color: #a9b08d; font-size: 12.5px; white-space: nowrap; }
.rail__collapse i { width: 22px; text-align: center; transition: rotate .3s; }
.rail__collapse:hover { background: rgba(255, 255, 255, .06); color: #fff; }

html.sb-collapsed { --d28-rail: 76px; }
html.sb-collapsed .brand__txt, html.sb-collapsed .rail__nav a span, html.sb-collapsed .rail__nav a em, html.sb-collapsed .season p, html.sb-collapsed .rail__collapse span { display: none; }
html.sb-collapsed .rail__brand { justify-content: center; padding-inline: 0; }
html.sb-collapsed .rail__nav a, html.sb-collapsed .rail__collapse { justify-content: center; padding-inline: 0; }
html.sb-collapsed .rail__collapse i { rotate: 180deg; }
html.sb-collapsed .season { justify-content: center; }
html.sb-collapsed .rail__nav a.has-tip, html.sb-collapsed .rail__nav a { overflow: visible; }
html.sb-collapsed .rail__nav a:hover::after, html.sb-collapsed .rail__nav a:focus-visible::after { content: attr(data-tip); position: fixed; left: 80px; background: var(--ailo-fg); color: #fff; padding: 4px 9px; border-radius: 6px; font-size: 12px; pointer-events: none; z-index: 70; }
.dim { display: none; }

/* ===== Shell ===== */
.shell { margin-left: var(--d28-rail); min-height: 100vh; display: flex; flex-direction: column; transition: margin-left .3s var(--ailo-ease); }
.top { display: flex; align-items: center; gap: 12px; padding: 12px clamp(16px, 2vw, 26px); background: rgba(244, 238, 223, .92); backdrop-filter: blur(6px); border-bottom: 1px solid var(--ailo-line); position: sticky; top: 0; z-index: 40; }
.top__menu { display: none; width: 38px; height: 38px; border: 1px solid var(--ailo-line); border-radius: 8px; background: var(--d28-surface); color: var(--ailo-fg); flex: none; }
.top__title { min-width: 0; }
.crumb { display: flex; flex-wrap: wrap; gap: 5px; font-size: 11.5px; color: var(--d28-axis-ink); }
.crumb li + li::before { content: "›"; margin-right: 5px; }
.crumb a:hover { color: var(--d28-olive-d); text-decoration: underline; }
.top__h { font-family: var(--d28-head); font-weight: 700; font-size: 17px; line-height: 1.3; }
.top__search { position: relative; margin-left: auto; width: min(300px, 28vw); }
.top__search i { position: absolute; left: 12px; top: 50%; translate: 0 -50%; font-size: 12px; color: var(--d28-axis-ink); }
.top__search input { width: 100%; height: 38px; border: 1px solid var(--ailo-line); border-radius: 8px; background: var(--d28-surface); padding: 0 12px 0 32px; font-size: 13px; color: var(--ailo-fg); }
.top__search input:focus { outline: none; border-color: var(--d28-s1); box-shadow: 0 0 0 3px rgba(95, 116, 36, .18); }
.top__wx { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13px; white-space: nowrap; padding: 0 12px; height: 38px; border-radius: 8px; background: var(--d28-surface); border: 1px solid var(--ailo-line); }
.top__wx i { color: #c58a0e; }
.top__wx span { font-weight: 500; color: var(--ailo-muted); font-size: 12px; }
.top__btn { width: 38px; height: 38px; border: 1px solid var(--ailo-line); border-radius: 8px; background: var(--d28-surface); color: var(--ailo-fg); position: relative; }
.top__btn:hover, .top__menu:hover { border-color: var(--d28-s1); color: var(--d28-olive-d); }
.nt { position: relative; }
.nt__n { position: absolute; top: -7px; right: -7px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 5px; background: var(--d28-clay); color: #fff; font-size: 10.5px; font-weight: 700; line-height: 18px; }
.nt__panel { position: absolute; right: 0; top: calc(100% + 8px); width: min(340px, calc(100vw - 24px)); background: var(--d28-surface); border: 1px solid var(--ailo-line); border-radius: var(--d28-r); box-shadow: 0 18px 40px -12px rgba(35, 42, 23, .35); display: none; overflow: hidden; }
.nt__panel.is-open { display: block; }
.nt__head { display: flex; justify-content: space-between; padding: 11px 14px; background: var(--d28-olive); color: #fff; font-size: 13px; }
.nt__head span { color: var(--d28-moss); font-weight: 700; }
.nt__panel li { display: flex; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--d28-grid); }
.nt__panel li:last-child { border-bottom: 0; }
.nt__panel li > i { width: 28px; height: 28px; border-radius: 6px; display: grid; place-items: center; background: var(--d28-sand); color: var(--d28-olive-d); flex: none; font-size: 13px; }
.nt__panel li.nt--rain > i { background: #dbe6f2; color: #2c5d8d; }
.nt__panel li.nt--cold > i { background: #e6e2f1; color: #5b4787; }
.nt__panel b { font-size: 13px; }
.nt__panel p { font-size: 12px; color: var(--ailo-muted); }
.nt__panel time { font-size: 11px; color: var(--d28-axis-ink); }
.me { display: flex; align-items: center; gap: 8px; flex: none; }
.me__av { width: 36px; height: 36px; border-radius: 8px; background: var(--d28-s1); color: #fff; display: grid; place-items: center; font-weight: 700; }
.me__t { display: flex; flex-direction: column; line-height: 1.2; }
.me__t b { font-size: 13px; }
.me__t small { font-size: 11px; color: var(--ailo-muted); }

/* ===== Filter bar ===== */
main { padding: 0 clamp(16px, 2vw, 26px); }
.bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 16px 0 14px; }
.bar__title { font-family: var(--d28-head); font-weight: 700; font-size: clamp(20px, 2vw, 25px); letter-spacing: -.01em; }
.bar__tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bar__lab { font-size: 12px; font-weight: 600; color: var(--ailo-muted); }
.tabs { display: inline-flex; background: #ddd4bf; border-radius: 8px; padding: 3px; gap: 2px; }
.tabs button { border: 0; background: transparent; padding: 6px 14px; border-radius: 6px; font-weight: 700; font-size: 13px; color: var(--ailo-muted); font-variant-numeric: tabular-nums; }
.tabs button:hover { color: var(--ailo-fg); }
.tabs button[aria-pressed="true"] { background: var(--d28-surface); color: var(--d28-olive-d); box-shadow: 0 1px 3px rgba(35, 42, 23, .18); }
.btn-olive { border: 0; background: var(--d28-olive); color: #fff; padding: 8px 14px; border-radius: 8px; font-weight: 600; font-size: 13px; display: inline-flex; gap: 7px; align-items: center; }
.btn-olive:hover { background: var(--d28-olive-d); }

/* ===== Board ===== */
.board { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; padding-bottom: 24px; }
.wx { grid-column: span 8; }
.kpis { grid-column: span 4; }
.c-bill { grid-column: span 5; }
.c-mt { grid-column: span 4; }
.c-stock { grid-column: span 3; }
.c-tbl { grid-column: span 8; }
.c-log { grid-column: span 4; }
.kpis, .c-bill, .c-mt { transition: opacity .2s; }
.is-loading .kpis, .is-loading .c-bill, .is-loading .c-mt { opacity: .45; }

/* Weather */
.wx { background: var(--d28-olive); color: #e9ebdc; border-radius: var(--d28-r); padding: 18px 18px 14px; display: flex; flex-direction: column; gap: 14px; min-width: 0; position: relative; overflow: hidden; }
.wx::after { content: ""; position: absolute; right: -40px; top: -60px; width: 220px; height: 220px; border-radius: 50%; border: 36px solid rgba(201, 212, 143, .06); pointer-events: none; }
.wx__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.wx__title { font-family: var(--d28-head); font-weight: 700; font-size: 17px; color: #fff; }
.wx__sub { font-size: 12px; color: #a9b08d; }
.wx__score { text-align: right; line-height: 1; }
.wx__score p { display: flex; align-items: baseline; gap: 4px; justify-content: flex-end; }
.wx__score strong { font-size: 40px; font-weight: 700; color: var(--d28-moss); letter-spacing: -.03em; }
.wx__score span { font-size: 14px; color: #c9cfb1; }
.wx__score small { font-size: 11.5px; color: #a9b08d; }
.wx__days { display: grid; grid-template-columns: repeat(7, minmax(92px, 1fr)); gap: 6px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 2px; }
.wd { background: var(--d28-olive-2); border-radius: 8px; padding: 10px 8px 10px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; scroll-snap-align: start; border-top: 3px solid transparent; }
.wd.is-today { background: #46562a; }
.wd--ok { border-top-color: #a9c45a; }
.wd--warn { border-top-color: #e2b43c; }
.wd--no { border-top-color: #e07a55; }
.wd__date { display: flex; flex-direction: column; line-height: 1.2; }
.wd__date b { font-size: 13px; color: #fff; }
.wd__date span, .wd__date em { font-size: 11px; color: #a9b08d; font-style: normal; font-variant-numeric: tabular-nums; }
.wd__date em { color: var(--d28-moss); font-weight: 700; }
.wd__ic { font-size: 24px; margin: 6px 0 2px; color: #f0e2a8; }
.wd--no .wd__ic { color: #a9c7e6; }
.fa-snowflake.wd__ic { color: #cfd9f0; }
.fa-wind.wd__ic { color: #d8dcc3; }
.wd__t { display: flex; gap: 6px; align-items: baseline; font-variant-numeric: tabular-nums; }
.wd__t b { font-size: 16px; color: #fff; }
.wd__t span { font-size: 12.5px; color: #a9b08d; }
.wd__rain { display: flex; align-items: center; gap: 6px; font-size: 11px; color: #c9cfb1; font-variant-numeric: tabular-nums; }
.wd__rbar { width: 6px; height: 16px; background: rgba(255, 255, 255, .1); border-radius: 3px; display: flex; align-items: flex-end; overflow: hidden; }
.wd__rbar i { display: block; width: 100%; background: #8fb6dd; border-radius: 3px; }
.wd__wind { font-size: 11px; color: #c9cfb1; font-variant-numeric: tabular-nums; }
.wd__v { margin-top: 4px; font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 4px; display: inline-flex; gap: 5px; align-items: center; white-space: nowrap; }
.wd--ok .wd__v { background: #dbe8b8; color: #2c3a0c; }
.wd--warn .wd__v { background: #f3dc9f; color: #5e4100; }
.wd--no .wd__v { background: #f2c6b3; color: #74250e; }
.wd__why { font-size: 10.5px; color: #b6bc9c; line-height: 1.35; }
.wx__notes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wx__notes p { display: flex; gap: 10px; font-size: 12px; color: #d8dcc3; background: rgba(0, 0, 0, .14); border-radius: 8px; padding: 9px 12px; line-height: 1.5; }
.wx__notes i { color: var(--d28-moss); margin-top: 3px; }
.wx__notes b { color: #fff; margin-right: 4px; }

/* KPI tiles */
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-content: stretch; }
.kpi { background: var(--d28-surface); border: 1px solid var(--ailo-line); border-radius: var(--d28-r); padding: 12px 14px 10px; display: flex; flex-direction: column; min-width: 0; }
.kpi h2 { font-size: 12px; font-weight: 600; color: var(--ailo-muted); }
.kpi__v { display: flex; align-items: baseline; gap: 4px; margin-top: 2px; }
.kpi__v strong { font-size: clamp(22px, 1.8vw, 27px); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.kpi__v span { font-size: 12px; color: var(--ailo-muted); }
.kpi__d { font-size: 11.5px; color: var(--ailo-muted); margin-top: 1px; }
.kpi__d b { font-weight: 700; }
.kpi__d.is-good b { color: var(--d28-good); }
.kpi__d.is-bad b { color: var(--d28-bad); }
.kpi__d.is-neutral b { color: var(--ailo-fg); }
.kpi__sp { width: 100%; height: 26px; margin-top: auto; padding-top: 6px; box-sizing: content-box; }
.sp-bar { fill: #d6cdb4; }
.sp-now { fill: var(--d28-s1); }

/* Card */
.card { background: var(--d28-surface); border: 1px solid var(--ailo-line); border-radius: var(--d28-r); min-width: 0; display: flex; flex-direction: column; }
.card__h { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 14px 16px 6px; }
.card__h--stack { flex-direction: column; gap: 6px; }
.card__h--wrap { flex-wrap: wrap; }
.card__t { font-family: var(--d28-head); font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.card__t::before { content: ""; width: 8px; height: 8px; border-radius: 2px 8px; background: var(--d28-s1); flex: none; }
.card__s { font-size: 11.5px; color: var(--ailo-muted); margin-top: 1px; }
.card__more { font-size: 12px; font-weight: 600; color: var(--d28-olive-d); white-space: nowrap; }
.card__more:hover { text-decoration: underline; }
.lg { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 11.5px; color: var(--ailo-muted); }
.lg li { display: inline-flex; align-items: center; gap: 5px; }
.k-line { width: 14px; height: 2px; border-radius: 2px; display: inline-block; }
.k-box { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }
.cv { position: relative; height: 230px; padding: 4px 12px 12px 6px; }
.cv--tall { height: 250px; }
.stock-warn { margin: 0 12px 12px; padding: 8px 10px; border-radius: 6px; background: #f6e3d6; color: #6b2d12; font-size: 11.5px; display: flex; gap: 8px; line-height: 1.45; }
.stock-warn i { margin-top: 2px; }

/* Table */
.tsearch { position: relative; width: min(230px, 100%); }
.tsearch i { position: absolute; left: 10px; top: 50%; translate: 0 -50%; font-size: 11.5px; color: var(--d28-axis-ink); }
.tsearch input { width: 100%; height: 32px; border: 1px solid var(--ailo-line); border-radius: 6px; background: #fff; padding: 0 10px 0 28px; font-size: 12.5px; }
.tsearch input:focus { outline: none; border-color: var(--d28-s1); box-shadow: 0 0 0 3px rgba(95, 116, 36, .16); }
.tscroll { overflow-x: auto; }
.tscroll:focus-visible { outline-offset: -3px; }
.dt { width: 100%; min-width: 700px; border-collapse: collapse; font-size: 13px; }
.dt th { padding: 0; text-align: left; border-bottom: 2px solid var(--d28-olive); background: var(--d28-sand); white-space: nowrap; }
.dt th button { border: 0; background: none; padding: 8px 10px; font-size: 11.5px; font-weight: 700; color: var(--ailo-fg); letter-spacing: .02em; display: inline-flex; align-items: center; gap: 5px; width: 100%; }
.dt th button:hover { color: var(--d28-olive-d); }
.dt th button i::before { font-family: "Font Awesome 6 Free"; font-weight: 900; font-style: normal; content: "\f0dc"; font-size: 10px; opacity: .35; }
.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: 9px 10px; border-bottom: 1px solid var(--d28-grid); white-space: nowrap; }
.dt td.wrap { white-space: normal; min-width: 128px; font-size: 12.5px; line-height: 1.4; }
.dt td.sub { font-size: 12.5px; color: var(--ailo-muted); }
.dt td.strong { font-weight: 700; }
.dt tbody tr:hover td { background: #f5f0e2; }
.dt .is-empty td { text-align: center; color: var(--ailo-muted); padding: 26px; }
.prog { display: inline-flex; align-items: center; gap: 8px; }
.prog__bar { width: 52px; height: 8px; background: #e6dfcc; border-radius: 2px; overflow: hidden; }
.prog__bar i { display: block; height: 100%; background: var(--d28-s1); }
.prog b { font-size: 12px; font-variant-numeric: tabular-nums; min-width: 32px; }
.st { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 4px; border: 1px solid; }
.st i { font-size: 10px; }
.st--go { color: var(--d28-good); border-color: #b9cc8a; background: #eef3dc; }
.st--start { color: #2c5d8d; border-color: #b4cbe2; background: #e8f0f8; }
.st--late { color: var(--d28-bad); border-color: #e3b19d; background: #f9e7de; }
.st--fix { color: var(--d28-warn); border-color: #e2c98a; background: #faf0d4; }
.st--check { color: #5d3f7c; border-color: #cdb9e0; background: #f1eaf7; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 9px 14px 12px; font-size: 12px; color: var(--ailo-muted); margin-top: auto; }
.pager ul { display: flex; gap: 4px; }
.pager button { min-width: 28px; height: 28px; border: 1px solid var(--ailo-line); background: #fff; border-radius: 6px; font-size: 12px; font-weight: 600; color: var(--ailo-fg); }
.pager button:hover:not(:disabled) { border-color: var(--d28-s1); }
.pager button[aria-current] { background: var(--d28-olive); border-color: var(--d28-olive); color: #fff; }
.pager button:disabled { opacity: .35; cursor: default; }

/* Field log */
.flog { padding: 4px 16px 12px; }
.flog li { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--ailo-line); align-items: flex-start; }
.flog li:last-child { border-bottom: 0; }
.flog .ailo-img { width: 48px; height: 48px; border-radius: 6px; flex: none; }
.flog__ic { width: 48px; height: 48px; border-radius: 6px; background: var(--d28-sand); color: var(--d28-olive-d); display: grid; place-items: center; flex: none; font-size: 17px; }
.flog p { font-size: 12.5px; line-height: 1.5; }
.flog b { color: var(--d28-olive-d); }
.flog time { font-size: 11px; color: var(--d28-axis-ink); }

/* Footer */
.foot { margin-top: auto; padding: 14px clamp(16px, 2vw, 26px) 18px; border-top: 1px solid var(--ailo-line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 18px; font-size: 11.5px; color: var(--ailo-muted); }

/* ===== Responsive ===== */
@media (max-width: 1399.98px) {
  .wx { grid-column: span 12; }
  .kpis { grid-column: span 12; grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .c-bill { grid-column: span 7; }
  .c-mt { grid-column: span 5; }
  .c-stock { grid-column: span 5; }
  .c-tbl { grid-column: span 12; order: 1; }
  .c-log { grid-column: span 7; }
}
@media (max-width: 1199.98px) {
  .top__wx span { display: none; }
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 991.98px) {
  .rail { width: min(270px, 84vw); translate: -100% 0; visibility: hidden; transition: translate .3s var(--ailo-ease), visibility .3s; z-index: 200; }
  html.sb-open .rail { translate: 0 0; visibility: visible; box-shadow: 16px 0 40px rgba(0, 0, 0, .3); transition: translate .3s var(--ailo-ease), visibility 0s; } /* 열 때 visibility 즉시 → 곧바로 포커스 가능 */
  html.sb-collapsed { --d28-rail: 236px; }
  .rail__x { display: grid; place-items: center; }
  .rail__collapse { display: none; }
  .dim { display: block; position: fixed; inset: 0; background: rgba(35, 42, 23, .5); z-index: 190; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
  html.sb-open .dim { opacity: 1; visibility: visible; }
  html.sb-open body { overflow: hidden; }
  .shell { margin-left: 0; }
  .top__menu { display: inline-grid; place-items: center; }
  .me__t { display: none; }
  .c-bill, .c-mt, .c-stock, .c-log { grid-column: span 6; }
  .c-bill { grid-column: span 12; }
  .c-tbl { order: 0; }
  .c-log { grid-column: span 12; }
}
@media (max-width: 767.98px) {
  .top__search { display: none; }
  .top__title { margin-right: auto; }
  .c-mt, .c-stock, .c-log { grid-column: span 12; }
  .wx__notes { grid-template-columns: 1fr; }
}
@media (max-width: 575.98px) {
  .top { gap: 8px; padding-inline: 12px; }
  .top__wx { display: none; }
  main { padding-inline: 12px; }
  .board { gap: 10px; }
  .bar__tools { width: 100%; }
  .tabs { flex: 1; }
  .tabs button { flex: 1; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .wx { padding: 14px 12px 12px; }
  .wx__score strong { font-size: 32px; }
  .wx__days { grid-template-columns: repeat(7, 96px); margin-inline: -12px; padding-inline: 12px; scroll-padding-inline: 12px; }
  .card__h { padding: 12px 12px 4px; }
  .cv { height: 220px; padding-inline: 2px 8px; }
  .flog { padding-inline: 12px; }
}
