.portal-body {
  --quote-ink:#142d49;
  --quote-muted:#486178;
  --quote-line:#d5e1ee;
  --quote-navy:#0b2038;
  --quote-blue:#174e84;
  --quote-orange:#ff813f;
  margin:0;
  background:#eef3f9;
  color:var(--quote-ink);
  line-height:1.55;
}
.portal-body [hidden] { display:none!important; }
.portal-body :focus-visible { outline:3px solid #2d70c7; outline-offset:3px; }
.portal-header {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:24px;
  min-height:80px;
  padding:13px max(24px,calc((100vw - 1256px)/2));
  background:#fff;
  border-bottom:1px solid var(--quote-line);
}
.portal-header img { width:225px; height:auto; }
.portal-header nav { display:flex; gap:20px; align-items:center; flex-wrap:wrap; }
.portal-header nav a,.portal-header nav button { color:#23476b; font-weight:750; }
.portal-account-menu{position:relative}
.portal-account-menu>summary{cursor:pointer;max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:8px 12px;border:1px solid #dce5ed;border-radius:7px;color:#23476b;font-weight:750}
.portal-account-actions{position:absolute;right:0;top:calc(100% + 6px);z-index:5;min-width:165px;background:#fff;border:1px solid #dce5ed;border-radius:8px;box-shadow:0 10px 30px #14283b20;padding:6px;display:grid}
.portal-account-actions>*{padding:8px;text-align:left}
.portal-header .portal-back{white-space:nowrap}
.portal-header #portal-account > a {
  display:inline-flex; align-items:center; min-height:42px; padding:7px 14px;
  border:1px solid #b8cadf; border-radius:8px;
}
.portal-header #portal-account > a:hover { background:#edf4fd; }
.portal-main { max-width:1304px; margin:auto; padding:28px 24px 62px; }
.portal-intro {
  position:relative;
  display:flex;
  align-items:center;
  min-height:262px;
  isolation:isolate;
  overflow:hidden;
  border:1px solid #203d5c;
  border-radius:22px;
  color:white;
  background:radial-gradient(ellipse at 70% -30%,#234d79 0%,var(--quote-navy) 68%);
  box-shadow:0 18px 36px #112c472b;
}
.portal-intro::after {
  content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
  background:linear-gradient(90deg,#0b2038 0%,#0b2038fa 27%,#0b2038b5 48%,#0b203800 74%);
}
.portal-art {
  position:absolute;inset:0 0 0 auto;z-index:-2;
  width:min(65%,660px);height:100%;object-fit:cover;object-position:center 16%;
  mask-image:linear-gradient(90deg,transparent,#000 26%);
}
.intro-copy { padding:35px 42px; max-width:58%; }
.portal-intro h1 { font-size:clamp(2.2rem,4.3vw,3.3rem); line-height:1.1; }
.portal-intro p { max-width:430px; margin-top:13px; color:#e1ebf8; font-size:1.06rem; }
.portal-intro .portal-link-button { color:#fff; margin-top:9px; text-decoration-color:#84b9fb; }
.portal-intro :focus-visible { outline-color:#ffb88b; }
.portal-identity {
  background:#e3effe;border:1px solid #bfd4ef;color:#194c80;
  padding:10px 15px;border-radius:9px;margin:16px 0 0;
}
.portal-layout { display:grid; grid-template-columns:minmax(0,1.65fr) minmax(0,1fr); gap:22px; margin-top:24px; align-items:start; }
.portal-box,.portal-card {
  min-width:0;background:white;border:1px solid var(--quote-line);
  border-radius:15px;padding:clamp(18px,2.35vw,27px);
  box-shadow:0 6px 25px #142d490b;
}
.portal-box { border-top:4px solid #1b5798; }
.quote-section { border:0; min-width:0; margin:0; padding:0 0 19px; }
.quote-section + .quote-section { border-top:1px solid #dce6f2; padding-top:12px; }
.quote-section legend { color:var(--quote-ink); font-size:1.2rem; font-weight:800; margin-bottom:11px; padding:0 10px 0 0; }
.portal-body label { display:block; font-size:.9375rem; font-weight:760; margin-bottom:12px; }
.portal-body input:not([type=radio]):not([type=checkbox]),.portal-body select,.portal-body textarea {
  display:block;width:100%;min-height:46px;margin-top:6px;padding:10px 11px;
  font:inherit;font-weight:600;color:var(--quote-ink);
  border:1px solid #b5c7da;border-radius:8px;background:#fbfdff;
}
.portal-body input::placeholder { color:#597087; opacity:1; }
.portal-body input:read-only:not([type=checkbox]):not([type=radio]) { background:#edf4fb; }
.portal-body input:focus-visible,.portal-body select:focus-visible,.portal-body textarea:focus-visible { outline-offset:1px; }
.portal-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 12px; }
.mode-group { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; margin-bottom:17px; }
.mode-group label { position:relative;margin:0;font-weight:800; }
.mode-group input { position:absolute; width:1px;height:1px; opacity:0; }
.mode-group span {
  display:grid;place-items:center;min-height:50px;padding:8px;
  border:1px solid #cad8e6;border-radius:9px;background:#f3f7fc;
  text-align:center;line-height:1.25;cursor:pointer;
}
.mode-group input:checked + span {
  background:#e5efff;border-color:#225c9f;color:#164a80;
  box-shadow:0 3px 6px #12447718,inset 0 0 0 1px #225c9f;
}
.mode-group input:focus-visible + span { outline:3px solid #2768ac; outline-offset:3px; }
.route-grid { gap:0 14px; }
.portal-picker { position:relative; min-width:0; margin-bottom:6px; }
.portal-picker label { margin:0; }
.portal-options {
  position:absolute;inset:calc(100% + 4px) 0 auto;z-index:10;
  max-height:242px;overflow:auto;border:1px solid #bacde1;border-radius:9px;background:#fff;box-shadow:0 14px 30px #132c4833;
}
.portal-options button {
  display:block;width:100%;padding:10px 12px;border:0;border-bottom:1px solid #e4edf6;background:#fff;
  text-align:left;color:var(--quote-ink);font-weight:650;
}
.portal-options button:hover,.portal-options button[aria-selected=true] { background:#e8f2ff; }
.portal-options button strong { color:#174e84;margin-right:6px; }
.portal-options small { display:block;color:var(--quote-muted);font-size:.87rem; }
.lookup-note { padding:12px; }
.field-hint,.portal-small { color:var(--quote-muted); font-size:.875rem; font-weight:560; }
#route-hint { margin:0 0 12px; }
.date-field { max-width:315px; margin-bottom:0!important; }
.volume-line { align-items:end; }
#dimension-toggle { justify-self:start; margin-bottom:12px; }
.dimension-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
#dimensions .portal-small { margin:0 0 8px; }
.quote-contact {
  margin:0 0 10px;padding:10px 12px;
  border:1px solid #d0ddeb;border-radius:9px;background:#f4f8fd;
}
.quote-contact summary { color:#1e4f82; cursor:pointer; font-size:.94rem; font-weight:770; }
.quote-contact[open] summary { margin-bottom:12px; }
.quote-contact .span-all { grid-column:1/-1; }
.addon-options { display:flex;gap:9px 15px;flex-wrap:wrap; }
.addon-options label { display:flex; align-items:center; gap:7px; }
.addon-options input { width:18px;height:18px;accent-color:var(--quote-blue); }
.portal-link-button {
  border:0;background:none;padding:8px 1px;color:#164e83;
  font:inherit;font-weight:770;text-decoration:underline;text-underline-offset:3px;
}
.quote-actions { display:flex;gap:13px;align-items:center;flex-wrap:wrap;margin-top:16px; }
.portal-body .btn-orange {
  background:#c44916;color:white;border:1px solid #ae3b0b;
  box-shadow:0 4px 10px #9c3b1633;font-weight:800;
}
.portal-body .btn-orange:hover { background:#ab3910; }
.portal-body button:disabled { opacity:.65;cursor:wait; }
.portal-error { color:#a31f31;font-weight:700;margin:10px 0;overflow-wrap:anywhere; }
.portal-error:empty { display:none; }
.quote-guest { margin-top:9px; }
.route-overview {
  position:relative;overflow:hidden;
  padding:18px 19px;
  border:1px solid #274b6d;border-radius:14px;color:white;
  background:radial-gradient(ellipse at 100% -50%,#2a5781,#102a46 72%);
  box-shadow:0 9px 22px #122d4a20;
}
.route-overview h2,.portal-toolbar h2 { font-size:1.14rem; letter-spacing:-.02em; }
.route-overview-stops {
  position:relative;display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:18px 0 12px;
}
.route-overview-stops::before {
  position:absolute;content:"";top:5px;left:5px;right:calc(50% - 12px);
  border-top:1px dashed #96b2cd;
}
.route-overview-stops > div { position:relative;min-width:0;padding-top:12px; }
.route-overview-stops > div::before {
  position:absolute;content:"";top:1px;left:0;width:9px;height:9px;border-radius:50%;background:#ff954f;box-shadow:0 0 0 3px #ff934f24;
}
.route-overview-stops > div + div::before { background:#8fbdff;box-shadow:0 0 0 3px #8fbdff26; }
.route-overview-stops span { display:block;color:#d1e3f6;font-size:.875rem; }
.route-overview-stops strong { display:block;font-size:1.08rem;overflow-wrap:anywhere; }
.route-overview-meta { display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px;padding-top:12px;border-top:1px solid #4e6d8c;color:#e1edfa;font-size:.875rem; }
.portal-toolbar { margin:20px 0 11px; }
.portal-empty,.portal-status { background:#fff;color:#3b546e;border:1px solid var(--quote-line);border-radius:10px;padding:14px 16px; }
.portal-status { margin-bottom:12px;background:#e4effe;color:#194774; }
.portal-status p { margin-top:4px; }
.portal-status + .btn { margin:0 0 16px; }
.portal-card { margin-bottom:14px; }
.portal-card-header { display:flex; justify-content:space-between; gap:14px; align-items:start; }
.portal-card h3 { font-size:1.18rem; margin:5px 0 3px; }
.portal-card .portal-price { font-size:clamp(1.35rem,2.8vw,1.65rem);font-weight:850;color:#154e8a;white-space:nowrap; }
.portal-card p,.portal-card small { overflow-wrap:anywhere; }
.portal-tag { display:inline-block;padding:3px 8px;border-radius:5px;background:#e4f4eb;color:#205e44;font-size:.875rem;font-weight:800; }
.portal-scope { display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:12px 0;padding-top:10px;border-top:1px solid var(--quote-line); }
.portal-scope p { margin:4px 0 0;white-space:pre-wrap; }
.portal-card .btn { margin-top:10px; }
.portal-saving { color:#236843;font-weight:800;margin:7px 0; }
.portal-footer {
  display:flex;justify-content:space-between;gap:16px;
  background:var(--quote-navy);color:white;
  padding:22px max(24px,calc((100vw - 1256px)/2));
  font-size:.875rem;font-weight:750;
}
.portal-footer a { text-decoration:underline;text-underline-offset:3px; }
.portal-body dialog {
  margin:auto;border:0;border-radius:14px;width:min(650px,calc(100% - 24px));
  max-height:92vh;color:var(--quote-ink);box-shadow:0 20px 90px #061b4160;
}
.portal-body dialog::backdrop { background:#061c36ab; }
.portal-dialog-head {
  display:flex;justify-content:space-between;align-items:center;gap:12px;position:sticky;top:0;
  padding:15px 20px;background:white;border-bottom:1px solid var(--quote-line);
}
.portal-dialog-head h2 { font-size:1.25rem; }
.portal-dialog-head button { border:0;border-radius:6px;background:#eaf1f9;color:var(--quote-ink);padding:3px 9px;font-size:1.4rem; }
#portal-dialog-body { padding:18px 20px;overflow-wrap:anywhere; }
.portal-body table { width:100%;border-collapse:collapse;text-align:left;font-size:.9375rem; }
.portal-body td,.portal-body th { border-bottom:1px solid var(--quote-line);padding:8px 9px; }
[data-request-row]:hover { background:#eaf2fc;cursor:pointer; }
.pre-wrap { white-space:pre-wrap; }
@media(max-width:920px) {
  .portal-layout { grid-template-columns:1fr; }
  #quote-results-title { scroll-margin-top:18px; }
  .portal-intro { min-height:230px; }
}
@media(max-width:680px) {
  .portal-header { min-height:64px;padding:10px 14px;gap:10px; }
  .portal-header img { width:151px; }
  .portal-header nav { gap:8px;font-size:.875rem;justify-content:flex-end; }
  .portal-header nav > a:not(.portal-back) { display:none; }
  .portal-header #portal-account > a { min-height:39px;padding:6px 9px; }
  .portal-main { padding:16px 12px 36px; }
  .portal-intro { min-height:200px;border-radius:14px; }
  .intro-copy { padding:22px 17px;max-width:78%; }
  .portal-intro h1 { font-size:clamp(1.8rem,7vw,2.35rem); }
  .portal-intro p { font-size:.94rem;max-width:305px; }
  .portal-intro::after { background:linear-gradient(90deg,#0b2038 0%,#0b2038e6 48%,#0b20382c); }
  .portal-art { width:68%;object-position:63% center; }
  .portal-layout { gap:16px;margin-top:15px; }
  .mode-group { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .route-grid,.quote-contact .portal-grid { grid-template-columns:1fr; }
  .dimension-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .quote-actions .btn { width:100%;justify-content:center; }
  .portal-card-header,.portal-footer { flex-wrap:wrap; }
}
@media(prefers-reduced-motion:reduce) {
  .portal-body *,.portal-body *::before,.portal-body *::after { scroll-behavior:auto; transition:none; }
}

#portal-dialog .portal-dialog-head{background:linear-gradient(110deg,#f7fbff,#e0edf9);border-bottom:1px solid #ccdeee}
.portal-dialog-brand{display:grid;gap:6px;min-width:0}
.portal-dialog-brand img{object-fit:contain;object-position:left;width:145px;height:36px}
.portal-dialog-brand h2{color:#102d4b;overflow-wrap:anywhere}
#portal-dialog{border:1px solid #d2e2f0;box-shadow:0 20px 55px #153e6652}
.portal-quote-list { list-style:none; margin:0; padding:0; }
.portal-quote-list li { display:grid; gap:.35rem; padding:.8rem 0; border-bottom:1px solid #dce7f2; }
.portal-quote-list li a { font-weight:750; color:#0d487b; }
.portal-quote-list li span { color:#455e78; font-size:.92rem; }
.portal-customer-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin:0 0 20px; }
.portal-customer-actions[hidden] { display:none; }
.portal-customer-actions button { display:grid; gap:4px; text-align:left; color:#103554; padding:17px 20px; min-height:72px; font:inherit; cursor:pointer;
 background:linear-gradient(135deg,#f1f7fc,#fff 70%); border:1px solid #c6d7e7; border-left:4px solid #e96c37; border-radius:13px; box-shadow:0 4px 12px #16345114; }
.portal-customer-actions button strong { font-size:1.07rem; }
.portal-customer-actions button span { font-size:.9rem; color:#425d78; }
.portal-customer-actions button:hover { background:#e8f2fb; }
.portal-customer-actions button:focus-visible { outline:3px solid #215d88; outline-offset:3px; }
@media(max-width:560px){.portal-customer-actions{grid-template-columns:1fr;}}
