:root {
  --sidebar: #1e2128;
  --sidebar-text: #f1f2f4;
  --orange: #f47b20;
  --orange-btn: #f36b12;
  --orange-hover: #e05f0a;
  --orange-soft: #fff5ee;
  --orange-border: #fde4d2;
  --bg: #f4f5f7;
  --card: #ffffff;
  --text: #15171c;
  --text-2: #3f434b;
  --muted: #6b7079;
  --border: #d3d7de;
  --border-soft: #e6e8ec;
  --step-grey: #d5d8dd;
  --field-bg: #ffffff;
  --period-bg: #f1f2f4;
  --addon-bg: #f4f5f7;
  --danger: #e5341d;
  --radius: 6px;
}

* { box-sizing: border-box; }

html, body { margin: 0; height: 100%; }

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  display: flex;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Sidebar ---------- */
.sidebar {
  width: 260px;
  flex-shrink: 0;
  background: var(--sidebar);
  color: var(--sidebar-text);
  display: flex;
  flex-direction: column;
  padding: 52px 14px 70px;
  position: sticky;
  top: 0;
  height: 100vh;
}


.nav { display: flex; flex-direction: column; gap: 9px; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 21px;
  height: 52px;
  padding: 0 16px;
  border-radius: 6px;
  color: var(--sidebar-text);
  text-decoration: none;
  font-size: 16.5px;
  font-weight: 400;
  transition: background .15s;
}
.nav-item:hover { background: rgba(255,255,255,.06); }
.nav-item.active { background: var(--orange); color: #1a1a1a; font-weight: 500; }
.nav-item.active:hover { background: var(--orange); }
.nav-icon { width: 29px; height: 29px; flex-shrink: 0; }
.nav-item.active .nav-icon { width: 25px; height: 25px; margin: 0 2px; }

.sidebar-footer {
  margin-top: auto;
  border-top: 1px solid #343842;
  padding-top: 24px;
}

/* ---------- Main ---------- */
.main {
  flex: 1;
  min-width: 0;
  padding: 16px 29px 46px 39px;
}

h1 {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.6px;
  margin: 0;
  line-height: 1.25;
}
.lead[hidden] + .card { margin-top: 30px; }
.lead { font-size: 16px; color: var(--text-2); margin: 3px 0 18px; }

.card {
  background: var(--card);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(17, 24, 39, .05);
  padding: 12px 21px 32px;
}

/* ---------- Stepper ---------- */
.stepper {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  height: 47px;
}
.step {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 13.5px;
  font-weight: 500;
  color: #5d626b;
  white-space: nowrap;
}
.step.active, .step.done { color: var(--text); }
.step-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--step-grey);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  display: grid;
  place-items: center;
}
.step.active .step-num, .step.done .step-num { background: var(--orange); }
.step-line {
  width: 60px;
  height: 1px;
  background: #cfd2d8;
  margin: 0 22px 0 30px;
}

/* ---------- Quick paste ---------- */
.quick-paste {
  background: var(--orange-soft);
  border: 1px solid var(--orange-border);
  border-radius: 6px;
  margin-bottom: 9px;
}
.qp-head {
  all: unset;
  box-sizing: border-box;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 21px;
  padding: 13px 22px 13px 18px;
  cursor: pointer;
}
.qp-head:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; border-radius: 6px; }
.qp-icon { width: 31px; height: 35px; flex-shrink: 0; }
.qp-text { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.qp-title { font-size: 17px; font-weight: 700; color: var(--text); }
.qp-sub { font-size: 13.5px; color: var(--text-2); }
.qp-chevron { width: 18px; height: 18px; color: #444; transition: transform .2s; }
.quick-paste.open .qp-chevron { transform: rotate(180deg); }

.qp-body { display: none; padding: 0 18px 16px; }
.quick-paste.open .qp-body { display: block; }
.qp-body textarea {
  width: 100%;
  font: inherit;
  font-size: 14px;
  border: 1px solid var(--orange-border);
  border-radius: var(--radius);
  padding: 12px 14px;
  resize: vertical;
  background: #fff;
  color: var(--text);
}
.qp-body textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(244,123,32,.15); }
.qp-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 10px; }
.qp-status { margin-right: auto; font-size: 13px; color: var(--text-2); }
.qp-status.warn { color: var(--danger); }

/* ---------- Panels / sections ---------- */
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }

.panel {
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 14px 16px 20px;
}

h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.4px;
  margin: 0 0 10px;
}

.block { padding: 0 8px 0 14px; margin-top: 23px; }
.divider { border: 0; border-top: 1px solid var(--border-soft); margin: 22px 9px 0 14px; }
.divider + .block { margin-top: 17px; }

.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-vehicle { grid-template-columns: 257fr 225fr 240fr 162fr 183fr; gap: 19px; }

.field { display: flex; flex-direction: column; min-width: 0; margin-bottom: 17px; }
.block .field { margin-bottom: 0; }
.panel .grid:last-child .field { margin-bottom: 0; }

.label {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}
.label i { font-style: normal; color: var(--danger); }
.sub-label { font-size: 14.5px; font-weight: 500; color: var(--text); margin-bottom: 7px; }

input, select {
  font: inherit;
  font-size: 14.5px;
  color: var(--text);
  height: 43px;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--field-bg);
  padding: 0 15px;
  transition: border-color .15s, box-shadow .15s;
}
input::placeholder { color: var(--muted); opacity: 1; }
input:focus, select:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(244,123,32,.15);
}
input.upper { text-transform: uppercase; }
input.upper::placeholder { text-transform: none; }

select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%23444' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  background-size: 17px;
}
select:invalid { color: var(--muted); }
select option { color: var(--text); }
select:disabled { cursor: not-allowed; }

.invalid input, input.invalid, select.invalid { border-color: var(--danger); }
.invalid input:focus, input.invalid:focus, select.invalid:focus { box-shadow: 0 0 0 3px rgba(229,52,29,.15); }

/* Inputs with icons */
.input-icon { position: relative; flex: 1; }
.input-icon .icon-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  background: none;
  color: #4b5059;
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 1;
}
.input-icon span.icon-btn { cursor: default; }
.input-icon .icon-btn svg { width: 22px; height: 22px; }
.input-icon.right .icon-btn { right: 11px; }
.input-icon.right input { padding-right: 44px; }
.input-icon.left .icon-btn { left: 12px; }
.input-icon.left input { padding-left: 46px; }
.native-picker {
  position: absolute;
  inset: auto 0 0 auto;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  border: 0;
  padding: 0;
}

/* Phone */
.phone {
  display: flex;
  align-items: center;
  height: 43px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--field-bg);
  transition: border-color .15s, box-shadow .15s;
}
.phone:focus-within { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(244,123,32,.15); }
.phone.invalid { border-color: var(--danger); }
.phone input { border: 0; height: 100%; padding-left: 8px; background: transparent; }
.phone input:focus { box-shadow: none; }
.phone-cc {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 100%;
  border: 0;
  background: none;
  padding: 0 4px 0 15px;
  cursor: pointer;
  color: #333;
}
.flag { width: 25px; height: 15px; border-radius: 1px; }
.chev { width: 15px; height: 15px; }

/* Cover */
.cover-row {
  display: grid;
  grid-template-columns: minmax(0, 750fr) 179fr 178fr;
  gap: 19px;
  align-items: end;
  padding-right: 6px;
}
.cover-period { margin: 0; }
.period-box {
  background: var(--period-bg);
  border-radius: 6px;
  padding: 10px 17px 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
.period-col { display: flex; flex-direction: column; min-width: 0; }
.period-inputs { display: flex; gap: 10px; }
.period-inputs .input-icon:first-child { flex: 187; }
.period-inputs .input-icon.time { flex: 148; }
.period-inputs input { height: 44px; }

.field.money { margin-bottom: 27px; }
.addon-input {
  display: flex;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--field-bg);
  transition: border-color .15s, box-shadow .15s;
}
.addon-input:focus-within { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(244,123,32,.15); }
.addon {
  width: 41px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: var(--addon-bg);
  border-right: 1px solid var(--border);
  font-size: 16px;
  color: #333;
}
.addon-input input { border: 0; height: 100%; border-radius: 0; padding-left: 12px; }
.addon-input input:focus { box-shadow: none; }

/* Footer / buttons */
.form-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  margin-top: 17px;
  padding-right: 2px;
}
.form-error { font-size: 13.5px; color: var(--danger); }
.form-error.ok { color: #1a7f37; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 4px;
  background: var(--orange-btn);
  color: #fff;
  font: inherit;
  font-size: 15.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}
.btn-primary:hover { background: var(--orange-hover); }
.btn-primary svg { width: 20px; height: 20px; }
.btn-primary.btn-sm { height: 36px; font-size: 14px; padding: 0 16px; }

.btn-secondary {
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #fff;
  font: inherit;
  font-size: 14px;
  color: var(--text-2);
  cursor: pointer;
}
.btn-secondary:hover { background: #f7f7f8; }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .grid-vehicle { grid-template-columns: repeat(3, 1fr); }
  .cover-row { grid-template-columns: 1fr 1fr; align-items: start; }
  .cover-period { grid-column: 1 / -1; }
  .field.money { margin-bottom: 0; }
  .step-line { width: 30px; margin: 0 12px; }
}

@media (max-width: 900px) {
  body { flex-direction: column; }
  .sidebar { width: 100%; height: auto; position: static; flex-direction: row; align-items: center; padding: 12px 16px; gap: 12px; flex-wrap: wrap; }
  .nav { flex-direction: row; margin-right: auto; }
  .nav-item { height: 42px; gap: 10px; font-size: 14px; padding: 0 12px; }
  .sidebar-footer { margin: 0; border: 0; padding: 0; }
  .main { padding: 16px; }
  .grid-3, .grid-vehicle { grid-template-columns: 1fr; gap: 0; }
  .grid-vehicle .field { margin-bottom: 17px; }
  .period-box { grid-template-columns: 1fr; gap: 14px; }
  .stepper { flex-wrap: wrap; height: auto; gap: 10px; }
  .step-line { display: none; }
}

/* ---------- Step 2: Choose app version ---------- */
.step-num svg { width: 18px; height: 18px; }

#step2 { padding: 26px 7px 0; }
.inner-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(17, 24, 39, .04), 0 4px 18px rgba(17, 24, 39, .05);
  padding: 34px 36px 40px 44px;
  min-height: 604px;
}
.step-title { font-size: 31px; font-weight: 800; letter-spacing: -0.6px; margin: 0; }
.step-sub { font-size: 19px; color: #5b6070; margin: 8px 0 36px; }
.label-lg { display: block; font-size: 18px; font-weight: 500; margin-bottom: 12px; }

.tier-select { position: relative; }
.tier-trigger {
  all: unset;
  box-sizing: border-box;
  width: 100%;
  height: 57px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px 0 19px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  background: #fff;
  font-size: 19px;
  color: var(--text);
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}
.tier-trigger:hover { border-color: #b9bec7; }
.tier-trigger:focus-visible, .tier-select.open .tier-trigger { border-color: var(--orange); }
.tier-trigger:focus-visible { box-shadow: 0 0 0 3px rgba(244,123,32,.15); }
.tier-select.invalid .tier-trigger { border-color: var(--danger); }
.tier-placeholder { color: var(--muted); }
.tier-chevron { width: 20px; height: 20px; color: #444; transition: transform .2s; }
.tier-select.open .tier-chevron { transform: rotate(180deg); }
.tier-value { display: flex; align-items: center; gap: 12px; }

.tier-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 7px;
  position: absolute;
  left: 0;
  right: 0;
  z-index: 10;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(17, 24, 39, .08);
}
.tier-list:focus { outline: none; }
.tier-option {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 56px;
  padding: 0 18px 0 20px;
  border-radius: 4px;
  font-size: 19px;
  color: var(--text);
  cursor: pointer;
}
.tier-option {
  background: var(--tier-soft);
  color: var(--tier-ink);
  font-weight: 500;
  border-left: 4px solid var(--tier);
  margin-bottom: 6px;
  transition: filter .12s;
}
.tier-option:last-child { margin-bottom: 0; }
.tier-option.active { filter: brightness(.95) saturate(1.3); }
.tier-option[aria-selected="true"] .tier-check { visibility: visible; }
.tier-check { margin-left: auto; width: 20px; height: 20px; color: var(--tier); visibility: hidden; }

.tier-option .tier-dot { box-shadow: none; }
.tier-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--tier);
  box-shadow: 0 0 0 4px var(--tier-soft);
  flex-shrink: 0;
}
.tier-badge {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .4px;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  color: var(--tier-ink);
  background: var(--tier-soft);
}

.tier-error { margin: 10px 0 0; min-height: 1em; }

.step-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 74px;
  padding: 0 7px 0 20px;
}
.step-footer .form-error { flex: 1; text-align: right; }
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  height: 58px;
  padding: 0 36px 0 26px;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  background: #fff;
  font: inherit;
  font-size: 19px;
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
}
.btn-outline:hover { background: #f7f7f8; }
.btn-outline svg { width: 22px; height: 22px; }
.btn-primary.btn-lg { height: 58px; padding: 0 22px; font-size: 19px; font-weight: 500; gap: 14px; }
.btn-primary.btn-lg svg { width: 24px; height: 24px; }

@media (max-width: 900px) {
  #step2 { padding: 16px 0 0; }
  .inner-card { padding: 22px 18px; min-height: 0; }
  .tier-list { position: static; }
  .step-footer { margin-top: 24px; padding: 0; }
}

/* ---------- Step 1: 4-column row ---------- */
.grid-4 { grid-template-columns: repeat(4, 1fr); gap: 18px; }

/* ---------- Step 3: Review ---------- */
#step3 { padding-top: 10px; }
.review { display: flex; flex-direction: column; gap: 13px; }
.review-panel {
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 14px 16px 22px 21px;
}
.review-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}
.review-panel h2 { margin: 0; font-size: 21px; }
.btn-edit {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 42px;
  padding: 0 15px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  font: inherit;
  font-size: 15px;
  color: var(--text-2);
  cursor: pointer;
}
.btn-edit:hover { background: #f7f7f8; }
.btn-edit svg { width: 18px; height: 18px; color: #3b3f47; }

.review-grid {
  display: grid;
  gap: 22px 0;
  margin: 2px 0 0 4px;
}
.review-grid dt { font-size: 15px; color: #5b6070; margin-bottom: 9px; }
.review-grid dd { margin: 0; font-size: 17.5px; color: var(--text); overflow-wrap: anywhere; }
.cols-personal { grid-template-columns: 258fr 242fr 258fr 358fr; }
.cols-vehicle { grid-template-columns: 260fr 240fr 226fr 195fr 195fr; }
.cols-booking { grid-template-columns: 283px 1fr; }
.review-label { font-size: 15px; color: #5b6070; margin: -2px 0 10px 4px; }

.review-footer { margin-top: 26px; padding: 0 5px; }
.review-footer .btn-outline { height: 52px; font-size: 17px; gap: 18px; padding: 0 28px 0 24px; }
.review-footer .btn-primary.btn-lg { height: 52px; font-size: 17px; padding: 0 22px; }

@media (max-width: 1200px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .cols-personal, .cols-vehicle { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: 1fr; gap: 0; }
  .cols-personal, .cols-vehicle, .cols-booking { grid-template-columns: 1fr 1fr; }
  .review-footer { flex-wrap: wrap; }
}

/* ---------- Step 4: Send invitation ---------- */
.step.done + .step-line { background: var(--orange); }
#step4 { padding-top: 10px; }

.success-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  padding: 25px 20px 58px;
  background: #ebf7ec;
  border: 1px solid #cfe9d3;
  border-radius: 8px;
  text-align: center;
}
.success-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #2db84d;
  color: #fff;
  display: grid;
  place-items: center;
}
.success-icon svg { width: 36px; height: 36px; }
.success-banner h2 { font-size: 29px; font-weight: 800; letter-spacing: -0.7px; margin: 0; }

.done-grid {
  display: grid;
  grid-template-columns: 586fr 552fr;
  gap: 18px;
  margin-top: 21px;
  align-items: start;
}
.done-col { display: flex; flex-direction: column; gap: 18px; }
.done-card {
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 18px 20px 20px;
}
.done-card h2 { font-size: 21px; font-weight: 800; letter-spacing: -0.5px; margin: 0; }
.done-sub { font-size: 16.5px; color: #5b6070; margin: 8px 0 20px; }

.cred-box {
  margin: 0;
  background: #f6f7f9;
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  padding: 0 20px;
}
.cred-row {
  display: grid;
  grid-template-columns: 169px 1fr auto;
  align-items: center;
  height: 63px;
}
.cred-row + .cred-row { border-top: 1px solid #dfe2e7; }
.cred-row dt { font-size: 16.5px; color: #4b5059; }
.cred-row dd { margin: 0; font-size: 18.5px; color: var(--text); overflow-wrap: anywhere; }
.copy-btn {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 4px;
  background: none;
  color: #2f333a;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.copy-btn:hover { background: #e9ebef; }
.copy-btn svg { width: 22px; height: 22px; }
.copy-btn.copied { color: #1f9d41; }

.note-info, .note-ok {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 15px 0 0;
  padding: 0 16px;
  height: 52px;
  border-radius: 6px;
  font-size: 16px;
}
.note-info { background: #e5f0fd; color: #1e4fbf; }
.note-info svg { width: 24px; height: 24px; flex-shrink: 0; color: #2563eb; }
.note-ok { background: #e6f6e8; color: #1f8a3a; font-size: 17px; }
.note-ok svg { width: 24px; height: 24px; flex-shrink: 0; color: #2db84d; }

.version-box {
  height: 54px;
  display: flex;
  align-items: center;
  padding: 0 19px;
  border-radius: 6px;
  background: var(--tier-soft, #f1ebfe);
  font-size: 19px;
  color: var(--text);
}

.app-url-box {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 54px;
  padding: 8px 10px 8px 16px;
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  background: #f6f7f9;
}
.app-url-link { flex: 1; min-width: 0; color: #1e4fbf; font-size: 16px; overflow-wrap: anywhere; }
.app-url-missing { margin: 0; color: #8a4b08; font-size: 14px; line-height: 1.45; }

.email-card { padding: 18px 21px 20px; }
.email-head { display: flex; gap: 18px; }
.email-icon {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #e6f6e8;
  color: #1f9d41;
  display: grid;
  place-items: center;
}
.email-icon svg { width: 34px; height: 34px; }
.email-head .done-sub { margin: 45px 0 0; }
.email-card .note-ok { margin-top: 36px; }
.email-resend { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.email-resend-status, .drawer-email-status { font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.email-resend-status.error, .drawer-email-status.error { color: var(--danger); }
.email-resend-status.success, .drawer-email-status.success { color: #1a7f37; }

.done-footer {
  margin-top: 18px;
  padding: 20px 0 0;
  border-top: 1px solid var(--border-soft);
}
.done-footer .btn-outline { height: 52px; font-size: 17px; gap: 18px; padding: 0 24px; }
.done-footer .btn-primary.btn-lg { height: 52px; font-size: 17px; padding: 0 22px; text-decoration: none; }

@media (max-width: 900px) {
  .done-grid { grid-template-columns: 1fr; }
  .cred-row { grid-template-columns: 1fr auto; grid-template-rows: auto auto; height: auto; padding: 10px 0; }
  .cred-row dt { grid-column: 1 / -1; font-size: 14px; }
  .done-footer { flex-wrap: wrap; }
  .note-info, .note-ok { height: auto; padding: 12px 16px; }
}

/* ---------- Policies page ---------- */
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.page-head .btn-primary { margin-top: 10px; text-decoration: none; }
.page-head .lead { margin-bottom: 20px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 18px; }
.stat {
  background: var(--card);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(17, 24, 39, .05);
  padding: 16px 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stat-label { font-size: 14px; color: #5b6070; }
.stat-value { font-size: 28px; font-weight: 800; letter-spacing: -0.6px; font-variant-numeric: tabular-nums; }

.bookings-card { padding: 20px 21px 12px; }
.toolbar { display: flex; gap: 12px; margin-bottom: 16px; }
.toolbar .search { flex: 1; }
.toolbar select { width: 200px; flex-shrink: 0; }
input[type="search"]::-webkit-search-cancel-button { cursor: pointer; }

.table-wrap { overflow-x: auto; }
.table-wrap[hidden] { display: none; }
.bookings { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.bookings th {
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: #5b6070;
  padding: 11px 14px;
  background: #f6f7f9;
  border-bottom: 1px solid var(--border-soft);
  white-space: nowrap;
}
.bookings th:first-child { border-radius: 6px 0 0 6px; }
.bookings th:last-child { border-radius: 0 6px 6px 0; }
.bookings td { padding: 14px; border-bottom: 1px solid var(--border-soft); vertical-align: middle; white-space: nowrap; }
.bookings tbody tr:last-child td { border-bottom: 0; }
.bookings tbody tr { cursor: pointer; transition: background .12s; }
.bookings tbody tr:hover { background: #fafafb; }
.bookings tbody tr:focus-visible { outline: 2px solid var(--orange); outline-offset: -2px; }
.bookings .num { text-align: right; font-variant-numeric: tabular-nums; }
.bookings .ref { font-size: 13.5px; font-weight: 600; color: var(--text-2); font-variant-numeric: tabular-nums; }
.cell-main { display: block; font-weight: 500; }
.cell-sub { display: block; font-size: 13px; color: var(--muted); margin-top: 3px; }

.plate {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  background: #fcd535;
  border: 1px solid #e0b90f;
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: .5px;
  color: #111;
}

.tier-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 11px 4px 9px;
  border-radius: 999px;
  background: var(--tier-soft);
  color: var(--tier-ink);
  font-size: 13.5px;
  font-weight: 600;
}
.tier-pill .tier-dot { width: 8px; height: 8px; box-shadow: none; }

.status {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}
.status.upcoming { background: #fff1e6; color: #c2540a; }
.status.progress { background: #e5f0fd; color: #1e4fbf; }
.status.completed { background: #e6f6e8; color: #1f8a3a; }

.empty { text-align: center; padding: 56px 20px 60px; color: var(--muted); }
.empty svg { width: 44px; height: 44px; color: #b4b9c2; }
.empty-title { font-size: 18px; font-weight: 700; color: var(--text); margin: 12px 0 6px; }
.empty-sub { font-size: 15px; margin: 0; }
.empty-sub a { color: var(--orange-btn); font-weight: 600; }

/* Drawer */
.drawer-open { overflow: hidden; }
.drawer-backdrop { position: fixed; inset: 0; background: rgba(17, 24, 39, .35); z-index: 20; }
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(480px, 100%);
  background: #fff;
  z-index: 21;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 30px rgba(17, 24, 39, .12);
}
.drawer[hidden], .drawer-backdrop[hidden] { display: none; }
.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--border-soft);
}
.drawer-head h2 { font-size: 24px; font-weight: 800; margin: 2px 0 10px; }
.drawer-ref { margin: 0; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.drawer-close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: #3b3f47;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.drawer-close:hover { background: #f1f2f4; }
.drawer-close svg { width: 20px; height: 20px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 6px 24px 20px; }
.drawer-section { padding: 16px 0; }
.drawer-section + .drawer-section { border-top: 1px solid var(--border-soft); }
.drawer-section h3 { font-size: 16px; font-weight: 700; margin: 0 0 12px; }
.drawer-section dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; }
.drawer-section dt { font-size: 13px; color: #5b6070; margin-bottom: 4px; }
.drawer-section dd { margin: 0; font-size: 15px; overflow-wrap: anywhere; }
.drawer-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 24px;
  border-top: 1px solid var(--border-soft);
}
.drawer-email { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; flex: 1; min-width: 0; }
.drawer-email-status:empty { display: none; }
.drawer-created { font-size: 13px; color: var(--muted); }
.btn-danger {
  height: 40px;
  padding: 0 16px;
  border: 1px solid #f3c4bd;
  border-radius: 4px;
  background: #fff;
  color: var(--danger);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.btn-danger:hover { background: #fdf1ef; }
.btn-danger.confirm { background: var(--danger); border-color: var(--danger); color: #fff; }

@media (max-width: 1200px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .page-head { flex-direction: column; gap: 0; }
  .page-head .btn-primary { margin: 0 0 16px; }
  .toolbar { flex-direction: column; }
  .toolbar select { width: 100%; }
  .drawer-section dl { grid-template-columns: 1fr; }
}

/* ---------- Auth ---------- */
.auth-pending body { visibility: hidden; }
.btn-primary:disabled, .btn-danger:disabled { opacity: .6; cursor: wait; }

.login-page { align-items: center; justify-content: center; min-height: 100vh; height: auto; padding: 16px; }
.login-card {
  width: min(420px, 100%);
  background: var(--card);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(17, 24, 39, .05), 0 8px 30px rgba(17, 24, 39, .06);
  padding: 34px 32px 32px;
}
.login-card h1 { font-size: 28px; }
.login-card .lead { margin-bottom: 24px; }
.login-card .form-error { margin: 0 0 14px; min-height: 1em; }
.login-card .btn-primary { width: 100%; justify-content: center; }

/* Email card when sending failed */
.note-ok .icon-fail, .email-card.failed .note-ok .icon-ok { display: none; }
.email-card.failed .note-ok .icon-fail { display: block; }
.email-card.failed .email-icon { background: #fdecea; color: var(--danger); }
.email-card.failed .note-ok { background: #fdecea; color: #b42318; }
.email-card.failed .note-ok svg { color: var(--danger); }

/* ---------- Dashboard ---------- */
.dash-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-top: 18px;
  padding: 30px 34px;
  background: var(--card);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(17, 24, 39, .05);
  border-left: 5px solid var(--orange);
}
.dash-eyebrow { margin: 0 0 6px; font-size: 13px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--orange-btn); }
.dash-intro { max-width: 720px; margin: 10px 0 0; font-size: 16px; line-height: 1.6; color: var(--text-2); }
.dash-hero-art { width: 190px; flex-shrink: 0; color: var(--orange); }

.dash-section { margin-top: 30px; }
.dash-section h2 { font-size: 22px; margin: 0; }
.dash-sub { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.repeat-launch { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 21px 24px; border-radius: 12px; background: var(--card); box-shadow: 0 1px 3px rgba(17, 24, 39, .05); }
.repeat-launch .dash-eyebrow { margin-bottom: 4px; }
.repeat-launch p:last-child { margin: 5px 0 0; color: var(--muted); font-size: 14px; }
.repeat-launch .btn-primary { text-decoration: none; white-space: nowrap; }

.tier-cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.tier-card {
  background: var(--card);
  border-radius: 12px;
  border-top: 4px solid var(--tier);
  box-shadow: 0 1px 3px rgba(17, 24, 39, .05);
  padding: 16px 18px 18px;
}
.tier-card header { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.tier-card h3 { margin: 0; font-size: 19px; color: var(--tier-ink); }
.tier-card p { margin: 10px 0 0; font-size: 14px; color: var(--text-2); line-height: 1.5; }
.tier-card ul { margin: 12px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 7px; }
.tier-card li { position: relative; padding-left: 20px; font-size: 14px; line-height: 1.4; }
.tier-card li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 4px;
  width: 9px;
  height: 5px;
  border-left: 2px solid var(--tier);
  border-bottom: 2px solid var(--tier);
  transform: rotate(-45deg);
}

.process { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.process li {
  background: var(--card);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(17, 24, 39, .05);
  padding: 16px 18px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-2);
}
.process strong { display: block; margin: 10px 0 4px; font-size: 16px; color: var(--text); }
.process-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.standards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.standard {
  background: var(--orange-soft);
  border: 1px solid var(--orange-border);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-2);
}
.standard strong { font-size: 16px; color: var(--text); }

@media (max-width: 1200px) {
  .tier-cards, .process { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .standards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .dash-hero { flex-direction: column; align-items: flex-start; padding: 22px; }
  .dash-hero-art { display: none; }
  .tier-cards, .process, .standards { grid-template-columns: 1fr; }
  .repeat-launch { align-items: flex-start; flex-direction: column; }
}

/* ---------- Repeat customers ---------- */
.repeat-main { padding-bottom: 56px; }
.repeat-add-card { margin-top: 8px; padding: 24px; }
.repeat-add-card h2, .repeat-list-head h2 { margin: 0; font-size: 21px; }
.repeat-add-card p, .repeat-list-head p { margin: 6px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.repeat-add-form { display: grid; grid-template-columns: minmax(220px, 460px) auto 1fr; align-items: end; gap: 14px; margin-top: 20px; }
.repeat-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.repeat-field span { font-size: 13px; font-weight: 600; color: var(--text-2); }
.repeat-add-form .btn-primary { white-space: nowrap; }
.repeat-status { font-size: 13px; color: var(--muted); padding-bottom: 12px; }
.repeat-status.success, .repeat-card-status.success { color: #1a7f37; }
.repeat-status.error, .repeat-card-status.error { color: var(--danger); }
.repeat-list-section { margin-top: 30px; }
.repeat-list-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.repeat-count { padding: 7px 11px; border-radius: 999px; background: #fff; color: var(--text-2); font-size: 13px; font-weight: 600; white-space: nowrap; }
.repeat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.repeat-card { min-width: 0; padding: 21px; border: 1px solid var(--border-soft); border-radius: 12px; background: var(--card); box-shadow: 0 1px 3px rgba(17, 24, 39, .05); }
.repeat-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.repeat-card h3 { margin: 0; font-size: 18px; }
.repeat-plate { display: inline-block; margin-top: 7px; padding: 4px 8px; border-radius: 4px; background: #fff2b8; color: #42330b; font-size: 12px; font-weight: 700; letter-spacing: .5px; }
.repeat-remove { border: 0; padding: 6px 0 6px 8px; background: transparent; color: var(--muted); font: inherit; font-size: 12px; cursor: pointer; }
.repeat-remove:hover { color: var(--danger); }
.repeat-remove:disabled { opacity: .55; cursor: wait; }
.repeat-car-line { margin-top: 14px; color: var(--text-2); font-size: 14px; }
.repeat-meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; font-size: 13px; }
.repeat-meta span { color: var(--orange-btn); font-weight: 600; }
.repeat-meta strong { font-weight: 700; }
.repeat-last { margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.repeat-book-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; align-items: end; gap: 10px; margin-top: 18px; padding-top: 17px; border-top: 1px solid var(--border-soft); }
.repeat-book-form input { min-width: 0; padding: 0 10px; }
.repeat-book-form .btn-primary { white-space: nowrap; }
.repeat-card-status { min-height: 18px; margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.repeat-customer-access { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 15px; padding: 12px; border: 1px solid var(--border-soft); border-radius: 8px; }
.repeat-customer-access strong, .repeat-customer-access span { display: block; }
.repeat-customer-access strong { font-size: 12px; }
.repeat-customer-access span { margin-top: 4px; color: var(--muted); font-size: 12px; }
.repeat-customer-access .btn-secondary { white-space: nowrap; }
.repeat-credentials { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) auto; align-items: end; gap: 12px; margin-top: 14px; padding: 13px; border: 1px solid #cfe8d5; border-radius: 8px; background: #f3fbf5; }
.repeat-credentials div { min-width: 0; }
.repeat-credentials span, .repeat-credentials strong { display: block; }
.repeat-credentials span { margin-bottom: 4px; color: var(--muted); font-size: 11px; }
.repeat-credentials strong { overflow-wrap: anywhere; font-size: 13px; }
.repeat-credentials .btn-secondary { white-space: nowrap; }
.repeat-empty, .repeat-load-error { padding: 32px; border: 1px dashed var(--border); border-radius: 12px; background: #fff; text-align: center; color: var(--muted); }
.repeat-empty strong, .repeat-empty span { display: block; }
.repeat-empty strong { color: var(--text); font-size: 16px; }
.repeat-empty span { margin-top: 5px; font-size: 14px; }
.repeat-load-error { color: var(--danger); }

/* ---------- Customer booking portal ---------- */
.customer-portal-foot { margin: 22px 0 0; text-align: center; color: var(--muted); font-size: 13px; }
.customer-portal-foot a { color: var(--orange-btn); font-weight: 600; }
.customer-booking-page { display: block; min-height: 100vh; height: auto; }
.customer-booking-main { width: min(900px, 100%); margin: 0 auto; padding: 40px 24px 60px; }
.customer-booking-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.customer-booking-head h1 { font-size: 32px; }
.customer-booking-intro { margin: 9px 0 24px; color: var(--muted); line-height: 1.5; }
.customer-booking-list { display: grid; gap: 16px; }
.customer-booking-card, .customer-booking-empty { padding: 24px; border: 1px solid var(--border-soft); border-radius: 12px; background: var(--card); box-shadow: 0 1px 3px rgba(17, 24, 39, .05); }
.customer-booking-reg { display: inline-block; padding: 4px 8px; border-radius: 4px; background: #fff2b8; color: #42330b; font-size: 12px; font-weight: 700; letter-spacing: .5px; }
.customer-booking-summary h2 { margin: 10px 0 5px; font-size: 20px; }
.customer-booking-summary p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.customer-booking-form { display: grid; grid-template-columns: 1fr 1fr auto; align-items: end; gap: 12px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border-soft); }
.customer-booking-form .btn-primary { justify-content: center; white-space: nowrap; }
.customer-booking-status { min-height: 18px; margin: 10px 0 0; color: var(--muted); font-size: 13px; }
.customer-booking-status.success { color: #1a7f37; }
.customer-booking-status.error, .customer-booking-empty.error { color: var(--danger); }
.customer-booking-empty { display: grid; gap: 7px; color: var(--muted); }
.customer-booking-empty strong { color: var(--text); }

@media (max-width: 1200px) {
  .repeat-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .repeat-add-form { grid-template-columns: 1fr; align-items: stretch; }
  .repeat-add-form .btn-primary { justify-content: center; }
  .repeat-status { padding-bottom: 0; }
  .repeat-list-head { align-items: flex-start; }
  .repeat-book-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .repeat-book-form .btn-primary { grid-column: 1 / -1; justify-content: center; }
  .repeat-credentials { grid-template-columns: 1fr 1fr; }
  .repeat-credentials .btn-secondary { grid-column: 1 / -1; justify-content: center; }
}
@media (max-width: 560px) {
  .repeat-card { padding: 17px; }
  .repeat-customer-access { align-items: flex-start; flex-direction: column; }
  .customer-booking-main { padding: 28px 16px 44px; }
  .customer-booking-head h1 { font-size: 27px; }
  .customer-booking-card { padding: 18px; }
  .customer-booking-form { grid-template-columns: 1fr; }
  .customer-booking-form .btn-primary { justify-content: center; }
}

/* ---------- Theme toggle ---------- */
.theme-toggle {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  height: 46px;
  padding: 0 16px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--sidebar-text);
  font: inherit;
  font-size: 15px;
  text-align: left;
  cursor: pointer;
}
.theme-toggle:hover { background: rgba(255,255,255,.07); }
.theme-toggle:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.theme-toggle-icon { width: 29px; flex: 0 0 29px; font-size: 23px; line-height: 1; text-align: center; }
.theme-toggle-login { width: auto; height: 36px; padding: 0 10px; border: 1px solid var(--border); color: var(--text-2); font-size: 12px; white-space: nowrap; }
.theme-toggle-login .theme-toggle-icon { width: auto; flex-basis: auto; font-size: 17px; }
.theme-toggle-login:hover { background: var(--orange-soft); }
.login-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.login-card-head h1 { min-width: 0; }

html[data-theme="dark"] {
  color-scheme: dark;
  --sidebar: #15171d;
  --sidebar-text: #e4e7ee;
  --orange: #ff9a4d;
  --orange-btn: #ff9a4d;
  --orange-hover: #ffad6d;
  --orange-soft: #33251c;
  --orange-border: #624222;
  --bg: #111318;
  --card: #1b1e26;
  --text: #f1f3f7;
  --text-2: #c5cad4;
  --muted: #9ba3b1;
  --border: #3a414d;
  --border-soft: #2d333e;
  --step-grey: #424957;
  --field-bg: #20242d;
  --period-bg: #252a34;
  --addon-bg: #232832;
  --danger: #ff8e7d;
  --table-head: #252a34;
  --hover: #252a34;
  --button-soft: #252a34;
  background: var(--bg);
}

html[data-theme="dark"] body { background: var(--bg); color: var(--text); }
html[data-theme="dark"] .sidebar { background: #15171d; }
html[data-theme="dark"] .sidebar-footer { border-color: #30343d; }
html[data-theme="dark"] .nav-item.active { color: #17191e; }
html[data-theme="dark"] .card,
html[data-theme="dark"] .dash-hero,
html[data-theme="dark"] .repeat-launch,
html[data-theme="dark"] .tier-card,
html[data-theme="dark"] .process li,
html[data-theme="dark"] .login-card,
html[data-theme="dark"] .stat,
html[data-theme="dark"] .drawer,
html[data-theme="dark"] .repeat-card,
html[data-theme="dark"] .repeat-count { background: var(--card); color: var(--text); }
html[data-theme="dark"] .btn-secondary,
html[data-theme="dark"] .btn-outline,
html[data-theme="dark"] .btn-edit,
html[data-theme="dark"] .tier-trigger,
html[data-theme="dark"] .tier-list,
html[data-theme="dark"] .inner-card,
html[data-theme="dark"] .review-panel,
html[data-theme="dark"] .done-card,
html[data-theme="dark"] .cred-box,
html[data-theme="dark"] .version-box,
html[data-theme="dark"] .app-url-box,
html[data-theme="dark"] .repeat-empty,
html[data-theme="dark"] .repeat-load-error { background: var(--card); color: var(--text); border-color: var(--border-soft); }
html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea,
html[data-theme="dark"] .phone,
html[data-theme="dark"] .addon-input { background-color: var(--field-bg); color: var(--text); border-color: var(--border); }
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder { color: var(--muted); }
html[data-theme="dark"] select option { background: var(--field-bg); color: var(--text); }
html[data-theme="dark"] .qp-body textarea { background: var(--field-bg); color: var(--text); }
html[data-theme="dark"] .qp-body { color: var(--text); }
html[data-theme="dark"] .qp-chevron,
html[data-theme="dark"] .tier-chevron,
html[data-theme="dark"] .btn-edit svg,
html[data-theme="dark"] .copy-btn { color: var(--text-2); }
html[data-theme="dark"] .tier-option { color: var(--text); }
html[data-theme="dark"] .step-sub,
html[data-theme="dark"] .review-grid dt,
html[data-theme="dark"] .review-label,
html[data-theme="dark"] .done-sub,
html[data-theme="dark"] .cred-row dt,
html[data-theme="dark"] .stat-label,
html[data-theme="dark"] .bookings th,
html[data-theme="dark"] .drawer-section dt { color: var(--muted); }
html[data-theme="dark"] .btn-secondary:hover,
html[data-theme="dark"] .btn-outline:hover,
html[data-theme="dark"] .btn-edit:hover,
html[data-theme="dark"] .copy-btn:hover,
html[data-theme="dark"] .drawer-close:hover { background: var(--hover); }
html[data-theme="dark"] .bookings th { background: var(--table-head); }
html[data-theme="dark"] .bookings tbody tr:hover { background: var(--hover); }
html[data-theme="dark"] .bookings td,
html[data-theme="dark"] .cred-row + .cred-row { border-color: var(--border-soft); }
html[data-theme="dark"] .bookings tbody tr:focus-visible { outline-color: var(--orange); }
html[data-theme="dark"] .drawer-close { color: var(--text-2); }
html[data-theme="dark"] .drawer-backdrop { background: rgba(0,0,0,.62); }
html[data-theme="dark"] .success-banner { background: #183423; border-color: #285438; }
html[data-theme="dark"] .cred-box { background: #20242d; }
html[data-theme="dark"] .note-info { background: #1c2c46; color: #b9d4ff; }
html[data-theme="dark"] .note-ok { background: #1d3828; color: #b8efc5; }
html[data-theme="dark"] .app-url-missing { color: #ffc27a; }
html[data-theme="dark"] .status.upcoming { background: #3b2a1e; color: #ffc18b; }
html[data-theme="dark"] .status.progress { background: #1c2c46; color: #b9d4ff; }
html[data-theme="dark"] .status.completed { background: #1d3828; color: #b8efc5; }
html[data-theme="dark"] .repeat-credentials { background: #1d3828; border-color: #285438; }
html[data-theme="dark"] .repeat-credentials strong { color: #e7f7eb; }
html[data-theme="dark"] .repeat-plate,
html[data-theme="dark"] .plate { background: #55451e; border-color: #78642a; color: #ffe7a0; }
html[data-theme="dark"] .repeat-launch { border: 1px solid var(--border-soft); }
html[data-theme="dark"] .repeat-customer-access,
html[data-theme="dark"] .customer-booking-card,
html[data-theme="dark"] .customer-booking-empty { background: var(--card); color: var(--text); border-color: var(--border-soft); }
html[data-theme="dark"] .customer-booking-form { border-color: var(--border-soft); }
html[data-theme="dark"] .customer-booking-summary p,
html[data-theme="dark"] .customer-booking-intro,
html[data-theme="dark"] .repeat-customer-access span { color: var(--muted); }
html[data-theme="dark"] .customer-booking-summary h2,
html[data-theme="dark"] .customer-booking-empty strong { color: var(--text); }
html[data-theme="dark"] .tier-badge { color: #e9edf4; }
html[data-theme="dark"] .empty svg { color: #737c8a; }

@media (max-width: 900px) {
  .theme-toggle { justify-content: center; padding: 0; gap: 9px; font-size: 13px; }
  .theme-toggle-icon { width: 20px; flex-basis: 20px; }
  .login-card-head { align-items: flex-start; }
}
