@font-face {
  font-family: "OracleBrand";
  src: url("./assets/fonts/OracleBrand-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "OracleBrand";
  src: url("./assets/fonts/OracleBrand-SBold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "OracleBrand";
  src: url("./assets/fonts/OracleBrand-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "OracleSans";
  src: url("./assets/fonts/OracleSans_Rg.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "OracleSans";
  src: url("./assets/fonts/OracleSans_SBd.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  font-family: Arial, Helvetica, sans-serif;
  background: #e7eaee;
  color: #f6f4ef;
  --surface: #191817;
  --surface-2: #242321;
  --line: #3b3935;
  --text: #f8f6f1;
  --muted: #c7c0b7;
  --soft: #938c83;
  --blue: #0f88cf;
  --green: #87d37c;
  --amber: #ffbf68;
  --red: #ff7c75;
  --focus: #69c9ff;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: #e7eaee;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled,
select:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

input:disabled {
  cursor: not-allowed;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.skip-link {
  position: fixed;
  left: 12px;
  top: 12px;
  transform: translateY(-160%);
  z-index: 20;
  background: #fff;
  color: #111;
  padding: 10px 12px;
  border-radius: 4px;
}

.skip-link:focus {
  transform: translateY(0);
}

.prototype-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(300px, 430px) minmax(320px, 520px);
  gap: 28px;
  align-items: start;
  justify-content: center;
  padding: 24px;
}

.device-stage {
  display: flex;
  justify-content: center;
}

.phone-shell {
  width: min(100%, 390px);
  height: min(860px, calc(100vh - 48px));
  min-height: 620px;
  border: 2px solid var(--blue);
  background: #101010;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

.phone-border {
  position: relative;
  height: 100%;
  display: grid;
  grid-template-rows: auto auto auto auto 1fr auto;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.025) 25%, transparent 25%) 0 0 / 22px 22px,
    linear-gradient(245deg, rgba(255, 255, 255, 0.018) 25%, transparent 25%) 0 0 / 18px 18px,
    #1c1b19;
}

.status-bar {
  height: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 6px;
  font-size: 11px;
  color: #d8d4cf;
  background: #050505;
}

.status-icons::after {
  content: "LTE  93%";
  font-size: 10px;
}

.app-header {
  height: 48px;
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(16, 16, 16, 0.9);
}

.app-header h1 {
  margin: 0;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
}

.icon-button {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 28px;
  line-height: 1;
}

.screen-progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 10px 14px 6px;
}

.progress-dot {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 2px;
  text-align: center;
  color: var(--muted);
  font-size: 11px;
}

.progress-dot.is-active {
  color: #fff;
  border-color: var(--blue);
  background: rgba(15, 136, 207, 0.22);
}

.phone-theme-control {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 2px 16px 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.theme-switch {
  display: inline-flex;
  align-items: center;
}

.theme-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.theme-switch-track {
  width: 44px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border: 1px solid #67625b;
  border-radius: 999px;
  background: #151515;
  transition: background 160ms ease, border-color 160ms ease;
}

.theme-switch-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(22, 35, 48, 0.24);
  transform: translateX(0);
  transition: transform 160ms ease, background 160ms ease;
}

.theme-switch input:checked + .theme-switch-track {
  border-color: #0f88cf;
  background: #0f88cf;
}

.theme-switch input:checked + .theme-switch-track .theme-switch-thumb {
  transform: translateX(20px);
}

.theme-switch input:focus-visible + .theme-switch-track {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.screen {
  min-height: 0;
  overflow-y: scroll;
  scrollbar-color: #8c928f #232323;
  scrollbar-width: thin;
  padding: 16px 16px 12px;
}

.screen::-webkit-scrollbar {
  width: 10px;
}

.screen::-webkit-scrollbar-track {
  background: #232323;
}

.screen::-webkit-scrollbar-thumb {
  background: #8c928f;
  border-radius: 999px;
  border: 2px solid #232323;
}

.action-bar {
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(0, 1fr);
  gap: 10px;
  padding: 12px 16px 16px;
  background: rgba(18, 17, 16, 0.94);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.primary-action,
.secondary-action,
.share-check-action {
  min-height: 48px;
  border-radius: 4px;
  border: 1px solid transparent;
  padding: 0 12px;
  font-weight: 700;
}

.primary-action {
  background: #fff;
  color: #111;
}

.phone-shell.landing-mode .primary-action {
  background: #2d7d46;
  border-color: #2d7d46;
  color: #fff;
  box-shadow: 0 8px 18px rgba(45, 125, 70, 0.24);
}

.phone-shell.landing-mode .primary-action:focus-visible {
  outline-color: #54c27a;
}

.secondary-action {
  background: transparent;
  color: #fff;
  border-color: #67625b;
}

.share-check-action {
  grid-column: auto;
  background: var(--redwood-panel);
  color: var(--text);
  border-color: var(--line);
}

.share-check-action[hidden] {
  display: none;
}

.secondary-action[hidden] {
  display: none;
}

.action-bar:has(.secondary-action[hidden]) {
  grid-template-columns: 1fr;
}

.check-overview,
.review-card,
.center-state,
.totals-block {
  background: rgba(31, 30, 28, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 6px;
  padding: 14px;
  margin-bottom: 12px;
}

.eyebrow {
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

h2,
h3,
p {
  margin-top: 0;
}

h2 {
  font-size: 20px;
  margin-bottom: 6px;
}

h3 {
  font-size: 16px;
  margin-bottom: 10px;
}

.helper,
.line-note,
.line-copy p,
.support-code,
small {
  color: var(--muted);
}

.guest-name-row,
.field-label {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.guest-name-row input,
.field-label input,
.fraction-picker select {
  width: 100%;
  min-height: 40px;
  border: 1px solid #6b655e;
  border-radius: 4px;
  background: #111;
  color: #fff;
  padding: 8px 10px;
}

.item-list {
  display: grid;
  gap: 10px;
}

.check-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-left-width: 1px;
  border-radius: 6px;
  background: rgba(15, 15, 15, 0.72);
}

.state-available {
  border-left-width: 4px;
  border-left-color: var(--blue);
}

.state-selected {
  border-left-width: 4px;
  border-left-color: var(--green);
}

.state-held {
  border-left-width: 1px;
  border-left-color: var(--line);
}

.state-paid {
  border-left-width: 1px;
  border-left-color: var(--line);
}

.state-help {
  border-left-width: 1px;
  border-left-color: var(--line);
}

.line-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 4px;
}

.line-title span {
  font-weight: 700;
}

.line-title strong {
  white-space: nowrap;
}

.line-copy p {
  margin-bottom: 5px;
  font-size: 12px;
}

.line-control {
  min-width: 88px;
}

.select-button,
.inline-link,
.choice-pill,
.switch-button,
.text-button {
  border-radius: 4px;
  border: 1px solid #625d56;
  background: #151515;
  color: #fff;
}

.select-button {
  min-width: 88px;
  min-height: 38px;
}

.inline-link {
  min-height: 34px;
  color: #ffe0a8;
  text-align: left;
  padding: 6px 8px;
}

.fraction-picker {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.fraction-picker span {
  display: block;
  line-height: 14px;
}

.totals-block {
  display: grid;
  gap: 8px;
}

.totals-block div,
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
}

.totals-block .due,
.summary-row.total {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
}

.divider {
  height: 1px;
  background: var(--line);
  margin: 10px 0;
}

.choice-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.choice-pill {
  min-height: 42px;
}

.choice-pill.is-selected,
.switch-button.is-selected,
.tender-option.is-selected {
  border-color: var(--blue);
  background: rgba(15, 136, 207, 0.2);
}

.tender-option {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  padding: 12px;
  margin-bottom: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(18, 18, 18, 0.75);
}

.tender-option input {
  margin-top: 3px;
}

.tender-option span {
  display: grid;
  gap: 3px;
}

.hosted-widget {
  margin-top: 14px;
  padding: 12px;
  border-radius: 6px;
  border: 1px dashed #6c675f;
  background: #111;
}

.fieldset {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  display: grid;
  gap: 8px;
}

.fieldset label,
.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.final-receipt-option {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.final-receipt-option.is-disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.checkbox-row.is-disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.center-state {
  text-align: left;
  padding: 24px 18px;
}

.review-panel {
  display: grid;
  gap: 14px;
  color: #18212a;
}

.review-panel .eyebrow,
.review-panel .helper,
.review-panel p {
  color: #43505d;
}

.review-panel h2,
.review-panel strong {
  color: #101820;
}

.panel-card {
  border: 1px solid #c7cdd4;
  border-radius: 6px;
  padding: 16px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(25, 38, 52, 0.08);
}

.panel-card h2 {
  margin-bottom: 8px;
}

.guest-switcher,
.segmented-list,
.demo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.switch-button,
.text-button {
  min-height: 38px;
  padding: 0 10px;
  background: #f6f8fa;
  color: #17202a;
  border-color: #9aa6b2;
}

.text-button {
  color: #0b5f9c;
}

.state-summary {
  display: grid;
  gap: 10px;
}

.state-summary div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 8px;
}

.state-summary span {
  text-align: right;
  color: #43505d;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mobile-keyboard {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 8;
  display: grid;
  gap: 7px;
  padding: 10px 8px 12px;
  background: #d4d8dd;
  border-top: 1px solid #9ca4ad;
  box-shadow: 0 -12px 26px rgba(0, 0, 0, 0.42);
  transform: translateY(102%);
  visibility: hidden;
  transition: transform 160ms ease;
}

.mobile-keyboard.is-visible {
  transform: translateY(0);
  visibility: visible;
}

.keyboard-row {
  display: flex;
  justify-content: center;
  gap: 5px;
}

.keyboard-row span {
  min-width: 28px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  background: #fff;
  color: #1c232b;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
}

.keyboard-row span:first-child,
.keyboard-row span:last-child {
  background: #aeb6c0;
}

.keyboard-row .space-key {
  flex: 1;
  max-width: 190px;
  background: #fff;
}

.phone-shell.theme-light {
  --surface: #ffffff;
  --surface-2: #f6f8fa;
  --line: #d7dee6;
  --text: #17202a;
  --muted: #516170;
  --soft: #687784;
  --blue: #0f70b7;
  --green: #1d8f5a;
  --amber: #a86400;
  --red: #c13f38;
  --focus: #005fb8;
  background: #f9fbfd;
  color: var(--text);
  box-shadow: 0 24px 70px rgba(34, 48, 64, 0.22);
}

.phone-shell.theme-light .phone-border {
  background:
    linear-gradient(115deg, rgba(15, 112, 183, 0.035) 25%, transparent 25%) 0 0 / 22px 22px,
    linear-gradient(245deg, rgba(29, 143, 90, 0.026) 25%, transparent 25%) 0 0 / 18px 18px,
    #f8fafc;
}

.phone-shell.theme-light .status-bar {
  color: #33475b;
  background: #eef3f7;
}

.phone-shell.theme-light .app-header {
  color: var(--text);
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: #d7dee6;
}

.phone-shell.theme-light .icon-button {
  color: var(--text);
}

.phone-shell.theme-light .screen {
  scrollbar-color: #9fb0bf #edf2f7;
}

.phone-shell.theme-light .screen::-webkit-scrollbar-track {
  background: #edf2f7;
}

.phone-shell.theme-light .screen::-webkit-scrollbar-thumb {
  background: #9fb0bf;
  border-color: #edf2f7;
}

.phone-shell.theme-light .progress-dot {
  color: var(--muted);
  border-color: var(--line);
  background: #ffffff;
}

.phone-shell.theme-light .progress-dot.is-active {
  color: #0a3d63;
  border-color: var(--blue);
  background: #e6f3fc;
}

.phone-shell.theme-light .theme-switch-track {
  border-color: #9fb0bf;
  background: #dbe6ef;
}

.phone-shell.theme-light .action-bar {
  background: rgba(255, 255, 255, 0.94);
  border-top-color: #d7dee6;
  box-shadow: 0 -10px 22px rgba(34, 48, 64, 0.06);
}

.phone-shell.theme-light .primary-action {
  background: #0f70b7;
  color: #ffffff;
}

.phone-shell.theme-light .secondary-action {
  background: #ffffff;
  color: #17445f;
  border-color: #9fb0bf;
}

.phone-shell.theme-light .check-overview,
.phone-shell.theme-light .review-card,
.phone-shell.theme-light .center-state,
.phone-shell.theme-light .totals-block {
  background: rgba(255, 255, 255, 0.94);
  border-color: #d7dee6;
  box-shadow: 0 8px 18px rgba(34, 48, 64, 0.06);
}

.phone-shell.theme-light .helper,
.phone-shell.theme-light .line-note,
.phone-shell.theme-light .line-copy p,
.phone-shell.theme-light .support-code,
.phone-shell.theme-light small,
.phone-shell.theme-light .guest-name-row,
.phone-shell.theme-light .field-label,
.phone-shell.theme-light .fraction-picker,
.phone-shell.theme-light .eyebrow {
  color: var(--muted);
}

.phone-shell.theme-light .guest-name-row input,
.phone-shell.theme-light .field-label input,
.phone-shell.theme-light .fraction-picker select {
  border-color: #aeb8c2;
  background: #ffffff;
  color: var(--text);
}

.phone-shell.theme-light .check-line {
  border-color: var(--line);
  background: #ffffff;
}

.phone-shell.theme-light .state-available {
  border-left-color: var(--blue);
}

.phone-shell.theme-light .state-selected {
  border-left-color: var(--green);
  background: #f2fbf6;
}

.phone-shell.theme-light .state-held,
.phone-shell.theme-light .state-paid,
.phone-shell.theme-light .state-help {
  border-left-color: var(--line);
  background: #f6f8fa;
}

.phone-shell.theme-light .select-button,
.phone-shell.theme-light .inline-link,
.phone-shell.theme-light .choice-pill,
.phone-shell.theme-light .switch-button,
.phone-shell.theme-light .text-button {
  border-color: #aeb8c2;
  background: #ffffff;
  color: var(--text);
}

.phone-shell.theme-light .select-button:not(:disabled):hover,
.phone-shell.theme-light .choice-pill:not(:disabled):hover,
.phone-shell.theme-light .switch-button:not(:disabled):hover,
.phone-shell.theme-light .text-button:not(:disabled):hover {
  border-color: var(--blue);
  background: #f0f8fe;
}

.phone-shell.theme-light .inline-link {
  color: #0a5e9c;
}

.phone-shell.theme-light .totals-block .due,
.phone-shell.theme-light .summary-row.total {
  color: var(--text);
}

.phone-shell.theme-light .divider {
  background: var(--line);
}

.phone-shell.theme-light .choice-pill.is-selected,
.phone-shell.theme-light .switch-button.is-selected,
.phone-shell.theme-light .tender-option.is-selected {
  border-color: var(--blue);
  background: #e6f3fc;
}

.phone-shell.theme-light .tender-option {
  border-color: var(--line);
  background: #ffffff;
}

.phone-shell.theme-light .hosted-widget {
  border-color: #9fb0bf;
  background: #f6f8fa;
}

.phone-shell.theme-light .fieldset {
  border-color: var(--line);
  background: #ffffff;
}

.phone-shell.theme-light .mobile-keyboard {
  background: #e1e6ec;
  border-top-color: #adb8c3;
  box-shadow: 0 -12px 26px rgba(34, 48, 64, 0.22);
}

@media (max-width: 860px) {
  .prototype-shell {
    grid-template-columns: 1fr;
    padding: 0;
  }

  .phone-shell {
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    border-left: 2px solid var(--blue);
    border-right: 2px solid var(--blue);
    border-top: 0;
    border-bottom: 0;
  }

  .phone-border {
    min-height: 100vh;
  }

  .review-panel {
    padding: 0 16px 24px;
  }
}

@media (max-width: 420px) {
  .screen {
    padding: 14px 12px;
  }

  .action-bar {
    padding: 10px 12px 12px;
  }

  .check-line {
    grid-template-columns: 1fr;
  }

  .line-control {
    min-width: 0;
  }

  .select-button {
    width: 100%;
  }

  .choice-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Oracle Redwood visual treatment, adapted from Nick's guided prototype. */
:root {
  color-scheme: light;
  font-family: "OracleBrand", "OracleSans", Arial, Helvetica, sans-serif;
  background: #d9d3c8;
  color: #161513;
  --surface: #f5f4f2;
  --surface-2: #fbfaf9;
  --line: rgba(22, 21, 19, 0.12);
  --text: #161513;
  --muted: rgba(22, 21, 19, 0.68);
  --soft: rgba(22, 21, 19, 0.5);
  --blue: #00688c;
  --green: #24733f;
  --amber: #8f5c00;
  --red: #c13f38;
  --focus: #00688c;
  --redwood-canvas: #d9d3c8;
  --redwood-panel: #ffffff;
  --redwood-soft-panel: #fbfaf9;
  --redwood-teal-soft: #e4f1f7;
  --redwood-green-soft: #e8efe7;
  --redwood-amber-soft: #fff6df;
  --redwood-shadow: 0 18px 48px rgba(22, 21, 19, 0.2);
}

body {
  background: var(--redwood-canvas);
  color: var(--text);
  font-family: "OracleBrand", "OracleSans", Arial, Helvetica, sans-serif;
}

button,
input,
select {
  font-family: inherit;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(0, 104, 140, 0.42);
  outline-offset: 2px;
}

.skip-link {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--redwood-panel);
  color: var(--text);
}

.prototype-shell {
  grid-template-columns: minmax(300px, 390px) minmax(320px, 520px);
  gap: 34px;
  padding: 24px;
}

.phone-shell,
.phone-shell.theme-light {
  width: min(100%, 390px);
  min-height: 620px;
  border: 0;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--redwood-shadow);
}

.phone-border,
.phone-shell.theme-light .phone-border {
  background: var(--surface);
  grid-template-rows: auto auto auto auto 1fr auto;
}

.status-bar,
.phone-shell.theme-light .status-bar {
  height: 24px;
  padding: 0 8px;
  color: rgba(22, 21, 19, 0.78);
  background: #ece8df;
  border-bottom: 1px solid rgba(22, 21, 19, 0.08);
}

.status-icons::after {
  color: rgba(22, 21, 19, 0.78);
}

.app-header,
.phone-shell.theme-light .app-header {
  height: 62px;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  background: var(--redwood-panel);
  border-bottom: 1px solid var(--line);
  color: var(--text);
}

.app-header h1 {
  grid-column: 2;
  grid-row: 1;
  font-size: 18px;
  line-height: 22px;
  font-weight: 700;
}

#back-button {
  grid-column: 1;
  grid-row: 1;
}

#close-button {
  grid-column: 3;
  grid-row: 1;
}

.app-header-brand {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  height: 56px;
  display: none;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 4px;
}

.app-header-brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.phone-shell.brand-header-mode .app-header,
.phone-shell.theme-light.brand-header-mode .app-header {
  height: 78px;
  padding-block: 8px;
}

.phone-shell.brand-header-mode .app-header h1 {
  display: none;
}

.phone-shell.brand-header-mode .app-header-brand {
  display: flex;
}

.icon-button,
.phone-shell.theme-light .icon-button {
  color: var(--blue);
  font-size: 30px;
}

.screen-progress {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 12px 14px 10px;
  background: #fbfaf9;
  border-bottom: 1px solid var(--line);
}

.progress-dot,
.phone-shell.theme-light .progress-dot {
  position: relative;
  min-height: 30px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.progress-dot::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--line);
}

.progress-dot:first-child::before {
  left: 50%;
}

.progress-dot:last-child::before {
  right: 50%;
}

.progress-dot::after {
  content: "";
  position: absolute;
  top: -5px;
  width: 22px;
  height: 22px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--redwood-panel);
}

.progress-dot.is-active,
.phone-shell.theme-light .progress-dot.is-active {
  color: var(--blue);
  border: 0;
  background: transparent;
}

.progress-dot.is-active::after {
  border-color: var(--blue);
  background: var(--redwood-teal-soft);
}

.phone-theme-control,
.phone-shell.theme-light .phone-theme-control {
  padding: 8px 16px;
  background: var(--redwood-panel);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-weight: 700;
}

.theme-switch-track,
.phone-shell.theme-light .theme-switch-track {
  border-color: rgba(22, 21, 19, 0.28);
  background: #ece8df;
}

.theme-switch input:checked + .theme-switch-track {
  border-color: var(--blue);
  background: var(--blue);
}

.screen,
.phone-shell.theme-light .screen {
  background: var(--surface);
  color: var(--text);
  scrollbar-color: rgba(22, 21, 19, 0.34) #ece8df;
  padding: 10px 8px 16px;
}

.screen::-webkit-scrollbar-track,
.phone-shell.theme-light .screen::-webkit-scrollbar-track {
  background: #ece8df;
}

.screen::-webkit-scrollbar-thumb,
.phone-shell.theme-light .screen::-webkit-scrollbar-thumb {
  background: rgba(22, 21, 19, 0.34);
  border-color: #ece8df;
}

.check-overview,
.review-card,
.center-state,
.totals-block,
.phone-shell.theme-light .check-overview,
.phone-shell.theme-light .review-card,
.phone-shell.theme-light .center-state,
.phone-shell.theme-light .totals-block {
  background: var(--redwood-panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: none;
  color: var(--text);
}

.alert-card,
.phone-shell.theme-light .alert-card {
  border-color: rgba(199, 70, 52, 0.38);
  background: #fff4ef;
}

.check-overview {
  padding: 14px 12px;
}

.check-title-block {
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.chipin-header-art {
  position: relative;
  width: 100%;
  aspect-ratio: 10 / 3;
  overflow: hidden;
  margin-bottom: 12px;
  border-radius: 4px;
  background: var(--redwood-soft-panel);
}

.chipin-header-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.app-header-brand .chipin-header-dark,
.chipin-header-dark {
  display: none;
}

.phone-shell.theme-dark .app-header-brand .chipin-header-light,
.phone-shell.theme-dark .chipin-header-light {
  display: none;
}

.phone-shell.theme-dark .app-header-brand .chipin-header-dark,
.phone-shell.theme-dark .chipin-header-dark {
  display: block;
}

.phone-shell.theme-light .app-header-brand .chipin-header-light {
  display: block;
}

.phone-shell.theme-light .app-header-brand .chipin-header-dark {
  display: none;
}

.eyebrow,
.phone-shell.theme-light .eyebrow {
  color: var(--muted);
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
}

h2 {
  color: var(--text);
  font-size: 22px;
  line-height: 26px;
  font-weight: 700;
}

h3 {
  color: var(--text);
  font-size: 16px;
  line-height: 22px;
}

.helper,
.line-note,
.line-copy p,
.support-code,
small,
.guest-name-row,
.guest-identity-row,
.field-label,
.fraction-picker,
.phone-shell.theme-light .helper,
.phone-shell.theme-light .line-note,
.phone-shell.theme-light .line-copy p,
.phone-shell.theme-light .support-code,
.phone-shell.theme-light small,
.phone-shell.theme-light .guest-name-row,
.phone-shell.theme-light .guest-identity-row,
.phone-shell.theme-light .field-label,
.phone-shell.theme-light .fraction-picker {
  color: var(--muted);
}

.guest-name-row input,
.field-label input,
.fraction-picker select,
.phone-shell.theme-light .guest-name-row input,
.phone-shell.theme-light .field-label input,
.phone-shell.theme-light .fraction-picker select {
  min-height: 44px;
  border: 1px solid rgba(22, 21, 19, 0.5);
  border-radius: 4px;
  background: var(--redwood-panel);
  color: var(--text);
}

.item-list {
  display: grid;
  gap: 8px;
}

.item-group {
  display: grid;
  gap: 8px;
}

.item-group-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 4px 0;
  color: var(--muted);
}

.item-group-header h3 {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  text-transform: uppercase;
}

.item-group-header span {
  color: var(--muted);
  font-size: 12px;
  line-height: 16px;
}

.check-line,
.phone-shell.theme-light .check-line {
  border: 1px solid var(--line);
  border-left-width: 1px;
  border-radius: 4px;
  background: var(--redwood-panel);
  color: var(--text);
}

.state-available,
.phone-shell.theme-light .state-available {
  border-left-width: 4px;
  border-left-color: var(--blue);
}

.state-selected,
.phone-shell.theme-light .state-selected {
  border-left-width: 4px;
  border-left-color: var(--green);
  background: var(--redwood-green-soft);
}

.state-held,
.state-paid,
.state-help,
.phone-shell.theme-light .state-held,
.phone-shell.theme-light .state-paid,
.phone-shell.theme-light .state-help {
  border-left-width: 1px;
  border-left-color: var(--line);
  background: var(--redwood-panel);
}

.line-title span,
.line-title strong {
  color: var(--text);
  font-size: 15px;
  line-height: 20px;
  font-weight: 700;
}

.select-button,
.inline-link,
.choice-pill,
.switch-button,
.text-button,
.phone-shell.theme-light .select-button,
.phone-shell.theme-light .inline-link,
.phone-shell.theme-light .choice-pill,
.phone-shell.theme-light .switch-button,
.phone-shell.theme-light .text-button {
  border: 1px solid rgba(22, 21, 19, 0.22);
  border-radius: 4px;
  background: var(--redwood-panel);
  color: var(--text);
  font-weight: 700;
}

.select-button:not(:disabled):hover,
.choice-pill:not(:disabled):hover,
.switch-button:not(:disabled):hover,
.text-button:not(:disabled):hover,
.phone-shell.theme-light .select-button:not(:disabled):hover,
.phone-shell.theme-light .choice-pill:not(:disabled):hover,
.phone-shell.theme-light .switch-button:not(:disabled):hover,
.phone-shell.theme-light .text-button:not(:disabled):hover {
  border-color: var(--blue);
  background: var(--redwood-teal-soft);
}

.inline-link,
.phone-shell.theme-light .inline-link {
  color: var(--blue);
}

.choice-pill.is-selected,
.switch-button.is-selected,
.tender-option.is-selected,
.phone-shell.theme-light .choice-pill.is-selected,
.phone-shell.theme-light .switch-button.is-selected,
.phone-shell.theme-light .tender-option.is-selected {
  border-color: var(--blue);
  background: var(--redwood-teal-soft);
  color: var(--text);
}

.totals-block {
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.totals-block div,
.summary-row {
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: 14px;
  line-height: 20px;
}

.totals-block div:last-child,
.summary-row:last-child {
  border-bottom: 0;
}

.totals-block .due,
.summary-row.total,
.phone-shell.theme-light .totals-block .due,
.phone-shell.theme-light .summary-row.total {
  color: var(--text);
  font-size: 16px;
  line-height: 22px;
  font-weight: 700;
  background: var(--redwood-soft-panel);
}

.divider,
.phone-shell.theme-light .divider {
  background: var(--line);
}

.tender-option,
.phone-shell.theme-light .tender-option {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--redwood-panel);
  color: var(--text);
}

.hosted-widget,
.phone-shell.theme-light .hosted-widget {
  border: 1px dashed rgba(22, 21, 19, 0.32);
  border-radius: 4px;
  background: var(--redwood-soft-panel);
  color: var(--text);
}

.fieldset,
.phone-shell.theme-light .fieldset {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--redwood-panel);
  color: var(--text);
}

.action-bar,
.phone-shell.theme-light .action-bar {
  background: var(--redwood-panel);
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 22px rgba(22, 21, 19, 0.06);
}

.primary-action,
.phone-shell.theme-light .primary-action {
  min-height: 48px;
  border: 1px solid var(--blue);
  border-radius: 4px;
  background: var(--blue);
  color: #ffffff;
}

.secondary-action,
.phone-shell.theme-light .secondary-action {
  min-height: 48px;
  border: 1px solid rgba(22, 21, 19, 0.32);
  border-radius: 4px;
  background: var(--redwood-panel);
  color: var(--text);
}

.review-panel {
  color: var(--text);
}

.panel-card {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--redwood-panel);
  box-shadow: 0 12px 28px rgba(22, 21, 19, 0.12);
}

.review-panel .eyebrow,
.review-panel .helper,
.review-panel p,
.state-summary span {
  color: var(--muted);
}

.review-panel h2,
.review-panel strong {
  color: var(--text);
}

.switch-button,
.text-button {
  min-height: 40px;
  background: var(--redwood-panel);
  color: var(--text);
  border-color: rgba(22, 21, 19, 0.28);
}

.scenario-chip {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(22, 21, 19, 0.18);
  border-radius: 4px;
  background: rgba(248, 247, 244, 0.78);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.ops-preview {
  display: grid;
  gap: 12px;
}

.ops-preview-grid {
  display: grid;
  gap: 12px;
}

.ops-device-card {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.48);
}

.ops-device-header,
.slu-line,
.tms-table-top,
.tms-facts {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ops-device-header span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.ops-device-header strong {
  font-size: 12px;
}

.slu-tile {
  display: grid;
  gap: 7px;
  padding: 10px;
  border: 1px solid rgba(22, 21, 19, 0.22);
  border-left: 4px solid #8f8981;
  border-radius: 4px;
  background: #f8f7f4;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.slu-tile.has-chipin-activity {
  border-left-color: var(--blue);
}

.slu-screen {
  overflow: hidden;
  border: 1px solid rgba(22, 21, 19, 0.24);
  border-radius: 4px;
  background: #000000;
  color: #f4f2ef;
}

.slu-tabs {
  display: grid;
  grid-template-columns: 1.05fr repeat(5, 1fr);
  border-bottom: 1px solid #5f5f5f;
}

.slu-tabs span {
  position: relative;
  min-height: 26px;
  display: grid;
  place-items: center;
  border-right: 1px solid #777777;
  background: linear-gradient(#777777, #121212 55%);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  text-align: center;
  filter: blur(0.6px);
  opacity: 0.58;
}

.slu-tabs span.is-active {
  background: linear-gradient(#79a4e8, #3b5ad3);
}

.slu-tabs span.is-active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 50%;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid #000000;
  transform: translateX(-50%);
}

.slu-workspace {
  position: relative;
  min-height: 142px;
  padding: 18px 58px 16px 0;
  background: #000000;
}

.slu-check-card {
  position: relative;
  width: min(210px, calc(100% - 12px));
  min-height: 92px;
  border: 1px solid #9f9f9f;
  background: #f5f5f5;
  color: #28313a;
}

.slu-check-card.is-settled {
  border-color: #3d8b43;
  background: #eef8ec;
}

.slu-check-card.is-settled .slu-check-number span {
  background: #3d8b43;
}

.slu-check-number {
  position: absolute;
  top: -14px;
  left: 2px;
  display: flex;
  align-items: center;
  gap: 3px;
  color: #dfe3e8;
  font-size: 10px;
  font-weight: 800;
}

.slu-check-number span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #009d25;
}

.slu-card-body {
  display: flex;
  align-items: end;
  justify-content: space-between;
  min-height: 74px;
  gap: 12px;
  padding: 24px 8px 10px;
}

.slu-card-body div {
  display: grid;
  gap: 4px;
}

.slu-card-body strong {
  color: #28313a;
  font-size: 12px;
}

.slu-card-body span {
  color: #526170;
  font-size: 11px;
}

.slu-card-badges {
  position: absolute;
  right: 7px;
  top: 7px;
  display: flex;
  gap: 4px;
}

.slu-card-badges span {
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--blue);
  color: #ffffff;
  font-size: 9px;
  font-weight: 900;
}

.slu-card-badges span:nth-child(2) {
  background: #f6b44b;
  color: #201612;
}

.slu-card-badges span.is-paid,
.tms-node-badges span.is-paid,
.tms-legend strong.is-paid {
  background: #3d8b43;
  color: #ffffff;
}

.slu-card-badges span.is-muted {
  opacity: 0.38;
}

.slu-side-action {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  place-items: center;
  width: 50px;
  height: 46px;
  background: #15a8c6;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  text-align: center;
  filter: blur(0.7px);
  opacity: 0.6;
}

.slu-side-action::before,
.slu-side-action::after {
  content: "";
  position: absolute;
  left: -8px;
  width: 0;
  height: 0;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-right: 8px solid #15a8c6;
}

.slu-side-action::before {
  top: 13px;
}

.slu-side-action::after {
  display: none;
}

.slu-bottom-actions {
  display: grid;
  grid-template-columns: 0.8fr repeat(10, 1fr);
  gap: 3px;
  padding: 4px 2px;
  background: #000000;
}

.slu-bottom-actions span {
  min-height: 30px;
  display: grid;
  place-items: center;
  padding: 0 4px;
  border-radius: 4px;
  background: linear-gradient(#83dfd9, #27655e);
  color: #ffffff;
  font-size: 8px;
  font-weight: 800;
  text-align: center;
  filter: blur(0.8px);
  opacity: 0.56;
}

.slu-bottom-actions span:first-child,
.slu-bottom-actions span:last-child {
  background: linear-gradient(#f4f4f4, #bdbdbd);
  color: #3b3b3b;
}

.slu-bottom-actions span:nth-child(6) {
  background: linear-gradient(#52a6e2, #25568a);
}

.slu-bottom-actions span:nth-child(n+7):nth-child(-n+10) {
  background: linear-gradient(#ff3d31, #8b2a25);
}

.slu-line span,
.tms-facts span {
  color: var(--muted);
  font-size: 12px;
}

.slu-line strong {
  font-size: 13px;
}

.slu-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 2px;
}

.ops-status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 7px;
  border-radius: 4px;
  background: var(--redwood-teal-soft);
  color: var(--text);
  font-size: 11px;
  font-weight: 800;
}

.tms-floorplan {
  overflow: hidden;
  border: 1px solid rgba(22, 21, 19, 0.22);
  border-radius: 4px;
  background: #38352f;
  color: #f4f2ef;
}

.tms-tabs,
.tms-actions {
  display: grid;
  gap: 1px;
  background: #171613;
}

.tms-tabs {
  grid-template-columns: repeat(4, 1fr);
}

.tms-tabs span,
.tms-actions span,
.tms-rail span,
.tms-rail strong {
  min-height: 22px;
  display: grid;
  place-items: center;
  padding: 0 5px;
  background: #201f1c;
  color: #ffffff;
  font-size: 9px;
  font-weight: 800;
  text-align: center;
}

.tms-workspace {
  display: grid;
  grid-template-columns: 1fr 58px;
  min-height: 180px;
}

.tms-map {
  display: grid;
  grid-template-columns: repeat(7, minmax(26px, 1fr));
  gap: 14px 9px;
  align-content: center;
  padding: 22px 12px;
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 255, 255, 0.04) 0 16%, transparent 17%),
    linear-gradient(135deg, transparent 0 34%, rgba(22, 21, 19, 0.08) 35% 42%, transparent 43% 100%),
    #3a3732;
}

.tms-table-node {
  position: relative;
  justify-self: center;
  width: 26px;
  height: 26px;
}

.tms-table-node strong {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  background: #ecebea;
  color: #24211f;
  font-size: 10px;
  font-weight: 900;
}

.tms-chair {
  position: absolute;
  top: 10px;
  width: 8px;
  height: 5px;
  border-radius: 999px;
  background: #ecebea;
}

.tms-chair-left {
  left: -8px;
}

.tms-chair-right {
  right: -8px;
}

.tms-table-node:nth-child(8n) .tms-chair::before,
.tms-table-node:nth-child(13n) .tms-chair::before {
  content: "";
  position: absolute;
  left: 2px;
  top: -9px;
  width: 5px;
  height: 8px;
  border-radius: 999px;
  background: #ecebea;
}

.tms-table-node.is-chipin strong {
  border-color: #ffffff;
  background: var(--blue);
  color: #ffffff;
  box-shadow: 0 0 0 3px rgba(126, 203, 231, 0.28);
}

.tms-table-node.is-settled strong {
  border-color: #ffffff;
  background: #3d8b43;
  color: #ffffff;
  box-shadow: 0 0 0 3px rgba(61, 139, 67, 0.28);
}

.tms-node-badges {
  position: absolute;
  z-index: 4;
  top: -10px;
  right: -12px;
  display: flex;
  gap: 2px;
}

.tms-node-badges span,
.tms-legend strong {
  display: grid;
  place-items: center;
  min-width: 16px;
  height: 16px;
  padding: 0 3px;
  border-radius: 999px;
  background: #ffffff;
  color: var(--blue);
  font-size: 8px;
  font-weight: 900;
  line-height: 1;
}

.tms-node-badges span:nth-child(2),
.tms-legend span:nth-child(2) strong {
  background: #f6b44b;
  color: #8b4d00;
}

.tms-rail {
  display: grid;
  align-content: start;
  gap: 1px;
  padding: 0 0 0 1px;
  background: #171613;
}

.tms-rail strong {
  min-height: 58px;
  background: #0579a2;
}

.tms-actions {
  grid-template-columns: repeat(3, 1fr);
  padding: 1px 0 0;
}

.tms-actions span:last-child {
  background: #4b8725;
}

.tms-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tms-legend span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.tms-meter {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(22, 21, 19, 0.14);
}

.tms-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

.tms-facts {
  flex-wrap: wrap;
}

.text-button {
  color: var(--blue);
}

.state-summary div {
  border-bottom-color: var(--line);
}

.mobile-keyboard,
.phone-shell.theme-light .mobile-keyboard {
  background: #e1ddd5;
  border-top-color: rgba(22, 21, 19, 0.18);
  box-shadow: 0 -12px 26px rgba(22, 21, 19, 0.18);
}

.keyboard-row span {
  background: var(--redwood-panel);
  color: var(--text);
  box-shadow: 0 1px 1px rgba(22, 21, 19, 0.2);
}

.keyboard-row span:first-child,
.keyboard-row span:last-child {
  background: #c9c1b4;
}

.phone-shell.theme-dark {
  --surface: #312d2a;
  --surface-2: #3a3632;
  --line: rgba(255, 255, 255, 0.13);
  --text: #fbfaf9;
  --muted: rgba(251, 250, 249, 0.72);
  --soft: rgba(251, 250, 249, 0.58);
  --blue: #7ecbe7;
  --green: #9ad29b;
  --amber: #f0c36a;
  --red: #ff9c95;
  --focus: #7ecbe7;
  background: #262320;
  color: var(--text);
}

.phone-shell.theme-dark .phone-border {
  background: #312d2a;
}

.phone-shell.theme-dark .status-bar {
  background: #211f1d;
  color: var(--muted);
  border-bottom-color: var(--line);
}

.phone-shell.theme-dark .app-header,
.phone-shell.theme-dark .phone-theme-control,
.phone-shell.theme-dark .action-bar {
  background: #3a3632;
  border-color: var(--line);
  color: var(--text);
}

.phone-shell.theme-dark .screen {
  background: #312d2a;
  color: var(--text);
  scrollbar-color: rgba(251, 250, 249, 0.34) #262320;
}

.phone-shell.theme-dark .screen-progress {
  background: #3a3632;
  border-bottom-color: var(--line);
}

.phone-shell.theme-dark .progress-dot {
  color: var(--muted);
}

.phone-shell.theme-dark .progress-dot::before {
  background: var(--line);
}

.phone-shell.theme-dark .progress-dot::after {
  border-color: var(--line);
  background: #312d2a;
}

.phone-shell.theme-dark .progress-dot.is-active {
  color: var(--blue);
}

.phone-shell.theme-dark .progress-dot.is-active::after {
  border-color: var(--blue);
  background: rgba(126, 203, 231, 0.16);
}

.phone-shell.theme-dark .theme-switch-track {
  border-color: var(--blue);
  background: var(--blue);
}

.phone-shell.theme-dark .check-overview,
.phone-shell.theme-dark .review-card,
.phone-shell.theme-dark .center-state,
.phone-shell.theme-dark .totals-block,
.phone-shell.theme-dark .check-line,
.phone-shell.theme-dark .tender-option,
.phone-shell.theme-dark .fieldset,
.phone-shell.theme-dark .hosted-widget,
.phone-shell.theme-dark .guest-name-row input,
.phone-shell.theme-dark .field-label input,
.phone-shell.theme-dark .fraction-picker select {
  background: #3a3632;
  border-color: var(--line);
  color: var(--text);
}

.phone-shell.theme-dark .state-selected {
  background: rgba(154, 210, 155, 0.12);
}

.phone-shell.theme-dark .totals-block .due,
.phone-shell.theme-dark .summary-row.total {
  background: #312d2a;
  color: var(--text);
}

.phone-shell.theme-dark .select-button,
.phone-shell.theme-dark .inline-link,
.phone-shell.theme-dark .choice-pill,
.phone-shell.theme-dark .switch-button,
.phone-shell.theme-dark .text-button,
.phone-shell.theme-dark .secondary-action {
  background: #312d2a;
  border-color: var(--line);
  color: var(--text);
}

.phone-shell.theme-dark .primary-action {
  border-color: #7ecbe7;
  background: #7ecbe7;
  color: #161513;
}

.phone-shell.theme-dark .choice-pill.is-selected,
.phone-shell.theme-dark .switch-button.is-selected,
.phone-shell.theme-dark .tender-option.is-selected {
  background: rgba(126, 203, 231, 0.16);
  border-color: var(--blue);
}

.phone-shell.theme-dark .helper,
.phone-shell.theme-dark .line-note,
.phone-shell.theme-dark .line-copy p,
.phone-shell.theme-dark .support-code,
.phone-shell.theme-dark small,
.phone-shell.theme-dark .guest-name-row,
.phone-shell.theme-dark .guest-identity-row,
.phone-shell.theme-dark .field-label,
.phone-shell.theme-dark .fraction-picker,
.phone-shell.theme-dark .eyebrow {
  color: var(--muted);
}

.phone-shell.theme-dark .alert-card {
  border-color: rgba(255, 184, 150, 0.34);
  background: #44322b;
}

.progress-dot,
.phone-shell.theme-light .progress-dot,
.phone-shell.theme-dark .progress-dot {
  min-height: 28px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--redwood-panel);
  color: var(--muted);
}

.progress-dot::before,
.progress-dot::after {
  display: none;
}

.progress-dot.is-active,
.phone-shell.theme-light .progress-dot.is-active,
.phone-shell.theme-dark .progress-dot.is-active {
  border: 1px solid var(--blue);
  background: var(--redwood-teal-soft);
  color: var(--text);
}

.phone-shell.theme-dark .progress-dot {
  background: #312d2a;
}

.phone-shell.theme-dark .progress-dot.is-active {
  background: rgba(126, 203, 231, 0.16);
}

/* Redwood control adoption from Nick's prototype. */
svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.action-menu-button span {
  display: none;
}

.action-menu-button::before {
  content: "⋮";
  font-size: 28px;
  line-height: 1;
  font-weight: 700;
}

.action-menu {
  position: absolute;
  top: 82px;
  right: 10px;
  z-index: 20;
  width: 190px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--redwood-panel);
  box-shadow: 0 10px 28px rgba(22, 21, 19, 0.18);
}

.action-menu button {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: var(--redwood-panel);
  color: var(--text);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
}

.action-menu button:last-child {
  border-bottom: 0;
}

.guided-process,
.phone-shell.theme-light .guided-process,
.phone-shell.theme-dark .guided-process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 12px 8px 10px;
  background: var(--redwood-soft-panel);
  border-bottom: 1px solid var(--line);
}

.process-step,
.phone-shell.theme-light .process-step,
.phone-shell.theme-dark .process-step {
  position: relative;
  min-width: 0;
  min-height: 46px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.process-step::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 0;
  right: 0;
  height: 2px;
  display: block;
  background: var(--line);
  z-index: 0;
}

.process-step:first-child::before {
  left: 50%;
}

.process-step:last-child::before {
  right: 50%;
}

.step-index {
  position: relative;
  z-index: 1;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--redwood-panel);
  color: inherit;
  font-size: 12px;
  font-weight: 700;
}

.step-label {
  max-width: 64px;
  overflow: hidden;
  color: inherit;
  font-size: 10px;
  line-height: 12px;
  font-weight: 700;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.process-step.is-active {
  color: var(--blue);
}

.process-step.is-active .step-index {
  border-color: var(--blue);
  background: var(--redwood-teal-soft);
}

.process-step.complete {
  color: var(--green);
}

.process-step.complete .step-index {
  border-color: var(--green);
  background: var(--redwood-green-soft);
}

.process-step.complete::before {
  background: rgba(36, 115, 63, 0.3);
}

.status-chip {
  width: fit-content;
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  margin: 2px 0 7px;
  border-radius: 999px;
  font-size: 11px;
  line-height: 16px;
  font-weight: 700;
}

.status-available {
  background: var(--redwood-teal-soft);
  color: var(--blue);
}

.status-selected {
  background: var(--redwood-green-soft);
  color: var(--green);
}

.status-held,
.status-help {
  background: var(--redwood-amber-soft);
  color: var(--amber);
}

.status-paid {
  background: var(--redwood-green-soft);
  color: var(--green);
}

.segmented {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--redwood-panel);
}

.segmented .tip-option {
  min-height: 42px;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--muted);
}

.segmented .tip-option:last-child {
  border-right: 0;
}

.segmented .tip-option.active,
.segmented .tip-option.is-selected {
  background: var(--redwood-teal-soft);
  color: var(--text);
}

.payment-stack {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--redwood-panel);
}

.payment-method,
.phone-shell.theme-light .payment-method,
.phone-shell.theme-dark .payment-method {
  width: 100%;
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: var(--redwood-panel);
  color: var(--text);
  cursor: pointer;
}

.payment-method:last-child {
  border-bottom: 0;
}

.payment-method.active,
.payment-method.is-selected {
  background: var(--redwood-teal-soft);
}

.method-icon {
  width: 42px;
  height: 42px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 4px;
  background: rgba(0, 104, 140, 0.1);
  color: var(--blue);
}

.wallet-logo {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 3px;
  width: 100%;
  min-width: 34px;
  color: #161513;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
}

.wallet-logo strong {
  font-size: 14px;
}

.apple-pay-logo {
  color: #161513;
}

.phone-shell.theme-dark .method-icon-apple-pay,
.phone-shell.theme-dark .method-icon-google-wallet {
  background: #161513;
  border: 1px solid rgba(251, 250, 249, 0.16);
}

.phone-shell.theme-dark .apple-pay-logo,
.phone-shell.theme-dark .google-pay-logo {
  color: #fbfaf9;
}

.phone-shell.theme-dark .google-pay-logo .google-g i {
  background: #161513;
}

.google-pay-logo .google-g {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: conic-gradient(#4285f4 0 25%, #34a853 0 50%, #fbbc04 0 75%, #ea4335 0);
}

.google-pay-logo .google-g i {
  display: grid;
  place-items: center;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--redwood-panel);
  color: #4285f4;
  font-size: 8px;
  font-style: normal;
  font-weight: 900;
}

.method-copy {
  display: grid;
  gap: 3px;
}

.method-copy strong,
.method-copy small {
  display: block;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: flex-end;
  background: rgba(0, 0, 0, 0.38);
}

.bottom-sheet {
  width: 100%;
  padding: 16px;
  border-radius: 8px 8px 0 0;
  background: var(--redwood-panel);
  color: var(--text);
  box-shadow: 0 -10px 32px rgba(22, 21, 19, 0.18);
}

.sheet-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.sheet-close {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 28px;
}

.sheet-body {
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
}

.sheet-actions {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.qr-share {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--redwood-soft-panel);
}

.qr-code-box {
  width: 82px;
  height: 82px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  background:
    linear-gradient(90deg, currentColor 10px, transparent 10px 18px, currentColor 18px 26px, transparent 26px),
    linear-gradient(currentColor 10px, transparent 10px 18px, currentColor 18px 26px, transparent 26px);
  background-size: 34px 34px;
  color: rgba(22, 21, 19, 0.2);
}

.qr-code-box svg {
  width: 100%;
  height: 100%;
  display: block;
  padding: 0;
  background: #fff;
  color: #111;
}

.guided-process,
.phone-shell.theme-light .guided-process,
.phone-shell.theme-dark .guided-process {
  position: relative;
  top: auto;
  z-index: auto;
}

.qr-code-box img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #fff;
}

.action-bar,
.phone-shell.theme-light .action-bar,
.phone-shell.theme-dark .action-bar {
  display: grid;
  grid-template-columns: minmax(92px, 0.54fr) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px 16px 14px;
}

.phone-shell.landing-mode .action-bar {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.phone-shell.landing-mode .action-buttons {
  grid-column: 1 / -1;
  grid-row: 1;
}

.phone-shell.landing-mode .pay-all-action {
  grid-column: 1;
  grid-row: 2;
}

.phone-shell.landing-mode .share-check-action {
  grid-column: 2;
  grid-row: 2;
  min-height: 48px;
  padding: 5px 7px;
  background: var(--redwood-panel);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  line-height: 18px;
  font-weight: 700;
  text-transform: none;
  box-shadow: none;
}

.phone-shell.landing-mode .bar-total p {
  font-size: 14px;
  line-height: 18px;
  text-transform: none;
}

.phone-shell:not(.landing-mode) .pay-all-action {
  min-height: 48px;
  padding: 5px 7px;
  background: var(--redwood-panel);
  border: 1px solid var(--line);
  color: var(--muted);
  box-shadow: none;
}

.phone-shell:not(.landing-mode) .bar-total p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 18px;
  font-weight: 700;
  text-transform: none;
}

.bar-total {
  min-width: 0;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(22, 21, 19, 0.04);
  padding: 5px 7px;
  text-align: center;
}

.bar-total p {
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.bar-total strong {
  display: block;
  overflow: hidden;
  color: var(--text);
  font-size: 18px;
  line-height: 22px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pay-all-action:not(:disabled) {
  cursor: pointer;
  background: var(--redwood-panel);
}

.pay-all-action:not(:disabled):focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.pay-all-action:not(:disabled):hover {
  border-color: rgba(126, 203, 231, 0.72);
}

.pay-all-action:disabled {
  cursor: default;
  border-color: transparent;
  background: transparent;
}

.phone-shell.theme-dark .pay-all-action:not(:disabled) {
  border-color: var(--line);
  background: #312d2a;
  color: var(--text);
}

.phone-shell.theme-dark .pay-all-action .bar-total p,
.phone-shell.theme-dark .bar-total p {
  color: var(--muted);
}

.phone-shell.theme-dark .pay-all-action .bar-total strong,
.phone-shell.theme-dark .bar-total strong {
  color: var(--text);
}

.action-buttons {
  display: grid;
  grid-template-columns: minmax(74px, 0.48fr) minmax(0, 1fr);
  gap: 8px;
}

.action-buttons .secondary-action {
  min-height: 42px;
  padding: 0 8px;
  font-size: 13px;
  line-height: 15px;
}

.action-buttons:has(.secondary-action[hidden]) {
  grid-template-columns: 1fr;
}

.action-buttons .secondary-action[hidden] {
  display: none;
}

.action-bar:has(.secondary-action[hidden]) {
  grid-template-columns: minmax(92px, 0.54fr) minmax(0, 1fr);
}

.phone-shell.landing-mode .action-bar:has(.secondary-action[hidden]) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.action-bar:has(.pay-all-action[hidden]) {
  grid-template-columns: 1fr;
}

.phone-shell.theme-dark .action-menu,
.phone-shell.theme-dark .action-menu button,
.phone-shell.theme-dark .bottom-sheet,
.phone-shell.theme-dark .payment-method,
.phone-shell.theme-dark .payment-stack {
  background: #3a3632;
  border-color: var(--line);
  color: var(--text);
}

.phone-shell.theme-dark .method-icon {
  background: rgba(126, 203, 231, 0.13);
}

.phone-shell.theme-dark .method-icon-apple-pay,
.phone-shell.theme-dark .method-icon-google-wallet {
  background: #161513;
}

.phone-shell.theme-dark .payment-method.active,
.phone-shell.theme-dark .payment-method.is-selected,
.phone-shell.theme-dark .segmented .tip-option.active,
.phone-shell.theme-dark .segmented .tip-option.is-selected {
  background: rgba(126, 203, 231, 0.16);
}

.phone-shell.theme-dark .segmented .tip-option.active,
.phone-shell.theme-dark .segmented .tip-option.is-selected {
  background: #7ecbe7;
  color: #161513;
  font-weight: 700;
}

.phone-shell.theme-dark .status-available,
.phone-shell.theme-dark .process-step.is-active .step-index {
  background: rgba(126, 203, 231, 0.16);
}

.phone-shell.theme-dark .status-selected,
.phone-shell.theme-dark .status-paid,
.phone-shell.theme-dark .process-step.complete .step-index {
  background: rgba(154, 210, 155, 0.14);
}

.phone-shell.theme-dark .status-held,
.phone-shell.theme-dark .status-help {
  background: rgba(240, 195, 106, 0.14);
}

.phone-shell.theme-dark .guided-process {
  background: #2a2724;
  border-bottom-color: rgba(251, 250, 249, 0.14);
}

.phone-shell.theme-dark .process-step {
  color: rgba(251, 250, 249, 0.62);
}

.phone-shell.theme-dark .process-step::before {
  background: rgba(251, 250, 249, 0.18);
}

.phone-shell.theme-dark .step-index {
  border-color: rgba(251, 250, 249, 0.22);
  background: #312d2a;
  color: rgba(251, 250, 249, 0.74);
}

.phone-shell.theme-dark .step-label {
  color: rgba(251, 250, 249, 0.74);
}

.phone-shell.theme-dark .process-step.is-active {
  color: #7ecbe7;
}

.phone-shell.theme-dark .process-step.is-active .step-index {
  border-color: #7ecbe7;
  background: rgba(126, 203, 231, 0.2);
  color: #dff6ff;
}

.phone-shell.theme-dark .process-step.is-active .step-label {
  color: #dff6ff;
}

.phone-shell.theme-dark .process-step.complete {
  color: #9ad29b;
}

.phone-shell.theme-dark .process-step.complete::before {
  background: rgba(154, 210, 155, 0.3);
}

.phone-shell.theme-dark .process-step.complete .step-index {
  border-color: #9ad29b;
  background: rgba(154, 210, 155, 0.16);
  color: #e4f6e2;
}

/* Cognitive-load reduction pass: quieter chrome and more progressive detail. */
.phone-theme-control,
.phone-shell.theme-light .phone-theme-control,
.phone-shell.theme-dark .phone-theme-control {
  display: none;
}

.phone-shell.brand-header-mode .app-header,
.phone-shell.theme-light.brand-header-mode .app-header,
.phone-shell.theme-dark.brand-header-mode .app-header {
  height: 66px;
  padding-block: 6px;
}

.app-header-brand {
  height: 48px;
}

.guided-process,
.phone-shell.theme-light .guided-process,
.phone-shell.theme-dark .guided-process {
  padding: 8px 24px 8px;
}

.process-step,
.phone-shell.theme-light .process-step,
.phone-shell.theme-dark .process-step {
  min-height: 38px;
}

.step-index {
  width: 22px;
  height: 22px;
  font-size: 11px;
}

.step-label {
  display: block;
  max-width: 58px;
  font-size: 9px;
  line-height: 11px;
}

.process-step.is-active .step-label {
  display: block;
}

.screen,
.phone-shell.theme-light .screen {
  padding: 8px 8px 12px;
}

.check-overview {
  padding: 12px;
}

.screen > section:first-child {
  margin-top: 8px;
  padding-top: 0;
}

.check-title-block {
  display: grid;
  gap: 2px;
  padding-bottom: 8px;
  margin-bottom: 10px;
  text-align: center;
}

.check-title-block h2 {
  margin-bottom: 0;
}

.check-title-block .helper {
  margin-top: 0;
  text-transform: uppercase;
}

.check-title-block.selection-instructions {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
  text-align: left;
}

.check-title-block.selection-instructions .helper {
  margin-bottom: 0;
  color: var(--text);
  font-size: 16px;
  line-height: 20px;
  font-weight: 700;
  text-transform: none;
}

.check-guest-label {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
}

.check-title-block.selection-instructions .check-guest-label {
  margin-bottom: 4px;
  color: var(--muted);
}

.printed-check-header .check-guest-label {
  color: #4c4640;
  font-size: 13px;
  line-height: 17px;
}

.printed-check-header .receipt-time {
  color: #4c4640;
  font-size: 11px;
  line-height: 14px;
  text-align: right;
}

.phone-shell .check-overview:has(.selection-instructions),
.phone-shell.theme-light .check-overview:has(.selection-instructions),
.phone-shell.theme-dark .check-overview:has(.selection-instructions) {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.guest-name-row {
  margin-top: 8px;
}

.guest-name-row input {
  font-weight: 700;
}

.guest-name-row label {
  color: var(--muted);
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
}

.landing-check {
  display: grid;
  gap: 10px;
}

.landing-logo {
  min-height: 54px;
  display: grid;
  place-items: center;
  padding: 4px 8px;
}

.landing-logo img {
  width: min(210px, 100%);
  height: auto;
  display: block;
}

.landing-check-title {
  min-height: 54px;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 4px 8px;
  color: var(--text);
  font-size: 20px;
  line-height: 24px;
  font-weight: 700;
  text-align: center;
}

.landing-logo .chipin-header-dark,
.phone-shell.theme-light .landing-logo .chipin-header-dark,
.phone-shell.theme-dark .landing-logo .chipin-header-light {
  display: none;
}

.phone-shell.theme-dark .landing-logo .chipin-header-dark,
.phone-shell.theme-light .landing-logo .chipin-header-light {
  display: block;
}

.printed-check {
  display: grid;
  gap: 10px;
  padding: 16px 14px;
  border: 1px solid rgba(22, 21, 19, 0.18);
  border-radius: 2px;
  background: #fffefb;
  color: #1f1d1a;
  box-shadow: 0 4px 12px rgba(22, 21, 19, 0.14);
  font-family: "Oracle Sans", Arial, sans-serif;
}

.review-items-card,
.phone-shell.theme-light .review-items-card,
.phone-shell.theme-dark .review-items-card {
  display: block;
  gap: initial;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--redwood-panel);
  color: var(--text);
  box-shadow: none;
  font-family: "OracleBrand", "OracleSans", Arial, Helvetica, sans-serif;
}

.phone-shell.theme-dark .review-items-card {
  background: #3a3632;
  border-color: var(--line);
  color: var(--text);
}

.review-items-card h2,
.review-items-card span,
.review-items-card strong,
.phone-shell.theme-dark .review-items-card h2,
.phone-shell.theme-dark .review-items-card span,
.phone-shell.theme-dark .review-items-card strong {
  color: var(--text);
}

.review-items-card h2,
.review-totals-card h3 {
  margin: 0 0 10px;
  font-family: "OracleBrand", "OracleSans", Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 22px;
  font-weight: 700;
}

.review-items-card .summary-row {
  border-bottom: 0;
}

.review-items-card .summary-row,
.review-items-card .summary-row strong,
.review-items-card .summary-row span {
  font-family: "OracleBrand", "OracleSans", Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
}

.review-totals-card .summary-row,
.review-totals-card .summary-row strong {
  font-weight: 400;
}

.review-totals-card .summary-row {
  border-bottom: 0;
}

.review-tip-card .helper {
  color: var(--text);
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
}

.payment-method-section {
  margin-bottom: 12px;
}

.payment-method-section h2 {
  margin: 0 0 12px;
}

.receipt-section {
  margin-bottom: 12px;
}

.receipt-section h2 {
  margin: 0 0 12px;
}

.done-screen {
  min-height: calc(100dvh - 130px);
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 18px;
  padding: 24px;
}

.done-logo {
  width: min(250px, 72vw);
  height: auto;
}

.experience-feedback-label {
  margin: 0 0 -6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.experience-feedback {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
}

.experience-feedback-button {
  width: 52px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--redwood-panel);
  color: var(--text);
  font-size: 22px;
  line-height: 1;
}

.experience-feedback-button:focus-visible,
.experience-feedback-button:hover {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(199, 70, 52, 0.18);
}

.phone-shell.theme-light .done-logo.chipin-header-light,
.phone-shell.theme-dark .done-logo.chipin-header-dark {
  display: block;
}

.phone-shell.theme-light .done-logo.chipin-header-dark,
.phone-shell.theme-dark .done-logo.chipin-header-light {
  display: none;
}

.phone-shell.done-mode .action-bar {
  display: none;
}

.phone-shell.done-mode .screen-progress[hidden] {
  display: none !important;
}

.phone-shell.done-mode .action-menu [data-header-action]:not([data-header-action="close"]),
.phone-shell.done-mode .action-menu .language-control {
  display: none;
}

.toast-message {
  position: fixed;
  left: 50%;
  bottom: calc(28px + env(safe-area-inset-bottom));
  z-index: 80;
  transform: translate(-50%, 18px);
  padding: 10px 16px;
  border-radius: 4px;
  background: rgba(31, 29, 26, 0.94);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  box-shadow: 0 8px 18px rgba(22, 21, 19, 0.24);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast-message.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.fieldset .receipt-option-input {
  display: grid;
  gap: 6px;
  margin: 2px 0 8px 26px;
}

.printed-check-header {
  display: grid;
  gap: 2px;
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(22, 21, 19, 0.35);
  text-align: center;
}

.printed-check-header h2,
.printed-check-header p {
  margin: 0;
  color: #1f1d1a;
}

.printed-check-logo {
  display: grid;
  place-items: center;
  min-height: 36px;
  margin: 2px 0;
}

.printed-check-logo img {
  width: min(210px, 78%);
  height: auto;
}

.printed-check-logo .chipin-header-light,
.phone-shell.theme-dark .printed-check-logo .chipin-header-light,
.phone-shell.theme-light .printed-check-logo .chipin-header-light {
  display: block;
}

.printed-check-logo .chipin-header-dark,
.phone-shell.theme-dark .printed-check-logo .chipin-header-dark,
.phone-shell.theme-light .printed-check-logo .chipin-header-dark {
  display: none;
}

.printed-check .eyebrow,
.printed-check-header .eyebrow {
  color: #4c4640;
}

.printed-check-number {
  font-weight: 700;
}

.printed-check-lines,
.printed-check-totals {
  display: grid;
  gap: 7px;
}

.printed-check-line,
.printed-check-totals div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

.printed-check-line strong,
.printed-check-totals strong {
  font-size: 13px;
  line-height: 17px;
}

.printed-check-line small {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin-top: 2px;
  color: #6b655e;
  font-size: 11px;
  line-height: 14px;
}

.phone-shell.theme-dark .printed-check,
.phone-shell.theme-dark .printed-check h2,
.phone-shell.theme-dark .printed-check p,
.phone-shell.theme-dark .printed-check strong {
  color: #1f1d1a;
}

.phone-shell.theme-dark .printed-check small,
.phone-shell.theme-dark .printed-check .eyebrow {
  color: #6b655e;
}

.printed-check-line small:empty {
  display: none;
}

.printed-check-adjustment {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  color: #6b655e;
  font-size: 12px;
}

.printed-check-totals {
  padding-top: 10px;
  border-top: 1px dashed rgba(22, 21, 19, 0.35);
  font-size: 12px;
}

.printed-check-total,
.printed-check-balance {
  padding-top: 7px;
  border-top: 1px solid rgba(22, 21, 19, 0.18);
  font-weight: 700;
}

.printed-check-balance strong {
  font-size: 16px;
}

.item-group-body,
.unavailable-items {
  display: grid;
  gap: 8px;
}

.status-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.line-info-link {
  min-height: 22px;
  border: 0;
  background: transparent;
  color: var(--blue);
  padding: 0 2px;
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

.line-info-link:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.unavailable-items.is-collapsed {
  display: none;
}

.item-group-header,
.phone-shell.theme-light .item-group-header,
.phone-shell.theme-dark .item-group-header {
  width: 100%;
  min-height: 32px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.item-group-header:focus-visible,
.subgroup-toggle:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.group-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  text-transform: uppercase;
}

.chevron {
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 5px solid currentColor;
  transform: rotate(90deg);
}

.item-group.is-collapsed .chevron {
  transform: rotate(0deg);
}

.subgroup-toggle,
.phone-shell.theme-light .subgroup-toggle,
.phone-shell.theme-dark .subgroup-toggle {
  width: 100%;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(111, 107, 102, 0.12);
  color: var(--muted);
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  cursor: pointer;
}

.subgroup-toggle strong {
  min-width: 20px;
  min-height: 20px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(111, 107, 102, 0.18);
  color: var(--text);
  font-size: 11px;
}

.check-line,
.phone-shell.theme-light .check-line,
.phone-shell.theme-dark .check-line {
  gap: 8px;
  padding: 11px 12px;
}

.line-title {
  gap: 8px;
}

.line-title span,
.line-title strong {
  font-size: 14px;
  line-height: 18px;
}

.line-copy p {
  margin: 3px 0 5px;
}

.status-chip {
  min-height: 22px;
  margin: 0 0 5px;
  padding: 2px 7px;
}

.fraction-picker {
  gap: 4px;
  font-size: 12px;
}

.fraction-picker select {
  min-height: 38px;
}

.select-button {
  min-height: 38px;
  padding-inline: 12px;
}

.action-bar,
.phone-shell.theme-light .action-bar,
.phone-shell.theme-dark .action-bar {
  padding: 9px 16px 12px;
}

.phone-link-card {
  display: grid;
  gap: 10px;
}

.phone-link {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--redwood-soft-panel);
  color: var(--blue);
  font-size: 13px;
  line-height: 18px;
  font-weight: 700;
  text-decoration: none;
}

.phone-only-page {
  min-height: 100vh;
  background: var(--surface);
  overflow: hidden;
}

.phone-only-page .skip-link {
  z-index: 60;
}

.phone-only-shell {
  width: 100%;
  min-height: 100vh;
  display: block;
  padding: 0;
}

.phone-only-shell .device-stage {
  width: 100%;
  min-height: 100vh;
  display: block;
}

.phone-only-shell .phone-shell,
.phone-only-shell .phone-shell.theme-light {
  width: 100%;
  height: 100svh;
  min-height: 100svh;
  box-shadow: none;
}

.phone-only-shell .phone-border {
  min-height: 100svh;
}

.phone-gate {
  display: none;
}

.phone-gate-link {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid var(--blue);
  border-radius: 4px;
  background: var(--blue);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}

@media (min-width: 701px) and (hover: hover) and (pointer: fine) {
  .phone-only-page {
    overflow: auto;
    background: var(--redwood-canvas);
  }

  .phone-only-page .phone-only-shell {
    display: none;
  }

  .phone-gate {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
  }

  .phone-gate > div {
    width: min(100%, 440px);
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--redwood-panel);
    box-shadow: 0 18px 48px rgba(22, 21, 19, 0.14);
  }

  .phone-gate h1 {
    margin: 0 0 10px;
    color: var(--text);
    font-size: 26px;
    line-height: 32px;
  }

  .phone-gate p {
    color: var(--muted);
    font-size: 15px;
    line-height: 22px;
  }
}

@media (max-width: 700px) {
  .phone-only-page .phone-gate {
    display: none;
  }

  .phone-only-page .phone-shell {
    border: 0;
  }

  .phone-only-page .screen {
    padding-bottom: max(14px, env(safe-area-inset-bottom));
  }

  .phone-only-page .action-bar {
    padding-bottom: max(14px, env(safe-area-inset-bottom));
  }
}

.language-control {
  display: grid;
  gap: 6px;
  padding: 8px 16px;
  background: var(--redwood-panel);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.action-menu .language-control {
  padding: 10px 14px 12px;
}

.language-control select {
  min-height: 38px;
  width: 100%;
  border: 1px solid rgba(22, 21, 19, 0.5);
  border-radius: 4px;
  background: var(--redwood-panel);
  color: var(--text);
  padding: 0 10px;
}

.phone-shell.theme-dark .language-control,
.phone-shell.theme-dark .language-control select {
  background: #3a3632;
  border-color: var(--line);
  color: var(--text);
}

.phone-shell.landing-mode .primary-action,
.phone-shell.theme-light.landing-mode .primary-action,
.phone-shell.theme-dark.landing-mode .primary-action {
  background: #2d7d46;
  border-color: #2d7d46;
  color: #fff;
  box-shadow: 0 8px 18px rgba(45, 125, 70, 0.24);
}

.phone-shell.theme-dark.landing-mode .share-check-action {
  background: #312d2a;
  border-color: var(--line);
  color: var(--text);
}

.phone-shell.theme-dark.landing-mode .bar-total p {
  color: var(--text);
}

.phone-border,
.phone-shell.theme-light .phone-border {
  grid-template-rows: auto auto auto 1fr auto;
}

.action-bar .primary-action,
.phone-shell.theme-light .action-bar .primary-action,
.phone-shell.theme-dark .action-bar .primary-action {
  min-height: 48px;
  border: 1px solid #2d7d46;
  border-radius: 4px;
  background: #2d7d46;
  color: #fff;
  box-shadow: 0 8px 18px rgba(45, 125, 70, 0.24);
}

.action-bar .primary-action:disabled,
.phone-shell.theme-light .action-bar .primary-action:disabled,
.phone-shell.theme-dark .action-bar .primary-action:disabled {
  border-color: #75ad86;
  background: #75ad86;
  color: #fff;
  box-shadow: none;
}

.action-bar .secondary-action,
.phone-shell.theme-light .action-bar .secondary-action,
.phone-shell.theme-dark .action-bar .secondary-action {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--redwood-panel);
  color: var(--text);
  box-shadow: none;
}

.phone-shell.theme-dark .action-bar .secondary-action {
  background: #312d2a;
}

html:has(body.phone-only-page),
body.phone-only-page {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body.phone-only-page .phone-only-shell {
  position: fixed;
  inset: 0;
  min-height: 0;
  height: 100dvh;
  overflow: hidden;
}

body.phone-only-page .device-stage,
body.phone-only-page .phone-shell,
body.phone-only-page .phone-border {
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

body.phone-only-page .app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

body.phone-only-page .action-menu {
  position: fixed;
  top: 66px;
  left: auto;
  right: 8px;
  z-index: 38;
}

body.phone-only-page .phone-shell .guided-process {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  position: fixed !important;
  top: 66px !important;
  left: 0;
  right: 0;
  min-height: 56px;
  padding: 8px 24px;
  background: var(--redwood-soft-panel);
  border-bottom: 1px solid var(--line);
  z-index: 90 !important;
}

body.phone-only-page .phone-shell.landing-mode .guided-process {
  display: none !important;
}

body.phone-only-page .phone-shell .process-step {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  min-height: 38px;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--muted);
  cursor: pointer;
  opacity: 1;
  visibility: visible;
}

body.phone-only-page .phone-shell .process-step::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 0;
  right: 0;
  height: 2px;
  display: block !important;
  background: var(--line);
  z-index: 0;
}

body.phone-only-page .phone-shell .process-step::after {
  display: none !important;
}

body.phone-only-page .phone-shell .process-step:first-child::before {
  left: 50%;
}

body.phone-only-page .phone-shell .process-step:last-child::before {
  right: 50%;
}

body.phone-only-page .phone-shell .process-step.is-active {
  color: var(--blue);
}

body.phone-only-page .phone-shell .step-index {
  position: relative;
  z-index: 1;
  width: 22px;
  height: 22px;
  display: grid !important;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--redwood-panel);
  color: currentColor;
  font-size: 11px;
  font-weight: 700;
  opacity: 1;
  visibility: visible;
}

body.phone-only-page .phone-shell .step-label {
  display: block !important;
  max-width: 58px;
  overflow: hidden;
  color: currentColor;
  font-size: 9px;
  line-height: 11px;
  font-weight: 700;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  opacity: 1;
  visibility: visible;
}

body.phone-only-page .phone-shell .process-step.is-active .step-index {
  border-color: var(--blue);
  background: var(--redwood-teal-soft);
}

body.phone-only-page .phone-shell .process-step.complete {
  color: var(--green);
}

body.phone-only-page .phone-shell .process-step.complete .step-index {
  border-color: var(--green);
  background: var(--redwood-green-soft);
}

body.phone-only-page .phone-shell .process-step.complete::before {
  background: rgba(36, 115, 63, 0.3);
}

.phone-shell .screen-progress .progress-dot.process-step,
body.phone-only-page .phone-shell .screen-progress .progress-dot.process-step {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.phone-shell .screen-progress .progress-dot.process-step.is-active,
body.phone-only-page .phone-shell .screen-progress .progress-dot.process-step.is-active {
  color: var(--red);
}

.phone-shell .screen-progress .progress-dot.process-step.is-active .step-index,
body.phone-only-page .phone-shell .screen-progress .progress-dot.process-step.is-active .step-index {
  border-color: var(--red);
  background: var(--red);
  color: #ffffff;
}

body.phone-only-page .phone-shell.theme-dark .guided-process {
  background: #2a2724;
}

body.phone-only-page .screen {
  position: absolute;
  top: 122px;
  left: 0;
  right: 0;
  bottom: 66px;
  min-height: 0;
  overflow-y: auto;
}

body.phone-only-page .phone-shell.landing-mode .screen {
  top: 66px;
  bottom: 176px;
}

body.phone-only-page .action-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
}
