/* Robox-inspired magazzino theme v0.8.22.
   Red/graphite/white presentation based on robox.it corporate materials.
   Brand red is an accessible adaptation, not an asserted exact brand HEX.
   Colors only: app.css continues to own layout, spacing and print rules.
   The default follows the OS/browser color scheme; no account data stored. */
:root {
  color-scheme:light;
  --navy:#292a2e;--navy2:#393b41;--ink:#282c32;--muted:#666d76;
  --bg:#f4f4f5;--card:#ffffff;--line:#dcdde0;
  --blue:#bc2535;--blue-dark:#991e2c;
  --green:#18734f;--red:#ac3542;--amber:#996116;
  --shadow:0 6px 22px rgba(24,24,30,.065);
  --brand-red:#bc2535;--surface-raised:#fff;
}
html {color-scheme:light}
:where(input,select,textarea,button){accent-color:var(--blue)}

/* Blue UI accents become Robox-red in the light scheme. */
a{color:#9e1e2d}
.topbar{border-bottom:3px solid #a84954}
.brand small{color:#b55c68}
.mainnav a:hover{background:#ac2130}
.identity{color:#f6d7dc}
.linkbtn{color:#b55c68}
.eyebrow{color:#9e1e2d}
.breadcrumbs a{color:#9e1e2d}
.btn{color:#9e1e2d}
.stack label,.form-card label{color:#9e1e2d}
input:focus,textarea:focus,select:focus{border-color:#a84954}
.stat b{color:#9e1e2d}
.tile-icon{color:#9e1e2d}
.custodian-badge{border:1px solid #e8c2c7}
.custodian-icon{background:#faeeef;color:#9e1e2d}
.event-mark{background:#d25f6b;box-shadow:0 0 0 2px #e8c2c7}
.event-type{color:#9d3040}
.admin-tile span{color:#9e1e2d}
.camera-frame{background:#ac2130}
.camera-frame #camera-placeholder{color:#b55c68;background:#ac2130}
.mode-current strong{color:#9e1e2d}
.mode-current small{color:#9e1e2d}
.scan-mode-banner.audit-mode{border-color:#d38f99;color:#9e1e2d}
.scan-mode-banner.audit-mode .mode-icon{background:#faeeef}
.scan-live-label{color:#9e1e2d}
.selection-count{color:#9e1e2d}
.selection-empty{color:#9e1e2d}
.selection-empty small{color:#9d3040}
.selected-item strong{color:#9e1e2d}
.selected-item .item-state{color:#9e1e2d}
.scan-action-panel .deposit-group label{color:#9e1e2d}
.batch-message{border:1px solid #d38f99;color:#9e1e2d}
.home-scan-tile{background:linear-gradient(135deg,#ac2130 0%,#ac2130 100%);border-color:#a84954}
.home-scan-choice:focus-visible{outline:3px solid #d38f99}
.home-scan-tile>span:last-child{color:#f6d7dc}
.home-scan-main{color:#9e1e2d}
.home-scan-main:hover{color:#9e1e2d}
.home-scan-secondary{border:1px solid #d38f99}
.quick-camera-frame #quick-camera-placeholder{color:#b55c68;background:#ac2130}
.quick-item-meta{color:#9e1e2d}
.quick-custodian span{color:#9e1e2d}
.quick-custodian strong{color:#9e1e2d}
@media (max-width:800px){.mobile-nav a[aria-current="page"]{color:#9e1e2d}}
@media (max-width:800px){.mobile-nav a:focus-visible{outline:3px solid #a84954}}
@media (max-width:800px){.dock-title{color:#9e1e2d}}
@media (max-width:800px){.dock-title span{color:#9e1e2d}}
@media (max-width:800px){.dock-text-button{color:#9e1e2d}}
@media (max-width:800px){.mobile-destination label{color:#9e1e2d}}
.verification-start-card{border-top:4px solid #a84954}
.verification-start-icon.audit-icon{color:#9e1e2d}
.verification-filters label{color:#9e1e2d}
.verification-history-row{color:#9e1e2d}
.verification-history-row:hover{border-color:#d38f99}
.state-open{color:#9e1e2d}
.verification-progress-heading strong{color:#9e1e2d}
.verification-meter{accent-color:#ac2130}
.meter-progress{accent-color:#ac2130}
#verification-update-notice{color:#9e1e2d}
.manual-confirm summary{color:#9e1e2d}
.verification-chip{color:#9e1e2d}
.verification-chip strong{color:#9e1e2d}
.count-tag{color:#9e1e2d}
.check-type{color:#9e1e2d}
.status-unchecked{color:#9e1e2d}
.check-details strong{color:#9e1e2d}
.audit-target-option:has(input:checked){border-color:#d38f99}
.audit-target-option input{accent-color:#ac2130}
.audit-target-option small{color:#9e1e2d}
.home-audit-row-main>strong{color:#9e1e2d}
.home-audit-row-main>small{color:#9e1e2d}
.home-audit-count{color:#9e1e2d}
.verification-active-entry{color:#9e1e2d}
.verification-active-entry:hover,.verification-active-entry:focus-visible{border-color:#d38f99}
.verification-active-title small{color:#9e1e2d}
.verification-active-progress{color:#9e1e2d}
.verification-active-arrow{color:#9e1e2d}
.audit-create-details>summary{color:#9e1e2d}
.audit-create-details>summary small{color:#9d3040}
.verification-group-disclosure>summary{color:#9e1e2d}
.home-audit-alert{border:1px solid #d38f99;color:#9e1e2d}
.home-audit-alert:hover{background:#faeeef}
.home-audit-alert-dot{background:#ac2130}
.inventory-search-main label{color:#9e1e2d}
.inventory-filter-details>summary{color:#9e1e2d}
.inventory-filter-grid label{color:#9e1e2d}
.inventory-selection{border-color:#e8c2c7}
.inventory-selection-top strong{color:#9e1e2d}
.inventory-feedback{color:#9e1e2d}
.inventory-review summary{color:#9e1e2d}
.inventory-results-title{color:#9e1e2d}
.inventory-check input{accent-color:#ac2130}
.inventory-code strong{color:#9e1e2d}
.inventory-pagination{color:#9e1e2d}
@media (max-width:800px){.inventory-mobile-selection-dock:not([hidden]){border:1px solid #d38f99;box-shadow:0 6px 30px #a8495460;color:#9e1e2d}}
.maintenance-facts strong{color:#9e1e2d}
.backup-main strong{color:#9e1e2d}
.error-log-stack{background:#ac2130}
.report-kpi{color:#9e1e2d}
.report-kpi:hover,.report-kpi:focus-visible{border-color:#d38f99}
.report-kpi small{color:#9e1e2d}
.report-bar-row{color:#9e1e2d}
.report-bar-meta b{color:#9e1e2d}
.report-bar-row progress{accent-color:#ac2130}
.report-bar-row progress::-webkit-progress-value{background:#ac2130}
.report-bar-row progress::-moz-progress-bar{background:#ac2130}
.report-expand summary{color:#9e1e2d}
.report-audit-stat b{color:#9e1e2d}
.report-audit-stat span{color:#9e1e2d}
.report-audit-row{color:#9e1e2d}
.report-audit-row:hover,.report-audit-row:focus-visible{border-color:#e8c2c7}
.report-audit-row .arrow{color:#b55c68}
.report-activity-entry{color:#9e1e2d}
.report-activity-entry:hover,.report-activity-entry:focus-visible{border-color:#e8c2c7}
.report-activity-copy{color:#9e1e2d}
.report-event-kind{color:#9e1e2d}
.report-date-filter label{color:#9e1e2d}
.field-builder-empty{border:1px dashed #d38f99}
.custom-field-heading{color:#9e1e2d}
.inventory-custom-filter-heading strong{color:#9e1e2d}
.inventory-range-label{color:#9e1e2d}
.inventory-page .inventory-search-main label{color:#9e1e2d}
.inventory-quick-chip{color:#9e1e2d}
.inventory-quick-chip.is-active{background:#faeeef;border-color:#d38f99;color:#9e1e2d}
.inventory-quick-chip:focus-visible,.inventory-active-chip:focus-visible,.inventory-clear-link:focus-visible{outline:3px solid #a84954}
.inventory-applied-heading{color:#9e1e2d}
.inventory-count-pill{color:#9e1e2d}
.inventory-clear-link{color:#9e1e2d}
.inventory-active-chip{border:1px solid #d38f99;color:#9e1e2d}
.inventory-active-chip span:last-child{color:#9e1e2d}
.inventory-page .inventory-filter-details>summary{color:#9e1e2d}
.inventory-filter-chevron{color:#9e1e2d}
.inventory-page .inventory-filter-details[open]>summary{border-color:#e8c2c7}
.inventory-filter-group legend{color:#9e1e2d}
.group-create>details>summary,.group-form-details>summary{color:#9e1e2d}
.group-summary:hover{border-color:#d38f99}
.group-code{color:#9e1e2d}
.group-summary-metrics{color:#9e1e2d}
.group-stats b{color:#9e1e2d}
.group-inline-edit>summary,.group-remove>summary{color:#9e1e2d}
.quick-item-group{border:1px solid #e8c2c7;color:#9e1e2d}
.quick-item-group a{color:#9e1e2d}
.assembly-banner{border-left:5px solid #a84954}
.assembly-progress-card progress{accent-color:#ac2130}
.audit-target-search{border:1px solid #d38f99}
.integrated-select-trigger:focus-visible,.integrated-select.is-open .integrated-select-trigger{border-color:#a84954}
.integrated-select-caret{color:#9e1e2d}
.integrated-select-panel{border:1px solid #d38f99}
.integrated-select-search{border:1px solid #d38f99}
.integrated-select-option:hover,.integrated-select-option.is-active{color:#9e1e2d}
.integrated-select-option[aria-selected="true"]{color:#9e1e2d}
.markdown-tool{color:#9e1e2d}
.markdown-tool:hover,.markdown-tool:focus-visible{border-color:#e8c2c7}
.markdown-preview-toggle{color:#9e1e2d}
.markdown-content code{color:#9e1e2d}
/* Hand-tuned primary controls and corporate masthead. */
.topbar{background:var(--navy);border-bottom:3px solid var(--brand-red)}
.brand-mark{color:#ff6572;font-weight:900}
.brand:hover .brand-mark{color:#ff9ba4}
a{color:#a91f2f}
a:hover{color:#851727}
.btn.primary{background:var(--blue);border-color:var(--blue);color:white}
.btn.primary:hover{background:var(--blue-dark)}
.home-scan-tile{background:linear-gradient(135deg,#bc2535 0%,#841c2e 100%);color:white}
.home-scan-main{background:#fff;color:#8c1c2a}
.home-scan-main:hover{background:#fff0f2;color:#771723}
.home-scan-secondary{border-color:#f1a6ac;color:#fff}
.topbar a,.topbar a:hover{color:#fff}
.topbar .linkbtn{color:#ffbdc2}
.topbar .brand-mark{color:#ff7b86}
:where(a,button,input,select,textarea,[role="combobox"]):focus-visible{outline-color:var(--blue)}

/* Dark mode follows the same device preference that controls native widgets.
   All historical light UI colors get dark equivalents (including generated
   audit and scanner states) rather than leaving hardcoded white panels. */
@media screen and (prefers-color-scheme:dark) {
  :root {
    color-scheme:dark;
    --navy:#17191d;--navy2:#282a30;--ink:#eff0f3;--muted:#abb3bd;
    --bg:#15181d;--card:#23282e;--line:#424950;
    --blue:#d84657;--blue-dark:#b52b3c;
    --green:#7ad7a4;--red:#ff8d98;--amber:#f1c179;
    --shadow:0 7px 28px rgba(0,0,0,.25);
    --brand-red:#ef6270;--surface-raised:#2a3037;
  }
  html{color-scheme:dark}
  a{color:#ff9099}
  .topbar{border-bottom:3px solid #84444f}
  .brand{color:#f9f9fb}
  .brand small{color:#fabec4}
  .mainnav a{color:#f9f9fb}
  .mainnav a:hover{background:#362a2f;color:#f9f9fb}
  .identity{color:#fabec4}
  .linkbtn{color:#fabec4}
  .footer{color:#b1bcc7}
  .eyebrow{color:#ff9099}
  .breadcrumbs{color:#b1bcc7}
  .breadcrumbs a{color:#ff9099}
  .btn{border:1px solid #4f5760;color:#ff9099}
  .btn:hover{background:#242a30}
  .btn.primary{color:#f9f9fb}
  .btn.danger-button{color:#ff8b97;border-color:#7f454f;background:#21262c}
  .card{border:1px solid #3f4851}
  .subtle{color:#b1bcc7}
  .hint{color:#b1bcc7}
  .stack label,.form-card label{color:#ff9099}
  input,textarea,select{background:#21262c;border:1px solid #4f5760}
  input:focus,textarea:focus,select:focus{border-color:#84444f}
  .alert.success{background:#242a30;border-color:#417555;color:#74dba3}
  .alert.danger{background:#242a30;border-color:#7f454f;color:#ff8b97}
  .stat{border:1px solid #3f4851;background:#21262c}
  .stat b{color:#ff9099}
  .stat span{color:#b1bcc7}
  .item-tile:hover{background:#21262c}
  .tile-icon{background:#242a30;color:#ff9099}
  .item-tile .arrow{color:#b1bcc7}
  th{background:#21262c;color:#b1bcc7}
  th,td{border-bottom:1px solid #3f4851}
  td small{color:#b1bcc7}
  .mini-label{color:#b1bcc7}
  .badge.green{color:#74dba3;background:#242a30}
  .badge.amber{color:#f9c06d;background:#40321f}
  .badge.red{color:#ff8b97;background:#242a30}
  .badge.neutral{color:#b1bcc7;background:#242a30}
  .custodian-badge{background:#242a30;border:1px solid #533a43}
  .custodian-icon{background:#31262c;color:#ff9099}
  .flag-list>div{border-bottom:1px solid #3f4851}
  .facts dt,.facts dd{border-bottom:1px solid #3f4851}
  .callout{background:#242a30;color:#f9c06d}
  .timeline{border-left:2px solid #3f4851}
  .event-mark{background:#9b2737;border:3px solid #3f4851;box-shadow:0 0 0 2px #533a43}
  .event-meta time{color:#b1bcc7}
  .event-type{color:#ff9099}
  .admin-tile span{color:#ff9099}
  .edit-details summary::after{color:#b1bcc7}
  .camera-frame{background:#211e24}
  .camera-frame #camera-placeholder{color:#fabec4;background:#211e24}
  .scan-mode-switch{border:1px solid #3f4851;background:#242a30}
  .mode-current strong{color:#ff9099}
  .mode-current small{color:#ff9099}
  .scan-mode-banner{border:2px solid #417555;background:#242a30;color:#74dba3}
  .scan-mode-banner.self-check-mode{border-color:#417555;background:#242a30}
  .scan-mode-banner.audit-mode{border-color:#533a43;background:#242a30;color:#ff9099}
  .scan-mode-banner .mode-icon{background:#21372b}
  .scan-mode-banner.audit-mode .mode-icon{background:#31262c}
  .self-check-quick{color:#74dba3;border-color:#417555;background:#21262c}
  .scan-live-label{color:#ff9099}
  .manual-entry{border-top:1px solid #3f4851}
  .selection-count{background:#242a30;color:#ff9099}
  .selection-empty{border:2px dashed #3f4851;color:#ff9099}
  .selection-empty small{color:#ff9099}
  .selected-item{border:1px solid #3f4851;background:#21262c}
  .selected-item strong{color:#ff9099}
  .selected-item small{color:#b1bcc7}
  .selected-item .item-state{background:#242a30;color:#ff9099}
  .selected-item .item-state.warning{background:#40321f;color:#f9c06d}
  .selected-item .item-state.positive{background:#242a30;color:#74dba3}
  .scan-action-panel .deposit-group{border-top:1px solid #3f4851}
  .scan-action-panel .deposit-group label{color:#ff9099}
  .batch-message{border:1px solid #533a43;background:#242a30;color:#ff9099}
  .batch-message.error{background:#242a30;border-color:#7f454f;color:#ff8b97}
  .batch-message.success{background:#242a30;border-color:#417555;color:#74dba3}
  .home-scan-tile{background:linear-gradient(135deg,#9b2737 0%,#9b2737 100%);border-color:#84444f;color:#f9f9fb}
  .home-scan-choice:focus-visible{outline:3px solid #533a43}
  .home-scan-tile>span:last-child{color:#fabec4}
  .home-self-check{background:#242a30;border:1px solid #417555}
  .home-check-icon{background:#21372b;color:#74dba3}
  .home-check-eyebrow{color:#74dba3}
  .home-self-check h2{color:#74dba3}
  .home-self-check p{color:#b1bcc7}
  .home-check-button{background:#21262c;border-color:#417555;color:#74dba3}
  .home-check-button:hover{background:#21262c;border-color:#417555}
  .home-check-button:focus-visible{outline:3px solid #417555}
  .home-scan-main{background:#21262c;color:#ff9099}
  .home-scan-main:hover{background:#242a30;color:#ff9099}
  .home-scan-secondary{border:1px solid #533a43;color:#f9f9fb}
  .home-scan-secondary:hover{background:rgba(33,38,44,0.15);color:#f9f9fb}
  .quick-camera-frame #quick-camera-placeholder{color:#fabec4;background:#211e24}
  .quick-item-meta{color:#ff9099}
  .quick-custodian{background:#242a30}
  .quick-custodian span{color:#ff9099}
  .quick-custodian strong{color:#ff9099}
  @media (max-width:800px){.mobile-nav{background:#21262c;border-top:1px solid #3f4851}}
  @media (max-width:800px){.mobile-nav a{color:#b1bcc7}}
  @media (max-width:800px){.mobile-nav a[aria-current="page"]{background:#242a30;color:#ff9099}}
  @media (max-width:800px){.mobile-nav a:focus-visible{outline:3px solid #84444f}}
  @media (max-width:800px){.mobile-action-dock{background:rgba(33,38,44,0.98);border-top:1px solid #3f4851}}
  @media (max-width:800px){.dock-title{color:#ff9099}}
  @media (max-width:800px){.dock-title span{color:#ff9099}}
  @media (max-width:800px){.dock-text-button{color:#ff9099}}
  @media (max-width:800px){.dock-context{color:#b1bcc7}}
  @media (max-width:800px){.mobile-destination label{color:#ff9099}}
  .verification-start-card{border-top:4px solid #84444f}
  .verification-start-card.self-start-card{border-top-color:#417555;background:linear-gradient(145deg,#21262c,#21262c 55%)}
  .verification-start-icon{background:#242a30;color:#74dba3}
  .verification-start-icon.audit-icon{background:#242a30;color:#ff9099}
  .verification-filters label{color:#ff9099}
  .verification-history-row{color:#ff9099;background:#21262c}
  .verification-history-row:hover{background:#21262c;border-color:#533a43}
  .state-open{background:#242a30;color:#ff9099}
  .state-done{background:#242a30;color:#74dba3}
  .verification-progress-heading strong{color:#ff9099}
  .verification-meter{background:#242a30;accent-color:#9b2737}
  .verification-meter::-webkit-progress-bar{background:#242a30}
  .meter-progress{accent-color:#9b2737}
  .meter-success{accent-color:#152e24}
  .meter-warning{accent-color:#5e3c1e}
  .meter-danger{accent-color:#802936}
  .state-incomplete{background:#242a30;color:#f9c06d}
  .state-problem{background:#242a30;color:#ff8b97}
  .verification-stats .positive-stat b{color:#74dba3}
  .verification-stats .danger-stat b{color:#ff8b97}
  .verification-stats .warning-stat b{color:#f9c06d}
  #verification-update-notice{background:#242a30;color:#ff9099}
  .manual-confirm summary{color:#ff9099}
  .verification-chip{background:#242a30;color:#ff9099}
  .verification-chip strong{color:#ff9099}
  .count-tag{background:#242a30;color:#ff9099}
  .danger-count{background:#242a30;color:#ff8b97}
  .warn-count{background:#40321f;color:#f9c06d}
  .success-count{background:#242a30;color:#74dba3}
  .check-item{border:1px solid #3f4851;background:#21262c}
  .check-item-missing{border-color:#7f454f;background:#21262c}
  .check-item-unexpected{border-color:#845b39;background:#21262c}
  .check-item-confirmed{border-color:#417555;background:#21262c}
  .check-type{color:#ff9099}
  .status-unchecked{background:#242a30;color:#ff9099}
  .status-confirmed{background:#242a30;color:#74dba3}
  .status-unexpected{background:#40321f;color:#f9c06d}
  .status-missing{background:#242a30;color:#ff8b97}
  .check-details{color:#b1bcc7}
  .check-details strong{color:#ff9099}
  .check-custody-changed{color:#f9c06d}
  .check-note{color:#ff8b97;background:#21262c}
  .check-missing-form summary{color:#ff8b97}
  .danger-button{border-color:#7f454f;color:#ff8b97;background:#21262c}
  .danger-button:hover{background:#242a30}
  .home-check-live{color:#74dba3!important;background:#242a30;border:1px solid #417555}
  .audit-target-option{background:#21262c}
  .audit-target-option:has(input:checked){border-color:#533a43;background:#21262c}
  .audit-target-option input{accent-color:#9b2737}
  .audit-target-option small{color:#ff9099}
  .home-audit-row{border:1px solid #3f4851;background:#21262c}
  .home-audit-row-main>strong{color:#ff9099}
  .home-audit-row-main>small{color:#ff9099}
  .home-audit-count{color:#ff9099}
  .home-check-last{color:#74dba3!important}
  .verification-active-entry{background:#21262c;border:1px solid #3f4851;color:#ff9099}
  .verification-active-entry:hover,.verification-active-entry:focus-visible{background:#242a30;border-color:#533a43}
  .verification-active-title small{color:#ff9099}
  .verification-active-progress{color:#ff9099}
  .verification-active-arrow{color:#ff9099}
  .audit-create-details{border:1px solid #3f4851;background:#21262c}
  .audit-create-details>summary{color:#ff9099}
  .audit-create-details>summary small{color:#ff9099}
  .audit-create-details .global-start-card{border-top:1px solid #3f4851}
  .verification-group-disclosure>summary{color:#ff9099}
  .home-audit-alert{border:1px solid #533a43;background:#242a30;color:#ff9099}
  .home-audit-alert:hover{background:#31262c}
  .home-audit-alert-dot{background:#9b2737}
  .inventory-search-main label{color:#ff9099}
  .inventory-filter-details{border-top:1px solid #3f4851}
  .inventory-filter-details>summary{color:#ff9099}
  .inventory-filter-hint{color:#b1bcc7}
  .inventory-filter-grid label{color:#ff9099}
  .inventory-selection{border-color:#533a43;background:#21262c}
  .inventory-selection-top strong{color:#ff9099}
  .inventory-selection-top small{color:#b1bcc7}
  .inventory-feedback{color:#ff9099}
  .inventory-feedback.error{color:#ff8b97}
  .inventory-review{border-top:1px solid #3f4851}
  .inventory-review summary{color:#ff9099}
  .inventory-selected-entry{border:1px solid #3f4851;background:#21262c}
  .inventory-results-title{color:#ff9099}
  .inventory-check input{accent-color:#9b2737}
  .inventory-code strong{color:#ff9099}
  .inventory-pagination{color:#ff9099}
  @media (max-width:650px){.inventory-table tr{border:1px solid #3f4851;background:#21262c}}
  @media (max-width:650px){.inventory-table .inventory-type{color:#b1bcc7}}
  @media (max-width:800px){.inventory-mobile-selection-dock:not([hidden]){background:#242a30;border:1px solid #533a43;box-shadow:0 6px 30px #84444f60;color:#ff9099}}
  .maintenance-facts>div{border:1px solid #3f4851;background:#21262c}
  .maintenance-facts span{color:#b1bcc7}
  .maintenance-facts strong{color:#ff9099}
  .backup-row{border:1px solid #3f4851;background:#21262c}
  .backup-main strong{color:#ff9099}
  .backup-main small{color:#b1bcc7}
  .backup-result{color:#74dba3}
  .backup-result.maintenance-error{color:#ff8b97}
  .error-log-row{border:1px solid var(--line,#3f4851)}
  .error-log-meta{color:var(--muted,#b1bcc7)}
  .error-log-stack{background:#211e24;color:#f9f9fb}
  .report-kpi{background:#21262c;color:#ff9099}
  .report-kpi:hover,.report-kpi:focus-visible{background:#21262c;border-color:#533a43}
  .report-kpi small{color:#ff9099}
  .report-kpi.report-danger strong{color:#ff8b97}
  .report-kpi.report-warning strong{color:#f9c06d}
  .report-kpi.report-positive strong{color:#74dba3}
  .report-explanation{color:#b1bcc7}
  .report-bar-row{color:#ff9099}
  .report-bar-row:hover,.report-bar-row:focus-visible{background:#242a30}
  .report-bar-meta{color:#b1bcc7}
  .report-bar-meta b{color:#ff9099}
  .report-bar-row progress{background:#242a30;accent-color:#9b2737}
  .report-bar-row progress::-webkit-progress-bar{background:#242a30}
  .report-bar-row progress::-webkit-progress-value{background:#9b2737}
  .report-bar-row progress::-moz-progress-bar{background:#9b2737}
  .report-expand summary{color:#ff9099}
  .report-audit-stat{background:#21262c}
  .report-audit-stat b{color:#ff9099}
  .report-audit-stat span{color:#ff9099}
  .report-audit-clear b{color:#74dba3}
  .report-audit-warn b{color:#f9c06d}
  .report-audit-bad b{color:#ff8b97}
  .report-audit-row{color:#ff9099;background:#21262c}
  .report-audit-row:hover,.report-audit-row:focus-visible{background:#21262c;border-color:#533a43}
  .report-audit-person small{color:#b1bcc7}
  .report-audit-results small{color:#b1bcc7}
  .report-audit-row .arrow{color:#fabec4}
  .report-activity-entry{background:#21262c;color:#ff9099}
  .report-activity-entry:hover,.report-activity-entry:focus-visible{background:#21262c;border-color:#533a43}
  .report-activity-entry small{color:#b1bcc7}
  .report-activity-copy{color:#ff9099}
  .report-event-kind{color:#ff9099}
  .report-date-filter label{color:#ff9099}
  .field-builder{background:#21262c}
  .field-builder-empty{border:1px dashed #533a43}
  .field-rule-card{border:1px solid #3f4851}
  .field-remove{border-color:#3f4851!important;color:#ff8b97!important;background:#21262c!important}
  .field-required-mark{color:#ff8b97}
  .custom-field-heading{color:#ff9099}
  .field-required-mark{color:#ff8b97}
  .type-photo-editor{background:#21262c}
  .type-photo-editor>img{border:1px solid #3f4851;background:#242a30}
  .item-type-image-detail{background:#242a30}
  .inventory-type-image{background:#242a30}
  .tile-icon-image{background:#242a30}
  .item-form-type-preview img{background:#242a30}
  .quick-type-image{background:#242a30}
  .inventory-custom-filter-section{border-top:1px solid #3f4851}
  .inventory-custom-filter-heading strong{color:#ff9099}
  .inventory-custom-filter-heading small{color:#b1bcc7}
  .inventory-filter-kind{color:#b1bcc7}
  .inventory-range-label{color:#ff9099}
  .inventory-filter-error{background:#242a30;border:1px solid #7f454f;color:#ff8b97}
  .inventory-page .inventory-search-main label{color:#ff9099}
  .inventory-search-intro small{color:#b1bcc7}
  .inventory-quick-title{color:#b1bcc7}
  .inventory-quick-chip{border:1px solid #3f4851;background:#21262c;color:#ff9099}
  .inventory-quick-chip:hover{background:#242a30}
  .inventory-quick-chip.is-active{background:#31262c;border-color:#533a43;color:#ff9099}
  .inventory-quick-chip:focus-visible,.inventory-active-chip:focus-visible,.inventory-clear-link:focus-visible{outline:3px solid #84444f}
  .inventory-applied{border-top:1px solid #3f4851}
  .inventory-applied-heading{color:#ff9099}
  .inventory-count-pill{background:#242a30;color:#ff9099}
  .inventory-clear-link{color:#ff9099}
  .inventory-active-chip{border:1px solid #533a43;background:#242a30;color:#ff9099}
  .inventory-active-chip:hover{background:#242a30}
  .inventory-active-chip span:last-child{color:#ff9099}
  .inventory-page .inventory-filter-details>summary{border:1px solid #3f4851;background:#21262c;color:#ff9099}
  .inventory-filter-summary-copy small{color:#b1bcc7}
  .inventory-filter-chevron{color:#ff9099}
  .inventory-page .inventory-filter-details[open]>summary{background:#242a30;border-color:#533a43}
  .inventory-filter-group{background:#21262c;border:1px solid #3f4851}
  .inventory-filter-group legend{color:#ff9099}
  .inventory-page .inventory-custom-filter-section{border:1px solid #3f4851;background:#21262c}
  .inventory-page .inventory-filter-actions{border-top:1px solid #3f4851}
  .inventory-filter-dirty{color:#f9c06d}
  @media (max-width:650px){.inventory-page .inventory-filter-actions{background:rgba(33,38,44,0.98);border:1px solid #3f4851}}
  .group-create>details>summary,.group-form-details>summary{color:#ff9099}
  .group-summary:hover{border-color:#533a43}
  .group-code{color:#ff9099}
  .group-summary-metrics{color:#ff9099}
  .group-stats>div{border:1px solid #3f4851;background:#21262c}
  .group-stats b{color:#ff9099}
  .group-stats span{color:#b1bcc7}
  .group-requirement-row{border:1px solid #3f4851}
  .group-requirement-type img,.group-component img{border:1px solid #3f4851;background:#242a30}
  .group-inline-edit>summary,.group-remove>summary{color:#ff9099}
  .group-form-details{border-top:1px solid #3f4851}
  .group-component{border:1px solid #3f4851}
  .group-component-body small{color:#b1bcc7}
  .quick-item-group{border:1px solid #533a43;background:#242a30;color:#ff9099}
  .quick-item-group a{color:#ff9099}
  .group-type-row{border:1px solid #3f4851}
  .assembly-banner{border-left:5px solid #84444f;background:#242a30}
  .assembly-progress-card progress{accent-color:#9b2737}
  .assembly-slot{border:1px solid #3f4851}
  .assembly-slot img{background:#242a30}
  .assembly-slot b{color:#f9c06d}
  .assembly-slot-complete{border-color:#417555;background:#242a30}
  .assembly-slot-complete b{color:#74dba3}
  .assembly-search-row{border:1px solid #3f4851}
  @media (max-width:768px){.assembly-mobile-dock{background:rgba(33,38,44,0.98);border-top:1px solid #3f4851}}
  .audit-target-search{border:1px solid #533a43;background:#21262c}
  .integrated-select-trigger{border:1px solid #4f5760}
  .integrated-select-trigger:focus-visible,.integrated-select.is-open .integrated-select-trigger{border-color:#84444f}
  .integrated-select-empty .integrated-select-value{color:#b1bcc7}
  .integrated-select-caret{color:#ff9099}
  .integrated-select-panel{background:#21262c;border:1px solid #533a43}
  .integrated-select-search{border:1px solid #533a43;background:#21262c}
  .integrated-select-option:hover,.integrated-select-option.is-active{background:#242a30;color:#ff9099}
  .integrated-select-option[aria-selected="true"]{color:#ff9099}
  .integrated-select-group{color:#b1bcc7}
  .markdown-toolbar{border:1px solid #4f5760;background:#21262c}
  .markdown-tool{color:#ff9099}
  .markdown-tool:hover,.markdown-tool:focus-visible{background:#242a30;border-color:#533a43}
  .markdown-preview-toggle{color:#ff9099}
  .markdown-preview{border:1px solid #4f5760;background:#21262c}
  .markdown-hint{color:#b1bcc7}
  .markdown-content code{background:#242a30;color:#ff9099}
  .markdown-content pre{background:#242a30;border:1px solid #3f4851}
  /* Final semantic wins against unusual gradients and nested UI surfaces. */
  body{background:var(--bg);color:var(--ink)}
  a{color:#ff939d}
  a:hover{color:#ffc2c8}
  .topbar{background:var(--navy);color:#f4f5f7;border-color:#d94957}
  .topbar .mainnav a{color:#e3e5e8}
  .topbar .mainnav a:hover{background:#343138;color:#fff}
  .topbar .brand-mark{color:#ff8891}
  .topbar .linkbtn{color:#ffc0c5}
  .card,.stat{background:var(--card);border-color:var(--line);color:var(--ink)}
  input,select,textarea{background:#1b2026;color:#f2f4f6;border-color:#58616a}
  input::placeholder,textarea::placeholder{color:#9ca7b0;opacity:1}
  input:focus,select:focus,textarea:focus{border-color:#fa8a94;box-shadow:0 0 0 3px rgba(239,98,112,.2)}
  select option{background:#20252b;color:#f1f4f7}
  .btn{background:#30363d;color:#f2f4f7;border-color:#59616a}
  .btn:hover{background:#3b424a}
  .btn.primary{background:#aa2839;border-color:#ce4756;color:#fff}
  .btn.primary:hover{background:#c63b4d}
  .btn.danger-button{background:#3d292f;color:#ffabb3;border-color:#99505c}
  th{background:#272d33;color:#c2c8cf}
  th,td,.facts dt,.facts dd,.flag-list>div{border-color:var(--line)}
  .badge.neutral{background:#384149;color:#d4dce4}
  .badge.green{background:#214733;color:#9deab9}
  .badge.amber{background:#543b24;color:#ffd19b}
  .badge.red{background:#572b35;color:#ffb2b8}
  .alert.success{background:#203e2f;color:#a2ecc4;border-color:#44755b}
  .alert.danger{background:#4a2730;color:#ffb5bf;border-color:#8e4a58}
  .home-scan-tile{background:linear-gradient(135deg,#a32b3d,#62212e);color:#fff}
  .home-scan-main{background:#fff0f1;color:#851e2b}
  .home-scan-main:hover{background:#fff;color:#6d1724}
  .home-scan-secondary{border-color:#ed8892;color:#fff}
  .mobile-nav{background:#23282e;border-color:#464c54}
  .mobile-nav a{color:#bec6cf}
  .mobile-nav a[aria-current="page"]{background:#4a2932;color:#ffb2b8}
  .mobile-action-dock{background:rgba(35,40,46,.98);border-color:#424950}
  .footer{color:var(--muted)}
  ::selection{background:#963849;color:#fff}
}
/* Printing QR labels and reports should always use a light, ink-friendly surface. */
@media print {
  :root{color-scheme:light}
  html,body{background:#fff!important;color:#141414!important}
  .card{background:#fff!important;color:#141414!important}
}
