/*!***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ../../node_modules/.pnpm/next@15.5.18_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!../../node_modules/.pnpm/next@15.5.18_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[3]!../../packages/design_tokens/tokens.css ***!
  \***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/* MealKraft Design System — v1.0
   Bound from "Energetic" tokens + mealkraft.in warmth.
   Imported by every screen for cross-surface consistency. */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=JetBrains+Mono:wght@400;500&family=Limelight&display=swap');

:root {
  /* Color */
  --bg:        oklch(96% 0.04 60);
  --surface:   oklch(100% 0 0);
  --surface-2: oklch(93% 0.05 65);
  --surface-3: oklch(88% 0.06 70);
  --fg:        oklch(28% 0.06 35);
  --muted:     oklch(52% 0.06 40);
  --border:    oklch(86% 0.04 60);
  --border-strong: oklch(72% 0.05 50);

  --accent:    oklch(63% 0.20 38);
  --accent-ink: oklch(45% 0.18 35);
  --accent-tint: oklch(94% 0.07 55);
  --accent-2:  oklch(78% 0.15 75);
  --accent-2-tint: oklch(95% 0.07 80);
  --success:   oklch(58% 0.16 145);
  --success-tint: oklch(94% 0.06 145);
  --danger:    oklch(58% 0.22 28);
  --danger-tint: oklch(94% 0.08 28);
  --warning:   oklch(70% 0.16 65);
  --warning-tint: oklch(95% 0.08 75);
  --info:      oklch(60% 0.10 230);
  --info-tint: oklch(94% 0.04 230);

  /* Type */
  --font-display: 'Fraunces', 'Tiempos Headline', Georgia, serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, Menlo, monospace;
  --font-wordmark: 'Limelight', 'Fraunces', serif;

  --step-0: 13px; --step-1: 15px; --step-2: 17px;
  --step-3: 20px; --step-4: 24px; --step-5: 32px;
  --step-6: 44px; --step-7: 64px; --step-8: 96px;

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;

  --r-1: 6px; --r-2: 10px; --r-3: 16px; --r-4: 24px; --r-pill: 999px;

  --e-1: 0 1px 2px oklch(28% 0.06 35 / 0.06);
  --e-2: 0 8px 24px oklch(28% 0.06 35 / 0.08), 0 1px 2px oklch(28% 0.06 35 / 0.06);
  --e-3: 0 24px 60px oklch(28% 0.06 35 / 0.14);

  --t-quick: 150ms cubic-bezier(.2,.7,.3,1);
  --t-med:   240ms cubic-bezier(.2,.7,.3,1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--step-1);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv01";
}

/* Typography */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; margin: 0; letter-spacing: -0.02em; line-height: 1.1; color: var(--fg); }
h1 { font-size: var(--step-7); letter-spacing: -0.03em; }
h2 { font-size: var(--step-5); }
h3 { font-size: var(--step-4); letter-spacing: -0.01em; }
h4 { font-size: var(--step-3); letter-spacing: -0.005em; }
p { margin: 0; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

.eyebrow { font-family: var(--font-mono); text-transform: uppercase; font-size: 11px; letter-spacing: 0.12em; color: var(--muted); font-weight: 500; }
.kicker { font-family: var(--font-display); font-style: italic; font-size: var(--step-2); color: var(--accent-ink); font-weight: 500; }
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.wordmark { font-family: var(--font-wordmark); font-weight: 400; letter-spacing: 0.02em; color: var(--accent-ink); }
.muted { color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: var(--s-2); justify-content: center;
  padding: 10px 18px; border-radius: var(--r-2); font-weight: 600; font-size: var(--step-1);
  font-family: inherit; cursor: pointer; border: 1px solid transparent;
  transition: transform var(--t-quick), background var(--t-quick), box-shadow var(--t-quick);
  letter-spacing: -0.01em;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--accent); color: white; box-shadow: var(--e-1), inset 0 1px 0 oklch(100% 0 0 / 0.2); }
.btn-primary:hover { background: var(--accent-ink); }
.btn-secondary { background: var(--surface); color: var(--fg); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--border-strong); background: var(--surface-2); }
.btn-ghost { background: transparent; color: var(--fg); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-sm { padding: 6px 12px; font-size: var(--step-0); border-radius: var(--r-1); }
.btn-lg { padding: 14px 24px; font-size: var(--step-2); border-radius: var(--r-3); }

/* Pills / chips / badges */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--r-pill); font-size: 12px; font-weight: 500; letter-spacing: 0.02em; background: var(--surface-2); color: var(--fg); border: 1px solid var(--border); }
.pill-accent { background: var(--accent-tint); color: var(--accent-ink); border-color: transparent; }
.pill-success { background: var(--success-tint); color: var(--success); border-color: transparent; }
.pill-danger { background: var(--danger-tint); color: var(--danger); border-color: transparent; }
.pill-warning { background: var(--warning-tint); color: oklch(45% 0.16 60); border-color: transparent; }
.pill-info { background: var(--info-tint); color: var(--info); border-color: transparent; }
.pill-dot::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; display: inline-block; }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-3); padding: var(--s-5); }
.card-tight { padding: var(--s-4); }
.card-elev { background: var(--surface); border-radius: var(--r-3); box-shadow: var(--e-2); padding: var(--s-5); }
.card-peach { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-3); padding: var(--s-5); }

/* Inputs */
.input, .select, .textarea {
  width: 100%; padding: 10px 14px; border-radius: var(--r-2);
  border: 1px solid var(--border); background: var(--surface);
  font-family: inherit; font-size: var(--step-1); color: var(--fg);
  transition: border-color var(--t-quick), box-shadow var(--t-quick);
}
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-tint);
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: var(--step-0); font-weight: 500; color: var(--muted); }

/* Tables */
.tbl { width: 100%; border-collapse: collapse; font-size: var(--step-1); }
.tbl thead th {
  text-align: left; font-weight: 500; font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--muted); padding: 12px 14px;
  border-bottom: 1px solid var(--border); background: var(--bg);
}
.tbl tbody td { padding: 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.tbl tbody tr:hover td { background: var(--surface-2); }
.tbl-tight tbody td, .tbl-tight thead th { padding: 8px 12px; }

/* Layout helpers */
.row { display: flex; gap: var(--s-4); align-items: center; }
.col { display: flex; flex-direction: column; gap: var(--s-4); }
.grow { flex: 1 1; }
.between { justify-content: space-between; }
.center { justify-content: center; }
.gap-2 { gap: var(--s-2); } .gap-3 { gap: var(--s-3); } .gap-4 { gap: var(--s-4); } .gap-5 { gap: var(--s-5); } .gap-6 { gap: var(--s-6); }

/* App shell (desktop ops console) */
.app {
  display: grid;
  grid-template-columns: 240px 1fr;
  grid-template-rows: 64px 1fr;
  grid-template-areas: "sidebar topbar" "sidebar main";
  height: 100vh;
}
.sidebar {
  grid-area: sidebar;
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: var(--s-5) var(--s-4);
  display: flex; flex-direction: column; gap: var(--s-5);
  overflow-y: auto;
}
.sidebar .brand { display: flex; align-items: center; gap: 10px; padding: 0 var(--s-2); font-family: var(--font-wordmark); color: var(--accent-ink); font-size: var(--step-3); letter-spacing: 0.04em; }
.sidebar .brand .logo { width: 28px; height: 28px; border-radius: 8px; background: var(--accent); display: grid; place-items: center; color: white; font-family: var(--font-display); font-weight: 700; font-size: 16px; letter-spacing: -0.02em; }

.nav { display: flex; flex-direction: column; gap: 2px; }
.nav .nav-section { font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); padding: var(--s-3) var(--s-3) var(--s-1); font-family: var(--font-mono); font-weight: 500; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--r-1); color: var(--fg); font-weight: 500; font-size: var(--step-1); transition: background var(--t-quick); }
.nav a:hover { background: var(--surface-2); text-decoration: none; }
.nav a.active { background: var(--accent-tint); color: var(--accent-ink); }
.nav a svg { width: 18px; height: 18px; flex-shrink: 0; stroke-width: 1.75; }

.topbar {
  grid-area: topbar;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: var(--s-4);
  padding: 0 var(--s-6);
}
.topbar .crumbs { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: var(--step-1); }
.topbar .crumbs strong { color: var(--fg); font-weight: 600; }

.main {
  grid-area: main;
  overflow-y: auto;
  padding: var(--s-6) var(--s-7);
}

.page-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: var(--s-6); gap: var(--s-5); flex-wrap: wrap; }
.page-head h1 { font-size: var(--step-6); }
.page-head .sub { color: var(--muted); margin-top: 6px; max-width: 60ch; }

/* Stat tiles */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); grid-gap: var(--s-4); gap: var(--s-4); }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-3); padding: var(--s-5); }
.stat .label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); font-family: var(--font-mono); font-weight: 500; }
.stat .value { font-family: var(--font-display); font-size: var(--step-6); font-weight: 600; letter-spacing: -0.02em; margin-top: 6px; font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; }
.stat .delta { display: inline-flex; align-items: center; gap: 4px; font-size: var(--step-0); margin-top: var(--s-2); }
.stat .delta.up { color: var(--success); }
.stat .delta.down { color: var(--danger); }

/* Section blocks */
.section { margin-bottom: var(--s-7); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: var(--s-4); gap: var(--s-4); }
.section-head h2 { font-size: var(--step-4); letter-spacing: -0.01em; }
.section-head .actions { display: flex; gap: var(--s-2); }

/* Phone frame (mobile screens) */
.phone-frame {
  width: 390px; height: 844px; background: #000;
  border-radius: 56px; padding: 12px;
  box-shadow: 0 30px 80px oklch(28% 0.06 35 / 0.18), 0 0 0 1px oklch(0% 0 0 / 0.06);
  position: relative;
}
.phone-screen { width: 100%; height: 100%; border-radius: 44px; overflow: hidden; background: var(--bg); position: relative; }
.phone-island { position: absolute; top: 11px; left: 50%; transform: translateX(-50%); width: 124px; height: 36px; border-radius: 22px; background: #000; z-index: 50; }
.phone-status {
  position: absolute; top: 0; left: 0; right: 0; height: 54px;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 32px 0; font-size: 15px; font-weight: 600; color: var(--fg); z-index: 40;
  font-family: var(--font-body); letter-spacing: -0.01em;
}
.phone-status .right { display: inline-flex; align-items: center; gap: 6px; }
.phone-home-indicator { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); width: 134px; height: 5px; border-radius: 3px; background: var(--fg); opacity: 0.8; z-index: 40; }
.phone-body { padding: 54px 0 38px; height: 100%; overflow: hidden; display: flex; flex-direction: column; }

/* Mobile tab bar */
.tabbar {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: oklch(100% 0 0 / 0.92); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-top: 1px solid var(--border); display: flex; justify-content: space-around;
  padding: 8px 0 28px;
}
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10px; color: var(--muted); padding: 4px 8px; }
.tabbar a.active { color: var(--accent-ink); }
.tabbar a svg { width: 22px; height: 22px; }

/* Mobile app header */
.app-header { padding: var(--s-3) var(--s-5); display: flex; align-items: center; justify-content: space-between; }
.app-header h1 { font-size: var(--step-4); }

/* Util */
.divider { height: 1px; background: var(--border); margin: var(--s-5) 0; border: 0; }
.placeholder-img {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  border-radius: var(--r-3); position: relative; overflow: hidden;
}
.placeholder-img::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 20%, oklch(100% 0 0 / 0.18), transparent 60%);
}
.placeholder-img.warm { background: linear-gradient(135deg, oklch(80% 0.14 50), oklch(72% 0.16 35)); }
.placeholder-img.green { background: linear-gradient(135deg, oklch(85% 0.10 145), oklch(65% 0.14 145)); }
.placeholder-img.cream { background: linear-gradient(135deg, var(--surface-2), var(--surface-3)); }

/* Code */
code, .mono { font-family: var(--font-mono); font-size: 0.92em; }
.code-block {
  font-family: var(--font-mono); font-size: 13px; background: oklch(20% 0.04 35);
  color: oklch(92% 0.02 60); padding: var(--s-4) var(--s-5); border-radius: var(--r-3);
  overflow-x: auto; line-height: 1.6; white-space: pre;
}

/* Avatar */
.avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); display: grid; place-items: center; color: white; font-weight: 600; font-size: 14px; font-family: var(--font-body); flex-shrink: 0; }
.avatar-sm { width: 28px; height: 28px; font-size: 12px; }
.avatar-lg { width: 56px; height: 56px; font-size: 20px; }

/* Inline svg icon helper */
.icon { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.75; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.icon-lg { width: 24px; height: 24px; }
.icon-xl { width: 32px; height: 32px; }

/* Scrollbar polish */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-strong); }
::-webkit-scrollbar-track { background: transparent; }

/* Hub-specific (index.html) */
.hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); grid-gap: var(--s-4); gap: var(--s-4); }
.hub-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-3); padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-3); text-decoration: none; color: var(--fg); transition: transform var(--t-quick), box-shadow var(--t-quick), border-color var(--t-quick); }
.hub-card:hover { transform: translateY(-2px); box-shadow: var(--e-2); border-color: var(--accent); text-decoration: none; }
.hub-card .badge { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.hub-card h3 { font-size: var(--step-3); }
.hub-card p { font-size: var(--step-1); color: var(--muted); }

/* Empty state visualisation for placeholders */
.empty-thumb { aspect-ratio: 16/10; border-radius: var(--r-2); background: var(--surface-2); display: grid; place-items: center; color: var(--muted); font-size: var(--step-0); }

/* ---------- Live UI primitives (driven by assets/interactions.js) ---------- */

/* Backdrop shared by drawer + modal */
.od-backdrop {
  position: fixed; inset: 0; background: oklch(20% 0.04 35 / 0.42);
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none;
  transition: opacity var(--t-med);
  z-index: 200;
}
.od-backdrop.open { opacity: 1; pointer-events: auto; }

/* Side drawer */
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(540px, 100vw); background: var(--surface);
  border-left: 1px solid var(--border);
  box-shadow: -24px 0 60px oklch(28% 0.06 35 / 0.18);
  transform: translateX(100%);
  transition: transform var(--t-med);
  z-index: 210;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.drawer.open { transform: translateX(0); }
.drawer.wide { width: min(760px, 100vw); }
.drawer-head { padding: var(--s-5) var(--s-6); border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s-4); }
.drawer-head .eyebrow { display: block; margin-bottom: 4px; }
.drawer-head h2 { font-size: var(--step-4); letter-spacing: -0.01em; }
.drawer-body { padding: var(--s-5) var(--s-6); overflow-y: auto; flex: 1 1; }
.drawer-foot { padding: var(--s-4) var(--s-6); border-top: 1px solid var(--border); display: flex; gap: var(--s-3); justify-content: flex-end; background: var(--bg); }
.icon-btn {
  width: 32px; height: 32px; border-radius: var(--r-1); border: 1px solid var(--border);
  background: var(--surface); display: grid; place-items: center; cursor: pointer;
  color: var(--muted); transition: background var(--t-quick), color var(--t-quick);
}
.icon-btn:hover { background: var(--surface-2); color: var(--fg); }

/* Modal — small centered card */
.modal {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -48%) scale(0.96);
  width: min(520px, 92vw); background: var(--surface);
  border-radius: var(--r-3); box-shadow: var(--e-3);
  opacity: 0; pointer-events: none;
  transition: transform var(--t-med), opacity var(--t-med);
  z-index: 220;
  display: flex; flex-direction: column;
  max-height: 86vh; overflow: hidden;
}
.modal.open { transform: translate(-50%, -50%) scale(1); opacity: 1; pointer-events: auto; }
.modal-head { padding: var(--s-5) var(--s-5) var(--s-3); }
.modal-head h3 { font-size: var(--step-3); letter-spacing: -0.01em; }
.modal-body { padding: var(--s-3) var(--s-5) var(--s-5); overflow-y: auto; flex: 1 1; }
.modal-foot { padding: var(--s-3) var(--s-5) var(--s-5); display: flex; justify-content: flex-end; gap: var(--s-2); }

/* Toast stack */
.toast-stack { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 240; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast {
  background: var(--fg); color: oklch(96% 0.04 60);
  padding: 12px 18px; border-radius: var(--r-2); font-size: var(--step-0); font-weight: 500;
  box-shadow: var(--e-2); display: flex; align-items: center; gap: var(--s-3);
  transform: translateY(20px); opacity: 0;
  transition: transform var(--t-med), opacity var(--t-med);
  max-width: 90vw; pointer-events: auto;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); }
.toast.toast-danger .dot { background: var(--danger); }
.toast.toast-warn .dot { background: var(--warning); }
.toast.toast-info .dot { background: var(--info); }

/* Tabs */
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--border); align-items: stretch; }
.tabs .tab {
  padding: 12px 18px; font-size: var(--step-1); font-weight: 500; color: var(--muted);
  border-bottom: 2px solid transparent; cursor: pointer; -webkit-user-select: none; -moz-user-select: none; user-select: none;
  transition: color var(--t-quick), border-color var(--t-quick);
  font-family: inherit; background: transparent; border-left: 0; border-right: 0; border-top: 0;
}
.tabs .tab:hover { color: var(--fg); }
.tabs .tab.active { color: var(--accent-ink); border-bottom-color: var(--accent); }
.tab-panel { display: none; padding: var(--s-5) 0 0; }
.tab-panel.active { display: block; }

/* Switch / toggle */
.switch { position: relative; display: inline-flex; align-items: center; cursor: pointer; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch .track {
  width: 36px; height: 20px; background: var(--surface-3); border-radius: 99px;
  transition: background var(--t-quick); position: relative;
}
.switch .track::after {
  content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px;
  background: var(--surface); border-radius: 50%; transition: transform var(--t-quick);
  box-shadow: 0 1px 3px oklch(28% 0.06 35 / 0.15);
}
.switch input:checked + .track { background: var(--accent); }
.switch input:checked + .track::after { transform: translateX(16px); }
.switch .lbl { margin-left: 10px; font-size: var(--step-1); font-weight: 500; }

/* Dietary marker (veg/non-veg square) */
.dot-veg, .dot-egg, .dot-nonveg { width: 12px; height: 12px; border-radius: 2px; border: 1.5px solid var(--success); position: relative; display: inline-block; flex-shrink: 0; }
.dot-veg::after { content: ''; position: absolute; inset: 2px; background: var(--success); border-radius: 50%; }
.dot-egg { border-color: var(--warning); }
.dot-egg::after { content: ''; position: absolute; inset: 2px; background: var(--warning); border-radius: 50%; }
.dot-nonveg { border-color: var(--danger); }
.dot-nonveg::after { content: ''; position: absolute; inset: 2px; background: var(--danger); }

/* Filter bar */
.filter-bar { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; padding: var(--s-3) 0; }
.filter-bar .chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: var(--r-pill); background: var(--surface);
  border: 1px solid var(--border); font-size: var(--step-0); font-weight: 500;
  cursor: pointer; -webkit-user-select: none; -moz-user-select: none; user-select: none; transition: all var(--t-quick); color: var(--fg);
}
.filter-bar .chip:hover { border-color: var(--border-strong); }
.filter-bar .chip.active { background: var(--accent-tint); border-color: transparent; color: var(--accent-ink); }
.filter-bar .chip .count { font-family: var(--font-mono); font-size: 10px; opacity: 0.7; }

/* Two-column detail layout */
.split { display: grid; grid-template-columns: 320px 1fr; grid-gap: var(--s-5); gap: var(--s-5); align-items: flex-start; }
@media (max-width: 1100px) { .split { grid-template-columns: 1fr; } }
.detail-side { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-3); padding: var(--s-4); position: -webkit-sticky; position: sticky; top: var(--s-4); }

/* Stepper / numbered list */
.steps { display: flex; flex-direction: column; gap: var(--s-3); counter-reset: stp; }
.steps li { list-style: none; display: flex; gap: 12px; align-items: flex-start; counter-increment: stp; }
.steps li::before { content: counter(stp); flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--accent-tint); color: var(--accent-ink); display: grid; place-items: center; font-family: var(--font-mono); font-weight: 600; font-size: 12px; }

/* Helper to push to right of flex */
.ml-auto { margin-left: auto; }
.text-right { text-align: right; }
.nowrap { white-space: nowrap; }

/* Danger button */
.btn-danger { background: var(--danger); color: white; box-shadow: var(--e-1), inset 0 1px 0 oklch(100% 0 0 / 0.2); }
.btn-danger:hover { background: oklch(48% 0.22 28); }

/* ---------- Dropdown menu ---------- */
.dd-anchor { position: relative; }
.dd-trigger {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px;
  border-radius: var(--r-1); background: var(--surface); border: 1px solid var(--border);
  font-family: inherit; font-size: var(--step-0); font-weight: 500; color: var(--fg);
  cursor: pointer; transition: border-color var(--t-quick), background var(--t-quick);
}
.dd-trigger:hover { border-color: var(--border-strong); background: var(--surface-2); }
.dd-trigger .dd-caret { width: 12px; height: 12px; opacity: 0.6; }
.dd-trigger .dd-label { font-weight: 500; }
.dd-menu {
  position: absolute; z-index: 230;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-2); box-shadow: var(--e-2);
  padding: 6px; min-width: 180px;
  opacity: 0; pointer-events: none; transform: translateY(-4px);
  transition: opacity var(--t-quick), transform var(--t-quick);
  max-height: 360px; overflow-y: auto;
}
.dd-menu.open { opacity: 1; pointer-events: auto; transform: translateY(0); }
.dd-menu .item, .dd-menu [data-select] {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: var(--r-1); cursor: pointer;
  font-size: var(--step-0); color: var(--fg); -webkit-user-select: none; -moz-user-select: none; user-select: none;
  transition: background var(--t-quick);
}
.dd-menu .item:hover, .dd-menu [data-select]:hover { background: var(--surface-2); }
.dd-menu .item.active, .dd-menu [data-select].active { background: var(--accent-tint); color: var(--accent-ink); font-weight: 500; }
.dd-menu .dd-section { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); padding: 8px 12px 4px; font-weight: 500; }
.dd-menu .dd-divider { height: 1px; background: var(--border); margin: 4px 0; }

/* ---------- Inline edit ---------- */
[data-edit] {
  cursor: text; position: relative;
  border-radius: 4px; padding: 1px 4px; margin: -1px -4px;
  transition: background var(--t-quick), box-shadow var(--t-quick);
}
[data-edit]:hover {
  background: var(--accent-tint);
  box-shadow: inset 0 0 0 1px var(--accent);
}
[data-edit]::after {
  content: '✎'; position: absolute; right: -16px; top: 50%; transform: translateY(-50%);
  font-size: 11px; color: var(--accent-ink); opacity: 0; transition: opacity var(--t-quick);
  pointer-events: none;
}
[data-edit]:hover::after { opacity: 0.6; }
.inline-edit-input {
  width: 100%; min-width: 60px; padding: 4px 6px;
  border: 1px solid var(--accent); border-radius: 4px;
  background: var(--surface); font-family: inherit; font-size: inherit; color: var(--fg);
  outline: none; box-shadow: 0 0 0 3px var(--accent-tint);
}
.inline-edit-input::-webkit-outer-spin-button,
.inline-edit-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ---------- Segmented control ---------- */
.seg-group {
  display: inline-flex; background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--r-pill); padding: 3px;
}
.seg-group .seg {
  border: 0; background: transparent; padding: 6px 14px;
  font-family: inherit; font-size: var(--step-0); font-weight: 500;
  border-radius: var(--r-pill); cursor: pointer; color: var(--muted);
  transition: background var(--t-quick), color var(--t-quick), box-shadow var(--t-quick);
}
.seg-group .seg:hover { color: var(--fg); }
.seg-group .seg.active { background: var(--surface); color: var(--fg); box-shadow: var(--e-1); }
.seg-panel { display: none; }
.seg-panel.active { display: block; }

/* ---------- Row remove (trash icon) ---------- */
.row-remove {
  display: inline-grid; place-items: center;
  width: 28px; height: 28px; border-radius: var(--r-1);
  background: transparent; border: 0; cursor: pointer; color: var(--muted);
  transition: background var(--t-quick), color var(--t-quick);
}
.row-remove:hover { background: var(--danger-tint); color: var(--danger); }

/* ---------- Drag-drop targets ---------- */
.drop-target {
  outline: 2px dashed var(--accent);
  outline-offset: -4px;
  background: var(--accent-tint);
}
.dragging { opacity: 0.45; cursor: -webkit-grabbing; cursor: grabbing; }

/* ---------- Pagination ---------- */
.pagination { display: flex; align-items: center; gap: var(--s-2); }
.pagination .pg { width: 32px; height: 32px; border-radius: var(--r-1); border: 1px solid var(--border); background: var(--surface); display: grid; place-items: center; font-size: var(--step-0); cursor: pointer; }
.pagination .pg:hover { background: var(--surface-2); }
.pagination .pg.active { background: var(--accent); color: white; border-color: transparent; }

/* ---------- Sidebar footer (Phase B: user + sign-out) ---------- */
.user-foot {
  margin-top: auto;
  padding: var(--s-3);
  border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 6px;
}
.user-strip {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: var(--r-2);
  text-decoration: none; color: var(--fg);
  transition: background var(--t-quick);
}
.user-strip:hover { background: var(--surface-2); text-decoration: none; }
.logout-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: var(--r-2);
  background: transparent; border: 0; cursor: pointer; color: var(--muted);
  font: inherit; font-size: var(--step-0); font-weight: 500;
  width: 100%; text-align: left;
  transition: background var(--t-quick), color var(--t-quick);
}
.logout-btn:hover { background: var(--danger-tint); color: var(--danger); }
.logout-btn svg { width: 16px; height: 16px; }

/* Session badge (topbar) */
.session-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 10px 4px 4px; border-radius: var(--r-pill);
  background: var(--surface); border: 1px solid var(--border);
  font-size: 12px; color: var(--fg); text-decoration: none;
}
.session-badge:hover { border-color: var(--accent); text-decoration: none; }
.session-badge .avatar { width: 24px; height: 24px; font-size: 11px; }
.session-badge .role { color: var(--muted); font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; }

/* Modal close-after helper hook (handled by interactions.js) */

/* Role-aware sidebar — elements with this attr are hidden by initRoleSidebar() */
[data-role-hide] { display: none !important; }

/* Print quality: hide app shell when printing labels */
@media print {
  .sidebar, .topbar, .drawer, .modal, .od-backdrop, .toast-stack, .dd-menu { display: none !important; }
  .app { display: block; height: auto; }
  .main { padding: 0; overflow: visible; }
}

/*!*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ../../node_modules/.pnpm/next@15.5.18_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!../../node_modules/.pnpm/next@15.5.18_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[3]!./src/app/globals.css ***!
  \*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/* B2B portal layout-specific overrides only — primitives live in tokens.css. */

.auth-shell { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
@media (max-width: 900px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-shell .auth-side { display: none; }
}

.auth-side {
  background:
    radial-gradient(circle at 70% 30%, oklch(85% 0.10 80 / 0.7), transparent 55%),
    radial-gradient(circle at 25% 80%, oklch(76% 0.14 60 / 0.6), transparent 55%),
    linear-gradient(150deg, oklch(82% 0.10 70), oklch(72% 0.16 50));
  color: oklch(22% 0.04 50);
  padding: var(--s-9) var(--s-8);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.auth-side > * { position: relative; z-index: 1; }

.auth-brand { display: flex; align-items: center; gap: var(--s-3); font-family: var(--font-wordmark); font-size: var(--step-3); color: var(--accent-ink); }
.auth-brand .logo { background: var(--accent-ink); color: white; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 22px; }
.auth-brand .portal-pill { background: oklch(100% 0 0 / 0.85); color: var(--accent-ink); border: 1px solid oklch(100% 0 0 / 0.4); padding: 3px 10px; border-radius: var(--r-pill); font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; margin-left: 4px; }

.auth-tagline { font-family: var(--font-display); font-style: italic; font-size: clamp(36px, 4vw, 56px); line-height: 1.05; letter-spacing: -0.02em; max-width: 16ch; color: oklch(22% 0.04 50); }
.auth-tagline em { font-style: normal; color: var(--accent-ink); }

.feature-list { display: flex; flex-direction: column; gap: var(--s-2); margin-top: var(--s-4); }
.feature-list .row { display: flex; align-items: center; gap: 10px; font-size: var(--step-1); }
.feature-list .row svg { color: var(--accent-ink); flex-shrink: 0; }

.client-strip { display: grid; grid-template-columns: repeat(4, 1fr); grid-gap: var(--s-3); gap: var(--s-3); margin-top: var(--s-3); }
.client-strip .client { background: oklch(100% 0 0 / 0.85); border-radius: var(--r-2); padding: 10px 12px; display: flex; flex-direction: column; align-items: center; gap: 4px; font-family: var(--font-display); font-weight: 700; color: var(--accent-ink); font-size: 14px; }
.client-strip .client .sub { font-family: var(--font-mono); font-size: 9px; color: var(--muted); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; }

.auth-main { display: flex; align-items: center; justify-content: center; padding: var(--s-7) var(--s-6); background: var(--bg); }
.auth-card { width: 100%; max-width: 420px; }
.auth-card h1 { font-size: var(--step-5); line-height: 1.1; }
.auth-card .sub { color: var(--muted); margin-top: var(--s-2); }

.magic-info { background: var(--accent-tint); color: var(--accent-ink); border-radius: var(--r-2); padding: 12px 14px; font-size: 13px; margin-top: var(--s-4); display: flex; gap: 10px; align-items: flex-start; }
.magic-info svg { flex-shrink: 0; margin-top: 1px; }

.auth-foot { margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px solid var(--border); font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; gap: var(--s-3); flex-wrap: wrap; }

