:root {
  --bg: #edf3f7;
  --paper: #ffffff;
  --ink: #0b1726;
  --muted: #5d6c7d;
  --primary: #0b2239;
  --secondary: #27d39f;
  --accent: #f4b740;
  --line: rgba(11, 34, 57, 0.14);
  --shadow: 0 24px 70px rgba(11, 23, 38, 0.14);
  --radius: 8px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 14%, rgba(39, 211, 159, 0.18), transparent 24rem),
    radial-gradient(circle at 86% 4%, rgba(244, 183, 64, 0.16), transparent 28rem),
    linear-gradient(180deg, #edf3f7 0%, #dfe8ef 100%);
  color: var(--ink);
  font-family: Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: var(--brand-pattern, none);
  background-size: 132px auto;
  background-repeat: repeat;
  opacity: 0.055;
  transform: rotate(-7deg) scale(1.08);
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(237, 243, 247, 0.9), rgba(237, 243, 247, 0.58), rgba(237, 243, 247, 0.9));
  pointer-events: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
.button {
  min-height: 44px;
  border: 1px solid rgba(125, 47, 143, 0.2);
  border-radius: var(--radius);
  background: var(--primary);
  color: white;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0;
}

button.secondary,
.button.secondary {
  background: var(--paper);
  color: var(--primary);
}

button.ghost,
.button.ghost {
  background: transparent;
  color: var(--ink);
}

a {
  color: inherit;
}

.app-shell {
  min-height: 100vh;
}

.hero {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
  background:
    radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--secondary) 25%, transparent), transparent 18rem),
    linear-gradient(145deg, color-mix(in srgb, var(--primary) 86%, #020916), color-mix(in srgb, var(--ink) 94%, #020812));
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-mark, none);
  background-repeat: no-repeat;
  background-position: center 33%;
  background-size: min(54vw, 340px);
  opacity: 0.2;
  filter: drop-shadow(0 0 28px rgba(255, 214, 107, 0.55));
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  display: grid;
  justify-items: center;
  gap: 1rem;
}

.hero__logo {
  width: min(560px, 86vw);
  max-height: 38vh;
  object-fit: contain;
  filter: drop-shadow(0 22px 42px rgba(0, 0, 0, 0.32));
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Sora, Manrope, system-ui, sans-serif;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2.75rem, 10vw, 6rem);
  line-height: 0.95;
}

h2 {
  font-size: clamp(2rem, 7vw, 4.25rem);
  line-height: 1;
}

h3 {
  font-size: clamp(1.35rem, 4.5vw, 2.4rem);
  line-height: 1.05;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}

.pill {
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  padding: 0.55rem 0.85rem;
  color: white;
  font-size: 0.88rem;
  font-weight: 800;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(18px);
}

.topbar__inner {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.topbar__inner::-webkit-scrollbar,
.rail::-webkit-scrollbar {
  display: none;
}

.brand-chip {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: max-content;
  margin-right: 0.3rem;
  font-weight: 900;
}

.brand-chip img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.nav-link {
  flex: 0 0 auto;
  min-width: max-content;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.34);
  padding: 0.7rem 0.9rem;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

.nav-link.active {
  background: var(--primary);
  color: white;
}

.page {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: clamp(1.1rem, 4vw, 2.5rem) 1rem 5rem;
}

.original-menu-shell {
  min-height: 100vh;
  background: #fff;
}

.original-menu-frame {
  display: block;
  width: 100%;
  height: 100vh;
  border: 0;
  background: #fff;
}

.original-menu-shell .topbar + .original-menu-frame {
  height: calc(100vh - 66px);
}

.page--narrow {
  width: min(920px, 100%);
}

.section {
  scroll-margin-top: 86px;
  display: grid;
  gap: 1rem;
  margin: 0 auto clamp(2.5rem, 7vw, 5rem);
}

.section__head {
  display: grid;
  gap: 0.55rem;
  width: min(780px, 100%);
}

.section__head p,
.muted {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.muted--light {
  color: rgba(255, 255, 255, 0.78);
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--paper) 94%, white);
  box-shadow: var(--shadow);
  padding: clamp(1rem, 3vw, 1.35rem);
}

.metric {
  display: grid;
  gap: 0.35rem;
}

.metric strong {
  font-size: clamp(2rem, 6vw, 3.5rem);
  line-height: 1;
}

.insights-filter {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}

.insights-filter__presets,
.insights-filter__dates {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding-bottom: 0.2rem;
  scrollbar-width: none;
}

.insights-filter__presets::-webkit-scrollbar,
.insights-filter__dates::-webkit-scrollbar {
  display: none;
}

.insights-filter__presets button,
.insights-filter__dates button {
  flex: 0 0 auto;
}

.insights-filter__dates label {
  flex: 1 0 min(220px, 76vw);
  display: grid;
  gap: 0.4rem;
}

.insights-page {
  display: grid;
  gap: 1.1rem;
}

.insights-dashboard,
.local-insights {
  display: grid;
  gap: 1.25rem;
}

.dashboard-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  background:
    radial-gradient(circle at 90% 10%, color-mix(in srgb, var(--secondary) 22%, transparent), transparent 16rem),
    linear-gradient(135deg, color-mix(in srgb, var(--paper) 96%, white), color-mix(in srgb, var(--primary) 8%, white));
}

.dashboard-hero h3 {
  font-size: clamp(1.55rem, 4vw, 2.45rem);
  line-height: 1.04;
}

.dashboard-hero__status {
  flex: 0 0 auto;
  display: grid;
  justify-items: end;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-align: right;
}

.dashboard-hero--sync {
  border-color: color-mix(in srgb, var(--secondary) 46%, var(--line));
}

.status-pill {
  flex: 0 0 auto;
  border: 1px solid color-mix(in srgb, var(--secondary) 42%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--secondary) 18%, white);
  color: color-mix(in srgb, var(--ink) 88%, black);
  padding: 0.5rem 0.75rem;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.status-pill--pending {
  background: color-mix(in srgb, var(--primary) 10%, white);
}

.dashboard-kpis,
.compact-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.dashboard-kpis--primary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-kpis--engagement {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-kpis--loading .kpi strong {
  font-size: clamp(1.2rem, 3vw, 1.7rem);
}

.compact-kpis {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 1rem;
}

.insight-kpi {
  min-height: 124px;
  display: grid;
  align-content: space-between;
  gap: 0.5rem;
}

.insight-kpi strong {
  color: var(--ink);
  font-size: clamp(2rem, 5vw, 3.15rem);
  line-height: 0.98;
}

.insight-kpi small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.insight-section {
  display: grid;
  gap: 0.85rem;
  padding-block: 0.2rem 0.55rem;
}

.insight-section + .insight-section {
  border-top: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  padding-top: 1.35rem;
}

.insight-section__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.72fr);
  gap: 1rem;
  align-items: end;
}

.insight-section__head h3 {
  max-width: 780px;
}

.insight-section__head > .muted {
  justify-self: end;
  max-width: 520px;
  text-align: right;
}

.control-room {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.9fr);
  gap: 1rem;
  align-items: stretch;
}

.control-room > *,
.dashboard-grid > *,
.menu-command-grid > *,
.menu-side-stack > *,
.command-metrics > *,
.channel-grid > * {
  min-width: 0;
}

.command-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
  gap: 1rem;
  align-items: stretch;
  background:
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--secondary) 20%, transparent), transparent 18rem),
    linear-gradient(135deg, color-mix(in srgb, var(--ink) 96%, black), color-mix(in srgb, var(--primary) 32%, var(--ink)));
  color: white;
}

.command-panel .eyebrow,
.command-panel .muted,
.command-panel small {
  color: rgba(255, 255, 255, 0.72);
}

.command-panel__copy {
  display: grid;
  align-content: space-between;
  gap: 1rem;
}

.command-panel__copy h3 {
  color: white;
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  line-height: 0.92;
  max-width: 560px;
}

.command-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.command-metrics .insight-kpi {
  min-height: 118px;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.command-metrics .insight-kpi strong {
  color: white;
  font-size: clamp(1.75rem, 3.8vw, 2.5rem);
  overflow-wrap: anywhere;
}

.decision-panel {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.highlight-list {
  display: grid;
  gap: 0.7rem;
}

.highlight-item {
  display: grid;
  gap: 0.22rem;
  border-left: 4px solid var(--primary);
  border-radius: 0 8px 8px 0;
  background: color-mix(in srgb, var(--paper) 72%, white);
  padding: 0.75rem 0.85rem;
}

.highlight-item span,
.section-title-row > span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.highlight-item strong {
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.highlight-item small {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
}

.decision-panel__note {
  border-top: 1px solid var(--line);
  padding-top: 0.8rem;
}

.section-title-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.section-title-row h3 {
  max-width: 760px;
}

.channel-board {
  display: block;
}

.channel-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.75rem;
}

.channel-card {
  display: grid;
  gap: 0.2rem;
  border: 1px solid color-mix(in srgb, var(--line) 78%, var(--primary));
  border-radius: calc(var(--radius) - 6px);
  background: color-mix(in srgb, var(--paper) 88%, white);
  padding: 0.85rem;
}

.channel-card span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.channel-card strong {
  color: var(--ink);
  font-size: 1.8rem;
  line-height: 1;
  overflow-wrap: anywhere;
}

.channel-card small {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.35;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 1rem;
  align-items: stretch;
}

.dashboard-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-grid--priority {
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
}

.dashboard-grid--split {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
}

.menu-command-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 1rem;
  align-items: start;
}

.menu-command-grid > .insight-chart:first-child {
  min-height: 100%;
}

.menu-side-stack {
  display: grid;
  gap: 1rem;
}

.insight-chart,
.insight-card,
.insight-table-card {
  display: grid;
  align-content: start;
  gap: 0.85rem;
  min-width: 0;
}

.insight-bars {
  display: grid;
  gap: 0.72rem;
}

.insight-bar {
  display: grid;
  gap: 0.34rem;
}

.insight-bar__label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  color: var(--ink);
  font-weight: 900;
  min-width: 0;
}

.insight-bar__label span {
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.18;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.insight-bar__label strong {
  flex: 0 0 auto;
  max-width: 44%;
  text-align: right;
  overflow-wrap: anywhere;
}

.insight-bar__track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary) 10%, white);
}

.insight-bar__track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.funnel {
  display: grid;
  gap: 0.75rem;
}

.funnel-step {
  display: grid;
  gap: 0.4rem;
}

.funnel-step div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.8rem;
  font-weight: 900;
}

.funnel-step span {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.funnel-step strong {
  white-space: nowrap;
}

.funnel-step i {
  display: block;
  height: 16px;
  min-width: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--secondary), var(--primary));
}

.conversion-explainer {
  border-top: 1px solid var(--line);
  padding-top: 0.85rem;
}

.conversion-explainer strong {
  color: var(--ink);
}

.insight-table .table-row strong {
  white-space: nowrap;
}

.insight-chart--visual {
  min-height: 296px;
}

.chart-figure {
  min-height: 172px;
  border: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--paper) 82%, white);
  padding: 0.6rem;
}

.chart-figure svg {
  display: block;
  width: 100%;
  height: 172px;
  overflow: visible;
}

.chart-figure text {
  fill: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.area-fill {
  fill: color-mix(in srgb, var(--primary) 18%, transparent);
}

.area-line {
  fill: none;
  stroke: var(--primary);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart-figure circle {
  fill: var(--secondary);
  stroke: var(--paper);
  stroke-width: 2;
}

.column-chart {
  display: grid;
  grid-template-columns: repeat(var(--columns), minmax(7px, 1fr));
  align-items: end;
  gap: 0.28rem;
  min-height: 176px;
  border: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  border-radius: 8px;
  background:
    linear-gradient(to top, color-mix(in srgb, var(--primary) 8%, transparent) 1px, transparent 1px) 0 0 / 100% 25%,
    color-mix(in srgb, var(--paper) 82%, white);
  padding: 1rem 0.7rem 0.55rem;
}

.column-bar {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 0.35rem;
  height: 150px;
  min-width: 0;
  align-items: end;
}

.column-bar i {
  display: block;
  width: 100%;
  min-height: 4px;
  border-radius: 999px 999px 2px 2px;
  background: linear-gradient(180deg, var(--secondary), var(--primary));
}

.column-bar span {
  min-height: 12px;
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

.donut-layout {
  display: grid;
  grid-template-columns: minmax(128px, 0.72fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
}

.donut-chart {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 170px);
  aspect-ratio: 1;
  justify-self: center;
  border-radius: 50%;
}

.donut-chart::after {
  content: "";
  position: absolute;
  inset: 21%;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
}

.donut-chart span,
.donut-chart small {
  position: relative;
  z-index: 1;
}

.donut-chart span {
  color: var(--ink);
  font-size: clamp(1.25rem, 4vw, 2rem);
  font-weight: 900;
  line-height: 1;
}

.donut-chart small {
  margin-top: 1.7rem;
  margin-left: -2.2rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.donut-legend {
  display: grid;
  gap: 0.55rem;
  min-width: 0;
}

.donut-legend div {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  gap: 0.45rem;
  align-items: center;
  color: var(--ink);
  font-weight: 900;
}

.donut-legend i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.donut-legend span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.donut-legend strong {
  color: var(--muted);
  font-size: 0.78rem;
}

.rail {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  padding: 0.35rem 0 0.75rem;
}

.rail > * {
  scroll-snap-align: start;
}

.category-card,
.item-card {
  min-width: min(82vw, 390px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 248, 233, 0.86);
  padding: 1rem;
}

.category-card {
  display: grid;
  gap: 0.8rem;
}

.category-card__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.category-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  line-height: 1.55;
}

.item-card {
  display: grid;
  gap: 0.45rem;
  align-content: start;
}

.item-card__media {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: color-mix(in srgb, var(--primary) 12%, white);
}

.item-card__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.item-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.item-card__top h3 {
  min-width: 0;
  overflow-wrap: anywhere;
}

.tag {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  background: color-mix(in srgb, var(--secondary) 28%, white);
  color: color-mix(in srgb, var(--primary) 78%, black);
  padding: 0.38rem 0.62rem;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.price {
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--primary);
  color: white;
  padding: 0.45rem 0.7rem;
  font-weight: 900;
}

.brand-swatch {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0.9rem 0;
}

.brand-swatch span {
  width: 42px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.brand-swatch img {
  width: 96px;
  height: 42px;
  object-fit: contain;
  margin-left: auto;
}

.response-list {
  display: grid;
  gap: 1rem;
}

.response-card {
  display: grid;
  gap: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--paper) 94%, white);
  box-shadow: var(--shadow);
  padding: clamp(1rem, 3vw, 1.35rem);
}

.response-card__items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.response-card__items span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--secondary) 14%, white);
  color: color-mix(in srgb, var(--ink) 88%, black);
  padding: 0.45rem 0.7rem;
  font-size: 0.82rem;
  font-weight: 800;
}

.public-menu-card,
.story-brand-card {
  display: grid;
  gap: 1rem;
}

.public-menu-card__brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.public-menu-card__brand img {
  width: 96px;
  height: 64px;
  object-fit: contain;
}

.copy-url {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.68);
  padding: 0.75rem;
  color: var(--muted);
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.restaurant-database {
  border-top: 1px solid var(--line);
  padding-top: clamp(1.25rem, 4vw, 2rem);
}

.source-card h3,
.public-menu-card h3 {
  overflow-wrap: anywhere;
}

.asset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.85rem;
}

.asset-card {
  display: grid;
  gap: 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 248, 233, 0.86);
  padding: 0.8rem;
}

.asset-card__media {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: color-mix(in srgb, var(--primary) 9%, white);
  display: grid;
  place-items: center;
}

.asset-card__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.asset-card--featured .asset-card__media img {
  object-fit: contain;
  padding: 0.75rem;
}

.asset-card h3 {
  font-size: 1rem;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.admin-layout {
  min-height: 100vh;
}

.client-form-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 0%, color-mix(in srgb, var(--secondary) 24%, transparent), transparent 22rem),
    linear-gradient(180deg, color-mix(in srgb, var(--primary) 10%, #f4f7fb), #eef3f7 48%, #e5edf3 100%);
}

.client-form-header {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: clamp(1.1rem, 4vw, 2rem) 1rem 0;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.client-form-header img {
  flex: 0 0 auto;
  width: 78px;
  height: 78px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.76);
  padding: 0.45rem;
}

.client-form-header h1 {
  color: var(--primary);
  font-size: clamp(2rem, 9vw, 4rem);
}

.client-form-header p {
  margin: 0;
}

.client-form-page {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: clamp(1rem, 4vw, 2rem) 1rem 5rem;
}

.client-step {
  margin-bottom: clamp(1.75rem, 6vw, 3rem);
}

.client-menu-form {
  grid-template-columns: 1fr;
}

.admin-hero {
  padding: 1rem;
  background: color-mix(in srgb, var(--primary) 86%, #14051a);
  color: white;
}

.admin-hero__inner {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 0.9rem;
}

.admin-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.admin-title img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.select-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field--full {
  grid-column: 1 / -1;
}

label {
  color: color-mix(in srgb, var(--ink) 84%, black);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  padding: 0.85rem 0.9rem;
}

textarea {
  min-height: 126px;
  resize: vertical;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.access-form {
  width: min(520px, 100%);
  display: grid;
  gap: 0.75rem;
  margin-top: 0.5rem;
  text-align: left;
}

.access-form label {
  color: rgba(255, 255, 255, 0.86);
}

.access-form input {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.95);
}

.access-form .actions {
  justify-content: center;
}

.story-workbench {
  display: grid;
  grid-template-columns: minmax(0, 0.74fr) minmax(280px, 420px);
  gap: 1.25rem;
  align-items: start;
}

.story-frame {
  width: min(100%, 390px);
  aspect-ratio: 9 / 16;
  margin: 0 auto;
  border-radius: 8px;
  overflow: hidden;
  background: #43134d;
  box-shadow: var(--shadow);
}

canvas {
  display: block;
  max-width: 100%;
}

.story-frame canvas {
  width: 100%;
  height: 100%;
}

.table {
  display: grid;
  gap: 0.55rem;
}

.table-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.55rem;
}

.table-row span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.table-row strong {
  min-width: 0;
  text-align: right;
  overflow-wrap: anywhere;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  z-index: 50;
  transform: translateX(-50%);
  width: min(92vw, 520px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink);
  color: white;
  padding: 0.9rem 1rem;
  box-shadow: var(--shadow);
  font-weight: 800;
}

@media (max-width: 820px) {
  .grid,
  .grid--three,
  .dashboard-kpis,
  .compact-kpis,
  .dashboard-grid,
  .control-room,
  .command-panel,
  .menu-command-grid,
  .form-grid,
  .select-grid,
  .story-workbench {
    grid-template-columns: 1fr;
  }

  .dashboard-hero {
    display: grid;
  }

  .dashboard-hero__status {
    justify-items: start;
    text-align: left;
  }

  .insight-section {
    gap: 0.75rem;
    padding-block: 0.1rem 0.4rem;
  }

  .insight-section + .insight-section {
    padding-top: 1rem;
  }

  .insight-section__head {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .insight-section__head > .muted {
    justify-self: start;
    text-align: left;
  }

  .channel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-title-row {
    display: grid;
    gap: 0.35rem;
  }

  .command-panel {
    gap: 1rem;
  }

  .command-panel__copy h3 {
    font-size: clamp(2.4rem, 15vw, 3.4rem);
  }

  .command-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .command-metrics .insight-kpi {
    min-height: 104px;
  }

  .command-metrics .insight-kpi strong {
    font-size: clamp(1.45rem, 9vw, 2.1rem);
  }

  .menu-side-stack {
    gap: 0.8rem;
  }

  .channel-card {
    padding: 0.75rem;
  }

  .channel-card strong {
    font-size: 1.45rem;
  }

  .status-pill {
    width: max-content;
    max-width: 100%;
  }

  .insight-kpi {
    min-height: 112px;
  }

  .insight-kpi strong {
    font-size: clamp(2.15rem, 13vw, 3rem);
  }

  .insight-chart,
  .insight-card,
  .insight-table-card {
    gap: 0.7rem;
  }

  .insight-chart--visual {
    min-height: auto;
  }

  .chart-figure,
  .column-chart {
    min-height: 150px;
  }

  .chart-figure svg {
    height: 150px;
  }

  .column-bar {
    height: 128px;
  }

  .donut-layout {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .donut-chart {
    width: min(58vw, 150px);
  }

  .donut-legend span {
    white-space: normal;
  }

  .insight-bar__label {
    align-items: flex-start;
  }

  .insight-bar__label strong {
    max-width: 38%;
    font-size: 0.9rem;
  }

  .hero {
    padding: 1.25rem;
  }

  .hero__logo {
    width: 88vw;
    max-height: 34vh;
  }

  .admin-title {
    align-items: flex-start;
  }

  .client-form-header {
    align-items: flex-start;
  }

  .client-form-header img {
    width: 62px;
    height: 62px;
  }

  .topbar__inner {
    padding: 0.65rem 0.75rem;
  }

  .nav-link {
    max-width: 68vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .category-card,
  .item-card {
    min-width: min(78vw, 340px);
  }

  .card {
    box-shadow: 0 16px 44px rgba(66, 33, 62, 0.13);
  }
}

/* QrStack workspace redesign - August 2026 */
:root {
  --bg: #f2f5f7;
  --paper: #ffffff;
  --ink: #0a1726;
  --muted: #657386;
  --primary: #0b2239;
  --secondary: #20c99a;
  --accent: #e9ad36;
  --line: #dce3e9;
  --line-strong: #cbd5de;
  --surface-soft: #f7f9fb;
  --surface-mint: #eaf8f3;
  --shadow: 0 10px 28px rgba(10, 23, 38, 0.07);
  --shadow-raised: 0 20px 50px rgba(10, 23, 38, 0.11);
  --radius: 8px;
}

html {
  background: var(--bg);
}

body {
  min-width: 320px;
  background: var(--bg);
  overflow-x: hidden;
}

body::before,
body::after {
  display: none;
}

h1,
h2,
h3 {
  max-width: 100%;
  overflow-wrap: break-word;
}

h1 {
  font-size: 3.75rem;
  line-height: 0.98;
}

h2 {
  font-size: 2.75rem;
  line-height: 1.02;
}

h3 {
  font-size: 1.45rem;
  line-height: 1.15;
}

button,
.button {
  border-color: transparent;
  box-shadow: none;
  padding: 0.72rem 1rem;
  font-size: 0.78rem;
}

button:hover,
.button:hover {
  filter: brightness(1.06);
}

button.secondary,
.button.secondary {
  border-color: var(--line-strong);
  background: var(--paper);
}

button.ghost,
.button.ghost {
  border-color: var(--line-strong);
}

.admin-layout,
.client-form-shell {
  min-height: 100vh;
  background: var(--bg);
}

.admin-hero {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--primary);
  padding: 0;
}

.admin-hero__inner {
  width: min(1280px, 100%);
  padding: 1.1rem 1.5rem;
}

.admin-title {
  justify-content: flex-start;
  min-width: 0;
}

.admin-title > img {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
}

.admin-title__copy {
  min-width: 0;
  display: grid;
  gap: 0.15rem;
}

.admin-title__copy .eyebrow {
  color: #77e4c5;
  font-size: 0.66rem;
}

.admin-title__copy h2 {
  color: #fff;
  font-size: 1.35rem;
  line-height: 1.1;
}

.admin-title__copy > p:last-child {
  margin: 0;
  max-width: 670px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.78rem;
  line-height: 1.45;
}

.admin-title__status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-left: auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.76);
  padding: 0.48rem 0.72rem;
  font-size: 0.68rem;
  font-weight: 800;
  white-space: nowrap;
}

.admin-title__status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--secondary);
  box-shadow: 0 0 0 4px rgba(32, 201, 154, 0.14);
}

.topbar {
  top: 0;
  border-bottom-color: var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
}

.topbar__inner {
  width: min(1280px, 100%);
  gap: 0.35rem;
  padding: 0.58rem 1.5rem;
}

.brand-chip {
  margin-right: 0.75rem;
  color: var(--primary);
  font-size: 0.84rem;
}

.brand-chip img {
  width: 30px;
  height: 30px;
}

.nav-link {
  border-color: transparent;
  background: transparent;
  padding: 0.58rem 0.72rem;
  color: #5c6979;
  font-size: 0.68rem;
}

.nav-link:hover {
  background: var(--surface-soft);
  color: var(--ink);
}

.nav-link.active {
  background: var(--primary);
  color: #fff;
}

.page {
  width: min(1280px, 100%);
  padding: 2rem 1.5rem 5rem;
}

.section {
  gap: 1.15rem;
  margin-bottom: 3.5rem;
}

.section__head {
  width: min(720px, 100%);
  gap: 0.42rem;
}

.section__head h2 {
  font-size: 2.15rem;
}

.section__head p,
.muted {
  line-height: 1.55;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
}

.card,
.response-card {
  border-color: var(--line);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.grid,
.grid--three {
  gap: 0.9rem;
}

.metric {
  min-height: 150px;
  align-content: space-between;
}

.metric strong {
  color: var(--primary);
  font-size: 2.85rem;
}

.brand-swatch,
.response-card__items,
.public-menu-card__brand,
.copy-url,
.asset-card,
.item-card,
.category-card {
  border-color: var(--line);
}

.asset-card,
.item-card,
.category-card {
  background: var(--paper);
  box-shadow: 0 8px 24px rgba(10, 23, 38, 0.05);
}

input,
textarea,
select {
  border-color: var(--line-strong);
  background: var(--paper);
  outline: none;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(32, 201, 154, 0.12);
}

.insights-page {
  gap: 1.3rem;
}

.insights-page > .section__head {
  width: min(860px, 100%);
}

.insights-filter {
  grid-template-columns: minmax(280px, 1fr) auto;
  align-items: end;
  gap: 1rem 1.25rem;
  margin-bottom: 0;
  padding: 1rem 1.1rem;
  box-shadow: 0 6px 20px rgba(10, 23, 38, 0.05);
}

.insights-filter h3 {
  font-size: 1.15rem;
}

.insights-filter .muted {
  font-size: 0.82rem;
}

.insights-filter__presets {
  justify-content: flex-end;
  padding: 0;
}

.insights-filter__presets button {
  min-height: 38px;
  padding: 0.5rem 0.78rem;
}

.insights-filter__presets button.is-active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.insights-filter__dates {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  overflow: visible;
  padding: 0;
}

.insights-filter__dates label {
  min-width: 0;
  flex: initial;
}

.insights-dashboard {
  gap: 1.5rem;
}

.dashboard-hero {
  align-items: center;
  border-left: 4px solid var(--secondary);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.dashboard-hero h3 {
  font-size: 1.5rem;
}

.dashboard-hero .muted {
  max-width: 820px;
  font-size: 0.84rem;
}

.status-pill {
  border-color: #b9e8d9;
  background: var(--surface-mint);
  color: #116047;
}

.control-room {
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, 0.75fr);
  gap: 1rem;
}

.command-panel {
  grid-template-columns: minmax(250px, 0.82fr) minmax(0, 1.18fr);
  background: var(--primary);
  box-shadow: 0 22px 44px rgba(11, 34, 57, 0.18);
  padding: 1.35rem;
}

.command-panel__copy h3 {
  max-width: 520px;
  color: #fff;
  font-size: 3.4rem;
  line-height: 0.98;
  overflow-wrap: normal;
}

.command-panel__copy .muted {
  max-width: 520px;
  font-size: 0.83rem;
  line-height: 1.55;
}

.command-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  overflow: hidden;
}

.command-metrics .insight-kpi {
  min-height: 132px;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.045);
  padding: 1rem;
}

.command-metrics .insight-kpi:nth-child(3n) {
  border-right: 0;
}

.command-metrics .insight-kpi:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.command-metrics .insight-kpi strong {
  color: #fff;
  font-size: 2rem;
  overflow-wrap: break-word;
}

.command-metrics .insight-kpi small {
  color: rgba(255, 255, 255, 0.58);
}

.decision-panel {
  padding: 1.15rem;
}

.highlight-list {
  gap: 0;
  border-top: 1px solid var(--line);
}

.highlight-item {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 0.2rem 0.75rem;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  padding: 0.72rem 0;
}

.highlight-item span,
.highlight-item small {
  grid-column: 1;
}

.highlight-item strong {
  grid-column: 2;
  grid-row: 1 / span 2;
  max-width: 150px;
  font-size: 0.92rem;
  text-align: right;
}

.decision-panel__note {
  font-size: 0.78rem;
}

.insight-section {
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding: 1.6rem 0 0.4rem;
}

.insight-section + .insight-section {
  padding-top: 1.6rem;
}

.section-title-row {
  align-items: flex-start;
}

.section-title-row h3,
.insight-section__head h3 {
  font-size: 1.7rem;
}

.section-title-row > span {
  max-width: 360px;
  text-align: right;
}

.channel-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.55rem;
}

.channel-card {
  min-width: 0;
  border-color: var(--line);
  background: var(--paper);
  padding: 0.85rem;
}

.channel-card strong {
  color: var(--primary);
  font-size: 1.55rem;
  overflow-wrap: normal;
}

.dashboard-grid,
.menu-command-grid {
  gap: 0.9rem;
}

.insight-chart,
.insight-card,
.insight-table-card {
  min-width: 0;
  overflow: hidden;
}

.insight-chart h3,
.insight-card h3,
.insight-table-card h3 {
  font-size: 1.22rem;
}

.insight-chart--visual {
  min-height: 330px;
}

.chart-figure,
.column-chart {
  border-color: var(--line);
  background: var(--surface-soft);
}

.area-fill {
  fill: rgba(32, 201, 154, 0.14);
}

.area-line {
  stroke: var(--primary);
  stroke-width: 3;
}

.column-bar i,
.insight-bar__track i,
.funnel-step i {
  background: var(--secondary);
}

.insight-bar__track {
  height: 7px;
  background: #e8edf1;
}

.insight-bar__label {
  font-size: 0.84rem;
}

.donut-layout {
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 1.4rem;
}

.donut-chart {
  width: 166px;
}

.donut-chart::after {
  inset: 24%;
  background: var(--paper);
}

.donut-chart__value {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  gap: 0.18rem;
  width: 50%;
  text-align: center;
}

.donut-chart__value span,
.donut-chart__value small {
  position: static;
  margin: 0;
}

.donut-chart__value span {
  max-width: 100%;
  color: var(--ink);
  font-size: 1.4rem;
  line-height: 1;
  overflow-wrap: normal;
}

.donut-chart__value small {
  color: var(--muted);
  font-size: 0.58rem;
}

.donut-legend {
  gap: 0;
}

.donut-legend div {
  min-height: 34px;
  border-bottom: 1px solid var(--line);
  font-size: 0.82rem;
}

.dashboard-kpis,
.compact-kpis {
  gap: 0.75rem;
}

.insight-kpi {
  min-width: 0;
  min-height: 116px;
  display: grid;
  align-content: space-between;
  gap: 0.45rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 1rem;
}

.insight-kpi strong {
  color: var(--primary);
  font-size: 2.25rem;
  overflow-wrap: break-word;
}

.insight-kpi small {
  line-height: 1.35;
}

.table-row {
  align-items: start;
}

.table-row strong {
  max-width: 220px;
  white-space: normal;
}

.local-insights {
  display: block;
  margin-top: 0.5rem;
  padding: 0;
  overflow: hidden;
}

.local-insights > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  list-style: none;
  padding: 1rem 1.1rem;
}

.local-insights > summary::-webkit-details-marker {
  display: none;
}

.local-insights > summary > span {
  display: grid;
  gap: 0.2rem;
}

.local-insights > summary strong {
  font-family: Sora, Manrope, system-ui, sans-serif;
}

.local-insights > summary small {
  color: var(--muted);
  font-weight: 800;
}

.local-insights__content {
  display: grid;
  gap: 1rem;
  border-top: 1px solid var(--line);
  background: var(--surface-soft);
  padding: 1.1rem;
}

.local-peak {
  min-height: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 1rem;
}

.client-form-header,
.client-form-page {
  width: min(820px, 100%);
}

.client-form-header img {
  border-color: var(--line);
  background: var(--paper);
}

.client-form-header h1 {
  color: var(--primary);
  font-size: 2.5rem;
}

.toast {
  border-color: rgba(255, 255, 255, 0.12);
  background: var(--primary);
  box-shadow: var(--shadow-raised);
}

@media (max-width: 1060px) {
  .control-room {
    grid-template-columns: 1fr;
  }

  .decision-panel {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .decision-panel > .eyebrow,
  .decision-panel__note {
    grid-column: 1 / -1;
  }

  .channel-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dashboard-grid--three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-grid--three > :last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  h1 {
    font-size: 2.45rem;
  }

  h2 {
    font-size: 2rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  .admin-hero__inner {
    padding: 0.85rem 1rem;
  }

  .admin-title > img {
    width: 40px;
    height: 40px;
  }

  .admin-title__copy h2 {
    font-size: 1.05rem;
  }

  .admin-title__copy > p:last-child,
  .admin-title__status {
    display: none;
  }

  .topbar__inner {
    padding: 0.52rem 0.75rem;
  }

  .brand-chip {
    margin-right: 0.25rem;
  }

  .nav-link {
    max-width: none;
    padding: 0.55rem 0.68rem;
  }

  .page {
    padding: 1.25rem 0.85rem 4rem;
  }

  .section {
    margin-bottom: 2.75rem;
  }

  .section__head h2,
  .insights-page > .section__head h2 {
    font-size: 1.85rem;
  }

  .grid,
  .grid--three {
    grid-template-columns: 1fr;
  }

  .metric {
    min-height: 118px;
  }

  .insights-filter {
    grid-template-columns: 1fr;
    align-items: start;
    padding: 0.9rem;
  }

  .insights-filter__presets {
    width: 100%;
    justify-content: flex-start;
  }

  .insights-filter__dates {
    grid-column: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .insights-filter__dates button {
    grid-column: 1 / -1;
  }

  .dashboard-hero {
    gap: 0.8rem;
  }

  .dashboard-hero h3 {
    font-size: 1.25rem;
  }

  .command-panel {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .command-panel__copy {
    gap: 0.7rem;
  }

  .command-panel__copy h3 {
    font-size: 2.55rem;
    line-height: 1;
  }

  .command-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .command-metrics .insight-kpi,
  .command-metrics .insight-kpi:nth-child(3n),
  .command-metrics .insight-kpi:nth-last-child(-n + 3) {
    min-height: 112px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .command-metrics .insight-kpi:nth-child(2n) {
    border-right: 0;
  }

  .command-metrics .insight-kpi:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .command-metrics .insight-kpi strong {
    font-size: 1.65rem;
  }

  .decision-panel {
    grid-template-columns: 1fr;
  }

  .decision-panel > .eyebrow,
  .decision-panel__note {
    grid-column: auto;
  }

  .section-title-row > span {
    max-width: none;
    text-align: left;
  }

  .channel-grid {
    display: flex;
    gap: 0.65rem;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    padding-bottom: 0.25rem;
  }

  .channel-card {
    flex: 0 0 154px;
    scroll-snap-align: start;
  }

  .dashboard-grid,
  .dashboard-grid--two,
  .dashboard-grid--three,
  .dashboard-grid--split,
  .menu-command-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-grid--three > :last-child {
    grid-column: auto;
  }

  .insight-section {
    padding-top: 1.25rem;
  }

  .insight-chart,
  .insight-card,
  .insight-table-card {
    padding: 0.9rem;
  }

  .insight-chart--visual {
    min-height: auto;
  }

  .donut-layout {
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 0.8rem;
  }

  .donut-chart {
    width: 132px;
  }

  .donut-chart__value span {
    font-size: 1.05rem;
  }

  .donut-legend div {
    grid-template-columns: 9px minmax(0, 1fr) auto;
    font-size: 0.75rem;
  }

  .dashboard-kpis,
  .dashboard-kpis--primary,
  .dashboard-kpis--engagement,
  .compact-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .insight-kpi {
    min-height: 108px;
    padding: 0.85rem;
  }

  .insight-kpi strong {
    font-size: 1.85rem;
  }

  .table-row {
    grid-template-columns: 1fr;
    gap: 0.28rem;
  }

  .table-row strong {
    max-width: none;
    text-align: left;
  }

  .local-insights > summary {
    align-items: flex-start;
  }

  .client-form-header h1 {
    font-size: 2rem;
  }
}

@media (max-width: 460px) {
  .page {
    padding-inline: 0.7rem;
  }

  .admin-title__copy .eyebrow {
    font-size: 0.58rem;
  }

  .brand-chip span {
    display: none;
  }

  .insights-filter__dates {
    grid-template-columns: 1fr;
  }

  .insights-filter__dates button {
    grid-column: auto;
  }

  .command-panel__copy h3 {
    font-size: 2.15rem;
  }

  .command-metrics .insight-kpi {
    padding: 0.75rem;
  }

  .command-metrics .insight-kpi strong {
    font-size: 1.45rem;
  }

  .donut-layout {
    grid-template-columns: 1fr;
  }

  .donut-chart {
    width: 142px;
  }

  .donut-legend {
    width: 100%;
  }

  .highlight-item {
    grid-template-columns: 1fr;
  }

  .highlight-item strong,
  .highlight-item span,
  .highlight-item small {
    grid-column: auto;
    grid-row: auto;
    max-width: none;
    text-align: left;
  }
}

/* Entry and portal flow */
.entry-screen {
  min-height: 100svh;
  display: grid;
  place-items: center;
  background: #081b2d;
  color: #fff;
  padding: clamp(1.25rem, 4vw, 3rem);
}

.entry-shell {
  width: min(1120px, 100%);
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
}

.entry-header {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  align-items: end;
  gap: clamp(1.25rem, 4vw, 3rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  padding-bottom: 1.5rem;
}

.entry-header img {
  width: 100%;
  max-height: 84px;
  object-fit: contain;
  object-position: left center;
  filter: brightness(0) invert(1);
}

.entry-header h1 {
  margin-top: 0.45rem;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1;
}

.entry-header p:last-child {
  margin: 0.8rem 0 0;
  color: rgba(255, 255, 255, 0.7);
}

.entry-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.entry-card {
  min-width: 0;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-top: 4px solid var(--secondary);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  padding: 1.35rem;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.entry-card:hover,
.entry-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
}

.entry-card--restaurant {
  border-top-color: var(--accent);
}

.entry-card--menu {
  border-top-color: #d5df52;
}

.entry-card__index {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.entry-card h2 {
  margin-top: 1.6rem;
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  line-height: 1.08;
}

.entry-card p {
  margin: 0.85rem 0 1.5rem;
  color: var(--muted);
  line-height: 1.55;
}

.entry-card strong {
  width: 100%;
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  color: var(--primary);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.entry-screen--gate {
  background: #081b2d;
}

.entry-screen--restaurant {
  background: color-mix(in srgb, var(--primary) 88%, #06131e);
}

.access-panel {
  width: min(560px, 100%);
  border-top: 4px solid var(--secondary);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  padding: clamp(1.35rem, 5vw, 2.5rem);
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.24);
}

.access-panel__logo {
  width: min(240px, 70vw);
  max-height: 90px;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 1.5rem;
}

.access-panel__logo--restaurant {
  width: min(310px, 76vw);
}

.access-panel h1 {
  margin-top: 0.55rem;
  color: var(--primary);
  font-size: clamp(2rem, 8vw, 3.5rem);
}

.access-panel > p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.55;
}

.access-panel .access-form {
  width: 100%;
  margin-top: 1.5rem;
}

.access-panel .access-form label {
  color: var(--ink);
}

.access-panel .access-form input {
  border-color: var(--line-strong);
  background: var(--surface-soft);
}

.access-panel .access-form .actions {
  justify-content: flex-start;
}

.client-topbar button.nav-link {
  min-height: 0;
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.34);
  color: var(--ink);
  box-shadow: none;
}

.client-topbar button.nav-link.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

@media (max-width: 760px) {
  .entry-screen {
    place-items: start center;
    padding: 1.25rem 0.85rem 2rem;
  }

  .entry-header {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 1.25rem;
  }

  .entry-header img {
    width: 176px;
    max-height: 58px;
  }

  .entry-grid {
    grid-template-columns: 1fr;
  }

  .entry-card {
    min-height: 210px;
  }

  .entry-card h2 {
    margin-top: 1rem;
  }

  .access-panel {
    margin: auto 0;
  }

  .access-panel .actions > * {
    width: 100%;
  }

  .client-topbar .brand-chip span {
    display: none;
  }
}
