:root {
  --portal-ink: var(--ink, #071b38);
  --portal-cream: var(--cream, #f2f0e8);
  --portal-paper: var(--paper, #fbfaf6);
  --portal-lime: var(--lime, #3ce0b5);
  --portal-coral: var(--coral, #d94870);
  --portal-coral-paper: var(--coral-paper, #b13455);
  --portal-blue: var(--blue, #2d6bff);
  --portal-line: #071b3833;
  --portal-dark-line: #f2f0e838;
}

[hidden] {
  display: none !important;
}

.portal-body {
  background: var(--portal-cream);
  color: var(--portal-ink);
}

.portal-page {
  min-height: 100svh;
  background: var(--portal-cream);
}

.portal-page :where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid var(--portal-blue);
  outline-offset: 3px;
}

.portal-page :where(.portal-hero, .portal-section--ink, .portal-sidebar) :where(a, button, input, select, textarea):focus-visible {
  outline-color: var(--portal-lime);
}

.portal-page button,
.portal-page input,
.portal-page select,
.portal-page textarea {
  font: inherit;
}

.portal-page button {
  cursor: pointer;
}

.portal-page button:disabled {
  cursor: wait;
  opacity: .58;
}

.portal-fallback-links {
  align-items: center;
}

.portal-hero {
  color: var(--portal-cream);
  background-color: var(--portal-ink);
  background-image: linear-gradient(100deg, rgba(7, 27, 56, .97) 0%, rgba(7, 27, 56, .89) 54%, rgba(7, 27, 56, .74) 100%), url("/photos/cmb-tower.jpg");
  background-position: center 28%;
  background-size: cover;
  border-bottom: 1px solid #ffffff2e;
}

.portal-hero--broker {
  background-image: linear-gradient(100deg, rgba(7, 27, 56, .97) 0%, rgba(7, 27, 56, .9) 56%, rgba(7, 27, 56, .78) 100%), url("/photos/civic-center.jpg");
  background-position: center 42%;
}

.portal-hero-inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 40px 4vw 46px;
}

.portal-hero .crumb {
  margin-bottom: 34px;
}

.portal-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(280px, .7fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: end;
}

.portal-hero .label {
  color: var(--portal-lime);
  margin-bottom: 16px;
}

.portal-hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(48px, 6vw, 88px);
  font-weight: 700;
  line-height: .82;
  letter-spacing: -.07em;
  text-transform: uppercase;
  text-wrap: balance;
}

.portal-hero h1 em {
  font-family: Georgia, "Times New Roman", serif;
  font-size: .82em;
  font-weight: 400;
  text-transform: none;
}

.portal-hero-copy {
  max-width: 690px;
  margin: 28px 0 0;
  color: #ffffffcf;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(17px, 1.7vw, 22px);
  line-height: 1.52;
}

.portal-session-card {
  background: #ffffff0c;
  border: 1px solid #ffffff38;
  padding: 26px;
}

.portal-session-card > p:not(.portal-eyebrow) {
  margin: 0 0 20px;
  color: #ffffffe0;
  font-size: 14px;
  line-height: 1.6;
}

.portal-eyebrow {
  margin: 0 0 10px;
  color: var(--portal-coral-paper);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.portal-hero .portal-eyebrow,
.portal-section--ink .portal-eyebrow {
  color: var(--portal-lime);
}

.portal-shell {
  display: grid;
  grid-template-columns: minmax(190px, 230px) minmax(0, 1fr);
  max-width: 1600px;
  margin: 0 auto;
  background: var(--portal-cream);
}

.portal-sidebar {
  position: sticky;
  top: 104px;
  align-self: start;
  display: grid;
  gap: 1px;
  margin: 48px 0 0 4vw;
  border: 1px solid var(--portal-line);
  background: var(--portal-line);
}

.portal-sidebar a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 15px;
  background: var(--portal-paper);
  color: var(--portal-ink);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: .11em;
  text-transform: uppercase;
  transition: background .16s, color .16s;
}

.portal-sidebar a:hover {
  background: var(--portal-lime);
}

.portal-main {
  min-width: 0;
}

.portal-global-live {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  min-height: 0;
  margin: 0 auto;
  padding: 0 4vw;
  color: var(--portal-coral-paper);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.portal-global-live:not(:empty) {
  margin-top: 24px;
}

.portal-section {
  max-width: 1260px;
  margin: 0 auto;
  padding: 62px 4vw 72px;
  scroll-margin-top: 94px;
}

.portal-section + .portal-section:not(.portal-section--ink) {
  border-top: 1px solid var(--portal-line);
}

.portal-section--ink {
  max-width: none;
  color: var(--portal-cream);
  background: var(--portal-ink);
  padding-right: max(4vw, calc((100% - 1180px) / 2));
  padding-left: max(4vw, calc((100% - 1180px) / 2));
}

.portal-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, .7fr);
  gap: 40px;
  align-items: end;
  margin-bottom: 34px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--portal-line);
}

.portal-section-head--dark {
  border-bottom-color: var(--portal-dark-line);
}

.portal-section-head h2 {
  max-width: 780px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 4.6vw, 64px);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.portal-section-head > p {
  max-width: 470px;
  margin: 0;
  color: #071b38bd;
  font-size: 14px;
  line-height: 1.62;
}

.portal-section-head--dark > p {
  color: #ffffffbd;
}

.portal-notice {
  min-height: 20px;
  margin: 0 0 18px;
  color: #071b38a8;
  font-size: 12px;
  line-height: 1.5;
}

.portal-notice[data-kind="error"],
.portal-form-status[data-kind="error"] {
  color: #982544;
}

.portal-service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--portal-line);
  background: var(--portal-line);
}

.portal-service-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 26px 24px 24px;
  background: var(--portal-paper);
}

.portal-service-card-head {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: start;
  gap: 5px 14px;
}

.portal-service-number {
  grid-row: 1 / 5;
  padding-top: 2px;
  color: var(--portal-coral-paper);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
}

.portal-service-card .portal-eyebrow {
  margin-bottom: 4px;
}

.portal-service-card h3 {
  margin: 0 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.025em;
}

.portal-service-price {
  margin: 0;
  color: var(--portal-ink);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.3;
}

.portal-service-description {
  margin: 22px 0 0;
  color: #071b38c7;
  font-size: 14px;
  line-height: 1.62;
}

.portal-service-features {
  display: grid;
  gap: 0;
  margin: 20px 0 24px;
  padding: 0;
  border-top: 1px solid var(--portal-line);
  list-style: none;
}

.portal-service-features:empty {
  display: none;
}

.portal-service-features li {
  padding: 10px 0;
  border-bottom: 1px solid var(--portal-line);
  color: #071b38bd;
  font-size: 12px;
  line-height: 1.5;
}

.portal-service-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 48px;
  margin-top: auto;
  padding: 10px 14px;
  border: 1px solid var(--portal-ink);
  color: var(--portal-ink);
  background: transparent;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: .11em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .16s;
}

.portal-service-cta:hover {
  background: var(--portal-lime);
}

.portal-inline-actions,
.portal-wizard-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.portal-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid transparent;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: .11em;
  text-align: center;
  text-transform: uppercase;
  transition: background .16s, color .16s, border-color .16s;
}

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

.portal-button--lime:hover {
  border-color: var(--portal-cream);
  color: var(--portal-cream);
  background: transparent;
}

.portal-step-panel .portal-button--lime:hover {
  border-color: var(--portal-ink);
  color: var(--portal-ink);
  background: transparent;
}

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

.portal-button--ink:hover {
  color: var(--portal-ink);
  background: var(--portal-lime);
}

.portal-button--outline {
  border-color: var(--portal-ink);
  color: var(--portal-ink);
  background: transparent;
}

.portal-button--outline:hover {
  background: #071b380a;
}

.portal-button--quiet-dark {
  border-color: #ffffff80;
  color: var(--portal-cream);
  background: transparent;
}

.portal-button--quiet-dark:hover {
  border-color: var(--portal-lime);
  color: var(--portal-lime);
}

.portal-step-panel .portal-button--quiet-dark {
  border-color: var(--portal-ink);
  color: var(--portal-ink);
}

.portal-step-panel .portal-button--quiet-dark:hover {
  color: var(--portal-ink);
  background: #071b380a;
}

.portal-text-button,
.portal-text-link {
  min-height: 44px;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  color: var(--portal-coral-paper);
  background: transparent;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.portal-stepper {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 0 24px;
  padding: 0;
  border: 1px solid var(--portal-dark-line);
  list-style: none;
}

.portal-stepper li {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 11px 14px;
  border-right: 1px solid var(--portal-dark-line);
  color: #ffffff8f;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.portal-stepper li:last-child {
  border-right: 0;
}

.portal-stepper li span {
  color: inherit;
  font-size: 11px;
}

.portal-stepper li[aria-current="step"] {
  color: var(--portal-ink);
  background: var(--portal-lime);
}

.portal-stepper li[data-complete="true"] {
  color: var(--portal-cream);
  background: #ffffff12;
}

.portal-wizard {
  color: var(--portal-ink);
}

.portal-step-panel {
  min-height: 390px;
  padding: clamp(26px, 4vw, 48px);
  border: 1px solid var(--portal-ink);
  background: var(--portal-paper);
}

.portal-step-count {
  margin: 0 0 8px;
  color: var(--portal-coral-paper);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.portal-step-panel h3,
.portal-auth-form h3,
.portal-account-card h3,
.portal-empty-state h3,
.broker-detail-pane h3 {
  margin: 0 0 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(27px, 3vw, 40px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.03em;
}

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

.portal-field {
  display: grid;
  align-content: start;
  gap: 7px;
  min-width: 0;
}

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

.portal-field > label,
.portal-field-label,
.portal-check {
  color: #071b38d1;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.portal-optional {
  color: #071b3880;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.portal-message-address {
  display: grid;
  gap: 4px;
  margin: 0;
  border: 1px solid #071b385c;
  background: #fff;
  padding: 12px 13px;
}

.portal-message-address strong {
  color: var(--portal-ink);
  font-size: 16px;
  overflow-wrap: anywhere;
}

.portal-message-address span {
  color: #071b3899;
  font-size: 12px;
}

.portal-field :where(input, select, textarea) {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid #071b385c;
  border-radius: 0;
  color: var(--portal-ink);
  background: #fff;
  font-size: 16px;
  line-height: 1.45;
}

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

.portal-field :where(input, select, textarea):focus {
  border-color: var(--portal-blue);
}

.portal-field :where(input, select, textarea)[aria-invalid="true"] {
  border-color: #982544;
  border-width: 2px;
}

.portal-help,
.portal-field-error,
.portal-form-status {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
}

.portal-help {
  color: #071b389e;
}

.portal-field-error {
  min-height: 0;
  color: #982544;
  font-weight: 700;
}

.portal-field-error:not(:empty) {
  min-height: 18px;
}

.portal-form-status {
  min-height: 20px;
  color: #22674f;
  font-weight: 700;
}

.portal-wizard-actions {
  justify-content: space-between;
  margin-top: 30px;
}

.portal-wizard-actions--end {
  justify-content: flex-end;
}

.portal-review-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid var(--portal-line);
  border-left: 1px solid var(--portal-line);
}

.portal-review-list > div {
  padding: 17px 18px;
  border-right: 1px solid var(--portal-line);
  border-bottom: 1px solid var(--portal-line);
}

.portal-review-list .portal-review-details {
  grid-column: 1 / -1;
}

.portal-review-list dt,
.portal-booking-meta dt,
.broker-detail-grid dt {
  color: #071b3899;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.portal-review-list dd {
  margin: 6px 0 0;
  font-size: 15px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.portal-trust-note,
.portal-auth-gate {
  margin-top: 22px;
  padding: 18px 20px;
  border-left: 2px solid var(--portal-coral-paper);
  background: #071b3808;
}

.portal-trust-note strong,
.portal-auth-gate strong {
  display: block;
  margin-bottom: 7px;
  color: var(--portal-coral-paper);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.portal-trust-note p,
.portal-auth-gate p {
  margin: 0;
  font-size: 13px;
  line-height: 1.62;
}

.portal-auth-gate .portal-text-button {
  margin-top: 10px;
}

.portal-submit-expectation {
  margin: 22px 0 0;
  padding: 16px 18px;
  border-left: 3px solid var(--portal-lime);
  color: var(--portal-ink);
  background: #3bdab114;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
}

.portal-claim-card,
.portal-claim-notice {
  margin-top: 18px;
  padding: 18px 20px;
  border: 1px solid #3bdab170;
  color: var(--portal-ink);
  background: #3bdab112;
}

.portal-claim-card > strong,
.portal-claim-notice > strong {
  display: block;
  margin-bottom: 6px;
}

.portal-claim-card > p,
.portal-claim-notice > p {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.6;
}

.portal-claim-card .portal-help {
  margin-top: 10px;
}

.portal-claim-notice {
  margin: 0 0 18px;
}

.portal-signed-out-callout,
.portal-account-card,
.portal-empty-state {
  padding: clamp(24px, 3vw, 38px);
  border: 1px solid var(--portal-line);
  background: var(--portal-paper);
}

.portal-signed-out-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.portal-signed-out-callout p {
  max-width: 650px;
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
}

.portal-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  margin-bottom: 22px;
  border: 1px solid var(--portal-line);
  background: var(--portal-line);
}

.portal-filter-row button {
  min-height: 44px;
  padding: 9px 15px;
  border: 0;
  color: var(--portal-ink);
  background: var(--portal-paper);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.portal-filter-row button[aria-pressed="true"],
.portal-filter-row button:hover {
  background: var(--portal-lime);
}

.portal-booking-list {
  display: grid;
  gap: 14px;
}

.portal-booking-card {
  padding: 24px;
  border: 1px solid var(--portal-line);
  background: var(--portal-paper);
}

.portal-booking-card-head,
.broker-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
}

.portal-booking-card h3 {
  margin: 5px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.16;
}

.portal-booking-reference {
  margin: 0;
  color: var(--portal-coral-paper);
  font-size: 9px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.portal-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid #071b383d;
  color: var(--portal-ink);
  background: #e6e2d8;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.portal-status::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.portal-status--requested { background: #e5ebf7; }
.portal-status--reviewing { color: #173f8e; background: #dfe8ff; }
.portal-status--needs_information { color: #87213e; background: #f4dce4; }
.portal-status--quote_ready { color: #07543e; background: #d5f4eb; }
.portal-status--confirmed { color: var(--portal-cream); background: var(--portal-ink); }
.portal-status--in_progress { color: #fff; background: #2456c8; }
.portal-status--completed { color: #07543e; background: #dceee8; }
.portal-status--cancelled { color: #5b5b59; background: #e7e4db; }

.portal-booking-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 22px 0 0;
  border: 1px solid var(--portal-line);
  background: var(--portal-line);
}

.portal-booking-meta > div {
  padding: 14px;
  background: var(--portal-paper);
}

.portal-booking-meta dd,
.broker-detail-grid dd {
  margin: 5px 0 0;
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.portal-booking-note {
  margin-top: 18px;
  padding: 16px 18px;
  border-left: 2px solid var(--portal-coral-paper);
  background: #071b3808;
}

.portal-booking-note p:last-child {
  margin: 0;
  font-size: 13px;
  line-height: 1.58;
  white-space: pre-wrap;
}

.portal-empty-state {
  text-align: left;
}

.portal-empty-state h3 {
  margin-bottom: 10px;
}

.portal-empty-state > p:not(.portal-eyebrow) {
  max-width: 560px;
  margin: 0 0 20px;
  color: #071b38bd;
  font-size: 14px;
  line-height: 1.6;
}

.portal-account-section {
  max-width: 1000px;
}

.portal-tabs {
  display: inline-flex;
  gap: 1px;
  margin-bottom: 0;
  border: 1px solid var(--portal-ink);
  background: var(--portal-ink);
}

.portal-tabs button {
  min-height: 46px;
  padding: 10px 18px;
  border: 0;
  color: var(--portal-ink);
  background: var(--portal-paper);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.portal-tabs button[aria-selected="true"] {
  background: var(--portal-lime);
}

.portal-auth-form {
  padding: clamp(26px, 4vw, 44px);
  border: 1px solid var(--portal-ink);
  background: var(--portal-paper);
}

.portal-auth-form > h3 {
  margin-bottom: 8px;
}

.portal-auth-form > p:not(.portal-form-status) {
  max-width: 620px;
  margin: 0 0 26px;
  color: #071b38bd;
  font-size: 14px;
  line-height: 1.6;
}

.portal-auth-form .portal-form-status {
  margin: 18px 0 8px;
}

.portal-check {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px;
  line-height: 1.55;
}

.portal-check input {
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--portal-ink);
}

.portal-check a {
  color: #173f8e;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.portal-password-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}

.portal-password-field input {
  border-right: 0;
}

.portal-password-field button {
  min-width: 68px;
  border: 1px solid #071b385c;
  color: var(--portal-ink);
  background: #071b3808;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.portal-account-card > p:not(.portal-eyebrow) {
  margin: -12px 0 22px;
  color: #071b38bd;
  font-size: 15px;
}

/* Signed-in messaging */
.portal-message-layout {
  display: grid;
  grid-template-columns: minmax(340px, .9fr) minmax(380px, 1.1fr);
  gap: 20px;
  align-items: start;
}

.portal-message-form,
.portal-message-history {
  min-width: 0;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--portal-line);
  background: var(--portal-paper);
}

.portal-message-form {
  display: grid;
  gap: 18px;
}

.portal-message-form h3,
.portal-message-history h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(26px, 2.8vw, 36px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.03em;
}

.portal-message-delivery-note {
  padding: 16px 18px;
  border-left: 2px solid var(--portal-coral-paper);
  background: #071b3808;
}

.portal-message-delivery-note > strong {
  display: block;
  margin-bottom: 6px;
  color: var(--portal-coral-paper);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.portal-message-delivery-note p {
  margin: 0;
  color: #071b38bd;
  font-size: 12px;
  line-height: 1.58;
}

.portal-message-history-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--portal-line);
}

.portal-message-list {
  display: grid;
  gap: 8px;
}

.portal-message-row {
  padding: 17px 18px;
  border: 1px solid var(--portal-line);
  background: #fff;
}

.portal-message-row-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.portal-message-row h4 {
  margin: 5px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.24;
  overflow-wrap: anywhere;
}

.portal-message-recipient {
  margin: 13px 0 0;
  color: #071b389e;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.portal-delivery-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 4px 8px;
  border: 1px solid #071b383d;
  color: var(--portal-ink);
  background: #e7e4db;
  font-size: 8px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: .07em;
  text-transform: uppercase;
  white-space: nowrap;
}

.portal-delivery-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.portal-delivery-status--sent,
.portal-delivery-status--delivered {
  color: #07543e;
  background: #dceee8;
}

.portal-delivery-status--pending,
.portal-delivery-status--saved,
.portal-delivery-status--partial {
  color: #173f8e;
  background: #dfe8ff;
}

.portal-delivery-status--failed {
  color: #87213e;
  background: #f4dce4;
}

.portal-message-empty {
  padding: 20px;
}

.portal-message-empty h3 {
  margin: 0;
  font-size: 22px;
}

/* Broker workspace */
.broker-overview {
  max-width: 1380px;
}

.broker-count-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 28px;
  border: 1px solid var(--portal-line);
  background: var(--portal-line);
}

.broker-count-grid article {
  padding: 20px;
  background: var(--portal-paper);
}

.broker-count-grid span {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 38px;
  line-height: 1;
}

.broker-count-grid p {
  margin: 8px 0 0;
  color: #071b38a8;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.broker-toolbar {
  display: grid;
  grid-template-columns: minmax(160px, .55fr) minmax(190px, .7fr) minmax(260px, 1.2fr);
  gap: 16px;
  margin-bottom: 20px;
}

.broker-workspace {
  display: grid;
  grid-template-columns: minmax(300px, .85fr) minmax(420px, 1.15fr);
  gap: 18px;
  align-items: start;
}

.broker-queue-pane,
.broker-detail-pane {
  min-width: 0;
}

.broker-queue-list {
  display: grid;
  gap: 8px;
}

.broker-queue-row {
  display: grid;
  gap: 7px;
  width: 100%;
  min-height: 132px;
  padding: 17px 18px;
  border: 1px solid var(--portal-line);
  color: var(--portal-ink);
  background: var(--portal-paper);
  text-align: left;
  transition: border-color .16s, background .16s;
}

.broker-queue-row:hover,
.broker-queue-row[aria-pressed="true"] {
  border-color: var(--portal-ink);
  background: #fff;
}

.broker-queue-row[aria-pressed="true"] {
  box-shadow: inset 4px 0 0 var(--portal-lime);
}

.broker-row-top,
.broker-row-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.broker-queue-row > strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.18;
}

.broker-row-customer {
  color: #071b38bd;
  font-size: 13px;
  line-height: 1.4;
}

.broker-row-meta {
  color: #071b3899;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.broker-detail-pane {
  position: sticky;
  top: 104px;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--portal-ink);
  background: var(--portal-paper);
}

.broker-detail-empty > p:last-child {
  margin: 0;
  color: #071b38bd;
  font-size: 14px;
  line-height: 1.6;
}

.broker-detail-head {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--portal-line);
}

.broker-detail-head h3 {
  margin: 5px 0 0;
}

.broker-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 22px 0 0;
  border: 1px solid var(--portal-line);
  background: var(--portal-line);
}

.broker-detail-grid > div {
  padding: 13px 14px;
  background: var(--portal-paper);
}

.broker-request-copy {
  margin-top: 22px;
  padding: 18px 20px;
  border-left: 2px solid var(--portal-coral-paper);
  background: #071b3808;
}

.broker-request-copy > p:last-child {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.broker-update-form {
  display: grid;
  gap: 18px;
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--portal-line);
}

.broker-update-form .portal-button {
  justify-self: start;
}

@media (max-width: 1180px) {
  .portal-service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .broker-workspace {
    grid-template-columns: minmax(260px, .75fr) minmax(380px, 1.25fr);
  }
}

@media (max-width: 1000px) {
  .portal-hero-inner {
    padding-right: 6vw;
    padding-left: 6vw;
  }

  .portal-hero-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .portal-session-card {
    max-width: 620px;
  }

  .portal-shell {
    display: block;
  }

  .portal-sidebar {
    position: sticky;
    top: 0;
    z-index: 15;
    display: flex;
    margin: 0;
    border-right: 0;
    border-left: 0;
    overflow-x: auto;
    background: var(--portal-ink);
  }

  .portal-sidebar a {
    flex: 1 0 auto;
    justify-content: center;
    min-height: 50px;
    color: var(--portal-cream);
    background: var(--portal-ink);
  }

  .portal-sidebar a:hover {
    color: var(--portal-ink);
    background: var(--portal-lime);
  }

  .portal-section {
    padding-right: 6vw;
    padding-left: 6vw;
  }

  .broker-workspace {
    grid-template-columns: 1fr;
  }

  .portal-message-layout {
    grid-template-columns: 1fr;
  }

  .broker-detail-pane {
    position: static;
  }
}

@media (max-width: 700px) {
  .portal-body {
    padding-bottom: calc(64px + env(safe-area-inset-bottom));
  }

  .portal-hero {
    background-position: 60% center;
  }

  .portal-hero-inner {
    padding: 34px 5vw 40px;
  }

  .portal-hero .crumb {
    margin-bottom: 24px;
  }

  .portal-hero h1 {
    font-size: clamp(46px, 15vw, 72px);
  }

  .portal-hero-copy {
    margin-top: 20px;
    font-size: 17px;
  }

  .portal-session-card {
    padding: 20px;
  }

  .portal-sidebar {
    position: fixed;
    inset: auto 0 0;
    z-index: 40;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    padding-bottom: env(safe-area-inset-bottom);
    border-top: 1px solid #ffffff38;
    background: var(--portal-ink);
  }

  .portal-sidebar a {
    min-width: 0;
    min-height: 62px;
    padding: 8px 5px;
    border-right: 1px solid #ffffff2e;
    font-size: 8px;
    text-align: center;
  }

  .portal-sidebar a:last-child {
    border-right: 0;
  }

  .broker-body .portal-sidebar {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .portal-section {
    padding: 56px 5vw 64px;
    scroll-margin-top: 18px;
  }

  .portal-section--ink {
    padding-right: 5vw;
    padding-left: 5vw;
  }

  .portal-section-head {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 26px;
    padding-bottom: 22px;
  }

  .portal-section-head h2 {
    font-size: clamp(34px, 11vw, 50px);
  }

  .portal-section-head > p {
    font-size: 13px;
  }

  .portal-service-grid {
    grid-template-columns: 1fr;
  }

  .portal-service-card {
    padding: 23px 20px 21px;
  }

  .portal-stepper li {
    justify-content: center;
    min-height: 50px;
    padding: 8px 5px;
    font-size: 0;
  }

  .portal-stepper li span {
    font-size: 10px;
  }

  .portal-step-panel {
    min-height: 0;
    padding: 26px 20px 24px;
  }

  .portal-form-grid,
  .portal-review-list,
  .portal-booking-meta,
  .broker-count-grid,
  .broker-toolbar,
  .broker-detail-grid {
    grid-template-columns: 1fr;
  }

  .portal-review-list .portal-review-details {
    grid-column: auto;
  }

  .portal-wizard-actions {
    position: sticky;
    bottom: calc(64px + env(safe-area-inset-bottom));
    z-index: 8;
    margin: 30px -20px -24px;
    padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--portal-line);
    background: var(--portal-paper);
  }

  .portal-wizard-actions .portal-button {
    flex: 1;
  }

  .portal-signed-out-callout {
    align-items: flex-start;
    flex-direction: column;
  }

  .portal-filter-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-filter-row button {
    width: 100%;
  }

  .portal-booking-card {
    padding: 20px;
  }

  .portal-booking-card-head,
  .broker-detail-head,
  .portal-message-row-head {
    flex-direction: column;
    gap: 12px;
  }

  .portal-message-form,
  .portal-message-history {
    padding: 22px 18px;
  }

  .portal-booking-meta > div,
  .broker-detail-grid > div {
    border-bottom: 1px solid var(--portal-line);
  }

  .portal-tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .portal-auth-form {
    padding: 26px 20px;
  }

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

  .broker-count-grid article {
    padding: 16px;
  }

  .broker-detail-pane {
    padding: 22px 18px;
    scroll-margin-top: 18px;
  }

  .broker-update-form .portal-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .portal-page *,
  .portal-page *::before,
  .portal-page *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
