/* Glow — quiet design v2. References: Fireflies LNB + Cake content. */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css');

:root {
  /* Surfaces */
  --bg: #FBFBFC;
  --surface: #FFFFFF;
  --hover: #F6F6F8;
  --subtle: #F8F8FB;        /* Cake-style table header bg */

  /* Lines */
  --line: #EFEFF2;
  --line-strong: #E2E2E7;

  /* Ink — 4 levels */
  --ink-1: #0B0B12;
  --ink-2: #4A4A55;
  --ink-3: #8A8A95;
  --ink-4: #BFBFC6;

  /* Single accent (Glow purple, preserved) */
  --accent: #9C65FF;
  --accent-text: #6B3FCC;
  --accent-tint: #F6F1FF;
  --accent-tint-strong: #EBE0FF;
  --accent-border: #DCC9FF;

  /* Status — true state only */
  --pos: #16A34A;
  --pos-tint: #ECFDF3;
  --neg: #DC2626;
  --neg-tint: #FEF2F2;

  /* Radius — 2 values */
  --r-card: 12px;
  --r-control: 8px;

  --shadow: 0 1px 2px rgba(11, 11, 18, 0.04);

  /* Type — 5 sizes now (added page-title H1) */
  --t-h0: 28px;       /* page title */
  --t-h1: 18px;       /* card title */
  --t-h2: 15px;       /* sub title */
  --t-body: 14px;
  --t-meta: 13px;
  --t-small: 12px;

  --sidebar-w: 232px;
  --topbar-h: 56px;

  --font: 'Pretendard Variable', 'Pretendard', -apple-system, BlinkMacSystemFont,
          'Apple SD Gothic Neo', 'Noto Sans KR', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-1);
  font-family: var(--font);
  font-size: var(--t-body);
  line-height: 1.5;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'ss01', 'tnum';
  /* `clip` blocks horizontal overflow WITHOUT creating a scroll container,
     which would otherwise break position: sticky on the sidebar. */
  overflow-x: clip;
  width: 100%;
}

/* Type hierarchy — NUMBERS are the hero on a data dashboard, not the greeting */
h1 { margin: 0; font-size: 19px; font-weight: 600; line-height: 1.3; letter-spacing: -0.018em; color: var(--ink-1); }
h2 { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.35; letter-spacing: -0.015em; color: var(--ink-1); }
h3 { margin: 0; font-size: 14px; font-weight: 700; line-height: 1.4; letter-spacing: -0.01em; color: var(--ink-1); }
p { margin: 0; color: var(--ink-2); }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

.tnum { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-3); }

/* ── Buttons ─────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px;
  height: 36px; padding: 0 14px;
  border: 1px solid transparent;
  border-radius: var(--r-control);
  font: inherit;
  font-size: 13px; font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background 120ms, border-color 120ms, color 120ms;
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-text); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--hover); color: var(--ink-1); }
.btn:focus-visible { outline: 2px solid var(--accent-border); outline-offset: 2px; }

/* ── Inputs ──────────────────── */
.input, .select {
  height: 38px; padding: 0 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-control);
  font: inherit; font-size: var(--t-body);
  color: var(--ink-1);
  width: 100%; min-width: 0;
  transition: border-color 120ms, box-shadow 120ms;
}
.input::placeholder { color: var(--ink-4); }
.input:hover { border-color: var(--line-strong); }
.input:focus, .select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(156, 101, 255, 0.12);
}

/* ── Cards ───────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  min-width: 0;
}
.card-head {
  padding: 20px 22px 18px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  min-width: 0;
}
.card-head h2 { font-size: var(--t-h1); }
.card-head .sub { font-size: var(--t-meta); color: var(--ink-3); white-space: nowrap; }
.card-body { padding: 0 22px 22px; }

/* ── Tags (small status pills) ─ */
.tag {
  display: inline-flex; align-items: center;
  height: 18px; padding: 0 7px;
  border-radius: 4px;
  font-size: 11px; font-weight: 600;
  color: var(--ink-3);
  background: var(--hover);
  line-height: 1;
  white-space: nowrap;
}
.tag.accent { color: var(--accent-text); background: var(--accent-tint); }
.tag.pos { color: var(--pos); background: var(--pos-tint); }
.tag.neg { color: var(--neg); background: var(--neg-tint); }
.tag.new {
  background: #E7FBF1;
  color: #047857;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 10px;
  padding: 0 6px;
}

/* ── App layout ──────────────── */
.app {
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  min-height: 100vh;
}

/* Sidebar — Fireflies-inspired: pure white, no border, flat nav.
   `align-self: start` is critical — without it the grid cell stretches
   to full row height, which kills sticky positioning. */
.sidebar {
  background: var(--surface);
  padding: 18px 12px 16px;
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  display: flex; flex-direction: column;
  min-width: 0;
  overflow-y: auto;       /* allows scroll inside sidebar if nav is taller than viewport */
}

.brand {
  display: flex; align-items: center;
  gap: 10px;
  padding: 4px 10px 4px;
  margin-bottom: 18px;
  min-width: 0;
}
.brand-mark {
  width: 26px; height: 26px;
  color: var(--accent);
  flex-shrink: 0;
}
.brand-name {
  font-weight: 700;
  font-size: 20px;
  color: var(--ink-1);
  letter-spacing: -0.04em;
}

/* Store picker — quieter, more like Fireflies workspace switcher */
.store-picker {
  margin: 0 6px 18px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-control);
  background: var(--surface);
  cursor: pointer;
  display: flex; align-items: center; gap: 10px;
  min-width: 0;
  transition: background 120ms, border-color 120ms;
  font-family: inherit;
  text-align: left;
}
.store-picker:hover { background: var(--hover); border-color: var(--line-strong); }
.store-picker .info {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column;
  line-height: 1.2;
}
.store-picker .group {
  font-size: 11px;
  color: var(--ink-3);
  font-weight: 500;
}
.store-picker .branch {
  font-size: 13.5px;
  color: var(--ink-1);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-top: 2px;
}
.store-picker .chev { color: var(--ink-3); flex-shrink: 0; }

/* Nav — Fireflies-inspired: flat, generous, full-pill active */
.nav-item {
  display: flex; align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: var(--r-control);
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 120ms, color 120ms;
  min-width: 0;
  text-decoration: none;
  margin-bottom: 1px;
}
.nav-item:hover { background: var(--hover); color: var(--ink-1); text-decoration: none; }
.nav-item.active {
  background: var(--accent-tint);
  color: var(--accent-text);
  font-weight: 600;
}
.nav-item .ico {
  width: 18px; height: 18px;
  stroke: currentColor;
  flex-shrink: 0;
}
.nav-item .label-text {
  flex: 1; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.nav-item.coming { color: var(--ink-4); cursor: default; }
.nav-item.coming:hover { background: transparent; color: var(--ink-4); }

.sidebar-foot {
  margin-top: auto;
  padding: 12px 10px 4px;
  display: flex; align-items: center; gap: 10px;
  min-width: 0;
  border-top: 1px solid var(--line);
  margin-top: auto;
}
.avatar {
  width: 30px; height: 30px;
  background: var(--hover);
  color: var(--ink-2);
  border-radius: 999px;
  display: grid; place-items: center;
  font-weight: 600; font-size: 13px;
  flex-shrink: 0;
}
.who { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.who .name {
  color: var(--ink-1);
  font-weight: 600;
  font-size: 13px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.who .role {
  color: var(--ink-3);
  font-size: 11px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* Main */
.main { display: flex; flex-direction: column; min-width: 0; min-height: 100vh; }

.topbar {
  height: var(--topbar-h);
  background: var(--bg);
  display: flex; align-items: center;
  padding: 0 32px;
  gap: 12px;
  position: sticky; top: 0; z-index: 5;
}
.crumb {
  display: flex; align-items: center; gap: 6px;
  font-size: 14px;
  color: var(--ink-3);
  min-width: 0;
}
.crumb .here {
  color: var(--ink-1);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.015em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.topbar .spacer { flex: 1; min-width: 0; }
.topbar .search { position: relative; width: 280px; min-width: 0; }
.topbar .search .input {
  height: 36px;
  padding-left: 36px;
  font-size: 13px;
  background: var(--surface);
}
.topbar .search .ico-search { position: absolute; top: 11px; left: 12px; color: var(--ink-4); pointer-events: none; }

.content { padding: 12px 32px 48px; flex: 1; width: 100%; min-width: 0; max-width: 1320px; }

svg.ico {
  stroke-width: 1.6;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── Page chrome ───────────────── */
.page-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 20px;
  padding-top: 8px;
  gap: 16px; min-width: 0; flex-wrap: wrap;
}
.page-head h1 { font-size: 19px; font-weight: 600; }   /* greeting is NOT the hero */
.page-head .meta { font-size: 13px; color: var(--ink-3); margin-top: 4px; }
.page-head .actions { display: flex; gap: 8px; flex-shrink: 0; }

/* ── Announcement banner (Cake-inspired) ─ */
.banner {
  background: var(--accent-tint);
  border: 1px solid var(--accent-border);
  border-radius: var(--r-card);
  padding: 14px 18px;
  margin-bottom: 24px;
  display: flex; align-items: center;
  gap: 14px;
  min-width: 0;
}
.banner .ico-wrap {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--surface);
  color: var(--accent-text);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.banner .text { flex: 1; min-width: 0; }
.banner .title { font-size: 13.5px; font-weight: 600; color: var(--ink-1); }
.banner .sub { font-size: 12.5px; color: var(--ink-2); margin-top: 1px; }
.banner .actions { display: flex; gap: 8px; flex-shrink: 0; }
.banner .close {
  background: transparent; border: 0; padding: 6px;
  color: var(--ink-3); cursor: pointer;
  border-radius: 6px;
}
.banner .close:hover { background: var(--surface); color: var(--ink-1); }

/* ── KPI — Cake-inspired: icon box + big number ── */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}
.kpi {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 20px 22px;
  display: flex; flex-direction: column; gap: 14px;     /* more breathing */
  min-width: 0;
  position: relative;
}
.kpi .head {
  display: flex; align-items: center; gap: 10px;
  min-width: 0;
}
.kpi .ico-box {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--hover);
  color: var(--ink-2);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.kpi .label {
  font-size: 13px;
  color: var(--ink-3);
  font-weight: 500;
  letter-spacing: -0.005em;
  flex: 1; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* Value — THE HERO of the page. Biggest type on a data dashboard. */
.kpi .value {
  font-size: 32px;
  font-weight: 700;
  color: var(--ink-1);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  line-height: 1.05;
  display: flex; align-items: baseline;
}
/* Currency / unit prefix — needs real breathing room from the digits */
.kpi .value .unit {
  font-size: 18px;
  font-weight: 500;
  color: var(--ink-3);
  margin-right: 6px;        /* THE fix: clear space before number */
  letter-spacing: -0.01em;
}
/* Unit suffix (e.g. "/15") — quieter, after the number */
.kpi .value .suffix {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink-3);
  margin-left: 6px;
}
.kpi .delta {
  font-size: 12.5px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kpi .delta.pos { color: var(--pos); font-weight: 600; }
.kpi .delta.neg { color: var(--neg); font-weight: 600; }

/* Hero KPI — Cake's left-bar pattern, value stays 32px (consistency) */
.kpi.hero {
  background: linear-gradient(180deg, var(--accent-tint) 0%, var(--surface) 70%);
  border-color: var(--accent-border);
  overflow: hidden;
}
.kpi.hero::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--accent);
}
.kpi.hero .ico-box { background: var(--surface); color: var(--accent-text); }
.kpi.hero .label { color: var(--accent-text); font-weight: 600; }
.kpi.hero .value .unit { color: var(--accent); font-weight: 600; }
.kpi.hero .spark {
  position: absolute;
  right: 18px; top: 18px;
  width: 88px; height: 32px;
  color: var(--accent);
  opacity: 0.45;
  pointer-events: none;
}

/* ── Two-column ───────────────── */
.grid-2 { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 1100px) { .grid-2 { grid-template-columns: minmax(0, 1fr); } }

/* ── Table (M-30) ─────────────────
   .tbl / .tbl-flush / .table / .table-grid 모두 같은 시각으로 통일.
   v3.3.1: .tbl + .tbl-flush 통일
   v3.3.2: legacy alias + input-inline
   v3.3.3 (2026-05-25): .table + .table-grid 셀렉터 확장 (Plan A, 마크업 0 변경).
   .tbl-flush 본체 정의 (design-system-v3.css) 는 무수정. */
.table-scroll, .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl, .table, .table-grid {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 600px;            /* .table-scroll 안 narrow viewport 가로 스크롤용 (유지) */
}
.tbl thead th, .table thead th, .table-grid thead th {
  background: var(--subtle);
  padding: 12px 22px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ink-3);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  text-align: left;
}
.tbl thead th.num, .table thead th.num, .table-grid thead th.num { text-align: right; }
.tbl tbody td, .table tbody td, .table-grid tbody td {
  padding: 13px 22px;
  border-bottom: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
  vertical-align: middle;
  color: var(--ink-1);
}
.tbl tbody tr:last-child td, .table tbody tr:last-child td, .table-grid tbody tr:last-child td { border-bottom: 1px solid var(--line); }
.tbl tr.total td, .table tr.total td, .table-grid tr.total td { background: var(--subtle); font-weight: 700; color: var(--ink-1); border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line); }
.tbl tr.total td:first-child, .table tr.total td:first-child, .table-grid tr.total td:first-child { color: var(--ink-3); font-weight: 500; }
.tbl .name-cell, .table .name-cell, .table-grid .name-cell { font-weight: 600; color: var(--ink-1); }
.tbl td.num, .table td.num, .table-grid td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl td.muted, .table td.muted, .table-grid td.muted { color: var(--ink-3); }
/* hover 공통 (M-30) — .tbl / .tbl-flush / .table / .table-grid. total 행 제외. */
.tbl tbody tr:hover td,
.tbl-flush tbody tr:hover td,
.table tbody tr:hover td,
.table-grid tbody tr:hover td { background: var(--hover); }
.tbl tr.total:hover td,
.tbl-flush tr.total:hover td,
.table tr.total:hover td,
.table-grid tr.total:hover td { background: var(--subtle); }
/* M-30 follow-up (v3.3.2): 표 안 input-inline 은 표 폰트 사이즈 따라감 */
.tbl input.input-inline,
.tbl-flush input.input-inline,
.table input.input-inline,
.table-grid input.input-inline {
  font-size: 13px;
}

/* ── List row ─────────────────── */
.row {
  display: grid;
  /* widened: time col now 110px to fit "4시간 25분 후" without wrap */
  grid-template-columns: 110px minmax(0, 1fr) minmax(80px, auto) minmax(100px, auto);
  gap: 18px;
  align-items: center;
  padding: 16px 22px;
  border-top: 1px solid var(--line);
  min-width: 0;
}
.row:hover { background: var(--hover); }
.row .time {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--ink-1);
  font-size: 13.5px;
  white-space: nowrap;
}
.row .time .sub {
  display: block;
  font-weight: 500;
  font-size: 11.5px;
  color: var(--ink-3);
  margin-top: 2px;
  white-space: nowrap;
}
.row .body { min-width: 0; }
.row .name {
  font-weight: 600;
  font-size: 14.5px;
  display: flex; align-items: center;
  gap: 7px; flex-wrap: wrap;
  color: var(--ink-1);
}
.row .svc {
  font-size: 12.5px;
  color: var(--ink-3);
  margin-top: 3px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.row .designer { font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.row .amt {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  white-space: nowrap;
  text-align: right;
  color: var(--ink-1);
}

/* ── Sub-tabs (Cake/Fireflies style) ── */
.subtabs {
  display: flex; gap: 4px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.subtab {
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-3);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  background: none; border-left: 0; border-right: 0; border-top: 0;
  font-family: inherit;
  letter-spacing: -0.01em;
}
.subtab:hover { color: var(--ink-1); }
.subtab.on { color: var(--accent-text); border-bottom-color: var(--accent); }

/* ── Role tabs (pill style, Fireflies) ── */
.pill-tabs { display: flex; gap: 6px; margin-bottom: 20px; flex-wrap: wrap; }
.pill-tab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font: inherit; font-size: 13px; font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  white-space: nowrap;
}
.pill-tab:hover { border-color: var(--line-strong); color: var(--ink-1); }
.pill-tab.on {
  background: var(--accent-tint);
  border-color: var(--accent-border);
  color: var(--accent-text);
}
.pill-tab .count {
  background: var(--hover);
  color: var(--ink-3);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.pill-tab.on .count { background: var(--surface); color: var(--accent-text); }

/* ── Date / range picker ── */
.range-pick {
  display: inline-flex; align-items: center;
  gap: 2px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-control);
  padding: 0 4px;
  height: 36px;
  flex-shrink: 0;
}
.range-pick button {
  background: none; border: 0; height: 28px; width: 28px;
  display: grid; place-items: center;
  cursor: pointer; color: var(--ink-2);
  border-radius: 6px; font-size: 14px;
}
.range-pick button:hover { background: var(--hover); color: var(--accent-text); }
.range-pick .label-date {
  padding: 0 10px;
  font-weight: 600; font-size: 13px;
  color: var(--ink-1);
  white-space: nowrap;
  letter-spacing: -0.01em;
}

/* ── Weekday chips (staff page bug fix) ── */
.weekday-row {
  display: grid;
  grid-template-columns: repeat(7, minmax(36px, 1fr));
  gap: 6px;
  min-width: 0;
}
.weekday-chip {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 4px;
  height: 30px; padding: 0 6px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  font-size: 12px; font-weight: 600;
  color: var(--ink-2);
  cursor: pointer; user-select: none;
  white-space: nowrap;
  min-width: 0;
  transition: background 120ms, border-color 120ms, color 120ms;
}
.weekday-chip input {
  width: 12px; height: 12px;
  margin: 0;
  accent-color: var(--accent);
  flex-shrink: 0;
}
.weekday-chip:hover { border-color: var(--accent-border); color: var(--accent-text); }
.weekday-chip.on {
  background: var(--accent-tint);
  border-color: var(--accent);
  color: var(--accent-text);
}

/* ── Rank pill ── */
.rank-pill {
  display: inline-flex; align-items: center; justify-content: center;
  height: 24px; padding: 0 10px;
  background: var(--subtle);
  color: var(--ink-2);
  border-radius: 6px;
  font-size: 12px; font-weight: 600;
  white-space: nowrap;
}

/* ── Table inputs (staff page) ── */
.cell-input {
  height: 34px; padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  font: inherit; font-size: 13px; color: var(--ink-1);
  width: 100%; min-width: 100px;
  box-sizing: border-box;
}
.cell-input:hover { border-color: var(--line-strong); }
.cell-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(156, 101, 255, 0.12);
}
.cell-input.date { min-width: 130px; max-width: 160px; font-variant-numeric: tabular-nums; }

/* ── Mini delete button ── */
.btn-delete {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface);
  color: var(--neg);
  border: 1px solid var(--line);
  padding: 0 10px; height: 28px;
  border-radius: 6px;
  font: inherit; font-size: 12px; font-weight: 600;
  cursor: pointer;
  transition: background 120ms, border-color 120ms;
  white-space: nowrap;
}
.btn-delete:hover { background: var(--neg-tint); border-color: #FCA5A5; }

/* ── Trend / progress segment bar ── */
.tbl-progress {
  display: inline-block;
  height: 6px;
  width: 80px;
  background: var(--hover);
  border-radius: 3px;
  overflow: hidden;
  vertical-align: middle;
  margin-right: 8px;
}
.tbl-progress > span { display: block; height: 100%; background: var(--accent); border-radius: 3px; }

/* Designer performance row */
.perf-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 22px;
  border-top: 1px solid var(--line);
  min-width: 0;
}
.perf-row:hover { background: var(--hover); }
.perf-row .name {
  font-weight: 600;
  font-size: 14px;
  color: var(--ink-1);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.perf-row .pct {
  font-size: 12px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  margin-top: 3px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.perf-row .amt {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: 14.5px;
  white-space: nowrap;
  text-align: right;
  color: var(--ink-1);
}
.perf-row.total {
  background: var(--subtle);
  border-top: 1px solid var(--line);
}
.perf-row.total .name { color: var(--ink-3); font-weight: 500; }
.perf-row.total .amt { color: var(--ink-1); }

:focus-visible { outline: 2px solid var(--accent-border); outline-offset: 2px; border-radius: 4px; }

/* Responsive */
@media (max-width: 900px) {
  :root { --sidebar-w: 60px; }
  .nav-item .label-text, .brand-name, .who, .store-picker .info, .store-picker .chev { display: none; }
  .store-picker { justify-content: center; padding: 10px; }
  .nav-item { justify-content: center; padding: 10px; }
}
@media (max-width: 640px) {
  .kpi-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .content { padding: 16px; }
  .topbar { padding: 0 16px; }
  .topbar .search { display: none; }
  .page-head h1 { font-size: 22px; }
}
