:root {
  color-scheme: light;
  --ink: #17160f;
  --ink-soft: #5d594f;
  --paper: #f3f0ea;
  --paper-deep: #e8e3d9;
  --white: #fff;
  --blue: #2e63a6;
  --blue-dark: #204a7d;
  --blue-pale: #edf3fa;
  --line: rgba(23, 22, 15, .14);
  --muted: #777268;
  --good: #216b4f;
  --good-pale: #e7f4ed;
  --warn: #8b5b12;
  --warn-pale: #fff2d8;
  --danger: #a13732;
  --danger-pale: #fff0ee;
  --shadow: 0 34px 76px -52px rgba(23, 22, 15, .58);
  --focus: 0 0 0 4px rgba(46, 99, 166, .23);
}

*, *::before, *::after { box-sizing: border-box; }

html { min-width: 320px; scroll-behavior: smooth; }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(900px 520px at 100% 0%, rgba(46, 99, 166, .14), transparent 66%),
    var(--paper);
  font-family: "Archivo", Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: var(--blue-dark); }
img { max-width: 100%; }
[hidden] { display: none !important; }

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 14px;
  left: 16px;
  padding: 11px 15px;
  border-radius: 6px;
  color: #fff;
  background: var(--blue-dark);
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform .16s ease;
}

.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid rgba(46, 99, 166, .5); outline-offset: 3px; }

.portal-session-bar {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 28px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, .58);
}

.portal-session-bar__label { color: var(--blue-dark); font-size: 11px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.portal-session-bar__controls { min-width: 0; display: flex; align-items: center; gap: 10px; }

.account-identity {
  max-width: 240px;
  overflow: hidden;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}
.header-button:hover { border-color: var(--blue); color: var(--blue-dark); background: var(--blue-pale); }
.header-button:disabled { cursor: wait; opacity: .58; }

.account-main { width: min(1180px, calc(100% - 32px)); min-height: calc(100vh - 150px); margin: 0 auto; padding: 42px 0 58px; }
#quotes-panel, #quote-detail-panel { scroll-margin-top: calc(var(--public-shell-header-height, 74px) + 14px); }

.eyebrow, .panel-kicker {
  margin: 0;
  color: var(--blue-dark);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.session-loading {
  min-height: 560px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.session-loading h1 { margin: 10px 0 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(38px, 7vw, 64px); font-weight: 500; letter-spacing: -.045em; }
.session-loading > p:last-child { color: var(--ink-soft); }

.loading-mark {
  width: 42px;
  height: 42px;
  margin-bottom: 24px;
  border: 3px solid var(--paper-deep);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin .78s linear infinite;
}

.auth-shell { max-width: 1120px; display: grid; grid-template-areas: "auth" "story"; overflow: hidden; margin-inline: auto; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow); }

.auth-story {
  grid-area: story;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(36px, 5vw, 60px);
  color: #fff;
  background:
    linear-gradient(145deg, rgba(46, 99, 166, .94), rgba(22, 58, 102, .97)),
    var(--blue-dark);
}
.auth-story::after { position: absolute; right: -90px; bottom: -110px; width: 330px; height: 330px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 50%; content: ""; }
.auth-story .eyebrow { color: rgba(255, 255, 255, .7); }
.auth-story h1 { max-width: 10ch; margin: 15px 0 0; font-family: "Archivo Expanded", "Archivo", system-ui, sans-serif; font-size: clamp(42px, 5vw, 64px); font-weight: 800; letter-spacing: -.035em; line-height: .98; }
.auth-story__lead { max-width: 500px; margin: 20px 0 0; color: rgba(255, 255, 255, .8); font-size: 16px; line-height: 1.55; }

.benefit-list { max-width: 540px; display: grid; gap: 16px; margin: 32px 0 0; padding: 0; list-style: none; }
.benefit-list li { display: grid; grid-template-columns: 42px 1fr; gap: 15px; align-items: start; }
.benefit-list li > span { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .25); border-radius: 50%; color: rgba(255, 255, 255, .72); font-size: 10px; font-weight: 800; }
.benefit-list strong { display: block; font-size: 14px; }
.benefit-list p { margin: 2px 0 0; color: rgba(255, 255, 255, .66); font-size: 12.5px; }

.auth-card { grid-area: auth; align-self: stretch; display: grid; align-content: center; padding: clamp(32px, 5vw, 56px); }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.auth-tabs button { min-height: 48px; padding: 0 10px 11px; border: 0; border-bottom: 3px solid transparent; color: var(--muted); background: transparent; cursor: pointer; font-size: 13px; font-weight: 800; }
.auth-tabs button[aria-selected="true"] { border-bottom-color: var(--blue); color: var(--blue-dark); }

.form-heading h2, .tool-card h2, .card-heading h2 { margin: 7px 0 0; font-size: 24px; letter-spacing: -.03em; line-height: 1.15; }
.form-hint { margin: 10px 0 0; color: var(--ink-soft); font-size: 13px; }
.auth-card form { display: grid; gap: 17px; margin-top: 22px; }
.auth-subpanel { min-height: 360px; }
.auth-help-link { min-height: 44px; margin-top: 12px; padding: 7px 0; border: 0; color: var(--blue-dark); background: transparent; cursor: pointer; font: inherit; font-size: 12.5px; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.auth-help-link:hover { color: var(--blue); }
.auth-help-link:focus-visible { border-radius: 4px; outline: 0; box-shadow: var(--focus); }

.field label { display: block; margin-bottom: 7px; color: #444139; font-size: 12px; font-weight: 800; }
.field input, .field select {
  width: 100%;
  min-height: 48px;
  padding: 0 13px;
  border: 1px solid rgba(23, 22, 15, .22);
  border-radius: 7px;
  color: var(--ink);
  background: #fff;
  font-size: 14px;
}
.field input::placeholder { color: #918c82; }
.field input:focus, .field select:focus { border-color: var(--blue); outline: 0; box-shadow: var(--focus); }
.field-hint { margin: 6px 0 0; color: var(--muted); font-size: 11.5px; }

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}
.button-primary { border: 1px solid var(--blue); color: #fff; background: var(--blue); }
.button-primary:hover { border-color: var(--blue-dark); color: #fff; background: var(--blue-dark); }
.button-secondary { border: 1px solid rgba(23, 22, 15, .23); color: var(--ink); background: #fff; }
.button-secondary:hover { border-color: var(--ink); }
.button-block { width: 100%; }
.button:disabled { cursor: wait; opacity: .58; }

.form-feedback { margin: 18px 0 0; padding: 11px 13px; border-left: 3px solid var(--danger); color: #732d29; background: var(--danger-pale); font-size: 12.5px; }
.form-feedback[data-state="success"] { border-left-color: var(--good); color: #19573f; background: var(--good-pale); }
.form-feedback[data-state="info"] { border-left-color: var(--blue); color: var(--blue-dark); background: var(--blue-pale); }
.handoff-notice { margin: 0 0 24px; padding: 14px 15px; border-left: 3px solid var(--blue); color: var(--blue-dark); background: var(--blue-pale); font-size: 13px; }
.account-feedback { margin: -8px 0 24px; }
.handoff-retry { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 0 24px; padding: 16px 18px; border: 1px solid rgba(46, 99, 166, .26); border-left: 4px solid var(--blue); border-radius: 9px; background: var(--blue-pale); }
.handoff-retry p:last-child { margin: 6px 0 0; color: var(--blue-dark); font-size: 13px; }
.handoff-retry .button { min-width: 154px; min-height: 42px; flex: 0 0 auto; background: rgba(255, 255, 255, .88); }

.account-welcome { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin: 0 0 30px; }
.account-welcome h1 { margin: 11px 0 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(42px, 7vw, 72px); font-weight: 500; letter-spacing: -.052em; line-height: 1; }
.account-welcome p:last-child { max-width: 660px; margin: 15px 0 0; color: var(--ink-soft); }

.account-grid { display: grid; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
.quotes-card { min-width: 0; border-bottom: 1px solid var(--line); background: #fbfaf7; }
.card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 24px 22px 18px; }
.text-button { min-height: 35px; padding: 4px 1px; border: 0; color: var(--blue-dark); background: transparent; cursor: pointer; font-size: 12px; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.text-button:disabled { cursor: wait; opacity: .5; }

.panel-status { margin: 0; padding: 13px 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; }
.panel-status[data-state="error"] { margin: 12px 20px; border: 0; border-left: 3px solid var(--danger); color: #732d29; background: var(--danger-pale); }
.quote-refresh-meta { min-height: 31px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10.5px; }
.updated-indicator { padding: 3px 7px; border-radius: 999px; color: #19573f; background: var(--good-pale); font-size: 9.5px; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }

.quote-list { margin: 0; padding: 0; list-style: none; }
.quote-list > li { border-top: 1px solid var(--line); }
.quote-button { width: 100%; display: block; padding: 19px 22px; border: 0; color: var(--ink); background: transparent; cursor: pointer; text-align: left; transition: background .16s ease, box-shadow .16s ease; }
.quote-button:hover { background: #f3f6fa; }
.quote-button[aria-current="true"] { background: var(--blue-pale); box-shadow: inset 4px 0 var(--blue); }
.quote-button:focus-visible { outline-offset: -4px; }
.quote-button__top, .quote-button__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.quote-button__top { justify-content: space-between; }
.quote-reference { color: var(--ink-soft); font-size: 10.5px; font-weight: 850; letter-spacing: .1em; }
.quote-vehicle { display: block; margin-top: 9px; font-size: 15px; }
.quote-button__meta { margin-top: 5px; color: var(--muted); font-size: 11.5px; }
.quote-button__meta span + span::before { margin-right: 8px; color: #aca79e; content: "·"; }
.quote-button__offer { color: var(--good); font-size: 12px; }

.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 999px; color: #59554d; background: #ece9e3; font-size: 9.5px; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.status-pill::before { width: 6px; height: 6px; border-radius: 50%; content: ""; background: #918c82; }
.status-pill[data-tone="good"] { color: #19573f; background: var(--good-pale); }
.status-pill[data-tone="good"]::before { background: var(--good); }
.status-pill[data-tone="warn"] { color: #6c460e; background: var(--warn-pale); }
.status-pill[data-tone="warn"]::before { background: var(--warn); }
.status-pill[data-tone="danger"] { color: #742b27; background: var(--danger-pale); }
.status-pill[data-tone="danger"]::before { background: var(--danger); }

.quote-empty { padding: 38px 24px 46px; color: var(--ink-soft); text-align: center; }
.quote-empty strong { display: block; margin-bottom: 5px; color: var(--ink); }
.quote-empty a { font-weight: 800; }

.quote-detail { position: relative; min-width: 0; }
.detail-back { display: none; margin: 16px 22px 0; }
.detail-empty { min-height: 500px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(35px, 7vw, 70px); }
.detail-empty__mark { width: 58px; height: 58px; display: grid; place-items: center; margin-bottom: 24px; border-radius: 50%; color: #fff; background: var(--blue); font-size: 13px; font-weight: 900; letter-spacing: .08em; }
.detail-empty h2 { max-width: 520px; margin: 10px 0 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(34px, 6vw, 52px); font-weight: 500; letter-spacing: -.04em; }
.detail-empty > p:last-child { max-width: 540px; margin: 15px 0 0; color: var(--ink-soft); line-height: 1.65; }

.detail-state { min-height: 500px; display: grid; place-items: center; padding: 45px 24px; text-align: center; }
.detail-state > div { max-width: 520px; }
.detail-state h2 { margin: 8px 0 0; font-size: 26px; }
.detail-state p { color: var(--ink-soft); }
.detail-state .loading-mark { display: block; margin: 0 auto 20px; }

.quote-detail__header { padding: clamp(28px, 5vw, 48px); border-bottom: 1px solid var(--line); background: linear-gradient(145deg, #fff 40%, #f0f5fa); }
.quote-detail__reference { color: var(--blue-dark); font-size: 11px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.quote-detail__header h2 { margin: 18px 0 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(37px, 6vw, 58px); font-weight: 500; letter-spacing: -.045em; line-height: 1; }
.quote-detail__sub { margin: 9px 0 0; color: var(--ink-soft); }
.quote-detail__status { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-top: 22px; }

.quote-detail__body { padding: 0 clamp(22px, 5vw, 48px) 48px; }
.quote-offer { margin-top: 32px; padding: clamp(22px, 5vw, 32px); border: 1px solid rgba(33, 107, 79, .25); border-radius: 12px; background: linear-gradient(145deg, #f5fbf7, var(--good-pale)); }
.quote-offer__heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.quote-offer__amount { margin: 0; color: var(--good); font-family: Georgia, "Times New Roman", serif; font-size: clamp(34px, 6vw, 52px); font-weight: 500; letter-spacing: -.04em; line-height: 1; }
.quote-offer__message { margin: 20px 0 0; color: #264b3e; white-space: pre-wrap; }
.quote-offer__updated { margin: 14px 0 0; color: var(--muted); font-size: 11.5px; }
.quote-offer__contact { margin-top: 23px; padding-top: 20px; border-top: 1px solid rgba(33, 107, 79, .2); }
.quote-offer__contact-copy { margin: 0; color: #264b3e; font-size: 13px; }
.quote-offer__actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 14px; }
.quote-offer__actions .button { min-height: 42px; padding: 0 14px; border-color: rgba(33, 107, 79, .32); background: rgba(255, 255, 255, .82); }
.quote-offer__actions .button:hover { border-color: var(--good); color: #174e3a; background: #fff; }
.photo-upload { margin-top: 24px; }
.photo-upload:focus-visible { outline: 3px solid rgba(46, 99, 166, .5); outline-offset: 3px; }
.photo-upload > .panel-kicker { margin-bottom: 7px; }
.photo-upload > h3 { margin-bottom: 9px; }
.photo-upload__intro, .photo-upload__limits, .photo-upload__unavailable { max-width: 700px; margin: 0; color: var(--ink-soft); font-size: 12.5px; line-height: 1.6; }
.photo-upload__limits { margin-top: 8px; color: var(--blue-dark); font-weight: 750; }
.photo-upload__unavailable { padding: 14px 16px; border-left: 3px solid var(--warn); background: var(--warn-pale); color: #6c460e; }
.photo-upload-form { display: grid; gap: 18px; margin-top: 20px; }
.photo-upload-field { max-width: 700px; }
.photo-upload-input { min-height: 50px !important; padding: 9px 11px !important; }
.photo-upload-input::file-selector-button { min-height: 32px; margin-right: 11px; padding: 0 12px; border: 1px solid rgba(23, 22, 15, .2); border-radius: 5px; color: var(--ink); background: #fff; cursor: pointer; font: inherit; font-size: 11.5px; font-weight: 800; }
.photo-upload-input::file-selector-button:hover { border-color: var(--blue); color: var(--blue-dark); background: var(--blue-pale); }
.photo-upload-list { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.photo-upload-item { min-width: 0; display: grid; grid-template-columns: 60px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: #fbfaf7; }
.photo-upload-item[data-state="uploading"], .photo-upload-item[data-state="preparing"] { border-color: rgba(46, 99, 166, .34); background: var(--blue-pale); }
.photo-upload-item[data-state="error"] { border-color: rgba(161, 55, 50, .3); background: var(--danger-pale); }
.photo-upload-item__preview { width: 60px; height: 52px; display: block; border-radius: 5px; object-fit: cover; background: var(--paper-deep); }
.photo-upload-item__preview-fallback { width: 60px; height: 52px; display: flex; align-items: center; justify-content: center; padding: 5px; border-radius: 5px; color: var(--muted); background: var(--paper-deep); font-size: 8.5px; font-weight: 750; line-height: 1.25; text-align: center; }
.photo-upload-item__preview-fallback[hidden] { display: none; }
.photo-upload-item__copy { min-width: 0; }
.photo-upload-item__copy strong, .photo-upload-item__copy span { display: block; overflow-wrap: anywhere; }
.photo-upload-item__copy strong { font-size: 12.5px; }
.photo-upload-item__copy span { margin-top: 3px; color: var(--muted); font-size: 10.5px; }
.photo-upload-item__remove { min-height: 36px; padding: 4px 8px; border: 0; color: var(--blue-dark); background: transparent; cursor: pointer; font-size: 11.5px; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.photo-upload-item__remove:disabled { cursor: wait; opacity: .5; }
.photo-upload-feedback { margin: 0; }
.photo-upload-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.photo-upload-actions .button { min-height: 44px; }
.portal-messages { position: relative; }
.portal-messages > .panel-kicker { margin: 0 0 7px; }
.portal-messages > h3 { margin-bottom: 9px; }
.portal-messages__intro, .portal-messages__empty { max-width: 680px; margin: 0; color: var(--ink-soft); font-size: 12.5px; line-height: 1.55; }
.portal-messages__list { display: grid; gap: 12px; margin: 20px 0 0; padding: 0; list-style: none; }
.portal-message { max-width: min(680px, 92%); padding: 16px 18px; border: 1px solid rgba(46, 99, 166, .24); border-radius: 5px 14px 14px; background: linear-gradient(145deg, #fff, var(--blue-pale)); box-shadow: 0 8px 22px rgba(31, 45, 63, .07); }
.portal-message__meta { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.portal-message__meta strong { color: var(--blue-dark); font-size: 12.5px; }
.portal-message__meta time { color: var(--muted); font-size: 10.5px; }
.portal-message__body { margin: 9px 0 0; color: var(--ink); font-size: 13.5px; line-height: 1.6; overflow-wrap: anywhere; white-space: pre-wrap; }
.quote-response { margin-top: 24px; padding: clamp(22px, 5vw, 32px); border: 1px solid rgba(46, 99, 166, .24); border-radius: 12px; background: linear-gradient(145deg, #f8fbff, var(--blue-pale)); }
.quote-response h3 { margin: 8px 0 0; font-size: clamp(23px, 4vw, 30px); letter-spacing: -.035em; line-height: 1.12; }
.quote-response__intro { max-width: 680px; margin: 11px 0 0; color: var(--ink-soft); font-size: 13px; }
.quote-response-form { display: grid; gap: 20px; margin-top: 24px; }
.quote-response-choices { min-width: 0; margin: 0; padding: 0; border: 0; }
.quote-response-choices legend { margin-bottom: 10px; color: #444139; font-size: 12px; font-weight: 800; }
.quote-response-choices__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.quote-response-choice { position: relative; min-width: 0; cursor: pointer; }
.quote-response-choice__input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.quote-response-choice__body { min-height: 118px; display: flex; flex-direction: column; padding: 16px; border: 1px solid rgba(23, 22, 15, .2); border-radius: 8px; background: rgba(255, 255, 255, .88); transition: border-color .15s ease, background .15s ease, box-shadow .15s ease; }
.quote-response-choice__body strong { font-size: 13px; }
.quote-response-choice__body > span { margin-top: 6px; color: var(--ink-soft); font-size: 11.5px; line-height: 1.45; }
.quote-response-choice:hover .quote-response-choice__body { border-color: var(--blue); }
.quote-response-choice__input:focus-visible + .quote-response-choice__body { outline: 3px solid rgba(46, 99, 166, .5); outline-offset: 2px; }
.quote-response-choice__input:checked + .quote-response-choice__body { border-color: var(--blue); background: #fff; box-shadow: inset 0 0 0 2px var(--blue); }
.quote-response-choice__input[value="not_proceeding"]:checked + .quote-response-choice__body { border-color: var(--danger); box-shadow: inset 0 0 0 2px var(--danger); }
.quote-response-message-field label { display: block; margin-bottom: 7px; color: #444139; font-size: 12px; font-weight: 800; }
.quote-response-message { width: 100%; min-height: 104px; resize: vertical; padding: 12px 13px; border: 1px solid rgba(23, 22, 15, .22); border-radius: 7px; color: var(--ink); background: #fff; font: inherit; font-size: 14px; line-height: 1.5; }
.quote-response-message:focus { border-color: var(--blue); outline: 0; box-shadow: var(--focus); }
.quote-response-message[aria-invalid="true"] { border-color: var(--danger); }
.quote-response-message__meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 5px; color: var(--muted); font-size: 10.5px; }
.quote-response-confirmation { display: flex; align-items: flex-start; gap: 10px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 8px; color: #444139; background: rgba(255, 255, 255, .7); cursor: pointer; font-size: 12.5px; font-weight: 750; }
.quote-response-confirmation[data-tone="caution"] { border-color: rgba(161, 55, 50, .35); color: #742b27; background: var(--danger-pale); }
.quote-response-confirmation input { width: 18px; height: 18px; flex: 0 0 auto; margin: 1px 0 0; accent-color: var(--blue); }
.quote-response-confirmation input:disabled { cursor: not-allowed; opacity: .55; }
.quote-response-feedback { margin: 0; }
.quote-response-form > .button { justify-self: start; }
.quote-response-substate { margin: 22px 0 0; padding: 14px 16px; border: 1px solid rgba(46, 99, 166, .2); border-radius: 8px; color: var(--ink-soft); background: rgba(255, 255, 255, .72); font-size: 12.5px; line-height: 1.5; }
.quote-response-substate--acknowledged { border-color: rgba(33, 107, 79, .28); color: #264b3e; background: var(--good-pale); }
.quote-response-substate--acknowledged strong { display: block; color: #174e3a; font-size: 13.5px; }
.quote-response-substate--acknowledged p { margin: 7px 0 0; }
.quote-response-history { margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(46, 99, 166, .2); }
.quote-response-history h4 { margin: 0; font-size: 15px; }
.quote-response-history__status, .quote-response-history__empty { margin: 10px 0 0; color: var(--muted); font-size: 11.5px; }
.quote-response-history__status--error { padding-left: 10px; border-left: 3px solid var(--danger); color: #742b27; }
.quote-response-history__list { display: grid; gap: 9px; margin: 14px 0 0; padding: 0; list-style: none; }
.quote-response-history__item { padding: 13px 14px; border: 1px solid rgba(23, 22, 15, .12); border-radius: 8px; background: rgba(255, 255, 255, .78); }
.quote-response-history__heading { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.quote-response-history__heading strong { font-size: 12.5px; }
.quote-response-history__heading time { color: var(--muted); font-size: 10.5px; }
.quote-response-history__item > p { margin: 7px 0 0; color: var(--ink-soft); font-size: 12px; white-space: pre-wrap; }
.detail-section { padding: 30px 0; border-bottom: 1px solid var(--line); }
.detail-section:last-child { border-bottom: 0; }
.detail-section h3 { margin: 0 0 17px; font-size: 18px; letter-spacing: -.02em; }
.fact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 0; }
.fact { min-width: 0; }
.fact dt { color: var(--muted); font-size: 10px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.fact dd { margin: 5px 0 0; overflow-wrap: anywhere; font-size: 14px; font-weight: 700; }
.quote-timeline__list { position: relative; display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.quote-timeline__list::before { position: absolute; top: 7px; bottom: 7px; left: 6px; width: 1px; background: var(--line); content: ""; }
.quote-timeline__item { position: relative; display: grid; grid-template-columns: 13px 1fr; gap: 15px; padding-bottom: 24px; }
.quote-timeline__item:last-child { padding-bottom: 0; }
.quote-timeline__marker { position: relative; z-index: 1; width: 13px; height: 13px; margin-top: 3px; border: 3px solid #fff; border-radius: 50%; background: var(--muted); box-shadow: 0 0 0 1px var(--line); }
.quote-timeline__marker[data-tone="good"] { background: var(--good); }
.quote-timeline__marker[data-tone="warn"] { background: var(--warn); }
.quote-timeline__marker[data-tone="danger"] { background: var(--danger); }
.quote-timeline__copy { min-width: 0; }
.quote-timeline__title { display: block; font-size: 13px; }
.quote-timeline__time { display: block; margin-top: 3px; color: var(--muted); font-size: 10.5px; }
.quote-timeline__message { max-width: 620px; margin: 7px 0 0; color: var(--ink-soft); font-size: 12.5px; }
.account-tools { display: grid; align-items: start; gap: 20px; margin-top: 24px; }
.tool-card { padding: clamp(25px, 5vw, 38px); border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .74); }
.tool-card > p:not(.panel-kicker, .form-feedback) { max-width: 620px; margin: 10px 0 0; color: var(--ink-soft); font-size: 13px; }
.compact-form { display: grid; gap: 15px; margin-top: 24px; }
.claim-disclosure { padding: 0; }
.claim-disclosure summary { position: relative; display: grid; gap: 7px; padding: clamp(25px, 5vw, 38px); padding-right: clamp(58px, 8vw, 76px); cursor: pointer; list-style: none; }
.claim-disclosure summary::-webkit-details-marker { display: none; }
.claim-disclosure summary::after { position: absolute; top: 50%; right: clamp(25px, 5vw, 38px); width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--blue-dark); content: "+"; font-size: 20px; font-weight: 700; line-height: 1; transform: translateY(-50%); }
.claim-disclosure[open] summary::after { content: "−"; }
.claim-disclosure summary > strong { font-size: 20px; letter-spacing: -.025em; }
.claim-disclosure__body { padding: 0 clamp(25px, 5vw, 38px) clamp(25px, 5vw, 38px); border-top: 1px solid var(--line); }
.claim-disclosure__body h2 { margin: 25px 0 0; }
.claim-disclosure__body > p:not(.form-feedback) { max-width: 680px; margin: 10px 0 0; color: var(--ink-soft); font-size: 13px; }

.fatal-state { max-width: 680px; margin: 50px auto; padding: 35px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.fatal-state h1 { margin: 10px 0; font-family: Georgia, "Times New Roman", serif; font-size: 42px; font-weight: 500; }

@keyframes spin { to { transform: rotate(360deg); } }

@media (min-width: 800px) {
  .account-grid { grid-template-columns: minmax(285px, .72fr) minmax(0, 1.28fr); }
  .quotes-card { border-right: 1px solid var(--line); border-bottom: 0; }
  .account-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .compact-form { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; }
  .compact-form .button { justify-self: start; }
  #password-form .button { grid-column: 1 / -1; }
}

@media (min-width: 960px) {
  .auth-shell { grid-template-areas: "story auth"; grid-template-columns: minmax(0, 1fr) minmax(390px, 1fr); align-items: stretch; }
  .auth-story { min-height: 560px; }
}

@media (max-width: 959px) {
  .auth-story { padding: 34px clamp(24px, 6vw, 50px); }
  .auth-story h1 { max-width: 13ch; font-size: clamp(38px, 8vw, 56px); }
  .auth-story__lead { max-width: 640px; }
  .benefit-list { display: none; }
  .auth-card { padding: 36px clamp(24px, 6vw, 50px); }
}

@media (max-width: 700px) {
  .handoff-retry { align-items: stretch; flex-direction: column; }
  .handoff-retry .button { width: 100%; }
  .account-identity { display: none; }
  .account-main { width: min(100% - 24px, 1180px); padding-top: 28px; }
  .field input, .field select { font-size: 16px; }
  .account-welcome { align-items: flex-start; flex-direction: column; }
  .account-welcome .button { width: 100%; }
  .fact-grid { grid-template-columns: 1fr; }
  .quote-offer__heading { align-items: flex-start; flex-direction: column; }
  .quote-offer__actions { display: grid; }
  .quote-offer__actions .button { width: 100%; }
  .quote-response-choices__grid { grid-template-columns: 1fr; }
  .quote-response-choice__body { min-height: 0; }
  .quote-response-form > .button { width: 100%; }
  .quote-response-history__heading { align-items: flex-start; flex-direction: column; gap: 3px; }
  .photo-upload-item { grid-template-columns: 52px minmax(0, 1fr); }
  .photo-upload-item__preview, .photo-upload-item__preview-fallback { width: 52px; height: 48px; }
  .photo-upload-item__remove { grid-column: 2; justify-self: start; }
  .photo-upload-actions { display: grid; }
  .photo-upload-actions .button { width: 100%; }
  .portal-message { max-width: 100%; }
  .portal-message__meta { align-items: flex-start; flex-direction: column; gap: 3px; }
}

@media (max-width: 799px) {
  .detail-back:not([hidden]) { display: inline-flex; }
}

@media (max-width: 430px) {
  .portal-session-bar { margin-bottom: 22px; }
  .auth-story, .auth-card { padding: 30px 24px; }
  .auth-story h1 { font-size: 40px; }
  .detail-empty { min-height: 420px; padding: 32px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .loading-mark { animation-duration: 1.6s; }
}
