/* DFT BQ17.5 — Agency / Guest Portal + Partner Application styles */

*{box-sizing:border-box}
:root{--ink:#1a2b49;--muted:#64748b;--line:#dfe3eb;--soft:#f7f9fc;--green:#9BEF7A;--green-dark:#193d20;--danger:#8b2525;--danger-bg:#fff7f7;--danger-line:#efb7b7}
body{margin:0;background:#f3f6f9;color:var(--ink);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif}
.apply-page{min-height:100vh;padding:42px 18px}
.apply-wrap{width:min(760px,100%);margin:0 auto}
.apply-brand{display:flex;align-items:center;justify-content:center;margin-bottom:18px}
.apply-brand img{width:145px;max-width:52vw;height:auto;display:block}
.apply-card{background:#fff;border:1px solid var(--line);border-radius:20px;padding:28px;box-shadow:0 18px 46px rgba(26,43,73,.08)}
.apply-head{text-align:center;margin-bottom:24px}
.apply-kicker{font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.12em;color:#4b587c}
h1{margin:7px 0 8px;font-size:28px;line-height:1.15;letter-spacing:-.025em;color:var(--ink)}
.apply-head p,.apply-success p{margin:0 auto;max-width:610px;color:var(--muted);font-size:14px;line-height:1.6}
.apply-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}
.apply-span-2{grid-column:1/-1}
.apply-field{display:block}
.apply-field>span{display:block;margin-bottom:7px;font-size:12px;font-weight:800;color:var(--ink)}
.apply-field b{color:#8b2525}
.apply-field input,.apply-field select,.apply-field textarea{width:100%;border:1px solid #cfd7e3;border-radius:10px;background:#fff;color:#111827;font:inherit;font-size:14px;padding:11px 12px;outline:none;transition:border-color .15s,box-shadow .15s}
.apply-field input:focus,.apply-field select:focus,.apply-field textarea:focus{border-color:#87cf6b;box-shadow:0 0 0 3px rgba(155,239,122,.22)}
.apply-field textarea{resize:vertical;min-height:112px}
.apply-field select{appearance:auto}
.apply-help{display:block;margin-top:6px;color:#7a8497;font-size:10.5px;line-height:1.4}
[hidden]{display:none!important}
.apply-consent{display:flex;gap:10px;align-items:flex-start;margin-top:18px;padding:13px 14px;border:1px solid var(--line);border-radius:11px;background:var(--soft)}
.apply-consent input{margin-top:3px}
.apply-consent span{font-size:12px;line-height:1.5;color:#4b587c}
.apply-consent a,.apply-footer a{color:#0057d9;text-decoration:none;font-weight:750}
.apply-consent a:hover,.apply-footer a:hover{text-decoration:underline}
.apply-submit{display:block;width:100%;margin-top:18px;border:1px solid var(--green);border-radius:10px;background:var(--green);color:#0E1B2A;padding:12px 16px;font-size:12px;font-weight:900;letter-spacing:.025em;cursor:pointer;text-align:center;text-decoration:none}
.apply-submit:hover{filter:brightness(.98)}
.apply-footnote{margin-top:10px;text-align:center;color:#7a8497;font-size:10.5px;line-height:1.45}
.apply-alert{display:flex;flex-direction:column;gap:3px;margin-bottom:18px;padding:12px 14px;border-radius:11px;font-size:12px;line-height:1.45}
.apply-alert.error{background:var(--danger-bg);border:1px solid var(--danger-line);color:var(--danger)}
.apply-success-mark{width:52px;height:52px;margin:0 auto 14px;border-radius:50%;display:grid;place-items:center;background:#F7FFF4;border:1px solid #bfe7ae;color:#2f6b3f;font-size:24px;font-weight:900}
.apply-success{text-align:center}
.apply-reference{margin:22px auto 16px;max-width:390px;padding:13px 16px;border:1px solid var(--line);border-radius:12px;background:var(--soft)}
.apply-reference span{display:block;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.08em;color:#6b7280}
.apply-reference strong{display:block;margin-top:5px;font-size:17px;color:#0057d9;letter-spacing:.02em}
.apply-muted{margin-top:14px!important;font-size:12px!important}
.apply-link-button{max-width:300px;margin-left:auto;margin-right:auto}
.apply-honeypot{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;overflow:hidden!important}
.apply-footer{text-align:center;margin-top:16px;color:#7a8497;font-size:10px;line-height:1.45}
.terms-head{margin-bottom:14px}
.terms-updated{margin:0 0 18px;padding:9px 11px;border:1px solid var(--line);border-radius:10px;background:var(--soft);color:#697386;font-size:10.5px;text-align:center}
.terms-content{display:grid;gap:0}
.terms-content section{padding:15px 0;border-top:1px solid #e7ebf2}
.terms-content section:first-child{border-top:0;padding-top:0}
.terms-content h2{margin:0 0 7px;color:var(--ink);font-size:14px;line-height:1.3}
.terms-content p{margin:0;color:var(--muted);font-size:12px;line-height:1.6}
.terms-content p+p{margin-top:7px}
.terms-content a{color:#0057d9;text-decoration:none;font-weight:700}
.terms-actions{padding-top:4px}
@media(max-width:640px){
  .apply-brand img{width:124px;max-width:46vw}
  .apply-page{padding:24px 12px}
  .apply-card{padding:20px 16px;border-radius:16px}
  .apply-grid{grid-template-columns:1fr}
  .apply-span-2{grid-column:auto}
  h1{font-size:24px}
}

/* Booking & Agency Portal shared styles */

:root {
  --ink: #1a2b49;
  --text: #4b587c;
  --border: #dfe3eb;
  --divider: #e7ebf2;
  --section-bg: #fafbfc;
  --green: #9BEF7A;
  --green-hover: #87df66;
  --green-soft: #F7FFF4;
  --link: #0057d9;
  --button-text: #0E1B2A;
  --white: #ffffff;
  --tag-neutral-bg: #ffffff;
  --tag-neutral-border: #d7dde6;
  --tag-neutral-text: #536075;
  --tag-success-bg: #f1faee;
  --tag-success-border: #a9d99b;
  --tag-success-text: #35643a;
  --tag-attention-bg: #fff7e5;
  --tag-attention-border: #e5c77a;
  --tag-attention-text: #79591b;
  --tag-danger-bg: #fff1f2;
  --tag-danger-border: #e3adb4;
  --tag-danger-text: #8d404c;
  --tag-info-bg: #eef5ff;
  --tag-info-border: #b9cdec;
  --tag-info-text: #3d628f;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding: 0;
  background: var(--white);
  color: var(--ink);
  font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.page {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  padding: 24px 16px 34px;
  background: var(--white);
}

.brand-logo-wrap {
  padding: 0 12px 18px;
}

.brand-logo {
  display: block;
  width: 135px;
  max-width: 62%;
  height: auto;
}

.page:has(.agency-app-screen) .brand-logo {
  width: 108px;
  max-width: 48%;
}

.portal-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 12px 10px;
}

.simple-top { padding-bottom: 14px; }
.portal-title-wrap { min-width: 0; }

.portal-tour-title {
  color: var(--ink);
  font-size: 17px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -.25px;
}

.portal-tour-subtitle {
  margin-top: 5px;
  color: var(--text);
  font-size: 12px;
  line-height: 1.3;
  font-weight: 500;
}

.status-chip {
  flex: 0 0 auto;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 11px;
  border: 1px solid var(--tag-success-border);
  border-radius: 12px;
  background: var(--tag-success-bg);
  color: var(--tag-success-text);
  font-size: 10px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .35px;
  white-space: nowrap;
}

.status-chip.neutral {
  border-color: var(--tag-neutral-border);
  background: var(--tag-neutral-bg);
  color: var(--tag-neutral-text);
}

.status-chip.pending {
  border-color: var(--tag-attention-border);
  background: var(--tag-attention-bg);
  color: var(--tag-attention-text);
}

.status-chip.pending.outline {
  background: var(--tag-neutral-bg);
}

.status-chip.cancelled {
  border-color: var(--tag-danger-border);
  background: var(--tag-danger-bg);
  color: var(--tag-danger-text);
}

.portal-status-note {
  padding: 0 12px 13px;
  color: var(--text);
  font-size: 12px;
  line-height: 1.35;
}

.booking-shell {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(26,43,73,.035);
}

.single-shell { margin-top: 2px; }

.portal-section {
  background: var(--white);
  border-top: 1px solid var(--divider);
}

.portal-section.first-section { border-top: 0; }

.portal-section-header {
  padding: 12px 14px;
  background: var(--section-bg);
  border-bottom: 1px solid var(--divider);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.2;
  font-weight: 750;
  letter-spacing: -.05px;
}

.section-title-with-icon {
  display: flex;
  align-items: center;
  gap: 8px;
}

.portal-rows { width: 100%; }

.portal-row {
  display: grid;
  grid-template-columns: minmax(150px, 44%) 1fr;
  align-items: center;
  gap: 14px;
  min-height: 46px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--divider);
}

.portal-row:last-child { border-bottom: 0; }

.portal-row-label-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.row-icon {
  display: block;
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  object-fit: contain;
}

.portal-row-label {
  color: var(--ink);
  font-size: 12px;
  line-height: 1.3;
  font-weight: 600;
}

.portal-row-value {
  min-width: 0;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 600;
  text-align: right;
  overflow-wrap: anywhere;
}

.reference-value {
  color: var(--link);
  font-weight: 800;
}

.portal-section-body {
  padding: 14px;
  background: var(--white);
}

.compact-top { border-top: 1px solid var(--divider); }
.roomy-body { padding: 20px 16px; }

.meeting-title,
.guide-name,
.empty-title {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -.15px;
}

.meeting-title { margin-bottom: 6px; }
.empty-title { margin-bottom: 8px; }

p {
  margin: 0;
  color: var(--text);
  font-size: 12px;
  line-height: 1.5;
}

.body-gap { margin-top: 5px; }

.info-note {
  margin-top: 12px;
  padding: 10px 11px;
  border: 1px solid var(--green);
  border-radius: 10px;
  background: var(--green-soft);
  color: var(--ink);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 600;
}

.section-actions,
.guide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 13px;
}

.single-action .portal-button { min-width: 150px; }

.contact-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 13px;
}

.portal-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 13px;
  border: 1px solid var(--green);
  border-radius: 10px;
  background: var(--green);
  color: var(--button-text);
  text-decoration: none;
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
  text-align: center;
  transition: background .15s ease, border-color .15s ease;
}

.portal-button:hover {
  background: var(--green-hover);
  border-color: var(--green-hover);
}

.portal-button:focus-visible,
.text-link:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}

.guide-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.guide-avatar {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--green);
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--ink);
  font-size: 17px;
  font-weight: 800;
}

.guide-info { min-width: 0; }

.guide-description {
  margin-top: 4px;
  color: var(--text);
  font-size: 12px;
  line-height: 1.35;
}

.guide-locked-box {
  display: flex;
  align-items: flex-start;
  gap: 11px;
}

.guide-locked-title {
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.3;
  font-weight: 750;
}

.payment-paid-text { color: #2f6b3f; font-weight: 800; }
.payment-pending-text { color: var(--ink); font-weight: 800; }
.payment-refunded-text { color: var(--text); font-weight: 800; }

.text-link-wrap { margin-top: 9px; }

.text-link {
  color: var(--link);
  text-decoration: none;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 750;
}

.cancellation-title,
.cancel-confirmation-title,
.cancelled-title {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.35;
  font-weight: 800;
}

.cancellation-title { margin-bottom: 6px; }
.cancelled-title { margin-bottom: 5px; }

.cancel-details {
  margin-top: 13px;
}

.cancel-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 13px;
  border: 1px solid #d6a3a0;
  border-radius: 10px;
  background: #ffffff;
  color: #9b2c2c;
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.cancel-trigger::-webkit-details-marker { display: none; }

.cancel-trigger:hover {
  background: #fff8f7;
  border-color: #c98c88;
}

.cancel-confirmation {
  margin-top: 11px;
  padding: 13px;
  border: 1px solid #e7c5c2;
  border-radius: 11px;
  background: #fffafa;
}

.cancel-confirmation-title { margin-bottom: 5px; }

.cancel-confirmation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 13px;
}

.cancel-confirmation-actions form { margin: 0; }

.portal-button.secondary {
  border-color: var(--border);
  background: var(--white);
  color: var(--ink);
}

.portal-button.secondary:hover {
  border-color: var(--border);
  background: var(--section-bg);
}

.portal-button.danger {
  border-color: #b42318;
  background: #b42318;
  color: #ffffff;
  font-family: inherit;
  cursor: pointer;
}

.portal-button.danger:hover {
  border-color: #962017;
  background: #962017;
}

.refund-preview,
.cancellation-summary {
  margin-top: 11px;
  border: 1px solid var(--divider);
  border-radius: 10px;
  overflow: hidden;
  background: var(--white);
}

.refund-preview > div,
.cancellation-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 10px;
  border-bottom: 1px solid var(--divider);
  color: var(--text);
  font-size: 11.5px;
  line-height: 1.35;
}

.refund-preview > div:last-child,
.cancellation-summary-row:last-child { border-bottom: 0; }

.refund-preview strong,
.cancellation-summary-row strong {
  color: var(--ink);
  text-align: right;
}

.cancellation-summary-row.emphasis {
  background: var(--green-soft);
}

.support-details {
  margin-top: 11px;
  color: var(--text);
  font-size: 11px;
  line-height: 1.55;
  text-align: center;
}

.agency-portal-primary-action {
  padding: 0 12px 14px;
}

.agency-new-booking-button,
.agency-review-button,
.agency-submit-request-button {
  width: 100%;
}

.agency-tour-choice-grid {
  display: grid;
  gap: 14px;
  padding: 0 12px 8px;
}

.agency-tour-choice-grid.modern-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.agency-tour-choice {
  display: block;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  color: inherit;
  text-decoration: none;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(15, 23, 42, .05);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.agency-tour-choice:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, .08);
}

.agency-tour-choice-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.agency-tour-badge,
.agency-tour-select,
.agency-tour-hero-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(26,43,73,.14);
  border-radius: 999px;
  font-size: 10px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .2px;
}

.agency-tour-choice.theme-emerald { background: #f3fff8; border-color: #86e0b4; }
.agency-tour-choice.theme-teal { background: #f1fffd; border-color: #79d9cf; }
.agency-tour-choice.theme-blue { background: #f3f8ff; border-color: #92b7ff; }
.agency-tour-choice.theme-violet { background: #f7f3ff; border-color: #b99cff; }
.agency-tour-choice.theme-burgundy { background: #fff5f8; border-color: #d89bad; }

.agency-tour-choice.theme-emerald .agency-tour-badge,
.agency-tour-choice.theme-teal .agency-tour-badge,
.agency-tour-choice.theme-blue .agency-tour-badge,
.agency-tour-choice.theme-violet .agency-tour-badge,
.agency-tour-choice.theme-burgundy .agency-tour-badge,
.agency-tour-hero.theme-emerald .agency-tour-hero-badge,
.agency-tour-hero.theme-teal .agency-tour-hero-badge,
.agency-tour-hero.theme-blue .agency-tour-hero-badge,
.agency-tour-hero.theme-violet .agency-tour-hero-badge,
.agency-tour-hero.theme-burgundy .agency-tour-hero-badge {
  background: rgba(255,255,255,.64);
  border-color: rgba(26,43,73,.14);
  color: #536075;
}

.agency-tour-select {
  background: rgba(255,255,255,.7);
  color: var(--ink);
  border: 1px solid rgba(15, 23, 42, .08);
}

.agency-tour-choice-title {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.25;
  font-weight: 900;
}

.agency-tour-choice-copy,
.agency-tour-hero-copy {
  margin-top: 8px;
  color: var(--text);
  font-size: 12px;
  line-height: 1.55;
}

.agency-tour-choice-rates,
.agency-rate-box {
  margin-top: 12px;
  border: 1px solid var(--divider);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255,255,255,.88);
}

.agency-rate-box { margin: 14px; }
.modern-rate-box { margin-top: 14px; }

.agency-rate-line {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 12px;
  border-bottom: 1px solid var(--divider);
  color: var(--text);
  font-size: 12px;
  line-height: 1.35;
}

.agency-rate-line:last-child { border-bottom: 0; }
.agency-rate-line strong { color: var(--ink); text-align: right; }

.agency-rate-note,
.agency-tour-choice-season,
.agency-tour-hero-season,
.agency-field-help {
  padding: 9px 0 0;
  color: var(--text);
  font-size: 10.5px;
  line-height: 1.45;
}

.agency-tour-choice-season { font-weight: 650; }

.agency-new-booking-form { padding: 16px; }

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

.agency-form-span-2 { grid-column: 1 / -1; }
.agency-form-field { display: block; }

.agency-form-field > span {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.agency-form-field input,
.agency-form-field select,
.agency-form-field textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid #d7dde7;
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  outline: none;
}

.agency-form-field textarea {
  min-height: 108px;
  resize: vertical;
}

.agency-form-field input:focus,
.agency-form-field select:focus,
.agency-form-field textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(155,239,122,.2);
}

.agency-app-field { display: block; min-width: 0; }
.agency-app-field > span { display:block; margin-bottom:6px; color:var(--ink); font-size:11.5px; font-weight:800; }
.agency-app-field input,
.agency-app-field select,
.agency-app-field textarea { width:100%; min-height:42px; padding:10px 11px; border:1px solid #d7dde7; border-radius:10px; background:var(--white); color:var(--ink); font:inherit; font-size:12px; outline:none; }
.agency-app-field textarea { min-height:82px; resize:vertical; }
.agency-app-field input:focus,
.agency-app-field select:focus,
.agency-app-field textarea:focus { border-color:var(--green); box-shadow:0 0 0 3px rgba(155,239,122,.2); }

.agency-request-note {
  margin: 16px 0;
  padding: 12px 13px;
  border: 1px solid #efc66f;
  border-radius: 12px;
  background: #fff8e8;
  color: #6b5427;
  font-size: 11.5px;
  line-height: 1.5;
}

.agency-request-note strong {
  display: block;
  margin-bottom: 3px;
  color: #5c430f;
}

.agency-request-note-tight { margin: 0 0 14px; }

.portal-form-error,
.portal-request-success {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 0 12px 14px;
  padding: 11px 12px;
  border-radius: 10px;
  font-size: 11.5px;
  line-height: 1.4;
}

.portal-form-error { border: 1px solid #efb7b7; background: #fff7f7; color: #8b2525; }
.portal-request-success { border: 1px solid var(--green); background: var(--green-soft); color: #2f6b3f; }

.agency-tour-hero {
  margin: 14px;
  padding: 16px;
  border-radius: 18px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.7);
}

.agency-tour-hero.theme-emerald { background: linear-gradient(135deg, #e7fff1 0%, #f8fffb 100%); }
.agency-tour-hero.theme-teal { background: linear-gradient(135deg, #e8fffb 0%, #f8fffd 100%); }
.agency-tour-hero.theme-blue { background: linear-gradient(135deg, #ebf3ff 0%, #f8fbff 100%); }
.agency-tour-hero.theme-violet { background: linear-gradient(135deg, #f2ebff 0%, #faf8ff 100%); }
.agency-tour-hero.theme-burgundy { background: linear-gradient(135deg, #f8e7ed 0%, #fff8fa 100%); }

.agency-tour-hero-title {
  margin-top: 10px;
  color: var(--ink);
  font-size: 19px;
  font-weight: 900;
  line-height: 1.25;
}

.agency-review-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 16px;
  color: var(--text);
  font-size: 12px;
}

.agency-review-total strong { color: var(--ink); font-size: 20px; }

.agency-portal-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0 12px 14px;
}

.agency-portal-summary > div {
  padding: 11px 10px;
  border: 1px solid var(--divider);
  border-radius: 10px;
  background: var(--section-bg);
  text-align: center;
}

.agency-portal-summary span {
  display: block;
  color: var(--text);
  font-size: 10px;
  font-weight: 650;
}

.agency-portal-summary strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1;
}

.agency-portal-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.agency-portal-count {
  min-width: 24px;
  padding: 3px 7px;
  border-radius: 999px;
  background: #eef1f6;
  color: var(--text);
  font-size: 10px;
  text-align: center;
}

.agency-booking-list { background: var(--white); }

.agency-booking-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 13px 14px;
  border-bottom: 1px solid var(--divider);
  color: inherit;
  text-decoration: none;
}

.agency-booking-card:last-child { border-bottom: 0; }
.agency-booking-card:hover { background: var(--green-soft); }
.agency-booking-card-main { min-width: 0; }

.agency-booking-card-title {
  color: var(--ink);
  font-size: 12.5px;
  line-height: 1.3;
  font-weight: 800;
}

.agency-booking-card-meta,
.agency-booking-card-ref,
.agency-booking-card-type {
  color: var(--text);
  font-size: 10.5px;
  line-height: 1.35;
}

.agency-booking-card-meta { margin-top: 3px; }
.agency-booking-card-ref { margin-top: 4px; color: var(--link); font-weight: 750; }

.agency-booking-card-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  min-width: 94px;
}

.agency-booking-card-side strong {
  color: var(--ink);
  font-size: 11.5px;
  line-height: 1.2;
}

.agency-portal-empty {
  padding: 18px 14px;
  color: var(--text);
  font-size: 11.5px;
  text-align: center;
}

.agency-portal-help {
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
}

.agency-portal-back {
  padding: 0 12px 8px;
}

/* Agency portal — mobile app visual language */
.agency-app-screen {
  position: relative;
  padding-bottom: 10px;
}

.agency-app-topbar {
  display: grid;
  grid-template-columns: 38px minmax(0,1fr) 38px;
  align-items: center;
  gap: 10px;
  margin: 0 12px 14px;
  min-height: 44px;
}

.agency-app-topbar.has-logout {
  grid-template-columns: 88px minmax(0,1fr) 88px;
}

.agency-app-topbar.has-logout.has-messages {
  grid-template-columns: 136px minmax(0,1fr) 136px;
}

.agency-app-monogram,
.agency-app-back-button {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #e5e7ef;
  color: #111827;
  text-decoration: none;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 5px 16px rgba(15,23,42,.05);
}

.agency-app-back-button {
  font-size: 28px;
  line-height: 1;
  font-weight: 500;
}

.agency-app-topbar-copy {
  min-width: 0;
  text-align: center;
}

.agency-app-topbar-copy strong {
  display: block;
  color: #111827;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 850;
}

.agency-app-topbar-copy span {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: #7a8191;
  font-size: 10.5px;
  line-height: 1.2;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.agency-app-topbar-copy span.agency-name {
  color: #3f4653;
  font-size: 11.5px;
  font-weight: 750;
  letter-spacing: .05px;
}

.agency-app-topbar-copy .agency-approved-partner {
  width: fit-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 5px auto 0;
  padding: 3px 7px 3px 5px;
  border: 1px solid var(--tag-success-border);
  border-radius: 999px;
  background: #ffffff;
  color: var(--tag-success-text);
  font-size: 9px;
  line-height: 1;
  font-weight: 850;
  letter-spacing: .12px;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
  box-sizing: border-box;
}

.agency-app-topbar-copy .agency-approved-partner img {
  display: block;
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  object-fit: contain;
}

.agency-app-topbar-copy .agency-approved-partner span {
  display: inline;
  margin: 0;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  overflow: visible;
  white-space: nowrap;
  text-overflow: clip;
}

.agency-app-topbar-actions {
  min-width: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
}

.agency-app-secure-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 50%;
  background: #33c58e;
  box-shadow: 0 0 0 4px rgba(51,197,142,.12);
}

.agency-topbar-message-link[hidden],
.agency-message-unread-pill[hidden] {
  display: none !important;
}

.agency-topbar-message-link {
  min-width: 34px;
  height: 30px;
  padding: 0 7px;
  border: 1px solid var(--tag-info-border);
  border-radius: 10px;
  background: var(--tag-info-bg);
  color: var(--tag-info-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-decoration: none;
  box-sizing: border-box;
  box-shadow: 0 4px 12px rgba(75,65,130,.06);
}

.agency-topbar-message-link:hover {
  border-color: #9fb9df;
  background: #e7f0ff;
  color: #315a8b;
}

.agency-topbar-message-link svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.agency-topbar-message-link span {
  color: inherit;
  font-size: 9px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
}

.agency-topbar-logout-form {
  margin: 0;
  display: inline-flex;
}

.agency-topbar-logout-button {
  appearance: none;
  border: 1px solid #e2e6ed;
  border-radius: 10px;
  background: #ffffff;
  color: #5d6675;
  min-height: 30px;
  padding: 6px 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 9px;
  line-height: 1;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(15,23,42,.04);
}

.agency-topbar-logout-button:hover {
  border-color: #d6dbe4;
  color: #293548;
  background: #fafbfc;
}

.agency-topbar-logout-button svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.agency-home-hero {
  margin: 0 12px 14px;
  padding: 20px;
  border-radius: 22px;
  background: linear-gradient(145deg,#f1efff 0%,#edf6ff 48%,#e8fbf8 100%);
  border: 1px solid rgba(112,99,191,.14);
  box-shadow: 0 14px 36px rgba(62,64,113,.09);
}

.agency-home-kicker,
.agency-tours-kicker,
.agency-detail-eyebrow {
  color: #7165b6;
  font-size: 9.5px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 1.15px;
}

.agency-home-hero h1,
.agency-tours-intro h1 {
  margin: 10px 0 8px;
  color: #111318;
  font-size: 29px;
  line-height: .98;
  font-weight: 850;
  letter-spacing: -1.25px;
}

.agency-home-hero h1 span { font-weight: 450; }

.agency-home-hero p,
.agency-tours-intro p {
  margin: 0;
  color: #5e6471;
  font-size: 11.5px;
  line-height: 1.5;
}

.agency-home-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 14px;
  background: #14233c;
  color: #ffffff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(20,35,60,.18);
}

.agency-home-cta strong { font-size: 19px; font-weight: 500; }

.agency-home-metrics {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 9px;
  margin: 0 12px 15px;
}

.agency-metric-card {
  min-width: 0;
  padding: 13px 12px;
  border-radius: 16px;
  border: 1px solid rgba(15,23,42,.06);
  box-shadow: 0 7px 20px rgba(15,23,42,.045);
}

.metric-lilac { background: #f3efff; }
.metric-mint { background: #eafaf4; }
.metric-blue { background: #edf5ff; }
.metric-rose { background: #f8e7ed; }

.agency-metric-card span,
.agency-metric-card small {
  display: block;
  color: #69707e;
  font-size: 9.5px;
  font-weight: 700;
}

.agency-metric-card strong {
  display: block;
  margin: 8px 0 2px;
  color: #111827;
  font-size: 25px;
  line-height: 1;
  font-weight: 820;
}

.agency-app-bookings-shell {
  display: grid;
  gap: 14px;
  margin: 0 12px;
}

.agency-app-section,
.agency-app-form-card,
.agency-detail-card,
.agency-app-help-card {
  overflow: hidden;
  border: 1px solid #e7e8ef;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 9px 28px rgba(15,23,42,.045);
}

.agency-app-section-head,
.agency-app-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 15px;
  border-bottom: 1px solid #eef0f4;
}

.agency-app-section-head > div,
.agency-app-card-head { min-width: 0; }

.agency-app-section-head strong,
.agency-app-card-head strong,
.agency-detail-card-title {
  display: block;
  color: #171923;
  font-size: 12.5px;
  font-weight: 850;
}

.agency-app-section-head > div > span,
.agency-app-card-head > span {
  display: block;
  margin-top: 3px;
  color: #8a90a0;
  font-size: 9.5px;
  font-weight: 550;
}

.agency-app-booking-list { background: #fff; }

.agency-app-booking-card {
  grid-template-columns: 60px minmax(0,1fr) auto;
  gap: 11px;
  padding: 12px 13px;
  border-bottom: 1px solid #eef0f4;
  background: #ffffff;
}

.agency-app-booking-card:hover { background: #fafbff; }

.agency-booking-date-tile {
  min-width: 0;
  padding: 9px 6px;
  border-radius: 13px;
  background: #f3f1fb;
  text-align: center;
}

.agency-booking-date-tile strong,
.agency-booking-date-tile span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agency-booking-date-tile strong { color: #4d477a; font-size: 9.5px; font-weight: 850; }
.agency-booking-date-tile span { margin-top: 3px; color: #8a86aa; font-size: 8.5px; }

.agency-message-unread-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 20px;
  padding: 4px 7px;
  border-radius: 999px;
  background: var(--tag-info-bg);
  border: 1px solid var(--tag-info-border);
  color: var(--tag-info-text);
  font-size: 8.5px;
  line-height: 1;
  font-weight: 850;
  white-space: nowrap;
}

.agency-message-card {
  scroll-margin-top: 16px;
  overflow: hidden;
}

.agency-message-card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.agency-message-card-title small {
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef2f7;
  color: #667085;
  font-size: 9px;
  font-weight: 850;
}

.agency-message-intro {
  padding: 12px 15px 0;
  color: #667085;
  font-size: 10.5px;
  line-height: 1.5;
}

.agency-message-thread {
  max-height: 420px;
  overflow-y: auto;
  scroll-behavior: smooth;
  display: grid;
  gap: 9px;
  padding: 13px 15px 4px;
}

.agency-message-row {
  display: flex;
  justify-content: flex-start;
}

.agency-message-row.agency {
  justify-content: flex-end;
}

.agency-message-bubble {
  width: min(84%, 520px);
  padding: 10px 11px;
  border: 1px solid #e1e6ed;
  border-radius: 13px 13px 13px 4px;
  background: #f7f9fc;
}

.agency-message-row.agency .agency-message-bubble {
  border-color: #cfe7d3;
  border-radius: 13px 13px 4px 13px;
  background: #f3fbf5;
}

.agency-message-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 5px;
}

.agency-message-meta strong {
  color: #1a2b49;
  font-size: 9.5px;
  font-weight: 850;
}

.agency-message-meta span {
  color: #8a93a0;
  font-size: 8.5px;
  white-space: nowrap;
}

.agency-message-text {
  color: #414b5c;
  font-size: 11px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.agency-message-empty {
  padding: 12px;
  border: 1px dashed #dfe4eb;
  border-radius: 11px;
  color: #7a8497;
  background: #fafbfc;
  font-size: 10.5px;
  line-height: 1.45;
  text-align: center;
}

.agency-message-compose {
  margin: 10px 15px 0;
  padding: 13px;
  border: 1px solid #e5e9ef;
  border-radius: 13px;
  background: #fafbfc;
}

.agency-message-footnote {
  padding: 10px 15px 14px;
  color: #8992a0;
  font-size: 9px;
  line-height: 1.45;
}

.agency-app-help-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 12px 0;
  padding: 14px 15px;
}

.agency-app-help-card > div:first-child { min-width: 0; }
.agency-app-help-card strong { display: block; color: #171923; font-size: 12px; }
.agency-app-help-card span { display: block; margin-top: 4px; color: #858b98; font-size: 9.5px; line-height: 1.35; }

.agency-app-help-actions { display: flex; gap: 6px; flex: 0 0 auto; }
.agency-app-help-actions a {
  padding: 7px 9px;
  border-radius: 10px;
  background: #f1f3f8;
  color: #2f3a4d;
  text-decoration: none;
  font-size: 9.5px;
  font-weight: 800;
}

.agency-desktop-help-link {
  background: #ece9f8 !important;
  color: #35305f !important;
}

.agency-portal-security-footer {
  margin: 12px 12px 0;
  padding: 12px 13px;
  border: 1px solid #e6e8ef;
  border-radius: 14px;
  background: #fafbfc;
}
.agency-portal-security-copy strong { display:block;color:#39445a;font-size:10.5px;font-weight:850; }
.agency-portal-security-copy span { display:block;margin-top:4px;color:#7d8595;font-size:9px;line-height:1.45; }
.agency-portal-security-links { display:flex;flex-wrap:wrap;gap:6px 12px;margin-top:8px;align-items:center; }
.agency-portal-security-links a { display:inline-block;color:#0057d9;text-decoration:none;font-size:9.5px;font-weight:800; }
.agency-portal-security-links a:hover { text-decoration:underline; }

.agency-tours-intro {
  margin: 0 12px 14px;
  padding: 18px 18px 4px;
}

.agency-tours-intro h1 { font-size: 30px; }

.agency-app-tour-hero {
  margin: 0 12px 14px;
  border: 1px solid rgba(15,23,42,.05);
  box-shadow: 0 12px 28px rgba(15,23,42,.055);
}

.agency-app-form-card {
  margin: 0 12px 14px;
}

.agency-rate-card .agency-rate-box { margin: 12px 14px 14px; }
.agency-app-form { padding: 14px; }

.agency-app-primary-button {
  min-height: 50px;
  border-radius: 14px;
  box-shadow: 0 9px 20px rgba(88,204,82,.15);
}

.agency-booking-form-actions {
  display: grid;
  gap: 9px;
}

.agency-reset-booking-button {
  width: 100%;
  min-height: 45px;
  border: 1px solid #d9dee7;
  border-radius: 13px;
  background: #ffffff;
  color: #536070;
  font: inherit;
  font-size: 10.5px;
  font-weight: 850;
  letter-spacing: .35px;
  cursor: pointer;
}

.agency-reset-booking-button:hover {
  border-color: #bcc5d2;
  background: #f7f9fc;
  color: #1f2937;
}

.agency-private-included-note {
  display: block;
  margin-top: 7px;
  padding: 7px 9px;
  border-radius: 9px;
  background: #eafaf4;
  color: #17644c;
  font-size: 10px;
  line-height: 1.35;
  font-weight: 800;
}

.agency-private-included-note[hidden] { display: none; }

.agency-review-hero {
  margin: 0 12px 14px;
  padding: 20px 18px;
  border-radius: 21px;
  background: linear-gradient(135deg,#e8fbf7 0%,#edf6ff 58%,#f4efff 100%);
  border: 1px solid rgba(64,151,151,.12);
  text-align: center;
  box-shadow: 0 12px 28px rgba(15,23,42,.055);
}

.agency-review-hero span,
.agency-review-hero small { display: block; color: #6f7887; font-size: 9.5px; font-weight: 800; }
.agency-review-hero strong { display: block; margin: 8px 0 7px; color: #111827; font-size: 34px; line-height: 1; }

.agency-review-detail-card { margin: 0 12px 14px; }
.agency-detail-card-title { padding: 14px 15px; border-bottom: 1px solid #eef0f4; }

.agency-review-rows > div,
.agency-detail-grid > div {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  padding: 11px 15px;
  border-bottom: 1px solid #f0f1f5;
}

.agency-review-rows > div:last-child,
.agency-detail-grid > div:last-child { border-bottom: 0; }
.agency-review-rows span,
.agency-detail-grid span { color: #777e8d; font-size: 10.5px; }
.agency-review-rows strong,
.agency-detail-grid strong { color: #171923; font-size: 11px; text-align: right; }

.agency-app-pending-note { margin: 0 12px 14px; }
.agency-app-submit-form { margin: 0 12px; }

.agency-detail-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin: 0 12px 14px;
  padding: 18px;
  border-radius: 21px;
  background: linear-gradient(135deg,#f0efff 0%,#eef8ff 100%);
  border: 1px solid rgba(95,84,165,.12);
}

.agency-detail-hero h1 { margin: 7px 0 5px; color: #111827; font-size: 19px; line-height: 1.12; }
.agency-detail-hero p { margin: 0; color: #69707e; font-size: 10.5px; }
.agency-detail-card { margin: 0 12px 14px; }
.agency-detail-grid { display: grid; grid-template-columns: 1fr 1fr; }
.agency-detail-grid > div { display: block; border-right: 1px solid #f0f1f5; }
.agency-detail-grid > div:nth-child(2n) { border-right: 0; }
.agency-detail-grid strong { display: block; margin-top: 5px; text-align: left; font-size: 12px; }

.agency-guest-chips { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; padding: 13px; }
.agency-guest-chips span { padding: 11px 9px; border-radius: 13px; background: #f5f6fa; color: #737a89; font-size: 9.5px; text-align: center; }
.agency-guest-chips strong { display: block; margin-top: 4px; color: #171923; font-size: 18px; }

.agency-detail-total-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 12px 14px;
  padding: 16px;
  border-radius: 18px;
  background: #14233c;
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(20,35,60,.15);
}
.agency-detail-total-card span { font-size: 10.5px; opacity: .78; }
.agency-detail-total-card strong { font-size: 22px; }

.agency-help-hero {
  margin: 0 12px 14px;
  padding: 21px 18px;
  border: 1px solid rgba(95,84,165,.12);
  border-radius: 21px;
  background: linear-gradient(135deg,#f3efff 0%,#edf7ff 62%,#eafaf4 100%);
  box-shadow: 0 12px 28px rgba(15,23,42,.055);
}
.agency-help-hero > span { display:block;color:#706b92;font-size:9px;font-weight:850;letter-spacing:.09em; }
.agency-help-hero h1 { margin:7px 0 6px;color:#111827;font-size:25px;line-height:1.1; }
.agency-help-hero p { margin:0;color:#69707e;font-size:11px;line-height:1.5; }
.agency-help-copy { padding:14px 15px; }
.agency-help-copy p { margin:0;color:#4b587c;font-size:11.5px;line-height:1.55; }
.agency-help-copy p + p { margin-top:9px; }
.agency-help-copy strong { color:#1a2b49; }
.agency-help-status-list { padding:5px 15px 13px; }
.agency-help-status-list > div { padding:10px 0;border-bottom:1px solid #eef0f4; }
.agency-help-status-list > div:last-child { border-bottom:0; }
.agency-help-status-list p { margin:6px 0 0;color:#697386;font-size:10.5px;line-height:1.45; }
.agency-help-faq-list { padding:3px 15px 14px; }
.agency-help-faq { border-bottom:1px solid #eef0f4; }
.agency-help-faq:last-child { border-bottom:0; }
.agency-help-faq summary { padding:11px 0;color:#1a2b49;font-size:11px;font-weight:800;cursor:pointer; }
.agency-help-faq > div { padding:0 0 11px;color:#697386;font-size:10.5px;line-height:1.5; }
.agency-help-faq p { margin:0; }
.agency-change-count-grid { display:grid;grid-template-columns:repeat(3,1fr);gap:8px; }
.agency-change-summary { display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-top:11px; }
.agency-change-summary > div { padding:10px;border:1px solid #e7ebf2;border-radius:11px;background:#fafbfc; }
.agency-change-summary span { display:block;color:#7a8497;font-size:9px; }
.agency-change-summary strong { display:block;margin-top:4px;color:#1a2b49;font-size:11px; }
.agency-change-message { margin-top:9px;padding:10px 11px;border:1px solid #e7ebf2;border-radius:10px;background:#fafbfc; }
.agency-change-message strong,.agency-change-message span { display:block; }
.agency-change-message strong { color:#1a2b49;font-size:10px; }
.agency-change-message span { margin-top:4px;color:#64748b;font-size:10.5px;line-height:1.45; }
.agency-change-outcome { margin-bottom:11px;padding:10px 11px;border-radius:10px;font-size:10.5px;line-height:1.45; }
.agency-change-outcome strong,.agency-change-outcome span { display:block; }
.agency-change-outcome span { margin-top:3px; }
.agency-change-outcome.approved { background:#F7FFF4;border:1px solid #bfe7ae;color:#35533b; }
.agency-change-outcome.declined { background:#fff7f7;border:1px solid #ebc6c6;color:#7e3b3b; }
.agency-internal-note-list { display:grid;gap:8px;margin-top:14px; }
.agency-internal-note { padding:10px 11px;border:1px solid var(--divider);border-radius:10px;background:var(--section-bg); }
.agency-internal-note > div { color:var(--ink);font-size:11px;line-height:1.45; }
.agency-internal-note > span { display:block;margin-top:5px;color:var(--muted);font-size:9px; }

.agency-mobile-nav {
  display: none;
}

@media (min-width: 640px) {
  .page { padding: 30px 20px 40px; }
  .brand-logo-wrap { padding-left: 14px; padding-right: 14px; }
  .portal-top { padding-left: 14px; padding-right: 14px; }
  .portal-tour-title { font-size: 18px; }
  .portal-row { min-height: 47px; padding-left: 16px; padding-right: 16px; }
  .portal-section-header { padding-left: 16px; padding-right: 16px; }
  .portal-section-body { padding: 16px; }
}

@media (max-width: 480px) {
  .agency-desktop-help-link {
    display: none !important;
  }

  .agency-message-bubble {
    width: 92%;
  }

  .agency-message-compose {
    margin-left: 12px;
    margin-right: 12px;
  }

  .agency-app-topbar.has-logout {
    grid-template-columns: 54px minmax(0,1fr) 54px;
    gap: 6px;
  }

  .agency-app-topbar.has-logout.has-messages {
    grid-template-columns: 88px minmax(0,1fr) 88px;
  }

  .agency-app-topbar.has-logout .agency-app-monogram {
    width: 34px;
    height: 34px;
  }

  .agency-app-topbar.has-logout .agency-app-topbar-actions {
    gap: 7px;
  }

  .agency-app-topbar.has-logout .agency-topbar-message-link {
    min-width: 29px;
    height: 29px;
    padding: 0 5px;
    border-radius: 9px;
    gap: 3px;
  }

  .agency-app-topbar.has-logout .agency-topbar-message-link svg {
    width: 13px;
    height: 13px;
  }

  .agency-app-topbar.has-logout .agency-topbar-message-link span {
    font-size: 8px;
  }

  .agency-app-topbar.has-logout .agency-topbar-logout-button {
    width: 29px;
    height: 29px;
    min-height: 29px;
    padding: 0;
    border-radius: 9px;
  }

  .agency-app-topbar.has-logout .agency-topbar-logout-button span {
    display: none;
  }

  .agency-app-topbar.has-logout .agency-topbar-logout-button svg {
    width: 14px;
    height: 14px;
  }

  body:has(.agency-app-screen) {
    background: #efedf6;
  }

  .page:has(.agency-app-screen) {
    max-width: none;
    padding: 0;
    background: #efedf6;
  }

  .page:has(.agency-app-screen) .brand-logo-wrap {
    display: none;
  }

  .agency-app-screen {
    min-height: 100vh;
    padding: 16px 0 92px;
    background:
      radial-gradient(circle at 18% 12%, rgba(199,185,242,.38), transparent 31%),
      radial-gradient(circle at 88% 42%, rgba(173,230,232,.28), transparent 30%),
      linear-gradient(180deg,#f7f6fb 0%,#f2f1f7 62%,#efedf6 100%);
  }

  .agency-mobile-nav {
    position: fixed;
    z-index: 50;
    left: 10px;
    right: 10px;
    bottom: calc(8px + env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: repeat(4,1fr);
    min-height: 62px;
    padding: 7px 6px 6px;
    border: 1px solid rgba(30,41,59,.08);
    border-radius: 19px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 16px 38px rgba(40,42,64,.16);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .agency-mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border-radius: 13px;
    color: #8a8f9d;
    text-decoration: none;
    font-size: 8.5px;
    font-weight: 700;
  }

  .agency-mobile-nav-item.active {
    background: #f1eff9;
    color: #17233b;
  }

  .agency-mobile-nav-icon {
    width: 19px;
    height: 19px;
  }

  .agency-mobile-nav-icon svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: currentColor;
  }

  .agency-home-metrics { grid-template-columns: 1fr 1fr; }
  .agency-metric-card { min-height: 92px; }
  .agency-tour-choice-grid.modern-grid { grid-template-columns: 1fr; gap: 12px; }
  .agency-tour-choice { border-radius: 20px; padding: 15px; }
  .agency-tour-choice-title { font-size: 17px; }
  .agency-tour-choice-copy { font-size: 11px; }
  .agency-app-booking-card { grid-template-columns: 54px minmax(0,1fr); }
  .agency-app-booking-card .agency-booking-card-side {
    grid-column: 2;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }
  .agency-app-booking-card .status-chip { max-width: 150px; }
  .agency-app-help-card { align-items: flex-start; flex-direction: column; }
  .agency-app-help-actions { width: 100%; }
  .agency-app-help-actions a { flex: 1; text-align: center; }
  .agency-detail-grid { grid-template-columns: 1fr 1fr; }
  .agency-change-count-grid { grid-template-columns: 1fr 1fr 1fr; }
  .agency-change-summary { grid-template-columns: 1fr; }

  .page { padding: 18px 10px 30px; }
  .brand-logo-wrap { padding: 0 8px 14px; }
  .brand-logo { width: 118px; max-width: 58%; }
  .portal-top { padding-left: 8px; padding-right: 8px; }
  .portal-tour-title { font-size: 15px; }
  .portal-tour-subtitle { font-size: 11px; }
  .status-chip { min-height: 28px; padding: 6px 9px; font-size: 9px; }

  .portal-row {
    grid-template-columns: minmax(130px, 48%) 1fr;
    gap: 8px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .portal-row-label,
  .portal-row-value { font-size: 11.5px; }

  .agency-portal-primary-action,
  .agency-tour-choice-grid { padding-left: 8px; padding-right: 8px; }
  .agency-form-grid { grid-template-columns: 1fr; }
  .agency-form-span-2 { grid-column: auto; }
  .portal-form-error,
  .portal-request-success { margin-left: 8px; margin-right: 8px; }
  .agency-portal-summary { margin-left: 8px; margin-right: 8px; gap: 6px; }
  .agency-portal-summary > div { padding: 9px 6px; }
  .agency-booking-card:not(.agency-app-booking-card) { grid-template-columns: 1fr; gap: 9px; padding: 12px; }
  .agency-booking-card:not(.agency-app-booking-card) .agency-booking-card-side { flex-direction: row; align-items: center; justify-content: space-between; min-width: 0; }

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

  .cancel-confirmation-actions { display: grid; grid-template-columns: 1fr; }
  .cancel-confirmation-actions .portal-button,
  .cancel-confirmation-actions form,
  .cancel-confirmation-actions button { width: 100%; }

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

@media (max-width: 360px) {
  .portal-row {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .portal-row-value {
    padding-left: 27px;
    text-align: left;
  }
}

/* ============================================================
   BQ17.4 — PREMIUM AGENCY PORTAL SPACING + RESPONSIVE POLISH
   Desktop + mobile visual refinement only.
   ============================================================ */
.page:has(.agency-app-screen) {
  max-width: 920px;
  padding: 30px 22px 46px;
}

.page:has(.agency-app-screen) .brand-logo-wrap {
  padding-left: 16px;
  padding-right: 16px;
  padding-bottom: 20px;
}

.agency-app-topbar {
  margin: 0 16px 18px;
}

.agency-home-hero {
  margin: 0 16px 18px;
  padding: 25px 26px;
  border-radius: 24px;
  border-color: rgba(112,99,191,.12);
  box-shadow: 0 14px 34px rgba(40,43,72,.065);
}

.agency-home-hero h1 {
  margin-top: 11px;
  margin-bottom: 10px;
  font-size: 34px;
  line-height: 1;
  letter-spacing: -1.45px;
}

.agency-home-hero p {
  max-width: 650px;
  font-size: 12.25px;
  line-height: 1.58;
}

.agency-home-cta {
  min-height: 50px;
  margin-top: 20px;
  padding: 0 18px;
  border-radius: 14px;
  box-shadow: 0 9px 20px rgba(20,35,60,.14);
}

.agency-home-metrics {
  gap: 11px;
  margin: 0 16px 18px;
}

.agency-metric-card {
  padding: 16px 15px;
  border-radius: 17px;
  border-color: rgba(15,23,42,.055);
  box-shadow: 0 5px 16px rgba(15,23,42,.035);
}

.agency-metric-card span,
.agency-metric-card small {
  font-size: 9.75px;
}

.agency-metric-card strong {
  margin-top: 9px;
  font-size: 27px;
  letter-spacing: -.4px;
}

.agency-app-bookings-shell {
  gap: 16px;
  margin: 0 16px;
}

.agency-app-section,
.agency-app-form-card,
.agency-detail-card,
.agency-app-help-card {
  border-radius: 18px;
  border-color: #e4e7ed;
  box-shadow: 0 8px 22px rgba(15,23,42,.04);
}

.agency-app-section-head,
.agency-app-card-head,
.agency-detail-card-title {
  padding: 15px 17px;
}

.agency-app-section-head strong,
.agency-app-card-head strong,
.agency-detail-card-title {
  font-size: 13px;
}

.agency-app-section-head > div > span,
.agency-app-card-head > span {
  margin-top: 4px;
  font-size: 9.75px;
  line-height: 1.35;
}

.agency-app-booking-card {
  grid-template-columns: 64px minmax(0,1fr) auto;
  gap: 14px;
  padding: 14px 16px;
}

.agency-booking-date-tile {
  padding: 10px 7px;
  border-radius: 13px;
}

.agency-booking-card-title {
  font-size: 13px;
  line-height: 1.35;
}

.agency-booking-card-meta,
.agency-booking-card-ref,
.agency-booking-card-type {
  font-size: 10.75px;
  line-height: 1.4;
}

.agency-booking-card-meta {
  margin-top: 4px;
}

.agency-booking-card-ref {
  margin-top: 5px;
}

.agency-booking-card-side {
  gap: 6px;
  min-width: 100px;
}

.status-chip {
  min-height: 29px;
  padding: 6px 10px;
  border-radius: 11px;
  font-size: 9.5px;
  letter-spacing: .28px;
  box-shadow: none;
}

.agency-message-unread-pill {
  min-height: 21px;
  padding: 4px 8px;
  font-size: 8.5px;
  box-shadow: none;
}

.agency-tours-intro,
.agency-app-tour-hero,
.agency-app-form-card,
.agency-review-hero,
.agency-review-detail-card,
.agency-app-pending-note,
.agency-app-submit-form,
.agency-detail-hero,
.agency-detail-card,
.agency-detail-total-card,
.agency-help-hero {
  margin-left: 16px;
  margin-right: 16px;
}

.agency-tour-choice-grid {
  gap: 16px;
  padding-left: 16px;
  padding-right: 16px;
}

.agency-tour-choice {
  padding: 18px;
  border-radius: 19px;
  box-shadow: 0 7px 20px rgba(15,23,42,.035);
}

.agency-tour-choice:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(15,23,42,.055);
}

.agency-tour-choice-title {
  font-size: 18px;
  line-height: 1.28;
}

.agency-tour-choice-copy,
.agency-tour-hero-copy {
  font-size: 11.75px;
  line-height: 1.55;
}

.agency-tour-choice-rates,
.agency-rate-box {
  border-radius: 13px;
}

.agency-rate-line {
  padding: 11px 13px;
}

.agency-app-form {
  padding: 16px;
}

.agency-form-grid {
  gap: 15px;
}

.agency-form-field input,
.agency-form-field select,
.agency-form-field textarea {
  border-radius: 11px;
}

.agency-review-hero,
.agency-detail-hero,
.agency-help-hero {
  border-radius: 20px;
  box-shadow: 0 10px 26px rgba(15,23,42,.045);
}

.agency-detail-hero {
  padding: 20px;
}

.agency-detail-hero h1 {
  font-size: 21px;
  line-height: 1.15;
}

.agency-detail-grid > div,
.agency-review-rows > div {
  padding: 12px 16px;
}

.agency-detail-total-card {
  padding: 17px 18px;
  border-radius: 17px;
  box-shadow: 0 10px 24px rgba(20,35,60,.12);
}

.agency-app-help-card {
  margin: 16px 16px 0;
  padding: 15px 17px;
}

.agency-portal-security-footer {
  margin: 14px 16px 0;
  padding: 13px 15px;
  border-radius: 13px;
}

.agency-message-intro {
  padding-left: 17px;
  padding-right: 17px;
}

.agency-message-thread {
  gap: 10px;
  padding-left: 17px;
  padding-right: 17px;
}

.agency-message-bubble {
  padding: 11px 12px;
  border-radius: 14px 14px 14px 5px;
}

.agency-message-row.agency .agency-message-bubble {
  border-radius: 14px 14px 5px 14px;
}

.agency-message-compose {
  margin-left: 17px;
  margin-right: 17px;
  padding: 14px;
}

@media (min-width: 900px) {
  .agency-home-hero {
    padding: 28px 30px;
  }

  .agency-home-cta {
    width: min(360px, 100%);
  }

  .agency-app-section-head,
  .agency-app-card-head,
  .agency-detail-card-title {
    padding-left: 18px;
    padding-right: 18px;
  }
}

@media (max-width: 640px) {
  .page:has(.agency-app-screen) {
    padding: 0;
  }

  .agency-app-screen {
    padding-top: 14px;
  }

  .agency-app-topbar {
    margin: 0 12px 14px;
  }

  .agency-home-hero {
    margin: 0 12px 14px;
    padding: 20px;
    border-radius: 21px;
    box-shadow: 0 10px 26px rgba(40,43,72,.055);
  }

  .agency-home-hero h1 {
    margin-top: 10px;
    margin-bottom: 8px;
    font-size: 29px;
    letter-spacing: -1.2px;
  }

  .agency-home-hero p {
    font-size: 11.5px;
    line-height: 1.52;
  }

  .agency-home-cta {
    min-height: 48px;
    margin-top: 18px;
    padding: 0 16px;
  }

  .agency-home-metrics {
    gap: 9px;
    margin: 0 12px 15px;
  }

  .agency-metric-card {
    min-height: 90px;
    padding: 13px 12px;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(15,23,42,.025);
  }

  .agency-metric-card span,
  .agency-metric-card small {
    font-size: 9.25px;
  }

  .agency-metric-card strong {
    margin-top: 8px;
    font-size: 24px;
  }

  .agency-app-bookings-shell {
    gap: 13px;
    margin: 0 12px;
  }

  .agency-app-section,
  .agency-app-form-card,
  .agency-detail-card,
  .agency-app-help-card {
    border-radius: 17px;
    box-shadow: 0 6px 18px rgba(15,23,42,.032);
  }

  .agency-app-section-head,
  .agency-app-card-head,
  .agency-detail-card-title {
    padding: 13px 14px;
  }

  .agency-app-section-head strong,
  .agency-app-card-head strong,
  .agency-detail-card-title {
    font-size: 12.5px;
  }

  .agency-app-booking-card {
    grid-template-columns: 54px minmax(0,1fr);
    gap: 10px;
    padding: 12px 13px;
  }

  .agency-booking-card-title {
    font-size: 12.5px;
  }

  .agency-booking-card-meta,
  .agency-booking-card-ref,
  .agency-booking-card-type {
    font-size: 10.25px;
  }

  .agency-app-booking-card .agency-booking-card-side {
    grid-column: 2;
    gap: 7px;
  }

  .status-chip {
    min-height: 27px;
    padding: 5px 9px;
    border-radius: 10px;
    font-size: 8.75px;
  }

  .agency-tours-intro,
  .agency-app-tour-hero,
  .agency-app-form-card,
  .agency-review-hero,
  .agency-review-detail-card,
  .agency-app-pending-note,
  .agency-app-submit-form,
  .agency-detail-hero,
  .agency-detail-card,
  .agency-detail-total-card,
  .agency-help-hero {
    margin-left: 12px;
    margin-right: 12px;
  }

  .agency-tour-choice-grid {
    gap: 12px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .agency-tour-choice {
    padding: 15px;
    border-radius: 18px;
    box-shadow: 0 5px 15px rgba(15,23,42,.028);
  }

  .agency-tour-choice:hover {
    transform: none;
  }

  .agency-tour-choice-title {
    font-size: 17px;
  }

  .agency-tour-choice-copy,
  .agency-tour-hero-copy {
    font-size: 11px;
  }

  .agency-app-form {
    padding: 14px;
  }

  .agency-detail-hero {
    padding: 17px;
  }

  .agency-detail-hero h1 {
    font-size: 19px;
  }

  .agency-detail-grid > div,
  .agency-review-rows > div {
    padding: 11px 14px;
  }

  .agency-detail-total-card {
    padding: 15px 16px;
  }

  .agency-app-help-card {
    margin: 14px 12px 0;
    padding: 14px;
  }

  .agency-portal-security-footer {
    margin: 12px 12px 0;
    padding: 12px 13px;
  }

  .agency-message-intro {
    padding-left: 14px;
    padding-right: 14px;
  }

  .agency-message-thread {
    padding-left: 14px;
    padding-right: 14px;
  }

  .agency-message-compose {
    margin-left: 12px;
    margin-right: 12px;
    padding: 13px;
  }
}

@media (max-width: 380px) {
  .agency-home-hero h1 {
    font-size: 27px;
  }

  .agency-home-metrics {
    gap: 8px;
  }

  .agency-metric-card {
    min-height: 86px;
    padding: 12px 10px;
  }

  .agency-metric-card strong {
    font-size: 23px;
  }

  .agency-app-booking-card {
    grid-template-columns: 50px minmax(0,1fr);
    padding-left: 11px;
    padding-right: 11px;
  }

  .agency-booking-date-tile {
    padding-left: 5px;
    padding-right: 5px;
  }

  .agency-detail-hero {
    gap: 10px;
  }

  .agency-detail-hero .status-chip {
    max-width: 132px;
    white-space: normal;
    text-align: center;
    line-height: 1.15;
  }
}

/* ============================================================
   BQ17.10 — AGENCY PORTAL MOBILE HOME
   Scoped to the Agency Portal home screen.
   ============================================================ */
body:has(.agency-home-screen) {
  min-height: 100vh;
  background:
    radial-gradient(circle at 9% 4%, rgba(207,216,255,.64), transparent 25%),
    radial-gradient(circle at 91% 22%, rgba(228,214,255,.58), transparent 29%),
    radial-gradient(circle at 83% 62%, rgba(208,245,234,.46), transparent 31%),
    linear-gradient(155deg,#f8f9ff 0%,#f2f4fc 48%,#f8f4fb 100%);
  background-attachment: fixed;
}

.page:has(.agency-home-screen) {
  max-width: 820px;
  padding: 0 18px 48px;
  background: transparent;
}

.page:has(.agency-home-screen) .brand-logo-wrap {
  display: none;
}

.agency-home-screen {
  min-height: 100vh;
  padding: 24px 0 36px;
  background: transparent;
}

.agency-home-screen .agency-home-topbar {
  grid-template-columns: 72px minmax(0,1fr) auto;
  gap: 15px;
  min-height: 76px;
  margin: 0 4px 24px;
}

.agency-home-screen .agency-home-topbar.has-logout,
.agency-home-screen .agency-home-topbar.has-logout.has-messages {
  grid-template-columns: 72px minmax(0,1fr) auto;
}

.agency-home-screen .agency-app-monogram {
  width: 68px;
  height: 68px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(145deg,#07112f 0%,#071b48 100%);
  color: #fff;
  font-size: 21px;
  letter-spacing: -.35px;
  box-shadow: 0 13px 30px rgba(7,17,47,.18);
}

.agency-home-screen .agency-app-topbar-copy {
  text-align: left;
}

.agency-home-screen .agency-app-topbar-copy strong {
  overflow: hidden;
  color: #080f29;
  font-size: 25px;
  line-height: 1.08;
  letter-spacing: -.75px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.agency-home-screen .agency-app-topbar-copy span.agency-name {
  margin-top: 5px;
  color: #70768a;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 500;
}

.agency-home-screen .agency-app-topbar-copy .agency-approved-partner {
  justify-content: flex-start;
  margin: 9px 0 0;
  padding: 5px 10px 5px 7px;
  border-color: rgba(45,177,104,.25);
  background: rgba(248,255,252,.62);
  color: #28a35f;
  font-size: 10.5px;
  font-weight: 700;
  box-shadow: inset 0 1px rgba(255,255,255,.8);
}

.agency-home-screen .agency-app-topbar-actions {
  min-width: 0;
  gap: 8px;
}

.agency-home-screen .agency-app-secure-dot {
  width: 11px;
  height: 11px;
  flex-basis: 11px;
  background: #22c987;
  box-shadow: 0 0 0 5px rgba(34,201,135,.1), 0 0 14px rgba(34,201,135,.25);
}

.agency-home-screen .agency-topbar-message-link,
.agency-home-screen .agency-topbar-logout-button {
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.82);
  border-radius: 15px;
  background: linear-gradient(145deg,rgba(255,255,255,.88),rgba(244,246,255,.65));
  color: #536079;
  box-shadow: 0 10px 25px rgba(45,52,82,.1), inset 0 1px rgba(255,255,255,.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.agency-home-screen .agency-topbar-message-link:hover,
.agency-home-screen .agency-topbar-logout-button:hover {
  border-color: rgba(180,186,218,.72);
  background: rgba(255,255,255,.96);
  color: #293553;
}

.agency-home-screen .agency-topbar-message-link svg,
.agency-home-screen .agency-topbar-logout-button svg {
  width: 18px;
  height: 18px;
}

.agency-home-screen .agency-topbar-logout-button span {
  display: none;
}

.agency-home-screen .agency-topbar-message-link {
  position: relative;
  min-width: 44px;
  gap: 0;
}

.agency-home-screen .agency-topbar-message-link span {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid #f5f6fc;
  border-radius: 999px;
  background: #6a4af5;
  color: #fff;
  font-size: 8px;
}

.agency-home-screen .agency-home-hero {
  position: relative;
  isolation: isolate;
  min-height: 360px;
  margin: 0 0 20px;
  padding: 34px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 32px;
  background:
    radial-gradient(circle at 18% 20%,rgba(94,142,255,.92),transparent 39%),
    radial-gradient(circle at 77% 16%,rgba(209,218,255,.85),transparent 33%),
    radial-gradient(circle at 78% 76%,rgba(164,130,255,.73),transparent 38%),
    linear-gradient(145deg,#658ff2 0%,#91baf6 46%,#b4a4f8 100%);
  box-shadow: 0 24px 58px rgba(72,92,170,.22), inset 0 0 0 1px rgba(124,135,226,.32);
}

.agency-home-screen .agency-home-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -36% -24% 8% 28%;
  border: 2px solid rgba(255,255,255,.22);
  border-radius: 50%;
  transform: rotate(-23deg);
  box-shadow: 0 0 58px rgba(255,255,255,.17);
}

.agency-home-screen .agency-home-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -8%;
  bottom: -35%;
  width: 64%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle,rgba(255,255,255,.32),rgba(255,255,255,0) 68%);
  filter: blur(8px);
}

.agency-home-screen .agency-home-hero-copy {
  position: relative;
  z-index: 2;
  max-width: 66%;
}

.agency-home-screen .agency-home-kicker {
  color: rgba(255,255,255,.86);
  font-size: 11px;
  letter-spacing: 1.8px;
  text-shadow: 0 1px 12px rgba(50,69,151,.22);
}

.agency-home-screen .agency-home-hero h1 {
  margin: 21px 0 16px;
  color: #fff;
  font-size: 43px;
  line-height: 1.08;
  letter-spacing: -1.8px;
  text-shadow: 0 3px 22px rgba(62,78,164,.18);
}

.agency-home-screen .agency-home-hero h1 span {
  font-weight: 480;
}

.agency-home-screen .agency-home-hero p {
  max-width: 500px;
  color: rgba(255,255,255,.92);
  font-size: 14px;
  line-height: 1.62;
  text-shadow: 0 2px 12px rgba(57,74,149,.18);
}

.agency-home-screen .agency-home-cta {
  position: relative;
  z-index: 3;
  width: min(250px,100%);
  min-height: 58px;
  margin-top: 28px;
  padding: 0 10px 0 22px;
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 18px;
  background: rgba(255,255,255,.93);
  color: #0b1533;
  font-size: 14px;
  box-shadow: 0 15px 32px rgba(48,61,135,.22), inset 0 1px rgba(255,255,255,1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.agency-home-screen .agency-home-cta:hover {
  transform: translateY(-1px);
  background: #fff;
  box-shadow: 0 18px 36px rgba(48,61,135,.27), inset 0 1px rgba(255,255,255,1);
}

.agency-home-screen .agency-home-cta strong {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(145deg,#7654ff,#5d35ef);
  color: #fff;
  font-size: 22px;
  box-shadow: 0 8px 18px rgba(99,65,242,.28);
}

.agency-home-screen .agency-home-hero-illustration {
  position: absolute;
  z-index: 1;
  top: 58px;
  right: -10px;
  width: 51%;
  max-width: 390px;
  height: auto;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 24px 30px rgba(62,68,159,.2));
}

.agency-home-screen .agency-home-metrics {
  gap: 14px;
  margin: 0 0 22px;
}

.agency-home-screen .agency-metric-card {
  min-height: 112px;
  display: grid;
  grid-template-columns: 48px minmax(0,1fr) 26px;
  align-items: center;
  gap: 13px;
  padding: 17px;
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 23px;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(65,73,110,.075), inset 0 1px rgba(255,255,255,.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.agency-home-screen .agency-metric-card:hover {
  transform: translateY(-2px);
  border-color: rgba(172,178,216,.56);
  box-shadow: 0 18px 38px rgba(65,73,110,.11), inset 0 1px rgba(255,255,255,.95);
}

.agency-home-screen .metric-lilac { background: linear-gradient(145deg,rgba(255,255,255,.8),rgba(246,242,255,.72)); }
.agency-home-screen .metric-mint { background: linear-gradient(145deg,rgba(255,255,255,.82),rgba(240,252,247,.75)); }
.agency-home-screen .metric-blue { background: linear-gradient(145deg,rgba(255,255,255,.82),rgba(239,247,255,.76)); }
.agency-home-screen .metric-rose { background: linear-gradient(145deg,rgba(255,255,255,.82),rgba(255,241,246,.75)); }

.agency-home-screen .agency-metric-icon {
  position: relative;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
}

.agency-home-screen .metric-lilac .agency-metric-icon { background: #eee9ff; color: #714ff4; }
.agency-home-screen .metric-mint .agency-metric-icon { background: #e7faef; color: #1dbb64; }
.agency-home-screen .metric-blue .agency-metric-icon { background: #e9f3ff; color: #2873d3; }
.agency-home-screen .metric-rose .agency-metric-icon { background: #ffebef; color: #e34860; }

.agency-home-screen .agency-metric-icon svg,
.agency-home-screen .agency-metric-icon img {
  width: 25px;
  height: 25px;
  display: block;
  object-fit: contain;
}

.agency-home-screen .agency-metric-icon svg {
  fill: currentColor;
}

.agency-home-screen .agency-metric-icon-clock::before {
  content: "";
  width: 24px;
  height: 24px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.agency-home-screen .agency-metric-icon-clock::after {
  content: "";
  position: absolute;
  top: 14px;
  left: 23px;
  width: 7px;
  height: 9px;
  border-bottom: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: rotate(-18deg);
  transform-origin: 0 100%;
}

.agency-home-screen .agency-metric-icon-check::before {
  content: "";
  width: 24px;
  height: 24px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.agency-home-screen .agency-metric-icon-check::after {
  content: "";
  position: absolute;
  top: 18px;
  left: 18px;
  width: 10px;
  height: 5px;
  border-bottom: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: rotate(-45deg);
}

.agency-home-screen .agency-metric-copy {
  min-width: 0;
}

.agency-home-screen .agency-metric-copy > span,
.agency-home-screen .agency-metric-copy small {
  overflow: hidden;
  color: #687189;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.agency-home-screen .agency-metric-copy strong {
  margin: 6px 0 2px;
  color: #08112f;
  font-size: 30px;
  font-weight: 760;
  letter-spacing: -1px;
}

.agency-home-screen .agency-metric-arrow,
.agency-home-screen .agency-booking-open-arrow {
  width: 10px;
  height: 10px;
  justify-self: center;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  color: #7d879c;
  transform: rotate(45deg);
}

.agency-home-screen .agency-metric-arrow {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.86);
  border-radius: 50%;
  background: rgba(255,255,255,.45);
  transform: none;
  box-shadow: inset 0 1px rgba(255,255,255,.72);
}

.agency-home-screen .agency-metric-arrow::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: -2px;
  border-top: 1.5px solid #728097;
  border-right: 1.5px solid #728097;
  transform: rotate(45deg);
}

.agency-home-screen .agency-app-bookings-shell {
  gap: 18px;
  margin: 0;
}

.agency-home-screen .agency-app-section {
  scroll-margin-top: 18px;
  border: 1px solid rgba(255,255,255,.84);
  border-radius: 25px;
  background: rgba(255,255,255,.74);
  box-shadow: 0 16px 38px rgba(65,73,110,.075), inset 0 1px rgba(255,255,255,.95);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.agency-home-screen .agency-app-section-head {
  min-height: 65px;
  padding: 17px 21px;
  border-bottom-color: rgba(219,224,238,.7);
}

.agency-home-screen .agency-app-section-head strong {
  color: #0b1431;
  font-size: 15px;
  letter-spacing: -.2px;
}

.agency-home-screen .agency-app-section-head > div > span {
  color: #8991a5;
  font-size: 10px;
}

.agency-home-screen .agency-app-section-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.agency-home-screen .agency-section-view-all {
  color: #5c45dc;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

.agency-home-screen .agency-section-view-all:hover {
  color: #4430ba;
  text-decoration: underline;
}

.agency-home-screen .agency-portal-count {
  min-width: 29px;
  height: 29px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  background: rgba(243,240,255,.86);
  color: #7057ec;
  font-size: 11px;
  font-weight: 800;
}

.agency-home-screen .agency-app-booking-list {
  background: transparent;
}

.agency-home-screen .agency-app-booking-card {
  grid-template-columns: 70px minmax(0,1fr) auto 16px;
  gap: 14px;
  min-height: 116px;
  padding: 15px 19px;
  border-bottom-color: rgba(224,228,239,.72);
  background: transparent;
}

.agency-home-screen .agency-app-booking-card:hover {
  background: rgba(250,250,255,.75);
}

.agency-home-screen .agency-booking-date-tile {
  width: 70px;
  min-height: 84px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 5px;
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 17px;
  background: linear-gradient(145deg,rgba(255,255,255,.8),rgba(237,238,255,.82));
  box-shadow: inset 0 1px rgba(255,255,255,.95);
}

.agency-home-screen .agency-booking-date-tile span,
.agency-home-screen .agency-booking-date-tile small,
.agency-home-screen .agency-booking-date-tile strong {
  display: block;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.agency-home-screen .agency-booking-date-tile span {
  margin: 0;
  color: #6c7489;
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
}

.agency-home-screen .agency-booking-date-tile strong {
  margin: 4px 0 2px;
  color: #0a1230;
  font-size: 24px;
  line-height: 1;
  font-weight: 780;
  letter-spacing: -.8px;
}

.agency-home-screen .agency-booking-date-tile small {
  color: #7455e9;
  font-size: 9px;
  font-weight: 750;
  text-transform: uppercase;
}

.agency-home-screen .agency-booking-card-title {
  color: #0b1431;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -.2px;
}

.agency-home-screen .agency-booking-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 9px;
  margin-top: 6px;
  color: #737c92;
  font-size: 10.5px;
}

.agency-home-screen .agency-booking-card-meta span {
  position: relative;
}

.agency-home-screen .agency-booking-card-meta span + span {
  padding-left: 10px;
}

.agency-home-screen .agency-booking-card-meta span + span::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #9ca5b7;
  transform: translateY(-50%);
}

.agency-home-screen .agency-booking-card-ref {
  margin-top: 7px;
  color: #3c69c5;
  font-size: 10.5px;
  font-weight: 700;
}

.agency-home-screen .agency-booking-card-side {
  min-width: 106px;
  gap: 7px;
}

.agency-home-screen .agency-booking-card-side strong {
  color: #34405a;
  font-size: 10px;
}

.agency-home-screen .status-chip {
  border-radius: 999px;
  letter-spacing: .15px;
}

.agency-home-screen .agency-booking-open-arrow {
  display: block;
}

.agency-home-screen .agency-app-help-card,
.agency-home-screen .agency-portal-security-footer {
  border-color: rgba(255,255,255,.82);
  background: rgba(255,255,255,.68);
  box-shadow: 0 12px 30px rgba(65,73,110,.06), inset 0 1px rgba(255,255,255,.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.agency-home-screen .agency-app-help-card {
  margin: 18px 0 0;
}

.agency-home-screen .agency-portal-security-footer {
  margin: 14px 0 0;
}

.agency-home-screen a:focus-visible,
.agency-home-screen button:focus-visible {
  outline: 3px solid rgba(91,69,220,.34);
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .page:has(.agency-home-screen) {
    padding: 0;
  }

  .agency-home-screen {
    padding: 18px 0 104px;
    background:
      radial-gradient(circle at 7% 5%,rgba(210,220,255,.38),transparent 25%),
      radial-gradient(circle at 94% 32%,rgba(231,215,255,.34),transparent 28%),
      radial-gradient(circle at 82% 68%,rgba(212,246,237,.3),transparent 31%),
      linear-gradient(155deg,#f8f9ff 0%,#f2f4fc 50%,#f8f4fb 100%);
  }

  .agency-home-screen .agency-home-topbar {
    grid-template-columns: 61px minmax(0,1fr) auto;
    gap: 12px;
    min-height: 72px;
    margin: 0 18px 17px;
  }

  .agency-home-screen .agency-home-topbar.has-logout,
  .agency-home-screen .agency-home-topbar.has-logout.has-messages {
    grid-template-columns: 61px minmax(0,1fr) auto;
  }

  .agency-home-screen .agency-app-monogram,
  .agency-home-screen .agency-home-topbar.has-logout .agency-app-monogram {
    width: 60px;
    height: 60px;
    font-size: 19px;
  }

  .agency-home-screen .agency-app-topbar-copy strong {
    font-size: 21px;
  }

  .agency-home-screen .agency-app-topbar-copy span.agency-name {
    font-size: 11.5px;
  }

  .agency-home-screen .agency-app-topbar-copy .agency-approved-partner {
    margin-top: 7px;
    padding: 4px 8px 4px 6px;
    font-size: 9.5px;
  }

  .agency-home-screen .agency-topbar-message-link,
  .agency-home-screen .agency-topbar-logout-button,
  .agency-home-screen .agency-home-topbar.has-logout .agency-topbar-message-link,
  .agency-home-screen .agency-home-topbar.has-logout .agency-topbar-logout-button {
    width: 38px;
    min-width: 38px;
    height: 38px;
    min-height: 38px;
    border-radius: 13px;
  }

  .agency-home-screen .agency-home-hero {
    min-height: 268px;
    margin: 0 12px 16px;
    padding: 25px 20px;
    border-radius: 26px;
    box-shadow: 0 18px 42px rgba(72,92,170,.2), inset 0 0 0 1px rgba(124,135,226,.24);
  }

  .agency-home-screen .agency-home-hero-copy {
    max-width: 100%;
  }

  .agency-home-screen .agency-home-kicker {
    font-size: 9px;
    letter-spacing: 1.45px;
  }

  .agency-home-screen .agency-home-hero h1 {
    width: 82%;
    margin: 17px 0 13px;
    font-size: 29px;
    line-height: 1.08;
    letter-spacing: -1.25px;
  }

  .agency-home-screen .agency-home-hero p {
    max-width: 59%;
    font-size: 10.8px;
    line-height: 1.54;
  }

  .agency-home-screen .agency-home-cta {
    width: 157px;
    min-height: 48px;
    margin-top: 19px;
    padding: 0 7px 0 15px;
    border-radius: 15px;
    font-size: 11.5px;
  }

  .agency-home-screen .agency-home-cta strong {
    width: 35px;
    height: 35px;
    font-size: 19px;
  }

  .agency-home-screen .agency-home-hero-illustration {
    top: 76px;
    right: -18px;
    width: 54%;
  }

  .agency-home-screen .agency-home-metrics {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 11px;
    margin: 0 12px 17px;
  }

  .agency-home-screen .agency-metric-card {
    min-height: 92px;
    grid-template-columns: 40px minmax(0,1fr) 24px;
    gap: 9px;
    padding: 13px 11px;
    border-radius: 19px;
  }

  .agency-home-screen .agency-metric-icon {
    width: 40px;
    height: 40px;
    border-radius: 13px;
  }

  .agency-home-screen .agency-metric-icon svg,
  .agency-home-screen .agency-metric-icon img {
    width: 22px;
    height: 22px;
  }

  .agency-home-screen .agency-metric-icon-clock::before {
    width: 21px;
    height: 21px;
  }

  .agency-home-screen .agency-metric-icon-clock::after {
    top: 12px;
    left: 20px;
    width: 6px;
    height: 8px;
  }

  .agency-home-screen .agency-metric-icon-check::before {
    width: 21px;
    height: 21px;
  }

  .agency-home-screen .agency-metric-icon-check::after {
    top: 15px;
    left: 15px;
    width: 9px;
    height: 4px;
  }

  .agency-home-screen .agency-metric-copy > span,
  .agency-home-screen .agency-metric-copy small {
    font-size: 9.5px;
  }

  .agency-home-screen .agency-metric-copy strong {
    margin: 5px 0 1px;
    font-size: 25px;
  }

  .agency-home-screen .agency-metric-arrow {
    width: 25px;
    height: 25px;
  }

  .agency-home-screen .agency-app-bookings-shell {
    gap: 14px;
    margin: 0 12px;
  }

  .agency-home-screen .agency-app-section {
    border-radius: 21px;
  }

  .agency-home-screen .agency-app-section-head {
    min-height: 57px;
    padding: 14px 16px;
  }

  .agency-home-screen .agency-app-section-head strong {
    font-size: 13px;
  }

  .agency-home-screen .agency-app-section-head > div > span {
    display: none;
  }

  .agency-home-screen .agency-app-section-actions {
    gap: 10px;
  }

  .agency-home-screen .agency-section-view-all {
    font-size: 10px;
  }

  .agency-home-screen .agency-portal-count {
    min-width: 26px;
    height: 26px;
    font-size: 10px;
  }

  .agency-home-screen .agency-app-booking-card {
    grid-template-columns: 61px minmax(0,1fr) 14px;
    grid-template-rows: auto auto;
    gap: 8px 12px;
    min-height: 108px;
    padding: 13px 15px;
  }

  .agency-home-screen .agency-booking-date-tile {
    grid-row: 1 / span 2;
    width: 61px;
    min-height: 80px;
    border-radius: 15px;
  }

  .agency-home-screen .agency-booking-date-tile strong {
    font-size: 22px;
  }

  .agency-home-screen .agency-booking-card-main {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
  }

  .agency-home-screen .agency-booking-card-title {
    font-size: 12.5px;
  }

  .agency-home-screen .agency-booking-card-meta,
  .agency-home-screen .agency-booking-card-ref {
    font-size: 9.5px;
  }

  .agency-home-screen .agency-app-booking-card .agency-booking-card-side {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    justify-content: flex-start;
    min-width: 0;
    gap: 6px;
  }

  .agency-home-screen .agency-booking-card-side .status-chip {
    min-height: 24px;
    padding: 4px 8px;
    font-size: 7.75px;
  }

  .agency-home-screen .agency-booking-card-side strong {
    font-size: 8.75px;
  }

  .agency-home-screen .agency-booking-open-arrow {
    grid-column: 3;
    grid-row: 1 / span 2;
    align-self: center;
  }

  .agency-home-screen .agency-app-help-card {
    margin: 15px 12px 0;
  }

  .agency-home-screen .agency-portal-security-footer {
    margin: 12px 12px 0;
  }
}

@media (max-width: 480px) {
  .agency-home-screen .agency-mobile-nav {
    left: 12px;
    right: 12px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    min-height: 70px;
    padding: 7px;
    border-color: rgba(255,255,255,.82);
    border-radius: 22px;
    background: rgba(255,255,255,.8);
    box-shadow: 0 18px 40px rgba(54,60,91,.17), inset 0 1px rgba(255,255,255,.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }

  .agency-home-screen .agency-mobile-nav-item {
    gap: 5px;
    border-radius: 16px;
    color: #8790a4;
    font-size: 9px;
    font-weight: 600;
  }

  .agency-home-screen .agency-mobile-nav-item.active {
    background: linear-gradient(145deg,rgba(239,234,255,.95),rgba(248,246,255,.82));
    color: #6847ef;
    box-shadow: inset 0 1px rgba(255,255,255,.9);
  }

  .agency-home-screen .agency-mobile-nav-icon {
    width: 22px;
    height: 22px;
  }
}

@media (max-width: 390px) {
  .agency-home-screen .agency-home-topbar {
    grid-template-columns: 57px minmax(0,1fr) auto;
    gap: 10px;
    margin-left: 14px;
    margin-right: 14px;
  }

  .agency-home-screen .agency-home-topbar.has-logout,
  .agency-home-screen .agency-home-topbar.has-logout.has-messages {
    grid-template-columns: 57px minmax(0,1fr) auto;
  }

  .agency-home-screen .agency-app-monogram,
  .agency-home-screen .agency-home-topbar.has-logout .agency-app-monogram {
    width: 56px;
    height: 56px;
    font-size: 18px;
  }

  .agency-home-screen .agency-app-topbar-copy strong {
    font-size: 19px;
  }

  .agency-home-screen .agency-app-topbar-copy span.agency-name {
    font-size: 10.5px;
  }

  .agency-home-screen .agency-topbar-message-link,
  .agency-home-screen .agency-topbar-logout-button,
  .agency-home-screen .agency-home-topbar.has-logout .agency-topbar-message-link,
  .agency-home-screen .agency-home-topbar.has-logout .agency-topbar-logout-button {
    width: 35px;
    min-width: 35px;
    height: 35px;
    min-height: 35px;
  }

  .agency-home-screen .agency-home-hero {
    min-height: 266px;
  }

  .agency-home-screen .agency-home-hero h1 {
    font-size: 28px;
  }

  .agency-home-screen .agency-home-hero p {
    font-size: 10.25px;
  }

  .agency-home-screen .agency-home-hero-illustration {
    top: 82px;
    right: -20px;
    width: 55%;
  }

  .agency-home-screen .agency-metric-card {
    grid-template-columns: 38px minmax(0,1fr) 22px;
    gap: 8px;
    padding: 12px 10px;
  }

  .agency-home-screen .agency-metric-icon {
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 360px) {
  .agency-home-screen .agency-home-hero-copy {
    max-width: 67%;
  }

  .agency-home-screen .agency-home-hero h1 {
    font-size: 27px;
  }

  .agency-home-screen .agency-home-hero-illustration {
    right: -24px;
    width: 57%;
  }

  .agency-home-screen .agency-metric-card {
    grid-template-columns: 36px minmax(0,1fr) 18px;
    min-height: 100px;
    gap: 7px;
    padding: 11px 8px;
  }

  .agency-home-screen .agency-metric-icon {
    width: 36px;
    height: 36px;
  }

  .agency-home-screen .agency-metric-copy > span,
  .agency-home-screen .agency-metric-copy small {
    font-size: 8.75px;
  }

  .agency-home-screen .agency-metric-copy strong {
    font-size: 23px;
  }

  .agency-home-screen .agency-metric-arrow {
    width: 22px;
    height: 22px;
  }
}

/* ============================================================
   BQ17.11 — AGENCY PORTAL VISUAL POLISH
   Presentation-only refinements scoped to the home screen.
   ============================================================ */
.agency-home-screen .agency-app-booking-card .status-chip.pending:not(.outline) {
  min-height: 30px;
  padding: 7px 13px;
  border: 1px solid rgba(122,126,170,.16);
  border-radius: 999px;
  background: linear-gradient(145deg,rgba(242,243,255,.92),rgba(235,237,250,.8));
  color: #596178;
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: .08px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.88);
}

@media (min-width: 641px) {
  .agency-home-screen .agency-metric-card {
    position: relative;
    grid-template-columns: 48px minmax(0,1fr);
    gap: 8px;
    padding: 17px 40px 17px 13px;
  }

  .agency-home-screen .agency-metric-copy > span,
  .agency-home-screen .agency-metric-copy small {
    overflow: visible;
    line-height: 1.2;
    white-space: normal;
    text-overflow: clip;
  }

  .agency-home-screen .agency-metric-arrow {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
  }

  .agency-home-screen .agency-home-hero-copy {
    max-width: 69%;
  }

  .agency-home-screen .agency-home-hero-illustration {
    top: 68px;
    right: -16px;
    width: 47%;
  }

  .agency-home-screen .agency-home-cta {
    margin-top: 30px;
  }
}

@media (max-width: 640px) {
  .agency-home-screen .agency-app-booking-card .status-chip.pending:not(.outline) {
    min-height: 24px;
    padding: 4px 8px;
    font-size: 7.75px;
  }
}

@media (max-width: 480px) {
  .agency-home-screen {
    padding-bottom: calc(104px + env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  .agency-home-screen .agency-metric-card,
  .agency-home-screen .agency-home-cta {
    transition: none;
  }
}

/* BQ17.13–15: Agency payment, profile and notification surfaces. */
.agency-topbar-notification-link {
  position: relative;
  min-width: 38px;
  min-height: 38px;
  border-color: rgba(113,96,219,.18);
  border-radius: 13px;
  background: rgba(255,255,255,.72);
  color: #5e54a4;
  box-shadow: 0 8px 24px rgba(68,62,112,.09), inset 0 1px rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.agency-topbar-notification-link:hover,
.agency-topbar-notification-link:focus-visible {
  border-color: rgba(104,71,239,.34);
  background: rgba(246,243,255,.96);
  color: #6847ef;
}

.agency-topbar-notification-link svg {
  width: 17px;
  height: 17px;
}

.agency-topbar-notification-link span {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #6847ef;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  font-size: 8px;
  box-shadow: 0 4px 10px rgba(104,71,239,.28);
}

.agency-topbar-notification-link span[hidden] {
  display: none !important;
}

.agency-payment-status-chip {
  border-width: 1px;
  border-style: solid;
  font-weight: 850;
  letter-spacing: .055em;
  box-shadow: inset 0 1px rgba(255,255,255,.72);
}

.agency-payment-status-chip.billing-not-invoiced {
  border-color: #d6dce7;
  background: #f5f7fa;
  color: #657086;
}

.agency-payment-status-chip.billing-due {
  border-color: #f0ce73;
  background: #fff8df;
  color: #735711;
}

.agency-payment-status-chip.billing-paid {
  border-color: #a9dfc7;
  background: #edf9f3;
  color: #18744f;
}

.agency-payment-status-chip.billing-cancelled {
  border-color: #e4dce1;
  background: #f7f3f5;
  color: #7f6875;
}

.agency-profile-screen,
.agency-notifications-screen {
  position: relative;
  isolation: isolate;
  padding-bottom: calc(118px + env(safe-area-inset-bottom));
}

.agency-profile-screen::before,
.agency-notifications-screen::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 10% 2%, rgba(184,217,255,.38), transparent 35%),
    radial-gradient(circle at 94% 18%, rgba(226,211,255,.4), transparent 34%),
    linear-gradient(165deg,#f8faff 0%,#f6f5fc 48%,#f5f9fb 100%);
}

.agency-profile-hero,
.agency-notification-hero {
  position: relative;
  overflow: hidden;
  margin: 14px 0 16px;
  padding: 24px;
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 25px;
  background:
    radial-gradient(circle at 90% 12%, rgba(255,255,255,.74), transparent 30%),
    linear-gradient(140deg,rgba(237,243,255,.95),rgba(239,233,255,.92) 54%,rgba(240,250,249,.9));
  box-shadow: 0 20px 44px rgba(59,62,101,.12), inset 0 1px rgba(255,255,255,.98);
}

.agency-profile-hero::after,
.agency-notification-hero::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  right: -45px;
  bottom: -70px;
  border: 1px solid rgba(133,111,233,.18);
  border-radius: 50%;
  box-shadow: 0 0 0 18px rgba(255,255,255,.13), 0 0 0 42px rgba(143,209,207,.08);
  pointer-events: none;
}

.agency-profile-hero > span,
.agency-notification-hero > div > span {
  color: #6254ad;
  font-size: 9px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: .19em;
}

.agency-profile-hero h1,
.agency-notification-hero h1 {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 8px 0 8px;
  color: #111b38;
  font-size: clamp(25px,5vw,36px);
  line-height: 1.08;
  letter-spacing: -.035em;
}

.agency-profile-hero p,
.agency-notification-hero p {
  position: relative;
  z-index: 1;
  max-width: 590px;
  margin: 0;
  color: #667087;
  font-size: 12px;
  line-height: 1.65;
}

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

.agency-profile-card,
.agency-profile-note,
.agency-help-profile-link,
.agency-notification-summary,
.agency-notification-list-card,
.agency-notification-unavailable {
  border: 1px solid rgba(224,227,238,.9);
  border-radius: 22px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 13px 34px rgba(55,61,93,.075), inset 0 1px rgba(255,255,255,.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.agency-profile-card {
  min-width: 0;
  padding: 18px;
}

.agency-profile-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 13px;
}

.agency-profile-card-head > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.agency-profile-card-head strong {
  color: #17213a;
  font-size: 13px;
}

.agency-profile-card-head small {
  color: #8a91a2;
  font-size: 9.5px;
}

.agency-profile-card-icon,
.agency-help-profile-icon {
  position: relative;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 13px;
  background: linear-gradient(145deg,#f0ecff,#e5eefe);
  box-shadow: inset 0 1px rgba(255,255,255,.9);
}

.agency-profile-card-icon::before,
.agency-profile-card-icon::after,
.agency-help-profile-icon::before,
.agency-help-profile-icon::after {
  content: "";
  position: absolute;
  box-sizing: border-box;
}

.agency-profile-card-icon::before,
.agency-help-profile-icon::before {
  width: 15px;
  height: 12px;
  left: 12px;
  bottom: 8px;
  border: 2px solid #6847ef;
  border-radius: 5px 5px 6px 6px;
}

.agency-profile-card-icon::after,
.agency-help-profile-icon::after {
  width: 8px;
  height: 8px;
  top: 8px;
  left: 15px;
  border: 2px solid #6847ef;
  border-radius: 50%;
}

.agency-profile-card-icon.contact {
  background: linear-gradient(145deg,#e8f9f2,#e6f5fa);
}

.agency-profile-card-icon.contact::before,
.agency-profile-card-icon.contact::after {
  border-color: #25866c;
}

.agency-profile-card-icon.address {
  background: linear-gradient(145deg,#eaf4ff,#edf0ff);
}

.agency-profile-card-icon.address::before {
  width: 14px;
  height: 17px;
  left: 12px;
  top: 9px;
  bottom: auto;
  border-color: #3d6dad;
  border-radius: 9px 9px 10px 10px;
}

.agency-profile-card-icon.address::after {
  width: 4px;
  height: 4px;
  left: 17px;
  top: 14px;
  border: 0;
  background: #3d6dad;
}

.agency-profile-card-icon.terms {
  background: linear-gradient(145deg,#fff8df,#edf9f3);
}

.agency-profile-card-icon.terms::before {
  width: 17px;
  height: 14px;
  left: 11px;
  bottom: 11px;
  border-color: #837020;
  border-radius: 4px;
}

.agency-profile-card-icon.terms::after {
  width: 9px;
  height: 2px;
  left: 15px;
  top: 15px;
  border: 0;
  border-radius: 2px;
  background: #837020;
  box-shadow: 0 4px #837020;
}

.agency-profile-rows {
  overflow: hidden;
  border: 1px solid #edf0f5;
  border-radius: 15px;
  background: rgba(249,250,253,.72);
}

.agency-profile-row {
  min-width: 0;
  padding: 11px 12px;
  display: grid;
  grid-template-columns: minmax(96px,.8fr) minmax(0,1.2fr);
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid #eceff4;
}

.agency-profile-row:last-child {
  border-bottom: 0;
}

.agency-profile-row > span {
  color: #858d9f;
  font-size: 9.5px;
  font-weight: 700;
}

.agency-profile-row > strong {
  min-width: 0;
  color: #29334a;
  font-size: 10.5px;
  text-align: right;
  overflow-wrap: anywhere;
}

.agency-profile-row a {
  color: #4c5ea8;
}

.agency-profile-row.is-empty > strong {
  color: #a2a8b4;
  font-weight: 650;
}

.agency-profile-approved {
  color: #21825e !important;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
}

.agency-profile-note {
  margin-top: 14px;
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 5px 18px;
  align-items: center;
}

.agency-profile-note > strong {
  color: #19233c;
  font-size: 12px;
}

.agency-profile-note > span {
  color: #747d90;
  font-size: 10px;
  line-height: 1.55;
}

.agency-profile-note .agency-app-help-actions {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.agency-help-profile-link {
  min-height: 74px;
  margin: 0 0 14px;
  padding: 15px 17px;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.agency-help-profile-link:hover,
.agency-help-profile-link:focus-visible {
  border-color: rgba(104,71,239,.28);
  box-shadow: 0 16px 38px rgba(65,59,111,.12), inset 0 1px rgba(255,255,255,.98);
  transform: translateY(-1px);
}

.agency-help-profile-link > span:nth-child(2) {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 3px;
}

.agency-help-profile-link strong {
  color: #17213a;
  font-size: 12px;
}

.agency-help-profile-link small {
  color: #858d9f;
  font-size: 9.5px;
}

.agency-help-profile-chevron,
.agency-notification-chevron {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-top: 1.8px solid #8790a4;
  border-right: 1.8px solid #8790a4;
  transform: rotate(45deg);
}

.agency-notification-hero {
  min-height: 144px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.agency-notification-hero > div {
  min-width: 0;
}

.agency-notification-hero-badge {
  position: relative;
  z-index: 1;
  width: 62px;
  height: 62px;
  flex: 0 0 62px;
  border: 1px solid rgba(255,255,255,.92);
  border-radius: 21px;
  background: rgba(255,255,255,.68);
  box-shadow: 0 14px 28px rgba(80,69,141,.12), inset 0 1px rgba(255,255,255,.98);
}

.agency-notification-hero-badge::before {
  content: "";
  position: absolute;
  width: 21px;
  height: 23px;
  top: 17px;
  left: 20px;
  border: 2px solid #6752cf;
  border-radius: 12px 12px 9px 9px;
}

.agency-notification-hero-badge::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  top: 12px;
  right: 12px;
  border: 2px solid rgba(255,255,255,.94);
  border-radius: 50%;
  background: #a6adba;
}

.agency-notification-hero-badge.has-unread::after {
  background: #6847ef;
  box-shadow: 0 4px 10px rgba(104,71,239,.3);
}

.agency-notification-summary {
  margin: 0 0 14px;
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 8px;
}

.agency-notification-summary > div {
  min-height: 58px;
  padding: 10px 13px;
  border-radius: 15px;
  background: linear-gradient(145deg,rgba(246,247,253,.95),rgba(249,247,255,.82));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.agency-notification-summary span {
  color: #737c91;
  font-size: 10px;
  font-weight: 750;
}

.agency-notification-summary strong {
  color: #17213a;
  font-size: 22px;
  letter-spacing: -.04em;
}

.agency-notification-unavailable {
  margin: 0 0 14px;
  padding: 14px 16px;
  border-color: #f0ddae;
  background: rgba(255,249,229,.86);
  display: grid;
  gap: 3px;
}

.agency-notification-unavailable strong {
  color: #6b541b;
  font-size: 10.5px;
}

.agency-notification-unavailable span {
  color: #806d3d;
  font-size: 9.5px;
  line-height: 1.5;
}

.agency-notification-list-card {
  overflow: hidden;
  margin-bottom: 14px;
}

.agency-notification-list-head {
  min-height: 66px;
  padding: 14px 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #eceff4;
}

.agency-notification-list-head > div {
  display: grid;
  gap: 2px;
}

.agency-notification-list-head strong {
  color: #17213a;
  font-size: 12px;
}

.agency-notification-list-head span {
  color: #9299a8;
  font-size: 9px;
}

.agency-notification-list-head form,
.agency-notification-item-form {
  margin: 0;
}

.agency-notification-list-head button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(104,71,239,.2);
  border-radius: 11px;
  background: #f4f0ff;
  color: #6046ca;
  font-family: inherit;
  font-size: 9px;
  font-weight: 850;
  cursor: pointer;
}

.agency-notification-list-head button:hover,
.agency-notification-list-head button:focus-visible {
  border-color: rgba(104,71,239,.42);
  background: #ebe4ff;
}

.agency-notification-list {
  background: rgba(255,255,255,.48);
}

.agency-notification-item-form + .agency-notification-item-form,
.agency-notification-item-form + .agency-notification-item,
.agency-notification-item + .agency-notification-item-form,
.agency-notification-item + .agency-notification-item {
  border-top: 1px solid #edf0f5;
}

.agency-notification-item {
  position: relative;
  width: 100%;
  min-height: 86px;
  padding: 14px 17px;
  border: 0;
  background: transparent;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 12px;
  box-sizing: border-box;
  font-family: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background .16s ease;
}

.agency-notification-item:hover,
.agency-notification-item:focus-visible {
  outline: none;
  background: rgba(246,247,252,.92);
}

.agency-notification-item.is-unread {
  background: linear-gradient(90deg,rgba(244,241,255,.7),rgba(255,255,255,.4) 72%);
}

.agency-notification-item.is-unread:hover,
.agency-notification-item.is-unread:focus-visible {
  background: linear-gradient(90deg,rgba(238,233,255,.9),rgba(249,249,253,.72) 72%);
}

.agency-notification-item.is-unread::before {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  top: 15px;
  right: 17px;
  border-radius: 50%;
  background: #6847ef;
  box-shadow: 0 0 0 3px rgba(104,71,239,.09);
}

.agency-notification-icon {
  position: relative;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 13px;
  background: #eef1ff;
}

.agency-notification-icon::before,
.agency-notification-icon::after {
  content: "";
  position: absolute;
  box-sizing: border-box;
}

.agency-notification-icon::before {
  width: 15px;
  height: 14px;
  left: 12px;
  top: 11px;
  border: 2px solid #5d61c6;
  border-radius: 5px;
}

.agency-notification-icon::after {
  width: 7px;
  height: 4px;
  left: 16px;
  top: 15px;
  border-left: 2px solid #5d61c6;
  border-bottom: 2px solid #5d61c6;
  transform: rotate(-45deg);
}

.agency-notification-item.tone-message .agency-notification-icon {
  background: #e9f3ff;
}

.agency-notification-item.tone-message .agency-notification-icon::before,
.agency-notification-item.tone-message .agency-notification-icon::after {
  border-color: #3472b8;
}

.agency-notification-item.tone-payment .agency-notification-icon,
.agency-notification-item.tone-due .agency-notification-icon {
  background: #fff6d9;
}

.agency-notification-item.tone-payment .agency-notification-icon::before,
.agency-notification-item.tone-payment .agency-notification-icon::after,
.agency-notification-item.tone-due .agency-notification-icon::before,
.agency-notification-item.tone-due .agency-notification-icon::after {
  border-color: #8a711b;
}

.agency-notification-item.tone-success .agency-notification-icon {
  background: #e5f7ee;
}

.agency-notification-item.tone-success .agency-notification-icon::before,
.agency-notification-item.tone-success .agency-notification-icon::after {
  border-color: #23815e;
}

.agency-notification-item.tone-rose .agency-notification-icon {
  background: #fff0f3;
}

.agency-notification-item.tone-rose .agency-notification-icon::before,
.agency-notification-item.tone-rose .agency-notification-icon::after {
  border-color: #b65069;
}

.agency-notification-item.tone-voucher .agency-notification-icon {
  background: #edf5f7;
}

.agency-notification-item.tone-voucher .agency-notification-icon::before,
.agency-notification-item.tone-voucher .agency-notification-icon::after {
  border-color: #315f6b;
}

.agency-notification-copy {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 3px;
}

.agency-notification-title {
  color: #5e54a4;
  font-size: 8.5px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.agency-notification-copy > strong {
  color: #202a43;
  font-size: 10.5px;
  line-height: 1.42;
  font-weight: 750;
}

.agency-notification-copy small,
.agency-notification-copy time {
  color: #868ea0;
  font-size: 8.8px;
  line-height: 1.35;
  font-weight: 600;
}

.agency-notification-copy time {
  color: #9ca2af;
}

.agency-notification-chevron {
  margin-right: 3px;
}

.agency-notification-empty {
  min-height: 220px;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.agency-notification-empty-icon {
  position: relative;
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  border-radius: 17px;
  background: linear-gradient(145deg,#e8f8f0,#edf1ff);
}

.agency-notification-empty-icon::before {
  content: "";
  position: absolute;
  width: 17px;
  height: 9px;
  left: 15px;
  top: 17px;
  border-left: 2px solid #33806b;
  border-bottom: 2px solid #33806b;
  transform: rotate(-45deg);
}

.agency-notification-empty strong {
  color: #1c2640;
  font-size: 13px;
}

.agency-notification-empty p {
  max-width: 330px;
  margin: 5px 0 0;
  color: #858d9e;
  font-size: 10px;
  line-height: 1.55;
}

@media (max-width: 640px) {
  .agency-profile-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .agency-profile-hero,
  .agency-notification-hero {
    margin-top: 10px;
    padding: 20px;
    border-radius: 23px;
  }

  .agency-profile-note {
    grid-template-columns: 1fr;
  }

  .agency-profile-note .agency-app-help-actions {
    grid-column: auto;
    grid-row: auto;
    margin-top: 8px;
  }
}

@media (max-width: 430px) {
  .agency-profile-screen,
  .agency-notifications-screen {
    padding-bottom: calc(112px + env(safe-area-inset-bottom));
  }

  .agency-profile-hero h1,
  .agency-notification-hero h1 {
    font-size: 25px;
  }

  .agency-notification-hero-badge {
    width: 54px;
    height: 54px;
    flex-basis: 54px;
    border-radius: 18px;
  }

  .agency-notification-hero-badge::before {
    top: 14px;
    left: 17px;
  }

  .agency-profile-card {
    padding: 15px;
  }

  .agency-profile-row {
    grid-template-columns: minmax(92px,.8fr) minmax(0,1.2fr);
    padding: 11px;
  }

  .agency-notification-item {
    padding-left: 14px;
    padding-right: 14px;
    gap: 10px;
  }

  .agency-notification-item.is-unread::before {
    right: 14px;
  }
}

@media (max-width: 390px) {
  .agency-profile-hero,
  .agency-notification-hero {
    padding: 18px;
  }

  .agency-notification-hero {
    gap: 12px;
  }

  .agency-notification-hero-badge {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }

  .agency-notification-hero-badge::before {
    width: 18px;
    height: 20px;
    top: 13px;
    left: 15px;
  }

  .agency-profile-row {
    grid-template-columns: 1fr;
    gap: 4px;
    align-items: start;
  }

  .agency-profile-row > strong {
    text-align: left;
  }

  .agency-profile-approved {
    justify-content: flex-start;
  }

  .agency-notification-list-head {
    padding: 13px 14px;
  }

  .agency-notification-list-head button {
    padding: 0 10px;
  }

  .agency-notification-icon {
    width: 35px;
    height: 35px;
    flex-basis: 35px;
  }

  .agency-notification-icon::before {
    left: 10px;
    top: 10px;
  }

  .agency-notification-icon::after {
    left: 14px;
    top: 14px;
  }
}

@media (min-width: 900px) {
  .agency-profile-screen,
  .agency-notifications-screen {
    max-width: 980px;
  }

  .agency-profile-card,
  .agency-profile-note,
  .agency-notification-list-card,
  .agency-notification-summary {
    border-radius: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .agency-help-profile-link,
  .agency-notification-item {
    transition: none;
  }
}

/* ============================================================
   BQ17.12 — AGENCY PORTAL TOURS + BOOKING FLOW
   Presentation-only refinements scoped to the Tours and New
   Booking screens.
   ============================================================ */
body:has(.agency-tours-screen),
body:has(.agency-booking-form-screen) {
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 5%, rgba(207,216,255,.58), transparent 25%),
    radial-gradient(circle at 92% 23%, rgba(228,214,255,.52), transparent 30%),
    radial-gradient(circle at 82% 72%, rgba(208,245,234,.4), transparent 31%),
    linear-gradient(155deg,#f8f9ff 0%,#f2f4fc 49%,#f8f4fb 100%);
  background-attachment: fixed;
}

.page:has(.agency-tours-screen),
.page:has(.agency-booking-form-screen) {
  padding: 0 22px 52px;
  background: transparent;
}

.page:has(.agency-tours-screen) { max-width: 1240px; }
.page:has(.agency-booking-form-screen) { max-width: 1060px; }

.page:has(.agency-tours-screen) .brand-logo-wrap,
.page:has(.agency-booking-form-screen) .brand-logo-wrap {
  display: none;
}

.agency-tours-screen,
.agency-booking-form-screen {
  min-height: 100vh;
  padding: 26px 0 34px;
  background: transparent;
}

.agency-tours-screen .agency-app-topbar,
.agency-booking-form-screen .agency-app-topbar {
  min-height: 58px;
  margin: 0 4px 24px;
  padding: 7px 9px;
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 20px;
  background: rgba(255,255,255,.54);
  box-shadow: 0 12px 30px rgba(65,73,110,.055), inset 0 1px rgba(255,255,255,.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.agency-tours-screen .agency-app-back-button,
.agency-booking-form-screen .agency-app-back-button {
  width: 42px;
  height: 42px;
  border-color: rgba(255,255,255,.86);
  border-radius: 14px;
  background: linear-gradient(145deg,rgba(255,255,255,.92),rgba(242,244,253,.72));
  color: #34405a;
  box-shadow: 0 8px 20px rgba(45,52,82,.09), inset 0 1px rgba(255,255,255,.96);
}

.agency-tours-screen .agency-app-back-button:hover,
.agency-booking-form-screen .agency-app-back-button:hover {
  border-color: rgba(180,186,218,.7);
  background: rgba(255,255,255,.96);
  color: #17213e;
}

.agency-tours-screen .agency-app-topbar-copy strong,
.agency-booking-form-screen .agency-app-topbar-copy strong {
  color: #0a1230;
  font-size: 16px;
  letter-spacing: -.25px;
}

.agency-tours-screen .agency-app-topbar-copy span,
.agency-booking-form-screen .agency-app-topbar-copy span {
  margin-top: 4px;
  color: #727b90;
  font-size: 10.5px;
}

.agency-tours-screen .agency-app-secure-dot,
.agency-booking-form-screen .agency-app-secure-dot {
  width: 10px;
  height: 10px;
  flex-basis: 10px;
  background: #22c987;
  box-shadow: 0 0 0 5px rgba(34,201,135,.1), 0 0 14px rgba(34,201,135,.22);
}

.agency-tours-screen .agency-tours-intro {
  max-width: 760px;
  margin: 0 4px 26px;
  padding: 12px 6px 0;
}

.agency-tours-screen .agency-tours-kicker {
  color: #6a56c7;
  font-size: 10px;
  letter-spacing: 1.55px;
}

.agency-tours-screen .agency-tours-intro h1 {
  margin: 12px 0 10px;
  color: #08112e;
  font-size: clamp(34px,4vw,48px);
  line-height: 1.02;
  font-weight: 820;
  letter-spacing: -1.7px;
}

.agency-tours-screen .agency-tours-intro p {
  max-width: 690px;
  color: #687187;
  font-size: 13.5px;
  line-height: 1.62;
}

.agency-tours-screen .agency-tour-choice-grid.modern-grid {
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 20px;
  padding: 0 4px 8px;
}

.agency-tours-screen .agency-tour-choice {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 22px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.84);
  border-radius: 27px;
  box-shadow: 0 16px 40px rgba(65,73,110,.075), inset 0 1px rgba(255,255,255,.92);
  backdrop-filter: blur(13px);
  -webkit-backdrop-filter: blur(13px);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.agency-tours-screen .agency-tour-choice.theme-emerald {
  border-color: rgba(188,227,209,.72);
  background: linear-gradient(145deg,rgba(242,251,247,.96),rgba(232,247,240,.8));
}

.agency-tours-screen .agency-tour-choice.theme-teal {
  border-color: rgba(181,222,222,.72);
  background: linear-gradient(145deg,rgba(241,251,251,.96),rgba(228,246,246,.8));
}

.agency-tours-screen .agency-tour-choice.theme-blue {
  border-color: rgba(187,210,239,.74);
  background: linear-gradient(145deg,rgba(242,247,255,.97),rgba(230,240,253,.82));
}

.agency-tours-screen .agency-tour-choice.theme-violet {
  border-color: rgba(208,199,237,.74);
  background: linear-gradient(145deg,rgba(247,244,255,.97),rgba(237,232,251,.82));
}

.agency-tours-screen .agency-tour-choice.theme-burgundy {
  border-color: rgba(235,204,215,.76);
  background: linear-gradient(145deg,rgba(255,247,250,.97),rgba(249,233,240,.82));
}

.agency-tours-screen .agency-tour-choice:hover {
  transform: translateY(-3px);
  border-color: rgba(168,176,213,.66);
  box-shadow: 0 22px 48px rgba(58,66,104,.12), inset 0 1px rgba(255,255,255,.95);
}

.agency-tours-screen .agency-tour-choice:active { transform: translateY(-1px); }

.agency-tours-screen .agency-tour-choice-head {
  margin-bottom: 16px;
}

.agency-tours-screen .agency-tour-badge,
.agency-tours-screen .agency-tour-select {
  min-height: 34px;
  padding: 0 12px;
  border-color: rgba(255,255,255,.86);
  background: rgba(255,255,255,.66);
  color: #526078;
  font-size: 10px;
  letter-spacing: .25px;
  box-shadow: inset 0 1px rgba(255,255,255,.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.agency-tours-screen .agency-tour-select {
  color: #4938a8;
  font-weight: 850;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.agency-tours-screen .agency-tour-choice:hover .agency-tour-select {
  background: rgba(255,255,255,.92);
  color: #35258d;
}

.agency-tours-screen .agency-tour-choice-title {
  max-width: 19ch;
  color: #0a1432;
  font-size: 22px;
  line-height: 1.16;
  font-weight: 820;
  letter-spacing: -.55px;
}

.agency-tours-screen .agency-tour-choice-copy {
  margin-top: 10px;
  color: #687187;
  font-size: 13px;
  line-height: 1.55;
}

.agency-tours-screen .agency-tour-choice-rates,
.agency-booking-form-screen .agency-rate-box {
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid rgba(188,196,216,.42);
  border-radius: 19px;
  background: rgba(255,255,255,.68);
  box-shadow: inset 0 1px rgba(255,255,255,.92);
}

.agency-tours-screen .agency-rate-line,
.agency-booking-form-screen .agency-rate-line {
  align-items: flex-start;
  gap: 14px;
  padding: 12px 14px;
  border-bottom-color: rgba(188,196,216,.34);
  color: #6b7489;
  font-size: 11.5px;
  line-height: 1.4;
}

.agency-tours-screen .agency-rate-line > span,
.agency-booking-form-screen .agency-rate-line > span {
  min-width: 0;
  flex: 1 1 auto;
}

.agency-tours-screen .agency-rate-line strong,
.agency-booking-form-screen .agency-rate-line strong {
  flex: 0 0 auto;
  color: #101a36;
  font-weight: 820;
  white-space: nowrap;
}

.agency-tours-screen .agency-rate-note,
.agency-booking-form-screen .agency-rate-note {
  padding: 12px 14px;
  border-top: 1px solid rgba(188,196,216,.34);
  background: rgba(246,247,252,.6);
  color: #667087;
  font-size: 10.5px;
  line-height: 1.5;
}

.agency-tours-screen .agency-tour-choice-season {
  margin-top: auto;
  padding: 15px 2px 0;
  border-top: 1px solid rgba(166,176,200,.22);
  color: #69748a;
  font-size: 10.5px;
  line-height: 1.5;
  font-weight: 650;
}

.agency-tours-screen .agency-tour-choice-rates + .agency-tour-choice-season {
  margin-top: 15px;
}

.agency-tours-screen .agency-portal-security-footer,
.agency-booking-form-screen .agency-portal-security-footer {
  margin: 20px 4px 0;
  padding: 16px 18px;
  border-color: rgba(255,255,255,.82);
  border-radius: 18px;
  background: rgba(255,255,255,.58);
  box-shadow: 0 12px 30px rgba(65,73,110,.05), inset 0 1px rgba(255,255,255,.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.agency-tours-screen .agency-portal-security-copy strong,
.agency-booking-form-screen .agency-portal-security-copy strong {
  color: #34405a;
  font-size: 11px;
}

.agency-tours-screen .agency-portal-security-copy span,
.agency-booking-form-screen .agency-portal-security-copy span {
  color: #7a8397;
  font-size: 9.5px;
}

.agency-booking-form-screen .agency-app-tour-hero,
.agency-booking-form-screen .agency-app-form-card {
  margin-left: 4px;
  margin-right: 4px;
}

.agency-booking-form-screen .agency-app-tour-hero {
  margin-bottom: 20px;
  padding: 25px 27px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.84);
  border-radius: 28px;
  box-shadow: 0 17px 42px rgba(65,73,110,.09), inset 0 1px rgba(255,255,255,.94);
}

.agency-booking-form-screen .agency-app-tour-hero.theme-emerald {
  background: linear-gradient(145deg,rgba(232,249,240,.98),rgba(246,252,249,.86));
}

.agency-booking-form-screen .agency-app-tour-hero.theme-teal {
  background: linear-gradient(145deg,rgba(228,248,247,.98),rgba(245,252,252,.86));
}

.agency-booking-form-screen .agency-app-tour-hero.theme-blue {
  background: linear-gradient(145deg,rgba(229,240,254,.98),rgba(246,249,255,.86));
}

.agency-booking-form-screen .agency-app-tour-hero.theme-violet {
  background: linear-gradient(145deg,rgba(238,233,252,.98),rgba(249,247,255,.86));
}

.agency-booking-form-screen .agency-app-tour-hero.theme-burgundy {
  background: linear-gradient(145deg,rgba(249,234,241,.98),rgba(255,248,251,.86));
}

.agency-booking-form-screen .agency-tour-hero-badge {
  min-height: 32px;
  padding: 0 12px;
  border-color: rgba(255,255,255,.86);
  background: rgba(255,255,255,.66);
  color: #59657b;
  box-shadow: inset 0 1px rgba(255,255,255,.94);
}

.agency-booking-form-screen .agency-tour-hero-title {
  margin-top: 14px;
  color: #091331;
  font-size: clamp(25px,3.1vw,34px);
  line-height: 1.12;
  font-weight: 830;
  letter-spacing: -.85px;
}

.agency-booking-form-screen .agency-tour-hero-copy {
  max-width: 660px;
  margin-top: 10px;
  color: #657086;
  font-size: 13px;
  line-height: 1.58;
}

.agency-booking-form-screen .agency-tour-hero-season {
  margin-top: 15px;
  padding: 12px 0 0;
  border-top: 1px solid rgba(164,175,199,.25);
  color: #6e788d;
  font-size: 10.5px;
  font-weight: 650;
}

.agency-booking-form-screen .agency-app-form-card {
  margin-bottom: 18px;
  border-color: rgba(255,255,255,.84);
  border-radius: 26px;
  background: rgba(255,255,255,.7);
  box-shadow: 0 16px 40px rgba(65,73,110,.07), inset 0 1px rgba(255,255,255,.94);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

.agency-booking-form-screen .agency-app-card-head {
  min-height: 62px;
  padding: 17px 20px;
  border-bottom-color: rgba(190,197,216,.32);
}

.agency-booking-form-screen .agency-app-card-head strong {
  color: #111a35;
  font-size: 14.5px;
  letter-spacing: -.15px;
}

.agency-booking-form-screen .agency-app-card-head > span {
  width: fit-content;
  margin: 0;
  padding: 6px 10px;
  border: 1px solid rgba(143,152,174,.18);
  border-radius: 999px;
  background: rgba(240,242,247,.8);
  color: #697287;
  font-size: 9.5px;
  line-height: 1;
  font-weight: 720;
  white-space: nowrap;
}

.agency-booking-form-screen .agency-rate-card .agency-rate-box {
  margin: 15px 18px 18px;
}

.agency-booking-form-screen .agency-app-form {
  padding: 20px;
}

.agency-booking-form-screen .agency-form-grid {
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 18px 16px;
}

.agency-booking-form-screen .agency-form-field > span {
  margin-bottom: 8px;
  color: #202b46;
  font-size: 11.5px;
  font-weight: 780;
}

.agency-booking-form-screen .agency-form-field input,
.agency-booking-form-screen .agency-form-field select,
.agency-booking-form-screen .agency-form-field textarea {
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid rgba(179,188,209,.62);
  border-radius: 15px;
  background: rgba(255,255,255,.82);
  color: #111a35;
  font-size: 13px;
  box-shadow: inset 0 1px rgba(255,255,255,.98), 0 5px 14px rgba(70,79,112,.035);
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.agency-booking-form-screen .agency-form-field textarea {
  min-height: 112px;
  line-height: 1.5;
}

.agency-booking-form-screen .agency-form-field input::placeholder,
.agency-booking-form-screen .agency-form-field textarea::placeholder {
  color: #969daf;
}

.agency-booking-form-screen .agency-form-field input:focus,
.agency-booking-form-screen .agency-form-field select:focus,
.agency-booking-form-screen .agency-form-field textarea:focus {
  border-color: #7661df;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(104,71,239,.13), inset 0 1px rgba(255,255,255,.98);
}

.agency-booking-form-screen .agency-field-help {
  display: block;
  padding: 7px 2px 0;
  color: #858da0;
  font-size: 9.5px;
  line-height: 1.45;
}

.agency-booking-form-screen .agency-private-included-note {
  margin-top: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(77,178,129,.16);
  border-radius: 11px;
  background: rgba(232,249,240,.72);
  color: #34755a;
}

.agency-booking-form-screen .modern-request-note {
  margin: 20px 0;
  padding: 15px 16px;
  border: 1px solid rgba(122,126,170,.16);
  border-radius: 17px;
  background: linear-gradient(145deg,rgba(242,243,255,.94),rgba(235,237,250,.82));
  color: #687086;
  font-size: 11.5px;
  line-height: 1.55;
  box-shadow: inset 0 1px rgba(255,255,255,.9);
}

.agency-booking-form-screen .modern-request-note strong {
  color: #3f485f;
}

.agency-booking-form-screen .modern-request-note > strong:first-child {
  margin-bottom: 4px;
  font-size: 12px;
}

.agency-booking-form-screen .agency-booking-form-actions {
  gap: 10px;
}

.agency-booking-form-screen .agency-app-primary-button {
  min-height: 56px;
  border-color: rgba(99,202,101,.58);
  border-radius: 17px;
  background: linear-gradient(145deg,#a9ef8e,#8cde70);
  color: #11271a;
  font-size: 12px;
  font-weight: 880;
  letter-spacing: .45px;
  box-shadow: 0 13px 28px rgba(76,171,77,.2), inset 0 1px rgba(255,255,255,.48);
  transition: transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.agency-booking-form-screen .agency-app-primary-button:hover {
  transform: translateY(-1px);
  border-color: rgba(83,185,85,.7);
  background: linear-gradient(145deg,#a1e986,#82d865);
  box-shadow: 0 16px 32px rgba(76,171,77,.24), inset 0 1px rgba(255,255,255,.5);
}

.agency-booking-form-screen .agency-app-primary-button:active { transform: translateY(0); }

.agency-booking-form-screen .agency-reset-booking-button {
  min-height: 49px;
  border-color: rgba(174,183,204,.52);
  border-radius: 15px;
  background: rgba(255,255,255,.68);
  color: #5d687e;
  box-shadow: inset 0 1px rgba(255,255,255,.92);
  transition: border-color .16s ease, background .16s ease, color .16s ease;
}

.agency-booking-form-screen .agency-reset-booking-button:hover {
  border-color: rgba(144,154,180,.65);
  background: rgba(255,255,255,.94);
  color: #303b55;
}

.agency-tours-screen a:focus-visible,
.agency-booking-form-screen a:focus-visible,
.agency-booking-form-screen button:focus-visible,
.agency-booking-form-screen input:focus-visible,
.agency-booking-form-screen select:focus-visible,
.agency-booking-form-screen textarea:focus-visible {
  outline: 3px solid rgba(91,69,220,.34);
  outline-offset: 3px;
}

@media (max-width: 1199px) {
  .agency-tours-screen .agency-tour-choice-grid.modern-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}

@media (max-width: 699px) {
  .page:has(.agency-tours-screen),
  .page:has(.agency-booking-form-screen) {
    max-width: none;
    padding: 0;
  }

  .agency-tours-screen,
  .agency-booking-form-screen {
    padding: 16px 0 34px;
  }

  .agency-tours-screen .agency-app-topbar,
  .agency-booking-form-screen .agency-app-topbar {
    min-height: 54px;
    margin: 0 12px 17px;
    padding: 6px 8px;
    border-radius: 18px;
  }

  .agency-tours-screen .agency-app-back-button,
  .agency-booking-form-screen .agency-app-back-button {
    width: 40px;
    height: 40px;
    border-radius: 13px;
  }

  .agency-tours-screen .agency-tours-intro {
    margin: 0 12px 20px;
    padding: 9px 6px 0;
  }

  .agency-tours-screen .agency-tours-intro h1 {
    margin-top: 10px;
    font-size: 34px;
    letter-spacing: -1.25px;
  }

  .agency-tours-screen .agency-tours-intro p {
    font-size: 12px;
    line-height: 1.58;
  }

  .agency-tours-screen .agency-tour-choice-grid.modern-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 0 12px 8px;
  }

  .agency-tours-screen .agency-tour-choice {
    padding: 18px;
    border-radius: 23px;
    box-shadow: 0 12px 30px rgba(65,73,110,.065), inset 0 1px rgba(255,255,255,.92);
  }

  .agency-tours-screen .agency-tour-choice:hover { transform: none; }

  .agency-tours-screen .agency-tour-choice-title {
    max-width: none;
    font-size: 20px;
  }

  .agency-tours-screen .agency-tour-choice-copy {
    font-size: 12px;
  }

  .agency-tours-screen .agency-portal-security-footer,
  .agency-booking-form-screen .agency-portal-security-footer {
    margin: 14px 12px 0;
    padding: 14px 15px;
  }

  .agency-booking-form-screen .agency-app-tour-hero,
  .agency-booking-form-screen .agency-app-form-card {
    margin-left: 12px;
    margin-right: 12px;
  }

  .agency-booking-form-screen .agency-app-tour-hero {
    margin-bottom: 14px;
    padding: 20px;
    border-radius: 23px;
  }

  .agency-booking-form-screen .agency-tour-hero-title {
    font-size: 26px;
  }

  .agency-booking-form-screen .agency-tour-hero-copy {
    font-size: 12px;
  }

  .agency-booking-form-screen .agency-app-form-card {
    margin-bottom: 14px;
    border-radius: 22px;
  }

  .agency-booking-form-screen .agency-app-card-head {
    min-height: 58px;
    padding: 15px 16px;
  }

  .agency-booking-form-screen .agency-rate-card .agency-rate-box {
    margin: 13px 14px 15px;
  }

  .agency-booking-form-screen .agency-app-form {
    padding: 16px;
  }

  .agency-booking-form-screen .agency-form-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .agency-booking-form-screen .agency-form-span-2 {
    grid-column: auto;
  }
}

@media (max-width: 480px) {
  .agency-tours-screen,
  .agency-booking-form-screen {
    padding-bottom: calc(104px + env(safe-area-inset-bottom));
  }

  .agency-tours-screen .agency-mobile-nav,
  .agency-booking-form-screen .agency-mobile-nav {
    left: 12px;
    right: 12px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    min-height: 70px;
    padding: 7px;
    border-color: rgba(255,255,255,.82);
    border-radius: 22px;
    background: rgba(255,255,255,.8);
    box-shadow: 0 18px 40px rgba(54,60,91,.17), inset 0 1px rgba(255,255,255,.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }

  .agency-tours-screen .agency-mobile-nav-item,
  .agency-booking-form-screen .agency-mobile-nav-item {
    gap: 5px;
    border-radius: 16px;
    color: #8790a4;
    font-size: 9px;
    font-weight: 600;
  }

  .agency-tours-screen .agency-mobile-nav-item.active,
  .agency-booking-form-screen .agency-mobile-nav-item.active {
    background: linear-gradient(145deg,rgba(239,234,255,.95),rgba(248,246,255,.82));
    color: #6847ef;
    box-shadow: inset 0 1px rgba(255,255,255,.9);
  }

  .agency-tours-screen .agency-mobile-nav-icon,
  .agency-booking-form-screen .agency-mobile-nav-icon {
    width: 22px;
    height: 22px;
  }

  .agency-booking-form-screen .agency-app-card-head {
    align-items: flex-start;
  }
}

@media (max-width: 390px) {
  .agency-tours-screen .agency-tour-choice,
  .agency-booking-form-screen .agency-app-tour-hero {
    padding: 17px;
  }

  .agency-tours-screen .agency-tour-badge,
  .agency-tours-screen .agency-tour-select {
    min-height: 32px;
    padding: 0 10px;
    font-size: 9.5px;
  }

  .agency-tours-screen .agency-rate-line,
  .agency-booking-form-screen .agency-rate-line {
    gap: 10px;
    padding: 11px 12px;
    font-size: 11px;
  }

  .agency-booking-form-screen .agency-app-card-head > span {
    padding-left: 8px;
    padding-right: 8px;
    font-size: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .agency-tours-screen .agency-tour-choice,
  .agency-tours-screen .agency-tour-select,
  .agency-booking-form-screen .agency-form-field input,
  .agency-booking-form-screen .agency-form-field select,
  .agency-booking-form-screen .agency-form-field textarea,
  .agency-booking-form-screen .agency-app-primary-button,
  .agency-booking-form-screen .agency-reset-booking-button {
    transition: none;
  }
}
