:root{--navy:#111111;--navy2:#2a2a2a;--or:#FF4C00;--or-ink:#111111;--bg:#f4f4f4;--g:#1e9e5a;--a:#e0a100;--r:#d93636;--t:#1a1a1a;--m:#5f5f5f}
*{box-sizing:border-box}body{margin:0;font-family:-apple-system,Segoe UI,Roboto,Arial,sans-serif;background:var(--bg);color:var(--t);padding-bottom:84px}
.banner{background:var(--or);color:var(--or-ink);font-size:12px;font-weight:600;text-align:center;padding:5px}
header{background:var(--navy);color:#fff;padding:14px 16px;display:flex;align-items:center;gap:10px;position:relative;overflow:hidden}
header svg.hmount{position:absolute;right:0;bottom:0;height:100%;width:auto;max-width:88px;opacity:1;color:#fff;pointer-events:none;z-index:0;overflow:visible}
header img{width:34px;height:34px;border-radius:8px}header h1{font-size:18px;margin:0}header small{display:block;opacity:.75;font-size:12px}
header .mode{margin-left:auto;z-index:1;background:rgba(255,255,255,.14);color:#fff;border:0;border-radius:20px;padding:8px 12px;font-size:13px}
main{padding:16px;max-width:560px;margin:0 auto}
h2{font-size:20px;margin:6px 0 12px}h3{font-size:16px;margin:16px 0 8px}p{line-height:1.45}
.card{background:#fff;border-radius:14px;padding:14px;margin-bottom:12px;box-shadow:0 1px 3px rgba(0,0,0,.08)}
.row{display:flex;align-items:center;gap:12px}.grow{flex:1;min-width:0}.muted{color:var(--m);font-size:14px}
.btn{display:flex;align-items:center;justify-content:center;width:100%;min-height:50px;border:0;border-radius:12px;background:var(--navy);color:#fff;font-size:16px;font-weight:600;margin:8px 0;cursor:pointer;text-decoration:none;text-align:center;line-height:1.25;padding:12px 16px;white-space:normal}
.btn.or{background:var(--or);color:var(--or-ink)}.btn.ghost{background:#fff;color:var(--navy);border:2px solid var(--navy)}.btn.sm{display:inline-flex;align-items:center;justify-content:center;width:auto;min-height:40px;line-height:1.25;font-size:14px;margin:0;padding:8px 12px}
.btn:disabled{opacity:.4}
label{display:block;font-weight:600;font-size:14px;margin:12px 0 6px}input,select{width:100%;font-size:16px;padding:13px;border:1px solid #cccccc;border-radius:10px;background:#fff}
.badge{font-size:12px;font-weight:700;padding:4px 9px;border-radius:20px;color:#fff;white-space:nowrap}.b-g{background:var(--g)}.b-a{background:var(--a)}.b-r{background:var(--r)}
.thumb{width:52px;height:52px;border-radius:8px;background:#ebebeb;object-fit:cover;flex:none;display:flex;align-items:center;justify-content:center;font-size:22px}
nav{position:fixed;bottom:0;left:0;right:0;background:#fff;border-top:1px solid #e0e0e0;display:flex;padding-bottom:env(safe-area-inset-bottom)}
nav a{flex:1;text-align:center;padding:10px 0 12px;color:var(--m);text-decoration:none;font-size:12px;font-weight:600}nav a span{display:block;font-size:22px}nav a.on{color:var(--or)}
.prog{height:8px;background:#e2e2e2;border-radius:8px;overflow:hidden;margin:6px 0 14px}.prog i{display:block;height:100%;background:var(--or)}
.slide{background:var(--navy);color:#fff;border-radius:16px;padding:22px;min-height:300px}.slide .ico{font-size:44px}.slide li{margin:8px 0;line-height:1.4}
.tag{display:inline-block;background:rgba(255,76,0,.18);color:var(--or);font-size:11px;font-weight:700;padding:3px 8px;border-radius:6px;letter-spacing:.5px}
.opt{display:block;width:100%;text-align:left;padding:14px;border:2px solid #d8d8d8;border-radius:12px;background:#fff;font-size:15px;margin:8px 0}.opt.sel{border-color:var(--or);background:#fff4ec}
canvas.sig{width:100%;height:200px;background:#fff;border:2px dashed #a8a8a8;border-radius:12px;touch-action:none}
/* v90.1 placeholder — full iOS switch rules appended at end of file */
.cert{border:3px solid var(--navy);border-radius:16px;padding:20px;text-align:center;background:#fff}.cert .seal{font-size:46px}
table{width:100%;border-collapse:collapse;font-size:13px}td,th{padding:9px 6px;border-bottom:1px solid #e6e6e6;text-align:left;vertical-align:top}th{color:var(--m);font-size:12px}
.qrbox{background:#fff;padding:14px;border-radius:12px;display:inline-block}.qrbox img{display:block;width:240px;height:240px;image-rendering:pixelated}
.poster{text-align:center;background:var(--navy);color:#fff;border-radius:16px;padding:24px}
video{width:100%;border-radius:12px;background:#000}.stat{display:flex;gap:8px}.stat div{flex:1;background:#fff;border-radius:12px;padding:10px;text-align:center}.stat b{display:block;font-size:22px}
.swipe{position:relative;margin-bottom:12px;border-radius:14px;overflow:hidden;background:var(--r)}
.swipe .card{margin:0;position:relative;z-index:1;transition:transform .2s;touch-action:pan-y;user-select:none}
.trash{position:absolute;right:0;top:0;bottom:0;width:84px;border:0;background:var(--r);color:#fff;font-size:26px}
.toast{position:fixed;left:16px;right:16px;bottom:92px;background:var(--navy);color:#fff;border-radius:12px;padding:14px 16px;display:flex;justify-content:space-between;align-items:center;z-index:9;box-shadow:0 4px 14px rgba(0,0,0,.25)}
.toast button{background:none;border:0;color:var(--or);font-weight:700;font-size:15px}
.note{background:#fff4ec;border-left:4px solid var(--or);padding:10px 12px;border-radius:8px;margin-top:10px;font-size:14px;line-height:1.4}
.stat a{flex:1;background:#fff;border-radius:12px;padding:10px 4px;text-align:center;text-decoration:none;color:var(--t);font-size:13px;box-shadow:0 1px 3px rgba(0,0,0,.08)}.stat a b{display:block;font-size:22px}
.attn{font-weight:700;font-size:13px;margin:10px 0 6px;padding:4px 10px;border-radius:6px;display:inline-block;color:#fff}.attn.r{background:var(--r)}.attn.a{background:var(--a)}
.search{margin:4px 0 12px}.pill{display:inline-block;background:#efefef;color:var(--navy);font-size:12px;font-weight:700;padding:4px 9px;border-radius:20px}.req{border-left:4px solid var(--or)}
.stat a.on{background:var(--navy);color:#fff;box-shadow:0 0 0 3px var(--or)}.stat a.on b{color:#fff!important}
nav a{font-size:11px;line-height:1.15;padding:8px 2px 10px}
table.ins td,table.ins th{padding:7px 3px}
.seg{display:flex;background:#e6e6e6;border-radius:12px;padding:4px;margin:0 0 12px}.seg a{flex:1;text-align:center;padding:10px 4px;border-radius:9px;text-decoration:none;color:var(--m);font-weight:700;font-size:14px}.seg a.on{background:#fff;color:var(--navy);box-shadow:0 1px 3px rgba(0,0,0,.12)}
.wlink{color:var(--navy);font-weight:700;text-decoration:underline;text-decoration-color:var(--or);text-underline-offset:3px}
.viewer{position:fixed;inset:0;background:rgba(10,10,10,.96);z-index:4000;display:flex;flex-direction:column;justify-content:center;padding:12px}.viewer img{max-width:100%;max-height:72vh;object-fit:contain;border-radius:8px;background:#fff;margin:0 auto}
.vbar{position:absolute;top:12px;left:12px;right:12px;display:flex;justify-content:space-between;align-items:center;color:#fff}.vbar button{background:#fff;border:0;border-radius:20px;padding:10px 14px;font-weight:700;font-size:15px}

.cfoot{text-align:center;font-size:13px;color:var(--m);margin:18px 0 8px}.cfoot a{color:inherit}.draft{font-size:12px;background:var(--a,#f59e0b);color:#fff;border-radius:6px;padding:2px 6px;vertical-align:middle}

.demob{background:#b91c1c;color:#fff;font-weight:800;font-size:13px;text-align:center;padding:7px 10px;border-radius:10px;margin:0 0 10px;letter-spacing:.3px}
.wm{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%) rotate(-30deg);font-size:110px;font-weight:900;color:rgba(185,28,28,.13);pointer-events:none;z-index:50;letter-spacing:8px}
.demoline{color:#b91c1c;font-weight:700;font-size:13px}
.democert{border:3px dashed #b91c1c;background:#fff7f7;position:relative}

.dimgs figure{margin:0 0 10px}.dimgs img{width:100%;border-radius:10px;border:1px solid #e6e6e6;cursor:zoom-in;background:#fff}.dimgs figcaption{font-size:12px;color:var(--m);text-align:center;margin-top:3px}
.vimgs{overflow:auto;max-height:80vh;display:flex;flex-direction:column;gap:8px}.vimgs img{max-height:none!important;width:100%}.vlab{color:#d4d4d4;font-size:13px;font-weight:700;text-align:center}

.slide{max-height:calc(100dvh - 330px);overflow-y:auto;-webkit-overflow-scrolling:touch}.slide li.sub{list-style:none;margin:14px 0 4px -18px;font-weight:700;color:var(--or)}.shint{text-align:center;font-size:12px;color:var(--m);margin-top:4px;visibility:hidden}
.welcome{text-align:center;padding:10px 6px 4px}.welcome .wlogo{width:76px;height:76px;border-radius:18px;background:var(--navy);padding:8px}.welcome h1{margin:10px 0 4px;color:var(--navy)}.tagline{font-weight:600;margin:6px 0}.err{color:var(--r);font-size:14px;min-height:18px;margin:6px 0}

.wlock{width:min(250px,70vw);height:auto;display:block;margin:6px auto 2px}.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}.alock{width:150px;display:block;margin:2px auto 10px}
body.cloud button[onclick^="demo"]{display:none}
#nav a span{position:relative}
.nbub{position:absolute;top:-5px;left:50%;margin-left:4px;background:#dc2626;color:#fff;border-radius:10px;min-width:18px;height:18px;padding:0 5px;font:700 11px/18px system-ui,sans-serif;text-align:center;box-shadow:0 0 0 2px #fff}
#reqnote{position:fixed;left:10px;right:10px;bottom:calc(76px + env(safe-area-inset-bottom));z-index:60;background:#111;color:#fff;border-radius:12px;padding:10px 12px;display:flex;align-items:center;gap:10px;box-shadow:0 6px 20px rgba(0,0,0,.3);font-weight:600}
#reqnote span{flex:1}#reqnote .btn{width:auto;margin:0}#reqnote button[aria-label]{background:none;border:0;color:#fff;font-size:18px;cursor:pointer}
.empta{margin-top:4px}.emplist{border:1px solid #dadada;border-radius:10px;overflow:hidden;background:#fff}
.empopt{display:block;width:100%;text-align:left;background:#fff;border:0;border-bottom:1px solid #efefef;padding:11px 12px;font-size:15px;color:#111;cursor:pointer}
.empopt:last-child{border-bottom:0}.empopt:active,.empopt:hover{background:#f4f4f4}.empnew{color:#b45309;font-weight:600}
.emplink{background:#ecfdf3;border:1px solid #86efac;border-radius:10px;padding:8px 10px;font-size:14px}.linkbtn{background:none;border:0;color:#b91c1c;text-decoration:underline;font-size:13px;margin-left:6px;cursor:pointer}
.dirtag{font-size:11px;color:#888;font-weight:400;margin-left:4px}.empvia{display:block;font-size:11px;color:#888;font-weight:400}

/* v39: custom wallet icon (replaces the purse emoji) */
.wic{display:inline-block;width:1.15em;height:1.15em;vertical-align:-0.2em;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b1f3a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7.5A2.5 2.5 0 0 1 6.5 5H17a1 1 0 0 1 1 1v2'/%3E%3Crect x='3' y='8' width='18' height='12' rx='2.5'/%3E%3Cpath d='M21 12h-4.5a2 2 0 0 0 0 4H21' fill='%23fff'/%3E%3Ccircle cx='16.6' cy='14' r='1' fill='%23FF4C00' stroke='none'/%3E%3C/svg%3E") center/contain no-repeat}
nav a span{height:30px;line-height:30px}nav a span .wic{vertical-align:middle;width:26px;height:26px;margin-top:-3px}

.pic,.sic{display:inline-block;width:1.15em;height:1.15em;vertical-align:-0.2em;background:center/contain no-repeat}.pic{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b1f3a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l7 3v5c0 4.5-3 8.2-7 10-4-1.8-7-5.5-7-10V6z'/%3E%3Crect x='9' y='10.5' width='6' height='5' rx='1'/%3E%3Cpath d='M10.3 10.5V9a1.7 1.7 0 0 1 3.4 0v1.5'/%3E%3Ccircle cx='12' cy='13' r='.6' fill='%23FF4C00' stroke='none'/%3E%3C/svg%3E")}.sic{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b1f3a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M19.4 15a1.7 1.7 0 0 0 .3 1.8l.1.1a2 2 0 1 1-2.8 2.8l-.1-.1a1.7 1.7 0 0 0-1.8-.3 1.7 1.7 0 0 0-1 1.5V21a2 2 0 1 1-4 0v-.1a1.7 1.7 0 0 0-1.1-1.5 1.7 1.7 0 0 0-1.8.3l-.1.1a2 2 0 1 1-2.8-2.8l.1-.1a1.7 1.7 0 0 0 .3-1.8 1.7 1.7 0 0 0-1.5-1H3a2 2 0 1 1 0-4h.1a1.7 1.7 0 0 0 1.5-1.1 1.7 1.7 0 0 0-.3-1.8l-.1-.1a2 2 0 1 1 2.8-2.8l.1.1a1.7 1.7 0 0 0 1.8.3H9a1.7 1.7 0 0 0 1-1.5V3a2 2 0 1 1 4 0v.1a1.7 1.7 0 0 0 1 1.5 1.7 1.7 0 0 0 1.8-.3l.1-.1a2 2 0 1 1 2.8 2.8l-.1.1a1.7 1.7 0 0 0-.3 1.8V9a1.7 1.7 0 0 0 1.5 1H21a2 2 0 1 1 0 4h-.1a1.7 1.7 0 0 0-1.5 1z'/%3E%3C/svg%3E")}.hbub{position:relative;display:inline-block}.hbub .nbub{top:-8px;left:auto;right:-14px;margin-left:0}

.oic{display:inline-block;width:1.15em;height:1.15em;vertical-align:-0.2em;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b1f3a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='3' width='14' height='18' rx='2'/%3E%3Cpath d='M9 3.5h6v2H9z'/%3E%3Cpath d='M8.5 10.5l1.5 1.5 3-3'/%3E%3Cpath d='M8.5 16h7'/%3E%3Ccircle cx='16' cy='11' r='.9' fill='%23FF4C00' stroke='none'/%3E%3C/svg%3E") center/contain no-repeat}nav a span .oic{vertical-align:middle;width:26px;height:26px;margin-top:-3px}
.srow{margin:10px 0}.slab{font-size:12px;font-weight:700;color:var(--m);text-transform:uppercase;letter-spacing:.04em;margin:0 2px 5px}.stat>span{flex:1}.itab td,.otab td{vertical-align:top}

/* v41: banner crisp + below the status bar / notch (standalone PWA safe area) */
body{min-height:100vh;min-height:100dvh}
.banner{position:relative;z-index:5;opacity:1;filter:none;-webkit-backdrop-filter:none;backdrop-filter:none;background:var(--or);color:var(--or-ink);text-shadow:none;-webkit-font-smoothing:antialiased;line-height:16px;padding:calc(5px + env(safe-area-inset-top)) calc(8px + env(safe-area-inset-right)) 5px calc(8px + env(safe-area-inset-left))}
.banner[hidden]{display:none}
body.nobanner header{padding-top:calc(14px + env(safe-area-inset-top))}
.stat4{gap:6px}.stat4 a{font-size:12px;padding:9px 2px}.stat4 a b{font-size:20px}
.ico-copy,.ico-mail{display:inline-block;width:18px;height:18px;vertical-align:-3px}.ico-copy{background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b1f3a' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='9' width='11' height='11' rx='2'/%3E%3Cpath d='M5 15V6a2 2 0 0 1 2-2h8'/%3E%3C/svg%3E") center/contain no-repeat}.ico-mail{background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b1f3a' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3.5 6.5 12 13l8.5-6.5'/%3E%3C/svg%3E") center/contain no-repeat}
.ico-tk,.ico-doc{display:inline-block;width:20px;height:20px;vertical-align:-4px;margin-right:2px}.ico-tk{background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b1f3a' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8a2 2 0 0 0 0 4v4a1 1 0 0 0 1 1h16a1 1 0 0 0 1-1v-4a2 2 0 0 0 0-4V5a1 1 0 0 0-1-1H4a1 1 0 0 0-1 1z' transform='translate%280 1.5%29'/%3E%3Cpath d='M9 9.5l2 2 4-4' stroke='%23FF4C00'/%3E%3C/svg%3E") center/contain no-repeat}.ico-doc{background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b1f3a' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 3v5h5'/%3E%3Cpath d='M9 13h6M9 17h4'/%3E%3C/svg%3E") center/contain no-repeat}#inslink .btn{margin-bottom:8px}
/* v46: header wordmark matches the logo lettering ("ONSITE WALLET" in the logo is Oswald SemiBold, caps). Self-hosted, OFL. */
@font-face{font-family:'Oswald';font-style:normal;font-weight:600;font-display:swap;src:url(fonts/oswald-600-latin.woff2) format('woff2')}
header h1{font-family:'Oswald','Arial Narrow',Arial,sans-serif;font-weight:600;text-transform:uppercase;letter-spacing:.12em;font-size:18px;line-height:1.1;color:#fff}
.trk-hide tr.allok{display:none}
.seg{display:flex;background:#e8e8e8;border-radius:12px;padding:4px;gap:4px;margin:8px 0 12px;position:sticky;top:0;z-index:5}
.seg a{flex:1;display:flex;align-items:center;justify-content:center;gap:6px;padding:10px 6px;border-radius:9px;font-size:13px;font-weight:600;color:#333333;text-decoration:none;text-align:center;line-height:1.2}
.seg a.on{background:#111111;color:#fff;box-shadow:0 1px 3px rgba(0,0,0,.2)}
.seg a.on i{filter:invert(1)}
.stat5{gap:5px}.stat5 a{font-size:11px;padding:8px 2px;line-height:1.2}.stat5 a b{font-size:20px}.stat5 b.amb{color:#b45309}.stat5 b.grn{color:#15803d}
.seg a#rolk{flex:.7}
#rog,#rost,#rosort{font-size:14px;padding:10px 6px;margin:0;min-width:0}
.err:empty{display:none}
.legal{font-size:15px;line-height:1.55;overflow-wrap:anywhere}.legal h2{font-size:18px;margin:18px 0 6px}.legal h3,.legal h4{font-size:16px;margin:14px 0 4px}.legal ul{padding-left:20px;margin:6px 0}.legal li{margin:3px 0}.lgtbl{overflow-x:auto}.lgtbl table{border-collapse:collapse;font-size:13px;min-width:100%}.lgtbl th,.lgtbl td{border:1px solid #d4d4d4;padding:6px;vertical-align:top;text-align:left}
/* v60 tap targets (~44px) */
#app input[type=checkbox]{width:24px!important;height:24px!important;min-width:24px;accent-color:#c2410c;cursor:pointer}
#app label:has(> input[type=checkbox]){min-height:44px;align-items:center!important;padding:4px 0;cursor:pointer}
#forgot,#app a.muted,#app .consent a,#consentcard a,#delcard a,#app td a,#app .lgtbl a,#app p a:not(.btn),#app div.muted a,#app li a{display:inline-block;padding:10px 2px;margin:-10px 0}
#forgot{margin:0;padding:12px 8px;min-height:44px}
#app td a{padding:12px 0;margin:-8px 0}
#app button.sm,#app a.btn.sm{min-height:40px}
#app .sw a{-webkit-user-drag:none;user-select:none}

/* v62 public landing page (signed-out visitors at the bare URL) */
html:not(.app-mode) #hdr,html:not(.app-mode) #app,html:not(.app-mode) #nav,html:not(.app-mode) .banner{display:none!important}
html.app-mode #landing{display:none}
#landing{font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;color:var(--t);background:var(--bg);min-height:100vh}
.lp-hero{background:#000;color:#fff;padding:36px 20px 32px;text-align:center}
.lp-logo{max-width:220px;height:auto;margin-bottom:12px}
.lp-hero h1{font-family:Oswald,system-ui,sans-serif;font-weight:600;font-size:26px;line-height:1.2;margin:8px auto 12px;max-width:640px}
.lp-hero p{max-width:600px;margin:0 auto 20px;color:#dadada;line-height:1.5}
.lp-btn{display:inline-block;background:var(--or);color:#000;font-weight:700;text-decoration:none;padding:14px 24px;border-radius:10px;min-height:48px;font-size:17px}
.lp-body{max-width:760px;margin:0 auto;padding:16px 18px 32px}
.lp-body section{background:#fff;border-radius:12px;padding:16px 18px;margin:14px 0;box-shadow:0 1px 3px rgba(0,0,0,.08)}
.lp-body h2{font-family:Oswald,system-ui,sans-serif;font-weight:600;margin:0 0 8px;color:var(--navy)}
.lp-body li{margin:6px 0;line-height:1.45}.lp-body p{line-height:1.5}
.lp-links{display:flex;flex-wrap:wrap;gap:6px 18px;justify-content:center;margin:20px 0 8px}
.lp-links a,.lp-body section a{color:#c2410c;display:inline-block;padding:12px 2px}
.lp-foot{text-align:center;color:var(--m);font-size:13px}

/* v64 desktop website layout (>=900px only; phone layout untouched) */
#dfoot{display:none}
@media (min-width:900px){
body{padding-bottom:0;display:flex;flex-direction:column;min-height:100vh}
main{width:100%;max-width:1120px;padding:32px 40px 56px;flex:1}
header{z-index:6;padding:0 40px;height:72px}
header svg.hmount{max-width:132px;max-height:52px;height:auto;width:auto;right:max(24px,calc((100vw - 1120px)/2));top:50%;bottom:auto;transform:translateY(-50%)}
h2{font-family:'Oswald','Arial Narrow',Arial,sans-serif;font-weight:600;font-size:28px;letter-spacing:.02em;color:var(--navy);margin:4px 0 16px}
h3{font-size:17px;margin:24px 0 10px}
.card{border-radius:16px;padding:20px 24px;margin-bottom:16px;box-shadow:0 1px 2px rgba(0,0,0,.05),0 4px 16px rgba(0,0,0,.06)}
.swipe{border-radius:16px}
.stat{gap:14px}.stat a,.stat div{padding:16px 8px;border-radius:14px;font-size:14px;box-shadow:0 1px 2px rgba(0,0,0,.05),0 4px 14px rgba(0,0,0,.06);transition:transform .12s,box-shadow .12s}
.stat a:hover{transform:translateY(-1px);box-shadow:0 6px 18px rgba(0,0,0,.1)}.stat a b{font-size:28px}.stat5 a,.stat4 a{font-size:13px}
table{font-size:14px}td,th{padding:11px 10px}th{font-size:12px;text-transform:uppercase;letter-spacing:.04em}
.btn{max-width:420px}.btn.sm{max-width:none}
#app label,#app input:not([type=checkbox]):not([type=radio]),#app select,#app textarea{max-width:560px}#app .search{max-width:none}
.seg{max-width:640px}
.toast{left:auto;right:32px;bottom:32px;max-width:420px}#reqnote{left:auto;right:24px;bottom:24px;max-width:480px}
.slide{min-height:340px}
body:has(#nav:empty) main{max-width:600px}
/* website footer */
#dfoot{display:block;background:var(--navy);color:#d0d0d0;font-size:14px;padding:28px 40px}
#dfoot .fin{max-width:1120px;margin:0 auto;display:flex;flex-wrap:wrap;gap:12px 28px;align-items:center}
#dfoot b{color:#fff;font-family:'Oswald',Arial,sans-serif;letter-spacing:.1em;text-transform:uppercase;margin-right:auto}
#dfoot a{color:#d0d0d0;text-decoration:none}#dfoot a:hover{color:#fff}
/* worker: top navigation bar inside the header */
body:has(#nav a[href="#/home"]) #nav{position:absolute;top:0;left:auto;right:170px;bottom:auto;height:72px;background:transparent;border:0;padding:0;gap:4px;z-index:7;align-items:center}
body:not(.nobanner):has(#nav a[href="#/home"]) #nav{top:26px}
body:has(#nav a[href="#/home"]) #nav a{flex:none;display:flex;align-items:center;gap:8px;color:#e0e0e0;font-size:14px;padding:10px 14px;border-radius:10px}
body:has(#nav a[href="#/home"]) #nav a span{display:inline-flex;height:auto;line-height:1;font-size:16px}
body:has(#nav a[href="#/home"]) #nav a span i{filter:brightness(0) invert(1);width:18px!important;height:18px!important;margin:0!important}
body:has(#nav a[href="#/home"]) #nav a:hover{background:rgba(255,255,255,.1);color:#fff}
body:has(#nav a[href="#/home"]) #nav a.on{color:#fff;background:rgba(255,76,0,.22);box-shadow:inset 0 -3px 0 var(--or)}
/* worker Home: full-width hero + tile grid */
body[data-pg=home]:has(#nav a[href="#/home"]) main{max-width:none;padding:0 0 48px}
body[data-pg=home]:has(#nav a[href="#/home"]) #app{display:grid;grid-template-columns:minmax(40px,1fr) repeat(4,minmax(0,260px)) minmax(40px,1fr);gap:18px;align-content:start}
body[data-pg=home]:has(#nav a[href="#/home"]) #app>*{grid-column:2/6;margin:0}
body[data-pg=home]:has(#nav a[href="#/home"]) #app>div[style]{display:none}
body[data-pg=home]:has(#nav a[href="#/home"]) #app>.card{margin-top:24px}
body[data-pg=home]:has(#nav a[href="#/home"]) #app>.btn{grid-column:auto;width:auto;justify-self:stretch;max-width:none;min-height:140px;line-height:1.3;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:18px;border-radius:16px;border:1px solid #e2e2e2;background:#fff;color:var(--navy);font-size:16px;box-shadow:0 1px 2px rgba(0,0,0,.05),0 4px 16px rgba(0,0,0,.06);transition:transform .12s,box-shadow .12s}
body[data-pg=home]:has(#nav a[href="#/home"]) #app>a.btn:nth-of-type(2){grid-column:2}body[data-pg=home]:has(#nav a[href="#/home"]) #app>a.btn:nth-of-type(3){grid-column:3}body[data-pg=home]:has(#nav a[href="#/home"]) #app>a.btn:nth-of-type(4){grid-column:4}body[data-pg=home]:has(#nav a[href="#/home"]) #app>a.btn:nth-of-type(5){grid-column:5}

body[data-pg=home]:has(#nav a[href="#/home"]) #app>.btn:hover{transform:translateY(-2px);box-shadow:0 8px 22px rgba(0,0,0,.12)}
body[data-pg=home]:has(#nav a[href="#/home"]) #app>.btn i{width:34px;height:34px}
body[data-pg=home]:has(#nav a[href="#/home"]) #app>.btn.or{order:-1;grid-column:1/-1;width:100%;max-width:none;min-height:240px;margin:0 0 8px;border-radius:0;border:0;font-family:'Oswald',Arial,sans-serif;font-size:34px;letter-spacing:.03em;color:#fff;background:linear-gradient(120deg,rgba(0,0,0,.97),rgba(34,34,34,.92)),var(--navy);box-shadow:none;position:relative}
body[data-pg=home]:has(#nav a[href="#/home"]) #app>.btn.or::before{content:"Your site orientations, safety tickets and insurance in one place";font-size:16px;font-family:-apple-system,Segoe UI,Roboto,Arial,sans-serif;letter-spacing:0;color:#d0d0d0;font-weight:500;order:2}
body[data-pg=home]:has(#nav a[href="#/home"]) #app>.btn.or::after{content:"Scan QR code";order:3;font:700 16px/1 -apple-system,Segoe UI,Roboto,Arial,sans-serif;background:var(--or);color:var(--or-ink);padding:14px 22px;border-radius:10px;margin-top:6px}
body[data-pg=home]:has(#nav a[href="#/home"]) #app>.btn.or:hover{transform:none;box-shadow:none}
/* company: sidebar dashboard */
body:has(#nav a[href="#/dash"]) #nav{top:0;bottom:0;right:auto;width:232px;flex-direction:column;gap:4px;border-top:0;border-right:1px solid #e0e0e0;padding:90px 12px 20px;z-index:4;box-shadow:2px 0 12px rgba(0,0,0,.04)}
body:not(.nobanner):has(#nav a[href="#/dash"]) #nav{padding-top:112px}
body:has(#nav a[href="#/dash"]) #nav a{flex:none;display:flex;align-items:center;gap:12px;text-align:left;padding:10px 14px;font-size:14px;line-height:1.25;border-radius:10px;color:var(--t)}
body:has(#nav a[href="#/dash"]) #nav a span{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;font-size:20px;flex:none}
body:has(#nav a[href="#/dash"]) #nav a:hover{background:#f2f2f2}body:has(#nav a[href="#/dash"]) #nav a.on{background:#fff1e6;color:#c2410c;box-shadow:inset 3px 0 0 var(--or)}
body:has(#nav a[href="#/dash"]) main,body:has(#nav a[href="#/dash"]) #dfoot{margin-left:232px;width:auto}
body:has(#nav a[href="#/dash"]) main{margin-right:0;max-width:none;padding-left:max(40px,calc((100vw - 232px - 1040px)/2));padding-right:max(40px,calc((100vw - 232px - 1040px)/2))}
.nbub{top:-6px;left:auto;right:-8px;margin:0}
}
@media (min-width:900px) and (max-width:1180px){body:has(#nav a[href="#/home"]) #nav a span{display:none}body:has(#nav a[href="#/home"]) #nav{right:260px}}
/* landing page on desktop */
@media (min-width:900px){
.lp-hero{padding:64px 24px 60px}.lp-hero h1{font-size:38px;max-width:780px}.lp-hero p{font-size:17px;max-width:680px}
.lp-body{max-width:1120px;display:grid;grid-template-columns:1fr 1fr;gap:22px;padding:36px 40px 44px;align-items:start}
.lp-body>*{grid-column:1/-1}.lp-body>section:nth-of-type(1),.lp-body>section:nth-of-type(2){grid-column:auto}
.lp-body section{margin:0;padding:24px 28px;border-radius:16px;box-shadow:0 1px 2px rgba(0,0,0,.05),0 4px 16px rgba(0,0,0,.06)}
.lp-body section:nth-of-type(-n+2){border-top:4px solid var(--or)}.lp-body h2{font-size:24px}
}
html:not(.app-mode) #dfoot{display:none!important}

input:not([type=checkbox]):not([type=radio]):not([type=file]),select{min-height:50px;border-radius:12px}
#app .card:has(input[type=password]) .btn:not(.sm),#app .card:has(input[type=password]) input:not([type=checkbox]):not([type=radio]){max-width:none;width:100%}
@media (min-width:900px){body:has(#nav a[href="#/dash"]) header{position:sticky;top:0}
body:has(#nav a[href="#/dash"]) #nav{top:72px;padding:18px 12px 20px;background:#141414;border-right:1px solid #2e2e2e;box-shadow:none;overflow-y:auto}
body:has(#nav a[href="#/dash"]) #nav a{color:#e6e6e6}body:has(#nav a[href="#/dash"]) #nav a:hover{background:rgba(255,255,255,.08);color:#fff}
body:has(#nav a[href="#/dash"]) #nav a.on{color:#fff;background:rgba(255,76,0,.2);box-shadow:inset 3px 0 0 var(--or)}
body:has(#nav a[href="#/dash"]) #nav a span i{filter:brightness(0) invert(1)}}
@media (min-width:900px){html body:has(#nav a[href="#/dash"]) #nav{padding-top:18px!important}}
#app td a[href^="javascript"]{color:#c2410c}
/* v69: header logo badge, black logo on white */
header .hlogo{display:inline-flex;align-items:center;justify-content:center;flex:none;width:40px;height:40px;background:#fff;border-radius:9px;padding:5px;box-sizing:border-box}
header .hlogo img{width:100%;height:100%;object-fit:contain;border-radius:0}
/* v69 clickable worker rows */
tr.rowlink{cursor:pointer}tr.rowlink:hover td{background:rgba(255,76,0,.06)}tr.rowlink:focus{outline:none}tr.rowlink:focus-visible td{background:rgba(255,76,0,.1)}tr.rowlink:focus-visible td:first-child{box-shadow:inset 3px 0 0 #ff7a00}
/* v70 help */
header .dhelp{display:none}
@media (min-width:900px){header .dhelp{display:inline-block;margin-left:auto;z-index:1;color:#fff;text-decoration:none;font-size:14px;padding:8px 12px;border-radius:20px}header .dhelp:hover{background:rgba(255,255,255,.14)}header .dhelp~.mode{margin-left:8px}}
details.hlp{padding:0}details.hlp summary{cursor:pointer;padding:14px 16px;font-weight:600;list-style:none;display:flex;justify-content:space-between;gap:10px}details.hlp summary::-webkit-details-marker{display:none}details.hlp summary::after{content:'+';color:#ff7a00;font-weight:700}details.hlp[open] summary::after{content:'–'}details.hlp summary:focus-visible{outline:2px solid #ff7a00;outline-offset:-2px;border-radius:inherit}details.hlp ol,details.hlp p{margin:0;padding:0 16px 14px 34px;line-height:1.5}details.hlp p{padding-left:16px}details.hlp li{margin-bottom:4px}

/* v71 insurance check */
.ib{display:inline-block;font-size:12px;font-weight:700;padding:3px 8px;border-radius:6px;white-space:nowrap}.ib.ip{background:#e3f5ea;color:#13693b}.ib.if{background:#fde6e6;color:#a82222}.ib.iu{background:#fff2d6;color:#7a5800}
.ick{list-style:none;padding:0;margin:8px 0}.ick li{display:flex;gap:10px;padding:8px 0;border-top:1px solid #eee}.ick li:first-child{border-top:0}
.ick-i{flex:0 0 26px;height:26px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:800;color:#fff}.ick-pass .ick-i{background:var(--g)}.ick-fail .ick-i{background:var(--r)}.ick-unsure .ick-i{background:var(--a)}
.ick-t{display:flex;gap:8px;align-items:center;font-size:14px;margin-top:6px;min-height:32px}.ick-t input{width:auto;margin:0}
.ick-d{font-size:12px;font-style:italic}.ins-ok{color:#13693b;font-weight:700}.ins-bad{color:#a82222;font-weight:700}
.ins-sh{display:flex;gap:8px;align-items:center;border-top:1px solid #eee;margin-top:8px;padding-top:8px}.ins-row{display:block;color:inherit;text-decoration:none}.ins-rr{border-top:1px solid #eee;padding:10px 0}.ins-rr:first-child{border-top:0}
.ins-c textarea,#insnote,#irb{width:100%;box-sizing:border-box}
/* v73 orientation records */
.ossig{display:block;max-width:240px;max-height:80px;margin-top:8px;border-bottom:1px solid #999;background:#fff}.ossup{font-size:13px;margin-top:6px;color:#13693b}.osrev{opacity:.75}
/* v76 plan locks */
.plock{font-size:14px;vertical-align:middle}.plan-locked{opacity:.92}#planban{border-left-color:var(--a)}
/* v77 a11y + audit fixes (kept) */
/* v78 theme: Edmonton Oilers bright orange #FF4C00 (PMS 1655 C; public team-color refs) + dark text on orange */
:root{--or:#FF4C00;--or-ink:#111111;--or-bright:#FF4C00}
.btn.or{background:var(--or);color:var(--or-ink)}.btn.or:hover{filter:brightness(1.05)}
.banner{background:var(--or);color:var(--or-ink)}
.lp-btn{background:var(--or);color:var(--or-ink)}
.tag{color:#9a3412;background:rgba(255,76,0,.14)}
.opt.sel{border-color:var(--or);background:#fff4ec}
nav a.on{color:var(--or)}
.b-a{background:#a16207;color:#fff}
.note{border-left-color:var(--or)}
body:has(#nav a[href="#/home"]) #nav a.on{background:rgba(255,76,0,.22)}
body:has(#nav a[href="#/dash"]) #nav a.on{background:rgba(255,76,0,.2)}
body[data-pg=home]:has(#nav a[href="#/home"]) #app>.btn.or::after{background:var(--or);color:var(--or-ink)}
/* v88: top Help removed; leave the right corner for the logo-mountain decoration */
@media (min-width:900px){
 body:has(#nav a[href="#/home"]) #nav{right:200px!important;max-width:calc(100vw - 280px)}
 body:has(#nav a[href="#/home"]) header{padding-right:160px}
}
/* Focus ring */
:focus-visible{outline:3px solid var(--or);outline-offset:2px}
.btn:focus-visible,.opt:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,button:focus-visible{outline:3px solid var(--or);outline-offset:2px}
button,a.btn,.opt{outline:none}
/* Bigger tap targets */
.btn.sm{min-height:44px;line-height:44px;padding:0 14px}
.seg a,.helpbtn,#cfhelp,header .dhelp{min-height:44px;display:inline-flex;align-items:center}
#dfoot a{min-height:44px;display:inline-flex;align-items:center;padding:8px 4px}
/* Desktop swipe red strip hidden unless dragging */
@media (min-width:900px){
 .swipe{background:transparent}
 .swipe:active,.swipe.swiping{background:var(--r)}
}
.offban{background:#111;color:#fff;text-align:center;padding:8px 12px;font-size:13px;font-weight:600;position:sticky;top:0;z-index:40}
.ierr{border-left-color:var(--r);background:#fdecea}
input:disabled,select:disabled,textarea:disabled{background:#f3f3f3;color:#555}

/* v80 exact booklet page images */
.oimg-slide{padding:12px!important;min-height:0}
.oimg-h{font-size:15px;margin:6px 0 8px;color:#fff}
.oimg-wrap{background:#111;border-radius:10px;overflow:auto;max-height:min(62vh,560px);-webkit-overflow-scrolling:touch;touch-action:pan-x pan-y pinch-zoom}
.oimg{display:block;width:100%;height:auto;cursor:zoom-in}
.oimg-viewer .oimg-zoom{overflow:auto;max-height:80vh;text-align:center}
.oimg-viewer .oimg-zoom img{max-width:none;width:100%;min-width:100%}


/* v86 welcome / sign-in page only: black background, white type, centred column */
html:has(body[data-pg=welcome]),body[data-pg=welcome]{background:#111111;color:#fff}
body[data-pg=welcome] main{background:#111111}
body[data-pg=welcome] .wpage{max-width:420px;margin:0 auto;text-align:center}
body[data-pg=welcome] .welcome{padding:10px 0 4px}
body[data-pg=welcome] .welcome .tagline{color:#fff}
body[data-pg=welcome] .welcome>.muted,body[data-pg=welcome] .wpage>.muted{color:#d4d4d4}
body[data-pg=welcome] .wpage>.btn{margin-left:auto;margin-right:auto;max-width:100%}
body[data-pg=welcome] #clogin{background:#fff;color:#111111;border:2px solid #111111}
body[data-pg=welcome] #wcreate{background:#fff;color:#111111;border:2px solid #fff}
body[data-pg=welcome] .cfoot,body[data-pg=welcome] .cfoot a{color:#d4d4d4}
body[data-pg=welcome] .cfoot a:hover{color:#fff}
body[data-pg=welcome] header .dhelp{color:#fff}
body[data-pg=welcome] #nav{display:none}


/* v86 logged-in chrome: white top + nav bars, black page, dark cards.
   Scoped to screens with a nav (worker, company, viewer). Welcome / signed-out pages are unchanged. */
html:has(body.inapp),
body.inapp{background:#111111;color:#fff;--t:#fff;--m:#d4d4d4;--bg:#111111}
body.inapp main,
body.inapp #app{background:#111111;color:#fff}
body.inapp header{background:#fff;color:#111111}
body.inapp header svg.hmount path{fill:#111111}
body.inapp header small{color:#333;opacity:1}
body.inapp header .hlogo{background:#111111}
body.inapp header .dhelp{color:#111111}
body.inapp header .dhelp:hover{background:rgba(0,0,0,.08)}
body.inapp header .mode{background:rgba(0,0,0,.08);color:#111111}
body.inapp #nav{background:#fff;border-top-color:#e0e0e0;color:#111111}
body.inapp #nav a{color:#111111}
body.inapp #nav a.on{color:#111111;box-shadow:inset 0 -3px 0 var(--or)}
body.inapp #nav a span i{filter:none}
body.inapp #nav:empty{display:none}
body.inapp h2,
body.inapp h3{color:#fff}
body.inapp .card{background:#fff;color:#111111;border:1px solid #e2e2e2;box-shadow:0 1px 3px rgba(0,0,0,.08)}
body.inapp .btn.ghost,body.inapp .btn:not(.or){background:#fff;color:#111111;border:2px solid #111111}
body.inapp .btn.or{background:var(--or);color:var(--or-ink)}
body.inapp input:not([type=checkbox]):not([type=radio]):not([type=file]),
body.inapp select,
body.inapp textarea{background:#fff;color:#111111;border-color:#cccccc}
body.inapp input::placeholder,
body.inapp textarea::placeholder{color:#6b6b6b}
body.inapp input:disabled,
body.inapp select:disabled,
body.inapp textarea:disabled{background:#f0f0f0;color:#5f5f5f}
body.inapp .pill{background:#efefef;color:#111111}
body.inapp .seg{background:#f0f0f0}
body.inapp .seg a{color:#111111}
body.inapp .seg a.on{background:#fff;color:#111111;box-shadow:0 0 0 2px var(--or)}
body.inapp .stat a,
body.inapp .stat div{background:#fff;color:#111111;border:1px solid #e2e2e2;box-shadow:0 1px 3px rgba(0,0,0,.08)}
body.inapp .stat a.on{background:#fff;color:#111111;box-shadow:0 0 0 3px var(--or)}
body.inapp .stat a.on b{color:#111111!important}
body.inapp .opt{background:#fff;color:#111111;border-color:#e2e2e2}
body.inapp .opt.sel{background:#fff8f3;border-color:var(--or);color:#111111}
body.inapp .note{background:#fff4ec;color:#111111}
body.inapp .ierr{background:#fdecec;color:#111111}
body.inapp td,
body.inapp th{border-bottom-color:#e2e2e2;color:#111111}
body.inapp th{color:#5f5f5f}
body.inapp tr.rowlink:hover td{background:rgba(255,76,0,.14)}
body.inapp .wlink,
body.inapp #app td a,
body.inapp #app p a:not(.btn),
body.inapp #app div.muted a,
body.inapp #app li a,
body.inapp #app td a[href^="javascript"]{color:#9a2e00}
body.inapp .emplist{background:#fff;border-color:#e2e2e2}
body.inapp .empopt{background:#fff;color:#111111;border-bottom-color:#e2e2e2}
body.inapp .empopt:hover,
body.inapp .empopt:active{background:#f4f4f4}
body.inapp .empnew{color:#9a2e00}
body.inapp details.hlp summary{color:#111111}
body.inapp .ick li{border-top-color:#e2e2e2}
body.inapp .ossup{color:#0b7a3f}
body.inapp .cfoot,
body.inapp .cfoot a{color:#d4d4d4}
body.inapp .cfoot a:hover{color:#fff}
body.inapp .search input{background:#fff;color:#111111;border:1px solid #cccccc}
body.inapp .legal,
body.inapp .legal *{color:#fff}
body.inapp label{color:#fff}
@media (min-width:900px){
 body:has(#nav a[href="#/home"]) #nav{background:transparent;border:0}
 body:has(#nav a[href="#/home"]) #nav a{color:#111111}
 body:has(#nav a[href="#/home"]) #nav a:hover{background:rgba(0,0,0,.06);color:#111111}
 body:has(#nav a[href="#/home"]) #nav a.on{color:#111111;background:rgba(255,76,0,.12);box-shadow:inset 0 -3px 0 var(--or)}
 body:has(#nav a[href="#/home"]) #nav a span i{filter:none}
 body:has(#nav a[href="#/dash"]) #nav{background:#fff;border-right:1px solid #e0e0e0;color:#111111}
 body:has(#nav a[href="#/dash"]) #nav a{color:#111111}
 body:has(#nav a[href="#/dash"]) #nav a:hover{background:#f2f2f2;color:#111111}
 body:has(#nav a[href="#/dash"]) #nav a.on{color:#111111;background:rgba(255,76,0,.12);box-shadow:inset 3px 0 0 var(--or)}
 body:has(#nav a[href="#/dash"]) #nav a span i{filter:none}
 body[data-pg=home]:has(#nav a[href="#/home"]) #app>.btn:not(.or){background:#fff;color:#111111;border-color:#e2e2e2;box-shadow:0 1px 3px rgba(0,0,0,.08)}
}

body.inapp header h1{color:#111111}
body.inapp .btn.ghost i,
body.inapp #app>.btn:not(.or) i{filter:none}
body.inapp .btn:not(.or):not(.ghost){border:2px solid #111111}

/* v86 centred notice buttons: same centre line as icon/heading, auto width (not stretched) */
.ccard{text-align:center}
.ccard>.btn,.btn.mid{display:inline-flex;align-items:center;justify-content:center;width:auto;min-width:220px;max-width:100%;margin:12px auto 4px;padding:0 28px;vertical-align:middle}

/* v86 wallet sub-tabs: same rounded card style as the Valid/Expiring/Expired stat cards */
.wseg{display:flex;gap:8px;margin:0 0 12px;padding:0;background:transparent;border-radius:0;position:static;max-width:none;align-items:stretch}
.wseg a{flex:1;min-width:0;display:flex;align-items:center;justify-content:center;text-align:center;text-decoration:none;font-weight:700;font-size:12px;line-height:1.25;padding:10px 4px;min-height:52px;border-radius:12px;background:#fff;color:var(--t);border:1px solid #e2e2e2;box-shadow:0 1px 3px rgba(0,0,0,.08)}
.wseg a.on{background:#fff;color:var(--t);border-color:var(--or);box-shadow:0 0 0 2px var(--or)}
body.inapp .wseg,body.inapp .wseg.seg{background:transparent}
body.inapp .wseg a{background:#fff;color:#111111;border:1px solid #e2e2e2;box-shadow:0 1px 3px rgba(0,0,0,.08)}
body.inapp .wseg a.on{background:#fff;color:#111111;border-color:var(--or);box-shadow:0 0 0 2px var(--or)}
@media (min-width:900px){.wseg a{border-radius:14px;padding:16px 8px;font-size:14px}}

/* v87: self-hosted SIL OFL script fonts for typed signatures */
@font-face{font-family:'BWA Dancing';font-style:normal;font-weight:600;font-display:swap;src:url(fonts/sig/dancing-script-600.woff2) format('woff2')}
@font-face{font-family:'BWA Vibes';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/sig/great-vibes.woff2) format('woff2')}
@font-face{font-family:'BWA Pacifico';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/sig/pacifico.woff2) format('woff2')}
@font-face{font-family:'BWA Caveat';font-style:normal;font-weight:600;font-display:swap;src:url(fonts/sig/caveat-600.woff2) format('woff2')}
@font-face{font-family:'BWA Allura';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/sig/allura.woff2) format('woff2')}
.osfonts{border:0;margin:12px 0 0;padding:0}
.osfonts legend{font-weight:600;font-size:14px;margin:0 0 8px;padding:0;color:inherit}
#osfontlist{display:flex;flex-direction:column;gap:8px}
.osfont{display:block;width:100%;text-align:left;background:#fff;color:#111;border:1px solid #ccc;border-radius:12px;padding:10px 12px;cursor:pointer;font:inherit}
.osfont:focus-visible{outline:3px solid var(--or);outline-offset:2px}
.osfont.on{border-color:var(--or);box-shadow:0 0 0 2px var(--or)}
.osfont-n{display:block;font-size:12px;font-weight:600;color:#444;margin-bottom:2px}
.osfont-p{display:block;font-size:28px;line-height:1.35;color:#111}
body.inapp .osfont{background:#fff;color:#111111;border-color:#e2e2e2}
body.inapp .osfont-n{color:#5f5f5f}
body.inapp .osfont-p{color:#111111}
.ossig-typed{font-size:32px;line-height:1.3;color:#111;background:#fff;padding:12px 16px;border-bottom:1px solid #999;max-width:320px;margin-top:8px;overflow:hidden}
#onext:disabled{opacity:.45;cursor:not-allowed}
/* Permissions manage/edit actions: same width, centred under each section */
a.btn.pact{display:block;width:100%;max-width:420px;margin-left:auto;margin-right:auto;text-align:center}

/* v87: Bonterra Demo exact typed text beside/below the page photo */
.obook-pair{display:block}
.obook{color:#f2f2f2;font-size:15px;line-height:1.5;margin-top:12px;text-align:left}
.obook-h{font-size:16px;font-weight:700;margin:16px 0 8px;color:#fff}
.obook-p{margin:0 0 10px}
.obook-p.ital{font-style:italic}
.obook-p.und{text-decoration:underline}
.obook-cap{display:block;font-size:12px;color:#d0d0d0;font-style:normal;text-decoration:none;font-weight:600;margin-top:2px}
.obook-ul{margin:0 0 12px;padding-left:1.25em}
.obook-ul li{margin:0 0 4px}
.obook-f{margin:12px 0}
.obook-line{letter-spacing:.02em;white-space:pre-wrap}
.obook-note{font-size:13px;margin:12px 0;font-style:italic}
.obook-foot{font-size:12px;color:#c8c8c8;margin-top:16px;border-top:1px solid #333;padding-top:8px}
.oimg-col{margin-bottom:8px}
.oimg-slide.ohastext .oimg-wrap{max-height:min(38vh,280px)}
.oimg-slide.ohastext .oimg-col .muted{margin-top:4px}
@media (min-width:900px){
  .obook-pair{display:grid;grid-template-columns:minmax(280px,1fr) minmax(280px,1fr);gap:20px;align-items:start}
  .oimg-slide.ohastext .oimg-wrap{max-height:min(70vh,720px)}
  .obook{margin-top:0}
}
.obook-ol{margin:0 0 12px;padding-left:0;list-style:none}
.obook-ol li{margin:0 0 4px;padding-left:1.6em;text-indent:-1.6em}
.slide.otext-only{padding:22px 20px 28px}
.slide.otext-only .oimg-h{margin:10px 0 14px;font-size:18px}
.slide.otext-only .obook{margin-top:0;width:100%;font-size:17px;line-height:1.55}
.slide.otext-only .obook-h{font-size:18px}
.oplay-bar{display:flex;align-items:center;gap:10px;margin:0 0 8px}
.oplay-bar .oexit{flex:0 0 auto;margin:0;display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:40px;line-height:1;padding:0 12px}
.oplay-bar .oexit .ic{width:18px;height:18px}
.odlg-back{position:fixed;inset:0;background:rgba(10,10,10,.55);z-index:80;display:flex;align-items:center;justify-content:center;padding:20px}
.odlg{max-width:420px;width:100%;margin:0;padding:20px}
.odlg .row .btn{margin:0}
.ackform .rep-ro{margin:16px 0;padding:12px;border:1px dashed #666;border-radius:10px}
.rep-blank{color:#888;font-style:italic;margin:4px 0 0;min-height:1.4em}
.ackdate{font-size:16px;margin:14px 0}
.bcert{text-align:center}
.bcert-sticker{margin:8px auto 16px;padding:16px 20px;border:2px solid #111;border-radius:40% / 50%;display:inline-block;background:#fff;color:#111}
.bcert-yr{font-weight:800;letter-spacing:.04em}
.bcert-yr2{font-weight:800;font-size:20px}
.bcert-lead{margin:12px 0 8px}
.bcert-who{font-size:18px;margin:8px 0 2px}
.bcert-field{display:inline-block;min-width:120px;border-bottom:1px solid #111;padding:0 8px;color:#111}
.bcert .bcert-field{border-bottom-color:#111}
.bcert-caps{display:flex;justify-content:space-around;max-width:360px;margin:0 auto 12px;font-size:12px;color:#555}
.bcert-line{margin:12px auto;max-width:360px;text-align:left}
.bcert-line .rep-blank{display:block;border-bottom:1px solid #999;min-height:28px;color:#888}

/* v102.3: wallet orientation certificate (front/back), modeled on the Safety Indoctrination card */
.wcert-wrap{max-width:440px;margin:0 auto}
.wcert{background:#fff;color:#111;border:1px solid #d0d0d0;border-radius:6px;padding:22px 20px 20px;text-align:center;box-shadow:0 8px 24px rgba(0,0,0,.25);position:relative}
.wcert.democert{border:3px dashed #b91c1c;background:#fff}
.wcert-top{margin:4px auto 16px;padding:16px 20px 14px;border:1.5px solid #222;border-radius:50% / 46%;max-width:300px;background:#fff}
.wcert-logo{max-height:52px;max-width:180px;width:auto;object-fit:contain;margin:0 auto 8px;display:block}
.wcert-word{font-weight:800;font-size:22px;letter-spacing:-.02em;margin:0 0 8px;line-height:1.15;color:#111}
.wcert-kicker{font-weight:800;letter-spacing:.05em;font-size:13px;margin:0;color:#111}
.wcert-years{font-weight:800;font-size:22px;margin:2px 0 0;color:#111}
.wcert-rule{border:none;border-top:1px dashed #333;margin:8px 0 18px}
.wcert-lead{font-weight:700;margin:0 0 14px;font-size:15px}
.wcert-who{display:flex;align-items:flex-end;justify-content:center;gap:8px;margin:0}
.wcert-field{flex:1;border-bottom:1px solid #111;min-width:0;padding:0 6px 2px;font-size:15px;font-weight:600;color:#111;line-height:1.25}
.wcert-of{padding-bottom:2px;flex:none}
.wcert-caps{display:flex;gap:8px;margin:2px 0 16px;font-size:11px;color:#444}
.wcert-caps span{flex:1}
.wcert-body{text-align:left;font-size:13.5px;line-height:1.4;margin:0 0 22px;color:#111}
.wcert-foot{display:flex;gap:16px;text-align:left}
.wcert-foot>div{flex:1;min-width:0}
.wcert-signline{border-bottom:1px solid #111;min-height:26px;font-weight:600;padding:0 4px 2px;color:#111;word-break:break-word}
.wcert-cap{font-size:11px;color:#444;margin-top:3px;line-height:1.25}
.wcert-back{text-align:left;color:#111}
.wcert-back h3{margin:0 0 10px;font-size:18px}
.wcert-back .wsig{width:70%;max-width:280px;border-bottom:1px solid #999;background:#fff;display:block;margin:8px 0 4px}
.cert-faces{display:flex;gap:8px;justify-content:center;margin:0 0 12px}
.cert-acts{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;margin:0 0 14px}
@media print{
  .demob,.cert-faces,.cert-acts,.note,header,nav,#nav,footer,.banner{display:none!important}
  .wcert{box-shadow:none;border:1px solid #111}
}


/* v87: Help Workers/Companies/Both (and Getting started/FAQ) use Wallet card tabs; not sticky */
body[data-page=help] .seg.wseg,body[data-page=help] .wseg{position:static;top:auto;z-index:auto;max-width:none;width:100%;margin-left:0;margin-right:0}

/* v87: pre-login welcome / sign-in / sign-up — white top bar only (in-app style). Page, big logo, buttons, footer unchanged. */
body.prebar header{background:#fff;color:#111111}
body.prebar header svg.hmount path{fill:#111111}
body.prebar header h1{color:#111111}
body.prebar header small{color:#333333;opacity:1}
body.prebar header .hlogo{background:#111111}
body.prebar header .dhelp,body[data-pg=welcome].prebar header .dhelp{color:#111111}
body.prebar header .dhelp:hover,body[data-pg=welcome].prebar header .dhelp:hover{background:rgba(0,0,0,.08)}

/* v88: worker Home four tiles — white rounded cards, black text, dark icons on the #111 page.
   Hover/active is a clear press state; keyboard/focus uses the orange outline. */
body.inapp[data-pg=home] #app>a.btn.ghost{
  background:#fff;color:#111111;border:2px solid #111111;
  box-shadow:0 1px 3px rgba(0,0,0,.18)
}
body.inapp[data-pg=home] #app>a.btn.ghost i,
body.inapp[data-pg=home] #app>a.btn.ghost .wic,
body.inapp[data-pg=home] #app>a.btn.ghost .pic,
body.inapp[data-pg=home] #app>a.btn.ghost .sic{filter:none}
body.inapp[data-pg=home] #app>a.btn.ghost:hover,
body.inapp[data-pg=home] #app>a.btn.ghost:active{
  background:#f0f0f0;box-shadow:0 2px 8px rgba(0,0,0,.22)
}
body.inapp[data-pg=home] #app>a.btn.ghost:focus,
body.inapp[data-pg=home] #app>a.btn.ghost:focus-visible{
  outline:3px solid var(--or);outline-offset:2px
}
@media (min-width:900px){
  body.inapp[data-pg=home]:has(#nav a[href="#/home"]) #app>a.btn.ghost,
  body.inapp[data-pg=home]:has(#nav a[href="#/home"]) #app>.btn:not(.or){
    background:#fff;color:#111111;border:1px solid #e2e2e2;
    box-shadow:0 1px 2px rgba(0,0,0,.05),0 4px 16px rgba(0,0,0,.06)
  }
  body.inapp[data-pg=home]:has(#nav a[href="#/home"]) #app>a.btn.ghost:hover,
  body.inapp[data-pg=home]:has(#nav a[href="#/home"]) #app>a.btn.ghost:active{
    background:#fff;transform:translateY(-2px);box-shadow:0 8px 22px rgba(0,0,0,.12)
  }
}

/* v88: only the page is black. Cards, rows, inputs, secondary buttons, toasts and panels are white with black text. */
body.inapp .card h2,body.inapp .card h3,body.inapp .card p,body.inapp .card li,body.inapp .card td,body.inapp .card th,body.inapp .card label,body.inapp .card .muted,body.inapp .card b,body.inapp .stat,body.inapp .stat b,body.inapp .opt,body.inapp .opt b,body.inapp details.hlp,body.inapp details.hlp p,body.inapp details.hlp li,body.inapp details.hlp ol{color:#111111}
body.inapp .card .muted,body.inapp .opt .muted,body.inapp details.hlp .muted,body.inapp .stat .muted,body.inapp label.muted,body.inapp .swipe .muted{color:#5f5f5f}
body.inapp table{background:#fff;color:#111111}
body.inapp tr.rowlink:hover td{background:rgba(255,76,0,.10)}
body.inapp .toast{background:#fff;color:#111111;border:1px solid #e2e2e2;box-shadow:0 4px 14px rgba(0,0,0,.2)}
body.inapp .toast button{color:#9a2e00}
body.inapp .search,body.inapp .search input{background:#fff;color:#111111}
body.inapp .swipe .card{background:#fff;color:#111111}
body.inapp .req{background:#fff}
body.inapp .viewer .vbar{background:#fff;color:#111111}.viewer .vbar button,body.inapp .viewer .vbar button{background:#fff;color:#111111}
body.inapp .ick,body.inapp .ick li{background:#fff;color:#111111}
body.inapp .osfonts,body.inapp .ackform,body.inapp .bcert,body.inapp .cert{color:#111111}
body.inapp .ackform,body.inapp .bcert,body.inapp .cert{background:#fff}
body.inapp header svg.hmount,body.prebar header svg.hmount{color:#111111;opacity:1}
body.inapp header svg.hmount path,body.prebar header svg.hmount path{fill:currentColor}
@media (max-width:419px){header svg.hmount{max-width:64px;right:-2px;opacity:1}}

/* v88: app-mode (pre-login included) — black page, white surfaces, white loose headings */
html.app-mode,html.app-mode body,html.app-mode main,html.app-mode #app{background:#111111;color:#fff}
html.app-mode h2,html.app-mode h3{color:#fff}
html.app-mode .card h2,html.app-mode .card h3{color:#111111}
html.app-mode .card,html.app-mode .opt,html.app-mode .stat a,html.app-mode .stat div,html.app-mode .emplist,html.app-mode .empopt,html.app-mode details.hlp,html.app-mode .swipe .card{background:#fff;color:#111111;border-color:#e2e2e2}
html.app-mode .card .muted,html.app-mode .card label,html.app-mode details.hlp,html.app-mode details.hlp summary,html.app-mode details.hlp p,html.app-mode details.hlp li{color:#111111}
html.app-mode .card .muted{color:#5f5f5f}
html.app-mode .btn.ghost,html.app-mode .btn:not(.or){background:#fff;color:#111111;border:2px solid #111111}
html.app-mode .btn.or{background:var(--or);color:var(--or-ink)}
html.app-mode input:not([type=checkbox]):not([type=radio]):not([type=file]),html.app-mode select,html.app-mode textarea{background:#fff;color:#111111;border-color:#cccccc}
html.app-mode .muted{color:#d4d4d4}
html.app-mode .card .muted,html.app-mode .wpage>.muted{color:#5f5f5f}
body[data-pg=welcome] .wpage>.muted,body[data-pg=welcome] .welcome>.muted{color:#d4d4d4} /* welcome intro sits on the black page */
html.app-mode .cfoot,html.app-mode .cfoot a{color:#d4d4d4}
html.app-mode .cfoot a:hover{color:#fff}

/* v88 fixes: list-row text, muted cards, footer links on black, mountain clearance */
html.app-mode a.card,html.app-mode a.card.row,body.inapp a.card,body.inapp a.card.row{color:#111111!important}
html.app-mode .card.muted,body.inapp .card.muted{color:#5f5f5f}
html.app-mode .cfoot,html.app-mode .cfoot a,body.inapp .cfoot,body.inapp .cfoot a,body[data-pg=welcome] .cfoot,body[data-pg=welcome] .cfoot a{color:#d4d4d4!important}
html.app-mode .cfoot a:hover,body.inapp .cfoot a:hover,body[data-pg=welcome] .cfoot a:hover{color:#fff!important}
header{padding-right:64px}
@media (min-width:900px){
  header,body:has(#nav a[href="#/home"]) header,body:has(#nav a[href="#/dash"]) header{padding-right:160px}
  header svg.hmount{max-width:132px;max-height:52px;height:auto;width:auto}
  body:has(#nav a[href="#/home"]) #nav{right:310px!important;max-width:calc(100vw - 520px)}
}

/* v89: header logo peaks are solid black on the white top bar (no grey opacity). */
body.inapp header svg.hmount,body.prebar header svg.hmount,
body.inapp header svg.hmount path,body.prebar header svg.hmount path{color:#111111;fill:#111111;opacity:1}

/* v89: faint logo-peak range across the bottom of the black page, behind content. */
#pgmtn{display:none}
html.app-mode #pgmtn{display:block;position:fixed;left:0;right:0;bottom:0;width:100%;height:min(36vh,300px);pointer-events:none;z-index:0;overflow:hidden}
html.app-mode #pgmtn svg{position:absolute;left:0;right:0;bottom:0;width:100%;height:100%;display:block}
html.app-mode header,html.app-mode #app,html.app-mode #dfoot,html.app-mode .banner{position:relative;z-index:2}
html.app-mode header{z-index:6}
html.app-mode #nav{z-index:7}
@media (max-width:899px){html.app-mode #nav,html.app-mode body.inapp #nav,html.app-mode body:has(#nav a[href="#/dash"]) #nav{position:fixed;left:0;right:0;bottom:0;top:auto;width:auto;max-width:none;height:auto;flex-direction:row;background:#fff;border-top:1px solid #e0e0e0;padding-bottom:env(safe-area-inset-bottom);overflow:visible}}
#v{width:100%;max-height:48vh;border-radius:12px;margin:8px 0;background:#000}

/* v89: text links on the black page are Oilers orange (never browser blue/purple). */
html.app-mode #app a:not(.btn):not(.card):not(.wlink):not(.row):not(.cfoot):link,
html.app-mode #app a:not(.btn):not(.card):not(.wlink):not(.row):not(.cfoot):visited,
html.app-mode #app a:not(.btn):not(.card):not(.wlink):not(.row):not(.cfoot):hover,
html.app-mode #app a:not(.btn):not(.card):not(.wlink):not(.row):not(.cfoot):active{
  color:#FF4C00
}
html.app-mode #app > p a:not(.btn),
html.app-mode #app a.pagelink,
html.app-mode #app a.pagelink:link,
html.app-mode #app a.pagelink:visited,
html.app-mode #app a.pagelink:hover,
html.app-mode #app a.pagelink:active{
  color:#FF4C00;font-weight:700;font-size:18px;line-height:1.3;
  display:inline-block;padding:12px 6px;min-height:44px;text-decoration:underline
}
html.app-mode #app a.pagelink:focus-visible{
  outline:3px solid #FF4C00;outline-offset:2px;border-radius:4px
}
/* Links inside white cards stay the darker orange for 4.5:1+ on white.
   Specificity must beat the on-black #app a:not(.btn)… rule above. */
html.app-mode #app .card a:not(.btn):not(.card):not(.wlink):not(.row):link,
html.app-mode #app .card a:not(.btn):not(.card):not(.wlink):not(.row):visited,
html.app-mode #app .card a:not(.btn):not(.card):not(.wlink):not(.row):hover,
html.app-mode #app .card a:not(.btn):not(.card):not(.wlink):not(.row):active,
html.app-mode #app #forgot:link,
html.app-mode #app #forgot:visited,
html.app-mode #app #forgot:hover,
html.app-mode #app #consentcard a:link,
html.app-mode #app #consentcard a:visited,
html.app-mode #app .consent a:link,
html.app-mode #app .consent a:visited,
html.app-mode #app .legal a:link,
html.app-mode #app .legal a:visited,
html.app-mode #app .lgtbl a:link,
html.app-mode #app .lgtbl a:visited{
  color:#9a2e00;font-size:inherit;font-weight:inherit;min-height:0;padding:inherit
}

/* v89.1: bigger full-width page-range watermark, height-sized so peaks stay tall on wide screens. */
html.app-mode #pgmtn{display:block;position:fixed;left:0;right:0;bottom:0;width:100%;height:auto;pointer-events:none;z-index:0;overflow:hidden}
html.app-mode #pgmtn svg{position:absolute;bottom:0;left:50%;transform:translateX(-50%);height:75%;width:auto;min-width:0;max-height:75%;display:block}
@media (min-width:900px){
  html.app-mode #pgmtn{height:auto}
}

/* v89.1: centre the main content column on wide screens. Phone layout unchanged.
   Worker Home keeps a full-width grid (already centred tiles + full-bleed hero). */
@media (min-width:900px){
  html.app-mode main,html.app-mode body:has(#nav:empty) main{
    margin-left:auto;margin-right:auto
  }
  body:has(#nav a[href="#/dash"]) main{
    margin-left:auto;margin-right:auto;width:100%;max-width:1040px;
    padding:32px 40px 56px
  }
  body:has(#nav a[href="#/dash"]) #dfoot{margin-left:0;width:100%}
}

/* v89.1: company desktop nav is a top bar like the worker site (no left sidebar). */
.nfull{display:none}.nshort{display:inline}
nav a span.nfull,nav a span.nshort{font-size:inherit;font-weight:inherit;width:auto;height:auto}
nav a span.nfull{display:none}
nav a span.nshort{display:inline}
@media (min-width:900px){
  body:has(#nav a[href="#/dash"]) #nav{
    position:absolute;top:0;left:auto;right:310px!important;bottom:auto;
    height:72px;width:auto;max-width:calc(100vw - 520px);
    flex-direction:row;flex-wrap:nowrap;align-items:center;gap:4px;
    background:transparent!important;border:0!important;box-shadow:none;
    padding:0!important;z-index:7;overflow-x:auto;overflow-y:hidden;
    scrollbar-width:thin
  }
  html body:has(#nav a[href="#/dash"]) #nav{padding:0!important;top:0}
  html body:not(.nobanner):has(#nav a[href="#/dash"]) #nav{top:26px}
  body:has(#nav a[href="#/dash"]) #nav a{
    flex:none;display:flex;align-items:center;gap:8px;
    text-align:left;padding:10px 12px;border-radius:10px;
    font-size:14px;line-height:1.25;color:#111111;white-space:nowrap
  }
  body:has(#nav a[href="#/dash"]) #nav a span:not(.nfull):not(.nshort){
    display:inline-flex;align-items:center;justify-content:center;
    width:auto;height:auto;font-size:16px;flex:none
  }
  body:has(#nav a[href="#/dash"]) #nav a:hover{background:rgba(0,0,0,.06);color:#111111}
  body:has(#nav a[href="#/dash"]) #nav a.on{
    color:#111111;background:rgba(255,76,0,.12);
    box-shadow:inset 0 -3px 0 var(--or)
  }
  body:has(#nav a[href="#/dash"]) #nav a span i{filter:none}
  body:has(#nav a[href="#/dash"]) #nav a span.nfull{display:none}
  body:has(#nav a[href="#/dash"]) #nav a span.nshort{display:inline}
}
@media (min-width:1500px){
  body:has(#nav a[href="#/dash"]) #nav a span.nfull{display:inline}
  body:has(#nav a[href="#/dash"]) #nav a span.nshort{display:none}
}

/* v89.1: Log out is a regular nav item (never the active orange pill), beside Settings. */
#nav a.nout.on{box-shadow:none;background:transparent;color:inherit}
@media (max-width:899px){
  #nav:has(.nout) a{font-size:11px;padding:8px 2px 10px}
  #nav:has(.nout) a span{font-size:18px}
}
@media (min-width:900px){
  body:has(#nav a[href="#/home"]) #nav{overflow-x:auto;overflow-y:hidden;scrollbar-width:thin}
  body:has(#nav a[href="#/home"]) #nav a,
  body:has(#nav a[href="#/dash"]) #nav a{padding:10px 8px}
}
#outnote{margin:12px 0 4px}

/* v89.1: welcome/login wrappers are transparent so the page watermark shows through. */
html.app-mode main,
html.app-mode #app,
html.app-mode body.inapp #app,
html.app-mode body[data-pg=welcome] main,
html.app-mode .wpage,
html.app-mode .welcome,
body[data-pg=welcome] main,
body[data-pg=welcome] .wpage{
  background:transparent;box-shadow:none
}
html.app-mode,html.app-mode body{background:#111111}

/* v89.1 / v1150: one single logo-peak range, full width, anchored at the bottom, behind content.
   Height is 38vh on phone so peaks rise behind the lower cards without climbing past the v104.67 “stay low” line (60% of the viewport). height:auto was only ~143px on a 390px phone. */
html.app-mode #pgmtn{display:block;position:fixed;left:0;right:0;bottom:0;width:100%;height:auto;max-height:none;pointer-events:none;z-index:0;overflow:hidden}
html.app-mode #pgmtn svg{position:absolute;bottom:0;left:50%;transform:translateX(-50%);display:block;width:auto;height:75%;min-width:0;max-height:75%}
@media (min-width:900px){
  html.app-mode #pgmtn{height:auto}
}


/* v89.2 (A/C): one fixed top bar — logo + nav together, no overlap, sticky at top:0 on desktop >=1024.
   Under 1024 the compact phone-style bottom tab bar is kept. */
html.desk-nav{scroll-padding-top:80px}
html.desk-nav body.inapp,html.desk-nav body.prebar{padding-top:72px}
html.desk-nav body.inapp:not(.nobanner),html.desk-nav body.prebar:not(.nobanner){padding-top:calc(72px + 26px)}
html.desk-nav header,
html.desk-nav body.inapp header,
html.desk-nav body.prebar header,
html.desk-nav body:has(#nav a[href="#/dash"]) header,
html.desk-nav body:has(#nav a[href="#/home"]) header{
  position:fixed;top:0;left:0;right:0;height:72px;z-index:50;
  display:flex;align-items:center;gap:8px;
  padding:0 140px 0 20px;background:#fff;overflow:visible;
  box-shadow:0 1px 0 #e8e8e8
}
html.desk-nav body:not(.nobanner) header,
html.desk-nav body.inapp:not(.nobanner) header,
html.desk-nav body.prebar:not(.nobanner) header,
html.desk-nav body:not(.nobanner):has(#nav a[href="#/dash"]) header,
html.desk-nav body:not(.nobanner):has(#nav a[href="#/home"]) header{top:26px}
html.desk-nav{scroll-padding-top:calc(80px + 26px)}
html.desk-nav body.nobanner{scroll-padding-top:80px}
html.desk-nav header .hbrand{
  flex:0 1 auto;min-width:0;max-width:240px;
  display:flex;align-items:center;gap:10px;overflow:hidden;position:relative;z-index:2
}
html.desk-nav header .hlogo{flex:none}
html.desk-nav header .htit{min-width:0;overflow:hidden}
html.desk-nav header .htit h1,
html.desk-nav header .htit small{
  display:block;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis
}
html.desk-nav header #nav,
html.desk-nav body:has(#nav a[href="#/home"]) header #nav,
html.desk-nav body:has(#nav a[href="#/dash"]) header #nav,
html.desk-nav body:not(.nobanner):has(#nav a[href="#/home"]) header #nav,
html.desk-nav body:not(.nobanner):has(#nav a[href="#/dash"]) header #nav{
  position:relative!important;top:auto!important;left:auto!important;right:auto!important;bottom:auto!important;
  flex:1 1 auto;min-width:0;width:auto!important;max-width:none!important;height:72px;
  display:flex;flex-direction:row!important;flex-wrap:nowrap;align-items:center;gap:2px;
  background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;
  overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;z-index:2
}
html.desk-nav header #nav a,
html.desk-nav body:has(#nav a[href="#/home"]) header #nav a,
html.desk-nav body:has(#nav a[href="#/dash"]) header #nav a{
  flex:none;display:flex;align-items:center;gap:6px;white-space:nowrap;
  padding:10px 8px;font-size:14px;line-height:1.2;border-radius:10px;
  color:#111111;text-align:left
}
html.desk-nav header #nav a span:not(.nfull):not(.nshort),
html.desk-nav body:has(#nav a[href="#/dash"]) header #nav a span:not(.nfull):not(.nshort),
html.desk-nav body:has(#nav a[href="#/home"]) header #nav a span:not(.nfull):not(.nshort){
  display:inline-flex;align-items:center;justify-content:center;
  width:auto;height:auto;font-size:16px;flex:none;position:relative
}
html.desk-nav header #nav a span:not(.nfull):not(.nshort){
  width:18px;height:18px;flex:none
}
html.desk-nav header #nav a span i{filter:none;width:18px!important;height:18px!important;margin:0!important}
html.desk-nav header #nav a:hover{background:rgba(0,0,0,.06);color:#111111}
html.desk-nav header #nav a.on{
  color:#111111;background:rgba(255,76,0,.12);box-shadow:inset 0 -3px 0 var(--or)
}
html.desk-nav header #nav a.nout.on{box-shadow:none;background:transparent;color:#111111}
html.desk-nav header .mode{flex:none;margin-left:4px;position:relative;z-index:2}
html.desk-nav header svg.hmount{z-index:1}
@media (min-width:1024px) and (max-width:1399px){
  html.desk-nav header .htit small{display:none}
  html.desk-nav header .hbrand{max-width:200px}
}
@media (min-width:1024px) and (max-width:1179px){
  html.desk-nav header{padding-right:120px;padding-left:16px}
  html.desk-nav header .hbrand{max-width:156px}
  html.desk-nav header #nav a{padding:8px 6px;font-size:13px;gap:4px}
}
/* Compact bottom tab bar under 1024 (overrides leftover 900px top-nav / sidebar rules). */
@media (max-width:1023px){
  html.app-mode #nav,
  html.app-mode body.inapp #nav,
  html.app-mode body:has(#nav a[href="#/home"]) #nav,
  html.app-mode body:has(#nav a[href="#/dash"]) #nav,
  body:not(.nobanner):has(#nav a[href="#/home"]) #nav,
  body:not(.nobanner):has(#nav a[href="#/dash"]) #nav{
    position:fixed!important;left:0;right:0;bottom:0;top:auto!important;
    width:auto!important;max-width:none!important;height:auto;
    flex-direction:row!important;align-items:stretch;
    background:#fff!important;border:0;border-top:1px solid #e0e0e0!important;
    box-shadow:none;padding:0 0 env(safe-area-inset-bottom)!important;
    overflow:visible;z-index:20
  }
  body:has(#nav a[href="#/dash"]) main,
  body:has(#nav a[href="#/dash"]) #dfoot{margin-left:0;width:100%}
}

/* v89.2 (B): small labels under status-bubble numbers are black; numbers keep their colours. */
html.app-mode .stat a,
html.app-mode .stat div,
html.app-mode body.inapp .stat a,
html.app-mode body.inapp .stat div{color:#111111}
html.app-mode .wseg a,
html.app-mode .seg.wseg a,
html.app-mode body.inapp .wseg a,
html.app-mode body.inapp .seg.wseg a{color:#111111}
html.app-mode .wseg a.on,
html.app-mode body.inapp .wseg a.on{color:#111111}

/* v89.2 (D): Employees Safety tickets / Insurance / Roster are separate equal white bubbles,
   aligned with the export + search row and the list cards below. */
#epctools{display:flex;flex-direction:column;gap:12px;margin:8px 0 16px;width:100%}
#epctools #inslink,
#epctools #inslink.seg{
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;width:100%;max-width:none;margin:0;padding:0;background:transparent;
  border:0;border-radius:0;box-shadow:none;position:static;top:auto;z-index:auto
}
#epctools #inslink a,
#epctools #inslink a#rolk{
  flex:none;display:flex;align-items:center;justify-content:center;gap:6px;
  margin:0;padding:20px 16px;min-height:64px;box-sizing:border-box;
  background:#fff;color:#111111;border:0;border-radius:16px;
  box-shadow:0 1px 2px rgba(0,0,0,.05),0 4px 16px rgba(0,0,0,.06);
  font-size:14px;font-weight:600;line-height:1.2;text-align:center
}
#epctools #inslink a.on,
html.app-mode #epctools #inslink a.on,
body.inapp #epctools #inslink a.on{
  background:#fff;color:#111111;box-shadow:0 0 0 2px var(--or),0 1px 2px rgba(0,0,0,.05),0 4px 16px rgba(0,0,0,.06)
}
#epctools #inslink a.on i{filter:none}
#epcrow{display:grid;grid-template-columns:1fr 2fr;gap:12px;align-items:stretch;width:100%}
#epcrow #exportbtn,
#epcrow .search,
#epctools #exportbtn,
#epctools input.search{
  margin:0;width:100%;max-width:none;min-height:64px;height:auto;box-sizing:border-box
}
#epcrow #exportbtn{display:flex;align-items:center;justify-content:center}
#epcrow:has(> :only-child){grid-template-columns:1fr}
@media (max-width:699px){
  #epctools{gap:8px}
  #epctools #inslink,#epctools #inslink.seg{gap:8px;grid-template-columns:repeat(2,minmax(0,1fr))}
  #epctools #inslink a,#epctools #inslink a#rolk{padding:12px 4px;min-height:56px;border-radius:12px;font-size:12px}
  #epcrow{grid-template-columns:1fr;gap:8px}
  #epcrow #exportbtn,#epcrow .search{min-height:52px}
}
@media (min-width:700px) and (max-width:899px){
  #epctools #inslink a,#epctools #inslink a#rolk{padding:14px 10px;min-height:56px;border-radius:12px;font-size:13px}
  #epcrow #exportbtn,#epcrow .search{min-height:56px}
}

/* v89.2 (E): worker Home hero (and similar dark on-page wrappers) are fully transparent
   so the mountain watermark shows through. The orange Scan button itself stays solid. */
@media (min-width:900px){
  body[data-pg=home]:has(#nav a[href="#/home"]) #app>.btn.or,
  body.inapp[data-pg=home]:has(#nav a[href="#/home"]) #app>.btn.or,
  html.app-mode body[data-pg=home]:has(#nav a[href="#/home"]) #app>.btn.or{
    background:transparent!important;box-shadow:none!important;border:0!important;
    backdrop-filter:none;-webkit-backdrop-filter:none;outline:none
  }
  body[data-pg=home]:has(#nav a[href="#/home"]) #app>.btn.or:hover,
  body[data-pg=home]:has(#nav a[href="#/home"]) #app>.btn.or:focus,
  body[data-pg=home]:has(#nav a[href="#/home"]) #app>.btn.or:active{
    background:transparent!important;box-shadow:none!important;transform:none
  }
  body[data-pg=home]:has(#nav a[href="#/home"]) #app>.btn.or::after{
    background:var(--or);color:var(--or-ink);box-shadow:none
  }
}
/* On-screen company QR poster is a transparent block on the black page; print keeps the navy sheet. */
html.app-mode .poster,body.inapp .poster{background:transparent;box-shadow:none;border:0;color:#fff}
@media print{
  .poster{background:var(--navy);color:#fff;-webkit-print-color-adjust:exact;print-color-adjust:exact}
  #postacts,.btn-group,header,#nav,#dfoot,#pgmtn,.banner{display:none!important}
}


/* v89.2 follow-up: nav shrink so Log out isn't covered; one Employees label; wordmark space;
   prototype banner stays above the fixed bar; stat labels beat on-black link colour; search spans the grid. */
html.desk-nav header #nav,
html.desk-nav body:has(#nav a[href="#/home"]) header #nav,
html.desk-nav body:has(#nav a[href="#/dash"]) header #nav,
html.desk-nav body:not(.nobanner):has(#nav a[href="#/home"]) header #nav,
html.desk-nav body:not(.nobanner):has(#nav a[href="#/dash"]) header #nav{
  flex:1 1 0%!important;width:0!important;min-width:0!important;max-width:none!important
}
html.desk-nav header #nav a span.nfull{display:none!important}
html.desk-nav header #nav a span.nshort{display:inline!important}
@media (min-width:1500px){
  html.desk-nav header #nav a span.nfull{display:inline!important}
  html.desk-nav header #nav a span.nshort{display:none!important}
}
html.desk-nav header .hbrand{max-width:none;flex:0 0 auto}
html.desk-nav header .htit{max-width:230px}
@media (min-width:1024px) and (max-width:1399px){
  html.desk-nav header .htit small{display:none}
  html.desk-nav header .htit{max-width:240px}
}
html.desk-nav .banner{position:fixed;top:0;left:0;right:0;z-index:51}
html.desk-nav header .mode{margin-left:8px!important;flex:none;position:relative;z-index:3}
html.app-mode #app .stat a,
html.app-mode #app .stat a:link,
html.app-mode #app .stat a:visited,
html.app-mode #app .stat a:hover,
html.app-mode #app .stat a:active,
html.app-mode #app .stat div{color:#111111}
html.app-mode #app #epcrow input.search,
html.app-mode #app #epcrow .search,
html.app-mode #app #epctools input.search{max-width:none;width:100%}
#onext:disabled,#onext[aria-disabled="true"]{opacity:.45;cursor:not-allowed}


/* v89.2: unpublished/error notices stay in the page (inside #app or a card), never as a body-level
   bar that shoves the logo down and leaves the absolute/fixed nav over the notice. */
#ierr,html.app-mode #ierr,body.inapp #ierr{
  position:relative;z-index:2;margin:12px 0 16px;display:block
}
body>#ierr{
  /* leftover from v89.1: if an old session still has a body-level notice, park it below the header */
  position:relative!important;top:auto!important;left:auto!important;right:auto!important;
  z-index:2;margin:0 16px 12px;max-width:1040px
}
html.desk-nav body>#ierr{margin-top:0}
/* Request toast sits above the footer / phone tab bar and must not cover Sign & finish. */
#reqnote{z-index:30;max-width:400px}
@media (max-width:899px){
  #reqnote{left:10px;right:10px;bottom:calc(84px + env(safe-area-inset-bottom));max-width:none}
}
@media (min-width:900px){
  #reqnote{left:auto;right:24px;bottom:96px;max-width:400px}
}
body:has(#reqnote) #app{padding-bottom:160px}

/* v89.3: label text under dashboard/wallet numbers stays #111; numbers keep their inline colour.
   Must beat html.app-mode #app a:not(.btn)...:link {color:#FF4C00}. */
html.app-mode #app .stat a:not(.btn):not(.card):not(.wlink):not(.row):not(.cfoot),
html.app-mode #app .stat a:not(.btn):not(.card):not(.wlink):not(.row):not(.cfoot):link,
html.app-mode #app .stat a:not(.btn):not(.card):not(.wlink):not(.row):not(.cfoot):visited,
html.app-mode #app .stat a:not(.btn):not(.card):not(.wlink):not(.row):not(.cfoot):hover,
html.app-mode #app .stat a:not(.btn):not(.card):not(.wlink):not(.row):not(.cfoot):active,
html.app-mode #app .stat div{color:#111111}

/* v89.3: at 1024–1279 the view-toggle and mountain peak were covering Log out / clipping Settings. */
@media (min-width:1024px) and (max-width:1279px){
  html.desk-nav header{padding-right:100px;padding-left:12px}
  html.desk-nav header .hbrand{max-width:148px}
  html.desk-nav header .htit{max-width:130px}
  html.desk-nav header #nav a{padding:8px 5px;font-size:12px;gap:3px}
  html.desk-nav header .mode{padding:6px 8px;font-size:12px;margin-left:4px!important}
  html.desk-nav header .mode .mfull{display:none!important}
  html.desk-nav header .mode .mshort{display:inline!important}
  html.desk-nav header svg.hmount,html.desk-nav body.inapp header svg.hmount{max-width:132px;max-height:52px;height:auto;width:auto;right:max(24px,calc((100vw - 1120px)/2));top:50%;bottom:auto;transform:translateY(-50%)}
}
header .mode .mshort,html.desk-nav header .mode .mshort{display:none}


/* v90.1: iOS-style UISwitch. Track 51×31, knob 27px, 20px slide, #34C759 / #E9E9EA.
   Hit area is at least 44×44. Real checkbox stays in the tab order (not display:none). */
label.tog, .tog, html.app-mode label.tog, body.inapp label.tog{
  position:relative;display:inline-flex;align-items:center;justify-content:center;
  box-sizing:content-box;width:51px;min-width:44px;height:44px;flex:none;
  margin:0;padding:0;cursor:pointer;-webkit-tap-highlight-color:transparent
}
label.tog input, .tog input, html.app-mode label.tog input, body.inapp label.tog input{
  position:absolute;inset:0;width:100%;height:100%;margin:0;padding:0;
  opacity:0;cursor:pointer;z-index:2;appearance:none;-webkit-appearance:none
}
label.tog i, .tog i, html.app-mode label.tog i, body.inapp label.tog i{
  position:relative;display:block;box-sizing:border-box;
  width:51px;height:31px;flex:none;pointer-events:none;
  background:#E9E9EA;border-radius:31px;
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.06), inset 0 1px 1px rgba(0,0,0,.04);
  transition:background-color .25s ease, box-shadow .25s ease
}
label.tog i:before, .tog i:before, html.app-mode label.tog i:before, body.inapp label.tog i:before{
  content:"";position:absolute;left:2px;top:2px;width:27px;height:27px;
  background:#fff;border-radius:50%;
  box-shadow:0 3px 8px rgba(0,0,0,.15), 0 1px 1px rgba(0,0,0,.16);
  transition:transform .25s ease
}
label.tog input:checked+i, .tog input:checked+i,
html.app-mode label.tog input:checked+i, body.inapp label.tog input:checked+i{
  background:#34C759;box-shadow:none
}
label.tog input:checked+i:before, .tog input:checked+i:before,
html.app-mode label.tog input:checked+i:before, body.inapp label.tog input:checked+i:before{
  transform:translateX(20px)
}
label.tog:has(input:disabled), .tog:has(input:disabled){opacity:.5;cursor:default}
label.tog input:disabled, .tog input:disabled{cursor:default}
label.tog input:focus-visible+i, .tog input:focus-visible+i,
html.app-mode label.tog input:focus-visible+i{
  outline:2px solid #FF4C00;outline-offset:3px
}


/* v91.2: fixed A–Z dropdown so it stays fully on top of company cards; outer clips radius,
   inner scrolls; options are opaque; height fits whole rows in the remaining viewport. */
.cs-wrap{position:relative;z-index:45;margin:4px 0 12px;max-width:none}
.cs-wrap>.search{margin:0;width:100%}
.cs-list,html.app-mode #csuggest.cs-list,body.inapp #csuggest.cs-list{
  position:fixed;z-index:45;left:0;top:0;right:auto;
  overflow:hidden;isolation:isolate;
  background:#fff;color:#111111;border:1px solid #e2e2e2;border-radius:14px;
  box-shadow:0 8px 28px rgba(0,0,0,.18);padding:0;margin:0
}
.cs-scroll{overflow-y:auto;max-height:inherit;-webkit-overflow-scrolling:touch;padding:6px 0 14px;background:#fff}
.cs-letter{position:sticky;top:0;z-index:1;padding:4px 14px;font-size:12px;font-weight:700;
  letter-spacing:.06em;color:#5f5f5f;background:#f4f4f4;text-transform:uppercase}
.cs-opt{display:block;width:100%;box-sizing:border-box;margin:0;padding:10px 14px;
  border:0;background:#fff;color:#111111;text-align:left;font:inherit;font-weight:600;
  cursor:pointer;min-height:44px}
.cs-opt:hover,.cs-opt.on,html.app-mode .cs-opt.on{background:#fde8df;color:#111111}
.cs-empty{padding:12px 14px;color:#5f5f5f;font-size:14px;background:#fff}
#csearch:focus-visible{outline:2px solid #FF4C00;outline-offset:2px}

.cweb{margin-top:4px;font-size:13px;line-height:1.4}
.cweb-lab{opacity:.75;margin-right:4px}
.cweb a{color:inherit;text-decoration:underline;text-underline-offset:2px}
#oweb .cweb{margin:2px 0 8px}
.cweb-ext{font-size:11px;opacity:.7}

/* v93: company-card action rows wrap so Certificate / Redo / Start stay inside the card
   on narrow phones. Status pill on its own line; buttons share the row below, 44px tap. */
.co-acts{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:8px;width:100%;min-width:0;box-sizing:border-box}
.co-acts>.badge,.co-acts>.pill{flex:1 1 100%;white-space:nowrap;box-sizing:border-box}
.co-acts-btns{display:flex;flex-wrap:wrap;gap:8px;width:100%;justify-content:flex-end;min-width:0;box-sizing:border-box}
.co-acts-btns>.btn.sm{flex:1 1 calc(50% - 8px);min-width:0;max-width:none;box-sizing:border-box;text-align:center}
@media (max-width:430px){
  .co-acts-btns>.btn.sm{padding:0 8px}
}

/* v93: Find-a-company page letter headers (directory names A–Z) */
#clist .cs-letter{margin:12px 0 6px;border-radius:8px}

/* v93: white tab chips (Wallet, Help) use black label text; orange outline marks the
   active tab. Must beat html.app-mode #app a:not(.btn)...:link {color:#FF4C00}.
   In-card text links stay #9a2e00; orange primary .btn.or is unchanged. */
html.app-mode #app .wseg a:not(.btn):not(.card):not(.wlink):not(.row):not(.cfoot),
html.app-mode #app .wseg a:not(.btn):not(.card):not(.wlink):not(.row):not(.cfoot):link,
html.app-mode #app .wseg a:not(.btn):not(.card):not(.wlink):not(.row):not(.cfoot):visited,
html.app-mode #app .wseg a:not(.btn):not(.card):not(.wlink):not(.row):not(.cfoot):hover,
html.app-mode #app .wseg a:not(.btn):not(.card):not(.wlink):not(.row):not(.cfoot):active,
html.app-mode #app .seg.wseg a:not(.btn):not(.card):not(.wlink):not(.row):not(.cfoot),
html.app-mode #app .seg.wseg a:not(.btn):not(.card):not(.wlink):not(.row):not(.cfoot):link,
html.app-mode #app .seg.wseg a:not(.btn):not(.card):not(.wlink):not(.row):not(.cfoot):visited,
html.app-mode #app .seg.wseg a:not(.btn):not(.card):not(.wlink):not(.row):not(.cfoot):hover,
html.app-mode #app .seg.wseg a:not(.btn):not(.card):not(.wlink):not(.row):not(.cfoot):active,
html.app-mode #app #osseg a:not(.btn):not(.card):not(.wlink):not(.row):not(.cfoot),
html.app-mode #app #osseg a:not(.btn):not(.card):not(.wlink):not(.row):not(.cfoot):link,
html.app-mode #app #osseg a:not(.btn):not(.card):not(.wlink):not(.row):not(.cfoot):visited,
html.app-mode #app #osseg a:not(.btn):not(.card):not(.wlink):not(.row):not(.cfoot):hover,
html.app-mode #app #osseg a:not(.btn):not(.card):not(.wlink):not(.row):not(.cfoot):active,
html.app-mode #app #inslink a:not(.btn):not(.card):not(.wlink):not(.row):not(.cfoot),
html.app-mode #app #inslink a:not(.btn):not(.card):not(.wlink):not(.row):not(.cfoot):link,
html.app-mode #app #inslink a:not(.btn):not(.card):not(.wlink):not(.row):not(.cfoot):visited,
html.app-mode #app #inslink a:not(.btn):not(.card):not(.wlink):not(.row):not(.cfoot):hover,
html.app-mode #app #inslink a:not(.btn):not(.card):not(.wlink):not(.row):not(.cfoot):active{
  color:#111111
}
html.app-mode #app .wseg a.on,
html.app-mode #app .seg.wseg a.on,
html.app-mode #app #osseg a.on,
html.app-mode #app #inslink a.on{
  color:#111111;font-weight:700
}

/* v93: Permissions cards — name takes the width, switch stays right;
   Sharing on/off is distinct from Disconnect company (text link, not orange). */
.perm-head{display:flex;align-items:flex-start;gap:10px;width:100%;min-width:0}
.perm-head>.grow{flex:1 1 0;min-width:0}
.perm-head b{display:block;font-weight:700;color:#111111;overflow-wrap:break-word;word-break:normal;hyphens:manual;line-height:1.25}
.perm-sw{flex:none;display:flex;flex-direction:column;align-items:flex-end;justify-content:flex-start;gap:2px;padding-top:1px}
.perm-sw .slbl{font-size:12px;font-weight:700;color:#111111;line-height:1.2;white-space:nowrap}
.perm-hint{margin:6px 0 0;font-size:12px;line-height:1.35;color:#5f5f5f}
button.perm-dc,.perm-dc{display:inline-flex;align-items:center;background:none;border:0;padding:8px 0;margin:10px 0 0;color:#111111;font:inherit;font-size:13px;font-weight:600;text-decoration:underline;text-underline-offset:3px;cursor:pointer;min-height:44px;box-shadow:none;width:auto;max-width:none;line-height:1.3;border-radius:0}
html.app-mode #app button.perm-dc,
html.app-mode #app .card button.perm-dc,
html.app-mode #app .card .perm-dc,
html.app-mode #app .card a.perm-dc,
html.app-mode #app .card a.perm-dc:link,
html.app-mode #app .card a.perm-dc:visited,
html.app-mode #app .card a.perm-dc:hover,
html.app-mode #app .card a.perm-dc:active{
  color:#111111;background:none;box-shadow:none;border:0
}

/* v93: phone header — logo tile beside the wordmark (not stacked), shorter bar,
   mountains stay on the right, subtitle ellipsizes. Worker and company. */
header .hbrand{
  display:flex;flex-direction:row;align-items:center;gap:8px;
  min-width:0;flex:1 1 auto;max-width:100%;z-index:2;position:relative
}
header .hlogo{flex:none}
header .htit{min-width:0;flex:1 1 auto;overflow:hidden}
header .htit h1,header h1{
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.1
}
header .htit small,header small{
  display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%
}
@media (max-width:1023px){
  header,body.inapp header,body.prebar header,html.app-mode header,
  html.app-mode body.inapp header,html.app-mode body.prebar header{
    display:flex;flex-direction:row;align-items:center;gap:8px;
    min-height:52px;height:52px;box-sizing:border-box;
    padding:6px 10px;padding-right:56px
  }
  body.nobanner header,html.app-mode body.nobanner header{
    padding-top:calc(6px + env(safe-area-inset-top));
    height:auto;min-height:calc(52px + env(safe-area-inset-top))
  }
  header .hlogo,body.inapp header .hlogo,html.app-mode header .hlogo{
    width:32px;height:32px;padding:3px;border-radius:7px
  }
  header h1,header .htit h1,body.inapp header h1,html.app-mode header h1{
    font-size:15px;letter-spacing:.08em
  }
  header .htit small,header small,body.inapp header small{font-size:11px;line-height:1.2}
  header svg.hmount,body.inapp header svg.hmount,html.app-mode header svg.hmount{
    z-index:0;max-width:64px;right:0;height:100%
  }
  header .mode{flex:none;z-index:2;padding:6px 8px;font-size:12px}
}
@media (max-width:359px){
  header h1,header .htit h1,body.inapp header h1,html.app-mode header h1{
    font-size:13px;letter-spacing:.06em
  }
  header,body.inapp header,html.app-mode header{padding-right:48px}
  header svg.hmount,body.inapp header svg.hmount{max-width:52px}
}

/* v93: all bottom-bar tab labels the same size (Employees was huge because the
   label lives in a span that was picking up the 18–22px icon size). Fit 6 tabs at 320px. */
@media (max-width:1023px){
  #nav a,
  #nav:has(.nout) a,
  html.app-mode #nav a,
  html.app-mode body.inapp #nav a,
  html.app-mode body:has(#nav a[href="#/dash"]) #nav a,
  html.app-mode body:has(#nav a[href="#/home"]) #nav a{
    font-size:10px;font-weight:600;line-height:1.15;
    padding:8px 1px 8px;min-width:0;flex:1 1 0;white-space:normal
  }
  #nav a span:not(.nfull):not(.nshort),
  #nav:has(.nout) a span:not(.nfull):not(.nshort),
  html.app-mode #nav a span:not(.nfull):not(.nshort),
  html.app-mode body:has(#nav a[href="#/dash"]) #nav a span:not(.nfull):not(.nshort){
    display:block;font-size:18px;width:auto;height:22px;line-height:22px;margin:0 auto
  }
  #nav a span.nfull,#nav a span.nshort,
  #nav:has(.nout) a span.nfull,#nav:has(.nout) a span.nshort,
  html.app-mode #nav a span.nfull,html.app-mode #nav a span.nshort,
  html.app-mode body:has(#nav a[href="#/dash"]) #nav a span.nfull,
  html.app-mode body:has(#nav a[href="#/dash"]) #nav a span.nshort,
  html.app-mode body:has(#nav a[href="#/home"]) #nav a span.nfull,
  html.app-mode body:has(#nav a[href="#/home"]) #nav a span.nshort{
    font-size:inherit!important;font-weight:inherit;width:auto!important;height:auto!important;
    line-height:inherit!important;margin:0
  }
  #nav a span.nfull,
  #nav:has(.nout) a span.nfull,
  html.app-mode #nav a span.nfull,
  html.app-mode body:has(#nav a[href="#/dash"]) #nav a span.nfull,
  html.app-mode body:has(#nav a[href="#/home"]) #nav a span.nfull{
    display:none!important
  }
  #nav a span.nshort,
  #nav:has(.nout) a span.nshort,
  html.app-mode #nav a span.nshort,
  html.app-mode body:has(#nav a[href="#/dash"]) #nav a span.nshort,
  html.app-mode body:has(#nav a[href="#/home"]) #nav a span.nshort{
    display:inline!important
  }
}
@media (max-width:359px){
  #nav a,#nav:has(.nout) a,html.app-mode #nav a,html.app-mode body.inapp #nav a{font-size:9px;padding:7px 0 7px}
}


/* v93: Employees + Wallet section tabs — same icon size, same type, centered
   icon above label, equal heights. Insurance & documents may wrap, stays centered.
   Black text; active = orange outline. */
.ico-tk,.ico-doc,.ico-ro,.ico-or{
  display:block;width:22px;height:22px;margin:0;padding:0;flex:none;
  vertical-align:unset;background-position:center;background-repeat:no-repeat;background-size:contain
}
.ico-tk{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b1f3a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8.2a2.1 2.1 0 0 0 0 3.6V17a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1v-5.2a2.1 2.1 0 0 0 0-3.6V7a1 1 0 0 0-1-1H5a1 1 0 0 0-1 1z'/%3E%3Cpath d='M9 12.1l2 2 4.2-4.2' stroke='%23FF4C00'/%3E%3C/svg%3E")}
.ico-doc{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b1f3a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 3v5h5'/%3E%3Cpath d='M9 13h6M9 17h4'/%3E%3C/svg%3E")}
.ico-ro{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b1f3a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3'/%3E%3Cpath d='M3.6 19c0-3 2.4-5 5.4-5s5.4 2 5.4 5'/%3E%3Ccircle cx='17' cy='9' r='2.4'/%3E%3Cpath d='M21.4 19c0-2.4-1.6-4.1-3.8-4.7'/%3E%3C/svg%3E")}
.ico-or{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b1f3a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='3' width='14' height='18' rx='2'/%3E%3Cpath d='M9 3.5h6v2H9z'/%3E%3Cpath d='M8.5 10.5l1.5 1.5 3-3'/%3E%3Cpath d='M8.5 16h7'/%3E%3C/svg%3E")}
#epctools #inslink a,
#epctools #inslink a#rolk,
#inslink a,
#inslink a#rolk,
html.app-mode #epctools #inslink a,
html.app-mode #inslink a,
.wseg[aria-label="Wallet sections"] a,
html.app-mode .wseg[aria-label="Wallet sections"] a{
  display:flex;flex-direction:column;flex:none;align-items:center;justify-content:center;
  gap:5px;box-sizing:border-box;text-align:center;
  min-height:72px;height:auto;padding:10px 8px;
  font-size:13px;font-weight:600;line-height:1.2;color:#111111;
  background:#fff;border:1px solid #e2e2e2;border-radius:14px;
  box-shadow:0 1px 3px rgba(0,0,0,.08)
}
.wseg[aria-label="Wallet sections"] a,
html.app-mode .wseg[aria-label="Wallet sections"] a{
  height:auto;align-self:stretch
}
#epctools #inslink a.on,
#inslink a.on,
html.app-mode #epctools #inslink a.on,
html.app-mode #inslink a.on,
.wseg[aria-label="Wallet sections"] a.on,
html.app-mode .wseg[aria-label="Wallet sections"] a.on{
  color:#111111;font-weight:600;
  background:#fff;border-color:var(--or);
  box-shadow:0 0 0 2px var(--or)
}
#epctools #inslink a i,
#inslink a i,
.wseg[aria-label="Wallet sections"] a i,
html.app-mode #epctools #inslink a i,
html.app-mode #inslink a i,
html.app-mode .wseg[aria-label="Wallet sections"] a i,
#epctools #inslink a.on i,
#inslink a.on i{
  display:block;width:22px!important;height:22px!important;margin:0!important;
  filter:none;flex:none
}
#epctools #inslink a span,
#inslink a span,
.wseg[aria-label="Wallet sections"] a span{
  display:block;min-width:0;max-width:100%;text-align:center;
  font-size:inherit;font-weight:inherit;line-height:inherit;color:inherit
}
#epctools #inslink a#rolk,.seg a#rolk,#inslink a#rolk{flex:none}
@media (max-width:429px){
  #epctools #inslink a,#inslink a,.wseg[aria-label="Wallet sections"] a{
    padding:8px 3px;min-height:70px;font-size:11px
  }
}

/* v93: Wallet section tabs share width equally (Insurance must not grow). Same weight when active. */
.wseg[aria-label="Wallet sections"],
html.app-mode .wseg[aria-label="Wallet sections"]{
  display:flex;align-items:stretch;gap:8px
}
.wseg[aria-label="Wallet sections"] a,
html.app-mode .wseg[aria-label="Wallet sections"] a,
html.app-mode #app .wseg[aria-label="Wallet sections"] a,
html.app-mode #app .wseg[aria-label="Wallet sections"] a.on,
html.app-mode #app .seg.wseg[aria-label="Wallet sections"] a.on{
  flex:1 1 0;min-width:0;width:auto;font-weight:600
}

/* v93: equal-height Wallet tabs when Insurance wraps to 2 lines */
.wseg[aria-label="Wallet sections"],
html.app-mode .wseg[aria-label="Wallet sections"]{align-items:stretch}
.wseg[aria-label="Wallet sections"] a,
html.app-mode .wseg[aria-label="Wallet sections"] a,
html.app-mode #app .wseg[aria-label="Wallet sections"] a{
  height:auto;min-height:78px;align-self:stretch
}

/* v93: Orientations screen — contractor search and Your orientations are separate sections */
#orcheck{margin:0 0 4px}
.or-check{margin:0}
.or-yours{margin-top:28px;padding-top:4px}
.or-yours h3,html.app-mode .or-yours h3,body.inapp .or-yours h3{
  margin:0 0 4px;font-size:20px;font-weight:700;color:#fff;line-height:1.25
}
body:not(.inapp) .or-yours h3{color:var(--navy)}
.or-yours>.muted{margin:0 0 14px;font-size:14px}
.or-act{margin:4px 0 2px}
.or-act-lab{font-size:14px;font-weight:600;color:#111111}
html.app-mode .or-act-lab,body.inapp .or-act-lab{color:#111111}
.or-act-hint{font-size:12px;margin:4px 0 0;line-height:1.35}
button.or-arch,html.app-mode button.or-arch,html.app-mode #app button.or-arch{
  background:#fff;color:#111111;border:2px solid #111111;font-weight:600
}
.or-arch-list{margin:20px 0 8px}
.or-arch-list summary{
  cursor:pointer;font-weight:700;font-size:16px;padding:12px 0;list-style:none
}
html.app-mode .or-arch-list summary,body.inapp .or-arch-list summary{color:#fff}
.or-arch-list summary::-webkit-details-marker{display:none}
.or-arch-list summary::after{content:' ▾';opacity:.7}
.or-arch-list[open] summary::after{content:' ▴'}

/* v93: Employees label same size on every company screen, including Orientations */
@media (max-width:1023px){
  body[data-pg=orients] #nav a,
  html.app-mode body[data-pg=orients] #nav a,
  #nav a[href="#/epc"]{
    font-size:10px!important;font-weight:600
  }
  body[data-pg=orients] #nav a span.nshort,
  html.app-mode #nav a[href="#/epc"] span.nshort,
  #nav a[href="#/epc"] span.nshort{
    display:inline!important;font-size:inherit!important;height:auto!important;line-height:inherit!important
  }
  body[data-pg=orients] #nav a span.nfull,
  html.app-mode #nav a[href="#/epc"] span.nfull,
  #nav a[href="#/epc"] span.nfull{display:none!important}
}

/* v93: Company info — independent own / work-for checkable cards */
.aff-tog{
  display:flex;align-items:center;gap:12px;width:100%;box-sizing:border-box;
  min-height:52px;padding:12px 14px;margin:0 0 8px;
  background:#fff;color:#111111;border:2px solid #e2e2e2;border-radius:12px;
  font-size:15px;font-weight:600;line-height:1.3;text-align:left;cursor:pointer
}
.aff-tog.on{border-color:var(--or);box-shadow:0 0 0 1px var(--or)}
.aff-chk{
  flex:none;width:22px;height:22px;border-radius:6px;box-sizing:border-box;
  border:2px solid #ccc;background:#fff;position:relative
}
.aff-tog.on .aff-chk{border-color:var(--or);background:var(--or)}
.aff-tog.on .aff-chk::after{
  content:"";position:absolute;left:6px;top:2px;width:6px;height:11px;
  border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg)
}
.aff-lab{flex:1;min-width:0}
.aff-fields{margin:0 0 14px;padding:2px 0 0}
@media (max-width:430px){
  .aff-tog{padding:12px;font-size:15px}
}

/* v93: Reports and email — iOS switches already styled; action buttons share a row with a gap */
.rep-acts{display:flex;flex-direction:column;gap:8px;align-items:stretch;margin-top:10px}
.rep-acts .btn,.rep-acts a.btn{margin:0;width:100%;text-align:center}
@media (min-width:500px){
  .rep-acts{flex-direction:row;flex-wrap:wrap}
  .rep-acts .btn,.rep-acts a.btn{flex:1 1 180px;width:auto}
}
#cset-reports .tog,#odcard .tog{flex:none;margin:0}
#cset-reports .rep{padding-top:12px}
#odcard{margin-top:12px}
#consentcard{margin-top:12px}
body[data-pg=settings] #consentcard,#cset-stack #consentcard{margin-top:0}

/* v93: in-app confirm (log out, etc.) */
.ask{position:fixed;inset:0;background:rgba(0,0,0,.45);display:flex;align-items:center;justify-content:center;z-index:9999;padding:20px}
.ask-card{max-width:360px;width:100%;margin:0;color:#111}
.ask-card b{display:block;font-size:17px;font-weight:700;color:#111}
.ask-acts{display:flex;gap:8px;margin-top:14px}
.ask-acts .btn{flex:1;margin:0}

/* v94: lock the in-app top bar on phones (logo and title stay put while you scroll). Log out stays in the bottom nav. Desktop desk-nav stays fixed and is only applied at 1024px+. */
@media (max-width:1023px){
  html:not(.desk-nav) body.inapp header,
  html:not(.desk-nav) body.prebar header,
  html.app-mode:not(.desk-nav) body.inapp header,
  html.app-mode:not(.desk-nav) body.prebar header{
    position:sticky;top:0;z-index:45;background:#fff
  }
}
/* v94: insurance table scrolls inside the card at very narrow widths; no page overflow. */
@media (max-width:479px){
  #app .card:has(table.ins){overflow-x:auto;-webkit-overflow-scrolling:touch;max-width:100%}
  table.ins{min-width:480px}
}

/* v95: platform-admin link in the top bar only; black text on the white in-app header. */
a.admink{margin-left:auto;z-index:2;color:#111;text-decoration:none;font-size:14px;font-weight:600;padding:8px 12px;border-radius:20px;min-height:44px;display:inline-flex;align-items:center}
a.admink:hover{background:rgba(0,0,0,.08)}
body:not(.inapp):not(.prebar) a.admink{color:#fff}
body:not(.inapp):not(.prebar) a.admink:hover{background:rgba(255,255,255,.14)}
#adminpage .statrow{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0}
#adminpage .stat{flex:1 1 90px;background:#f4f4f4;border-radius:12px;padding:10px 12px;min-width:90px}
#adminpage .stat b{display:block;font-size:22px;line-height:1.1;color:#111}
#adminpage .stat span{display:block;font-size:12px;color:#333;margin-top:2px}
#adminpage .bar{height:8px;background:#eee;border-radius:99px;overflow:hidden;margin:6px 0 12px}
#adminpage .bar i{display:block;height:100%;background:#111;border-radius:99px}
#adminpage table.adm{width:100%;border-collapse:collapse;font-size:13px;color:#111}
#adminpage table.adm th{text-align:left;font-weight:600;padding:6px 4px;border-bottom:1px solid #e6e6e6}
#adminpage table.adm td{padding:6px 4px;border-bottom:1px solid #f0f0f0;vertical-align:top}
#adminpage .card{color:#111}

/* v97: desktop top-bar mountains — ~1.5× the original 88px cap (not ~3× / 200px),
   vertically centered with padding inside the 72px bar (never flush to top/bottom),
   right edge aligned with the 1120px content column (min 24px inset). Header
   padding keeps nav labels off the peaks. Phone header unchanged. */
html.desk-nav header,
html.desk-nav body.inapp header,
html.desk-nav body.prebar header,
html.desk-nav body:has(#nav a[href="#/dash"]) header,
html.desk-nav body:has(#nav a[href="#/home"]) header{
  padding-right:max(172px, calc((100vw - 1120px) / 2 + 148px))
}
html.desk-nav header svg.hmount,
html.desk-nav body.inapp header svg.hmount,
html.desk-nav body.prebar header svg.hmount{
  max-width:132px;max-height:52px;height:auto;width:auto;
  top:50%;bottom:auto;transform:translateY(-50%);
  right:max(24px, calc((100vw - 1120px) / 2));
  overflow:visible
}


/* v96: one line-icon set — inline SVG, currentColor, 1.8 stroke. Black on white
   (and inherit muted/orange in the bottom nav). Phone header unchanged. */
svg.ic{display:inline-block;width:1.15em;height:1.15em;vertical-align:-.2em;flex:none;overflow:visible;color:currentColor}
#nav a span svg.ic,nav a span svg.ic{display:block;width:22px;height:22px;margin:0 auto;vertical-align:middle;filter:none}
html.desk-nav header #nav a span svg.ic,
html.desk-nav body:has(#nav a[href="#/dash"]) header #nav a span svg.ic,
html.desk-nav body:has(#nav a[href="#/home"]) header #nav a span svg.ic,
header #nav svg.ic,header a.admink svg.ic{
  position:static;display:block;width:18px;height:18px;margin:0;
  max-width:none;max-height:none;right:auto;left:auto;top:auto;bottom:auto;
  transform:none;pointer-events:none;z-index:auto;overflow:visible;
  vertical-align:middle;filter:none;color:currentColor;fill:none
}
a.admink{display:inline-flex;align-items:center;gap:6px;flex:none;position:relative;z-index:2;white-space:nowrap}
a.admink svg.ic{width:16px;height:16px;margin:0}
.btn svg.ic,a.btn svg.ic,button.btn svg.ic{width:1.15em;height:1.15em;margin-right:.35em;vertical-align:-.22em;filter:none}
.btn.sm svg.ic,a.btn.sm svg.ic{width:1.05em;height:1.05em;margin-right:.3em}
h2 svg.ic,h3 svg.ic{width:1.05em;height:1.05em;margin-right:.35em;vertical-align:-.12em}
.thumb svg.ic{width:28px;height:28px;margin:0;vertical-align:middle}
a.admink svg.ic{width:16px;height:16px;margin:0;filter:none}
.muted svg.ic,.note svg.ic,.card.muted svg.ic,p.muted svg.ic,.card.req b svg.ic,b svg.ic,.seal svg.ic{width:1em;height:1em;margin-right:.25em;vertical-align:-.15em}
.seal svg.ic{width:36px;height:36px;margin:0}
.wseg a svg.ic,#inslink a svg.ic{display:block;width:22px;height:22px;margin:0 0 4px;flex:none;vertical-align:unset;filter:none}
.viewer .vbar button svg.ic,.trash svg.ic{width:18px;height:18px;margin-right:.25em}
.ib.iu svg.ic,.plock svg.ic{width:1em;height:1em;margin:0 0 0 .15em;vertical-align:-.15em}
.ick-i svg.ic{width:16px;height:16px;margin:0;vertical-align:middle}
.cweb-ext svg.ic{width:12px;height:12px;margin:0 0 0 2px;vertical-align:-1px}
body.inapp[data-pg=home] #app>a.btn.ghost svg.ic,
body.inapp .btn.ghost svg.ic,
body:has(#nav a[href="#/home"]) #nav a span svg.ic,
body:has(#nav a[href="#/dash"]) #nav a span svg.ic,
body.inapp #nav a span svg.ic{filter:none}
@media (max-width:1023px){
  #nav a span:not(.nfull):not(.nshort) svg.ic,
  html.app-mode #nav a span:not(.nfull):not(.nshort) svg.ic{
    width:22px;height:22px;margin:0 auto;display:block
  }
}


/* v96: Employees Safety tickets / Insurance / Roster stay a compact row of 3 equal
   white bubbles (icon above label, centered). Never stretch to the page height —
   Safari treated height:100% on these grid items as the whole main column, which
   stacked export, search, Show everyone and the list on top of the tiles with
   black gaps between. Export + search + the list stay in normal flow below. */
#epctools{
  display:flex;flex-direction:column;flex:0 0 auto;align-self:stretch;
  height:auto;min-height:0;gap:12px;margin:8px 0 16px;width:100%
}
#epctools #inslink,
#epctools #inslink.seg,
#inslink.seg,
#inslink{
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));
  grid-auto-rows:min-content;align-items:stretch;align-content:start;
  height:auto!important;min-height:0;max-height:none;
  gap:12px;width:100%;max-width:none;margin:0;padding:0;
  background:transparent;border:0;border-radius:0;box-shadow:none;
  position:static;top:auto;z-index:auto;overflow:visible
}
#epctools #inslink a,
#epctools #inslink a#rolk,
#inslink a,
#inslink a#rolk,
html.app-mode #epctools #inslink a,
html.app-mode #inslink a,
html.app-mode #app #inslink a:not(.btn):not(.card):not(.wlink):not(.row):not(.cfoot){
  display:flex;flex-direction:column;flex:0 0 auto;
  align-items:center;justify-content:center;align-self:stretch;
  gap:6px;margin:0;padding:14px 10px;
  height:auto!important;min-height:72px;max-height:none;
  box-sizing:border-box;text-align:center;
  background:#fff;color:#111111;border:0;border-radius:16px;
  box-shadow:0 1px 2px rgba(0,0,0,.05),0 4px 16px rgba(0,0,0,.06);
  font-size:13px;font-weight:600;line-height:1.2
}
#epctools #inslink a.on,
#inslink a.on,
html.app-mode #epctools #inslink a.on,
html.app-mode #inslink a.on,
html.app-mode #app #inslink a.on{
  background:#fff;color:#111111;border-color:var(--or);
  box-shadow:0 0 0 2px var(--or),0 1px 2px rgba(0,0,0,.05)
}
#epctools #inslink a svg.ic,
#inslink a svg.ic{
  display:block;width:22px;height:22px;margin:0;flex:none
}
#epcrow{
  position:relative;z-index:0;display:grid;grid-template-columns:1fr 2fr;
  gap:12px;align-items:stretch;width:100%;height:auto;flex:0 0 auto
}
#epctools + *{position:relative;z-index:0}
@media (max-width:699px){
  #epctools{gap:8px}
  #epctools #inslink,#epctools #inslink.seg,#inslink{gap:8px;grid-template-columns:repeat(2,minmax(0,1fr))}
  #epctools #inslink a,#epctools #inslink a#rolk,#inslink a{padding:10px 4px;min-height:64px;border-radius:12px;font-size:11px}
  #epcrow{grid-template-columns:1fr;gap:8px}
}
@media (max-width:359px){
  #epctools #inslink a,#inslink a{padding:8px 2px;min-height:60px;font-size:10px}
}


/* v96 standing rule: everything centered and uniform.
   Action groups sit on the same center axis as the heading/figure they belong to.
   Buttons in a group are equal width, 12px gaps, shared max width (480px).
   Direct #app CTAs follow the same rule. Home tiles and in-card / toolbar buttons
   keep their own layouts. */
.btn-group{
  display:flex;flex-direction:column;gap:12px;
  width:100%;max-width:480px;margin:16px auto 0;box-sizing:border-box
}
.btn-group .btn,
.btn-group a.btn,
.btn-group button.btn{
  margin:0;width:100%;max-width:none;
  display:flex;align-items:center;justify-content:center;box-sizing:border-box
}
.btn-group .btn-row{
  display:flex;flex-direction:row;gap:12px;width:100%;margin:0;align-items:stretch
}
.btn-group .btn-row .btn,
.btn-group .btn-row a.btn,
.btn-group .btn-row button.btn{
  flex:1 1 0;min-width:0;width:auto;max-width:none;margin:0
}
#app>.btn,
#app>a.btn,
#app>button.btn{
  margin-left:auto;margin-right:auto;margin-top:0;margin-bottom:12px;
  max-width:480px;width:100%;box-sizing:border-box
}
#app>.btn:last-child,
#app>a.btn:last-child,
#app>button.btn:last-child{margin-bottom:0}
#app>.btn-group+#app>*,
body.inapp .btn-group{position:relative;z-index:0}
@media (max-width:419px){
  .btn-group,#app>.btn,#app>a.btn,#app>button.btn{max-width:100%}
}

/* v96: company settings section order — uniform heading/card gaps in the centered column */
#cset-stack h3{margin:28px 0 10px;font-size:15px}
#cset-stack h3:first-child{margin-top:8px}
#cset-stack h3[hidden],#cset-stack .card[hidden]{display:none}
#cset-stack .card{margin:0}
#cset-stack #cset-ins .card,#cset-stack #insentry{margin:0}
#cset-logout .btn{margin-top:10px}

/* v99: site footer (About, Help, Privacy, Terms, Admin) shows on phone as well as
   desktop, so in-page Contact/About/Help rows are not needed. Visual styles live
   here because the original #dfoot rules are inside @media (min-width:900px).
   Sits in normal flow above the 84px body padding that clears the phone tab bar. */
html.app-mode #dfoot{display:block;background:transparent;color:#d0d0d0;font-size:14px}
html.app-mode #dfoot .fin{max-width:1120px;margin:0 auto;display:flex;flex-wrap:wrap;gap:12px 28px;align-items:center}
html.app-mode #dfoot b{color:#fff;font-family:'Oswald',Arial,sans-serif;letter-spacing:.1em;text-transform:uppercase;margin-right:auto}
html.app-mode #dfoot a{color:#d0d0d0;text-decoration:none;min-height:44px;display:inline-flex;align-items:center;padding:8px 4px}
html.app-mode #dfoot a:hover{color:#fff}
html.app-mode #dfoot a:link,html.app-mode #dfoot a:visited{color:#d0d0d0;text-decoration:none}
/* welcome has no tab bar */
body[data-pg=welcome]{padding-bottom:0}
@media (max-width:899px){
  html.app-mode body{display:flex;flex-direction:column;min-height:100vh;min-height:100dvh}
  html.app-mode main{flex:1 0 auto}
  html.app-mode #dfoot{flex:0 0 auto;margin-top:auto;padding:16px 16px 18px}
  html.app-mode #dfoot .fin{gap:4px 14px;justify-content:center}
  html.app-mode #dfoot b{flex:1 0 100%;margin-right:0;text-align:center}
  html.app-mode #dfoot span{flex:1 0 100%;text-align:center;font-size:12px}
}

/* v100: bigger line icons on the worker Home 4 tiles and company
   Employees Safety tickets / Insurance / Roster tiles. Same size on
   every tile, centered above the label. (Prior 34px rule targeted <i>,
   but v96 icons are svg.ic at 1.15em.) */
body[data-pg=home]:has(#nav a[href="#/home"]) #app>.btn:not(.or),
body[data-pg=home]:has(#nav a[href="#/home"]) #app>a.btn.ghost,
html.app-mode body[data-pg=home] #app>a.btn.ghost{
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:10px;text-align:center
}
body[data-pg=home]:has(#nav a[href="#/home"]) #app>.btn:not(.or) svg.ic,
body[data-pg=home]:has(#nav a[href="#/home"]) #app>a.btn.ghost svg.ic,
body[data-pg=home]:has(#nav a[href="#/home"]) #app>a.btn.ghost .hbub svg.ic,
html.app-mode body[data-pg=home] #app>a.btn.ghost svg.ic,
html.app-mode body[data-pg=home] #app>a.btn.ghost .hbub svg.ic{
  display:block;width:34px;height:34px;margin:0;flex:none;
  vertical-align:unset;max-width:none;max-height:none
}
body[data-pg=home]:has(#nav a[href="#/home"]) #app>a.btn.ghost .hbub,
html.app-mode body[data-pg=home] #app>a.btn.ghost .hbub{
  display:block;position:relative;line-height:0
}
#epctools #inslink a svg.ic,
#inslink a svg.ic,
html.app-mode #epctools #inslink a svg.ic,
html.app-mode #inslink a svg.ic,
html.app-mode #app #inslink a svg.ic{
  display:block;width:34px;height:34px;margin:0;flex:none;
  vertical-align:unset;max-width:none;max-height:none
}
#epctools #inslink a,
#epctools #inslink a#rolk,
#inslink a,
#inslink a#rolk{
  min-height:96px;padding:16px 10px;gap:8px
}
@media (max-width:899px){
  body[data-pg=home] #app>a.btn.ghost,
  body[data-pg=home] #app>.btn:not(.or){
    display:flex;flex-direction:column;align-items:center;justify-content:center;
    gap:8px;min-height:96px;text-align:center
  }
  body[data-pg=home] #app>a.btn.ghost svg.ic,
  body[data-pg=home] #app>.btn:not(.or) svg.ic,
  body[data-pg=home] #app>a.btn.ghost .hbub svg.ic{
    display:block;width:34px;height:34px;margin:0;flex:none
  }
}
@media (max-width:699px){
  #epctools #inslink a,
  #epctools #inslink a#rolk,
  #inslink a{min-height:88px}
}

/* v100: Browse all companies — one centered full-width button on the
   worker Orientations page (#/scan). Not a home tile. */
#browsecos,
body[data-pg=scan] #browsecos,
html.app-mode body[data-pg=scan] #browsecos{
  display:flex;align-items:center;justify-content:center;gap:10px;
  width:100%;max-width:none;margin:8px auto 20px;box-sizing:border-box;
  text-align:center
}
#browsecos svg.ic,
body[data-pg=scan] #browsecos svg.ic{
  display:inline-block;width:22px;height:22px;margin:0;flex:none;
  vertical-align:middle
}
body[data-pg=scan] .cs-wrap{margin:12px 0 8px}
body[data-pg=orientations] .cs-wrap{margin:8px 0 14px}

/* v100: Settings action buttons — Profile is a section heading + full-width
   card, like Email preferences / Passkeys. Add a passkey, Sign out / Log out,
   and Delete my account… are the same size, centered in their cards. */
body[data-pg=settings] h3{color:#fff}
body[data-pg=settings] #set-profile b{display:block;font-size:16px}
body[data-pg=settings] .setbtn,
html.app-mode body[data-pg=settings] .setbtn,
body[data-pg=settings] #pkadd,
body[data-pg=settings] #signout,
body[data-pg=settings] #delacct,
body[data-pg=settings] #editprof,
html.app-mode body[data-pg=settings] #pkadd,
html.app-mode body[data-pg=settings] #signout,
html.app-mode body[data-pg=settings] #delacct,
html.app-mode body[data-pg=settings] #editprof{
  display:flex;align-items:center;justify-content:center;gap:8px;
  width:100%;max-width:100%;min-height:50px;height:50px;box-sizing:border-box;
  margin:8px auto 0;padding:0 16px;border-radius:12px;border-width:2px;border-style:solid;
  font-size:16px;font-weight:600;line-height:1.2;text-align:center
}
body[data-pg=settings] #pkadd,
html.app-mode body[data-pg=settings] #pkadd{
  background:var(--or);color:var(--or-ink);border-color:var(--or)
}
body[data-pg=settings] #signout,
body[data-pg=settings] #editprof,
html.app-mode body[data-pg=settings] #signout,
html.app-mode body[data-pg=settings] #editprof,
html.app-mode body[data-pg=settings] #cset-logout #signout{
  background:#fff;color:#111111;border-color:#d0d0d0
}
body[data-pg=settings] #delacct,
html.app-mode body[data-pg=settings] #delacct,
html.app-mode body[data-pg=settings] #delcard > button.setbtn{
  background:#fff;color:#b42318;border-color:#b42318
}

/* v101: list-page search inputs and worker Orientations controls
   (Scan QR, company search, Browse all companies, completed search)
   span the full content column — same width as the cards below.
   #app input:not(...){max-width:560px} was beating #app .search
   (higher specificity), so searches sat at half width, left-aligned.
   #app>.btn{max-width:480px} made Scan QR ~60% while Browse was 100%. */
html.app-mode #app input.search,
html.app-mode #app input.search[type=search],
html.app-mode #app input[type=search].search,
#app input.search,
#app input.search[type=search],
#app input[type=search].search,
#app .cs-wrap,
#app .cs-wrap > .search,
#app .cs-wrap > input.search{
  width:100%;max-width:none;box-sizing:border-box;display:block
}
body[data-pg=scan] #scanqr,
body[data-pg=scan] #browsecos,
body[data-pg=scan] #app > .btn,
body[data-pg=scan] #app > a.btn,
body[data-pg=scan] #app > button.btn,
html.app-mode body[data-pg=scan] #scanqr,
html.app-mode body[data-pg=scan] #browsecos,
html.app-mode body[data-pg=scan] #app > #scanqr,
html.app-mode body[data-pg=scan] #app > #browsecos,
html.app-mode body[data-pg=orientations] #app input.search,
html.app-mode body[data-pg=orientations] #app .cs-wrap,
html.app-mode body[data-pg=orientations] #app .cs-wrap > input.search{
  width:100%;max-width:none;margin-left:auto;margin-right:auto;box-sizing:border-box
}

/* v101: desktop top bar — never truncate "BWA ONSITE WALLET".
   Nav starts after the full wordmark (with a gap) and packs right
   toward the mountains. Mountains shrink, then hide, at narrow widths
   before the wordmark would be cut. Logo tile ~46px (was 40px). */
html.desk-nav header .hbrand,
html.desk-nav body.inapp header .hbrand,
html.desk-nav body.prebar header .hbrand{
  flex:0 0 auto!important;
  min-width:auto!important;
  max-width:none!important;
  overflow:visible!important;
  gap:10px
}
html.desk-nav header .htit,
html.desk-nav body.inapp header .htit{
  flex:0 0 auto!important;
  min-width:max-content!important;
  max-width:none!important;
  overflow:visible!important
}
html.desk-nav header .htit h1,
html.desk-nav header h1,
html.desk-nav body.inapp header .htit h1,
html.desk-nav body.inapp header h1{
  overflow:visible!important;
  text-overflow:clip!important;
  max-width:none!important;
  white-space:nowrap
}
html.desk-nav header .hlogo,
html.desk-nav body.inapp header .hlogo,
html.desk-nav body.prebar header .hlogo{
  width:46px;height:46px;padding:5px;border-radius:10px;box-sizing:border-box
}
html.desk-nav header,
html.desk-nav body.inapp header,
html.desk-nav body.prebar header{
  gap:16px
}
html.desk-nav header #nav,
html.desk-nav body:has(#nav a[href="#/home"]) header #nav,
html.desk-nav body:has(#nav a[href="#/dash"]) header #nav,
html.desk-nav body:not(.nobanner):has(#nav a[href="#/home"]) header #nav,
html.desk-nav body:not(.nobanner):has(#nav a[href="#/dash"]) header #nav{
  justify-content:flex-start;
  margin-left:4px
}
/* Flexible spacer: packs nav toward the mountains when there is room,
   collapses to 0 at tight widths so items never overflow left over the wordmark. */
html.desk-nav header #nav::before{
  content:"";
  flex:1 1 auto;
  min-width:0;
  height:0;
  pointer-events:none
}
/* Mountains: shrink with the window, then hide, so the wordmark stays whole.
   Keep a padding-right reserve only while the mountains are visible. */
@media (max-width:1399px){
  html.desk-nav header svg.hmount,
  html.desk-nav body.inapp header svg.hmount,
  html.desk-nav body.prebar header svg.hmount{
    max-width:96px;max-height:36px
  }
  html.desk-nav header,
  html.desk-nav body.inapp header,
  html.desk-nav body.prebar header{padding-right:108px}
}
@media (max-width:1280px){
  html.desk-nav header svg.hmount,
  html.desk-nav body.inapp header svg.hmount,
  html.desk-nav body.prebar header svg.hmount{
    max-width:72px;max-height:28px
  }
  html.desk-nav header,
  html.desk-nav body.inapp header,
  html.desk-nav body.prebar header{padding-right:80px}
}
@media (max-width:1180px){
  html.desk-nav header svg.hmount,
  html.desk-nav body.inapp header svg.hmount,
  html.desk-nav body.prebar header svg.hmount{
    max-width:48px;max-height:22px
  }
  html.desk-nav header,
  html.desk-nav body.inapp header,
  html.desk-nav body.prebar header{padding-right:56px}
}
@media (max-width:1100px){
  html.desk-nav header svg.hmount,
  html.desk-nav body.inapp header svg.hmount,
  html.desk-nav body.prebar header svg.hmount{
    display:none
  }
  html.desk-nav header,
  html.desk-nav body.inapp header,
  html.desk-nav body.prebar header{padding-right:16px}
}

/* v101: structured address fields — full column width, province + postal
   side by side and equal. Supervisor group and full-width "Add another company". */
html.app-mode #app .addr-block input,
html.app-mode #app .addr-block select,
#app .addr-block input,
#app .addr-block select{
  width:100%;max-width:none;box-sizing:border-box
}
.addr-block{margin:0 0 2px}
.addr-row{display:grid;grid-template-columns:1fr 1fr;gap:12px;align-items:start}
.addr-row>div{min-width:0}
.aff-sub{margin:12px 0 0;padding:10px 0 0;border-top:1px solid #eee}
.aff-sub-h{font-size:12px;letter-spacing:.04em;text-transform:uppercase;color:#555;margin:0 0 6px;font-weight:600}
#app .aff-add,
html.app-mode #app .aff-add{
  display:flex;align-items:center;justify-content:center;
  width:100%;max-width:none;min-height:50px;height:50px;box-sizing:border-box;
  margin:10px 0 0;padding:0 16px
}

/* v101: page-level Back (‹ Back, ‹ Settings, ‹ About, …) is the same width
   as the card it sits above, edges aligned. In-card / in-row sm buttons stay shrink-to-content. */
#app > a.btn.sm.ghost,
#app > a.btn.sm.bk,
#app > a.bk{
  display:flex;align-items:center;justify-content:center;
  width:100%;max-width:none;box-sizing:border-box;
  margin:4px 0 10px
}

/* v101: header mountains stay 132×48 and aligned to the 1120px column on
   laptop widths (1280 / 1366 / 1440), with padding so nav (including
   Admin + Log out) never overlaps the peaks. Only shrink/hide below 1180
   when the nav is tight — and never before the wordmark would be cut. */
@media (min-width:1180px){
  html.desk-nav header,
  html.desk-nav body.inapp header,
  html.desk-nav body.prebar header{
    padding-right:max(172px, calc((100vw - 1120px) / 2 + 148px))
  }
  html.desk-nav header svg.hmount,
  html.desk-nav body.inapp header svg.hmount,
  html.desk-nav body.prebar header svg.hmount{
    display:block;
    max-width:132px;max-height:48px;height:auto;width:auto;
    top:50%;bottom:auto;transform:translateY(-50%);
    right:max(24px, calc((100vw - 1120px) / 2));
    overflow:visible;z-index:1;pointer-events:none
  }
}

/* v101: Employees search is full width under the 3 tiles (export moved to Reports). */
#epcrow{grid-template-columns:1fr}
#epcrow .search,#epctools input.search,#app #epcrow input.search{
  width:100%;max-width:none;box-sizing:border-box
}
#rep-export .rep-acts .btn{flex:1 1 0;min-width:0}

/* v101: company Settings — profile/mailing inputs fill the card; Upload logo
   and Save use the same full-width Settings button size. */
html.app-mode #cset-stack #cprof input:not([type=checkbox]):not([type=radio]):not([type=file]),
html.app-mode #cset-stack #cprof select,
html.app-mode #cset-stack #cpriv input:not([type=checkbox]):not([type=radio]):not([type=file]),
html.app-mode #cset-stack #cpriv select,
#cset-stack #cprof input:not([type=checkbox]):not([type=radio]):not([type=file]),
#cset-stack #cprof select,
#cset-stack #cpriv input:not([type=checkbox]):not([type=radio]):not([type=file]),
#cset-stack #cpriv select,
#cset-stack #cprof label,
#cset-stack #cpriv label{
  width:100%;max-width:none;box-sizing:border-box
}
#cset-stack #cpriv label:has(> input[type=checkbox]){width:auto;display:flex}
body[data-pg=settings] #cpsave,
body[data-pg=settings] #pvsave,
body[data-pg=settings] #lgupload,
body[data-pg=settings] #lgremove,
html.app-mode body[data-pg=settings] #cpsave,
html.app-mode body[data-pg=settings] #pvsave,
html.app-mode body[data-pg=settings] #lgupload,
html.app-mode body[data-pg=settings] #lgremove{
  display:flex;align-items:center;justify-content:center;gap:8px;
  width:100%;max-width:100%;min-height:50px;height:50px;box-sizing:border-box;
  margin:10px auto 0;padding:0 16px;border-radius:12px;border-width:2px;border-style:solid;
  font-size:16px;font-weight:600;line-height:1.2;text-align:center
}
body[data-pg=settings] #cpsave,
html.app-mode body[data-pg=settings] #cpsave,
body[data-pg=settings] #pvsave,
html.app-mode body[data-pg=settings] #pvsave{
  background:var(--or);color:var(--or-ink);border-color:var(--or)
}
body[data-pg=settings] #lgupload,
body[data-pg=settings] #lgremove,
html.app-mode body[data-pg=settings] #lgupload,
html.app-mode body[data-pg=settings] #lgremove{
  background:#fff;color:#111111;border-color:#d0d0d0
}
#lgupload input[type=file]{display:none}


/* v101: identical vertical rhythm for every Settings section (worker + company).
   Each section is an h3 (28px above, 10px below) plus a zero-margin card, including
   Email preferences, Passkeys, Sign out, Delete company, Delete my account, and Version.
   Unheaded cards in the stack previously sat margin:0 against each other and touched. */
html.app-mode body[data-pg=settings] #app > h3,
body[data-pg=settings] #app > h3,
html.app-mode body[data-pg=settings] #cset-stack h3,
body[data-pg=settings] #cset-stack h3{
  margin:28px 0 10px;font-size:15px;line-height:1.25
}
html.app-mode body[data-pg=settings] #cset-stack h3:first-child,
body[data-pg=settings] #cset-stack h3:first-child,
html.app-mode body[data-pg=settings] #app > h2 + h3,
body[data-pg=settings] #app > h2 + h3{
  margin-top:8px
}
html.app-mode body[data-pg=settings] #app > .card,
body[data-pg=settings] #app > .card,
html.app-mode body[data-pg=settings] #cset-stack .card,
body[data-pg=settings] #cset-stack .card,
html.app-mode body[data-pg=settings] #cset-stack #insentry,
body[data-pg=settings] #cset-stack #insentry{
  margin:0
}
/* Keep in-card privacy/delete links from using the global -10px vertical margin
   that made the next section look like it was overlapping. */
body[data-pg=settings] #consentcard a,
body[data-pg=settings] #delcard a,
body[data-pg=settings] #cset-delco a,
#cset-stack #consentcard a,
#cset-stack #delcard a{
  margin:0;padding:2px 0
}

/* v101: Team members intro (clear body text, not 12px print) and full-width invite. */
#cset-team .team-intro{margin:0 0 10px;font-size:15px;line-height:1.45;color:#111}
#cset-team .team-roles{margin:0 0 10px;padding:0 0 0 1.2em;font-size:15px;line-height:1.45;color:#111}
#cset-team .team-roles li{margin:0 0 4px}
#cset-team .team-cap{margin:0 0 16px;font-size:15px;line-height:1.45;color:#111}
#cset-team .team-invite{margin-top:16px}
#cset-stack #cset-team #tinvem,
#cset-stack #cset-team #tinvrole,
#cset-stack #cset-team .team-invite label,
#cset-stack #cset-team .team-invite input,
#cset-stack #cset-team .team-invite select{
  width:100%;max-width:none;box-sizing:border-box;display:block
}

/* v101: Send invite, Set requirements, Delete this company — full-width Settings buttons. */
body[data-pg=settings] #tinvgo,
body[data-pg=settings] #insreqbtn,
body[data-pg=settings] #delco,
html.app-mode body[data-pg=settings] #tinvgo,
html.app-mode body[data-pg=settings] #insreqbtn,
html.app-mode body[data-pg=settings] #delco{
  display:flex;align-items:center;justify-content:center;gap:8px;
  width:100%;max-width:100%;min-height:50px;height:50px;box-sizing:border-box;
  margin:10px auto 0;padding:0 16px;border-radius:12px;border-width:2px;border-style:solid;
  font-size:16px;font-weight:600;line-height:1.2;text-align:center
}
body[data-pg=settings] #tinvgo,
html.app-mode body[data-pg=settings] #tinvgo{
  background:var(--or);color:var(--or-ink);border-color:var(--or)
}
body[data-pg=settings] #insreqbtn,
html.app-mode body[data-pg=settings] #insreqbtn{
  background:#fff;color:#111111;border-color:#d0d0d0
}
body[data-pg=settings] #delco,
html.app-mode body[data-pg=settings] #delco,
html.app-mode body[data-pg=settings] #cset-delco > button.setbtn{
  background:#fff;color:#b42318;border-color:#b42318
}


/* v101.1: standing uniform-width rule — single-value inputs fill the card,
   same as structured address fields. #app input/select/textarea/label
   {max-width:560px} left name, email, phone, role, website and similar
   fields at about half width on the wide content column. Province + Postal
   stay a paired .addr-row (each cell is 1fr). Inputs sitting in a .row with
   other controls (report recipients, member role dropdowns) stay flexible. */
html.app-mode body[data-pg=profile] #app .card input:not([type=checkbox]):not([type=radio]):not([type=file]),
html.app-mode body[data-pg=profile] #app .card select,
html.app-mode body[data-pg=profile] #app .card textarea,
html.app-mode body[data-pg=profile] #app .card > label,
html.app-mode body[data-pg=profile] #app .card .aff-fields > label,
html.app-mode body[data-pg=settings] #app .card input:not([type=checkbox]):not([type=radio]):not([type=file]),
html.app-mode body[data-pg=settings] #app .card select,
html.app-mode body[data-pg=settings] #app .card textarea,
html.app-mode body[data-pg=settings] #app .card > label,
html.app-mode body[data-pg=insreq] #app .card input:not([type=checkbox]):not([type=radio]):not([type=file]),
html.app-mode body[data-pg=insreq] #app .card select,
html.app-mode body[data-pg=insreq] #app .card textarea,
html.app-mode body[data-pg=roster],html.app-mode body[data-pg=groups],body[data-pg=groups] #app .card input:not([type=checkbox]):not([type=radio]):not([type=file]),
html.app-mode body[data-pg=roster],html.app-mode body[data-pg=groups],body[data-pg=groups] #app .card select,
html.app-mode body[data-pg=roster],html.app-mode body[data-pg=groups],body[data-pg=groups] #app .card textarea,
body[data-pg=profile] #app .card input:not([type=checkbox]):not([type=radio]):not([type=file]),
body[data-pg=profile] #app .card select,
body[data-pg=profile] #app .card textarea,
body[data-pg=profile] #app .card > label,
body[data-pg=profile] #app .card .aff-fields > label,
body[data-pg=settings] #app .card input:not([type=checkbox]):not([type=radio]):not([type=file]),
body[data-pg=settings] #app .card select,
body[data-pg=settings] #app .card textarea,
body[data-pg=settings] #app .card > label,
body[data-pg=insreq] #app .card input:not([type=checkbox]):not([type=radio]):not([type=file]),
body[data-pg=insreq] #app .card select,
body[data-pg=insreq] #app .card textarea,
body[data-pg=roster],body[data-pg=groups] #app .card input:not([type=checkbox]):not([type=radio]):not([type=file]),
body[data-pg=roster],body[data-pg=groups] #app .card select,
body[data-pg=roster],body[data-pg=groups] #app .card textarea{
  width:100%;max-width:none;box-sizing:border-box
}
html.app-mode body[data-pg=settings] #app .card .row > input:not([type=checkbox]):not([type=radio]):not([type=file]),
html.app-mode body[data-pg=settings] #app .card .row > select,
html.app-mode body[data-pg=insreq] #app .card .row > input:not([type=checkbox]):not([type=radio]):not([type=file]),
html.app-mode body[data-pg=insreq] #app .card .row > select,
html.app-mode body[data-pg=roster],html.app-mode body[data-pg=groups],body[data-pg=groups] #app .card .row > input:not([type=checkbox]):not([type=radio]):not([type=file]),
html.app-mode body[data-pg=roster],html.app-mode body[data-pg=groups],body[data-pg=groups] #app .card .row > select,
body[data-pg=settings] #app .card .row > input:not([type=checkbox]):not([type=radio]):not([type=file]),
body[data-pg=settings] #app .card .row > select,
body[data-pg=insreq] #app .card .row > input:not([type=checkbox]):not([type=radio]):not([type=file]),
body[data-pg=insreq] #app .card .row > select,
body[data-pg=roster],body[data-pg=groups] #app .card .row > input:not([type=checkbox]):not([type=radio]):not([type=file]),
body[data-pg=roster],body[data-pg=groups] #app .card .row > select,
#cset-stack .trole{
  width:auto;max-width:none;flex:1 1 auto
}
html.app-mode body[data-pg=settings] #app .card label.tog,
html.app-mode body[data-pg=settings] #app .card label:has(> input[type=checkbox]),
body[data-pg=settings] #app .card label.tog,
body[data-pg=settings] #app .card label:has(> input[type=checkbox]){
  width:auto;max-width:none
}

/* v101.1: Profile photo Take photo / Choose photo — equal-width, full-width
   pair, same 50px Settings button size. Remove spans the row underneath.
   Save photo / Cancel use the same pair when a preview is showing. */
#avcard .av-acts,
body[data-pg=profile] #avcard .av-acts{
  display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:10px 0 0;width:100%;box-sizing:border-box
}
#avcard .av-acts .av-del{
  grid-column:1/-1
}
#avcard .av-btn,
body[data-pg=profile] #avcard .av-btn,
html.app-mode body[data-pg=profile] #avcard .av-btn{
  display:flex;align-items:center;justify-content:center;gap:8px;
  width:100%;max-width:none;min-height:50px;height:50px;box-sizing:border-box;
  margin:0;padding:0 16px;border-radius:12px;border-width:2px;border-style:solid;
  font-size:16px;font-weight:600;line-height:1.2;text-align:center
}
#avcard .av-btn.ghost,
body[data-pg=profile] #avcard .av-btn.ghost{
  background:#fff;color:#111111;border-color:#d0d0d0
}
#avcard .av-btn.or,
body[data-pg=profile] #avcard .av-btn.or{
  background:var(--or);color:var(--or-ink);border-color:var(--or)
}


/* v101.2: center the desktop nav group in the space between the end of
   "BWA ONSITE WALLET" and the start of the mountains, so the left gap
   equals the right gap (worker, company, and admin). The two flex
   spacers share leftover room equally and collapse at tight widths so
   items never overflow left over the wordmark. Mountains stay 132×48
   at laptop widths. Phone tab bar is unchanged. */
/* Beat the earlier html.desk-nav body:has(#nav…) header { gap:8px } so the
   wordmark-to-nav gap matches the 16px reserved gap before the mountains. */
html.desk-nav header,
html.desk-nav body.inapp header,
html.desk-nav body.prebar header,
html.desk-nav body:has(#nav a[href="#/dash"]) header,
html.desk-nav body:has(#nav a[href="#/home"]) header,
html.desk-nav body:not(.nobanner):has(#nav a[href="#/dash"]) header,
html.desk-nav body:not(.nobanner):has(#nav a[href="#/home"]) header{
  gap:16px
}
html.desk-nav header #nav,
html.desk-nav body:has(#nav a[href="#/home"]) header #nav,
html.desk-nav body:has(#nav a[href="#/dash"]) header #nav,
html.desk-nav body:not(.nobanner):has(#nav a[href="#/home"]) header #nav,
html.desk-nav body:not(.nobanner):has(#nav a[href="#/dash"]) header #nav,
html.desk-nav body.inapp header #nav,
html.desk-nav body.prebar header #nav{
  justify-content:flex-start;
  margin-left:0
}
html.desk-nav header #nav::before,
html.desk-nav header #nav::after,
html.desk-nav body.inapp header #nav::before,
html.desk-nav body.inapp header #nav::after,
html.desk-nav body.prebar header #nav::before,
html.desk-nav body.prebar header #nav::after{
  content:"";
  flex:1 1 auto;
  min-width:0;
  height:0;
  pointer-events:none
}


/* v101.2: Employees tiles use the same 3px orange ring as Dashboard
   tiles (.stat a.on) when that view is selected. Must beat
   html.app-mode #app #inslink a:not(.btn):not(...) { box-shadow: card }. */
html.app-mode #app #epctools #inslink a.on,
html.app-mode #app #inslink a.on,
html.app-mode #app #inslink a.on:not(.btn):not(.card):not(.wlink):not(.row):not(.cfoot),
html.app-mode #app #inslink a.on:not(.btn):not(.card):not(.wlink):not(.row):not(.cfoot):link,
html.app-mode #app #inslink a.on:not(.btn):not(.card):not(.wlink):not(.row):not(.cfoot):visited,
html.app-mode #app #inslink a.on:not(.btn):not(.card):not(.wlink):not(.row):not(.cfoot):hover,
html.app-mode #app #inslink a.on:not(.btn):not(.card):not(.wlink):not(.row):not(.cfoot):active,
html.app-mode #epctools #inslink a.on,
html.app-mode #inslink a.on,
body.inapp #epctools #inslink a.on,
body.inapp #inslink a.on,
#epctools #inslink a.on,
#inslink a.on{
  background:#fff;color:#111111;border-color:var(--or);
  box-shadow:0 0 0 3px var(--or)
}

/* v101.2: native-styled selects match text inputs across Safari/WebKit,
   Chrome, worker + company + admin. appearance:none + custom chevron
   so Province is not a grey OS control of a different height. */
html.app-mode select,
body.inapp select,
body.prebar select,
#app select,
#adminpage select,
select{
  -webkit-appearance:none;
  -moz-appearance:none;
  appearance:none;
  background-color:#fff;
  background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23666666' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 12px center;
  background-size:16px 16px;
  color:#111111;
  border:1px solid #cccccc;
  border-radius:12px;
  min-height:50px;
  height:50px;
  padding:13px 40px 13px 13px;
  font-size:16px;
  line-height:1.2;
  box-sizing:border-box
}
html.app-mode select:disabled,
body.inapp select:disabled,
body.prebar select:disabled,
#app select:disabled,
#adminpage select:disabled,
select:disabled{
  background-color:#f0f0f0;
  color:#5f5f5f;
  background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23999999' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M4 6l4 4 4-4'/%3E%3C/svg%3E")
}
select::-ms-expand{display:none}

/* v102.1: roster counters stay equal width (Not signed up / Signed up / Profile shared / Oriented) */
.ro-track{font-size:13px;margin:0 0 8px}
.stat.stat4{display:flex;gap:6px}
.stat.stat4 a{flex:1 1 0;min-width:0;width:0;box-sizing:border-box;padding:8px 4px;line-height:1.2}
.stat.stat4 a span{display:block;text-wrap:balance;overflow-wrap:break-word}
@media (max-width:1023px){
  .stat.stat4 a{font-size:11px;padding:8px 2px;line-height:1.15}
  .stat.stat4 a b{font-size:18px}
}

/* v102.1: Employees is four equal-width tiles; 2×2 on phone. */
#epctools #inslink,
#epctools #inslink.seg,
#inslink.seg,
#inslink{
  grid-template-columns:repeat(4,minmax(0,1fr));
}
#epctools #inslink a#grlk,
#inslink a#grlk,
.seg a#grlk{flex:none}
ul.gmems{list-style:none;margin:8px 0 0;padding:0}
ul.gmems li{padding:4px 0;border-top:1px solid #eee;font-size:13px;line-height:1.35}
ul.gmems li:first-child{border-top:0;padding-top:0}
.gcard .gmems{margin-top:10px}
.gcard .gmems>.card{margin:0 0 12px;box-shadow:0 1px 3px rgba(0,0,0,.08)}
.gcard .gmems>.card:last-child{margin-bottom:0}
@media (max-width:1023px){
  #epctools #inslink,
  #epctools #inslink.seg,
  #inslink.seg,
  #inslink{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
  }
}

/* v102.1: Employees tickets/insurance filter row — 3 equal-width selects, like Roster */
.epcfilt, #app .row:has(#rog){display:flex;gap:6px;align-items:stretch}
.epcfilt > select, #app .row:has(#rog) > select{flex:1 1 0;min-width:0;width:0}

/* v102.1: every top-nav label is the same size/weight as its siblings (Employees
   .nshort/.nfull must not inherit the icon-span font-size). Worker/Company switch
   sits in the nav just before Log out, which stays last. */
html.desk-nav header #nav a span.nfull,
html.desk-nav header #nav a span.nshort,
html.desk-nav body:has(#nav a[href="#/dash"]) header #nav a span.nfull,
html.desk-nav body:has(#nav a[href="#/dash"]) header #nav a span.nshort,
html.desk-nav body:has(#nav a[href="#/home"]) header #nav a span.nfull,
html.desk-nav body:has(#nav a[href="#/home"]) header #nav a span.nshort,
body:has(#nav a[href="#/dash"]) #nav a span.nfull,
body:has(#nav a[href="#/dash"]) #nav a span.nshort,
body:has(#nav a[href="#/home"]) #nav a span.nfull,
body:has(#nav a[href="#/home"]) #nav a span.nshort,
#nav a span.nfull,
#nav a span.nshort{
  font-size:inherit!important;font-weight:inherit!important;
  line-height:inherit!important;width:auto!important;height:auto!important
}
html.desk-nav header #nav .mode{
  margin-left:4px!important;margin-right:0;flex:none;align-self:center
}


/* v102.4: certificate actions under the card — centered, equal width, stacked */
.wcert-actions{
  max-width:440px;margin:16px auto 0;
  display:flex;flex-direction:column;align-items:stretch;gap:10px
}
.wcert-actions .btn,
.wcert-actions a.btn{
  display:flex;align-items:center;justify-content:center;
  width:100%;box-sizing:border-box;margin:0
}
.wcert-actions .muted{margin:0;text-align:center}
#wf2wrap{margin-top:8px}
#wf2pick{width:100%;box-sizing:border-box}

/* v102.4: shared confirm dialog (Log out / Exit / delete) */
.btn.danger{background:#b42318;color:#fff;border-color:#b42318}
body.inapp .btn.danger,body.inapp .ask .btn.danger{background:#b42318;color:#fff;border:2px solid #b42318}
.ask-card .ask-body{margin:8px 0 0;font-size:14px;font-weight:400;color:#333;line-height:1.45}
.ask-card .ask-body input{margin-top:6px}
html:not(.desk-nav) .wcert-actions{margin-bottom:calc(88px + env(safe-area-inset-bottom))}

.prof-save{width:100%;margin:18px 0 12px;display:block}
html:not(.desk-nav) .prof-save{margin-bottom:calc(96px + env(safe-area-inset-bottom))}
.prof-toast{min-height:0}
.prof-toast .toast{margin:8px 0}
.ask-acts{flex-wrap:wrap}

/* v102.5 orientation submission form: styled radio/checkbox boxes, no native grey */
.obox{display:flex;align-items:center;gap:6px;border:2px solid #222;border-radius:999px;padding:4px 10px;min-height:36px;box-sizing:border-box;cursor:pointer;background:#fff;margin:0;font-weight:500;font-size:13px;line-height:1.2;user-select:none}
.obox input{appearance:none;-webkit-appearance:none;width:14px;height:14px;border:2px solid #222;border-radius:4px;display:inline-block;flex:none;background:#fff;margin:0;position:relative}
.obox input[type=radio]{border-radius:50%}
.obox input:checked{background:#e85d04;border-color:#e85d04;box-shadow:inset 0 0 0 2px #fff}
.obox:has(input:checked){border-color:#e85d04;background:#fff7f0}
.obox-row{display:flex;flex-wrap:wrap;gap:6px;margin:4px 0 10px}
.oadd h3,.oadd .oq-lab{font-size:14px;margin:14px 0 4px}
.oadd .oq-lab{font-weight:700}
.oadd #oup{width:100%;margin-top:8px}
.or-chip{display:inline-block;font-size:12px;font-weight:700;border-radius:999px;padding:2px 8px;background:#eee;color:#222}
.or-chip-received{background:#e8f0fe;color:#1a4a9e}
.or-chip-in_build,.or-chip-changes_requested{background:#fff4d6;color:#7a4e00}
.or-chip-company_review{background:#f3e8ff;color:#5b21b6}
.or-chip-live{background:#dcfce7;color:#166534}
.or-case{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-weight:700;letter-spacing:.02em}
#oadd-ok{border-color:#1a7f37}
#bwasearch{width:100%;margin:0 0 10px}
.or-brief{font-size:13px;margin-top:8px;line-height:1.45}
.or-brief b{display:inline-block;min-width:9em}

/* v102.7 Insurance & documents — Coming soon + stacked actions */
.soon-tag{display:inline-block;background:rgba(255,76,0,.18);color:#111111;font-size:11px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;padding:3px 8px;border-radius:6px;vertical-align:middle;margin-left:6px}
.btn-col{display:flex;flex-direction:column;align-items:stretch;gap:10px;margin-top:10px}
body.inapp .ov-ban .muted,.ov-ban .muted{color:#333333}
.btn-col .btn,.btn-col a.btn{width:100%;max-width:none;text-align:center;box-sizing:border-box;margin:0}
.ins-disc{margin:0;font-size:13px;line-height:1.45}
.soon-card .muted{margin:8px 0 0}

/* v102.9 company billing */
.bill-mod{margin-top:14px}
.bill-mod>b{display:block}
.bill-tier{display:block;width:100%;box-sizing:border-box;min-height:44px;margin:0 0 10px;padding:10px 12px;border:2px solid #111111;border-radius:10px;background:#fff;color:#111111;font-size:16px}
.bill-tog{display:flex;gap:10px;margin:0 0 8px}
.bill-tog .btn,
body.inapp .bill-tog .btn,
body.inapp .bill-tog .btn:not(.or),
body.inapp .bill-tog .btn.or{
  flex:1 1 0;width:auto;text-align:center;margin:0;min-height:48px;
  display:flex;align-items:center;justify-content:center;
  background:#fff;color:#111111;border:2px solid #111111;font-weight:600;box-shadow:none;filter:none
}
.bill-tog .btn.on,
body.inapp .bill-tog .btn.on,
body.inapp .bill-tog .btn.on:not(.or){
  background:#fff;color:#111111;border:3px solid #111111;font-weight:800
}
.bill-tog .btn:hover,
body.inapp .bill-tog .btn:hover{filter:none;background:#fff;color:#111111}
.bill-price{font-weight:800;color:#111111;margin:4px 0 10px}
.bill-custom{margin:8px 0 0;font-size:13px}
.bill-test{font-size:12px;margin:12px 0 0}

#plancard.bill-wrap,#bill-host{background:transparent;border:0;box-shadow:none;padding:0;margin:0}
body.inapp #plancard.bill-wrap,body.inapp #bill-host{background:transparent;border:0;box-shadow:none}
#plancard.bill-wrap>.bill-head{margin:0 0 8px}

.bill-promo{display:block;width:100%;box-sizing:border-box;min-height:44px;margin:0 0 10px;padding:10px 12px;border:2px solid #111111;border-radius:10px;background:#fff;color:#111111;font-size:16px}

/* v103.1 module paywalls */
#mod-locked{margin:12px 0}
#mod-locked .soon-tag{margin:0 0 8px}
#plancap{margin:8px 0}
#cmg-admin .row{display:flex}

.bill-overage{font-size:13px;margin:12px 0 0;line-height:1.45}
.ov-ban{margin:8px 0}
.ov-ban .btn-col{margin-top:8px}

/* v103.3: list-page primary actions stay full width on desktop */
#app a#onew, #app button#roadd{
  display:block;width:100%;max-width:none;box-sizing:border-box;
}

/* v103.6: live password-rule hints on sign-up, reset, and change-password */
.pwhint{list-style:none;margin:6px 0 0;padding:0;font-size:13px;line-height:1.45}
.pwhint li{position:relative;padding:2px 0 2px 22px;color:#5f5f5f}
.pwhint li:before{content:"○";position:absolute;left:0;top:2px;font-size:12px;color:#8a8a8a}
.pwhint li.ok{color:#1a7f37}
.pwhint li.ok:before{content:"✓";color:#1a7f37;font-weight:700}
.pwhint li.bad{color:#111111}
.pwhint li.bad:before{content:"○";color:#d93636}
.pwhint-note{font-size:12px;margin:6px 0 0}

/* Standalone /terms, /privacy, and /legal/ pages (current live legal text) */
body.legal-doc{margin:0;background:var(--bg,#f6f3ee);color:var(--t,#1a1a1a);font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif}
.legal-doc-head{padding:20px 18px 0;max-width:800px;margin:0 auto}
.legal-doc-brand img{display:block;height:52px;width:auto}
.legal-doc-main{max-width:800px;margin:0 auto;padding:16px 18px 24px}
.legal-doc-note{margin:0 0 12px;font-size:13px}
.legal-doc-main h1{font-size:28px;margin:0 0 12px}
.legal-doc-index{font-size:16px;line-height:1.7;padding-left:20px}
.legal-doc-foot{max-width:800px;margin:0 auto;padding:8px 18px 40px;font-size:13px;color:#555}
.legal-doc-links{display:flex;flex-wrap:wrap;gap:8px 16px;margin:0 0 10px}
.legal-doc-foot a,.legal-doc-links a{color:#c2410c}

.thumb.pdf-thumb{background:#f3efe8;color:#1a1a1a;border:1px solid #e0d8cc}
.pdf-open{display:inline-flex;align-items:center;justify-content:center;gap:8px;margin-top:8px}
.dimgs .pdf-open{width:100%}
.viewer .pdf-open{background:#fff;color:#111;margin:12px auto}

/* v1072: long roster names and Help at 320px must not force sideways scroll */
#app{overflow-x:clip}
#rolist,.rolist,#app #rolist{max-width:100%}
#rolist .card.row{max-width:100%;box-sizing:border-box}
#rolist .grow,#rolist b,#rolist a.wlink{min-width:0;overflow-wrap:anywhere;word-break:break-word}
body[data-page="help"] #app,body[data-page="help"] .seg,body[data-page="help"] .wseg,body[data-page="help"] h2{max-width:100%;box-sizing:border-box}
body[data-page="help"] .seg{flex-wrap:wrap}
@media (max-width:360px){
  #nav{gap:0;padding:4px 2px calc(4px + env(safe-area-inset-bottom))}
  #nav a{font-size:9px;letter-spacing:-0.02em;padding:6px 1px;line-height:1.15;white-space:normal;overflow-wrap:anywhere;hyphens:auto;max-width:20%;flex:1 1 0;min-width:0;text-align:center;gap:2px}
  #nav a span{display:flex;flex-direction:column;align-items:center}
}

/* v1073: 320px nav labels, read-only plan controls, request toast, profile email, privacy link size */
@media (max-width:899px){
  #reqnote{top:calc(52px + env(safe-area-inset-top));bottom:auto;left:10px;right:10px;max-width:none}
}
body:has(#sig) #reqnote,body:has(#ostyped) #reqnote,body:has(.slide) #reqnote,body:has(.oplay-bar) #reqnote,body:has(#signerr) #reqnote{display:none!important}
select.bill-tier:disabled,.bill-tog button:disabled{opacity:.7;pointer-events:none;background:#f4f4f4;color:#444;appearance:none;cursor:default}
#app input,#set-profile,#set-profile .muted,body[data-page=profile] input{max-width:100%;box-sizing:border-box;min-width:0}
#set-profile .muted,#app input[type=email]{overflow-wrap:anywhere;word-break:break-word}
#app a[href*="oipc.ab.ca"],#app a[href*="priv.gc.ca"],.legal a[href*="oipc.ab.ca"],.legal a[href*="priv.gc.ca"],main a[href*="oipc.ab.ca"],main a[href*="priv.gc.ca"]{display:inline-flex;align-items:center;min-height:44px;padding:6px 0}
#signerr,.note.ierr{scroll-margin-top:64px}
#dfoot a[hidden]{display:none}

/* ===== v104.49 (stage 1116): app-ready batch ===== */
/* Item 8: one type scale for the whole app. Buttons and back buttons 16px, small buttons 15px, labels 14px, helper text 13px. */
:root{--fs-h1:24px;--fs-h2:22px;--fs-h3:17px;--fs-body:16px;--fs-btn:16px;--fs-btn-sm:15px;--fs-label:14px;--fs-help:13px}
#app h2{font-size:var(--fs-h2)}#app h3{font-size:var(--fs-h3)}
.btn{font-size:var(--fs-btn)}
.btn.sm{font-size:var(--fs-btn-sm)}
#app .bk,#app a.bk,.btn.bk,.legal-back{font-size:var(--fs-btn);min-height:44px;width:auto;display:inline-flex;align-items:center;padding:8px 14px;font-weight:600}
#app label{font-size:var(--fs-label)}
.pdf-open{font-size:var(--fs-btn)}
/* Item 4: header sits flush under the status bar. The strip under the clock is the header's own colour; the mark and the avatar share one centre line. */
@media (max-width:1023px){
  html.native-app header,html.native-app body.nobanner header,html.native-app body.inapp header,html.native-app body.prebar header{
    padding-top:6px;border-top:env(safe-area-inset-top,0px) solid #111111;min-height:calc(52px + env(safe-area-inset-top,0px));height:auto;box-sizing:border-box}
  header,body.inapp header,body.prebar header{align-items:center}
  header svg.hmount,body.inapp header svg.hmount,body.prebar header svg.hmount{top:0;bottom:0;margin:auto 0;height:36px;max-height:36px;width:auto;transform:none}
  body:has(#hav) header svg.hmount{right:58px}
  header #hav{align-self:center;margin-top:0!important;margin-bottom:0!important;top:auto!important;bottom:auto!important;transform:none!important}
}
html.native-app body{background:var(--navy)}
html.native-app #pgmtn{top:env(safe-area-inset-top,0px)}
html.native-app #nav{padding-bottom:calc(4px + env(safe-area-inset-bottom,0px))}
/* Old app builds showed their own reminders prompt on top of every page; the app now asks only after sign-in (see #pushcard). */
#bwa-native-push-prompt,#bwa-native-photo-sheet{display:none!important}
/* Item 6: document viewer */
#bwa-viewer{position:fixed;inset:0;z-index:2147483600;background:#111111;display:flex;flex-direction:column;color:#fff}
#bwa-viewer .bv-bar{display:flex;align-items:center;gap:10px;padding:calc(8px + env(safe-area-inset-top,0px)) calc(12px + env(safe-area-inset-right,0px)) 8px calc(12px + env(safe-area-inset-left,0px));background:#111111;border-bottom:1px solid #2a2a2a}
#bwa-viewer .bv-title{flex:1;min-width:0;font-family:'Oswald',Arial,sans-serif;font-weight:600;font-size:var(--fs-h3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#bwa-viewer .bv-done{width:auto;min-width:88px;margin:0;color:var(--or-ink,#111111)}
#bwa-viewer .bv-dl{color:#fff;font-size:var(--fs-btn-sm);text-decoration:underline;padding:10px 4px}
#bwa-viewer .bv-body{flex:1;overflow:auto;-webkit-overflow-scrolling:touch;padding:8px 8px calc(16px + env(safe-area-inset-bottom,0px));display:flex;flex-direction:column;align-items:center;gap:8px;background:#2a2a2a}
#bwa-viewer .bv-page,#bwa-viewer .bv-img{max-width:100%;height:auto;background:#fff;display:block}
#bwa-viewer .bv-msg{color:#d4d4d4;margin:24px 12px;text-align:center}
html.viewer-open,html.viewer-open body{overflow:hidden}
.autofilled{box-shadow:0 0 0 2px #FFF4EC inset;background:#FFF4EC}
/* Item 14: tables. Never break inside a word. On small screens wide tables become one card per row. */
table td,table th{overflow-wrap:break-word;word-break:normal;hyphens:manual;-webkit-hyphens:manual}
@media (max-width:600px){
  table.stack,table.stack tbody,table.stack tr,table.stack td{display:block;width:100%;box-sizing:border-box}
  table.stack{border:0;min-width:0!important}
  table.stack tr.thead,table.stack tr:first-child:has(th){display:none}
  table.stack tr{border:1px solid #d4d4d4;border-radius:10px;margin:0 0 10px;padding:6px 10px;background:#fff}
  table.stack td{border:0!important;padding:4px 0!important;text-align:left!important}
  table.stack td[data-label]::before{content:attr(data-label);display:block;font-size:var(--fs-help);font-weight:700;color:#5F5F5F;text-transform:none;letter-spacing:0;margin-bottom:1px}
  .lgtbl,.admtbl{overflow-x:visible}
}
/* Item 13: legal pages (static /terms/ and /privacy/) get a back button and clear the status bar. */
body.legal-doc .legal-doc-head{display:flex;align-items:center;gap:12px;padding-top:calc(12px + env(safe-area-inset-top,0px))}
body.legal-doc .legal-back{border:1px solid #d4d4d4;border-radius:12px;background:#fff;color:#111111;text-decoration:none}
/* v104.49: in the app, a visible demo banner sits below the status bar; the header then needs no status-bar strip */
html.native-app .banner:not([hidden]){padding-top:5px;border-top:env(safe-area-inset-top,0px) solid #111111}
html.native-app body:not(.nobanner) header{border-top-width:0}
/* v104.50: completed-orientation rows: a long status badge wraps instead of widening the page at 320px */
.oc>div:last-child{min-width:0;max-width:58%;flex:0 1 auto}
.oc .badge{white-space:normal;display:inline-block;text-align:center;line-height:1.25}
/* v104.50: dashboard tile labels no smaller than 12px */
@media (max-width:1023px){.stat.stat4 a{font-size:12px}}
/* v104.50: legal pages use h2/h3 for sections (heading order); same look as before */
body.legal-doc .legal h2,body.legal-doc .legal h3{font-size:16px;font-weight:700;margin:14px 0 4px;line-height:1.55}
/* v104.50: accessible contrast for status colours (WCAG AA) */
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.badge.b-g,.b-g{background:#157a45}
.a{background:#a16207}
/* v104.51: amber attention label contrast (white on #a16207, 4.9:1) */
.attn.a{background:#a16207}
/* v104.52: phone bottom bar at 320-360px: never split a word ("Orientation s") */
@media (max-width:360px){
  #nav a{overflow-wrap:normal!important;word-break:keep-all!important;hyphens:none!important}
  #nav a span{white-space:nowrap}
}
/* v104.53: dashboard insurance review entry (only when something needs review) */
#insentry.ins-dash{margin:14px 0 6px}
#insentry.ins-dash .attn{margin-bottom:6px}
#insentry.ins-dash .card{display:block;margin:0}
/* v104.54: overlays stay clear of the status bar and home indicator; 44x44 Close */
.viewer{justify-content:flex-start;overflow-y:auto;-webkit-overflow-scrolling:touch;padding:calc(12px + env(safe-area-inset-top,0px)) calc(12px + env(safe-area-inset-right,0px)) calc(12px + env(safe-area-inset-bottom,0px)) calc(12px + env(safe-area-inset-left,0px))}
.viewer .vbar{position:sticky;top:0;z-index:2;flex:none}
.viewer .vimgs{margin-top:auto;margin-bottom:auto}
.viewer .vbar button,#bwa-viewer .bv-done{min-height:44px;min-width:44px}
.ask,.odlg-back{padding:calc(20px + env(safe-area-inset-top,0px)) calc(20px + env(safe-area-inset-right,0px)) calc(20px + env(safe-area-inset-bottom,0px)) calc(20px + env(safe-area-inset-left,0px));overflow-y:auto}
.ask-card,.odlg{max-height:100%;overflow-y:auto}
.img-fail{background:#fff;color:#111;border-radius:8px;padding:14px;text-align:center;margin:8px auto;max-width:420px}.img-fail p{margin:0 0 8px}
/* v104.55: Next-button wait choices on the Add new orientation form */
.obox-col{display:flex;flex-direction:column;align-items:flex-start;gap:6px;margin:4px 0 6px}
.obox-col .obox{border-radius:18px;max-width:100%}
/* v104.56: orientation videos */
.ovid{margin:0 0 12px}
.ovid-box{position:relative;width:100%;aspect-ratio:16/9;background:#111111;border-radius:10px;overflow:hidden;display:flex;align-items:center;justify-content:center}
.ovid-box video{width:100%;height:100%;display:block;background:#111111;object-fit:contain}
.ovid-load{color:#ffffff;font-size:13px}
.ovid-box .img-fail{background:#fff;color:#111;border-radius:8px;padding:10px;margin:10px}
.ovid-st{font-size:13px;margin-top:6px;min-height:18px}
.ovid-note{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:13px;margin:8px 0 0}
#ovids{max-width:100%;margin-top:4px}
#ovids-list ul{margin:6px 0 0 18px;padding:0;word-break:break-all}
.viewer .ovid{width:100%}
/* v104.56: poster headline "<Company> Orientation" is the one big title (Oswald 600), wraps to 2 balanced lines for long names */
.poster .poster-head{font-family:'Oswald','Arial Narrow',Arial,sans-serif;font-weight:600;line-height:1.1;margin:4px 0 12px;color:#fff;font-size:clamp(28px,8.6vw,46px);text-wrap:balance;overflow-wrap:break-word;hyphens:manual}
@media print{.poster .poster-head{font-size:48pt}}
.poster .poster-head.long{font-size:clamp(25px,7.4vw,40px)}
@media print{.poster .poster-head.long{font-size:40pt}}
/* v104.59 (M-4): upcoming legal version notice (legal pages, signed-in reminder) */
.legal-upcoming{background:#fff7e6;border:1px solid #e0a43a;color:#3a2a00;font-size:14px;line-height:1.45;margin:0 0 12px}
.legal-upcoming a{color:#7a4a00;text-decoration:underline}
/* ===== v104.62 (v1129) polish list ===== */
/* item 1: landing hero uses the same grey mountain range as the app screens */
.lp-hero{background:#111111 url(page-mountains.svg) no-repeat center bottom/min(1400px,140%) auto;position:relative}
@media(min-width:900px){.lp-hero{background-size:min(1500px,100%) auto}}
/* item 3 / v104.80 (v1147): QR poster actions — equal 2 x 2 cells at every width (same width and height, icons, one-line labels). */
.poster-acts{justify-content:center!important;width:100%}
#postacts.postgrid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:1fr;align-items:stretch;gap:10px;width:100%;max-width:440px;margin:4px auto 0;padding:0}
#postacts.postgrid>.btn{width:100%!important;max-width:none!important;height:100%;margin:0!important;min-height:50px;display:inline-flex;align-items:center;justify-content:center;gap:6px;white-space:nowrap;text-align:center;line-height:1.2;box-sizing:border-box;padding:12px 8px;font-size:16px}
#postacts.postgrid>.btn svg.ic{width:1.15em;height:1.15em;margin:0;flex:none}
#postacts.postgrid>.btn>span{min-width:0}
#pfmsg{max-width:440px;margin-left:auto!important;margin-right:auto!important}
/* item 6: segmented toggles span the full column, like the search bar and buttons */
.seg:not(#inslink),#rosub.seg,.seg.wseg{max-width:none!important;width:100%;box-sizing:border-box;margin-left:0;margin-right:0}
#rosub.seg a{flex:1 1 0}
/* item 7: group card Add people */
.gcard .gcount .gadd{flex:none;display:inline-flex;align-items:center;gap:4px}
.gcard .gcount .gadd .ic{width:16px;height:16px}
#gplist .gprow:last-child{border-bottom:0}
#gplist .gprow.gpin{opacity:.75}
/* item 13: Roster > Orientations tile */
.ror-card .ror-tab{width:100%;margin-top:8px;font-size:13px}
.ror-card .ror-tab th{font-size:11px}
/* item 15: modules you already have */
.bill-mod.bill-included .ib{flex:none}
.bill-change{margin-top:10px}
.bill-change>summary{list-style:none;display:flex;justify-content:center;width:100%;box-sizing:border-box;cursor:pointer}
.bill-change>summary::-webkit-details-marker{display:none}
.bill-change[open]>summary{margin-bottom:10px}
/* item 18: standalone buttons in Settings and its pages match the card column */
#app>.btn,#app>a.btn,#app>button.btn,#app>.bk,#app>a.bk-prev,#app .cfoot-btn,#app .btn-col>.btn{width:100%!important;max-width:none!important;box-sizing:border-box;margin-left:0!important;margin-right:0!important}
/* item 19: in-app legal pages are wider on big screens; tables scroll sideways on phones instead of squashing */
@media(min-width:900px){body[data-pg=privacy] main,body[data-pg=terms] main{max-width:920px!important}body[data-pg=privacy] #app .card.legal,body[data-pg=terms] #app .card.legal,body[data-pg=privacy] #app>*,body[data-pg=terms] #app>*{max-width:none!important}}
.legal table{display:block;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;border-collapse:collapse}
.legal table th,.legal table td{min-width:120px;vertical-align:top}
/* item 5: public /privacy/ and /terms/ pages look like the app: white header bar with the logo, dark page, grey mountains */
body.legal-doc{background:#111111;color:#fff;--t:#fff;--m:#d4d4d4;--bg:#111111;min-height:100vh;position:relative}
body.legal-doc .legal-doc-head{display:flex;align-items:center;gap:14px;max-width:none;margin:0;padding:10px 18px;padding-top:calc(10px + env(safe-area-inset-top,0px));background:#fff;color:#111111;position:relative;z-index:2;box-shadow:0 1px 0 rgba(0,0,0,.08)}
body.legal-doc .legal-doc-brand{display:inline-flex;align-items:center;gap:10px;text-decoration:none;color:#111111;flex:none}
body.legal-doc .legal-doc-tile{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;background:#111111;border-radius:9px;padding:5px;box-sizing:border-box}
body.legal-doc .legal-doc-tile img{width:100%;height:100%;object-fit:contain;display:block}
body.legal-doc .legal-doc-word{font-family:Oswald,system-ui,sans-serif;font-weight:600;font-size:17px;letter-spacing:.12em;text-transform:uppercase;white-space:nowrap}
body.legal-doc .legal-doc-nav{display:flex;flex-wrap:wrap;gap:4px;justify-content:center;flex:1;min-width:0}
body.legal-doc .legal-doc-nav[hidden]{display:none}
body.legal-doc .legal-doc-nav a{color:#111111;text-decoration:none;font-size:14px;font-weight:600;padding:8px 10px;border-radius:9px}
body.legal-doc .legal-doc-nav a.on{background:#fff1e6;box-shadow:inset 0 -2px 0 #FF4C00}
body.legal-doc .legal-doc-peaks{margin-left:auto;height:44px;width:auto;flex:none}
body.legal-doc .legal-doc-mtn{position:fixed;left:0;right:0;bottom:0;height:min(50vh,520px);background:url(../page-mountains.svg) no-repeat center bottom/100% auto;pointer-events:none;z-index:0}
body.legal-doc .legal-doc-main,body.legal-doc .legal-doc-foot{position:relative;z-index:1;max-width:920px}
body.legal-doc .legal-doc-main h1{color:#fff;font-family:Oswald,system-ui,sans-serif;font-weight:600}
body.legal-doc .legal-doc-main>p,body.legal-doc .legal-doc-main>.muted{color:#d4d4d4}
body.legal-doc .legal-doc-main>p a,body.legal-doc .legal-doc-index a{color:#FF4C00}
body.legal-doc .card.legal{background:#fff;color:#111111;border-radius:16px}
body.legal-doc .card.legal a{color:#9A2E00}
body.legal-doc .legal-back{display:flex;align-items:center;justify-content:center;width:100%;box-sizing:border-box;min-height:44px;margin:4px 0 12px;border:1px solid #d4d4d4;border-radius:12px;background:#fff;color:#111111;text-decoration:none;font-weight:600}
body.legal-doc .legal-doc-foot{color:#d4d4d4}
body.legal-doc .legal-doc-foot a,body.legal-doc .legal-doc-links a{color:#fff}
@media(max-width:760px){body.legal-doc .legal-doc-word{font-size:14px;letter-spacing:.08em}body.legal-doc .legal-doc-peaks{display:none}body.legal-doc .legal-doc-head{flex-wrap:wrap}body.legal-doc .legal-doc-nav{order:3;flex-basis:100%;justify-content:flex-start;overflow-x:auto;flex-wrap:nowrap}}
/* item 18 sweep: Settings and its pages: a card's own standalone button and text box fill the card */
:is(body[data-pg=settings],body[data-pg=about],body[data-pg=help],body[data-pg=insreq],body[data-pg=inssubs],body[data-pg=export],body[data-pg=profile],body[data-pg=report]) #app .card>:is(button.btn,a.btn):not(.sm):not(.fbc){width:100%!important;max-width:none!important;box-sizing:border-box;margin-left:0;margin-right:0}
:is(body[data-pg=settings],body[data-pg=about],body[data-pg=help],body[data-pg=insreq],body[data-pg=inssubs],body[data-pg=export],body[data-pg=profile],body[data-pg=report]) #app .card>textarea{max-width:none!important;width:100%;box-sizing:border-box}
/* v1129: bulk add email box spans the card */
#rimp{display:block;width:100%!important;max-width:none!important;min-height:120px;box-sizing:border-box;margin:0 0 8px}

/* v104.65: Insurance & documents cards: status only on the right, centred; expired cards get a small Replace link under the expiry line */
#app .witem .card.row{align-items:center;gap:12px}
#app .witem .wdoc-st{display:flex;align-items:center;justify-content:flex-end;flex:0 0 auto;align-self:center}
#app .witem .wdoc-repl{display:inline-block;margin-top:6px;font-size:13px;font-weight:600;color:#9A2E00;text-decoration:underline;min-height:24px;line-height:24px}
header svg.hmount.hm-off{display:none!important}
/* v104.65: authenticator app picker on the two-factor setup screen */
#app .mfa-pick{display:grid;grid-template-columns:1fr;gap:8px;margin:8px 0 0}
#app .mfa-pick[hidden]{display:none}
#app .mfa-pick .btn{width:100%;margin:0;justify-content:center;text-align:center}
/* v1160: restore the staged v1152/v1153 ridge (never published — v1155 was built from live v1149
   and put back the v104.67 “stay low” rule). Duston asked for the grey ridge to start just below
   the top bar and fill the screen behind the content. Layer is bottom-anchored; with top set,
   height:auto fills down to the bottom. Pointer-events stay none.
   v1153: mountain shapes at 75% of that height (Duston: “a bit smaller”, 70–80% of the v1152 scale)
   so the silhouette reads as peaks rather than full-bleed diagonal slabs. */
html.app-mode #pgmtn,html.native-app #pgmtn,html.bwa-native #pgmtn{top:var(--pgmtn-top,52px)!important;bottom:0!important;height:auto!important}
html.app-mode body:not(.nobanner) #pgmtn,html.native-app body:not(.nobanner) #pgmtn{top:var(--pgmtn-top,78px)!important}
html.app-mode body.nobanner #pgmtn,html.native-app body.nobanner #pgmtn{top:var(--pgmtn-top,calc(52px + env(safe-area-inset-top,0px)))!important}
@media (min-width:1024px){
  html.app-mode #pgmtn,html.native-app #pgmtn,html.desk-nav #pgmtn{top:var(--pgmtn-top,72px)!important}
  html.app-mode body:not(.nobanner) #pgmtn,html.native-app body:not(.nobanner) #pgmtn,html.desk-nav body:not(.nobanner) #pgmtn{top:var(--pgmtn-top,98px)!important}
  html.app-mode body.nobanner #pgmtn,html.native-app body.nobanner #pgmtn,html.desk-nav body.nobanner #pgmtn{top:var(--pgmtn-top,72px)!important}
}
html.bwa-native #pgmtn{top:var(--pgmtn-top,env(safe-area-inset-top,0px))!important}
html.bwa-native body:not(.nobanner) #pgmtn{top:var(--pgmtn-top,26px)!important}
html.app-mode #pgmtn svg,html.native-app #pgmtn svg,html.bwa-native #pgmtn svg{position:absolute;top:auto;bottom:0;left:50%;transform:translateX(-50%);height:75%;width:auto;min-width:0;max-height:75%}
/* v104.68: swipe-to-delete. The card narrows (no clipped text) and a rounded, full-height Delete action shows on the right. */
.swipe,.swipe:active,.swipe.swiping{background:transparent!important}
.swipe .card.sw{transform:none!important;transition:margin-right .26s cubic-bezier(.2,.8,.2,1)}
.swipe .trash{top:0;bottom:0;right:0;width:92px;border-radius:14px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:0;background:#b42318;color:#fff;font-size:13px;font-weight:700;letter-spacing:.01em;opacity:0;pointer-events:none;transition:opacity .15s;cursor:pointer}
.swipe .trash svg.ic{width:22px;height:22px;margin:0}
.swipe.open .trash,.swipe.swiping .trash,.swipe .trash:focus-visible{opacity:1;pointer-events:auto}
.swipe.gone{overflow:hidden;opacity:0;margin-bottom:0;transition:height .22s ease,opacity .18s ease,margin-bottom .22s ease}
/* Delete confirm as a bottom sheet (phone) */
.ask.ask-sheet{align-items:flex-end;padding:0}
.ask.ask-sheet .sheet-card{max-width:560px;width:100%;border-radius:20px 20px 0 0;padding:22px 20px calc(18px + env(safe-area-inset-bottom,0px));box-shadow:0 -8px 30px rgba(0,0,0,.25);animation:bwaSheetUp .22s cubic-bezier(.2,.8,.2,1)}
.ask.ask-sheet .ask-card b{font-size:18px;overflow-wrap:anywhere}
.ask.ask-sheet .ask-acts{flex-direction:column-reverse;gap:10px;margin-top:18px}
.ask.ask-sheet .ask-acts .btn{width:100%;min-height:50px;flex:none}
.ask.ask-sheet .btn.danger{background:#b42318;color:#fff;border:2px solid #b42318}
@keyframes bwaSheetUp{from{transform:translateY(100%)}to{transform:none}}
@media (min-width:1024px){.ask.ask-sheet{align-items:center;padding:20px}.ask.ask-sheet .sheet-card{max-width:400px;border-radius:16px}}
@media (prefers-reduced-motion:reduce){.ask.ask-sheet .sheet-card{animation:none}.swipe .card.sw,.swipe.gone{transition:none}}
/* iOS date inputs: same size, padding, font and left alignment as the other fields; never wider than the card. */
input[type=date],input[type=month],input[type=time],input[type=datetime-local]{-webkit-appearance:none;appearance:none;display:block;width:100%;max-width:100%;min-width:0;box-sizing:border-box;min-height:50px;height:50px;padding:13px;font-size:16px;line-height:1.25;text-align:left;background-color:#fff;border:1px solid #cccccc;border-radius:12px}
#app input[type=date]{max-width:min(100%,560px)}
input[type=date]::-webkit-date-and-time-value{text-align:left;margin:0;min-height:1.25em}
input[type=date]::-webkit-datetime-edit{padding:0}
/* v104.68: broker / certificate holder fields and "More details" on the document form */
#insfields textarea{display:block;width:100%;max-width:min(100%,560px);box-sizing:border-box;font-size:16px;padding:13px;border:1px solid #cccccc;border-radius:12px;background:#fff;color:#111111;font-family:inherit;resize:vertical;min-height:50px}
#insfields input,#insfields select{max-width:min(100%,560px);box-sizing:border-box}
#insfields details.dmore{margin-top:14px;border:1px solid #e3e3e3;border-radius:12px;padding:0 12px 12px;background:#fafafa}
#insfields details.dmore>summary{min-height:44px;display:flex;align-items:center;font-weight:700;cursor:pointer;color:#111111}
#insfields details.dmore>summary::marker{color:#9A2E00}

/* v104.78: Subscriptions store tiers stack name, price, period, then a full-width button.
   Same-row flex (.row + .grow + Subscribe/Switch/Current plan) wrapped the name one word per line
   and overlapped the price on narrow phones (~320–390px). */
#store-pay .store-tier{display:flex;flex-direction:column;align-items:stretch;flex-wrap:nowrap;gap:2px;padding:12px 0;width:100%;max-width:100%;min-width:0;box-sizing:border-box;float:none;position:relative}
#store-pay .store-tier-name,#store-pay .store-tier-price,#store-pay .store-tier-period{display:block;width:100%;max-width:100%;min-width:0;float:none;position:static;overflow-wrap:break-word;word-break:normal;hyphens:manual}
#store-pay .store-tier-name{font-weight:600;line-height:1.35}
#store-pay .store-tier-price{line-height:1.3;margin:2px 0 0}
#store-pay .store-tier-price .store-price{font-size:18px}
#store-pay .store-tier-period{margin:0 0 2px}
#store-pay .store-tier .btn,#store-pay .store-tier .btn.or,#store-pay .store-tier .btn.ghost{display:flex;width:100%;max-width:100%;min-width:0;margin:8px 0 0;padding:12px 16px;flex:none;align-self:stretch;float:none;position:static;box-sizing:border-box}

/* v104.80 (v1147): equal-size button pairs and groups (same rules as the QR poster 2 x 2 grid). */
.eqbtns,
.cert-acts,
.rep-acts:has(> :nth-child(2)){
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr));
  grid-auto-rows:1fr;
  align-items:stretch;
  gap:8px;
  width:100%;
  box-sizing:border-box
}
.eqbtns.eqbtns-4{grid-template-columns:repeat(2,minmax(0,1fr))}
@media (min-width:900px){.eqbtns.eqbtns-4{grid-template-columns:repeat(4,minmax(0,1fr))}}
.eqbtns>.btn,.eqbtns>a.btn,.eqbtns>button.btn,
.cert-acts>.btn,.cert-acts>a.btn,.cert-acts>button.btn,
.rep-acts:has(> :nth-child(2))>.btn,.rep-acts:has(> :nth-child(2))>a.btn,.rep-acts:has(> :nth-child(2))>button.btn{
  width:100%!important;
  max-width:none!important;
  height:100%;
  margin:0!important;
  min-height:50px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  white-space:nowrap;
  text-align:center;
  line-height:1.2;
  box-sizing:border-box;
  padding:12px 8px;
  font-size:16px
}
.eqbtns>.btn.sm,.eqbtns>a.btn.sm,.eqbtns>button.btn.sm,
.cert-acts>.btn.sm,.cert-acts>a.btn.sm,
.rep-acts:has(> :nth-child(2))>.btn.sm,.rep-acts:has(> :nth-child(2))>a.btn.sm,
#app .eqbtns>.btn.sm,#app .eqbtns>a.btn.sm,#app .eqbtns>button.btn.sm,
#app .cert-acts>.btn.sm,#app .cert-acts>a.btn.sm,
#app .rep-acts:has(> :nth-child(2))>.btn.sm,#app .rep-acts:has(> :nth-child(2))>a.btn.sm{
  min-height:44px;
  font-size:14px;
  padding:8px;
  line-height:1.2
}
.eqbtns>.btn svg.ic,.eqbtns>a.btn svg.ic,
.cert-acts>.btn svg.ic,.rep-acts:has(> :nth-child(2))>.btn svg.ic,
.rep-acts:has(> :nth-child(2))>a.btn svg.ic{
  width:1.15em;height:1.15em;margin:0;flex:none
}

/* v104.80 (v1147): stacked white cards keep the standard card gap (12px phone, 16px desktop).
   Settings zeros card margins and uses the heading for space between sections, so two cards
   under one heading (Insurance & documents and Verified by BWA) were touching. */
html.app-mode body[data-pg=settings] #cset-stack #cset-ins .card + .card,
body[data-pg=settings] #cset-stack #cset-ins .card + .card,
html.app-mode body[data-pg=settings] #cset-stack #insentry + .card,
body[data-pg=settings] #cset-stack #insentry + .card,
html.app-mode body[data-pg=settings] #app > .card + .card,
body[data-pg=settings] #app > .card + .card{
  margin-top:12px
}
@media (min-width:900px){
  html.app-mode body[data-pg=settings] #cset-stack #cset-ins .card + .card,
  body[data-pg=settings] #cset-stack #cset-ins .card + .card,
  html.app-mode body[data-pg=settings] #cset-stack #insentry + .card,
  body[data-pg=settings] #cset-stack #insentry + .card,
  html.app-mode body[data-pg=settings] #app > .card + .card,
  body[data-pg=settings] #app > .card + .card{margin-top:16px}
}
/* Your plan: Verified by BWA sits after module blocks that have no bottom margin. */
#plancard.bill-wrap > .soon-card,
#bill-host > .soon-card{margin-top:14px}

/* v1147 wp-groups: group chips on the company-view worker detail */
#wpgroups-sec{margin:0}
#wpgroups-sec h3{margin-top:16px}
#wpgroups .wp-gchips{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
#wpgroups .wp-gchip{display:inline-flex;align-items:center;gap:4px;font-size:12px;letter-spacing:0;padding:4px 8px}
#wpgroups .wp-gchip .wp-grm{appearance:none;-webkit-appearance:none;border:0;background:transparent;color:inherit;font-size:16px;line-height:1;padding:0 0 0 2px;margin:0;cursor:pointer;font-weight:700}
#wpgroups .wp-gchip .wp-grm:focus{outline:2px solid var(--or);outline-offset:2px;border-radius:4px}

/* v1149: inside the native iPhone shell the app draws its own top bar and tab bar. */
html.bwa-native #hdr,
html.bwa-native #nav,
html.bwa-native #dfoot { display: none !important; }
html.bwa-native #app { padding-top: max(12px, env(safe-area-inset-top)); background: transparent; }
html.bwa-native #applock { display: none !important; }

/* Sign in with Apple / Google, under the email form: thin "or" divider, Apple (black, white logo and text, Apple HIG)
   then Google (white, #747775 stroke, #1F1F1F text, Google Sans Medium, full-colour G: Google branding guidelines
   2026-07-07). Same size; small grey notice with the Terms and Privacy links underneath. */
@font-face{font-family:'BWA Google Sans';font-style:normal;font-weight:500;font-display:swap;src:url(fonts/google-sans-500-latin.woff2) format('woff2')}
.oauth{margin:20px 0 0}
.oauth-or{display:flex;align-items:center;gap:12px;margin:0 0 16px;color:#555;font-size:13px;line-height:1}
.oauth-or::before,.oauth-or::after{content:'';flex:1;height:1px;background:#e2e2e2}
.oauth-btns{display:flex;flex-direction:column;gap:12px}
.oauth-btn{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:50px;margin:0;padding:0 16px;border-radius:12px;font-size:17px;line-height:1.2;letter-spacing:0;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:background-color .15s,box-shadow .15s,opacity .15s}
.oauth-btn .oa-ic{flex:none;width:18px;height:18px}
.oauth-btn:focus-visible{outline:3px solid #FF4C00;outline-offset:2px}
.oauth-btn:disabled{cursor:default;opacity:.55}
.oauth-btn.busy{opacity:1}
.oauth-btn.busy .oa-ic{animation:oa-pulse 1s ease-in-out infinite}
@keyframes oa-pulse{50%{opacity:.35}}
@media (prefers-reduced-motion:reduce){.oauth-btn.busy .oa-ic{animation:none}}
.oauth-apple{background:#000;color:#fff;border:1px solid #000;font-family:-apple-system,BlinkMacSystemFont,'SF Pro Text','Helvetica Neue',Arial,sans-serif;font-weight:600}
.oauth-apple .oa-ic{width:17px;height:20px;margin-top:-3px}
.oauth-apple:hover:not(:disabled){background:#1d1d1f}
.oauth-google{background:#fff;color:#1F1F1F;border:1px solid #747775;font-family:'BWA Google Sans','Google Sans',Roboto,Arial,sans-serif;font-weight:500;font-size:16px}
.oauth-passkey{background:#fff;color:#111;border:1px solid #747775;font-family:inherit;font-weight:600}
.oauth-passkey svg{flex:none;width:18px;height:18px}
.oauth-passkey:hover:not(:disabled){background:#f6f6f6}
.oauth-google:hover:not(:disabled){background:#F8FAFF;box-shadow:0 1px 2px rgba(60,64,67,.3),0 1px 3px 1px rgba(60,64,67,.15)}
.oauth-err:empty{display:none}
/* Login: "Forgot password?" right-aligned directly under the password field. */
/* Visually tight (13px), but the tap area stays about 40px tall through padding pulled back by negative margins. */
#app #forgot.oauth-forgot{display:block;width:max-content;margin:-3px -8px -6px auto;padding:10px 8px!important;min-height:0;font-size:13px;line-height:1.4;text-align:right}
.oauth-err{margin:10px 0 0;text-align:center}
/* #555 on white = 7.5:1; links use the brand link colour (#9A2E00, 8.6:1). */
.oauth-notice{margin:14px 0 0;color:#555;font-size:12.5px;line-height:1.5;text-align:left}
.oauth-notice a{color:#9A2E00;text-decoration:underline;text-underline-offset:2px}
.oauth-note{font-weight:600;border-left:5px solid #dc2626}
.oauth-note.info{border-left-color:#6b7280;font-weight:500}
.oauth-delnote{margin:8px 0 0;font-size:13px;line-height:1.5;font-weight:400}
.oauth-who{display:flex;align-items:center;gap:12px}
.oauth-who .grow,.oauth-mrow .grow{min-width:0}
.oauth-addr{font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.oauth-mark{flex:none;display:flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:50%}
.oauth-mark.oauth-apple{background:#000;color:#fff;border:0}
.oauth-mark.oauth-google{background:#fff;border:1px solid #dadce0}
.oauth-mark.oauth-email{background:#f2f2f2;color:#111;border:0}
.oauth-mark .oa-ic{width:18px;height:18px}
.oauth-kind{margin:0 0 14px;font-size:14px;line-height:1.5;color:#333}
.oauth-link{display:inline;margin:0;padding:0;min-height:0;width:auto;border:0;background:none;color:#9A2E00;font:inherit;text-decoration:underline;text-underline-offset:2px;cursor:pointer}
.oauth-link:focus-visible{outline:2px solid #FF4C00;outline-offset:2px;border-radius:3px}
.oauth-opt-tag{font-weight:400;color:#555;font-size:12px;margin-left:4px}
.oauth-help{font-size:12px;margin:6px 0 0;line-height:1.45}
.oauth-center{text-align:center}
#oacancel+.oauth-help{margin-top:12px}
.oauth-mrow{display:flex;align-items:center;gap:12px;padding:10px 0}
.oauth-mrow+.oauth-mrow{border-top:1px solid #eee}
.oauth-mrow .oauth-unlink{flex:none;width:auto;margin:0;padding:0 14px;min-height:36px}
.oauth-ok{color:#14532d;font-size:13px;margin:10px 0 0}
/* "Finish creating your account" has no Back bar above the title: keep it clear of the status bar / Dynamic
   Island in the iPhone shells and give it the same breathing room as the other sign-in screens. */
body[data-pg=oauth-finish] #app>.oauth-title{margin-top:18px}
html.bwa-native body[data-pg=oauth-finish] #app{padding-top:calc(env(safe-area-inset-top,0px) + 12px)}
html.bwa-native body[data-pg=oauth-finish] #app>.oauth-title{margin-top:16px}

/* v1160: grey page-range mountains stay behind content in the native shell too
   (footer is already hidden; do not hide #pgmtn). The layer starts just below the top bar
   and fills to the bottom; the SVG is 75% of that height, bottom-anchored. */
html.bwa-native #pgmtn{display:block!important}

/* v1154 / v1160: also restore typography dropped when v1155 was built from live v1149.
   Status badge above a date line — breathing room; employer/company
   subtitle on white cards is brand muted #5F5F5F (6.39:1, WCAG AA). */
.expstack{display:inline-flex;flex-direction:column;align-items:flex-end;justify-content:flex-start;gap:6px;text-align:right;line-height:1.3;vertical-align:top}
.expstack-d{display:block;font-size:11px;color:#5f5f5f;line-height:1.3;margin:0}
html.app-mode .card .expstack-d,body.inapp .card .expstack-d,html.app-mode .card .expstack .muted{color:#5f5f5f}
#app .wemp,html.app-mode .wemp,body.inapp .wemp,html.app-mode .card .wemp,body.inapp .card .wemp{
  color:#5f5f5f;font-size:11px;line-height:1.35;margin-top:3px
}

/* v1160: Needs attention / Team worker subtitle stays on one line (ellipsis), no lone "Ltd." wrap. */
/* List tables: right-align the Expires column, drop the last-row rule, a little more row padding. */
#app .itab th:last-child,#app .itab td:last-child,
#app .otab th:last-child,#app .otab td:last-child{text-align:right}
#app .itab td,#app .otab td{padding-top:10px;padding-bottom:10px}
#app .itab tr:last-child td,#app .otab tr:last-child td,
#app table.ins tr:last-child td{border-bottom:0}
#app .itab th:first-child,#app .itab td:first-child{width:38%}
#app .itab th:last-child,#app .itab td:last-child{width:1%;white-space:nowrap}
table.ins td,table.ins th{padding:8px 6px}
table.itab,table.otab{table-layout:fixed;width:100%}
table.itab th:nth-child(1),table.itab td:nth-child(1),
table.otab th:nth-child(1),table.otab td:nth-child(1){width:38%;overflow:hidden;max-width:0}
table.itab .wlink,table.otab .wlink{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
table.itab .wemp,table.otab .wemp,table .wemp{
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;
  font-size:11px;line-height:1.35;margin-top:3px;color:#5f5f5f
}

/* v1160: expStack / list tables must fit inside the card at 320px and 390px.
   The approved 1154 last-column rule (width:1%;white-space:nowrap) is kept
   above for the carry-forward ledger. With table-layout:fixed that 1% width
   clipped "Expires", badges and dates. These later rules win. */
#app table.itab,#app table.otab,#app table.wtab{
  table-layout:fixed;width:100%;max-width:100%;box-sizing:border-box
}
#app table.itab th,#app table.itab td,
#app table.otab th,#app table.otab td,
#app table.wtab th,#app table.wtab td{
  padding-left:6px;padding-right:6px;box-sizing:border-box
}
#app table.itab th:first-child,#app table.itab td:first-child,
#app table.otab th:first-child,#app table.otab td:first-child,
#app table.wtab th:first-child,#app table.wtab td:first-child{padding-left:6px}
#app table.itab th:last-child,#app table.itab td:last-child,
#app table.otab th:last-child,#app table.otab td:last-child,
#app table.wtab th:last-child,#app table.wtab td:last-child{padding-right:6px}
/* Expires / status: size to the stacked "Expires soon" badge + date */
#app table.itab th:last-child,#app table.itab td:last-child,
#app table.otab th:last-child,#app table.otab td:last-child{
  width:8.25rem;max-width:8.25rem;text-align:right;
  overflow:visible;overflow-wrap:normal;word-break:normal;hyphens:manual
}
#app table.itab td:last-child,#app table.otab td:last-child{white-space:nowrap}
#app table.itab th:last-child,#app table.otab th:last-child{white-space:normal}
/* Item wraps; Worker stays ellipsised */
#app table.itab th:nth-child(2),#app table.itab td:nth-child(2){
  width:auto;white-space:normal;overflow:visible;overflow-wrap:break-word;word-break:normal
}
#app table.itab th:first-child,#app table.itab td:first-child{
  width:32%;overflow:hidden;max-width:0
}
#app table.otab th:first-child,#app table.otab td:first-child,
#app table.otab th:nth-child(2),#app table.otab td:nth-child(2){
  overflow:hidden
}
#app table.wtab th:first-child,#app table.wtab td:first-child{
  width:32%;overflow:hidden;max-width:0
}
#app table.wtab th:nth-child(2),#app table.wtab td:nth-child(2){
  width:5rem;white-space:nowrap;overflow:hidden
}
#app table.wtab th:last-child,#app table.wtab td:last-child{
  width:auto;white-space:normal;overflow:visible;overflow-wrap:break-word;text-align:left
}
#app table.wtab .btn.sm{max-width:100%;white-space:normal}
#app table.wtab .expstack,#app table.itab .expstack,#app table.otab .expstack{
  max-width:100%
}
#app table.itab .wlink,#app table.otab .wlink,#app table.wtab .wlink{
  display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap
}

/* v1160: ticket viewer — reserved front/back boxes so the layout does not jump;
   footer stays put; overlay sits above the tab bar. */
html.viewer-open #nav{z-index:1}
.viewer .vfoot{flex:none;color:#d4d4d4;text-align:center;padding:10px;font-size:14px}
.viewer .vimgs{width:100%;max-width:560px;align-self:center}
.viewer .vslot{width:100%;aspect-ratio:900/560;background:#1a1a1a;border-radius:8px;overflow:hidden;display:flex;align-items:center;justify-content:center;position:relative}
.viewer .vslot img{width:100%;height:100%;object-fit:contain;background:#fff;margin:0;max-height:none;border-radius:0;display:block}
.viewer .vslot .vsk{position:absolute;inset:0;background:linear-gradient(90deg,#1a1a1a 0%,#2a2a2a 50%,#1a1a1a 100%);background-size:200% 100%;animation:bwaSk 1.1s linear infinite}
@keyframes bwaSk{to{background-position:-200% 0}}
.viewer .vslot-fail{aspect-ratio:auto;min-height:120px;background:transparent}
.viewer .vslot-fail .img-fail{margin:0;width:100%;max-width:none;box-sizing:border-box}

/* v1160: viewer / modal top bars match the main in-app header
   (52px on phones, 6px 10px padding, same safe-area treatment). Close stays
   BWA black (#111111), never iOS system blue, 44px target, vertically centred.
   Full-screen overlays always honour safe-area (they cover the status bar).
   Height is locked so the 44px Close can overflow the 6px padding by 2px
   without growing the bar past the main header. */
.viewer{padding:0 0 calc(12px + env(safe-area-inset-bottom,0px)) 0}
.viewer .vbar{
  position:sticky;top:0;left:0;right:0;z-index:2;flex:none
}
.viewer .vimgs{padding:12px 12px 0;box-sizing:border-box}
.viewer .vfoot{padding-left:12px;padding-right:12px;padding-bottom:calc(10px + env(safe-area-inset-bottom,0px))}
@media (max-width:1023px){
  .viewer .vbar,body.inapp .viewer .vbar,html.app-mode .viewer .vbar,
  #bwa-viewer .bv-bar{
    display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:8px;
    box-sizing:border-box;width:100%;margin:0;left:0;right:0;top:0;
    overflow:visible;
    padding:6px 10px;
    padding-top:calc(6px + env(safe-area-inset-top,0px));
    height:calc(52px + env(safe-area-inset-top,0px));
    min-height:calc(52px + env(safe-area-inset-top,0px));
    background:#fff;color:#111111;
    border:0;border-bottom:0;box-shadow:0 1px 0 rgba(0,0,0,.08)
  }
  html.native-app .viewer .vbar,
  html.native-app body.nobanner .viewer .vbar,
  html.native-app #bwa-viewer .bv-bar,
  html.native-app body.nobanner #bwa-viewer .bv-bar{
    padding-top:6px;
    border-top:env(safe-area-inset-top,0px) solid #111111;
    height:calc(52px + env(safe-area-inset-top,0px));
    min-height:calc(52px + env(safe-area-inset-top,0px))
  }
}
@media (min-width:1024px){
  .viewer .vbar,body.inapp .viewer .vbar,#bwa-viewer .bv-bar{
    display:flex;align-items:center;justify-content:space-between;gap:8px;
    box-sizing:border-box;width:100%;left:0;right:0;margin:0;
    min-height:72px;height:72px;padding:0 40px;
    background:#fff;color:#111111
  }
}
.viewer .vbar b{
  flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  font-size:18px;font-weight:600;line-height:1.2;color:#111111;letter-spacing:0
}
#bwa-viewer .bv-title{
  color:#111111;-webkit-text-fill-color:#111111
}
#bwa-viewer .bv-dl{color:#9A2E00;-webkit-text-fill-color:#9A2E00}
.viewer .vbar button.vclose,
.viewer .vbar button:not(.btn),
body.inapp .viewer .vbar button.vclose,
body.inapp .viewer .vbar button:not(.btn){
  appearance:none;-webkit-appearance:none;
  flex:none;display:inline-flex;align-items:center;justify-content:center;gap:6px;
  height:44px;min-height:44px;min-width:44px;margin:0;padding:0 12px;
  border:0;border-radius:12px;background:#fff;color:#111111;
  -webkit-text-fill-color:#111111;
  font-family:inherit;font-size:16px;font-weight:600;line-height:1;cursor:pointer;
  box-shadow:none
}
.viewer .vbar button.vclose svg.ic,
.viewer .vbar button:not(.btn) svg.ic,
body.inapp .viewer .vbar button svg.ic{
  width:20px;height:20px;margin:0;flex:none;stroke:#111111;color:#111111
}
.viewer .vbar button.vclose:focus-visible,
#bwa-viewer .bv-done:focus-visible{
  outline:2px solid #FF4C00;outline-offset:2px
}
/* File viewer Done is already the orange brand button; keep ink #111, not iOS blue. */
#bwa-viewer .bv-done{
  appearance:none;-webkit-appearance:none;
  color:#111111;-webkit-text-fill-color:#111111
}
/* Links on dark overlays stay brand orange; links on white sheets stay burnt orange, never default blue. */
.viewer a:not(.btn):not(.vclose),.odlg a:not(.btn){color:#FF4C00}
.ask a:not(.btn),#mfa-prompt a:not(.btn){color:#9A2E00}
.btn,a.btn,button.btn{appearance:none;-webkit-appearance:none}

/* v1160: exact-email match row on Add & invite people. */
#ra-match,#ra-names{margin:10px 0 0}
#ra-match[hidden],#ra-names[hidden]{display:none}
#ra-match .ra-hit,#ra-names .ra-hit{display:flex;align-items:center;gap:10px;padding:10px 12px;background:#f4f4f4;border-radius:12px;color:#111111}
#ra-match .ra-hit b,#ra-names .ra-hit b{display:block;font-size:14px;font-weight:600;color:#111111}
#ra-match .ra-hit .btn,#ra-names .ra-hit .btn,#ra-names .ra-sug .btn{flex:none;appearance:none;-webkit-appearance:none;color:#111111;-webkit-text-fill-color:#111111;pointer-events:none}
#ra-names{display:flex;flex-direction:column;gap:6px}
#ra-names .ra-sug{width:100%;margin:0;text-align:left;border:0;cursor:pointer;appearance:none;-webkit-appearance:none;font:inherit;background:#f4f4f4}
#ra-names .ra-hit-off{opacity:.72}

#findme-card .tog{flex:none;margin-top:2px}
#findme-reqs .findme-req{margin:0 0 10px}
#ra-names .ra-find{align-items:center}
/* v104.96 (build 9 simulator check): in the iPhone app the status-bar safe area always has a solid #111111 backing
   that stays above page content while scrolling or typing (the app also draws one natively). With the demo banner
   showing, the banner carries that strip, so the header is the normal 52px (it was 52px + the safe area, a tall white bar)
   and, once the banner scrolls away, the sticky header pins just under the strip instead of under the clock. */
html.native-app body::before{content:"";position:fixed;left:0;right:0;top:0;height:env(safe-area-inset-top,0px);background:#111111;z-index:2147483000;pointer-events:none}
@media (max-width:1023px){
  html.native-app body:not(.nobanner) header,html.native-app.app-mode:not(.desk-nav) body:not(.nobanner) header{min-height:52px;height:52px;padding-top:6px;border-top-width:0;top:env(safe-area-inset-top,0px)}
}
/* While the keyboard is up (html.bwa-kb, set by the app) the bottom tab bar is hidden so it does not ride on the keyboard. */
html.bwa-kb #nav,html.bwa-kb #dfoot{display:none!important}
/* v104.96 (GBCO-43): Request documents + Document requests list + answering a request */
.dr-bar{margin:4px 0 14px}.dr-bar .btn{width:100%}
.dr-sub{font-size:12px;line-height:1.4;margin:4px 0 0}
.dr-h{margin:20px 0 8px;display:flex;align-items:baseline;gap:8px}.dr-count{font-size:13px;font-weight:400}
.dr-h4{margin:16px 0 8px;font-size:14px;color:#5f5f5f}
.dr-row{margin:0 0 8px}.dr-top{justify-content:space-between;gap:8px;align-items:flex-start;flex-wrap:nowrap}
.dr-who{min-width:0}.dr-who b,.dr-mail{overflow-wrap:anywhere;word-break:break-word}.dr-who .dr-mail{font-size:12px}
.dr-types{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0 2px}
.dr-chip{display:inline-block;font-size:12px;font-weight:600;padding:2px 8px;border-radius:999px;background:#f1f1f1;color:#1a1a1a;max-width:100%;overflow-wrap:anywhere}
.dr-act{gap:8px;margin-top:10px;flex-wrap:wrap}.dr-act .btn{flex:1 1 120px;min-height:40px}
.dr-note{color:#7a5800}.dr-flash{margin:0 0 10px;border-left:4px solid #ff4c00}
.dr-fs{border:1px solid #e2e2e2;border-radius:8px;padding:8px 12px 10px;margin:12px 0}.dr-fs legend{font-weight:700;padding:0 4px}
.dr-check{display:flex;align-items:center;gap:10px;margin:8px 0;font-weight:400;min-height:32px}.dr-check input{width:20px;height:20px;margin:0;flex:none}
.dr-ask .dr-ul{margin:6px 0 10px;padding-left:22px}.dr-msg{white-space:pre-line;background:#f7f7f7;border-left:4px solid #ff4c00;padding:8px 12px;margin:4px 0 8px;overflow-wrap:anywhere}
.dr-pick{display:flex;gap:12px;align-items:flex-start;margin:0 0 8px;cursor:pointer}.dr-pick input{width:20px;height:20px;margin:2px 0 0;flex:none}.dr-pick .grow{min-width:0}.dr-pick .dr-sub{display:block}
.dr-pick.dr-done{opacity:.7}
html.dark .dr-chip,body.dark .dr-chip{background:#2a2a2a;color:#eee}
.dr-form label{margin-top:10px}.dr-form textarea{font-family:inherit;font-size:16px;line-height:1.4;width:100%;resize:vertical}
.dr-form .dr-fs legend{color:inherit}
/* v104.96: Team tracking tables show the whole worker name (it wraps instead of "Vivian Resea…"), and the
   group / status / sort filters fit on phones (two side by side, sort on its own line) instead of "Any statu". */
#app table.itab .wlink,#app table.otab .wlink,#app table.wtab .wlink{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;line-height:1.3}
#app table.itab .wemp,#app table.otab .wemp,#app table .wemp{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}
table.itab th:nth-child(1),table.itab td:nth-child(1),table.otab th:nth-child(1),table.otab td:nth-child(1){overflow:visible}
@media (max-width:519px){
  #app .epcfilt,#app .rofilt{flex-wrap:wrap}
  #app .epcfilt select,#app .rofilt select{flex:1 1 calc(50% - 3px)!important;min-width:0}
  #app .epcfilt select:last-child,#app .rofilt select:last-child{flex-basis:100%!important}
}

/* v104.96: at desktop type size (14px) the Oriented YYYY-MM-DD date is 3px wider than the 5rem column and was clipped. */
#app table.wtab th:nth-child(2),#app table.wtab td:nth-child(2){width:6rem;min-width:6rem;overflow:visible}
/* Request documents form: keep a focused field from sliding under the sticky header. */
.dr-form input,.dr-form textarea,.dr-form fieldset{scroll-margin-top:64px}
html.native-app .dr-form input,html.native-app .dr-form textarea,html.native-app .dr-form fieldset{scroll-margin-top:calc(env(safe-area-inset-top,0px) + 64px)}

/* v104.97 (5 Dec 2026): documents open inline. Solid backdrop, PDF pages drawn inside the viewer, Not on your Team badge. */
.viewer,#bwa-viewer{background:#111111}
.viewer .vslot.vpdf{aspect-ratio:auto;height:min(64vh,520px);background:#2a2a2a;border-radius:8px;display:flex}
.viewer.viewer-pdf{overflow:hidden}
.viewer.viewer-pdf .vimgs{flex:1 1 auto;min-height:0;max-height:none;width:100%;max-width:none;align-self:stretch;margin:0;padding:0;overflow:hidden;display:flex;flex-direction:column;gap:0}
.viewer.viewer-pdf .vslot.vpdf{flex:1 1 auto;min-height:0;height:auto;border-radius:0}
.viewer.viewer-pdf .vfoot{padding-top:8px;padding-bottom:calc(10px + env(safe-area-inset-bottom,0px))}
.pdfv{position:relative;display:flex;flex-direction:column;align-items:stretch;flex:1 1 auto;min-height:0;width:100%;background:#2a2a2a;overflow:hidden;text-align:left}
.pdfv [hidden]{display:none!important}
.pdfv-scroll{flex:1 1 auto;width:100%;min-height:0;overflow:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;touch-action:pan-x pan-y;background:#2a2a2a;padding:8px 8px 0;box-sizing:border-box}
.pdfv-scroll:focus-visible{outline:2px solid #FF4C00;outline-offset:-2px}
.pdfv-pages{margin:0 auto;width:100%}
.pdfv-page{display:block;width:100%;height:auto;background:#fff;margin:0 0 8px;box-shadow:0 1px 4px rgba(0,0,0,.45)}
.pdfv-more{color:#d4d4d4;font-size:13px;text-align:center;margin:8px 0 16px}
.pdfv-load{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;background:#2a2a2a;color:#d4d4d4;font-size:14px;z-index:1}
.pdfv-spin{width:34px;height:34px;border-radius:50%;border:3px solid #444444;border-top-color:#FF4C00;animation:pdfvSpin .8s linear infinite}
@keyframes pdfvSpin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.pdfv-spin{animation:none;border-color:#FF4C00}}
.pdfv-bar{flex:none;width:100%;box-sizing:border-box;display:flex;align-items:center;gap:8px;padding:8px 12px;background:#111111;border-top:1px solid #2a2a2a;color:#fff}
.pdfv-b{appearance:none;-webkit-appearance:none;flex:none;display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:44px;height:44px;padding:0 12px;border:0;border-radius:12px;background:#fff;color:#111111;-webkit-text-fill-color:#111111;font-family:inherit;font-size:20px;font-weight:600;line-height:1;cursor:pointer}
.pdfv-b svg.ic{width:18px;height:18px;margin:0;stroke:#111111;color:#111111}
.pdfv-b:disabled{opacity:.4;cursor:default}
.pdfv-b:focus-visible{outline:2px solid #FF4C00;outline-offset:2px}
.pdfv-save{margin-left:auto;font-size:15px}
.pdfv-info{flex:1 1 auto;min-width:0;text-align:center;color:#d4d4d4;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pdfv-info:empty{display:none}
.pdfv-fail{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;padding:24px;text-align:center;color:#fff;background:#2a2a2a}
.pdfv-fail p{margin:0;max-width:320px}
.pdfv-fa{display:flex;gap:8px;flex-wrap:wrap;justify-content:center}
#bwa-viewer .bv-body.is-pdf{padding:0;overflow:hidden;display:flex;flex-direction:column;align-items:stretch;gap:0}
#bwa-viewer .bv-body.is-pdf>div{flex:1 1 auto;min-height:0;display:flex}
#bwa-viewer .bv-body.is-pdf .pdfv{flex:1 1 auto;height:auto}
.nt-row{margin:4px 0 2px}
.nt-row.nt-top{margin:8px 0 10px}
.nt-badge{display:inline-block;max-width:100%;box-sizing:border-box;padding:3px 10px;border-radius:10px;background:#111111;color:#ffffff;-webkit-text-fill-color:#ffffff;font-size:12px;font-weight:700;line-height:1.3;letter-spacing:.2px;white-space:nowrap;overflow:visible}
table .nt-badge{font-size:11px;padding:3px 8px;white-space:normal;line-height:1.25;text-align:left;overflow-wrap:normal;word-break:normal}
.nt-row{max-width:100%}
.nt-top .nt-badge,.osr .nt-badge,.nt-badge[data-top]{white-space:nowrap}
#app table.wtab td:first-child,#app table.itab td:first-child,#app table.otab td:first-child{overflow:visible}

/* v104.98 (5 Dec 2026): Contractor companies — one labelled row per item, warnings stacked, count in the subline. */
#cdcolist .cdco{display:block;text-decoration:none;color:inherit;margin:0 0 8px}
#cdcolist .cdco > b{display:block;color:#111111;font-size:16px;font-weight:700;line-height:1.3;letter-spacing:0}
#cdcolist .cdco-sub{margin:4px 0 0;font-size:12px;line-height:1.4}
#cdcolist .cdco-rows{display:flex;flex-direction:column;gap:6px;margin-top:10px}
#cdcolist .cdco-row{display:flex;align-items:center;gap:8px;min-width:0}
#cdcolist .cdco-lab{flex:none;width:2.75em;font-size:12px;font-weight:700;color:#111111;line-height:1.2;letter-spacing:.02em}
#cdcolist .cdco-row .ib{flex:0 1 auto;min-width:0;max-width:100%;box-sizing:border-box;white-space:normal}
#cdcolist .ca-attn{display:flex;flex-direction:column;align-items:flex-start;gap:6px;margin-top:8px}
#cdcolist .ca-attn .ib{display:inline-block;max-width:100%;box-sizing:border-box;white-space:normal}

@media (max-width:899px){#cdcolist{padding-bottom:calc(16px + env(safe-area-inset-bottom,0px))}}
