/* ==========================================================================
   AILO Dashboard D20 — 스톡플로우 (유통 재고·채널 매출 운영)
   레이아웃: 딥 에메랄드 아이콘 레일(펼침 가능) + 스프레드시트형 고밀도 테이블 중심
   타이포: IBM Plex Sans KR + IBM Plex Mono(코드·수치) / 컬러: 화이트 + 에메랄드, 헤어라인 그리드
   ========================================================================== */

:root {
  --ailo-font: "IBM Plex Sans KR", "Pretendard Variable", Pretendard, -apple-system, system-ui, sans-serif;
  --ailo-bg: #f4f6f5;
  --ailo-fg: #0f1f1a;
  --ailo-muted: #5b6a65;
  --ailo-line: #e1e7e4;
  --ailo-accent: #087f58;

  --d20-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --d20-surface: #ffffff;
  --d20-head: #f8faf9;
  --d20-rail: #06402f;
  --d20-rail-2: #0b513c;
  --d20-mint: #e5f4ee;
  --d20-rail-w: 68px;
  --d20-rail-open: 228px;
  --d20-top-h: 58px;

  /* 차트 계열(라이트 표면 검증 통과) */
  --d20-s1: #0f9a6c;
  --d20-s2: #2a78d6;
  --d20-prev: #c5cfcb;
  --d20-grid: #edf1ef;

  /* 상태(예약, 아이콘+텍스트 동반) */
  --d20-ok: #1f7a4d;
  --d20-low: #b45309;
  --d20-out: #c62828;
  --d20-over: #4f46e5;
}

html { scroll-behavior: auto; }
body { background: var(--ailo-bg); font-size: 13px; letter-spacing: -.005em; }
.mono { font-family: var(--d20-mono); letter-spacing: 0; }

.d20 { display: flex; min-height: 100vh; }
.d20-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }

/* ===== 아이콘 레일 ===== */
.rail {
  position: sticky; top: 0; height: 100vh; flex: 0 0 var(--d20-rail-w); width: var(--d20-rail-w);
  background: var(--d20-rail); color: #cfe6dc; display: flex; flex-direction: column; z-index: 130;
  transition: width .28s var(--ailo-ease), flex-basis .28s var(--ailo-ease);
}
.rail__brand { display: flex; align-items: center; gap: 10px; height: var(--d20-top-h); padding: 0 16px; border-bottom: 1px solid rgba(255,255,255,.08); white-space: nowrap; overflow: hidden; }
.rail__logo { width: 36px; height: 36px; flex: none; border-radius: 9px; background: #19c48a; color: #04281d; display: grid; place-items: center; font-weight: 800; font-size: 15px; }
.rail__name { font-weight: 700; font-size: 16px; color: #fff; letter-spacing: -.01em; }
.rail__name small { display: block; font-size: 10.5px; font-weight: 500; color: #8fc2ad; letter-spacing: .02em; }
.rail__close { margin-left: auto; display: none; width: 36px; height: 36px; border-radius: 8px; border: 1px solid rgba(255,255,255,.18); background: transparent; color: #fff; }
.rail__nav { flex: 1; padding: 12px 12px; overflow-y: auto; overflow-x: hidden; }
.rail__link {
  display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 12px; border-radius: 9px; margin-bottom: 3px;
  color: #b9d8cb; white-space: nowrap; position: relative;
}
.rail__link i { width: 20px; flex: none; text-align: center; font-size: 15px; }
.rail__link:hover, .rail__link:focus-visible { background: var(--d20-rail-2); color: #fff; }
.rail__link[aria-current="page"] { background: #f4f6f5; color: var(--d20-rail); font-weight: 700; }
.rail__link .rail__n { margin-left: auto; font-family: var(--d20-mono); font-size: 10.5px; padding: 1px 6px; border-radius: 6px; background: #ffb547; color: #3a2400; font-weight: 600; }
.rail__label, .rail__n, .rail__name { opacity: 0; transition: opacity .18s; pointer-events: none; }
.rail__dot { position: absolute; top: 8px; left: 30px; width: 8px; height: 8px; border-radius: 50%; background: #ffb547; box-shadow: 0 0 0 2px var(--d20-rail); }
.rail__foot { padding: 12px; border-top: 1px solid rgba(255,255,255,.08); }
.rail__toggle { width: 100%; height: 40px; display: flex; align-items: center; gap: 12px; padding: 0 12px; border-radius: 9px; border: 0; background: transparent; color: #b9d8cb; white-space: nowrap; overflow: hidden; }
.rail__toggle:hover { background: var(--d20-rail-2); color: #fff; }
.rail__toggle i { width: 20px; flex: none; text-align: center; transition: rotate .28s; }

@media (min-width: 992px) {
  html.rail-open .rail { flex-basis: var(--d20-rail-open); width: var(--d20-rail-open); }
  html.rail-open .rail__label, html.rail-open .rail__n, html.rail-open .rail__name { opacity: 1; pointer-events: auto; }
  html.rail-open .rail__dot { display: none; }
  html.rail-open .rail__toggle i { rotate: 180deg; }
  html:not(.rail-open) .rail__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
.rail-overlay { display: none; }

/* ===== 상단바 ===== */
.top {
  position: sticky; top: 0; z-index: 100; height: var(--d20-top-h); display: flex; align-items: center; gap: 12px;
  padding: 0 clamp(14px, 2vw, 24px); background: var(--d20-surface); border-bottom: 1px solid var(--ailo-line);
}
.top .ailo-burger { margin-left: -8px; }
.crumb { display: flex; gap: 6px; font-size: 11.5px; color: var(--ailo-muted); white-space: nowrap; }
.crumb li + li::before { content: "›"; margin-right: 6px; }
.top h1 { font-size: 16px; font-weight: 700; white-space: nowrap; line-height: 1.25; }
.top__search { position: relative; margin-left: auto; width: min(340px, 30vw); }
.top__search i { position: absolute; left: 11px; top: 50%; translate: 0 -50%; color: var(--ailo-muted); font-size: 12px; }
.top__search input { width: 100%; height: 36px; padding: 0 44px 0 32px; border: 1px solid var(--ailo-line); border-radius: 8px; background: var(--d20-head); font-size: 13px; }
.top__search input:focus { outline: 2px solid var(--ailo-accent); outline-offset: -1px; background: #fff; }
.top__search kbd { position: absolute; right: 8px; top: 50%; translate: 0 -50%; font-family: var(--d20-mono); font-size: 10.5px; color: var(--ailo-muted); background: #fff; border: 1px solid var(--ailo-line); border-radius: 4px; padding: 1px 5px; }
.wh-select { height: 36px; border: 1px solid var(--ailo-line); border-radius: 8px; padding: 0 30px 0 10px; font-size: 13px; background-color: #fff; color: var(--ailo-fg); }
.icon-btn { position: relative; width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--ailo-line); background: #fff; display: grid; place-items: center; flex: none; color: var(--ailo-fg); }
.icon-btn:hover { background: var(--d20-head); }
.icon-btn .badge-n { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--d20-out); color: #fff; font: 600 10.5px/18px var(--d20-mono); text-align: center; padding: 0 4px; }
.noti { position: relative; }
.noti__panel { position: absolute; right: 0; top: calc(100% + 8px); width: 330px; max-width: calc(100vw - 28px); background: #fff; border: 1px solid var(--ailo-line); border-radius: 10px; box-shadow: 0 14px 36px rgba(15,31,26,.14); z-index: 140; overflow: hidden; }
.noti__panel[hidden] { display: none; }
.noti__head { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; background: var(--d20-head); border-bottom: 1px solid var(--ailo-line); }
.noti__head button { border: 0; background: none; color: var(--ailo-accent); font-size: 12px; font-weight: 600; }
.noti__list li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--ailo-line); line-height: 1.45; }
.noti__list li:last-child { border: 0; }
.noti__list i { margin-top: 3px; }
.noti__list time { display: block; font-size: 11px; color: var(--ailo-muted); }
.me { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.avatar { width: 34px; height: 34px; border-radius: 9px; background: var(--d20-mint); color: var(--ailo-accent); display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; }
.me__t { line-height: 1.2; }
.me__t strong { display: block; font-size: 12.5px; }
.me__t span { font-size: 11px; color: var(--ailo-muted); }

/* ===== 본문 ===== */
.main { flex: 1; padding: clamp(12px, 1.6vw, 20px) clamp(14px, 2vw, 24px) 24px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 12px; }
.seg { display: inline-flex; border: 1px solid var(--ailo-line); border-radius: 8px; background: #fff; overflow: hidden; }
.seg button { border: 0; background: transparent; padding: 0 14px; height: 34px; font-size: 12.5px; font-weight: 600; color: var(--ailo-muted); border-right: 1px solid var(--ailo-line); }
.seg button:last-child { border-right: 0; }
.seg button:hover { color: var(--ailo-fg); background: var(--d20-head); }
.seg button[aria-pressed="true"] { background: var(--ailo-accent); color: #fff; }
.sync { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ailo-muted); }
.sync i { color: var(--d20-s1); }
.toolbar__r { margin-left: auto; display: flex; gap: 8px; }
.btn-l, .btn-p { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px; border-radius: 8px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.btn-l { border: 1px solid var(--ailo-line); background: #fff; color: var(--ailo-fg); }
.btn-l:hover { background: var(--d20-head); }
.btn-p { border: 1px solid var(--ailo-accent); background: var(--ailo-accent); color: #fff; }
.btn-p:hover { background: #066a49; }
.btn-p:disabled { opacity: .45; cursor: not-allowed; }

.card { background: var(--d20-surface); border: 1px solid var(--ailo-line); border-radius: 10px; min-width: 0; }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--ailo-line); min-height: 50px; }
.card__head h2, .card__head h3 { font-size: 14px; font-weight: 700; }
.card__head p { font-size: 11.5px; color: var(--ailo-muted); }
.card__body { padding: 14px 16px; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px; }
.c-5 { grid-column: span 5; } .c-7 { grid-column: span 7; } .c-4 { grid-column: span 4; } .c-8 { grid-column: span 8; } .c-12 { grid-column: span 12; }

/* ===== KPI 스트립 ===== */
.kstrip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin-bottom: 12px; overflow: hidden; }
.k { padding: 14px 16px 12px; border-right: 1px solid var(--ailo-line); min-width: 0; position: relative; }
.k:last-child { border-right: 0; }
.k__label { font-size: 11.5px; color: var(--ailo-muted); font-weight: 500; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.k__val { font-size: clamp(20px, 1.7vw, 24px); font-weight: 700; letter-spacing: -.02em; margin: 2px 0 2px; white-space: nowrap; }
.k__val small { font-size: 12.5px; font-weight: 500; color: var(--ailo-muted); margin-left: 2px; }
.k__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 6px; }
.delta { font-size: 11.5px; font-weight: 600; white-space: nowrap; font-family: var(--d20-mono); letter-spacing: -.02em; }
.delta.up-good, .delta.down-good { color: var(--d20-ok); }
.delta.up-bad, .delta.down-bad { color: var(--d20-out); }
.delta em { font-style: normal; font-family: var(--ailo-font); color: var(--ailo-muted); font-weight: 400; margin-left: 3px; letter-spacing: 0; }
.bars { display: flex; align-items: flex-end; gap: 2px; height: 24px; flex: none; }
.bars i { display: block; width: 5px; background: #cfe3db; border-radius: 2px 2px 0 0; }
.bars i:last-child { background: var(--d20-s1); }

/* ===== 차트 ===== */
.chart-box { position: relative; height: 250px; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 11.5px; color: var(--ailo-muted); }
.legend span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

.chan { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.mini { width: 100%; border-collapse: collapse; font-size: 12px; }
.mini th { font-weight: 500; color: var(--ailo-muted); font-size: 11px; text-align: right; padding: 0 6px 6px; border-bottom: 1px solid var(--ailo-line); white-space: nowrap; }
.mini th:first-child, .mini td:first-child { text-align: left; }
.mini td { padding: 7px 6px; border-bottom: 1px solid var(--d20-grid); text-align: right; font-family: var(--d20-mono); font-size: 12px; white-space: nowrap; }
.mini td:first-child { font-family: var(--ailo-font); font-weight: 500; }
.mini .share { display: inline-block; width: 44px; height: 6px; background: var(--d20-grid); border-radius: 3px; vertical-align: middle; margin-right: 6px; position: relative; overflow: hidden; }
.mini .share b { position: absolute; inset: 0 auto 0 0; background: var(--d20-s1); border-radius: 3px; }

.abc { padding: 0 16px 14px; }
.abc__bar { display: flex; gap: 2px; height: 28px; }
.abc__bar div { border-radius: 4px; display: flex; align-items: center; padding-left: 8px; font: 600 11.5px var(--d20-mono); color: #fff; white-space: nowrap; overflow: hidden; }
.abc__legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; font-size: 11.5px; color: var(--ailo-muted); }
.abc__legend span { display: inline-flex; align-items: center; gap: 5px; }
.abc__legend i { width: 10px; height: 10px; border-radius: 3px; }

/* ===== 메인 SKU 테이블 ===== */
.tbl-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 16px; border-bottom: 1px solid var(--ailo-line); background: var(--d20-head); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button { height: 30px; padding: 0 11px; border-radius: 15px; border: 1px solid var(--ailo-line); background: #fff; font-size: 12px; font-weight: 600; color: var(--ailo-muted); white-space: nowrap; }
.chips button b { font-family: var(--d20-mono); font-weight: 500; margin-left: 4px; }
.chips button[aria-pressed="true"] { border-color: var(--ailo-accent); background: var(--d20-mint); color: var(--ailo-accent); }
.tbl-search { position: relative; margin-left: auto; }
.tbl-search i { position: absolute; left: 10px; top: 50%; translate: 0 -50%; font-size: 11.5px; color: var(--ailo-muted); }
.tbl-search input { height: 32px; width: 230px; max-width: 100%; border: 1px solid var(--ailo-line); border-radius: 8px; padding: 0 10px 0 30px; font-size: 12.5px; background: #fff; }
.tbl-search input:focus { outline: 2px solid var(--ailo-accent); outline-offset: -1px; }
.bulk { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ailo-muted); }

.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; min-width: 1080px; border-collapse: separate; border-spacing: 0; font-size: 12.5px; }
.tbl th { position: sticky; top: 0; background: #fff; font-weight: 600; font-size: 11.5px; color: var(--ailo-muted); text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--ailo-line); white-space: nowrap; }
.tbl th button { border: 0; background: none; padding: 0; color: inherit; font-weight: inherit; display: inline-flex; gap: 5px; align-items: center; }
.tbl th button i { font-size: 9.5px; opacity: .45; }
.tbl th[aria-sort] button { color: var(--ailo-accent); }
.tbl th[aria-sort] button i { opacity: 1; }
.tbl th.num, .tbl td.num { text-align: right; }
.tbl th.num button { flex-direction: row-reverse; }
.tbl td { padding: 9px 12px; border-bottom: 1px solid var(--d20-grid); white-space: nowrap; background: #fff; }
.tbl td.num { font-family: var(--d20-mono); font-size: 12.5px; }
.tbl tbody tr:hover td { background: #f7fbf9; }
.tbl tbody tr.is-sel td { background: #eef8f3; }
.tbl .stick { position: sticky; left: 0; z-index: 1; }
.tbl .stick2 { position: sticky; left: 40px; z-index: 1; box-shadow: 1px 0 0 var(--ailo-line); }
.tbl th.stick, .tbl th.stick2 { z-index: 2; }
.tbl .ck { width: 40px; padding-right: 0; }
.tbl input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--ailo-accent); vertical-align: middle; }
.prod { display: flex; align-items: center; gap: 10px; }
.prod img { width: 34px; height: 34px; border-radius: 6px; flex: none; object-fit: cover; background: var(--d20-grid); }
.prod strong { display: block; font-weight: 600; font-size: 12.5px; }
.prod span { font-family: var(--d20-mono); font-size: 11px; color: var(--ailo-muted); }
.lvl { display: inline-flex; align-items: center; gap: 8px; }
.lvl__bar { width: 64px; height: 6px; border-radius: 3px; background: var(--d20-grid); position: relative; overflow: hidden; }
.lvl__bar b { position: absolute; inset: 0 auto 0 0; border-radius: 3px; background: var(--d20-s1); }
.lvl__bar b.is-low { background: var(--d20-low); }
.lvl__bar b.is-over { background: var(--d20-over); }
.st { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 5px; font-size: 11.5px; font-weight: 600; border: 1px solid transparent; }
.st--ok { color: var(--d20-ok); background: #e9f6ef; }
.st--low { color: var(--d20-low); background: #fdf3e6; }
.st--out { color: var(--d20-out); background: #fdecec; }
.st--over { color: var(--d20-over); background: #eef0fe; }
.tbl-empty td { text-align: center; color: var(--ailo-muted); padding: 28px; }
.pager { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 16px; font-size: 12px; color: var(--ailo-muted); }
.pager__btns { display: flex; gap: 4px; }
.pager__btns button { min-width: 30px; height: 30px; border-radius: 7px; border: 1px solid var(--ailo-line); background: #fff; font: 500 12px var(--d20-mono); color: var(--ailo-fg); }
.pager__btns button[aria-current="page"] { background: var(--ailo-fg); color: #fff; border-color: var(--ailo-fg); }
.pager__btns button:disabled { opacity: .4; cursor: default; }

/* ===== 재고 부족 경고 표 ===== */
.alert-tbl { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 12.5px; }
.alert-tbl th { font-size: 11px; font-weight: 600; color: var(--ailo-muted); text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--ailo-line); background: var(--d20-head); white-space: nowrap; }
.alert-tbl td { padding: 9px 12px; border-bottom: 1px solid var(--d20-grid); white-space: nowrap; }
.alert-tbl .num { text-align: right; font-family: var(--d20-mono); }
.dday { display: inline-flex; align-items: center; gap: 5px; font: 600 12px var(--d20-mono); }
.dday.is-out { color: var(--d20-out); }
.dday.is-soon { color: var(--d20-low); }
.po-btn { height: 28px; padding: 0 10px; border-radius: 6px; border: 1px solid var(--ailo-accent); background: #fff; color: var(--ailo-accent); font-size: 12px; font-weight: 600; white-space: nowrap; }
.po-btn:hover { background: var(--d20-mint); }
.po-btn[disabled] { border-color: var(--ailo-line); color: var(--ailo-muted); background: var(--d20-head); cursor: default; }

/* ===== 활동 로그 ===== */
.feed li { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: start; padding: 10px 16px; border-bottom: 1px solid var(--d20-grid); }
.feed li:last-child { border-bottom: 0; }
.feed__ico { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-size: 12px; background: var(--d20-head); color: var(--ailo-muted); }
.feed__ico.k-in { background: var(--d20-mint); color: var(--d20-ok); }
.feed__ico.k-po { background: #e8f0fb; color: #1d5fae; }
.feed__ico.k-adj { background: #fdf3e6; color: var(--d20-low); }
.feed__ico.k-out { background: #fdecec; color: var(--d20-out); }
.feed p { line-height: 1.45; }
.feed p strong { font-weight: 600; }
.feed p span { display: block; color: var(--ailo-muted); font-size: 11.5px; }
.feed time { font-family: var(--d20-mono); font-size: 11px; color: var(--ailo-muted); padding-top: 2px; }

.foot { padding: 14px clamp(14px, 2vw, 24px); border-top: 1px solid var(--ailo-line); background: #fff; color: var(--ailo-muted); font-size: 11.5px; display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: space-between; }
.foot a:hover { color: var(--ailo-accent); }

/* ===== 반응형 ===== */
@media (max-width: 1399.98px) {
  .kstrip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .k:nth-child(3) { border-right: 0; }
  .k:nth-child(-n+3) { border-bottom: 1px solid var(--ailo-line); }
}
@media (max-width: 1199.98px) {
  .c-io, .c-chan, .c-turn, .c-alert, .c-feed { grid-column: span 12; }
  .wh-select { display: none; }
}
@media (max-width: 991.98px) {
  .rail {
    position: fixed; top: 0; bottom: 0; left: 0; height: 100%; width: min(84vw, 290px);
    transform: translateX(-100%); visibility: hidden; transition: transform .28s var(--ailo-ease), visibility .28s;
  }
  html.nav-open .rail { transform: none; visibility: visible; transition: transform .28s var(--ailo-ease), visibility 0s; } /* 열 때 visibility 즉시 → 곧바로 포커스 가능 */
  .rail__label, .rail__n, .rail__name { opacity: 1; pointer-events: auto; }
  .rail__dot, .rail__foot { display: none; }
  .rail__close { display: grid; place-items: center; }
  .rail-overlay { display: block; position: fixed; inset: 0; z-index: 125; background: rgba(6,32,24,.5); opacity: 0; visibility: hidden; transition: opacity .28s, visibility .28s; }
  html.nav-open .rail-overlay { opacity: 1; visibility: visible; }
  .me__t { display: none; }
  .top__search { width: auto; flex: 0 1 240px; }
  .top__search kbd { display: none; }
}
@media (max-width: 767.98px) {
  .chan { grid-template-columns: 1fr; }
  .top__search { display: none; }
  .tbl-search { margin-left: 0; width: 100%; }
  .tbl-search input { width: 100%; }
  .toolbar__r { margin-left: 0; width: 100%; }
  .toolbar__r > * { flex: 1; justify-content: center; }
}
@media (max-width: 575.98px) {
  .kstrip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .k { border-bottom: 1px solid var(--ailo-line); padding: 12px; }
  .k:nth-child(3) { border-right: 1px solid var(--ailo-line); }
  .k:nth-child(2n) { border-right: 0; }
  .k:nth-last-child(-n+2) { border-bottom: 0; }
  .k__row { flex-direction: column; align-items: flex-start; gap: 6px; }
  .delta em { display: block; margin: 1px 0 0; }
  .seg { width: 100%; }
  .seg button { flex: 1; padding: 0 4px; }
  .crumb { display: none; }
  .top h1 { font-size: 15px; }
  .card__head { flex-wrap: wrap; }
  .chart-box { height: 230px; }
  .grid { gap: 10px; }
}

/* 활동 로그 2열 */
@media (min-width: 992px) {
  .feed-grid { display: grid; grid-template-columns: 1fr 1fr; }
  .feed-grid li:nth-child(odd) { border-right: 1px solid var(--d20-grid); }
  .feed-grid li:nth-last-child(-n+2) { border-bottom: 0; }
}
@media (max-width: 575.98px) {
  .tbl .prod img { display: none; }
  .tbl .stick2 strong { white-space: normal; min-width: 120px; max-width: 150px; }
}
