:root{font-family:Inter,system-ui,-apple-system,Segoe UI,sans-serif;color:#16332c;background:#f4f8f6}*{box-sizing:border-box}body{margin:0}header{background:#fff;border-bottom:1px solid #dce7e1;padding:16px 28px;display:flex;align-items:center;justify-content:space-between}.brand{display:flex;align-items:center;gap:12px}.brand strong{display:block;font-size:20px}.brand small{display:block;color:#678076}.logo{background:#126b52;color:white;border-radius:12px;padding:10px 14px;font-weight:900}.status{font-size:12px;background:#e7f4ec;color:#126b52;border-radius:20px;padding:7px 12px}main{display:grid;grid-template-columns:310px minmax(0,1fr);min-height:calc(100vh - 75px)}aside{padding:25px;background:#fff;border-right:1px solid #dce7e1}h1{font-size:27px;margin:0 0 7px}h2{font-size:16px;margin:22px 0 12px}.muted{color:#667d72;font-size:14px;line-height:1.5}label{display:block;font-size:13px;font-weight:650;margin:13px 0}input,select,textarea{display:block;width:100%;font:inherit;font-weight:400;border:1px solid #ceddd4;border-radius:9px;padding:10px;margin-top:7px;background:#fff;color:#16332c}input[type=checkbox]{width:auto;margin:0;accent-color:#126b52}button{border:0;border-radius:9px;padding:10px 13px;background:#126b52;color:white;font-weight:650;cursor:pointer}button.secondary{background:#e5f2ec;color:#125b47}button.ghost{background:#eef1ef;color:#4b6158}.buttons{display:flex;gap:8px;flex-wrap:wrap;margin:15px 0}.notice{font-size:12px;color:#687c71;line-height:1.6;border-top:1px solid #e4eee8;margin-top:24px;padding-top:16px}.choice{display:flex;gap:9px;align-items:center;padding:11px 8px;border-bottom:1px solid #eef2ef;font-size:13px}.workspace{padding:27px;max-width:1100px;width:100%;margin:auto}.top{display:flex;justify-content:space-between;gap:20px;align-items:start}.panel{background:white;border:1px solid #e0eae4;border-radius:13px;padding:17px;margin:18px 0}.panel>label{max-width:400px}.flow{max-width:760px;margin:26px auto}.step{background:white;border:1px solid #cbded2;border-left:5px solid #168367;border-radius:12px;padding:15px 18px;box-shadow:0 3px 12px #123a2710}.stephead{display:flex;justify-content:space-between;gap:10px;align-items:center}.step strong{font-size:15px}.step p{font-size:13px;color:#64776d;margin:7px 0 0}.step .tag{display:inline-block;background:#eaf4ee;color:#126b52;border-radius:20px;padding:4px 9px;font-size:11px;margin-top:9px}.step button{padding:6px 9px;font-size:12px}.arrow{text-align:center;color:#6b9481;font-size:24px;line-height:36px}.empty{text-align:center;background:white;border:2px dashed #c6d9cd;border-radius:12px;padding:50px;color:#6c8275}.review{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}dialog{border:1px solid #d6e6dc;border-radius:16px;padding:24px;width:min(94vw,480px);box-shadow:0 20px 60px #123a2740}dialog::backdrop{background:#0a2d2280}dialog menu{display:flex;justify-content:flex-end;gap:10px;padding:0}@media(max-width:850px){main{display:block}aside{border-right:0;border-bottom:1px solid #dce7e1}.top{display:block}.workspace{padding:18px}.review{grid-template-columns:1fr}header{padding:13px}.status{display:none}}@media print{header,aside,.buttons,.step button,.notice{display:none!important}main{display:block}.workspace{padding:0}.panel{break-inside:avoid}.step{break-inside:avoid}body{background:white}}

.tabs{display:flex;gap:8px;border-bottom:1px solid #cbded2;margin:18px 0 24px;flex-wrap:wrap}.tabs button{background:transparent;color:#527466;border-radius:8px 8px 0 0}.tabs button.active{background:#126b52;color:white}.hazardCard{background:#fff;border:1px solid #d8e6dc;border-radius:12px;padding:17px;margin:14px 0}.hazardGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 16px}.hazardGrid label{margin:3px 0}.hazardGrid textarea{resize:vertical}.exportGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.exportGrid button{padding:16px}@media(max-width:750px){.hazardGrid,.exportGrid{grid-template-columns:1fr}}@media print{.tabs{display:none}}

.assessmentSummary{margin-top:16px;padding:13px;border:1px solid #d4e4d9;border-radius:10px;background:#f4f8f6}.assessmentSummary p{margin:8px 0}.assessmentSummary .warn{color:#a45109;font-weight:700}.assessmentSummary .ok{color:#126b52;font-weight:700}.assessmentSummary ul{margin:7px 0;padding-left:22px;font-size:13px;line-height:1.65}

/* V2.2 hazard overview and section editor */
.hazardOverview{margin:16px 0 25px}.overviewHead h3{margin:0 0 5px}.overviewScroll{overflow-x:auto;border:1px solid #d8e6dc;border-radius:10px}.overviewTable{border-collapse:collapse;width:100%;min-width:740px;font-size:13px}.overviewTable th,.overviewTable td{padding:12px;text-align:left;border-bottom:1px solid #e5ede7}.overviewTable th{background:#eaf5ef;color:#204c3b}.overviewTable tbody tr{cursor:pointer}.overviewTable tbody tr:hover{background:#f4faf6}.overviewTable tbody tr.selected{background:#e3f3e9;box-shadow:inset 4px 0 #126b52}.statusWarning{color:#a45109;font-weight:650}.statusReview{color:#126b52;font-weight:650}.assessmentSections{display:grid;gap:12px;margin-top:16px}.assessmentSection{border:1px solid #d8e6dc;border-radius:10px;overflow:hidden}.assessmentSection>summary{cursor:pointer;font-weight:750;padding:15px 17px;background:#f4f8f6}.assessmentSection[open]>summary{border-bottom:1px solid #d8e6dc}.assessmentSection>.hazardGrid{padding:17px}.hazardCard[hidden]{display:none!important}.tabs button:not(.active){background:transparent!important;color:#527466!important}.tabs button.active{background:#126b52!important;color:white!important}@media(max-width:750px){.assessmentSection>.hazardGrid{grid-template-columns:1fr}}

/* V2.3 — polished dashboard design */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Manrope:wght@500;600;700;800&display=swap');
:root{font-family:'DM Sans',system-ui,-apple-system,Segoe UI,sans-serif;color:#172b38;background:#f3f6fb;--navy:#132c42;--teal:#087f78;--mint:#e4f7f1;--line:#e5ebf1;--muted:#687989;--shadow:0 10px 32px rgba(19,44,66,.055)}
body{background:linear-gradient(145deg,#f4f7fc 0%,#f8fbfa 70%,#f1f6f9 100%);color:var(--navy)}
header{height:84px;background:#fff;padding:16px 35px;border-bottom:1px solid var(--line);box-shadow:0 2px 16px #132c4207;position:relative;z-index:2}
.brand{gap:14px}.brand strong{font:800 21px 'Manrope',sans-serif;letter-spacing:-.8px;color:var(--navy)}.brand small{font-size:12px;color:#718291;margin-top:3px}.logo{background:linear-gradient(135deg,#07988b,#145c68);border-radius:15px;padding:12px 16px;box-shadow:0 8px 18px #098e812d}.status{background:#e9f7f2;color:#167b65;border:1px solid #d2eae1;font-weight:700;padding:8px 14px}
main{grid-template-columns:292px minmax(0,1fr);min-height:calc(100vh - 84px)}aside{background:#fff;padding:26px 19px;border-right:1px solid var(--line);box-shadow:5px 0 20px #132c4203}aside h2{font:800 12px 'DM Sans',sans-serif;text-transform:uppercase;letter-spacing:1.15px;color:#8292a0;margin:16px 8px 20px}aside h2:not(:first-child){padding-top:23px;border-top:1px solid #edf1f4;margin-top:28px}aside>label{margin:15px 8px;font-size:12px;color:#485d6b}aside input,aside select{background:#f8fafc}.choice{padding:12px 10px;margin:2px 0;border:1px solid transparent;border-radius:10px;font-size:13px;font-weight:600;color:#445c6c;transition:.15s}.choice:hover{background:#f3f8fa;border-color:#e4eeed}.choice:has(input:checked){background:#eaf8f3;border-color:#bce9d9;color:#086d5f}.choice input{width:16px;height:16px}.notice{background:#f2f8f7;border:1px solid #e0edeb;border-radius:12px;padding:14px;margin:25px 2px;color:#607b78}
.workspace{max-width:1460px;padding:36px clamp(20px,3.2vw,55px);margin:0 auto}.top{background:linear-gradient(110deg,#17384c,#116c70 72%,#078d83);padding:29px 34px;border-radius:19px;box-shadow:0 15px 34px #0a59572b;color:white;align-items:center;position:relative;overflow:hidden}.top:after{content:'';position:absolute;right:21%;top:-125px;width:300px;height:300px;border:1px solid #ffffff2e;border-radius:50%;pointer-events:none}.top h1{font:800 clamp(24px,2.2vw,34px) 'Manrope',sans-serif;letter-spacing:-1.1px;color:#fff;margin-bottom:7px}.top .muted{color:#d2e7e7;font-size:14px;margin:0}.top .buttons{z-index:1;position:relative;flex-shrink:0}.top button{background:white;color:#145b5c}.top button.secondary{background:#ffffff20;color:#fff;border:1px solid #ffffff60}
.tabs{margin:26px 0 22px;gap:10px;border:0;padding:5px;background:#eaf0f5;border-radius:14px;display:inline-flex;max-width:100%}.tabs button,.tabs button:not(.active){border-radius:10px!important;padding:12px 18px!important;background:transparent!important;color:#607586!important;font-weight:800;box-shadow:none!important}.tabs button.active{background:white!important;color:#08796f!important;box-shadow:0 2px 10px #152e4519!important}.tabs button:hover:not(.active){background:#ffffff80!important;color:#264d60!important}
.panel,.hazardCard{background:#fff;border:1px solid var(--line);border-radius:17px;box-shadow:var(--shadow);padding:24px}.panel{margin:18px 0}.panel h2,.hazardOverview h3{font:800 19px 'Manrope',sans-serif;letter-spacing:-.45px;color:#19384a}.panel>label{max-width:520px}.muted{color:#748694}label{color:#395263;font-size:12px;letter-spacing:.08px;font-weight:800}input,select,textarea{border:1px solid #dce5eb;background:#fcfdfd;border-radius:10px;padding:12px 13px;min-height:43px;color:#17384a;transition:border .15s,box-shadow .15s}textarea{line-height:1.5}input:focus,select:focus,textarea:focus{outline:0;border-color:#20a59b;box-shadow:0 0 0 4px #0aa59418}button{background:linear-gradient(135deg,#07877b,#096b73);border-radius:10px;padding:11px 15px;font-size:13px;box-shadow:0 3px 9px #067a6a18;transition:transform .15s,box-shadow .15s}button:hover{transform:translateY(-1px);box-shadow:0 6px 16px #067a6a20}button:focus-visible{outline:3px solid #6bd9c5;outline-offset:2px}button.secondary{background:#e9f6f2;color:#08756a;box-shadow:none}button.ghost{background:#f0f4f7;color:#4e6473;box-shadow:none}.buttons{gap:10px}
.flow{max-width:900px;margin:28px auto}.step{border:1px solid #e1e9ee;border-left:5px solid #11a595;box-shadow:0 8px 25px #132c4209;border-radius:15px;padding:19px 23px}.step strong{color:#17394a}.step .tag{background:#e8f8f2;color:#137d68}.arrow{color:#18a595;line-height:45px;font-weight:800}.empty{background:#fff;border:2px dashed #bfded7;border-radius:18px;color:#7a8e9c}
.hazardOverview{margin:22px 0 26px}.overviewHead h3{margin-bottom:7px}.overviewScroll{border:1px solid #e2eaf0;border-radius:14px;box-shadow:0 5px 18px #17384a08}.overviewTable{font-size:13px;min-width:820px}.overviewTable th{background:#f1f6f9;color:#6b7e8c;font-size:11px;text-transform:uppercase;letter-spacing:.6px;padding:15px}.overviewTable td{padding:15px;line-height:1.5;color:#314c5e;border-bottom:1px solid #edf1f4}.overviewTable tbody tr:nth-child(even){background:#fbfcfd}.overviewTable tbody tr:hover{background:#eaf8f6}.overviewTable tbody tr.selected{background:#e7f7f1;box-shadow:inset 4px 0 #0b988b}.statusWarning{color:#a86615!important;font-weight:800}.statusReview{color:#0b816b!important;font-weight:800}.hazardCard{margin-top:20px}.assessmentSections{gap:14px}.assessmentSection{border:1px solid #e2eaf0;border-radius:13px}.assessmentSection>summary{background:#f6f9fb;color:#24465a;padding:18px 20px}.assessmentSection[open]>summary{background:#eaf7f4;border-color:#d6eee6;color:#0c746b}.assessmentSection>.hazardGrid{padding:22px}.assessmentSummary{border-radius:13px;background:#f7f9fc;border-color:#e1e9f0}.exportGrid button{padding:20px;text-align:left;background:#f0f8f5;color:#0d776c;border:1px solid #d5ebe2}.exportGrid button:hover{background:#e0f3ec}.review{gap:20px}
.filterToolbar{display:flex;gap:12px;flex-wrap:wrap;align-items:end;margin:16px 0 18px;padding:16px;background:#f7fafc;border:1px solid #e5edf2;border-radius:13px}.filterToolbar label{flex:1 1 190px;margin:0}.filterToolbar input,.filterToolbar select{margin-top:7px;background:white}.filterToolbar .filterCount{font-size:12px;color:#688292;font-weight:800;padding:0 3px 13px}.duplicateTag{display:inline-block;color:#9a6012;background:#fff4df;border:1px solid #f3ddb2;border-radius:7px;padding:3px 7px;font-size:11px;font-weight:800;margin-top:5px}.overviewTable td:nth-child(4),.overviewTable td:nth-child(5){white-space:nowrap}
dialog{border:1px solid #e0e9ee;border-radius:19px;box-shadow:0 28px 90px #17384a38}dialog h2{font:800 20px 'Manrope',sans-serif}
@media(max-width:1000px){main{grid-template-columns:240px minmax(0,1fr)}aside{padding:20px 12px}.top{display:block}.top .buttons{margin-bottom:0}.workspace{padding:24px}}
@media(max-width:750px){header{height:74px;padding:12px 17px}main{display:block}aside{border-right:0;padding:18px;border-bottom:1px solid #e5ebf1}aside h2{margin:10px 0}.workspace{padding:16px}.top{padding:24px 20px}.tabs{width:100%;display:flex}.tabs button{flex:1;padding:11px 8px!important;font-size:12px}.panel,.hazardCard{padding:17px}.filterToolbar{padding:12px}.review,.hazardGrid,.exportGrid{grid-template-columns:1fr}}
@media print{body{background:white!important}header,aside,.tabs,.filterToolbar,.buttons,.step button{display:none!important}.top{background:none;color:#132c42;box-shadow:none;padding:0}.top h1,.top .muted{color:#132c42}.workspace{padding:0;max-width:none}.panel,.hazardCard{box-shadow:none;break-inside:avoid}}

/* V2.4 layout and visual refresh — appended overrides */
:root{--navy:#102c3d;--teal:#079f8b;--line:#dce8ec}html,body{max-width:100%;overflow-x:hidden}body{background:#f0f5f7!important;color:#17364a!important;font-family:Inter,system-ui,-apple-system,Segoe UI,sans-serif!important}header{background:var(--navy)!important;color:#fff!important;border-bottom:0!important;box-shadow:0 4px 18px #112f3b18;min-height:76px}header .brand strong{color:#fff!important}header .brand small{color:#b8d4d9!important}header .logo{background:#0b9e8c!important}header .status{background:#24495a!important;color:#c5f2e7!important}main{grid-template-columns:minmax(245px,280px) minmax(0,1fr)!important;align-items:start;min-height:calc(100vh - 76px)}aside{width:100%!important;min-width:0!important;position:sticky;top:0;max-height:calc(100vh - 76px);overflow-y:auto;overflow-x:hidden;padding:22px 17px!important;background:#fff!important;border-right:1px solid var(--line)!important}aside *{min-width:0}aside h2{color:#163a49!important}aside .choice{border-radius:9px;padding:11px 8px!important}.choice:hover{background:#eff8f5}.workspace{max-width:1440px!important;width:100%!important;min-width:0!important;margin:0 auto!important;padding:28px 34px!important}.top{background:linear-gradient(115deg,#102d40,#0d665f)!important;color:white!important;border-radius:18px!important;padding:28px 30px!important;box-shadow:0 14px 30px #12384b17!important;align-items:center}.top h1{color:#fff!important;font-size:30px!important}.top .muted{color:#d0e7e8!important}.top button{background:#fff!important;color:#0d5d57!important}.top button.secondary{background:#dff6ef!important}.tabs{margin:22px 0 20px!important;background:#fff!important;border:1px solid var(--line)!important;border-radius:13px!important;padding:6px!important;display:flex!important;gap:6px!important;width:max-content;max-width:100%}.tabs button{background:transparent!important;color:#486677!important;border-radius:9px!important;padding:12px 17px!important;box-shadow:none!important}.tabs button.active{background:#087e73!important;color:white!important;box-shadow:0 4px 12px #087e7326!important}.panel,.hazardCard{border:1px solid var(--line)!important;border-radius:16px!important;box-shadow:0 8px 28px #1a3a4c0a!important;background:#fff!important}.panel h2,.hazardCard h2,.overviewHead h3{color:#17364a!important}.filterToolbar{display:grid!important;grid-template-columns:minmax(220px,2fr) minmax(170px,1fr) minmax(170px,1fr) auto!important;align-items:end!important;gap:12px!important;background:#f2f8f8!important}.filterToolbar label{min-width:0!important}.filterToolbar .filterCount{white-space:nowrap!important}.overviewScroll{overflow-x:auto!important;max-width:100%!important}.overviewTable{width:100%;border-collapse:collapse}.overviewTable td,.overviewTable th{vertical-align:middle}.overviewTable tbody tr:hover{background:#e9f8f5!important}input:focus,select:focus,textarea:focus{outline:2px solid #20b69c!important;outline-offset:1px}button{transition:transform .12s ease,background .12s ease}button:hover{filter:brightness(.98)}@media(max-width:1100px){.filterToolbar{grid-template-columns:1fr 1fr!important}.filterToolbar label:first-child{grid-column:1/-1}.filterToolbar .filterCount{align-self:center}.workspace{padding:20px!important}}@media(max-width:760px){main{display:block!important}aside{position:relative!important;max-height:none!important;width:100%!important;padding:18px!important}.workspace{padding:14px!important}.top{padding:22px!important}.top h1{font-size:24px!important}.tabs{width:100%!important}.tabs button{flex:1;padding:10px 6px!important;font-size:12px!important}.filterToolbar{grid-template-columns:1fr!important}.filterToolbar label:first-child{grid-column:auto}.overviewTable{min-width:760px}}@media print{header,aside,.tabs,.filterToolbar{display:none!important}main{display:block!important}.top{background:none!important;color:#17364a!important;box-shadow:none!important}.top h1{color:#17364a!important}}


/* V2.5: compact workspace redesign; intentionally supersedes earlier styles */
:root{--ink:#183447;--navy:#142f3e;--teal:#087f75;--line:#e2eaf0;--paper:#fff}html,body{overflow-x:hidden!important}body{background:#f5f7fa!important;color:var(--ink)!important}header{height:66px!important;min-height:66px!important;padding:10px 24px!important;background:#142f3e!important}header .brand strong{font-size:18px!important}header .brand small{font-size:11px!important}header .logo{padding:8px 11px!important;border-radius:10px!important}header .status{font-size:11px!important}main{grid-template-columns:236px minmax(0,1fr)!important;min-height:calc(100vh - 66px)!important}aside{position:sticky!important;top:0!important;max-height:calc(100vh - 66px)!important;overflow-y:auto!important;padding:18px 14px!important;background:#fff!important}aside h2{font-size:11px!important;text-transform:uppercase!important;letter-spacing:1.1px!important;color:#6c7f8e!important;margin:14px 0 10px!important}aside label{font-size:11px!important;margin:9px 0!important}aside input,aside select{padding:9px 10px!important;min-height:38px!important}aside .choice{font-size:12px!important;line-height:1.35!important;padding:9px 5px!important;margin:0!important}.workspace{max-width:none!important;padding:22px 28px!important;margin:0!important}.top{background:none!important;color:var(--ink)!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding:0!important;min-height:0!important;display:flex!important;align-items:center!important}.top h1{font-size:25px!important;color:var(--ink)!important;letter-spacing:-.8px!important}.top .muted{color:#718494!important;font-size:13px!important}.top button{background:#087f75!important;color:white!important}.top button.secondary{background:#e7f5f0!important;color:#12665d!important}.tabs{display:flex!important;width:100%!important;background:transparent!important;border:0!important;border-bottom:1px solid #dfe7ed!important;border-radius:0!important;padding:0!important;margin:16px 0 20px!important;gap:7px!important}.tabs button,.tabs button:not(.active){background:transparent!important;color:#6b7d8b!important;border-radius:9px 9px 0 0!important;padding:11px 16px!important;font-weight:700!important}.tabs button.active{background:#087f75!important;color:#fff!important;box-shadow:none!important}.panel,.hazardCard{padding:19px!important;border-radius:12px!important;box-shadow:0 3px 14px #18344708!important}.panel h2{font-size:19px!important;margin:0 0 7px!important}.panel>.muted{font-size:12px!important;margin:0 0 12px!important}.buttons{margin:10px 0!important}.buttons button{padding:9px 12px!important}.filterToolbar{display:grid!important;grid-template-columns:minmax(190px,2fr) minmax(150px,1fr) minmax(150px,1fr) auto!important;background:#f8fafb!important;border:1px solid #e6edf1!important;border-radius:10px!important;padding:12px!important;gap:10px!important;margin:12px 0!important}.filterToolbar label{font-size:11px!important;margin:0!important}.filterToolbar input,.filterToolbar select{min-height:38px!important;padding:8px 10px!important;margin-top:5px!important}.filterToolbar .filterCount{font-size:11px!important;padding-bottom:10px!important}.hazardOverview{margin:12px 0 18px!important}.overviewHead h3{font-size:16px!important;margin:0 0 2px!important}.overviewHead p{font-size:12px!important;margin:0!important}.overviewScroll{border-radius:10px!important;box-shadow:none!important}.overviewTable{min-width:700px!important;font-size:12px!important}.overviewTable th{padding:11px 10px!important;background:#f7fafb!important;font-size:10px!important}.overviewTable td{padding:10px!important;line-height:1.4!important}.overviewTable td:nth-child(3){min-width:220px}.hazardCard{margin-top:16px!important}.flow{max-width:780px!important;margin:18px auto!important}.step{padding:12px 17px!important;border-radius:10px!important;box-shadow:0 2px 10px #18344708!important}.arrow{line-height:25px!important;font-size:20px!important}.dashboardStats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0 0 16px}.statTile{background:white;border:1px solid #e3ebf0;border-radius:12px;padding:15px 17px;box-shadow:0 2px 10px #18344706}.statTile span{font-size:11px;color:#6e8391;display:block;margin-bottom:7px;font-weight:750}.statTile strong{font-size:26px;line-height:1;color:#163c4a}.statTile:nth-child(2){background:#fffaf0;border-color:#f6e9ce}.statTile:nth-child(2) strong{color:#a36b1a}.statTile:nth-child(3){background:#eef8f5;border-color:#dceee8}.statTile:nth-child(3) strong{font-size:16px;color:#087b70}.sidebarToggle{background:#e9f5f1!important;color:#08786d!important;border:0!important;padding:8px 11px!important;font-size:12px!important;margin-left:8px}.compactSidebar main{grid-template-columns:0 minmax(0,1fr)!important}.compactSidebar aside{visibility:hidden;padding:0!important;border:0!important;overflow:hidden!important}.compactSidebar .workspace{padding:22px 36px!important}body:not(.compactSidebar) aside{visibility:visible}.workspace>section[hidden],.workspace>.panel[hidden],.workspace>.flow[hidden]{display:none!important}@media(max-width:1050px){.filterToolbar{grid-template-columns:1fr 1fr!important}.filterToolbar label:first-child{grid-column:1/-1}.workspace{padding:18px!important}}@media(max-width:760px){main{display:block!important}aside{position:relative!important;max-height:280px!important;width:100%!important}.workspace{padding:14px!important}.top{display:block!important}.top .buttons{margin-top:12px!important}.dashboardStats{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboardStats .statTile:last-child{grid-column:1/-1}.filterToolbar{grid-template-columns:1fr!important}.filterToolbar label:first-child{grid-column:auto}.tabs button{font-size:12px!important;padding:9px 8px!important}.compactSidebar aside{display:none!important}.compactSidebar .workspace{padding:14px!important}}@media print{.dashboardStats,.sidebarToggle{display:none!important}}

/* V2.7 document-control layout */
.controlPanel{margin-top:18px}.dcGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 18px}.dcActions{display:flex;flex-wrap:wrap;gap:10px;margin:15px 0}#dcResult{padding:12px;background:#f0f7f5;border-radius:9px;line-height:1.5}#dcLog{overflow-x:auto}.dcTable{width:100%;border-collapse:collapse;font-size:13px}.dcTable th,.dcTable td{text-align:left;padding:10px;border-bottom:1px solid #dce7e4}.dcTable th{background:#edf5f2}@media(max-width:650px){.dcGrid{grid-template-columns:1fr}}

.cloud-panel{margin:22px auto;max-width:1180px}.cloud-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px;align-items:end}.cloud-beta{font-size:11px;color:#945d09;background:#fff1d6;border-radius:20px;padding:4px 9px}.cloud-panel button{min-height:38px}#cloudMessage{color:#126b52;font-size:13px}@media(max-width:700px){.cloud-fields{grid-template-columns:1fr}}


/* V3.1: compact account dashboard and fixed facility toggle */
header{justify-content:initial!important;gap:12px!important}
header .brand{order:1;flex:1}
header .sidebarToggle{order:0;margin:0!important;flex:none!important;min-width:42px!important;width:42px!important;height:40px!important;padding:8px!important;font-size:19px!important}
header .status{order:2;margin-left:auto!important}
main{grid-template-columns:236px minmax(0,1fr)!important}
.workspace{min-width:0!important}
#cloudPanel{max-width:none!important;margin:0!important;padding:24px!important}
#cloudPanel .cloud-fields{grid-template-columns:repeat(2,minmax(0,1fr))!important}
#cloudPanel label{font-size:13px!important}
#cloudPanel .buttons{justify-content:flex-start}
#dashboardNav{background:transparent!important;color:#cde9e6!important;border:1px solid #54727c!important;order:2;padding:9px 14px!important}
#dashboardNav.active{background:#087f75!important;color:white!important;border-color:#087f75!important}
#cloudDashboard{display:none}
body.dashboardMode #cloudDashboard{display:block}
body.dashboardMode .workspace>.top,body.dashboardMode .workspace>.tabs,body.dashboardMode .workspace>.panel,body.dashboardMode .workspace>.flow,body.dashboardMode .workspace>#hazardWorkspace,body.dashboardMode .workspace>#docWorkspace{display:none!important}
.dashboardHero{background:#143341;color:white;border-radius:16px;padding:28px 30px;margin-bottom:20px;display:flex;align-items:center;justify-content:space-between;gap:15px}
.dashboardHero h1{color:white!important;margin:0 0 7px!important}.dashboardHero p{color:#d0e3e7;margin:0}
.dashboardCards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin-bottom:20px}
.dashboardCard{background:white;border:1px solid #dce8ec;border-radius:13px;padding:20px;min-height:112px}
.dashboardCard span{font-size:12px;font-weight:750;color:#607788;display:block;margin-bottom:10px}
.dashboardCard strong{font-size:24px;color:#173d4b}
.dashboardCard .good{color:#087f75;font-size:17px}
.dashboardLayout{display:grid;grid-template-columns:minmax(0,1fr);gap:18px}
.dashboardInfo{background:#eff8f6;border:1px solid #d8ebe5;padding:16px 20px;border-radius:12px;font-size:13px;color:#416376}
@media(max-width:760px){header{gap:7px!important;padding:8px!important}header .brand strong{font-size:15px!important}header .brand small{display:none!important}#dashboardNav{font-size:11px!important;padding:8px!important}.dashboardCards{grid-template-columns:1fr}.dashboardHero{padding:20px;display:block}#cloudPanel .cloud-fields{grid-template-columns:1fr!important}}
@media print{#cloudDashboard,#dashboardNav{display:none!important}}

.cloud-load-success{padding:14px 18px;margin:0 0 16px;border:1px solid #a5d8c7;border-radius:12px;background:#eaf9f3;color:#095941;font-weight:700}

.dashboardEditorButton{margin-top:16px;background:#fff;color:#0d635a;border:0;border-radius:10px;padding:12px 18px;font-weight:750;cursor:pointer}.dashboardEditorButton:hover{background:#dff8f0}
/* Version 3.13 facility manager */
.facilityManager{background:#fff;border:1px solid #dce7ed;border-radius:16px;padding:24px;margin:20px 0;box-shadow:0 5px 22px rgba(24,52,70,.035)}
.facilityManagerHead{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.facilityManagerHead h2{margin:0 0 6px}.facilityManagerHead p{color:#52667a;margin:0;max-width:680px}.facilityManagerGrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:14px;margin-top:20px}.facilityCard313{border:1px solid #d8e5ed;border-radius:12px;padding:18px;background:#f8fcfe}.facilityCard313 h3{margin:0 0 8px;color:#183346}.facilityCard313 p{font-size:13px;color:#66788a;margin:0 0 16px}.facilityCard313 button{width:100%}.facilityManagerNote{color:#a65a16;min-height:1.2em;margin:12px 0 0}@media(max-width:600px){.facilityManager{padding:16px}}

/* v3.14 master library: isolated styles to preserve existing editor and dashboard */
#masterLibrary314{display:none;padding:20px 0 35px}.libraryMode314 #masterLibrary314{display:block}.libraryMode314 .workspace>.top,.libraryMode314 .workspace>.tabs,.libraryMode314 .workspace>.panel,.libraryMode314 .workspace>.flow,.libraryMode314 #hazardWorkspace,.libraryMode314 #docWorkspace,.libraryMode314 #cloudDashboard,.libraryMode314 .cloud-load-success{display:none!important}.libraryMode314 aside{display:none!important}.libraryMode314 main{display:block}.libraryMode314 .workspace{max-width:1260px;width:100%;padding:20px 28px}.libraryHero314{background:linear-gradient(110deg,#102f3c,#176756);color:white;border-radius:18px;padding:30px;display:flex;justify-content:space-between;gap:20px;align-items:center}.libraryHero314 h1{color:white;font-size:30px;margin:8px 0}.libraryHero314 p{max-width:630px;color:#d9eee8;margin:0}.libraryEyebrow314{color:#b1eddd;font-size:11px;font-weight:800;letter-spacing:1.6px}.libraryTools314{display:flex;gap:14px;align-items:end;background:white;padding:16px 18px;border:1px solid #dbe9e4;border-radius:14px;margin:20px 0}.libraryTools314 label{flex:1;margin:0}.libraryTools314 label:last-child{flex:0 0 230px}.libraryLayout314{display:grid;grid-template-columns:minmax(260px,.8fr) minmax(0,1.2fr);gap:18px;align-items:start}.libraryCards314{display:grid;gap:10px;max-height:70vh;overflow:auto}.libraryCard314{text-align:left;background:white;color:#183b34;border:1px solid #dce8e1;border-radius:13px;padding:15px;display:grid;gap:7px}.libraryCard314 strong{font-size:16px}.libraryCard314>span:not(.libraryCategory314){color:#657c73;font-size:13px;font-weight:400}.libraryCard314 small{color:#1b806a}.libraryCard314.selected{border:2px solid #0d9276;background:#f0faf6}.libraryCategory314{color:#087e67;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:1px}.libraryDetail314{background:white;border:1px solid #dce8e1;border-radius:15px;padding:24px;position:sticky;top:20px}.libraryDetail314 h2{font-size:24px;margin:9px 0}.libraryDetail314 p{color:#667d73;line-height:1.55}.libraryCopyActions314{display:flex;flex-wrap:wrap;gap:10px;margin:20px 0}.librarySteps314{padding-left:24px}.librarySteps314 li{padding:10px 5px;border-bottom:1px solid #e8f0ec}.libraryDraft314{background:#fff6e4;border-left:3px solid #e3a63c;padding:11px;border-radius:5px;font-size:13px}.libraryFootnote314{color:#64786f;font-size:12px;margin-top:20px}#masterLibraryNav.active{background:#126b52;color:white}@media(max-width:800px){.libraryMode314 .workspace{padding:12px}.libraryLayout314{grid-template-columns:1fr}.libraryCards314{max-height:320px}.libraryDetail314{position:static}.libraryHero314{display:block;padding:22px}.libraryTools314{display:block}.libraryTools314 label{margin:8px 0}}

/* V3.15 linked control plans */
#controls315[hidden]{display:none!important}.controlHead315{display:flex;justify-content:space-between;gap:18px;align-items:start;flex-wrap:wrap}.controlsSummary315{font-weight:700;color:#14624e;margin:16px 0 10px}#controlsProcess315{max-width:360px;margin-bottom:14px}.controlCard315{border:1px solid #d7e8df;background:white;border-radius:13px;padding:20px;margin:14px 0}.controlCardHead315{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}.controlCardHead315 p{color:#657d73;margin:9px 0}.controlBadge315{background:#e0f2e9;color:#086a4f;border-radius:6px;padding:4px 9px;font-weight:800;font-size:12px}.controlIssue315{color:#a15b14;background:#fff4dc;padding:7px 10px;border-radius:8px;height:fit-content}.controlReady315{color:#0c7153;background:#e6f5ee;padding:7px 10px;border-radius:8px;height:fit-content}.controlGrid315{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px 20px}.controlGrid315 textarea{width:100%;resize:vertical}.controlEmpty315{padding:25px;border:1px dashed #b8d3c6;border-radius:10px;color:#536d60}@media(max-width:700px){.controlGrid315{grid-template-columns:1fr}}body.dashboardMode #controls315,.libraryMode314 #controls315{display:none!important}

/* v3.18: one guided navigation, no redundant facility sidebar while studying */
body.guidedMode318 main{grid-template-columns:minmax(0,1fr)!important}body.guidedMode318 aside{display:none!important}body.guidedMode318 .workspace{max-width:1480px;width:100%;margin:auto!important}body.guidedMode318 .sidebarToggle{display:none!important}.objectiveScroll318{overflow-x:auto;margin:12px 0}.objectiveTable318{width:100%;border-collapse:collapse;min-width:850px}.objectiveTable318 th,.objectiveTable318 td{padding:8px;border:1px solid #dce8e5;vertical-align:top}.objectiveTable318 th{background:#eaf6f2;text-align:left;font-size:12px}.objectiveTable318 textarea{min-width:155px;width:100%;min-height:75px}.objectiveTable318 input{min-width:115px;width:100%}.objectiveTable318 select{min-width:115px}.objectiveTable318 td:first-child{width:34px}#studyProcessSlot318 .choice{display:block;padding:9px;border-bottom:1px solid #e8efed}#studyProcessSlot318{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:6px}#studyProcessSlot318 #library{display:contents}@media(max-width:780px){body.guidedMode318 .workspace{padding:12px!important}.studyLayout317 nav{max-height:240px}}


/* v3.20 — one navigation model; no duplicated facility sidebar */
body.ux320 main{display:block!important;grid-template-columns:minmax(0,1fr)!important}
body.ux320 aside{display:none!important}
body.ux320 .workspace{max-width:1480px!important;width:100%!important;margin:0 auto!important;box-sizing:border-box!important;padding:24px clamp(14px,3vw,40px)!important}
body.ux320 header{height:auto!important;min-height:68px!important;display:flex!important;flex-wrap:wrap!important;gap:12px!important;align-items:center!important}
body.ux320 .uxNav320{margin-left:auto;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
body.ux320 .uxNav320 button{white-space:nowrap;font-size:13px;padding:10px 14px;border:1px solid #527480;border-radius:10px;background:transparent;color:white}
body.ux320 .uxNav320 button.uxActive320,body.ux320 .uxNav320 button.active{background:#0b8373;color:white;border-color:#0b8373}
body.ux320 .top .buttons{display:flex!important;align-items:center;gap:10px;flex-wrap:wrap}
body.ux320 .uxMore320{position:relative;font-size:13px}
body.ux320 .uxMore320 summary{cursor:pointer;padding:9px 12px;border:1px solid #d6e8e2;border-radius:9px;background:#edf7f3;color:#126b52;font-weight:700;list-style:none}
body.ux320 .uxMore320[open] button{margin-top:8px}
body.ux320 #uxSave320{font-size:12px;color:#b23b35;font-weight:700}
body.ux320 .uxError320{padding:8px;background:#fff1e8;border-radius:7px}
body.ux320 .studyLayout317{grid-template-columns:minmax(195px,230px) minmax(0,1fr)!important}
body.ux320 #study317{max-width:100%!important}
body.ux320 #study317 .studyBody317{min-width:0}
body.ux320 .dashboardCards .dashboardCard:nth-child(3){display:none}
body.ux320 .cloud-panel .cloud-beta{display:none}
body.ux320 .dashboardHero{gap:12px}
@media(max-width:820px){body.ux320 .studyLayout317{grid-template-columns:1fr!important}body.ux320 .studyLayout317 nav{max-height:none!important;display:flex!important;flex-direction:row!important;overflow-x:auto!important;gap:6px!important;align-items:stretch!important}body.ux320 .studyLayout317 nav button{flex:0 0 165px!important;min-height:56px!important}body.ux320 .uxNav320{width:100%;margin-left:0;overflow-x:auto;flex-wrap:nowrap}body.ux320 header{padding:12px!important}body.ux320 .workspace{padding:14px!important}}
@media print{body.ux320 .uxNav320,body.ux320 .uxMore320{display:none!important}}

/* v3.23 first-time onboarding */
#wizard323{max-width:680px}#wizard323::backdrop{background:#09251bc9}#wizard323,#wizForm323{box-sizing:border-box}#wizard323{border:0;border-radius:22px;box-shadow:0 30px 100px #001b1666;width:min(92vw,660px);padding:0;max-height:90vh}#wizForm323{padding:28px;overflow:auto;max-height:90vh}.wizHead323,.wizFoot323{display:flex;align-items:center;justify-content:space-between;gap:14px}.wizMark323{font-weight:750;color:#08795a}.wizProgress323{height:6px;background:#e2eee8;border-radius:9px;margin:22px 0}.wizProgress323 span{display:block;height:100%;background:#0d9674;border-radius:9px;transition:width .2s}.wizCount323{font-size:11px;letter-spacing:.13em;color:#0d9674;font-weight:800}.wizHint323{color:#63776d;line-height:1.6;margin-bottom:22px}.wizChoices323{display:grid;gap:12px}.wizChoices323 label{display:flex;align-items:flex-start;gap:13px;border:1px solid #c9ded3;border-radius:14px;padding:17px;cursor:pointer}.wizChoices323 label:has(input:checked){border-color:#0d9674;background:#effaf4}.wizChoices323 small{display:block;color:#667b70;margin-top:7px;line-height:1.5}.wizFields323{display:grid;gap:14px}.wizFields323 label{display:grid;gap:7px;font-weight:650}.wizFields323 input,.wizFields323 select,.wizFields323 textarea{width:100%;box-sizing:border-box;font-weight:400}.wizFields323 label span{color:#b64438}.wizFoot323{border-top:1px solid #e3ece7;margin-top:24px;padding-top:20px}.wizReview323{background:#f3f9f6;border:1px solid #d5e9de;border-radius:14px;padding:12px 20px}.wizReview323 p{line-height:1.6;overflow-wrap:anywhere}.wizTip323{background:#e9f5f0;padding:14px;border-radius:10px;margin-top:18px;color:#3a5d4c}#wizError323{color:#b53c36;min-height:1.2em}#start323{margin-left:auto}@media(max-width:600px){#wizForm323{padding:19px}}

/* v3.25: product workspace */
.productSummary325{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px;background:#edf7f1;border:1px solid #c9e3d4;border-radius:14px;margin-bottom:15px}.productSummary325 p{margin:4px 0 0}.productCard325{margin-bottom:14px}.productCard325 details{border-top:1px solid #e0eae3;padding-top:12px}.productCard325 summary{cursor:pointer;font-weight:600;margin-bottom:12px}.productMissing325{padding:10px;background:#fff9e9;border-radius:8px;margin:12px 0;display:flex;align-items:center;flex-wrap:wrap;gap:5px}.productMissing325 button{font-size:12px!important;padding:5px 8px!important;border:1px solid #ecd69b!important}.productRequired325{font-size:10px;color:#925e13;background:#fff1cf;padding:2px 5px;border-radius:5px}@media(max-width:650px){.productSummary325{align-items:stretch;flex-direction:column}}
