/* ============ O Tal Picolé — Design Tokens ============ */
:root{
  /* Brand */
  --brand-600:#D4310B;
  --brand-700:#B3270A;
  --brand-500:#E04A1F;
  --brand-100:#FDECE6;
  --brand-50:#FFF7F4;

  /* Neutrals */
  --ink-900:#1A1A1A;
  --ink-800:#262626;
  --ink-700:#333333;
  --ink-500:#6B6B70;
  --ink-400:#8E8E93;
  --ink-300:#A3A3A6;
  --ink-200:#D6D6D9;
  --ink-100:#EAEAEC;
  --ink-50:#F4F4F5;

  --surface:#FFFFFF;
  --canvas:#FAFAFA;
  --line:#EAEAEC;
  --line-strong:#D6D6D9;

  /* States */
  --success:#15803D;
  --success-bg:#E8F5EC;
  --warning:#B45309;
  --warning-bg:#FEF3E2;
  --danger:#B91C1C;
  --danger-bg:#FDECEC;
  --info:#1E40AF;
  --info-bg:#E6EEFB;

  /* Radii */
  --r-sm:6px;
  --r-md:10px;
  --r-lg:14px;
  --r-xl:20px;

  /* Shadows — layered for depth */
  --sh-1: 0 1px 2px rgba(15,15,20,.05), 0 1px 1px rgba(15,15,20,.03);
  --sh-2: 0 2px 4px rgba(15,15,20,.04), 0 6px 16px -4px rgba(15,15,20,.08), 0 1px 0 rgba(255,255,255,.6) inset;
  --sh-3: 0 4px 8px rgba(15,15,20,.05), 0 16px 32px -8px rgba(15,15,20,.12), 0 1px 0 rgba(255,255,255,.7) inset;
  --sh-pop: 0 12px 32px -8px rgba(15,15,20,.18), 0 4px 12px rgba(15,15,20,.08);
  --sh-press: 0 1px 0 rgba(15,15,20,.06), 0 1px 2px rgba(15,15,20,.04) inset;

  /* Soft surface gradients (for card relief) */
  --grad-surface: linear-gradient(180deg, #FFFFFF 0%, #FCFCFD 100%);
  --grad-canvas: radial-gradient(1200px 600px at 0% -10%, #FFF1EB 0%, transparent 55%), radial-gradient(900px 500px at 100% 0%, #FEF7F2 0%, transparent 50%), #FAFAFA;

  /* Type */
  --font-ui: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Bricolage Grotesque", "Manrope", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

*,*::before,*::after{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
body{
  font-family: var(--font-ui);
  background: var(--grad-canvas);
  background-attachment: fixed;
  color: var(--ink-800);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01","cv11";
}
button{ font-family: inherit; cursor:pointer; }
input,select,textarea{ font-family: inherit; font-size: inherit; color: inherit; }
a{ color: inherit; text-decoration: none; }

/* ============ App shell ============ */
.app{
  display: grid;
  grid-template-columns: 264px 1fr;
  min-height: 100vh;
  background: transparent;
}

/* ============ Sidebar ============ */
.sidebar{
  background: linear-gradient(180deg, #FFFFFF 0%, #FBFAF9 100%);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 22px 16px 18px;
  position: sticky;
  top: 0;
  height: 100vh;
  box-shadow: 1px 0 0 rgba(15,15,20,.02), 8px 0 24px -16px rgba(15,15,20,.08);
  gap: 2px;
}
.sidebar__brand{
  display:flex; align-items:center; gap:12px;
  padding: 4px 10px 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}
.sidebar__brand .mark{ width:32px; height:32px; }
.sidebar__brand svg{ filter: drop-shadow(0 2px 4px rgba(212,49,11,.18)); }
.sidebar__brand .wm{ display:flex; flex-direction:column; line-height:1.1; }
.sidebar__brand .wm strong{ font-family: var(--font-display); font-weight:700; letter-spacing:-0.01em; font-size:16px; color:var(--ink-900); }
.sidebar__brand .wm small{ font-size:10px; letter-spacing:.2em; text-transform:uppercase; color:var(--ink-400); margin-top:5px; font-weight:600;}

.nav__label{
  font-size:10.5px; letter-spacing:.16em; text-transform:uppercase;
  color: var(--ink-400); padding: 18px 12px 8px; font-weight:700;
}
.nav__label:first-of-type{ padding-top: 6px; }
.nav__item{
  display:flex; align-items:center; gap:12px;
  padding: 11px 12px; border-radius: 9px;
  color: var(--ink-700); font-weight:500; font-size:14px;
  border: none; background: transparent; width:100%; text-align:left;
  position: relative;
  transition: background .14s ease, color .14s ease, transform .12s ease;
  cursor: pointer;
}
.nav__item + .nav__item{ margin-top: 3px; }
.nav__item:hover{ background: var(--ink-50); color: var(--ink-900); }
.nav__item.is-active{
  background: linear-gradient(180deg, #FFF1EA 0%, #FDE6DC 100%);
  color: var(--brand-700);
  font-weight: 600;
  box-shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 1px 2px rgba(212,49,11,.08);
}
.nav__item.is-active::before{
  content:""; position:absolute; left:-16px; top:9px; bottom:9px; width:3px;
  background: var(--brand-600); border-radius: 0 3px 3px 0;
}
.nav__item .ic{ width:18px; height:18px; flex-shrink:0; opacity:.85; }
.nav__item.is-active .ic{ opacity:1; }
.nav__item .badge{
  margin-left:auto; background: var(--brand-600); color:white;
  font-size:10.5px; font-weight:700; padding: 2px 7px; border-radius: 100px;
  letter-spacing: 0; line-height: 1.4;
}

.sidebar__foot{
  margin-top:auto;
  padding-top: 16px; border-top: 1px solid var(--line);
  display:flex; align-items:center; gap:12px;
}
.avatar{
  width: 32px; height:32px; border-radius: 100px;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  color: white; display:flex; align-items:center; justify-content:center;
  font-weight: 700; font-size: 12px; flex-shrink: 0;
  box-shadow:
    0 1px 0 rgba(255,255,255,.25) inset,
    0 -1px 0 rgba(0,0,0,.10) inset,
    0 2px 6px -1px rgba(212,49,11,.30);
}
.user-meta{ display:flex; flex-direction:column; line-height:1.2; min-width:0; }
.user-meta strong{ font-size:12.5px; color: var(--ink-900); font-weight:600; }
.user-meta small{ font-size:11px; color: var(--ink-400); }

/* ============ Main content ============ */
.main{
  display:flex; flex-direction:column; min-width:0;
}
.topbar{
  display:flex; align-items:center; gap:16px;
  padding: 14px 28px;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
  position: sticky; top:0; z-index: 5;
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 6px 16px -12px rgba(15,15,20,.12);
}
.crumbs{
  display:flex; align-items:center; gap:6px;
  font-size: 12.5px; color: var(--ink-400);
}
.crumbs strong{ color: var(--ink-800); font-weight: 600; }
.topbar__search{
  margin-left: 12px;
  display:flex; align-items:center; gap:8px;
  background: var(--ink-50); border: 1px solid transparent;
  padding: 7px 12px; border-radius: 8px;
  width: 280px;
  color: var(--ink-400);
  font-size: 12.5px;
}
.topbar__search:focus-within{ background: var(--surface); border-color: var(--line-strong); }
.topbar__search input{ background:transparent; border:none; outline:none; flex:1; color: var(--ink-800); }
.kbd{
  font-family: var(--font-mono); font-size: 10px; color: var(--ink-400);
  background: white; border:1px solid var(--line); border-radius: 4px;
  padding: 1px 5px; line-height: 1.4;
}

.topbar__actions{ margin-left:auto; display:flex; align-items:center; gap:10px; }
.icon-btn{
  width:34px; height:34px; border-radius:8px;
  background: transparent; border: 1px solid transparent;
  display:flex; align-items:center; justify-content:center;
  color: var(--ink-500);
  position: relative;
}
.icon-btn:hover{ background: var(--ink-50); color: var(--ink-800); }
.icon-btn .dot{
  position:absolute; top:7px; right:8px; width:7px; height:7px;
  background: var(--brand-600); border-radius:100px; border:2px solid white;
}

.content{
  padding: 24px 28px 80px;
  flex: 1;
  max-width: 1440px;
  width: 100%;
}

/* ============ Page header ============ */
.page-head{
  display:flex; align-items:flex-end; justify-content:space-between;
  margin-bottom: 20px; gap: 24px;
}
.page-head h1{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.02em;
  margin:0 0 4px;
  color: var(--ink-900);
}
.page-head p{ margin:0; color: var(--ink-500); font-size:13.5px; }
.page-head__actions{ display:flex; gap:8px; align-items:center; }

/* ============ Buttons ============ */
.btn{
  display:inline-flex; align-items:center; gap:6px;
  padding: 8px 14px; border-radius: 8px;
  font-weight: 600; font-size: 13px;
  border: 1px solid transparent;
  transition: background .12s, border-color .12s, color .12s;
  white-space: nowrap;
}
.btn--primary{
  background: linear-gradient(180deg, #E04A1F 0%, #D4310B 60%, #BE2A0A 100%);
  color: white;
  box-shadow:
    0 1px 0 rgba(255,255,255,.25) inset,
    0 -1px 0 rgba(0,0,0,.06) inset,
    0 1px 2px rgba(190,42,10,.18),
    0 4px 10px -3px rgba(190,42,10,.32);
}
.btn--primary:hover{ background: linear-gradient(180deg, #D4310B 0%, #B3270A 100%); }
.btn--primary:active{ box-shadow: 0 1px 2px rgba(190,42,10,.18) inset; transform: translateY(.5px); }
.btn--secondary{
  background: linear-gradient(180deg, #FFFFFF 0%, #F8F8FA 100%);
  color: var(--ink-800); border-color: var(--line-strong);
  box-shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 1px 2px rgba(15,15,20,.04);
}
.btn--secondary:hover{ background: linear-gradient(180deg, #FAFAFB 0%, #F1F1F3 100%); border-color: var(--ink-300); }
.btn--ghost{ background: transparent; color: var(--ink-700); }
.btn--ghost:hover{ background: var(--ink-50); }
.btn--danger{ background: var(--surface); color: var(--danger); border-color: var(--line-strong); }
.btn--danger:hover{ background: var(--danger-bg); border-color: var(--danger); }
.btn--sm{ padding: 5px 10px; font-size:12px; border-radius:6px; }
.btn--lg{ padding: 11px 18px; font-size:14px; border-radius:10px; }
.btn[disabled]{ opacity: .5; cursor: not-allowed; }

/* ============ Cards ============ */
.card{
  background: var(--grad-surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-2);
  transition: box-shadow .18s ease, transform .18s ease;
}
.card:hover{ box-shadow: var(--sh-3); }
.card__head{
  padding: 16px 20px;
  display:flex; align-items:center; justify-content:space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.6) 0%, rgba(250,250,251,.4) 100%);
}
.card__head h3{
  margin:0; font-size: 14px; font-weight: 600; color: var(--ink-900);
  letter-spacing: -0.005em;
}
.card__head p{ margin:0; color: var(--ink-500); font-size: 12px; }
.card__body{ padding: 20px; }
.card__body--flush{ padding: 0; }

/* ============ KPI ============ */
.kpi{
  --kpi-tone: var(--ink-500);
  --kpi-tone-bg: var(--ink-50);
  --kpi-tone-soft: rgba(107,107,112,.06);
  background:
    radial-gradient(120% 60% at 100% 0%, var(--kpi-tone-soft) 0%, transparent 70%),
    var(--grad-surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px 20px 16px;
  display: flex; flex-direction: column; gap: 6px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--sh-2);
  transition: transform .18s ease, box-shadow .18s ease;
}
.kpi::before{
  content:""; position:absolute; left:0; right:0; top:0; height:3px;
  background: linear-gradient(90deg, var(--kpi-tone), color-mix(in srgb, var(--kpi-tone) 60%, white));
  opacity:.95;
}
.kpi:hover{ transform: translateY(-1px); box-shadow: var(--sh-3); }
.kpi__top{
  display:flex; align-items:center; justify-content:space-between;
  gap: 10px; margin-bottom: 2px;
}
.kpi__label{
  font-size: 11.5px; color: var(--ink-500); font-weight: 600;
  display:flex; align-items:center; gap:6px;
  letter-spacing: .005em;
}
.kpi__medal{
  width: 34px; height: 34px; border-radius: 10px;
  display:flex; align-items:center; justify-content:center;
  background: var(--kpi-tone-bg);
  color: var(--kpi-tone);
  box-shadow:
    0 1px 0 rgba(255,255,255,.9) inset,
    0 0 0 1px color-mix(in srgb, var(--kpi-tone) 14%, transparent),
    0 4px 10px -4px color-mix(in srgb, var(--kpi-tone) 28%, transparent);
  flex-shrink: 0;
}
.kpi__value{
  font-family: var(--font-display);
  font-weight: 700; font-size: 30px; letter-spacing: -0.028em;
  color: var(--ink-900);
  line-height: 1.05;
}
.kpi__trend{
  font-size: 11.5px; font-weight: 600;
  display: inline-flex; align-items:center; gap: 4px;
  color: var(--ink-500);
}
.kpi__trend.up{ color: var(--success); }
.kpi__trend.down{ color: var(--danger); }
.kpi__sub{ font-size: 11.5px; color: var(--ink-400); }

/* KPI tones */
.kpi--success{ --kpi-tone: #15803D; --kpi-tone-bg: #E8F5EC; --kpi-tone-soft: rgba(21,128,61,.08); }
.kpi--danger { --kpi-tone: #B91C1C; --kpi-tone-bg: #FDECEC; --kpi-tone-soft: rgba(185,28,28,.08); }
.kpi--warning{ --kpi-tone: #B45309; --kpi-tone-bg: #FEF3E2; --kpi-tone-soft: rgba(180,83,9,.10); }
.kpi--info   { --kpi-tone: #1E40AF; --kpi-tone-bg: #E6EEFB; --kpi-tone-soft: rgba(30,64,175,.08); }
.kpi--brand  { --kpi-tone: #D4310B; --kpi-tone-bg: #FDECE6; --kpi-tone-soft: rgba(212,49,11,.10); }

/* ============ Tables ============ */
.tbl{
  width: 100%; border-collapse: collapse; font-size: 13px;
}
.tbl thead th{
  text-align: left; font-weight: 700; font-size: 10.5px;
  color: var(--ink-500); text-transform: uppercase; letter-spacing: .09em;
  padding: 10px 16px;
  background: linear-gradient(180deg, #F7F7F8 0%, #EFEFF1 100%);
  border-bottom: 1px solid var(--line);
}
.tbl tbody td{
  padding: 12px 16px; border-bottom: 1px solid var(--line);
  color: var(--ink-800); vertical-align: middle;
}
.tbl tbody tr:last-child td{ border-bottom: none; }
.tbl tbody tr:hover{ background: var(--ink-50); }
.tbl .num{ font-variant-numeric: tabular-nums; text-align:right; }
.tbl .muted{ color: var(--ink-400); }
.tbl .strong{ font-weight: 600; color: var(--ink-900); }

/* ============ Badges / chips ============ */
.chip{
  display:inline-flex; align-items:center; gap: 5px;
  padding: 2px 9px; border-radius: 100px;
  font-size: 11px; font-weight: 600;
  background: var(--ink-50); color: var(--ink-700);
  border: 1px solid var(--line);
  line-height: 1.6;
  white-space: nowrap;
  box-shadow: 0 1px 0 rgba(255,255,255,.7) inset;
}
.chip--success{ background: var(--success-bg); color: var(--success); border-color: transparent; }
.chip--warning{ background: var(--warning-bg); color: var(--warning); border-color: transparent; }
.chip--danger{ background: var(--danger-bg); color: var(--danger); border-color: transparent; }
.chip--info{ background: var(--info-bg); color: var(--info); border-color: transparent; }
.chip--brand{ background: var(--brand-100); color: var(--brand-700); border-color: transparent; }
.chip .dot{ width:6px; height:6px; border-radius:100px; background: currentColor; }

/* ============ Forms ============ */
.field{ display:flex; flex-direction: column; gap:6px; }
.field label{ font-size: 11.5px; font-weight: 600; color: var(--ink-700); letter-spacing:.01em; }
.field label .req{ color: var(--brand-600); }
.input, .select, .textarea{
  width:100%; background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: 8px;
  padding: 8px 12px; font-size: 13.5px; color: var(--ink-900);
  transition: border-color .12s, box-shadow .12s;
  outline: none;
}
.input:hover, .select:hover{ border-color: var(--ink-300); }
.input:focus, .select:focus, .textarea:focus{
  border-color: var(--brand-600); box-shadow: 0 0 0 3px var(--brand-100);
}
.input::placeholder{ color: var(--ink-400); }
.select{ appearance:none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' stroke='%236b6b70' stroke-width='1.5' fill='none' stroke-linecap='round'/></svg>"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 30px; }
.field .hint{ font-size: 11px; color: var(--ink-400); }
.field .err{ font-size: 11.5px; color: var(--danger); }
.field--inline{ flex-direction: row; align-items:center; gap: 12px; }

.input-group{
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}

/* Checkbox / Radio */
.check{
  display: inline-flex; align-items:center; gap:8px;
  font-size: 13px; color: var(--ink-800); cursor:pointer;
  user-select: none;
}
.check input{ accent-color: var(--brand-600); width:15px; height:15px; }

/* Segmented */
.seg{
  display:inline-flex; background: var(--ink-50); padding:3px;
  border-radius: 8px; border: 1px solid var(--line);
}
.seg__btn{
  padding: 5px 12px; border-radius:6px; border:none; background: transparent;
  font-size: 12px; font-weight: 600; color: var(--ink-500);
}
.seg__btn.is-active{ background: var(--surface); color: var(--ink-900); box-shadow: var(--sh-1); }

/* ============ Charts ============ */
.bar-chart{
  display:flex; align-items:flex-end; gap:10px; height: 180px; padding: 0 4px;
}
.bar-chart__col{ flex:1; display:flex; flex-direction:column; align-items: center; gap: 6px; min-width: 0; }
.bar-chart__bar{
  width: 100%; background: var(--brand-600); border-radius: 4px 4px 0 0;
  position: relative; min-height: 4px;
}
.bar-chart__bar--alt{ background: var(--ink-200); }
.bar-chart__lbl{ font-size: 10.5px; color: var(--ink-400); }

/* ============ Modal ============ */
.modal-backdrop{
  position: fixed; inset: 0;
  background: rgba(15,15,20,.5);
  backdrop-filter: blur(2px);
  display:flex; align-items:center; justify-content:center;
  z-index: 100;
  animation: fadeIn .15s ease;
}
.modal{
  background: var(--surface);
  width: min(620px, calc(100vw - 32px));
  max-height: 90vh;
  border-radius: 14px;
  box-shadow: var(--sh-pop);
  overflow: hidden;
  display: flex; flex-direction: column;
  animation: pop .18s cubic-bezier(.2,.8,.2,1);
}
.modal--lg{ width: min(880px, calc(100vw - 32px)); }
.modal__head{
  padding: 18px 22px;
  display:flex; align-items:center; justify-content:space-between;
  border-bottom: 1px solid var(--line);
}
.modal__head h2{ margin:0; font-family: var(--font-display); font-size: 18px; letter-spacing: -.015em; color: var(--ink-900); font-weight:700; }
.modal__head p{ margin:2px 0 0; font-size: 12.5px; color: var(--ink-500); }
.modal__body{ padding: 22px; overflow: auto; flex:1; }
.modal__foot{
  padding: 14px 22px;
  display:flex; align-items:center; justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--line);
  background: var(--canvas);
}
.modal__close{
  width:32px; height:32px; border-radius:8px; border:none; background: transparent;
  display:flex; align-items:center; justify-content:center; color: var(--ink-500);
}
.modal__close:hover{ background: var(--ink-50); color: var(--ink-900); }

@keyframes fadeIn{ from{opacity:0;} to{opacity:1;} }
@keyframes pop{ from{opacity:0; transform: translateY(8px) scale(.98);} to{opacity:1; transform: none;} }

/* ============ Toast ============ */
.toast{
  position: fixed; right: 24px; bottom: 24px; z-index: 200;
  background: var(--ink-900); color: white;
  padding: 12px 18px; border-radius: 10px;
  font-size: 13px; font-weight: 500;
  display:flex; align-items:center; gap: 10px;
  box-shadow: var(--sh-pop);
  animation: slideUp .2s ease;
}
.toast .ic{ color: var(--success); }
@keyframes slideUp{ from{ transform: translateY(20px); opacity:0;} to{ transform: none; opacity:1;} }

/* ============ Utilities ============ */
.row{ display:flex; gap:12px; align-items: center; }
.col{ display:flex; flex-direction:column; gap:12px; }
.grid-2{ display:grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.grid-3{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid-4{ display:grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.grid-5{ display:grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.divider{ height: 1px; background: var(--line); border:none; margin: 12px 0; }
.muted{ color: var(--ink-500); }
.subtle{ color: var(--ink-400); font-size: 12px; }
.mono{ font-family: var(--font-mono); }
.numeric{ font-variant-numeric: tabular-nums; }
.text-right{ text-align: right; }
.text-center{ text-align: center; }
.gap-0{ gap:0; }
.flex-1{ flex:1; }
.spacer{ flex: 1; }

.tag-flavor{
  display:inline-flex; align-items:center; gap: 6px;
  padding: 2px 8px 2px 4px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 100px; font-size: 11.5px; font-weight: 500; color: var(--ink-800);
}
.tag-flavor .sw{
  width: 12px; height: 12px; border-radius: 100px; flex-shrink: 0;
}

/* Empty state */
.empty{
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap: 8px; padding: 40px 20px; text-align:center; color: var(--ink-400);
}
.empty h4{ margin: 4px 0 0; font-size: 14px; color: var(--ink-700); font-weight: 600; }
.empty p{ margin:0; font-size: 12.5px; max-width: 320px; }

/* Progress */
.bar{
  height: 6px;
  background: linear-gradient(180deg, #ECECEE 0%, #F4F4F6 100%);
  border-radius: 100px; overflow: hidden;
  box-shadow: 0 1px 1px rgba(15,15,20,.04) inset;
}
.bar > span{
  display:block; height:100%;
  background: linear-gradient(90deg, var(--brand-500), var(--brand-700));
  border-radius: inherit;
  transition: width .3s ease;
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset;
}
.bar--ok > span{ background: linear-gradient(90deg, #1F9F4D, #15803D); }
.bar--warn > span{ background: linear-gradient(90deg, #D97706, #B45309); }
.bar--danger > span{ background: linear-gradient(90deg, #DC2626, #B91C1C); }


/* Sparkline area */
.sparkline{ width:100%; height: 38px; display:block; }

/* Step bar */
.steps{
  display:flex; align-items:center; gap: 0; margin-bottom: 18px;
}
.steps__item{
  display:flex; align-items:center; gap: 8px; flex: 1; min-width:0;
}
.steps__num{
  width: 26px; height:26px; border-radius:100px;
  display:flex; align-items:center; justify-content:center;
  background: var(--ink-100); color: var(--ink-500);
  font-weight: 700; font-size: 12px;
  flex-shrink: 0;
}
.steps__item.is-done .steps__num{ background: var(--success); color: white; }
.steps__item.is-current .steps__num{ background: var(--brand-600); color: white; }
.steps__lbl{ font-size: 12px; font-weight: 600; color: var(--ink-500); }
.steps__item.is-current .steps__lbl{ color: var(--ink-900); }
.steps__line{ height: 1px; background: var(--ink-200); flex: 1; margin: 0 8px; }
.steps__item.is-done + .steps__item .steps__line, .steps__item.is-done .steps__line{ background: var(--success); }

/* Sticky list rows */
.list{ display:flex; flex-direction: column; }
.list__row{
  display:flex; align-items:center; gap: 12px;
  padding: 12px 20px; border-bottom: 1px solid var(--line);
}
.list__row:last-child{ border-bottom: none; }
.list__row:hover{ background: var(--ink-50); }

/* Tabs */
.tabs{
  display:flex; gap: 4px; border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}
.tabs__btn{
  background: transparent; border:none; padding: 10px 14px;
  font-size: 13px; font-weight: 600; color: var(--ink-500);
  position: relative; border-radius: 6px 6px 0 0;
}
.tabs__btn:hover{ color: var(--ink-800); }
.tabs__btn.is-active{ color: var(--brand-600); }
.tabs__btn.is-active::after{
  content:""; position:absolute; bottom:-1px; left:8px; right:8px; height:2px;
  background: var(--brand-600); border-radius: 2px 2px 0 0;
}

/* Pill metric row */
.pill-row{
  display:flex; gap: 18px; flex-wrap: wrap; padding: 6px 0;
}
.pill-row .pm{
  display:flex; flex-direction:column; gap:2px;
  padding: 10px 14px;
  background: linear-gradient(180deg, #FAFAFB 0%, #F4F4F6 100%);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 1px 0 rgba(255,255,255,.7) inset;
  min-width: 110px;
}
.pill-row .pm strong{ font-size: 18px; color: var(--ink-900); font-weight: 700; font-family: var(--font-display); letter-spacing:-.015em; }
.pill-row .pm span{ font-size: 11px; color: var(--ink-500); text-transform: uppercase; letter-spacing: .06em; font-weight:600; }
