/* Appearance control shared by the public page, workshop and customer portal. */
:root{--ui-bg:#f4f7fc;--ui-surface:#fff;--ui-raised:#edf3fb;--ui-line:#d5dfed;--ui-text:#20354e;--ui-muted:#52677f;--ui-accent:#285fae;--ui-soft:#e8f0fc;--ui-warm:#fff1dc;--ui-warm-text:#875117}
.theme-toggle{display:inline-flex!important;align-items:center;justify-content:center;gap:7px;min-height:40px!important;width:auto!important;padding:8px 11px!important;border:1px solid var(--ui-line)!important;border-radius:9px!important;background:var(--ui-surface)!important;color:var(--ui-text)!important;font:600 12px/1.3 system-ui,sans-serif!important;white-space:nowrap;cursor:pointer;flex-shrink:0}.theme-toggle:hover{background:var(--ui-soft)!important}.theme-toggle [data-theme-icon]{font-size:19px;line-height:1}.theme-toggle:focus-visible{outline:3px solid #80aef3;outline-offset:3px}.theme-login-controls{position:absolute;top:18px;left:50%;transform:translateX(-50%);z-index:5}.session-tools{flex-wrap:wrap}.public-header nav{gap:14px;flex-wrap:wrap}
/* Explore every feature without a wall of uneven cards. */
.public-front{background:#f5f8ff;color:#20354e}.public-front .welcome-hero{background:radial-gradient(ellipse at 5% 15%,#cfe5ff,transparent 55%),radial-gradient(ellipse at 95% 80%,#d9f8ed,transparent 45%),#f8fbff}.public-front .welcome-eyebrow{color:#1665c4}.public-front .public-primary{background:#1768d4;border-color:#1768d4}.public-front .public-primary:hover{background:#0c52b1}.public-front .public-brand>span:last-child{color:#df640e}.public-front .welcome-dark{background:linear-gradient(120deg,#0759bd,#123f88)}.public-front .welcome-steps b{background:#ff9b32;border-color:#ffbd73;color:#18304e}.public-front .showcase-top{background:linear-gradient(110deg,#095bcc,#2185ed);border-bottom-color:#ff922b}.public-front .presentation-bar{background:linear-gradient(#359aff,#1265d2)}.public-front .presentation-bar.orange{background:linear-gradient(#ffb348,#f07815)}
.feature-explorer{display:grid;grid-template-columns:minmax(230px,.78fr) minmax(0,1.5fr);gap:26px;align-items:start}.feature-navigation{display:grid;gap:8px}.feature-choice{--choice:#1768d4;--choice-soft:#e8f2ff;display:flex;gap:12px;align-items:center;width:100%;min-height:57px;padding:10px 14px;border:1px solid #d4e3f5;border-radius:11px;background:#fff;color:#284360;text-align:left;cursor:pointer}.feature-choice:nth-child(3n+2){--choice:#07866f;--choice-soft:#e3f8f0}.feature-choice:nth-child(3n){--choice:#c75c0a;--choice-soft:#fff0e1}.feature-choice>span{display:grid;place-items:center;flex:0 0 32px;height:32px;border-radius:8px;background:var(--choice-soft);color:var(--choice);font-size:12px;font-weight:800}.feature-choice>b{font-size:14px;line-height:1.4}.feature-choice>i{font-style:normal;font-size:23px;margin-left:auto;color:var(--choice)}.feature-choice:hover{border-color:var(--choice);background:var(--choice-soft)}.feature-choice[aria-selected=true]{background:var(--choice);border-color:var(--choice);color:#fff;box-shadow:0 5px 16px #1768d420}.feature-choice[aria-selected=true]>span{background:#fff;color:var(--choice)}.feature-choice[aria-selected=true]>i{color:#fff}.feature-choice:focus-visible{outline:3px solid #ff9b32;outline-offset:3px}
.public-front .feature-explorer .welcome-features{display:block;min-width:0}.public-front .feature-explorer .welcome-features article{display:block;min-width:0;border:1px solid #c9def6;border-top:4px solid var(--accent);border-radius:16px;box-shadow:0 12px 34px #1768d412;overflow:hidden;background:white;grid-column:auto}.public-front .feature-explorer article[hidden]{display:none!important}.public-front .welcome-features article:nth-child(n){--accent:#1979e5;--accent-soft:#e7f2ff;--accent-dark:#0c5dbb}.public-front .welcome-features article:nth-child(3n+2){--accent:#08a17e;--accent-soft:#e1f9ee;--accent-dark:#05745d}.public-front .welcome-features article:nth-child(3n){--accent:#f37b18;--accent-soft:#fff0df;--accent-dark:#a74906}.public-front .feature-description{padding:24px 26px 18px}.public-front .feature-description>span{display:inline-grid;place-items:center;min-width:34px;height:28px;padding:2px 7px;border-radius:7px;background:var(--accent);color:#fff;font-size:12px;font-weight:800}.public-front .feature-description h3{font-size:26px;margin:12px 0 10px;color:#183c64}.public-front .welcome-features article p{font-size:15px;line-height:1.7;margin:0;color:#425d7b;max-width:70ch}.public-front .feature-status{font-size:12px;line-height:1.65;margin-top:14px;padding-top:12px;border-top:1px solid #dce8f6;color:#526b86}.public-front .feature-explorer .feature-scene{min-height:0;border-bottom:0;border-top:1px solid #dce8f6;background:linear-gradient(120deg,var(--accent-soft),#fff);animation:none}.public-front .feature-explorer .scene-heading{background:var(--accent-dark);padding:12px 20px;min-height:0}.public-front .feature-explorer .scene-heading>span{font-size:14px}.public-front .feature-explorer .scene-heading small{font-size:11px}.public-front .feature-explorer .scene-content{margin:18px 20px;padding:16px;background:#fff}.public-front .feature-explorer .scene-fields{font-size:13px;gap:6px}.public-front .feature-explorer .scene-message{font-size:12px;padding:10px;margin-top:12px}.public-front .feature-explorer .scene-steps{padding:0 20px 20px}.public-front .feature-scene:before,.public-front .feature-scene:after{opacity:.09}.public-front .scene-steps>span.active{background:var(--accent-soft);color:var(--accent-dark)}
@media(max-width:800px){.feature-explorer{grid-template-columns:minmax(0,1fr);gap:18px}.feature-navigation{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.feature-choice{min-width:0;min-height:55px;padding:8px 10px;gap:8px}.feature-choice>b{font-size:12px}.feature-choice>span{flex-basis:27px;height:28px;font-size:11px}.feature-choice>i{display:none}.public-front .feature-description{padding:20px}.public-front .feature-description h3{font-size:23px}}
@media(max-width:650px){.public-front .welcome-section{padding-block:40px}.theme-toggle{font-size:11px!important;padding:7px 9px!important}.theme-login-controls{position:static;transform:none;margin:6px auto 14px;order:-1}body>header{flex-wrap:wrap}body>header>div{flex:1;min-width:150px}.public-header nav{gap:10px}.session-tools .theme-toggle{min-height:36px!important}.public-front .feature-explorer .scene-content{margin:14px;padding:13px}.public-front .feature-explorer .scene-steps{padding:0 14px 14px}}

@media screen{
html[data-theme=dark]{color-scheme:dark;--ui-bg:#101925;--ui-surface:#192638;--ui-raised:#213249;--ui-line:#354a63;--ui-text:#e5edf8;--ui-muted:#b1c2d6;--ui-accent:#8ab9fa;--ui-soft:#243e60;--ui-warm:#443421;--ui-warm-text:#f2c78b;--canvas:#101925;--ink:#e5edf8;--muted:#b1c2d6;--line:#354a63;--blue:#8ab9fa;--soft:#213249}
html[data-theme=dark] body,html[data-theme=dark] .main,html[data-theme=dark] .public-front{background:var(--ui-bg);color:var(--ui-text)}
html[data-theme=dark] :is(.card,.top,.public-header,.welcome-footer,.welcome-showcase,.welcome-features article,.login-card,.register-view,.draft-dialog>section,.simple-fold,.form-disclosure,.orders-directory,.orders-head,.order-overview>div,.order-stats>div,.quick-action,.finance-piece,.backup-row,.backup-preview,.customer-row,.customer-card,.customer-manager,.ocr-panel,.document-mailbox,.mailbox-address,.mailbox-edit-form,.purchase-item,.inventory-part,.citas-calendar,.citas-days button,.citas-agenda article,.welcome-contact form,.welcome-plan-note,.account-space,.release-phone,.device-desktop,.device-tablet,.welcome-phone,.scene-content,.release-demo-paper,.portal-vehicle-card,.cita-photo){background:var(--ui-surface)!important;color:var(--ui-text);border-color:var(--ui-line)!important;box-shadow:none}
html[data-theme=dark] :is(h1,h2,h3,h4,h5,.heading,.total,.plate,.selected-vehicle,.order-code,.work-type,.detail strong,.stat b,.order-stats strong,.order-overview strong,.vehicle-tech strong,.purchase-item strong,.public-brand,.feature-description h3,.scene-content>b,.scene-heading>span,.release-flow-chart strong,.release-demo-card b,.release-demo-timeline b,.release-demo-paper>strong,.device-screen-content h3,.account-workshop b,.account-team b,.simple-fold>summary,.form-disclosure>summary,.vehicle-data summary){color:var(--ui-text)}
html[data-theme=dark] :is(p,.muted,.subtle,.note,.lead,.install-help,.stage-caption,.order-summary,.stat span,.stat small,.vehicle-tech span,.details small,.vehicle-data dt,.feature-status,.welcome-caption,.welcome-intro,.welcome-section-head>p,.welcome-devices>div>p,.welcome-plans>div>p,.welcome-contact>div>p,.welcome-features article p,.welcome-steps p,.scene-fields,.presentation-chart-note,.presentation-axis,.presentation-mini-labels,.presentation-month>span,.release-flow-chart small,.release-portal li,.release-portal>div>p,.release-phone-top small,.release-phone-content p,.release-demo-card span,.release-demo-card small,.release-demo-paper>span,.release-demo-timeline span,.device-screen-content p,.device-example-note,.account-steps span,.account-team span,.account-private,.showcase-bottom){color:var(--ui-muted)}
html[data-theme=dark] :is(.public-front .welcome-hero,.login-screen){background:radial-gradient(ellipse at 5% 10%,#28558b40,transparent 60%),var(--ui-bg)}
html[data-theme=dark] :is(.feature-scene,.hero-scene-deck,.hero-chart-panel,.presentation-chart,.presentation-mini-chart,.presentation-hours,.hero-workflow li,.hero-workflow li.active,.form-guide,.next-action,.simple-fold[open]>summary,.form-disclosure>summary,.simple-order-tabs,.order-journey li,.compact-tabs button,.history-summary>div,.finance-summary>div,.backup-summary>span,.release-phone-top,.release-phone-nav,.release-demo-card,.scene-steps>span,.scene-steps>span.active,.feature-example>summary,.showcase-stats>div,.showcase-bottom,.device-screen-content,.device-mini-stats>span,.device-timer,.account-team>div,.alias-input span,.alias-locked,.engine-code-chip,.mailbox-meta,.citas-calendar details,.citas-days button,.cita-upload,#client-nav){background:var(--ui-raised)!important;color:var(--ui-text);border-color:var(--ui-line)}
html[data-theme=dark] .public-front .welcome-features article:nth-child(n){--accent:#7fa9dd;--accent-soft:#243e60;--accent-dark:#bdd6fa}html[data-theme=dark] .public-front .welcome-features article:nth-child(3n+2){--accent:#74b5a7;--accent-soft:#23423f;--accent-dark:#a9dacc}html[data-theme=dark] .public-front .welcome-features article:nth-child(3n){--accent:#c5a16c;--accent-soft:#443926;--accent-dark:#ecd2a9}
html[data-theme=dark] .scene-heading{background:#263d58!important}html[data-theme=dark] .scene-message,html[data-theme=dark] .feature-description>span{background:var(--accent-soft);color:var(--accent-dark)}html[data-theme=dark] .feature-description h3,html[data-theme=dark] .feature-example>summary{color:var(--ui-text)}
html[data-theme=dark] :is(input,select,textarea,.field input,.field select,.field textarea){background:#111e2e!important;border-color:#49617d!important;color:var(--ui-text)!important}html[data-theme=dark] :is(input,textarea)::placeholder{color:#91a7be;opacity:1}html[data-theme=dark] :is(label,.field,th,td,dt,dd,summary,legend){color:var(--ui-text)}html[data-theme=dark] :is(th,td,.vehicle-tech>div,.appointment-row,.feature-status,.feature-example,.device-material,.device-order-row,.scene-costs>span){border-color:var(--ui-line)}html[data-theme=dark] th{background:#213249}html[data-theme=dark] tbody tr:hover{background:#24374d}html[data-theme=dark] .table-wrap{border-color:var(--ui-line)}
html[data-theme=dark] :is(.btn,.public-primary,.portal-login,body>header button:not(.theme-toggle)){background:#356bb4;color:#fff;border-color:#568acc}html[data-theme=dark] :is(.btn.secondary,.public-secondary,.secondary,.simple-home-link,.link,.btn.ghost,.compact-tabs button,.simple-row-toggle){background:var(--ui-soft);color:#c4dcff;border-color:#5579a6}html[data-theme=dark] :is(.public-login,.public-header nav a,.welcome-eyebrow,.presentation-chart-head small,.presentation-mini-title,.presentation-hours>b,.public-brand>span:last-child,.public-front .welcome-eyebrow){color:#b4d2f5}html[data-theme=dark] a{color:#aaccff}html[data-theme=dark] .side{background:linear-gradient(165deg,#193b67,#152b49);border-color:#354a63}html[data-theme=dark] .nav button{color:#d4e4f7}html[data-theme=dark] .nav button.active{background:#305b90}html[data-theme=dark] .nav button:hover{background:#294c78}
html[data-theme=dark] :is(.simple-order-tabs button,.order-filter-stat,.labor-stat-button,#client-nav button,.release-phone-nav button,.device-tabs button){color:var(--ui-text)}html[data-theme=dark] :is(.simple-order-tabs button[aria-selected=true],.release-phone-nav button[aria-selected=true],.device-tabs button[aria-selected=true],.citas-days button[aria-pressed=true],#client-nav button[aria-current=page]){background:#315a89!important;color:#fff!important}html[data-theme=dark] #simple-mobile-nav{background:#172638;border-color:var(--ui-line)}html[data-theme=dark] #simple-mobile-nav button{color:#bfd1e7}html[data-theme=dark] #simple-mobile-nav button[aria-current=page]{background:#294b73;color:#fff}html[data-theme=dark] #simple-more-sheet{background:#101925bb}html[data-theme=dark] #simple-more-sheet>section{background:var(--ui-surface);color:var(--ui-text)}
html[data-theme=dark] :is(.notice,.demo,.confirmation,.login-warning,.worker-preview-banner,.engine-match,.alias-warning,.scene-costs>span:last-child,.release-demo-accent,.release-demo-paper>strong,.pill){background:var(--ui-warm)!important;color:var(--ui-warm-text)!important;border-color:#82643b!important}html[data-theme=dark] .status,html[data-theme=dark] .tag{background:#213f35!important;color:#aee2c4!important;border-color:#456f5b!important}html[data-theme=dark] .status.wait{background:#483821!important;color:#f5d198!important}html[data-theme=dark] .status.closed{background:#253d5b!important;color:#bbd7fa!important}html[data-theme=dark] .priority-urgente{background:#dc2626!important;color:#fff!important}html[data-theme=dark] .priority-alta{background:#483821!important;color:#f5d198!important}html[data-theme=dark] .good,html[data-theme=dark] .closed-text{color:#9cdbb5!important}html[data-theme=dark] .alert,html[data-theme=dark] .photo-error,html[data-theme=dark] [role=alert]{color:#ffb9ae}html[data-theme=dark] .btn.danger-outline{color:#ffb9ae;border-color:#a76b69;background:#482e34}html[data-theme=dark] .locked-note,html[data-theme=dark] .engine-match.found{background:#213f35;color:#aee2c4;border-color:#456f5b}
html[data-theme=dark] .release-flow-chart span{background:#192638;color:#c4dcff;border-color:#7fa9dd;animation-name:releaseNodeDark}html[data-theme=dark] .release-phone-content>small{color:#aaccff}html[data-theme=dark] .release-phone,html[data-theme=dark] .welcome-phone{border-color:#5279a5;box-shadow:12px 15px 0 #1b2b40}html[data-theme=dark] .release-demo-paper>b{color:#afcfff}html[data-theme=dark] .presentation-bar-pair{background:repeating-linear-gradient(to top,transparent 0,transparent 59px,#354a63 59px,#354a63 60px);border-color:#54708d}html[data-theme=dark] .hero-donut>div{background:#192638;color:#e5edf8}html[data-theme=dark] .hero-metric{background:#24364e;color:#c4dcff}html[data-theme=dark] .hero-metric strong,html[data-theme=dark] .device-timer strong{color:#b4d2f5}html[data-theme=dark] .device-orbit{opacity:.2}
/* Printed workshop forms remain white; generated PDFs keep their print palette. */
html[data-theme=dark] .print-sheet,html[data-theme=dark] .print-sheet *{background:#fff!important;color:#111!important;border-color:#666!important}html[data-theme=dark] .print-sheet .po-row:nth-of-type(even){background:#eceeef!important}
@keyframes releaseNodeDark{0%,12%{background:#365f92;color:white;border-color:#8ab9fa;box-shadow:0 0 0 5px #273f5c}20%,100%{background:#192638;color:#c4dcff;border-color:#7fa9dd;box-shadow:none}}
}
@media print{.theme-toggle,.theme-login-controls{display:none!important}html{color-scheme:light!important}}
@media screen{
html[data-theme=dark] :is(table,.vehicle-stats>div,.grid>.stat,.invoice-totals>div,.finance-totals>div,.section-title,.document-upload,.document-item,.entry-method,.pending-entry,.document-chip,.team-order-panel>form,.job-material-row,.order-close-review,.job-part-result,.order-vehicle-matches,.order-vehicle-matches button,.support-dialog,.simple-more-dialog,.client-test-dialog,.client-test-qr,.invitation-box,.invitation-box code,.simple-task-brief,.citas-period-controls,.citas-day-group>h4,.ocr-panel details,.labor-stat-button){background:var(--ui-surface)!important;color:var(--ui-text)!important;border-color:var(--ui-line)!important}
html[data-theme=dark] .app .content{background:transparent!important}html[data-theme=dark] .app #view :is(.guided-action,.guided-progress,.vehicle-register,.stats-disclosure,.finance-piece,.finance-parts-table,.compact-data-table tr,table[data-simple-table] tr:not(.compact-empty-row),.inventory-existences tr,.reference-review){background:var(--ui-surface)!important;color:var(--ui-text)!important;border-color:var(--ui-line)!important}html[data-theme=dark] .app #view :is(.guided-action:hover,.vehicle-register>summary:hover,.stats-disclosure>summary:hover,.document-selection-clear,.finance-auto){background:var(--ui-raised)!important;color:var(--ui-text)!important}html[data-theme=dark] .app #view :is(input,select,textarea){background:#111e2e!important;color:var(--ui-text)!important;border-color:#49617d!important}html[data-theme=dark] .app #view :is(.guided-action p,.guided-action span,.guided-action strong,.guided-action b,.guided-progress p,.finance-line-total,.finance-input span,.section-title h2,.section-title p,.document-item strong,.simple-task-brief strong){color:var(--ui-text)!important}html[data-theme=dark] .app .simple-fold>summary{background:var(--ui-raised);color:var(--ui-text)}html[data-theme=dark] .app #view .home-shortcuts>.btn,html[data-theme=dark] [data-order-toolbar] button{background:var(--ui-soft);color:#c4dcff;border-color:#5579a6}
html[data-theme=dark] :is(.guided-number,.user-badge,.auth-tabs,.auth-tabs button.active,.document-icon,.method-icon,.document-security,.support-note,.demo-access,.team-cloud-note,.prototype-notice,.invite-banner,.order-age-unknown){background:var(--ui-raised)!important;color:#c4dcff!important;border-color:var(--ui-line)}html[data-theme=dark] .app #view :is(.date-chip.date-unknown,.date-soon,.date-over){background:var(--ui-warm)!important;color:var(--ui-warm-text)!important}html[data-theme=dark] .presentation-mini-chart svg path[fill="#e5f0ff"],html[data-theme=dark] .hero-stock-chart svg path[fill="#fff0df"]{fill:#253b56}html[data-theme=dark] .scene-costs span,html[data-theme=dark] .device-benefits span,html[data-theme=dark] .device-benefits b,html[data-theme=dark] .hero-donut-legend li{color:var(--ui-text)}html[data-theme=dark] .scene-steps>span.active{background:var(--accent-soft)!important}html[data-theme=dark] .release-demo-paper hr{border-color:var(--ui-line)}
}
@media screen{
html[data-theme=dark] :is(.status.order-age-red,.order-age-red,.app #view .date-over){background:#dc2626!important;color:#fff!important;border-color:#ff8585!important}html[data-theme=dark] :is(.status.order-age-orange,.order-age-orange){background:#f97316!important;color:#182b35!important;border-color:#ffb376!important}html[data-theme=dark] :is(.status.order-age-green,.order-age-green){background:#15803d!important;color:#fff!important;border-color:#6ee7a1!important}
}
/* Native choices have their own surface and text, independent of the selected field. */
select option,select optgroup{background:#fff;color:#18314f}select option:checked{background:#1768d4;color:#fff}select option:disabled{color:#65758a}input[type=checkbox],input[type=radio]{accent-color:#1976e6}::selection{background:#2563eb;color:#fff}
@media screen{
html[data-theme=dark] body select,html[data-theme=dark] .app #view select{color-scheme:dark;background-color:#111e2e!important;color:#f0f5ff!important;-webkit-text-fill-color:#f0f5ff}
html[data-theme=dark] body select option,html[data-theme=dark] body select optgroup,html[data-theme=dark] .app #vehicle-form select option,html[data-theme=dark] .app #view select option,html[data-theme=dark] .app #view select optgroup{background-color:#152236!important;color:#edf4ff!important;-webkit-text-fill-color:#edf4ff}
html[data-theme=dark] body select option:checked,html[data-theme=dark] .app #vehicle-form select option:checked,html[data-theme=dark] .app #view select option:checked{background-color:#1768d4!important;color:#fff!important;-webkit-text-fill-color:#fff}
html[data-theme=dark] body select option:disabled,html[data-theme=dark] .app #view select option:disabled{color:#9baec5!important;-webkit-text-fill-color:#9baec5}
html[data-theme=dark] :is([role=listbox],.order-vehicle-matches,[data-job-part-results]){background:#192638!important;border-color:#526e91!important;color:#edf4ff!important}
html[data-theme=dark] :is([role=option],.order-vehicle-matches button,.job-part-result){background:#213249!important;color:#edf4ff!important;border-color:#526e91!important}
html[data-theme=dark] :is([role=option],.order-vehicle-matches button,.job-part-result) :is(span,strong,b,small,p){color:inherit!important}
html[data-theme=dark] :is([role=option][aria-selected=true],[role=option]:hover,.order-vehicle-matches button:hover,.order-vehicle-matches button[aria-selected=true]){background:#1768d4!important;color:#fff!important;box-shadow:inset 4px 0 #ff9b32}
html[data-theme=dark] body .app #vehicle-form select[name=itvResult]:has(option[value=Desfavorable]:checked){background:#dc2626!important;color:#fff!important;-webkit-text-fill-color:#fff;border-color:#ff8585!important}
html[data-theme=dark] body .app #vehicle-form select[name=itvResult]:has(option[value=Favorable]:checked){background:#15803d!important;color:#fff!important;-webkit-text-fill-color:#fff;border-color:#70eaa5!important}
html[data-theme=dark] :is(.btn.danger-outline,[data-order-toolbar] [data-order-tool=delete]){background:#dc2626!important;color:#fff!important;border-color:#ff8585!important}html[data-theme=dark] .btn.warn{background:#f97316!important;color:#182b35!important;border-color:#ffb376!important}
html[data-theme=dark] :is(.alert,.photo-error,[role=alert],.portal-status.error,.price-up){color:#ff8282!important}html[data-theme=dark] :is(.date-over,.status.order-age-red,.order-age-red,.priority-urgente){background:#dc2626!important;color:#fff!important;border-color:#ff8585!important}html[data-theme=dark] .app #view .date-chip.date-over{background:#dc2626!important;color:#fff!important;border-color:#ff8585!important}
html[data-theme=dark] .feature-choice{--choice:#247eea;--choice-soft:#163a67;background:#192638;color:#edf4ff;border-color:#3b597c}html[data-theme=dark] .feature-choice:nth-child(3n+2){--choice:#059b77;--choice-soft:#123f35}html[data-theme=dark] .feature-choice:nth-child(3n){--choice:#c75908;--choice-soft:#4c2b12}html[data-theme=dark] .feature-choice>span{color:#fff;background:var(--choice)}html[data-theme=dark] .feature-choice:hover{background:var(--choice-soft)}html[data-theme=dark] .feature-choice[aria-selected=true]{background:var(--choice);border-color:var(--choice);color:#fff}html[data-theme=dark] .feature-choice[aria-selected=true]>span{background:#fff;color:var(--choice)}
html[data-theme=dark] .public-front .welcome-features article:nth-child(n){--accent:#2993ff;--accent-soft:#193957;--accent-dark:#075fbd}html[data-theme=dark] .public-front .welcome-features article:nth-child(3n+2){--accent:#10c49a;--accent-soft:#163e38;--accent-dark:#04795f}html[data-theme=dark] .public-front .welcome-features article:nth-child(3n){--accent:#ff9834;--accent-soft:#46301a;--accent-dark:#a44708}
html[data-theme=dark] .public-front .feature-explorer .scene-heading{background:var(--accent-dark)!important;color:#fff}html[data-theme=dark] .public-front .feature-explorer .scene-heading>span,html[data-theme=dark] .public-front .feature-explorer .scene-heading small{color:#fff}html[data-theme=dark] .public-front .feature-description>span{background:var(--accent);color:#061526}html[data-theme=dark] .public-front .feature-explorer .feature-scene{background:var(--accent-soft)!important}html[data-theme=dark] .public-front .feature-explorer .scene-content{background:#192638!important;color:#edf4ff}html[data-theme=dark] .public-front .feature-explorer .scene-message{background:var(--accent-soft);color:#edf4ff}html[data-theme=dark] .public-front .feature-explorer .scene-steps>span{color:#d7eaff}html[data-theme=dark] .public-front .feature-explorer .scene-steps>span.active{background:var(--accent-dark)!important;color:#fff}
}
@media screen{
html[data-theme=dark] .status,html[data-theme=dark] .tag{background:#15803d!important;color:#fff!important;border-color:#6ee7a1!important}html[data-theme=dark] :is(.status.wait,.priority-alta){background:#f97316!important;color:#172536!important;border-color:#ffb376!important}html[data-theme=dark] .status.closed{background:#2563eb!important;color:#fff!important;border-color:#8cb8ff!important}html[data-theme=dark] :is(.status.order-age-red,.order-age-red,.priority-urgente){background:#dc2626!important;color:#fff!important;border-color:#ff8585!important}html[data-theme=dark] .status.order-age-orange{background:#f97316!important;color:#172536!important;border-color:#ffb376!important}html[data-theme=dark] .status.order-age-green{background:#15803d!important;color:#fff!important;border-color:#6ee7a1!important}html[data-theme=dark] .status.order-age-unknown{background:#334861!important;color:#edf4ff!important;border-color:#647e9f!important}html[data-theme=dark] .scene-fields span{opacity:1}html[data-theme=dark] :is(select,input,textarea):focus-visible{outline:3px solid #69a9ff;outline-offset:2px}
}
@media screen{
html[data-theme=dark] :is(input,textarea):-webkit-autofill,html[data-theme=dark] :is(input,textarea):-webkit-autofill:hover,html[data-theme=dark] :is(input,textarea):-webkit-autofill:focus{-webkit-box-shadow:0 0 0 1000px #111e2e inset!important;-webkit-text-fill-color:#edf4ff!important;caret-color:#edf4ff;border-color:#69a9ff!important}
html[data-theme=dark] datalist option{background:#152236!important;color:#edf4ff!important}html[data-theme=dark] :is([role=menu],[role=menuitem]){background:#192638;color:#edf4ff}html[data-theme=dark] [role=menuitem]:focus-visible{background:#1768d4;color:#fff}
}
/* Office / Workshop / Mobile preview tabs must never retain the light surface in dark mode. */
@media screen{
html[data-theme=dark] .public-front .device-tabs button{background:#213249!important;color:#edf4ff!important;border-color:#5c7b9f!important}
html[data-theme=dark] .public-front .device-tabs button:hover{background:#2e4666!important;color:#fff!important;border-color:#88b6ed!important}
html[data-theme=dark] .public-front .device-tabs button[aria-selected=true]{background:#1768d4!important;color:#fff!important;border-color:#69a9ff!important;box-shadow:inset 0 -3px 0 #ff9b32}
html[data-theme=dark] .public-front .device-tabs button[aria-selected=true]:hover{background:#135ab8!important;color:#fff!important}
html[data-theme=dark] .public-front .device-tabs button:focus-visible{outline:3px solid #ff9b32;outline-offset:3px}
}
/* The signed-in header and home shortcuts use the same dark secondary controls. */
@media screen{
html[data-theme=dark] .app .logout-button,html[data-theme=dark] .app #view .btn.secondary,html[data-theme=dark] .app #view .home-shortcuts>.btn{background:#243e60!important;color:#edf4ff!important;border-color:#6487b1!important}
html[data-theme=dark] .app .logout-button:hover,html[data-theme=dark] .app #view .btn.secondary:hover,html[data-theme=dark] .app #view .home-shortcuts>.btn:hover{background:#315780!important;color:#fff!important;border-color:#90baff!important}
html[data-theme=dark] .app #session-user{background:#243e60!important;color:#d7eaff!important;border-color:#6487b1!important}
html[data-theme=dark] .app #view .guided-action small{color:#b8c9de!important;opacity:1}
html[data-theme=dark] .app #view .notice.help-storage{background:#1c3551!important;color:#d7eaff!important;border-color:#6487b1!important}
html[data-theme=dark] .app #view .notice.help-storage :is(summary,p){color:#d7eaff!important}
}
/* Vehicle and preventive dates share four explicit semantic states. */
@media screen{
html[data-theme=dark] .app #view .date-chip{background:#334861!important;color:#edf4ff!important;border:1px solid #647e9f!important}
html[data-theme=dark] .app #view .date-chip.date-unknown{background:#334861!important;color:#edf4ff!important;border-color:#647e9f!important}
html[data-theme=dark] .app #view .date-chip.date-soon{background:#f97316!important;color:#172536!important;border-color:#ffb376!important}
html[data-theme=dark] .app #view .date-chip.date-ok{background:#15803d!important;color:#fff!important;border-color:#6ee7a1!important}
html[data-theme=dark] .app #view .date-chip.date-over{background:#dc2626!important;color:#fff!important;border-color:#ff8585!important}
}
/* Active worker context is informational, not a pale warning banner. */
@media screen{
html[data-theme=dark] .app #worker-live-banner.worker-preview-banner{background:#1c3551!important;color:#edf4ff!important;border-color:#6487b1!important;border-left-color:#ff9b32!important}
html[data-theme=dark] .app #worker-live-banner strong{color:#edf4ff!important}
html[data-theme=dark] .app #worker-live-banner button{background:#294b74!important;color:#edf4ff!important;border:1px solid #6487b1!important}
html[data-theme=dark] .app #worker-live-banner button:hover{background:#1768d4!important;color:#fff!important;border-color:#90baff!important}
html[data-theme=dark] .app #view .priority:not(.priority-alta):not(.priority-urgente){background:#334861!important;color:#edf4ff!important;border:1px solid #647e9f!important}
}
