:root{--wss-maroon:#6f2928;--wss-maroon-dark:#56201f;--wss-blue:#1769aa;--wss-ink:#20262c;--wss-muted:#66727d;--wss-line:#dbe0e5;--wss-bg:#f3f5f7;--wss-green:#1f7a46;--wss-red:#a22b2b;--wss-yellow:#f1ef47}.wss-app{max-width:1240px;margin:26px auto 80px;background:var(--wss-bg);border-radius:18px;overflow:hidden;box-shadow:0 16px 45px rgba(30,43,52,.12);color:var(--wss-ink);font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}.wss-app *{box-sizing:border-box}.wss-app-header{background:linear-gradient(135deg,var(--wss-maroon),#8c3b38);color:#fff;padding:34px 40px;display:flex;justify-content:space-between;gap:30px;align-items:center}.wss-app-header h1{font-size:36px;line-height:1.05;margin:6px 0 10px;color:#fff}.wss-app-header p{margin:0;max-width:760px;opacity:.92}.wss-kicker{text-transform:uppercase;letter-spacing:.12em;font-size:12px;font-weight:800;opacity:.82}.wss-header-actions{display:flex;gap:10px}.wss-success,.wss-notice{margin:18px 24px 0;padding:13px 16px;border-radius:9px;background:#e8f6ee;border:1px solid #b7dfc7;color:#155f36;font-weight:700}.wss-tabs{display:flex;gap:8px;padding:18px 24px 0;background:#fff;border-bottom:1px solid var(--wss-line)}.wss-tab{appearance:none;border:0;background:transparent;padding:13px 18px;border-radius:10px 10px 0 0;font-weight:800;color:#59636c;cursor:pointer}.wss-tab span{display:inline-flex;min-width:22px;height:22px;padding:0 6px;align-items:center;justify-content:center;border-radius:20px;background:#e8ebee;font-size:12px;margin-left:5px}.wss-tab.is-active{color:var(--wss-maroon);background:var(--wss-bg)}.wss-tab-panel{display:none;padding:24px}.wss-tab-panel.is-active{display:block}.wss-card{background:#fff;border:1px solid var(--wss-line);border-radius:14px;padding:24px;margin-bottom:20px;box-shadow:0 2px 8px rgba(40,50,60,.035)}.wss-upload-card{border-top:5px solid var(--wss-maroon)}.wss-card h2,.wss-card h3{color:var(--wss-ink)}.wss-card h2{margin:0;font-size:22px}.wss-card h3{margin:22px 0 12px;font-size:16px}.wss-card-title-row{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}.wss-card-title-row>div:first-child{display:flex;align-items:center;gap:10px}.wss-card-title-row p{margin:4px 0 0;color:var(--wss-muted)}.wss-step{display:inline-flex;width:30px;height:30px;border-radius:50%;background:var(--wss-maroon);color:#fff;align-items:center;justify-content:center;font-weight:900;flex:0 0 auto}.wss-ai-badge{font-size:12px;font-weight:800;color:#704600;background:#fff4cc;border:1px solid #f0d77b;padding:6px 9px;border-radius:999px}.wss-muted{color:var(--wss-muted);font-size:13px}.wss-grid{display:grid;gap:16px}.wss-grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}.wss-grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}.wss-grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}.wss-span-2{grid-column:span 2}.wss-top-gap{margin-top:18px}.wss-field{display:flex;flex-direction:column;gap:7px;min-width:0}.wss-label{font-size:13px;font-weight:800;color:#3a434b}.wss-field input,.wss-field textarea,.wss-field select,.wss-app select,.wss-app input[type=text],.wss-app input[type=date],.wss-app textarea{width:100%;border:1px solid #cfd6dc;border-radius:8px;background:#fff;padding:10px 11px;font:inherit;color:var(--wss-ink);box-shadow:none}.wss-field textarea{resize:vertical;line-height:1.45}.wss-field input:focus,.wss-field textarea:focus,.wss-field select:focus,.wss-app select:focus{outline:3px solid rgba(23,105,170,.13);border-color:#4e8ebe}.wss-file-drop{display:flex;align-items:center;gap:14px;border:2px dashed #bcc5cd;border-radius:12px;padding:20px;cursor:pointer;background:#fafbfc;min-height:108px}.wss-file-drop:hover{border-color:var(--wss-maroon)}.wss-file-drop input{position:absolute;left:-9999px}.wss-file-icon{display:inline-flex;width:54px;height:54px;align-items:center;justify-content:center;border-radius:10px;background:#f4d9d8;color:var(--wss-maroon);font-weight:900}.wss-file-drop strong,.wss-file-drop small{display:block}.wss-file-drop small{color:var(--wss-muted);margin-top:4px;overflow-wrap:anywhere}.wss-ai-row{display:flex;align-items:center;gap:14px;margin-top:16px;flex-wrap:wrap}.wss-ai-status{font-size:13px;font-weight:700}.wss-ai-status.is-working{color:#6e5614}.wss-ai-status.is-success{color:var(--wss-green)}.wss-ai-status.is-error{color:var(--wss-red)}.wss-btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:0;border-radius:8px;padding:11px 16px;font-weight:850;text-decoration:none!important;cursor:pointer;line-height:1}.wss-btn-primary{background:var(--wss-maroon);color:#fff!important}.wss-btn-primary:hover{background:var(--wss-maroon-dark)}.wss-btn-dark{background:#27313a;color:#fff!important}.wss-btn-light{background:#fff;color:var(--wss-maroon)!important}.wss-btn:disabled{opacity:.6;cursor:wait}.wss-btn.is-loading:before{content:"";width:13px;height:13px;border:2px solid rgba(255,255,255,.4);border-top-color:#fff;border-radius:50%;animation:wssSpin .8s linear infinite}@keyframes wssSpin{to{transform:rotate(360deg)}}.wss-client-logo-preview{margin-top:14px;display:flex;align-items:center;gap:12px}.wss-client-logo-preview span{font-size:12px;font-weight:800;color:var(--wss-muted)}.wss-client-logo-preview img{max-height:58px;max-width:180px;object-fit:contain;border:1px solid var(--wss-line);padding:5px;border-radius:7px;background:#fff}.wss-hazard-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.wss-hazard-item{display:flex;align-items:center;gap:10px;border:1px solid var(--wss-line);padding:9px 10px;border-radius:10px;cursor:pointer;min-height:66px;background:#fff}.wss-hazard-item input{width:auto}.wss-hazard-item img,.wss-no-hazard-icon{width:42px;height:42px;object-fit:contain;flex:0 0 auto}.wss-no-hazard-icon{display:flex;align-items:center;justify-content:center;background:#edf0f2;border-radius:7px;color:#68727a;font-size:11px;font-weight:900}.wss-hazard-item.is-selected{border-color:#9b4b48;background:#fbefef;box-shadow:0 0 0 2px rgba(111,41,40,.08)}.wss-check-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.wss-check{display:flex;align-items:center;gap:8px;border:1px solid var(--wss-line);border-radius:8px;padding:10px 12px}.wss-check input{width:auto}.wss-other-field{grid-column:span 2}.wss-risk-panel{border:1px solid var(--wss-line);border-radius:12px;padding:18px}.wss-risk-panel h3{margin:0 0 14px}.wss-risk-controls{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:16px}.wss-risk-controls label{font-size:13px;font-weight:800}.wss-risk-controls select{display:block;margin-top:6px}.wss-matrix-wrap{display:grid;grid-template-columns:24px auto;grid-template-rows:auto 20px;align-items:center;max-width:265px;margin:4px auto}.wss-matrix-axis-y{writing-mode:vertical-rl;transform:rotate(180deg);font-size:11px;font-weight:900;text-align:center}.wss-matrix-axis-x{text-align:center;font-size:11px;font-weight:900}.wss-risk-matrix{border-collapse:collapse;margin:auto}.wss-risk-matrix th,.wss-risk-matrix td{width:48px;height:42px;text-align:center;border:2px solid #fff;padding:0;font-weight:900}.wss-risk-matrix th{width:27px;background:transparent;border:0;color:#59636c}.wss-risk-matrix td{cursor:pointer}.wss-risk-matrix td.low{background:#9fd66a}.wss-risk-matrix td.medium{background:#f1ef47}.wss-risk-matrix td.high{background:#ff2b25}.wss-risk-matrix td.is-selected{outline:3px solid #20262c;outline-offset:-3px;font-size:22px}.wss-matrix-x th{height:24px;border:0}.wss-risk-result{text-align:center;margin-top:10px;padding:9px;border-radius:8px;background:#f1f3f5}.wss-ppe-grid{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:10px}.wss-ppe-item{position:relative;border:1px solid var(--wss-line);border-radius:11px;padding:10px 7px;text-align:center;cursor:pointer;background:#fff}.wss-ppe-item input{position:absolute;top:7px;right:7px;width:auto}.wss-ppe-item img{display:block;width:74px;height:74px;object-fit:contain;margin:7px auto;opacity:.35}.wss-ppe-item strong{font-size:12px;line-height:1.2;display:block}.wss-ppe-item.is-selected{border-color:#4c8cc0;background:#eef6fc}.wss-ppe-item.is-selected img{opacity:1}.wss-sticky-actions{position:sticky;bottom:12px;z-index:10;display:flex;align-items:center;gap:10px;flex-wrap:wrap;background:rgba(255,255,255,.96);backdrop-filter:blur(8px);padding:13px;border:1px solid var(--wss-line);border-radius:12px;box-shadow:0 10px 30px rgba(20,30,40,.14)}.wss-library-table-wrap{overflow:auto}.wss-library-table{width:100%;border-collapse:collapse;min-width:860px}.wss-library-table th,.wss-library-table td{padding:11px;border-bottom:1px solid var(--wss-line);text-align:left;vertical-align:top}.wss-library-table th{font-size:12px;color:#5d6870;text-transform:uppercase;letter-spacing:.04em}.wss-library-table td small{display:block;color:var(--wss-muted);margin-top:3px}.wss-row-actions{white-space:nowrap}.wss-row-actions a{margin-right:10px;font-weight:800;color:var(--wss-maroon)}
@media(max-width:980px){.wss-grid-4{grid-template-columns:repeat(2,minmax(0,1fr))}.wss-hazard-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.wss-ppe-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.wss-grid-3{grid-template-columns:1fr}.wss-app-header{padding:28px 26px}}@media(max-width:680px){.wss-app{margin:0;border-radius:0}.wss-app-header{display:block}.wss-header-actions{margin-top:18px}.wss-app-header h1{font-size:30px}.wss-tab-panel{padding:13px}.wss-card{padding:17px}.wss-grid-2,.wss-grid-4,.wss-risk-controls{grid-template-columns:1fr}.wss-span-2{grid-column:auto}.wss-hazard-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.wss-check-grid{grid-template-columns:1fr}.wss-other-field{grid-column:auto}.wss-ppe-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.wss-card-title-row{align-items:flex-start}.wss-card-title-row>div:first-child{align-items:flex-start}.wss-sticky-actions{bottom:5px}.wss-tabs{overflow:auto}.wss-tab{white-space:nowrap}}

/* V0.1.5 - drag and drop SDS uploader */
.wss-file-drop{position:relative;transition:border-color .18s ease,background .18s ease,box-shadow .18s ease,transform .18s ease;overflow:hidden}
.wss-file-drop .wss-file-copy{min-width:0;flex:1}
.wss-file-drop .wss-file-or{display:block;margin-top:3px;color:#525e68;font-size:13px}
.wss-file-drop .wss-file-help{font-size:11px;margin-top:5px;color:#8a949c}
.wss-file-drop-state{display:inline-flex;align-items:center;justify-content:center;align-self:stretch;min-width:94px;padding:10px 13px;border-radius:9px;background:#eef1f3;color:#5b6670;font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.04em;transition:.18s ease}
.wss-file-drop.is-dragover{border-color:var(--wss-maroon);background:#fff4f3;box-shadow:0 0 0 4px rgba(111,41,40,.09);transform:translateY(-1px)}
.wss-file-drop.is-dragover .wss-file-drop-state{background:var(--wss-maroon);color:#fff}
.wss-file-drop.is-dragover .wss-file-icon{transform:scale(1.06)}
.wss-file-drop.has-file{border-style:solid;border-color:#58a374;background:#f2fbf6}
.wss-file-drop.has-file .wss-file-icon{background:#d8f0e1;color:#17673a}
.wss-file-drop.has-file .wss-file-drop-state{background:#d8f0e1;color:#17673a}
.wss-file-drop.has-file #wss-file-name{color:#17673a;font-weight:800}
.wss-file-drop.has-error{border-color:#bf4c4c;background:#fff4f4}
.wss-file-drop.has-error #wss-file-name{color:#9f2626;font-weight:800}
.wss-file-drop:focus-visible{outline:3px solid rgba(23,105,170,.25);outline-offset:3px}
@media(max-width:700px){.wss-file-drop-state{display:none}.wss-file-drop{align-items:flex-start}.wss-file-icon{flex:0 0 auto}}

/* V0.1.8 - COSHH pack compiler and review-period controls */
.wss-select-col{width:42px;text-align:center!important}.wss-select-col input{width:18px!important;height:18px;cursor:pointer}.wss-pack-selected-badge{display:inline-flex;align-items:center;gap:5px;border:1px solid #d8c6c4;background:#fbf3f2;color:var(--wss-maroon);border-radius:999px;padding:7px 11px;font-size:12px;font-weight:800;white-space:nowrap}.wss-pack-selected-badge strong{font-size:15px}.wss-pack-builder{margin-top:22px;border:1px solid #d4dbe0;border-top:5px solid var(--wss-maroon);border-radius:13px;padding:20px;background:#fafbfc}.wss-pack-builder-head{display:flex;justify-content:space-between;gap:14px;margin-bottom:16px}.wss-pack-builder-head h3{margin:0 0 5px;font-size:19px}.wss-pack-builder-head p{margin:0;color:var(--wss-muted);max-width:850px}.wss-pack-logo-row{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:15px;flex-wrap:wrap}.wss-pack-logo-row .wss-client-logo-preview{margin-top:0}.wss-pack-cover-check{background:#fff;min-width:330px}.wss-pack-actions{display:flex;align-items:center;gap:12px;margin-top:17px;flex-wrap:wrap}.wss-pack-actions .wss-btn{min-width:270px}.wss-library-table tbody tr:has(.wss-pack-item:checked){background:#fff7f6}.wss-field small.wss-muted{display:block;line-height:1.35;margin-top:1px}
@media(max-width:900px){.wss-pack-builder .wss-grid-4{grid-template-columns:repeat(2,minmax(0,1fr))}.wss-pack-cover-check{min-width:0;width:100%}}
@media(max-width:620px){.wss-pack-builder .wss-grid-4{grid-template-columns:1fr}.wss-pack-builder{padding:15px}.wss-pack-actions .wss-btn{min-width:0;width:100%}.wss-pack-selected-badge{margin-left:auto}}

/* V0.1.9 - manual COSHH pack client details and drag/drop/paste logo */
.wss-pack-personalisation{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,.9fr);gap:20px;align-items:start}.wss-pack-client-fields{display:grid;grid-template-columns:1fr;gap:16px}.wss-pack-logo-field{min-width:0}.wss-logo-drop{position:relative;display:flex;align-items:center;gap:14px;min-height:118px;border:2px dashed #bcc5cd;border-radius:12px;padding:18px;cursor:pointer;background:#fff;transition:border-color .18s ease,background .18s ease,box-shadow .18s ease}.wss-logo-drop:hover,.wss-logo-drop.is-dragover{border-color:var(--wss-maroon);background:#fff5f4;box-shadow:0 0 0 4px rgba(111,41,40,.08)}.wss-logo-drop input{position:absolute;left:-9999px}.wss-logo-drop-icon{display:flex;align-items:center;justify-content:center;width:64px;height:64px;border-radius:10px;background:#edf0f2;color:#55616a;font-size:12px;font-weight:900;letter-spacing:.05em;flex:0 0 auto}.wss-logo-drop-copy{min-width:0}.wss-logo-drop-copy strong,.wss-logo-drop-copy span,.wss-logo-drop-copy small{display:block}.wss-logo-drop-copy span{margin-top:4px;font-size:13px;color:#5d6870}.wss-logo-drop-copy small{margin-top:7px;color:#7b858d;overflow-wrap:anywhere}.wss-logo-drop.has-file{border-style:solid;border-color:#58a374;background:#f2fbf6}.wss-logo-drop.has-file .wss-logo-drop-icon{background:#d8f0e1;color:#17673a}.wss-logo-drop.has-error{border-color:#bf4c4c;background:#fff4f4}.wss-logo-drop.has-error #wss-pack-logo-file-name{color:#9f2626;font-weight:800}.wss-logo-drop:focus-visible{outline:3px solid rgba(23,105,170,.25);outline-offset:3px}.wss-pack-logo-field .wss-client-logo-preview{margin-top:10px;min-height:0}.wss-pack-logo-field .wss-client-logo-preview:empty{display:none}.wss-pack-builder a{color:var(--wss-maroon);font-weight:800}
@media(max-width:900px){.wss-pack-personalisation{grid-template-columns:1fr}}
.wss-logo-browse{margin-left:auto;flex:0 0 auto;border:0;border-radius:8px;background:#27313a;color:#fff;padding:9px 13px;font-weight:850;cursor:pointer}.wss-logo-browse:hover{background:#111820}.wss-logo-drop:focus{border-color:var(--wss-maroon);box-shadow:0 0 0 4px rgba(111,41,40,.08)}
@media(max-width:620px){.wss-logo-drop{align-items:flex-start;flex-wrap:wrap}.wss-logo-browse{margin-left:78px}}


/* V0.1.14 - AI pictogram visual-identification feedback */
.wss-pictogram-ai-note{margin:0 0 14px;padding:10px 12px;border:1px solid #d5dbe1;border-radius:8px;background:#f7f9fb;color:#46515c;font-size:13px;line-height:1.45}
.wss-pictogram-ai-note.is-match{border-color:#69ad7d;background:#eef9f1;color:#176b32}
.wss-pictogram-ai-note.is-warning{border-color:#d8a33b;background:#fff8e7;color:#7b5500}
.wss-pictogram-ai-note.is-fallback{border-color:#8a98a8;background:#f2f5f8;color:#46515c}

/* V0.1.15 - PPE AI evidence feedback */
.wss-ppe-ai-note{margin:0 0 14px;padding:10px 12px;border:1px solid #d5dbe1;border-radius:8px;background:#f7f9fb;color:#46515c;font-size:13px;line-height:1.45}
.wss-ppe-ai-note.is-result{border-color:#69ad7d;background:#eef9f1;color:#176b32}


/* V0.1.17 - explicit edit/create mode protection */
.wss-edit-mode-banner {
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 2px solid #b7791f;
  border-radius: 12px;
  background: #fff8e5;
  color: #5f3b00;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.wss-edit-mode-banner > span { flex: 1 1 360px; }
.wss-edit-mode-banner.is-create-mode {
  border-color: #2f855a;
  background: #edfdf5;
  color: #14532d;
}

/* ============================================================
   Safyne System V0.3.3 — unified COSHH theme + responsiveness
   ============================================================ */
:root{--wss-maroon:var(--safyne-navy);--wss-maroon-dark:var(--safyne-navy-deep);--wss-blue:var(--safyne-info);--wss-navy:var(--safyne-navy);--wss-bg:#f3f6f9}
.wss-app{width:min(100%,1240px);max-width:100%;margin:18px auto 60px;border-radius:12px;box-shadow:0 8px 28px rgba(18,42,64,.08)}
.wss-app-header{background:linear-gradient(120deg,var(--safyne-navy) 0%,#164565 58%,#176b78 100%);padding:24px 28px}
.wss-app-header h1{font-size:30px}.wss-app-header p{line-height:1.4}.wss-kicker{color:#8bd0d6;opacity:1}
.wss-tabs{padding:10px 16px 0;gap:4px}.wss-tab{padding:10px 13px}.wss-tab.is-active{color:var(--safyne-info)}
.wss-tab-panel{padding:16px}.wss-card{padding:17px;margin-bottom:14px;border-radius:10px}.wss-upload-card,.wss-pack-builder{border-top-color:var(--safyne-info)}.wss-card-title-row{margin-bottom:12px}.wss-card h2{font-size:18px}.wss-card h3{font-size:14px}.wss-step{background:var(--safyne-info)}
.wss-btn-primary{background:var(--safyne-info)!important}.wss-btn-primary:hover{background:var(--safyne-info-dark)!important}.wss-btn-light{color:var(--safyne-navy-soft)!important}
.wss-row-actions a,.wss-pack-builder a{color:var(--safyne-info)}.wss-file-drop:hover,.wss-logo-drop:hover,.wss-logo-drop.is-dragover{border-color:var(--safyne-info)}.wss-file-icon{background:#e8f1fb;color:var(--safyne-info)}.wss-hazard-item.is-selected{border-color:#4b8dcb;background:#eef5fc;box-shadow:0 0 0 2px rgba(36,116,200,.08)}
.wss-grid{gap:11px}.wss-field{gap:5px}.wss-label{font-size:12px}.wss-field input,.wss-field textarea,.wss-field select,.wss-app select,.wss-app input[type=text],.wss-app input[type=date],.wss-app textarea{padding:8px 9px}.wss-muted{font-size:11.5px}

/* Fit to the module area beside the permanent Safety System sidebar. */
#wss-coshh-app,.wss-app,.wss-tab-panel,.wss-card,.wss-grid,.wss-pack-builder{min-width:0;max-width:100%}
.wss-grid-4{grid-template-columns:repeat(auto-fit,minmax(min(205px,100%),1fr))}
.wss-grid-3{grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr))}
.wss-grid-2{grid-template-columns:repeat(auto-fit,minmax(min(280px,100%),1fr))}
.wss-hazard-grid{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}
.wss-ppe-grid{grid-template-columns:repeat(auto-fit,minmax(105px,1fr))}
.wss-pack-personalisation{grid-template-columns:repeat(auto-fit,minmax(min(300px,100%),1fr))}
.wss-library-table-wrap{max-width:100%;overflow-x:auto}
.wss-app-header,.wss-card-title-row,.wss-header-actions,.wss-sticky-actions{flex-wrap:wrap}

.wss-brand-colour-control{display:grid;grid-template-columns:42px minmax(120px,180px);gap:7px;align-items:center}
.wss-brand-colour-control input[type=color]{width:42px!important;height:36px!important;padding:2px!important;cursor:pointer}
.wss-brand-colour-control input[type=text]{min-width:0}

@media(max-width:1100px){.wss-app{margin:10px auto 40px}.wss-app-header{padding:20px}.wss-tab-panel{padding:12px}.wss-card{padding:14px}}
@media(max-width:720px){.wss-app{margin:0;border-radius:0}.wss-app-header{padding:18px 15px}.wss-app-header h1{font-size:26px}.wss-header-actions{width:100%;margin-top:12px}.wss-header-actions .wss-btn{flex:1 1 auto}.wss-tabs{padding-left:8px;padding-right:8px}.wss-tab-panel{padding:8px}.wss-card{padding:12px}.wss-grid-2,.wss-grid-3,.wss-grid-4,.wss-risk-controls,.wss-pack-personalisation{grid-template-columns:1fr!important}}

/* WSS V0.3.3 — keep COSHH within the unified desktop shell. */
@media (min-width:1101px){
  body.wssys-module-host{
    margin-left:273px!important;
    width:calc(100% - 273px)!important;
    max-width:calc(100% - 273px)!important;
    box-sizing:border-box!important;
    overflow-x:hidden!important;
  }
}
@media (min-width:1101px) and (max-width:1250px){
  body.wssys-module-host{
    margin-left:248px!important;
    width:calc(100% - 248px)!important;
    max-width:calc(100% - 248px)!important;
  }
}
@media (max-width:1100px){
  body.wssys-module-host{
    margin-left:0!important;
    width:100%!important;
    max-width:100%!important;
  }
}

/* V0.3.10 - dense COSHH library: working-list scale rather than report-card scale */
.wss-tab-panel[data-panel="library"].wss-tab-panel{padding:10px 12px}
.wss-tab-panel[data-panel="library"] .wss-card{padding:11px 13px;margin-bottom:10px;border-radius:9px}
.wss-tab-panel[data-panel="library"] .wss-card-title-row{margin-bottom:7px;gap:10px;align-items:center}
.wss-tab-panel[data-panel="library"] .wss-card-title-row h2{font-size:17px;line-height:1.05;margin:0}
.wss-tab-panel[data-panel="library"] .wss-card-title-row p{font-size:11.5px;line-height:1.15;margin:2px 0 0}
.wss-tab-panel[data-panel="library"] .wss-pack-selected-badge{padding:4px 8px;font-size:10.5px;line-height:1;border-radius:999px}
.wss-tab-panel[data-panel="library"] .wss-pack-selected-badge strong{font-size:12px}
.wss-tab-panel[data-panel="library"] .wss-library-table{min-width:760px;font-size:12.5px;line-height:1.12}
.wss-tab-panel[data-panel="library"] .wss-library-table th{padding:6px 8px;font-size:10.5px;line-height:1.05;letter-spacing:.03em;vertical-align:middle}
.wss-tab-panel[data-panel="library"] .wss-library-table td{padding:5px 8px;font-size:12.5px;line-height:1.12;vertical-align:middle}
.wss-tab-panel[data-panel="library"] .wss-library-table td strong{font-size:12.5px;line-height:1.08}
.wss-tab-panel[data-panel="library"] .wss-library-table td small{display:inline-block;font-size:10.5px;line-height:1;margin:0 0 0 7px;white-space:nowrap}
.wss-tab-panel[data-panel="library"] .wss-select-col{width:34px;padding-left:5px!important;padding-right:5px!important}
.wss-tab-panel[data-panel="library"] .wss-select-col input{width:15px!important;height:15px!important;margin:0}
.wss-tab-panel[data-panel="library"] .wss-row-actions{font-size:11.5px;line-height:1;white-space:nowrap}
.wss-tab-panel[data-panel="library"] .wss-row-actions a{margin-right:7px;font-size:11.5px;line-height:1;font-weight:750}
.wss-tab-panel[data-panel="library"] .wss-library-table tbody tr{height:34px}
.wss-tab-panel[data-panel="library"] .wss-library-table tbody tr:hover{background:#f7f9fb}
.wss-tab-panel[data-panel="library"] .wss-pack-builder{margin-top:10px;padding:13px;border-radius:9px}
.wss-tab-panel[data-panel="library"] .wss-pack-builder-head{margin-bottom:9px}
.wss-tab-panel[data-panel="library"] .wss-pack-builder-head h3{font-size:15px;line-height:1.1;margin:0 0 3px}
.wss-tab-panel[data-panel="library"] .wss-pack-builder-head p{font-size:11.5px;line-height:1.2}
@media(max-width:720px){.wss-tab-panel[data-panel="library"].wss-tab-panel{padding:7px}.wss-tab-panel[data-panel="library"] .wss-card{padding:9px}.wss-tab-panel[data-panel="library"] .wss-library-table td,.wss-tab-panel[data-panel="library"] .wss-library-table th{padding:5px 7px}}

/* V0.3.11 - keep large COSHH libraries compact: scroll after ten assessments */
.wss-tab-panel[data-panel="library"] .wss-library-table-wrap.wss-library-table-scroll{
    max-height:392px;
    overflow-y:auto;
    overflow-x:auto;
    scrollbar-gutter:stable;
    border-bottom:1px solid var(--wss-line);
}
.wss-tab-panel[data-panel="library"] .wss-library-table-wrap.wss-library-table-scroll .wss-library-table thead th{
    position:sticky;
    top:0;
    z-index:3;
    background:#fff;
    box-shadow:0 1px 0 var(--wss-line);
}
.wss-tab-panel[data-panel="library"] .wss-library-table-wrap.wss-library-table-scroll::-webkit-scrollbar{width:10px;height:10px}
.wss-tab-panel[data-panel="library"] .wss-library-table-wrap.wss-library-table-scroll::-webkit-scrollbar-thumb{background:#b9c4ce;border-radius:999px;border:2px solid #fff}
.wss-tab-panel[data-panel="library"] .wss-library-table-wrap.wss-library-table-scroll::-webkit-scrollbar-track{background:#f3f6f8}

/* V0.3.19 - compact AI polish control beneath How is it used? */
.wss-use-improve-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:2px}
.wss-btn-compact{padding:7px 11px;font-size:11.5px;min-height:30px}
.wss-use-improve-row .wss-ai-status{font-size:11.5px}

/* V0.3.20: auto-growing COSHH textareas and draft status */
.wss-form textarea{overflow-y:hidden;min-height:72px}.wss-draft-badge{display:inline-flex;align-items:center;margin-left:7px;padding:2px 6px;border-radius:999px;background:#fff2cc;color:#755900;font-size:10px;font-weight:900;line-height:1.2;vertical-align:1px}.wss-pack-item:disabled{opacity:.35;cursor:not-allowed}

/* V0.3.21: duplicate COSHH save controls at the top of the builder */
.wss-top-save-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin:0 0 14px;padding:10px 12px;background:#fff;border:1px solid var(--wss-line);border-radius:10px;box-shadow:0 2px 8px rgba(40,50,60,.035)}
.wss-top-save-actions .wss-muted{margin-left:2px}
@media(max-width:680px){.wss-top-save-actions .wss-btn{flex:1 1 auto}.wss-top-save-actions .wss-muted{width:100%;margin-left:0}}

/* V0.3.22: dedicated COSHH Builder top command bar. Kept outside the form so it always renders visibly. */
.wss-builder-commandbar{display:flex!important;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:0 0 14px;padding:10px 12px;background:#fff;border:1px solid var(--wss-line);border-radius:10px;box-shadow:0 2px 8px rgba(40,50,60,.035)}
.wss-builder-commandbar-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.wss-builder-commandbar-note{font-size:13px;line-height:1.25;color:var(--wss-muted)}
@media(max-width:680px){.wss-builder-commandbar{align-items:stretch}.wss-builder-commandbar-actions{width:100%}.wss-builder-commandbar-actions .wss-btn{flex:1 1 auto}.wss-builder-commandbar-note{width:100%}}

/* V0.3.23 - compact COSHH Library ordering/index controls */
.wss-library-orderbar{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin:0 0 7px;padding:5px 7px;background:#f7f9fb;border:1px solid var(--wss-line);border-radius:7px;font-size:11px;line-height:1}
.wss-library-orderbar label{font-size:10.5px;font-weight:850;color:var(--wss-navy)}
.wss-library-orderbar select{width:auto;min-width:150px;max-width:220px;padding:5px 25px 5px 7px!important;font-size:11px!important;min-height:28px!important;height:28px!important}
.wss-library-order-status{font-size:10.5px;color:var(--wss-muted);line-height:1.15}
.wss-tab-panel[data-panel="library"] .wss-order-col{width:42px!important;min-width:42px;text-align:center;padding-left:3px!important;padding-right:3px!important}
.wss-library-index{display:inline-block;min-width:18px;font-size:10.5px;font-weight:800;color:#627386;text-align:center}
.wss-library-reorder-controls{display:flex;align-items:center;justify-content:center;gap:2px;white-space:nowrap}
.wss-library-order-input{width:34px!important;min-width:34px!important;height:24px!important;min-height:24px!important;padding:2px 3px!important;text-align:center;font-size:10.5px!important;border-radius:5px!important}
.wss-order-arrow{width:22px;height:24px;padding:0;border:1px solid #cad5df;border-radius:5px;background:#fff;color:var(--safyne-navy-soft);font-size:12px;font-weight:900;line-height:1;cursor:pointer}
.wss-order-arrow:hover{background:#eaf2fa;border-color:#9eb9d2}
@media(max-width:720px){.wss-library-orderbar{align-items:stretch}.wss-library-orderbar select{flex:1 1 150px}.wss-library-order-status{width:100%}}


/* WSS V0.3.24 - keep SDS document links visible regardless of WordPress/theme anchor styles. */
.wss-tab-panel[data-panel="library"] .wss-sds-link{
  color:var(--safyne-info)!important;
  text-decoration:none!important;
  font-weight:750;
  opacity:1!important;
}
.wss-tab-panel[data-panel="library"] .wss-sds-link:visited{color:var(--safyne-info)!important;}
.wss-tab-panel[data-panel="library"] .wss-sds-link:hover,
.wss-tab-panel[data-panel="library"] .wss-sds-link:focus-visible{
  color:var(--safyne-info-dark)!important;
  text-decoration:underline!important;
}


/* WSS V0.3.25 - make manual library ordering self-explanatory and invisible during normal browsing. */
.wss-tab-panel[data-panel="library"] .wss-library-table .wss-order-col{display:none!important;}
.wss-tab-panel[data-panel="library"] .wss-library-table.is-reordering .wss-order-col{display:table-cell!important;width:108px!important;min-width:108px!important;}
.wss-tab-panel[data-panel="library"] .wss-library-table.is-reordering th.wss-order-col{font-size:10px!important;letter-spacing:.03em;text-transform:uppercase;color:#52687d;}
.wss-tab-panel[data-panel="library"] .wss-library-table.is-reordering .wss-library-reorder-controls{gap:4px;}
.wss-tab-panel[data-panel="library"] .wss-library-table.is-reordering .wss-library-order-input{width:38px!important;min-width:38px!important;}
.wss-library-orderbar #wss-library-reorder-toggle{font-weight:800;}
.wss-library-orderbar #wss-library-order-save{font-weight:850;}
.wss-library-order-status:not(:empty){padding:4px 7px;border-radius:5px;background:#eaf3fc;color:#214d73;font-weight:700;}
.wss-pack-cover-check small{font-size:.9em;font-weight:650;color:var(--wss-muted);}

/* WSS V0.3.29 - clearer COSHH library actions and safe delete menu. */
.wss-tab-panel[data-panel="library"] .wss-row-actions{min-width:190px!important;}
.wss-row-action-buttons{display:flex;align-items:flex-start;gap:7px;white-space:nowrap;}
.wss-tab-panel[data-panel="library"] .wss-row-action{
  display:inline-flex!important;align-items:center;justify-content:center;
  min-height:27px;padding:5px 9px!important;margin:0!important;
  border-radius:6px;border:1px solid transparent;
  font-size:11px!important;font-weight:800!important;line-height:1!important;
  text-decoration:none!important;box-shadow:none!important;
}
.wss-tab-panel[data-panel="library"] .wss-row-action-edit{
  color:#1f5f96!important;background:#eef6fd!important;border-color:#bad2e6!important;
}
.wss-tab-panel[data-panel="library"] .wss-row-action-edit:hover,
.wss-tab-panel[data-panel="library"] .wss-row-action-edit:focus-visible{background:#dfeefa!important;border-color:#8db7d8!important;}
.wss-tab-panel[data-panel="library"] .wss-row-action-print{
  color:#fff!important;background:var(--safyne-navy-soft)!important;border-color:var(--safyne-navy-soft)!important;
}
.wss-tab-panel[data-panel="library"] .wss-row-action-print:hover,
.wss-tab-panel[data-panel="library"] .wss-row-action-print:focus-visible{background:#0f304e!important;border-color:#0f304e!important;}
.wss-row-manage{display:inline-block;min-width:66px;}
.wss-row-manage summary{
  list-style:none;display:inline-flex;align-items:center;justify-content:center;
  min-height:27px;padding:5px 9px;border:1px solid #cad4dc;border-radius:6px;
  background:#fff;color:#526270;font-size:11px;font-weight:800;line-height:1;cursor:pointer;
}
.wss-row-manage summary::-webkit-details-marker{display:none;}
.wss-row-manage summary:after{content:"▾";margin-left:5px;font-size:9px;}
.wss-row-manage[open] summary{background:#f2f5f7;border-color:#aebbc5;}
.wss-row-manage-menu{
  display:flex;flex-direction:column;align-items:stretch;gap:4px;
  min-width:205px;margin-top:5px;padding:7px;border:1px solid #d5dde3;border-radius:7px;
  background:#fff;box-shadow:0 5px 16px rgba(20,35,50,.12);white-space:normal;
}
.wss-row-manage-menu strong{font-size:10px;color:#5c6974;text-transform:uppercase;letter-spacing:.04em;margin-bottom:2px;}
.wss-delete-option{
  appearance:none;width:100%;padding:6px 8px;border:1px solid #dfc9c9;border-radius:5px;
  background:#fff8f8;color:#8a2929;text-align:left;font:inherit;font-size:11px;font-weight:750;line-height:1.15;cursor:pointer;
}
.wss-delete-option:hover,.wss-delete-option:focus-visible{background:#fdecec;border-color:#c88d8d;}
.wss-delete-option.is-danger{background:#9b2c2c;border-color:#9b2c2c;color:#fff;}
.wss-delete-option.is-danger:hover,.wss-delete-option.is-danger:focus-visible{background:#7f2222;border-color:#7f2222;}
.wss-delete-option:disabled{opacity:.6;cursor:wait;}
.wss-manage-note,.wss-no-sds{font-size:10.5px;color:var(--wss-muted);}
@media(max-width:900px){
  .wss-tab-panel[data-panel="library"] .wss-row-actions{min-width:170px!important;}
  .wss-row-action-buttons{gap:5px;}
  .wss-tab-panel[data-panel="library"] .wss-row-action,.wss-row-manage summary{padding:5px 7px!important;}
}


/* V0.4.04 — follow collapsible outer shell width instead of retaining the old 273px gutter. */
@media(min-width:1101px){
  body.wssys-module-host{margin-left:220px!important;width:calc(100% - 220px)!important;max-width:calc(100% - 220px)!important}
  body.wssys-main-sidebar-collapsed.wssys-module-host{margin-left:58px!important;width:calc(100% - 58px)!important;max-width:calc(100% - 58px)!important}
}

/* WSS v0.6.17 — COSHH secondary workspace sidebar, matching RAMS navigation. */
.wss-app.wss-coshh-local-collapsed{}
.wss-coshh-shell{display:grid;grid-template-columns:240px minmax(0,1fr);min-width:0;align-items:start}
.wss-coshh-workspace{min-width:0;max-width:100%}
@media(min-width:821px){
  #wss-coshh-app{max-width:none!important}
  #wss-coshh-app>.wss-app{max-width:none!important;margin:0!important;border-radius:0!important;box-shadow:none!important;overflow:visible!important;min-height:100vh!important}
  .wss-coshh-local-nav{
    position:sticky;top:0;height:100vh;width:240px;padding:18px;overflow:hidden;
    border-right:1px solid #dce5ed;background:#fff;color:#18212a;box-sizing:border-box;
    transition:width .18s ease,padding .18s ease;
  }
  .wss-coshh-local-sidebar-toggle{
    display:flex;position:absolute;top:8px;right:8px;z-index:6;width:30px;height:30px;padding:0;
    align-items:center;justify-content:center;border:0;border-radius:6px;background:#e7edf2;color:#29445a;cursor:pointer
  }
  .wss-coshh-local-sidebar-toggle:hover{background:#d8e1e8;color:#0b3858}
  .wss-coshh-local-sidebar-toggle svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transition:transform .18s ease}
  .wss-coshh-local-title{display:grid;gap:2px;padding:4px 38px 13px 2px;margin:0}
  .wss-coshh-local-title span{font-size:10px;letter-spacing:.65px;color:#7f91a0;font-weight:800}
  .wss-coshh-local-title strong{font-size:15px;line-height:1.15;color:#182f44;font-weight:700}
  .wss-coshh-local-links{display:grid;gap:5px;margin-top:8px}
  .wss-coshh-local-link,.wss-coshh-local-tool{
    display:flex;align-items:center;justify-content:flex-start;width:100%;min-height:39px;margin:0;padding:7px 10px;gap:9px;
    border:0;border-radius:8px;background:transparent;color:#18212a;text-align:left;text-decoration:none!important;
    font-size:14px;font-weight:560;line-height:1.15;cursor:pointer;box-sizing:border-box
  }
  .wss-coshh-local-link:hover,.wss-coshh-local-tool:hover{background:#eef3f7;color:var(--safyne-navy)}
  .wss-coshh-local-link.is-active{background:#eef3f7;color:var(--safyne-navy);font-weight:700}
  .wss-coshh-local-icon{display:inline-flex;align-items:center;justify-content:center;flex:0 0 20px;width:20px;min-width:20px;height:20px;color:#49657a}
  .wss-coshh-local-link.is-active .wss-coshh-local-icon{color:#1e5f94}
  .wss-coshh-local-icon svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
  .wss-coshh-local-label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .wss-coshh-local-count{margin-left:auto;display:inline-grid;place-items:center;min-width:25px;height:21px;padding:0 6px;border-radius:999px;background:#e7eef4;color:#49657a;font-size:10px;font-weight:800}
  .wss-coshh-local-tools{display:grid;gap:5px;margin:18px 0 0;padding:13px 0 0;border-top:1px solid #e1e8ee}
  .wss-coshh-local-tools>small{display:block;padding:0 10px 3px;color:#8c9ba7;font-size:9px;font-weight:800;letter-spacing:.7px}
  .wss-coshh-local-note{position:absolute;left:18px;right:18px;bottom:20px;color:#8797a4;font-size:12px;line-height:1.45}
  .wss-coshh-local-note strong{color:#536b7d}
  .wss-tabs{display:none!important}
  .wss-coshh-workspace .wss-tab-panel{padding:24px 28px}
  .wss-app.wss-coshh-local-collapsed .wss-coshh-shell{grid-template-columns:58px minmax(0,1fr)}
  .wss-app.wss-coshh-local-collapsed .wss-coshh-local-nav{width:58px;padding:10px 8px}
  .wss-app.wss-coshh-local-collapsed .wss-coshh-local-sidebar-toggle{right:14px}
  .wss-app.wss-coshh-local-collapsed .wss-coshh-local-sidebar-toggle svg{transform:rotate(180deg)}
  .wss-app.wss-coshh-local-collapsed .wss-coshh-local-title,
  .wss-app.wss-coshh-local-collapsed .wss-coshh-local-tools,
  .wss-app.wss-coshh-local-collapsed .wss-coshh-local-note{display:none}
  .wss-app.wss-coshh-local-collapsed .wss-coshh-local-links{margin-top:38px;gap:5px}
  .wss-app.wss-coshh-local-collapsed .wss-coshh-local-link{width:42px;min-width:42px;height:42px;min-height:42px;padding:0;margin:0 auto;justify-content:center}
  .wss-app.wss-coshh-local-collapsed .wss-coshh-local-label,
  .wss-app.wss-coshh-local-collapsed .wss-coshh-local-count{display:none}
  .wss-app.wss-coshh-local-collapsed .wss-coshh-local-icon{width:22px;min-width:22px;height:22px;flex-basis:22px}
  .wss-app.wss-coshh-local-collapsed .wss-coshh-local-icon svg{width:20px;height:20px}
}
@media(max-width:820px){
  .wss-coshh-shell{grid-template-columns:1fr}
  .wss-coshh-local-nav{display:flex;align-items:center;gap:4px;padding:7px;background:#fff;border-bottom:1px solid #dce5ed;overflow:auto}
  .wss-coshh-local-sidebar-toggle,.wss-coshh-local-title,.wss-coshh-local-tools,.wss-coshh-local-note{display:none!important}
  .wss-coshh-local-links{display:flex;gap:4px}
  .wss-coshh-local-link{display:flex;align-items:center;gap:6px;min-height:36px;padding:7px 10px;border:0;border-radius:7px;background:transparent;color:#425b6f;font-size:12px;font-weight:700;white-space:nowrap}
  .wss-coshh-local-link.is-active{background:#eef3f7;color:#1e5f94}
  .wss-coshh-local-icon{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;color:inherit}
  .wss-coshh-local-icon svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
  .wss-coshh-local-count{display:inline-grid;place-items:center;min-width:21px;height:19px;padding:0 5px;border-radius:999px;background:#e7eef4;font-size:9px}
  .wss-tabs{display:none!important}
}


/* WSS v0.6.18 — keep the COSHH workspace centred while retaining the secondary sidebar.
   v0.6.17 made the whole COSHH application edge-to-edge; this restores the original
   panel behaviour and gives the sidebar its own column without dragging the builder left. */
@media(min-width:821px){
  #wss-coshh-app{
    width:100%!important;
    max-width:100%!important;
    padding:18px 20px 60px!important;
    box-sizing:border-box!important;
  }
  #wss-coshh-app>.wss-app{
    width:min(100%,1480px)!important;
    max-width:1480px!important;
    margin:0 auto!important;
    border-radius:12px!important;
    box-shadow:0 8px 28px rgba(18,42,64,.08)!important;
    overflow:hidden!important;
    min-height:0!important;
  }
  .wss-coshh-shell{
    grid-template-columns:220px minmax(0,1fr)!important;
    align-items:stretch!important;
  }
  .wss-coshh-local-nav{
    width:220px!important;
    height:auto!important;
    min-height:calc(100vh - 150px)!important;
    position:relative!important;
    top:auto!important;
  }
  .wss-coshh-workspace{
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    background:var(--wss-bg)!important;
  }
  .wss-coshh-workspace .wss-tab-panel{padding:16px!important}
  .wss-app.wss-coshh-local-collapsed .wss-coshh-shell{grid-template-columns:58px minmax(0,1fr)!important}
  .wss-app.wss-coshh-local-collapsed .wss-coshh-local-nav{width:58px!important}
}
@media(min-width:821px) and (max-width:1200px){
  #wss-coshh-app{padding:10px 10px 40px!important}
  .wss-coshh-shell{grid-template-columns:205px minmax(0,1fr)!important}
  .wss-coshh-local-nav{width:205px!important;padding-left:12px!important;padding-right:12px!important}
}


/* WSS v0.6.24 — final COSHH save controls belong to normal page flow, not the viewport. */
.wss-sticky-actions{position:static!important;bottom:auto!important;z-index:auto!important;backdrop-filter:none!important;margin-top:20px}

/* V0.3.70 - ChatGPT Plus SDS exchange */
.wss-chatgpt-coshh-exchange{margin-top:14px;border:1px solid #cbd8e5;border-left:4px solid #287bc1;border-radius:10px;background:#f7fafc;padding:14px 16px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px 18px;align-items:center}
.wss-chatgpt-coshh-copy{display:flex;flex-direction:column;gap:4px;min-width:0}
.wss-chatgpt-coshh-copy strong{font-size:15px;color:var(--safyne-navy)}
.wss-chatgpt-coshh-copy span{font-size:13px;line-height:1.45;color:#536b82}
.wss-chatgpt-coshh-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.wss-chatgpt-coshh-status{grid-column:1/-1;font-size:13px;line-height:1.4;color:#536b82;min-height:0}
.wss-chatgpt-coshh-status:empty{display:none}
.wss-chatgpt-coshh-status.is-success{color:#17683a}
.wss-chatgpt-coshh-status.is-error{color:#a62525}
.wss-chatgpt-coshh-status.is-working{color:#1f5f91}
.wss-chatgpt-coshh-summary{grid-column:1/-1;border-top:1px solid #d7e1eb;padding-top:10px;font-size:13px;line-height:1.45;color:#314a60}
.wss-chatgpt-coshh-summary strong{display:block;color:var(--safyne-navy);margin-bottom:3px}
.wss-chatgpt-coshh-summary span{display:block;font-weight:600;margin-top:7px;color:#314a60}
.wss-chatgpt-coshh-summary ul{margin:4px 0 0 20px;padding:0}
@media(max-width:900px){.wss-chatgpt-coshh-exchange{grid-template-columns:1fr}.wss-chatgpt-coshh-actions{justify-content:flex-start}}

/* WSS v0.7.14 — COSHH sub-sidebar uses the exact Safety App navigation type scale. */
@media(min-width:821px){
  .wss-coshh-local-nav{
    font-family:var(--wssys-workspace-nav-font,Inter,"Segoe UI",Arial,sans-serif)!important;
  }
  .wss-coshh-local-link,
  .wss-coshh-local-tool{
    min-height:var(--wssys-workspace-nav-row-height,39px)!important;
    padding:7px 10px!important;
    gap:9px!important;
    font-family:var(--wssys-workspace-nav-font,Inter,"Segoe UI",Arial,sans-serif)!important;
    font-size:var(--wssys-workspace-nav-size,14px)!important;
    font-weight:var(--wssys-workspace-nav-weight,560)!important;
    line-height:var(--wssys-workspace-nav-line-height,1.15)!important;
    letter-spacing:0!important;
    text-transform:none!important;
  }
  .wss-coshh-local-link.is-active{
    font-weight:var(--wssys-workspace-nav-active-weight,700)!important;
  }
  .wss-coshh-local-icon{
    flex:0 0 var(--wssys-workspace-nav-icon-box,20px)!important;
    width:var(--wssys-workspace-nav-icon-box,20px)!important;
    min-width:var(--wssys-workspace-nav-icon-box,20px)!important;
    height:var(--wssys-workspace-nav-icon-box,20px)!important;
  }
  .wss-coshh-local-icon svg{
    width:var(--wssys-workspace-nav-icon-size,18px)!important;
    height:var(--wssys-workspace-nav-icon-size,18px)!important;
  }
}


/* WSS v0.11.7 — compact COSHH Manage menu floats above library/table clipping. */
body>.wss-row-manage-menu.is-portalled{
  margin:0!important;
  width:300px!important;
  min-width:260px!important;
  max-width:calc(100vw - 20px)!important;
  border:1px solid #c7d2db!important;
  border-radius:8px!important;
  background:#fff!important;
  box-shadow:0 12px 32px rgba(20,35,50,.20)!important;
  z-index:2147483000!important;
}
body>.wss-row-manage-menu.is-portalled .wss-delete-option{min-height:34px!important;}


/* WSS v0.11.8 — COSHH Manage menu aligned to HSE Actions theme. */
.wss-row-manage{min-width:74px!important;}
.wss-row-manage summary{
  appearance:none!important;-webkit-appearance:none!important;
  border:0!important;background:transparent!important;box-shadow:none!important;
  color:#124f78!important;
  min-width:74px!important;min-height:0!important;
  padding:5px 10px!important;margin:0!important;
  font:700 11px/1.2 Arial,Helvetica,sans-serif!important;
  text-align:left!important;justify-content:flex-start!important;
  cursor:pointer!important;text-decoration:none!important;
}
.wss-row-manage summary:after{content:""!important;margin:0!important;}
.wss-row-manage summary:hover,
.wss-row-manage summary:focus-visible,
.wss-row-manage[open] summary{
  background:transparent!important;border:0!important;color:#124f78!important;
  text-decoration:underline!important;outline:0!important;
}
body>.wss-row-manage-menu.is-portalled{
  width:220px!important;min-width:220px!important;max-width:calc(100vw - 20px)!important;
  padding:5px 0!important;gap:0!important;
  border:1px solid #8fa6b8!important;border-radius:5px!important;
  background:#fff!important;
  box-shadow:0 10px 28px rgba(20,46,66,.24)!important;
  overflow-x:hidden!important;
}
body>.wss-row-manage-menu.is-portalled strong{
  display:block!important;margin:0!important;padding:6px 12px 5px!important;
  background:#f7f9fb!important;color:#708697!important;
  font:800 9px/1.2 Arial,Helvetica,sans-serif!important;
  letter-spacing:.08em!important;text-transform:uppercase!important;
}
body>.wss-row-manage-menu.is-portalled .wss-delete-option{
  appearance:none!important;-webkit-appearance:none!important;
  display:block!important;width:100%!important;min-height:0!important;
  margin:0!important;padding:8px 12px!important;
  border:0!important;border-radius:0!important;
  background:#fff!important;color:#8a2929!important;
  text-align:left!important;
  font:600 11px/1.2 Arial,Helvetica,sans-serif!important;
  cursor:pointer!important;
}
body>.wss-row-manage-menu.is-portalled .wss-delete-option:hover,
body>.wss-row-manage-menu.is-portalled .wss-delete-option:focus-visible{
  background:#fff1f1!important;color:#7b2020!important;outline:0!important;
}
body>.wss-row-manage-menu.is-portalled .wss-delete-option.is-danger{
  margin-top:5px!important;padding-top:9px!important;
  border-top:1px solid #c4d0d9!important;
  background:#fff!important;color:#9b2c2c!important;font-weight:800!important;
}
body>.wss-row-manage-menu.is-portalled .wss-delete-option.is-danger:hover,
body>.wss-row-manage-menu.is-portalled .wss-delete-option.is-danger:focus-visible{
  background:#fff1f1!important;color:#7f2222!important;
}


/* WSS v0.11.9 — COSHH Library row actions use the same text-led theme as Manage. */
.wss-tab-panel[data-panel="library"] .wss-row-action-buttons{
  display:flex!important;
  align-items:center!important;
  gap:14px!important;
  white-space:nowrap!important;
}
.wss-tab-panel[data-panel="library"] .wss-row-action,
.wss-tab-panel[data-panel="library"] .wss-row-action-edit,
.wss-tab-panel[data-panel="library"] .wss-row-action-print{
  appearance:none!important;
  -webkit-appearance:none!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  min-height:0!important;
  padding:5px 0!important;
  margin:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  color:#124f78!important;
  font:700 11px/1.2 Arial,Helvetica,sans-serif!important;
  text-decoration:none!important;
  cursor:pointer!important;
}
.wss-tab-panel[data-panel="library"] .wss-row-action:hover,
.wss-tab-panel[data-panel="library"] .wss-row-action:focus-visible,
.wss-tab-panel[data-panel="library"] .wss-row-action-edit:hover,
.wss-tab-panel[data-panel="library"] .wss-row-action-edit:focus-visible,
.wss-tab-panel[data-panel="library"] .wss-row-action-print:hover,
.wss-tab-panel[data-panel="library"] .wss-row-action-print:focus-visible{
  background:transparent!important;
  border:0!important;
  color:#124f78!important;
  text-decoration:underline!important;
  outline:0!important;
}
.wss-row-manage{
  min-width:auto!important;
}
.wss-row-manage summary{
  min-width:auto!important;
  padding:5px 0!important;
}
@media(max-width:900px){
  .wss-tab-panel[data-panel="library"] .wss-row-action-buttons{
    gap:10px!important;
  }
}

/* v0.11.22 — compact COSHH workspace submenu. */
@media(min-width:821px){
  .wss-coshh-shell{grid-template-columns:var(--wssys-workspace-sidebar-width,220px) minmax(0,1fr)!important}
  .wss-coshh-local-nav{width:var(--wssys-workspace-sidebar-width,220px)!important;padding:12px var(--wssys-workspace-sidebar-pad-x,12px)!important}
  .wss-coshh-local-title{padding:2px 36px 9px 1px!important}
  .wss-coshh-local-title span{font-size:8.5px!important;letter-spacing:.55px!important}
  .wss-coshh-local-title strong{font-size:14px!important;line-height:1.1!important}
  .wss-coshh-local-links{gap:2px!important;margin-top:6px!important}
  .wss-coshh-local-link,.wss-coshh-local-tool{min-height:var(--wssys-workspace-nav-row-height,34px)!important;padding:5px 8px!important;gap:8px!important;font-size:var(--wssys-workspace-nav-size,12.5px)!important;font-weight:var(--wssys-workspace-nav-weight,520)!important;border-radius:7px!important}
  .wss-coshh-local-icon{flex-basis:var(--wssys-workspace-nav-icon-box,18px)!important;width:var(--wssys-workspace-nav-icon-box,18px)!important;min-width:var(--wssys-workspace-nav-icon-box,18px)!important;height:var(--wssys-workspace-nav-icon-box,18px)!important}
  .wss-coshh-local-icon svg{width:var(--wssys-workspace-nav-icon-size,16px)!important;height:var(--wssys-workspace-nav-icon-size,16px)!important}
  .wss-coshh-local-tools{margin-top:10px!important;padding-top:9px!important;gap:2px!important}
  .wss-coshh-local-tools>small{padding:0 8px 2px!important;font-size:8px!important}
  .wss-coshh-local-count{min-width:21px!important;height:18px!important;padding:0 5px!important;font-size:8.5px!important}
}

/* v0.12.39 - pair the Other person-at-risk checkbox with its description field. */
.wss-other-person{gap:8px;min-width:0}.wss-other-person>span{white-space:nowrap}.wss-other-person-input{min-width:0!important;flex:1 1 150px!important;width:auto!important;padding:7px 9px!important}.wss-other-person-input::placeholder{color:#8b949c}
@media(max-width:680px){.wss-other-person{flex-wrap:wrap}.wss-other-person-input{flex-basis:100%!important;margin-left:26px}}


/* v0.12.46 - COSHH save confirmation while keeping the saved assessment open. */
.wss-coshh-save-toast{position:fixed;right:22px;bottom:22px;z-index:99999;max-width:min(420px,calc(100vw - 44px));padding:12px 16px;border-radius:9px;background:var(--safyne-navy);color:#fff;font-weight:800;box-shadow:0 10px 30px rgba(0,0,0,.22);opacity:0;transform:translateY(10px);pointer-events:none;transition:opacity .18s ease,transform .18s ease}.wss-coshh-save-toast.is-visible{opacity:1;transform:translateY(0)}

/* v0.12.51 — COSHH Library row Actions selector aligned with RA / MS libraries. */
.wss-tab-panel[data-panel="library"] .wss-row-actions{
  min-width:118px!important;
  width:118px;
  padding-left:6px!important;
  padding-right:7px!important;
  text-align:right;
  overflow:visible;
}
.wss-tab-panel[data-panel="library"] .wss-coshh-action-select{
  display:block;
  width:112px;
  height:30px;
  margin-left:auto;
  border:1px solid #b8c7d2;
  border-radius:6px;
  background:#fff;
  color:#294b67;
  padding:4px 8px;
  font:inherit;
  font-size:11.5px;
  font-weight:700;
  line-height:1;
  cursor:pointer;
}
.wss-tab-panel[data-panel="library"] .wss-coshh-action-select:hover{
  background:#f4f8fb;
  border-color:#95adbf;
}
.wss-tab-panel[data-panel="library"] .wss-coshh-action-select:focus{
  outline:3px solid rgba(36,108,174,.13);
  border-color:#4c88bb;
}
.wss-tab-panel[data-panel="library"] .wss-coshh-action-select option{
  font-size:11px;
  font-weight:500;
}
