:root {
  --ink: #0b1728;
  --muted: #6f7b87;
  --line: #253851;
  --surface: #ffffff;
  --surface-soft: #eef3f6;
  --night: #08111f;
  --panel: #0f2034;
  --flight-blue: #123f63;
  --accent: #c47a16;
  --accent-strong: #f0c77b;
  --sky: #72b8d2;
  --copper: #b8542d;
  --champagne: #f4e2bc;
  --hop: #5f7f3a;
  --shadow: 0 24px 70px rgba(2, 8, 18, 0.32);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, #08111f, #10243a 42%, #e8edf0 42%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-link-status {
  position: fixed;
  z-index: 80;
  top: 18px;
  left: 50%;
  display: none;
  width: min(92vw, 460px);
  margin: 0;
  transform: translateX(-50%);
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0.78rem 1rem;
  box-shadow: 0 18px 44px rgba(20, 28, 36, 0.18);
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1.35;
  text-align: center;
}

.app-link-status.is-success {
  display: block;
  border-color: rgba(45, 122, 58, 0.26);
  background: #e7f7ed;
  color: #1d6845;
}

.app-link-status.is-error {
  display: block;
  border-color: rgba(201, 68, 68, 0.26);
  background: #fae7e5;
  color: #7d211f;
}

.app-shell {
  min-height: 100vh;
}

.is-hidden {
  display: none !important;
}

.login-view {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: clamp(18px, 4vw, 56px);
  background:
    radial-gradient(circle at 24% 18%, rgba(240, 199, 123, 0.2), transparent 30%),
    radial-gradient(circle at 82% 22%, rgba(114, 184, 210, 0.26), transparent 34%),
    linear-gradient(135deg, #f3f8fb 0%, #d7e8f0 46%, #b7cfdb 100%);
}

.login-panel {
  display: grid;
  grid-template-columns: minmax(400px, 1.45fr) minmax(320px, 390px);
  align-items: center;
  gap: clamp(16px, 2.6vw, 24px);
  width: min(100%, 1040px);
  padding: clamp(20px, 3.4vw, 34px);
  border: 1px solid rgba(244, 226, 188, 0.28);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 24%, rgba(240, 199, 123, 0.2), transparent 38%),
    linear-gradient(180deg, #eef3f6 0%, #d8e5eb 100%);
  box-shadow: 0 28px 70px rgba(2, 8, 18, 0.42);
  color: var(--ink);
}

.login-logo {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(62vh, 470px);
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 46px rgba(16, 35, 63, 0.2);
}

.login-form {
  display: grid;
  gap: 14px;
  width: 100%;
  justify-self: stretch;
}

.login-brand-heading {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.35rem;
}

.login-title {
  margin: 0;
  color: var(--night);
  font-size: clamp(1.55rem, 2.6vw, 2.3rem);
  line-height: 1;
  letter-spacing: 0;
}

.login-brand-owner {
  display: inline-grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
  color: var(--flight-blue);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.25;
  text-transform: uppercase;
}

.login-brand-owner::before {
  content: "";
  width: 28px;
  height: 3px;
  border-radius: 999px;
  background: var(--accent);
}

.studio-header h1,
.menu-builder h2,
.builder-step h3,
.order-confirmation h2 {
  margin: 0;
  letter-spacing: 0;
}

.login-form label {
  font-weight: 700;
  color: var(--flight-blue);
}

.login-form input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(16, 35, 63, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
}

.login-form input::placeholder {
  color: #6f7b87;
}

.login-field-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.9rem;
}

.login-field-header label {
  margin: 0;
}

.login-inline-link {
  flex: 0 0 auto;
  color: var(--flight-blue);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
}

.login-inline-link:hover,
.login-secondary-action:hover {
  color: var(--accent);
  text-decoration: underline;
}

.login-account-prompt {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.45rem 0.55rem;
  margin-top: 0.15rem;
  padding-top: 0.95rem;
  border-top: 1px solid rgba(16, 35, 63, 0.14);
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.35;
}

.login-secondary-action {
  color: var(--flight-blue);
  font-weight: 900;
  text-decoration: none;
}

.login-link-status {
  display: none;
  margin: 0;
  padding: 0.72rem 0.85rem;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1.35;
  text-align: center;
}

.login-link-status.is-success {
  display: block;
  border-color: rgba(45, 122, 58, 0.24);
  background: rgba(45, 122, 58, 0.1);
  color: #2d7a3a;
}

.login-link-status.is-error {
  display: block;
  border-color: rgba(201, 68, 68, 0.24);
  background: rgba(201, 68, 68, 0.1);
  color: #c94444;
}

.login-form input:focus,
button:focus-visible {
  outline: 3px solid rgba(196, 122, 22, 0.28);
  outline-offset: 2px;
}

.primary-button,
.ghost-button {
  min-height: 44px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 800;
}

.primary-button {
  position: relative;
  padding: 0 18px;
  background: var(--accent);
  color: var(--night);
}

.primary-button:hover {
  background: var(--champagne);
}

.primary-button:disabled {
  cursor: not-allowed;
  background: #aeb8c2;
  color: #465360;
}

.ghost-button {
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(244, 226, 188, 0.22);
  color: var(--surface);
}

.ghost-button:hover {
  border-color: var(--accent);
}


.full-width {
  width: 100%;
}

.studio-view {
  display: grid;
  grid-template-rows: auto auto;
  align-content: start;
  row-gap: 18px;
  min-height: 100vh;
  padding: 0 24px 24px;
  background: #e8edf0;
}

.studio-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 24px max(24px, calc((100vw - 1440px) / 2 + 24px));
  background: linear-gradient(180deg, rgba(8, 17, 31, 0.98), rgba(14, 30, 48, 0.96));
  border-bottom: 1px solid rgba(244, 226, 188, 0.16);
}

.eyebrow {
  display: block;
  margin-bottom: 4px;
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.studio-header h1 {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  line-height: 1;
  color: var(--surface);
}

.weather-summary {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  justify-content: center;
  gap: 2px 10px;
  min-width: 190px;
  padding: 8px 12px;
  border: 1px solid rgba(244, 226, 188, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--champagne);
}

.weather-location {
  grid-column: 1 / -1;
  color: var(--accent-strong);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.weather-temperature {
  color: var(--surface);
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1;
}

.weather-condition {
  color: var(--champagne);
  font-size: 0.86rem;
  font-weight: 800;
  white-space: nowrap;
}

.weather-summary.is-unavailable {
  border-color: rgba(244, 226, 188, 0.12);
  background: rgba(255, 255, 255, 0.05);
}

.weather-summary.is-unavailable .weather-temperature,
.weather-summary.is-unavailable .weather-condition {
  color: rgba(244, 226, 188, 0.72);
}


.header-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.profile-menu {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-greeting {
  color: var(--champagne);
  font-weight: 900;
  white-space: nowrap;
}

.profile-button {
  display: grid;
  position: relative;
  place-items: center;
  padding: 0;
  appearance: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(244, 226, 188, 0.22);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--champagne);
  overflow: hidden;
}

.profile-button:hover,
.profile-button[aria-expanded="true"] {
  border-color: var(--accent);
  background: rgba(244, 226, 188, 0.12);
}

.profile-button img,
.profile-button span,
.profile-button svg {
  grid-area: 1 / 1;
}

.profile-button.has-profile-image {
  border: 0;
  background: transparent;
}

.profile-button.has-profile-image:hover,
.profile-button.has-profile-image[aria-expanded="true"] {
  background: transparent;
  box-shadow: 0 0 0 2px var(--accent);
}

.profile-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.profile-button img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  clip-path: circle(50% at 50% 50%);
  display: block;
  object-fit: cover;
  position: relative;
  z-index: 2;
  opacity: 1;
  filter: none;
  mix-blend-mode: normal;
}

.profile-button.has-profile-image svg,
.profile-button.has-profile-image span {
  display: none;
}

.profile-button.has-profile-image img {
  display: block;
}

.profile-button span {
  color: var(--champagne);
  font-size: 0.86rem;
  font-weight: 900;
}

.profile-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 5;
  display: grid;
  gap: 6px;
  width: 210px;
  padding: 8px;
  border: 1px solid rgba(244, 226, 188, 0.22);
  border-radius: 8px;
  background: #0f2034;
  box-shadow: 0 18px 45px rgba(2, 8, 18, 0.32);
}

.profile-dropdown[hidden] {
  display: none;
}

.profile-dropdown button {
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--surface);
  font-weight: 800;
  text-align: left;
}

.profile-dropdown button:hover {
  border-color: rgba(244, 226, 188, 0.22);
  background: rgba(255, 255, 255, 0.08);
}

.profile-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(8, 17, 31, 0.72);
}

.profile-modal[hidden] {
  display: none;
}

.profile-modal-card {
  width: min(100%, 640px);
  max-height: min(820px, calc(100vh - 40px));
  overflow-y: auto;
  border: 1px solid rgba(244, 226, 188, 0.22);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 28px 70px rgba(2, 8, 18, 0.42);
}

.profile-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border-bottom: 1px solid rgba(16, 35, 63, 0.12);
}

.profile-modal-header h2 {
  margin: 0;
  font-size: 1.2rem;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(16, 35, 63, 0.14);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--ink);
  font-weight: 900;
}

.profile-form {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.profile-form label {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.profile-form input[type="text"],
.profile-form input[type="email"],
.profile-form input[type="password"],
.profile-form input[type="tel"],
.profile-form select {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(16, 35, 63, 0.14);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--ink);
  font-weight: 800;
}

.profile-form input[readonly] {
  color: var(--muted);
}

.menu-builder {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: auto;
  min-height: 0;
  overflow: visible;
  padding-right: 2px;
}

.menu-builder-header {
  display: grid;
  gap: 3px;
}

.builder-kicker {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.menu-builder h2 {
  color: var(--night);
  font-size: 1.12rem;
}

.builder-step {
  display: grid;
  flex: 0 0 auto;
  gap: 8px;
  min-height: 0;
  padding-top: 12px;
  border-top: 1px solid rgba(16, 35, 63, 0.14);
}

.builder-step-items {
  grid-template-rows: auto auto minmax(240px, 360px);
  flex: 0 0 auto;
  overflow: hidden;
}

.builder-step-header {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
}

.builder-step-number {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 8px;
  background: var(--flight-blue);
  color: var(--surface);
  font-size: 0.82rem;
  font-weight: 900;
}

.builder-step h3 {
  color: var(--flight-blue);
  font-size: 0.95rem;
}

.menu-select {
  width: 100%;
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid rgba(16, 35, 63, 0.32);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--ink);
  font-weight: 800;
}

.menu-select:disabled {
  color: var(--muted);
}

.menu-select-row,
.menu-item-search {
  display: grid;
  gap: 7px;
  align-items: center;
}

.menu-select-row {
  grid-template-columns: minmax(0, 1fr) 38px;
}

.menu-item-search {
  grid-template-columns: minmax(0, 1fr) 38px;
}

.menu-item-search-input {
  width: 100%;
  height: 40px;
  min-width: 0;
  padding: 0 11px;
  border: 1px solid rgba(16, 35, 63, 0.32);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--ink);
  font-weight: 800;
}

.menu-item-search-input::placeholder {
  color: var(--muted);
}

.menu-item-icon-button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(16, 35, 63, 0.32);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--flight-blue);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
}

.menu-item-icon-button:hover:not(:disabled) {
  border-color: rgba(34, 89, 139, 0.45);
  background: var(--surface);
}

.menu-item-icon-button:disabled,
.menu-item-search-input:disabled {
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.65;
}

.menu-item-list {
  display: grid;
  gap: 8px;
  align-content: start;
  min-height: 240px;
  max-height: 360px;
  margin: 0;
  padding: 0 4px 0 0;
  overflow-y: auto;
  list-style: none;
  scrollbar-gutter: stable;
}

.menu-item-card,
.menu-item-empty {
  border: 1px solid rgba(16, 35, 63, 0.18);
  border-radius: 8px;
  background: var(--surface-soft);
}

.menu-item-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 64px;
  padding: 9px;
  color: var(--ink);
  text-align: left;
}

.menu-item-card:hover {
  border-color: rgba(196, 122, 22, 0.5);
  background: #f8fafb;
}

.menu-item-card.is-selected {
  border-color: var(--accent);
  background: rgba(196, 122, 22, 0.14);
  box-shadow: inset 4px 0 0 var(--accent);
}

.menu-item-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
  background: var(--surface);
  color: var(--flight-blue);
  font-size: 1rem;
  font-weight: 900;
  object-fit: cover;
}

.menu-item-body {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.menu-item-body strong {
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.menu-item-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 7px;
  min-width: 0;
}

.menu-item-meta small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.menu-item-abv {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  padding: 2px 7px;
  border: 1px solid rgba(95, 127, 58, 0.32);
  border-radius: 8px;
  background: rgba(95, 127, 58, 0.12);
  color: #36511f;
  font-size: 0.7rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.menu-item-empty {
  padding: 12px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-align: center;
}

.profile-section {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(16, 35, 63, 0.1);
  border-radius: 8px;
  background: rgba(238, 243, 246, 0.48);
}

.profile-section h3 {
  margin: 0;
  color: var(--flight-blue);
  font-size: 0.88rem;
  font-weight: 900;
}

.profile-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.profile-field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.profile-field-full {
  grid-column: 1 / -1;
}

.profile-verification-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px;
  border: 1px solid rgba(16, 35, 63, 0.12);
  border-radius: 8px;
  background: var(--surface);
}

.profile-verification-copy {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.profile-verification-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  min-height: 24px;
  border: 1px solid rgba(126, 33, 31, 0.18);
  border-radius: 8px;
  padding: 3px 8px;
  color: #7d211f;
  background: #fae7e5;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.1;
}

.profile-verification-badge.is-verified {
  border-color: rgba(29, 104, 69, 0.18);
  color: #1d6845;
  background: #dcf3e6;
}

.profile-verification-badge.is-pending {
  border-color: rgba(125, 79, 17, 0.2);
  color: #7d4f11;
  background: #fff2d8;
}

.profile-verification-summary {
  color: var(--flight-blue);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.3;
}

.profile-verify-button {
  width: fit-content;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid rgba(18, 63, 99, 0.24);
  border-radius: 8px;
  background: #fff;
  color: var(--flight-blue);
  font-size: 0.78rem;
  font-weight: 900;
}

.profile-verify-button:hover:not(:disabled) {
  border-color: rgba(18, 63, 99, 0.42);
  background: rgba(114, 184, 210, 0.1);
}

.profile-verify-button:disabled {
  cursor: not-allowed;
  opacity: 0.64;
}

.profile-verification-message {
  min-height: 1rem;
  margin: -2px 0 0;
  color: #1d6845;
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1.35;
}

.profile-verification-message.is-error {
  color: #7d211f;
}

.profile-verification-message:empty {
  display: none;
}


.profile-security-section {
  gap: 10px;
}

.profile-security-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(16, 35, 63, 0.12);
  border-radius: 8px;
  background: var(--surface);
}

.profile-security-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.profile-security-copy strong {
  color: var(--ink);
  font-size: 0.88rem;
  line-height: 1.2;
}

.profile-security-copy span {
  color: var(--flight-blue);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.3;
}

.profile-password-toggle {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid rgba(18, 63, 99, 0.28);
  border-radius: 8px;
  background: var(--flight-blue);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
}

.profile-password-toggle:hover {
  background: #0b2f4d;
}

.profile-password-panel {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(16, 35, 63, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.profile-password-panel[hidden] {
  display: none;
}

.profile-session-summary {
  margin-top: 12px;
}

.profile-session-summary[hidden] {
  display: none;
}

.profile-password-actions {
  display: flex;
  justify-content: flex-end;
}

.profile-password-cancel {
  width: fit-content;
  min-height: 34px;
  padding: 0 11px;
  font-size: 0.78rem;
  font-weight: 900;
}

.profile-notifications {
  display: grid;
  gap: 10px;
}

.profile-toggle-list {
  display: grid;
  gap: 10px;
}

.profile-form .profile-toggle {
  display: flex;
  position: relative;
  cursor: pointer;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 34px;
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 800;
  text-transform: none;
}

.profile-toggle input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.profile-toggle-track {
  position: relative;
  flex: 0 0 auto;
  width: 46px;
  height: 26px;
  border: 1px solid rgba(16, 35, 63, 0.18);
  border-radius: 999px;
  background: #d8e0e6;
  transition: background 160ms ease, border-color 160ms ease;
}

.profile-toggle-track::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 2px 6px rgba(2, 8, 18, 0.22);
  transition: transform 160ms ease;
}

.profile-toggle input:checked + .profile-toggle-track {
  border-color: var(--accent);
  background: var(--accent);
}

.profile-toggle input:checked + .profile-toggle-track::before {
  transform: translateX(20px);
}

.profile-toggle input:focus-visible + .profile-toggle-track {
  outline: 3px solid rgba(114, 184, 210, 0.55);
  outline-offset: 2px;
}

.profile-image-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.profile-image-preview {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  overflow: hidden;
  border: 1px solid rgba(16, 35, 63, 0.14);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-strong), var(--sky));
  color: var(--night);
  font-weight: 900;
}

.profile-image-preview.has-profile-image {
  border: 0;
  background: transparent;
}

.profile-image-preview.has-profile-image span {
  display: none;
}

.profile-image-preview img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  clip-path: circle(50% at 50% 50%);
  display: block;
  object-fit: cover;
  position: relative;
  z-index: 2;
  opacity: 1;
  filter: none;
  mix-blend-mode: normal;
}

.profile-upload-controls {
  display: grid;
  gap: 6px;
  justify-items: start;
}

.secondary-button,
.ghost-light-button {
  display: grid;
  place-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 8px;
  font-weight: 800;
}

.secondary-button {
  border: 1px solid rgba(16, 35, 63, 0.14);
  background: var(--surface-soft);
  color: var(--ink);
  cursor: pointer;
}

.secondary-button:disabled {
  cursor: not-allowed;
  border-color: transparent;
  background: #aeb8c2;
  color: #465360;
}

.ghost-light-button {
  border: 1px solid rgba(16, 35, 63, 0.14);
  background: var(--surface);
  color: var(--ink);
}

.profile-form-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding-top: 2px;
}

.profile-status {
  min-height: 18px;
  margin: 0;
  color: var(--flight-blue);
  font-size: 0.88rem;
  font-weight: 800;
}

.profile-status:empty {
  display: none;
}

.payment-modal-card {
  width: min(100%, 430px);
  overflow: hidden;
}

.payment-modal-header h2 {
  font-size: 1.15rem;
}

.payment-modal-subtitle {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.payment-modal-body {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.payment-modal-breakdown {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(16, 35, 63, 0.14);
  border-radius: 8px;
  background: var(--surface-soft);
}

.payment-modal-breakdown-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.payment-modal-breakdown-row span {
  color: var(--flight-blue);
  font-size: 0.82rem;
  font-weight: 900;
}

.payment-modal-breakdown-row strong {
  color: var(--flight-blue);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  white-space: nowrap;
}

.payment-modal-breakdown-total {
  padding-top: 8px;
  border-top: 1px solid rgba(16, 35, 63, 0.14);
}

.payment-modal-breakdown-total span {
  color: var(--flight-blue);
}

.payment-modal-breakdown-total strong {
  font-size: 1.35rem;
}

.finix-payment-frame {
  min-height: 330px;
  overflow: hidden;
  border: 1px solid rgba(16, 35, 63, 0.14);
  border-radius: 8px;
  background: #ffffff;
}

.payment-modal-status {
  min-height: 18px;
  margin: 0;
  color: var(--flight-blue);
  font-size: 0.84rem;
  font-weight: 800;
}

.payment-modal-status.is-error {
  color: #9f351f;
}

.payment-modal-status:empty {
  display: none;
}

.delivery-selfie-card {
  width: min(100%, 460px);
  overflow: hidden;
}

.delivery-selfie-header h2 {
  font-size: 1.15rem;
}

.delivery-selfie-subtitle {
  margin: 4px 0 0;
  color: var(--flight-blue);
  font-size: 0.8rem;
  font-weight: 800;
}

.delivery-selfie-body {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.delivery-selfie-frame {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  border: 1px solid rgba(16, 35, 63, 0.16);
  border-radius: 8px;
  background: #0f2034;
}

.delivery-selfie-video,
.delivery-selfie-preview {
  width: 100%;
  height: 100%;
  min-height: 280px;
  display: block;
  object-fit: cover;
  background: #0f2034;
}

.delivery-selfie-preview[hidden],
.delivery-selfie-video[hidden] {
  display: none;
}

.delivery-selfie-status {
  min-height: 18px;
  margin: 0;
  color: var(--flight-blue);
  font-size: 0.84rem;
  font-weight: 800;
}

.delivery-selfie-status.is-error {
  color: #9f351f;
}

.delivery-selfie-status:empty {
  display: none;
}

.delivery-selfie-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.delivery-selfie-actions .ghost-light-button {
  grid-column: 1 / -1;
}

.qr-scanner-card {
  width: min(100%, 460px);
  overflow: hidden;
}

.qr-scanner-header h2 {
  font-size: 1.15rem;
}

.qr-scanner-subtitle {
  margin: 4px 0 0;
  color: var(--flight-blue);
  font-size: 0.8rem;
  font-weight: 800;
}

.qr-scanner-body {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.qr-scanner-frame {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  border: 1px solid rgba(16, 35, 63, 0.16);
  border-radius: 8px;
  background: #0f2034;
}

.qr-scanner-video {
  width: 100%;
  height: 100%;
  min-height: 280px;
  display: block;
  object-fit: cover;
  background: #0f2034;
}

.qr-scanner-frame-guide {
  position: absolute;
  inset: 18%;
  border: 2px solid rgba(244, 226, 188, 0.9);
  border-radius: 8px;
  box-shadow: 0 0 0 999px rgba(8, 17, 31, 0.26);
  pointer-events: none;
}

.qr-scanner-status {
  min-height: 18px;
  margin: 0;
  color: var(--flight-blue);
  font-size: 0.84rem;
  font-weight: 800;
}

.qr-scanner-status.is-error {
  color: #9f351f;
}

.qr-scanner-status:empty {
  display: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ===== Registration Form ===== */

.registration-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.registration-modal[hidden] {
  display: none;
}

.registration-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 17, 31, 0.72);
  backdrop-filter: blur(2px);
}

.registration-card {
  position: relative;
  z-index: 1;
  width: min(100%, 560px);
  max-height: min(90vh, calc(100vh - 40px));
  overflow-y: auto;
  border: 2px solid var(--accent);
  border-radius: 12px;
  background: linear-gradient(135deg, #ffffff 0%, #f9fbfc 100%);
  box-shadow:
    0 0 40px rgba(196, 122, 22, 0.25),
    0 28px 70px rgba(2, 8, 18, 0.42);
}

.password-reset-card,
.password-reset-confirm-card {
  width: min(100%, 430px);
}

.password-reset-form,
.password-reset-confirm-form {
  gap: 18px;
}

.registration-content {
  display: grid;
  gap: 0;
}

.registration-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 32px 28px 24px;
  border-bottom: 2px solid var(--accent);
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
}

.registration-header h1 {
  margin: 0 0 6px;
  color: var(--night);
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1.2;
}

.registration-subtitle {
  margin: 0;
  color: rgba(8, 17, 31, 0.72);
  font-size: 0.95rem;
  font-weight: 600;
}

.registration-header .icon-button {
  flex-shrink: 0;
  background: rgba(8, 17, 31, 0.12);
  border-color: rgba(8, 17, 31, 0.18);
  color: var(--night);
  font-weight: 900;
}

.registration-header .icon-button:hover {
  background: rgba(8, 17, 31, 0.2);
}

.registration-form {
  display: grid;
  gap: 20px;
  padding: 28px;
}

.registration-section {
  display: grid;
  gap: 14px;
}

.registration-section-title {
  margin: 0 0 4px;
  color: var(--flight-blue);
  font-size: 0.95rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.registration-field {
  display: grid;
  gap: 8px;
}

.registration-field label {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
}

.registration-field input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 2px solid rgba(16, 35, 63, 0.18);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 160ms ease;
}

.registration-field input::placeholder {
  color: var(--muted);
}

.registration-field input:hover {
  border-color: rgba(196, 122, 22, 0.32);
}

.registration-field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(196, 122, 22, 0.15);
  background: rgba(240, 199, 123, 0.02);
}

.registration-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.registration-notifications {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(196, 122, 22, 0.18);
  border-radius: 8px;
  background: rgba(240, 199, 123, 0.05);
}

.registration-toggle-list {
  display: grid;
  gap: 10px;
}

.registration-toggle {
  display: flex;
  position: relative;
  cursor: pointer;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 32px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
}

.registration-toggle input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.registration-toggle-track {
  position: relative;
  flex: 0 0 auto;
  width: 46px;
  height: 26px;
  border: 2px solid rgba(196, 122, 22, 0.28);
  border-radius: 999px;
  background: rgba(240, 199, 123, 0.15);
  transition: all 160ms ease;
}

.registration-toggle-track::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 2px 4px rgba(2, 8, 18, 0.18);
  transition: transform 160ms ease;
}

.registration-toggle input:checked + .registration-toggle-track {
  border-color: var(--accent);
  background: rgba(240, 199, 123, 0.3);
}

.registration-toggle input:checked + .registration-toggle-track::before {
  transform: translateX(20px);
}

.registration-form-actions {
  display: grid;
  gap: 12px;
  padding-top: 8px;
}

.registration-form-actions .primary-button {
  padding: 0 18px;
  height: 48px;
  font-size: 1rem;
  letter-spacing: 0.5px;
}

.registration-form-actions .secondary-button {
  padding: 0 18px;
  height: 44px;
  font-size: 0.95rem;
  font-weight: 800;
  background: rgba(16, 35, 63, 0.06);
  border: 2px solid rgba(16, 35, 63, 0.12);
  color: var(--flight-blue);
  transition: all 160ms ease;
}

.registration-form-actions .secondary-button:hover {
  border-color: var(--flight-blue);
  background: rgba(18, 63, 99, 0.1);
}

.registration-alert {
  margin: 0;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(18, 63, 99, 0.18);
  border-radius: 8px;
  background: rgba(18, 63, 99, 0.08);
  color: var(--flight-blue);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.35;
}

.registration-alert:empty {
  display: none;
}

.registration-alert.error {
  border-color: rgba(177, 54, 54, 0.28);
  background: rgba(177, 54, 54, 0.1);
  color: #9d2f2f;
}

.registration-alert.success {
  border-color: rgba(45, 122, 58, 0.28);
  background: rgba(45, 122, 58, 0.1);
  color: #246a34;
}

.registration-field input[aria-invalid="true"] {
  border-color: #b13636;
  box-shadow: 0 0 0 3px rgba(177, 54, 54, 0.12);
}

.registration-field-error {
  margin: -0.2rem 0 0;
  color: #9d2f2f;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.3;
}

.registration-field-error:empty,
.registration-field-error[hidden] {
  display: none;
}

.registration-status {
  min-height: 18px;
  margin: 0;
  color: var(--flight-blue);
  font-size: 0.85rem;
  font-weight: 800;
  text-align: center;
}

.registration-status:empty {
  display: none;
}

.registration-status.error {
  color: #c94444;
}

.registration-status.success {
  color: #2d7a3a;
}

@media (max-width: 640px) {
  .registration-card {
    width: 100%;
    max-height: 100vh;
    border-radius: 16px 16px 0 0;
  }

  .registration-header {
    padding: 24px 20px 16px;
  }

  .registration-header h1 {
    font-size: 1.5rem;
  }

  .registration-form {
    padding: 20px;
    gap: 16px;
  }

  .registration-field-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .profile-modal {
    padding: 12px;
  }

  .profile-modal-card {
    max-height: calc(100vh - 24px);
  }

  .payment-modal-card {
    width: min(100%, 430px);
  }

  .payment-modal-body,
  .delivery-selfie-body {
    padding: 12px;
  }

  .delivery-selfie-frame,
  .delivery-selfie-video,
  .delivery-selfie-preview {
    min-height: 250px;
  }

  .delivery-selfie-actions {
    grid-template-columns: 1fr;
  }

  .finix-payment-frame {
    min-height: 350px;
  }

  .profile-field-grid,
  .profile-form-actions,
  .profile-verification-row,
  .profile-security-summary {
    grid-template-columns: 1fr;
  }

  .profile-verify-button,
  .profile-password-toggle,
  .profile-password-cancel {
    width: 100%;
  }
}

.studio-grid {
  --select-drink-panel-min-height: 780px;
  --drink-order-panel-min-height: 620px;
  --orders-panel-min-height: 620px;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(360px, 1.08fr) minmax(340px, 0.94fr) minmax(360px, 1fr);
  grid-auto-rows: auto;
  align-items: start;
  gap: 18px;
  width: 100%;
  height: auto;
  min-height: 0;
  max-width: 1440px;
  margin: 0 auto;
}

.control-panel,
.tab-panel-shell,
.confirmation-panel {
  width: 100%;
  height: auto;
  max-height: none;
  min-width: 0;
  min-height: 0;
  overflow: visible;
  border: 1px solid rgba(16, 35, 63, 0.12);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 18px 45px rgba(16, 35, 63, 0.1);
}

.control-panel,
.confirmation-panel {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 14px;
}

.control-panel {
  grid-template-rows: minmax(0, 1fr);
  align-content: stretch;
  min-height: var(--select-drink-panel-min-height);
}

.control-group,
.order-confirmation {
  display: grid;
  gap: 10px;
}

.control-group + .control-group {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.order-confirmation h2 {
  margin: 0;
  color: var(--night);
  font-size: 1.12rem;
}

.open-tab-panel {
  grid-template-rows: minmax(0, 1fr);
  align-content: stretch;
}

.open-tab-workspace {
  grid-template-rows: auto minmax(0, 1fr) var(--tab-checkout-footer-height, 238px);
  height: auto;
  min-height: calc(var(--drink-order-panel-min-height) - 28px);
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-weight: 800;
}

.toggle-row {
  justify-content: flex-start;
}

.toggle-row input {
  width: 20px;
  height: 20px;
  accent-color: var(--accent);
}

.tab-panel-shell {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  align-content: stretch;
  gap: 0;
  min-height: var(--orders-panel-min-height);
  padding: 14px;
}

.order-status-shell .purchase-history {
  height: auto;
  min-height: calc(var(--orders-panel-min-height) - 28px);
}

.tab-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 28px;
}

.purchase-history {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 8px;
}

.purchase-history h2 {
  margin: 0;
  color: var(--night);
  font-size: 1.12rem;
  letter-spacing: 0;
}

.orders-header {
  flex-wrap: wrap;
}

.orders-view-toggle {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 32px;
  padding: 2px;
  gap: 2px;
  border: 1px solid rgba(16, 35, 63, 0.16);
  border-radius: 8px;
  background: var(--surface-soft);
}

.orders-view-button {
  min-height: 26px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 900;
  cursor: pointer;
}

.orders-view-button.is-active {
  background: var(--flight-blue);
  color: #fff;
}

.orders-view-button:focus-visible {
  outline: 2px solid rgba(33, 94, 142, 0.35);
  outline-offset: 2px;
}

.orders-view-panel {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
}

.orders-view-panel[hidden] {
  display: none;
}

.completed-orders-panel {
  grid-template-rows: auto minmax(0, 1fr);
  gap: 8px;
}

.completed-order-filter {
  display: grid;
  box-sizing: border-box;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(16, 35, 63, 0.12);
  border-radius: 8px;
  background: var(--surface-soft);
}

.completed-order-filter-field {
  display: grid;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  gap: 3px;
  color: var(--flight-blue);
  font-size: 0.7rem;
  font-weight: 900;
}

.completed-order-filter-field input {
  display: block;
  box-sizing: border-box;
  justify-self: stretch;
  inline-size: 100%;
  max-inline-size: 100%;
  min-inline-size: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 44px;
  padding: 0 7px;
  border: 1px solid rgba(16, 35, 63, 0.18);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  font-weight: 800;
}

.completed-order-filter-actions {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.completed-order-filter-actions button {
  box-sizing: border-box;
  min-width: 0;
  min-height: 44px;
  padding: 0 8px;
  border-radius: 7px;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 900;
  cursor: pointer;
}

.completed-order-filter-apply {
  border: 1px solid rgba(33, 94, 142, 0.3);
  background: var(--flight-blue);
  color: #fff;
}

.completed-order-filter-clear {
  border: 1px solid rgba(16, 35, 63, 0.16);
  background: #fff;
  color: var(--flight-blue);
}

.completed-order-filter-actions button:focus-visible,
.completed-order-filter-field input:focus-visible {
  outline: 2px solid rgba(33, 94, 142, 0.35);
  outline-offset: 2px;
}

@media (max-width: 520px) {
  .completed-order-filter {
    grid-template-columns: minmax(0, 1fr);
  }

  .completed-order-filter-field input[type="date"] {
    appearance: none;
    -webkit-appearance: none;
  }
}

@media (max-width: 340px) {
  .completed-order-filter-actions {
    grid-template-columns: minmax(0, 1fr);
  }
}

.purchase-history-list {
  display: grid;
  gap: 8px;
  align-content: start;
  min-height: 0;
  margin: 0;
  padding: 0 4px 0 0;
  overflow-y: auto;
  list-style: none;
  scrollbar-gutter: stable;
  overscroll-behavior: contain;
}

.purchase-history-receipt,
.purchase-history-empty {
  border: 1px solid rgba(16, 35, 63, 0.18);
  border-radius: 8px;
  background: var(--surface-soft);
}

.purchase-history-receipt {
  display: grid;
  gap: 8px;
  padding: 9px;
}

.purchase-history-active-receipt {
  gap: 10px;
}

.purchase-history-active-meta {
  display: grid;
  min-width: 0;
  gap: 5px;
  padding: 8px 9px;
  border: 1px solid rgba(18, 63, 99, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
}

.purchase-history-active-location {
  min-width: 0;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.purchase-history-active-fulfillment-row {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 6px;
}

.purchase-history-active-destination {
  display: inline-flex;
  flex: 1 1 auto;
  max-width: 100%;
  min-height: 22px;
  align-items: center;
  color: var(--flight-blue);
  font-size: 0.74rem;
  font-weight: 900;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.purchase-history-active-fulfillment-row .purchase-history-status {
  flex: 0 1 auto;
  justify-self: auto;
}

.purchase-history-active-fulfillment-row .purchase-history-update-location-button {
  flex: 0 0 auto;
  width: auto;
  max-width: 100%;
  min-height: 28px;
  padding: 0 9px;
  font-size: 0.72rem;
  white-space: nowrap;
}

.purchase-history-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px;
  min-width: 0;
}

.purchase-history-active-receipt .purchase-history-header {
  grid-template-columns: minmax(0, 1fr);
}

.purchase-history-title {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.purchase-history-title strong {
  min-width: 0;
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.purchase-history-date {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.15;
}

.purchase-history-status-row {
  display: flex;
  min-width: 0;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.purchase-history-fulfillment {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.purchase-history-location {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  min-height: 22px;
  align-items: center;
  margin: 0;
  padding: 3px 7px;
  border: 1px solid rgba(18, 63, 99, 0.22);
  border-radius: 8px;
  background: rgba(114, 184, 210, 0.12);
  color: var(--flight-blue);
  font-size: 0.7rem;
  font-weight: 900;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.purchase-history-status {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  min-height: 22px;
  align-items: center;
  justify-self: end;
  padding: 3px 7px;
  border: 1px solid rgba(95, 127, 58, 0.32);
  border-radius: 8px;
  background: rgba(95, 127, 58, 0.12);
  color: #36511f;
  font-size: 0.7rem;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  white-space: normal;
}

.purchase-history-complete-button,
.purchase-history-update-location-button {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 0 10px;
  border-radius: 8px;
  color: #fff;
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1.15;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.purchase-history-complete-button {
  border: 1px solid rgba(30, 111, 83, 0.34);
  background: #1f8a63;
}

.purchase-history-update-location-button {
  border: 1px solid rgba(18, 63, 99, 0.36);
  background: var(--flight-blue);
}

.purchase-history-update-location-button:hover:not(:disabled) {
  background: #0b2f4d;
}

.purchase-history-footer {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 4px;
  border-top: 1px solid rgba(16, 35, 63, 0.12);
}

.purchase-history-active-footer {
  display: grid;
  align-items: stretch;
  justify-content: stretch;
  gap: 8px;
  padding-top: 8px;
}

.purchase-history-active-footer .purchase-history-total {
  width: 100%;
  justify-content: space-between;
}

.purchase-history-active-actions {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  min-width: 0;
  width: 100%;
  gap: 8px;
}

.purchase-history-active-actions > * {
  position: relative;
  z-index: 1;
  min-width: 0;
  pointer-events: auto;
}

.purchase-history-active-actions .purchase-history-complete-button {
  width: 100%;
  min-height: 44px;
}

.purchase-history-total {
  display: inline-flex;
  min-width: 0;
  align-items: baseline;
  gap: 6px;
  color: var(--flight-blue);
  font-size: 0.78rem;
  font-weight: 900;
}

.purchase-history-total strong {
  color: var(--flight-blue);
  font-size: 0.92rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.purchase-history-details {
  display: grid;
  min-width: 0;
  border-top: 1px solid rgba(16, 35, 63, 0.12);
  padding-top: 4px;
}

.purchase-history-details-summary {
  display: inline-flex;
  width: fit-content;
  min-height: 28px;
  align-items: center;
  gap: 5px;
  color: var(--flight-blue);
  font-size: 0.76rem;
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}

.purchase-history-details-summary::-webkit-details-marker {
  display: none;
}

.purchase-history-details-summary::after {
  content: "v";
  font-size: 0.72rem;
  line-height: 1;
  transition: transform 160ms ease;
}

.purchase-history-details[open] .purchase-history-details-summary::after {
  transform: rotate(180deg);
}

.purchase-history-receipt-panel {
  display: grid;
  gap: 8px;
  margin-top: 5px;
  padding: 9px;
  border: 1px solid rgba(16, 35, 63, 0.12);
  border-radius: 8px;
  background: #fff;
}

.purchase-history-receipt-lines {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.purchase-history-receipt-lines li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: start;
  gap: 8px;
  min-width: 0;
}

.purchase-history-receipt-line-identity {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.purchase-history-receipt-line-identity strong {
  color: var(--ink);
  font-size: 0.78rem;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.purchase-history-receipt-line-identity span,
.purchase-history-receipt-line-unit {
  color: var(--flight-blue);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.15;
}

.purchase-history-receipt-line-unit,
.purchase-history-receipt-line-total {
  white-space: nowrap;
}

.purchase-history-receipt-line-total {
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}

.purchase-history-receipt-breakdown {
  display: grid;
  gap: 4px;
  padding-top: 6px;
  border-top: 1px solid rgba(16, 35, 63, 0.12);
}

.purchase-history-receipt-breakdown div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--flight-blue);
  font-size: 0.73rem;
  font-weight: 900;
}

.purchase-history-receipt-breakdown strong {
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.purchase-history-receipt-breakdown .is-total {
  padding-top: 4px;
  color: var(--flight-blue);
  font-weight: 900;
}

.purchase-history-receipt-breakdown .is-total strong {
  color: var(--flight-blue);
}

.purchase-history-complete-button:hover:not(:disabled) {
  background: #176f4f;
}

.purchase-history-complete-button.is-ready-attention:not(:disabled) {
  border-color: rgba(127, 63, 0, 0.68);
  background: #9a4f00;
  color: #fff;
  animation: ready-confirm-pulse 3s ease-in-out infinite;
}

.purchase-history-complete-button.is-ready-attention:hover:not(:disabled) {
  background: #7f3f00;
}

@keyframes ready-confirm-pulse {
  0%,
  100% {
    background: #b85f00;
    box-shadow: 0 0 0 0 rgba(184, 95, 0, 0.22);
  }

  50% {
    background: #7f3f00;
    box-shadow: 0 0 0 4px rgba(184, 95, 0, 0.28);
  }
}

@media (prefers-reduced-motion: reduce) {
  .purchase-history-complete-button.is-ready-attention:not(:disabled) {
    animation: none;
    box-shadow: 0 0 0 3px rgba(196, 122, 22, 0.2);
  }
}

.purchase-history-complete-button:disabled,
.purchase-history-update-location-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.purchase-history-location-update-status {
  display: block;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  padding: 5px 7px;
  border: 1px solid rgba(18, 63, 99, 0.16);
  border-radius: 8px;
  background: rgba(114, 184, 210, 0.12);
  color: var(--flight-blue);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.purchase-history-location-update-status.is-warning {
  border-color: rgba(127, 83, 12, 0.22);
  background: #fff6df;
  color: #6f4b08;
}

.purchase-history-location-update-status.is-error {
  border-color: rgba(125, 33, 31, 0.22);
  background: #fff1ef;
  color: #7d211f;
}

.purchase-history-items {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.purchase-history-active-items {
  gap: 8px;
}

.purchase-history-items li {
  display: grid;
  gap: 2px;
  padding-top: 6px;
  border-top: 1px solid rgba(16, 35, 63, 0.12);
}

.purchase-history-items li:first-child {
  padding-top: 0;
  border-top: 0;
}

.purchase-history-items strong,
.purchase-history-items span {
  overflow-wrap: anywhere;
}

.purchase-history-items strong {
  color: var(--ink);
  font-size: 0.84rem;
  line-height: 1.15;
}

.purchase-history-item-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.purchase-history-history-item {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  column-gap: 8px;
  row-gap: 3px;
}

.purchase-history-history-item .history-rating-row {
  align-self: start;
  justify-content: flex-end;
  padding-top: 0;
}

.history-rating-row-compact {
  justify-content: flex-end;
}

.purchase-history-items span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.purchase-history-active-items span,
.purchase-history-history-items span {
  color: var(--flight-blue);
  font-weight: 900;
}

.purchase-history-history-receipt .purchase-history-date {
  color: var(--flight-blue);
  font-weight: 900;
}

.history-rating-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  gap: 8px;
  padding-top: 5px;
}

.history-rating-label {
  flex: 0 0 auto;
  color: var(--flight-blue);
  font-size: 0.72rem;
  font-weight: 900;
}

.history-rating-stars {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 1px;
}

.history-rating-star {
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--flight-blue);
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
}

.history-rating-star.is-selected {
  color: #b66b00;
}

.history-rating-star:hover:not(:disabled),
.history-rating-star:focus-visible {
  background: rgba(182, 107, 0, 0.12);
  color: #9c5b00;
}

.history-rating-star:disabled {
  cursor: wait;
  opacity: 0.6;
}

@media (max-width: 420px) {
  .purchase-history-history-item {
    grid-template-columns: minmax(0, 1fr);
  }

  .purchase-history-history-item .history-rating-row {
    justify-content: flex-start;
  }
}

.purchase-history-empty {
  display: grid;
  min-height: 150px;
  padding: 18px;
  place-items: center;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-align: center;
}

.selection-confirmation {
  min-height: 0;
}

.builder-step-configure {
  flex: 0 0 auto;
}

.builder-step-configure .selection-confirmation {
  min-height: 150px;
}

.selection-confirmation-card,
.selection-confirmation-empty {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.selection-confirmation-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 74px;
  gap: 12px;
  align-items: center;
  padding: 12px;
}

.selection-confirmation-icon,
.selection-confirmation-glass {
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--surface);
  color: var(--flight-blue);
  font-weight: 900;
  object-fit: contain;
}

.selection-confirmation-icon {
  width: 58px;
  height: 58px;
  font-size: 1.15rem;
}

.selection-confirmation-glass {
  width: 74px;
  height: 74px;
  padding: 5px;
  font-size: 0.75rem;
}

.selection-confirmation-body {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.selection-confirmation-body strong,
.selection-confirmation-body span {
  overflow-wrap: anywhere;
}

.selection-confirmation-body strong {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.2;
}

.selection-confirmation-body span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.2;
}

.selection-purchase-option {
  display: grid;
  grid-column: 1 / -1;
  gap: 6px;
  padding-top: 10px;
  border-top: 1px solid rgba(16, 35, 63, 0.14);
  color: var(--flight-blue);
  font-size: 0.78rem;
  font-weight: 900;
}

.selection-purchase-select {
  width: 100%;
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid rgba(16, 35, 63, 0.32);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
}

.selection-quantity-field {
  display: grid;
  gap: 6px;
}

.selection-quantity-field > span {
  color: var(--flight-blue);
  font-size: 0.78rem;
  font-weight: 900;
}

.selection-quantity-stepper {
  display: grid;
  grid-template-columns: 42px minmax(44px, 70px) 42px;
  gap: 6px;
  align-items: center;
  width: fit-content;
  max-width: 100%;
}

.selection-quantity-button,
.selection-quantity-value {
  display: inline-flex;
  min-width: 0;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
}

.selection-quantity-button {
  border: 1px solid rgba(18, 63, 99, 0.32);
  background: var(--flight-blue);
  color: #fff;
  cursor: pointer;
}

.selection-quantity-button:hover:not(:disabled) {
  background: #0b2f4d;
}

.selection-quantity-button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.selection-quantity-value {
  border: 1px solid rgba(16, 35, 63, 0.26);
  background: var(--surface);
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.selection-purchase-select:disabled {
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.65;
}

.selection-add-button {
  width: 100%;
}

.selection-add-button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}


.checkout-fulfillment {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(16, 35, 63, 0.14);
  border-radius: 8px;
  background: var(--surface-soft);
}

.build-fulfillment {
  gap: 8px;
  padding: 8px;
}

.build-fulfillment .checkout-fulfillment-button {
  min-height: 34px;
  padding: 0 8px;
  font-size: 0.78rem;
}

.checkout-fulfillment-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.delivery-destination-panel {
  display: grid;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(16, 35, 63, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.delivery-destination-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.delivery-location-field {
  display: grid;
  gap: 6px;
}

.delivery-location-button {
  min-height: 34px;
  width: 100%;
  border-color: rgba(18, 63, 99, 0.28);
  background: #ffffff;
  color: var(--flight-blue);
}

.delivery-location-button.is-location-attention:not(:disabled) {
  border-color: rgba(127, 63, 0, 0.68);
  background: #9a4f00;
  color: #fff;
  animation: ready-confirm-pulse 3s ease-in-out infinite;
}

.delivery-location-button.is-location-attention:hover:not(:disabled) {
  background: #7f3f00;
}

.delivery-location-status {
  min-height: 0;
  margin: 0;
  padding: 6px 8px;
  border: 1px solid rgba(33, 112, 72, 0.18);
  border-radius: 8px;
  background: #eff8f1;
  color: #195f3a;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.35;
}

.delivery-location-status:empty {
  display: none;
}

.delivery-location-status.is-warning {
  border-color: rgba(127, 83, 12, 0.24);
  background: #fff6df;
  color: #6f4b08;
}

.delivery-location-status.is-error {
  border-color: rgba(125, 33, 31, 0.22);
  background: #fff1ef;
  color: #7d211f;
}

.checkout-fulfillment-button {
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid rgba(16, 35, 63, 0.24);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 900;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.checkout-fulfillment-button:hover:not(:disabled) {
  border-color: rgba(18, 63, 99, 0.42);
  background: #f8fbfd;
}

.checkout-fulfillment-button.is-selected {
  border-color: rgba(18, 63, 99, 0.82);
  background: var(--flight-blue);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.checkout-fulfillment-button.is-selected:hover:not(:disabled) {
  background: #0b2f4d;
}

.checkout-fulfillment-button:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

.checkout-table-field {
  display: grid;
  gap: 6px;
  color: var(--flight-blue);
  font-size: 0.78rem;
  font-weight: 900;
}

.checkout-table-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.checkout-table-field input {
  width: 100%;
  height: 40px;
  padding: 0 10px;
  border: 1px solid rgba(16, 35, 63, 0.32);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
}

.checkout-table-scan-button {
  min-width: 86px;
  height: 44px;
  padding: 0 12px;
  border-color: rgba(16, 35, 63, 0.2);
  background: var(--surface);
  color: var(--flight-blue);
  font-size: 0.78rem;
  white-space: nowrap;
}

.checkout-table-scan-button:hover:not(:disabled) {
  background: var(--surface-soft);
}

.checkout-table-status {
  display: grid;
  gap: 6px;
  min-height: 17px;
  margin: 0;
  color: var(--flight-blue);
  font-size: 0.78rem;
  font-weight: 800;
}

.checkout-table-confirm-actions,
.purchase-history-table-confirm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.checkout-table-confirm-actions button,
.purchase-history-table-confirm-actions button {
  min-height: 44px;
  padding: 0 9px;
  border: 1px solid rgba(16, 35, 63, 0.18);
  border-radius: 8px;
  background: var(--surface);
  color: var(--flight-blue);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.1;
  cursor: pointer;
}

.checkout-table-confirm-actions button:first-child,
.purchase-history-table-confirm-actions button:first-child {
  background: var(--flight-blue);
  color: #fff;
}

.checkout-table-confirm-actions button:hover,
.purchase-history-table-confirm-actions button:hover {
  border-color: rgba(16, 35, 63, 0.3);
  background: var(--surface-soft);
}

.checkout-table-confirm-actions button:first-child:hover,
.purchase-history-table-confirm-actions button:first-child:hover {
  background: #0b2f4d;
}

.checkout-table-status.is-error {
  color: #9f351f;
}

.checkout-table-status:empty {
  display: none;
}

.checkout-table-field input:disabled,
.checkout-table-scan-button:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

.tab-list-viewport {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
}

.tab-checkout-footer {
  display: grid;
  grid-template-rows: minmax(0, 1fr) 44px;
  gap: 8px;
  height: var(--tab-checkout-footer-height, 238px);
  min-height: var(--tab-checkout-footer-height, 238px);
  max-height: var(--tab-checkout-footer-height, 238px);
  overflow: hidden;
}

.tab-action-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  height: 44px;
  min-height: 44px;
  max-height: 44px;
  overflow: hidden;
}

.tab-action-row .full-width {
  width: 100%;
  height: 44px;
  min-height: 44px;
  max-height: 44px;
}

@media (max-width: 420px) {
  .open-tab-workspace {
    --tab-checkout-footer-height: 340px;
  }

  .tab-checkout-footer {
    grid-template-rows: minmax(0, 1fr) 96px;
  }

  .tab-action-row {
    grid-template-columns: 1fr;
    grid-template-rows: 44px 44px;
    height: 96px;
    min-height: 96px;
    max-height: 96px;
  }
}

.checkout-order-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  max-height: 100%;
  margin: 0;
  padding: 0 4px 0 0;
  overflow-y: auto;
  list-style: none;
  scrollbar-gutter: stable;
  overscroll-behavior: contain;
}

.checkout-order-item,
.checkout-order-empty {
  border: 1px solid rgba(16, 35, 63, 0.18);
  border-radius: 8px;
  background: var(--surface-soft);
}

.checkout-order-item {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 8px;
  min-height: 60px;
  padding: 9px;
  overflow: visible;
}

.checkout-order-main {
  display: flex;
  gap: 9px;
  align-items: center;
  width: 100%;
  min-width: 0;
}

.checkout-order-glass {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: var(--surface);
  object-fit: contain;
}

.checkout-order-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  max-width: 100%;
  overflow: visible;
}

.checkout-order-body strong,
.checkout-order-body span {
  overflow-wrap: anywhere;
}

.checkout-order-body strong {
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.15;
}

.checkout-order-body span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.15;
}

.checkout-order-size-price {
  display: block;
}

.checkout-order-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  align-items: center;
  overflow: visible;
}

.checkout-order-fulfillment {
  display: inline-flex;
  width: fit-content;
  flex: 0 1 auto;
  max-width: 100%;
  min-width: 0;
  min-height: 22px;
  align-items: center;
  padding: 4px 7px;
  overflow-wrap: anywhere;
  border: 1px solid rgba(95, 127, 58, 0.32);
  border-radius: 8px;
  background: rgba(95, 127, 58, 0.12);
  color: #36511f;
  font-size: 0.7rem;
  font-weight: 900;
  line-height: 1.1;
  white-space: normal;
}


.checkout-remove-button {
  display: inline-flex;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(16, 35, 63, 0.22);
  border-radius: 8px;
  background: var(--surface);
  color: var(--flight-blue);
  font-weight: 900;
  line-height: 1;
}

.checkout-remove-button:hover:not(:disabled) {
  border-color: #c94444;
  color: #c94444;
  background: rgba(201, 68, 68, 0.08);
}

.checkout-remove-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.checkout-order-empty {
  display: grid;
  min-height: 140px;
  padding: 18px;
  place-items: center;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-align: center;
}

.selection-confirmation-empty {
  display: grid;
  min-height: 150px;
  margin: 0;
  padding: 18px;
  place-items: center;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-align: center;
}

.payment-breakdown {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 0;
  padding: 8px 10px;
  overflow: hidden;
  border: 1px solid rgba(16, 35, 63, 0.14);
  border-radius: 8px;
  background: var(--surface-soft);
}

.payment-breakdown-row,
.tip-control-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  min-height: 21px;
}

.payment-breakdown-row span,
.tip-control-label,
.custom-tip-field span {
  color: var(--flight-blue);
  font-size: 0.76rem;
  font-weight: 900;
}

.payment-breakdown-row strong,
.tip-control-heading strong {
  color: var(--flight-blue);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  white-space: nowrap;
}

.tip-control {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.tip-option-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  min-width: 0;
}

.tip-option-button {
  min-width: 0;
  min-height: 44px;
  padding: 0 5px;
  overflow: hidden;
  border: 1px solid rgba(16, 35, 63, 0.18);
  border-radius: 6px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tip-option-button.is-selected {
  border-color: var(--accent);
  background: rgba(196, 122, 22, 0.14);
  color: var(--flight-blue);
}

.tip-option-button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.custom-tip-field {
  display: grid;
  grid-template-columns: auto minmax(0, 112px);
  align-items: center;
  gap: 8px;
}

.custom-tip-field input {
  width: 100%;
  height: 44px;
  padding: 0 8px;
  border: 1px solid rgba(16, 35, 63, 0.26);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
  text-align: right;
}

.custom-tip-field input:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

.payment-breakdown-total {
  margin-top: auto;
  min-height: 32px;
  padding-top: 6px;
  border-top: 1px solid rgba(16, 35, 63, 0.14);
}

.payment-breakdown-total span {
  color: var(--flight-blue);
}

.payment-breakdown-total strong {
  font-size: 1.22rem;
}

@media (max-width: 420px) {
  .tip-option-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .custom-tip-field {
    grid-template-columns: 1fr;
    gap: 5px;
  }
}

.open-tab-panel .primary-button,
.open-tab-panel .secondary-button {
  height: 44px;
  min-height: 44px;
  max-height: 44px;
}



@media (max-width: 1180px) {
  .studio-grid {
    --select-drink-panel-min-height: 760px;
    --drink-order-panel-min-height: 600px;
    --orders-panel-min-height: 560px;
    grid-template-columns: minmax(360px, 1.08fr) minmax(340px, 0.92fr);
    grid-auto-rows: auto;
    height: auto;
    min-height: 0;
  }

  .tab-panel-shell {
    grid-column: 1 / -1;
    height: auto;
    max-height: none;
    min-height: var(--orders-panel-min-height);
  }
}

@media (max-width: 760px) {
  .login-panel {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .login-logo {
    max-height: 44vh;
  }

  .studio-view {
    padding: 0 14px 14px;
    background: #e8edf0;
  }

  .studio-header {
    align-items: flex-start;
    flex-direction: column;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 18px 14px;
  }

  .weather-summary {
    justify-content: flex-start;
    width: 100%;
    min-width: 0;
  }

  .header-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .profile-menu {
    flex: 0 0 auto;
  }

  .profile-dropdown button {
    flex: none;
  }

  .studio-grid {
    --select-drink-panel-min-height: 0px;
    --drink-order-panel-min-height: 560px;
    --orders-panel-min-height: 560px;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .confirmation-panel {
    grid-template-columns: 1fr;
  }

  .control-panel {
    min-height: 0;
  }

  .menu-builder {
    gap: 10px;
  }

  .builder-step {
    padding-top: 10px;
  }

  .builder-step-items {
    grid-template-rows: auto auto minmax(220px, 320px);
  }

  .menu-item-list {
    min-height: 220px;
    max-height: 320px;
  }

  .tab-list-viewport {
    min-height: 150px;
    max-height: 320px;
  }

  .tab-panel-shell {
    height: auto;
    max-height: none;
    min-height: var(--orders-panel-min-height);
  }

  .purchase-history-list {
    max-height: min(760px, 78vh);
  }
}

@media (max-width: 420px) {
  .studio-grid {
    --drink-order-panel-min-height: 600px;
    --orders-panel-min-height: 520px;
    gap: 12px;
  }

  .builder-step-items {
    grid-template-rows: auto auto minmax(200px, 280px);
  }

  .menu-item-list {
    min-height: 200px;
    max-height: 280px;
  }

  .tab-list-viewport {
    min-height: 140px;
    max-height: 260px;
  }

  .purchase-history-list {
    max-height: min(680px, 78vh);
  }
}
