/* generated remaps of legacy dark rules */
body{background:#f3f4f6!important;color:#111827!important}
.top img{border-color:#e5e7eb!important}
.brand b{color:#111827!important}
.brand small{color:#6b7280!important}
.top nav a{color:#6b7280!important}
.top nav a.active{background:#ffffff!important;border-color:#e5e7eb!important;color:#8a6a1f!important}
.back{color:#8a6a1f!important}
.ey{color:#8a6a1f!important}
.hero h1{color:#111827!important}
.hero p{color:#6b7280!important}
.simpleRule{background:#f3f4f6!important;border-color:#e5e7eb!important;color:#8a6a1f!important}
.unlock,.panel{background:#ffffff!important;border-color:#e5e7eb!important}
.unlock small{color:#6b7280!important}
.keyrow input,.field input,.field select,.extras input,.extras textarea{background:#f3f4f6!important;border-color:#e5e7eb!important;color:#111827!important}
.btn{background:#ffffff!important;border-color:#e5e7eb!important;color:#8a6a1f!important;background:#173d74!important;border-color:#173d74!important;color:#fff!important}
.btn.primary{background:#173d74!important;border-color:#173d74!important;color:#fff!important}
.btn.good{background:#e3f7eb!important;border-color:#b8e0c7!important;color:#1b6a38!important;background:#e3f7e9!important}
.btn.warn{background:#ffffff!important;border-color:#e5e7eb!important;color:#111827!important}
.btn.soft{background:#ffffff!important;color:#111827!important}
.status{color:#6b7280!important}
.status.ok{color:#257e3a!important}
.status.bad{color:#b42318!important}
.kpi{background:#ffffff!important;border-color:#e5e7eb!important;background:#f3f4f6!important}
.kpi span{color:#6b7280!important}
.kpi strong{color:#111827!important;color:#8a6a1f!important}
.panel h2{color:#111827!important}
.panel>p{color:#6b7280!important}
.field span{color:#6b7280!important}
.dealPreview{background:#e3eaf7!important;border-color:#b8c6e0!important}
.dealPreview b{color:#8a6a1f!important}
.dealPreview small{color:#6b7280!important}
.dealMath strong{color:#257e3a!important}
.dealMath span{color:#6b7280!important}
.extras summary{color:#6b7280!important}
.extras label span{color:#6b7280!important}
.hint{background:#f3f4f6!important;color:#6b7280!important}
th{color:#8a6a1f!important}
td strong{color:#111827!important}
.code{color:#8a6a1f!important}
.deal b{color:#8a6a1f!important}
.deal small{color:#6b7280!important}
.pill.active,.pill.due{background:#e3f7ea!important;border-color:#b8e0c4!important;color:#1b6a34!important}
.pill.off{color:#6b7280!important}
.pill.paid{background:#e3ebf7!important;border-color:#b8c7e0!important;color:#1b396a!important}
.empty{color:#6b7280!important;border-color:#e5e7eb!important}
.step{background:#f3f4f6!important;border-color:#e5e7eb!important}
.step b{color:#8a6a1f!important}
.step span{color:#6b7280!important}
.warn{background:#ffffff!important}
.card{background:#f3f4f6!important;border-color:#e5e7eb!important;box-shadow:none!important;background:#ffffff!important;color:#111827!important}
input,textarea,select{background:#f3f4f6!important;border-color:#e5e7eb!important;color:#111827!important}
button,.btn{background:#173d74!important;border-color:#173d74!important;color:#fff!important}
.alt{background:#ffffff!important}
.danger{background:#f7e5e3!important}
.entry{border-top-color:#e5e7eb!important}
.small{color:#6b7280!important}
.thumb{border-color:#e5e7eb!important;background:#f3f4f6!important}
code{color:#8a6a1f!important}
.status-pill::before{box-shadow:none!important}
.status-waiting{background:#f7f1e3!important;color:#6a521b!important}
.status-paid{background:#e3f7e9!important;color:#1b6a33!important}
.status-production{background:#e3edf7!important;color:#1b406a!important}
.status-dispatched{background:#ede3f7!important;color:#401b6a!important}
.status-cancelled{background:#f7e4e3!important;color:#6a1e1b!important}
.status-unknown{background:#ffffff!important;color:#8a6a1f!important}
.order-card{background:#f3f4f6!important;border-color:#e5e7eb!important}
.order-card.unpaid{border-color:#e5e7eb!important}
.order-card.paid{border-color:#e5e7eb!important}
.order-card.production{border-color:#e5e7eb!important}
.order-card.dispatched{border-color:#e5e7eb!important}
.order-warning{background:#ffffff!important;border-color:#e5e7eb!important;color:#111827!important}
.order-section{background:#f3f4f6!important;border-color:#e5e7eb!important}
.order-section h4{color:#8a6a1f!important}
.muted{color:#6b7280!important}
.money{color:#111827!important}
.order-id{color:#6b7280!important}
.order-actions{border-top-color:#e5e7eb!important}
.btn-production{background:#173d74!important;border-color:#173d74!important;color:#fff!important}
.btn-cancel{background:#f7e5e3!important}
.period-btn{background:#ffffff!important}
.period-btn.active{color:#111827!important}
.health-chip{border-color:#e5e7eb!important}
.health-chip.ok{background:#e3f7e9!important;border-color:#b8e0c4!important;color:#1b6a32!important}
.health-chip.bad{background:#f7e4e3!important;border-color:#e0bab8!important;color:#6a1e1b!important}
.dash-panel{background:#f3f4f6!important;border-color:#e5e7eb!important}
.dash-panel h3{color:#8a6a1f!important}
.funnel-track{background:#ffffff!important}
.source-table th,.source-table td{border-bottom-color:#e5e7eb!important}
.source-table th{color:#8a6a1f!important}
.mini-list span{background:#ffffff!important;color:#8a6a1f!important}
.rec-box{background:#ffffff!important;color:#111827!important}
.trend{border-bottom-color:#e5e7eb!important}
.trend-col:hover::after{background:#f3f4f6!important;color:#111827!important}
.generated-link{background:#f3f4f6!important;border-color:#e5e7eb!important;color:#8a6a1f!important}
.source-presets button{background:#ffffff!important}
.activity-row{border-bottom-color:#e5e7eb!important}
.activity-row time{color:#6b7280!important}
.activity-row strong{color:#8a6a1f!important}
.dashboard-note{color:#6b7280!important}
.admin-key-status{color:#6b7280!important}
/* V26 SIMPLE BUSINESS CONTROL CENTRE */
#businessDashboard.business-dashboard{box-shadow:none!important}
.bd-title p{color:#6b7280!important}
#businessDashboard button.primary{background:#173d74!important;border-color:#173d74!important;color:#fff!important}
#businessDashboard .period-btn.active{background:#173d74!important;border-color:#173d74!important;color:#fff!important}
.bd-period .period-label{color:#6b7280!important}
.bd-kpi::after{background:#e3ecf7!important}
.bd-kpi span{color:#6b7280!important}
.bd-kpi small{color:#6b7280!important}
.bd-sub{color:#6b7280!important}
.bd-gauge-count{color:#6b7280!important}
.chart-legend{color:#6b7280!important}
.pipeline-total{color:#6b7280!important}
.bd-tools summary::after{color:#6b7280!important}
.bd-toolbox p{color:#6b7280!important}
.bd-health .health-chip{color:#6b7280!important}
#businessDashboard .small{color:#6b7280!important}
.bd-empty{color:#6b7280!important}
.netlify-head span{color:#6b7280!important}
.netlify-kpi span{color:#6b7280!important}
.snapshot-note{color:#6b7280!important}
.order-management{box-shadow:none!important}
.om-title p{color:#6b7280!important}
.om-refresh{color:#111827!important;border-color:#e5e7eb!important}
.om-export{background:#ffffff!important;color:#111827!important}
.om-tab{color:#6b7280!important}
.om-stat span{color:#6b7280!important}
.om-id{color:#6b7280!important}
.om-action{color:#6b7280!important}
.om-primary-action{background:#173d74!important;border-color:#173d74!important;color:#fff!important}
.order-detail-panel{box-shadow:none!important}
.order-detail-box .order-line{color:#6b7280!important}
.kpi-trend.flat{color:#6b7280!important}
.insight-card span{color:#6b7280!important}
.insight-card small{color:#6b7280!important}
.bd-live-stamp{color:#6b7280!important}
.bd-live-stamp::before{box-shadow:none!important}
.tax-head p{color:#6b7280!important}
.tax-card-head span{color:#6b7280!important}
.actual-order-stat span{color:#6b7280!important}
.tax-result span{color:#6b7280!important}
.tax-status{color:#6b7280!important}
.tax-method-note{color:#6b7280!important}
.tax-foot{color:#6b7280!important}
.tax-empty{color:#6b7280!important}
.tax-card button.tax-load{background:#173d74!important;border-color:#173d74!important;color:#fff!important}
/* ===== V31 LIVE SALE MANAGER ===== */
.sale-manager{background:#ffffff!important;border-color:#e5e7eb!important}
.sale-live-pill{border-color:#e5e7eb!important}
.sale-live-pill.live{background:#e3f7e9!important;border-color:#b8e0c3!important;color:#1b6a32!important}
.sale-live-pill.off{background:#ffffff!important;color:#8a6a1f!important;color:#6b7280!important}
.sale-product{background:#f3f4f6!important;border-color:#e5e7eb!important}
.sale-product strong{color:#8a6a1f!important}
.sale-preview{color:#257e3b!important}
.sale-status{background:#f3f4f6!important;border-color:#e5e7eb!important;color:#6b7280!important}
.sale-presets button{background:#ffffff!important}
.master-sidebar{background:#e3ecf7!important;color:#1b3c6a!important;box-shadow:none!important}
.master-brand span{color:#6b7280!important}
.master-nav button{color:#6b7280!important}
.master-nav button span{color:#8a6a1f!important}
.master-nav button:hover,.master-nav button.active{color:#111827!important}
.master-sidebar-footer a{color:#6b7280!important}
.master-sidebar-footer a:hover{color:#111827!important}
.master-topbar-title span{color:#6b7280!important}
.master-primary{color:#111827!important}
.master-hero p{color:#6b7280!important}
.master-priority-card:hover{box-shadow:none!important}
.master-priority-card small{color:#6b7280!important}
.small,.muted,.dashboard-note{color:#6b7280!important}
#ordersManager.order-management{box-shadow:none!important}
.om-tabs button{color:#6b7280!important}
.om-tabs button.active{box-shadow:none!important}
.om-table th{color:#6b7280!important}
#businessDashboard.business-dashboard{box-shadow:none!important}
.master-tools{box-shadow:none!important}
.master-tools-summary small{color:#6b7280!important}
.master-chevron{color:#6b7280!important}
/* V34.16 polish */
.master-deploy-note{color:#6b7280!important}
/* V34.38 RESET-NOW ANALYTICS */
.reset-now-btn{background:#f7e3e6!important;border-color:#e0b8bc!important;color:#6a1b24!important}
.since-reset-btn{background:#e3f7ed!important;border-color:#b8e0cd!important;color:#1b6a43!important}
.reset-baseline-note{color:#6b7280!important}
.reset-baseline-note b{color:#8a6a1f!important}
.v38-pagebar{background:#ffffff!important;box-shadow:none!important}
.v38-brand{color:#111827!important}
.v38-brand img{border-color:#e5e7eb!important}
.v38-brand small{color:#6b7280!important}
.v38-pagebar nav a{color:#6b7280!important}
.v38-pagebar nav a:hover,.v38-pagebar nav a.active{color:#8a6a1f!important}
.v38-page-actions a{color:#8a6a1f!important}
.v38-pagehead span{color:#8a6a1f!important}
.v38-pagehead h1{color:#111827!important}
.v38-pagehead p{color:#6b7280!important}
/* V34.21 CREST & CO HEADQUARTERS */
body.hq-mode{background:#f3f4f6!important;color:#111827!important}
body.hq-mode:before{background:#f3f4f6!important}
.hq-mode .master-sidebar{background:#f3f4f6!important;box-shadow:none!important}
.hq-brand-logo{box-shadow:none!important}
.hq-mode .master-brand strong{color:#111827!important}
.hq-mode .master-brand span{color:#8a6a1f!important}
.hq-mode .master-nav button{color:#6b7280!important}
.hq-mode .master-nav button span{color:#8a6a1f!important}
.hq-mode .master-nav button:hover,.hq-mode .master-nav button.active{color:#111827!important}
.hq-mode .master-sidebar-footer a{color:#6b7280!important}
.hq-mode .master-sidebar-footer a:hover{color:#8a6a1f!important}
.hq-mode .master-main{color:#111827!important}
.hq-mode .master-topbar{background:#f3f4f6!important;color:#111827!important}
.hq-mode .master-topbar strong,.hq-mode .master-topbar h1,.hq-mode .master-topbar h2{color:#111827!important}
.hq-mode .master-topbar .master-badge{color:#8a6a1f!important}
.hq-mode .master-topbar a,.hq-mode .master-topbar button,.hq-mode .master-primary{color:#111827!important;box-shadow:none!important}
.hq-mode .master-ghost{color:#111827!important}
.hq-mode .master-hero{background:#ffffff!important;border-color:#e5e7eb!important}
.hq-mode .master-kicker{color:#8a6a1f!important}
.hq-mode .master-hero h1{color:#111827!important}
.hq-mode .master-hero p{color:#6b7280!important}
.hq-status-line span{color:#6b7280!important}
.hq-status-line span:first-child{color:#257e33!important}
.hq-status-line i{box-shadow:none!important}
.hq-mode .master-priority-card{background:#ffffff!important;border-color:#e5e7eb!important;color:#111827!important;box-shadow:none!important}
.hq-mode .master-priority-card .priority-num{color:#8a6a1f!important}
.hq-mode .master-priority-card strong{color:#111827!important}
.hq-mode .master-priority-card small{color:#6b7280!important}
.hq-mode .treasury-priority{background:#ffffff!important}
.hq-mode .card,.hq-mode #ordersManager,.hq-mode .business-dashboard,.hq-mode .master-tools,.hq-treasury-shell{background:#ffffff!important;border-color:#e5e7eb!important;color:#111827!important;box-shadow:none!important}
.hq-mode .master-unlock{background:#ffffff!important}
.hq-mode .card h2,.hq-mode .card h3,.hq-mode .card h4,.hq-mode #ordersManager h2,.hq-mode .business-dashboard h2,.hq-mode .business-dashboard h3,.hq-mode .master-tools summary{color:#111827!important}
.hq-mode .small,.hq-mode .om-title p,.hq-mode .bd-sub,.hq-mode .master-tools-summary small{color:#6b7280!important}
.hq-mode input,.hq-mode textarea,.hq-mode select{background:#f3f4f6!important;border-color:#e5e7eb!important;color:#111827!important}
.hq-mode .om-head,.hq-mode .bd-top,.hq-mode .tax-head{background:#ffffff!important}
.hq-mode .om-tab,.hq-mode .period-btn,.hq-mode .tax-load,.hq-mode .scenario-chips button,.hq-mode .ledger-actions button{color:#8a6a1f!important}
.hq-mode .om-tab.active,.hq-mode .period-btn.active{color:#111827!important}
.hq-mode .order-card,.hq-mode .order-section,.hq-mode .bd-panel,.hq-mode .bd-mini,.hq-mode .kpi,.hq-mode .insight-card,.hq-mode .tax-card{background:#f3f4f6!important;color:#111827!important}
.hq-mode .bd-kpi,.hq-mode .actual-order-stat,.hq-mode .tax-result{color:#111827!important}
.hq-mode .bd-kpi strong,.hq-mode .actual-order-stat strong,.hq-mode .tax-result strong{color:#8a6a1f!important}
.hq-room-heading span,.ledger-ey{color:#8a6a1f!important}
.hq-room-heading p{color:#6b7280!important}
.hq-mode .tax-centre{background:#f3f4f6!important;border-color:#e5e7eb!important;color:#111827!important}
.hq-mode .tax-head h3{color:#111827!important}
.hq-mode .tax-head p{color:#6b7280!important}
.hq-mode .tax-year-badge{color:#8a6a1f!important}
.hq-mode .tax-profile label,.hq-mode .scenario-inputs label{color:#6b7280!important}
.hq-mode .tax-toggle span{color:#6b7280!important}
.hq-mode .tax-status,.hq-mode .tax-foot{color:#6b7280!important}
.tax-source-note{color:#8a6a1f!important}
.treasury-ledger{background:#f3f4f6!important;border-color:#e5e7eb!important}
.ledger-head h3{color:#111827!important}
.ledger-head p{color:#6b7280!important}
.danger-soft{color:#b42318!important}
.ledger-summary span{color:#6b7280!important}
.ledger-summary strong{color:#8a6a1f!important}
.ledger-summary small{color:#6b7280!important}
.ledger-profit-card strong{color:#257e26!important}
.quick-ad strong{color:#8a6a1f!important}
.quick-ad div span{color:#8a6a1f!important}
.quick-ad button,.ledger-add{color:#111827!important}
.ledger-filter-row{color:#6b7280!important}
.ledger-filter-row strong{color:#8a6a1f!important}
.ledger-local-note{color:#6b7280!important}
.ledger-table th{background:#ffffff!important;color:#6b7280!important}
.ledger-table td{color:#6b7280!important}
.ledger-table td.amount{color:#8a6a1f!important}
.ledger-table td.income{color:#257e34!important}
.ledger-table td.expense{color:#7e3c25!important}
.ledger-table .allow-badge{color:#257e31!important}
.ledger-table .not-allow{color:#6b7280!important}
.ledger-delete{color:#b42318!important}
.ledger-empty{color:#6b7280!important}
.hq-mode .netlify-snapshot{background:#f3f4f6!important}
@media(max-width:760px){body.hq-mode:before{background:#f3f4f6!important}}
.tax-official-links a{color:#8a6a1f!important}
/* V34.40 RESET-NOW ANALYTICS + ACCURATE FUNNEL */
.reset-now-btn{background:#f7e3e6!important;border-color:#e0b8bc!important;color:#6a1b24!important}
.sub{color:#6b7280!important}
.unlock{background:#ffffff!important;border-color:#e5e7eb!important}
.unlock input{background:#f3f4f6!important;border-color:#e5e7eb!important;color:#111827!important}
.btn.alt{background:#ffffff!important}
.btn.bad{background:#f7e5e3!important}
.stat{background:#ffffff!important;border-color:#e5e7eb!important}
.stat span{color:#6b7280!important}
.stat strong{color:#8a6a1f!important}
.filters button{background:#ffffff!important;border-color:#e5e7eb!important;color:#6b7280!important}
.filters button.active{color:#111827!important}
.review{background:#ffffff!important;border-color:#e5e7eb!important}
.stars{color:#8a6a1f!important}
.meta{color:#6b7280!important}
.pending{color:#8a6a1f!important}
.approved{color:#257e3b!important}
.rejected{color:#b42318!important}
.verified{color:#111827!important}
.review p{color:#6b7280!important}
.actions{border-top-color:#e5e7eb!important}
header{background:#f3f4f6!important;border-bottom-color:#e5e7eb!important}
header strong{color:#8a6a1f!important}
nav a{border-color:#e5e7eb!important;color:#8a6a1f!important}
.lead{color:#6b7280!important}
.unlock,.toolbar{background:#f3f4f6!important;border-color:#e5e7eb!important}
input,select{background:#f3f4f6!important;border-color:#e5e7eb!important;color:#111827!important}
button{background:#173d74!important;border-color:#173d74!important;color:#fff!important}
.type{color:#8a6a1f!important}
.pill{background:#e3f7ea!important;color:#1b6a36!important}
.keyrow input{background:#f3f4f6!important;border-color:#e5e7eb!important;color:#111827!important}
.card:hover{box-shadow:none!important}
.card h2{color:#111827!important}
.card p{color:#6b7280!important}
.go{color:#8a6a1f!important}
.quick a{color:#8a6a1f!important}
.note{background:#ffffff!important;color:#6b7280!important}
/* Crest & Co. HQ — modern light theme (V34.83). Loaded after each page's own styles; changes look only, no logic. */
:root{--m3-bg:#f6f7f9;--m3-card:#fff;--m3-line:#e5e7eb;--m3-ink:#111827;--m3-mute:#6b7280;--m3-accent:#173d74;--m3-gold:#8a6a1f}
html,body,body.hq-mode{background:var(--m3-bg)!important;color:var(--m3-ink)!important;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif!important;-webkit-font-smoothing:antialiased}
html body:not(#hq) h1,html body:not(#hq) h2,html body:not(#hq) h3,html body:not(#hq) h4,html body:not(#hq) .order-section h4,html body:not(#hq) .order-title{font-family:inherit!important;color:var(--m3-ink)!important;letter-spacing:-.012em;font-weight:650}
html body:not(#hq) h1{font-size:clamp(26px,3.2vw,34px)!important}
html body:not(#hq) .small,html body:not(#hq) small,html body:not(#hq) .muted,html body:not(#hq) p{color:var(--m3-mute)}
html body:not(#hq) .ey,html body:not(#hq) .v38-pagehead>span,html body:not(#hq) .master-tools-ey,html body:not(#hq) .hq-eyebrow{color:var(--m3-gold)!important;letter-spacing:.1em!important;font-size:11px!important;font-weight:700!important}
html body:not(#hq) a{color:var(--m3-accent)}
html body:not(#hq) code{color:#374151!important;background:#f3f4f6;border-radius:4px;padding:1px 5px}
/* top bar */
html body:not(#hq) .v38-pagebar{background:#fff!important;border-bottom:1px solid var(--m3-line)!important;box-shadow:none!important}
html body:not(#hq) .v38-brand b,html body:not(#hq) .v38-brand,html body:not(#hq) .master-brand strong,html body:not(#hq) .brand b,html body:not(#hq) .v38-brand small{color:var(--m3-ink)!important}.v38-brand small{color:var(--m3-mute)!important}
html body:not(#hq) .v38-pagebar nav a{color:#4b5563!important;background:transparent!important;border:1px solid transparent!important;border-radius:8px!important;font-weight:600!important}
html body:not(#hq) .v38-pagebar nav a:hover{background:#f3f4f6!important;color:var(--m3-ink)!important}
html body:not(#hq) .v38-pagebar nav a.active{background:var(--m3-accent)!important;color:#fff!important;border-color:var(--m3-accent)!important}
html body:not(#hq) .v38-page-actions a{background:#fff!important;color:var(--m3-ink)!important;border:1px solid var(--m3-line)!important;border-radius:8px!important}
html body:not(#hq) .v38-pagehead{background:transparent!important;border:0!important}.v38-pagehead h1{color:var(--m3-ink)!important}.v38-pagehead p{color:var(--m3-mute)!important}
/* surfaces */
html body:not(#hq) .card,html body:not(#hq) .order-card,html body:not(#hq) .order-section,html body:not(#hq) .panel,html body:not(#hq) .kpi,html body:not(#hq) .bd-panel,html body:not(#hq) .tax-card,html body:not(#hq) .insight-card,html body:not(#hq) .master-priority-card,html body:not(#hq) .master-inner-card,html body:not(#hq) .unlock,html body:not(#hq) .warn,html body:not(#hq) .master-card,html body:not(#hq) .hq-card,html body:not(#hq) .tool-card,html body:not(#hq) .actual-order-stat,html body:not(#hq) .order-detail-box{background:#fff!important;border:1px solid var(--m3-line)!important;border-radius:12px!important;box-shadow:none!important;color:var(--m3-ink)!important}
html body:not(#hq) .order-section,html body:not(#hq) .order-detail-box{background:#fafafb!important}
html body:not(#hq) .order-card.unpaid{box-shadow:inset 3px 0 0 #d4a017!important}.order-card.paid{box-shadow:inset 3px 0 0 #2f9e5b!important}.order-card.production{box-shadow:inset 3px 0 0 #3b7dd8!important}.order-card.dispatched{box-shadow:inset 3px 0 0 #8b5cf6!important}
html body:not(#hq) .warn{border-left:3px solid #d4a017!important;background:#fffbeb!important}
/* forms */
html body:not(#hq) input,html body:not(#hq) textarea,html body:not(#hq) select{background:#fff!important;color:var(--m3-ink)!important;border:1px solid #d1d5db!important;border-radius:8px!important;box-shadow:none!important}
html body:not(#hq) input::placeholder,html body:not(#hq) textarea::placeholder{color:#9ca3af!important}
html body:not(#hq) input:focus,html body:not(#hq) textarea:focus,html body:not(#hq) select:focus{outline:2px solid #c7d7f0!important;border-color:var(--m3-accent)!important}
html body:not(#hq) button,html body:not(#hq) .btn{border-radius:8px!important;font-weight:600!important;box-shadow:none!important;text-shadow:none!important}
html body:not(#hq) button.alt,html body:not(#hq) .btn.alt,html body:not(#hq) button.ghost,html body:not(#hq) .master-ghost{background:#fff!important;color:var(--m3-ink)!important;border:1px solid #d1d5db!important}
html body:not(#hq) button.danger,html body:not(#hq) .btn.danger{background:#fff!important;color:#b42318!important;border:1px solid #f0b8b3!important}
html body:not(#hq) button:hover{filter:brightness(.97)}
/* sidebar */
html body:not(#hq) .master-sidebar{background:#fff!important;border-right:1px solid var(--m3-line)!important;box-shadow:none!important}
html body:not(#hq) .master-brand strong{color:var(--m3-ink)!important}.master-brand span{color:var(--m3-mute)!important}
html body:not(#hq) .master-nav button{background:transparent!important;color:#4b5563!important;border:0!important}
html body:not(#hq) .master-nav button:hover{background:#f3f4f6!important}.master-nav button.active{background:#eef3fb!important;color:var(--m3-accent)!important}
html body:not(#hq) .master-topbar{background:#fff!important;border-bottom:1px solid var(--m3-line)!important;box-shadow:none!important}
html body:not(#hq) .master-topbar-title strong{color:var(--m3-ink)!important}.master-topbar-title span{color:var(--m3-mute)!important}
html body:not(#hq) .master-sidebar-footer a{color:var(--m3-accent)!important}
/* pills & tables */
html body:not(#hq) .status-pill{border:0!important;font-size:11px!important;padding:5px 10px!important}.status-pill::before{box-shadow:none!important}
html body:not(#hq) .status-waiting{color:#8a5a00!important;background:#fef3c7!important}.status-paid{color:#166534!important;background:#dcfce7!important}.status-production{color:#1e40af!important;background:#dbeafe!important}.status-dispatched{color:#6b21a8!important;background:#f3e8ff!important}.status-cancelled{color:#991b1b!important;background:#fee2e2!important}.status-unknown{color:#4b5563!important;background:#f3f4f6!important}
html body:not(#hq) table{border-collapse:collapse}th{color:var(--m3-mute)!important;font-weight:600;background:#fafafb!important}td,th{border-color:var(--m3-line)!important}
html body:not(#hq) hr,html body:not(#hq) .entry{border-color:var(--m3-line)!important}
html body:not(#hq) *{text-shadow:none!important}
@media (max-width:700px){.wrap{padding:14px!important}.v38-pagebar{flex-wrap:wrap}.v38-pagebar nav{overflow-x:auto;white-space:nowrap}}
/* ---- generated remaps of the legacy dark rules ---- */

.v38-brand b,.master-brand strong,.brand b{font-family:inherit!important;letter-spacing:.06em}
.top,.top nav a,.top .brand small{background:transparent}

html body:not(#hq) *{font-family:inherit!important}
html body:not(#hq) .hq-room-heading,html body:not(#hq) .ledger-head{background:#fff!important;border-color:var(--m3-line)!important}
html body:not(#hq) .master-primary,html body:not(#hq) .ledger-add,html body:not(#hq) button.master-primary{background:var(--m3-accent)!important;color:#fff!important;border:1px solid var(--m3-accent)!important}
html body:not(#hq) .master-menu-btn{background:#fff!important;color:var(--m3-ink)!important;border:1px solid var(--m3-line)!important}
html body:not(#hq) .period-btn,html body:not(#hq) .om-tab,html body:not(#hq) .source-presets button,html body:not(#hq) .sale-presets button{color:var(--m3-ink)!important;background:#fff!important;border:1px solid #d1d5db!important}
html body:not(#hq) .period-btn.active,html body:not(#hq) .om-tab.active,html body:not(#hq) .om-tabs button.active{background:var(--m3-accent)!important;color:#fff!important;border-color:var(--m3-accent)!important}
html body:not(#hq) .order-warning{background:#fffbeb!important;border:1px solid #f3d98b!important;color:#7a5200!important;font-weight:600!important}
