:root {
  --bg: #eef1f6;
  --surface: #ffffff;
  --surface-soft: #f7f9fc;
  --text: #0f172a;
  --muted: #64748b;
  --faint: #94a3b8;
  --border: #e2e8f0;
  --brand: #0f766e;
  --brand-strong: #115e59;
  --brand-soft: #ccfbf1;
  --success: #15803d;
  --success-soft: #dcfce7;
  --info: #1d4ed8;
  --info-soft: #dbeafe;
  --warning: #b45309;
  --warning-soft: #fef3c7;
  --danger: #dc2626;
  --danger-soft: #fee2e2;
  --slate-soft: #e2e8f0;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --radius: 14px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Rubik', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #0f172a;
  color: #f8fafc;
  box-shadow: var(--shadow-md);
}

.app-header__inner {
  max-width: 920px;
  margin: 0 auto;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 18px;
}

.brand__mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--brand);
  flex: 0 0 auto;
}

.brand__mark svg {
  width: 20px;
  height: 20px;
}

.brand__sub {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: #94a3b8;
}

.header-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-link {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 14px;
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.25);
  transition: background 0.15s ease, color 0.15s ease;
}

.header-link:hover {
  background: rgba(148, 163, 184, 0.16);
  color: #f8fafc;
}

.container {
  max-width: 920px;
  margin: 0 auto;
  padding: 20px 18px 96px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 26px 0 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0.2px;
}

.section-title .count {
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--slate-soft);
  color: var(--muted);
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.grid {
  display: grid;
  gap: 14px;
}

@media (min-width: 720px) {
  .grid--cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card--ready {
  border-color: #bbf7d0;
  box-shadow: 0 0 0 1px #bbf7d0, var(--shadow-sm);
}

.card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.order-number {
  font-weight: 700;
  font-size: 15px;
  color: var(--muted);
}

.customer {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
}

.address {
  font-size: 16px;
  font-weight: 500;
}

.detail-line {
  color: var(--muted);
  font-size: 14px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  color: var(--muted);
}

.tag--cash {
  background: var(--warning-soft);
  border-color: #fde68a;
  color: var(--warning);
  font-weight: 600;
}

.tag--card {
  background: var(--info-soft);
  border-color: #bfdbfe;
  color: var(--info);
  font-weight: 600;
}

.tag--courier {
  background: var(--brand-soft);
  border-color: #99f6e4;
  color: var(--brand-strong);
}

.notes {
  background: var(--surface-soft);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  font-size: 14px;
  color: #334155;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.badge::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.badge-pending {
  background: var(--warning-soft);
  color: var(--warning);
}

.badge-ready {
  background: var(--success-soft);
  color: var(--success);
}

.badge-otw {
  background: var(--info-soft);
  color: var(--info);
}

.badge-delivered {
  background: var(--slate-soft);
  color: var(--muted);
}

.timestamp {
  font-size: 13px;
  color: var(--faint);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  min-height: 44px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.05s ease, background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
  user-select: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn--grow {
  flex: 1 1 auto;
}

.btn--block {
  width: 100%;
}

.btn--lg {
  min-height: 52px;
  font-size: 16px;
}

.btn-primary {
  background: var(--brand);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--brand-strong);
}

.btn-success {
  background: var(--success);
  color: #ffffff;
}

.btn-success:hover {
  background: #166534;
}

.btn-nav {
  background: var(--info);
  color: #ffffff;
}

.btn-nav:hover {
  background: #1e40af;
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost:hover {
  background: var(--surface-soft);
}

.btn-danger {
  background: var(--surface);
  color: var(--danger);
  border-color: #f3c7c7;
}

.btn-danger:hover {
  background: var(--danger-soft);
}

.btn-call {
  background: var(--surface);
  color: var(--success);
  border-color: #bbf7d0;
}

.btn-call:hover {
  background: var(--success-soft);
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 18px;
}

.panel__title {
  margin: 0 0 14px;
  font-size: 17px;
  font-weight: 600;
}

.form-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

@media (min-width: 560px) {
  .form-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .field--full {
    grid-column: 1 / -1;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.field input,
.field textarea {
  font-family: inherit;
  font-size: 16px;
  color: var(--text);
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  background: #ffffff;
}

.field textarea {
  resize: vertical;
  min-height: 64px;
}

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.segmented input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.segmented label {
  text-align: center;
  padding: 11px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-soft);
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.segmented input:checked + label {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand-strong);
}

.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.icon-btn {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--muted);
}

.icon-btn svg {
  width: 20px;
  height: 20px;
}

.icon-btn.is-active {
  color: var(--brand);
  border-color: var(--brand-soft);
  background: var(--brand-soft);
}

.shift-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  border-top: 1px solid var(--border);
  padding-top: 10px;
}

.shift-toggle__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.shift-toggle__title {
  font-weight: 600;
  font-size: 15px;
}

.shift-toggle__sub {
  font-size: 13px;
  color: var(--muted);
}

.shift-toggle__sub[data-state='on'] {
  color: var(--success);
  font-weight: 600;
}

.shift-toggle__sub[data-state='denied'],
.shift-toggle__sub[data-state='unsupported'] {
  color: var(--danger);
}

.shift-toggle__sub[data-state='ios'] {
  color: var(--brand-strong);
  font-weight: 600;
}

.shift-toggle__sub[data-state='insecure'] {
  color: var(--warning);
  font-weight: 600;
}

.switch {
  position: relative;
  flex: 0 0 auto;
  width: 52px;
  height: 30px;
}

.switch input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

.switch__slider {
  position: absolute;
  inset: 0;
  background: var(--slate-soft);
  border-radius: 999px;
  transition: background 0.2s ease;
}

.switch__slider::before {
  content: '';
  position: absolute;
  top: 3px;
  right: 3px;
  width: 24px;
  height: 24px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease;
}

.switch input:checked + .switch__slider {
  background: var(--brand);
}

.switch input:checked + .switch__slider::before {
  transform: translateX(-22px);
}

.switch input:disabled + .switch__slider {
  opacity: 0.5;
  cursor: not-allowed;
}

.alert-prefs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-top: 2px;
}

.alert-prefs[hidden] {
  display: none;
}

.alert-prefs__title {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.alert-pref {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
}

.alert-pref__label {
  font-size: 15px;
  font-weight: 500;
}

.voice-select {
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  cursor: pointer;
  min-width: 110px;
}

.voice-select:focus {
  outline: none;
  border-color: var(--brand);
}

.admin-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 12px 14px;
  margin-bottom: 14px;
  font-size: 15px;
}

.admin-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.logs {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.log-row {
  display: flex;
  align-items: center;
  gap: 8px 12px;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--border);
  border-right: 3px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  font-size: 14px;
}

.log-row__time {
  color: var(--faint);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.log-row__action {
  font-weight: 600;
}

.log-row__meta {
  color: var(--muted);
}

.log-row--ready {
  border-right-color: var(--success);
}

.log-row--done {
  border-right-color: var(--info);
}

.log-row--info {
  border-right-color: var(--brand);
}

.log-row--danger {
  border-right-color: var(--danger);
}

.log-row--muted {
  border-right-color: var(--faint);
}

.staff-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.staff-field span {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.staff-field input {
  font-family: inherit;
  font-size: 16px;
  color: var(--text);
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}

.staff-field input:focus {
  outline: none;
  border-color: var(--brand);
  background: #ffffff;
}

.empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--faint);
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

.empty strong {
  display: block;
  color: var(--muted);
  margin-bottom: 4px;
  font-size: 16px;
}

.link-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 18px;
}

.text-link {
  color: var(--muted);
  font-size: 14px;
  border-bottom: 1px solid transparent;
}

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

.toggle-line {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.hero {
  text-align: center;
  padding: 36px 18px 8px;
}

.hero__logo {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  background: var(--brand);
  box-shadow: var(--shadow-md);
}

.hero__logo svg {
  width: 36px;
  height: 36px;
}

.hero h1 {
  margin: 0 0 6px;
  font-size: 26px;
  font-weight: 700;
}

.hero p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.choices {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  margin-top: 28px;
}

@media (min-width: 620px) {
  .choices {
    grid-template-columns: repeat(2, 1fr);
  }
}

.choice {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 26px 22px;
  text-align: center;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.choice:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-soft);
}

.choice__icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
}

.choice__icon svg {
  width: 30px;
  height: 30px;
}

.choice__icon--counter {
  background: var(--brand-soft);
  color: var(--brand-strong);
}

.choice__icon--courier {
  background: var(--info-soft);
  color: var(--info);
}

.choice h2 {
  margin: 0 0 6px;
  font-size: 20px;
}

.choice p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #0f172a;
  color: #f8fafc;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 60;
  max-width: 90vw;
  text-align: center;
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast--error {
  background: #7f1d1d;
}

.toast--success {
  background: #14532d;
}

.connection {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #94a3b8;
}

.connection::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
}

.connection.is-online::before {
  background: #22c55e;
}

.nav-pref {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

.nav-pref select {
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  cursor: pointer;
  min-width: 150px;
}

.nav-pref select:focus {
  outline: none;
  border-color: var(--brand);
}

.fab-home {
  position: fixed;
  left: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 45;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.fab-home__btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--brand);
  color: #ffffff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.3);
  transition: transform 0.1s ease, background 0.15s ease;
}

.fab-home:hover .fab-home__btn {
  background: var(--brand-strong);
}

.fab-home:active .fab-home__btn {
  transform: scale(0.93);
}

.fab-home__btn svg {
  width: 28px;
  height: 28px;
}

.fab-home__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-strong);
  background: rgba(255, 255, 255, 0.9);
  padding: 1px 9px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

.card--pending {
  border-color: #fecaca;
  box-shadow: 0 0 0 1px #fecaca, var(--shadow-sm);
}

.screen-flash {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  animation: flashPulse 1s ease-out forwards;
}

.screen-flash--new {
  background: radial-gradient(circle at 50% 45%, rgba(220, 38, 38, 0) 40%, rgba(220, 38, 38, 0.5) 100%);
}

.screen-flash--ready {
  background: radial-gradient(circle at 50% 45%, rgba(21, 128, 61, 0) 40%, rgba(21, 128, 61, 0.5) 100%);
}

.screen-flash--delivered {
  background: radial-gradient(circle at 50% 45%, rgba(29, 78, 216, 0) 40%, rgba(29, 78, 216, 0.5) 100%);
}

@keyframes flashPulse {
  0% { opacity: 0; }
  15% { opacity: 1; }
  45% { opacity: 0.35; }
  70% { opacity: 0.85; }
  100% { opacity: 0; }
}

.alert-card {
  position: fixed;
  top: calc(14px + env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%) translateY(-160%);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-radius: 16px;
  color: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.32);
  min-width: 270px;
  max-width: 92vw;
  cursor: pointer;
  opacity: 0;
  transition: transform 0.34s cubic-bezier(0.2, 0.9, 0.3, 1.25), opacity 0.3s ease;
}

.alert-card.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.alert-card--new {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
}

.alert-card--ready {
  background: linear-gradient(135deg, #22c55e, #15803d);
}

.alert-card--delivered {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.alert-card__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.22);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.alert-card__icon svg {
  width: 24px;
  height: 24px;
}

.alert-card__title {
  display: block;
  font-size: 17px;
  font-weight: 700;
}

.alert-card__sub {
  display: block;
  font-size: 13px;
  opacity: 0.92;
  margin-top: 1px;
}

.auth-error {
  color: var(--danger);
  font-size: 14px;
  min-height: 20px;
  margin-bottom: 10px;
}

/* Accessibility widget */
.a11y {
  position: fixed;
  right: 0;
  top: 42%;
  z-index: 80;
}

.a11y__toggle {
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 12px 0 0 12px;
  background: var(--brand);
  color: #ffffff;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: -3px 4px 14px rgba(15, 23, 42, 0.28);
}

.a11y__toggle svg {
  width: 24px;
  height: 24px;
}

.a11y__toggle:focus-visible {
  outline: 3px solid #fff;
  outline-offset: -3px;
}

.a11y__panel {
  position: fixed;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: min(260px, 86vw);
  max-height: 84vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.a11y__panel[hidden] {
  display: none;
}

.a11y__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 2px;
}

.a11y__close {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--surface-soft);
  border-radius: 8px;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
}

.a11y__font {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface-soft);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
}

.a11y__steps {
  display: flex;
  align-items: center;
  gap: 8px;
}

.a11y__step {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 8px;
  font-family: inherit;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  color: var(--text);
}

.a11y__val {
  min-width: 46px;
  text-align: center;
  font-weight: 700;
  color: var(--text);
}

.a11y__opt {
  text-align: right;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  padding: 11px 13px;
  cursor: pointer;
  min-height: 44px;
}

.a11y__opt.is-on {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand-strong);
}

.a11y__opt.is-on::after {
  content: ' ✓';
}

.a11y__reset {
  margin-top: 4px;
  border: none;
  background: var(--surface-soft);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  padding: 10px;
  cursor: pointer;
}

/* Accessibility effect modes */
html.a11y-contrast {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-soft: #f2f2f2;
  --text: #000000;
  --muted: #1f2937;
  --faint: #374151;
  --border: #000000;
  --brand: #044640;
  --brand-strong: #022a26;
  --info: #0b3ea8;
  --warning: #8a4b00;
  --danger: #a40000;
  --success: #045c2a;
}

html.a11y-contrast .card,
html.a11y-contrast .panel,
html.a11y-contrast .tag,
html.a11y-contrast .badge {
  border: 1.5px solid #000000;
}

html.a11y-links a,
html.a11y-links .text-link {
  text-decoration: underline !important;
}

html.a11y-links .btn,
html.a11y-links .icon-btn,
html.a11y-links .a11y__opt {
  outline: 2px solid currentColor;
  outline-offset: 1px;
}

html.a11y-readable body {
  line-height: 1.9;
  letter-spacing: 0.02em;
  word-spacing: 0.08em;
}

html.a11y-readable .card,
html.a11y-readable .panel {
  line-height: 1.9;
}

html.a11y-no-motion *,
html.a11y-no-motion *::before,
html.a11y-no-motion *::after {
  animation-duration: 0.001s !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001s !important;
  scroll-behavior: auto !important;
}

/* Mobile maximization */
html,
body {
  overflow-x: hidden;
}

.app-header__inner {
  padding-top: max(14px, env(safe-area-inset-top));
  padding-left: max(18px, env(safe-area-inset-left));
  padding-right: max(18px, env(safe-area-inset-right));
}

.container {
  padding-left: max(18px, env(safe-area-inset-left));
  padding-right: max(18px, env(safe-area-inset-right));
}

@media (max-width: 480px) {
  .brand {
    font-size: 16px;
  }
  .brand__mark {
    width: 30px;
    height: 30px;
  }
  .header-link {
    padding: 7px 10px;
    font-size: 13px;
  }
  .container {
    padding-top: 16px;
  }
  .customer {
    font-size: 18px;
  }
  .a11y__toggle {
    width: 42px;
    height: 42px;
  }
  .fab-home__btn {
    width: 54px;
    height: 54px;
  }
}

@media (max-width: 360px) {
  .header-links {
    gap: 6px;
  }
  .btn {
    padding: 10px 11px;
  }
}

.access-gate {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.97);
}

.access-gate__card {
  width: 100%;
  max-width: 340px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 28px 22px;
  text-align: center;
}

.access-gate__title {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}

.access-gate__text {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.access-gate__input {
  width: 100%;
  font-family: inherit;
  font-size: 18px;
  text-align: center;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  color: var(--text);
  margin-bottom: 12px;
}

.access-gate__input:focus {
  outline: none;
  border-color: var(--brand);
  background: #ffffff;
}

.access-gate__btn {
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  padding: 12px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--brand);
  color: #ffffff;
  cursor: pointer;
}

.access-gate__btn:disabled {
  opacity: 0.6;
}

.access-gate__error {
  margin: 12px 0 0;
  color: var(--danger);
  font-size: 14px;
  font-weight: 600;
}
