/* Design Tokens */
:root {
  /* Brand */
  --brand: #2455E8;
  --brand-hover: #1F4AD1;
  --brand-grad-start: #3A6AF0;
  --brand-ring: #1B43BE;
  --brand-tint: #EAF0FD;
  --brand-tint-strong: #D6E2FB;
  --brand-text: #1D46C6;

  /* Aliases still used in templates */
  --accent: var(--brand);
  --accent-hover: var(--brand-hover);
  --accent-glow: #7FA0F5;
  --accent-wash: var(--brand-tint);
  --accent-border: var(--brand-tint-strong);
  --accent-text: var(--brand-text);

  /* Surfaces */
  --white: #FFFFFF;
  --base: #FFFFFF;
  --canvas: #FAFBFC;
  --elevated: #FAFBFC;
  --tint: #F7F9FC;
  --recessed: #F3F5FA;
  --linen: #F3F5FA;
  --ivory: #F7F9FC;
  --onyx: #172033;

  /* Text Scale */
  --ink: #172033;
  --body: #48566D;
  --subtle: #758098;
  --faint: #9AA4B6;

  /* Border */
  --line: rgba(23, 32, 51, 0.10);
  --hairline: #E8EDF3;
  --border-mid: #D5DCE5;
  --line-dark: rgba(255, 255, 255, 0.08);

  /* Semantic */
  --success: #0F7A55; --success-solid: #12A06C; --success-bg: #E6F6EE; --success-border: #BFE8D3;
  --info: var(--brand-text); --info-bg: var(--brand-tint); --info-border: var(--brand-tint-strong);
  --teal: #0F766E; --teal-bg: #E4F5F2; --teal-border: #B4E4DC;
  --warning: #A8620A; --warning-bg: #FCF5E3; --warning-border: #F2DFAE;
  --danger: #C0261D; --danger-solid: #DC2E24; --danger-bg: #FDECEB; --danger-border: #F6C9C5;
  --violet: #7A2BC4; --violet-bg: #F3EAFD; --violet-border: #E1CDF8;
  --neutral-bg: #E8EDF3; --neutral-text: #3A475E;

  /* Kumo elevation */
  --ring: 0 0 0 1px var(--line);
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.08), 0 1px 2px -1px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.06), 0 8px 10px -6px rgba(0, 0, 0, 0.06);

  /* Radii */
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 8px;
  --r-xl: 12px;
  --r-pill: 9999px;

  /* Typography */
  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --container: 1200px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.6;
  color: var(--body);
  background: var(--base);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'cv11', 'ss01';
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { color: var(--ink); margin: 0; line-height: 1.2; font-weight: 600; letter-spacing: -0.02em; }
p { margin: 0; }
.ui-icon { flex-shrink: 0; }
.ui-mono { font-family: var(--font-mono); font-feature-settings: 'tnum' 1; }
.ui-muted { color: var(--subtle); }
.ui-hidden { display: none !important; }
.ui-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* Component Catalog & Interaction System */

/* Buttons */
.ui-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px; padding: 0 12px 1px; border: 0; border-radius: var(--r-md);
  font-size: 14px; font-weight: 500; line-height: 1; white-space: nowrap; user-select: none;
  background: var(--base); color: var(--ink);
  box-shadow: var(--ring), var(--shadow-xs);
  transition: background .15s var(--ease), color .15s var(--ease), box-shadow .15s var(--ease);
}
.ui-btn:hover { background: var(--tint); }
.ui-btn:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--base), 0 0 0 4px var(--brand); }
.ui-btn[disabled], .ui-btn.is-loading { opacity: .5; cursor: not-allowed; pointer-events: none; }
.ui-btn.is-loading::after { content: ''; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: uiSpin .7s linear infinite; }
@keyframes uiSpin { to { transform: rotate(360deg); } }

.ui-btn-primary {
  color: #fff; background: linear-gradient(to bottom, var(--brand-grad-start), var(--brand));
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, .18), 0 0 0 1px var(--brand-ring), var(--shadow-xs);
}
.ui-btn-primary:hover { background: linear-gradient(to bottom, var(--brand), var(--brand-hover)); }
.ui-btn-success {
  color: #fff; background: linear-gradient(to bottom, #19B57C, var(--success-solid));
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, .18), 0 0 0 1px #0C8A5B, var(--shadow-xs);
}
.ui-btn-success:hover { background: linear-gradient(to bottom, var(--success-solid), #0E8C5E); }
.ui-btn-destructive {
  color: #fff; background: linear-gradient(to bottom, #E8463C, var(--danger-solid));
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, .18), 0 0 0 1px #A91F17, var(--shadow-xs);
}
.ui-btn-secondary, .ui-btn-dark { background: var(--base); color: var(--ink); }
.ui-btn-secondary:hover, .ui-btn-dark:hover { background: var(--tint); }
.ui-btn-danger { background: var(--base); color: var(--danger); }
.ui-btn-danger:hover { background: var(--danger-bg); }
.ui-btn-ghost { background: transparent; box-shadow: none; color: var(--ink); }
.ui-btn-ghost:hover { background: var(--recessed); }
.ui-btn-sm { height: 30px; padding: 0 10px 1px; font-size: 13px; border-radius: var(--r-sm); gap: 4px; }
.ui-btn-lg { height: 40px; padding: 0 16px 1px; font-size: 14px; gap: 8px; }
.ui-btn-block { width: 100%; }
.ui-btn-icon { width: 36px; padding: 0; }
.ui-btn-sm.ui-btn-icon { width: 30px; }

/* Badges */
.ui-badge {
  display: inline-flex; align-items: center; gap: 4px;
  height: 20px; padding: 0 8px; border-radius: var(--r-pill);
  font-size: 12px; font-weight: 500; line-height: 1; white-space: nowrap;
  background: var(--neutral-bg); color: var(--neutral-text);
}
.ui-badge-accent, .ui-badge-info { background: var(--brand-tint); color: var(--brand-text); }
.ui-badge-success { background: var(--success-bg); color: var(--success); }
.ui-badge-teal { background: var(--teal-bg); color: var(--teal); }
.ui-badge-warning { background: var(--warning-bg); color: var(--warning); }
.ui-badge-danger { background: var(--danger-bg); color: var(--danger); }
.ui-badge-violet { background: var(--violet-bg); color: var(--violet); }
.ui-badge-inverted { background: var(--ink); color: #fff; }
.ui-badge-outline { background: var(--base); color: var(--ink); box-shadow: inset 0 0 0 1px var(--border-mid); }

/* Status badge mapping */
.status-pending { background: var(--warning-bg); color: var(--warning); }
.status-baking { background: var(--brand-tint); color: var(--brand-text); }
.status-decorating { background: var(--violet-bg); color: var(--violet); }
.status-quality_check { background: var(--neutral-bg); color: var(--neutral-text); }
.status-ready_for_pickup { background: var(--teal-bg); color: var(--teal); }
.status-completed { background: var(--success-bg); color: var(--success); }
.status-cancelled { background: var(--danger-bg); color: var(--danger); }

/* Section tag */
.ui-tag {
  display: inline-flex; align-items: center; gap: 6px;
  height: 24px; padding: 0 10px; border-radius: var(--r-pill);
  background: var(--brand-tint); color: var(--brand-text);
  font-size: 12px; font-weight: 500;
}

/* Forms */
.ui-field { display: flex; flex-direction: column; gap: 6px; }
.ui-label { font-size: 14px; font-weight: 500; color: var(--ink); }
.ui-hint { font-size: 12px; color: var(--subtle); }
.ui-input, .ui-select, .ui-textarea {
  width: 100%; height: 36px; padding: 0 12px; border: 0; border-radius: var(--r-md);
  background: var(--base); color: var(--ink); font-size: 14px;
  box-shadow: 0 0 0 1px var(--line); transition: box-shadow .15s var(--ease);
}
.ui-input::placeholder, .ui-textarea::placeholder { color: var(--faint); }
.ui-textarea { height: auto; min-height: 88px; padding: 8px 12px; resize: vertical; line-height: 1.5; }
.ui-select { appearance: none; -webkit-appearance: none; padding-right: 34px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23758098' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; }
.ui-input[type="file"] { height: auto; padding: 7px 10px; }
.ui-input:focus, .ui-select:focus, .ui-textarea:focus { outline: none; box-shadow: 0 0 0 1.5px rgba(36, 85, 232, .55); }
.ui-input.is-invalid { box-shadow: 0 0 0 1px var(--danger-solid); }
.ui-input:disabled, .ui-select:disabled { color: var(--faint); background: var(--recessed); }
@media (max-width: 640px) { .ui-input, .ui-select, .ui-textarea { font-size: 16px; } }

/* Checkbox (Kumo checkbox) */
.ui-check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--ink); cursor: pointer; }
.ui-check input {
  appearance: none; -webkit-appearance: none; width: 16px; height: 16px; margin: 0; border-radius: var(--r-xs);
  background: var(--base); box-shadow: 0 0 0 1px var(--border-mid); display: grid; place-items: center; cursor: pointer; flex-shrink: 0;
}
.ui-check input:checked { background: var(--brand); box-shadow: 0 0 0 1px var(--brand-ring); }
.ui-check input:checked::after { content: ''; width: 9px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.ui-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Option cards (Kumo radio card pattern) */
.ui-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ui-chip {
  position: relative; display: inline-flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px;
  min-height: 36px; padding: 8px 12px; border: 0; border-radius: var(--r-md);
  background: var(--base); color: var(--ink); text-align: left;
  font-size: 14px; font-weight: 500; line-height: 1.3;
  box-shadow: 0 0 0 1px var(--line), var(--shadow-xs);
  transition: box-shadow .15s var(--ease), background .15s var(--ease);
}
.ui-chip .ui-icon { color: var(--subtle); }
.ui-chip small { font-size: 12px; font-weight: 400; color: var(--subtle); font-family: var(--font-mono); }
.ui-chip:hover { background: var(--tint); }
.ui-chip.is-active { background: var(--brand-tint); box-shadow: 0 0 0 1.5px var(--brand); }
.ui-chip.is-active .ui-icon, .ui-chip.is-active small { color: var(--brand-text); }
.ui-chip[disabled] { opacity: .5; cursor: not-allowed; }

/* Segmented tabs (Kumo Tabs): track + pill items */
.sf-filter, .ui-chips:has(> .ui-chip-pill), .ui-tabs {
  display: inline-flex; flex-wrap: nowrap; gap: 0; max-width: 100%; padding: 2px;
  border-radius: var(--r-md); background: var(--recessed); overflow-x: auto; scrollbar-width: none;
}
.ui-chip-pill {
  flex-direction: row; align-items: center; gap: 6px; flex-shrink: 0; white-space: nowrap;
  min-height: 32px; padding: 0 10px; border-radius: var(--r-sm);
  background: transparent; box-shadow: none; color: var(--subtle); font-size: 14px; font-weight: 500;
}
.ui-chip-pill:hover { background: transparent; color: var(--ink); }
.ui-chip-pill.is-active { background: var(--base); color: var(--ink); box-shadow: 0 0 0 1px var(--line), var(--shadow-sm); }
.ui-chip-pill small { font-size: 12px; }

/* Cards (Kumo surface and layer card) */
.ui-card { background: var(--base); border-radius: var(--r-lg); box-shadow: var(--ring), var(--shadow-xs); }
.ui-card-pad { padding: 20px; }
.ui-card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  min-height: 52px; padding: 10px 16px; background: var(--elevated);
  border-bottom: 1px solid var(--hairline); border-radius: var(--r-lg) var(--r-lg) 0 0;
}
.ui-card-head h2, .ui-card-head h3 { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; }

/* Banners / Alerts (Kumo Banner) */
.ui-alert { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: var(--r-md); font-size: 14px; box-shadow: inset 0 0 0 1px currentColor; }
.ui-alert > * { position: relative; }
.ui-alert-success { background: var(--success-bg); color: var(--success); box-shadow: inset 0 0 0 1px var(--success-border); }
.ui-alert-error { background: var(--danger-bg); color: var(--danger); box-shadow: inset 0 0 0 1px var(--danger-border); }
.ui-alert-info { background: var(--brand-tint); color: var(--brand-text); box-shadow: inset 0 0 0 1px var(--brand-tint-strong); }
.ui-alert-warning { background: var(--warning-bg); color: var(--warning); box-shadow: inset 0 0 0 1px var(--warning-border); }
.ui-alert ul { margin: 0; padding-left: 18px; }

/* Quantity stepper (Kumo button group) */
.ui-qty { display: inline-flex; align-items: center; height: 30px; border-radius: var(--r-sm); background: var(--base); box-shadow: var(--ring), var(--shadow-xs); overflow: hidden; }
.ui-qty button { width: 30px; height: 30px; border: 0; background: transparent; display: grid; place-items: center; color: var(--ink); font-weight: 500; }
.ui-qty button:hover { background: var(--tint); }
.ui-qty span { min-width: 30px; height: 30px; display: grid; place-items: center; font-family: var(--font-mono); font-size: 13px; font-weight: 600; box-shadow: inset 1px 0 0 var(--hairline), inset -1px 0 0 var(--hairline); }

/* Tables (Kumo Table) */
.ui-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ui-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ui-table th { text-align: left; padding: 10px 12px; font-size: 13px; font-weight: 600; color: var(--ink); background: var(--base); border-bottom: 1px solid var(--hairline); white-space: nowrap; }
.ui-table td { padding: 10px 12px; vertical-align: middle; }
.ui-table tbody tr:nth-child(even) td { background: var(--elevated); }
.ui-table tbody tr:hover td { background: var(--tint); }
.ui-table .num { text-align: right; font-family: var(--font-mono); white-space: nowrap; }
.ui-thumb { width: 44px; height: 44px; border-radius: var(--r-sm); object-fit: cover; background: var(--recessed); box-shadow: var(--ring); }

/* Dialog & Drawer (Kumo Dialog) */
.ui-overlay { position: fixed; inset: 0; z-index: 80; background: rgba(23, 32, 51, .40); opacity: 0; visibility: hidden; transition: opacity .2s var(--ease), visibility .2s; }
.ui-overlay.is-open { opacity: 1; visibility: visible; }
.ui-modal { position: fixed; left: 50%; top: 50%; z-index: 90; width: min(440px, calc(100% - 32px)); max-height: calc(100vh - 48px); overflow-y: auto;
  background: var(--base); border-radius: var(--r-xl); box-shadow: var(--ring), var(--shadow-lg);
  transform: translate(-50%, -50%) scale(.95); opacity: 0; visibility: hidden; transition: transform .15s var(--ease), opacity .15s var(--ease), visibility .15s; }
.ui-modal.is-open { transform: translate(-50%, -50%) scale(1); opacity: 1; visibility: visible; }
.ui-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--hairline); }
.ui-modal-head h3 { font-size: 18px; font-weight: 600; }
.ui-modal-body { padding: 28px; }
.ui-drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 90; width: min(440px, 100%);
  display: flex; flex-direction: column; background: var(--base); box-shadow: -1px 0 0 0 var(--line), var(--shadow-lg);
  transform: translateX(100%); transition: transform .3s var(--ease); }
.ui-drawer.is-open { transform: translateX(0); }

/* Toast (Kumo Toast) */
.ui-toast { position: fixed; left: 50%; bottom: 24px; z-index: 120; transform: translate(-50%, 16px); opacity: 0; visibility: hidden;
  display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: var(--r-md); background: var(--base); color: var(--ink);
  font-size: 14px; font-weight: 500; box-shadow: var(--ring), var(--shadow-lg);
  transition: transform .2s var(--ease), opacity .2s var(--ease), visibility .2s; max-width: calc(100% - 32px); }
.ui-toast::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--success-solid); flex-shrink: 0; }
.ui-toast.is-show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }
.ui-toast.is-error { color: var(--danger); }
.ui-toast.is-error::before { background: var(--danger-solid); }

/* Empty state (Kumo Empty) */
.ui-empty { padding: 40px 20px; text-align: center; color: var(--subtle); font-size: 14px; }
.ui-empty .ui-icon { margin: 0 auto 10px; color: var(--faint); }

/* Timeline */
.ui-timeline { list-style: none; margin: 0; padding: 0; }
.ui-timeline li { position: relative; display: flex; gap: 12px; padding-bottom: 16px; }
.ui-timeline li:last-child { padding-bottom: 0; }
.ui-timeline li::before { content: ''; position: absolute; left: 10px; top: 24px; bottom: 0; width: 1px; background: var(--hairline); }
.ui-timeline li:last-child::before { display: none; }
.ui-timeline .tl-dot { position: relative; z-index: 1; width: 21px; height: 21px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: var(--base); box-shadow: 0 0 0 1px var(--border-mid); color: var(--faint); }
.ui-timeline .is-done .tl-dot { background: var(--success-solid); box-shadow: none; color: #fff; }
.ui-timeline .is-current .tl-dot { background: var(--brand); box-shadow: 0 0 0 4px var(--brand-tint); color: #fff; }
.ui-timeline .tl-title { font-weight: 500; color: var(--ink); font-size: 14px; }
.ui-timeline .tl-meta { font-size: 12px; color: var(--subtle); font-family: var(--font-mono); }
.ui-timeline .is-todo .tl-title { color: var(--faint); }

/* Storefront Layout */
.sf-container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .sf-container { padding: 0 24px; } }

/* Announcement bar */
.sf-announce { background: var(--brand); color: #fff; font-size: 13px; font-weight: 500; text-align: center; padding: 8px 16px; }
.sf-announce strong { font-weight: 600; opacity: .85; }

/* Header */
.sf-nav-wrap { position: sticky; top: 0; z-index: 60; background: rgba(255, 255, 255, .88); backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px); box-shadow: 0 1px 0 0 var(--hairline); }
.sf-nav { max-width: var(--container); margin: 0 auto; height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 16px; }
@media (min-width: 768px) { .sf-nav { padding: 0 24px; } }
.sf-brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; color: var(--ink); letter-spacing: -0.02em; line-height: 1.2; }
.sf-brand-mark { width: 32px; height: 32px; border-radius: var(--r-md); background: linear-gradient(to bottom, var(--brand-grad-start), var(--brand)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 0 0 1px var(--brand-ring); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.sf-brand small { display: block; font-size: 12px; font-weight: 400; color: var(--subtle); letter-spacing: 0; }
.sf-nav-links { display: none; gap: 2px; }
.sf-nav-links a { padding: 7px 12px; border-radius: var(--r-md); font-size: 14px; font-weight: 500; color: var(--body); transition: background .15s, color .15s; }
.sf-nav-links a:hover { background: var(--recessed); color: var(--ink); }
.sf-nav-actions { display: flex; align-items: center; gap: 8px; }
.sf-cart-btn { position: relative; }
.sf-cart-count { min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--r-pill); background: #fff; color: var(--brand-text); font-size: 11px; font-weight: 600; display: grid; place-items: center; font-family: var(--font-mono); }
.sf-cart-count:empty { display: none; }
.sf-track-label { display: none; }
@media (max-width: 420px) { .sf-cart-label { display: none; } .sf-brand small { display: none; } }
@media (min-width: 960px) { .sf-nav-links { display: flex; } .sf-track-label { display: inline; } }

/* Section scaffolding */
.sf-section { padding: 72px 0; scroll-margin-top: 64px; }
.sf-section-alt { background: var(--elevated); box-shadow: inset 0 1px 0 var(--hairline), inset 0 -1px 0 var(--hairline); }
.sf-section-ivory { background: var(--tint); }
.sf-head { max-width: 640px; margin-bottom: 32px; }
.sf-head-center { margin-left: auto; margin-right: auto; text-align: center; }
.sf-title { margin-top: 14px; font-weight: 600; font-size: clamp(1.6rem, 3.2vw, 2.4rem); letter-spacing: -0.03em; line-height: 1.15; }
.sf-title .muted { color: var(--subtle); }
.sf-sub { margin-top: 10px; font-size: 16px; color: var(--body); line-height: 1.65; }

/* Hero */
.sf-hero { padding: 40px 0 56px; background: var(--canvas); box-shadow: inset 0 -1px 0 var(--hairline); }
.sf-hero-grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 960px) { .sf-hero-grid { grid-template-columns: 1fr 1fr; gap: 56px; } .sf-hero { padding: 64px 0 72px; } }
.sf-hero h1 { margin-top: 16px; font-weight: 600; font-size: clamp(2.2rem, 5vw, 3.5rem); letter-spacing: -0.035em; line-height: 1.08; }
.sf-hero h1 span { display: block; color: var(--brand); }
.sf-hero-sub { margin-top: 18px; font-size: 17px; color: var(--body); max-width: 520px; line-height: 1.65; }
.sf-hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.sf-proof { display: flex; align-items: center; gap: 12px; margin-top: 24px; font-size: 13px; color: var(--subtle); }
.sf-avatars { display: flex; }
.sf-avatars span { width: 28px; height: 28px; margin-left: -8px; border-radius: 50%; box-shadow: 0 0 0 2px var(--canvas); background: var(--brand-tint); color: var(--brand-text); display: grid; place-items: center; font-size: 11px; font-weight: 600; }
.sf-avatars span:first-child { margin-left: 0; }
.sf-stars { display: inline-flex; color: #F5A524; }
.sf-stars svg { fill: currentColor; }
.sf-hero-media { position: relative; }
.sf-hero-frame { border-radius: var(--r-xl); padding: 6px; background: var(--base); box-shadow: var(--ring), var(--shadow-sm); }
.sf-hero-frame img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: var(--r-md); background: var(--recessed); }
@media (min-width: 960px) { .sf-hero-frame img { aspect-ratio: 1 / 1; max-height: 520px; } }
.sf-hero-float { position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border-radius: var(--r-md); background: rgba(255, 255, 255, .94); box-shadow: var(--ring), var(--shadow-lg); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
@media (min-width: 600px) { .sf-hero-float { left: auto; right: -12px; bottom: 28px; width: 290px; } }
.sf-live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success-solid); position: relative; flex-shrink: 0; }
.sf-live-dot::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--success-solid); opacity: .5; animation: sfPulse 1.8s infinite; }
@keyframes sfPulse { 0% { transform: scale(.6); opacity: .7; } 100% { transform: scale(1.6); opacity: 0; } }
.sf-hero-float strong { display: block; color: var(--ink); font-size: 14px; font-weight: 600; }
.sf-hero-float small { color: var(--subtle); font-size: 12px; }

/* Stat strip */
.sf-stats-wrap { margin-top: -28px; position: relative; z-index: 2; }
.sf-stats { display: grid; grid-template-columns: repeat(2, 1fr); border-radius: var(--r-lg); background: var(--base); box-shadow: var(--ring), var(--shadow-sm); overflow: hidden; }
.sf-stat { padding: 18px 20px; box-shadow: inset -1px -1px 0 var(--hairline); }
@media (min-width: 768px) { .sf-stats { grid-template-columns: repeat(4, 1fr); } .sf-stat { box-shadow: inset -1px 0 0 var(--hairline); } .sf-stat:last-child { box-shadow: none; } }
.sf-stat b { display: block; font-size: 22px; font-weight: 600; color: var(--ink); letter-spacing: -0.02em; }
.sf-stat span { font-size: 13px; color: var(--subtle); }

/* Oven schedule */
.sf-oven { display: grid; border-radius: var(--r-lg); overflow: hidden; background: var(--base); box-shadow: var(--ring), var(--shadow-xs); }
@media (min-width: 768px) { .sf-oven { grid-template-columns: repeat(4, 1fr); } }
.sf-oven-item { padding: 16px 18px; display: flex; gap: 12px; align-items: flex-start; box-shadow: inset 0 -1px 0 var(--hairline); }
@media (min-width: 768px) { .sf-oven-item { box-shadow: inset -1px 0 0 var(--hairline); } .sf-oven-item:last-child { box-shadow: none; } }
.sf-oven-item time { font-family: var(--font-mono); font-weight: 500; color: var(--neutral-text); background: var(--neutral-bg); border-radius: var(--r-pill); padding: 2px 8px; font-size: 12px; }
.sf-oven-item p { font-size: 14px; color: var(--ink); font-weight: 500; line-height: 1.4; }
.sf-oven-item.is-now { background: var(--brand-tint); }
.sf-oven-item.is-now time { background: var(--brand); color: #fff; }

/* Category filter */
.sf-filter { margin-bottom: 24px; }
.sf-filter::-webkit-scrollbar { display: none; }

/* Product grid */
.sf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 768px) { .sf-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1100px) { .sf-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.sf-card { display: flex; flex-direction: column; background: var(--base); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--ring), var(--shadow-xs); transition: box-shadow .2s var(--ease); }
.sf-card:hover { box-shadow: 0 0 0 1px var(--border-mid), var(--shadow-sm); }
.sf-card-media { position: relative; aspect-ratio: 1 / 1; background: var(--recessed); overflow: hidden; }
.sf-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.sf-card:hover .sf-card-media img { transform: scale(1.03); }
.sf-card-media .ui-badge { position: absolute; top: 10px; left: 10px; }
.sf-card-body { display: flex; flex-direction: column; gap: 4px; padding: 14px; flex: 1; }
.sf-card-body h3 { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.sf-card-body p { font-size: 13px; color: var(--subtle); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sf-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 10px; }
.sf-price { font-family: var(--font-mono); font-weight: 600; color: var(--ink); font-size: 14px; }
.sf-stock { font-size: 12px; color: var(--subtle); }
.sf-stock.is-low { color: var(--warning); font-weight: 500; }
@media (max-width: 480px) { .sf-card-body { padding: 12px; } .sf-card-foot { flex-direction: column; align-items: stretch; } .sf-card-foot .ui-btn { width: 100%; } }

/* Builder layout */
.sf-builder { display: grid; gap: 20px; }
.sf-builder > * { min-width: 0; }
@media (min-width: 960px) { .sf-builder { grid-template-columns: 1.5fr 1fr; align-items: start; } }
.sf-step { padding: 20px; border-bottom: 1px solid var(--hairline); }
.sf-step:last-child { border-bottom: 0; }
.sf-step-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.sf-step-num { width: 22px; height: 22px; border-radius: var(--r-pill); background: var(--ink); color: #fff; font-size: 12px; font-weight: 600; display: grid; place-items: center; font-family: var(--font-mono); }
.sf-step-head h3 { font-size: 15px; font-weight: 600; }
.sf-design-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.sf-design { border: 0; border-radius: var(--r-md); background: var(--base); overflow: hidden; text-align: left; padding: 0; box-shadow: 0 0 0 1px var(--line), var(--shadow-xs); transition: box-shadow .15s; }
.sf-design img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: var(--recessed); }
.sf-design span { display: block; padding: 8px 10px; font-size: 12px; font-weight: 500; color: var(--ink); line-height: 1.3; }
.sf-design.is-active { background: var(--brand-tint); box-shadow: 0 0 0 2px var(--brand); }
.sf-summary { position: sticky; top: 80px; }
.sf-summary-media { aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1px solid var(--hairline); border-radius: var(--r-lg) var(--r-lg) 0 0; background: var(--recessed); }
.sf-summary-media img { width: 100%; height: 100%; object-fit: cover; }
.sf-summary-rows { padding: 16px 20px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.sf-summary-rows div { display: flex; justify-content: space-between; gap: 12px; }
.sf-summary-rows dt { color: var(--subtle); }
.sf-summary-rows dd { margin: 0; font-weight: 500; color: var(--ink); text-align: right; }
.sf-summary-total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 20px; border-top: 1px solid var(--hairline); background: var(--elevated); }
.sf-summary-total b { font-family: var(--font-mono); font-size: 20px; font-weight: 600; color: var(--ink); }
.sf-summary .ui-btn { white-space: normal; text-align: center; line-height: 1.2; min-width: 0; }
.sf-counter { font-family: var(--font-mono); font-size: 12px; color: var(--subtle); text-align: right; }

/* Pastry box builder */
.sf-box-slots { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; padding: 12px; background: var(--recessed); border-radius: var(--r-md); }
.sf-box-slot { aspect-ratio: 1 / 1; border-radius: var(--r-sm); background: var(--base); box-shadow: inset 0 0 0 1px var(--border-mid); overflow: hidden; position: relative; }
.sf-box-slot:empty { background: transparent; box-shadow: inset 0 0 0 1px var(--border-mid); border: 1px dashed var(--border-mid); }
.sf-box-slot img { width: 100%; height: 100%; object-fit: cover; }
.sf-box-slot button { position: absolute; inset: 0; width: 100%; border: 0; background: transparent; opacity: 0; color: #fff; display: grid; place-items: center; }
.sf-box-slot button:hover { opacity: 1; background: rgba(23, 32, 51, .5); }
.sf-box-picks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 600px) { .sf-box-picks { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sf-pick { display: flex; align-items: center; gap: 10px; padding: 8px; border: 0; border-radius: var(--r-md); background: var(--base); text-align: left; box-shadow: 0 0 0 1px var(--line), var(--shadow-xs); transition: box-shadow .15s, background .15s; }
.sf-pick:hover { background: var(--tint); }
.sf-pick img { width: 40px; height: 40px; border-radius: var(--r-sm); object-fit: cover; background: var(--recessed); }
.sf-pick span { min-width: 0; overflow-wrap: anywhere; font-size: 13px; font-weight: 500; color: var(--ink); line-height: 1.25; }
.sf-pick small { display: block; font-size: 11px; color: var(--subtle); font-weight: 400; }
.sf-pick[disabled] { opacity: .5; cursor: not-allowed; }

/* How it works */
.sf-steps { display: grid; gap: 12px; }
@media (min-width: 768px) { .sf-steps { grid-template-columns: repeat(4, 1fr); } }
.sf-how { padding: 20px; background: var(--base); border-radius: var(--r-lg); box-shadow: var(--ring), var(--shadow-xs); }
.sf-how-num { font-family: var(--font-mono); font-size: 12px; color: var(--subtle); }
.sf-how h3 { margin: 10px 0 4px; font-size: 15px; font-weight: 600; }
.sf-how p { font-size: 14px; color: var(--body); }
.sf-how-icon { width: 36px; height: 36px; margin-bottom: 12px; border-radius: var(--r-md); display: grid; place-items: center; background: var(--brand-tint); color: var(--brand); }

/* Baker story */
.sf-story { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .sf-story { grid-template-columns: 1fr 1.1fr; gap: 56px; } }
.sf-story img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-xl); box-shadow: var(--ring); background: var(--recessed); }
.sf-story blockquote { margin: 18px 0 0; font-size: clamp(1.15rem, 2vw, 1.45rem); font-weight: 500; line-height: 1.5; color: var(--ink); letter-spacing: -0.015em; }
.sf-story cite { display: block; margin-top: 14px; font-style: normal; font-weight: 600; color: var(--ink); }
.sf-values { display: grid; gap: 10px; margin-top: 24px; }
@media (min-width: 600px) { .sf-values { grid-template-columns: repeat(3, 1fr); } }
.sf-value { padding: 14px; border-radius: var(--r-md); background: var(--elevated); box-shadow: var(--ring); }
.sf-value b { display: block; color: var(--ink); font-size: 14px; font-weight: 600; margin-top: 8px; }
.sf-value span { font-size: 13px; color: var(--subtle); }
.sf-value .ui-icon { color: var(--brand); }

/* Gallery */
.sf-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 768px) { .sf-gallery { grid-template-columns: repeat(3, 1fr); } .sf-gallery figure:first-child { grid-row: span 2; } }
.sf-gallery figure { margin: 0; position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--recessed); box-shadow: var(--ring); }
.sf-gallery img { width: 100%; height: 100%; min-height: 160px; aspect-ratio: 1 / 1; object-fit: cover; }
.sf-gallery figcaption { position: absolute; left: 10px; bottom: 10px; height: 22px; padding: 0 8px; display: inline-flex; align-items: center; border-radius: var(--r-pill); background: rgba(255, 255, 255, .92); font-size: 12px; font-weight: 500; color: var(--ink); box-shadow: var(--ring); }

/* Reviews slider */
.sf-reviews { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 8px; scrollbar-width: none; }
.sf-reviews::-webkit-scrollbar { display: none; }
.sf-review { flex: 0 0 min(340px, 86%); scroll-snap-align: start; padding: 20px; background: var(--base); border-radius: var(--r-lg); box-shadow: var(--ring), var(--shadow-xs); display: flex; flex-direction: column; gap: 12px; }
.sf-review p { color: var(--ink); font-size: 15px; line-height: 1.6; }
.sf-review footer { display: flex; align-items: center; gap: 10px; margin-top: auto; font-size: 14px; font-weight: 600; color: var(--ink); }
.sf-review footer span { width: 30px; height: 30px; border-radius: 50%; background: var(--brand-tint); color: var(--brand-text); display: grid; place-items: center; font-size: 12px; }
.sf-slider-nav { display: flex; gap: 8px; }

/* FAQ accordion (Kumo Collapsible) */
.sf-faq { max-width: 760px; margin: 0 auto; border-radius: var(--r-lg); background: var(--base); box-shadow: var(--ring), var(--shadow-xs); overflow: hidden; }
.sf-faq-item { border-bottom: 1px solid var(--hairline); }
.sf-faq-item:last-child { border-bottom: 0; }
.sf-faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; border: 0; background: transparent; text-align: left; font-weight: 500; font-size: 15px; color: var(--ink); }
.sf-faq-q:hover { background: var(--tint); }
.sf-faq-q .ui-icon { transition: transform .25s var(--ease); color: var(--subtle); }
.sf-faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s var(--ease); }
.sf-faq-a > div { overflow: hidden; }
.sf-faq-a p { padding: 0 20px 16px; color: var(--body); font-size: 14px; line-height: 1.7; }
.sf-faq-item.is-open { background: var(--elevated); }
.sf-faq-item.is-open .sf-faq-a { grid-template-rows: 1fr; }
.sf-faq-item.is-open .sf-faq-q .ui-icon { transform: rotate(180deg); color: var(--brand); }

/* Visit & CTA band */
.sf-visit { display: grid; gap: 12px; }
@media (min-width: 768px) { .sf-visit { grid-template-columns: repeat(3, 1fr); } }
.sf-visit-card { padding: 20px; border-radius: var(--r-lg); background: var(--base); box-shadow: var(--ring), var(--shadow-xs); display: flex; gap: 14px; }
.sf-visit-card .ui-icon { color: var(--brand); }
.sf-visit-card b { display: block; color: var(--ink); font-weight: 600; margin-bottom: 4px; }
.sf-visit-card span, .sf-visit-card a { font-size: 14px; color: var(--body); }
.sf-cta { border-radius: var(--r-xl); background: var(--brand); color: #fff; padding: 44px 24px; text-align: center; position: relative; overflow: hidden; box-shadow: 0 0 0 1px var(--brand-ring); }
.sf-cta::before { content: ''; position: absolute; inset: 0; background: radial-gradient(600px 240px at 85% -10%, rgba(255, 255, 255, .22), transparent 70%); }
.sf-cta h2 { position: relative; color: #fff; font-weight: 600; font-size: clamp(1.6rem, 3.6vw, 2.4rem); letter-spacing: -0.03em; }
.sf-cta h2 span { color: rgba(255, 255, 255, .7); }
.sf-cta p { position: relative; margin: 10px auto 24px; color: rgba(255, 255, 255, .85); max-width: 520px; font-size: 16px; }
.sf-cta .sf-hero-cta { position: relative; justify-content: center; margin-top: 0; }
.sf-cta .ui-btn-primary { background: #fff; color: var(--brand-text); box-shadow: 0 0 0 1px rgba(255, 255, 255, .6), var(--shadow-xs); }
.sf-cta .ui-btn-primary:hover { background: var(--brand-tint); }
.sf-cta .ui-btn-secondary { background: rgba(255, 255, 255, .12); color: #fff; box-shadow: 0 0 0 1px rgba(255, 255, 255, .35); }
.sf-cta .ui-btn-secondary:hover { background: rgba(255, 255, 255, .2); }

/* Footer */
.sf-footer { background: var(--elevated); color: var(--body); padding: 56px 0 28px; margin-top: 72px; font-size: 14px; box-shadow: inset 0 1px 0 var(--hairline); }
.sf-footer-grid { display: grid; gap: 32px; }
@media (min-width: 768px) { .sf-footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.sf-footer h4 { color: var(--ink); font-size: 14px; font-weight: 600; margin-bottom: 12px; letter-spacing: 0; }
.sf-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.sf-footer a:hover { color: var(--brand); }
.sf-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--hairline); font-size: 13px; color: var(--subtle); }

/* Cart drawer */
.sf-drawer-head { display: flex; align-items: center; justify-content: space-between; min-height: 60px; padding: 0 16px 0 20px; border-bottom: 1px solid var(--hairline); }
.sf-drawer-head h3 { font-size: 16px; font-weight: 600; }
.sf-drawer-body { flex: 1; overflow-y: auto; padding: 8px 20px 16px; }
.sf-drawer-foot { padding: 16px 20px; border-top: 1px solid var(--hairline); background: var(--elevated); }
.sf-line { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--hairline); }
.sf-line:last-child { border-bottom: 0; }
.sf-line img { width: 56px; height: 56px; border-radius: var(--r-sm); object-fit: cover; background: var(--recessed); box-shadow: var(--ring); }
.sf-line-info { flex: 1; min-width: 0; }
.sf-line-info b { display: block; font-size: 14px; font-weight: 500; color: var(--ink); line-height: 1.3; }
.sf-line-info small { display: block; font-size: 12px; color: var(--subtle); line-height: 1.45; margin-top: 2px; }
.sf-line-row { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.sf-checkout { display: flex; flex-direction: column; gap: 14px; padding-top: 8px; }
.sf-checkout .ui-chips .ui-chip { flex: 1; }
.sf-totals { display: flex; flex-direction: column; gap: 6px; font-size: 14px; margin-bottom: 12px; }
.sf-totals div { display: flex; justify-content: space-between; }
.sf-totals .grand { font-size: 16px; font-weight: 600; color: var(--ink); }
.sf-totals .grand span:last-child { font-family: var(--font-mono); }
.sf-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sf-grid-2 > * { min-width: 0; }

/* Sticky mobile cart bar */
.sf-sticky { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 55; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 8px 8px 16px; border-radius: var(--r-xl); background: var(--base); color: var(--ink); box-shadow: var(--ring), var(--shadow-lg);
  transform: translateY(140%); transition: transform .3s var(--ease); }
.sf-sticky.is-visible.has-items { transform: translateY(0); }
.sf-sticky b { font-family: var(--font-mono); font-weight: 600; }
.sf-sticky small { display: block; font-size: 12px; color: var(--subtle); }
@media (min-width: 960px) { .sf-sticky { display: none; } }

/* Success state */
.sf-success { text-align: center; }
.sf-success-icon { width: 48px; height: 48px; margin: 0 auto 14px; border-radius: 50%; background: var(--success-bg); color: var(--success); display: grid; place-items: center; }
.sf-code { display: inline-flex; align-items: center; margin: 12px 0; height: 40px; padding: 0 16px; border-radius: var(--r-md); background: var(--recessed); box-shadow: var(--ring); color: var(--ink); font-family: var(--font-mono); font-weight: 600; font-size: 20px; letter-spacing: .06em; }

/* Tracker */
.sf-track { max-width: 640px; margin: 0 auto; }
.sf-track-form { display: flex; gap: 8px; }
.sf-track-form .ui-input { height: 40px; text-transform: uppercase; font-family: var(--font-mono); letter-spacing: .06em; }
.sf-track-card { margin-top: 20px; }
.sf-track-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--hairline); font-size: 14px; }
.sf-track-meta span { display: block; color: var(--subtle); font-size: 12px; }
.sf-track-meta b { color: var(--ink); font-weight: 500; }
.sf-progress { height: 6px; border-radius: var(--r-pill); background: var(--recessed); overflow: hidden; }
.sf-progress i { display: block; height: 100%; background: var(--brand); border-radius: var(--r-pill); transition: width .6s var(--ease); }

/* Admin Layout */
.adm-body { background: var(--base); }
.adm-shell { min-height: 100vh; }
.adm-sidebar { position: fixed; top: 0; bottom: 0; left: 0; z-index: 70; width: 248px; display: flex; flex-direction: column; background: var(--elevated); color: var(--body); box-shadow: 1px 0 0 0 var(--hairline); transform: translateX(-100%); transition: transform .3s var(--ease); }
.adm-sidebar.is-open { transform: translateX(0); box-shadow: 1px 0 0 0 var(--hairline), var(--shadow-lg); }
@media (min-width: 1024px) { .adm-sidebar { transform: none; } .adm-main { margin-left: 248px; } .adm-menu-btn { display: none !important; } }
.adm-side-brand { display: flex; align-items: center; gap: 10px; height: 60px; padding: 0 16px; border-bottom: 1px solid var(--hairline); color: var(--ink); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.adm-side-brand small { display: block; color: var(--subtle); font-size: 12px; font-weight: 400; letter-spacing: 0; }
.adm-nav { flex: 1; overflow-y: auto; padding: 8px 10px; }
.adm-nav-label { padding: 14px 8px 6px; font-size: 12px; font-weight: 500; color: var(--faint); }
.adm-nav a { position: relative; display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 10px; margin-bottom: 1px; border-radius: var(--r-md); font-size: 14px; font-weight: 500; color: var(--body); transition: background .15s, color .15s; }
.adm-nav a .ui-icon { color: var(--subtle); }
.adm-nav a:hover { background: var(--recessed); color: var(--ink); }
.adm-nav a.is-active { background: var(--base); color: var(--ink); box-shadow: var(--ring), var(--shadow-xs); }
.adm-nav a.is-active .ui-icon { color: var(--brand); }
.adm-nav .count { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--r-pill); background: var(--brand); color: #fff; font-size: 11px; font-weight: 600; display: grid; place-items: center; font-family: var(--font-mono); }
.adm-side-user { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-top: 1px solid var(--hairline); }
.adm-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--brand-tint); color: var(--brand-text); display: grid; place-items: center; font-weight: 600; font-size: 13px; flex-shrink: 0; }
.adm-side-user b { display: block; color: var(--ink); font-size: 13px; font-weight: 600; line-height: 1.3; }
.adm-side-user small { font-size: 12px; color: var(--subtle); }
.adm-topbar { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 16px; background: rgba(255, 255, 255, .88); box-shadow: 0 1px 0 0 var(--hairline); backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px); }
@media (min-width: 768px) { .adm-topbar { padding: 0 28px; } }
.adm-topbar h1 { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adm-topbar-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.adm-content { padding: 20px 16px 48px; }
@media (min-width: 768px) { .adm-content { padding: 24px 28px 48px; } }
.adm-stack { display: flex; flex-direction: column; gap: 20px; }
.adm-backdrop { position: fixed; inset: 0; z-index: 65; background: rgba(23, 32, 51, .35); display: none; }
.adm-backdrop.is-open { display: block; }
@media (min-width: 1024px) { .adm-backdrop { display: none !important; } }

/* Stat cards */
.adm-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 1100px) { .adm-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.adm-stat { padding: 16px; background: var(--base); border-radius: var(--r-lg); box-shadow: var(--ring), var(--shadow-xs); }
.adm-stat-head { display: flex; align-items: center; justify-content: space-between; color: var(--subtle); font-size: 13px; font-weight: 500; }
.adm-stat-head .ui-icon { color: var(--faint); }
.adm-stat b { display: block; margin-top: 8px; font-size: clamp(18px, 2.2vw, 24px); font-weight: 600; color: var(--ink); letter-spacing: -0.02em; font-feature-settings: 'tnum' 1; }
.adm-stat small { font-size: 12px; color: var(--subtle); }
.adm-stat small a { color: var(--brand-text) !important; }

/* Grid helpers */
.adm-grid-2 { display: grid; gap: 20px; }
@media (min-width: 1100px) { .adm-grid-2 { grid-template-columns: 1.6fr 1fr; } .adm-grid-2.even { grid-template-columns: 1fr 1fr; } }
.adm-form-grid { display: grid; gap: 14px; }
@media (min-width: 700px) { .adm-form-grid { grid-template-columns: 1fr 1fr; } .adm-form-grid .span-2 { grid-column: span 2; } }
.adm-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.adm-toolbar .ui-input, .adm-toolbar .ui-select { width: auto; min-width: 160px; }
.adm-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }

/* Bar chart */
.adm-bars { display: flex; align-items: flex-end; gap: 10px; height: 200px; padding: 20px 20px 0; }
.adm-bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.adm-bar i { display: block; width: 100%; max-width: 40px; min-height: 3px; border-radius: 4px 4px 2px 2px; background: var(--brand-tint-strong); transition: background .2s; }
.adm-bar:last-child i { background: var(--brand); }
.adm-bar:hover i { background: var(--accent-glow); }
.adm-bar em { font-style: normal; font-size: 10px; color: var(--subtle); font-family: var(--font-mono); white-space: nowrap; }
.adm-bars-foot { display: flex; gap: 10px; padding: 8px 20px 18px; }
.adm-bars-foot span { flex: 1; text-align: center; font-size: 11px; color: var(--subtle); font-family: var(--font-mono); }

/* Bar list (Kumo Meter) */
.adm-barlist { padding: 14px 20px 18px; display: flex; flex-direction: column; gap: 12px; }
.adm-barlist-row { font-size: 13px; }
.adm-barlist-row div { display: flex; justify-content: space-between; margin-bottom: 6px; color: var(--ink); font-weight: 500; }
.adm-barlist-row span { font-family: var(--font-mono); color: var(--subtle); font-weight: 400; }
.adm-barlist-track { height: 6px; border-radius: var(--r-pill); background: var(--recessed); overflow: hidden; }
.adm-barlist-track i { display: block; height: 100%; background: var(--brand); border-radius: var(--r-pill); }

/* Kitchen display board */
.adm-board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.adm-col { background: var(--recessed); border-radius: var(--r-lg); padding: 8px; min-height: 300px; }
.adm-col-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px 10px; font-size: 13px; font-weight: 600; color: var(--ink); }
.adm-ticket { background: var(--base); border-radius: var(--r-md); padding: 12px; margin-bottom: 8px; box-shadow: var(--ring), var(--shadow-xs); }
.adm-ticket-head { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.adm-ticket-head a { font-family: var(--font-mono); font-weight: 600; color: var(--ink); font-size: 13px; }
.adm-ticket ul { margin: 8px 0; padding-left: 16px; font-size: 13px; color: var(--body); }
.adm-ticket li small { display: block; color: var(--subtle); font-size: 12px; }
.adm-ticket-meta { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--subtle); font-family: var(--font-mono); }
.adm-ticket form { display: flex; gap: 6px; margin-top: 10px; }
.adm-ticket .ui-btn { flex: 1; }

/* POS terminal */
.adm-pos { display: grid; gap: 16px; }
.adm-pos > *, .adm-grid-2 > * { min-width: 0; }
@media (min-width: 1100px) { .adm-pos { grid-template-columns: 1fr 400px; align-items: start; } .adm-pos-cart { position: sticky; top: 80px; } }
.adm-pos-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 640px) { .adm-pos-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1400px) { .adm-pos-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.adm-pos-item { display: flex; flex-direction: column; text-align: left; padding: 0; border: 0; background: var(--base); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--ring), var(--shadow-xs); transition: box-shadow .15s; }
.adm-pos-item:hover { box-shadow: 0 0 0 1.5px var(--brand), var(--shadow-xs); }
.adm-pos-item img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--recessed); }
.adm-pos-item div { padding: 10px 12px; }
.adm-pos-item b { display: block; font-size: 13px; font-weight: 500; color: var(--ink); line-height: 1.3; }
.adm-pos-item span { display: flex; justify-content: space-between; margin-top: 4px; font-family: var(--font-mono); font-size: 12px; }
.adm-pos-item[disabled] { opacity: .5; cursor: not-allowed; }
@media (max-width: 640px) { .adm-pos-item img { aspect-ratio: 16 / 8; } }
.adm-pos-lines { max-height: 340px; overflow-y: auto; }
.adm-pos-line { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--hairline); font-size: 13px; }
.adm-pos-line b { display: block; color: var(--ink); font-weight: 500; }
.adm-pos-line small { font-family: var(--font-mono); color: var(--subtle); }
.adm-pos-line > div:first-child { flex: 1; min-width: 0; }
.adm-pos-total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 16px; background: var(--elevated); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.adm-pos-total b { font-family: var(--font-mono); font-size: 24px; font-weight: 600; color: var(--ink); }
.adm-suggest { position: absolute; left: 0; right: 0; top: 100%; z-index: 20; margin-top: 4px; padding: 4px; background: var(--base); border-radius: var(--r-md); box-shadow: var(--ring), var(--shadow-lg); }
.adm-suggest button { display: block; width: 100%; padding: 8px 10px; border: 0; border-radius: var(--r-sm); background: transparent; text-align: left; font-size: 13px; }
.adm-suggest button:hover { background: var(--recessed); }
.adm-quick-cash { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.adm-quick-cash button { height: 30px; border: 0; border-radius: var(--r-sm); background: var(--base); box-shadow: var(--ring), var(--shadow-xs); font-family: var(--font-mono); font-size: 12px; font-weight: 500; color: var(--ink); }
.adm-quick-cash button:hover { background: var(--tint); }
.adm-kbd { display: inline-flex; align-items: center; height: 20px; padding: 0 6px; border-radius: var(--r-xs); font-family: var(--font-mono); font-size: 11px; background: var(--base); box-shadow: 0 0 0 1px var(--border-mid), 0 1px 0 var(--border-mid); color: var(--subtle); }

/* Detail list */
.adm-dl { display: grid; grid-template-columns: 140px 1fr; gap: 10px 16px; padding: 18px 20px; font-size: 14px; margin: 0; }
.adm-dl dt { color: var(--subtle); }
.adm-dl dd { margin: 0; color: var(--ink); font-weight: 500; word-break: break-word; }
@media (max-width: 480px) { .adm-dl { grid-template-columns: 110px 1fr; } }

/* Pagination */
.adm-pager { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 16px; border-top: 1px solid var(--hairline); font-size: 13px; color: var(--subtle); }

/* Auth screen */
.adm-auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: var(--canvas); }
.adm-auth-card { width: min(400px, 100%); }
.adm-auth-card .ui-card-pad { padding: 28px; }
.adm-auth-card > .sf-brand { justify-content: center; }
.adm-auth h1 { font-weight: 600; font-size: 24px; letter-spacing: -0.025em; text-align: center; }
.adm-auth h1 + p { text-align: center; }
.adm-auth h1 span { color: var(--subtle); }

/* Installer */
.ins-wrap { min-height: 100vh; padding: 40px 16px; background: var(--canvas); }
.ins-card { max-width: 640px; margin: 0 auto; }
.ins-steps { display: flex; gap: 0; margin: 20px 0; padding: 2px; border-radius: var(--r-md); background: var(--recessed); }
.ins-steps span { flex: 1; display: flex; align-items: center; justify-content: center; height: 32px; padding: 0 10px; border-radius: var(--r-sm); font-size: 13px; font-weight: 500; color: var(--subtle); white-space: nowrap; }
.ins-steps span.is-active { background: var(--base); color: var(--ink); box-shadow: var(--ring), var(--shadow-sm); }
.ins-steps span.is-done { color: var(--success); }
.ins-check { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--hairline); font-size: 14px; }
.ins-check:last-child { border-bottom: 0; }

/* Receipt (80mm / 58mm thermal) */
.rc-body { background: var(--recessed); margin: 0; padding: 20px 0; font-family: var(--font-mono); color: #000; }
.rc-paper { width: 80mm; margin: 0 auto; padding: 6mm 5mm; background: #fff; font-size: 12px; line-height: 1.45; box-shadow: var(--ring), var(--shadow-sm); }
.rc-paper.w58 { width: 58mm; font-size: 10.5px; padding: 4mm 3mm; }
.rc-center { text-align: center; }
.rc-paper h1 { font-family: var(--font-mono); font-size: 15px; margin: 0; color: #000; letter-spacing: 0; }
.rc-sep { border: 0; border-top: 1px dashed #000; margin: 6px 0; }
.rc-row { display: flex; justify-content: space-between; gap: 8px; }
.rc-row span:last-child { text-align: right; white-space: nowrap; }
.rc-item { margin-bottom: 4px; }
.rc-big { font-size: 14px; font-weight: 800; }
.rc-tools { text-align: center; margin-bottom: 14px; font-family: var(--font-sans); display: flex; gap: 8px; justify-content: center; }
@media print {
  @page { margin: 0; }
  .rc-body { background: #fff; padding: 0; }
  .rc-tools { display: none; }
  .rc-paper { margin: 0; box-shadow: none; }
  .no-print { display: none !important; }
}
