:root {
  --bg: #fbf8f5;
  --surface: #ffffff;
  --surface-soft: #f7f1ee;
  --text: #2b2420;
  --muted: #7d6f68;
  --border: #e4d8d3;
  --rose: #8c6065;
  --rose-dark: #7f575b;
  --olive: #8e8a59;
  --olive-soft: #f3f0df;
  --green: #177245;
  --amber: #9a6200;
  --red: #b42318;
  --focus: rgba(140, 96, 101, 0.24);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(169, 120, 125, 0.1), transparent 30vw),
    linear-gradient(180deg, #fffdfa 0%, var(--bg) 46%, #f6efeb 100%);
  color: var(--text);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  background: var(--rose);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

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

.auth-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
}

.auth-panel {
  width: min(100%, 380px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 18px 48px rgba(74, 51, 47, 0.14);
}

.brand-mark {
  display: block;
  object-fit: cover;
  border: 1px solid rgba(169, 120, 125, 0.28);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 8px 22px rgba(74, 51, 47, 0.12);
}

.brand-mark--login {
  width: 72px;
  height: 72px;
  margin-bottom: 16px;
}

.brand-mark--topbar {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.auth-panel h1,
.topbar h1,
.form-section h2 {
  margin: 0;
}

.auth-panel p {
  margin: 6px 0 22px;
  color: var(--muted);
}

.auth-panel label,
.order-form label {
  display: grid;
  gap: 7px;
  font-weight: 650;
}

.edit-audit-info {
  width: min(100%, 920px);
  margin: 0 auto 8px;
  padding: 8px 12px;
  color: #666;
  font-size: .85rem;
  line-height: 1.45;
  word-break: break-word;
}

.edit-audit-info.edited-by-other {
  background: #FFF7ED;
  border: 1px solid #FED7AA;
  border-radius: 8px;
  color: #9A3412;
}

.auth-panel input,
.order-form input,
.order-form select,
.order-form textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  padding: 12px 13px;
  font-size: 16px;
  outline: none;
}

.auth-panel input:focus,
.order-form input:focus,
.order-form select:focus,
.order-form textarea:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 4px var(--focus);
}

.auth-panel button {
  width: 100%;
  margin-top: 18px;
}

.auth-error {
  min-height: 20px;
  margin-top: 12px;
  color: var(--red);
  font-weight: 650;
}

.app {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  background: rgba(251, 248, 245, 0.94);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.eyebrow {
  display: block;
  color: var(--olive);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.topbar h1 {
  font-size: 24px;
}

.btn-ghost,
.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

/* ─── Tab bar ─────────────────────────────────────────────────────────────── */

.tab-bar {
  position: sticky;
  top: 73px;
  z-index: 9;
  display: flex;
  background: rgba(251, 248, 245, 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
}

.tab {
  flex: 1;
  min-height: 44px;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 10px 4px;
}

.tab.active {
  color: var(--rose-dark);
  border-bottom-color: var(--olive);
}

.tab-content {
  /* handled by [hidden] */
}

.order-form {
  width: min(100%, 560px);
  margin: 0 auto;
  padding: 12px 12px 96px;
}

.form-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: 0 8px 24px rgba(74, 51, 47, 0.04);
}

.form-section h2 {
  margin-bottom: 12px;
  font-size: 15px;
  color: var(--rose);
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.section-title-row h2 {
  margin-bottom: 0;
}

.btn-inline {
  min-height: 40px;
  padding: 8px 12px;
  font-size: 13px;
}

.section-hint {
  margin: -8px 0 14px;
  color: var(--muted);
  font-size: 14px;
}

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

.field-grid .wide,
.order-form label.wide {
  grid-column: 1 / -1;
}

.order-form label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.field-hint {
  min-height: 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.warning-hint {
  color: var(--amber);
  font-weight: 650;
}

.error-hint {
  color: var(--red);
  font-weight: 650;
}

.check-row {
  min-height: 48px;
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
}

.check-row input {
  width: 22px;
  min-height: 22px;
  height: 22px;
  accent-color: var(--rose);
}

.invalid {
  border-color: var(--red) !important;
  box-shadow: 0 0 0 4px rgba(180, 35, 24, 0.12) !important;
}

.actions {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(251, 248, 245, 0.96);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(14px);
}

/* ─── Guided quote cart ───────────────────────────────────────────────────── */

.guided-section {
  background: #fffefc;
  padding: 0;
  overflow: hidden;
}

.guided-section .section-title-row {
  padding: 12px 14px;
  margin-bottom: 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.guided-section #guided-config-warning,
.guided-section .guided-cart-items,
.guided-section .guided-cart-summary {
  margin-left: 14px;
  margin-right: 14px;
}

.guided-section .guided-cart-items {
  margin-top: 14px;
}

.guided-section .guided-cart-summary {
  margin-bottom: 14px;
}

.guided-cart-items {
  display: grid;
  gap: 12px;
}

.guided-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0;
  background: #fff;
  overflow: hidden;
}

.guided-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 0;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.guided-item-title {
  font-size: 14px;
  font-weight: 800;
}

.guided-remove {
  min-height: 36px;
  padding: 6px 10px;
  background: #fff1ef;
  color: var(--red);
  border: 1px solid rgba(180, 35, 24, 0.28);
  font-size: 12px;
}

.guided-fields {
  display: grid;
  gap: 14px;
  padding: 14px;
}

.guided-category-group {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.guided-category-group legend {
  margin-bottom: 8px;
  color: var(--text);
  font-size: 14px;
  font-weight: 650;
}

.guided-category-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.guided-category-option {
  display: grid !important;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 9px !important;
  min-width: 0;
  min-height: 62px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.guided-category-option.selected {
  border-color: rgba(140, 96, 101, 0.64);
  background: #fff8f6;
  box-shadow: 0 0 0 3px var(--focus);
}

.guided-category-option input {
  width: 18px;
  min-height: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--rose);
}

.guided-category-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.guided-category-title {
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.guided-category-description {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.guided-flavor-list {
  display: grid;
  gap: 8px;
}

.guided-flavor-list > span {
  color: var(--text);
  font-size: 14px;
}

.guided-flavor-option {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  padding: 4px 0;
}

.guided-flavor-option input {
  width: 18px;
  min-height: 18px;
  height: 18px;
  accent-color: var(--rose);
}

.guided-price-hint {
  color: var(--olive);
  font-weight: 750;
}

.guided-alert-list {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.guided-alert {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 8px;
  align-items: start;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 13px;
  line-height: 1.35;
}

.guided-alert-info {
  background: #f3f6fb;
  border-color: #c9d5e8;
  color: #334155;
}

.guided-alert-warning {
  background: #fff8e6;
  border-color: #e8ca75;
  color: #6f4e00;
}

.guided-alert-critical {
  background: #fff1ef;
  border-color: rgba(180, 35, 24, 0.32);
  color: var(--red);
}

.guided-alert-icon {
  font-weight: 900;
  text-align: center;
}

.guided-alert-message {
  font-weight: 750;
}

.guided-alert-dismiss {
  grid-column: 2;
  justify-self: start;
  min-height: 34px;
  padding: 6px 10px;
  font-size: 12px;
  background: #fff;
  color: inherit;
  border: 1px solid currentColor;
}

.guided-cart-summary {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  font-weight: 700;
  display: grid;
  gap: 6px;
}

.guided-cart-summary div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: baseline;
}

.guided-cart-summary div strong {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.guided-message-section {
  background: #fffefc;
}

.guided-message-actions {
  display: flex;
  gap: 8px;
}

.guided-message-text {
  width: 100%;
  min-height: 260px;
  resize: vertical;
  white-space: pre-wrap;
  font-family: inherit;
  line-height: 1.45;
  background: #fff;
}

@media (max-width: 420px) {
  .field-grid {
    grid-template-columns: 1fr;
  }

  .guided-category-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-title-row {
    align-items: stretch;
    flex-direction: column;
  }

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

/* ─── Week nav ─────────────────────────────────────────────────────────────── */

.week-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 16px;
}

.week-label {
  font-weight: 700;
  font-size: 15px;
  min-width: 120px;
  text-align: center;
}

.btn-sm {
  min-height: 44px;
  padding: 6px 14px;
  font-size: 18px;
}

.btn-today {
  min-height: 44px;
  padding: 6px 12px;
  font-size: 13px;
}

.week-financial-summary {
  width: min(calc(100% - 32px), 920px);
  margin: 0 auto 12px;
  padding: 12px 14px;
  border: 1px solid rgba(142, 138, 89, 0.34);
  border-radius: 8px;
  background: var(--olive-soft);
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
}

.action-block {
  width: min(calc(100% - 32px), 920px);
  margin: 0 auto 14px;
  padding: 12px;
  border: 1px solid rgba(154, 98, 0, 0.24);
  border-radius: 8px;
  background: #fff8ea;
  box-shadow: 0 8px 24px rgba(74, 51, 47, 0.04);
}

#open-balances-block {
  border-color: rgba(180, 35, 24, 0.22);
  background: #fff1ef;
}

.action-block-header {
  display: grid;
  gap: 3px;
  margin-bottom: 10px;
}

.action-block-header h2 {
  margin: 0;
  font-size: 16px;
}

.action-block-header p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.action-block-list {
  display: grid;
  gap: 8px;
}

.action-block .order-card {
  margin-bottom: 0;
}

/* ─── Orders list ─────────────────────────────────────────────────────────── */

.orders-list {
  width: min(100%, 920px);
  margin: 0 auto;
  padding: 0 16px 96px;
}

.day-header {
  margin: 18px 0 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  text-transform: capitalize;
}

.day-header:first-child {
  margin-top: 4px;
}

.day-header--today {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 5px 9px;
  border-radius: 6px;
  background: var(--olive-soft);
  color: var(--olive);
}

.order-card {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 8px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(74, 51, 47, 0.04);
  -webkit-tap-highlight-color: transparent;
}

.order-card:active {
  background: var(--surface-soft);
}

.order-card--paid {
  border-left: 3px solid var(--green);
}

.order-card--partial {
  border-left: 3px solid var(--amber);
}

.order-card--unpaid {
  border-left: 3px solid var(--red);
}

.card-body {
  flex: 1;
  min-width: 0;
}

.card-name {
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-produto {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-pickup {
  margin-top: 4px;
  color: var(--olive);
  font-size: 12px;
  font-weight: 800;
}

.card-money {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

.card-pending {
  margin-top: 2px;
  color: var(--amber);
  font-size: 12px;
  font-weight: 750;
}

.card-badge {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  background: #e8e4e0;
  color: var(--muted);
}

.card-badge.lead {
  background: #f0ece8;
  color: var(--amber);
}

.card-badge.chateau {
  align-self: flex-start;
  background: #e0f2f1;
  color: #0f766e;
}

.pay-badge--paid {
  background: #e6f4ea;
  color: var(--green);
}

.pay-badge--partial {
  background: #fff8ea;
  color: var(--amber);
}

.pay-badge--unpaid {
  background: #fce8e6;
  color: var(--red);
}

.payment-type--credit {
  background: #fff1c2;
  color: var(--amber);
}

.payment-type--transfer {
  background: #eee9e4;
  color: var(--muted);
}

.card-cta {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--rose);
  min-height: 44px;
  padding: 8px 12px;
  background: transparent;
  border: 1px solid var(--rose);
  border-radius: 6px;
}

.card-message-actions {
  flex-basis: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 2px;
}

.card-message-btn {
  flex: 1 1 132px;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface-soft);
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}

/* ─── Quick signal ────────────────────────────────────────────────────────── */

.card-signal-btn {
  flex-shrink: 0;
  min-height: 44px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--amber);
  background: transparent;
  border: 1px solid var(--amber);
  border-radius: 6px;
}

.card-received-btn {
  flex-shrink: 0;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--green);
  border-radius: 6px;
  background: var(--green);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.signal-modal {
  flex-basis: 100%;
  display: grid;
  gap: 10px;
  padding: 12px 0 0;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}

.signal-label {
  display: grid;
  gap: 5px;
  font-weight: 650;
  font-size: 14px;
}

.signal-input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  padding: 10px 13px;
  font-size: 16px;
  outline: none;
}

.signal-input:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 4px var(--focus);
}

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

.signal-confirm {
  min-height: 44px;
  font-size: 14px;
  background: var(--green);
}

.signal-cancel {
  min-height: 44px;
  font-size: 14px;
}

/* ─── Cancel order ───────────────────────────────────────────────────────── */

.cancel-section {
  margin-top: 18px;
  border-color: rgba(180, 35, 24, 0.22);
  background: #fffafa;
}

.btn-danger-outline,
.btn-danger {
  width: 100%;
  min-height: 48px;
}

.btn-danger-outline {
  border: 1px solid var(--red);
  background: #fff;
  color: var(--red);
}

.btn-danger {
  background: var(--red);
  color: #fff;
}

.cancel-panel {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(180, 35, 24, 0.2);
}

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

.empty-state {
  text-align: center;
  color: var(--muted);
  padding: 40px 16px;
  font-size: 15px;
}

/* ─── Ops dashboard ──────────────────────────────────────────────────────── */

.ops-container {
  width: min(100%, 920px);
  margin: 0 auto;
  padding: 16px;
}

.friday-load {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 14px;
  box-shadow: 0 8px 24px rgba(74, 51, 47, 0.04);
}

.friday-load-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.friday-load-label {
  font-weight: 700;
  font-size: 15px;
}

.friday-load-bar {
  height: 8px;
  background: #e8e4e0;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}

.friday-load-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s ease;
}

.friday-load-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}

.friday-load--baixo { border-left: 3px solid var(--green); }
.friday-load--baixo .friday-load-fill { background: var(--green); }
.friday-load--baixo .friday-load-badge { background: #e6f4ea; color: var(--green); }

.friday-load--medio { border-left: 3px solid var(--amber); }
.friday-load--medio .friday-load-fill { background: var(--amber); }
.friday-load--medio .friday-load-badge { background: #fff8ea; color: var(--amber); }

.friday-load--alto { border-left: 3px solid #e65100; }
.friday-load--alto .friday-load-fill { background: #e65100; }
.friday-load--alto .friday-load-badge { background: #fff3e0; color: #e65100; }

.friday-load--critico { border-left: 3px solid var(--red); }
.friday-load--critico .friday-load-fill { background: var(--red); }
.friday-load--critico .friday-load-badge { background: #fce8e6; color: var(--red); }

/* Accordion */

.accordion-group {
  display: grid;
  gap: 8px;
}

.accordion {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(74, 51, 47, 0.04);
  overflow: hidden;
}

.accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 12px 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
}

.accordion-arrow {
  font-size: 14px;
  color: var(--muted);
  transition: transform 0.2s ease;
}

.accordion.open .accordion-arrow {
  transform: rotate(90deg);
}

.accordion-body {
  padding: 0 14px 14px;
}

/* Dashboard cards */

.ops-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-bottom: 6px;
  font-size: 13px;
}

.ops-card:last-child {
  margin-bottom: 0;
}

.ops-card-body {
  flex: 1;
  min-width: 0;
}

.ops-card-name {
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ops-card-detail {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ops-card-money {
  font-weight: 800;
  font-size: 12px;
}

.ops-whatsapp-btn {
  flex-shrink: 0;
  min-height: 36px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  background: #25d366;
  color: #fff;
  border: 0;
  border-radius: 6px;
}

.ops-section-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  margin: 10px 0 6px;
  text-transform: uppercase;
}

.ops-section-label:first-child {
  margin-top: 0;
}

.ops-empty {
  color: var(--muted);
  font-size: 13px;
  padding: 8px 0;
}

.funnel-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 800;
}

/* ─── Toast ─────────────────────────────────────────────────────────────── */

.toast {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 76px;
  z-index: 50;
  padding: 14px 16px;
  border-radius: 8px;
  background: #2b2521;
  color: #fff;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.success {
  background: var(--green);
}

.toast.warning {
  background: var(--amber);
}

.toast.error {
  background: var(--red);
}

[hidden] {
  display: none !important;
}

@media (min-width: 768px) {
  .topbar {
    padding: 18px 28px;
  }

  .order-form {
    padding: 26px 28px 120px;
  }

  .field-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wide {
    grid-column: 1 / -1;
  }

  .actions {
    width: min(100%, 920px);
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    grid-template-columns: 220px 180px;
    justify-content: end;
    border: 1px solid var(--border);
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
  }

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

  .toast {
    left: auto;
    right: 24px;
    bottom: 24px;
    max-width: 360px;
  }
}
