/* Shared identity, specified in the supplied identity reference; existing layout rules stay in their own stylesheets. */
:root{
  --brand-navy:#132b45;
  --brand-orange:#f47a24;
  --brand-white:#ffffff;
  --brand-primary:var(--brand-navy);
  --brand-hover:#1c4261;
  --brand-focus:#a94708;
  --brand-soft:#f1f5f8;
  --brand-warm:#fff0e3;
  --brand-line:#d5dfe7;
  --brand-muted:#536577;
  --white:var(--brand-white);
  --ink:var(--brand-navy);
  --muted:var(--brand-muted);
  --bg:#f4f7f9;
  --line:var(--brand-line);
  --teal:var(--brand-primary);
  --gold:var(--brand-orange);
  --accent:var(--brand-primary);
}
a{color:inherit}
.brand .brand-logo{display:block;width:120px;height:63px;max-width:none;object-fit:contain;mix-blend-mode:multiply}
.footer-logo{display:block;width:86px;height:45px;object-fit:contain;flex:none;mix-blend-mode:multiply}
/* Orange is an accent; readable navy labels stay on light surfaces. */
.choice-card:first-child{border-color:var(--brand-orange)}
.choice-icon{background:var(--brand-warm);color:var(--brand-navy)}
.rewards-badge{background:var(--brand-orange)!important;color:var(--brand-navy)!important}
/* Long review references must fit compact RTL screens without changing card sizes. */
.card{overflow-wrap:anywhere}
@media(max-width:380px){.brand .brand-logo{width:106px;height:56px}}

/* Clear Arabic system: one warm canvas, ink, two semantic accents, generous text. */
:is(.guest-home,.account-page){--brand-navy:#142b38;--brand-muted:#445566;--brand-line:#c5cfcc;--brand-focus:#8a3a08;--cargo-ink:#873707;--cargo-surface:#fff1e3;--vehicle-ink:#174e39;--vehicle-surface:#eaf4ed;background:#f6f4ee;color:#142b38;font-size:1.125rem;line-height:1.8;letter-spacing:normal}
:is(.guest-home,.account-page) :is(button,input,select,textarea){font:inherit;letter-spacing:normal}
:is(.guest-home,.account-page) :is(button,.btn,input,select){min-height:52px}
:is(.guest-home,.account-page) :is(button,a,input,select,textarea):focus-visible{outline:3px solid #873707;outline-offset:3px}
:is(.guest-home,.account-page) :is(p,small,.fine,.notice,.muted){color:#445566;line-height:1.8}
:is(.guest-home,.account-page) :is(.btn,.text-button){font-size:1.125rem;border-radius:12px;line-height:1.6;padding:10px 16px;white-space:normal;text-align:center}
:is(.guest-home,.account-page) .btn{background:#142b38;color:white;border:2px solid #142b38;box-shadow:none}
:is(.guest-home,.account-page) .btn.outline{background:white;color:#142b38;border:2px solid #b9c7c2}
:is(.guest-home,.account-page) :is(button:disabled,.btn:disabled){opacity:1;background:#edf0ed;color:#445566;border-color:#c5cfcc;cursor:not-allowed}
.guest-home .workspace{max-width:1160px;margin:auto;background:#f6f4ee}
.guest-home .topbar{display:grid;grid-template-columns:1fr auto;gap:12px;padding:14px 20px;background:#fff;border-bottom:1px solid #c5cfcc;box-shadow:none}
.guest-home .topbar .brand{min-width:0;justify-self:start}.guest-home .topbar .brand .brand-logo{width:100px;height:52px}
.guest-home .topbar .guest-header-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-column:1/-1;width:100%;gap:8px;margin:0;padding:0}
.guest-home .topbar .guest-header-actions .header-control{display:flex;flex-direction:row;flex-wrap:wrap;gap:7px;width:100%;min-width:0;min-height:56px;font-size:1.125rem;line-height:1.5;padding:9px 6px;border:1px solid #b9c7c2;border-radius:12px;background:#fff;color:#142b38;white-space:normal}
.guest-home .header-control svg{width:24px;height:24px;flex:none}.guest-home .notification-bell [data-notification-count]{font-size:.875rem;line-height:1.4;background:#174e39;min-width:20px}
.guest-home main{padding:20px;min-height:0}.guest-home .home-toolbar{padding-bottom:14px}.guest-home .market-source{font-size:1.125rem;line-height:1.6;padding:12px 14px;border:1px solid #d1b290;background:#fff3e3;color:#66310d;border-radius:12px;margin:0 0 16px}.guest-home .market-source svg{width:23px;height:23px;flex:none}.guest-home .market-source span{color:inherit}
.guest-home .home-browse.market-categories{gap:12px;margin-bottom:16px}.guest-home .category-group{gap:5px}
.guest-home .category-group .market-category{display:grid;grid-template-columns:1fr 48px;grid-template-rows:auto auto auto;gap:8px;min-height:158px;padding:16px;border-radius:16px;border-width:2px;box-shadow:none;align-content:start}
.guest-home .market-category-label{font-size:1.25rem;line-height:1.6;grid-column:1/-1;grid-row:1}.guest-home .market-category-count{font-size:2rem;line-height:1.25;grid-column:1;grid-row:2}.guest-home .market-category-icon{grid-column:2;grid-row:2}.guest-home .market-category-icon svg{width:48px;height:38px}.guest-home .market-category small{grid-column:1/-1;grid-row:3;font-size:1.125rem;line-height:1.5;color:inherit}
.guest-home .category-load .market-category{background:#fff1e3;color:#873707;border-color:#c1845b}.guest-home .category-trip .market-category{background:#eaf4ed;color:#174e39;border-color:#749b83}.guest-home .category-load .market-category.selected{border-color:#873707;box-shadow:inset 0 -5px #873707}.guest-home .category-trip .market-category.selected{border-color:#174e39;box-shadow:inset 0 -5px #174e39}
.guest-home .category-add{font-size:1.125rem;min-height:56px;line-height:1.6;padding:8px 4px}.guest-home .category-add svg{width:22px;height:22px}.guest-home .category-load .category-add{color:#873707}.guest-home .category-trip .category-add{color:#174e39}
.guest-home .home-toolbar .toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:8px}.guest-home .home-toolbar .toolbar input{height:auto;min-height:56px;width:100%;max-width:none;font-size:1.125rem;padding:12px;background:white;border:1px solid #9aaea4}.guest-home .home-toolbar .toolbar :is(.btn,.text-button){min-height:56px;font-size:1.125rem;padding:8px 10px}.guest-home .home-toolbar .toolbar .text-button span{position:static;width:auto;height:auto;clip-path:none;overflow:visible}.guest-home .home-toolbar .toolbar .text-button svg{display:none}
.guest-home .home-results{padding:0 2px}.guest-home .guest-example-grid,.guest-home .record-list{gap:20px;margin-top:4px}.guest-home .guest-example-card,.guest-home .record{padding:22px;border-radius:18px;gap:16px;box-shadow:0 2px 0 #142b3808;border:1px solid #c5cfcc;background:#fff}
.guest-home .preview-load,.guest-home .market-record-load{border-top:5px solid #873707}.guest-home .preview-vehicle,.guest-home .market-record-trip{border-top:5px solid #174e39}
.guest-home .guest-example-card h3{font-size:1.375rem;line-height:1.65}.guest-home .preview-kind{font-size:1.125rem;color:#174e39}.guest-home .preview-load .preview-kind{color:#873707}.guest-home .guest-example-card .guest-example-icon{width:72px;height:56px;background:#eaf4ed}.guest-home .preview-load .guest-example-icon{background:#fff1e3}.guest-home .guest-example-card .guest-example-icon svg{width:64px;height:48px}
.guest-home .guest-example-card .route-line{padding:14px 0;border-color:#dce3df;gap:8px}.guest-home .route-line :is(strong,small){font-size:1.125rem;line-height:1.7}.guest-home .route-line strong{font-size:1.375rem}.guest-home :is(.preview-time,.preview-spec,.guest-example-card .preview-spec){font-size:1.125rem;line-height:1.8;color:#445566;margin:0}.guest-home .preview-time{align-items:flex-start}.guest-home .preview-time svg{flex:none;width:22px;height:22px;margin-top:5px}
.guest-home .preview-price{padding:16px;border-radius:12px;gap:5px}.guest-home .preview-load .preview-price{background:#fff1e3}.guest-home .preview-vehicle .preview-price{background:#eaf4ed}.guest-home .preview-price :is(span,small){font-size:1.125rem;line-height:1.6;color:#344d58}.guest-home .preview-price strong{font-size:1.875rem;color:#142b38}.guest-home .guest-example-card>.btn{font-size:1.125rem;min-height:56px}
.guest-home footer{padding:18px 20px;min-height:80px;gap:12px;background:#fff;border-top:1px solid #c5cfcc;justify-content:center;flex-wrap:wrap}.guest-home footer .footer-logo{width:80px;height:42px}.guest-home footer :is(.text-button,.footer-contact-unavailable){font-size:1rem;color:#445566;line-height:1.6}.guest-home footer .text-button{min-height:44px;padding:8px}.guest-home .footer-contact-unavailable svg{width:22px;height:22px}
.guest-home #modal{border-radius:18px;box-shadow:0 18px 80px #142b3833}.guest-home .modal-head{padding:20px;border-color:#c5cfcc}.guest-home .modal-head h2{font-size:1.5rem;line-height:1.6}.guest-home .modal-body{padding:20px}.guest-home .close-button{min-width:52px;min-height:52px;font-size:1.5rem}.guest-home .account-entry{gap:20px}.guest-home .account-entry :is(p,.fine,.notice){font-size:1.125rem;line-height:1.8}.guest-home .account-tabs{gap:4px;padding:5px}.guest-home .account-tabs button{font-size:1.125rem;min-height:56px;line-height:1.6;padding:9px 5px}.guest-home .account-tabs [aria-pressed=true]{color:#142b38;border:2px solid #174e39;box-shadow:none}.guest-home .account-methods[hidden]{display:none}.guest-home .account-methods{gap:12px}.guest-home .account-method{font-size:1.125rem;min-height:56px}.guest-home .preview-details :is(dt,dd){font-size:1.125rem;line-height:1.8}
:is(.guest-home,.account-page) .role-selection{display:grid;gap:12px;margin:20px 0}.role-card{font:inherit;display:flex;align-items:center;gap:14px;width:100%;min-height:96px;border:2px solid #b9c7c2;border-radius:14px;padding:16px;text-align:right;background:#fff;color:#142b38;cursor:pointer}.role-card strong{display:block;font-size:1.25rem;line-height:1.7}.role-card small{display:block;font-size:1.125rem;line-height:1.7;color:#445566}.role-card[aria-pressed=true]{background:#eaf4ed;border-color:#174e39}.role-icon{flex:none;width:58px}.role-icon svg{width:58px;height:46px}.role-check{margin-inline-start:auto;font-weight:bold;color:#174e39;font-size:1.5rem}.signup-purpose h3{font-size:1.375rem;line-height:1.7}.role-continue{width:100%}
.guest-home:not(.home-viewport) .home-toolbar{display:contents;position:static}.guest-home:not(.home-viewport) .market-source{position:sticky;top:0;z-index:6}.guest-home:not(.home-viewport) .topbar{position:static}.guest-home:not(.home-viewport) .workspace{padding-bottom:0}
@container(max-width:600px){.guest-home .topbar{padding:12px}.guest-home main{padding:16px 12px}.guest-home .category-group .market-category{padding:12px;gap:6px}.guest-home .market-category-label{font-size:1.125rem}.guest-home .home-toolbar .toolbar{grid-template-columns:minmax(0,1fr) auto}.guest-home .home-toolbar .toolbar .text-button{grid-column:1/-1;justify-self:end;min-height:44px;padding-block:4px}.guest-home .guest-example-card{padding:18px}.guest-home .market-source{margin-bottom:12px}.guest-home .topbar .guest-header-actions .header-control{font-size:1.125rem;min-height:56px}.guest-home .modal-body{padding:16px}.guest-home .account-tabs{grid-template-columns:1fr}.guest-home .account-tabs button{min-height:52px}.guest-home .role-card{padding:12px;gap:10px}}
@media(prefers-reduced-motion:reduce){:is(.guest-home,.account-page) *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
:is(.guest-home,.account-page) :is(.btn.outline,.role-card){border-color:#6f8379}.guest-home .topbar .guest-header-actions .header-control{border-color:#6f8379}.guest-home .category-trip .market-category{border-color:#52765f}.guest-home .category-load .market-category{border-color:#a5673c}.guest-home .home-toolbar .toolbar input,.account-page input,.account-page select{border-color:#6f8379}
.guest-home :is(.pilot-form label,.field-label,.metric,.fine,.notice,.empty-state p,.modal-body p,.preview-details dt,.preview-details dd){font-size:1.125rem;line-height:1.8}.guest-home .pilot-form :is(input,select,textarea){font-size:1.125rem;min-height:56px}.guest-home .pilot-form .fields{grid-template-columns:minmax(0,1fr)}.guest-home .vehicle-choices b{font-size:1.125rem}.guest-home .guided-controls .btn{font-size:1.125rem;min-height:56px}.guest-home .modal-body :is(fieldset,.field){min-width:0}.guest-home .modal-body input{max-width:100%}
.guest-home .home-toolbar .toolbar{display:flex;flex-wrap:wrap}.guest-home .home-toolbar .toolbar input{flex:1 1 6rem;min-width:0}.guest-home .home-toolbar .toolbar :is(.btn,.text-button){flex:0 0 auto;min-height:56px}.guest-home .home-toolbar .toolbar .text-button{padding:8px 10px}
/* Reflow at enlarged text sizes instead of squeezing Arabic labels. */
.guest-home .market-category :is(span,small),.guest-home .header-control span{min-width:0;overflow-wrap:anywhere}
@container(max-width:18rem){.guest-home .topbar .guest-header-actions,.guest-home .home-browse.market-categories{grid-template-columns:minmax(0,1fr)}.guest-home .topbar .guest-header-actions .header-control{flex-wrap:nowrap;justify-content:flex-start;padding:12px 16px}.guest-home .category-group .market-category{grid-template-columns:minmax(0,1fr) 48px}.guest-home .category-add{justify-content:flex-start;padding-inline:16px}}
.guest-home #search-form input,.account-page .account-main :is(input,select){border:2px solid #6f8379!important}
.account-page .profile-purpose button.btn.outline[aria-pressed=true]{background:#174e39;border-color:#174e39;color:#fff}.account-page .profile-purpose button[aria-pressed=true]::before{content:'✓ ';font-weight:700}.account-page .role-card[aria-pressed=true]{border-color:#174e39}
:is(.guest-home,.account-page) :is(input,textarea)::placeholder{font:inherit;color:#445566;opacity:1}

/* Compact public marketplace: one document scroller, expandable header search,
   and two-line offer summaries. Details and private account screens keep their layout. */
.guest-home{font-size:1rem;background:#f5f7fa;--compact-blue:#185a91}
.guest-home .workspace{background:#f5f7fa;padding-bottom:0}
.guest-home .topbar{--search-height:max(44px,2.75rem);display:flex;flex-wrap:nowrap;align-items:center;gap:6px;padding:8px 12px;position:static;min-height:calc(var(--search-height) + 16px + env(safe-area-inset-top))}
.guest-home .topbar .brand{min-width:0;flex:none}.guest-home .topbar .brand .brand-logo{width:84px;height:44px}
.guest-home .header-search{display:flex;flex:none}
.guest-home .topbar .guest-header-actions{display:flex;grid-column:auto;width:auto;margin-inline-start:auto;gap:4px;flex:none}
.guest-home .topbar .guest-header-actions .header-control,.guest-home .compact-icon{display:flex;align-items:center;justify-content:center;flex:none;flex-direction:row;width:44px;height:44px;min-width:44px;min-height:44px;padding:10px;border:0;border-radius:50%;background:var(--compact-blue);color:white;cursor:pointer;position:relative}
.guest-home .compact-icon svg,.guest-home .header-control svg{width:22px;height:22px;flex:none}
.guest-home .topbar .header-control .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap;border:0}
.guest-home .notification-bell [data-notification-count]{top:-3px;right:-2px;border:2px solid white;background:#873707;font-size:.75rem;line-height:1.2;min-width:19px}
.guest-home .header-search-form{display:flex;align-items:center;gap:4px;flex:1;min-width:0;margin:0;padding:0;height:var(--search-height)}
.guest-home .search-open .header-search{display:none}
.guest-home .header-search-form .compact-icon{height:var(--search-height)}
.guest-home .header-search-form[hidden]{display:none}
.guest-home #search-form input{flex:1;min-width:0;width:0;font-size:1rem;height:var(--search-height);min-height:44px;border-radius:12px;padding:4px 8px;background:white;color:#142b38}
.guest-home #search-toggle[aria-expanded=true]{outline:2px solid #185a91;outline-offset:3px}
.guest-home main{padding:0 12px 16px;min-height:0}
.guest-home:not(.home-viewport) .home-toolbar{display:block;position:static;padding:0}
.guest-home:not(.home-viewport) .market-source{position:static;display:flex;align-items:center;gap:6px;margin:0;padding:2px 0;border:0;border-radius:0;background:transparent;color:#66310d;font-size:.9375rem;line-height:1.5;box-shadow:none}
.guest-home .market-source>span{flex:1;min-width:0}
.guest-home .compact-refresh{display:grid;place-items:center;flex:none;min-width:44px;width:44px;min-height:44px;padding:10px;border:0;border-radius:50%;background:transparent;color:#185a91;cursor:pointer}
.guest-home .compact-refresh svg{width:20px;height:20px}
.guest-home .home-browse.market-categories{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0 0 10px}
.guest-home .category-group{display:grid;grid-template-columns:minmax(0,1fr);align-items:stretch;gap:0;border:1px solid #d5dfe7;border-radius:14px;background:white;color:#873707;min-width:0;padding:4px}
.guest-home .category-trip{border-color:#52765f;background:#eaf4ed;color:#174e39}
.guest-home .category-group .market-category{display:flex;flex-wrap:wrap;align-content:center;align-items:center;justify-content:flex-start;gap:4px;min-height:44px;height:auto;min-width:0;padding:4px 4px 4px 8px;border:0;border-radius:10px;background:transparent;color:inherit;box-shadow:none;text-align:right}
.guest-home .market-category-label{font-size:1rem;line-height:1.4;min-width:0}
.guest-home .market-category-count{display:inline;font-size:.9375rem;line-height:1.3;min-width:1.3em;text-align:center;font-weight:700}
.guest-home .market-category-count::before{content:'('}.guest-home .market-category-count::after{content:')'}
.guest-home .category-group .market-category.selected{box-shadow:none;font-weight:800;background:#eef3f8}
.guest-home .category-load .market-category.selected{background:#fff0e3}
.guest-home .category-add{display:flex;align-items:center;justify-content:center;gap:4px;width:100%;min-width:0;min-height:44px;padding:4px;border-radius:10px;color:inherit;font-size:1rem;line-height:1.4}
.guest-home .category-add span{min-width:0;overflow-wrap:anywhere}
.guest-home .category-add svg{width:22px;height:22px}
.guest-home .home-results{overflow:visible;max-height:none;height:auto;padding:0;outline-offset:3px}
.guest-home .guest-example-grid,.guest-home .record-list{display:grid;grid-template-columns:1fr;gap:8px;margin:0}
.guest-home .guest-example-card,.guest-home .record{display:block;padding:0;gap:0;border:1px solid #c5cfcc;border-inline-start:3px solid #174e39;border-radius:12px;background:white;box-shadow:0 1px 3px #142b3808}
.guest-home .preview-load,.guest-home .market-record-load{border-inline-start-color:#873707}
.guest-home .offer-summary{font:inherit;display:grid;grid-template-columns:28px minmax(0,1fr);align-items:center;gap:8px;min-height:76px;width:100%;padding:10px 8px;border:0;border-radius:10px;background:transparent;color:#142b38;text-align:right;cursor:pointer}
.guest-home .offer-summary:hover{background:#f1f5fa}
.guest-home .offer-icon{display:grid;place-items:center;width:28px;height:40px;min-width:0}.guest-home .offer-icon svg{width:28px;height:28px}
.guest-home .offer-copy{display:grid;gap:4px;min-width:0}
.guest-home .offer-line{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;column-gap:8px;row-gap:2px;min-width:0;font-size:1rem;line-height:1.5}
.guest-home .offer-route,.guest-home .offer-price{font-size:inherit;font-weight:700;overflow-wrap:anywhere;min-width:0}
.guest-home .offer-price{color:#185a91}.guest-home .offer-route>span{font-weight:400;color:#445566}
.guest-home .offer-secondary{font-size:.9375rem;color:#445566;line-height:1.5}
.guest-home .offer-kind{min-width:0;overflow-wrap:anywhere}.guest-home .offer-time{flex:none;max-width:100%;overflow-wrap:anywhere}
.guest-home footer{position:static;padding:12px;min-height:0;gap:8px}.guest-home footer .footer-logo{width:64px;height:34px}.guest-home footer :is(.text-button,.footer-contact-unavailable){font-size:.9375rem}
/* At enlarged text, keep routes/prices complete and controls reachable. */
@container(max-width:20rem){.guest-home .home-browse.market-categories{gap:6px}.guest-home .market-category-label{overflow-wrap:normal}.guest-home .topbar{gap:4px;padding-inline:8px}.guest-home .topbar .guest-header-actions{margin-inline-start:auto}}
@container(max-width:14rem){.guest-home .home-browse.market-categories{grid-template-columns:repeat(2,minmax(0,1fr))}.guest-home .offer-summary{grid-template-columns:24px minmax(0,1fr);gap:6px}.guest-home .offer-line{display:grid;justify-content:stretch}.guest-home .offer-time{max-width:100%}}
.guest-home .price-context{display:block;color:#445566;font-size:.875rem;line-height:1.5}
.guest-home .preview-more{margin-top:12px;width:100%;font-size:1rem;min-height:44px}
.guest-home .topbar .header-control svg,.guest-home .compact-icon svg{color:#fff;stroke:currentColor}
/* Referenced navy/orange system; logo asset and its geometry remain unchanged. */
.guest-home,.account-page{--brand-navy:#132b45;--brand-orange:#f47a24;--brand-hover:#1c4261;--brand-warm:#fff0e3;--icon-ink:#132b45;--icon-paper:#fff;--icon-pale:#fff0e3;--icon-accent:#f47a24;--compact-blue:#132b45;--cargo-ink:#873707;--vehicle-ink:#132b45;background:#f7f8fa;color:#132b45}
.guest-home .workspace{background:#f7f8fa;padding-bottom:calc(var(--guest-nav-height,88px) + 12px)}
.guest-home .topbar{padding-top:calc(8px + env(safe-area-inset-top));border-bottom:0}.guest-home .header-search{margin-inline-start:auto}
.guest-home .guest-bottom-nav{position:fixed;inset:auto 0 0;z-index:35;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-items:stretch;gap:4px;max-width:1160px;width:100%;margin:auto;padding:6px max(8px,env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));border-top:1px solid #d5dfe7;background:white;box-shadow:0 -2px 10px #132b4508}
.guest-home .guest-bottom-nav .header-control{font:inherit;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-width:44px;min-height:64px;width:100%;height:auto;margin:0;padding:6px 2px;border:0;border-radius:12px;background:transparent;color:#132b45;font-size:.875rem;line-height:1.4;cursor:pointer;position:relative}
.guest-home .guest-bottom-nav .header-control svg{width:24px;height:24px;color:#132b45;stroke:currentColor;flex:none}
.guest-home .guest-bottom-nav .header-control[aria-current]{background:#fff0e3;color:#132b45;font-weight:700}.guest-home .guest-bottom-nav .header-control[aria-current] svg{fill:#f47a24}
.guest-home .guest-bottom-nav .notification-bell [data-notification-count]{position:absolute;top:1px;right:calc(50% - 22px);font-size:.75rem;line-height:1.3;min-width:18px;border:2px solid white;background:#873707;color:white;border-radius:50%}
.guest-home .guest-bottom-nav .header-control span{position:static;width:auto;height:auto;white-space:normal;overflow-wrap:normal;clip-path:none;color:inherit}
.guest-home .category-trip{background:white;color:#132b45;border-color:#d5dfe7}.guest-home .category-load{background:white;color:#873707;border-color:#d5dfe7}
.guest-home .preview-vehicle,.guest-home .market-record-trip{border-inline-start-color:#132b45}
.guest-home .offer-summary{grid-template-columns:40px minmax(0,1fr);gap:8px}.guest-home .offer-icon{width:40px;height:40px}.guest-home .offer-icon svg{width:40px;height:32px}
.guest-home .offer-price{color:#132b45}.guest-home .guest-example-card,.guest-home .record{box-shadow:none;border-radius:10px}
.guest-home .offer-summary:hover{background:#fff8f1}.guest-home .offer-summary:focus-visible{outline:3px solid #873707;outline-offset:2px}
.guest-home :is(button,a,input,select){scroll-margin-block:24px calc(var(--guest-nav-height,88px) + 20px)}
.guest-home footer{border-top:0;background:transparent}
html:has(.guest-home){scroll-padding-bottom:calc(var(--guest-nav-height,88px) + 20px)}
/* The bar grows with text rather than covering the last offer or footer. */
@container(max-width:16rem){.guest-home .guest-bottom-nav .header-control{font-size:.875rem;padding-inline:2px}.guest-home .offer-summary{grid-template-columns:32px minmax(0,1fr)}.guest-home .offer-icon,.guest-home .offer-icon svg{width:32px}}
.guest-home .guest-bottom-nav{inset-inline:12px;bottom:0;width:calc(100% - 24px);border:1px solid #d5dfe7;border-bottom:0;border-radius:16px 16px 0 0;max-width:1136px;background:rgb(255 255 255 / 94%);backdrop-filter:blur(12px)}
.guest-home.guest-keyboard-open .guest-bottom-nav{visibility:hidden;pointer-events:none}
.guest-home .guest-bottom-nav .header-control{min-height:60px}
.guest-home .offer-price{unicode-bidi:isolate;direction:ltr;text-align:end}
.vehicle-editor{margin:16px 0;border:1px solid #b9c7d4;border-radius:16px;padding:12px;min-width:0}
.vehicle-editor .vehicle-progress p{font-size:1rem;line-height:1.6;color:#132b45;margin:4px 0 10px}
.vehicle-progress-track{height:12px;border-radius:9px;background:#d5dfe7;overflow:hidden;margin-bottom:12px}.vehicle-progress-track>span{height:100%;display:block;background:#f47a24;border-radius:9px}
.vehicle-selected-icon{display:grid;place-items:center;background:#fff8f1;border-radius:14px;margin-bottom:12px}.vehicle-selected-icon svg{width:160px;height:104px;max-width:100%}
.vehicle-variant-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.vehicle-variant-fields label{min-width:0}.vehicle-variant-fields input[type=checkbox]{width:22px;height:22px;min-height:22px;margin-inline-end:8px;vertical-align:middle}
.vehicle-editor :is(select,input){max-width:100%;width:100%;min-width:0}.vehicle-editor input[type=checkbox]{width:auto}.vehicle-editor :is(button,select,input){font-size:1rem;min-height:44px}.vehicle-editor p{font-size:1rem;line-height:1.7}.vehicle-editor [hidden]{display:none!important}.vehicle-editor .vehicle-legacy{border-inline-start:3px solid #f47a24;padding-inline-start:12px}.vehicle-editor input[type=tel]{direction:ltr;unicode-bidi:isolate}
@media(max-width:440px){.vehicle-variant-fields{grid-template-columns:1fr}}
.guest-home:not(.home-viewport) .workspace{padding-bottom:calc(var(--guest-nav-height,88px) + 16px)}
.vehicle-family-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-block:12px}
.vehicle-family-grid button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:8px;border:2px solid #a4b0bd;border-radius:12px;color:#132b45;background:white;text-align:center;font-size:1rem;line-height:1.5;min-width:0}
.vehicle-family-grid svg{width:96px;height:64px;max-width:100%}.vehicle-family-grid [aria-pressed=true]{border-color:#873707;background:#fff0e3}
.vehicle-progress-track{overflow:visible;position:relative;margin-inline:12px}.vehicle-progress-track>span{position:relative}.vehicle-progress-track>span::after{content:attr(data-step);position:absolute;inset-inline-end:-12px;top:-7px;display:grid;place-items:center;width:26px;height:26px;border:2px solid white;border-radius:50%;background:#132b45;color:white;font-size:14px;line-height:1}
.guest-home .header-search{margin-inline-start:0}.guest-home .offer-summary{grid-template-columns:48px minmax(0,1fr)}.guest-home .offer-icon,.guest-home .offer-icon svg{width:48px;height:40px}
.vehicle-variant-fields .vehicle-checkbox{display:flex;align-items:center;gap:8px;min-height:44px;cursor:pointer}.vehicle-editor .vehicle-checkbox input[type=checkbox]{flex:none;width:22px;height:22px;min-height:22px;max-width:22px;margin:0}
:is(.guest-home,.account-page) .role-card[aria-pressed=true]{background:#fff0e3;border-color:#873707}:is(.guest-home,.account-page) .role-check{color:#132b45}
.account-page .profile-purpose button.btn.outline[aria-pressed=true]{background:#132b45;border-color:#132b45;color:white}.account-page .purpose-option[aria-pressed=true]{background:#fff0e3;border-color:#873707;color:#132b45}
.guest-home .step-meter [role=progressbar]{height:12px;background:#d5dfe7;border-radius:8px}.guest-home .step-meter [role=progressbar]>span{background:#f47a24}.guest-home .step-meter li{min-width:26px;min-height:26px;border-color:#64788c}.guest-home .step-meter [aria-current]{background:#132b45;border-color:#132b45;color:white}

.account-page input[type=tel]{direction:ltr;unicode-bidi:isolate}
/* Dialogs sit above the navigation: document offsets must not push their controls under the sticky heading. */
.guest-home #modal :is(button,a,input,select){scroll-margin-block:12px}
.market-record-icon{display:block;width:96px;height:64px;margin-block:4px 8px}.market-record-icon svg{display:block;width:96px;height:64px}
/* Picture-first controls keep native values for validation and keyboard fallbacks. */
.visual-native-choice{position:absolute!important;width:1px!important;height:1px!important;min-height:0!important;padding:0!important;border:0!important;clip-path:inset(50%);overflow:hidden}
.visual-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-block:8px;min-width:0}.visual-choice{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-width:0;min-height:52px;padding:8px 22px 8px 8px;border:2px solid #a4b0bd;border-radius:12px;background:white;color:#132b45;font:inherit;line-height:1.5;text-align:center;cursor:pointer}.visual-choice svg{width:96px;height:64px;max-width:100%;flex:none}.visual-choice-check{position:absolute;top:4px;right:5px;visibility:hidden;width:20px;height:20px;border-radius:50%;color:white;background:#132b45;font-size:14px;line-height:20px}.visual-choice[aria-pressed=true]{border-color:#873707;background:#fff0e3}.visual-choice[aria-pressed=true] .visual-choice-check{visibility:visible}.visual-chip-grid .visual-choice{min-height:44px}.visual-number{display:flex;align-items:center;gap:6px;max-width:100%;min-width:0}.visual-number input{min-width:0;width:100%;direction:ltr;unicode-bidi:isolate}.visual-number button{min-width:44px;min-height:44px;flex:none;font-size:1.5rem;color:#132b45;background:#fff0e3;border:1px solid #64788c;border-radius:10px}.visual-unknown{min-height:44px;font:inherit;color:#132b45;background:white;border:1px solid #64788c}.vehicle-variant-fields{grid-template-columns:1fr}.visual-review{border:2px solid #64788c;border-radius:12px;padding:12px;margin-block:12px;color:#132b45;background:white}.visual-review svg{width:120px;height:78px}.visual-review p{margin-block:6px}.review-summary button{min-height:44px;font:inherit;color:#132b45;background:#fff0e3;border:1px solid #64788c;border-radius:8px}.visual-packaging{border:0;padding:0;min-width:0}.visual-packaging legend{font-weight:700}.visual-choice:focus-visible,.visual-number button:focus-visible{outline:3px solid #873707;outline-offset:2px}
.vehicle-family-grid button{position:relative;padding-inline-start:24px}.vehicle-family-grid [aria-pressed=true]::after{content:'✓';position:absolute;inset-inline-start:4px;top:4px;color:white;background:#132b45;border-radius:50%;width:20px;height:20px;font-size:14px;line-height:20px}.location-field>.visual-choice-grid svg{width:24px;height:24px}.handling-choices label{min-height:52px;border:2px solid #64788c;border-radius:12px;padding:10px;background:white;color:#132b45}.handling-choices label:has(:checked){background:#fff0e3;border-color:#873707}.visual-number .visual-native-choice{width:1px!important}.visual-choice-grid[hidden]{display:none}.review-summary .visual-review{grid-column:1/-1;display:flex;justify-content:center}.review-summary .visual-review svg{width:96px;height:64px}
.handling-choices label{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.handling-choices label svg{width:64px;height:48px;flex:none}.handling-choices label input{width:22px;height:22px;min-height:22px}
.guest-home .cargo-photo input[type=file]{border:2px solid #64788c;border-radius:10px;min-height:44px;max-width:100%;color:#132b45;background:white}
.guest-home .guided-form input:not([type=checkbox]):not([type=radio]):not([type=hidden]),.guest-home .guided-form select:not(.visual-native-choice){border:2px solid #64788c;border-radius:10px;min-height:44px;color:#132b45;background:white}
.account-page .vehicle-editor .visual-choice{background:white;color:#132b45;border:2px solid #a4b0bd}.account-page .vehicle-editor .visual-choice[aria-pressed=true],.account-page .vehicle-family-grid button[aria-pressed=true]{background:#fff0e3;border-color:#873707;color:#132b45}
#driver-profile .visual-choice,#driver-profile .vehicle-family-grid button{margin:0;background:white;color:#132b45;border:2px solid #a4b0bd;border-radius:12px}#driver-profile .visual-choice[aria-pressed=true],#driver-profile .vehicle-family-grid button[aria-pressed=true]{background:#fff0e3;border-color:#873707;color:#132b45}

/* Keep the two markets side by side when only text is enlarged. */
.guest-home .home-browse.market-categories{grid-template-columns:repeat(2,minmax(0,1fr))}
.guest-home .category-trip .category-add{color:#132b45}
.local-photo{border:1px solid #d5dfe7;border-radius:14px;padding:12px;margin-block:12px;min-width:0}
.local-photo h4{margin:0 0 8px;color:#132b45}
.local-photo input[type=file]{display:block;max-width:100%;width:100%;font:inherit;min-height:44px;border:2px solid #64788c;border-radius:10px;background:white;color:#132b45}
.local-photo [data-photo-preview] img{display:block;max-width:100%;height:auto;max-height:240px;object-fit:contain;border-radius:12px;margin-block:12px}
.local-photo .check{display:flex;align-items:flex-start;gap:8px;line-height:1.6}
.local-photo .check input{flex:none;width:22px;height:22px;min-height:22px}
/* One focus indicator for the expanding header search. */
.guest-home .header-search-form:focus-within{outline:none}
.guest-home .header-search-form input:focus{outline:2px solid #b34400;outline-offset:2px;box-shadow:none;border-color:transparent}
.guest-home footer{padding:4px 12px;gap:0}

/* Approved journey blend: route first, large left image, right-aligned details. */
.guest-home{background:#edf4fa;color:#132b45}.guest-home.home-viewport{height:var(--guest-viewport-height,100dvh);overflow:hidden;display:flex;flex-direction:column;padding-bottom:var(--guest-nav-height,76px);box-sizing:border-box}.guest-home .topbar{flex:none;position:relative}.guest-home .header-search{display:none}.guest-home .route-controls{flex:none;width:min(100%,1160px);margin:0 auto;padding:6px 12px;box-sizing:border-box;background:#edf4fa}.route-controls form{display:grid;grid-template-columns:1fr 1fr;gap:8px}.route-controls label{min-width:0;font-weight:700;font-size:1rem}.route-controls input{display:block;width:100%;min-width:0;box-sizing:border-box;min-height:44px;padding:7px 10px;border:1px solid #64788c;border-radius:12px;background:white;color:#132b45;font:inherit}.route-sort{display:flex;gap:8px;align-items:center;margin-top:6px;flex-wrap:wrap}.route-sort select{font:inherit;min-height:40px;border:1px solid #64788c;border-radius:10px;background:white;color:#132b45;max-width:100%}.route-sort small{font-size:.8rem;color:#496077}.guest-home.home-viewport .workspace{flex:1;min-height:0;display:flex;flex-direction:column;width:100%;padding:6px 12px;overflow:hidden}.guest-home.home-viewport .simple-start{flex:1;min-height:0;display:flex;flex-direction:column}.guest-home .home-toolbar{flex:none}.guest-home.home-viewport .home-results{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding-bottom:20px}.guest-home.home-viewport>footer{display:none}.guest-home .market-source{font-size:.8rem;margin-bottom:6px}.guest-home .price-context{display:none}.guest-home .offer-summary{display:grid;grid-template-columns:minmax(0,1fr) 92px;gap:10px;padding:12px;align-items:center;text-align:right;direction:rtl}.guest-home .offer-copy{grid-column:1;grid-row:1;min-width:0}.guest-home .offer-icon{grid-column:2;grid-row:1;width:92px;height:92px;background:#edf4fa;border-radius:14px;display:grid;place-items:center}.guest-home .offer-icon svg{width:88px;height:76px;max-width:100%}.guest-home .offer-kind{display:flex;align-items:center;gap:6px;color:#132b45}.guest-home .offer-subtype{display:inline-flex;width:36px;height:28px;flex:none}.guest-home .offer-subtype svg{width:36px;height:28px}.guest-home .offer-route{display:block;font-size:1rem;margin:4px 0}.guest-home .offer-availability{display:inline-block;background:#e0f2ed;color:#245b4b;border-radius:8px;padding:3px 6px;font-size:.8rem}.guest-home .offer-line{display:flex;flex-wrap:wrap;gap:4px;margin-top:6px}.guest-home .offer-price{font-size:1rem}.guest-home .offer-time{font-size:.8rem}.guest-home .guest-example-card,.guest-home .record{border:1px solid #cfdae5;border-radius:16px;background:white;overflow:hidden;margin-bottom:10px}.guest-home .offer-action{padding:0 12px 10px}.guest-home .offer-action .btn{width:100%;min-height:44px;border-radius:10px;background:#132b45;color:white}.guest-home .market-record-load .offer-action .btn{background:#ae4708;color:white}.guest-home .category-load{background:#fff0e3}.guest-home .category-trip{background:#e2ecf6}.guest-home .guest-bottom-nav .header-control{min-height:54px}.guest-home .guest-bottom-nav{background:rgb(255 255 255 / 94%)}
@media(max-width:350px){.guest-home .offer-summary{grid-template-columns:minmax(0,1fr) 76px;gap:6px;padding:10px}.guest-home .offer-icon{width:76px;height:76px}.guest-home .offer-icon svg{width:72px;height:64px}}
.guest-home.home-viewport main{flex:1;min-height:0;display:flex;flex-direction:column;padding:6px 12px;overflow:hidden}.guest-home.home-viewport footer{display:none}.guest-home .home-toolbar{padding-bottom:4px}.guest-home .route-sort label{width:auto;margin:0}.guest-home .route-sort select{width:auto;flex:1;min-width:0;max-width:200px;padding:4px 8px}.guest-home .route-sort small{margin-inline-start:auto}.guest-home .market-source{padding:6px 10px}.guest-home:not(.home-viewport) .home-results{overflow:visible}.guest-home:not(.home-viewport) .workspace{padding-bottom:calc(var(--guest-nav-height,76px) + 20px)}

.local-photo .photo-fallback{display:grid;place-items:center;min-height:110px;background:#edf4fa;border-radius:14px}.local-photo .photo-fallback svg{width:120px;height:90px}.visual-review img{object-fit:contain;border-radius:12px}
/* Compact the fixed stack without reducing primary text or hit targets. */
.guest-home .topbar{min-height:48px;padding:2px 10px;gap:12px}.guest-home .topbar .brand-logo{width:92px;height:44px;object-fit:contain}.guest-home .topbar .route-sort{margin:0;margin-inline-start:auto;gap:4px;flex-wrap:nowrap}.guest-home .topbar .route-sort small,.guest-home .topbar .route-sort>label{display:none}.guest-home .topbar .route-sort select{min-height:44px;width:154px;max-width:100%;padding:4px;font-size:1rem}.guest-home .route-controls{padding:3px 0 5px}.guest-home .route-controls input{min-height:44px;height:44px;padding:5px 8px;font-size:1rem}.guest-home .route-controls label{line-height:1.4}.guest-home.home-viewport main{padding:0}.guest-home .home-results .guest-examples{padding:0;border:0}.guest-home .guest-example-grid,.guest-home .record-list{gap:8px}.guest-home .offer-summary{padding:8px;gap:8px}.guest-home .offer-kind{line-height:1.4}.guest-home .offer-route{line-height:1.4}.guest-home .offer-availability{line-height:1.5}.guest-home .offer-action{padding:0 8px 8px}.guest-home .offer-action .btn{padding:5px 10px;min-height:44px;font-size:1rem}.guest-home .preview-load .offer-action .btn{background:#ae4708;color:#fff}.guest-home .market-source{margin:0 0 4px;padding:0 8px;min-height:44px}.guest-home .home-browse.market-categories{margin-bottom:4px}.guest-home .guest-example-card,.guest-home .record{margin-bottom:0}.guest-home .topbar:has(.route-sort){justify-content:space-between}
.guest-home.home-viewport .home-results{scrollbar-width:thin;scrollbar-gutter:auto;margin-inline-end:calc(-1 * var(--guest-list-gutter,0px))}
.guest-home.home-viewport main#main{padding-top:0}
/* Enlarged text changes layout, never clips labels to preserve the compact view. */
.guest-home.guest-large-text .topbar{flex-wrap:wrap;gap:8px;padding:8px 12px}
.guest-home.guest-large-text .topbar .route-sort{flex:1 0 100%;width:100%;max-width:100%;margin:0}
.guest-home.guest-large-text .topbar .route-sort select{width:100%;max-width:none;min-height:60px;padding:8px 12px;font-size:1rem}
.guest-home.guest-large-text .route-controls{padding:8px 12px}
.guest-home.guest-large-text .route-controls form,.guest-home.guest-large-text .home-browse.market-categories{grid-template-columns:minmax(0,1fr);gap:12px}
.guest-home.guest-large-text .route-controls input{height:auto;min-height:68px;padding:8px 12px;line-height:1.5}
.guest-home.guest-large-text .category-group{padding:8px}
.guest-home.guest-large-text .category-group .market-category{justify-content:center;padding:8px;gap:8px;line-height:1.5}
.guest-home.guest-large-text .category-add{padding:8px 12px;min-height:60px;white-space:normal}
.guest-home.guest-large-text .category-add span{white-space:normal;overflow-wrap:anywhere}
.guest-home.guest-large-text .guest-bottom-nav{grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;padding:6px 8px calc(6px + env(safe-area-inset-bottom));box-sizing:border-box}
.guest-home.guest-large-text .guest-bottom-nav .header-control{padding:4px;min-height:76px;min-width:0;font-size:.875rem;line-height:1.4}
.guest-home.guest-large-text .guest-bottom-nav .header-control span{display:block;max-width:100%;white-space:normal;overflow-wrap:anywhere}
.guest-home.guest-large-text .offer-summary{grid-template-columns:minmax(0,1fr) 76px}.guest-home.guest-large-text .offer-icon{width:76px;height:76px}.guest-home.guest-large-text .offer-icon svg{width:72px;height:66px}
.guest-home.guest-large-text .guest-bottom-nav .header-control{line-height:1.8;min-height:92px;padding:8px 4px}
.guest-home.guest-large-text .category-add{line-height:1.8;min-height:76px;padding:12px}

/* Shared Himoola visual family: all actual public, account and private routes.
   Status/danger colors and all access/business behavior remain page-owned. */
@font-face{font-family:'Himoola Arabic';src:url('/browse-assets/assets/arabic-regular.woff2') format('woff2'),url('/browse-assets/assets/arabic-regular.woff') format('woff');font-weight:400;font-display:swap}
@font-face{font-family:'Himoola Arabic';src:url('/browse-assets/assets/arabic-bold.woff2') format('woff2'),url('/browse-assets/assets/arabic-bold.woff') format('woff');font-weight:700;font-display:swap}
body{font-family:'Himoola Arabic',Arial,sans-serif}
:root{--surface-accent:#234f7e;--surface-soft:#e7f0fa;--surface-line:#c9dbee;--surface-ink:#132b45;--surface-orange:#a94306;--surface-orange-soft:#fff0e3;--brand-primary:#234f7e;--brand-hover:#183d64;--brand-soft:#e7f0fa;--brand-line:#c9dbee;--brand-focus:#a94306}
body:not(.guest-home){background:var(--surface-soft);color:var(--surface-ink);font-family:'Himoola Arabic',Arial,sans-serif;line-height:1.7;min-width:0}
body:not(.guest-home) :is(main,.workspace){min-width:0}
body:not(.guest-home) :is(.topbar,body>header){position:sticky;top:0;z-index:20;isolation:isolate;display:flex;align-items:center;flex-wrap:wrap;gap:8px 16px;border:0;padding:calc(12px + env(safe-area-inset-top,0px)) max(16px,env(safe-area-inset-right,0px)) 12px max(16px,env(safe-area-inset-left,0px));background:#fffffff0;box-shadow:none}
body:not(.guest-home) :is(.topbar,body>header)::before{content:'';position:absolute;inset:0 0 -18px;z-index:-1;pointer-events:none;background:linear-gradient(#fffffff2 75%,transparent)}
body:not(.guest-home) :is(.topbar,body>header) :is(nav a,nav button){min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:6px;border:1px solid #ffffffb8;border-radius:16px;background:#ffffffe8;color:var(--surface-ink);padding:8px 12px;text-decoration:none;white-space:normal}
body:not(.guest-home) :is(.topbar,body>header) nav{display:flex;flex-wrap:wrap;gap:6px;max-width:100%;min-width:0}
body:not(.guest-home) :is(.topbar,body>header) :is(nav button.active,nav [aria-current=page]){background:var(--surface-accent);color:white;border-color:var(--surface-accent)}
body:not(.guest-home) .brand-logo{object-fit:contain;max-width:120px;height:auto}
body:not(.guest-home) :is(.panel,.account-panel,.profile-section,.request-card,.card,.record,.quote-card,.load-card,.empty,.filterbar,#driver-profile){background:white;border:1px solid var(--surface-line);border-radius:18px;box-shadow:0 3px 12px #132b4506;color:var(--surface-ink);min-width:0}
body:not(.guest-home) :is(.profile-section:first-child,#driver-profile){border-top:3px solid var(--surface-accent);background:white}
body:not(.guest-home) :is(.role-card>svg,.role-card[aria-pressed=true]::after){color:var(--surface-accent)}
body:not(.guest-home) .role-card[aria-pressed=true]{box-shadow:inset -4px 0 var(--surface-accent)}
body:not(.guest-home) :is(.profile-purpose [aria-pressed=true],button.primary,.btn:not(.outline):not(.danger):not(.dark),button[type=submit]){background:var(--surface-accent);border-color:var(--surface-accent);color:white;border-radius:14px}
body:not(.guest-home) :is(button,.button,.btn,input,select,textarea){font-family:inherit;max-width:100%;box-sizing:border-box}
body:not(.guest-home) :is(button,.button,.btn){min-height:44px;line-height:1.5;overflow-wrap:break-word}
body:not(.guest-home) :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea){background:#fff;color:var(--surface-ink);border:1px solid #8ea5bc;border-radius:12px;min-height:48px;min-width:0;font-size:1rem}
body:not(.guest-home) :is(input,textarea)::placeholder{color:#52677d;opacity:1}
body:not(.guest-home) :is(fieldset,.request-summary,.document,.profile-record){border-color:var(--surface-line);border-radius:14px;min-width:0}
body:not(.guest-home) :is(.request-summary,.request-thread .message.mine){background:var(--surface-orange-soft);color:var(--surface-ink)}
body:not(.guest-home) .request-thread .message{background:var(--surface-soft);color:var(--surface-ink)}
body:not(.guest-home) :is(.panel-head,.profile-purpose,.request-actions,.account-actions){gap:8px}
body:not(.guest-home) :is(.pilot-note,.demo-note){background:#ffffffdb;border:1px solid var(--surface-line);border-radius:12px;margin:8px 12px;color:var(--surface-ink)}
body:not(.guest-home) :is(.warning,.notice,.note.warning){background:#fff4df;color:#66460c;border-color:#dac287;border-radius:12px}
body:not(.guest-home) :is(.toolbar,.actions,.account-actions,.request-actions){flex-wrap:wrap;min-width:0}
body:not(.guest-home) :is(.toolbar,.actions,.account-actions,.request-actions)>*{min-width:0;max-width:100%}
body:not(.guest-home) :is(button,a,input,select,textarea):focus-visible{outline:3px solid var(--surface-orange);outline-offset:3px}
body:not(.guest-home) table{background:white;border-collapse:separate;border-spacing:0;max-width:100%;border:1px solid var(--surface-line);border-radius:14px}
body:not(.guest-home) :is(th,td){padding:10px;border-color:var(--surface-line);overflow-wrap:anywhere}
body:not(.guest-home) th{background:var(--surface-soft);color:var(--surface-ink)}
body:not(.guest-home) footer{background:#ffffffe8;border:1px solid var(--surface-line);border-radius:20px;margin:12px;padding:16px 16px calc(16px + env(safe-area-inset-bottom,0px));color:#42566e}
body:not(.guest-home) main{padding-bottom:calc(28px + env(safe-area-inset-bottom,0px));scroll-margin-top:140px}
body dialog{background:white;color:var(--surface-ink);border:1px solid var(--surface-line);border-radius:20px;box-shadow:0 18px 60px #132b4533;max-width:calc(100% - 24px);max-height:calc(100dvh - 24px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));overflow:auto;overscroll-behavior:contain}
body dialog::backdrop{background:#132b4566;backdrop-filter:blur(4px)}
body dialog :is(input,select,textarea){border-radius:12px}
body dialog :is(h1,h2,h3){color:var(--surface-ink)}
@supports (backdrop-filter:blur(1px)){body:not(.guest-home) :is(.topbar,body>header){background:#ffffffd9;backdrop-filter:blur(16px)}body:not(.guest-home) footer{backdrop-filter:blur(16px)}}
@media(max-width:600px){body:not(.guest-home) main{padding-inline:12px}body:not(.guest-home) :is(.topbar,body>header){gap:8px;padding-inline:12px}body:not(.guest-home) :is(.panel,.account-panel,.profile-section,.request-card,.card){padding:16px}body:not(.guest-home) .brand-logo{max-width:108px}}
@media(prefers-reduced-motion:reduce){body:not(.guest-home) :is(button,input,select,textarea,dialog){transition:none;animation:none}}
/* Keep legacy mobile nav in the shared header rather than fixed inside its blur layer. */
body:not(.guest-home) :is(.topbar,body>header) nav{position:static;inset:auto;width:auto;min-height:0;padding:0;box-shadow:none;border:0;background:transparent}
body:not(.guest-home){min-height:100dvh}
body:not(.guest-home) .skip{position:fixed;top:-200px;right:12px;z-index:100;background:white;padding:12px;border-radius:12px}
body:not(.guest-home) .skip:focus{top:12px}
/* Private workspace views use document flow too; the guest viewport mode is not an admin layout. */
body:not(.guest-home).home-viewport{display:block;height:auto;overflow:auto;padding-bottom:0}
body:not(.guest-home).home-viewport .workspace{display:block;height:auto;min-height:100dvh;overflow:visible}
body:not(.guest-home).home-viewport #main{display:block;height:auto;min-height:0;overflow:visible;padding:24px 16px}
body:not(.guest-home).home-viewport .simple-start{display:block}
/* Contrast repairs in the legacy/private views covered by the shared-theme audit. */
body:not(.guest-home) :is(.highlights-head .eyebrow,.highlight-route small,.example-tag,.highlight-countdown,.highlights-help,.highlights-meta,.route-line small,.role-switch button,.flow-tab,.form-progress,.page-head p){color:#42566e}
body:not(.guest-home) .trip-highlights>p span{color:#42566e}
body:not(.guest-home) footer :is(span,.text-button){color:#42566e}
body:not(.guest-home) :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea){border-color:#647e98}
body:not(.guest-home) :is(input,textarea)::placeholder{font-size:1em}
body:not(.guest-home) .campaign-copy-wrap{padding:16px;border-radius:18px;background:#132b45ed}
body:not(.guest-home) .campaign-copy-wrap :is(.eyebrow,h2,p){color:white}
body:not(.guest-home) .poster-controls{padding:6px;border-radius:16px;background:#132b45ed;color:white}
body:not(.guest-home) .poster-counter{color:white}
body:not(.guest-home) :is(.highlight-demo-toggle>span,.highlights-foot){color:#42566e}
body:not(.guest-home) .hero-image span{background:#132b45ed;color:white;padding:8px 12px;border-radius:12px}
/* One account treatment for shared entry points and the secure account page. */
body #modal:has(.account-entry){background:#fff;border:1px solid #d5e0ea;border-radius:24px;box-shadow:0 12px 40px #132b4533;color:#132b45}
body #modal:has(.account-entry) .modal-head{background:#fff;border-bottom:1px solid #e1e8ef;padding:18px 20px}
body #modal:has(.account-entry) .modal-head h2{font-size:1.25rem;line-height:1.6}
body #modal:has(.account-entry) .close-button{background:#f0f4f7;color:#132b45;border:1px solid #d5e0ea;border-radius:50%;min-width:48px;min-height:48px}
body .account-entry{gap:16px;color:#132b45;font-family:inherit}
body .account-entry :is(p,.fine,.notice){font-size:1rem;line-height:1.8}
body .account-entry .account-tabs{display:flex;flex-wrap:wrap;gap:4px;padding:4px;border:1px solid #d5e0ea;border-radius:18px;background:#f0f4f7}
body .account-entry .account-tabs button{flex:1 1 90px;font:inherit;line-height:1.6;min-height:48px;border-radius:14px;border:1px solid transparent;color:#42566e;background:transparent;padding:8px}
body .account-entry .account-tabs [aria-pressed=true]{background:#132b45;color:#fff;border-color:#132b45;box-shadow:inset 0 1px #ffffff40,0 2px 5px #132b4518}
body .account-entry :is(.account-method,.role-continue){min-height:52px;font:inherit;font-weight:700;border-radius:14px;background:#132b45;border:1px solid #132b45;color:#fff}
body .account-entry .account-method:disabled{opacity:1;background:#f0f4f7;color:#52667b;border-color:#d5e0ea;cursor:not-allowed}
body .account-entry .notice{padding:12px 14px;border:1px solid #dac287;border-radius:14px;background:#fff4df;color:#66460c}
body :is(.account-entry,.account-page) .role-card{border-color:#c9d7e4;border-radius:18px;color:#132b45;background:#fff;box-shadow:none}
body :is(.account-entry,.account-page) .role-card[aria-pressed=true]{background:#f0f4f7;border-color:#132b45;box-shadow:inset -3px 0 #132b45}
body :is(.account-entry,.account-page) :is(.role-check,.role-card[aria-pressed=true]::after){color:#132b45}
body .account-entry .text-button{color:#a94306;font:inherit;font-weight:700;min-height:44px}
body .account-entry :is(button,a):focus-visible{outline:3px solid #a94306;outline-offset:3px}
.account-stat-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:16px 0}.account-stat{display:flex;flex-direction:column;align-items:start;justify-content:center;gap:8px;padding:14px;border:1px solid #c9d7e4;border-radius:16px;background:#f4f7fa;color:#132b45;text-align:right}.account-stat span{font-size:.9rem;color:#52667b}.account-stat-grid button{grid-column:1/-1;font:inherit;min-height:52px}.account-dashboard-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:16px 0}.account-dashboard-links a{display:flex;align-items:center;padding:12px;min-height:52px;border:1px solid #c9d7e4;border-radius:14px;background:#fff;text-decoration:underline}.account-unavailable{padding:16px;background:#f4f7fa;border-radius:16px}.account-unavailable h3{margin-top:12px}
@media(max-width:360px){.account-stat-grid,.account-dashboard-links{grid-template-columns:1fr}}

/* Option 1: approved homepage glass extended to legacy content surfaces.
   Header, floating-market placement and authentication composition stay page-owned. */
:root{--surface-glass:#ffffffdb;--surface-glass-line:#ffffffd9;--surface-glass-shadow:inset 0 1px #fff,inset 0 -1px #132b4512,0 3px 12px #132b4510;--surface-radius:18px}
body:not(.guest-home) :is(.panel,.account-panel,.profile-section,.request-card,.card,.record,.quote-card,.load-card,.empty,.filterbar,#driver-profile,.document,.account-stat,.account-dashboard-links a){background:var(--surface-glass);border-color:var(--surface-glass-line);border-radius:var(--surface-radius);box-shadow:var(--surface-glass-shadow)}
body:not(.guest-home) :is(.profile-section:first-child,#driver-profile){border-top:1px solid var(--surface-glass-line)}
body:not(.guest-home) :is(.role-card,.choice-card,.flow-tab,.highlight-filter,.request-actions a){border:1px solid var(--surface-line);border-radius:14px;background:var(--surface-glass);color:var(--surface-ink);box-shadow:var(--surface-glass-shadow)}
body:not(.guest-home) :is(.role-card[aria-pressed=true],.flow-tab.active,.highlight-filter.active){background:var(--surface-soft);border-color:var(--surface-accent)}
body:not(.guest-home) :is(button.primary,.btn:not(.outline):not(.danger):not(.dark),button[type=submit]){border-radius:16px;background-image:radial-gradient(ellipse at 50% 0%,#ffffff12,transparent 65%);box-shadow:inset 0 1px #ffffff80,0 3px 8px #132b4520}
body:not(.guest-home) :is(.btn.outline,.date-quick button,.location-actions button){background:var(--surface-glass);border-color:var(--surface-line);border-radius:14px;color:var(--surface-ink)}
body:not(.guest-home) :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea){border-radius:12px;background:#ffffffed}
/* Opaque by default; blur-capable browsers opt in below. Auth owns its existing glass. */
body dialog:not(.auth-context-dialog):not(:has(.account-entry)),body #modal:has(.guided-form),body dialog.market-control-sheet[open]:not(.auth-context-dialog){background:#f8fafc;border:1px solid var(--surface-glass-line);border-radius:24px;box-shadow:inset 0 1px #fff,0 18px 60px #132b4533;color:var(--surface-ink)}
body dialog:not(.auth-context-dialog)::backdrop{background:#132b4566;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}
body dialog :is(.location-picker-head,.preview-vehicle-head,.preview-vehicle-controls,.preview-filter-footer){background:transparent;border-color:#132b4515}
body dialog :is(.location-cancel,.sheet-close,.preview-vehicle-close){background:var(--surface-glass);color:var(--surface-ink);border:1px solid var(--surface-glass-line);border-radius:16px;min-height:44px;min-width:44px;box-shadow:var(--surface-glass-shadow)}
body dialog :is(.visual-choice,.vehicle-choices label>span,.preview-family-grid button,.preview-subtype-grid button,.preview-text-options button,.preview-filter-types button,.sheet-options button){border:1px solid var(--surface-line);border-radius:14px;background:var(--surface-glass);color:var(--surface-ink);box-shadow:var(--surface-glass-shadow)}
body dialog :is(.visual-choice[aria-pressed=true],.preview-family-grid [aria-pressed=true],.preview-subtype-grid [aria-pressed=true],.preview-text-options [aria-pressed=true],.preview-filter-types [aria-pressed=true],.sheet-options [aria-pressed=true]){background:var(--surface-soft);border:1px solid var(--surface-accent)}
body dialog .vehicle-choices input:checked+span{background:var(--surface-soft);border:1px solid var(--surface-accent)}
body dialog:has(#load-form){--dialog-accent:var(--surface-orange);--dialog-pale:var(--surface-orange-soft)}
body dialog:has(#trip-form){--dialog-accent:var(--surface-accent);--dialog-pale:var(--surface-soft)}
body #modal:has(.guided-form)[open]{display:block;margin:auto;width:min(560px,calc(100% - 24px));max-width:calc(100% - 24px);max-height:calc(100dvh - 24px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));height:auto;padding:0;overflow:auto;overscroll-behavior:contain}
body #modal:has(.guided-form) #modal-content{display:block;height:auto;max-height:none;overflow:visible}
body #modal:has(.guided-form) .modal-head{position:static;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 16px;min-height:62px;background:transparent;border-bottom:1px solid #132b4510}
body #modal:has(.guided-form) .modal-head h2{font-size:1.4375rem;line-height:1.6}
body #modal:has(.guided-form) .close-button{width:44px;min-width:44px;height:44px;min-height:44px;border:1px solid var(--surface-glass-line);border-radius:16px;background:var(--surface-glass);color:var(--surface-ink);box-shadow:var(--surface-glass-shadow)}
body #modal:has(.guided-form) .modal-body{height:auto;max-height:none;overflow:visible;padding:10px 14px 14px}
body #modal .guided-form .step-meter{position:static;background:transparent;border:0;padding:0;margin:0 0 6px;font-size:.9375rem;color:#42566e}
body #modal .guided-form .step-meter b{font-weight:400}
body #modal .guided-form .step-meter [role=progressbar]{height:3px;background:#132b4510;margin:7px 0 8px;border-radius:6px}
body #modal .guided-form .step-meter [role=progressbar]>span{background:var(--dialog-accent,var(--surface-accent))}
body #modal .guided-form .step-meter ol{display:flex;justify-content:space-between;gap:8px;margin:0;padding:0;list-style:none}
body #modal .guided-form .step-meter li{border:1px solid #132b4520;background:var(--surface-glass);color:#42566e;border-radius:50%;min-width:26px;width:26px;height:26px;line-height:24px;text-align:center;font-size:.9375rem}
body #modal .guided-form .step-meter [aria-current]{background:var(--dialog-accent,var(--surface-accent));color:white;border-color:var(--dialog-accent,var(--surface-accent));outline:none;box-shadow:0 3px 8px #132b4520}
body #modal .guided-form .review-steps{background:transparent;padding:0;margin:0}
body #modal .guided-form .review-steps p{font-size:.9375rem;line-height:1.6;margin:0 0 6px;font-weight:400}
body #modal .guided-form .review-step-track{overflow:hidden}
body #modal .guided-form .review-step-marker{display:none}
body #modal .guided-form .draft-label{font-size:.9375rem;color:#526276;margin:0 0 7px}
body #modal .guided-form .question-step h3{font-size:1.25rem;line-height:1.6;margin:0 0 3px;color:var(--surface-ink);scroll-margin-top:12px}
body #modal .guided-form .step-help{font-size:.9375rem;line-height:1.7;margin:0 0 10px;color:#526276}
body #modal .guided-form .fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
body #modal .guided-form .field{gap:0;min-width:0}
body #modal .guided-form .field.full{grid-column:1/-1}
body #modal .guided-form :is(.field>label,legend){font-size:1rem;line-height:1.65;margin:0 0 5px;font-weight:700;color:#253d56}
body #modal .guided-form :is(input:not([type=radio]):not([type=checkbox]):not([type=hidden]),select,textarea){min-height:44px;padding:8px 10px;border:1px solid #647e98;border-radius:12px;background:#ffffffed;font-size:1.125rem;color:var(--surface-ink)}
body #modal .guided-form input::placeholder{font-size:1em;color:#52667b}
body #modal .guided-form .visual-choice-grid{gap:7px;margin:0}
body #modal .guided-form .visual-choice{min-height:72px;padding:7px 4px;gap:6px;font-size:1rem;line-height:1.5;border-width:1px}
body #modal .guided-form .visual-choice svg{width:54px;height:35px}
body #modal .guided-form .visual-choice[aria-pressed=true]{background:var(--dialog-pale,var(--surface-soft));border:1px solid var(--dialog-accent,var(--surface-accent));box-shadow:var(--surface-glass-shadow)}
body #modal .guided-form .visual-choice-check{width:20px;height:20px;line-height:20px;font-size:14px;top:4px;right:4px;background:var(--dialog-accent,var(--surface-accent));color:white}
body #modal #load-form .field:has(>#f-category),body #modal #load-form .field:has(>#f-cargo){grid-column:1/-1}
body #modal #load-form [data-choice-for=category]{grid-template-columns:repeat(3,minmax(0,1fr))}
body #modal #load-form .visual-packaging{border:0;padding:0;margin:0;min-width:0}
body #modal #load-form .visual-packaging .visual-choice-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
body #modal .guided-form .fine{font-size:.9375rem;line-height:1.7;margin:5px 0 0;color:#526276}
body #modal .guided-form .visual-number{gap:3px}
body #modal .guided-form .visual-number button{width:44px;min-width:44px;min-height:44px;padding:0;border:1px solid var(--surface-line);border-radius:10px;background:var(--surface-glass);color:var(--surface-ink);font-size:1.25rem}
body #modal .guided-form .visual-number input{padding:4px;min-width:0;text-align:center}
body #modal .guided-form .visual-unknown{font-size:.9375rem;min-height:44px;margin:0;padding:0 4px;color:#42566e;background:transparent;border:0;text-decoration:underline;text-underline-offset:3px}
body #modal .guided-form .inline-error:empty{display:none}
body #modal .guided-form .guided-controls{position:static;display:flex;gap:10px;border-top:1px solid #132b4515;margin:10px 0 0;padding:12px 0 0;background:transparent}
body #modal .guided-form .guided-controls .btn{min-height:48px;font-size:1rem;border-radius:16px;background-color:var(--dialog-accent,var(--surface-accent));background-image:radial-gradient(ellipse at 50% 0%,#ffffff12,transparent 65%);color:#fff;border:1px solid #ffffffa8;box-shadow:inset 0 -1px #00000010,0 3px 8px #132b4530;flex:1}
body #modal .guided-form .guided-controls .outline{background:var(--surface-glass);color:var(--surface-ink);border-color:var(--surface-line);box-shadow:var(--surface-glass-shadow);flex:0 0 76px}
body #modal .guided-form .guided-controls .btn:disabled{opacity:.45;cursor:default}
body #modal .guided-form [hidden]{display:none!important}
body dialog :is(button,a,input,select,textarea,summary):focus-visible{outline:3px solid var(--surface-orange);outline-offset:3px}
body dialog :is(.location-clear,.location-details summary){min-height:44px}
@supports ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
 body dialog:not(.auth-context-dialog):not(:has(.account-entry)),body #modal:has(.guided-form),body dialog.market-control-sheet[open]:not(.auth-context-dialog){background:var(--surface-glass);-webkit-backdrop-filter:blur(16px) saturate(1.2);backdrop-filter:blur(16px) saturate(1.2)}
}
@media(max-width:360px){
 body #modal #load-form [data-choice-for=category],body #modal #load-form .visual-packaging .visual-choice-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 body #modal .guided-form .fields{grid-template-columns:minmax(0,1fr)}
}
@media(prefers-reduced-transparency:reduce){
 body dialog:not(.auth-context-dialog):not(:has(.account-entry)),body #modal:has(.guided-form),body dialog.market-control-sheet[open]:not(.auth-context-dialog){background:#f8fafc;-webkit-backdrop-filter:none;backdrop-filter:none}
 body:not(.guest-home) :is(.panel,.account-panel,.profile-section,.request-card,.card,.record,.quote-card,.load-card,.empty,.filterbar,#driver-profile,.document,.account-stat){background:#fff}
 body dialog:not(.auth-context-dialog)::backdrop{-webkit-backdrop-filter:none;backdrop-filter:none}
}
@media(prefers-reduced-motion:reduce){body dialog,body dialog *{scroll-behavior:auto;animation:none!important;transition:none!important}}
/* The marketplace filter is a labelled panel, not a native dialog. */
body.guest-home #preview-filters{background:#f8fafc;border:1px solid var(--surface-glass-line);border-radius:24px;box-shadow:inset 0 1px #fff,0 18px 60px #132b4533;color:var(--surface-ink)}
body #preview-filters :is(.preview-filter-types button,.preview-filter-dates button){border:1px solid var(--surface-line);border-radius:14px;background:var(--surface-glass);color:var(--surface-ink);min-height:44px}
body #preview-filters [aria-pressed=true]{background:var(--surface-soft);border-color:var(--surface-accent)}
body #preview-filters[data-theme=load] [aria-pressed=true]{background:var(--surface-orange-soft);border-color:var(--surface-orange)}
body #preview-filters :is(button,input,select):focus-visible{outline:3px solid var(--surface-orange);outline-offset:3px}
@supports ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){body.guest-home #preview-filters{background:var(--surface-glass);-webkit-backdrop-filter:blur(16px) saturate(1.2);backdrop-filter:blur(16px) saturate(1.2)}}
@media(prefers-reduced-transparency:reduce){body.guest-home #preview-filters{background:#f8fafc;-webkit-backdrop-filter:none;backdrop-filter:none}}
/* Comfortable image tiles; readable text may extend the scrollable form. */
body #modal .guided-form .visual-choice{min-height:64px;padding:4px;gap:3px}
body #modal .guided-form .visual-choice svg{height:32px}
body #modal .guided-form .fields{gap:8px}
body #modal .guided-form .fine{font-size:.9375rem}
body #modal .guided-form button.visual-unknown{border:0;background:transparent;box-shadow:none}
@media(max-width:600px){body #modal .guided-form .location-field{grid-column:1/-1}}
/* Named legacy editors override their old opaque page-local surfaces. */
body dialog:is(#vehicle-review-modal,#location-picker,#editor,#request-editor)[open]{background:#f8fafc;border:1px solid var(--surface-glass-line);border-radius:24px;box-shadow:inset 0 1px #fff,0 18px 60px #132b4533}
body #vehicle-review-modal .preview-vehicle-head button{border:1px solid var(--surface-glass-line);border-radius:16px;background:var(--surface-glass);box-shadow:var(--surface-glass-shadow)}
body #vehicle-review-modal .preview-vehicle-controls button{border-radius:16px;box-shadow:inset 0 1px #ffffff80,0 3px 8px #132b4520}
body dialog:is(#vehicle-review-modal,#request-editor) .review-steps{background:transparent;color:var(--surface-ink)}
body dialog:is(#vehicle-review-modal,#request-editor) .review-steps ol{justify-content:space-between}
body dialog:is(#vehicle-review-modal,#request-editor) .review-step-track{height:3px;background:#132b4510;overflow:hidden}
body dialog:is(#vehicle-review-modal,#request-editor) .review-step-fill{background:var(--surface-accent)}
body dialog:is(#vehicle-review-modal,#request-editor) .review-step-marker{display:none}
body dialog:is(#vehicle-review-modal,#request-editor) .review-steps li{border:1px solid var(--surface-line);background:var(--surface-glass);color:#42566e}
body dialog:is(#vehicle-review-modal,#request-editor) .review-steps li.is-current{background:var(--surface-accent);border-color:var(--surface-accent);color:white;outline:none}
@supports ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){body dialog:is(#vehicle-review-modal,#location-picker,#editor,#request-editor)[open]{background:var(--surface-glass);-webkit-backdrop-filter:blur(16px) saturate(1.2);backdrop-filter:blur(16px) saturate(1.2)}}
@media(prefers-reduced-transparency:reduce){body dialog:is(#vehicle-review-modal,#location-picker,#editor,#request-editor)[open]{background:#f8fafc;-webkit-backdrop-filter:none;backdrop-filter:none}}
body dialog .location-note:not(.has-point){color:#526276}
body :is(#vehicle-review-modal,#market-sort-sheet,#market-city-sheet,#preview-filters,#location-picker) :is(input,select,textarea){border:1px solid #647e98;background:#ffffffed;color:var(--surface-ink);border-radius:12px}
body :is(#vehicle-review-modal,#market-city-sheet,#preview-filters,#location-picker) :is(input,textarea)::placeholder{font:inherit;color:#52667b;opacity:1}
body.guest-home #preview-filters[data-theme] :is(input,select,textarea){border:1px solid #647e98;background:#ffffffed;color:var(--surface-ink)}

body.guest-home #vehicle-review-modal .preview-vehicle-controls{background:transparent;border-top:1px solid #132b4515}

/* Shared semantic readability roles. Compact navigation and listing actions have
   their own sizes; never force generic div/span/button text into a single scale. */
:root{--hm-readability-start:1;--type-body:1rem;--type-label:1rem;--type-detail:.9375rem;--type-ink:#132b45;--type-muted:#42566e}
body{font-size:var(--type-body);line-height:1.7;color:var(--type-ink)}
body :is(input,select,textarea){font-family:inherit;font-size:1.125rem;font-weight:600;line-height:1.6;max-width:100%;min-width:0;box-sizing:border-box}
body :is(label,legend,.field-label){font-size:var(--type-label);font-weight:700;line-height:1.6}
body :is(.note,.empty,.check,.detail-grid,.bubble){font-size:var(--type-body);line-height:1.75}
body :is(.fine,.muted,.step-help,.draft-label,.form-progress){font-size:var(--type-detail);line-height:1.7;color:var(--type-muted)}
body :is(input,textarea)::placeholder{font-size:inherit;font-weight:400;color:var(--type-muted);opacity:1}
body :is(.visual-choice,.radio-tiles label,.vehicle-choices label,.role-card){font-size:1rem;font-weight:700;line-height:1.6;height:auto;min-height:44px;white-space:normal;word-break:normal;overflow-wrap:normal}
body :is(.visual-choice-label,.visual-choice-name){font-size:inherit;font-weight:inherit}
body :is(.field,label,legend,.card-top,.card-bottom,.modal-head,.page-head){min-width:0}
body.guest-home[data-sketch-layout] .guest-bottom-nav .header-control:is(button,a){font-size:12px;font-weight:700;line-height:1.5}
body.guest-home[data-sketch-layout] .guest-bottom-nav .header-control span{font-size:inherit;font-weight:inherit;white-space:nowrap;word-break:normal;overflow-wrap:normal}
body .browse-summary,body .browse-summary>span{font-size:12px;font-weight:700;line-height:18px}
body.guest-home[data-sketch-layout] .market-selector button[data-market-choice]{font-size:14px;font-weight:700;white-space:nowrap}
body.guest-home [data-market-choice] :is(.selector-label,.selector-ink){font-size:inherit;white-space:nowrap}
body.guest-home .offer-action .btn{font-size:.875rem;font-weight:700;line-height:1.5;word-break:normal;overflow-wrap:normal}
body.guest-home .offer-price{font-size:1rem;font-weight:700;word-break:normal;overflow-wrap:normal}
body :is(.guided-controls,.flow-controls,.actions,.card-bottom){flex-wrap:wrap}
body :is(.guided-controls,.flow-controls) .btn{font-size:1rem;font-weight:700;min-height:44px;white-space:normal}
body #modal .guided-form .step-meter{color:#132b45;font-size:1rem}
body #modal .guided-form .step-meter b{font-weight:700}
body #modal .guided-form .step-meter [role=progressbar]{height:5px;background:#647e98}
body #modal .guided-form .step-meter li{font-size:1rem;font-weight:700;box-sizing:border-box;min-width:max(30px,1.5em);min-height:max(30px,1.5em);width:auto;height:auto;line-height:1.5;border:1px solid #647e98;background:#edf3f9;color:#132b45}
body #modal .guided-form .step-meter [aria-current]{background:#132b45;border-color:#132b45;color:#fff}
body .review-step-number{font-size:1rem;font-weight:700;color:#132b45}
body #preview-filters :is(.preview-filter-types button,.preview-filter-dates button){font-size:1rem;font-weight:700;line-height:1.5;white-space:normal;word-break:normal;overflow-wrap:normal;padding-inline:8px}
body #preview-filters label{font-size:1rem;font-weight:700}
body :is(.tabs,.role-switch){max-width:100%;min-width:0;flex-wrap:wrap}
body :is(.tabs,.role-switch)>button{min-width:0;flex:1 1 7rem;white-space:normal}
body .topbar nav button>span{max-width:100%;min-width:0;white-space:normal;overflow-wrap:normal}
body .steps{grid-template-columns:repeat(auto-fit,minmax(min(100%,7rem),1fr))}
body .steps>*{min-width:0;white-space:normal}
body .mini-stats{grid-template-columns:repeat(auto-fit,minmax(min(100%,7rem),1fr))}
body .mini-stat,body .hero-copy{min-width:0}
body .page-head{flex-wrap:wrap}
body .page-head>.btn{max-width:100%;min-width:0;flex-shrink:1;white-space:normal}
@media(max-width:600px){body :is(.guided-form .fields,.guided-form .detail-grid){grid-template-columns:minmax(0,1fr)}body :is(.visual-choices,.visual-packaging,.vehicle-choices){grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:350px){body.guest-home[data-sketch-layout] .guest-bottom-nav .header-control:is(button,a){font-size:11px}body.guest-home[data-sketch-layout] .market-selector button[data-market-choice]{font-size:14px}}
/* At enlarged text sizes the existing accessible layout has wider nav cells. */
/* Shared dimensions across sort, vehicle and load choices. The filter remains
   a contained native horizontal RTL rail; only the other surfaces use a grid. */
body{--choice-tile-width:min(calc(100vw - 80px),clamp(7.5rem,calc((100vw - 80px)/2),10.5rem));--choice-image-height:80px;--choice-label-height:4.8rem}
body :is(dialog,#preview-filters) :is(.preview-family-grid,.preview-subtype-grid,.vehicle-family-grid,.sheet-options,.vehicle-choices){display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,var(--choice-tile-width)),min(100%,var(--choice-tile-width))));justify-content:center;gap:10px;min-width:0}
body :is(dialog,#preview-filters) .visual-choice-grid:has(>.visual-choice>svg){display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,var(--choice-tile-width)),min(100%,var(--choice-tile-width))));justify-content:center;gap:10px;min-width:0}
/* Text options use their field's available width, not the artwork tile width.
   This shared rule also covers account, request and guided-form dialogs. */
body .visual-choice-grid:not(:has(>.visual-choice>svg)){display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,7rem),1fr));align-items:stretch;justify-content:stretch;gap:8px;min-width:0}
body .visual-choice-grid>.visual-choice:not(:has(svg)){width:100%;min-width:0;min-height:44px;height:auto;padding:8px 26px;white-space:normal;overflow-wrap:anywhere}
body .preview-filter-types{display:flex;direction:rtl;gap:10px;overflow-x:auto;overflow-y:hidden;max-width:100%;min-width:0;padding-block:4px 12px}
body .preview-filter-types>button{flex:0 0 var(--choice-tile-width)}
body :is(dialog,#preview-filters) :is(.preview-family-grid,.preview-subtype-grid,.vehicle-family-grid,.preview-filter-types,.sheet-options)>button,
body :is(dialog,#preview-filters) .visual-choice-grid>.visual-choice:has(svg),body :is(dialog,#preview-filters) .vehicle-choices label>span{position:relative;display:grid;grid-template-rows:var(--choice-image-height) minmax(var(--choice-label-height),auto);align-content:start;justify-items:center;gap:8px;min-width:0;min-height:calc(110px + var(--choice-label-height));width:100%;padding:10px;font-size:1rem;line-height:1.6;text-align:center;white-space:normal}
body :is(dialog,#preview-filters) :is(.preview-family-grid,.preview-subtype-grid,.vehicle-family-grid,.preview-filter-types,.sheet-options)>button>svg,
body #modal .guided-form .visual-choice-grid>.visual-choice>svg,body :is(dialog,#preview-filters) .visual-choice-grid>.visual-choice>svg,body :is(dialog,#preview-filters) .vehicle-choices label>span>svg{grid-row:1;width:100%;max-width:132px;height:var(--choice-image-height);align-self:start;object-fit:contain}
body .preview-filter-types>button:not(:has(svg))::before{content:'';height:var(--choice-image-height);grid-row:1}
body .sheet-options>button .choice-label{visibility:visible}
body .sheet-options>button .sheet-check{position:absolute;top:8px;left:8px}
body #modal .guided-form .vehicle-choices{gap:10px}
body #modal .guided-form .vehicle-choices label{margin:0}
body :is(dialog,#preview-filters) .vehicle-choices label>span>b{font-size:inherit;line-height:inherit}
/* At enlarged text sizes the existing accessible layout has wider nav cells. */
body.guest-home.guest-large-text .guest-bottom-nav .header-control span{white-space:normal;overflow-wrap:normal}
/* Legacy market tabs grow to the word width when text is enlarged. */
body #market-section .tabs>button{flex-basis:max-content;max-width:100%;overflow-wrap:normal;word-break:normal}

body #modal .guided-form .step-meter ol{gap:4px;flex-wrap:wrap}

/* Shared inner choice frames: retain each panel's content and rail/grid layout. */
body.guest-home :is(#preview-filters,#market-sort-sheet){--control-choice-ink:#244566;--control-choice-selected:#e2ecfb;--control-choice-radius:14px}
body.guest-home :is(#preview-filters,#market-sort-sheet)[data-theme=load]{--control-choice-ink:#a94306;--control-choice-selected:#fff0e3}
body.guest-home :is(#preview-filters,#market-sort-sheet) :is(.preview-filter-types,.sheet-options)>button{padding:10px;border:1px solid var(--surface-line);border-radius:var(--control-choice-radius);font-family:inherit;font-size:1rem;font-weight:700;line-height:1.6;color:var(--surface-ink);background:var(--surface-glass);box-shadow:var(--surface-glass-shadow)}
body.guest-home :is(#preview-filters,#market-sort-sheet) :is(.preview-filter-types,.sheet-options)>button[aria-pressed=true]{border-color:var(--control-choice-ink);background:var(--control-choice-selected);color:var(--control-choice-ink)}
/* Date labels grow and wrap at enlarged text sizes instead of widening the rail. */
body.guest-home #preview-filters .preview-filter-dates{flex-wrap:wrap;min-width:0}
body.guest-home #preview-filters .preview-filter-dates>button{flex:1 1 5rem;min-width:0;height:auto;min-height:44px;white-space:normal}
/* Keep the current step action reachable while the long step scrolls beneath it. */
body #modal .guided-form .guided-controls{position:sticky;bottom:-14px;z-index:2;background:#f8fafc;padding-bottom:14px}

/* Clear reading surfaces. Scoped away from posting/photo editors and their tokens.
   Paint only: no dimensions, spacing, font metrics or motion overrides. */
body dialog.browse-account[open],body dialog#market-sort-sheet[open],body.guest-home #preview-filters{background:#fff;border-color:#c9dbee;box-shadow:0 8px 24px #132b4514;backdrop-filter:none;-webkit-backdrop-filter:none;color:var(--surface-ink)}
body dialog.browse-account::backdrop,body #market-sort-sheet::backdrop{background:#132b4544;backdrop-filter:none;-webkit-backdrop-filter:none}
body .browse-account button,body #market-sort-sheet .sheet-close{background:#f5f8fb;border-color:#c9dbee;box-shadow:none;color:var(--surface-ink)}
body.guest-home :is(#market-sort-sheet,#preview-filters) :is(.sheet-options,.preview-filter-types,.preview-filter-dates)>button{background:#fff;border-color:#c9dbee;box-shadow:none;color:var(--surface-ink)}
body.guest-home :is(#market-sort-sheet,#preview-filters) :is(.sheet-options,.preview-filter-types,.preview-filter-dates)>button[aria-pressed=true]{background:var(--control-choice-selected);border-color:var(--control-choice-ink);color:var(--control-choice-ink)}
body.guest-home #preview-filters :is(input,select){background:#fff;color:var(--surface-ink)}
body:not(.guest-home) :is(.topbar,body>header){background:#fff;backdrop-filter:none;-webkit-backdrop-filter:none;box-shadow:0 1px 4px #132b4508}
body:not(.guest-home) :is(.panel,.account-panel,.profile-section,.request-card,.card,.record,.quote-card,.load-card,.empty,.filterbar,.document,.account-stat,.account-dashboard-links a):not(dialog *){background:#fff;border-color:var(--surface-line);box-shadow:0 1px 4px #132b4508}
body:not(.guest-home) footer{background:#fff;backdrop-filter:none;-webkit-backdrop-filter:none}

/* The moved notification label is ordinary menu text, not a count badge. */
body .browse-account .notification-bell .header-label{position:static;background:none;color:inherit;border-radius:0;min-width:0;font:inherit}

