/* ============================================================
   SAUCE — Wizard network chrome (M4.4–M4.6)
   Additive stylesheet: save chip, editor-lease banner, conflict
   toast, park prompt bits, viewer-mode lock. Consumes the design
   tokens in colors_and_type.css and matches the chip/banner
   language already used by the wizard and auth screens.
   ============================================================ */

/* ---------- phone / email field validation (plan §5.8) ----------
   Native :invalid feedback for every type="email"/type="tel" field, but
   only once the owner has typed something non-blank (:not(:placeholder-
   shown)) so untouched optional fields never start out looking wrong. */
input[type="email"]:not(:placeholder-shown):invalid,
input[type="tel"]:not(:placeholder-shown):invalid {
  border-color: var(--error) !important;
  background: var(--error-bg);
}

/* ---------- save chip (top bar) ---------- */

.save-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  flex-shrink: 0;
}
.save-chip--idle { display: none; }
.save-chip--saving { color: var(--blue-600); background: var(--info-bg); }
.save-chip--saved { color: var(--success); background: var(--success-bg); }
.save-chip--offline { color: var(--warning); background: var(--warning-bg); }
.save-chip--error { color: var(--error); background: var(--error-bg); }

/* ---------- onboarding drip permission prompt ---------- */

.drip-perm {
  margin: 12px 22px 0;
  border: 1px solid var(--grey-200);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(16, 24, 40, 0.04);
}
.drip-perm-inner {
  display: grid;
  gap: 12px;
  padding: 16px 18px;
}
.drip-perm-copy strong {
  display: block;
  font-size: 15px;
  font-weight: 750;
  color: var(--ink-800);
  margin-bottom: 4px;
}
.drip-perm-copy p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-600);
  font-weight: 500;
}
.drip-perm-form {
  display: grid;
  gap: 10px;
}
.drip-perm-phone {
  display: grid;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 650;
  color: var(--ink-600);
  margin-left: 24px;
}
.drip-perm-phone input {
  height: 38px;
  border: 1px solid var(--grey-300);
  border-radius: 10px;
  padding: 0 12px;
  font-size: 14px;
  color: var(--ink-800);
  background: #fff;
}
.drip-perm-hint {
  margin: 0;
  font-size: 12px;
  color: var(--ink-500);
  font-weight: 500;
}
.drip-perm-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 4px;
}
.drip-perm-skip,
.drip-perm-save {
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.drip-perm-skip {
  border: 1px solid var(--grey-300);
  background: #fff;
  color: var(--ink-700);
}
.drip-perm-save {
  border: none;
  background: var(--red-500);
  color: #fff;
}
.drip-perm-save:disabled { opacity: 0.6; cursor: wait; }
.drip-perm-msg {
  font-size: 12.5px;
  font-weight: 650;
  color: var(--red-600);
}

/* ---------- editor-lease banner (slim, under the top bar) ---------- */

.lease-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 22px;
  background: var(--warning-bg);
  border-bottom: 1px solid #f0e0a8;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-700);
  flex-shrink: 0;
  z-index: 25;
}
.lease-banner sauce-ico { color: var(--warning); }
.lease-banner .lease-takeover {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 14px;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--ink-800);
  color: #fff;
  font-weight: 700;
  font-size: 12.5px;
  cursor: pointer;
}
.lease-banner .lease-takeover:hover { background: var(--ink-900, var(--ink-800)); }

/* ---------- conflict / lease toast ---------- */

.wiz-toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  z-index: 120;
  max-width: min(520px, calc(100vw - 48px));
  background: var(--ink-800);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s var(--ease-out), transform .18s var(--ease-out);
}
.wiz-toast--show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- viewer mode (someone else holds a live editor lease) ----------
   Mutating controls are visually disabled; rail navigation (onNav) stays
   usable — viewers may move around locally while following live. */

.wiz-viewer main input,
.wiz-viewer main select,
.wiz-viewer main textarea {
  pointer-events: none;
  opacity: .55;
}
.wiz-viewer main [data-action]:not([data-action="onNav"]) {
  pointer-events: none;
  opacity: .55;
}
.wiz-viewer header [data-action="onPark"] {
  pointer-events: none;
  opacity: .5;
}

/* ============================================================
   Ops dashboard (plan §7, M7.2) — additive; reuses .state-chip
   (auth.css), .auth-btn / .auth-notice / .auth-error / .sessions-*
   (auth.css) and .wiz-toast (above) rather than inventing parallel
   chip/banner/button languages.
   ============================================================ */

.ops-page { min-height: 100vh; background: var(--grey-100); }
.ops-body { max-width: 1180px; margin: 0 auto; padding: 30px 32px 90px; }

.ops-section-title {
  font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: var(--grey-500); margin: 26px 0 10px;
}

/* ---------- stat tiles ---------- */

.ops-tiles { margin-top: 18px; }
.ops-tile-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}
.ops-tile {
  background: var(--paper); border: 1px solid var(--grey-200); border-radius: var(--radius-md);
  padding: 12px 14px; box-shadow: var(--shadow-xs);
}
.ops-tile-num { font-family: var(--font-display); font-weight: 800; font-size: 22px; color: var(--ink-800); line-height: 1.1; }
.ops-tile-label { font-size: 11.5px; font-weight: 700; color: var(--grey-500); margin-top: 4px; }
.ops-tile--warn { background: var(--warning-bg); border-color: #f0e0a8; }
.ops-tile--warn .ops-tile-num { color: var(--warning); }
.ops-tile-loading {
  display: flex; align-items: center; gap: 8px; grid-column: 1 / -1;
  font-size: 13px; color: var(--grey-500); padding: 10px 2px;
}

/* ---------- step funnel table ---------- */

.ops-steps-wrap { background: var(--paper); border: 1px solid var(--grey-200); border-radius: var(--radius-md); overflow-x: auto; box-shadow: var(--shadow-xs); }
.ops-steps-table { width: 100%; border-collapse: collapse; font-size: 12.5px; white-space: nowrap; }
.ops-steps-table th, .ops-steps-table td { padding: 9px 14px; text-align: left; border-bottom: 1px solid var(--grey-100); }
.ops-steps-table th { font-weight: 800; text-transform: uppercase; letter-spacing: .04em; font-size: 10.5px; color: var(--grey-500); background: var(--grey-50); }
.ops-steps-table tr:last-child td { border-bottom: none; }

/* ---------- filter bar ---------- */

.ops-filterbar { margin-top: 22px; }
.ops-chip-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.ops-chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 14px; font-size: 12.5px; font-weight: 700;
  border: 1.5px solid var(--grey-200); border-radius: var(--radius-pill);
  background: var(--paper); color: var(--ink-600); cursor: pointer;
}
.ops-chip:hover { background: var(--grey-50); }
.ops-chip--active { background: var(--ink-800); border-color: var(--ink-800); color: #fff; }
.ops-chip--quick.ops-chip--active { background: var(--warning); border-color: var(--warning); color: var(--ink-900, var(--ink-800)); }
.ops-search {
  flex: 1; min-width: 220px; height: 32px; padding: 0 14px; font-size: 13px;
  border: 1.5px solid var(--grey-200); border-radius: var(--radius-pill);
  background: var(--paper); color: var(--ink-800); outline: none;
}
.ops-search:focus { border-color: var(--red-400); }

/* ---------- table ---------- */

.ops-tablewrap { margin-top: 14px; background: var(--paper); border: 1px solid var(--grey-200); border-radius: var(--radius-md); overflow-x: auto; box-shadow: var(--shadow-xs); }
.ops-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ops-table th, .ops-table td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--grey-100); }
.ops-table th { font-weight: 800; text-transform: uppercase; letter-spacing: .04em; font-size: 10.5px; color: var(--grey-500); background: var(--grey-50); white-space: nowrap; }
.ops-row { cursor: pointer; }
.ops-row:hover { background: var(--grey-50); }
.ops-row--open { background: var(--info-bg); }
.ops-row:last-child td { border-bottom: none; }
.ops-cell-main { font-weight: 700; color: var(--ink-800); }
.ops-cell-sub { font-size: 11.5px; color: var(--grey-500); margin-top: 2px; font-weight: 600; }
.ops-cell-center { text-align: center; }
/* Billing bank table: pin the action column to content width and
   right-align so "Bank account" sits flush with Connect bank. */
.ops-table--bank td { vertical-align: middle; }
.ops-table--bank .ops-cell-actions { width: 1%; text-align: right; }
.ops-table--bank th.ops-cell-actions { white-space: nowrap; }
.ops-cell-progress { min-width: 110px; }
.ops-muted { color: var(--grey-400); }

.ops-bar { height: 6px; width: 100%; max-width: 110px; background: var(--grey-100); border-radius: var(--radius-pill); overflow: hidden; }
.ops-bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--red-500), var(--red-400)); border-radius: var(--radius-pill); }

.ops-flag {
  display: inline-flex; align-items: center; gap: 5px; margin-top: 5px;
  font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: var(--radius-pill);
}
.ops-flag--wait { color: var(--warning); background: var(--warning-bg); }
.ops-flag--stuck { color: #fff; background: var(--warning); }
.ops-flag--parked { color: var(--ink-500); background: var(--grey-100); }
.ops-flag--failed { color: var(--error); background: var(--error-bg); }

.ops-subtask-badge {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  min-width: 22px; height: 22px; padding: 0 7px; font-size: 11.5px; font-weight: 800;
  color: var(--blue-600); background: var(--info-bg); border-radius: var(--radius-pill);
}

/* ---------- row drawer (side panel) ---------- */

.ops-drawer-scrim {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(22, 29, 38, .45);
  display: flex; justify-content: flex-end;
  animation: fadeUp .18s ease both;
}
.ops-drawer {
  width: 480px; max-width: 100%; height: 100%; overflow-y: auto;
  background: var(--paper); box-shadow: var(--shadow-xl);
  padding: 22px 24px 90px; display: flex; flex-direction: column; gap: 14px;
}
.ops-drawer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.ops-drawer-title { font-family: var(--font-display); font-weight: 800; font-size: 19px; color: var(--ink-800); }
.ops-icon-btn {
  display: flex; align-items: center; justify-content: center; width: 32px; height: 32px;
  border: none; border-radius: var(--radius-sm); background: var(--grey-100); color: var(--ink-600); cursor: pointer;
}
.ops-icon-btn:hover { background: var(--grey-200); }
.ops-drawer-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; font-size: 13px; color: var(--ink-800); }

.ops-drawer-banner {
  display: flex; align-items: flex-start; gap: 9px; font-size: 13px; font-weight: 600;
  padding: 11px 14px; border-radius: var(--radius-md);
}
.ops-drawer-banner--parked { color: var(--ink-700); background: var(--grey-100); border: 1px solid var(--grey-200); }

.ops-drawer-section-title {
  font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  color: var(--grey-500); margin-bottom: 8px;
}
.ops-drawer-section { border-top: 1px solid var(--grey-100); padding-top: 14px; }

.ops-rail-group { margin-bottom: 14px; }
.ops-rail-group-label { display: flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; color: var(--ink-600); margin-bottom: 6px; }
.ops-rail-item { display: flex; align-items: center; gap: 9px; padding: 5px 4px; font-size: 13px; color: var(--ink-700); }
.ops-rail-dot { display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: var(--radius-xs); flex-shrink: 0; }
.ops-rail-label { flex: 1; }
.ops-rail-state { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; }

.ops-audit-item { padding: 8px 0; border-bottom: 1px solid var(--grey-100); font-size: 12.5px; }
.ops-audit-item:last-child { border-bottom: none; }
.ops-audit-actor { font-weight: 700; color: var(--ink-800); }
.ops-audit-action { color: var(--ink-600); }

.ops-subtask-item { display: flex; align-items: flex-start; gap: 10px; padding: 7px 0; font-size: 12.5px; color: var(--ink-700); }

.ops-drawer-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--grey-100); }
.ops-btn-sm { height: 34px; padding: 0 13px; font-size: 12.5px; box-shadow: none; }
.ops-btn--danger { background: var(--error); }
.ops-btn--danger:hover { background: var(--error-text); }

/* ---------- tabs (Sessions / Plans / Go-lives), lean flow §7.6 ---------- */

.ops-tabs { display: flex; gap: 6px; margin: 18px 0 4px; border-bottom: 1px solid var(--grey-200); }
.ops-tab {
  border: none; background: transparent; cursor: pointer;
  padding: 10px 4px; margin-right: 18px;
  font-weight: 700; font-size: 13.5px; color: var(--grey-500);
  border-bottom: 2px solid transparent;
}
.ops-tab:hover { color: var(--ink-700); }
.ops-tab--active { color: var(--ink-800); border-bottom-color: var(--red-500); }

/* ---------- plan form (Plans tab) ---------- */

.ops-plan-form {
  background: var(--paper); border: 1px solid var(--grey-200); border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs); padding: 18px; margin: 14px 0;
}
.ops-plan-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.ops-plan-form-grid .auth-field input[type="checkbox"] { width: 16px; height: 16px; }

/* ---------- portal links (Portals tab, extension plan §6.4) ---------- */

.ops-portal-note {
  font-size: 12px; color: var(--grey-500); background: var(--grey-50);
  border: 1px solid var(--grey-200); border-radius: var(--radius-sm); padding: 10px 12px; margin-bottom: 14px;
}
.ops-portal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.ops-portal-row {
  background: var(--paper); border: 1px solid var(--grey-200); border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs); padding: 16px; display: flex; flex-direction: column; gap: 10px;
}
.ops-portal-row-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ops-portal-row-head .auth-field { font-size: 12.5px; }
.ops-portal-row-head input[type="checkbox"] { width: 16px; height: 16px; }
.ops-portal-warning {
  display: flex; align-items: flex-start; gap: 6px; font-size: 11.5px; color: var(--warning);
  background: var(--warning-bg); border-radius: var(--radius-sm); padding: 8px 10px;
}
.ops-portal-advanced summary { cursor: pointer; font-size: 12px; font-weight: 700; color: var(--grey-500); }
.ops-portal-override {
  width: 100%; box-sizing: border-box; margin-top: 8px; font-family: ui-monospace, monospace; font-size: 11.5px;
  border: 1.5px solid var(--grey-200); border-radius: var(--radius-sm); padding: 8px; resize: vertical;
}
.ops-portal-hint { font-size: 11px; color: var(--grey-400); margin-top: 6px; }
.ops-portal-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 2px; }

/* ---------- client setup (session drawer) ---------- */

.ops-store-edit-list { display: flex; flex-direction: column; gap: 12px; }
.ops-store-edit-row {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 12px; align-items: end;
  border: 1px solid var(--grey-100); border-radius: var(--radius-sm); padding: 10px 12px;
}
.ops-store-edit-label { font-size: 12.5px; font-weight: 700; color: var(--ink-800); }

/* ============================================================
   Wizard chrome + mobile layout
   ============================================================ */

.wiz-root {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: var(--grey-100);
}

.wiz-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 18px;
  min-height: 60px;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--grey-200);
  flex-shrink: 0;
  z-index: 40;
}

.wiz-icon-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-md);
  background: var(--paper);
  color: var(--ink-700);
  cursor: pointer;
  flex-shrink: 0;
}
.wiz-icon-btn:hover { background: var(--grey-50); }

.wiz-header-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--grey-200);
  background: var(--paper);
  color: var(--ink-700);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
}
.wiz-header-btn:hover { background: var(--grey-50); }
.wiz-exit-btn { color: var(--ink-600); font-size: 12.5px; padding: 0 12px; }

.wiz-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.wiz-brand img { height: 22px; display: block; }
.wiz-brand-rule { width: 1px; height: 22px; background: var(--grey-200); }
.wiz-brand-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--ink-700);
  letter-spacing: -0.01em;
}

.wiz-rest-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 14px;
  background: var(--grey-50);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-pill);
  min-width: 0;
  max-width: 240px;
}
.wiz-rest-pill span {
  font-weight: 700;
  font-size: 13px;
  color: var(--ink-800);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wiz-staff-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--grey-500);
  font-weight: 600;
  white-space: nowrap;
}
.wiz-header-spacer { flex: 1; min-width: 8px; }

.wiz-body {
  display: flex;
  flex: 1;
  min-height: 0;
  position: relative;
}

.wiz-nav-scrim {
  display: none;
}

.wiz-rail {
  width: 288px;
  flex-shrink: 0;
  background: var(--paper);
  border-right: 1px solid var(--grey-200);
  overflow-y: auto;
  padding: 20px 14px 40px;
  z-index: 35;
}

.wiz-rail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 8px 8px;
}
.wiz-rail-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--grey-500);
}
.wiz-nav-close { display: none; margin-left: auto; }

.wiz-progress {
  height: 8px;
  background: var(--grey-100);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin: 0 8px 20px;
}
.wiz-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--red-500), var(--red-400));
  border-radius: var(--radius-pill);
  transition: width .4s var(--ease-out);
}
.wiz-rail-block { margin-bottom: 6px; }

.wiz-main {
  flex: 1;
  overflow-y: auto;
  background: var(--grey-100);
  -webkit-overflow-scrolling: touch;
}
.wiz-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 38px 40px 120px;
}

.wiz-step-head { margin-bottom: 26px; }
.wiz-step-eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--red-500);
  margin-bottom: 10px;
}
.wiz-step-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 32px;
  letter-spacing: -0.02em;
  color: var(--ink-800);
  margin: 0 0 8px;
  line-height: 1.1;
}
.wiz-step-sub {
  font-family: var(--font-text);
  font-size: 16.5px;
  line-height: 1.55;
  color: var(--ink-600);
  margin: 0;
  max-width: 62ch;
}

.wiz-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid var(--grey-200);
}
.wiz-footer-spacer { flex: 1; min-width: 8px; }

.wiz-grid {
  display: grid;
  gap: 14px 16px;
  min-width: 0;
}
.wiz-grid--2 { grid-template-columns: 1fr 1fr; }
.wiz-grid--3 { grid-template-columns: 1fr 1fr 1fr; }
.wiz-grid-span { grid-column: 1 / -1; min-width: 0; }

/* ---------- tablet / phone ---------- */

@media (max-width: 960px) {
  .wiz-nav-toggle { display: inline-flex; }
  .wiz-brand-rule,
  .wiz-brand-title { display: none; }
  .wiz-staff-badge span { display: none; }
  .wiz-rest-pill { max-width: 160px; }

  .wiz-nav-scrim {
    display: block;
    position: absolute;
    inset: 0;
    background: rgba(22, 29, 38, .45);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s var(--ease-out);
    z-index: 30;
  }
  .wiz-nav-open .wiz-nav-scrim {
    opacity: 1;
    pointer-events: auto;
  }

  .wiz-rail {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(320px, 86vw);
    box-shadow: var(--shadow-xl);
    transform: translateX(-105%);
    transition: transform .22s var(--ease-out);
    border-right: none;
  }
  .wiz-nav-open .wiz-rail { transform: translateX(0); }
  .wiz-nav-close { display: inline-flex; }

  .wiz-content { padding: 28px 22px 100px; }
  .wiz-step-title { font-size: 26px; }
}

@media (max-width: 720px) {
  .wiz-header {
    gap: 8px;
    padding: 0 12px;
    min-height: 56px;
    flex-wrap: nowrap;
  }
  .wiz-header-btn { padding: 0 10px; }
  .wiz-btn-label { display: none; }
  .wiz-rest-pill { padding: 4px 10px; max-width: min(140px, 28vw); }
  .wiz-rest-pill sauce-ico { display: none; }

  .wiz-content { padding: 22px 16px 110px; }
  .wiz-step-title { font-size: 24px; }
  .wiz-step-sub { font-size: 15px; }
  .wiz-step-head { margin-bottom: 20px; }

  .wiz-grid--2,
  .wiz-grid--3 { grid-template-columns: 1fr; }

  .wiz-inline-note {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
  .wiz-choice-row {
    flex-direction: column !important;
  }
  .wiz-datetime-row {
    max-width: none !important;
    width: 100%;
  }

  .wiz-footer {
    gap: 10px;
  }
  .wiz-footer-spacer { display: none; }
  .wiz-footer [data-action="onNext"] {
    flex: 1 1 100%;
    justify-content: center;
  }
  .wiz-footer [data-action="onBack"],
  .wiz-footer [data-action="onPark"] {
    flex: 1;
    justify-content: center;
  }

  .lease-banner {
    flex-wrap: wrap;
    padding: 10px 14px;
    gap: 8px;
  }
  .lease-banner .lease-takeover {
    margin-left: 0;
    width: 100%;
    justify-content: center;
  }

  .ops-body { padding: 20px 16px 80px; }
  .ops-plan-form-grid { grid-template-columns: 1fr; }
  .ops-store-edit-row { grid-template-columns: 1fr; }
  .ops-drawer-meta { grid-template-columns: 1fr; }
  .ops-portal-grid { grid-template-columns: 1fr; }
  .ops-tabs { overflow-x: auto; }

  /* Platform cards: logo by title; scan copy left of QR; Send + Open on one row */
  .platform-card { padding: 16px !important; }
  .platform-card-title { align-items: center !important; }
  .platform-card-title-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
  .platform-card-portal { display: none; }
  .platform-card-logo {
    display: block !important;
    width: 28px;
    height: 28px;
  }
  .platform-card-side {
    flex: 1 1 100% !important;
    width: 100% !important;
  }
  .platform-scan {
    flex-direction: row !important;
    flex-wrap: nowrap;
    align-items: center !important;
    justify-content: space-between;
    gap: 10px 12px !important;
    text-align: left !important;
  }
  .platform-scan-logo { display: none !important; }
  .platform-scan-copy {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    flex: 1 1 0;
    min-width: 0;
  }
  .platform-scan-qr {
    flex: 0 0 auto;
    width: 88px;
    height: 88px;
  }
  .platform-side-actions {
    flex-direction: row !important;
    align-items: stretch;
    gap: 8px !important;
  }
  .platform-side-actions > * {
    flex: 1 1 0;
    width: auto !important;
    min-width: 0;
    font-size: 12px !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
  }
}

/* Menu source: square platform cubes — logo + label stacked, no overlay */
.menu-source-cubes {
  display: flex;
  gap: 12px;
}
.menu-source-cube {
  flex: 1;
  min-width: 0;
  aspect-ratio: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 28px 12px 14px;
  border-radius: var(--radius-lg);
  cursor: pointer;
  background: var(--paper);
  border: 1.5px solid var(--grey-400);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.menu-source-cube:hover {
  border-color: var(--ink-700);
}
.menu-source-cube.is-selected {
  border-color: var(--red-500);
  background: var(--red-50);
  box-shadow: 0 0 0 1px var(--red-500), var(--shadow-sm);
}
.menu-source-radio {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--grey-300);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  flex: 0 0 auto;
}
.menu-source-cube.is-selected .menu-source-radio {
  border-color: var(--red-500);
}
.menu-source-radio-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red-500);
}
.menu-source-logo {
  position: relative;
  width: 52%;
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  box-shadow: 0 1px 2px rgba(35, 45, 58, 0.08);
}
.menu-source-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.menu-source-name {
  position: relative;
  z-index: 1;
  font-weight: 700;
  font-size: 13px;
  color: var(--ink-800);
  text-align: center;
  line-height: 1.2;
  max-width: 100%;
  padding: 0 2px;
}

@media (max-width: 420px) {
  .wiz-rest-pill { display: none; }
  .save-chip { display: none !important; }

  .menu-source-cubes { gap: 8px; }
  .menu-source-cube {
    gap: 8px;
    padding: 24px 8px 12px;
  }
  .menu-source-radio {
    top: 8px;
    left: 8px;
    width: 16px;
    height: 16px;
  }
  .menu-source-radio-dot {
    width: 7px;
    height: 7px;
  }
  .menu-source-logo { width: 48%; }
  .menu-source-name { font-size: 11.5px; }
}
