:root{color-scheme:light}
.skip-link{position:absolute;top:-80px;left:16px;z-index:100;background:white;padding:10px}.skip-link:focus{top:8px}
body.osh-app{background:#f5f8fd;color:#14243d}
[hidden]{display:none!important}
.shell{width:calc(100% - 80px);max-width:1240px;margin-inline:auto}
.chem-header{background:#fff;border-bottom:1px solid #d6e0ed}
.header-inner{min-height:104px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.brand{display:flex;align-items:center;gap:14px;text-decoration:none;color:#003876}
.brand small{display:block;font-size:10px;font-weight:650;letter-spacing:1.25px;color:#52627a}
.brand b{font-size:28px;line-height:1.3;letter-spacing:-.7px}
.brand-symbol{border:2px solid #003876;border-radius:10px;width:44px;height:48px;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:24px;letter-spacing:-5px;padding-right:5px}
.brand-symbol span{font-size:19px;margin-top:10px}
.header-status{display:flex;align-items:center;gap:12px}
.status-pill{font-size:13px;color:#315144;background:#edf7f1;border:1px solid #c9e0d4;border-radius:4px;padding:5px 9px}
.status-pill:before{content:'●';font-size:9px;margin-right:7px}
.nav-wrap{background:#fff;border-bottom:1px solid #d6e0ed;position:sticky;top:0;z-index:5}
.service-nav{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));padding:0;gap:0;overflow:visible}
.service-nav button{background:#fff;border:0;border-bottom:3px solid transparent;border-radius:0;color:#52627a;font-size:15px;font-weight:550;min-height:64px;padding:12px 8px;white-space:normal;word-break:keep-all;box-shadow:none}
.service-nav button.active,.service-nav button[aria-current=page]{color:#003876;border-bottom-color:#003876;background:#f5f8fd;font-weight:750}
#main{padding-block:38px 56px;min-height:70vh;outline:none}
.osh-app h1,.osh-app .osh-title{font-size:34px;line-height:1.4;font-weight:750;letter-spacing:-1px;margin:6px 0 10px}
.osh-app h2{font-size:22px;line-height:1.45;letter-spacing:-.5px}
.osh-app h3{font-size:18px}
.osh-app p{line-height:1.75}
.intro,.osh-copy{max-width:760px;color:#52627a;margin-bottom:24px}
.eyebrow{font-size:12px;letter-spacing:1.2px;font-weight:700;color:#003876}
.osh-intro{margin-bottom:20px!important;max-width:900px!important}
.osh-intro .osh-badge{background:transparent;padding:0;letter-spacing:1.3px;font-size:11px;font-weight:700;border:0;color:#003876}
.workflow{display:grid;grid-template-columns:repeat(3,1fr);padding:0;margin:0 0 24px;gap:12px;list-style:none}
.workflow li{display:flex;align-items:center;gap:10px;border:0;background:transparent;padding:0;font-size:14px;color:#52627a}
.workflow b{display:inline-flex;border:1px solid #b7cbe3;background:#e6effb;border-radius:50%;width:26px;height:26px;align-items:center;justify-content:center;color:#003876;font-size:12px}
.workspace,.osh-workspace{display:grid;grid-template-columns:1.1fr 1fr;gap:24px;align-items:start}
.panel,.osh-card{padding:24px;background:#fff;border:1px solid #d6e0ed;border-radius:12px;box-shadow:none;margin-bottom:24px;min-width:0}
.panel h2:first-child{margin-top:0}
.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}
.panel-heading h2{margin:0}
.results-panel{min-height:530px}
.empty-state{padding:56px 20px;text-align:center;background:#f9fbfe;border:1px dashed #c5d4e7;border-radius:8px;margin-top:24px}
.empty-state h3{font-size:20px;color:#31516f;line-height:1.6;margin:0 0 12px}
.empty-state p{font-size:14px;color:#52627a;max-width:360px;margin:12px auto}
.osh-field{margin-bottom:20px}
.osh-label,label{font-size:15px;font-weight:550}
.osh-input,input:not([type=checkbox]),select,textarea{border:1px solid #7b8aa0;border-radius:7px;min-height:46px;padding:10px 12px;background:#fff;width:100%;max-width:100%;font-size:16px;line-height:1.6}
input[type=file]{background:#f5f8fd;border-style:dashed;padding:20px 14px}
input[type=file]::file-selector-button{background:#e6effb;color:#003876;border:0;border-radius:5px;padding:9px 12px;margin-right:12px;font:inherit;font-size:14px;cursor:pointer}
textarea{resize:vertical}
button,.osh-button{min-height:44px;border-radius:7px;padding:10px 16px;box-shadow:none;cursor:pointer;font-size:15px}
button.primary,a.primary{background:#003876;color:white;border:1px solid #003876;font-weight:650}
button.secondary{background:#fff;border:1px solid #a8bad1;color:#003876}
button:hover{filter:brightness(.97)}
button:disabled{cursor:wait;opacity:.65}
.wide{width:100%;margin-top:10px}
.osh-help,small,.muted{font-size:14px;color:#52627a}
.check-row{display:flex;flex-wrap:wrap;align-items:flex-start;gap:6px 10px;font-size:14px;margin:12px 0}
.check-row label{font-size:14px}
input[type=checkbox]{width:18px;height:18px;accent-color:#003876;flex:none}
.notice{background:#f2f6fc;border:1px solid #d6e0ed;border-left:3px solid #5680b0;border-radius:7px;padding:14px 16px;font-size:14px;line-height:1.75}
.sample-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:18px}
.sample-row button{font-size:12px;min-height:32px;padding:5px 9px;background:#f5f8fd;border:1px solid #d6e0ed;color:#31516f}
.metrics{display:grid;grid-template-columns:repeat(4,1fr);border:1px solid #d6e0ed;border-radius:12px;background:#fff;gap:0;overflow:hidden}
.metric{border:0;border-right:1px solid #d6e0ed;background:none;box-shadow:none;border-radius:0;padding:20px 24px}
.metric:last-child{border:0}.metric b{font-size:28px;color:#003876}.metric span{display:block;font-size:13px;color:#52627a}
.scope-section{margin-top:34px}.scope-section h2{font-size:18px}
.info-grid,.two-cols{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}
.library-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.library-grid>*{margin:0;min-width:0}.product-card{width:100%;background:white;border:1px solid #d6e0ed;border-radius:8px;text-align:left;padding:18px;margin-bottom:12px;color:#14243d}
.product-card small{display:block;margin-top:7px}.product-card strong{display:block}.product-card:hover{border-color:#003876;background:#f7faff}
.substance-button{width:100%;display:flex;justify-content:space-between;gap:12px;text-align:left;background:#fff;border:1px solid #d6e0ed;margin:8px 0}.substance-button small{display:block}
.tag,.osh-badge{background:#e6effb;color:#003876;border-radius:4px;padding:4px 7px;font-size:12px;display:inline-block;line-height:1.5;white-space:normal}.meta-row{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:10px}
.pictograms img{width:44px;height:44px;object-fit:contain}.pictograms{display:flex;flex-wrap:wrap;gap:5px;margin:10px 0}
.searchbox{display:grid;grid-template-columns:repeat(3,1fr);gap:10px 16px;background:#fff;border:1px solid #d6e0ed;border-radius:12px;padding:24px}
.searchbox label{grid-row:1}.searchbox select{grid-row:2}.searchbox label[for=library-search]{grid-column:1/-1;grid-row:3;margin-top:12px}.searchbox #library-search{grid-column:1/-1;grid-row:4}.searchbox #library-status{grid-column:1/-1;grid-row:5;margin:0}
.export-links{display:flex;flex-wrap:wrap;gap:12px;margin:16px 0;font-size:14px}.export-links a{color:#003876;text-underline-offset:3px}
details{min-width:0}summary{cursor:pointer;font-weight:600;padding-block:7px;color:#003876}details[open]>summary{margin-bottom:14px}
.section-raw{border-top:1px solid #d6e0ed;padding-block:14px}.section-raw p{white-space:pre-line}
pre,.extracted-text,.msds-evidence{white-space:pre-wrap;overflow-wrap:anywhere;font-family:inherit;font-size:14px;max-height:600px;overflow:auto;line-height:1.8}
.reference-fold #ghs-guide{border:0;padding:0;margin:0}
.table-wrap{overflow-x:auto;max-width:100%}table{min-width:550px;width:100%}th,td{vertical-align:top;text-align:left;padding:12px;border-bottom:1px solid #d6e0ed;font-size:14px}
dialog{width:min(960px,calc(100% - 36px));max-height:85vh;border:1px solid #c3d2e5;border-radius:12px;padding:24px}dialog::backdrop{background:#06264c88}
.app-footer{border-top:1px solid #d6e0ed;padding-block:24px;color:#52627a;font-size:12px;display:flex;flex-wrap:wrap;gap:12px;justify-content:space-between}.app-footer details{width:100%}.app-footer p{font-size:13px;max-width:800px}
.emergency-panel{background:#fff4f2;border:1px solid #e8c2bd;border-radius:12px;padding:28px;margin-bottom:24px;max-width:100%}.emergency-panel h2{color:#842d25}.emergency-panel p{max-width:800px}.emergency-call{display:inline-flex;padding:12px 22px;text-decoration:none;border-radius:7px}.response-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.response-grid .panel{margin:0 0 24px}.step-index{font-size:12px;font-weight:700;color:#003876;letter-spacing:2px}.source-note{font-size:13px;color:#52627a}
.login-card{max-width:480px;margin:60px auto}.login-card button{margin-top:20px;width:100%}.login-card input{margin-top:8px}.inline-error,.error{color:#9b1c31}
#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);max-width:min(680px,calc(100% - 36px));padding:14px 20px;background:#06264c;color:#fff;border-radius:8px;z-index:100}
#preview-image{max-height:300px;max-width:100%;object-fit:contain}#image-preview{padding:12px;border:1px solid #d6e0ed;border-radius:8px;margin-block:12px}#image-preview button{display:block;margin-top:12px}
.osh-app :focus-visible{outline:3px solid #0e4a9f;outline-offset:4px}.osh-app h1:focus{outline:none}.osh-app :target{scroll-margin-top:84px}
@media(max-width:1150px){.shell{width:calc(100% - 48px)}.service-nav button{font-size:14px}.header-status{gap:8px}.library-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:850px){.workspace,.osh-workspace,.info-grid,.two-cols{grid-template-columns:1fr}.results-panel{min-height:320px}.service-nav{grid-template-columns:repeat(3,1fr)}.service-nav button{min-height:48px}.nav-wrap{position:static}.header-status .urgent-link{display:none}.workflow{gap:6px}.workflow li{font-size:12px}.response-grid{grid-template-columns:1fr}.response-grid .panel{margin-bottom:0}.response-grid{margin-bottom:24px}.header-inner{min-height:92px}.metrics{grid-template-columns:repeat(2,1fr)}.metric:nth-child(-n+2){border-bottom:1px solid #d6e0ed}.metric:nth-child(2){border-right:0}}
@media(max-width:640px){.shell{width:calc(100% - 36px)}.brand b{font-size:24px}.brand small{font-size:8px;letter-spacing:.8px}.brand-symbol{width:36px;height:40px;font-size:21px}.header-status .status-pill{font-size:11px;padding:4px 6px;max-width:100px;text-align:center}.header-inner{gap:10px}.brand{gap:9px}.service-nav button{font-size:12px;padding:10px 4px}.osh-app h1,.osh-app .osh-title{font-size:28px}.osh-app h2{font-size:20px}.panel,.osh-card{padding:18px}#main{padding-top:26px}.workflow{grid-template-columns:1fr;gap:8px;margin-bottom:20px}.workflow li{font-size:13px}.empty-state{padding:28px 14px}.library-grid{grid-template-columns:1fr}.searchbox{grid-template-columns:1fr;padding:18px}.searchbox label,.searchbox select,.searchbox label[for=library-search],.searchbox #library-search,.searchbox #library-status{grid-row:auto;grid-column:1}.searchbox label[for=library-category]{order:1}.searchbox #library-category{order:2}.searchbox label[for=library-region]{order:3}.searchbox #library-region{order:4}.searchbox label[for=library-sds]{order:5}.searchbox #library-sds{order:6}.searchbox label[for=library-search]{order:7}.searchbox #library-search{order:8}.searchbox #library-status{order:9}.metric{padding:16px}.metric b{font-size:25px}.identifier-search{flex-wrap:wrap}.identifier-search input{min-width:0;flex-basis:100%}.pic-options{grid-template-columns:repeat(2,minmax(0,1fr))}.msds-ingredient-row{grid-template-columns:1fr}.panel-heading{align-items:start}.response-grid{gap:16px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
