/* ============================================================
   KatPencil POS Admin — design system (static CSS build)
   Hand-drawn, paper-and-pencil aesthetic.
   Tokens + base resets + shell + component styles.
   Imported from Claude Design: "KatPencil POS Admin".
   ============================================================ */

/* ---- Webfonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@400;500;600;700;800&family=Spline+Sans+Mono:wght@400;500;600;700&display=swap');

/* ============================================================
   TOKENS
   ============================================================ */
:root {
  /* Paper & ink palette */
  --paper:#f1ece0;          /* page background */
  --paper-2:#efe8da;        /* sidebar */
  --paper-3:#eee7da;        /* food tint */
  --card:#fbf9f2;           /* raised surfaces */
  --card-sunken:#f1ece0;
  --hover:rgba(60,55,47,.05);
  --hover-strong:rgba(60,55,47,.08);

  /* Ink (text) */
  --ink:#2a2722;            /* primary text */
  --ink-2:#3c372f;          /* strong secondary */
  --ink-soft:#6d6456;       /* sketch border ink */
  --text-secondary:#6b655c;
  --text-muted:#7a746a;
  --text-faint:#9a948a;
  --text-inverse:#fbf9f2;

  /* Lines */
  --line:#e1d8c6;           /* subtle dividers */
  --line-2:#ece5d6;         /* faint table rows */
  --line-sand:#cdbfa6;      /* input borders */
  --line-sand-2:#d8cfbb;    /* sidebar/header borders */

  /* Brand — pencil green */
  --green:#2f7d52; --green-hover:#276a45; --green-active:#1f5638;
  --green-bg:#e7efe2; --green-line:rgba(47,125,82,.5);
  --brand:var(--green); --brand-fg:var(--text-inverse); --brand-subtle:var(--green-bg);

  /* Amber accent */
  --amber:#d6882a; --amber-bg:#f7ecd8;
  /* Info blue */
  --blue:#3f6f8c; --blue-bg:#e3ecf1;
  /* Violet / brown / plum (categorical) */
  --violet:#7d5a8c; --violet-bg:#efe6f2;
  --brown:#8c5a4a; --brown-bg:#f0e4df;
  --sand:#bcae93;

  /* Semantic */
  --success:var(--green); --success-fg:#276a45; --success-bg:var(--green-bg); --success-border:#cfe2d3;
  --warning:var(--amber); --warning-fg:#a9651b; --warning-bg:var(--amber-bg); --warning-border:#ecd6ad;
  --danger:#b4452f; --danger-hover:#9b3826; --danger-fg:#9b3826; --danger-bg:#f5e2dc; --danger-border:#e9cabf;

  /* Aliases kept for legacy markup (branches/login views) */
  --text-primary:var(--ink); --text-link:var(--green);
  --surface-page:var(--paper); --surface-card:var(--card); --surface-raised:var(--card);
  --surface-sunken:var(--card-sunken); --surface-hover:var(--hover); --surface-active:var(--hover-strong);
  --border-subtle:var(--line); --border-default:var(--line-sand); --border-strong:var(--ink-soft);
  --border-focus:var(--green);
  --brand-subtle-2:#d6e4d8; --brand-hover:var(--green-hover); --brand-active:var(--green-active);
  --brand-ring:color-mix(in srgb, var(--green) 30%, transparent);

  /* Type */
  --font-display:'Hanken Grotesk',system-ui,-apple-system,'Segoe UI',sans-serif;
  --font-body:'Hanken Grotesk',system-ui,-apple-system,'Segoe UI',sans-serif;
  --font-mono:'Spline Sans Mono',ui-monospace,'SF Mono',Menlo,monospace;
  --text-xs:0.75rem; --text-sm:0.8125rem; --text-base:0.875rem; --text-md:1rem;
  --text-lg:1.125rem; --text-xl:1.375rem; --text-2xl:1.6rem; --text-3xl:2rem; --text-4xl:2.6rem;
  --tracking-tight:-0.02em; --tracking-wide:0.04em;
  --leading-tight:1.12; --leading-normal:1.5;

  /* Spacing — 4px grid */
  --space-1:0.25rem; --space-2:0.5rem; --space-3:0.75rem; --space-4:1rem; --space-5:1.25rem;
  --space-6:1.5rem; --space-7:2rem; --space-8:2.5rem; --space-9:3rem; --space-10:4rem;
  --control-h-sm:34px; --control-h-md:40px; --control-h-lg:48px;
  --sidebar-w:252px; --topbar-h:74px; --content-max:1280px; --gutter:26px;

  /* Sketchy, slightly-asymmetric radii */
  --r-1:11px 9px 12px 10px;
  --r-2:13px 11px 14px 12px;
  --r-3:16px 12px 17px 13px;
  --r-pill:9px 7px 9px 7px;
  --radius-xs:8px; --radius-sm:9px; --radius-md:11px; --radius-lg:14px; --radius-xl:16px;
  --radius-2xl:20px; --radius-pill:999px; --radius-field:12px 10px 13px 11px; --radius-card:var(--r-3);

  /* Elevation — soft offset (drawn-on-paper) */
  --shadow-xs:1px 2px 0 rgba(60,55,47,.05);
  --shadow-sm:2px 3px 0 rgba(60,55,47,.05);
  --shadow-md:2px 3px 0 rgba(60,55,47,.06), 0 12px 28px -18px rgba(60,55,47,.5);
  --shadow-lg:3px 5px 0 rgba(60,55,47,.07), 0 18px 40px -20px rgba(60,55,47,.55);
  --shadow-xl:4px 7px 0 rgba(60,55,47,.08), 0 28px 60px -24px rgba(60,55,47,.6);
  --shadow-brand:3px 5px 0 rgba(60,55,47,.18);
  --ring-focus:0 0 0 3px var(--brand-ring);
}

/* ============================================================
   BASE RESETS
   ============================================================ */
*, *::before, *::after { box-sizing:border-box; }
html { -webkit-text-size-adjust:100%; height:100%; }
body {
  margin:0; height:100%;
  font-family:var(--font-body); font-size:var(--text-base); line-height:var(--leading-normal);
  color:var(--ink); background:var(--paper); font-weight:500;
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
}
h1,h2,h3,h4,h5,h6 {
  font-family:var(--font-display); font-weight:800; letter-spacing:var(--tracking-tight);
  line-height:var(--leading-tight); color:var(--ink); margin:0;
}
a { color:var(--text-link); text-decoration:none; }
a:hover { text-decoration:none; }
button { font-family:inherit; }
input, select, textarea { font-family:inherit; outline:none; }
::selection { background:#f5e7cf; color:var(--ink); }
.tnum, .mono, .cell-mono { font-family:var(--font-mono); font-variant-numeric:tabular-nums; }

* { scrollbar-width:thin; scrollbar-color:var(--line-sand) transparent; }
*::-webkit-scrollbar { width:10px; height:10px; }
*::-webkit-scrollbar-thumb { background:var(--line-sand); border-radius:8px; border:2px solid var(--paper); }
*::-webkit-scrollbar-track { background:transparent; }

.overline {
  font-size:var(--text-xs); font-weight:700; letter-spacing:.08em;
  text-transform:uppercase; color:var(--text-faint);
}

/* ---- Pencil / sketch helpers (use the SVG <defs> from the layout) ---- */
.sketch { filter:url(#pencil); }
.sketch-strong { filter:url(#pencilStrong); }

/* Hand-drawn keyframes (mirrors the source design) */
@keyframes fadeUp { from { transform:translateY(16px); opacity:0; } to { transform:none; opacity:1; } }
@keyframes paperDrift { 0% { transform:translate(0,0); } 100% { transform:translate(2.5%,3%); } }
@keyframes pulse { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:.3; transform:scale(.6); } }
@keyframes squig { to { stroke-dashoffset:-20; } }
@keyframes drawDash { to { stroke-dashoffset:0; } }
@keyframes modal-in { from { opacity:0; transform:translateY(8px) scale(.98); } to { opacity:1; transform:none; } }

/* Reusable sketch underline (hand-drawn squiggle under a heading) */
.squiggle { display:block; filter:url(#pencil); }
.squiggle path { animation:drawDash 1s .15s ease forwards; }

/* ============================================================
   APP SHELL
   ============================================================ */
.app { display:flex; height:100vh; width:100%; overflow:hidden; position:relative; }

/* Paper grain overlay */
.paper-texture {
  position:fixed; inset:0; pointer-events:none; z-index:60; opacity:.07;
  mix-blend-mode:multiply; overflow:hidden;
}
.paper-texture svg {
  position:absolute; left:-15%; top:-15%; width:130%; height:130%;
  animation:paperDrift 36s ease-in-out infinite alternate;
}

/* Hidden SVG that carries the pencil filters */
.sketch-defs { position:absolute; width:0; height:0; }

/* ---- Sidebar ---- */
.sidebar {
  width:var(--sidebar-w); flex:0 0 var(--sidebar-w); height:100%;
  display:flex; flex-direction:column; gap:0;
  background:var(--paper-2); border-right:1.6px solid var(--line-sand-2);
  padding:20px 16px; position:relative; z-index:2;
}
.sidebar__brand { padding:4px 8px 2px; }
.sidebar__brand-row { display:flex; align-items:center; gap:9px; }
.sidebar__brand-mark { display:flex; width:30px; height:30px; filter:url(#pencilStrong); color:var(--ink); }
.sidebar__brand-mark svg { width:30px; height:30px; }
.brand-word { font-size:21px; font-weight:800; letter-spacing:-.02em; color:var(--ink); }
.brand-word b { color:var(--green); font-weight:800; }

.sidebar__nav { display:flex; flex-direction:column; gap:14px; margin-top:24px; overflow-y:auto; }
.nav-group { display:flex; flex-direction:column; gap:3px; }
.nav-group__label { padding:0 12px 4px; }
.nav-list { display:flex; flex-direction:column; gap:3px; }

.nav-item {
  position:relative; display:flex; align-items:center; gap:11px;
  padding:10px 12px; border-radius:var(--r-1); cursor:pointer;
  font-weight:600; font-size:14.5px; color:var(--ink); text-decoration:none;
  transition:background .15s ease, transform .15s ease;
}
.nav-item:hover { background:var(--hover); transform:translateX(2px); text-decoration:none; }
.nav-item__icon { position:relative; display:flex; width:20px; height:20px; color:var(--ink-2); filter:url(#pencil); flex:0 0 auto; }
.nav-item__label { position:relative; flex:1; }
.nav-item__count {
  position:relative; font-family:var(--font-mono); font-size:11px; font-weight:600;
  color:var(--amber); background:var(--amber-bg); border-radius:7px; padding:1px 7px;
}
/* active state — sketchy green wash + ink rail */
.nav-item.is-active { color:var(--ink); }
.nav-item.is-active::before {
  content:''; position:absolute; inset:1px; border-radius:var(--r-1);
  background:rgba(47,125,82,.15); filter:url(#pencil); transform:rotate(-.6deg);
}
.nav-item.is-active::after {
  content:''; position:absolute; left:-3px; top:8px; bottom:8px; width:3.5px;
  border-radius:3px; background:var(--green);
}
.nav-item.is-active .nav-item__icon { color:var(--green); }
.nav-item.is-active .nav-item__count { color:var(--green); background:var(--card); }

/* collapsible menu → submenu */
.nav-tree { display:flex; flex-direction:column; gap:3px; }
.nav-tree > summary { list-style:none; user-select:none; }
.nav-tree > summary::-webkit-details-marker { display:none; }
.nav-item__chevron { display:flex; color:var(--ink-2); transition:transform .18s ease; }
.nav-tree[open] > summary .nav-item__chevron { transform:rotate(180deg); }
.nav-sublist {
  display:flex; flex-direction:column; gap:2px;
  margin:2px 0 4px 25px; padding-left:12px; border-left:1.5px solid var(--line-sand-2);
}
.nav-subitem { padding:8px 12px; font-size:13.5px; color:var(--ink-2); }
.nav-subitem:hover { color:var(--ink); }
.nav-subitem.is-active { color:var(--ink); }
.nav-subitem.is-active::after { display:none; }

.sidebar__spacer { flex:1; }

/* Store-open card */
.store-status {
  margin:0 4px 12px; padding:11px 13px; background:var(--card);
  border:1.5px solid var(--line-sand-2); border-radius:var(--r-2);
}
.store-status__row { display:flex; align-items:center; gap:7px; font-size:11.5px; color:var(--text-muted); font-weight:700; letter-spacing:.03em; }
.store-status__dot { width:8px; height:8px; border-radius:50%; background:var(--green); display:inline-block; animation:pulse 1.6s ease-in-out infinite; }
.store-status__meta { font-family:var(--font-mono); font-size:11.5px; color:var(--text-faint); margin-top:4px; }

/* User row */
.sidebar__user { display:flex; align-items:center; gap:10px; padding:9px 6px; border-top:1.4px solid var(--line); border-radius:10px; }
.sidebar__user .flex-1 { line-height:1.25; min-width:0; }
.user-row__name { font-size:13.5px; font-weight:700; color:var(--ink); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.user-row__meta { font-size:11.5px; color:var(--text-muted); }
.sidebar__user form { margin:0; display:inline-flex; }

/* ---- Main column ---- */
.main { flex:1; min-width:0; height:100%; display:flex; flex-direction:column; overflow:hidden; position:relative; z-index:1; }

/* ---- Topbar / header ---- */
.topbar {
  flex:none; display:flex; align-items:center; justify-content:space-between; gap:16px;
  padding:14px 26px; background:var(--paper); border-bottom:1.5px solid var(--line-sand-2);
  position:relative; z-index:3;
}
.topbar__title { margin:0; font-size:23px; font-weight:800; letter-spacing:-.02em; line-height:1.1; }
.topbar__subtitle { margin:5px 0 0; font-size:13px; color:var(--text-muted); }
.topbar__actions { display:flex; align-items:center; gap:12px; }

/* Live "updating" pill */
.live-pill {
  display:flex; align-items:center; gap:7px; padding:7px 11px;
  background:var(--card); border:1.5px solid var(--line-sand); border-radius:var(--r-1);
}
.live-pill__dot { width:8px; height:8px; border-radius:50%; background:var(--green); display:inline-block; animation:pulse 1.5s ease-in-out infinite; }
.live-pill__label { font-family:var(--font-mono); font-size:12.5px; font-weight:600; color:var(--green); }

/* ---- Content ---- */
.content {
  flex:1; overflow:auto; padding:22px 26px;
  background-image:
    repeating-linear-gradient(rgba(60,55,47,.035) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(90deg, rgba(60,55,47,.035) 0 1px, transparent 1px 40px);
}
.content__inner { max-width:var(--content-max); margin:0 auto; }

/* ---- Page header (inside content; used by branches) ---- */
.page-header { display:flex; align-items:flex-end; justify-content:space-between; gap:16px; margin-bottom:var(--space-6); flex-wrap:wrap; }
.page-header__title { font-size:var(--text-2xl); font-weight:800; letter-spacing:-.03em; margin:0; }
.page-header__subtitle { font-size:var(--text-base); color:var(--text-muted); margin:6px 0 0; }
.page-header__actions { display:flex; gap:10px; align-items:center; }

/* ============================================================
   COMPONENTS
   ============================================================ */

/* ---- Buttons ---- */
.btn {
  display:inline-flex; align-items:center; justify-content:center; gap:7px;
  font-family:var(--font-body); font-weight:700; font-size:14px;
  height:var(--control-h-md); padding:0 16px; border:1.6px solid transparent;
  border-radius:var(--radius-field); cursor:pointer; white-space:nowrap;
  transition:transform .14s ease, box-shadow .14s ease, background .15s ease, color .15s ease;
}
.btn--primary { background:var(--green); color:var(--text-inverse); border-color:var(--green); box-shadow:var(--shadow-brand); }
.btn--primary:hover { transform:translateY(-1px) rotate(-.8deg); box-shadow:4px 6px 0 rgba(60,55,47,.18); }
.btn--primary:active { transform:translateY(1px); box-shadow:1px 1px 0 rgba(60,55,47,.18); }
.btn--secondary { background:var(--card); color:var(--ink-2); border-color:var(--ink-soft); }
.btn--secondary:hover { transform:translateY(-1px) rotate(-.6deg); }
.btn--secondary:active { transform:translateY(1px); }
.btn--ghost { background:transparent; color:var(--text-secondary); border-color:transparent; }
.btn--ghost:hover { background:var(--hover); color:var(--ink); }
.btn--danger { background:var(--danger); color:#fff; border-color:var(--danger); box-shadow:var(--shadow-brand); }
.btn--danger:hover { background:var(--danger-hover); border-color:var(--danger-hover); transform:translateY(-1px) rotate(-.6deg); }
.btn--danger:active { transform:translateY(1px); }
.btn--sm { height:var(--control-h-sm); padding:0 13px; font-size:var(--text-sm); }
.btn.is-disabled { opacity:.5; pointer-events:none; }

.icon-btn {
  display:inline-flex; align-items:center; justify-content:center; flex:0 0 auto;
  width:var(--control-h-md); height:var(--control-h-md); border-radius:var(--r-1);
  border:1.5px solid transparent; cursor:pointer; color:var(--text-secondary);
  background:transparent; transition:background .15s ease, color .15s ease, transform .12s ease;
}
.icon-btn:active { transform:scale(.94); }
.icon-btn--secondary { background:var(--card); border-color:var(--line-sand); }
.icon-btn--secondary:hover { background:var(--hover); color:var(--ink); }
.icon-btn--ghost { background:transparent; color:var(--text-muted); }
.icon-btn--ghost:hover { background:var(--hover); color:var(--ink); }
.icon-btn--sm { width:var(--control-h-sm); height:var(--control-h-sm); }

/* ---- Fields ---- */
.field { position:relative; display:block; width:100%; }
.field__icon { position:absolute; top:50%; left:12px; transform:translateY(-50%); color:var(--text-faint); display:inline-flex; pointer-events:none; }
.field input, .field select, .field textarea {
  width:100%; height:var(--control-h-md); border:1.6px solid var(--line-sand);
  border-radius:var(--radius-field); padding:0 13px; font-family:var(--font-body);
  font-size:13.5px; font-weight:500; color:var(--ink);
  background:var(--card); transition:border-color .15s ease, box-shadow .15s ease;
}
.field--icon input { padding-left:34px; }
.field input::placeholder, .field textarea::placeholder { color:var(--text-faint); }
.field input:focus, .field select:focus, .field textarea:focus { border-color:var(--green); box-shadow:var(--ring-focus); }
.field--sm input, .field--sm select { height:var(--control-h-sm); font-size:var(--text-sm); }
.field select { appearance:none; padding-right:34px; cursor:pointer; }
.field textarea { height:auto; min-height:var(--control-h-lg); padding-top:9px; padding-bottom:9px; line-height:1.5; resize:vertical; }
.field__chevron { position:absolute; top:50%; right:12px; transform:translateY(-50%); color:var(--text-muted); pointer-events:none; display:inline-flex; }
.search-field { width:218px; }

/* ---- Card (sketch border via ::before) ---- */
.card {
  position:relative; background:var(--card); border-radius:var(--radius-card);
  box-shadow:var(--shadow-md); overflow:visible;
}
.card::before {
  content:''; position:absolute; inset:0; border-radius:inherit;
  border:1.7px solid var(--ink-soft); filter:url(#pencil); pointer-events:none;
}
.card > * { position:relative; }
.card__header {
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  padding:16px 20px; border-bottom:1.4px solid var(--line);
}
.card__heading { display:flex; flex-direction:column; gap:2px; }
.card__title { font-size:var(--text-md); font-weight:700; letter-spacing:-.01em; }
.card__subtitle { font-size:12.5px; color:var(--text-muted); }
.card__actions { display:flex; align-items:center; gap:10px; }
.card__body { padding:18px 20px; }
.card--flush { overflow:hidden; }
.card--flush .card__body { padding:0; }
/* plain panel (no sketch border) — lighter weight cards */
.panel {
  position:relative; background:var(--card); border:1.7px solid var(--ink-soft);
  border-radius:var(--r-3); box-shadow:var(--shadow-sm); padding:18px 20px;
}
.panel__title { font-size:16px; font-weight:700; margin:0; }
.panel__subtitle { font-size:12.5px; color:var(--text-muted); }

/* card title with squiggle */
.card-title { margin:0; font-size:16px; font-weight:700; }
.card-sub { font-size:12.5px; color:var(--text-muted); }

/* ---- StatCard / KPI ---- */
.stat-card {
  position:relative; background:var(--card); border-radius:var(--r-3);
  box-shadow:var(--shadow-md); padding:15px 17px; animation:fadeUp .5s both;
}
.stat-card::before {
  content:''; position:absolute; inset:0; border-radius:inherit;
  border:1.7px solid var(--ink-soft); filter:url(#pencil); pointer-events:none;
}
.stat-card > * { position:relative; }
.stat-card__top { display:flex; align-items:flex-start; justify-content:space-between; gap:8px; }
.stat-card__label { font-size:12px; color:var(--text-muted); font-weight:600; }
.stat-card__icon {
  display:inline-flex; align-items:center; justify-content:center; width:34px; height:34px;
  border-radius:var(--r-1); background:var(--green-bg); color:var(--green);
}
.stat-card__value { font-family:var(--font-mono); font-size:29px; font-weight:600; letter-spacing:-.01em; margin:9px 0 0; }
.stat-card__value--sm { font-size:26px; }
.stat-card__spark { width:100%; height:26px; margin-top:8px; filter:url(#pencil); }
.stat-card__delta {
  display:inline-flex; align-items:center; gap:3px; font-family:var(--font-mono);
  font-size:11px; font-weight:600; padding:3px 7px; border-radius:var(--r-pill);
}
.stat-card__delta--up { color:var(--green); background:var(--green-bg); }
.stat-card__delta--down { color:var(--danger-fg); background:var(--danger-bg); }

/* ---- Badge ---- */
.badge {
  display:inline-flex; align-items:center; gap:6px; font-size:var(--text-xs); font-weight:700;
  border-radius:var(--r-pill); padding:3px 9px; line-height:1.4; white-space:nowrap;
}
.badge--sm { font-size:11px; padding:2px 8px; }
.badge .badge__dot { width:6px; height:6px; border-radius:999px; background:currentColor; flex:0 0 auto; }
.badge--success { color:var(--success-fg); background:var(--success-bg); }
.badge--warning { color:var(--warning-fg); background:var(--warning-bg); }
.badge--danger  { color:var(--danger-fg);  background:var(--danger-bg); }
.badge--neutral { color:var(--text-secondary); background:var(--card-sunken); }
.badge--brand   { color:var(--green); background:var(--green-bg); }
.badge--violet  { color:var(--violet); background:var(--violet-bg); }
.badge--cap { text-transform:capitalize; }
/* mono status chip used in tables */
.chip-mono { font-family:var(--font-mono); font-size:11.5px; font-weight:600; padding:3px 9px; border-radius:var(--r-pill); }

/* ---- Avatar (sketch circle) ---- */
.avatar {
  display:inline-flex; align-items:center; justify-content:center; flex:0 0 auto;
  border-radius:10px; font-family:var(--font-body); font-weight:700; color:var(--text-inverse);
  background:var(--green); position:relative;
}
.avatar--sm { width:28px; height:28px; font-size:11px; }
.avatar--md { width:38px; height:38px; font-size:14px; }
.avatar__status { position:absolute; right:-1px; bottom:-1px; width:10px; height:10px; border-radius:999px; background:var(--green); border:2px solid var(--card); }

/* ---- DataTable ---- */
.data-table-wrap { overflow-x:auto; padding:0 18px 8px; }
.data-table { width:100%; border-collapse:collapse; font-family:var(--font-body); }
.data-table thead th {
  text-align:left; padding:12px 8px 10px; white-space:nowrap;
  font-size:11.5px; font-weight:700; letter-spacing:.04em; text-transform:uppercase;
  color:var(--text-faint); border-bottom:1.6px solid var(--line);
}
.data-table td {
  text-align:left; padding:12px 8px; white-space:nowrap;
  font-size:14px; color:var(--ink); font-weight:500; border-top:1.3px solid var(--line-2);
}
.data-table tbody tr { transition:background .12s ease; }
.data-table tbody tr:hover { background:var(--hover); }
.data-table tbody tr.is-clickable { cursor:pointer; }
.data-table .ta-right { text-align:right; }
.data-table .ta-center { text-align:center; }
.cell-mono { font-family:var(--font-mono); font-variant-numeric:tabular-nums; font-size:12.5px; }
.cell-order { font-family:var(--font-mono); font-weight:700; color:var(--green); }
.cell-muted { color:var(--text-muted); }
.cell-secondary { color:var(--text-secondary); }
.cell-cust { display:flex; align-items:center; gap:10px; }

/* ---- Money ---- */
.money { font-family:var(--font-mono); font-weight:600; font-variant-numeric:tabular-nums; }
.money--bold { font-weight:700; }

/* ---- Segmented / pill tabs ---- */
.segmented { display:inline-flex; gap:8px; }
.segmented__item {
  display:inline-flex; align-items:center; gap:7px; cursor:pointer; text-decoration:none;
  padding:7px 13px; font-size:13px; font-weight:600; color:var(--ink-2);
  background:var(--card); border:1.5px solid var(--line-sand); border-radius:var(--r-1);
  transition:border-color .15s ease, background .15s ease, color .15s ease;
}
.segmented__item:hover { border-color:var(--green); text-decoration:none; }
.segmented__item.is-active { background:var(--green); color:var(--text-inverse); border-color:var(--green); }
.segmented__count { font-family:var(--font-mono); font-size:11px; font-weight:700; padding:1px 6px; border-radius:7px; background:var(--card-sunken); color:var(--text-faint); }
.segmented__item.is-active .segmented__count { background:rgba(251,249,242,.25); color:var(--text-inverse); }

/* ---- Filter chips (status legend) ---- */
.chip {
  display:inline-flex; align-items:center; gap:7px; font-size:13px; font-weight:600; color:var(--ink-2);
  background:var(--card); border:1.5px solid var(--line-sand); border-radius:var(--r-1); padding:7px 13px;
}
.chip__dot { width:8px; height:8px; border-radius:50%; display:inline-block; }

/* ---- Toolbar ---- */
.toolbar {
  display:flex; align-items:center; justify-content:space-between; gap:var(--space-4);
  padding:16px 20px; border-bottom:1.4px solid var(--line); flex-wrap:wrap;
}
.toolbar__filters { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.toolbar__type { width:150px; }
.toolbar__search { width:240px; }

/* ---- Charts ---- */
.chart-legend { display:flex; gap:14px; font-size:12px; color:var(--text-secondary); align-items:center; }
.chart-legend span { display:flex; align-items:center; gap:6px; }
.chart-svg { display:block; width:100%; filter:url(#pencil); }

/* sales-by-category bars */
.bars { display:flex; flex-direction:column; gap:13px; margin-top:8px; }
.bar-row { display:grid; grid-template-columns:74px 1fr 56px; align-items:center; gap:10px; }
.bar-row__label { font-size:13px; color:var(--ink-2); }
.bar-row__track { position:relative; height:14px; }
.bar-row__svg { width:100%; height:14px; filter:url(#pencil); }
.bar-row__val { font-family:var(--font-mono); font-size:12.5px; font-weight:600; text-align:right; color:var(--text-secondary); }

/* payment mix legend */
.legend-list { display:flex; flex-direction:column; gap:10px; }
.legend-row { display:flex; align-items:center; gap:8px; }
.legend-row__sw { flex:none; filter:url(#pencil); }
.legend-row__label { flex:1; font-size:13px; color:var(--ink-2); }
.legend-row__val { font-family:var(--font-mono); font-size:13px; font-weight:600; }

/* live orders feed */
.feed { display:flex; flex-direction:column; gap:10px; }
.feed-item {
  position:relative; display:flex; align-items:center; gap:12px; padding:11px 13px;
  background:var(--paper); border:1.4px solid var(--line); border-radius:var(--r-2);
}
.feed-item__time { flex:none; width:48px; }
.feed-item__code { font-family:var(--font-mono); font-size:13px; font-weight:600; }
.feed-item__items { font-size:12.5px; color:var(--text-muted); }
.feed-item__total { margin-left:auto; font-family:var(--font-mono); font-size:14px; font-weight:600; }

/* top products list */
.rank-list { display:flex; flex-direction:column; }
.rank-row { display:grid; grid-template-columns:28px 1fr 130px 70px 80px; align-items:center; gap:12px; padding:10px 4px; border-top:1.3px solid var(--line-2); }
.rank-row:first-child { border-top:none; }
.rank-row__n { font-family:var(--font-mono); font-size:13px; color:var(--text-faint); font-weight:600; }
.rank-row__name { font-size:14px; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.rank-row__cat { font-size:12px; color:var(--text-muted); }
.rank-row__bar { width:100%; height:10px; filter:url(#pencil); }
.rank-row__num { font-family:var(--font-mono); font-size:13.5px; font-weight:600; text-align:right; }
.rank-row__num--muted { color:var(--text-secondary); font-weight:500; }

/* sketch thumbnail tile (initials) */
.thumb { flex:none; filter:url(#pencil); }
.thumb-row { display:flex; align-items:center; gap:11px; min-width:0; }

/* "view all" link */
.link-green { font-size:13px; color:var(--green); font-weight:600; cursor:pointer; }

/* ---- Grid helpers ---- */
.grid { display:grid; gap:16px; }
.grid--kpi { grid-template-columns:repeat(4, 1fr); margin-bottom:16px; }
.grid--4 { grid-template-columns:repeat(4, 1fr); }
.grid--3 { grid-template-columns:repeat(3, 1fr); }
.grid--2 { grid-template-columns:1fr 1fr; }
.grid--2-1 { grid-template-columns:1.7fr 1fr; }
.grid--sales { grid-template-columns:1.15fr 1fr; }
.mt-4 { margin-top:16px; }
.mb-6 { margin-bottom:var(--space-6); }
.flex-1 { flex:1; min-width:0; }

/* ---- Type icon tile (branches) ---- */
.type-tile {
  display:inline-flex; align-items:center; justify-content:center; flex:0 0 auto;
  width:34px; height:34px; border-radius:var(--r-1);
  background:var(--card-sunken); color:var(--text-muted);
}
.type-tile--lg { width:48px; height:48px; border-radius:var(--r-2); }
.type-tile--success { background:var(--success-bg); color:var(--success-fg); }
.type-tile--warning { background:var(--warning-bg); color:var(--warning-fg); }
.type-tile--brand   { background:var(--green-bg); color:var(--green); }
.type-tile--violet  { background:var(--violet-bg); color:var(--violet); }
.type-tile--neutral { background:var(--card-sunken); color:var(--text-muted); }

/* ---- Category thumbnail ---- */
.cat-thumb {
  display:inline-flex; align-items:center; justify-content:center; flex:0 0 auto;
  width:38px; height:38px; border-radius:var(--r-1); object-fit:cover;
  border:1.4px solid var(--line-sand); background:var(--card-sunken);
}
.cat-thumb--fallback { font-family:var(--font-mono); font-size:13px; font-weight:700; color:var(--text-muted); }

/* ---- Image upload field ---- */
.image-field { display:flex; align-items:flex-start; gap:16px; }
.image-field__preview {
  flex:0 0 auto; display:inline-flex; align-items:center; justify-content:center; overflow:hidden;
  width:84px; height:84px; border-radius:var(--r-2);
  border:1.4px dashed var(--line-sand); background:var(--card-sunken); color:var(--text-faint);
}
.image-field__preview img { width:100%; height:100%; object-fit:cover; }
.image-field__placeholder { display:inline-flex; }
.image-field__controls { display:flex; flex-direction:column; gap:8px; padding-top:4px; }
.image-field__remove { display:inline-flex; align-items:center; gap:7px; font-size:var(--text-sm); font-weight:600; color:var(--text-muted); cursor:pointer; }
.image-field__remove input { accent-color:var(--danger); }

/* ---- Branch cell ---- */
.cell-branch { display:flex; align-items:center; gap:12px; }
.cell-branch__text { display:flex; flex-direction:column; gap:1px; min-width:0; }
.cell-branch__name { font-weight:700; color:var(--ink); }
a.cell-branch__name:hover { color:var(--green); text-decoration:none; }
.cell-branch__code { font-size:var(--text-xs); color:var(--text-muted); }

/* ---- Row actions ---- */
.row-actions { display:inline-flex; align-items:center; gap:2px; justify-content:flex-end; }
.row-actions form { display:inline-flex; margin:0; }
.row-actions .icon-btn:hover { color:var(--ink); }
.row-actions__delete:hover { color:var(--danger-fg); background:var(--danger-bg); }

/* ---- Flash messages ---- */
.flash {
  display:flex; align-items:center; gap:10px; margin-bottom:var(--space-5);
  padding:12px 16px; border-radius:var(--r-2); font-size:var(--text-base); font-weight:600;
  border:1.5px solid transparent;
}
.flash--success { color:var(--success-fg); background:var(--success-bg); border-color:var(--success-border); }
.flash--danger  { color:var(--danger-fg);  background:var(--danger-bg);  border-color:var(--danger-border); }

/* ---- Breadcrumbs ---- */
.crumbs { display:flex; align-items:center; gap:7px; margin-bottom:8px; font-size:var(--text-sm); font-weight:600; color:var(--text-muted); }
.crumbs a { color:var(--text-muted); }
.crumbs a:hover { color:var(--green); text-decoration:none; }
.crumbs > svg { color:var(--text-faint); }

/* ---- Empty state ---- */
.empty-state { display:flex; flex-direction:column; align-items:center; gap:12px; text-align:center; padding:var(--space-9) var(--space-6); }
.empty-state__icon {
  display:inline-flex; align-items:center; justify-content:center; width:56px; height:56px;
  border-radius:var(--r-2); background:var(--card-sunken); color:var(--text-faint);
}
.empty-state__title { font-size:var(--text-base); font-weight:700; color:var(--text-secondary); margin:0; }

/* ---- Forms ---- */
.form-card { max-width:760px; }
.form-grid { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:var(--space-5); }
.form-field { display:flex; flex-direction:column; gap:7px; }
.form-field--full { grid-column:1 / -1; }
.form-label { font-size:var(--text-sm); font-weight:700; color:var(--text-secondary); }
.form-label .req { color:var(--danger); }
.form-hint { font-size:var(--text-xs); color:var(--text-faint); }
.form-error { display:flex; align-items:center; gap:6px; font-size:var(--text-sm); font-weight:600; color:var(--danger-fg); }
.form-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:var(--space-7); padding-top:var(--space-6); border-top:1.4px solid var(--line); }

/* ---- Toggle switch ---- */
.switch { display:flex; align-items:flex-start; gap:12px; cursor:pointer; user-select:none; }
.switch input { position:absolute; opacity:0; width:0; height:0; }
.switch__track { flex:0 0 auto; position:relative; width:42px; height:24px; margin-top:1px; border-radius:var(--radius-pill); background:var(--line-sand); transition:background .15s ease; }
.switch__thumb { position:absolute; top:3px; left:3px; width:18px; height:18px; border-radius:999px; background:var(--card); box-shadow:var(--shadow-sm); transition:transform .15s ease; }
.switch input:checked + .switch__track { background:var(--green); }
.switch input:checked + .switch__track .switch__thumb { transform:translateX(18px); }
.switch input:focus-visible + .switch__track { box-shadow:var(--ring-focus); }
.switch__text { display:flex; flex-direction:column; gap:2px; }
.switch__title { font-size:var(--text-base); font-weight:700; color:var(--ink); }
.switch__hint { font-size:var(--text-xs); color:var(--text-muted); }

/* ---- Pager ---- */
.pager-wrap { margin-top:var(--space-5); }
.pager { display:flex; align-items:center; justify-content:center; gap:var(--space-4); }
.pager__info { font-size:var(--text-sm); font-weight:600; color:var(--text-muted); }
.pager__total { color:var(--text-faint); }

/* ---- Edit-log timeline ---- */
.timeline { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; }
.timeline__item { position:relative; display:flex; gap:14px; padding-bottom:var(--space-6); }
.timeline__item:not(:last-child)::before { content:''; position:absolute; left:13px; top:30px; bottom:0; width:2px; background:var(--line); }
.timeline__dot { flex:0 0 auto; z-index:1; display:inline-flex; align-items:center; justify-content:center; width:28px; height:28px; border-radius:999px; color:#fff; }
.timeline__dot--success { background:var(--success); }
.timeline__dot--warning { background:var(--warning); }
.timeline__dot--danger  { background:var(--danger); }
.timeline__dot--neutral { background:var(--text-faint); }
.timeline__body { flex:1; min-width:0; padding-top:2px; }
.timeline__head { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-bottom:10px; }
.timeline__by { font-size:var(--text-base); font-weight:700; color:var(--ink); }
.timeline__time { font-size:var(--text-sm); color:var(--text-muted); }
.timeline__item:last-child .timeline__body { padding-bottom:0; }

/* ---- Change diff table ---- */
.changes-table { border:1.4px solid var(--line); border-radius:var(--r-2); overflow:hidden; }
.changes-table th, .changes-table td { padding:9px var(--space-4); white-space:normal; }
.changes-table__old { color:var(--text-muted); text-decoration:line-through; }
.changes-table__new { color:var(--success-fg); font-weight:700; }

/* ---- Modal ---- */
.modal { position:fixed; inset:0; z-index:80; display:flex; align-items:center; justify-content:center; padding:var(--space-5); }
.modal[hidden] { display:none; }
.modal__backdrop { position:absolute; inset:0; background:rgba(42,39,34,.5); backdrop-filter:blur(2px); }
.modal__dialog {
  position:relative; z-index:1; width:100%; max-width:430px; background:var(--card);
  border:1.7px solid var(--ink-soft); border-radius:var(--radius-2xl); box-shadow:var(--shadow-xl);
  padding:var(--space-7); text-align:center; animation:modal-in .15s ease;
}
.modal__icon { display:inline-flex; align-items:center; justify-content:center; width:52px; height:52px; border-radius:999px; margin-bottom:var(--space-4); }
.modal__icon--danger { background:var(--danger-bg); color:var(--danger-fg); }
.modal__title { font-size:var(--text-lg); margin-bottom:8px; }
.modal__text { font-size:var(--text-base); color:var(--text-secondary); margin:0 0 var(--space-6); line-height:1.55; }
.modal__actions { display:flex; justify-content:center; gap:10px; }
.modal__actions form { margin:0; }

/* ---- Form preview / log summary (branches) ---- */
.form-preview { display:flex; align-items:center; gap:14px; padding:var(--space-5); background:var(--card-sunken); border:1.4px solid var(--line); border-radius:var(--r-3); margin-bottom:var(--space-6); }
.form-preview__text { display:flex; flex-direction:column; gap:7px; min-width:0; }
.form-preview__name { font-size:var(--text-md); font-weight:800; letter-spacing:-.01em; }
.form-preview__meta { display:flex; align-items:center; gap:8px; flex-wrap:wrap; font-size:var(--text-sm); color:var(--text-muted); }
.dot-sep { width:3px; height:3px; border-radius:999px; background:var(--text-faint); flex:0 0 auto; }
.log-summary { display:flex; align-items:center; gap:14px; padding:var(--space-5) 20px; border-bottom:1.4px solid var(--line); }
.log-summary__text { display:flex; flex-direction:column; gap:7px; min-width:0; }
.log-summary__name { font-size:var(--text-md); font-weight:800; letter-spacing:-.01em; }
.log-summary__meta { display:flex; align-items:center; gap:10px; flex-wrap:wrap; font-size:var(--text-sm); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width:1100px) {
  .grid--kpi, .grid--4 { grid-template-columns:repeat(2, 1fr); }
  .grid--2-1, .grid--sales, .grid--2 { grid-template-columns:1fr; }
  .grid--3 { grid-template-columns:1fr 1fr; }
}
@media (max-width:860px) {
  .sidebar { display:none; }
  .search-field, .topbar__subtitle { display:none; }
  .content { padding:18px 16px; }
}
@media (max-width:600px) {
  .grid--kpi, .grid--4, .grid--3 { grid-template-columns:1fr; }
  .form-grid { grid-template-columns:1fr; }
  .toolbar { flex-direction:column; align-items:stretch; }
  .toolbar__filters { width:100%; }
  .toolbar__type, .toolbar__search { width:100%; flex:1; }
  .rank-row { grid-template-columns:24px 1fr 60px; }
  .rank-row__bar, .rank-row__num--muted { display:none; }
}

@media (prefers-reduced-motion:reduce) {
  *, *::before, *::after { animation:none !important; transition:none !important; }
}

/* ============================================================
   STOCK — adjust-quantity modal + history timeline
   ============================================================ */
/* Wider, left-aligned form dialog (vs the default centred confirm modal). */
.modal__dialog--form { max-width:480px; text-align:left; padding:var(--space-6); }
.modal__icon--brand { background:var(--green-bg); color:var(--green); }

#adjustForm { display:flex; flex-direction:column; gap:var(--space-4); }

.adjust-head { display:flex; align-items:flex-start; gap:13px; }
.adjust-head .modal__icon { margin-bottom:0; flex:0 0 auto; width:44px; height:44px; }
.adjust-head__text { flex:1; min-width:0; }
.adjust-head .modal__title { margin-bottom:2px; }
.adjust-head__sub { font-size:var(--text-sm); color:var(--text-muted); margin:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.adjust-head [data-close] { flex:0 0 auto; }

.adjust-info { display:grid; grid-template-columns:1fr 1fr; gap:11px var(--space-5);
  padding:var(--space-4) var(--space-5); background:var(--card-sunken);
  border:1.4px solid var(--line); border-radius:var(--r-3); }
.adjust-info div { display:flex; flex-direction:column; gap:3px; min-width:0; }
.adjust-info dt { font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.04em; color:var(--text-faint); }
.adjust-info dd { margin:0; font-size:var(--text-sm); font-weight:600; color:var(--ink); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

.adjust-grid { display:grid; grid-template-columns:1fr 1fr; gap:var(--space-5); }
.adjust-grid .form-field { margin:0; }

.qty-static { display:flex; align-items:center; gap:6px; height:var(--control-h-md);
  padding:0 13px; border:1.6px solid var(--line-sand); border-radius:var(--radius-field);
  background:var(--card-sunken); font-size:15px; font-weight:700; color:var(--ink);
  font-variant-numeric:tabular-nums; }
.qty-static__uom { font-size:var(--text-sm); font-weight:600; color:var(--text-muted); }

/* number input with a trailing unit suffix */
.field--suffix input { padding-right:48px; }
.field__suffix { position:absolute; top:50%; right:13px; transform:translateY(-50%);
  font-size:var(--text-sm); font-weight:600; color:var(--text-muted); pointer-events:none; }

.adjust-diff { display:flex; align-items:center; justify-content:space-between;
  padding:11px var(--space-5); border:1.4px solid var(--line); border-radius:var(--r-3); }
.adjust-diff__label { font-size:var(--text-sm); font-weight:700; color:var(--text-secondary); }
.adjust-diff__value { font-size:var(--text-md); font-weight:800; }
.adjust-diff--up { background:var(--success-bg); border-color:transparent; }
.adjust-diff--up .adjust-diff__label, .adjust-diff--up .adjust-diff__value { color:var(--success-fg); }
.adjust-diff--down { background:var(--danger-bg); border-color:transparent; }
.adjust-diff--down .adjust-diff__label, .adjust-diff--down .adjust-diff__value { color:var(--danger-fg); }
.adjust-diff--zero .adjust-diff__value { color:var(--text-muted); }

.adjust-actions { display:flex; justify-content:flex-end; gap:10px; }

/* History timeline extras */
.timeline__dot--brand { background:var(--green); }
.movement-flow { display:flex; align-items:center; gap:8px; flex-wrap:wrap; font-size:var(--text-base); }
.movement-flow > svg { color:var(--text-faint); }
.movement-flow__qty { font-family:var(--font-mono); font-variant-numeric:tabular-nums; color:var(--text-muted); }
.movement-flow__qty--strong { color:var(--ink); font-weight:700; }
.movement-flow__change { font-family:var(--font-mono); font-weight:700; font-size:var(--text-sm); padding:1px 9px; border-radius:999px; }
.movement-flow__change--up { color:var(--success-fg); background:var(--success-bg); }
.movement-flow__change--down { color:var(--danger-fg); background:var(--danger-bg); }
.movement-flow__change--zero { color:var(--text-muted); background:var(--card-sunken); }
.movement-note { margin:9px 0 0; font-size:var(--text-sm); color:var(--text-muted); }

.empty-state__text { font-size:var(--text-sm); color:var(--text-muted); margin:0; max-width:340px; }

/* Damage write-off action button — red on hover, like the delete action. */
.row-actions__damage:hover { color:var(--danger-fg); background:var(--danger-bg); }

/* ============================================================
   APP FOOTER + VERSION PILL
   ============================================================ */
.appfooter {
  flex:none; display:flex; align-items:center; justify-content:space-between; gap:16px;
  padding:9px 26px; background:var(--paper);
  border-top:1.5px solid var(--line-sand-2); position:relative; z-index:3;
}
.appfooter__meta { font-size:12px; color:var(--text-faint); font-weight:500; }

.version-pill {
  display:inline-flex; align-items:center; gap:7px; padding:5px 11px;
  background:var(--card); border:1.5px solid var(--line-sand); border-radius:var(--r-pill);
  color:var(--ink-2); text-decoration:none; cursor:pointer;
  transition:transform .14s ease, box-shadow .14s ease, border-color .15s ease, color .15s ease;
}
.version-pill:hover {
  border-color:var(--green); color:var(--green);
  transform:translateY(-1px) rotate(-.8deg); box-shadow:var(--shadow-sm); text-decoration:none;
}
.version-pill.is-active { border-color:var(--green); color:var(--green); background:var(--green-bg); }
.version-pill__icon { display:inline-flex; color:var(--amber); }
.version-pill:hover .version-pill__icon, .version-pill.is-active .version-pill__icon { color:var(--green); }
.version-pill__label { font-family:var(--font-mono); font-size:12.5px; font-weight:700; letter-spacing:.01em; }

@media (max-width:860px) {
  .appfooter { padding:9px 16px; }
  .appfooter__meta { display:none; }
  .appfooter { justify-content:flex-end; }
}

/* ============================================================
   RELEASE NOTES PAGE
   ============================================================ */
/* Hero — the current version headline */
.release-hero { animation:fadeUp .5s both; margin-bottom:var(--space-6); }
.release-hero__inner {
  display:flex; align-items:center; gap:var(--space-7); padding:22px 24px; flex-wrap:wrap;
}
.release-hero__mark {
  flex:0 0 auto; display:inline-flex; align-items:center; justify-content:center;
  width:76px; height:76px; border-radius:var(--r-3);
  background:var(--green-bg); color:var(--green); filter:url(#pencil);
}
.release-hero__body { flex:1; min-width:240px; }
.release-hero__badges { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-bottom:8px; }
.release-hero__date { display:inline-flex; align-items:center; gap:6px; font-size:12.5px; color:var(--text-muted); font-weight:600; }
.release-hero__version {
  font-family:var(--font-mono); font-size:2.4rem; font-weight:700; letter-spacing:-.02em;
  color:var(--ink); line-height:1; margin:0;
}
.release-hero__summary { margin:10px 0 0; font-size:var(--text-md); color:var(--text-secondary); line-height:1.55; max-width:62ch; }
.release-hero__stats { display:flex; gap:22px; margin-top:16px; flex-wrap:wrap; }
.release-stat { display:flex; flex-direction:column; gap:1px; }
.release-stat__num { font-family:var(--font-mono); font-size:1.35rem; font-weight:700; color:var(--green); line-height:1; }
.release-stat__label { font-size:11.5px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; color:var(--text-faint); }
.release-hero__actions { display:flex; gap:10px; margin-left:auto; align-self:flex-start; flex-wrap:wrap; }

/* Section label above the feature groups */
.release-section-label { display:flex; align-items:baseline; gap:10px; margin:var(--space-7) 0 var(--space-4); }
.release-section-label h2 { font-size:var(--text-lg); font-weight:800; letter-spacing:-.02em; }
.release-section-label span { font-size:var(--text-sm); color:var(--text-muted); font-weight:600; }

/* Feature group cards */
.release-groups { align-items:start; }
.release-group { display:flex; flex-direction:column; gap:14px; transition:transform .15s ease, box-shadow .15s ease; }
.release-group:hover { transform:translateY(-2px); box-shadow:var(--shadow-md); }
.release-group__head { display:flex; align-items:center; gap:12px; }
.release-group__title { font-size:var(--text-md); font-weight:800; letter-spacing:-.01em; }

/* Checklist of shipped items */
.feature-list { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:10px; }
.feature-list li { display:flex; align-items:flex-start; gap:10px; font-size:13.5px; color:var(--ink-2); line-height:1.45; }
.feature-list__mark {
  flex:0 0 auto; display:inline-flex; align-items:center; justify-content:center;
  width:19px; height:19px; margin-top:1px; border-radius:999px;
  background:var(--green-bg); color:var(--green);
}

/* Version-history timeline (shown when >1 release exists) */
.release-history { margin-top:var(--space-8); }

/* Each archived release row links to its own page. */
.release-history__link {
  display:block; color:inherit; text-decoration:none;
  margin:-8px -10px; padding:8px 10px; border-radius:var(--radius-md);
  transition:background .15s ease;
}
.release-history__link:hover { background:var(--card-sunken); }
.release-history__link:hover .timeline__by { color:var(--green); }
.release-history__cta {
  display:inline-flex; align-items:center; gap:5px; margin-left:auto;
  font-size:var(--text-sm); font-weight:700; color:var(--green);
  opacity:0; transition:opacity .15s ease;
}
.release-history__link:hover .release-history__cta { opacity:1; }

@media (max-width:760px) {
  .release-hero__actions { margin-left:0; }
  .release-hero__version { font-size:2rem; }
}
