:root{font-family:'Segoe UI',Arial,sans-serif;font-size:16px;color:#203149;background:#f3f5f8;--primary:#163e71;--accent:#f2c94c;--muted:#64748b;--line:#dfe5ed;--nav:#122b4a}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible{outline:3px solid #d5a611;outline-offset:3px}input:focus,select:focus,textarea:focus{outline:2px solid #94b8e7;outline-offset:1px;border-color:var(--primary)}button:disabled{opacity:.5;cursor:not-allowed}svg{width:20px;height:20px;stroke:currentColor;stroke-width:1.7;fill:none;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.shell{display:grid;grid-template-columns:224px minmax(0,1fr);min-height:100vh}.sidebar{background:var(--nav);color:#c3cedd;position:fixed;inset:0 auto 0 0;width:224px;display:flex;flex-direction:column;padding:28px 18px}.brand{display:flex;align-items:center;gap:12px;color:white;padding:0 8px 31px}.brand-mark{border:2px solid var(--accent);color:var(--accent);font-size:21px;font-weight:800;padding:5px 7px;border-radius:3px;letter-spacing:-1px}.brand strong{display:block;font-size:19px;letter-spacing:.5px}.brand small{display:block;color:#adc0d7;font-size:12px;margin-top:2px}.nav-label{text-transform:uppercase;letter-spacing:1.5px;color:#7e98b9;font-size:11px;font-weight:600;margin:7px 12px 10px}.nav-link{display:flex;gap:12px;align-items:center;padding:13px 14px;border-radius:5px;margin-bottom:5px;font-size:14px}.nav-link:hover{background:#ffffff0c;color:white}.nav-link.active{background:#254668;color:white;box-shadow:inset 3px 0 var(--accent)}.nav-divider{height:1px;background:#ffffff18;margin:20px 8px}.sidebar-footer{margin-top:auto;padding:20px 10px 0;border-top:1px solid #ffffff18;font-size:13px;display:flex;align-items:center;gap:10px}.avatar{background:#355472;color:#e4edf7;width:34px;height:34px;border-radius:50%;display:grid;place-items:center;font-size:12px;font-weight:700}.sidebar-footer small{display:block;font-size:11px;color:#91a6c0;margin-top:3px}.workspace{grid-column:2;min-width:0}.topbar{height:72px;background:white;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 36px;gap:15px}.breadcrumbs{font-size:14px;color:var(--muted);display:flex;gap:12px;align-items:center}.breadcrumbs strong{color:#263951;font-weight:600}.top-actions{display:flex;align-items:center;gap:14px}.local-pill{font-size:12px;border:1px solid #c8d5e3;color:#4b6581;border-radius:20px;padding:5px 10px;white-space:nowrap}.local-pill::before{content:'';display:inline-block;width:6px;height:6px;border-radius:50%;background:#4a8d70;margin-right:7px}.content{padding:32px 36px;max-width:1600px;margin:auto}.page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:26px}.eyebrow{text-transform:uppercase;color:var(--muted);font-size:11px;letter-spacing:1.6px;font-weight:650;margin-bottom:9px}h1{font-size:29px;line-height:1.2;letter-spacing:-.8px;margin:0 0 8px;font-weight:680}h2{font-size:18px;letter-spacing:-.3px;margin:0}h3{font-size:16px;margin:0 0 9px}p{line-height:1.55}.subtext{color:var(--muted);font-size:14px;margin:0}.button{border:1px solid var(--line);border-radius:5px;background:white;color:#243b56;padding:10px 15px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-size:14px;font-weight:600;min-height:41px}.button:hover{background:#f6f8fb}.button.primary{background:var(--primary);color:white;border-color:var(--primary)}.button.primary:hover{filter:brightness(1.12)}.button.accent{background:var(--accent);color:#233449;border-color:var(--accent)}.button.small{padding:6px 10px;font-size:13px;min-height:33px}.button.icon{padding:6px;min-width:32px}.button.danger{color:#b44239}.button.ghost{border-color:transparent;background:transparent}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:28px}.stat{border:1px solid var(--line);background:white;border-radius:7px;padding:20px 21px;position:relative}.stat-label{font-size:13px;color:var(--muted);display:flex;align-items:center;justify-content:space-between}.stat-label svg{color:#7890ab;width:18px}.stat-value{font-size:33px;font-weight:650;margin:9px 0 3px;letter-spacing:-1px}.stat-foot{font-size:12px;color:#7a889b}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:24px}.panel{background:white;border:1px solid var(--line);border-radius:7px;overflow:hidden}.panel-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:20px 22px;border-bottom:1px solid var(--line)}.panel-body{padding:22px}.panel+.panel{margin-top:22px}.count{font-size:12px;font-weight:500;color:var(--muted);background:#edf1f6;padding:3px 7px;border-radius:4px;margin-left:8px}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;text-align:left;font-size:14px}th{color:#6c7c91;font-size:11px;letter-spacing:.8px;text-transform:uppercase;padding:13px 20px;background:#fafbfd;font-weight:600;white-space:nowrap}td{padding:18px 20px;border-top:1px solid #edf0f4;vertical-align:middle}.job-title{font-weight:600;display:block;margin-bottom:5px;color:#263c59}.job-title:hover{color:var(--primary);text-decoration:underline}.meta{font-size:12px;color:var(--muted)}.badge{display:inline-flex;align-items:center;gap:5px;white-space:nowrap;font-size:12px;font-weight:600;border-radius:4px;padding:4px 8px;background:#edf2f8;color:#526884}.badge.issued{color:#2e6d50;background:#e8f4ec}.badge.draft{color:#836116;background:#fff4d9}.badge.danger{color:#a63a32;background:#fcece9}.badge.blue{color:#315f92;background:#eaf1fb}.progress-list{list-style:none;margin:0;padding:0}.progress-list li{display:flex;gap:12px;align-items:flex-start;padding:13px 0}.step-num{font-size:12px;width:26px;height:26px;background:#eef3f9;color:#466383;border-radius:50%;display:grid;place-items:center;flex-shrink:0}.progress-list strong{font-size:14px;display:block;margin-bottom:4px}.progress-list p{font-size:12px;color:var(--muted);margin:0}.note{padding:14px 16px;background:#f0f4f9;border:1px solid #dce5ee;border-radius:5px;color:#526981;font-size:13px;line-height:1.6}.note.warning{background:#fff8e7;border-color:#f0dfb8;color:#826426}.note.danger{background:#fdf0ee;border-color:#eac9c5;color:#923d37}.note.success{background:#edf7f0;border-color:#c5e1cf;color:#326b4a}.local-notice{margin-top:24px;display:flex;gap:10px;align-items:flex-start;color:#718299;font-size:12px;line-height:1.55}.local-notice svg{width:17px;height:17px}.activity{list-style:none;padding:0;margin:0}.activity li{font-size:13px;padding:12px 0;border-bottom:1px solid #eef1f5}.activity li:last-child{border:0}.activity small{color:var(--muted);display:block;margin-top:4px;font-size:12px}.empty{padding:42px 24px;text-align:center;color:var(--muted);font-size:14px}.empty h3{color:#334b66}.toolbar{display:flex;gap:12px;align-items:center;margin-bottom:20px;flex-wrap:wrap}.search{position:relative;max-width:380px;flex:1;min-width:200px}.search svg{position:absolute;left:12px;top:12px;color:#8a9aae}.search input{padding-left:40px;width:100%}input,select,textarea{border:1px solid #cdd6e1;border-radius:5px;color:#24394f;background:white;padding:10px 12px;max-width:100%;min-width:0;font-size:14px}input[type=checkbox]{width:18px;height:18px;accent-color:var(--primary);flex-shrink:0}textarea{resize:vertical;min-height:100px;line-height:1.6}label.field{display:flex;flex-direction:column;gap:7px;font-size:13px;font-weight:600;color:#43566f}label.field small{font-weight:400;color:var(--muted);font-size:12px;line-height:1.5}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:19px}.span-2{grid-column:span 2}.form-section{margin-bottom:24px}.section-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:19px}.section-title p{color:var(--muted);font-size:13px;margin:6px 0 0}.actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.builder-layout{display:grid;grid-template-columns:192px minmax(0,1fr);gap:24px}.builder-steps{position:sticky;top:20px;align-self:start}.builder-step{display:flex;align-items:center;gap:11px;border:0;background:transparent;color:#65758b;padding:13px 12px;width:100%;text-align:left;font-size:13px;border-radius:5px;margin-bottom:4px}.builder-step.active{background:#e3ebf6;color:#234e7d;font-weight:650}.builder-step .step-num{background:white;border:1px solid #d7e0eb;font-size:11px;width:25px;height:25px}.builder-step.active .step-num{background:var(--primary);border-color:var(--primary);color:white}.builder-card{padding:26px;background:white;border:1px solid var(--line);border-radius:7px}.builder-footer{display:flex;justify-content:space-between;align-items:center;margin-top:24px;padding-top:20px;border-top:1px solid var(--line);gap:12px}.save-status{font-size:12px;color:var(--muted);white-space:nowrap}.load-card,.item-card{border:1px solid var(--line);border-radius:6px;padding:19px;margin-bottom:16px;background:#fff}.item-card .form-grid{gap:13px}.card-top{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px}.card-top h3{margin:0}.number-label{font-size:12px;background:#edf2f8;color:#627790;padding:5px 8px;border-radius:4px}.calculation{background:#f0f5fa;border-radius:5px;display:flex;gap:22px;padding:14px 16px;margin-top:16px;flex-wrap:wrap}.calculation small{display:block;color:#6b7e94;font-size:11px;margin-bottom:4px}.calculation strong{font-size:19px;font-weight:600}.calculation .formula{font-size:12px;color:#677d96;flex-basis:100%;margin-top:-10px}.hazard-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.hazard{border:1px solid var(--line);padding:15px;border-radius:6px;display:flex;align-items:center;gap:10px;text-align:left;background:white;color:#506680;font-size:13px;min-height:68px}.hazard.selected{background:#edf3fb;border-color:#6b93c4;color:var(--primary);box-shadow:inset 0 0 0 1px #6b93c4}.check-row{display:flex;gap:10px;align-items:flex-start;line-height:1.5;font-size:14px}.check-row input{margin-top:3px}.ppe-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:20px}.library-list{display:grid;gap:12px}.library-row{border:1px solid var(--line);border-radius:6px;padding:16px;display:flex;justify-content:space-between;align-items:center;gap:14px}.library-row h3{margin:0 0 5px;font-size:14px}.library-row p{font-size:13px;color:var(--muted);margin:0;max-width:650px}.tabs{display:flex;gap:6px;margin-bottom:20px;border-bottom:1px solid var(--line)}.tab{background:transparent;border:0;padding:12px 18px;color:var(--muted);font-size:14px;border-bottom:2px solid transparent}.tab.active{color:var(--primary);border-color:var(--primary);font-weight:600}.review-list{margin:12px 0 0;padding:0;list-style:none}.review-list li{display:flex;gap:10px;padding:9px 0;font-size:13px;color:#786234}.review-list li::before{content:'!';font-weight:700;width:17px;height:17px;border-radius:50%;background:#fff0c9;display:grid;place-items:center;font-size:11px;flex-shrink:0}.split{display:grid;grid-template-columns:1fr 1fr;gap:20px}.key-value{display:grid;grid-template-columns:150px minmax(0,1fr);gap:11px;font-size:14px}.key-value dt{color:var(--muted)}.key-value dd{margin:0;overflow-wrap:anywhere}.revision-row{padding:18px 0;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;gap:15px;align-items:center}.file-row{padding:13px 0;border-bottom:1px solid var(--line);display:flex;gap:12px;align-items:center;font-size:14px}.file-row .grow{flex:1;min-width:0;overflow-wrap:anywhere}.file-row select{max-width:200px}.upload-box{border:1px dashed #9eafc3;padding:24px;border-radius:6px;background:#f8fafc;margin-bottom:20px}.list-cards{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}.detail-card{padding:22px;border:1px solid var(--line);border-radius:7px;background:white}.detail-card p{font-size:14px;color:var(--muted)}dialog{border:0;border-radius:9px;padding:0;width:min(580px,calc(100vw - 32px));max-height:90vh;box-shadow:0 20px 80px #0c284b35;color:#24394f}dialog::backdrop{background:#102b4e77;backdrop-filter:blur(2px)}.modal-head{padding:22px 25px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center}.modal-body{padding:25px}.modal-footer{border-top:1px solid var(--line);padding:18px 25px;display:flex;justify-content:flex-end;gap:10px}.modal-error{color:#a8423b;font-size:13px;padding:0 25px 15px;white-space:pre-wrap}.mobile-menu{display:none}#toast{position:fixed;right:26px;bottom:24px;background:#183e65;color:white;border-radius:6px;padding:14px 20px;font-size:14px;z-index:100;max-width:min(450px,calc(100vw - 40px));box-shadow:0 6px 22px #16365730;opacity:0;pointer-events:none;transition:opacity .2s}#toast.show{opacity:1}.boot{padding:80px;color:#526981}.error-view{padding:60px;max-width:700px}.settings-preview{background:var(--nav);color:white;padding:30px;border-radius:6px}.settings-preview h2{border-bottom:3px solid var(--accent);padding-bottom:16px;margin-bottom:15px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.mobile-head{display:none}.hint{font-size:12px;color:var(--muted);line-height:1.6}.divider{height:1px;background:var(--line);margin:24px 0}.red{color:#b33f34}fieldset{border:0;padding:0;margin:0;min-width:0}fieldset:disabled{opacity:.8}.statusline{display:flex;gap:8px;align-items:center}.muted{color:var(--muted)}
@media(min-width:1600px){.content{padding-top:40px}.dashboard-grid{grid-template-columns:minmax(0,1fr) 340px}}@media(max-width:1150px){.dashboard-grid{grid-template-columns:1fr}.dashboard-side{display:grid;grid-template-columns:1fr 1fr;gap:20px}.dashboard-side .panel+.panel{margin:0}.content{padding:26px}.topbar{padding:0 26px}.builder-layout{grid-template-columns:155px minmax(0,1fr);gap:16px}.builder-card{padding:21px}.hazard-grid{grid-template-columns:1fr 1fr}.stats{gap:12px}.stat{padding:17px}}@media(max-width:850px){.shell{grid-template-columns:1fr}.workspace{grid-column:1}.sidebar{display:none;z-index:60;box-shadow:20px 0 80px #122b4a50}.sidebar.open{display:flex}.mobile-menu{display:inline-flex}.stats{grid-template-columns:1fr 1fr}.topbar{height:64px;padding:0 20px}.content{padding:24px 20px}.builder-layout{grid-template-columns:1fr}.builder-steps{position:static;display:flex;overflow-x:auto;padding-bottom:7px;gap:6px}.builder-step{white-space:nowrap;width:auto;margin:0;padding:9px 12px}.builder-step .step-num{width:22px;height:22px}.list-cards{grid-template-columns:1fr}.top-actions .local-pill{display:none}.page-head{gap:12px}.page-head h1{font-size:25px}.key-value{grid-template-columns:120px minmax(0,1fr)}}@media(max-width:560px){.content{padding:21px 14px}.topbar{padding:0 14px}.top-actions .button{padding:9px 11px}.breadcrumbs{font-size:12px;gap:8px}.page-head{flex-wrap:wrap;margin-bottom:20px}h1{font-size:25px}.stats{gap:10px}.stat{padding:15px}.stat-value{font-size:29px}.stat-foot{font-size:11px}.dashboard-side{display:block}.dashboard-side .panel+.panel{margin-top:18px}.panel-header{padding:17px}.panel-body{padding:17px}.form-grid,.split,.ppe-grid{grid-template-columns:1fr}.span-2{grid-column:1}.builder-card{padding:18px 15px}.load-card,.item-card{padding:15px}.hazard-grid{grid-template-columns:1fr 1fr}.hazard{padding:11px;font-size:12px;gap:7px}.hazard svg{width:16px}.builder-footer{flex-wrap:wrap}.file-row{flex-wrap:wrap}.file-row select{max-width:100%}.key-value{grid-template-columns:105px minmax(0,1fr);font-size:13px}.library-row{align-items:flex-start}.list-cards{gap:14px}.modal-body{padding:20px}.form-grid input,.form-grid select,.form-grid textarea{font-size:16px}.button{min-height:43px}.review-list li{font-size:13px}td,th{padding:15px}.job-title{min-width:160px}dialog .form-grid{grid-template-columns:1fr}.revision-row{align-items:flex-start;flex-wrap:wrap}}
.phone-stage{display:flex;justify-content:center;padding:14px 0 35px;overflow-x:auto}.phone-device{width:390px;max-width:100%;border:9px solid #1c2c41;border-radius:35px;background:#1c2c41;box-shadow:0 18px 55px #25416525;overflow:hidden;transition:width .2s}.phone-top{color:white;display:flex;justify-content:space-between;padding:8px 15px 15px;font-size:10px}.phone-device iframe{border:0;display:block;width:100%;height:740px;background:#f3f5f8}.site-app{max-width:760px;min-height:100vh;margin:auto;padding-bottom:76px;background:#f5f7fa}.site-header{background:var(--nav);color:white;padding:16px;display:flex;align-items:center;justify-content:space-between;gap:10px}.site-header>a:first-child{display:flex;align-items:center;gap:12px}.site-header .brand-mark{font-size:16px}.site-header strong{font-size:15px}.site-header .button{background:#ffffff15;color:white;border-color:#ffffff25}.site-banner{padding:7px 15px;background:#fff2cf;color:#7f6021;font-size:11px;text-align:center}.site-content{padding:24px 18px}.site-content h1{font-size:26px;line-height:1.25;margin-bottom:20px}.site-bottom{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:100%;max-width:760px;display:flex;justify-content:space-around;background:white;border-top:1px solid #dfe5ed;padding:10px 5px;z-index:25}.site-bottom a{display:flex;flex-direction:column;align-items:center;gap:5px;color:#5c728d;font-size:11px}.site-bottom a svg{width:21px;height:21px}.site-job{display:block;background:white;border:1px solid var(--line);border-radius:9px;padding:20px;margin-top:18px}.site-job h2{font-size:19px}.site-job p{color:var(--muted);font-size:14px}.site-job-open{display:flex;align-items:center;justify-content:space-between;color:var(--primary);font-size:14px;font-weight:600;margin-top:20px;border-top:1px solid var(--line);padding-top:14px}.site-back{display:flex;gap:8px;align-items:center;font-size:13px;color:#5a728e;margin-bottom:24px}.site-action-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:22px 0}.site-action{display:flex;flex-direction:column;background:white;border:1px solid var(--line);border-radius:7px;padding:20px 15px;gap:12px;color:var(--primary);min-height:145px}.site-action strong{font-size:16px}.site-action span{font-size:12px;color:var(--muted)}.site-action svg{width:25px;height:25px}.site-location{font-size:14px;color:#5d738c}.site-location p{margin:7px 0}.site-section{margin-top:24px;background:white;border:1px solid var(--line);border-radius:7px;padding:20px}.site-section h2{margin-bottom:18px}.site-section h3{margin-top:20px}.site-section p{font-size:14px;white-space:pre-wrap}.site-section .calculation{gap:17px}.site-section .calculation .formula{line-height:1.5}.signature-record{display:flex;flex-direction:column;gap:7px;border-top:1px solid var(--line);padding:16px 0;font-size:14px}.signature-record .badge{align-self:flex-start}.signature-record span,.signature-record small{font-size:12px;color:var(--muted)}.signature-pad{display:block;width:100%;height:145px;border:1px solid #b8c7d8;border-radius:6px;background:#fbfcfe;touch-action:none;margin:10px 0 0}.check-group{margin:24px 0}.check-group>h2{font-size:17px;padding:14px 0;color:#284d7b}.check-question{padding:18px;background:white;border:1px solid var(--line);border-radius:7px;margin-bottom:12px}.check-question p{font-size:15px;margin:0 0 15px;line-height:1.55}.answer-buttons{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px}.answer-buttons button{padding:12px;border:1px solid var(--line);background:white;border-radius:5px;color:#526b87;font-size:14px}.answer-buttons button.selected{background:#e6f1ea;border-color:#609d77;color:#276040;font-weight:650}.answer-buttons button.selected.no{background:#fbedeb;border-color:#cc7971;color:#a53e35}.site-sticky-actions{position:sticky;bottom:70px;background:#f5f7faf0;padding:14px 0;display:flex;gap:10px}.site-sticky-actions button{flex:1}.site-content textarea{font-size:16px}.site-content .note+.note{margin-top:12px}@media(max-width:560px){.phone-stage{padding:0}.phone-device{border-width:5px;border-radius:24px}.phone-device iframe{height:700px}.site-header{padding:14px}.site-content{padding:21px 15px}.site-header strong{font-size:13px}}
.profile-control{display:flex;align-items:center;gap:7px;font-size:11px;color:#64748b}.profile-control select{padding:7px 9px;font-size:12px;max-width:145px}.calendar-panel .panel-header{padding:15px 17px}.calendar-panel .panel-header h2{font-size:15px}.calendar-body{padding:13px 17px}.cal-week,.cal-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}.cal-week span{text-align:center;color:#8896a8;font-size:10px;padding:6px 0 9px}.cal-day{min-height:110px;background:#fff;border:1px solid #e6ebf1;padding:10px 7px;display:flex;flex-direction:column;align-items:flex-start;color:#4c627c;border-radius:4px;font-size:14px;gap:5px}.cal-day:hover{background:#f0f4fa}.cal-day.today{border-color:#658ab5;background:#eef3fa}.cal-day.blank{background:transparent;border:0}.compact .cal-grid{gap:3px}.compact .cal-day{min-height:36px;padding:4px 0;align-items:center;border:0;font-size:12px;gap:2px}.cal-dots{display:flex;gap:3px;min-height:5px}.cal-dots i,.cal-legend i{display:inline-block;width:5px;height:5px;border-radius:50%;background:#6d8aab}.cal-dots i.red,.cal-legend i.red{background:#c35145}.cal-dots i.amber,.cal-legend i.amber{background:#dca237}.cal-dots i.ready,.cal-legend i.ready{background:#4a8b6a}.cal-legend{display:flex;gap:9px;flex-wrap:wrap;margin:15px 0 3px;font-size:10px;color:#79899c}.cal-legend span{display:flex;align-items:center;gap:5px}.calendar-link{display:block;border-top:1px solid var(--line);padding:13px 18px;font-size:12px;color:var(--primary)}.cal-job{font-size:11px;padding:4px;background:#edf3fa;border-radius:3px;max-width:100%;overflow:hidden;text-overflow:ellipsis}.cal-job.red{background:#fbecea;color:#ae5148}.cal-job.amber{background:#fff3d6;color:#946e22}.cal-job.ready{background:#eaf4ed;color:#3c7b56}.allocation-slot{display:grid;grid-template-columns:1fr 1fr;gap:18px;padding:15px 0;border-bottom:1px solid var(--line)}.sidebar{padding-top:22px;padding-bottom:18px;overflow-y:auto}.brand{padding-bottom:20px}.nav-link{padding:10px 13px;margin-bottom:3px}.nav-divider{margin:14px 8px}.sidebar-footer{padding-top:14px}.dashboard-side{display:block}.dashboard-side .panel+.panel{margin-top:20px}@media(max-width:850px){.profile-control>span{display:none}.profile-control select{max-width:125px}.cal-day{min-height:82px;font-size:12px}.cal-job{font-size:9px;padding:3px}}@media(max-width:560px){.topbar{height:auto;min-height:67px;flex-wrap:wrap;padding-top:12px;padding-bottom:12px;gap:7px}.top-actions{width:100%;justify-content:space-between}.profile-control>span{display:inline}.profile-control select{max-width:160px}.cal-day{min-height:65px;padding:5px 2px;font-size:11px}.cal-grid{gap:2px}.calendar-body{padding:10px}.cal-job{font-size:8px;padding:3px 1px}.allocation-slot{grid-template-columns:1fr}.compact .cal-day{min-height:38px}}

#allocation-form fieldset{border:0;padding:0;margin:0;min-width:0}

.compact-item{border:1px solid var(--border,#dce3ed);border-radius:10px;margin:10px 0;background:#fff;overflow:hidden}.compact-item summary{display:flex;align-items:center;gap:13px;cursor:pointer;min-height:72px;padding:8px 16px 8px 0;list-style:none}.compact-item summary::-webkit-details-marker{display:none}.drag-tab{align-self:stretch;width:31px;border:0;border-right:1px solid #dce3ed;background:#edf2f8;color:#526881;font-size:26px;cursor:grab;flex-shrink:0;touch-action:none}.dragging{opacity:.45}.row-number{color:#6c7d92;font-size:13px;min-width:18px}.compact-title{flex:1;min-width:0;font-size:15px}.risk-pair{display:flex;gap:8px;margin-left:auto}.risk-chip{display:grid;min-width:78px;text-align:center;padding:5px 9px;border-radius:6px;background:#edf1f5;font-size:12px}.risk-chip small{font-size:10px;font-weight:500}.risk-chip.high{background:#fde2e1;color:#952323}.risk-chip.medium{background:#fff0c3;color:#715300}.risk-chip.low{background:#dbefe3;color:#21623b}.compact-body{border-top:1px solid #e1e7ef;padding:22px}.compact-body>.field{margin-bottom:18px}.compact-body textarea{min-height:180px}.expand-hint{font-size:12px;color:#75859a}.source-note{font-size:11px;line-height:1.6;color:#75859a;margin:12px 0}.crane-card{padding:23px;border:1px solid #dce3ed;border-radius:12px;margin:20px 0}.duty-confirm{margin-top:18px}.duty-load{margin-top:22px}.reference-spec{padding:14px;background:#f0f4f8;border-radius:8px;margin-top:20px}.reference-spec summary{cursor:pointer;font-weight:600}.reference-spec dl{display:flex;gap:25px;flex-wrap:wrap}.reference-spec dt{font-size:11px;color:#61728a}.reference-spec dd{margin:4px 0;font-weight:600}.review-list{padding-left:0;list-style:none}.review-fix{display:flex;gap:10px;align-items:center;text-align:left;border:0;background:transparent;padding:8px 0;cursor:pointer;color:inherit;font:inherit;text-decoration:underline;text-underline-offset:3px}.review-fix svg{width:17px;flex-shrink:0}.repair-glow{outline:3px solid #e7b121!important;border-radius:7px;animation:repairGlow 1s ease-in-out 5}@keyframes repairGlow{50%{box-shadow:0 0 0 8px #ffcd4560,0 0 32px #ffcd4580}}.insurance-option{display:flex;gap:14px;align-items:center;padding:15px 0;border-bottom:1px solid #e1e7ef}.insurance-option small{display:block;color:#6d7d91;margin-top:4px}.insurance-option input{width:18px;height:18px}.signature-preview{display:block;width:300px;max-width:100%;height:100px;object-fit:contain;border:1px solid #dce3ed;border-radius:8px;margin:15px 0}.reference-library details{margin:12px 0}.library-row p{white-space:pre-line}.compact-body textarea{white-space:pre-wrap}@media(max-width:650px){.risk-chip{min-width:55px;padding:5px}.compact-item summary{gap:8px;padding-right:8px}.expand-hint{display:none}.crane-card{padding:16px}.risk-pair{gap:4px}}

.drop-target{outline:2px solid #e1b740;box-shadow:0 4px 0 #e1b740}.drag-tab:active{cursor:grabbing}

/* SFC desktop workspace — ink, warm white and the crane fleet's signal yellow. */
:root {
  font-family: "Segoe UI Variable Text", "Segoe UI", Aptos, Arial, sans-serif;
  color: #182532;
  background: #f3f4f3;
  --primary: #172733;
  --accent: #f2ce42;
  --nav: #101f2a;
  --muted: #6c7982;
  --line: #dfe4e5;
  --border: #dfe4e5;
  --surface: #ffffff;
  --radius: 12px;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
body { background: #f3f4f3; }
button, a, input, select, textarea { transition: background-color .16s, border-color .16s, box-shadow .16s, color .16s; }
button:focus-visible, a:focus-visible { outline: 3px solid #d5a919; outline-offset: 3px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: #9b853c; box-shadow: 0 0 0 3px #eaca4930; }
button:disabled { opacity: .45; }
.shell { grid-template-columns: 246px minmax(0, 1fr); }
.sidebar {
  width: 246px;
  padding: 30px 19px 20px;
  background: var(--nav);
  color: #9eabb5;
  z-index: 45;
  border-right: 1px solid #ffffff07;
  transition: transform .2s ease;
  scrollbar-width: thin;
  scrollbar-color: #42505a transparent;
}
.brand { padding: 0 24px 37px 9px; gap: 12px; }
.brand-mark { background: var(--accent); color: #12222d; border: 0; border-radius: 5px; font-size: 22px; letter-spacing: -1.4px; font-weight: 850; padding: 8px 7px; line-height: 1; box-shadow: 0 2px 0 #00000020; }
.brand strong { font-size: 20px; font-weight: 750; letter-spacing: 2.2px; }
.brand small { color: #84939e; font-size: 10px; letter-spacing: .2px; margin-top: 5px; white-space: nowrap; }
.nav-label { color: #687d8c; font-size: 9px; letter-spacing: 1.8px; margin: 5px 13px 13px; font-weight: 750; }
.nav-link { min-height: 43px; padding: 11px 13px; border-radius: 7px; margin-bottom: 4px; font-size: 12.5px; font-weight: 550; gap: 12px; }
.nav-link svg { width: 18px; height: 18px; opacity: .8; }
.nav-link:hover { background: #ffffff08; color: #fff; }
.nav-link.active { color: #f8df79; background: #e7c85213; box-shadow: none; }
.nav-link.active svg { opacity: 1; }
.nav-link.active::after { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); margin-left: auto; flex-shrink: 0; }
.nav-divider { background: #ffffff0d; margin: 20px 11px; }
.sidebar-footer { border-color: #ffffff0d; padding: 21px 9px 0; font-size: 12px; color: #e2e7e9; }
.sidebar-footer small { font-size: 10px; color: #708493; margin-top: 5px; }
.avatar { border-radius: 9px; background: #263843; color: #e9d376; font-size: 11px; width: 35px; height: 35px; }
.sidebar-close { position: absolute; top: 10px; right: 9px; display: grid; place-items: center; width: 28px; height: 28px; padding: 5px; border: 0; border-radius: 5px; color: #8b9eaa; background: transparent; cursor: pointer; }
.sidebar-close:hover { color: white; background: #ffffff12; }
.sidebar-close svg { width: 16px; height: 16px; }
.sidebar-backdrop { display: none; }
.menu-toggle, .mobile-menu { display: inline-flex; padding: 7px !important; min-width: 33px; min-height: 33px; color: #667780; }
.shell.nav-collapsed { grid-template-columns: 0 minmax(0, 1fr); }
.shell.nav-collapsed .sidebar { transform: translateX(-100%); visibility: hidden; }
.workspace { background: #f3f4f3; }
.topbar { height: 78px; padding: 0 40px; background: #ffffffed; border-bottom: 1px solid #e1e5e4; position: sticky; top: 0; z-index: 30; backdrop-filter: blur(14px); }
.breadcrumbs { color: #9ba5aa; font-size: 12px; gap: 13px; }
.breadcrumbs strong { color: #465762; font-weight: 600; }
.breadcrumbs > span:first-of-type { color: #72818a; }
.top-actions { gap: 15px; }
.profile-control { gap: 7px; color: #8b969c; font-size: 10px; }
.profile-control select { border-color: transparent; background: #f2f4f4; border-radius: 6px; font-size: 11px; padding: 7px 24px 7px 8px; color: #64757e; max-width: 142px; }
.local-pill { border: 0; border-radius: 0; padding: 5px 0; font-size: 10px; color: #7f8c94; }
.local-pill::before { background: #5c8b78; width: 5px; height: 5px; margin-right: 6px; }
.content { padding: 37px 40px 48px; max-width: 1570px; }
.page-head { margin-bottom: 29px; align-items: center; min-height: 72px; }
.eyebrow { color: #8c969c; letter-spacing: 1.8px; font-size: 9px; font-weight: 750; margin-bottom: 11px; }
.eyebrow a { color: #7b8c95; }
h1 { color: #182732; font-size: 34px; line-height: 1.13; font-weight: 730; letter-spacing: -1.25px; margin-bottom: 11px; }
h2 { color: #243641; font-size: 16px; font-weight: 700; letter-spacing: -.25px; }
h3 { color: #293c47; font-weight: 680; font-size: 14px; }
.subtext { color: #7b8890; font-size: 12.5px; line-height: 1.65; }
.button { border-color: #dce2e3; border-radius: 7px; color: #3b4d57; padding: 10px 15px; min-height: 40px; font-size: 12px; font-weight: 650; gap: 8px; background: #fff; box-shadow: 0 1px 1px #162c3b03; }
.button svg { width: 16px; height: 16px; }
.button:hover { background: #f1f4f3; border-color: #bfcacc; }
.button.primary, .button.accent { background: var(--accent); border-color: #e6c337; color: #172a35; box-shadow: 0 2px 2px #6c58050b; }
.button.primary:hover, .button.accent:hover { background: #e9c339; border-color: #d4ad22; filter: none; }
.button.small { font-size: 11px; min-height: 32px; padding: 6px 11px; }
.button.ghost { box-shadow: none; color: #6e818c; }
.button.ghost:hover { background: #e8eded; }
.button.danger { color: #a94c40; }
.button.danger:hover { background: #fbf1ef; border-color: #e9c8c1; }
.actions { gap: 9px; }
.stats { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); gap: 0; overflow: hidden; margin-bottom: 27px; box-shadow: 0 3px 12px #17344303; }
.stat { border: 0; border-right: 1px solid #e9eded; border-radius: 0; padding: 23px 25px 25px; background: transparent; }
.stat:last-child { border-right: 0; }
.stat-label { font-size: 11px; color: #7b8c96; font-weight: 550; }
.stat-label svg { color: #a2afb5; width: 17px; height: 17px; }
.stat-value { font-size: 42px; font-weight: 620; letter-spacing: -1.9px; line-height: 1; margin: 17px 0 12px; font-variant-numeric: tabular-nums; color: #21343f; }
.stat:first-child .stat-value { color: #273e4b; }
.stat-foot { color: #a0a8ad; font-size: 10px; }
.dashboard-grid { grid-template-columns: minmax(0, 1fr) 285px; gap: 24px; }
.panel { border-radius: var(--radius); border-color: var(--line); box-shadow: 0 3px 10px #14344302; }
.panel-header { padding: 21px 23px; border-color: #e8edec; min-height: 65px; }
.panel-body { padding: 23px; }
.panel + .panel { margin-top: 24px; }
.count { color: #778891; background: #edf1f1; font-size: 10px; font-weight: 600; border-radius: 5px; padding: 3px 6px; margin-left: 8px; vertical-align: middle; }
table { font-size: 12px; }
th { background: #f8f9f8; color: #89979e; font-size: 9px; letter-spacing: 1px; font-weight: 650; padding: 13px 23px; }
td { padding: 20px 23px; border-color: #edf0ef; }
tbody tr:hover { background: #fbfcfb; }
.job-title { color: #304754; font-size: 12px; font-weight: 680; margin-bottom: 6px; }
.job-title:hover { color: #8c7423; text-decoration-color: #d5bb5b; text-underline-offset: 3px; }
.meta { color: #8e9aa1; font-size: 10px; line-height: 1.55; }
.badge { background: #edf1f3; color: #6c818e; border-radius: 5px; padding: 5px 8px; font-size: 10px; font-weight: 600; }
.badge.issued { background: #edf5ef; color: #567c61; }
.badge.draft { background: #fbf5dd; color: #99822a; }
.badge.danger { background: #f9eeeb; color: #ab6558; }
.badge.blue { background: #edf2f6; color: #698395; }
.progress-list li { padding: 14px 0; gap: 13px; }
.progress-list strong { font-size: 12px; color: #445b68; }
.progress-list p { font-size: 11px; line-height: 1.6; color: #8a979f; }
.step-num { background: #f2f4f3; color: #87999f; font-weight: 600; border-radius: 7px; }
.activity li { font-size: 12px; border-color: #eef0ef; padding: 13px 0; color: #586d78; }
.activity small { color: #a0aaaf; font-size: 10px; }
.note { border-radius: 8px; padding: 15px 18px; color: #687d87; font-size: 12px; background: #f1f5f5; border-color: #e1e9e8; }
.note.warning { color: #93803f; background: #fcf8e9; border-color: #eee5c9; }
.note.danger { color: #9e5b52; background: #fcf2ef; border-color: #eed7d0; }
.note.success { color: #547863; background: #eff6f0; border-color: #d8e6da; }
.local-notice { color: #a0aaaf; font-size: 10px; margin-top: 26px; }
.empty { color: #8c9aa2; padding: 46px 25px; font-size: 12px; }
.empty h3 { color: #617a88; }
.toolbar { gap: 10px; margin-bottom: 22px; }
.search { max-width: 420px; }
.search svg { width: 17px; height: 17px; top: 12px; color: #a3afb5; }
input, select, textarea { border-radius: 7px; border-color: #dce3e5; color: #354c58; padding: 11px 13px; font-size: 12.5px; background: #fff; }
input::placeholder, textarea::placeholder { color: #aab4ba; }
input[readonly] { background: #f6f8f7; color: #70858f; }
input[type=checkbox] { accent-color: #263f4b; }
textarea { line-height: 1.75; }
label.field { color: #6a7e89; font-size: 11px; font-weight: 650; gap: 8px; }
label.field small { color: #a0aab0; font-size: 10px; line-height: 1.6; }
.form-grid { gap: 21px; }
.form-section { margin-bottom: 29px; }
.section-title { margin-bottom: 22px; gap: 16px; }
.section-title p { color: #90a0a9; font-size: 11px; margin-top: 7px; line-height: 1.6; }
.builder-layout { grid-template-columns: 178px minmax(0, 1fr); gap: 25px; }
.builder-steps { top: 103px; padding-top: 6px; }
.builder-step { padding: 13px 12px; gap: 10px; color: #8a9aa3; font-size: 11px; border-radius: 8px; margin-bottom: 6px; }
.builder-step:hover { background: #e9eeec; color: #506d7c; }
.builder-step .step-num { border: 1px solid #dce3e3; background: #ffffffb0; color: #92a1a8; width: 24px; height: 24px; font-size: 10px; border-radius: 6px; }
.builder-step.active { background: #1d3441; color: #fff; font-weight: 650; box-shadow: 0 3px 8px #12212c12; }
.builder-step.active .step-num { color: #283a42; background: var(--accent); border-color: var(--accent); }
.builder-card { padding: 29px; border-radius: 12px; border-color: var(--line); box-shadow: 0 3px 16px #14344303; }
.builder-footer { margin-top: 27px; padding-top: 23px; border-color: #e8edeb; }
.save-status { font-size: 10px; color: #8c9ea8; }
.load-card, .item-card, .crane-card { border-color: #e1e7e7; border-radius: 9px; padding: 23px; margin-bottom: 20px; }
.crane-card { margin-top: 22px; }
.crane-card .card-top { padding-bottom: 17px; margin-bottom: 23px; border-bottom: 1px solid #edf0ee; }
.card-top h3 { font-size: 14px; }
.number-label { background: #f0f4f3; color: #8c9da5; font-size: 10px; border-radius: 5px; }
.calculation { border: 1px solid #e2e8e7; border-left: 3px solid #d8bc46; background: #f7f9f8; border-radius: 7px; padding: 17px 18px; gap: 28px; margin-top: 20px; }
.calculation small { color: #98a6ad; text-transform: uppercase; letter-spacing: .8px; font-size: 8px; margin-bottom: 7px; }
.calculation strong { font-size: 23px; color: #3b5868; font-weight: 600; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.calculation .formula { margin-top: -7px; font-size: 10px; color: #99a6ad; }
.hazard { min-height: 60px; padding: 14px; color: #82959f; font-size: 11px; border-color: #e1e6e6; border-radius: 8px; }
.hazard svg { width: 18px; }
.hazard.selected { background: #f4f0dc; border-color: #dbc46e; box-shadow: inset 0 0 0 1px #dbc46e; color: #786c38; }
.check-row { color: #70848f; font-size: 12px; line-height: 1.65; }
.library-list { gap: 13px; }
.library-row { padding: 19px; border-color: #e3e8e7; border-radius: 9px; }
.library-row h3 { color: #516c7b; font-size: 12px; }
.library-row p { color: #8c9da6; font-size: 11px; line-height: 1.7; }
.tabs { gap: 14px; border-color: #dde5e3; }
.tab { font-size: 12px; padding: 13px 2px; margin-right: 10px; }
.tab.active { color: #3b5868; border-color: #c9aa31; }
.compact-item { margin: 10px 0; border-color: #e1e8e7; border-radius: 9px; box-shadow: 0 1px 1px #14344303; }
.compact-item summary { min-height: 66px; gap: 14px; padding-right: 15px; }
.compact-item summary:hover { background: #fcfdfb; }
.compact-item[open] { border-color: #cbd8da; }
.compact-item[open] > summary { background: #f6f8f6; }
.drag-tab { width: 28px; background: #f5f7f5; border-color: #e7ecea; color: #b4c0c4; font-size: 24px; }
.drag-tab:hover { background: #eceee3; color: #9a8c48; }
.row-number { font-size: 10px; color: #a2b1b9; min-width: 16px; }
.compact-title { font-size: 12px; font-weight: 600; color: #4a6676; line-height: 1.5; }
.risk-pair { gap: 6px; }
.risk-chip { border-radius: 5px; min-width: 67px; padding: 5px 8px; font-size: 10px; }
.risk-chip small { font-size: 8px; letter-spacing: .25px; margin-bottom: 2px; }
.risk-chip.high { background: #f8e7e1; color: #a86050; }
.risk-chip.medium { background: #faf1cf; color: #9c8840; }
.risk-chip.low { background: #e8f1e7; color: #648163; }
.compact-body { padding: 23px 26px; border-color: #e5ecea; }
.compact-body textarea { min-height: 170px; }
.expand-hint { font-size: 10px; color: #9cabb4; }
.expand-hint::after { content: '+'; display: inline-block; margin-left: 15px; font-size: 18px; color: #9cadb4; font-weight: 300; vertical-align: -1px; }
.compact-item[open] .expand-hint::after { content: '−'; }
.source-note { font-size: 9px; color: #a3afb5; line-height: 1.8; }
.reference-spec { background: #f6f8f5; border: 1px solid #e6ece8; padding: 15px 18px; border-radius: 7px; color: #8096a1; }
.reference-spec summary { font-size: 11px; font-weight: 550; }
.reference-spec dl { gap: 24px; }
.reference-spec dt { color: #9cabb1; font-size: 9px; }
.reference-spec dd { color: #5c7785; font-size: 12px; font-weight: 600; margin-top: 6px; }
.duty-load { margin-top: 24px; }
.duty-load > strong { color: #708b99; font-size: 11px; font-weight: 600; }
.duty-confirm { border-top: 1px solid #edf1ed; padding-top: 16px; }
.review-list li { color: #97874d; font-size: 12px; border-bottom: 1px solid #eee7d3; padding: 2px 0; align-items: center; }
.review-list li:last-child { border-bottom: 0; }
.review-list li::before { background: #efe3ac; color: #9e8b3d; font-size: 9px; width: 15px; height: 15px; }
.review-fix { width: 100%; padding: 11px 0; text-decoration: none; justify-content: space-between; }
.review-fix:hover { color: #5c5229; text-decoration: underline; }
.review-fix svg { width: 14px; height: 14px; }
.key-value { grid-template-columns: 140px minmax(0, 1fr); font-size: 12px; gap: 14px; }
.key-value dt { color: #93a3ac; }
.key-value dd { color: #5b7686; }
.revision-row { padding: 19px 0; border-color: #e9eeeb; }
.file-row { font-size: 11px; padding: 16px 0; border-color: #e9eeeb; color: #627f8e; }
.file-row svg { color: #9aadb8; width: 18px; height: 18px; }
.file-row select { font-size: 10px; }
.upload-box { border-color: #c8d5d7; background: #fafbf9; border-radius: 9px; padding: 25px; }
.detail-card { border-radius: 10px; padding: 24px; border-color: #e0e7e5; }
.detail-card p { color: #8fa0a9; font-size: 12px; }
.hint { color: #98a8b1; font-size: 10px; }
.divider { background: #e5ebe8; margin: 27px 0; }
.insurance-option { gap: 12px; padding: 17px 0; border-color: #e7eeea; font-size: 12px; color: #637f8d; }
.insurance-option small { font-size: 10px; color: #a1afb6; margin-top: 6px; }
.insurance-option > a { margin-left: auto; color: #7d96a2; font-size: 11px; text-decoration: underline; text-underline-offset: 3px; }
.signature-preview { border-color: #dde6e2; background: #fff; }
.signature-pad { background: #fcfdfb; border-color: #c8d7d9; border-radius: 8px; }
.calendar-panel .panel-header { padding: 18px 20px; }
.calendar-panel .panel-header h2 { font-size: 13px; }
.calendar-body { padding: 15px 19px; }
.cal-week span { color: #a3b1b8; font-size: 9px; }
.cal-day { border-radius: 6px; border-color: #e6eeea; color: #8099a5; }
.cal-day:hover { background: #f6f7f0; }
.cal-day.today { background: #fbf1c5; border-color: #e7d587; color: #917f3d; }
.compact .cal-day { font-size: 10px; min-height: 32px; }
.cal-legend { font-size: 9px; color: #a0b0b9; gap: 10px; }
.calendar-link { color: #8da2ad; font-size: 10px; padding: 14px 20px; border-color: #e5edeb; }
.calendar-link:hover { background: #fafbf8; color: #627e8d; }
.allocation-slot { gap: 20px; padding: 20px 0; border-color: #e6ece9; align-items: start; }
.allocation-slot .check-row { margin-top: 9px; }
.allocation-person, .allocation-person-fields { display: grid; gap: 12px; }
.allocation-slot input[list] { width: 100%; }
.document-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin: 24px 0; padding: 25px 28px; background: #1c3340; border: 1px solid #203b4b; border-radius: 12px; color: #e8eef0; box-shadow: 0 6px 20px #20394210; }
.document-toolbar h2, .document-toolbar h3 { color: #f0f4f4; margin: 0 0 8px; font-size: 17px; }
.document-toolbar p, .document-toolbar .subtext { color: #95aab4; font-size: 11px; margin: 0; }
.document-toolbar .badge { background: #ffffff10; color: #d2dfe5; }
.print-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.print-actions .button { min-height: 43px; white-space: nowrap; }
.pack-button { background: var(--accent); border-color: var(--accent); color: #223b48; font-weight: 700; padding: 12px 20px; }
.pack-button:hover { background: #e9c233; border-color: #e0b52e; }
.document-toolbar .button:not(.primary):not(.accent):not(.pack-button) { border-color: #ffffff26; background: #ffffff08; color: #e0e8eb; }
.document-toolbar .button:not(.primary):not(.accent):not(.pack-button):hover { background: #ffffff15; }
.document-toolbar .button:disabled { opacity: .4; }
.document-toolbar .hint { color: #9dafb7; }
.settings-preview { background: #203745; border-radius: 10px; padding: 31px; }
.settings-preview h2 { color: #f0f3f3; border-bottom: 2px solid #d3b744; padding-bottom: 18px; }
.settings-preview p { color: #a8bbc5; }
dialog { border-radius: 13px; color: #4c6a7b; box-shadow: 0 24px 90px #0d253f40; }
dialog::backdrop { background: #152d426e; backdrop-filter: blur(5px); }
.modal-head { border-color: #e5ece8; padding: 23px 27px; }
.modal-body { padding: 27px; }
.modal-footer { padding: 19px 27px; border-color: #e5ece8; background: #fafbf9; }
.modal-error { font-size: 12px; padding: 0 27px 17px; }
#toast { background: #203b4b; color: #edf3f5; border: 1px solid #2c4c5f; padding: 16px 22px; border-radius: 9px; font-size: 12px; box-shadow: 0 12px 36px #0d263b24; }

@media (min-width: 1600px) {
  .content { padding: 44px 49px 55px; }
  .topbar { padding: 0 49px; }
  .dashboard-grid { grid-template-columns: minmax(0, 1fr) 310px; }
}
@media (max-width: 1250px) {
  .shell { grid-template-columns: 218px minmax(0, 1fr); }
  .sidebar { width: 218px; padding-left: 14px; padding-right: 14px; }
  .brand { padding-left: 5px; gap: 9px; }
  .brand strong { font-size: 18px; }
  .brand small { font-size: 9px; }
  .content { padding: 30px 26px 40px; }
  .topbar { padding: 0 26px; gap: 10px; }
  .top-actions { gap: 10px; }
  .breadcrumbs { gap: 9px; }
  .breadcrumbs > span:first-of-type { display: none; }
  .breadcrumbs > span:nth-of-type(2) { display: none; }
  .dashboard-grid { grid-template-columns: minmax(0, 1fr) 265px; gap: 20px; }
  .stat { padding: 21px; }
  .stat-value { font-size: 36px; }
  .builder-layout { grid-template-columns: 154px minmax(0, 1fr); gap: 19px; }
  .builder-card { padding: 23px; }
  .crane-card, .load-card, .item-card { padding: 20px; }
  .document-toolbar { padding: 22px; flex-wrap: wrap; }
}
@media (max-width: 1100px) {
  .dashboard-grid { grid-template-columns: minmax(0, 1fr); }
  .dashboard-side { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .dashboard-side .panel + .panel { margin-top: 0; }
  .stat { padding: 19px; }
  .stat-foot { font-size: 9px; }
  td, th { padding-left: 18px; padding-right: 18px; }
  .top-actions .local-pill { display: none; }
  .form-grid { gap: 18px; }
  .builder-layout { grid-template-columns: 1fr; }
  .builder-steps { position: static; display: flex; gap: 5px; overflow-x: auto; padding: 0 0 4px; }
  .builder-step { flex-shrink: 0; width: auto; white-space: nowrap; padding: 9px 10px; margin: 0; }
  .builder-step .step-num { width: 21px; height: 21px; }
}
@media (max-width: 1000px) {
  .shell, .shell.nav-collapsed { grid-template-columns: minmax(0, 1fr); }
  .workspace { grid-column: 1; }
  .sidebar { display: flex; width: 246px; z-index: 60; transform: translateX(-100%); visibility: hidden; box-shadow: none; padding: 30px 19px 20px; }
  .sidebar.open, .shell.nav-collapsed .sidebar.open { transform: translateX(0); visibility: visible; box-shadow: 20px 0 70px #071e343d; }
  .sidebar-backdrop { display: block; position: fixed; inset: 0; z-index: 55; width: 100%; height: 100%; background: #071e3463; border: 0; padding: 0; opacity: 0; visibility: hidden; pointer-events: none; backdrop-filter: blur(2px); }
  .shell:has(.sidebar.open) .sidebar-backdrop, .sidebar.open ~ .sidebar-backdrop { opacity: 1; visibility: visible; pointer-events: auto; }
  .sidebar-close { top: 11px; right: 10px; width: 31px; height: 31px; }
  .brand { padding-left: 9px; gap: 12px; }
  .brand strong { font-size: 20px; }
  .brand small { font-size: 10px; }
  .topbar { height: 68px; padding: 0 24px; }
  .content { padding: 28px 24px 40px; }
  .page-head h1, h1 { font-size: 30px; }
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stat { padding: 20px 16px; }
  .stat-value { font-size: 32px; }
  .stat-label svg { display: none; }
  .stat-foot { font-size: 8px; }
  .builder-card { padding: 24px; }
  .list-cards { grid-template-columns: 1fr; }
  .key-value { grid-template-columns: 120px minmax(0, 1fr); }
  .print-actions { width: 100%; }
}
@media (max-width: 600px) {
  .topbar { height: auto; min-height: 66px; padding: 12px 17px; gap: 9px; flex-wrap: wrap; position: static; }
  .top-actions { width: 100%; justify-content: space-between; }
  .profile-control > span { display: inline; }
  .content { padding: 26px 16px 36px; }
  .page-head { min-height: auto; gap: 15px; flex-wrap: wrap; margin-bottom: 24px; }
  .page-head h1, h1 { font-size: 29px; }
  .page-head > .actions { width: 100%; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 20px; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid #e9eded; }
  .stat-value { font-size: 36px; }
  .stat-label { font-size: 11px; }
  .stat-foot { font-size: 9px; }
  .dashboard-side { display: block; }
  .dashboard-side .panel + .panel { margin-top: 20px; }
  .panel-header, .panel-body { padding: 19px; }
  .form-grid, .split, .ppe-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: 1; }
  .builder-card { padding: 20px 17px; }
  .builder-steps { margin: 0 -16px; padding: 0 16px 5px; }
  .load-card, .item-card, .crane-card { padding: 18px 15px; }
  .section-title { flex-wrap: wrap; }
  .section-title > .actions { flex-wrap: wrap; }
  .compact-item summary { gap: 8px; padding-right: 9px; }
  .compact-title { font-size: 11px; }
  .compact-body { padding: 20px 16px; }
  .drag-tab { width: 25px; }
  .row-number { min-width: 12px; font-size: 9px; }
  .risk-chip { min-width: 47px; padding: 5px; font-size: 9px; }
  .risk-chip small { font-size: 7px; }
  .risk-pair { gap: 4px; }
  .expand-hint { display: none; }
  .hazard-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .hazard { min-height: 63px; font-size: 10px; padding: 11px; gap: 8px; }
  .calculation { gap: 18px; padding: 16px 14px; }
  .calculation strong { font-size: 21px; }
  .form-grid input, .form-grid select, .form-grid textarea { font-size: 16px; }
  .document-toolbar { padding: 22px; gap: 19px; }
  .print-actions .button { flex: 1 1 auto; }
  .allocation-slot { grid-template-columns: 1fr; gap: 14px; }
  .builder-footer { flex-wrap: wrap; gap: 13px; }
  .modal-body { padding: 22px; }
  .modal-head { padding: 21px 22px; }
  .modal-footer { padding: 17px 22px; }
  .button { min-height: 40px; }
  .button.small { min-height: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media print {
  .sidebar, .sidebar-backdrop, .topbar, .builder-steps, .builder-footer, .page-head > .actions, .document-toolbar, #toast, .local-notice, .button, dialog { display: none !important; }
  body, .workspace { background: white !important; }
  .shell { display: block !important; }
  .content { padding: 0 !important; max-width: none; }
  .builder-layout { display: block; }
  .builder-card, .panel, .crane-card, .load-card, .item-card { box-shadow: none; break-inside: avoid; }
  h1, h2, h3 { break-after: avoid; }
}

/* Personnel allocation and final pack controls. */
.personnel-card { border: 1px solid #e0e7e5; border-radius: 10px; background: #fff; padding: 22px; margin: 17px 0; }
.personnel-card > .card-top { padding-bottom: 16px; margin-bottom: 18px; border-bottom: 1px solid #edf1ef; }
.personnel-card h3 { color: #334d5b; margin-bottom: 0; font-size: 14px; }
.allocation-mode { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 19px; }
.allocation-mode label { display: inline-flex; align-items: center; gap: 8px; padding: 8px 11px; border: 1px solid #dfe7e5; border-radius: 7px; font-size: 12px; color: #697e88; background: #fafbf9; cursor: pointer; }
.allocation-mode label:has(input:checked) { background: #faf4db; border-color: #ddca7d; color: #796d3c; }
.allocation-mode input { accent-color: #334d5b; }
.person-search { position: relative; }
.person-search input { width: 100%; }
.person-suggestions { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 12; border: 1px solid #d3dedf; border-radius: 8px; background: white; box-shadow: 0 9px 30px #213e501a; padding: 5px; max-height: 255px; overflow-y: auto; }
.person-suggestions:empty { display: none; }
.person-suggestion { display: flex; align-items: center; justify-content: space-between; gap: 13px; width: 100%; text-align: left; color: #3b596a; background: white; border: 0; border-radius: 5px; padding: 12px; font-size: 12px; }
.person-suggestion:hover, .person-suggestion:focus { background: #f3f6ee; outline-offset: -2px; }
.person-suggestion small { color: #7f959e; font-size: 10px; font-weight: 400; }
.person-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; font-size: 11px; line-height: 1.6; color: #728993; }
.allocation-footer { position: sticky; bottom: 0; z-index: 15; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 19px 0 4px; margin-top: 24px; border-top: 1px solid #dde5e3; background: #fffffff7; backdrop-filter: blur(8px); }
.pack-status { display: flex; align-items: center; gap: 9px; font-size: 11px; color: #95abb6; line-height: 1.6; }
.pack-status svg { width: 17px; height: 17px; }
.pack-status strong { color: #e3edf0; font-weight: 550; }
.document-toolbar .print-actions { margin-left: auto; }

/* Quiet secondary type remains readable on an ordinary office screen. */
.subtext { color: #6e7e87; font-size: 13px; }
.nav-link { font-size: 13px; }
.meta { color: #71838d; font-size: 11px; }
.stat-foot { color: #7a898f; font-size: 11px; }
.stat-label { color: #677c87; font-size: 12px; }
input, select, textarea { font-size: 13px; }
label.field { color: #586f7b; font-size: 12px; }
label.field small, .hint { color: #74858d; font-size: 11px; }
.section-title p { color: #738894; font-size: 12px; }
.source-note { color: #7a8b94; font-size: 10px; }
.key-value dt { color: #748994; }
.key-value dd { color: #4e6c7c; }
.compact-title { font-size: 13px; color: #405e6e; }
.progress-list p { color: #71858f; }
.activity small, .save-status { color: #71848f; font-size: 11px; }
.expand-hint { color: #748e9c; }
.calculation small { color: #6f8491; font-size: 9px; }
.calculation .formula { color: #718993; font-size: 11px; }
.library-row p { color: #708895; font-size: 12px; }
.risk-chip.high { color: #914d40; }
.risk-chip.medium { color: #806d26; }
.risk-chip.low { color: #4e6e4e; }
@media (max-width: 600px) {
  .personnel-card { padding: 18px 15px; }
  .allocation-footer { flex-wrap: wrap; }
  .allocation-footer .actions { width: 100%; }
  .allocation-mode { gap: 6px; }
  .allocation-mode label { font-size: 11px; padding: 8px; }
  .person-suggestion { align-items: flex-start; flex-direction: column; gap: 5px; }
  .document-toolbar .print-actions { margin-left: 0; }
  .form-grid input, .form-grid select, .form-grid textarea { font-size: 16px; }
}

.pack-status:has(.saved-pack-path) { width:100%; flex-wrap:wrap; justify-content:space-between; border-top:1px solid #ffffff20; padding-top:16px; }
.saved-pack-path { display:block; overflow-wrap:anywhere; margin-top:4px; color:#b3c4cd; }
.saved-pack-actions { display:flex; flex-wrap:wrap; gap:8px; }

.document-toolbar { flex-wrap:wrap; }
.document-toolbar > .pack-status { flex:1 0 100%; }
.document-toolbar > .pack-status:empty { display:none; }

/* SFC planning schedule and cover controls. */
.lift-category { max-width:360px; margin:0 0 24px; }
.site-address-card { padding:16px 18px; background:#f6f8f9; border-left:3px solid var(--accent); border-radius:6px; }
.site-address-card p { margin:6px 0 0; color:#657b89; line-height:1.5; }
.accessory-table { min-width:660px; table-layout:fixed; }
.accessory-table th:nth-child(1) { width:27%; }
.accessory-table th:nth-child(2) { width:12%; }
.accessory-table th:nth-child(3) { width:31%; }
.accessory-table th:nth-child(4) { width:24%; }
.accessory-table th:nth-child(5) { width:6%; }
.accessory-table td { padding:9px 5px; }
.accessory-table input { width:100%; min-width:0; padding:10px 8px; }
.cover-details textarea { min-height:140px; }
.cover-sign-heading { margin-top:24px; }
.cover-signs { display:flex; gap:12px; flex-wrap:wrap; padding:15px 0; }
.cover-signs figure { width:85px; margin:0; text-align:center; }
.cover-signs img { width:74px; height:82px; object-fit:contain; }
.cover-signs figcaption { font-size:10px; color:#516b7b; line-height:1.3; margin-top:5px; }

.sfc-app-wordmark { display:block; max-width:184px; width:100%; height:auto; background:#fff; border-radius:5px; padding:9px 7px; }
.cover-extra-labels { font-size:12px; line-height:1.6; color:#637b8a; }

/* Job-specific what3words entry: optional assistance beside the site address. */
.w3w-field { position:relative; min-width:0; }
.w3w-field input { width:100%; padding-left:13px; font-variant-ligatures:none; }
.w3w-field input::placeholder { color:#91a1ab; }
.w3w-actions { display:flex; align-items:center; gap:13px; flex-wrap:wrap; margin-top:10px; }
.w3w-map { color:#516f81; font-size:11px; text-decoration:underline; text-underline-offset:3px; }
.w3w-map:hover { color:#1a3f53; }
.w3w-suggestions { position:absolute; left:0; right:0; top:69px; z-index:25; background:#fff; border:1px solid #c8d6dc; border-radius:8px; padding:5px; max-height:280px; overflow:auto; box-shadow:0 12px 35px #18384624; }
.w3w-suggestions[hidden], .w3w-map[hidden] { display:none; }
.w3w-suggestion { display:flex; flex-direction:column; align-items:flex-start; gap:4px; width:100%; border:0; border-radius:5px; padding:11px 12px; text-align:left; background:#fff; color:#2c5265; font-size:13px; }
.w3w-suggestion strong { font-weight:600; }
.w3w-suggestion small { font-size:11px; color:#718b98; }
.w3w-suggestion:hover, .w3w-suggestion[aria-selected=true] { background:#edf3ef; }
.w3w-suggestion[aria-selected=true] { box-shadow:inset 3px 0 #e0c44b; }
.w3w-status { min-height:0; margin:9px 0 0; color:#6b8390; font-size:11px; line-height:1.6; }
.w3w-status:empty { display:none; }
.w3w-status.is-error { color:#95683f; }
.w3w-settings { margin-top:24px; }
.w3w-settings .panel-header .subtext { margin-top:7px; }
.w3w-settings .panel-body > .hint { margin:0 0 18px; }
.w3w-settings .field { max-width:560px; }
.w3w-settings input[type=password] { width:100%; }
.w3w-settings .actions { margin-top:18px; }
.w3w-settings-status { margin:17px 0 0; color:#637d8a; font-size:12px; line-height:1.6; }
@media(max-width:600px) {
 .w3w-suggestions { top:73px; }
 .w3w-actions { gap:12px; }
 .w3w-settings .panel-header { align-items:flex-start; }
 .w3w-settings .actions .button { flex:1 1 auto; }
}

.product-credit{text-align:center;padding:18px 20px;color:#85919a;font-size:11px;letter-spacing:.03em}.rams-pdf-frame{display:block;width:100%;height:78vh;min-height:420px;border:1px solid #d8dee4;border-radius:8px;margin-top:14px;background:#525659}.pdf-preview-panel{margin-top:22px}.pdf-preview-panel [data-pdf-preview]{padding:16px}.site-tasks ul{list-style:none;padding:0;margin:18px 0}.site-tasks li{border:1px solid #d8e0e6;border-radius:10px;margin:10px 0;background:white}.site-tasks a{display:flex;align-items:center;gap:12px;padding:18px;text-decoration:none;color:inherit}.site-tasks a strong{font-size:16px;flex:1}.site-tasks a>span:last-child{font-size:12px;color:#667884}.site-tasks .task-done{background:#f0f8f3}.site-missing-flag{display:block;color:#a12a32;font-size:12px;margin-top:6px}.site-access-panel{padding:24px 0}.site-app>.product-credit{padding-bottom:85px}.site-content .rams-pdf-frame{height:75vh}.site-tasks .note{margin-top:18px}@media(max-width:600px){.site-tasks a{flex-wrap:wrap}.site-tasks a>span:last-child{width:100%;padding-left:26px}.rams-pdf-frame{min-height:320px}}@media print{.product-credit{display:none}}

.account-auth-shell{grid-template-rows:1fr auto}.check-question>p{font-weight:700}
