@font-face {
  font-family: Manrope;
  src: url("/static/fonts/manrope.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("/static/fonts/space-grotesk.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
:root {
  --ink: #302028;
  --paper: #faf8f4;
  --white: #fff;
  --accent: #e56046;
  --wine: #652936;
  --border: #e6dfd9;
  --muted: #75686d;
  --display: "Space Grotesk", Arial, sans-serif;
  --body: Manrope, Arial, sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
a {
  color: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.58;
}
.report-chart .actions button:disabled {
  background: #dedbd8;
  color: #65605d;
  opacity: 1;
}
::selection {
  background: #efb7a5;
  color: #302028;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid #c44833;
  outline-offset: 5px;
}
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #e5604633;
  outline-offset: 1px;
  border-color: var(--accent);
}
[hidden] {
  display: none !important;
}
#session-check {
  padding: 120px 24px 32px;
  text-align: center;
}
.skip-link {
  position: fixed;
  left: 20px;
  top: -100px;
  z-index: 100;
  background: var(--ink);
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
}
.skip-link:focus {
  top: 14px;
}
.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  padding: 0 5.5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid #3b222522;
}
.brand {
  display: flex;
  align-items: center;
  font-family: var(--display);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -1.6px;
  text-decoration: none;
  line-height: 1;
}
.brand svg {
  width: 34px;
  height: 34px;
  margin-right: 10px;
}
.brand-period {
  color: var(--paper);
}
.site-links {
  display: flex;
  align-items: center;
  gap: 36px;
  font-size: 14px;
  font-weight: 600;
}
.site-links a {
  text-decoration: none;
}
.site-links a:hover {
  text-decoration: underline;
  text-underline-offset: 6px;
}
.header-access {
  padding: 11px 21px;
  border: 1px solid #3b22254d;
  border-radius: 30px;
}
.workspace-label {
  display: none;
  color: var(--muted);
  font-size: 14px;
}
.eyebrow {
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 2px;
  font-weight: 800;
  text-transform: uppercase;
  margin: 0 0 24px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  border: 0;
  border-radius: 40px;
  padding: 13px 24px;
  text-align: center;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  min-height: 52px;
  pointer-events: auto;
  transition:
    transform 0.2s,
    background 0.2s;
}
.button:hover {
  transform: translateY(-3px);
}
.button-dark {
  background: var(--ink);
  color: #fff7eb;
}
.button-orbit {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid #fff5;
  font-size: 21px;
  border-radius: 50%;
  font-weight: 400;
}
#food-scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.65s;
}
.access-section {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  max-width: 1340px;
  margin: 0 auto 100px;
  padding: 0 6vw;
  gap: 8vw;
  align-items: center;
  scroll-margin-top: 40px;
}
.access-copy {
  position: relative;
  overflow: hidden;
  align-self: stretch;
  border-radius: 20px;
  padding: 45px 36px 180px;
  background: var(--wine);
  color: #ffefdf;
  min-height: 570px;
}
.access-copy h2 {
  font: 600 clamp(42px, 4.7vw, 66px) / 1.05 var(--display);
  letter-spacing: -3.6px;
  margin: 26px 0;
}
.access-copy em {
  font-style: normal;
  color: #ed937b;
}
.access-copy > p:not(.eyebrow):not(.badge) {
  font-size: 15px;
  line-height: 1.8;
}
.access-decoration {
  position: absolute;
  bottom: -59px;
  left: 24px;
  font: 700 240px/0.9 var(--display);
  letter-spacing: -25px;
  color: #854251;
  user-select: none;
}
.access-decoration span {
  font-size: 110px;
  margin-left: 16px;
  vertical-align: top;
  color: #ed937b;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  padding: 8px 13px;
  border: 1px solid #fff3;
  border-radius: 25px;
}
.badge:before {
  content: "";
  width: 6px;
  height: 6px;
  background: #e4b977;
  border-radius: 50%;
}
.badge[data-status="ready"]:before {
  background: #b7d4ac;
}
.access-forms {
  min-width: 0;
}
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  margin-bottom: 22px;
  box-shadow: 0 3px 12px #30202802;
}
.card h2,
.card h3 {
  font-family: var(--display);
  letter-spacing: -0.65px;
  line-height: 1.25;
  margin: 0 0 20px;
}
.card h3 {
  font-size: 23px;
}
#login-card,
#signup-card {
  padding: 36px;
  box-shadow: 0 20px 70px #4a2b3008;
  margin: 0;
}
#login-card h2,
#signup-card h2 {
  font-size: 34px;
  letter-spacing: -1.5px;
  margin-bottom: 26px;
}
#login-card > .eyebrow {
  color: var(--wine);
  font-size: 12px;
  margin-bottom: 12px;
}
#login-card > p:last-child {
  font-size: 14px;
  margin: 24px 0 0;
}
#login,
#signup {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
#signup {
  gap: 15px;
}
#signup-card > p {
  font-size: 14px;
  color: var(--muted);
}
#signup-card h2 {
  font-size: 30px;
}
.access-forms .text-button {
  font-size: 14px;
}
form {
  display: grid;
  gap: 16px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: end;
}
label {
  display: grid;
  gap: 7px;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 600;
  min-width: 0;
}
input,
textarea,
select {
  width: 100%;
  min-width: 0;
  padding: 12px 13px;
  background: #fdfcfa;
  border: 1px solid #d8cdc7;
  border-radius: 8px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
input:hover,
textarea:hover,
select:hover {
  border-color: #ac8b89;
}
input:disabled,
textarea:disabled,
select:disabled {
  background: #f3efec;
  color: #95878b;
  cursor: not-allowed;
}
input[readonly] {
  background: #f6f2ef;
}
textarea {
  min-height: 110px;
  resize: vertical;
}
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='m4 5 3 3 3-3' fill='none' stroke='%23652936' stroke-width='1.5'/%3E%3C/svg%3E");
  background-position: right 13px center;
  background-repeat: no-repeat;
  padding-right: 36px;
}
button {
  background: var(--wine);
  color: white;
  border: 1px solid var(--wine);
  border-radius: 8px;
  padding: 11px 18px;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 700;
  transition:
    background 0.2s,
    border-color 0.2s,
    transform 0.2s;
  min-height: 44px;
}
button:hover:not(:disabled) {
  background: #4d202b;
  border-color: #4d202b;
}
button.secondary {
  background: white;
  color: var(--wine);
  border-color: #d4c2c2;
}
button.secondary:hover:not(:disabled) {
  background: #f4e9e5;
  border-color: #b79093;
}
button.danger {
  background: #fff5f2;
  color: #a3392b;
  border-color: #ecc1b7;
}
button.danger:hover:not(:disabled) {
  background: #f9ded5;
  border-color: #cd8879;
}
.text-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--wine);
  font-weight: 700;
  min-height: 30px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.text-button:hover:not(:disabled) {
  background: none;
  color: #a64635;
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
}
.checkbox-label input,
input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--wine);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.muted {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.75;
}
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.toolbar h3 {
  font: 600 28px/1.2 var(--display);
  letter-spacing: -1px;
  margin: 0;
}
.toolbar p {
  margin: 5px 0 0;
}
.toolbar > label {
  max-width: 320px;
  min-width: 160px;
}
.inline-form {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 9px;
}
.inline-form label {
  min-width: 130px;
  flex: 1;
}
.inline-form button {
  white-space: nowrap;
}
.table-wrap {
  overflow-x: auto;
  max-width: 100%;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  text-align: left;
}
th {
  font-size: 12px;
  color: #7c6269;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: #f7f3f0;
  font-weight: 800;
  white-space: nowrap;
}
th,
td {
  padding: 15px 13px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
td {
  overflow-wrap: normal;
  word-break: normal;
}
tbody tr:hover td {
  background: #fdf9f6;
}
td .actions {
  gap: 7px;
}
.account-actions .inline-form {
  gap: 12px;
  margin-bottom: 12px;
}
.account-actions .actions {
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
td button {
  font-size: 12px;
  padding: 7px 11px;
  min-height: 34px;
}
td .inline-form input,
td .inline-form select {
  min-width: 100px;
  font-size: 14px;
  padding: 8px;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13px;
}
#results > h4 {
  font: 600 20px var(--display);
  margin: 28px 0 16px;
}
#results > h4:first-child {
  margin-top: 0;
}
.loading {
  color: var(--muted);
  padding: 20px 0;
}
.is-authenticated .site-header {
  position: sticky;
  top: 0;
  height: 82px;
  padding: 0 4vw;
  background: #fffcf8f2;
  backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
}
.is-authenticated .brand-period {
  color: var(--accent);
}
.is-authenticated .workspace-label {
  display: block;
}
#workspace {
  max-width: 1500px;
  margin: 0 auto;
  padding: 34px 4vw 60px;
  display: grid;
  grid-template-columns: 225px minmax(0, 1fr);
  gap: 38px;
}
.workspace-sidebar {
  align-self: start;
  position: sticky;
  top: 112px;
}
.sidebar-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.2px;
  margin: 0 0 25px;
}
.sidebar-mark {
  font: 700 24px var(--display);
  letter-spacing: -2px;
  background: var(--wine);
  color: #ffecdf;
  border-radius: 11px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
}
.sidebar-heading small {
  display: block;
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
  font-weight: 500;
  margin-top: 2px;
}
#tabs {
  display: grid;
  gap: 5px;
  max-height: calc(100svh - 210px);
  overflow-y: auto;
  padding-right: 7px;
  scrollbar-width: thin;
  scrollbar-color: #d7c7c5 transparent;
}
#tabs button {
  display: flex;
  align-items: center;
  gap: 12px;
  background: none;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #77656b;
  text-align: left;
  padding: 12px 13px;
  font-size: 14px;
  font-weight: 600;
  min-height: 46px;
  line-height: 1.3;
}
#tabs button svg {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#tabs button.active {
  background: var(--wine);
  color: #fff4e9;
}
#tabs button:hover:not(.active) {
  background: #efe6e2;
  color: var(--wine);
}
.workspace-content {
  min-width: 0;
}
.workspace-heading {
  border-bottom: 1px solid var(--border);
  padding-bottom: 27px;
  margin-bottom: 28px;
}
.workspace-heading h2 {
  font: 600 clamp(25px, 3vw, 34px) / 1.2 var(--display);
  letter-spacing: -1.4px;
  margin: 0;
}
.workspace-heading p {
  max-width: 600px;
  margin: 8px 0 0;
  font-size: 13px;
}
.workspace-heading button {
  background: #fff;
  border-color: var(--border);
  color: var(--wine);
  font-size: 13px;
}
#customer-summary {
  background: var(--wine);
  color: #fff3e6;
}
#customer-summary h3 {
  font-size: 18px;
}
#customer-summary .muted {
  color: #e4c6c5;
}
#customer-summary button {
  background: #fff2e6;
  color: var(--wine);
  border: 0;
}
#customer-points {
  font: 600 30px var(--display);
  letter-spacing: -0.7px;
  margin: 0 0 14px;
}
.workspace-content > [data-panel] {
  animation: panel-in 0.25s ease;
}
.recipe-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
}
.recipe-components {
  display: grid;
  gap: 16px;
}
.recipe-record {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.recipe-record:first-child {
  padding-top: 0;
}
.recipe-record:last-child {
  border-bottom: 0;
}
.recipe-record h4 {
  font: 600 21px var(--display);
  margin: 0;
}
.recipe-record .toolbar {
  margin-bottom: 14px;
}
.review-record {
  border-bottom: 1px solid var(--border);
  padding: 23px 0;
}
.review-record:first-child {
  padding-top: 0;
}
.review-record:last-child {
  border-bottom: 0;
}
.review-record h4 {
  font: 600 21px var(--display);
  letter-spacing: -0.5px;
  margin: 0;
}
.review-record p,
.reply p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.reply {
  background: #f6f0ec;
  border-left: 3px solid #b47a77;
  padding: 16px;
  border-radius: 0 10px 10px 0;
  margin: 16px 0;
}
.reply form,
.reply-form {
  margin-top: 16px;
}
.review-record .actions {
  margin: 16px 0;
}
.low-stock td {
  background: #fff0e3;
}
.low-stock:hover td {
  background: #ffe8d6;
}
.stock-summary {
  font-weight: 700;
}
.forecast-notice {
  padding: 16px 18px;
  background: #fff0e3;
  border-left: 3px solid #cf8651;
  border-radius: 0 8px 8px 0;
  font-size: 14px;
}
details {
  margin: 20px 0;
  font-size: 14px;
}
summary {
  cursor: pointer;
  color: var(--wine);
  font-weight: 700;
}
details p {
  color: var(--muted);
}
#message {
  margin: 18px auto;
  padding: 15px 20px;
  max-width: 1200px;
  font-size: 14px;
  border-radius: 9px;
  overflow-wrap: anywhere;
}
#message:empty {
  display: none;
}
#message.error {
  background: #fbe2da;
  color: #963a2b;
  border: 1px solid #edc0b3;
}
#message.success {
  background: #e8eee1;
  color: #435537;
  border: 1px solid #cedabe;
}
.is-authenticated #message {
  margin: 20px 4vw 0;
}
dialog {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 30px;
  max-width: min(94vw, 620px);
  max-height: 85svh;
  overflow: auto;
  color: var(--ink);
  box-shadow: 0 40px 140px #24111b55;
}
dialog::backdrop {
  background: #24151c88;
  backdrop-filter: blur(4px);
}
dialog h2 {
  font: 600 30px var(--display);
  letter-spacing: -1px;
  margin: 0 0 16px;
}
dialog p {
  font-size: 15px;
}
dialog .actions {
  margin-top: 26px;
  justify-content: flex-end;
}
.totals {
  margin: 25px 0;
  display: grid;
  gap: 12px;
}
.totals > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.totals dd {
  margin: 0;
  font-weight: 700;
}
.grand-total {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  font-size: 23px;
}
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  padding: 35px 6vw;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
}
.footer-brand {
  font: 700 25px var(--display);
  letter-spacing: -1.5px;
  text-decoration: none;
  color: var(--wine);
}
.site-footer > div {
  display: flex;
  gap: 22px;
  align-items: center;
}
.site-footer a:last-child {
  font-size: 12px;
  text-underline-offset: 4px;
}
@keyframes panel-in {
  from {
    opacity: 0.5;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 1100px) {
  .site-header {
    padding: 0 5vw;
  }
  .access-section {
    gap: 35px;
  }
  .access-copy {
    padding: 32px 26px 170px;
  }
  .access-copy h2 {
    font-size: 56px;
  }
  #workspace {
    grid-template-columns: 195px minmax(0, 1fr);
    gap: 25px;
    padding-left: 3vw;
    padding-right: 3vw;
  }
  #tabs button {
    font-size: 14px;
    padding: 11px;
  }
  .card {
    padding: 23px;
  }
  #login-card,
  #signup-card {
    padding: 28px;
  }
}
@media (max-width: 760px) {
  html {
    scroll-padding-top: 25px;
  }
  .site-header {
    height: 80px;
    padding: 0 24px;
  }
  .brand {
    font-size: 26px;
  }
  .brand svg {
    width: 29px;
    height: 29px;
    margin-right: 7px;
  }
  .site-links {
    gap: 15px;
    font-size: 12px;
  }
  .site-links > a:first-child {
    display: none;
  }
  .header-access {
    padding: 9px 14px;
  }
  .button {
    min-height: 43px;
    padding: 9px 17px;
    font-size: 12px;
    gap: 24px;
  }
  .button-orbit {
    width: 25px;
    height: 25px;
    font-size: 18px;
  }
  .access-section {
    grid-template-columns: 1fr;
    padding: 0 24px;
    gap: 25px;
    margin-bottom: 60px;
  }
  .access-copy {
    min-height: 0;
    padding: 30px;
  }
  .access-copy h2 {
    font-size: 47px;
    letter-spacing: -2.7px;
    margin: 18px 0;
  }
  .access-copy h2 br {
    display: initial;
  }
  .access-copy > p:not(.eyebrow):not(.badge) {
    font-size: 14px;
  }
  .access-copy .eyebrow {
    font-size: 12px;
    margin-bottom: 12px;
  }
  .access-decoration {
    font-size: 180px;
    bottom: -26px;
    left: auto;
    right: -8px;
    opacity: 0.35;
  }
  .access-decoration span {
    font-size: 80px;
    margin-left: 0;
  }
  .badge {
    position: relative;
    z-index: 1;
    font-size: 12px;
  }
  #login-card,
  #signup-card {
    padding: 27px;
  }
  #login-card h2 {
    font-size: 30px;
  }
  .is-authenticated .site-header {
    height: 74px;
    padding: 0 24px;
  }
  .workspace-label {
    font-size: 11px !important;
  }
  #workspace {
    display: block;
    padding: 22px 20px 45px;
  }
  .workspace-sidebar {
    position: relative;
    top: 0;
    margin-bottom: 28px;
  }
  .sidebar-heading {
    margin-bottom: 17px;
    display: none;
  }
  #tabs {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    max-height: none;
    gap: 7px;
    padding: 0 0 10px;
    border-bottom: 1px solid var(--border);
    scrollbar-width: thin;
  }
  #tabs button {
    flex: 0 0 auto;
    font-size: 14px;
    min-height: 42px;
    white-space: nowrap;
    padding: 10px 13px;
  }
  #tabs button svg {
    width: 16px;
    height: 16px;
    flex-basis: 16px;
  }
  #tabs button.active {
    box-shadow: 0 4px 10px #65293618;
  }
  .workspace-heading {
    padding-bottom: 22px;
  }
  .workspace-heading h2 {
    font-size: 28px;
  }
  .workspace-heading p {
    font-size: 12px;
  }
  .toolbar {
    gap: 14px;
  }
  .toolbar h3 {
    font-size: 24px;
  }
  .toolbar > .secondary {
    font-size: 12px;
    padding: 8px 12px;
    min-height: 38px;
  }
  .toolbar > label {
    min-width: 120px;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .recipe-row {
    grid-template-columns: 1fr 1fr;
  }
  .recipe-row > button {
    grid-column: 2;
    justify-self: end;
  }
  .card {
    padding: 21px;
    margin-bottom: 18px;
  }
  .card h3 {
    font-size: 22px;
  }
  .inline-form {
    display: grid;
    grid-template-columns: 1fr;
  }
  .inline-form label {
    min-width: 0;
  }
  th,
  td {
    padding: 12px 10px;
  }
  .table-wrap {
    font-size: 13px;
  }
  .actions {
    gap: 8px;
  }
  .actions button {
    font-size: 13px;
  }
  .site-footer {
    padding: 30px 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    font-size: 12px;
  }
  .site-footer > div {
    grid-column: 1/-1;
    flex-wrap: wrap;
    font-size: 12px;
    gap: 10px 20px;
  }
  .site-footer > a {
    font-size: 23px;
  }
  .site-footer > span {
    text-align: right;
  }
  .is-authenticated #message {
    margin: 14px 20px 0;
  }
  .site-footer a:last-child {
    font-size: 12px;
  }
  dialog {
    padding: 24px;
  }
  dialog th,
  dialog td {
    font-size: 12px;
    padding: 9px 6px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
}
@media print {
  .site-header,
  .experience,
  .landing-section,
  .access-section,
  .workspace-sidebar,
  .site-footer,
  button,
  #message {
    display: none !important;
  }
  #workspace {
    display: block;
    padding: 0;
  }
  .card {
    box-shadow: none;
    border-color: #aaa;
    break-inside: avoid;
  }
  body {
    background: white;
  }
}
/* The story uses normal grid flow: text and controls cannot collide at shorter heights. */
.experience {
  height: 220svh;
  position: relative;
  background: #e7694e;
}
.experience-stage {
  min-height: 100svh;
  position: sticky;
  top: 0;
  display: grid;
  grid-template-rows: minmax(min-content, 1fr) auto;
  gap: 22px;
  padding: 112px 6vw 22px;
  overflow: hidden;
  background: #e7694e;
}
.story-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 20px;
  min-height: min-content;
}
.story-text {
  min-width: 0;
  position: relative;
  z-index: 2;
}
.story-copy h1,
.story-copy h2 {
  font: 700 clamp(40px, 6.6vw, 96px) / 1.02 var(--display);
  letter-spacing: -0.065em;
  margin: 0 0 20px;
  overflow-wrap: normal;
}
.story-copy em {
  font-style: normal;
  color: #fff0db;
}
.story-description {
  max-width: 38ch;
  font-size: 16px;
  line-height: 1.65;
  margin: 0 0 24px;
}
.scene-visual {
  position: relative;
  align-self: stretch;
  min-width: 0;
  min-height: 230px;
  contain: layout paint;
}
#food-scene,
.scene-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
#food-scene {
  opacity: 0;
  transition: opacity 0.2s;
}
.scene-fallback img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.experience[data-scene-state="ready"] #food-scene {
  opacity: 1;
}
.experience[data-scene-state="ready"] .scene-fallback {
  visibility: hidden;
}
.story-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  border-top: 1px solid #49243142;
  padding-top: 10px;
  min-width: 0;
}
.story-chapters {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.story-chapters button {
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  color: inherit;
  font-size: 14px;
  font-weight: 600;
  min-height: 44px;
  padding: 8px 0;
  opacity: 0.7;
}
.story-chapters button[aria-current] {
  border-bottom-color: currentColor;
  opacity: 1;
}
.story-chapters button:hover {
  background: transparent;
  border-bottom-color: currentColor;
  color: inherit;
}
.scene-controls {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.scene-controls button {
  padding: 8px 12px;
  min-height: 40px;
  background: transparent;
  color: inherit;
  border: 1px solid #49243155;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
}
.scene-controls button:hover:not(:disabled) {
  background: #ffffff22;
  border-color: currentColor;
}
.scene-controls button:disabled {
  cursor: default;
}
.story-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #50222b22;
}
.story-progress span {
  display: block;
  height: 100%;
  width: 100%;
  transform-origin: left;
  transform: scaleX(0);
  background: currentColor;
}
.experience[data-chapter="1"] .experience-stage {
  background: #602b38;
  color: #f6e9db;
}
.experience[data-chapter="1"] .story-copy em {
  color: #ec886b;
}
.experience[data-chapter="1"] .story-footer {
  border-color: #fff3;
}
.experience[data-chapter="1"] .scene-controls button {
  border-color: #fff5;
}
.experience[data-chapter="1"] .button-dark {
  background: #f8eadd;
  color: #40242b;
}
.experience[data-chapter="2"] .experience-stage {
  background: #e8dfd2;
}
.experience[data-chapter="2"] .story-copy em {
  color: #aa4b38;
}
.access-section {
  margin-top: 72px;
}
.site-footer details {
  margin: 0;
  font-size: 12px;
}
.site-footer summary {
  font-size: 12px;
}
.site-footer details a {
  display: block;
  margin-top: 10px;
}
@media (max-width: 1000px) {
  .experience-stage {
    padding-left: 5vw;
    padding-right: 5vw;
  }
  .story-footer {
    gap: 8px 20px;
  }
  .story-chapters {
    gap: 20px;
  }
  .story-copy h1,
  .story-copy h2 {
    font-size: clamp(40px, 6.5vw, 66px);
  }
}
@media (max-width: 760px) {
  .experience {
    height: 200svh;
  }
  .experience-stage {
    padding: 98px 24px 14px;
    gap: 12px;
  }
  .story-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(140px, 1fr);
    gap: 8px;
    align-items: start;
  }
  .story-copy h1,
  .story-copy h2 {
    font-size: clamp(36px, 10vw, 60px);
    margin-bottom: 12px;
  }
  .story-description {
    max-width: 36ch;
    font-size: 15px;
    line-height: 1.55;
    margin-bottom: 16px;
  }
  .scene-visual {
    min-height: 140px;
  }
  .story-footer {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5px;
  }
  .story-chapters {
    gap: 12px;
    justify-content: space-between;
  }
  .story-chapters button {
    font-size: 13px;
    min-height: 40px;
  }
  .scene-controls {
    justify-content: flex-end;
    gap: 10px;
  }
  .scene-controls button {
    font-size: 12px;
    min-height: 36px;
    padding: 6px 10px;
  }
  .access-section {
    margin-top: 45px;
  }
}
@media (max-height: 640px) {
  .experience {
    height: auto;
  }
  .experience-stage {
    position: relative;
    height: auto;
    min-height: 100svh;
  }
  .story-layout {
    min-height: 300px;
  }
  .scene-visual {
    min-height: 240px;
  }
  .story-copy h1,
  .story-copy h2 {
    font-size: clamp(34px, 5.8vw, 70px);
  }
}
@media print {
  .experience {
    display: none !important;
  }
}
/* Cash checkout */
.checkout-form {
  display: grid;
  gap: 18px;
}
.cart-picker {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 100px auto;
  gap: 14px;
  align-items: end;
}
.cart-picker label,
.checkout-payment label {
  margin: 0;
}
.cart-picker button {
  margin: 0;
}
.checkout-payment {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(240px, 1fr);
  gap: 12px 32px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}
.checkout-payment > p {
  grid-column: 1;
  margin: 0;
  font-size: 13px;
}
.cart-totals {
  grid-column: 2;
  grid-row: 1 / 3;
  margin: 0;
}
.cart-totals > div {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 7px 0;
}
.cart-totals dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}
.cart-total {
  border-top: 1px solid var(--border);
  margin-top: 6px;
  font-size: 20px;
}
.cart-quantity {
  width: 82px;
  margin: 0;
}
#cart-status,
#checkout-points {
  margin: 0;
}
#cart-clear {
  justify-self: start;
}
#checkout-complete {
  justify-self: end;
  min-width: 220px;
}
@media (max-width: 760px) {
  .cart-picker {
    grid-template-columns: minmax(0, 1fr) 85px;
  }
  .cart-picker button {
    grid-column: 1 / -1;
  }
  .checkout-payment {
    grid-template-columns: 1fr;
  }
  .cart-totals {
    grid-column: 1;
    grid-row: auto;
  }
  #checkout-complete {
    justify-self: stretch;
  }
}
/* Lightweight report charts; all values come from the existing report APIs. */
.report-chart {
  margin: 0 0 32px;
  padding: 26px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 16px;
  min-width: 0;
}
.report-chart h3 {
  margin: 0 0 6px;
  font-family: var(--display);
  font-size: 25px;
}
.report-chart figcaption > p {
  margin: 0 0 24px;
  font-size: 13px;
  max-width: 75ch;
}
.branch-bars {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}
.branch-bar-label {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 10px;
  font-size: 14px;
}
.branch-bar-label > strong {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.branch-rank {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.branch-bar-track {
  height: 12px;
  background: #6529360d;
  border-radius: 4px;
  margin: 7px 0 0 46px;
  overflow: hidden;
}
.branch-bar-fill {
  display: block;
  height: 100%;
  background: var(--wine);
  border-radius: inherit;
}
.branch-bars li > p {
  font-size: 11px;
  margin: 4px 0 0 46px;
}
.chart-data {
  margin-top: 24px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}
.chart-data summary {
  font-size: 13px;
  font-weight: 600;
}
.chart-data .table-wrap {
  margin-top: 14px;
}
.rating-plot {
  width: 100%;
  overflow-x: auto;
}
.rating-plot svg {
  display: block;
  width: 100%;
  min-width: 480px;
  height: auto;
}
.chart-gridline {
  stroke: var(--border);
  stroke-width: 1;
}
.chart-axis {
  fill: var(--muted);
  font: 13px var(--body);
}
.chart-legend {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}
.chart-legend li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.chart-swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.chart-empty {
  padding: 20px 0;
  color: var(--muted);
}
@media (max-width: 760px) {
  .report-chart {
    padding: 18px 14px;
  }
  .report-chart h3 {
    font-size: 22px;
  }
  .branch-bar-label {
    grid-template-columns: 28px minmax(0, 1fr) auto;
    gap: 6px;
    font-size: 12px;
  }
  .branch-bar-track,
  .branch-bars li > p {
    margin-left: 34px;
  }
}
/* Sliding workspace navigation and table-local scrolling. */
:root {
  --workspace-sidebar-width: 230px;
}
.sidebar-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
  padding: 9px 12px;
}
.sidebar-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}
.sidebar-toggle:hover:not(:disabled) {
  background: #efe6e2;
  color: var(--wine);
  border-color: #d4c2c2;
}
.is-authenticated .site-header {
  justify-content: flex-start;
  gap: 20px;
}
.is-authenticated .site-header .site-links {
  margin-left: auto;
}
#workspace {
  grid-template-columns: var(--workspace-sidebar-width) minmax(0, 1fr);
  transition:
    grid-template-columns 0.22s ease,
    gap 0.22s ease;
  align-items: start;
}
.workspace-content {
  grid-column: 2;
}
#workspace-sidebar {
  display: flex;
  flex-direction: column;
  width: var(--workspace-sidebar-width);
  min-width: 0;
  max-height: calc(100dvh - 132px);
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
  transition:
    transform 0.22s ease,
    opacity 0.18s ease,
    visibility 0.22s;
}
.sidebar-top {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 0 6px 16px;
  flex-shrink: 0;
}
#workspace-sidebar .sidebar-heading {
  display: flex;
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.8px;
}
#workspace-sidebar .sidebar-mark {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
}
.sidebar-close {
  flex: 0 0 32px;
  padding: 0;
  min-height: 32px;
  width: 32px;
  font-size: 25px;
  line-height: 1;
  background: transparent;
  border-color: transparent;
  color: var(--muted);
}
.sidebar-close:hover:not(:disabled) {
  background: #efe6e2;
  color: var(--wine);
  border-color: transparent;
}
#workspace-sidebar #tabs {
  display: grid;
  flex: 1;
  min-height: 0;
  max-height: none;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 8px;
  gap: 5px;
  border: 0;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
#workspace-sidebar #tabs button {
  min-width: 0;
  width: 100%;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
}
#workspace-sidebar #tabs button:focus-visible {
  outline-offset: 2px;
}
body[data-sidebar-open="false"] #workspace {
  grid-template-columns: 0 minmax(0, 1fr);
  gap: 0;
}
body[data-sidebar-open="false"] #workspace-sidebar {
  transform: translateX(-110%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.sidebar-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: #30202866;
  cursor: pointer;
  touch-action: none;
}
.sidebar-backdrop:hover:not(:disabled) {
  background: #30202866;
  border: 0;
}
#results {
  min-width: 0;
  max-width: 100%;
  overflow: visible;
}
#results > p {
  overflow-wrap: break-word;
  white-space: normal;
}
.data-table-scroll {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: auto;
}
.data-table-scroll:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: -3px;
}
.data-table-scroll table {
  table-layout: auto;
}
.data-table-scroll th {
  min-width: 110px;
  white-space: normal;
  word-break: normal;
}
.data-table-scroll td {
  min-width: 110px;
  max-width: 360px;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
}
.data-table-scroll .numeric-cell {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.data-table-scroll [data-column="branch"],
.data-table-scroll [data-column="name"] {
  min-width: 180px;
}
.data-table-scroll [data-column="ingredient"] {
  min-width: 145px;
}
.data-table-scroll [data-column="basis"],
.data-table-scroll [data-column="reason"],
.data-table-scroll [data-column="text"] {
  min-width: 270px;
}
.data-table-scroll [data-column="email"] {
  min-width: 210px;
  overflow-wrap: anywhere;
}
@media (max-width: 1100px) {
  :root {
    --workspace-sidebar-width: 210px;
  }
}
@media (max-width: 900px) {
  #workspace,
  body[data-sidebar-open="false"] #workspace {
    display: block;
  }
  #workspace-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 60;
    width: min(320px, 88vw);
    max-height: none;
    margin: 0;
    padding: 24px 12px max(16px, env(safe-area-inset-bottom));
    background: var(--paper);
    box-shadow: 12px 0 40px #30202822;
  }
  #workspace-sidebar .sidebar-heading {
    font-size: 12px;
  }
  .sidebar-top {
    padding-bottom: 24px;
  }
  body.navigation-modal {
    overflow: hidden;
  }
  .is-authenticated .workspace-label {
    display: none;
  }
  .is-authenticated .site-header {
    gap: 12px;
    padding: 0 20px;
  }
  .sidebar-toggle span {
    display: none;
  }
  .sidebar-toggle {
    padding: 8px 10px;
  }
  .is-authenticated .brand {
    font-size: clamp(21px, 5vw, 27px);
  }
}
@media print {
  .sidebar-toggle,
  .sidebar-backdrop,
  #workspace-sidebar {
    display: none !important;
  }
  #workspace {
    display: block !important;
  }
  .data-table-scroll {
    overflow: visible;
  }
}
/* Report filters and accessible chart interactions. */
.report-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: end;
  padding-bottom: 22px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.report-filters label {
  flex: 1 1 140px;
  min-width: 120px;
  margin: 0;
}
.report-filters select,
.report-filters input {
  margin-bottom: 0;
}
.record-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  font-size: 13px;
}
.chart-readout {
  min-height: 48px;
  border-left: 3px solid var(--wine);
  background: #65293608;
  padding: 10px 13px;
  font-size: 13px;
  margin: 12px 0 18px;
}
.chart-sort {
  max-width: 260px;
  font-size: 13px;
  margin-bottom: 18px;
}
.chart-bar-button {
  width: 100%;
  min-height: 36px;
  border: 0;
  padding: 0;
  text-align: left;
  background: transparent;
  color: var(--ink);
  font-weight: 500;
}
.chart-bar-button:hover:not(:disabled) {
  background: transparent;
  color: var(--wine);
  border-color: transparent;
}
.chart-legend-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  background: white;
  color: var(--ink);
  padding: 7px 10px;
  min-height: 36px;
  font-size: 12px;
  font-weight: 500;
}
.chart-legend-toggle:hover:not(:disabled) {
  background: #efe6e2;
  color: var(--wine);
  border-color: var(--wine);
}
.chart-legend-toggle[aria-pressed="false"] {
  opacity: 0.6;
}
.rating-plot circle[role="button"],
.sentiment-layout circle[role="button"] {
  cursor: pointer;
  outline: none;
}
.rating-plot circle:focus,
.rating-plot .selected-point {
  stroke: var(--ink);
  stroke-width: 3;
}
.sentiment-layout {
  display: grid;
  grid-template-columns: minmax(200px, 280px) 1fr;
  align-items: center;
  gap: 24px;
}
.sentiment-layout svg {
  width: 100%;
  max-width: 280px;
}
.sentiment-layout .chart-legend {
  display: grid;
  gap: 12px;
}
.sentiment-layout circle:focus {
  stroke-width: 36;
}
.donut-total {
  font: 700 34px var(--display);
  fill: var(--ink);
}
.sentiment-branch {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(180px, 3fr) 80px;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  font-size: 13px;
}
.sentiment-stack {
  display: flex;
  min-width: 0;
  min-height: 42px;
  border-radius: 6px;
  overflow: hidden;
}
.sentiment-stack button {
  min-width: 0;
  border: 0;
  border-radius: 0;
  padding: 8px 2px;
  font-size: 11px;
  color: white;
  font-weight: 700;
  overflow: hidden;
}
.sentiment-stack button:hover:not(:disabled),
.sentiment-stack button:focus-visible {
  box-shadow: inset 0 0 0 3px #30202888;
}
@media (max-width: 760px) {
  .sentiment-layout {
    grid-template-columns: 1fr;
  }
  .sentiment-layout svg {
    justify-self: center;
  }
  .sentiment-branch {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .report-filters button {
    flex: 1;
  }
}
.forecast-chart .branch-bar-label {
  grid-template-columns: minmax(0, 1fr) auto;
}
.forecast-chart .branch-bar-track {
  margin-left: 0;
}
