/* Canonical FoodSuite theme source. It intentionally remains valid CSS so the
   .NET build can publish it without requiring a separate Node toolchain. */
:root {
  color-scheme: light;
  --font-sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Segoe UI Variable Display", "Aptos Display", var(--font-sans);
  --canvas: #f5f4ee;
  --canvas-deep: #eeede5;
  --surface: #fffefa;
  --surface-raised: rgb(255 255 252 / 92%);
  --surface-soft: #f0f1e9;
  --surface-glass: rgb(255 255 252 / 76%);
  --ink: #172019;
  --ink-soft: #5d665e;
  --ink-faint: #858d86;
  --line: #dcdfd5;
  --line-strong: #cbd0c4;
  --brand: #385b40;
  --brand-strong: #294a32;
  --brand-soft: #dce8d8;
  --accent: #bf7d43;
  --accent-soft: #f5e5d3;
  --success: #247449;
  --success-soft: #ddf1e5;
  --danger: #a5443f;
  --danger-soft: #f7e2df;
  --warning: #8b641e;
  --warning-soft: #f8edcc;
  --focus: #5f8e69;
  --shadow-sm: 0 0.35rem 1.2rem rgb(28 42 31 / 7%);
  --shadow-md: 0 1rem 3rem rgb(28 42 31 / 10%);
  --shadow-lg: 0 2rem 6rem rgb(25 37 28 / 15%);
  --radius-sm: 0.7rem;
  --radius-md: 1rem;
  --radius-lg: 1.45rem;
  --radius-xl: 2rem;
  --sidebar-width: 17rem;
  --topbar-height: 4.75rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="dark"] {
  color-scheme: dark;
  --canvas: #111511;
  --canvas-deep: #0c100d;
  --surface: #181d18;
  --surface-raised: rgb(27 33 27 / 94%);
  --surface-soft: #202720;
  --surface-glass: rgb(24 29 24 / 78%);
  --ink: #eff3ed;
  --ink-soft: #adb7ad;
  --ink-faint: #7f897f;
  --line: #2e382f;
  --line-strong: #3c473d;
  --brand: #93bd96;
  --brand-strong: #afd0af;
  --brand-soft: #263a29;
  --accent: #d99c66;
  --accent-soft: #422f21;
  --success: #6ecb91;
  --success-soft: #193526;
  --danger: #ed8982;
  --danger-soft: #422321;
  --warning: #e3ba65;
  --warning-soft: #40351f;
  --focus: #9ac59d;
  --shadow-sm: 0 0.35rem 1.2rem rgb(0 0 0 / 18%);
  --shadow-md: 0 1rem 3rem rgb(0 0 0 / 25%);
  --shadow-lg: 0 2rem 6rem rgb(0 0 0 / 35%);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 20rem;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: var(--brand);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--brand-strong);
}

::selection {
  background: var(--brand-soft);
  color: var(--ink);
}

:focus-visible {
  outline: 0.18rem solid var(--focus);
  outline-offset: 0.18rem;
}

.skip-link {
  position: fixed;
  z-index: 2000;
  top: 0.7rem;
  left: 0.7rem;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--surface);
  font-weight: 750;
  transform: translateY(-160%);
  transition: transform 180ms var(--ease);
}

.skip-link:focus {
  color: var(--surface);
  transform: translateY(0);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  color: var(--ink);
  text-decoration: none;
}

.brand-lockup:hover {
  color: var(--ink);
}

.brand-mark {
  display: grid;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0.24rem;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.14rem;
  border-radius: 0.55rem;
  background: var(--brand-strong);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 12%), 0 0.35rem 0.8rem rgb(38 72 47 / 18%);
}

.brand-mark span {
  border-radius: 0.16rem;
  background: #f7f7ed;
}

.brand-mark span:nth-child(2),
.brand-mark span:nth-child(3) {
  opacity: 0.62;
}

.brand-wordmark {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 760;
  letter-spacing: -0.035em;
}

.button,
.btn {
  --button-bg: var(--surface);
  --button-border: var(--line-strong);
  --button-color: var(--ink);
  display: inline-flex;
  min-height: 2.85rem;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.68rem 1.05rem;
  border: 1px solid var(--button-border);
  border-radius: 0.82rem;
  background: var(--button-bg);
  box-shadow: 0 1px 0 rgb(255 255 255 / 35%);
  color: var(--button-color);
  font-size: 0.88rem;
  font-weight: 720;
  line-height: 1;
  text-decoration: none;
  transition: transform 160ms var(--ease), box-shadow 160ms var(--ease), background 160ms ease, border-color 160ms ease;
}

.button:hover,
.btn:hover {
  border-color: var(--line-strong);
  color: var(--button-color);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.button:active,
.btn:active {
  transform: translateY(0) scale(0.985);
}

.button--primary,
.btn-primary {
  --button-bg: var(--brand-strong);
  --button-border: var(--brand-strong);
  --button-color: #fff;
}

[data-theme="dark"] .button--primary,
[data-theme="dark"] .btn-primary {
  --button-color: #102016;
  --button-bg: var(--brand-strong);
}

.button--ghost,
.btn-outline-secondary {
  --button-bg: transparent;
  --button-border: transparent;
}

.button--danger,
.btn-outline-danger {
  --button-bg: transparent;
  --button-border: color-mix(in srgb, var(--danger), transparent 56%);
  --button-color: var(--danger);
}

.button--compact {
  min-height: 2.45rem;
  padding: 0.55rem 0.9rem;
  border-radius: 0.72rem;
  font-size: 0.82rem;
}

.button--wide {
  width: 100%;
}

.button[disabled],
.btn[disabled],
.is-submitting .button[type="submit"],
.is-submitting .btn[type="submit"] {
  cursor: wait;
  opacity: 0.7;
  pointer-events: none;
}

.icon-button {
  display: inline-grid;
  width: 2.55rem;
  height: 2.55rem;
  flex: 0 0 auto;
  border: 1px solid transparent;
  border-radius: 0.78rem;
  background: transparent;
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 760;
  place-items: center;
  transition: background 160ms ease, color 160ms ease, transform 160ms var(--ease);
}

.icon-button:hover {
  background: var(--surface-soft);
  color: var(--ink);
  transform: translateY(-1px);
}

.theme-toggle__moon,
[data-theme="dark"] .theme-toggle__sun {
  display: none;
}

[data-theme="dark"] .theme-toggle__moon {
  display: inline;
}

.public-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid transparent;
  background: rgb(245 244 238 / 72%);
  backdrop-filter: blur(1.2rem) saturate(140%);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

[data-theme="dark"] .public-header {
  background: rgb(17 21 17 / 72%);
}

.public-header.is-elevated {
  border-color: var(--line);
  box-shadow: 0 0.35rem 1.5rem rgb(20 31 22 / 5%);
}

.public-header__inner,
.public-footer__inner {
  width: min(100% - 2rem, 78rem);
  margin: 0 auto;
}

.public-header__inner {
  display: flex;
  min-height: 4.75rem;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.public-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.public-nav a {
  padding: 0.55rem 0.75rem;
  border-radius: 0.65rem;
  color: var(--ink-soft);
  font-size: 0.84rem;
  font-weight: 650;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease;
}

.public-nav a:hover {
  background: var(--surface-soft);
  color: var(--ink);
}

.public-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.public-content {
  min-height: calc(100vh - 11rem);
}

.public-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--line);
}

.public-footer__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
  color: var(--ink-faint);
  font-size: 0.78rem;
}

.public-footer p {
  margin: 0;
  text-align: center;
}

.app-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
}

.app-sidebar {
  position: fixed;
  z-index: 400;
  inset: 0 auto 0 0;
  display: flex;
  width: var(--sidebar-width);
  flex-direction: column;
  padding: 1.15rem;
  border-right: 1px solid var(--line);
  background: color-mix(in srgb, var(--canvas-deep) 82%, var(--surface));
}

.app-sidebar__header {
  display: flex;
  min-height: 3rem;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.55rem;
}

.sidebar-close {
  display: none;
}

.sidebar-nav {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 1.4rem;
  padding: 2.25rem 0 1rem;
}

.sidebar-group {
  display: grid;
  gap: 0.28rem;
}

.sidebar-label {
  margin: 0 0 0.45rem;
  padding: 0 0.72rem;
  color: var(--ink-faint);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.105em;
  text-transform: uppercase;
}

.sidebar-link {
  display: flex;
  min-height: 2.9rem;
  align-items: center;
  gap: 0.78rem;
  padding: 0.56rem 0.68rem;
  border: 1px solid transparent;
  border-radius: 0.8rem;
  color: var(--ink-soft);
  font-size: 0.85rem;
  font-weight: 670;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms var(--ease);
}

.sidebar-link:hover,
.sidebar-link.is-active {
  border-color: color-mix(in srgb, var(--line), transparent 25%);
  background: var(--surface-glass);
  color: var(--ink);
  transform: translateX(2px);
}

.sidebar-link.is-active {
  box-shadow: var(--shadow-sm);
}

.sidebar-link__glyph {
  display: grid;
  width: 1.75rem;
  height: 1.75rem;
  flex: 0 0 auto;
  border-radius: 0.55rem;
  background: var(--surface-soft);
  color: var(--brand);
  font-size: 0.58rem;
  font-weight: 850;
  letter-spacing: 0.03em;
  place-items: center;
}

.sidebar-link.is-active .sidebar-link__glyph {
  background: var(--brand-soft);
}

.sidebar-assurance {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-glass);
}

.sidebar-assurance div {
  display: grid;
  min-width: 0;
}

.sidebar-assurance strong,
.sidebar-assurance span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-assurance strong {
  font-size: 0.72rem;
}

.sidebar-assurance div span {
  color: var(--ink-faint);
  font-size: 0.66rem;
}

.assurance-dot {
  width: 0.55rem;
  height: 0.55rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0.28rem var(--success-soft);
}

.app-stage {
  min-width: 0;
  grid-column: 2;
}

.app-topbar {
  position: sticky;
  z-index: 300;
  top: 0;
  display: flex;
  min-height: var(--topbar-height);
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem clamp(1rem, 3vw, 2rem);
  border-bottom: 1px solid var(--line);
  background: var(--surface-glass);
  backdrop-filter: blur(1.2rem) saturate(135%);
}

.app-topbar__leading,
.app-topbar__actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.menu-trigger {
  display: none;
}

.menu-lines,
.menu-lines span {
  display: block;
}

.menu-lines {
  width: 1.05rem;
}

.menu-lines span {
  height: 1.5px;
  margin: 0.25rem 0;
  border-radius: 2px;
  background: currentColor;
}

.menu-lines span:last-child {
  width: 70%;
}

.command-trigger {
  display: flex;
  min-width: min(26vw, 17rem);
  height: 2.55rem;
  align-items: center;
  gap: 0.55rem;
  padding: 0 0.62rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--surface-soft);
  color: var(--ink-faint);
  text-align: left;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.command-trigger:hover {
  border-color: var(--line-strong);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.command-trigger__mark,
.command-search__mark {
  width: 0.8rem;
  height: 0.8rem;
  flex: 0 0 auto;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  position: relative;
}

.command-trigger__mark::after,
.command-search__mark::after {
  position: absolute;
  right: -0.3rem;
  bottom: -0.18rem;
  width: 0.38rem;
  height: 1.5px;
  background: currentColor;
  content: "";
  transform: rotate(45deg);
}

.command-trigger__text {
  flex: 1;
  font-size: 0.78rem;
}

kbd {
  padding: 0.18rem 0.34rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.35rem;
  background: var(--surface);
  box-shadow: 0 1px 0 var(--line-strong);
  color: var(--ink-faint);
  font-family: var(--font-sans);
  font-size: 0.63rem;
  font-weight: 750;
}

.notification-trigger {
  position: relative;
}

.notification-trigger > span:first-child {
  font-size: 0.62rem;
}

.notification-pulse {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  width: 0.38rem;
  height: 0.38rem;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: var(--accent);
}

.account-trigger {
  display: flex;
  height: 2.85rem;
  align-items: center;
  gap: 0.6rem;
  padding: 0.25rem 0.4rem 0.25rem 0.25rem;
  border: 1px solid transparent;
  border-radius: 0.85rem;
  background: transparent;
  color: var(--ink);
  text-align: left;
  transition: background 160ms ease, border-color 160ms ease;
}

.account-trigger:hover,
.account-trigger[aria-expanded="true"] {
  border-color: var(--line);
  background: var(--surface-soft);
}

.avatar {
  display: grid;
  width: 2.1rem;
  height: 2.1rem;
  flex: 0 0 auto;
  border-radius: 0.67rem;
  background: linear-gradient(145deg, var(--brand), var(--brand-strong));
  color: #fff;
  font-size: 0.75rem;
  font-weight: 820;
  place-items: center;
}

.account-trigger__copy {
  display: grid;
  max-width: 10rem;
}

.account-trigger__copy strong,
.account-trigger__copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-trigger__copy strong {
  font-size: 0.75rem;
}

.account-trigger__copy small {
  color: var(--ink-faint);
  font-size: 0.64rem;
}

.account-trigger__chevron {
  color: var(--ink-faint);
}

.popover-anchor {
  position: relative;
}

.ui-popover {
  position: absolute;
  z-index: 500;
  top: calc(100% + 0.7rem);
  right: 0;
  width: min(20rem, calc(100vw - 2rem));
  padding: 0.55rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-raised);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(1rem);
  animation: pop-in 160ms var(--ease);
}

.ui-popover__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.55rem 0.7rem;
}

.account-popover {
  width: 13rem;
}

.account-popover a,
.account-popover button {
  display: flex;
  width: 100%;
  min-height: 2.5rem;
  align-items: center;
  padding: 0.55rem 0.7rem;
  border: 0;
  border-radius: 0.58rem;
  background: transparent;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 650;
  text-align: left;
  text-decoration: none;
}

.account-popover a:hover,
.account-popover button:hover {
  background: var(--surface-soft);
  color: var(--ink);
}

.popover-divider {
  height: 1px;
  margin: 0.4rem 0.2rem;
  background: var(--line);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.5rem;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--ink-soft);
  font-size: 0.62rem;
  font-weight: 780;
}

.status-pill--success {
  background: var(--success-soft);
  color: var(--success);
}

.empty-state {
  display: grid;
  justify-items: center;
  padding: 3rem 1.5rem;
  color: var(--ink-faint);
  text-align: center;
}

.empty-state--compact {
  padding: 1.7rem 1rem;
}

.empty-state__mark {
  display: grid;
  width: 2.4rem;
  height: 2.4rem;
  margin-bottom: 0.75rem;
  border-radius: 50%;
  background: var(--success-soft);
  color: var(--success);
  font-weight: 800;
  place-items: center;
}

.empty-state p {
  margin: 0;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 720;
}

.empty-state span:last-child {
  margin-top: 0.2rem;
  font-size: 0.7rem;
}

.app-content {
  width: 100%;
  max-width: 100rem;
  min-height: calc(100vh - var(--topbar-height));
  margin: 0 auto;
  padding: clamp(1.25rem, 3vw, 2.5rem);
}

.sidebar-backdrop {
  position: fixed;
  z-index: 350;
  inset: 0;
  display: none;
  border: 0;
  background: rgb(8 12 9 / 52%);
  backdrop-filter: blur(2px);
}

.command-dialog {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  padding: min(12vh, 7rem) 1rem 1rem;
  align-items: start;
  justify-items: center;
}

.command-dialog__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgb(7 10 8 / 52%);
  backdrop-filter: blur(5px);
}

.command-panel {
  position: relative;
  width: min(100%, 37rem);
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--line), white 8%);
  border-radius: 1.25rem;
  background: var(--surface-raised);
  box-shadow: var(--shadow-lg);
  animation: command-in 180ms var(--ease);
}

.command-search {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 1.05rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink-faint);
}

.command-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1rem;
}

.command-search input::placeholder {
  color: var(--ink-faint);
}

.command-results {
  max-height: min(24rem, 55vh);
  overflow: auto;
  padding: 0.55rem;
}

.command-group-label {
  margin: 0;
  padding: 0.45rem 0.55rem;
  color: var(--ink-faint);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.command-results a {
  display: flex;
  min-height: 3.7rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.72rem;
  border-radius: 0.72rem;
  color: var(--ink);
  text-decoration: none;
}

.command-results a:hover,
.command-results a.is-selected {
  background: var(--surface-soft);
}

.command-results a > span:first-child {
  display: grid;
}

.command-results strong {
  font-size: 0.8rem;
}

.command-results small {
  color: var(--ink-faint);
  font-size: 0.7rem;
}

.command-empty {
  margin: 0;
  padding: 2.5rem 1rem;
  color: var(--ink-faint);
  text-align: center;
}

.command-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.2rem;
  padding: 0.65rem 1rem;
  border-top: 1px solid var(--line);
  color: var(--ink-faint);
  font-size: 0.65rem;
}

.command-footer span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.toast-region {
  position: fixed;
  z-index: 1200;
  right: 1rem;
  bottom: 1rem;
  display: grid;
  width: min(23rem, calc(100% - 2rem));
  gap: 0.65rem;
}

.app-toast {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-raised);
  box-shadow: var(--shadow-lg);
  font-size: 0.78rem;
  font-weight: 650;
  animation: toast-in 240ms var(--ease);
}

.app-toast__mark {
  display: grid;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  place-items: center;
}

.app-toast--success .app-toast__mark {
  background: var(--success-soft);
  color: var(--success);
}

.app-toast--danger .app-toast__mark {
  background: var(--danger-soft);
  color: var(--danger);
}

.app-toast button {
  border: 0;
  background: transparent;
  color: var(--ink-faint);
  font-size: 1.2rem;
}

.page-stack {
  display: grid;
  gap: 1.5rem;
}

.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.page-heading__copy {
  max-width: 46rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.65rem;
  color: var(--brand);
  font-size: 0.68rem;
  font-weight: 820;
  letter-spacing: 0.105em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 1.1rem;
  height: 1px;
  background: currentColor;
  content: "";
}

.page-heading h1,
.auth-copy h1,
.status-card h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 690;
  letter-spacing: -0.045em;
}

.page-heading h1 {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  line-height: 1.08;
}

.page-heading p {
  max-width: 42rem;
  margin: 0.55rem 0 0;
  color: var(--ink-soft);
}

.surface-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-raised);
  box-shadow: var(--shadow-sm);
}

.foundation-hero {
  position: relative;
  display: grid;
  min-height: min(42rem, calc(100vh - 4.75rem));
  overflow: hidden;
  padding: clamp(3.5rem, 9vw, 8rem) 1rem;
  align-items: center;
  isolation: isolate;
}

.foundation-hero::before,
.foundation-hero::after {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  content: "";
  filter: blur(2px);
}

.foundation-hero::before {
  top: -12rem;
  right: -8rem;
  width: 35rem;
  height: 35rem;
  background: radial-gradient(circle, color-mix(in srgb, var(--brand-soft), transparent 10%), transparent 68%);
}

.foundation-hero::after {
  bottom: -16rem;
  left: -10rem;
  width: 38rem;
  height: 38rem;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent-soft), transparent 12%), transparent 68%);
}

.foundation-hero__inner,
.foundation-section {
  width: min(100%, 76rem);
  margin: 0 auto;
}

.foundation-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.9fr);
  align-items: center;
  gap: clamp(2.5rem, 8vw, 7rem);
}

.foundation-copy h1 {
  max-width: 12ch;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 6.6rem);
  font-weight: 660;
  letter-spacing: -0.072em;
  line-height: 0.92;
}

.foundation-copy > p {
  max-width: 39rem;
  margin: 1.45rem 0 0;
  color: var(--ink-soft);
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.8rem;
}

.assurance-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-top: 1.7rem;
  color: var(--ink-faint);
  font-size: 0.72rem;
  font-weight: 680;
}

.assurance-row span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.assurance-row span::before {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0.2rem var(--success-soft);
  content: "";
}

.hero-console {
  position: relative;
  padding: 1rem;
  border: 1px solid color-mix(in srgb, var(--line), white 12%);
  border-radius: var(--radius-xl);
  background: var(--surface-glass);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(1.5rem);
  transform: rotate(1.2deg);
}

.hero-console::before {
  position: absolute;
  z-index: -1;
  inset: 10% -8% -8% 9%;
  border-radius: inherit;
  background: var(--brand-soft);
  content: "";
  opacity: 0.55;
  transform: rotate(-4deg);
}

.console-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0.4rem 1rem;
}

.console-header strong {
  font-size: 0.72rem;
}

.console-live {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--success);
  font-size: 0.62rem;
  font-weight: 760;
}

.console-live::before {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.console-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.console-metric,
.console-wide {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.console-metric span,
.console-wide span {
  color: var(--ink-faint);
  font-size: 0.64rem;
  font-weight: 700;
}

.console-metric strong {
  display: block;
  margin-top: 0.3rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: -0.04em;
}

.console-wide {
  grid-column: 1 / -1;
}

.activity-lines {
  display: grid;
  gap: 0.6rem;
  margin-top: 0.8rem;
}

.activity-lines i {
  display: block;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--surface-soft);
}

.activity-lines i:nth-child(1) { width: 90%; }
.activity-lines i:nth-child(2) { width: 72%; }
.activity-lines i:nth-child(3) { width: 82%; }

.foundation-section {
  padding: clamp(4rem, 8vw, 7rem) 1rem;
}

.section-heading {
  display: grid;
  max-width: 46rem;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.section-heading h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.7rem);
  font-weight: 660;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.section-heading p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1rem;
}

.foundation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.foundation-card {
  min-height: 14rem;
  padding: 1.45rem;
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), border-color 220ms ease;
}

.foundation-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.foundation-card__index {
  display: grid;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 0.7rem;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.68rem;
  font-weight: 850;
  place-items: center;
}

.foundation-card h3 {
  margin: 1.4rem 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.foundation-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.module-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.module-cloud li {
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 680;
}

.auth-shell {
  display: grid;
  width: min(100% - 2rem, 70rem);
  min-height: calc(100vh - 10.75rem);
  margin: 0 auto;
  padding: clamp(2rem, 7vw, 5rem) 0;
  grid-template-columns: minmax(0, 0.9fr) minmax(21rem, 0.72fr);
  align-items: center;
  gap: clamp(2rem, 7vw, 6rem);
}

.auth-story {
  padding: 1rem;
}

.auth-story h1 {
  max-width: 11ch;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 6vw, 5.5rem);
  font-weight: 650;
  letter-spacing: -0.068em;
  line-height: 0.96;
}

.auth-story p {
  max-width: 33rem;
  margin: 1.2rem 0 0;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.7;
}

.auth-points {
  display: grid;
  gap: 0.75rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.auth-points li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 650;
}

.auth-points li::before {
  display: grid;
  width: 1.45rem;
  height: 1.45rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--success-soft);
  color: var(--success);
  content: "✓";
  font-size: 0.67rem;
  place-items: center;
}

.auth-card {
  padding: clamp(1.4rem, 4vw, 2.2rem);
}

.auth-copy {
  margin-bottom: 1.5rem;
}

.auth-copy h1 {
  font-size: clamp(1.65rem, 4vw, 2.2rem);
}

.auth-copy p {
  margin: 0.55rem 0 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.form-stack {
  display: grid;
  gap: 1rem;
}

.field-group {
  display: grid;
  gap: 0.4rem;
}

.field-label,
.form-label {
  margin: 0;
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 730;
}

.field-hint {
  color: var(--ink-faint);
  font-size: 0.68rem;
}

.form-control,
.form-select {
  min-height: 3rem;
  padding: 0.7rem 0.82rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.78rem;
  background-color: var(--surface);
  color: var(--ink);
  font-size: 0.86rem;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.form-control::placeholder {
  color: var(--ink-faint);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--focus);
  background-color: var(--surface);
  color: var(--ink);
  box-shadow: 0 0 0 0.22rem color-mix(in srgb, var(--focus), transparent 82%);
}

.input-validation-error {
  border-color: var(--danger);
}

.field-validation-error,
.validation-summary-errors,
.text-danger {
  color: var(--danger) !important;
  font-size: 0.7rem;
}

.validation-summary-errors {
  padding: 0.8rem 0.9rem;
  border: 1px solid color-mix(in srgb, var(--danger), transparent 60%);
  border-radius: 0.72rem;
  background: var(--danger-soft);
}

.validation-summary-errors ul {
  margin: 0;
  padding-left: 1.1rem;
}

.password-field {
  position: relative;
}

.password-field .form-control {
  padding-right: 4.5rem;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 0.45rem;
  padding: 0.35rem 0.45rem;
  border: 0;
  border-radius: 0.45rem;
  background: transparent;
  color: var(--ink-faint);
  font-size: 0.66rem;
  font-weight: 750;
  transform: translateY(-50%);
}

.password-toggle:hover {
  background: var(--surface-soft);
  color: var(--ink);
}

.form-check {
  display: flex;
  min-height: 1.5rem;
  align-items: center;
  gap: 0.55rem;
  padding-left: 0;
}

.form-check-input {
  width: 1.05rem;
  height: 1.05rem;
  margin: 0;
  border-color: var(--line-strong);
  background-color: var(--surface);
}

.form-check-input:checked {
  border-color: var(--brand-strong);
  background-color: var(--brand-strong);
}

.form-check-label {
  color: var(--ink-soft);
  font-size: 0.74rem;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 1.3rem 0;
  color: var(--ink-faint);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  height: 1px;
  flex: 1;
  background: var(--line);
  content: "";
}

.external-grid {
  display: grid;
  gap: 0.55rem;
}

.auth-switch {
  margin: 1.25rem 0 0;
  color: var(--ink-soft);
  font-size: 0.76rem;
  text-align: center;
}

.alert {
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 0.78rem;
  font-size: 0.76rem;
}

.alert-danger {
  border-color: color-mix(in srgb, var(--danger), transparent 60%);
  background: var(--danger-soft);
  color: var(--danger);
}

.alert-success {
  border-color: color-mix(in srgb, var(--success), transparent 60%);
  background: var(--success-soft);
  color: var(--success);
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(17rem, 0.75fr);
  gap: 1rem;
}

.profile-card,
.security-card {
  padding: clamp(1.25rem, 3vw, 1.8rem);
}

.profile-identity {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--line);
}

.profile-avatar {
  display: grid;
  width: 4rem;
  height: 4rem;
  flex: 0 0 auto;
  border-radius: 1.2rem;
  background: linear-gradient(145deg, var(--brand), var(--brand-strong));
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 750;
  place-items: center;
}

.profile-identity h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.profile-identity p {
  margin: 0.18rem 0 0;
  color: var(--ink-faint);
  font-size: 0.76rem;
}

.detail-list {
  display: grid;
  margin: 0;
}

.detail-row {
  display: grid;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  grid-template-columns: 10rem 1fr;
  gap: 1rem;
}

.detail-row:last-child {
  border-bottom: 0;
}

.detail-row dt {
  color: var(--ink-faint);
  font-size: 0.7rem;
  font-weight: 680;
}

.detail-row dd {
  margin: 0;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 650;
}

.role-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.role-list li {
  padding: 0.3rem 0.5rem;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.64rem;
  font-weight: 760;
}

.security-card h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: -0.025em;
}

.security-card > p {
  margin: 0.45rem 0 1.2rem;
  color: var(--ink-soft);
  font-size: 0.76rem;
}

.security-state {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.2rem;
  padding: 0.8rem;
  border-radius: 0.75rem;
  background: var(--surface-soft);
}

.security-state__mark {
  display: grid;
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  border-radius: 0.65rem;
  background: var(--warning-soft);
  color: var(--warning);
  font-size: 0.7rem;
  font-weight: 850;
  place-items: center;
}

.security-state.is-active .security-state__mark {
  background: var(--success-soft);
  color: var(--success);
}

.security-state div {
  display: grid;
}

.security-state strong {
  font-size: 0.74rem;
}

.security-state small {
  color: var(--ink-faint);
  font-size: 0.66rem;
}

.stack-actions {
  display: grid;
  gap: 0.55rem;
}

.setup-shell {
  width: min(100%, 48rem);
  margin: 0 auto;
}

.setup-card {
  padding: clamp(1.3rem, 4vw, 2.2rem);
}

.setup-steps {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0;
  padding: 0;
  counter-reset: setup;
  list-style: none;
}

.setup-steps li {
  position: relative;
  padding-left: 2.7rem;
  counter-increment: setup;
}

.setup-steps li::before {
  position: absolute;
  top: -0.1rem;
  left: 0;
  display: grid;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 0.65rem;
  background: var(--brand-soft);
  color: var(--brand);
  content: counter(setup, decimal-leading-zero);
  font-size: 0.62rem;
  font-weight: 850;
  place-items: center;
}

.secret-key,
.recovery-code {
  padding: 0.75rem;
  border: 1px dashed var(--line-strong);
  border-radius: 0.7rem;
  background: var(--surface-soft);
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.78rem;
  overflow-wrap: anywhere;
}

.recovery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 1rem 0 1.5rem;
}

.status-shell {
  display: grid;
  min-height: calc(100vh - 11rem);
  padding: 2rem 1rem;
  place-items: center;
}

.status-card {
  width: min(100%, 42rem);
  padding: clamp(2rem, 6vw, 4rem);
  text-align: center;
}

.status-card h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

.status-card .summary {
  margin: 1rem 0 0;
  color: var(--ink-soft);
}

.request-id {
  display: inline-block;
  margin-top: 1.2rem;
  padding: 0.45rem 0.65rem;
  border-radius: 0.55rem;
  background: var(--surface-soft);
  color: var(--ink-soft);
  font-size: 0.7rem;
}

.skeleton {
  position: relative;
  overflow: hidden;
  border-radius: 0.45rem;
  background: var(--surface-soft);
}

.skeleton::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / 28%), transparent);
  content: "";
  transform: translateX(-100%);
  animation: shimmer 1.5s infinite;
}

.skeleton--text { width: 75%; height: 0.75rem; }
.skeleton--title { width: 45%; height: 1.25rem; }
.skeleton--avatar { width: 2.5rem; height: 2.5rem; border-radius: 50%; }

[hidden] {
  display: none !important;
}

@keyframes pop-in {
  from { opacity: 0; transform: translateY(-0.4rem) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes command-in {
  from { opacity: 0; transform: translateY(-0.8rem) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(1rem); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
  to { transform: translateX(100%); }
}

@media (max-width: 74rem) {
  .account-trigger__copy,
  .account-trigger__chevron {
    display: none;
  }
}

@media (max-width: 62rem) {
  .app-shell {
    display: block;
  }

  .app-sidebar {
    box-shadow: var(--shadow-lg);
    transform: translateX(-105%);
    transition: transform 240ms var(--ease);
  }

  .sidebar-close,
  .menu-trigger {
    display: inline-grid;
  }

  body.sidebar-open {
    overflow: hidden;
  }

  body.sidebar-open .app-sidebar {
    transform: translateX(0);
  }

  body.sidebar-open .sidebar-backdrop {
    display: block;
  }

  .app-stage {
    grid-column: auto;
  }

  .foundation-hero__inner,
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .foundation-copy {
    max-width: 44rem;
  }

  .hero-console {
    width: min(100%, 34rem);
  }

  .auth-story {
    display: none;
  }

  .auth-shell {
    width: min(100% - 2rem, 31rem);
  }
}

@media (max-width: 48rem) {
  .public-nav {
    display: none;
  }

  .public-login,
  .command-trigger__text,
  .command-trigger kbd,
  .account-trigger {
    display: none;
  }

  .command-trigger {
    min-width: 2.55rem;
    width: 2.55rem;
    justify-content: center;
    padding: 0;
  }

  .foundation-grid,
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .foundation-hero {
    min-height: auto;
  }

  .foundation-copy h1 {
    font-size: clamp(2.8rem, 15vw, 4.7rem);
  }

  .page-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .public-footer__inner {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 0.8rem;
    text-align: center;
  }

  .app-topbar {
    padding-inline: 0.75rem;
  }

  .app-content {
    padding: 1rem;
  }
}

@media (max-width: 34rem) {
  .public-header__inner,
  .public-footer__inner {
    width: min(100% - 1.25rem, 78rem);
  }

  .public-actions .theme-toggle {
    display: none;
  }

  .foundation-hero {
    padding-inline: 0.65rem;
  }

  .hero-console {
    padding: 0.7rem;
  }

  .console-grid,
  .recovery-grid {
    grid-template-columns: 1fr;
  }

  .console-wide {
    grid-column: auto;
  }

  .detail-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .auth-card {
    border-radius: 1.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Phase 5: public restaurant and catalog experience */
.landing-container {
  width: min(100% - 2rem, 78rem);
  margin-inline: auto;
}

.landing-hero {
  position: relative;
  display: grid;
  min-height: calc(100svh - 4.75rem);
  overflow: hidden;
  align-items: end;
  background: #172019 url("../media/landing/hero-restaurant.jpg") center / cover no-repeat;
  color: #fff;
  isolation: isolate;
}

.landing-hero__video,
.landing-hero__veil {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
}

.landing-hero__video {
  object-fit: cover;
  object-position: center;
}

@media (prefers-reduced-motion: reduce) {
  .landing-hero__video {
    display: none;
  }
}

.landing-hero__veil {
  z-index: -1;
  background:
    linear-gradient(90deg, rgb(8 13 9 / 83%) 0%, rgb(8 13 9 / 53%) 48%, rgb(8 13 9 / 16%) 78%),
    linear-gradient(0deg, rgb(7 11 8 / 72%) 0%, transparent 45%);
}

.landing-hero__content {
  padding-top: clamp(5rem, 13vh, 9rem);
  padding-bottom: clamp(5rem, 12vh, 8rem);
}

.landing-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: inherit;
  font-size: 0.68rem;
  font-weight: 820;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.landing-kicker::before {
  width: 1.4rem;
  height: 1px;
  background: currentColor;
  content: "";
  opacity: 0.7;
}

.landing-hero h1 {
  max-width: 10ch;
  margin: 1rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 8vw, 7.2rem);
  font-weight: 620;
  letter-spacing: -0.075em;
  line-height: 0.88;
  text-wrap: balance;
}

.landing-hero__content > p {
  max-width: 37rem;
  margin: 1.45rem 0 0;
  color: rgb(255 255 255 / 78%);
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.65;
}

.landing-button--glass {
  --button-bg: rgb(255 255 255 / 10%);
  --button-border: rgb(255 255 255 / 26%);
  --button-color: #fff;
  backdrop-filter: blur(0.6rem);
}

.hero-facts {
  display: flex;
  gap: clamp(1.5rem, 5vw, 4rem);
  margin: clamp(2.5rem, 6vh, 4rem) 0 0;
}

.hero-facts div {
  display: grid;
  gap: 0.15rem;
}

.hero-facts dt {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 720;
}

.hero-facts dd {
  margin: 0;
  color: rgb(255 255 255 / 58%);
  font-size: 0.66rem;
}

.hero-scroll {
  position: absolute;
  right: clamp(1rem, 4vw, 3rem);
  bottom: 2.2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: rgb(255 255 255 / 68%);
  font-size: 0.66rem;
  font-weight: 720;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.hero-scroll:hover {
  color: #fff;
}

.hero-scroll span {
  width: 1px;
  height: 2.3rem;
  background: currentColor;
}

.landing-section {
  padding: clamp(4.5rem, 9vw, 8rem) 0;
}

.landing-section--compact {
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
}

.section-intro {
  max-width: 47rem;
  margin-bottom: 2.4rem;
}

.section-intro--row {
  display: flex;
  max-width: none;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
}

.section-intro--center {
  margin-inline: auto;
  text-align: center;
}

.section-intro--center .eyebrow {
  justify-content: center;
}

.section-intro h2,
.daily-menu h2,
.story-copy h2,
.faq-grid h2,
.contact-form-card h2,
.related-section h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  font-weight: 640;
  letter-spacing: -0.06em;
  line-height: 0.98;
  text-wrap: balance;
}

.section-intro p {
  max-width: 39rem;
  margin: 0.9rem 0 0;
  color: var(--ink-soft);
  line-height: 1.7;
}

.text-link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.45rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--line-strong);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 760;
  text-decoration: none;
}

.text-link:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.slider-controls {
  display: flex;
  gap: 0.45rem;
}

.slider-controls button {
  display: grid;
  width: 2.8rem;
  height: 2.8rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  place-items: center;
  transition: transform 160ms var(--ease), background 160ms ease;
}

.slider-controls button:hover {
  background: var(--surface-soft);
  transform: translateY(-2px);
}

.promotion-slider {
  display: grid;
  min-height: 24rem;
}

.promotion-slide {
  position: relative;
  display: grid;
  overflow: hidden;
  min-height: 24rem;
  padding: clamp(2rem, 6vw, 5rem);
  border-radius: var(--radius-xl);
  align-content: center;
  color: #fff;
  isolation: isolate;
  animation: slide-reveal 350ms var(--ease);
}

.promotion-slide::after {
  position: absolute;
  z-index: -1;
  top: -40%;
  right: -5%;
  width: min(45vw, 35rem);
  aspect-ratio: 1;
  border: 1px solid rgb(255 255 255 / 15%);
  border-radius: 50%;
  box-shadow: 0 0 0 4rem rgb(255 255 255 / 4%), 0 0 0 8rem rgb(255 255 255 / 3%);
  content: "";
}

.promotion-slide--olive { background: linear-gradient(135deg, #233b2a, #42634a); }
.promotion-slide--terracotta { background: linear-gradient(135deg, #723e2f, #b36f4d); }
.promotion-slide--charcoal { background: linear-gradient(135deg, #202521, #414940); }

.promotion-slide > span {
  font-size: 0.66rem;
  font-weight: 780;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  opacity: 0.72;
}

.promotion-slide h3 {
  max-width: 11ch;
  margin: 0.7rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  font-weight: 620;
  letter-spacing: -0.065em;
  line-height: 0.93;
}

.promotion-slide p {
  max-width: 30rem;
  margin: 1rem 0 1.5rem;
  color: rgb(255 255 255 / 72%);
}

.promotion-slide a {
  width: fit-content;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 760;
  text-underline-offset: 0.35rem;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 1rem;
}

.slider-dots button {
  width: 0.45rem;
  height: 0.45rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--line-strong);
  transition: width 180ms var(--ease), background 180ms ease;
}

.slider-dots button.is-active {
  width: 1.7rem;
  background: var(--brand);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.product-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-raised);
  box-shadow: var(--shadow-sm);
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), border-color 220ms ease;
}

.product-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.product-card__media,
.catalog-media,
.gallery-tile:not(.gallery-tile--hero) {
  display: block;
  background-image: url("../media/landing/catalog-dishes.jpg");
  background-repeat: no-repeat;
  background-size: 200% 200%;
}

.catalog-media--northwest { background-position: left top; }
.catalog-media--northeast { background-position: right top; }
.catalog-media--southwest { background-position: left bottom; }
.catalog-media--southeast { background-position: right bottom; }

.product-card__media {
  position: relative;
  aspect-ratio: 1.18;
  overflow: hidden;
}

.product-card__media::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgb(8 13 9 / 30%), transparent 44%);
  content: "";
  transition: opacity 180ms ease;
}

.product-card:hover .product-card__media::after {
  opacity: 0.6;
}

.product-badge {
  position: absolute;
  z-index: 2;
  bottom: 0.7rem;
  left: 0.7rem;
  padding: 0.32rem 0.55rem;
  border: 1px solid rgb(255 255 255 / 20%);
  border-radius: 999px;
  background: rgb(20 35 24 / 72%);
  color: #fff;
  font-size: 0.58rem;
  font-weight: 760;
  backdrop-filter: blur(0.5rem);
}

.product-badge--inline {
  position: static;
  width: fit-content;
  margin-bottom: 1rem;
  background: var(--brand-soft);
  color: var(--brand);
}

.favorite-button {
  position: absolute;
  z-index: 3;
  top: 0.7rem;
  right: 0.7rem;
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid rgb(255 255 255 / 36%);
  border-radius: 50%;
  background: rgb(255 255 252 / 78%);
  color: #263329;
  font-size: 1.15rem;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(0.5rem);
  place-items: center;
}

.favorite-button[aria-pressed="true"] {
  background: #fff;
  color: #a5443f;
}

.favorite-button[aria-pressed="true"] span {
  font-size: 0;
}

.favorite-button[aria-pressed="true"] span::before {
  font-size: 1.05rem;
  content: "♥";
}

.product-card__body {
  display: grid;
  padding: 1rem;
}

.product-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  color: var(--ink-faint);
  font-size: 0.6rem;
  font-weight: 720;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.product-card h3 {
  margin: 0.55rem 0 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.product-card h3 a {
  color: var(--ink);
  text-decoration: none;
}

.product-card__body > p {
  display: -webkit-box;
  min-height: 3.8em;
  margin: 0.55rem 0 0;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 0.72rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.product-card__footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 1rem;
}

.product-card__footer strong {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.product-card__footer a {
  color: var(--ink-soft);
  font-size: 0.68rem;
  font-weight: 720;
  text-decoration: none;
}

.daily-menu {
  overflow: hidden;
  background: color-mix(in srgb, var(--brand-soft), var(--canvas) 55%);
}

.daily-menu__grid {
  display: grid;
  grid-template-columns: minmax(20rem, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(2.5rem, 8vw, 7rem);
}

.daily-menu__media {
  min-height: 35rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  transform: rotate(-1.5deg);
}

.daily-menu__copy > p {
  max-width: 35rem;
  margin: 1.25rem 0 0;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.75;
}

.daily-menu__copy .landing-kicker {
  margin-bottom: 1rem;
  color: var(--brand);
}

.daily-menu__price {
  display: grid;
  margin: 1.5rem 0;
}

.daily-menu__price strong {
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: -0.04em;
}

.daily-menu__price span {
  color: var(--ink-faint);
  font-size: 0.66rem;
}

.specialty-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--line);
}

.specialty-grid article {
  min-height: 19rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--surface);
}

.specialty-grid article > span {
  color: var(--brand);
  font-size: 0.68rem;
  font-weight: 820;
}

.specialty-grid h3 {
  margin: 6rem 0 0.6rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.035em;
}

.specialty-grid p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.gallery-strip {
  display: grid;
  height: min(66vw, 47rem);
  min-height: 32rem;
  padding: 0.5rem;
  grid-template-columns: 1.45fr 1fr 1fr;
  grid-template-rows: repeat(2, 1fr);
  gap: 0.5rem;
  background: var(--canvas-deep);
}

.gallery-tile {
  overflow: hidden;
  border-radius: 0.75rem;
  background-color: var(--surface-soft);
  background-repeat: no-repeat;
}

.gallery-tile--hero {
  grid-row: 1 / -1;
  background-image: url("../media/landing/hero-restaurant.jpg");
  background-position: center;
  background-size: cover;
}

.story-section {
  background: var(--canvas-deep);
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(20rem, 0.95fr);
  align-items: center;
  gap: clamp(2.5rem, 8vw, 7rem);
}

.story-photo {
  position: relative;
}

.story-photo::before {
  position: absolute;
  z-index: 0;
  inset: 8% -5% -6% 12%;
  border-radius: var(--radius-xl);
  background: var(--brand-soft);
  content: "";
  transform: rotate(3deg);
}

.story-photo img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  min-height: 34rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  object-position: 42% center;
}

.story-copy > p {
  margin: 1.25rem 0 0;
  color: var(--ink-soft);
  line-height: 1.8;
}

.story-copy blockquote {
  margin: 2rem 0 0.8rem;
  padding-left: 1.2rem;
  border-left: 2px solid var(--accent);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
  line-height: 1.55;
}

.story-signature {
  color: var(--ink-faint);
  font-size: 0.68rem;
  font-weight: 720;
}

.testimonials {
  background: var(--surface);
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.review-grid figure {
  display: grid;
  min-height: 19rem;
  margin: 0;
  padding: clamp(1.4rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  align-content: space-between;
  background: var(--canvas);
}

.review-stars {
  color: var(--accent);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
}

.review-grid blockquote {
  margin: 2rem 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.55;
}

.review-grid figcaption {
  display: grid;
}

.review-grid figcaption strong {
  font-size: 0.74rem;
}

.review-grid figcaption span {
  color: var(--ink-faint);
  font-size: 0.66rem;
}

.faq-grid {
  display: grid;
  grid-template-columns: minmax(18rem, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(2rem, 8vw, 7rem);
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  position: relative;
  padding: 1.3rem 2.5rem 1.3rem 0;
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 720;
  list-style: none;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  position: absolute;
  top: 1.25rem;
  right: 0;
  color: var(--ink-faint);
  content: "+";
  font-size: 1.1rem;
}

.faq-list details[open] summary::after { content: "−"; }

.faq-list p {
  max-width: 43rem;
  margin: -0.25rem 0 1.3rem;
  color: var(--ink-soft);
  font-size: 0.78rem;
  line-height: 1.75;
}

.contact-section {
  background: var(--canvas-deep);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(20rem, 0.9fr) minmax(22rem, 1.1fr);
  gap: 1rem;
}

.contact-map {
  position: relative;
  min-height: 42rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface-soft);
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: saturate(0.65) contrast(0.92);
}

[data-theme="dark"] .contact-map iframe {
  filter: invert(0.88) hue-rotate(165deg) saturate(0.65) brightness(0.72) contrast(1.05);
}

.contact-map__card {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  display: grid;
  padding: 1.15rem;
  border: 1px solid rgb(255 255 255 / 35%);
  border-radius: var(--radius-md);
  background: var(--surface-raised);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(1rem);
}

.contact-map__card .landing-kicker {
  color: var(--brand);
  font-size: 0.58rem;
}

.contact-map__card strong {
  margin-top: 0.35rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.contact-map__card p {
  margin: 0.25rem 0 0;
  color: var(--ink-faint);
  font-size: 0.68rem;
}

.contact-map__card a {
  margin-top: 0.8rem;
  font-size: 0.72rem;
  font-weight: 750;
}

.contact-form-card {
  padding: clamp(1.5rem, 4vw, 3rem);
}

.contact-form-card .auth-copy h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.form-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

textarea.form-control {
  min-height: 8rem;
  resize: vertical;
}

.contact-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.social-band {
  padding: 1.4rem 0;
  background: var(--brand-strong);
  color: #fff;
}

.social-band .landing-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.social-band span {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 670;
}

.social-band nav,
.public-footer nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.social-band a {
  color: rgb(255 255 255 / 76%);
  font-size: 0.7rem;
  font-weight: 720;
  text-decoration: none;
}

.social-band a:hover { color: #fff; }

.public-footer nav a {
  color: var(--ink-soft);
  font-size: 0.7rem;
  font-weight: 680;
  text-decoration: none;
}

.catalog-hero {
  padding: clamp(5rem, 10vw, 8rem) 0 clamp(3rem, 6vw, 5rem);
  background:
    radial-gradient(circle at 82% 30%, var(--brand-soft), transparent 28rem),
    var(--canvas);
}

.catalog-hero h1 {
  max-width: 12ch;
  margin: 0.7rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 620;
  letter-spacing: -0.07em;
  line-height: 0.92;
}

.catalog-hero p {
  max-width: 35rem;
  margin: 1rem 0 0;
  color: var(--ink-soft);
  font-size: 1rem;
}

.catalog-shell {
  min-height: 45rem;
  padding-bottom: clamp(5rem, 10vw, 8rem);
}

.catalog-toolbar {
  position: sticky;
  z-index: 80;
  top: 5.35rem;
  display: grid;
  padding: 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  grid-template-columns: minmax(15rem, 1fr) auto auto auto;
  align-items: center;
  gap: 0.55rem;
  background: var(--surface-glass);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(1rem);
}

.catalog-search {
  display: flex;
  height: 2.75rem;
  align-items: center;
  gap: 0.7rem;
  padding: 0 0.8rem;
  border: 1px solid var(--line);
  border-radius: 0.72rem;
  background: var(--surface);
  color: var(--ink-faint);
}

.catalog-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 0.78rem;
}

.catalog-toolbar select {
  height: 2.75rem;
  padding: 0 2rem 0 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.72rem;
  background-color: var(--surface);
  color: var(--ink);
  font-size: 0.72rem;
}

.featured-toggle {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  gap: 0.45rem;
  padding: 0 0.75rem;
  color: var(--ink-soft);
  font-size: 0.7rem;
  white-space: nowrap;
}

.featured-toggle input {
  accent-color: var(--brand-strong);
}

.category-tabs {
  display: flex;
  gap: 0.45rem;
  margin: 1.3rem 0 3rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar { display: none; }

.category-tabs a {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 0.68rem;
  font-weight: 680;
  text-decoration: none;
}

.category-tabs a span {
  color: var(--ink-faint);
  font-size: 0.58rem;
}

.category-tabs a.is-active {
  border-color: var(--brand-strong);
  background: var(--brand-strong);
  color: #fff;
}

.category-tabs a.is-active span { color: rgb(255 255 255 / 62%); }

.catalog-results-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.catalog-results-heading span {
  color: var(--ink-faint);
  font-size: 0.66rem;
  font-weight: 720;
  text-transform: uppercase;
}

.catalog-results-heading h2 {
  margin: 0.3rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: -0.045em;
}

[data-favorites-filter][aria-pressed="true"] {
  border-color: var(--danger);
  color: var(--danger);
}

.catalog-empty {
  min-height: 23rem;
}

.catalog-empty .button { margin-top: 1rem; }

.pagination-nav {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 2rem;
}

.pagination-nav a {
  display: grid;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 0.72rem;
  text-decoration: none;
  place-items: center;
}

.pagination-nav a[aria-current="page"] {
  border-color: var(--brand-strong);
  background: var(--brand-strong);
  color: #fff;
}

.product-detail {
  padding: clamp(3rem, 8vw, 7rem) 0;
}

.product-detail__grid {
  display: grid;
  grid-template-columns: minmax(22rem, 1.08fr) minmax(20rem, 0.92fr);
  align-items: center;
  gap: clamp(2.5rem, 8vw, 7rem);
}

.product-detail__media {
  position: relative;
  min-height: min(68vw, 42rem);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.product-detail__media > span {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  background: rgb(20 30 22 / 70%);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 750;
  backdrop-filter: blur(0.6rem);
}

.breadcrumb-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 2rem;
  color: var(--ink-faint);
  font-size: 0.65rem;
}

.breadcrumb-nav a {
  color: var(--ink-soft);
  text-decoration: none;
}

.product-detail__copy .landing-kicker { color: var(--brand); }

.product-detail__copy h1 {
  margin: 0.8rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 620;
  letter-spacing: -0.07em;
  line-height: 0.92;
}

.product-detail__copy > p {
  margin: 1.25rem 0 0;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.75;
}

.product-facts {
  display: grid;
  margin: 2rem 0;
  padding: 1rem 0;
  border-block: 1px solid var(--line);
  grid-template-columns: repeat(3, 1fr);
}

.product-facts div { display: grid; gap: 0.15rem; }
.product-facts dt { color: var(--ink-faint); font-size: 0.62rem; }
.product-facts dd { margin: 0; font-size: 0.75rem; font-weight: 720; }

.product-detail__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.product-detail__actions > strong {
  font-family: var(--font-display);
  font-size: 1.75rem;
  letter-spacing: -0.04em;
}

.product-detail__note {
  color: var(--ink-faint) !important;
  font-size: 0.68rem !important;
}

.related-section { background: var(--canvas-deep); }

@keyframes slide-reveal {
  from { opacity: 0; transform: translateX(1.5rem); }
  to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 68rem) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .daily-menu__grid,
  .story-grid,
  .faq-grid,
  .contact-grid,
  .product-detail__grid { grid-template-columns: 1fr; }
  .daily-menu__media { min-height: 28rem; }
  .story-photo { max-width: 48rem; }
  .contact-map { min-height: 30rem; }
  .catalog-toolbar { grid-template-columns: minmax(14rem, 1fr) auto auto; }
  .catalog-toolbar > .button { grid-column: 1 / -1; }
  .product-detail__media { min-height: min(100vw, 40rem); }
}

@media (max-width: 48rem) {
  .landing-container { width: min(100% - 1.25rem, 78rem); }
  .landing-hero { min-height: calc(100svh - 4.75rem); }
  .landing-hero__veil { background: linear-gradient(0deg, rgb(7 11 8 / 88%) 0%, rgb(7 11 8 / 45%) 72%); }
  .landing-hero h1 { font-size: clamp(3.2rem, 16vw, 5rem); }
  .hero-facts { gap: 1.1rem; }
  .hero-facts dd { max-width: 7rem; }
  .hero-scroll { display: none; }
  .section-intro--row { align-items: flex-start; flex-direction: column; }
  .promotion-slide { min-height: 27rem; padding: 1.5rem; }
  .specialty-grid,
  .review-grid { grid-template-columns: 1fr; }
  .specialty-grid article { min-height: auto; }
  .specialty-grid h3 { margin-top: 3.5rem; }
  .gallery-strip { height: 54rem; min-height: 0; grid-template-columns: repeat(2, 1fr); grid-template-rows: 2fr repeat(2, 1fr); }
  .gallery-tile--hero { grid-column: 1 / -1; grid-row: auto; }
  .story-photo img { min-height: 28rem; }
  .form-split { grid-template-columns: 1fr; }
  .social-band .landing-container { align-items: flex-start; flex-direction: column; }
  .catalog-toolbar { position: static; grid-template-columns: 1fr; }
  .catalog-toolbar > .button { grid-column: auto; }
  .catalog-results-heading { align-items: flex-start; flex-direction: column; }
  .product-detail__actions { align-items: stretch; flex-direction: column; }
  .product-detail__actions .button { width: 100%; }
}

@media (max-width: 34rem) {
  .hero-facts { display: grid; grid-template-columns: repeat(3, 1fr); }
  .product-grid { grid-template-columns: 1fr; }
  .daily-menu__media { min-height: 22rem; }
  .gallery-strip { height: 46rem; }
  .contact-form-card { padding: 1.1rem; }
  .product-facts { gap: 0.65rem; }
  .public-footer__inner nav { flex-wrap: wrap; justify-content: center; }
}

/* Phase 6: cart, checkout, and order management */
.cart-link {
  position: relative;
  display: inline-flex;
  min-width: 2.65rem;
  min-height: 2.65rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 800;
  text-decoration: none;
}

.cart-link b {
  position: absolute;
  top: -0.35rem;
  right: -0.25rem;
  display: grid;
  width: 1.35rem;
  height: 1.35rem;
  place-items: center;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.65rem;
}

.quick-add-form button {
  border: 0;
  background: transparent;
  color: var(--brand);
  font-weight: 800;
}

.quick-add-form button:hover { color: var(--accent); }

.detail-add-form {
  display: grid;
  grid-template-columns: 7rem minmax(12rem, 1fr);
  gap: 0.75rem;
  max-width: 30rem;
}

.detail-add-form label {
  display: grid;
  gap: 0.3rem;
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 750;
}

.detail-add-form input { min-height: 3.15rem; }

.commerce-hero {
  padding: clamp(7rem, 14vw, 10rem) 0 clamp(3.5rem, 8vw, 6rem);
  background:
    radial-gradient(circle at 75% 35%, rgb(191 125 67 / 18%), transparent 28rem),
    linear-gradient(135deg, var(--surface-soft), var(--canvas));
  border-bottom: 1px solid var(--line);
}

.commerce-hero--compact { padding-bottom: 3.5rem; }

.commerce-hero__content {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}

.commerce-hero h1 {
  max-width: 16ch;
  margin: 0.45rem 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 5.8rem);
  letter-spacing: -0.06em;
  line-height: 0.96;
}

.commerce-hero--compact h1 { font-size: clamp(2.5rem, 5vw, 4.6rem); }
.commerce-hero p { max-width: 42rem; margin: 0; color: var(--ink-soft); font-size: 1.05rem; }
.commerce-section { padding: clamp(3rem, 7vw, 6rem) 0; }
.cart-empty { min-height: 28rem; justify-content: center; text-align: center; }
.cart-empty h2 { margin: 0; font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 3rem); }
.cart-empty p { max-width: 38rem; }

.cart-layout,
.checkout-layout,
.order-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(19rem, 0.75fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: start;
}

.cart-lines,
.checkout-form,
.order-detail-aside { display: grid; gap: 1rem; }

.cart-line {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr);
  gap: 1.25rem;
  padding: 1rem;
}

.cart-line__media { min-height: 9rem; border-radius: var(--radius-md); }
.cart-line__content { display: grid; gap: 0.8rem; min-width: 0; }
.cart-line__heading { display: flex; justify-content: space-between; gap: 1rem; }
.cart-line__heading span,
.cart-line__unit { color: var(--ink-faint); font-size: 0.74rem; }
.cart-line__heading h2 { margin: 0.1rem 0 0; font-size: 1.15rem; }
.cart-line__heading > strong { white-space: nowrap; font-size: 1.05rem; }
.cart-line__controls { display: grid; grid-template-columns: 6rem minmax(10rem, 1fr) auto; gap: 0.7rem; align-items: end; }
.cart-line__controls label { display: grid; gap: 0.25rem; color: var(--ink-soft); font-size: 0.7rem; font-weight: 750; }
.cart-line__controls input { min-height: 2.7rem; padding: 0.55rem 0.7rem; }
.text-action { border: 0; background: transparent; color: var(--brand); font-weight: 750; text-decoration: none; }
.text-action--danger { min-height: 2.7rem; color: var(--danger); }
.cart-actions { display: flex; justify-content: space-between; gap: 0.75rem; }

.order-summary {
  position: sticky;
  top: 6rem;
  padding: clamp(1.35rem, 3vw, 2rem);
}

.order-summary h2 { margin: 0.35rem 0 1.35rem; font-family: var(--font-display); font-size: 1.8rem; }
.order-summary dl,
.order-totals { display: grid; gap: 0.8rem; margin: 0 0 1.4rem; }
.order-summary dl div,
.order-totals div { display: flex; justify-content: space-between; gap: 1rem; }
.order-summary dt,
.order-totals dt { color: var(--ink-soft); font-weight: 550; }
.order-summary dd,
.order-totals dd { margin: 0; font-weight: 750; }
.order-summary__total { margin-top: 0.4rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: 1.12rem; }
.order-summary__assurance { margin: 1rem 0 0; color: var(--ink-faint); font-size: 0.74rem; text-align: center; }
.button--block { width: 100%; justify-content: center; }
.button--large { min-height: 3.6rem; }

.checkout-panel { padding: clamp(1.25rem, 3vw, 2rem); }
.checkout-panel__heading { display: flex; gap: 1rem; margin-bottom: 1.4rem; }
.checkout-panel__heading > span { display: grid; width: 2.2rem; height: 2.2rem; flex: 0 0 auto; place-items: center; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-size: 0.72rem; font-weight: 850; }
.checkout-panel__heading h2 { margin: 0; font-size: 1.2rem; }
.checkout-panel__heading p { margin: 0.15rem 0 0; color: var(--ink-soft); font-size: 0.82rem; }
.choice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
.choice-grid--three { grid-template-columns: repeat(3, 1fr); }
.choice-card { position: relative; display: block; cursor: pointer; }
.choice-card input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.choice-card span { display: grid; min-height: 6.3rem; align-content: center; gap: 0.3rem; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-soft); transition: 180ms var(--ease); }
.choice-card small { color: var(--ink-soft); line-height: 1.35; }
.choice-card:has(input:checked) span { border-color: var(--brand); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand); }
.choice-card:has(input:focus-visible) span { outline: 3px solid color-mix(in srgb, var(--focus) 36%, transparent); outline-offset: 2px; }
.form-grid--two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; }
.form-grid--two label,
.checkout-notes { display: grid; gap: 0.35rem; color: var(--ink-soft); font-size: 0.76rem; font-weight: 750; }
.form-field--wide { grid-column: 1 / -1; }
.validation-grid { display: grid; grid-template-columns: repeat(2, 1fr); color: var(--danger); font-size: 0.76rem; }
.checkout-notes { margin-top: 1rem; }
[data-delivery-fields][hidden] { display: none; }
.order-summary--checkout { max-height: calc(100vh - 7rem); overflow: auto; }
.checkout-lines,
.order-line-list { display: grid; gap: 0.9rem; margin: 0 0 1.2rem; padding: 0 0 1.2rem; border-bottom: 1px solid var(--line); list-style: none; }
.checkout-lines li,
.order-line-list li { display: flex; justify-content: space-between; gap: 1rem; }
.checkout-lines span,
.order-line-list span { display: grid; }
.checkout-lines small,
.order-line-list small { color: var(--ink-faint); }
.checkout-lines b,
.order-line-list b { white-space: nowrap; }

.order-history-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.order-history-card { display: grid; gap: 1rem; padding: 1.25rem; color: var(--ink); text-decoration: none; transition: transform 180ms var(--ease), box-shadow 180ms var(--ease); }
.order-history-card:hover { transform: translateY(-0.2rem); box-shadow: var(--shadow-md); }
.order-history-card > div,
.order-history-card footer { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; }
.order-history-card > div > span:last-child { color: var(--ink-faint); font-size: 0.72rem; }
.order-history-card h2 { margin: 0; font-size: 1.2rem; }
.order-history-card p { margin: -0.7rem 0 0; color: var(--ink-soft); }
.order-history-card footer { padding-top: 0.9rem; border-top: 1px solid var(--line); color: var(--brand); }
.status-pill { display: inline-flex; width: fit-content; padding: 0.35rem 0.65rem; border-radius: 999px; background: var(--surface-soft); color: var(--ink-soft); font-size: 0.68rem; font-weight: 850; }
.status-pending { background: var(--warning-soft); color: var(--warning); }
.status-accepted,
.status-preparing { background: var(--accent-soft); color: var(--accent); }
.status-ready,
.status-outfordelivery { background: var(--brand-soft); color: var(--brand); }
.status-delivered { background: var(--success-soft); color: var(--success); }
.status-cancelled { background: var(--danger-soft); color: var(--danger); }

.order-confirmation { display: flex; align-items: center; gap: 1rem; padding: 1.15rem 1.3rem; border: 1px solid color-mix(in srgb, var(--success) 35%, var(--line)); border-radius: var(--radius-lg); background: var(--success-soft); color: var(--success); }
.order-confirmation > span { display: grid; width: 2.4rem; height: 2.4rem; place-items: center; border-radius: 50%; background: var(--success); color: #fff; font-weight: 900; }
.order-confirmation p { margin: 0.1rem 0 0; }
.order-detail-card,
.danger-zone,
.order-timeline { padding: clamp(1.25rem, 3vw, 2rem); }
.order-detail-card h2,
.danger-zone h2,
.order-timeline h2 { margin-top: 0; font-size: 1.2rem; }
.order-totals div:last-child { padding-top: 1rem; border-top: 1px solid var(--line); font-size: 1.12rem; }
.danger-zone { border-color: color-mix(in srgb, var(--danger) 28%, var(--line)); }
.danger-zone p { color: var(--ink-soft); }
.order-timeline ol { display: grid; margin: 0; padding: 0; list-style: none; }
.order-timeline li { position: relative; display: grid; grid-template-columns: 1.5rem 1fr; gap: 0.8rem; min-height: 4.5rem; }
.order-timeline li > span { z-index: 1; width: 0.8rem; height: 0.8rem; margin: 0.35rem; border: 0.2rem solid var(--surface); border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.order-timeline li:not(:last-child)::before { position: absolute; top: 1.1rem; bottom: -0.2rem; left: 0.72rem; width: 1px; background: var(--line); content: ""; }
.order-timeline time { display: block; color: var(--ink-faint); font-size: 0.72rem; }
.order-timeline p { margin: 0.25rem 0 0; color: var(--ink-soft); }

.operational-filters { display: grid; grid-template-columns: minmax(14rem, 1fr) 13rem auto; gap: 0.75rem; padding: 0.9rem; }
.metric-chip { padding: 0.55rem 0.8rem; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft); font-weight: 750; }
.operations-order-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.operations-order-card { display: grid; gap: 1rem; padding: 1.2rem; }
.operations-order-card header > div { display: flex; align-items: center; justify-content: space-between; }
.operations-order-card time { color: var(--ink-faint); font-weight: 750; }
.operations-order-card h2 { margin: 0.8rem 0 0; font-size: 1.15rem; }
.operations-order-card header p { margin: 0.15rem 0 0; color: var(--ink-soft); }
.operations-order-card__metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.65rem; }
.operations-order-card__metrics span { display: grid; padding: 0.7rem; border-radius: var(--radius-sm); background: var(--surface-soft); color: var(--ink-faint); font-size: 0.68rem; }
.operations-order-card__metrics b { color: var(--ink); font-size: 0.9rem; }
.operations-order-card__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; padding-top: 0.9rem; border-top: 1px solid var(--line); }

.confirm-dialog { width: min(28rem, calc(100% - 2rem)); padding: 0; border: 0; border-radius: var(--radius-xl); background: transparent; color: var(--ink); }
.confirm-dialog::backdrop { background: rgb(10 15 11 / 58%); backdrop-filter: blur(0.3rem); }
.confirm-dialog__panel { display: grid; justify-items: center; padding: 2rem; border: 1px solid var(--line); border-radius: var(--radius-xl); background: var(--surface); box-shadow: var(--shadow-lg); text-align: center; }
.confirm-dialog__mark { display: grid; width: 3rem; height: 3rem; place-items: center; border-radius: 50%; background: var(--danger-soft); color: var(--danger); font-size: 1.25rem; font-weight: 900; }
.confirm-dialog h2 { margin: 1rem 0 0.4rem; }
.confirm-dialog p { margin: 0; color: var(--ink-soft); }
.confirm-dialog__actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.7rem; width: 100%; margin-top: 1.5rem; }

@media (max-width: 64rem) {
  .cart-layout,
  .checkout-layout,
  .order-detail-grid { grid-template-columns: 1fr; }
  .order-summary { position: static; }
  .order-summary--checkout { max-height: none; }
  .order-history-grid,
  .operations-order-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 48rem) {
  .commerce-hero__content { align-items: flex-start; flex-direction: column; }
  .cart-line { grid-template-columns: 6rem minmax(0, 1fr); }
  .cart-line__media { min-height: 6rem; }
  .cart-line__heading { align-items: flex-start; flex-direction: column; }
  .cart-line__controls { grid-template-columns: 5rem minmax(0, 1fr); }
  .cart-line__controls .text-action { grid-column: 1 / -1; justify-self: start; }
  .choice-grid--three { grid-template-columns: 1fr; }
  .order-history-grid,
  .operations-order-grid { grid-template-columns: 1fr; }
  .operational-filters { grid-template-columns: 1fr; }
}

@media (max-width: 34rem) {
  .cart-line { grid-template-columns: 1fr; }
  .cart-line__media { min-height: 12rem; }
  .cart-line__controls,
  .form-grid--two,
  .choice-grid { grid-template-columns: 1fr; }
  .form-field--wide { grid-column: auto; }
  .cart-actions { align-items: stretch; flex-direction: column; }
  .detail-add-form { grid-template-columns: 1fr; }
}

/* Phase 7: operational analytics dashboard */
.dashboard-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 0.85rem;
}

.dashboard-heading h1 {
  max-width: 16ch;
  margin: 0.4rem 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 5vw, 4.7rem);
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.dashboard-heading p {
  margin: 0;
  color: var(--ink-soft);
}

.period-filter {
  display: grid;
  min-width: min(100%, 18rem);
  grid-template-columns: 1fr;
  gap: 0.25rem;
  padding: 0.8rem 0.9rem;
}

.period-filter label {
  color: var(--ink-faint);
  font-size: 0.64rem;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.period-filter select {
  min-height: 2rem;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 780;
}

.period-filter span {
  color: var(--ink-faint);
  font-size: 0.69rem;
}

.dashboard-freshness {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.4rem;
  color: var(--ink-faint);
  font-size: 0.69rem;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

.kpi-card {
  position: relative;
  display: grid;
  min-height: 10.8rem;
  align-content: space-between;
  gap: 1rem;
  overflow: hidden;
  padding: 1.15rem;
}

.kpi-card::after {
  position: absolute;
  right: -3rem;
  bottom: -5rem;
  width: 9rem;
  height: 9rem;
  border-radius: 50%;
  background: var(--brand-soft);
  content: "";
  opacity: 0.35;
}

.kpi-card--primary {
  border-color: color-mix(in srgb, var(--brand) 30%, var(--line));
  background: linear-gradient(145deg, color-mix(in srgb, var(--brand-soft) 58%, var(--surface)), var(--surface));
}

.kpi-card header,
.kpi-card footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}

.kpi-card header > span:first-child {
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 760;
}

.kpi-card header > span:last-child {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 0.6rem;
  background: var(--surface-soft);
  color: var(--brand);
  font-size: 0.61rem;
  font-weight: 880;
}

.kpi-card > strong {
  position: relative;
  z-index: 1;
  overflow-wrap: anywhere;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.45rem);
  letter-spacing: -0.04em;
  line-height: 1;
}

.kpi-card > .kpi-card__pending {
  color: var(--ink-soft);
  font-size: 1.45rem;
}

.kpi-card footer {
  justify-content: flex-start;
  color: var(--ink-faint);
  font-size: 0.65rem;
}

.metric-trend {
  display: inline-flex;
  padding: 0.2rem 0.38rem;
  border-radius: 999px;
  font-weight: 820;
}

.metric-trend--up { background: var(--success-soft); color: var(--success); }
.metric-trend--down { background: var(--danger-soft); color: var(--danger); }
.metric-trend--flat { background: var(--surface-soft); color: var(--ink-soft); }

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(18rem, 0.75fr);
  gap: 0.85rem;
}

.analytics-card {
  min-width: 0;
  padding: clamp(1rem, 2vw, 1.35rem);
}

.analytics-card--wide { min-height: 24rem; }

.analytics-card__header {
  display: flex;
  min-height: 3.2rem;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.analytics-card__header .eyebrow { font-size: 0.58rem; }
.analytics-card__header h2 { margin: 0.18rem 0 0; font-size: 1.1rem; letter-spacing: -0.02em; }
.analytics-card__header > a { color: var(--brand); font-size: 0.7rem; font-weight: 780; text-decoration: none; }
.chart-key { display: flex; align-items: center; gap: 0.4rem; color: var(--ink-faint); font-size: 0.65rem; }
.chart-key > span { width: 1.2rem; height: 0.18rem; border-radius: 1rem; background: var(--brand); }

.sales-chart {
  display: grid;
  min-height: 18rem;
  grid-template-rows: minmax(14rem, 1fr) auto;
}

.sales-chart svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.chart-grid-lines line {
  stroke: var(--line);
  stroke-dasharray: 4 7;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.sales-chart__area { fill: url(#sales-area); }
.sales-chart__line { fill: none; stroke: var(--brand); stroke-linecap: round; stroke-linejoin: round; stroke-width: 3; vector-effect: non-scaling-stroke; }

.sales-chart__axis {
  display: grid;
  grid-template-columns: repeat(var(--point-count), minmax(0, 1fr));
  color: var(--ink-faint);
  font-size: 0.58rem;
}

.sales-chart__axis span { overflow: visible; white-space: nowrap; }

.status-distribution__bar {
  display: flex;
  height: 0.75rem;
  overflow: hidden;
  margin: 0.3rem 0 1.2rem;
  border-radius: 999px;
  background: var(--surface-soft);
}

.status-segment { width: var(--segment); min-width: 0.2rem; background: var(--ink-faint); }
.status-segment--pending,
.status-dot--pending { background: var(--warning); }
.status-segment--accepted,
.status-dot--accepted { background: var(--accent); }
.status-segment--preparing,
.status-dot--preparing { background: #a96543; }
.status-segment--ready,
.status-dot--ready { background: var(--brand); }
.status-segment--outfordelivery,
.status-dot--outfordelivery { background: #56829b; }
.status-segment--delivered,
.status-dot--delivered { background: var(--success); }
.status-segment--cancelled,
.status-dot--cancelled { background: var(--danger); }

.status-distribution ul {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.status-distribution li {
  display: grid;
  grid-template-columns: 0.55rem 1fr auto 3rem;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink-soft);
  font-size: 0.7rem;
}

.status-dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--ink-faint); }
.status-distribution li strong { color: var(--ink); }
.status-distribution li small { color: var(--ink-faint); text-align: right; }

.hour-chart {
  display: grid;
  height: 13rem;
  grid-template-columns: repeat(24, minmax(0, 1fr));
  align-items: end;
  gap: 0.18rem;
  padding-top: 0.8rem;
  border-bottom: 1px solid var(--line);
}

.hour-column {
  display: grid;
  height: 100%;
  grid-template-rows: 1fr 1.35rem;
  align-items: end;
  gap: 0.3rem;
}

.hour-column > span {
  width: 100%;
  height: max(0.18rem, var(--bar-height));
  border-radius: 0.25rem 0.25rem 0 0;
  background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 55%, var(--brand)));
  transition: height 220ms var(--ease), filter 160ms ease;
}

.hour-column:hover > span { filter: brightness(1.08); }
.hour-column small { color: var(--ink-faint); font-size: 0.52rem; text-align: center; }
.chart-note { margin: 0.8rem 0 0; color: var(--ink-faint); font-size: 0.64rem; }

.product-ranking,
.inventory-alert-list {
  display: grid;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.product-ranking li {
  display: grid;
  grid-template-columns: 1.8rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.7rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
}

.product-ranking li:last-child { border-bottom: 0; }
.ranking-index { color: var(--ink-faint); font-size: 0.68rem; font-weight: 820; }
.product-ranking li > div { display: grid; min-width: 0; gap: 0.1rem; }
.product-ranking strong { overflow: hidden; font-size: 0.75rem; text-overflow: ellipsis; white-space: nowrap; }
.product-ranking small { color: var(--ink-faint); font-size: 0.61rem; }
.product-ranking li > b { font-size: 0.7rem; white-space: nowrap; }
.product-ranking li > div > span { height: 0.2rem; margin-top: 0.35rem; overflow: hidden; border-radius: 1rem; background: var(--surface-soft); }
.product-ranking i { display: block; width: var(--share); height: 100%; border-radius: inherit; background: var(--brand); }

.dashboard-bottom-grid {
  display: grid;
  grid-template-columns: minmax(18rem, 0.75fr) minmax(0, 1.5fr);
  gap: 0.85rem;
  margin-top: 0.85rem;
}

.alert-count {
  display: grid;
  min-width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 0.65rem;
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 0.72rem;
  font-weight: 850;
}

.inventory-alert-list li {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
}

.inventory-alert-list li:last-child { border-bottom: 0; }
.inventory-alert-list li > span { display: grid; width: 1.8rem; height: 1.8rem; place-items: center; border-radius: 50%; background: var(--warning-soft); color: var(--warning); font-size: 0.7rem; font-weight: 900; }
.inventory-alert-list li > div { display: grid; }
.inventory-alert-list strong { font-size: 0.74rem; }
.inventory-alert-list small { color: var(--ink-faint); font-size: 0.6rem; }
.inventory-alert-list b { color: var(--danger); font-size: 0.67rem; white-space: nowrap; }

.recent-order-list { display: grid; }
.recent-order-list > div {
  display: grid;
  grid-template-columns: 0.55rem minmax(8rem, 1fr) auto auto 6.2rem;
  align-items: center;
  gap: 0.65rem;
  padding: 0.68rem 0;
  border-bottom: 1px solid var(--line);
}

.recent-order-list > div:last-child { border-bottom: 0; }
.activity-mark { width: 0.5rem; height: 0.5rem; border-radius: 50%; }
.recent-order-list > div > div { display: grid; min-width: 0; }
.recent-order-list strong { font-size: 0.72rem; }
.recent-order-list small { overflow: hidden; color: var(--ink-faint); font-size: 0.6rem; text-overflow: ellipsis; white-space: nowrap; }
.recent-order-list > div > b { font-size: 0.68rem; white-space: nowrap; }
.recent-order-list time { color: var(--ink-faint); font-size: 0.6rem; text-align: right; }

.dashboard-empty {
  display: grid;
  min-height: 10rem;
  place-content: center;
  gap: 0.25rem;
  padding: 1rem;
  color: var(--ink-faint);
  text-align: center;
}

.dashboard-empty strong { color: var(--ink); }
.dashboard-empty span { font-size: 0.7rem; }
.dashboard-empty--success strong { color: var(--success); }

@media (max-width: 76rem) {
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-grid,
  .dashboard-bottom-grid { grid-template-columns: 1fr; }
}

@media (max-width: 48rem) {
  .dashboard-heading { align-items: stretch; flex-direction: column; }
  .period-filter { width: 100%; }
  .kpi-grid { grid-template-columns: 1fr; }
  .kpi-card { min-height: 9.5rem; }
  .analytics-card__header { align-items: flex-start; flex-direction: column; }
  .hour-chart { gap: 0.1rem; }
  .recent-order-list > div { grid-template-columns: 0.55rem minmax(0, 1fr) auto; }
  .recent-order-list .status-pill { display: none; }
  .recent-order-list > div > b { grid-column: 2; }
  .recent-order-list time { grid-column: 3; grid-row: 2; }
}

@media (max-width: 34rem) {
  .dashboard-heading h1 { font-size: 2.65rem; }
  .analytics-card { padding: 0.9rem; }
  .sales-chart { min-height: 14rem; grid-template-rows: minmax(10rem, 1fr) auto; }
  .status-distribution li { grid-template-columns: 0.5rem 1fr auto; }
  .status-distribution li small { display: none; }
  .product-ranking li { grid-template-columns: 1.3rem minmax(0, 1fr); }
  .product-ranking li > b { grid-column: 2; }
  .inventory-alert-list li { grid-template-columns: 1.8rem minmax(0, 1fr); }
  .inventory-alert-list li > b { grid-column: 2; }
}

/* Phase 8: administration workspace */
.admin-workspace { gap: 1rem; }

.admin-tabs {
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  padding: 0.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-glass);
  box-shadow: var(--shadow-sm);
  scrollbar-width: none;
}

.admin-tabs::-webkit-scrollbar { display: none; }
.admin-tabs a { flex: 0 0 auto; padding: 0.55rem 0.8rem; border-radius: 0.7rem; color: var(--ink-soft); font-size: 0.72rem; font-weight: 760; text-decoration: none; }
.admin-tabs a:hover { background: var(--surface-soft); color: var(--ink); }

.admin-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.admin-metric-grid article {
  display: flex;
  min-height: 6.8rem;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem;
}

.admin-metric-grid article > span {
  display: grid;
  width: 2.6rem;
  height: 2.6rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 0.8rem;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.65rem;
  font-weight: 880;
}

.admin-metric-grid article > div { display: grid; }
.admin-metric-grid strong { font-family: var(--font-display); font-size: 1.65rem; line-height: 1; }
.admin-metric-grid small { margin-top: 0.25rem; color: var(--ink-faint); font-size: 0.65rem; }

.admin-module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.admin-module-card {
  display: grid;
  min-height: 13rem;
  align-content: start;
  padding: 1.2rem;
  color: var(--ink);
  text-decoration: none;
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), border-color 180ms ease;
}

.admin-module-card:hover { border-color: var(--brand); color: var(--ink); box-shadow: var(--shadow-md); transform: translateY(-0.18rem); }
.admin-module-card > span { color: var(--accent); font-size: 0.65rem; font-weight: 850; letter-spacing: 0.08em; }
.admin-module-card h2 { margin: 1.2rem 0 0.35rem; font-family: var(--font-display); font-size: 1.45rem; }
.admin-module-card p { margin: 0; color: var(--ink-soft); font-size: 0.75rem; }
.admin-module-card b { align-self: end; margin-top: 1.2rem; color: var(--brand); font-size: 0.7rem; }

.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.admin-search {
  display: flex;
  width: min(100%, 35rem);
  gap: 0.6rem;
  padding: 0.55rem;
}

.admin-search input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; }

.admin-table-card { padding: 0; }
.admin-table-card > header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.2rem; border-bottom: 1px solid var(--line); }
.admin-table-card > header h2 { margin: 0.15rem 0 0; font-size: 1.15rem; }
.admin-table-wrap { width: 100%; overflow-x: auto; }
.admin-table { width: 100%; min-width: 48rem; border-collapse: collapse; }
.admin-table th { padding: 0.7rem 1rem; border-bottom: 1px solid var(--line); background: var(--surface-soft); color: var(--ink-faint); font-size: 0.61rem; font-weight: 820; letter-spacing: 0.06em; text-align: left; text-transform: uppercase; }
.admin-table td { padding: 0.8rem 1rem; border-bottom: 1px solid var(--line); color: var(--ink-soft); font-size: 0.7rem; vertical-align: middle; }
.admin-table tbody tr:last-child td { border-bottom: 0; }
.admin-table tbody tr:hover { background: color-mix(in srgb, var(--surface-soft) 52%, transparent); }
.admin-table td > strong,
.admin-table td > small { display: block; }
.admin-table td > strong { color: var(--ink); }
.admin-table td > small { margin-top: 0.12rem; color: var(--ink-faint); font-size: 0.6rem; }
.admin-table code { color: var(--ink-faint); font-size: 0.6rem; }

.admin-pagination { display: flex; align-items: center; justify-content: center; gap: 1rem; padding: 0.9rem; border-top: 1px solid var(--line); color: var(--ink-faint); font-size: 0.68rem; }
.admin-pagination a { font-weight: 780; text-decoration: none; }

.admin-editor,
.row-editor { position: relative; }
.admin-editor > summary,
.row-editor > summary { cursor: pointer; list-style: none; }
.admin-editor > summary::-webkit-details-marker,
.row-editor > summary::-webkit-details-marker { display: none; }
.row-editor > summary { color: var(--brand); font-size: 0.68rem; font-weight: 780; }

.admin-editor[open],
.row-editor[open] {
  position: fixed;
  z-index: 950;
  inset: 0;
  overflow-y: auto;
  padding: clamp(1rem, 5vw, 4rem);
  background: rgb(10 15 11 / 66%);
  backdrop-filter: blur(0.55rem);
}

.admin-editor[open] > summary,
.row-editor[open] > summary {
  position: fixed;
  z-index: 2;
  top: 1rem;
  right: 1rem;
  display: grid;
  width: 2.6rem;
  height: 2.6rem;
  overflow: hidden;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: transparent;
  box-shadow: var(--shadow-md);
}

.admin-editor[open] > summary::after,
.row-editor[open] > summary::after { color: var(--ink); content: "×"; font-size: 1.25rem; line-height: 1; }

.admin-form {
  display: grid;
  width: min(100%, 52rem);
  gap: 0.9rem;
  margin: 0 auto;
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.admin-form--compact { width: min(100%, 46rem); }
.admin-form h2 { margin: 0 0 0.4rem; font-family: var(--font-display); font-size: 1.8rem; }
.admin-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem; }
.admin-form label { display: grid; gap: 0.3rem; color: var(--ink-soft); font-size: 0.68rem; font-weight: 730; }
.admin-form input,
.admin-form select,
.admin-form textarea { width: 100%; min-height: 2.7rem; padding: 0.6rem 0.7rem; border: 1px solid var(--line); border-radius: 0.65rem; background: var(--surface-soft); color: var(--ink); }
.admin-form textarea { min-height: 5.5rem; resize: vertical; }
.admin-form > .button { justify-self: start; }

.switch-field { display: flex !important; align-items: center; gap: 0.55rem !important; }
.switch-field input { width: 1.1rem; min-height: 1.1rem; accent-color: var(--brand); }

.permission-picker { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; padding: 0.8rem; border: 1px solid var(--line); border-radius: var(--radius-md); }
.permission-picker legend { padding: 0 0.3rem; color: var(--ink); font-size: 0.72rem; font-weight: 820; }
.permission-picker label { display: flex; min-width: 0; align-items: flex-start; gap: 0.5rem; padding: 0.55rem; border-radius: 0.6rem; background: var(--surface-soft); }
.permission-picker input { width: 1rem; min-height: 1rem; flex: 0 0 auto; accent-color: var(--brand); }
.permission-picker label > span { display: grid; min-width: 0; }
.permission-picker small { color: var(--ink-faint); font-size: 0.58rem; font-weight: 550; }

.row-editor[open] > form:not(.admin-form) { width: min(100%, 46rem); margin: 0.75rem auto 0; padding: 0.8rem; border-radius: var(--radius-md); background: var(--surface); text-align: center; }

.category-admin-grid,
.role-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; padding: 1rem; }
.category-admin-grid > article,
.role-grid > article { display: flex; min-width: 0; align-items: flex-start; justify-content: space-between; gap: 0.7rem; padding: 0.9rem; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-soft); }
.category-admin-grid article > div,
.role-grid article > div { display: grid; min-width: 0; }
.category-admin-grid strong,
.role-grid strong { margin-top: 0.45rem; color: var(--ink); font-size: 0.78rem; }
.category-admin-grid small,
.role-grid small { color: var(--ink-faint); font-size: 0.61rem; }
.category-admin-grid p,
.role-grid p { margin: 0.4rem 0 0; color: var(--ink-soft); font-size: 0.65rem; }

.audit-action-created { background: var(--success-soft); color: var(--success); }
.audit-action-updated { background: var(--accent-soft); color: var(--accent); }
.audit-action-deleted { background: var(--danger-soft); color: var(--danger); }

@media (max-width: 76rem) {
  .admin-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-module-grid,
  .category-admin-grid,
  .role-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 48rem) {
  .admin-toolbar { align-items: stretch; flex-direction: column; }
  .admin-search { width: 100%; }
  .admin-module-grid,
  .category-admin-grid,
  .role-grid { grid-template-columns: 1fr; }
  .admin-form-grid,
  .permission-picker { grid-template-columns: 1fr; }
  .admin-editor[open],
  .row-editor[open] { padding: 3.8rem 0.6rem 1rem; }
  .admin-form { padding: 1rem; border-radius: var(--radius-lg); }
}

@media (max-width: 34rem) {
  .admin-metric-grid { grid-template-columns: 1fr; }
  .admin-metric-grid article { min-height: 5.5rem; }
}

/* Phase 9: supply, inventory and purchasing */
.supply-workspace { gap: 1.35rem; }
.supply-heading { align-items: flex-end; }
.supply-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.85rem; }
.supply-kpi { min-height: 8.2rem; padding: 1.15rem; display: grid; align-content: space-between; border: 1px solid var(--line-soft); }
.supply-kpi span, .supply-kpi small { color: var(--ink-soft); }
.supply-kpi strong { font-family: var(--font-display); font-size: clamp(1.55rem, 3vw, 2.25rem); letter-spacing: -0.04em; }
.supply-kpi--warning { border-color: color-mix(in srgb, var(--danger) 30%, var(--line-soft)); background: linear-gradient(145deg, var(--surface), color-mix(in srgb, var(--danger-soft) 35%, var(--surface))); }
.supply-toolbar { align-items: stretch; }
.supply-toolbar .admin-search { flex: 1 1 42rem; flex-wrap: wrap; }
.supply-toolbar .admin-search input[type="search"] { min-width: min(100%, 18rem); flex: 2 1 18rem; }
.supply-toolbar .admin-search select { flex: 1 1 12rem; }
.supply-table td { vertical-align: middle; }
.supply-row--warning { background: color-mix(in srgb, var(--danger-soft) 24%, transparent); }
.supply-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.supply-split--purchasing { grid-template-columns: minmax(18rem, 0.8fr) minmax(28rem, 1.2fr); }
.supply-list { display: grid; gap: 0.25rem; }
.supply-list > article { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.9rem 0; border-bottom: 1px solid var(--line-soft); }
.supply-list > article:last-child { border-bottom: 0; }
.supply-list > article > div:first-child { min-width: 0; display: grid; gap: 0.2rem; }
.supply-list span, .supply-list small { color: var(--ink-soft); }
.supply-list__metric { flex: 0 0 auto; display: grid; justify-items: end; gap: 0.3rem; text-align: right; }
.supply-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; padding-top: 1rem; }
.supply-section-heading h2, .supply-section-heading p { margin: 0.25rem 0 0; }
.supply-section-heading p { color: var(--ink-soft); }
.supply-heading-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.purchase-lines { display: grid; gap: 0.65rem; }
.purchase-line { display: grid; grid-template-columns: 1fr 1.4fr 0.7fr 0.8fr 0.65fr auto; gap: 0.55rem; align-items: end; padding: 0.75rem; border: 1px solid var(--line-soft); border-radius: var(--radius-md); background: var(--surface-muted); }
.purchase-orders { display: grid; gap: 0.8rem; }
.purchase-order { padding: 1rem; border: 1px solid var(--line-soft); border-radius: var(--radius-lg); background: var(--surface-muted); }
.purchase-order > header, .purchase-order > footer { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; }
.purchase-order > header > div { display: grid; gap: 0.2rem; }
.purchase-order > header > div:last-child { justify-items: end; }
.purchase-order > header span { color: var(--ink-soft); }
.purchase-order__lines { display: grid; gap: 0.35rem; margin: 0.85rem 0; padding: 0.65rem 0; border-block: 1px solid var(--line-soft); }
.purchase-order__lines > div { display: grid; grid-template-columns: 1fr auto auto; gap: 0.8rem; font-size: 0.82rem; }
.purchase-order > footer { justify-content: flex-end; flex-wrap: wrap; }
.receipt-line { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.55rem; padding: 0.65rem; border: 1px solid var(--line-soft); border-radius: var(--radius-md); }
.receipt-line legend { grid-column: 1 / -1; float: none; width: auto; margin: 0; font-size: 0.75rem; font-weight: 700; }
.status-draft { background: var(--surface-strong); color: var(--ink-soft); }
.status-submitted { background: var(--accent-soft); color: var(--accent); }
.status-partiallyreceived { background: var(--warning-soft); color: var(--warning); }
.status-received { background: var(--success-soft); color: var(--success); }
.status-cancelled { background: var(--danger-soft); color: var(--danger); }

@media (max-width: 76rem) {
  .supply-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .supply-split, .supply-split--purchasing { grid-template-columns: 1fr; }
  .purchase-line { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 48rem) {
  .supply-heading, .supply-section-heading { align-items: stretch; flex-direction: column; }
  .supply-kpis { grid-template-columns: 1fr; }
  .purchase-line, .receipt-line { grid-template-columns: 1fr; }
  .receipt-line legend { grid-column: auto; }
  .purchase-order > header { align-items: flex-start; }
  .purchase-order__lines > div { grid-template-columns: 1fr auto; }
  .purchase-order__lines > div strong { grid-column: 1 / -1; }
}

/* Phase 10: point of sale and cash management */
.pos-workspace { gap: 1rem; }
.pos-heading { align-items: center; }
.pos-session-badge { display: flex; align-items: center; gap: 0.65rem; padding: 0.7rem 0.9rem; border: 1px solid var(--line-soft); border-radius: 999px; background: var(--surface); box-shadow: var(--shadow-sm); }
.pos-session-badge > div { display: grid; }
.pos-session-badge small { color: var(--ink-soft); }
.pos-opening-grid { display: grid; grid-template-columns: minmax(18rem, 0.8fr) minmax(26rem, 1.2fr); gap: 1rem; align-items: start; }
.pos-opening-card { padding: clamp(1.25rem, 3vw, 2rem); }
.pos-opening-card h2 { margin: 0.35rem 0; }
.pos-opening-card p { color: var(--ink-soft); }
.pos-summary-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 0.75rem 1rem; }
.pos-summary-strip > div { display: grid; gap: 0.15rem; padding: 0.4rem 0.8rem; border-right: 1px solid var(--line-soft); }
.pos-summary-strip > div:last-child { border-right: 0; }
.pos-summary-strip span { color: var(--ink-soft); font-size: 0.72rem; }
.pos-terminal { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(24rem, 0.85fr); gap: 1rem; align-items: start; }
.pos-catalog, .pos-cart { padding: 1rem; }
.pos-catalog > header, .pos-cart > header, .pos-payments > header { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.pos-catalog h2, .pos-cart h2, .pos-payments h3 { margin: 0.15rem 0 0; }
.pos-scanner { display: grid; gap: 0.35rem; margin: 0.9rem 0; }
.pos-scanner > div { display: flex; gap: 0.5rem; }
.pos-scanner input { flex: 1; font-size: 1rem; }
.pos-product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; max-height: 42rem; overflow: auto; padding-right: 0.2rem; }
.pos-product { min-height: 8.5rem; display: grid; align-content: space-between; gap: 0.25rem; padding: 0.9rem; color: var(--ink); text-align: left; border: 1px solid var(--line-soft); border-radius: var(--radius-lg); background: linear-gradient(145deg, var(--surface), var(--surface-muted)); transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease; }
.pos-product:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: var(--shadow-md); }
.pos-product span, .pos-product small { color: var(--ink-soft); }
.pos-product span { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; }
.pos-product b { color: var(--accent); font-size: 1rem; }
.pos-cart { position: sticky; top: 5.5rem; }
.pos-cart-lines { display: grid; gap: 0.4rem; min-height: 8rem; max-height: 20rem; overflow: auto; margin: 0.8rem 0; }
.pos-cart-line { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; align-items: center; gap: 0.55rem; padding: 0.55rem; border-bottom: 1px solid var(--line-soft); }
.pos-cart-line > div:first-child { min-width: 0; display: grid; }
.pos-cart-line small { color: var(--ink-soft); }
.pos-quantity { display: flex; align-items: center; border: 1px solid var(--line-soft); border-radius: 999px; overflow: hidden; }
.pos-quantity button { width: 1.8rem; height: 1.8rem; border: 0; background: transparent; color: var(--ink); }
.pos-quantity input { width: 2.7rem; padding: 0.25rem; border: 0; border-radius: 0; text-align: center; }
.pos-sale-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.55rem; padding: 0.75rem 0; border-top: 1px solid var(--line-soft); }
.pos-sale-options label:last-child { grid-column: 1 / -1; }
.pos-totals { display: grid; gap: 0.3rem; padding: 0.75rem 0; border-block: 1px solid var(--line-soft); }
.pos-totals > div { display: flex; justify-content: space-between; }
.pos-total { margin-top: 0.25rem; padding-top: 0.5rem; border-top: 1px dashed var(--line-soft); font-size: 1.25rem; }
.pos-payments { padding-top: 0.75rem; }
.pos-payment { display: grid; grid-template-columns: 1fr 0.8fr 1fr auto; gap: 0.45rem; align-items: end; margin-top: 0.5rem; }
.pos-payment-balance { display: flex; justify-content: space-between; margin-top: 0.6rem; color: var(--ink-soft); }
.pos-charge { width: 100%; margin-top: 0.75rem; min-height: 3rem; font-size: 1rem; }
.pos-operations-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.pos-close-card { padding: 1.2rem; }
.pos-close-card h2 { margin: 0.25rem 0; }
.pos-close-card p { color: var(--ink-soft); }
.receipt-page { max-width: 70rem; margin: 0 auto; }
.receipt-actions { display: flex; justify-content: flex-end; gap: 0.6rem; margin-bottom: 1rem; }
.receipt-print-grid { display: grid; grid-template-columns: minmax(18rem, 26rem) minmax(16rem, 22rem); gap: 1rem; justify-content: center; align-items: start; }
.pos-receipt { padding: 1.25rem; color: #17211d; background: #fff; border: 1px solid #d9dedb; border-radius: 1rem; box-shadow: var(--shadow-md); }
.pos-receipt > header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: 0.75rem; border-bottom: 1px dashed #bfc7c2; }
.pos-receipt__meta { display: grid; gap: 0.2rem; padding: 0.75rem 0; font-size: 0.78rem; }
.pos-receipt__lines, .kitchen-ticket-lines { display: grid; gap: 0.55rem; padding: 0.75rem 0; border-block: 1px dashed #bfc7c2; }
.pos-receipt__lines > div, .pos-receipt__totals > div, .pos-receipt__payments > div { display: flex; justify-content: space-between; gap: 1rem; }
.pos-receipt__lines span { display: grid; }
.pos-receipt__lines small, .pos-receipt__payments small { color: #64716a; }
.pos-receipt__totals, .pos-receipt__payments { display: grid; gap: 0.35rem; padding: 0.75rem 0; }
.pos-receipt__grand { padding-top: 0.5rem; border-top: 1px solid #17211d; font-size: 1.1rem; }
.pos-receipt > footer { padding-top: 0.75rem; text-align: center; font-size: 0.75rem; }
.kitchen-ticket-lines > div { display: grid; gap: 0.15rem; font-size: 1rem; }

@media (max-width: 76rem) {
  .pos-terminal { grid-template-columns: 1fr; }
  .pos-cart { position: static; }
  .pos-operations-grid { grid-template-columns: 1fr 1fr; }
  .pos-close-card { grid-column: 1 / -1; }
}

@media (max-width: 48rem) {
  .pos-opening-grid, .pos-operations-grid, .receipt-print-grid { grid-template-columns: 1fr; }
  .pos-summary-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pos-summary-strip > div:nth-child(2) { border-right: 0; }
  .pos-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pos-sale-options, .pos-payment { grid-template-columns: 1fr; }
  .pos-sale-options label:last-child, .pos-close-card { grid-column: auto; }
}

@media print {
  .app-sidebar, .app-topbar, .receipt-actions, .sidebar-backdrop, .toast-region, .command-palette { display: none !important; }
  .app-shell, .app-stage, .app-content { display: block; margin: 0; padding: 0; background: #fff; }
  .receipt-print-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
  .pos-receipt { break-inside: avoid; box-shadow: none; border: 0; border-radius: 0; }
  .pos-receipt--kitchen { break-before: page; }
}

/* Phase 11: real-time kitchen and delivery */
.kitchen-workspace, .delivery-workspace { gap: 1rem; }
.kitchen-heading, .delivery-heading { align-items: center; }
.realtime-indicator { display: flex; align-items: center; gap: 0.55rem; padding: 0.65rem 0.85rem; border: 1px solid var(--line-soft); border-radius: 999px; background: var(--surface); }
[data-realtime-state="connected"] .realtime-indicator { color: var(--success); }
[data-realtime-state="polling"] .realtime-indicator { color: var(--warning); }
.kitchen-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }
.kitchen-summary > div { display: grid; justify-items: center; gap: 0.15rem; padding: 0.85rem; border-right: 1px solid var(--line-soft); }
.kitchen-summary > div:last-child { border-right: 0; }
.kitchen-summary strong { font-size: 1.45rem; }
.kitchen-summary span { color: var(--ink-soft); font-size: 0.72rem; }
.kitchen-board { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.kitchen-lane { min-height: 35rem; padding: 0.9rem; border: 1px solid var(--line-soft); border-radius: var(--radius-xl); background: color-mix(in srgb, var(--surface-muted) 75%, transparent); }
.kitchen-lane > header { display: flex; justify-content: space-between; align-items: center; padding: 0.3rem 0.3rem 0.8rem; }
.kitchen-lane h2 { margin: 0.15rem 0 0; }
.kitchen-orders { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; }
.kitchen-order { display: grid; align-content: start; gap: 0.75rem; padding: 0.9rem; border: 2px solid var(--line-soft); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.kitchen-order[data-priority="warning"] { border-color: var(--warning); }
.kitchen-order[data-priority="critical"] { border-color: var(--danger); animation: kitchen-pulse 1.8s ease-in-out infinite; }
.kitchen-order > header { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.6rem; }
.kitchen-order > header > div { display: grid; }
.kitchen-order > header span { color: var(--ink-soft); }
.kitchen-timer { padding: 0.25rem 0.45rem; border-radius: 999px; background: var(--surface-strong); font-weight: 800; }
.kitchen-order[data-priority="critical"] .kitchen-timer { background: var(--danger-soft); color: var(--danger); }
.kitchen-order__lines { display: grid; gap: 0.45rem; padding-block: 0.65rem; border-block: 1px solid var(--line-soft); }
.kitchen-order__lines > div { display: grid; grid-template-columns: auto 1fr; gap: 0.55rem; }
.kitchen-order__lines span { display: grid; }
.kitchen-order__lines small { color: var(--warning); font-weight: 700; }
.kitchen-order__note { margin: 0; padding: 0.5rem; border-radius: var(--radius-sm); background: var(--warning-soft); }
.kitchen-order form .button { width: 100%; }
@keyframes kitchen-pulse { 50% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--danger) 14%, transparent); } }
.delivery-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; }
.delivery-kpis article { display: grid; gap: 0.15rem; padding: 1rem; }
.delivery-kpis strong { font-size: 1.65rem; }
.delivery-kpis span { color: var(--ink-soft); }
.delivery-ready-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; }
.delivery-ready-grid > article { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(18rem, 1.1fr); gap: 0.8rem; padding: 0.9rem; border: 1px solid var(--line-soft); border-radius: var(--radius-lg); background: var(--surface-muted); }
.delivery-ready-grid p { margin: 0.35rem 0 0; color: var(--ink-soft); }
.delivery-assign-form { display: grid; grid-template-columns: 1fr 0.55fr 0.9fr auto; gap: 0.45rem; align-items: end; }
.delivery-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(18rem, 0.6fr); gap: 1rem; align-items: start; }
.delivery-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; }
.delivery-card { padding: 0.9rem; border: 1px solid var(--line-soft); border-left: 4px solid var(--accent); border-radius: var(--radius-lg); background: var(--surface-muted); }
.delivery-card.status-intransit { border-left-color: var(--warning); }
.delivery-card > header, .delivery-card > footer, .delivery-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 0.65rem; }
.delivery-card > header > div { display: grid; }
.delivery-card p { color: var(--ink-soft); }
.delivery-card__meta { padding-block: 0.6rem; border-block: 1px solid var(--line-soft); font-size: 0.78rem; }
.delivery-card > footer { justify-content: flex-end; margin-top: 0.7rem; }

@media (max-width: 76rem) {
  .kitchen-orders { grid-template-columns: 1fr; }
  .delivery-ready-grid, .delivery-cards { grid-template-columns: 1fr; }
  .delivery-layout { grid-template-columns: 1fr; }
}

@media (max-width: 48rem) {
  .kitchen-board, .kitchen-summary, .delivery-kpis { grid-template-columns: 1fr; }
  .kitchen-summary > div { border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .delivery-ready-grid > article, .delivery-assign-form { grid-template-columns: 1fr; }
}

/* Phase 12: notification center and real-time activity */
.notification-trigger {
  position: relative;
}

.notification-count {
  position: absolute;
  inset-block-start: -0.3rem;
  inset-inline-end: -0.35rem;
  min-width: 1.25rem;
  padding: 0.1rem 0.3rem;
  border: 2px solid var(--surface, #fff);
  border-radius: 999px;
  background: #d34b36;
  color: #fff;
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1;
  text-align: center;
}

.notification-popover__list {
  display: grid;
  max-height: min(28rem, 70vh);
  overflow-y: auto;
}

.notification-preview {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.2rem 0.75rem;
  padding: 0.9rem 1rem;
  border-block-start: 1px solid var(--border-subtle, rgba(25, 34, 29, 0.1));
  color: inherit;
  text-decoration: none;
}

.notification-preview strong,
.notification-preview span {
  grid-column: 1;
}

.notification-preview span {
  color: var(--text-muted, #66706a);
  font-size: 0.82rem;
}

.notification-preview time {
  grid-column: 2;
  grid-row: 1;
  color: var(--text-muted, #66706a);
  font-size: 0.72rem;
}

.notification-preview.is-unread {
  background: color-mix(in srgb, var(--accent, #276749) 8%, transparent);
}

.notification-center {
  display: grid;
  gap: 0.7rem;
}

.notification-heading {
  align-items: end;
}

.notification-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--border-subtle, rgba(25, 34, 29, 0.1));
  border-radius: 1rem;
  background: var(--surface, #fff);
  box-shadow: var(--shadow-sm, 0 8px 24px rgba(25, 34, 29, 0.06));
}

.notification-row.is-unread {
  border-color: color-mix(in srgb, var(--accent, #276749) 35%, transparent);
}

.notification-row__mark {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--accent, #276749);
}

.notification-row--warning .notification-row__mark,
.notification-row--critical .notification-row__mark {
  background: #d97706;
}

.notification-row__content > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.notification-row h2 {
  margin: 0;
  font-size: 1rem;
}

.notification-row p,
.notification-row time {
  margin: 0.25rem 0 0;
  color: var(--text-muted, #66706a);
}

@media (max-width: 640px) {
  .notification-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .notification-row > form,
  .notification-row > .text-link {
    grid-column: 2;
  }
}

/* Phase 13: reporting workspace */
.report-heading { position: relative; }
.report-export-menu, .report-tabs, .report-metrics { display: flex; gap: 0.65rem; flex-wrap: wrap; }
.report-tabs { margin-block: 1rem; padding-block-end: 0.35rem; overflow-x: auto; flex-wrap: nowrap; }
.report-tab { flex: 0 0 auto; padding: 0.65rem 0.9rem; border: 1px solid var(--border-subtle, rgba(25, 34, 29, 0.1)); border-radius: 999px; background: var(--surface, #fff); color: var(--text-muted, #66706a); font-size: 0.85rem; font-weight: 700; text-decoration: none; transition: 160ms ease; }
.report-tab:hover, .report-tab.is-active { border-color: var(--accent, #276749); background: var(--accent, #276749); color: #fff; transform: translateY(-1px); }
.report-filter { display: grid; grid-template-columns: repeat(3, minmax(10rem, 1fr)) auto; gap: 0.85rem; align-items: end; padding: 1rem; }
.report-filter .field { margin: 0; }
.report-metrics { margin-block: 1rem; }
.report-metric { flex: 1 1 12rem; min-width: 0; padding: 1rem 1.1rem; border: 1px solid var(--border-subtle, rgba(25, 34, 29, 0.1)); border-radius: 1rem; background: linear-gradient(145deg, var(--surface, #fff), color-mix(in srgb, var(--accent, #276749) 5%, var(--surface, #fff))); box-shadow: var(--shadow-sm, 0 8px 24px rgba(25, 34, 29, 0.06)); }
.report-metric span { display: block; color: var(--text-muted, #66706a); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.report-metric strong { display: block; margin-block-start: 0.35rem; font-size: clamp(1.25rem, 2vw, 1.75rem); }
.report-table-card { padding: 0; overflow: hidden; }
.report-table-card__header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 1.25rem; border-block-end: 1px solid var(--border-subtle, rgba(25, 34, 29, 0.1)); }
.report-table-card__header h2 { margin: 0.15rem 0 0; font-size: 1.15rem; }
.report-table { min-width: 52rem; }
.report-table th { position: sticky; inset-block-start: 0; z-index: 1; background: color-mix(in srgb, var(--surface, #fff) 94%, var(--accent, #276749)); }
.report-table td { white-space: nowrap; }
@media (max-width: 900px) { .report-filter { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .report-export-menu .button { flex: 1 1 calc(50% - 0.65rem); } .report-filter { grid-template-columns: 1fr; } }
