/* Approved light workspace and order design; original client scripts and data contracts remain. */
/* Cabinet presentation. Original markup, IDs, scripts and APIs are retained. */
html:root[data-theme=light] body.portal-page.cw-active{--sto-background:#f2f2f2;--sto-surface:#fff;--sto-muted:#f2f2f2;--sto-border:#d9d9d9;--sto-border-control:#8a8c90;--sto-text-primary:#14161a;--sto-text-secondary:#5d6065;--sto-accent:#b81810;--sto-accent-hover:#94140e;--sto-focus:#b81810;background:#f2f2f2}
html:root[data-theme=light] body.portal-page.cw-active .cw-shell{grid-template-columns:216px minmax(0,1fr) 268px;gap:16px;padding:16px;align-items:start}
html:root[data-theme=light] body.portal-page.cw-active .cw-sidebar{background:transparent;border:0;border-radius:0;padding:10px 0 12px;overflow:visible;min-height:calc(100dvh - 32px);top:16px}
html:root[data-theme=light] body.portal-page.cw-active .cw-brand{padding:0 12px 20px;margin:0 0 20px;border-bottom:1px solid #d9d9d9;grid-template-columns:52px 1fr;gap:10px}
html:root[data-theme=light] body.portal-page.cw-active .cw-brand img{width:52px;height:58px}
html:root[data-theme=light] body.portal-page.cw-active .cw-brand strong{font-size:14px;line-height:1.45;font-weight:650}
html:root[data-theme=light] body.portal-page.cw-active .cw-shell .cw-navigation nav{gap:4px}
html:root[data-theme=light] body.portal-page.cw-active .cw-shell .cw-navigation button{position:relative;justify-content:flex-start;text-align:left;background:transparent;border:1px solid transparent;border-radius:8px;box-shadow:none;padding:13px 14px;color:#5d6065;line-height:1.45;font-weight:550;font-size:13px}
html:root[data-theme=light] body.portal-page.cw-active .cw-shell .cw-navigation button:hover{background:#e8e8e8;color:#14161a}
html:root[data-theme=light] body.portal-page.cw-active .cw-shell .cw-navigation button[aria-current=page]{background:#fff;border-color:#d9d9d9;border-right-color:#fff;border-radius:9px 0 0 9px;color:#b81810;font-weight:700;width:calc(100% + 17px);z-index:1;box-shadow:inset 3px 0 #b81810}
html:root[data-theme=light] body.portal-page.cw-active .cw-account{padding:24px 12px 0;gap:10px}
html:root[data-theme=light] body.portal-page.cw-active .cw-account>strong{font-size:13px;line-height:1.5}
html:root[data-theme=light] body.portal-page.cw-active .cw-main{border:1px solid #d9d9d9;border-radius:14px;background:#fff;padding:26px 28px;height:calc(100dvh - 32px);scrollbar-gutter:stable;box-sizing:border-box;scroll-padding-top:20px}
html:root[data-theme=light] body.portal-page.cw-active .cw-main>section{gap:20px}
html:root[data-theme=light] body.portal-page.cw-active .cw-toolbar{padding:0 0 22px;margin:0 0 22px;gap:16px;align-items:center;border-bottom:1px solid #d9d9d9}
html:root[data-theme=light] body.portal-page.cw-active .cw-toolbar h1{font-size:clamp(27px,2.6vw,36px);line-height:1.15;letter-spacing:-.025em;margin:5px 0 0;font-weight:650}
html:root[data-theme=light] body.portal-page.cw-active .cw-toolbar .eyebrow{background:none;padding:0;color:#5d6065;font-size:10px;letter-spacing:.1em}
html:root[data-theme=light] body.portal-page.cw-active .cw-toolbar .cw-actions{width:auto}
html:root[data-theme=light] body.portal-page.cw-active .cw-shell :is(button,.cw-button,.primary-btn,.ghost-btn,.secondary-btn){min-height:44px;padding:11px 16px;border:1px solid #8a8c90;border-radius:8px;background:#fff;color:#14161a;box-shadow:none;font-size:13px;font-weight:600;line-height:1.45;transform:none;transition:background-color 140ms,border-color 140ms,box-shadow 140ms;white-space:normal}
html:root[data-theme=light] body.portal-page.cw-active .cw-shell :is(button,.cw-button,.primary-btn,.ghost-btn,.secondary-btn)::after{content:none!important;display:none!important}
html:root[data-theme=light] body.portal-page.cw-active .cw-shell :is(button,.cw-button):hover{background:#f2f2f2;border-color:#5d6065;transform:none}
html:root[data-theme=light] body.portal-page.cw-active .cw-shell .primary-btn{background:#b81810;color:#fff;border-color:#b81810}
html:root[data-theme=light] body.portal-page.cw-active .cw-shell .primary-btn:hover{background:#94140e;border-color:#94140e;color:#fff;box-shadow:0 3px 9px #b818101a}
html:root[data-theme=light] body.portal-page.cw-active .cw-shell :is(button,.cw-button):active{box-shadow:inset 0 1px 3px #14161a25}
html:root[data-theme=light] body.portal-page.cw-active .cw-shell :is(button,input,select,textarea,a,summary):focus-visible{outline:3px solid #b81810;outline-offset:3px}
html:root[data-theme=light] body.portal-page.cw-active .cw-shell button:disabled{opacity:.5;box-shadow:none;cursor:not-allowed}
html:root[data-theme=light] body.portal-page.cw-active .cw-shell h2{font-size:20px;line-height:1.35;letter-spacing:-.015em;font-weight:650;margin:0 0 12px}
html:root[data-theme=light] body.portal-page.cw-active .cw-shell h3{font-size:17px;line-height:1.4;font-weight:650;margin:0 0 10px}
html:root[data-theme=light] body.portal-page.cw-active .cw-shell p{font-size:14px;line-height:1.7;margin:0 0 14px}
html:root[data-theme=light] body.portal-page.cw-active .cw-shell .card-note{font-size:12px;line-height:1.65;color:#5d6065}
html:root[data-theme=light] body.portal-page.cw-active .cw-shell :is(.cw-card,.cw-metric,.cw-vehicle,.cw-notification){border:1px solid #d9d9d9;border-radius:10px;background:#fff;padding:20px;box-shadow:none}
html:root[data-theme=light] body.portal-page.cw-active .cw-shell .cw-section-heading h2{margin:0;font-size:21px}
html:root[data-theme=light] body.portal-page.cw-active #clientMembershipOverview{background:#f2f2f2;border:0;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 18px}
html:root[data-theme=light] body.portal-page.cw-active #clientMembershipOverview p{margin:0;font-size:12px;color:#5d6065}
html:root[data-theme=light] body.portal-page.cw-active #openingOverview{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 18px;border:0;border-left:3px solid #b81810;border-radius:0;background:#fff;padding:2px 0 2px 18px}
html:root[data-theme=light] body.portal-page.cw-active #openingOverview h2{font-size:17px;margin:0}
html:root[data-theme=light] body.portal-page.cw-active #openingOverview p{grid-column:1;font-size:13px;line-height:1.65;margin:0}
html:root[data-theme=light] body.portal-page.cw-active #openingOverview button{grid-column:2;grid-row:1/3;align-self:center;background:#fff;border-color:#8a8c90;color:#14161a}
html:root[data-theme=light] body.portal-page.cw-active .cw-metrics{gap:0;border-block:1px solid #d9d9d9;padding:20px 0;grid-template-columns:repeat(4,minmax(0,1fr))}
html:root[data-theme=light] body.portal-page.cw-active .cw-shell .cw-metric{border:0;border-right:1px solid #d9d9d9;border-radius:0;background:none;padding:0 16px}
html:root[data-theme=light] body.portal-page.cw-active .cw-metric:first-child{padding-left:0}
html:root[data-theme=light] body.portal-page.cw-active .cw-metric:last-child{border-right:0;padding-right:0}
html:root[data-theme=light] body.portal-page.cw-active .cw-metric span{min-height:34px;font-size:11px;line-height:1.45;color:#5d6065;display:block}
html:root[data-theme=light] body.portal-page.cw-active .cw-metric strong{font-size:29px;line-height:1.2;font-weight:550;letter-spacing:-.03em;margin-top:10px;display:block}
html:root[data-theme=light] body.portal-page.cw-active #cwOverviewBonuses{display:grid;grid-template-columns:1fr auto;gap:6px 14px;background:#f2f2f2;border:0;padding:18px}
html:root[data-theme=light] body.portal-page.cw-active #cwOverviewBonuses h2{font-size:12px;color:#5d6065;margin:0}
html:root[data-theme=light] body.portal-page.cw-active #cwOverviewBonuses>strong{font-size:22px;font-weight:600;letter-spacing:-.02em;grid-column:1}
html:root[data-theme=light] body.portal-page.cw-active #cwOverviewBonuses>button{grid-column:2;grid-row:1/3;align-self:center}
/* Card Folder: raised title tab and continuous body; no clipping of text or focus. */
html:root[data-theme=light] body.portal-page.cw-active .cw-shell :is(#cwActiveRepairs>.cw-card,.cw-vehicle){display:flex;flex-direction:column;background:none;border:0;border-radius:0;padding:0;margin:0}
html:root[data-theme=light] body.portal-page.cw-active :is(#cwActiveRepairs>.cw-card,.cw-vehicle)>h3{z-index:1;align-self:flex-start;position:relative;background:#f2f2f2;border:1px solid #d9d9d9;border-bottom:1px solid #f2f2f2;border-radius:12px 12px 0 0;padding:13px 20px;margin:0 0 -1px;max-width:calc(100% - 24px);font-size:16px}
html:root[data-theme=light] body.portal-page.cw-active :is(#cwActiveRepairs>.cw-card,.cw-vehicle)>p{background:#f2f2f2;border-inline:1px solid #d9d9d9;padding:0 20px 12px;margin:0;max-width:none}
html:root[data-theme=light] body.portal-page.cw-active :is(#cwActiveRepairs>.cw-card,.cw-vehicle)>h3+p{border-top:1px solid #d9d9d9;border-top-right-radius:12px;padding-top:20px}
html:root[data-theme=light] body.portal-page.cw-active :is(#cwActiveRepairs>.cw-card,.cw-vehicle)>.cw-actions{background:#f2f2f2;border:1px solid #d9d9d9;border-top:0;border-radius:0 0 12px 12px;padding:6px 20px 20px;gap:10px;margin:0}
html:root[data-theme=light] body.portal-page.cw-active .cw-vehicles{gap:24px}
/* Step Path: original eight stages in the original reading order. */
html:root[data-theme=light] body.portal-page.cw-active .cw-progress{list-style:none;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px 14px;margin:0;background:#f2f2f2;border-inline:1px solid #d9d9d9;padding:8px 20px 18px}
html:root[data-theme=light] body.portal-page.cw-active .cw-progress li{position:relative;padding:30px 0 3px;border:0;background:none!important;border-radius:0;min-width:0;font-size:10px;line-height:1.4;color:#5d6065;overflow-wrap:anywhere}
html:root[data-theme=light] body.portal-page.cw-active .cw-progress li::before{content:'';width:10px;height:10px;border:1.5px solid #8a8c90;border-radius:50%;position:absolute;top:6px;left:0;background:#f2f2f2;z-index:1}
html:root[data-theme=light] body.portal-page.cw-active .cw-progress li:not(:nth-child(4n))::after{content:'';position:absolute;left:12px;right:-14px;top:3px;height:14px;border-top:1px dashed #8a8c90;border-radius:50% 50% 0 0}
html:root[data-theme=light] body.portal-page.cw-active .cw-progress li[data-done=true]::before{background:#5d6065;border-color:#5d6065}
html:root[data-theme=light] body.portal-page.cw-active .cw-progress li[aria-current=step]{color:#b81810;font-weight:700}
html:root[data-theme=light] body.portal-page.cw-active .cw-progress li[aria-current=step]::before{background:#b81810;border-color:#b81810;box-shadow:0 0 0 4px #b8181014}
html:root[data-theme=light] body.portal-page.cw-active .cw-context{top:16px;height:calc(100dvh - 32px);max-height:calc(100dvh - 32px);background:transparent;border:0;border-radius:0;padding:10px 0;gap:16px}
html:root[data-theme=light] body.portal-page.cw-active .cw-context>.cw-section-heading h2{font-size:17px;letter-spacing:-.02em}
html:root[data-theme=light] body.portal-page.cw-active .cw-count{background:#fff;color:#b81810;border:1px solid #d9d9d9;min-width:28px;min-height:28px;display:grid;place-items:center;border-radius:50%;box-sizing:border-box}
html:root[data-theme=light] body.portal-page.cw-active .cw-shell .cw-notification{padding:18px;border:0;border-top:1px solid #d9d9d9;border-radius:0;background:none}
html:root[data-theme=light] body.portal-page.cw-active .cw-notification[data-urgent=true]{border:1px solid #ddb6b3;border-radius:10px;background:#fff}
html:root[data-theme=light] body.portal-page.cw-active .cw-notification strong{font-size:13px;line-height:1.5;margin-bottom:8px}
html:root[data-theme=light] body.portal-page.cw-active .cw-notification p{font-size:12px;line-height:1.65}
html:root[data-theme=light] body.portal-page.cw-active .cw-context>.cw-card{padding:18px;background:#fff;border:1px solid #d9d9d9}
html:root[data-theme=light] body.portal-page.cw-active .cw-context>.cw-card h2{font-size:16px}
html:root[data-theme=light] body.portal-page.cw-active .cw-shell :is(input:not([type=checkbox]):not([type=radio]),select,textarea){border:1px solid #8a8c90;background:#fff;min-height:46px;border-radius:7px;padding:10px 12px;box-shadow:none}
html:root[data-theme=light] body.portal-page.cw-active .cw-shell label{font-size:12px;line-height:1.5;gap:8px;color:#5d6065}
html:root[data-theme=light] body.portal-page.cw-active .cw-shell :is(input,textarea)[aria-invalid=true]{border-color:#b81810;background:#fff8f7}
html:root[data-theme=light] body.portal-page.cw-active .cw-shell .notice.error{border-left:3px solid #b81810;padding:12px;background:#fff5f4;color:#8e1b16}
html:root[data-theme=light] body.portal-page.cw-active .cw-shell .notice:empty{display:none}
html:root[data-theme=light] body.portal-page.cw-active .cw-shell .order-card{border:1px solid #d9d9d9;border-radius:12px;box-shadow:none;padding:20px;background:#fff}
html:root[data-theme=light] body.portal-page.cw-active .cw-shell .order-card :is(section,.order-summary,.order-details){border-color:#d9d9d9;box-shadow:none}
html:root[data-theme=light] body.portal-page.cw-active .cw-dialog{border:1px solid #d9d9d9;background:#fff;color:#14161a;border-radius:14px;padding:28px;max-width:min(700px,calc(100vw - 32px));max-height:calc(100dvh - 40px)}
html:root[data-theme=light] body.portal-page.cw-active .cw-dialog::backdrop{background:#14161a55}
html:root[data-theme=light] body.portal-page.cw-active .cw-stat-bar{background:#b81810;border-radius:3px 3px 0 0;opacity:.85}
html:root[data-theme=light] body.portal-page.cw-active .cw-statistics{border-top:1px solid #d9d9d9;padding-top:20px}
@media(min-width:1500px){html:root[data-theme=light] body.portal-page.cw-active .cw-shell{grid-template-columns:232px minmax(0,1fr) 292px;gap:20px;padding:20px;max-width:1900px;margin:0 auto}html:root[data-theme=light] body.portal-page.cw-active .cw-shell .cw-navigation button[aria-current=page]{width:calc(100% + 21px)}}
@media(max-width:1200px){html:root[data-theme=light] body.portal-page.cw-active .cw-shell{grid-template-columns:190px minmax(0,1fr) 240px;gap:12px;padding:12px}html:root[data-theme=light] body.portal-page.cw-active .cw-main{padding:22px;height:calc(100dvh - 24px)}html:root[data-theme=light] body.portal-page.cw-active .cw-shell .cw-navigation button[aria-current=page]{width:calc(100% + 13px)}html:root[data-theme=light] body.portal-page.cw-active #openingOverview{grid-template-columns:1fr}html:root[data-theme=light] body.portal-page.cw-active #openingOverview button{grid-column:1;grid-row:auto;justify-self:start;margin-top:4px}}
@media(max-width:1100px){html:root[data-theme=light] body.portal-page.cw-active .cw-shell{grid-template-columns:180px minmax(0,1fr)}html:root[data-theme=light] body.portal-page.cw-active .cw-main{height:auto;overflow:visible;min-height:0}html:root[data-theme=light] body.portal-page.cw-active .cw-context{height:auto;max-height:none;grid-column:2;position:static;padding:16px 0}html:root[data-theme=light] body.portal-page.cw-active .cw-sidebar{max-height:calc(100dvh - 24px);overflow:auto}html:root[data-theme=light] body.portal-page.cw-active .cw-shell .cw-navigation button[aria-current=page]{width:100%;border-radius:8px;border-color:#d9d9d9}html:root[data-theme=light] body.portal-page.cw-active .cw-metric strong{font-size:24px}}
@media(max-width:700px){
 html:root[data-theme=light] body.portal-page.cw-active .cw-shell{display:block;padding:12px}
 html:root[data-theme=light] body.portal-page.cw-active .cw-sidebar{position:static;min-height:0;max-height:none;overflow:visible;padding:0;margin-bottom:16px}
 html:root[data-theme=light] body.portal-page.cw-active .cw-brand{display:flex;padding:0 0 12px;margin:0 0 10px;gap:12px}
 html:root[data-theme=light] body.portal-page.cw-active .cw-brand img{width:52px;height:52px}
 html:root[data-theme=light] body.portal-page.cw-active .cw-shell .cw-navigation summary{display:list-item;padding:12px 10px;background:#fff;border:1px solid #d9d9d9;border-radius:8px;min-height:46px}
 html:root[data-theme=light] body.portal-page.cw-active .cw-shell .cw-navigation nav{gap:6px;margin-top:8px;grid-template-columns:1fr 1fr}
 html:root[data-theme=light] body.portal-page.cw-active .cw-shell .cw-navigation button{font-size:12px;padding:11px 10px}
 html:root[data-theme=light] body.portal-page.cw-active .cw-shell .cw-navigation button[aria-current=page]{width:100%;border:1px solid #d9d9d9;border-radius:8px}
 html:root[data-theme=light] body.portal-page.cw-active .cw-account{padding:14px 0 0;display:flex;gap:8px}
 html:root[data-theme=light] body.portal-page.cw-active .cw-account .cw-button{font-size:12px;padding:10px}
 html:root[data-theme=light] body.portal-page.cw-active .cw-main{padding:22px 16px;border-radius:12px;height:auto}
 html:root[data-theme=light] body.portal-page.cw-active .cw-toolbar{gap:16px;padding-bottom:20px;align-items:flex-start}
 html:root[data-theme=light] body.portal-page.cw-active .cw-toolbar h1{font-size:30px}
 html:root[data-theme=light] body.portal-page.cw-active .cw-toolbar .cw-actions{display:block;width:100%}
 html:root[data-theme=light] body.portal-page.cw-active .cw-toolbar .cw-actions>button{width:100%;font-size:13px}
 html:root[data-theme=light] body.portal-page.cw-active #clientMembershipOverview{flex-wrap:wrap;padding:16px}
 html:root[data-theme=light] body.portal-page.cw-active #openingOverview{grid-template-columns:1fr;padding-left:14px}
 html:root[data-theme=light] body.portal-page.cw-active .cw-metrics{grid-template-columns:1fr 1fr;gap:20px 0;padding:20px 0}
 html:root[data-theme=light] body.portal-page.cw-active .cw-metric:nth-child(odd){padding-left:0}
 html:root[data-theme=light] body.portal-page.cw-active .cw-metric:nth-child(even){border-right:0;padding-right:0}
 html:root[data-theme=light] body.portal-page.cw-active .cw-metric:last-child{grid-column:auto}
 html:root[data-theme=light] body.portal-page.cw-active .cw-metric strong{font-size:26px}
 html:root[data-theme=light] body.portal-page.cw-active #cwOverviewBonuses{grid-template-columns:1fr;padding:16px;gap:10px}
 html:root[data-theme=light] body.portal-page.cw-active #cwOverviewBonuses>button{grid-column:1;grid-row:auto;justify-self:start}
 html:root[data-theme=light] body.portal-page.cw-active .cw-progress{grid-template-columns:1fr 1fr;padding-inline:16px}
 html:root[data-theme=light] body.portal-page.cw-active .cw-progress li::after{display:none}
 html:root[data-theme=light] body.portal-page.cw-active .cw-progress li:nth-child(odd)::after{display:block;right:-14px}
 html:root[data-theme=light] body.portal-page.cw-active :is(#cwActiveRepairs>.cw-card,.cw-vehicle)>h3{padding:12px 16px;font-size:15px}
 html:root[data-theme=light] body.portal-page.cw-active :is(#cwActiveRepairs>.cw-card,.cw-vehicle)>p{padding-inline:16px}
 html:root[data-theme=light] body.portal-page.cw-active :is(#cwActiveRepairs>.cw-card,.cw-vehicle)>.cw-actions{padding:6px 16px 16px}
 html:root[data-theme=light] body.portal-page.cw-active .cw-shell .cw-card{padding:18px}
 html:root[data-theme=light] body.portal-page.cw-active .cw-shell #cwActiveRepairs>.cw-card{padding:0}
 html:root[data-theme=light] body.portal-page.cw-active .cw-context{padding:20px 0 0}
 html:root[data-theme=light] body.portal-page.cw-active .cw-shell .cw-section-heading h2{font-size:19px}
 html:root[data-theme=light] body.portal-page.cw-active .cw-dialog{padding:18px;max-width:calc(100vw - 24px)}
}
@media(prefers-reduced-motion:reduce){html:root[data-theme=light] body.portal-page.cw-active .cw-shell *,html:root[data-theme=light] body.portal-page.cw-active .cw-shell *::before,html:root[data-theme=light] body.portal-page.cw-active .cw-shell *::after{transition:none!important;animation:none!important}}

html:root[data-theme=light] body.portal-page.cw-active .cw-vehicle>h3{min-height:76px;display:flex;align-items:center;max-width:calc(100% - 48px);box-sizing:border-box}

html:root[data-theme=light] body.portal-page.cw-active .cw-navigation summary{list-style:none}
html:root[data-theme=light] body.portal-page.cw-active .cw-navigation summary::-webkit-details-marker{display:none}
html:root[data-theme=light] body.portal-page.cw-active .cw-navigation summary::after{content:"+";float:right;font-size:18px;font-weight:400}
html:root[data-theme=light] body.portal-page.cw-active .cw-navigation[open] summary::after{content:"−"}
html:root[data-theme=light] body.portal-page.cw-active :is(button,.cw-button) [data-sto-icon=retry],html:root[data-theme=light] body.portal-page.cw-active :is(button,.cw-button) [data-sto-icon=history]{display:none}
html:root[data-theme=light] body.portal-page.cw-active .account-return-link{position:static!important;display:inline-flex;max-width:240px;margin:16px;box-shadow:none;border:1px solid #d9d9d9;background:#fff;border-radius:8px}
html:root[data-theme=light] body.portal-page.cw-active .client-callback-dialog{background:#fff;color:#14161a;border:1px solid #d9d9d9;border-radius:14px;box-shadow:none}
html:root[data-theme=light] body.portal-page.cw-active .client-callback-dialog :is(input:not([type=checkbox]),textarea){background:#fff;border-color:#8a8c90;border-radius:7px}
html:root[data-theme=light] body.portal-page.cw-active .client-callback-dialog button{border-radius:8px;box-shadow:none;min-height:44px}
html:root[data-theme=light] body.portal-page.cw-active .client-callback-dialog button::after{content:none!important}
html:root[data-theme=light] body.portal-page.cw-active :is(button,a) [data-sto-icon=download]{display:none}

/* Order presentation adaptation: Card Folder, connected tabs, Step Path.
   No product markup, text, handlers or API commands are changed. */
html:root[data-theme=light] body.portal-page.cw-active .cw-shell #cwOrdersWorkspace .history-card{padding:0;background:transparent;border:0;border-radius:0;box-shadow:none;overflow:visible}
html:root[data-theme=light] body.portal-page.cw-active .cw-shell .order-card{padding:0;gap:0;border:1px solid var(--sto-border);border-radius:14px;background:var(--sto-surface);box-shadow:none;transform:none;overflow:visible}
html:root[data-theme=light] body.portal-page.cw-active .cw-shell .order-card .order-top{display:grid;gap:16px;padding:24px 20px;margin:0;border-bottom:1px solid var(--sto-border)}
html:root[data-theme=light] body.portal-page.cw-active .cw-shell .order-card .order-date{display:block;font-size:12px;line-height:1.5;letter-spacing:.02em;font-weight:500;color:var(--sto-text-secondary);margin:0 0 10px}
html:root[data-theme=light] body.portal-page.cw-active .cw-shell .order-card .order-title{font-size:26px;line-height:1.15;letter-spacing:-.025em;font-weight:650;margin:0 0 9px;color:var(--sto-text-primary)}
html:root[data-theme=light] body.portal-page.cw-active .cw-shell .order-card .order-subtitle{font-size:14px;line-height:1.55;color:var(--sto-text-secondary)}
html:root[data-theme=light] body.portal-page.cw-active .cw-shell .order-card .order-status{justify-self:start;padding:8px 12px;border:1px solid var(--sto-border);border-radius:6px;font-size:10px;line-height:1.5;letter-spacing:.035em;font-weight:700}
html:root[data-theme=light] body.portal-page.cw-active .cw-shell .order-card .order-status.open{background:#fcf2f1;color:var(--sto-accent);border-color:#e9c2bf}
/* The original disclosure remains a real button and joins its content frame. */
html:root[data-theme=light] body.portal-page.cw-active .cw-shell .order-card .order-details-toggle{margin:0;padding:20px 16px}
html:root[data-theme=light] body.portal-page.cw-active .cw-shell .order-card [data-order-details-toggle]{font-size:13px;font-weight:600;min-height:46px;padding:12px 16px;background:var(--sto-surface);border:1px solid var(--sto-border-control);border-radius:8px}
html:root[data-theme=light] body.portal-page.cw-active .cw-shell .order-card [data-order-details-toggle][aria-expanded=true]{position:relative;z-index:1;background:var(--sto-muted);border-color:var(--sto-border);border-bottom:1px solid var(--sto-muted);border-radius:10px 10px 0 0;margin-bottom:-1px;color:var(--sto-text-primary)}
html:root[data-theme=light] body.portal-page.cw-active .cw-shell .order-card .order-details-block{margin:0;padding:20px 14px;border:1px solid var(--sto-border);border-radius:0 12px 12px 12px;background:var(--sto-muted);gap:24px;overflow:visible}
html:root[data-theme=light] body.portal-page.cw-active .cw-shell .order-card [data-order-details-content]{display:grid;gap:24px;min-width:0}
html:root[data-theme=light] body.portal-page.cw-active .cw-shell .order-card .repair-block{min-width:0;margin:0;box-shadow:none}
html:root[data-theme=light] body.portal-page.cw-active .cw-shell .order-card .repair-block h4{font-size:19px;line-height:1.3;letter-spacing:-.02em;font-weight:650;color:var(--sto-text-primary);margin:0 0 16px}
html:root[data-theme=light] body.portal-page.cw-active .cw-shell .order-card .repair-block p{font-size:14px;line-height:1.65;color:var(--sto-text-secondary);margin:0}
/* Raised folder title and a continuous, unmasked body. */
html:root[data-theme=light] body.portal-page.cw-active .cw-shell .order-card :is(.repair-estimate,.repair-block-pending){display:flex;flex-direction:column;padding:0;background:transparent;border:0;border-radius:0}
html:root[data-theme=light] body.portal-page.cw-active .cw-shell .order-card :is(.repair-estimate,.repair-block-pending)>h4{position:relative;z-index:1;align-self:flex-start;max-width:calc(100% - 24px);padding:14px 16px;margin:0 0 -1px;background:var(--sto-surface);border:1px solid var(--sto-border);border-bottom:1px solid var(--sto-surface);border-radius:12px 12px 0 0;font-size:20px}
html:root[data-theme=light] body.portal-page.cw-active .cw-shell .order-card .repair-estimate>.order-finance-summary{display:grid;grid-template-columns:1fr;gap:0;padding:12px 18px 0;border:1px solid var(--sto-border);border-bottom:0;border-radius:0 12px 0 0;background:var(--sto-surface)}
html:root[data-theme=light] body.portal-page.cw-active .cw-shell .order-card .repair-estimate>h4{font-size:clamp(16px,4.8vw,20px);overflow-wrap:normal;word-break:normal}
html:root[data-theme=light] body.portal-page.cw-active .cw-shell .order-card .repair-estimate>.order-finance-summary>div{display:grid;grid-template-columns:1fr auto;align-items:start;gap:10px;padding:16px 0;background:none;border:0;border-bottom:1px solid var(--sto-border);border-radius:0}
html:root[data-theme=light] body.portal-page.cw-active .cw-shell .order-card .repair-estimate>.order-finance-summary dt{font-size:12px;line-height:1.5;letter-spacing:0;text-transform:none;font-weight:500;color:var(--sto-text-secondary)}
html:root[data-theme=light] body.portal-page.cw-active .cw-shell .order-card .repair-estimate>.order-finance-summary dd{margin:0;font-size:17px;line-height:1.3;font-weight:600;letter-spacing:-.02em;color:var(--sto-text-primary);font-variant-numeric:tabular-nums;white-space:normal}
html:root[data-theme=light] body.portal-page.cw-active .cw-shell .order-card .repair-estimate>.order-finance-summary>div:nth-child(2){grid-template-columns:1fr;gap:12px;padding-block:22px}
html:root[data-theme=light] body.portal-page.cw-active .cw-shell .order-card .repair-estimate>.order-finance-summary>div:nth-child(2) dd{font-size:38px;line-height:1.1;font-weight:550;color:var(--sto-accent);letter-spacing:-.04em}
html:root[data-theme=light] body.portal-page.cw-active .cw-shell .order-card .repair-estimate>.order-finance-summary>div:last-child{grid-template-columns:1fr;gap:8px}
html:root[data-theme=light] body.portal-page.cw-active .cw-shell .order-card .repair-estimate>.order-finance-summary>div:last-child dd{font-size:13px;line-height:1.5;font-weight:600;letter-spacing:0}
html:root[data-theme=light] body.portal-page.cw-active .cw-shell .order-card .repair-estimate>p{padding:18px;border:1px solid var(--sto-border);border-top:0;border-radius:0 0 12px 12px;background:var(--sto-surface);font-size:12px;line-height:1.65}
/* Step Path: chronology stays in the existing order. */
html:root[data-theme=light] body.portal-page.cw-active .cw-shell .order-card .repair-activity{padding:22px 18px;border:0;border-radius:0;background:transparent}
html:root[data-theme=light] body.portal-page.cw-active .cw-shell .order-card .repair-activity-list{margin:20px 0 0;gap:0;padding:0}
html:root[data-theme=light] body.portal-page.cw-active .cw-shell .order-card .repair-activity-list li{display:grid;gap:7px;padding:0 0 28px 34px;position:relative}
html:root[data-theme=light] body.portal-page.cw-active .cw-shell .order-card .repair-activity-list li::before{content:'';position:absolute;left:0;top:5px;width:10px;height:10px;border:1.5px solid var(--sto-text-secondary);background:var(--sto-muted);box-shadow:none;border-radius:50%;z-index:1}
html:root[data-theme=light] body.portal-page.cw-active .cw-shell .order-card .repair-activity-list li:first-child::before{background:var(--sto-accent);border-color:var(--sto-accent);box-shadow:0 0 0 4px #b8181015}
html:root[data-theme=light] body.portal-page.cw-active .cw-shell .order-card .repair-activity-list li::after{content:'';position:absolute;left:4px;top:23px;bottom:2px;width:15px;border:0;border-left:1px dashed var(--sto-border-control);border-radius:50%;background:none}
html:root[data-theme=light] body.portal-page.cw-active .cw-shell .order-card .repair-activity-list li:last-child::after{display:none}
html:root[data-theme=light] body.portal-page.cw-active .cw-shell .order-card .repair-activity-list time{font-size:11px;line-height:1.5;color:var(--sto-text-secondary)}
html:root[data-theme=light] body.portal-page.cw-active .cw-shell .order-card .repair-activity-list strong{font-size:16px;line-height:1.4;letter-spacing:-.01em;font-weight:600;color:var(--sto-text-primary)}
html:root[data-theme=light] body.portal-page.cw-active .cw-shell .order-card .repair-activity-list span{font-size:13px;line-height:1.6;color:var(--sto-text-secondary)}
html:root[data-theme=light] body.portal-page.cw-active .cw-shell .order-card .repair-activity>p{font-size:12px;border-top:1px solid var(--sto-border);padding-top:18px}
/* Pending work: price and decisions have their own clear hierarchy. */
html:root[data-theme=light] body.portal-page.cw-active .cw-shell .order-card .repair-block-pending>h4{box-shadow:inset 0 3px var(--sto-accent)}
html:root[data-theme=light] body.portal-page.cw-active .cw-shell .order-card .repair-block-pending>p{padding:20px 16px 16px;border:1px solid var(--sto-border);border-bottom:0;border-radius:0 12px 0 0;background:var(--sto-surface);font-size:14px;line-height:1.65}
html:root[data-theme=light] body.portal-page.cw-active .cw-shell .order-card .repair-pending-list{display:grid;gap:14px;margin:0;padding:0 12px 16px;background:var(--sto-surface);border:1px solid var(--sto-border);border-top:0;border-radius:0 0 12px 12px}
html:root[data-theme=light] body.portal-page.cw-active .cw-shell .order-card .repair-pending-item{padding:20px 16px;background:var(--sto-muted);border:1px solid var(--sto-border);border-radius:9px;min-width:0}
html:root[data-theme=light] body.portal-page.cw-active .cw-shell .order-card .repair-pending-head{display:grid;grid-template-columns:1fr;gap:18px;min-width:0}
html:root[data-theme=light] body.portal-page.cw-active .cw-shell .order-card .repair-pending-head strong{font-size:18px;line-height:1.4;font-weight:600;letter-spacing:-.015em;color:var(--sto-text-primary)}
html:root[data-theme=light] body.portal-page.cw-active .cw-shell .order-card .repair-pending-head em{font-style:normal;font-size:34px;line-height:1.15;font-weight:550;letter-spacing:-.035em;color:var(--sto-text-primary);font-variant-numeric:tabular-nums}
html:root[data-theme=light] body.portal-page.cw-active .cw-shell .order-card .repair-pending-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:22px;padding-top:18px;border-top:1px solid var(--sto-border)}
html:root[data-theme=light] body.portal-page.cw-active .cw-shell .order-card .repair-pending-actions button{min-height:52px;min-width:0;padding:12px 8px;border-radius:8px;font-size:13px;line-height:1.4;font-weight:650;letter-spacing:0;box-shadow:none;transform:none}
html:root[data-theme=light] body.portal-page.cw-active .cw-shell .order-card .repair-pending-actions .primary-btn{background:var(--sto-accent);color:var(--sto-on-accent,#fff);border:1px solid var(--sto-accent)}
html:root[data-theme=light] body.portal-page.cw-active .cw-shell .order-card .repair-pending-actions .primary-btn:hover{background:var(--sto-accent-hover);border-color:var(--sto-accent-hover);box-shadow:0 3px 9px #b8181020}
html:root[data-theme=light] body.portal-page.cw-active .cw-shell .order-card .repair-pending-actions .ghost-btn{background:var(--sto-surface);color:var(--sto-text-primary);border:1px solid var(--sto-border-control)}
html:root[data-theme=light] body.portal-page.cw-active .cw-shell .order-card .repair-pending-actions .ghost-btn:hover{background:var(--sto-muted);border-color:var(--sto-text-secondary)}
html:root[data-theme=light] body.portal-page.cw-active .cw-shell .order-card .repair-pending-actions button:active{box-shadow:inset 0 1px 3px #14161a25}
html:root[data-theme=light] body.portal-page.cw-active .cw-shell .order-card .repair-pending-actions button:disabled{opacity:.5;cursor:not-allowed;box-shadow:none}
html:root[data-theme=light] body.portal-page.cw-active .cw-shell .order-card :is(button,a,input,select,textarea):focus-visible{outline:3px solid var(--sto-focus);outline-offset:3px}
html:root[data-theme=light] body.portal-page.cw-active .cw-shell .order-card button::after{content:none!important;display:none!important}
/* Original secondary sections remain, with a single quiet contour each. */
html:root[data-theme=light] body.portal-page.cw-active .cw-shell .order-card .repair-block:not(.repair-estimate):not(.repair-block-pending):not(.repair-activity){padding:20px 18px;border:1px solid var(--sto-border);border-radius:12px;background:var(--sto-surface)}
html:root[data-theme=light] body.portal-page.cw-active .cw-shell .order-card .repair-bonus-preview dl{gap:0;margin:0 0 18px;grid-template-columns:1fr}
html:root[data-theme=light] body.portal-page.cw-active .cw-shell .order-card .repair-bonus-preview dl>div{display:grid;grid-template-columns:1fr auto;gap:16px;border:0;border-bottom:1px solid var(--sto-border);border-radius:0;background:none;padding:12px 0}
html:root[data-theme=light] body.portal-page.cw-active .cw-shell .order-card .repair-bonus-preview dt{font-size:11px;line-height:1.55;font-weight:500;letter-spacing:0;text-transform:none;color:var(--sto-text-secondary)}
html:root[data-theme=light] body.portal-page.cw-active .cw-shell .order-card .repair-bonus-preview dd{font-size:14px;line-height:1.5;margin:0;color:var(--sto-text-primary);font-weight:600}
html:root[data-theme=light] body.portal-page.cw-active .cw-shell .order-card .client-work-request-create{border-top:3px solid var(--sto-border-control)!important}
html:root[data-theme=light] body.portal-page.cw-active .cw-shell .order-card .client-work-request-create form{margin-top:22px;gap:18px}
html:root[data-theme=light] body.portal-page.cw-active .cw-shell .order-card .client-work-request-create :is(input,textarea,select){font-size:16px;line-height:1.5;min-height:48px;border-radius:7px;background:var(--sto-surface);color:var(--sto-text-primary);border-color:var(--sto-border-control)}
html:root[data-theme=light] body.portal-page.cw-active .cw-shell .order-card .order-footer{padding:20px;border-top:1px solid var(--sto-border);margin-top:0}
html:root[data-theme=light] body.portal-page.cw-active .cw-shell .order-card .review-panel{margin:0 20px 20px}
@media(max-width:360px){html:root[data-theme=light] body.portal-page.cw-active .cw-shell .order-card .order-details-toggle{padding:16px 10px}html:root[data-theme=light] body.portal-page.cw-active .cw-shell .order-card .order-details-block{padding:18px 10px}html:root[data-theme=light] body.portal-page.cw-active .cw-shell .order-card .repair-pending-actions{grid-template-columns:1fr}html:root[data-theme=light] body.portal-page.cw-active .cw-shell .order-card .repair-estimate>.order-finance-summary{padding-inline:14px}html:root[data-theme=light] body.portal-page.cw-active .cw-shell .order-card :is(.repair-estimate,.repair-block-pending)>h4{font-size:18px}}
@media(min-width:900px){html:root[data-theme=light] body.portal-page.cw-active .cw-shell .order-card .order-top{grid-template-columns:minmax(0,1fr) auto;align-items:start;padding:28px}html:root[data-theme=light] body.portal-page.cw-active .cw-shell .order-card .order-details-toggle{padding:24px}html:root[data-theme=light] body.portal-page.cw-active .cw-shell .order-card .order-details-block{padding:26px}html:root[data-theme=light] body.portal-page.cw-active .cw-shell .order-card .repair-pending-head{grid-template-columns:minmax(0,1fr) auto;align-items:start}html:root[data-theme=light] body.portal-page.cw-active .cw-shell .order-card .repair-pending-actions{max-width:400px}}
