
.layout-theme-row{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:3px}
.layout-theme-row label{margin:0}
#nightModeToggle{width:34px;min-width:34px;height:30px;min-height:30px;padding:4px;border:1px solid #c9d9f1;border-radius:8px;background:#eaf1fc;color:#00358d;box-shadow:none}
#nightModeToggle svg{width:18px;height:18px}
#nightModeToggle .theme-sun,#nightModeToggle[aria-pressed="true"] .theme-moon{display:none}
#nightModeToggle[aria-pressed="true"] .theme-sun{display:block}
@media screen and (min-width:851px){
 html[data-layout="desktop"] .view-toolbar{width:196px;gap:3px}
 html[data-layout="desktop"] .view-toolbar>div{display:grid;grid-template-columns:minmax(0,1fr) 34px;gap:3px 7px;align-items:center}
 html[data-layout="desktop"] .layout-theme-row{display:contents}
 html[data-layout="desktop"] .layout-theme-row label{grid-column:1;grid-row:1;margin:0;line-height:1.2}
 html[data-layout="desktop"] .view-toolbar select{grid-column:1;grid-row:2;min-width:0;min-height:30px}
 html[data-layout="desktop"] #nightModeToggle{grid-column:2;grid-row:1/3;align-self:end;min-height:34px;height:34px;background:#ffffff20;color:#fff;border-color:#ffffff60}
 html[data-layout="desktop"] #layoutHint{line-height:1.2;margin-top:1px}
}
@media screen{
html[data-theme="dark"]{--bb-blue:#2865cf;--bb-dark:#a9caff;--ink:#e6edf8;--muted:#a6b5c9;--line:#34435a;--surface:#192536;background:#101722;color:var(--ink);color-scheme:dark}
html[data-theme="dark"] body{background:#101722}
html[data-theme="dark"] .hero{background:#10274c;border-bottom-color:#ffe000}
html[data-theme="dark"] .panel{background:var(--surface);border-color:var(--line);box-shadow:0 3px 12px #0002}
html[data-theme="dark"] .mode-switch,html[data-theme="dark"] .standard-type-switch,html[data-theme="dark"] #scanDialog .scan-mode-switch{background:#121c2b;border-color:var(--line);box-shadow:none}
html[data-theme="dark"] .mode-switch button,html[data-theme="dark"] .standard-type-switch button,html[data-theme="dark"] #scanDialog .scan-mode-switch button{color:#c5d5ee}
html[data-theme="dark"] .mode-switch button[aria-pressed="true"],html[data-theme="dark"] .standard-type-switch button[aria-pressed="true"],html[data-theme="dark"] #scanDialog .scan-mode-switch button[aria-pressed="true"]{background:#2865cf;color:#fff}
html[data-theme="dark"] button.secondary,html[data-theme="dark"] .action.secondary,html[data-theme="dark"][data-layout="desktop"] .actions .primary,html[data-theme="dark"][data-layout="mobile"] #laptopPrint{background:#25364e;color:#d1e2ff;border-color:#405674}
html[data-theme="dark"] #nightModeToggle{background:#25364e;color:#ffe000;border-color:#536780}
html[data-theme="dark"] input:not([type="file"]):not([type="checkbox"]):not([type="radio"]),html[data-theme="dark"] select,html[data-theme="dark"] #standardModelSlot #dispModel,html[data-theme="dark"] #dispositionFields input:not([type="checkbox"]),html[data-theme="dark"] #iosPrintDialog #iosPrintCopies{background:#101b2b;color:var(--ink);border-color:#485c78}
/* Explicit ID selectors override the original light-mode input colors. */
html[data-theme="dark"] #catalogModel,html[data-theme="dark"] #dispType,html[data-theme="dark"] #upcInput,html[data-theme="dark"] #upcSkuInput,html[data-theme="dark"] #lpnForm input,html[data-theme="dark"] #standardOptions .scan-field input,html[data-theme="dark"] #printCopies,html[data-theme="dark"] #scanDialog #scanReadout{background:#101b2b;color:#edf3ff;border-color:#485c78;caret-color:#edf3ff;color-scheme:dark}
html[data-theme="dark"] input::placeholder,html[data-theme="dark"] #upcInput::placeholder,html[data-theme="dark"] #catalogModel::placeholder{color:#92a3ba;opacity:1}
html[data-theme="dark"] input:-webkit-autofill{-webkit-box-shadow:0 0 0 1000px #101b2b inset;-webkit-text-fill-color:#edf3ff;caret-color:#edf3ff}
html[data-theme="dark"] input[aria-invalid="true"]{border-color:#ff8484!important}
html[data-theme="dark"] #pickArea{background:#1c2e48;border-color:#5079b5;color:#b1cfff}
html[data-theme="dark"] #pickArea.drag{background:#284369;border-color:#a9caff}
html[data-theme="dark"] #previewWrap,html[data-theme="dark"] #searchPreviewWrap{background:#101a29;border-color:#34435a}
html[data-theme="dark"] canvas,html[data-theme="dark"] .batch-card img{background:#fff;box-shadow:none}
html[data-theme="dark"] .info,html[data-theme="dark"] #productSummary,html[data-theme="dark"] .product-visual,html[data-theme="dark"][data-tool-mode="verify"] #productVisualPreview,html[data-theme="dark"][data-tool-mode="verify"] #productVisualPreview:not(.is-expanded),html[data-theme="dark"][data-tool-mode="verify"] #verifyDetails{background:#1c2c42;border-color:#3a506d;color:var(--ink)}
html[data-theme="dark"] #productSummary dt,html[data-theme="dark"] #verifyDetails dt,html[data-theme="dark"] .product-visual-meta,html[data-theme="dark"] .product-visual-copy small,html[data-theme="dark"] #verifyIntro p,html[data-theme="dark"] #searchPreviewEmpty,html[data-theme="dark"] #searchPreviewHint,html[data-theme="dark"] footer{color:var(--muted)}
html[data-theme="dark"] #verifyIntro h2,html[data-theme="dark"] #productVerifyDialog h2,html[data-theme="dark"] #iosPrintDialog h2,html[data-theme="dark"] #addyInstallDialog h2{color:#c4dbff}
html[data-theme="dark"] #verifyDetails div{border-color:#364861}
html[data-theme="dark"][data-layout="desktop"][data-tool-mode="verify"] #verifyDetails div:nth-child(-n+2) dd{color:#b2d0ff}
html[data-theme="dark"] #catalogChoices,html[data-theme="dark"] #catalogChoices button.catalog-result{background:#192536;border-color:#34435a;color:var(--ink)}
html[data-theme="dark"] #catalogChoices button.catalog-result:hover,html[data-theme="dark"] #catalogChoices button.catalog-result:focus-visible,html[data-theme="dark"] #catalogChoices button.catalog-result:active{background:#263b58}
html[data-theme="dark"] .catalog-result-sku{color:#a9caff}
html[data-theme="dark"] .catalog-match{background:#21354f;border-color:#405674;color:var(--ink)}
html[data-theme="dark"] #catalogMatch[data-state="ok"]{background:transparent;border:0;color:var(--muted)}
html[data-theme="dark"] .catalog-match[data-state="error"],html[data-theme="dark"] .warning{background:#493a1e;border-color:#8e7232;color:#ffe4a2}
html[data-theme="dark"] .warning strong{color:#ffe4a2}
html[data-theme="dark"][data-layout="desktop"] #batchList:empty{background:#142031;border-color:#405674}
html[data-theme="dark"] #scanDialog,html[data-theme="dark"] #productVerifyDialog,html[data-theme="dark"] #iosPrintDialog,html[data-theme="dark"] #addyInstallDialog,html[data-theme="dark"] .scan-success-toast{background:#192536;color:var(--ink);border-color:#405674;color-scheme:dark}
html[data-theme="dark"] #iosPrintDialog p,html[data-theme="dark"] #addyInstallDialog p,html[data-theme="dark"] #addyInstallDialog li{color:var(--muted)}
html[data-theme="dark"] #iosPrintDialog .ios-print-info,html[data-theme="dark"] #iosPrintDialog .ios-print-num{background:#24354e;color:#c4dbff;border-color:#405674}
html[data-theme="dark"] #iosPrintDialog .ios-print-step{border-color:#34435a}
html[data-theme="dark"] #productVerifyDialog .product-visual{background:transparent;border:0}
html[data-theme="dark"] .scan-toast-copy strong{color:#c4dbff}
html[data-theme="dark"] .scan-toast-product .scan-product-meta{color:var(--muted)}
/* Keep the actual photo unfiltered; only the surrounding preview surface is dark. */
html[data-theme="dark"] .product-visual-photo,html[data-theme="dark"] #searchPreviewWrap .product-visual-photo{background:#101a29;color:var(--ink);box-shadow:none}
html[data-theme="dark"] .product-visual-zoom{background:#fff;color:#17243a;width:fit-content;max-width:100%;padding:0;overflow:hidden}
html[data-theme="dark"] .product-visual-zoom img{width:auto;max-width:100%;object-fit:contain}
html[data-theme="dark"] #searchPreviewWrap .product-visual-zoom img{width:auto;max-width:100%;object-fit:contain}
html[data-theme="dark"] .product-visual-state{color:var(--muted)}
html[data-theme="dark"] #searchPreviewWrap .product-visual-photo{padding:10px}
html[data-theme="dark"] #searchPreviewWrap .product-visual-zoom{border-radius:8px}
html[data-theme="dark"] #verifyIntro h2{color:var(--ink)}
html[data-theme="dark"] #verifyDetails div:nth-child(-n+2) dd{color:#b9d4ff}
html[data-theme="dark"] button:focus-visible,html[data-theme="dark"] a:focus-visible,html[data-theme="dark"] select:focus-visible,html[data-theme="dark"] input:focus-visible{outline-color:#a9caff}
}
@media print{#nightModeToggle{display:none!important}}
