/* Light palette mirrors existing component selectors; regenerate with work/build-theme.cjs. */
:root[data-theme="light"] 600;700;800&family=DM+Sans:wght@400;500;600;700&display=swap');
:root{color:#111111;background:#efedea;--bg:#efedea;--surface:#e6e3df;--surface2:#dfdbd5;--line:#cdc9c3;--text:#111111;--muted:#585248;--accent:#e9ff54;--ink:#e9e3fa}
:root[data-theme="light"] .review{background:#f8f6f4;color:#111111;border-bottom:1px solid #c9c6c1}
:root[data-theme="light"] .review-label{color:#514a40}
:root[data-theme="light"] .designs{border:1px solid #c6c2bb}
:root[data-theme="light"] .designs button{color:#514a40}
:root[data-theme="light"] .designs button.active{background:#111111;color:#ebe8e5}
:root[data-theme="light"] .demo-label{color:#3b362f}
:root[data-theme="light"] .demo-dot{color:#e9ff54}
:root[data-theme="light"] .brand{#111-space:nowrap}
:root[data-theme="light"] .segmented button.active{box-shadow:0 1px 4px #fafafa22}
:root[data-theme="light"] .btn{#111-space:nowrap}
:root[data-theme="light"] table{#111-space:nowrap}
:root[data-theme="light"] .status{background:#5a473014;color:#3b3124}
:root[data-theme="light"] .status.work{background:#e9ff5414;color:#d5e862}
:root[data-theme="light"] .status.question{background:#ffb36616;color:#ffc48a}
:root[data-theme="light"] .status.done{background:#61d9a317;color:#67deb2}
:root[data-theme="light"] .light{--bg:#111111;--surface:#111111;--surface2:#111111;--line:#231d15;--text:#e6d3bb;--muted:#9c8e79;--accent:#245cdf;--ink:#111111;color-scheme:light}
:root[data-theme="light"] .light .nav button.active{background:#121111;color:#245cdf}
:root[data-theme="light"] .light .topbar{background:#111111}
:root[data-theme="light"] .light .stat{box-shadow:0 3px 14px #dbcbb505}
:root[data-theme="light"] .light .upload-card{background:#245cdf;color:#111111;border-color:#245cdf}
:root[data-theme="light"] .light .upload-card p{color:#271c11}
:root[data-theme="light"] .light .upload-card .upload-icon{color:#111111;border-color:#7c9dee}
:root[data-theme="light"] .light .upload-card .btn{background:#111111;color:#245cdf}
:root[data-theme="light"] .light .status{color:#a8957f;background:#121111}
:root[data-theme="light"] .light .status.work{color:#245cdf;background:#151111}
:root[data-theme="light"] .light .status.question{color:#946009;background:#111124}
:root[data-theme="light"] .light .status.done{color:#12744d;background:#1a1112}
:root[data-theme="light"] .light th{background:#111111}
:root[data-theme="light"] .atelier{--bg:#111111;--surface:#111111;--surface2:#111114;--line:#26232a;--text:#e8dfe2;--muted:#978d91;--accent:#214ddd;--ink:#111111;color-scheme:light}
:root[data-theme="light"] .atelier .intro{background:#214ddd;color:#111}
:root[data-theme="light"] .atelier .intro .eyebrow,:root[data-theme="light"] .atelier .intro p{color:#231a11}
:root[data-theme="light"] .atelier .intro .btn{background:#e8ff83;color:#ebdfda}
:root[data-theme="light"] .atelier .status{color:#a8957f;background:#121111}
:root[data-theme="light"] .atelier .status.work{color:#245cdf;background:#151111}
:root[data-theme="light"] .atelier .status.question{color:#946009;background:#111124}
:root[data-theme="light"] .atelier .status.done{color:#12744d;background:#1a1112}
:root[data-theme="light"] .service-card{background:#161320}
:root[data-theme="light"] .service-card .number{color:#786d8e}
:root[data-theme="light"] .service-card p{color:#a69ab3}
:root[data-theme="light"] dialog{box-shadow:0 30px 100px #fafafa66}
:root[data-theme="light"] dialog::backdrop{background:#f9f4eda8}
:root[data-theme="light"] .error{color:#e06161}
:root[data-theme="light"] #toast{background:#e9ff54;color:#e6dffa;box-shadow:0 6px 35px #fafafa44}
:root[data-theme="light"] .offline{background:#5e2525;color:#111111}
@media(min-width:1550px){}
@media(max-width:1150px){}
@media(max-width:760px){:root[data-theme="light"] .nav button{#111-space:nowrap}
}
:root[data-theme="light"] body.performance{--bg:#f7f7f7;--surface:#eeeeee;--surface2:#e4e4e4;--line:#d6d6d6;--text:#111111;--muted:#555555;--accent:#111111;--ink:#f7f7f7;background:#f7f7f7;color-scheme:light}
:root[data-theme="light"] .performance .review{background:#fafafa;border-bottom:1px solid #dddddd}
:root[data-theme="light"] .performance .review-label{color:#666666}
:root[data-theme="light"] .performance .demo-dot{color:#111111}
:root[data-theme="light"] .performance .sidebar{background:#f4f4f4}
:root[data-theme="light"] .performance .brand small{color:#666666}
:root[data-theme="light"] .performance .nav button.active{background:#dedede;color:#111111;border:1px solid #cccccc}
:root[data-theme="light"] .performance .nav button:hover{background:#e6e6e6;color:#111111}
:root[data-theme="light"] .performance .topbar{background:#f7f7f7}
:root[data-theme="light"] .performance h1 span{color:#7a7a7a}
:root[data-theme="light"] .performance .eyebrow{color:#444444}
:root[data-theme="light"] .performance .intro .subtle{border:1px solid #cccccc;#111-space:nowrap}
:root[data-theme="light"] .performance .btn:hover{background:#222222}
:root[data-theme="light"] .performance .btn.secondary:hover{background:#d7d7d7}
:root[data-theme="light"] .performance .segmented button.active{background:#c6c6c6}
:root[data-theme="light"] .performance .avatar{background:#111111;color:#eeeeee}
:root[data-theme="light"] .performance .status,:root[data-theme="light"] .performance .status.work,:root[data-theme="light"] .performance .status.question,:root[data-theme="light"] .performance .status.done{color:#222222;background:#dbdbdb;border:1px solid #bdbdbd}
:root[data-theme="light"] .performance .status.question{background:#111111;color:#eeeeee;border-color:#111111}
:root[data-theme="light"] .performance .status.done{border-color:#666666}
:root[data-theme="light"] .performance .status.work:before{border:1px solid #111111}
:root[data-theme="light"] .performance #toast{background:#111111;color:#eeeeee}
:root[data-theme="light"] .performance .error{color:#111111;border-left:2px solid #111111}
:root[data-theme="light"] .performance dialog::backdrop{background:#fafafabb}
:root[data-theme="light"] .performance .offline{background:#dbdbdb;border:1px solid #999999}
:root[data-theme="light"] .launch-card{background:#111111;color:#efefef;border:1px solid #111111}
:root[data-theme="light"] .launch-card .eyebrow{color:#9d9d9d}
:root[data-theme="light"] .launch-card p{color:#9d9d9d}
:root[data-theme="light"] .launch-card .btn{background:#eeeeee;color:#111111}
:root[data-theme="light"] .launch-card .btn:hover{background:#cfcfcf}
:root[data-theme="light"] .drop-target{border:1px dashed #555555;background:#151515}
:root[data-theme="light"] .drop-target:hover,:root[data-theme="light"] .drop-target.dragging{background:#222222;border-color:#eeeeee}
:root[data-theme="light"] .drop-target small{color:#999999}
:root[data-theme="light"] .next-card{background:linear-gradient(125deg,#e4e4e4,#f1f1f1);border:1px solid #cacaca}
:root[data-theme="light"] .next-card .eyebrow b{border:1px solid #888888}
:root[data-theme="light"] .next-card p{color:#555555}
:root[data-theme="light"] .text-action{border-bottom:1px solid #888888}
:root[data-theme="light"] .performance .stat-strip{border-bottom:1px solid #cfcfcf}
:root[data-theme="light"] .stat-chip{color:#444444;border-right:1px solid #cfcfcf}
:root[data-theme="light"] .stat-chip strong{color:#111111}
:root[data-theme="light"] .stat-chip:hover span{color:#111111}
:root[data-theme="light"] .performance .filter.active{color:#eeeeee;background:#111111;border-color:#111111}
:root[data-theme="light"] .performance .search{background:#e6e6e6;border-color:#cccccc}
:root[data-theme="light"] .order-entry{border-top:1px solid #d6d6d6}
:root[data-theme="light"] .order-entry:hover{background:#e8e8e8}
:root[data-theme="light"] .vehicle-mark{border:1px solid #bababa;color:#222222}
:root[data-theme="light"] .order-primary small,:root[data-theme="light"] .order-service small{color:#666666}
:root[data-theme="light"] .queue-empty{color:#555555}
:root[data-theme="light"] .performance .panel-foot span{color:#111111}
:root[data-theme="light"] .flow-node{border-top:2px solid #cbcbcb;color:#666666}
:root[data-theme="light"] .flow-node.complete,:root[data-theme="light"] .flow-node.current{border-color:#111111;color:#111111}
:root[data-theme="light"] .detail-next{border:1px solid #aaaaaa;background:#dddddd}
:root[data-theme="light"] .wizard-stop{border-top:2px solid #cccccc;color:#777777}
:root[data-theme="light"] .wizard-stop.active{border-color:#111111;color:#111111}
:root[data-theme="light"] .wizard-stop.done{border-color:#666666;color:#333333}
:root[data-theme="light"] .wizard-lead{color:#555555}
:root[data-theme="light"] .wizard-page input[type=file]{background:#e5e5e5}
:root[data-theme="light"] .file-feedback{border:1px solid #bbbbbb;background:#dfdfdf;color:#222222}
:root[data-theme="light"] .summary-grid{background:#e5e5e5}
:root[data-theme="light"] .summary-grid label{color:#666666}
:root[data-theme="light"] .performance #newOrder .form-actions{border-top:1px solid #cccccc}
:root[data-theme="light"] .performance .modal-header{background:#ededed}
:root[data-theme="light"] .performance .close:hover{background:#bbbbbb}
@media(min-width:1600px){}
@media(max-width:1200px){}
@media(max-width:800px){:root[data-theme="light"] .performance .nav button{#111-space:nowrap}
:root[data-theme="light"] .order-entry .btn{#111-space:normal}
}
@media(max-width:430px){}
@media(prefers-reduced-motion:reduce){}
:root[data-theme="light"] .performance .topbar{border-bottom:1px solid #d6d6d6;background:#f7f7f7f5}
:root[data-theme="light"] .wallet-pill{border:1px solid #bbbbbb;color:#111111;background:#e4e4e4;#111-space:nowrap}
:root[data-theme="light"] .portal-heading p{color:#666666}
:root[data-theme="light"] .portal-sub{color:#666666}
:root[data-theme="light"] .portal-banner{border:1px solid #c7c7c7;color:#444444;background:#ececec}
:root[data-theme="light"] .portal-banner strong{color:#111111}
:root[data-theme="light"] .portal-tools input,:root[data-theme="light"] .portal-tools select{background:#eaeaea}
:root[data-theme="light"] .vehicle-card{border:1px solid #cfcfcf;background:linear-gradient(135deg,#e7e7e7,#f0f0f0)}
:root[data-theme="light"] .vehicle-card h3{color:#222222}
:root[data-theme="light"] .vehicle-card p{color:#666666}
:root[data-theme="light"] .small-tag{border:1px solid #b7b7b7;color:#444444}
:root[data-theme="light"] .service-card-v2{background:#ebebeb;border:1px solid #cccccc}
:root[data-theme="light"] .service-card-v2 p{color:#555555}
:root[data-theme="light"] .service-price small{color:#666666}
:root[data-theme="light"] .portal-table td{#111-space:normal}
:root[data-theme="light"] .portal-table th{background:#e4e4e4}
:root[data-theme="light"] .portal-table td.nowrap{#111-space:nowrap}
:root[data-theme="light"] .balance-hero{border:1px solid #c1c1c1;background:radial-gradient(ellipse at top right,#cccccc 0,transparent 65%),#eaeaea}
:root[data-theme="light"] .balance-main>span{color:#555555}
:root[data-theme="light"] .balance-main strong small{color:#555555}
:root[data-theme="light"] .balance-info{border-left:1px solid #c7c7c7}
:root[data-theme="light"] .balance-info p{color:#555555}
:root[data-theme="light"] .credit-package{background:#ebebeb;border:1px solid #cacaca}
:root[data-theme="light"] .credit-package.featured{background:#111111;color:#eeeeee}
:root[data-theme="light"] .credit-package>span{color:#555555}
:root[data-theme="light"] .credit-package.featured>span{color:#999999}
:root[data-theme="light"] .credit-package.featured .btn{background:#eeeeee;color:#111111}
:root[data-theme="light"] .ledger-positive{color:#111111}
:root[data-theme="light"] .ledger-negative{color:#666666}
:root[data-theme="light"] .software-toolbar .filter.active{background:#111111;color:#eeeeee}
:root[data-theme="light"] .portal-empty{color:#555555}
:root[data-theme="light"] .portal-empty h3{color:#111111}
:root[data-theme="light"] .loading-panel{color:#555555}
:root[data-theme="light"] .spin{border:2px solid #aaaaaa;border-top-color:#111111}
:root[data-theme="light"] .builder-aside{border-left:1px solid #cccccc;background:#f2f2f2}
:root[data-theme="light"] .builder-aside p{color:#555555}
:root[data-theme="light"] .builder-total{border-top:1px solid #bbbbbb}
:root[data-theme="light"] .builder-balance{color:#555555}
:root[data-theme="light"] .builder-step{border-top:2px solid #cccccc;color:#777777}
:root[data-theme="light"] .builder-step.active{color:#111111;border-color:#111111}
:root[data-theme="light"] .builder-step.complete{color:#444444;border-color:#777777}
:root[data-theme="light"] .builder-help{color:#666666}
:root[data-theme="light"] .builder-option{border:1px solid #c6c6c6;background:#e9e9e9}
:root[data-theme="light"] .builder-option.selected{border-color:#222222;background:#dbdbdb}
:root[data-theme="light"] .builder-option input{accent-color:#111111}
:root[data-theme="light"] .builder-option small{color:#555555}
:root[data-theme="light"] .builder-option>span:last-child{#111-space:nowrap}
:root[data-theme="light"] .builder-actions{border-top:1px solid #cccccc}
:root[data-theme="light"] .builder-drop{border:1px dashed #888888;background:#e8e8e8}
:root[data-theme="light"] .builder-file{color:#222222}
:root[data-theme="light"] .builder-review{background:#e8e8e8}
:root[data-theme="light"] .builder-review label{color:#666666}
:root[data-theme="light"] .builder-check{color:#444444}
:root[data-theme="light"] .builder-check input{accent-color:#111111}
:root[data-theme="light"] .portal-error{color:#111111;border-left:2px solid #111}
:root[data-theme="light"] .checkout-summary{background:#111111;color:#eeeeee}
:root[data-theme="light"] .checkout-summary p{color:#aaaaaa}
:root[data-theme="light"] .checkout-summary>strong{#111-space:nowrap}
:root[data-theme="light"] .method-options label{border:1px solid #bbbbbb}
:root[data-theme="light"] .method-options input{accent-color:#111}
:root[data-theme="light"] .success-icon{border:1px solid #777777}
:root[data-theme="light"] .success-panel p{color:#555555}
:root[data-theme="light"] .invoice-preview{background:#111111;color:#eeeeee}
:root[data-theme="light"] .invoice-preview h2{color:#eeeeee}
:root[data-theme="light"] .invoice-preview .watermark{border:2px solid #eeeeee}
:root[data-theme="light"] .invoice-preview table{#111-space:normal}
:root[data-theme="light"] .invoice-preview th,:root[data-theme="light"] .invoice-preview td{background:#111111;color:#eeeeee;border-color:#333333}
:root[data-theme="light"] .invoice-preview small{color:#aaaaaa}
:root[data-theme="light"] .price-row{border-bottom:1px solid #cccccc}
:root[data-theme="light"] .cancel-box{border-top:1px solid #bbbbbb}
:root[data-theme="light"] .file-kpi{color:#555555}
:root[data-theme="light"] .portal-back{color:#555555}
:root[data-theme="light"] .detail-credit{border:1px solid #aaaaaa}
@media(max-width:1180px){}
@media(max-width:800px){:root[data-theme="light"] .portal-heading .btn{#111-space:normal}
:root[data-theme="light"] .builder-aside{border-top:1px solid #cccccc}
}
@media(max-width:500px){:root[data-theme="light"] .balance-info{border-top:1px solid #c7c7c7}
}
@media print{:root[data-theme="light"] dialog[open]{background:#111111}
}
:root[data-theme="light"] .vehicle-performance th,:root[data-theme="light"] .vehicle-performance td{border-bottom:1px solid #cccccc}
:root[data-theme="light"] .vehicle-performance thead{color:#666666}
:root[data-theme="light"] .account-screen{background:radial-gradient(ellipse at 20% 0,#dcdcdc 0,transparent 60%),#f7f7f7;color:#111111}
:root[data-theme="light"] .account-intro h1 span{color:#777777}
:root[data-theme="light"] .account-intro p{color:#555555}
:root[data-theme="light"] .account-box{border:1px solid #c7c7c7;background:#eeeeee}
:root[data-theme="light"] .account-box>p{color:#555555}
:root[data-theme="light"] .account-box input,:root[data-theme="light"] .account-box select{background:#e5e5e5}
:root[data-theme="light"] .account-error{color:#111111}
:root[data-theme="light"] .account-caption{color:#777777}
:root[data-theme="light"] .session-user{color:#555555}
:root[data-theme="light"] .logout{border:1px solid #bbbbbb;color:#333333}
:root[data-theme="light"] .wallet-breakdown{color:#444444}
:root[data-theme="light"] .reservation-note{background:#dfdfdf;border:1px solid #bbbbbb}
:root[data-theme="light"] .account-version{border-top:1px solid #cccccc}
:root[data-theme="light"] .account-version a{#111-space:nowrap}
:root[data-theme="light"] .partner-status{border:1px solid #aaaaaa;background:#e7e7e7}
:root[data-theme="light"] .setup-warning{color:#444444;border:1px solid #bbbbbb}
:root[data-theme="light"] .account-screen .eyebrow{color:#444444}
@media(max-width:800px){}
:root[data-theme="light"] .fw-pagination{color:#555555}
:root[data-theme="light"] .fw-tags span{background:#dadada;border:1px solid #bbbbbb;color:#111111;#111-space:nowrap}
:root[data-theme="light"] .fw-back>span{color:#666666}
:root[data-theme="light"] .fw-send>span{color:#555555}
:root[data-theme="light"] .fw-thread-heading>span{color:#555555}
:root[data-theme="light"] .fw-message{background:#e8e8e8;border:1px solid #c7c7c7}
:root[data-theme="light"] .fw-team{background:#dadada;border-left:3px solid #111111}
:root[data-theme="light"] .fw-message time{color:#555555}
:root[data-theme="light"] .fw-message p,:root[data-theme="light"] .fw-notes{#111-space:pre-wrap}
:root[data-theme="light"] .fw-event{border-left:1px solid #aaaaaa}
:root[data-theme="light"] .fw-event span{color:#555555}
:root[data-theme="light"] .fw-summary dl>div{border-bottom:1px solid #cccccc}
:root[data-theme="light"] .fw-summary dt{color:#555555}
:root[data-theme="light"] .fw-summary-block{border-top:1px solid #cccccc}
:root[data-theme="light"] .fw-notes{color:#444444}
:root[data-theme="light"] .fw-downloads .btn{#111-space:normal}
:root[data-theme="light"] .fw-downloads p{color:#555555}
:root[data-theme="light"] .fw-sidebar .admin-actions{border:1px solid #bbbbbb}
@media(max-width:1100px){}
@media(max-width:650px){}
:root[data-theme="light"] .fw-attachment{border:1px dashed #999999}
:root[data-theme="light"] .fw-attachment small{color:#555555}
:root[data-theme="light"] .fw-chat-download{#111-space:normal}

:root[data-theme="light"]{color-scheme:light;background:#f7f7f7;color:#191919}
:root[data-theme="light"] .brand img,:root[data-theme="light"] .account-intro img{filter:brightness(0)}
:root[data-theme="light"] [style*="color:#888"],:root[data-theme="light"] [style*="color:#999"],:root[data-theme="light"] [style*="color:#aaa"]{color:#626262!important}
.theme-control{position:fixed;top:17px;right:20px;z-index:40;font-family:Satoshi,Arial,sans-serif;color:#eee;font-size:13px}
.theme-toggle{display:flex;align-items:center;gap:9px;border:1px solid #444;border-radius:8px;padding:10px 12px;min-height:40px;background:#1b1b1b;color:inherit}
.theme-options{position:absolute;right:0;top:48px;width:185px;padding:10px;border:1px solid #444;border-radius:12px;background:#171717;box-shadow:0 12px 36px #0005}
.theme-options[hidden]{display:none}.theme-options>span,.theme-options small{display:block;padding:7px 9px;font-size:11px;color:#aaa}.theme-options button{display:block;width:100%;padding:10px;text-align:left;color:inherit;background:transparent;border-radius:6px}.theme-options button[aria-pressed="true"]{background:#eee;color:#111}.theme-options button[aria-pressed="true"]:after{content:'✓';float:right}.theme-options button:hover{outline:1px solid #888}.theme-toggle:focus-visible,.theme-options button:focus-visible{outline:2px solid currentColor;outline-offset:3px}
:root[data-theme="light"] .theme-control{color:#222}:root[data-theme="light"] .theme-toggle,:root[data-theme="light"] .theme-options{background:#fff;border-color:#d5d5d5}:root[data-theme="light"] .theme-options button[aria-pressed="true"]{background:#171717;color:#fff}:root[data-theme="light"] .theme-options>span,:root[data-theme="light"] .theme-options small{color:#626262}
.performance .topbar{padding-right:165px}.account-screen{padding-top:85px}
@media(max-width:760px){.theme-control{top:12px;right:14px}.performance .topbar{height:auto;min-height:120px;align-items:start;padding:65px 16px 12px;gap:10px;flex-wrap:wrap}.performance .role-control{flex-wrap:wrap}.account-screen{padding-top:85px}}
@media print{.theme-control{display:none}}

/* Semantic order colors, appended after both theme palettes. */
:root .performance .order-status,:root .order-status{border:1px solid var(--status-line)!important;background:var(--status-bg)!important;color:var(--status-text)!important;font-weight:700;white-space:nowrap}
:root .order-status:before{background:currentColor!important;box-shadow:none!important}
.order-status-new,[data-order-filter="Neu"]{--status-text:#93c5fd;--status-bg:#172b45;--status-line:#355782}
.order-status-work,[data-order-filter="In Bearbeitung"]{--status-text:#c4b5fd;--status-bg:#302344;--status-line:#66518a}
.order-status-question,[data-order-filter="Rückfrage"]{--status-text:#fcd34d;--status-bg:#382c10;--status-line:#806521}
.order-status-done,[data-order-filter="Fertig"]{--status-text:#86efac;--status-bg:#153626;--status-line:#30694b}
.order-status-cancelled,[data-order-filter="Storniert"]{--status-text:#d1d5db;--status-bg:#292d34;--status-line:#58606c}
.order-status-rejected,[data-order-filter="Abgelehnt"]{--status-text:#fca5a5;--status-bg:#421f24;--status-line:#873f48}
:root[data-theme="light"] .order-status-new,:root[data-theme="light"] [data-order-filter="Neu"]{--status-text:#1e40af;--status-bg:#eff6ff;--status-line:#93c5fd}
:root[data-theme="light"] .order-status-work,:root[data-theme="light"] [data-order-filter="In Bearbeitung"]{--status-text:#6b21a8;--status-bg:#faf5ff;--status-line:#d8b4fe}
:root[data-theme="light"] .order-status-question,:root[data-theme="light"] [data-order-filter="Rückfrage"]{--status-text:#854d0e;--status-bg:#fffbeb;--status-line:#fcd34d}
:root[data-theme="light"] .order-status-done,:root[data-theme="light"] [data-order-filter="Fertig"]{--status-text:#166534;--status-bg:#f0fdf4;--status-line:#86efac}
:root[data-theme="light"] .order-status-cancelled,:root[data-theme="light"] [data-order-filter="Storniert"]{--status-text:#4b5563;--status-bg:#f3f4f6;--status-line:#d1d5db}
:root[data-theme="light"] .order-status-rejected,:root[data-theme="light"] [data-order-filter="Abgelehnt"]{--status-text:#991b1b;--status-bg:#fef2f2;--status-line:#fca5a5}
:root .performance [data-order-filter]:not([data-order-filter="Alle"]){color:var(--status-text);border:1px solid var(--status-line);background:var(--status-bg)}
:root .performance [data-order-filter].active{outline:2px solid currentColor;outline-offset:2px}
.order-live-state{font-size:11px;color:#aaa;line-height:1.5;max-width:220px}.order-live-state[data-connection="ok"]:before{content:'● ';color:#4ade80}.order-live-state[data-connection="error"]{color:#fcd34d}
:root[data-theme="light"] .order-live-state{color:#555}:root[data-theme="light"] .order-live-state[data-connection="ok"]:before{color:#15803d}:root[data-theme="light"] .order-live-state[data-connection="error"]{color:#854d0e}
@media(max-width:760px){.portal-heading{flex-wrap:wrap}.order-live-state{flex-basis:100%;max-width:none}}

.vd-selector{padding:26px;border:1px solid var(--line);border-radius:14px;background:var(--surface);margin-bottom:26px}.vd-selector-head{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:24px}.vd-selector-head h2{font-size:21px;margin:0}.vd-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.vd-filters .field>span{font-size:12px;color:var(--muted)}.vd-filters select{width:100%;text-overflow:ellipsis}.vd-filters select:disabled{opacity:.4;cursor:not-allowed}.vd-search{display:grid;grid-template-columns:1fr 200px;gap:14px;margin-top:22px;padding-top:22px;border-top:1px solid var(--line)}.vd-result-heading{padding:22px 24px;display:flex;justify-content:space-between;gap:15px;align-items:center}.vd-result-heading h2{font-size:18px;margin:0 0 5px}.vd-result-heading span{color:var(--muted);font-size:12px}.vd-table{width:100%;border-collapse:collapse}.vd-table th{font-size:11px;padding:14px 22px;text-align:left}.vd-table td{padding:18px 22px;font-size:13px;white-space:normal;vertical-align:middle;border-bottom:1px solid var(--line)}.vd-table td:first-child{min-width:220px}.vd-table td strong,.vd-table td span,.vd-table td:first-child small{display:block}.vd-table td span{margin-top:5px}.vd-table td:first-child small{margin-top:5px;color:var(--muted);font-size:11px}.vd-power{font-variant-numeric:tabular-nums;white-space:nowrap!important;font-size:16px!important}.vd-power small{display:inline;color:var(--muted);font-size:10px}.vd-tuned{font-weight:700}.vd-table .btn{font-size:12px;white-space:nowrap;padding:9px 13px}.vd-footnote{margin:20px 0}.vd-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
#vehicleDetail{inset:0 0 0 auto;margin:0;width:min(460px,100vw);max-width:100vw;height:100dvh;max-height:100dvh;border:0;border-left:1px solid var(--line);border-radius:0;background:var(--surface);color:var(--text);padding:0;overflow:auto;box-shadow:-20px 0 70px #0004}#vehicleDetail::backdrop{background:#0006;backdrop-filter:blur(3px)}.vd-detail-head{display:flex;align-items:center;justify-content:space-between;padding:24px 26px;border-bottom:1px solid var(--line)}.vd-detail-head .eyebrow{margin:0}.vd-detail-body{padding:26px}.vd-detail-body h2{font-size:36px;margin:20px 0 8px}.vd-detail-body h3{font-size:20px;margin:0 0 12px}.vd-performance{margin:26px 0}.vd-detail-body dl{margin:24px 0}.vd-detail-body dl>div{display:flex;justify-content:space-between;gap:18px;padding:13px 0;border-bottom:1px solid var(--line);font-size:13px}.vd-detail-body dt{color:var(--muted)}.vd-detail-body dd{margin:0;text-align:right;overflow-wrap:anywhere}.vd-detail-footer{position:sticky;bottom:0;padding:22px 26px;background:var(--surface);border-top:1px solid var(--line)}.vd-detail-footer .btn{width:100%}.vd-detail-footer>span{display:block;font-size:11px;text-align:center;color:var(--muted);margin-top:12px}
@media(max-width:1000px){.vd-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.vd-table td,.vd-table th{padding:14px 12px}}
@media(max-width:600px){.vd-selector{padding:18px}.vd-selector-head{align-items:start}.vd-selector-head h2{font-size:18px}.vd-selector-head .text-action{font-size:11px}.vd-search{grid-template-columns:1fr}.vd-result-heading{padding:18px;align-items:start}.vd-result-heading>.portal-sub{display:none}.vd-table thead{display:none}.vd-table,.vd-table tbody,.vd-table tr{display:block}.vd-table tr{padding:16px;display:grid;grid-template-columns:1fr 1fr;border-bottom:1px solid var(--line);gap:10px}.vd-table td{padding:0;border:0;min-width:0!important}.vd-table td:first-child,.vd-table td:nth-child(2),.vd-table td:last-child{grid-column:1/-1}.vd-table td:nth-child(2){color:var(--muted);font-size:12px}.vd-table td:nth-child(3):before{content:'Serie ';font-size:11px;color:var(--muted)}.vd-table td:nth-child(4):before{content:'Stage 1 ';font-size:11px;color:var(--muted)}.vd-table .btn{width:100%;margin-top:4px}#vehicleDetail{width:100vw}.vd-detail-body,.vd-detail-head{padding:20px}.vehicle-pagination{gap:10px;font-size:12px}.vehicle-pagination .btn{padding:9px}}

/* Higher surface contrast for the light theme only. */
:root[data-theme="light"] body.performance{--bg:#e9ebee;--surface:#fff;--surface2:#f3f4f6;--line:#c5c9d0;background:#e9ebee}
:root[data-theme="light"] .performance .app,:root[data-theme="light"] .performance .main{background:#e9ebee}
:root[data-theme="light"] .performance :is(.panel,.stat,.vehicle-card,.service-card-v2,.credit-package,.balance-hero,.vd-selector,.account-box){background:#fff;border-color:#bcc2ca;box-shadow:0 3px 12px rgba(20,25,35,.08)}
:root[data-theme="light"] .account-screen{background:#e9ebee}
:root[data-theme="light"] .account-box{background:#fff;border-color:#bcc2ca;box-shadow:0 8px 28px rgba(20,25,35,.1)}
:root[data-theme="light"] .performance :is(.portal-banner,.fw-summary-block,.builder-option){background:#f3f4f6;border-color:#c5c9d0}
:root[data-theme="light"] .performance :is(input,select,textarea){background:#f7f8fa;border-color:#aeb5bf;color:#171717}
:root[data-theme="light"] .performance :is(input,select,textarea):focus{border-color:#343b46;outline-color:#343b46}
:root[data-theme="light"] .performance :is(.portal-table,.vd-table) th{background:#e4e7eb;color:#454c56}
:root[data-theme="light"] .performance :is(.portal-table,.vd-table) td{border-bottom-color:#d4d8de}
:root[data-theme="light"] .performance :is(.portal-table,.vd-table) tbody tr:hover{background:#f0f2f5}
:root[data-theme="light"] .performance .credit-package.featured{background:#171717;color:#fff;border-color:#171717}
:root[data-theme="light"] .performance .credit-package.featured .btn{background:#fff;color:#171717}
:root[data-theme="light"] .performance .credit-package.featured>span{color:#d1d5db}

/* Clear separation between dark page backgrounds and raised surfaces. */
:root[data-theme="dark"] body.performance{--bg:#080808;--surface:#202020;--surface2:#292929;--line:#484848;background:#080808}
:root[data-theme="dark"] .performance :is(.panel,.stat,.vehicle-card,.service-card-v2,.credit-package,.balance-hero,.vd-selector,.account-box){background:#202020;border-color:#484848;box-shadow:0 4px 16px rgba(0,0,0,.28),inset 0 1px 0 rgba(255,255,255,.035)}
:root[data-theme="dark"] .account-box{background:#202020;border-color:#484848;box-shadow:0 8px 28px rgba(0,0,0,.35)}
:root[data-theme="dark"] .performance :is(.portal-banner,.fw-summary-block,.builder-option){background:#292929;border-color:#505050}
:root[data-theme="dark"] .performance :is(input,select,textarea){background:#141414;border-color:#606060;color:#f5f5f5}
:root[data-theme="dark"] .performance :is(input,select,textarea):focus{border-color:#bdbdbd;outline-color:#bdbdbd}
:root[data-theme="dark"] .performance :is(.portal-table,.vd-table) th{background:#303030;color:#d0d0d0}
:root[data-theme="dark"] .performance :is(.portal-table,.vd-table) td{border-bottom-color:#454545}
:root[data-theme="dark"] .performance :is(.portal-table,.vd-table) tbody tr:hover{background:#2c2c2c}
:root[data-theme="dark"] .performance .credit-package.featured{background:#eee;color:#111;border-color:#eee}
:root[data-theme="dark"] .performance .credit-package.featured .btn{background:#111;color:#fff}
:root[data-theme="dark"] .performance .credit-package.featured>span{color:#555}
