:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,sans-serif;color:#172d3c;background:var(--bg);font-synthesis:none;--ink:#102f41;--accent:#2F6582;--line:#d9e3e7;--accent-ink:white;--accent-dark:var(--accent-dark);--tint:var(--tint);--tint2:var(--tint2);--head-ink:white;--head-muted:#c5dadd;--link:#2F6582;--bg:#f3f6f7}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer;border:1px solid var(--line);background:white;color:var(--ink);padding:.65rem 1rem;border-radius:9px;font-weight:600}button:hover{background:var(--tint)}button:disabled{opacity:.5;cursor:wait}.primary{background:var(--accent);color:var(--accent-ink);border-color:var(--accent)}.primary:hover{background:var(--accent-dark)}.danger{color:#9d2934}a{color:var(--link)}input,select,textarea{width:100%;padding:.7rem;border:1px solid #adbdc5;border-radius:7px;background:white;color:#172d3c}textarea{min-height:100px;resize:vertical}label{display:grid;gap:.4rem;font-size:.9rem;font-weight:600}label.check{display:flex;align-items:center;font-weight:400}input[type=checkbox]{width:20px;height:20px;accent-color:var(--accent)}h1{font-size:clamp(1.75rem,3vw,2.5rem);letter-spacing:-.04em;margin:.4rem 0}h2{font-size:1.2rem;margin:0 0 1rem}p{line-height:1.6}.muted,small{color:#576b76}.eyebrow{text-transform:uppercase;letter-spacing:.14em;font-size:.7rem;font-weight:800;color:var(--accent)}header{background:var(--ink);color:var(--head-ink);padding:1rem 3vw;display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap}header .brand{font-size:1.1rem;font-weight:750}header small{color:var(--head-muted)}.toolbar{display:flex;gap:.6rem;align-items:center;flex-wrap:wrap}.toolbar select{width:auto;max-width:360px}main{max-width:1440px;margin:0 auto;padding:2rem 3vw}.heading{display:flex;justify-content:space-between;align-items:end;gap:1rem;margin-bottom:1.4rem}.heading p{margin:.5rem 0}nav{display:flex;gap:.35rem;border-bottom:1px solid var(--line);margin-bottom:1.5rem;overflow:auto}nav button{border:0;background:transparent;border-radius:0;white-space:nowrap;padding:.9rem 1.15rem}nav button[aria-current=page]{border-bottom:3px solid var(--accent);color:var(--accent)}.cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem;margin:1.5rem 0}.card,.panel{background:white;border:1px solid var(--line);border-radius:14px;padding:1.3rem}.card strong{display:block;font-size:2.1rem;letter-spacing:-.04em;margin:.4rem 0}.card.warn{border-top:4px solid var(--warn)}.card.good{border-top:4px solid var(--accent)}.columns{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.empty{text-align:center;padding:3rem 1rem;color:#576b76}.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:12px;background:white}table{border-collapse:collapse;width:100%;font-size:.88rem}th,td{text-align:left;padding:.95rem 1rem;border-bottom:1px solid #e7edef;vertical-align:top}th{font-size:.72rem;text-transform:uppercase;letter-spacing:.04em;color:#536975;background:#edf3f4;white-space:nowrap}td small{display:block;margin-top:.3rem}tr:last-child td{border-bottom:0}.badge{display:inline-block;padding:.25rem .6rem;border-radius:20px;font-size:.75rem;white-space:nowrap;background:#e8f3ef;color:#196953}.badge.warn{background:#fff0d6;color:#885910}.badge.bad{background:#fce6e7;color:#992c35}.row-actions{display:flex;gap:.4rem}.row-actions button{font-size:.8rem;padding:.4rem .6rem}.login{max-width:460px;margin:7vh auto;background:white;border:1px solid var(--line);border-radius:18px;padding:2.2rem}.login form{display:grid;gap:1rem;margin:1.5rem 0}.login h1{font-size:2rem}.login .brand{color:var(--accent);font-weight:800}.login button{width:100%}.help{font-size:.85rem;color:#576b76}.error{color:#a12835;background:#fff0f0;border-radius:8px;padding:.8rem}.filter{max-width:340px}.list-item{padding:.9rem 0;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;gap:1rem}.list-item:last-child{border:0}.list-item small{display:block;margin-top:.3rem}footer{margin-top:2rem;color:#576b76;font-size:.8rem}dialog{width:min(760px,95vw);max-height:90vh;border:1px solid var(--line);border-radius:16px;padding:1.8rem;color:var(--ink)}dialog::backdrop{background:#102f4199}dialog form{display:grid;gap:1rem}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.wide{grid-column:1/-1}.form-actions{display:flex;justify-content:flex-end;gap:.6rem;padding-top:1rem}.form-error:empty{display:none}fieldset{border:1px solid var(--line);border-radius:8px;display:grid;gap:.7rem}legend{font-weight:700;font-size:.9rem}#notice{position:fixed;bottom:1.2rem;right:1.2rem;max-width:480px;background:var(--ink);color:white;border-radius:10px;padding:1rem;box-shadow:0 5px 25px #102f4133;z-index:5}#notice:empty{display:none}.skip{position:absolute;top:-50px;left:10px;background:white;padding:10px;z-index:10}.skip:focus{top:10px}:focus-visible{outline:3px solid var(--accent);outline-offset:3px}@media(max-width:800px){.cards{grid-template-columns:1fr 1fr}.columns{grid-template-columns:1fr}.heading{align-items:start;flex-direction:column}main{padding:1.5rem 1rem}header{padding:1rem}.form-grid{grid-template-columns:1fr}.wide{grid-column:auto}dialog{padding:1.2rem}.login{padding:1.5rem;margin:4vh 1rem}.toolbar select{max-width:100%}}@media print{header,nav,button,.filter,#notice{display:none!important}main{padding:0}.cards,.columns{break-inside:avoid}body{background:white}.table-wrap{overflow:visible}th,td{padding:.5rem}}

.preserve-lines{white-space:pre-wrap;overflow-wrap:anywhere}

dialog.pdf-preview-open{width:min(1200px,96vw)}.pdf-preview{margin-top:1rem}.pdf-preview .heading{align-items:center}.pdf-preview h3{overflow-wrap:anywhere;margin:0}.pdf-preview iframe{display:block;width:100%;height:65vh;min-height:300px;border:1px solid var(--line);border-radius:8px;background:#f3f6f7}.pdf-preview-open .row-actions{flex-wrap:wrap}.pdf-preview-open .list-item>div:first-child{min-width:0;overflow-wrap:anywhere}
.notice{border-left:3px solid var(--accent);background:var(--tint2);padding:.7rem .9rem;border-radius:0 8px 8px 0;margin:0 0 1rem}
.drawer{margin-top:1rem}.drawer h3{margin:1.25rem 0 .4rem;font-size:.95rem}.drawer ul{margin:.4rem 0 0 1.1rem;padding:0}
.card.selected{outline:2px solid var(--accent);outline-offset:-2px}button.card{text-align:left;font-weight:inherit}
tbody tr[data-row]{cursor:pointer}tbody tr[data-row]:hover{background:var(--tint)}
.subnav{display:flex;gap:.4rem;flex-wrap:wrap;margin:0 0 1rem;border-bottom:1px solid var(--line);padding-bottom:.6rem}
.subnav button[aria-current=page]{background:var(--accent);color:var(--accent-ink);border-color:var(--accent)}
.viewbar{display:flex;gap:.4rem;flex-wrap:wrap;align-items:center;margin:0 0 .8rem}
.viewbar button[aria-pressed=true]{background:var(--accent);color:var(--accent-ink);border-color:var(--accent)}
.bulkbar{display:flex;gap:.4rem;flex-wrap:wrap;align-items:center;background:var(--tint2);border:1px solid var(--line);border-radius:9px;padding:.6rem .8rem;margin:0 0 .8rem}
ul.plain{list-style:none;margin:0 0 1rem;padding:0;display:grid;gap:.4rem;font-size:.9rem}
#csv-map{max-height:min(46vh,360px);overflow:auto}
#csv-map fieldset{grid-template-columns:1fr 1fr}
#csv-plan .notice ul{margin:.4rem 0 0;padding-left:1.1rem;font-size:.85rem}
#csv-plan li.error{padding:.45rem .6rem}
.form-actions button:disabled{cursor:not-allowed}
@media(max-width:800px){#csv-map fieldset{grid-template-columns:1fr}}
tr.open>td{background:var(--tint2);border-bottom:0}
tr.detail>td{background:var(--tint2);padding:0 1rem 1.2rem}
.detail-body{background:white;border:1px solid var(--line);border-radius:12px;padding:1.2rem}
.detail-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.2rem;margin-bottom:1.2rem}
.detail-grid section{min-width:0}
.detail-grid .heading{margin-bottom:.5rem;align-items:center}
.detail-body h3{margin:0;font-size:.95rem}
.expander{float:right;font-size:.78rem;padding:.3rem .6rem}
.linkish{border:0;background:transparent;color:var(--accent);padding:0;font-size:.85rem;text-decoration:underline}
.linkish:hover{background:transparent;color:var(--accent-dark)}
.panel.inset{margin:1rem 0;background:#fbfdfd}
@media(max-width:800px){.detail-grid{grid-template-columns:1fr}}
.checklist{max-height:min(44vh,340px);overflow:auto;gap:.15rem}
.checklist .check{align-items:flex-start;gap:.6rem;padding:.45rem .5rem;border-radius:8px}
.checklist .check:hover{background:var(--tint2)}
.checklist .check input{margin-top:.15rem;flex:0 0 auto}
.checklist .check small{display:block;color:#576b76;font-weight:400}
label.check b+small{display:block} /* a tick box's help line sits under its bold label, not run into it */

/* ===== Insurance Tracker mobile pass (Vector branch) ===== */
body{background:var(--bg)}
header .brand{letter-spacing:.06em}header .mark{color:var(--accent)}
footer a{font-weight:600}
@media(max-width:800px){
 header{position:sticky;top:0;z-index:4;flex-wrap:nowrap;padding:.7rem 1rem}
 header .toolbar{flex-wrap:nowrap;gap:.4rem}
 header .toolbar small{display:none}
 header .toolbar button{padding:.5rem .7rem;font-size:.85rem;min-height:44px}
 h1{font-size:1.6rem}
 nav{position:sticky;top:64px;z-index:3;background:var(--bg);margin:0 -1rem 1.2rem;padding:0 1rem;scrollbar-width:none;-webkit-mask-image:linear-gradient(90deg,#000 85%,transparent)}
 nav::-webkit-scrollbar{display:none}
 nav button{padding:.85rem .9rem;min-height:48px}
 button,input,select{min-height:44px}
 .row-actions button{min-height:40px}
 .cards{gap:.7rem}.card,.panel{padding:1rem;border-radius:12px}.card strong{font-size:1.7rem}
 .table-wrap{border:0;background:transparent;overflow:visible}
 table,tbody,tr,td{display:block;width:100%}
 thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
 tbody tr{background:white;border:1px solid var(--line);border-radius:12px;margin:0 0 .7rem;padding:.4rem .2rem}
 td{border:0;padding:.45rem .8rem .45rem calc(36% + .8rem);position:relative;min-height:2rem}
 td[data-label]::before{content:attr(data-label);position:absolute;left:.8rem;top:.6rem;width:34%;font-size:.7rem;text-transform:uppercase;letter-spacing:.05em;color:#536975;font-weight:700}
 td:not([data-label]),td[colspan]{padding-left:.8rem}
 td:not([data-label]),td[colspan]{display:block}
 tr.detail,tr.open>td{background:transparent}
 #notice{left:1rem;right:1rem;bottom:1rem;max-width:none}
 dialog{width:100%;max-width:100%;max-height:92vh;margin:auto 0 0;border-radius:18px 18px 0 0} /* 100%, not 100vw: 100vw counts a classic scrollbar, and the X sat 4px under it at 768 */
 .form-actions{position:sticky;bottom:-1.2rem;background:white;padding-bottom:1rem}
 .form-actions button{flex:1}
}
/* Feedback inbox: each note's buttons sit in the note, not in a sticky bar (Quality #190: on phones the
   sticky bar was 119-151px tall and half under the bottom tabs). They wrap in rows of equal buttons. */
#feedback-inbox .form-actions{position:static;bottom:auto;display:flex;flex-wrap:wrap;gap:8px;padding-bottom:0;background:transparent}
#feedback-inbox .form-actions button{flex:1 1 150px;min-height:44px}
@media(max-width:800px){#feedback-inbox .form-actions button{flex-basis:100%}} /* phones: one full-width button per row, never squeezed onto three lines */
.eyebrow,nav button[aria-current=page],.linkish,.login .brand{color:var(--link)}nav button[aria-current=page]{border-bottom-color:var(--accent)}

/* ===== Insurance Tracker app shell: default theme, bottom tab bar, safe areas (2026-10-14) ===== */
/* Default palette = Safety Yellow, so the unthemed build has every token defined. */
:root{--ink:#1F2328;--accent:#F5C400;--accent-ink:#1F2328;--accent-dark:#E0B300;--tint:#FFF4CC;--tint2:#FFF8E0;--link:#6B4E00;--bg:#F6F5F1;--head-muted:#C9CCD1}
:focus-visible{outline:3px solid var(--ink);outline-offset:2px;box-shadow:0 0 0 5px var(--accent)}
header{padding-top:max(.7rem,env(safe-area-inset-top));padding-left:max(1rem,env(safe-area-inset-left));padding-right:max(1rem,env(safe-area-inset-right))}
.license-line{margin:.6rem 0 0;font-size:.8rem;color:#3d4a52}
.cert-note{border-left:4px solid var(--accent)}
.email-footer-preview{background:var(--tint2);border-radius:10px;padding:.2rem .9rem}
.email-footer-preview p{margin:.4rem 0}
@media(max-width:800px){
 body{overscroll-behavior-y:none}
 header{min-height:56px}
 header .toolbar #password{display:none}
 main{padding-bottom:calc(5.5rem + env(safe-area-inset-bottom))}
 /* Workspace tabs become an app-style bottom tab bar. */
 nav[aria-label=Workspace]{position:fixed;top:auto;left:0;right:0;bottom:0;z-index:6;margin:0;padding:.25rem max(.25rem,env(safe-area-inset-right)) calc(.25rem + env(safe-area-inset-bottom)) max(.25rem,env(safe-area-inset-left));background:#fff;border-top:1px solid var(--line);border-bottom:0;box-shadow:0 -4px 18px #1f232814;gap:0;flex-wrap:nowrap;overflow-x:auto;-webkit-mask-image:none;mask-image:none}
 nav[aria-label=Workspace] button{flex:1 0 auto;min-width:72px;min-height:56px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.15rem;padding:.3rem .45rem;font-size:.68rem;line-height:1.1;white-space:normal;text-align:center;border:0;border-radius:12px;color:#3d4a52;background:transparent}
 nav[aria-label=Workspace] button::before{font-size:1.25rem;line-height:1;content:"\25A3"}
 nav[aria-label=Workspace] button[data-view=dashboard]::before{content:"\2302"}
 nav[aria-label=Workspace] button[data-view=policies]::before{content:"\2630"}
 nav[aria-label=Workspace] button[data-view=certificates]::before{content:"\2709"}
 nav[aria-label=Workspace] button[data-view=received]::before{content:"\2714"}
 nav[aria-label=Workspace] button[data-view=tasks]::before{content:"\23F1"}
 nav[aria-label=Workspace] button[data-view=access]::before{content:"\263A"}
 nav[aria-label=Workspace] button[data-view=activity]::before{content:"\2261"}
 nav[aria-label=Workspace] button[data-view=settings]::before{content:"\2699"}
 nav[aria-label=Workspace] button[aria-current=page]{background:var(--tint);color:var(--ink);font-weight:800;box-shadow:inset 0 3px 0 var(--accent-dark)}
 #notice{bottom:calc(5rem + env(safe-area-inset-bottom))}
 /* Dialogs read as bottom sheets with a grab handle. */
 dialog{padding-bottom:calc(1.2rem + env(safe-area-inset-bottom))}
 dialog::before{content:"";display:block;width:44px;height:5px;border-radius:3px;background:#c4c9ce;margin:-.4rem auto .8rem}
 dialog .form-actions{bottom:calc(-1.2rem - env(safe-area-inset-bottom));z-index:2;padding-top:.6rem;padding-bottom:calc(1rem + env(safe-area-inset-bottom));box-shadow:0 -8px 12px -8px #1f232822}
 footer{font-size:.78rem}
 /* Visually hidden table headers must not widen the layout viewport. */
 thead{display:block;position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 thead th{display:block}
 .row-actions{display:flex;flex-wrap:wrap;gap:.4rem}
 td{overflow-wrap:anywhere}
}
@media (display-mode:standalone){.skip{top:-80px}}

/* Static pages (disclaimer, privacy). Kept here because the CSP blocks inline styles. */
.doc{max-width:46rem;margin:0 auto;padding:2rem 1.25rem 4rem}
.doc h1{margin:.5rem 0 .25rem;line-height:1.2}
.doc h2{margin:2rem 0 .5rem;font-size:1.05rem}
.doc p{line-height:1.6;margin:.75rem 0}
.doc .updated{color:#5b7280;font-size:.9rem;margin:0 0 1.5rem}
.doc .back{display:inline-block;margin-bottom:1rem}
.doc .stack{display:flex;flex-direction:column;align-items:flex-start;gap:1rem}
.doc .stack .back{margin-bottom:0}
.doc .lead{font-weight:600}
.doc .placeholder{background:#fff4cc;padding:0 .25rem}

/* ===== Insurance Tracker v3 shell: sidebar, larger type, navy and slate (2026-10-16) ===== */
:root{--ink:#0F1B2D;--ink2:#3E4C5E;--ink3:#5F6C7D;--rule:#E3E8EE;--navy:#0F2238;--navy2:#1A3150;--blue:#1D5FA8;--bad:#B42318;--warn:#B54708;--okc:#9DB4CF;--bg:#F3F5F8;--accent:#1D5FA8;--accent-ink:#fff;--accent-dark:#174C87;--tint:#E8EFF8;--tint2:#F4F7FB;--link:#1D5FA8;--line:#E3E8EE}
html{font-size:17px}
body{font-family:"Segoe UI Variable Text","Segoe UI",-apple-system,BlinkMacSystemFont,"SF Pro Text",Inter,system-ui,sans-serif;color:var(--ink);background:var(--bg);line-height:1.5}
h1,h2,.kpi strong,.brand{font-family:"Segoe UI Variable Display","Segoe UI",-apple-system,"SF Pro Display",system-ui,sans-serif;letter-spacing:-.02em}
.ic{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round;flex:none}
button{border-radius:6px;font-weight:600;border-color:var(--rule)}
.primary{background:var(--blue);border-color:var(--blue);color:#fff}.primary:hover{background:var(--accent-dark)}
.shell{display:flex;min-height:100vh}
.side{width:264px;flex:none;background:var(--navy);color:#C5D0DD;padding:22px 14px;display:flex;flex-direction:column;gap:8px;position:sticky;top:0;height:100vh;overflow:auto}
.side .brand{display:flex;align-items:center;gap:10px;color:#fff;font-size:1.1rem;font-weight:700;padding:0 8px 14px}
.side .mark{width:30px;height:30px;border-radius:7px;background:#E8B931;display:grid;place-items:center}.side .mark .ic{stroke:#0F1B2D;width:17px;height:17px;stroke-width:2.2}
.side-co{display:grid;gap:4px;background:var(--navy2);border-radius:8px;padding:10px 12px;color:#8FA0B4;font-size:.75rem;font-weight:500;margin:6px 0}
.side-co select{background:transparent;border:0;color:#fff;font-weight:600;font-size:.95rem;padding:0;min-height:0}.side-co select option{color:var(--ink)}
.side button,.side-link{display:flex;align-items:center;gap:12px;width:100%;text-align:left;background:transparent;border:0;color:#C5D0DD;padding:10px 12px;border-radius:6px;font-size:.95rem;font-weight:500}
.side button:hover{background:var(--navy2);color:#fff}
.side-link.on,.side nav button[aria-current=page]{background:var(--navy2);color:#fff;font-weight:600;box-shadow:inset 3px 0 0 #fff}
.side nav{display:block;border:0;margin:6px 0 0;overflow:visible}
.side-foot{margin-top:auto;border-top:1px solid #23395A;padding-top:12px}.side-foot small{display:block;color:#7D90A6;padding:6px 12px;overflow-wrap:anywhere}
.shell>main{flex:1;min-width:0;max-width:none;margin:0;padding:32px 40px 40px}
.topbar{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;margin-bottom:24px}
/* Feedback in the side menu (James 2026-11-20): white with a navy-blue border, halfway between the last
   menu item and the signed-in user at the bottom (both take margin-top:auto, so the free space splits evenly). */
:root{--on-sidebar-btn:#fff} /* the blues are the palette tokens --add-btn and --placeholder (all-blue palette, 2026-11-21) */
.side .side-feedback{margin-top:auto;background:var(--on-sidebar-btn);color:var(--add-btn);border:1.5px solid var(--add-btn);font-weight:600;justify-content:center;min-height:44px}
.side .side-feedback .ic{color:var(--add-btn);width:18px;height:18px}
.side .side-feedback:hover,.side .side-feedback:focus-visible{background:var(--placeholder);color:var(--add-btn)}
.topbar h1{font-size:2.3rem;line-height:1.1;margin:4px 0 0}
.kicker{color:var(--ink3);font-size:.9rem}
.kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:16px}
.kpi,.panel{background:#fff;border:0;border-radius:10px;box-shadow:0 1px 2px rgba(15,27,45,.06),0 0 0 1px rgba(15,27,45,.05)}
.kpi{padding:18px 20px}.kpi span{color:var(--ink2);font-size:.9rem;font-weight:500}
.kpi strong{display:block;font-size:2.5rem;line-height:1.1;margin:6px 0 2px;font-weight:700;font-variant-numeric:tabular-nums}
.kpi strong em{font-style:normal;font-size:1.25rem;color:var(--ink3);font-weight:600}
.kpi strong.bad{color:var(--bad)}.kpi strong.warn{color:var(--warn)}.kpi strong.blue{color:var(--blue)}
.kpi small{color:var(--ink3);font-size:.88rem}
.cols{display:grid;grid-template-columns:1.45fr 1fr;gap:16px;margin-bottom:16px}
.panel{padding:20px;margin-bottom:16px}.panel.flush{padding:0;overflow:hidden}
.ph{display:flex;justify-content:space-between;align-items:center;padding:18px 20px 10px}.ph h2{font-size:1.3rem;margin:0}.ph small{color:var(--ink3)}
.ph button{font-size:.85rem;padding:6px 12px}
.pad{padding:0 20px 18px}
/* Overview cards and lists (2026-10-27): cards open their full list; panels show 4 rows plus "See all". */
.kpi-go{cursor:pointer;display:flex;flex-direction:column}.kpi-go:hover{box-shadow:0 0 0 2px var(--accent)}
.kpi .go{align-self:flex-start;display:inline-flex;align-items:center;gap:2px;margin-top:auto;padding:8px 0 0;border:0;background:none;color:var(--link);font-size:.9rem;font-weight:600;min-height:32px}
.kpi .go:hover{background:none;text-decoration:underline}.kpi .go .ic,.ph .see .ic{width:16px;height:16px}
/* Overview rows open from anywhere on them (2026-10-28). The row lights up on hover and while its
   Open button has keyboard focus; the button is quiet, the row is the target. */
.row-go{cursor:pointer}.row-go:hover,.row-go:focus-within,.row-go:hover>td,.row-go:focus-within>td{background:var(--tint)}
.kpi-go:focus-within{box-shadow:0 0 0 2px var(--accent)}
.cols.full{grid-template-columns:1fr}
.row-go button:not(.linkish):not([data-agency-people]){border-color:transparent;background:none;color:var(--link);padding-left:8px;padding-right:8px}
.row-go:hover button:not(.linkish):not([data-agency-people]){text-decoration:underline}
.kpi span select.win{display:inline-block;width:auto;min-height:0;padding:1px 4px;margin:0 2px;font:inherit;font-weight:600}
.ph .see{display:inline-flex;align-items:center;gap:2px;border:0;background:none;color:var(--link);font-size:.9rem;font-weight:600;text-decoration:underline;text-underline-offset:2px;padding:6px 4px}
.ph .see:hover{background:none;color:var(--ink)}
.rangebar{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:0 0 16px}
.rangebar .seg{display:inline-flex;flex-wrap:wrap;gap:4px;padding:4px;border-radius:10px;background:var(--rule)}
.rangebar .seg button{border:0;background:transparent;min-height:40px;padding:6px 14px;border-radius:8px}
@media(max-width:800px){.rangebar .seg button{min-height:44px}} /* phones: the 44px tap size */
.rangebar .seg button[aria-pressed=true]{background:#fff;color:var(--ink);box-shadow:0 1px 2px rgba(0,0,0,.12)}
.rangebar .custom{display:flex;align-items:center;gap:8px;font-weight:600}.rangebar .custom input{width:90px}
@media(max-width:800px){.kpi .go{min-height:44px}.ph .see{min-height:44px}}
table.clean{font-size:.95rem}table.clean th{background:transparent;text-transform:none;letter-spacing:0;font-size:.8rem;font-weight:500;color:var(--ink3);padding:8px 20px;border-bottom:1px solid var(--rule)}
table.clean td{padding:14px 20px;border-bottom:1px solid #EEF1F5;color:var(--ink)}table.clean td b{font-weight:600}table.clean td small{display:block;color:var(--ink3);font-size:.85rem}
.st{display:inline-flex;align-items:center;gap:8px;font-weight:600;white-space:nowrap}.st i{width:10px;height:10px;border-radius:2px;background:currentColor}
.st.bad{color:var(--bad)}.st.warn{color:var(--warn)}.st.blue{color:var(--blue)}.st.ok{color:var(--ink2);font-weight:500}.st.ok i{background:var(--okc)}
.todo{display:flex;gap:14px;align-items:center;padding:14px 20px;border-top:1px solid #EEF1F5}.todo div{flex:1;min-width:0}.todo b{display:block;font-weight:600}.todo small{color:var(--ink2);font-size:.9rem}
.todo button{font-size:.85rem;padding:6px 12px}
.sq{width:10px;height:10px;border-radius:2px;flex:none;background:var(--okc)}.sq.bad{background:var(--bad)}.sq.warn{background:var(--warn)}
.linkish{background:none;border:0;padding:0;color:var(--blue);font-weight:600;font-size:inherit}
.badge{border-radius:4px}
footer{color:var(--ink3)}
.login{border-radius:12px;box-shadow:0 1px 2px rgba(15,27,45,.06),0 0 0 1px rgba(15,27,45,.05);border:0}.login .brand{color:var(--blue)}
@media(max-width:1100px){.kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.cols{grid-template-columns:1fr}}
@media(max-width:800px){
 html{font-size:16px}
 .shell{display:block}
 .side{position:sticky;top:0;z-index:5;width:auto;height:auto;flex-direction:row;flex-wrap:wrap;align-items:center;gap:6px;padding:max(10px,env(safe-area-inset-top)) 12px 10px;overflow:visible}
 .side-top{display:flex;align-items:center;gap:8px;flex:1;min-width:0;flex-wrap:wrap}
 .side .brand{padding:0;font-size:1rem}.side .brand{flex:1}
 .side-link{width:auto!important;padding:8px!important}.side-link span{display:none}
 .side-co{margin:0;padding:6px 10px;flex-basis:100%}.side-co span{display:none}
 .side-foot{margin:0;border:0;padding:0;display:flex;flex-basis:100%;gap:4px;overflow-x:auto}.side-foot small{display:none}
 .side nav[aria-label=Workspace] button{flex-direction:column;gap:2px;color:#3d4a52;font-size:.68rem;padding:6px 4px;box-shadow:none}
 .side nav[aria-label=Workspace] button::before{content:none!important}
 .side nav[aria-label=Workspace] button[aria-current=page]{background:var(--tint);color:var(--ink)}
 .shell>main{padding:18px 14px calc(6rem + env(safe-area-inset-bottom))}
 .topbar{flex-direction:column;align-items:stretch}.topbar h1{font-size:1.8rem}
 .kpi strong{font-size:2rem}
 table.clean tbody tr{border-radius:10px}
}
.login-page{min-height:100vh;display:grid;place-items:center;padding:24px 16px}
.login{max-width:480px;width:100%;margin:0;padding:2.2rem}
.login .brand{display:flex;align-items:center;gap:10px;font-weight:700;font-size:1.05rem;color:var(--ink);letter-spacing:-.01em}
.login .mark{width:30px;height:30px;border-radius:7px;background:#E8B931;display:grid;place-items:center}.login .mark .ic{stroke:#0F1B2D;width:17px;height:17px;stroke-width:2.2}
.login h1{font-size:2rem;line-height:1.15;margin:1.2rem 0 .4rem}
.who{display:grid;grid-template-columns:1fr 1fr;gap:4px;background:var(--bg);border-radius:8px;padding:4px;margin-top:1.4rem}
.who button{border:0;background:transparent;padding:.6rem;font-size:.9rem;color:var(--ink2);width:100%}
.who button[aria-selected=true]{background:#fff;color:var(--ink);box-shadow:0 1px 2px rgba(15,27,45,.12)}
.login .google{width:100%;margin-bottom:.4rem}
@media(max-width:800px){
 .side nav[aria-label=Workspace]{display:flex;flex-wrap:nowrap;overflow-x:auto}
 .side nav[aria-label=Workspace] button{width:auto;flex:1 0 auto;min-width:68px;max-width:96px;text-align:center;justify-content:center}
 .side nav[aria-label=Workspace] button span{white-space:normal;line-height:1.15}
}

/* ===== v4: account menu, company switcher, compact phone layout (2026-10-16) ===== */
.side-co{position:relative;cursor:pointer}
.side-co .co-name{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#fff;font-weight:600;font-size:.98rem;line-height:1.3}
.side-co .co-name .ic{width:16px;height:16px;color:#8FA0B4}
.side-co select{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;min-height:0}
.side .nav-you{display:none}
/* Admin in the phone tab bar only; on desktop the sidebar has its own Admin link. */
.side .nav-admin{display:none}
.side .user-btn{margin-top:auto;display:flex;align-items:center;gap:10px;padding:10px;border-radius:8px;border-top:1px solid #23395A;border-radius:0 0 8px 8px;padding-top:14px}
.side .user-btn:hover{background:var(--navy2)}
.av{width:34px;height:34px;border-radius:50%;background:#2B4A72;color:#fff;display:grid;place-items:center;font-weight:700;font-size:.8rem;flex:none;letter-spacing:.02em}
.who-txt{display:grid;min-width:0;flex:1;text-align:left}
.who-txt b{color:#fff;font-weight:600;font-size:.85rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.who-txt small{color:#8FA0B4;font-size:.78rem}
.user-btn .ic{width:16px;height:16px;transform:rotate(180deg);color:#8FA0B4}
button.secondary{background:#fff;border:1px solid var(--rule);color:var(--ink)}
/* Account menu */
dialog.menu-dialog{padding:0;width:320px;max-width:calc(100vw - 32px);border:0;border-radius:12px;box-shadow:0 20px 50px rgba(15,27,45,.25);margin:auto auto 16px 16px;position:fixed;inset:auto auto 16px 16px}
dialog.menu-dialog::backdrop{background:rgba(15,27,45,.25)}
.menu-head{display:flex;align-items:center;gap:12px;padding:16px;border-bottom:1px solid var(--rule)}
.menu-head div{flex:1;min-width:0}.menu-head b{display:block;font-size:.95rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.menu-head small{color:var(--ink3);font-size:.82rem}
.menu-close{border:0;background:transparent;font-size:1.5rem;line-height:1;padding:4px 8px;color:var(--ink3)}
.menu-group{padding:6px}.menu-group+.menu-group{border-top:1px solid var(--rule)}
.menu-item{display:flex;align-items:center;gap:12px;width:100%;border:0;background:transparent;padding:11px 12px;border-radius:8px;font-size:.95rem;font-weight:500;color:var(--ink);text-align:left}
.menu-item:hover{background:var(--bg)}.menu-item .ic{color:var(--ink3)}
.menu-item.danger,.menu-item.danger .ic{color:var(--bad)}
@media(max-width:800px){
 /* Top bar: logo, company switcher, agency shortcut. Nothing else. */
 .side{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;gap:10px;padding:max(10px,env(safe-area-inset-top)) 14px 10px;min-height:60px}
 .side-top{display:flex;flex-wrap:nowrap;align-items:center;gap:10px;flex:1;min-width:0}
 .side .brand{flex:none;padding:0}.side .brand-name{display:none}
 .side-co{flex:1;min-width:0;margin:0;padding:8px 12px;background:var(--navy2);border-radius:8px}
 .side-co>span{display:none}
 .side-co .co-name{font-size:1rem}.side-co .co-name{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
 .side-link{order:3;width:40px!important;height:40px;padding:0!important;justify-content:center;flex:none;border:1px solid #2B4A72!important}
 .side-link span{display:none}
 .side .user-btn{display:none}
 /* Phones: Feedback is an icon in the top bar on every page, company or not (deep review A), and
    first in the You menu. With no company open there are no bottom tabs, so the account button shows
    in the top bar too (Send feedback, My feedback, Sign out). */
 .side .side-feedback{order:3;flex:none;width:44px;height:44px;min-height:44px;margin:0;padding:0;justify-content:center;border-radius:8px}
 .side .side-feedback span{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
 .side.no-co .user-btn{display:flex;order:4;flex:none;width:44px;height:44px;margin:0;padding:0;border:0;border-radius:8px;justify-content:center}
 .side.no-co .user-btn .who-txt,.side.no-co .user-btn>.ic{display:none} /* Phones: the top bar keeps room for the client name. Feedback inbox, and with no company open Agency overview and Agency, are in the account menu (bottom-tab You, or the top-bar account button), so their side icons go. */ .side .side-link[data-view=feedback],.side.no-co .side-link:is([data-view=book],[data-view=agency]){display:none} /* Phones with a client picker (agents, an admin who owns an agency): the picker keeps its room, and Send feedback is first in the You menu (bottom tab, or the account button with no company open). Everywhere else, including the no-company screens, the icon stays. */ .side:has(.side-co) .side-feedback{display:none} /* On the feedback pages the message bar never takes a tap meant for the note under it (it covered Send reply); its own buttons and links still work. */ body:has(#feedback-inbox,#my-feedback-page) #notice{pointer-events:none} body:has(#feedback-inbox,#my-feedback-page) #notice :is(a,button,input,select,textarea,summary,label){pointer-events:auto}
 /* Bottom tabs: five, the fifth opens the account menu. */
 .side nav[aria-label=Workspace] button.more{display:none}
 .side nav[aria-label=Workspace] .nav-you{display:flex}
 .side nav[aria-label=Workspace] .nav-admin{display:flex}
 /* Phones: the tab bar has Admin when a company is open; without one (an agency with no
    clients yet) there is no tab bar, so the sidebar Admin link stays. */
 .side .side-link.with-tabs[data-view=admin]{display:none}
 /* With no tab bar, the sidebar Admin link shows its word so it does not look like the logo. */
 .side .side-link[data-view=admin]{width:auto!important;padding:0 6px!important}
 .side .side-link[data-view=admin] span{display:inline}
 .side nav[aria-label=Workspace]{overflow:visible}
 .side nav[aria-label=Workspace] button{flex:1 1 0;min-width:0;max-width:none;font-size:.7rem;color:var(--ink3)}
 .side nav[aria-label=Workspace] button .ic{width:22px;height:22px}
 .side nav[aria-label=Workspace] button[aria-current=page]{background:transparent;color:var(--blue);font-weight:700;box-shadow:none}
 /* Page header */
 .topbar{gap:12px;margin-bottom:16px}.topbar h1{font-size:1.75rem}.kicker{font-size:.85rem}
 .topbar #compose{display:none}
 /* Feedback sits at the top right of the page header, beside the date line, not behind a menu. */
 .topbar{position:relative}.topbar .kicker{display:block}
 /* The date line is as tall as the button, so the page title starts below it and never runs under it
    (Quality 2026-10-28: "Certificates received" ran under Feedback at 320-390px). */
 .topbar .kicker{display:flex;align-items:center;min-height:44px}
 .topbar .toolbar .primary{width:100%;padding:13px;font-size:1rem}
 .kpis{gap:10px}.kpi{padding:14px}.kpi span{font-size:.85rem}.kpi strong{font-size:1.9rem}.kpi small{font-size:.8rem;line-height:1.35;display:block}
 .ph{padding:14px 16px 8px}.ph h2{font-size:1.15rem}
 .todo{padding:12px 16px}
 /* Compact list rows instead of stacked label cards */
 table.clean thead{display:none}
 table.clean tbody tr{display:flex;justify-content:space-between;align-items:center;gap:12px;background:transparent;border:0;border-top:1px solid #EEF1F5;border-radius:0;margin:0;padding:12px 16px}
 table.clean td{display:block;width:auto;padding:0!important;border:0;min-height:0}
 table.clean td::before{content:none!important}
 table.clean td:not(:first-child):not(:last-child){display:none}
 table.clean td:first-child{min-width:0;flex:1}
 /* Recommended coverage (src/recommendations.js, Quality 2026-11-20): these two lists keep every cell, so the
    broker sees each status and what a client asked about and when. The first cell takes the first line,
    the rest wrap under it; the Remove question takes a line of its own, at the right where the button was. */
 table.clean.rec-table tbody tr{flex-wrap:wrap;align-items:center;row-gap:6px}
 table.clean.rec-table td:first-child{flex:1 1 100%;overflow-wrap:anywhere}
 table.clean.rec-table td:not(:first-child):not(:last-child){display:block;flex:1 1 auto;min-width:0;overflow-wrap:anywhere}
 table.clean.rec-table td:last-child{flex:0 0 auto;margin-left:auto}
 table.clean.rec-table td.rec-when{flex:0 0 auto;color:var(--ink3);font-size:.85rem}
 table.clean.rec-table td.rec-when .rec-ph{display:inline}
 table.clean.rec-table td.rec-act.confirming{flex:1 1 100%;white-space:normal}
 .rec-act.confirming .rec-confirm{display:flex;justify-content:flex-end}
 /* Account menu becomes a bottom sheet */
 dialog.menu-dialog{inset:auto 0 0 0;margin:0;width:100%;max-width:100%;border-radius:16px 16px 0 0;padding-bottom:env(safe-area-inset-bottom)}
 dialog.menu-dialog::before{margin:8px auto 0}
 .menu-item{padding:14px 12px;font-size:1rem}
}
.side-co .co-name span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
@media(max-width:800px){.side-co .co-name{overflow:visible}.k-co{display:none}}
@media(max-width:800px){.side-co .co-name span{display:block;flex:1 1 auto}}
.side{overflow-x:hidden}
.side .user-btn{width:100%}
/* Dialog close X, top-right on every dialog */
.dialog-x{position:absolute;top:10px;right:10px;border:0;background:transparent;font-size:1.6rem;line-height:1;padding:6px 10px;color:var(--ink3);border-radius:6px;min-height:0}
.dialog-x:hover{background:var(--bg);color:var(--ink)}
.menu-close.dialog-x{position:static}
dialog>h2:first-of-type,dialog form>h2:first-of-type{padding-right:44px}
/* Short notice line on record pages; the full text lives in the footer (#legal) */
.fine-note{font-size:.85rem;color:var(--ink3);margin:0 0 12px;line-height:1.45}
.fine-note a{font-weight:600}
.records-head{margin-bottom:12px}
.legal{border-top:1px solid var(--rule);padding-top:16px;margin-bottom:12px;scroll-margin-top:16px}
.legal h2{font-size:1rem;margin:0 0 6px;color:var(--ink2)}
.legal p{font-size:.85rem;line-height:1.5;margin:.3rem 0;color:var(--ink3)}
.legal .cert-note{border:0;padding:0}
/* Folded record rows (accordions) */
.acc-list{background:#fff;border-radius:10px;box-shadow:0 1px 2px rgba(15,27,45,.06),0 0 0 1px rgba(15,27,45,.05);overflow:hidden}
.acc+.acc{border-top:1px solid #EEF1F5}
.acc summary{list-style:none;display:flex;align-items:center;gap:14px;padding:16px 20px;cursor:pointer;min-height:56px}
.acc summary::-webkit-details-marker{display:none}
.acc summary:hover{background:#F8FAFC}
.acc-main{flex:1;min-width:0;display:grid;gap:2px}
.acc-main b{font-weight:600;font-size:1rem}
.acc-main small{color:var(--ink3);font-size:.88rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.acc summary>.ic{width:18px;height:18px;color:var(--ink3);transition:transform .15s}
.acc[open] summary>.ic{transform:rotate(180deg)}
.acc[open] summary{background:#F8FAFC}
.acc-body{padding:4px 20px 18px;background:#F8FAFC}
.kv{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:12px 24px;margin:0 0 14px}
.kv dt{font-size:.78rem;color:var(--ink3);margin:0}.kv dd{margin:2px 0 0;font-size:.95rem;overflow-wrap:anywhere}
.tag{font-size:.75rem;font-weight:600;color:var(--ink3);background:var(--bg);border-radius:4px;padding:1px 6px;margin-left:6px}
.legal{border-top:1px solid var(--rule);padding-top:4px}
.legal summary{cursor:pointer;font-weight:600;color:var(--ink2);padding:10px 0;font-size:.9rem}
@media(max-width:800px){
 .acc summary{padding:14px 16px;gap:10px}
 .acc summary .st{font-size:.85rem}
 .acc-body{padding:4px 16px 16px}
 .kv{grid-template-columns:1fr 1fr}
 .acc-body .row-actions button{flex:1 1 auto}
}
@media(max-width:800px){
 .records-head .help{display:none}
 .filter{font-size:0;max-width:none}.filter input{font-size:1rem;margin-top:0}
 #record-count{margin:8px 0}
}
/* Certificates received: folded subcontractor rows */
.sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;border:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
table.fold tbody tr[data-row]{cursor:pointer}
table.fold tbody tr[data-row]:hover{background:#F8FAFC}
table.fold tbody tr.open{background:#F8FAFC}
table.fold td{vertical-align:middle}
.pick-hit{display:contents} /* the tick box's 44px tap area is phones only (below); desktop rows as before */
table.fold .c-status small{display:block;color:var(--ink3);font-size:.82rem;margin-top:2px;font-weight:400}
table.fold .expander{border:0;background:transparent;padding:6px;margin-left:8px;color:var(--ink3);min-height:0;vertical-align:middle}
table.fold .expander .ic{width:18px;height:18px;transition:transform .15s}
/* Its hidden "Open ..." label is position:absolute: anchored here it stays inside the table's scroll box. At 1280-1380 wide it landed past the page edge when a row was open, and the whole page scrolled sideways (the scroll box stays unpositioned at 1280 and up, see Quality follow-ups). */
table.fold .expander{position:relative}
table.fold .expander[aria-expanded=true] .ic{transform:rotate(180deg)}
table.fold tr.detail>td{background:#F8FAFC;padding:4px 20px 20px}
.views-fold{margin:4px 0 12px}
.views-fold summary{cursor:pointer;font-weight:600;color:var(--ink2);font-size:.9rem;padding:6px 0}
.views-fold .viewbar{margin-top:6px}
/* filter cards: no colored stripes; selected = navy outline */
.panel .cards .card{border:0;border-top:0!important;box-shadow:0 0 0 1px var(--rule);border-radius:10px;text-align:left;background:#fff;padding:14px 16px}
.panel .cards .card strong{font-size:1.8rem;margin:2px 0 0}
.panel .cards .card.selected,.panel .cards .card[aria-pressed=true]{box-shadow:0 0 0 2px var(--navy);background:#fff}
@media(max-width:800px){
 .panel .cards{display:flex;gap:8px;overflow-x:auto;margin:8px -4px 12px;padding:2px 4px;scrollbar-width:none}
 .panel .cards::-webkit-scrollbar{display:none}
 .panel .cards .card{flex:0 0 auto;min-width:118px;padding:10px 12px}
 .panel .cards .card strong{font-size:1.4rem}
 /* one compact line per subcontractor: pick, name, status, open */
 table.fold tbody tr[data-row]{display:flex;align-items:center;gap:10px;background:#fff;border:0;border-top:1px solid #EEF1F5;border-radius:0;margin:0;padding:12px 8px}
 table.fold tbody tr[data-row]>td{display:block;width:auto;padding:0!important;border:0;min-height:0}
 table.fold tbody tr[data-row]>td::before{content:none!important}
 table.fold .expander{min-width:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;margin-left:0} /* M4: a 44px arrow; the whole row also opens it */
 table.fold tbody tr[data-row]>td:nth-child(3),table.fold tbody tr[data-row]>td:nth-child(4),table.fold tbody tr[data-row]>td:nth-child(5){display:none}
 /* A9: the name keeps a fair share of the row (35% or more) and breaks only between words; a long
    status ("Meets your requirements") wraps inside its own cell instead. */
 table.fold .c-name{flex:1 1 45%;min-width:35%;overflow-wrap:break-word;word-break:normal}
 /* The status wraps only between words ("requirem / ents" was the global td rule):
    the cell is at least as wide as its longest word, and the name gives way down to 35%. */
 table.fold .c-status{flex:0 1 auto;min-width:min-content;overflow-wrap:normal;word-break:normal}
 table.fold .c-status .st{white-space:normal;align-items:flex-start;line-height:1.25;overflow-wrap:normal}
 /* Contractor ease audit 2026-11-25: the one-line reason ("General liability missing waiver of subrogation")
    shows under the status on a phone too, so nobody has to open the row to see what is missing. */
 table.fold .c-status small{display:block;font-size:.8rem;line-height:1.3;white-space:normal;overflow-wrap:break-word}
 table.fold .own{display:none}
 table.fold tr.detail{display:block;background:#F8FAFC;border:0;border-radius:0;margin:0;padding:0}
 table.fold tr.detail>td{display:block;padding:8px 12px 16px!important}
 table.fold tr.detail>td::before{content:none!important}
 .fold-wrap{background:#fff;border-radius:10px;overflow:hidden;box-shadow:0 0 0 1px var(--rule)}
 /* QA on #59: at 320-375 a wrapping status pushed the 44px arrow past the row's edge. Each row is a
    small grid instead: checkbox, then the name with the status under it, then a fixed 44px arrow
    column, so the arrow always fits and lines up in every row. */
 table.fold tbody tr[data-row]{display:grid;grid-template-columns:24px minmax(0,1fr) 44px;grid-template-areas:"pick name open" "pick status open";column-gap:10px;row-gap:4px;align-items:center}
 table.fold tbody tr[data-row]>td:first-child{grid-area:pick}
 table.fold tbody tr[data-row]>td.c-name{grid-area:name;min-width:0}
 table.fold tbody tr[data-row]>td.c-status{grid-area:status;min-width:0}
 table.fold tbody tr[data-row]>td.c-owner{grid-area:open;width:44px;justify-self:end}
}
@media(max-width:800px){
 .desk-only{display:none!important}
 #content>.panel>.heading .help{display:none}
 #content>.panel>.heading .toolbar{width:100%}#content>.panel>.heading .toolbar .primary{width:100%}
 #content>.panel{padding:14px}
}
@media(max-width:800px){nav.subnav{position:static;margin:0 0 8px;top:auto}}
@media(max-width:800px){
 /* saved views: one scrolling row of chips */
 .views-fold .viewbar{display:flex;flex-wrap:nowrap;overflow-x:auto;gap:6px;scrollbar-width:none}
 .views-fold .viewbar::-webkit-scrollbar{display:none}
 .views-fold .viewbar button{flex:0 0 auto;white-space:nowrap;padding:6px 12px;font-size:.85rem}
 .views-fold .viewbar .eyebrow{display:none}
 /* tables inside an opened subcontractor: label above value, no squeezed column */
 .detail-body td{padding:.35rem .8rem!important}
 .detail-body td[data-label]::before{position:static;display:block;width:auto;margin-bottom:2px}
}
/* filter cards: one compact strip on desktop too */
.panel .cards{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0 14px}
.panel .cards .card{flex:0 0 auto;min-width:120px;padding:8px 14px;display:flex;align-items:baseline;gap:8px}
.panel .cards .card strong{font-size:1.15rem;margin:0;order:-1}
.panel .cards .card span{font-size:.85rem}
/* Renewal quotes */
.quotes-panel .todo .st{margin-right:4px}
.quote-summary{display:grid;gap:2px;background:var(--bg);border-radius:8px;padding:12px 14px}
.quote-summary span{color:var(--ink2);font-size:.9rem}
.quote-head{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin:-4px 0 12px}
.quote-details{margin:8px 0 4px}.quote-details summary{cursor:pointer;font-weight:600;color:var(--ink2);padding:6px 0}
.quote-h3{font-size:1rem;margin:16px 0 8px}
.quote-options{display:grid;gap:10px}
.quote-option{border-radius:10px;box-shadow:0 0 0 1px var(--rule);padding:14px 16px;background:#fff}
.quote-option.chosen{box-shadow:0 0 0 2px var(--navy)}
.qo-top{display:flex;justify-content:space-between;align-items:baseline;gap:12px}
.qo-top strong{font-size:1.3rem;font-variant-numeric:tabular-nums}.qo-top strong small{font-size:.8rem;color:var(--ink3);font-weight:500}
.quote-option p{margin:6px 0 0;color:var(--ink2);font-size:.92rem}
.qo-actions{display:flex;gap:8px;align-items:center;margin-top:10px;flex-wrap:wrap}
.quote-add{border-top:1px solid var(--rule);margin-top:16px;padding-top:4px}
tr.click-row{cursor:pointer}tr.click-row:hover{background:#F8FAFC}
@media(max-width:800px){.qo-actions button{flex:1}.quotes-panel .todo{flex-wrap:wrap;row-gap:8px}/* The text takes the whole line beside its square; a badge and button wrap under it */.quotes-panel .todo>div{flex:1 1 calc(100% - 30px);min-width:0}.quotes-panel .todo>.st{margin-left:24px}.quotes-panel .todo>button{margin-left:auto}}
.linkish{text-align:left}
/* Jobs list and job page */
.badge.none{background:#EEF1F5;color:var(--ink2)}
.jobs-bar{display:flex;flex-wrap:wrap;gap:10px 14px;align-items:center;margin-bottom:16px}
.chips{display:flex;flex-wrap:wrap;gap:8px}
/* Admin: jump to a section (Feedback is the last one). 44px tall for fingers. */
.admin-jump{margin:0 0 16px}.admin-jump .chip{min-height:44px}
.chip{border-radius:999px;padding:7px 16px;font-size:.95rem;background:#fff;box-shadow:0 0 0 1px var(--rule);border:0}
.chip span{color:var(--ink3);font-weight:500;margin-left:2px}
.chip[aria-pressed=true]{background:var(--navy);color:#fff}.chip[aria-pressed=true] span{color:#C5D0DD}
.jobs-search{flex:1;min-width:220px;max-width:420px}.jobs-search input{padding:.6rem .8rem}
.jobs-bar #new-job{margin-left:auto}
table.clean th.num,table.clean td.num{text-align:right;font-variant-numeric:tabular-nums}
.jobs-table td{vertical-align:middle}.jobs-table td b{font-size:1.02rem}
.jobs-table .badge,.job-head .badge{font-size:.85rem;font-weight:600;padding:.3rem .7rem}
.crumbs{margin:0 0 4px;color:var(--ink3);font-size:.95rem}.crumbs .linkish{font-size:inherit}
.job-head{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:12px}
.job-meta{margin:0;color:var(--ink2);font-size:1.02rem}
.job-tabs{margin-bottom:18px}.job-tabs button{font-size:.98rem}
.job-tabs .dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--bad);margin-left:7px;vertical-align:middle}
.alert{display:flex;justify-content:space-between;align-items:center;gap:16px;border-radius:10px;padding:14px 18px;margin-bottom:16px;border-left:5px solid}
.alert ul{list-style:none;margin:4px 0 0;padding:0}.alert li{margin:2px 0}
.alert.bad{background:#FDECEA;border-color:var(--bad);color:#7A1A12}.alert.bad>div>b{color:var(--bad);font-size:1.05rem}
.alert.warn{background:#FFF4E5;border-color:var(--warn);color:#6B3206}.alert.warn>div>b{color:var(--warn);font-size:1.05rem}
.alert button{flex:none}
.job-kpis .kpi strong.kpi-text{font-size:1.7rem;line-height:1.2;margin-top:10px;overflow-wrap:anywhere}
.job-kpis .kpi small a{font-weight:600}
.job-subs tr.row-bad td{background:#FDF3F2}
.job-subs td{vertical-align:middle}
.job-subs td.why.bad{color:var(--bad);font-weight:600}.job-subs td.why.warn{color:var(--warn);font-weight:600}
.job-subs .row-end{text-align:right;white-space:nowrap}.job-subs .row-end button{margin-left:6px;font-size:.88rem;padding:6px 12px}
.jobs-subs-head{align-items:center;margin-bottom:12px}.jobs-subs-head p{margin:0}
.panel.coming p{color:var(--ink2);margin:0}
.new-client[hidden]{display:none}
.new-client .form-grid{grid-template-columns:1fr 1fr 1fr;gap:12px}.new-client .help{margin:0}
@media(max-width:800px){
 .jobs-bar #new-job{margin-left:0;width:100%}
 .jobs-search{max-width:none;min-width:0;flex-basis:100%}
 .chips{flex-wrap:wrap}.chip{flex:none}
 .alert{flex-direction:column;align-items:stretch}
 .job-tabs{flex-wrap:wrap}.job-tabs button{flex:none}
 .job-kpis .kpi strong.kpi-text{font-size:1.3rem}
 .new-client .form-grid{grid-template-columns:1fr}
}
/* Job schedule and the company schedule */
.badge.blue{background:#E8EFF8;color:var(--blue)}
.badge.over{background:#fff;color:var(--bad);box-shadow:inset 0 0 0 1.5px var(--bad)}
.ins{display:inline-flex;flex-direction:column;align-items:flex-start;gap:3px}
.ins .badge{font-size:.85rem;font-weight:700;padding:.3rem .7rem}
.ins small{font-size:.86rem;line-height:1.35;max-width:190px}
.ins.bad small,.ins.over small{color:var(--bad);font-weight:600}.ins.warn small{color:var(--warn);font-weight:600}
.sched-head{align-items:center;margin-bottom:12px}.sched-head p{margin:0;font-size:.98rem}
.sched-table-wrap{overflow-x:auto}
.job-sched td{vertical-align:middle}.job-sched td b{font-size:1.02rem}
.job-sched tr.row-bad td{background:#FDF3F2}
.job-sched td.row-end{padding-right:16px}.job-sched .row-end{text-align:right;white-space:nowrap}.job-sched .row-end button{display:block;width:100%;margin:3px 0;font-size:.88rem;padding:6px 12px}
.job-sched th,.job-sched td{padding-left:10px;padding-right:10px}.job-sched th:first-child,.job-sched td:first-child{padding-left:20px}
.job-sched th.tl-col,.job-sched td.tl-col{min-width:170px;width:16%}
.job-sched td:nth-child(3),.job-sched td:nth-child(4),.job-sched td:nth-child(5){white-space:nowrap}
.job-sched td:first-child{min-width:140px}
.tl{position:relative;height:16px;background:linear-gradient(90deg,#DCE3EB 1px,transparent 1px) 0 0/calc(100% / var(--weeks)) 100% repeat-x}
.tl-head{display:grid;grid-template-columns:repeat(var(--weeks),1fr);height:auto;background:none;font-size:.72rem;color:var(--ink3);font-weight:600}
.tl-head span{padding-left:3px;border-left:1px solid #DCE3EB}
.tl-head span{white-space:nowrap;overflow:hidden}
.tl-bar{position:absolute;top:2px;height:12px;min-width:6px;border-radius:6px;background:var(--blue)}
.tl-bar.bad{background:var(--bad)}.tl-bar.warn{background:#E0A100}.tl-bar.over{background:#fff;box-shadow:inset 0 0 0 2px var(--bad)}
.tl-bar.done{background:#B7C2CF}.tl-bar.own{background:#7C93B0}.tl-bar.unknown{background:#9AA5B1}
.tl-today{position:absolute;top:-4px;bottom:-4px;width:2px;background:var(--navy);opacity:.35}
.sched-key{margin:4px 2px 0;font-size:.95rem;line-height:1.55}
.gate{border-radius:10px;padding:14px 16px;margin:0}
.gate p{margin:6px 0 0}.gate ul{margin:6px 0 0;padding-left:1.2rem}.gate li{margin:2px 0}
.gate-title{font-size:1.08rem;display:block}
.gate.bad{background:#FDECEA;border:2px solid var(--bad);color:#7A1A12}.gate.bad .gate-title{color:var(--bad)}
.gate.warn{background:#FFF4E5;border:2px solid var(--warn);color:#6B3206}
.gate.ok{background:#E8F3EF;color:#196953;padding:10px 14px}
.gate.info{background:#F3F6FA;border:2px solid #C9D3DF;color:var(--ink)}
.gate-actions{margin-top:12px;display:flex;gap:8px;flex-wrap:wrap}
.gate-note{display:grid;gap:6px;margin-top:12px;font-weight:600;color:var(--ink)}.gate-note textarea{min-height:72px;font-weight:400}
.ins small.ins-note{color:var(--ink2);font-weight:500}
.job-tabs .dot.warn{background:var(--warn)}
.st.none{color:var(--ink2);font-weight:500}.st.none i{background:#B7C2CF}.sq.none{background:#B7C2CF}
#dialog .form-grid>label{align-self:start}
.danger-solid{background:var(--bad);border-color:var(--bad);color:#fff}.danger-solid:hover{background:#912018}
.form-actions .push-left{margin-right:auto}
.form-error .linkish{margin-left:6px}
.next-two .todo .ins{align-items:flex-end;text-align:right}
.company-schedule .sched-bar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:14px}
.company-schedule .sched-bar h2{margin:0;font-size:1.35rem}
.company-schedule .sched-bar label.check{font-size:1rem;font-weight:600;gap:8px}
.sched-wrap{overflow-x:auto}
.week-grid{table-layout:fixed;min-width:1000px;font-size:.9rem}
.week-grid th,.week-grid td{border-right:1px solid #EEF1F5;padding:8px 6px;vertical-align:top}
.week-grid thead th{background:#F8FAFC;text-transform:uppercase;font-size:.75rem;color:var(--ink3);font-weight:700}
.week-grid thead th.today{color:var(--blue);box-shadow:inset 0 -3px 0 var(--blue)}
.week-grid thead th:first-child,.week-grid tbody th{width:190px}
.week-grid tbody th{text-transform:none;background:#fff;font-size:.95rem;letter-spacing:0;color:var(--ink);white-space:normal}
.week-grid tbody th .linkish{color:var(--ink);font-size:.98rem}
.sched-chip{display:block;width:100%;text-align:left;border-radius:6px;padding:5px 7px;margin:0 0 5px;font-size:.82rem;font-weight:600;line-height:1.3;border:1px solid #C8D5E6;background:#EEF3FA;color:var(--navy)}
.sched-chip:hover{filter:brightness(.97);background:#E3ECF7}
.sched-chip.bad{background:#FDECEA;border-color:#E9A39C;color:var(--bad)}
.sched-chip.warn{background:#FFF4E5;border-color:#F0C27A;color:#8A3A06}
.sched-chip.over{background:#fff;border:2px solid var(--bad);color:var(--bad)}
.sched-chip.done{background:#F3F5F8;border-color:#E3E8EE;color:var(--ink3)}
.sched-chip.own{background:#F4F7FB}
.sq.unknown{background:#B7C2CF}
.sched-chip.unknown{background:#F3F5F8;border-color:#D5DBE3;color:var(--ink2)}
.sched-key .sched-chip{display:inline-block;width:auto;margin:0 4px 0 0;padding:1px 7px}
@media(max-width:800px){
 .sched-head{flex-direction:column;align-items:stretch}.sched-head .primary{width:100%}
 .job-sched td.tl-col,.job-sched th.tl-col{display:none}
 .company-schedule .sched-bar .toolbar{width:100%}
}
.week-grid tbody td{border-bottom:0;padding:4px 4px}
.week-grid tbody tr.job-end td,.week-grid tbody th{border-bottom:1px solid #E3E8EE}
.week-grid tbody tr:first-child td,.week-grid tbody tr.job-end+tr td{padding-top:10px}
.week-grid tbody tr.job-end td{padding-bottom:10px}
.week-grid tbody th{padding:12px 12px}
.week-grid tbody th .linkish{text-decoration:none;text-align:left}
.week-grid .sched-chip{margin:0}
.job-sched{font-size:.93rem}.job-sched td:nth-child(2){min-width:130px}.job-sched td:nth-child(5){padding-right:4px}
.job-sched .tl{min-width:160px}
/* Jobs: daily logs, photos and files */
.job-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start}
.job-two>.panel{margin:0}
.logs-bar #add-log,.files-bar #upload-files{margin-left:auto}
.log-card{margin-bottom:16px;padding:20px 22px}
.log-head{display:flex;align-items:center;gap:10px 12px;flex-wrap:wrap}
.log-head h2{margin:0;font-size:1.3rem}
.share-badge{font-size:.85rem;font-weight:600;padding:.3rem .7rem}
.log-meta{margin-left:auto;color:var(--ink2);font-size:1rem}
.log-edit{font-size:.9rem;padding:6px 14px}
.log-notes{white-space:pre-line;font-size:1.05rem;line-height:1.55;margin:12px 0 0;overflow-wrap:anywhere}
.log-by{margin:12px 0 0;color:var(--ink3);font-size:.9rem}
.thumbs{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}
.thumb{position:relative;width:112px;height:84px;padding:0;border:0;border-radius:8px;overflow:hidden;background:#DCE3EA;color:#fff;cursor:pointer;flex:none}
span.thumb{cursor:default}
.thumb img,.photo-tile img{display:block;width:100%;height:100%;object-fit:cover}
.thumb .cap{position:absolute;left:0;right:0;bottom:0;padding:14px 6px 4px;font-size:.72rem;font-weight:700;text-align:left;background:linear-gradient(transparent,rgba(0,0,0,.6));white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.thumb:focus-visible,.photo-tile:focus-visible{outline:3px solid var(--blue);outline-offset:2px}
.thumbs.small .thumb{width:84px;height:63px}
.generic{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;background:#E3E8EE;color:var(--ink2)}
.generic .ft,.ftype,.viewer-generic .ft{display:inline-block;font-size:.72rem;font-weight:800;letter-spacing:.04em;padding:3px 7px;border-radius:4px;background:var(--navy);color:#fff}
.generic .fname{font-size:.75rem;max-width:92%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ink2)}
.thumb.generic .cap{display:none}
.photo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:14px}
.photo-tile{position:relative;aspect-ratio:4/3;padding:0;border:0;border-radius:10px;overflow:hidden;background:#DCE3EA;cursor:pointer;text-align:left}
.photo-tile .cap{position:absolute;left:0;right:0;bottom:0;padding:26px 12px 10px;color:#fff;background:linear-gradient(transparent,rgba(0,0,0,.68))}
.photo-tile .cap b{display:block;font-size:.98rem;line-height:1.25;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.photo-tile .cap small{display:block;font-size:.82rem;opacity:.92;margin-top:2px}
.photo-tile.generic .cap{background:none;color:var(--ink);padding-top:6px}
.photo-tile.generic .cap small{color:var(--ink2)}
.photo-tile.generic .fname{margin-bottom:46px}
.file-list .todo b{overflow-wrap:anywhere}
.file-list .todo small{color:var(--ink3)}
.file-list .todo>div:nth-child(2){flex:1;min-width:0}
.ftype{flex:none;min-width:44px;text-align:center}
.files-note{margin-top:16px;font-size:.98rem}
.latest-log .latest-line{margin:0;font-size:1.02rem}
.latest-log .log-notes{margin-top:8px;font-size:1rem}
.latest-log .thumbs{margin-top:12px}
.share-box{padding:.8rem 1rem}
.share-box legend{font-weight:700;padding:0 .3rem}
.share-box .help{margin:0}
.share-box label.check{gap:10px;font-size:1.02rem}
.share-box label.check input{width:24px;height:24px}
.field-label{margin:0 0 6px;font-weight:600}
.file-pick input{margin-top:6px}
.upload-list{list-style:none;margin:8px 0 0;padding:0;display:grid;gap:8px}
.upload-list:empty{display:none}
.up-item{border:1px solid var(--line);border-radius:8px;padding:10px 12px;background:#fff}
.up-top{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.up-name{flex:1;min-width:0;overflow-wrap:anywhere}
.up-name small{color:var(--ink3);font-weight:400}
.up-state{font-weight:700;font-size:.92rem;color:var(--ink2)}
.up-item.done .up-state{color:#196953}
.up-item.failed,.up-item.refused{border-color:#E9A39C;background:#FDF3F2}
.up-item.failed .up-state,.up-item.refused .up-state,.up-error{color:var(--bad)}
.up-error{margin:6px 0 0;font-weight:600}
.up-item progress{display:block;width:100%;margin-top:8px}
.up-fields{display:grid;grid-template-columns:160px 1fr;gap:8px 12px;margin-top:8px}
.up-fields label{font-size:.92rem}
.up-total:empty{display:none}
.up-total{margin:8px 0 0;font-weight:700}
dialog.photo-viewer{width:min(1200px,96vw);background:#fff}
.viewer-stage{position:relative;display:flex;align-items:center;justify-content:center;background:#0F1B2D;border-radius:10px;min-height:300px;overflow:hidden}
.viewer-stage img{display:block;max-width:100%;max-height:70vh;object-fit:contain}
.viewer-nav{position:absolute;top:50%;transform:translateY(-50%);width:52px;height:52px;border-radius:50%;border:0;background:rgba(255,255,255,.92);color:var(--ink);font-size:2rem;line-height:1;padding:0;z-index:1;box-shadow:0 2px 10px rgba(0,0,0,.25)}
.viewer-nav.prev{left:12px}.viewer-nav.next{right:12px}
.viewer-generic{display:grid;justify-items:center;gap:10px;padding:48px 20px;color:#fff;text-align:center}
.viewer-generic .ft{background:#fff;color:var(--navy)}
.viewer-generic p{margin:0;color:#C9D3DE}
.viewer-meta{margin:12px 0 0;color:var(--ink2);font-size:1rem}
@media(max-width:1100px){.job-two{grid-template-columns:1fr}}
@media(max-width:800px){
 .logs-bar #add-log,.files-bar #upload-files{margin-left:0;width:100%}
 .log-card{padding:16px}
 .log-meta{margin-left:0;flex-basis:100%}
 .log-edit{margin-left:auto}
 .thumb{width:96px;height:72px}
 .photo-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .file-list .todo{flex-wrap:wrap}
 .file-list .row-actions{width:100%}
 .up-fields{grid-template-columns:1fr}
 .viewer-nav{width:44px;height:44px}
 dialog.photo-viewer{width:100vw}
}
.photo-tile .cap small{color:#fff}
.photo-tile.generic .cap small{color:var(--ink2)}
.file-row .row-actions{margin-left:auto}
.viewer-stage img{width:100%;height:70vh;max-height:none}
@media(max-width:800px){.log-edit{order:2}.log-meta{order:3}.viewer-stage img{height:55vh}.viewer-stage{min-height:0}}
.file-row .row-actions{flex:0 0 auto}
/* Company settings: the schedule insurance check */
.check-choices{border:0;padding:0;margin:0;display:grid;gap:10px}
.check-choices .choice{display:flex;align-items:flex-start;gap:12px;padding:12px 14px;border:1px solid var(--line);border-radius:10px;font-weight:400;cursor:pointer}
.check-choices .choice:has(input:checked){border-color:var(--accent);background:var(--tint,#EEF6FA);box-shadow:inset 0 0 0 1px var(--accent)}
.check-choices input[type=radio]{width:24px;height:24px;margin:2px 0 0;flex:0 0 auto;accent-color:var(--accent)}
.check-choices .choice b{display:block;font-size:1rem}
.check-choices .choice small{display:block;margin-top:2px;font-size:.9rem}
#check-form .form-actions{padding-top:0}
.sched-head p.check-mode{margin-top:4px;font-size:.92rem}.check-mode .linkish{font-size:inherit;margin-left:4px}
.sched-head #add-line{white-space:nowrap;flex:0 0 auto}

/* ===== Send feedback overlay (src/feedback-overlay.js), ported from the 18th Street board's markup studio ===== */
/* Light card in the app's own tokens; the picture sits on a dark stage so a light screenshot stays readable. */
#itfb-root{position:fixed;inset:0;z-index:50;display:none;color:var(--ink)}
#itfb-root.itfb-open{display:block}
#itfb-root .itfb-backdrop{position:absolute;inset:0;background:#0f1b2d99}
#itfb-root .itfb-panel{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:min(620px,94vw);max-height:92vh;display:flex;flex-direction:column;overflow:hidden;background:white;border:1px solid var(--line);border-radius:16px;box-shadow:0 24px 64px #0f1b2d40}
#itfb-root.itfb-has-shot .itfb-panel{left:3vw;right:3vw;top:3vh;bottom:3vh;width:auto;max-height:none;transform:none}
#itfb-root .itfb-head{display:flex;align-items:flex-start;gap:1rem;padding:1.3rem 1.4rem .9rem}
#itfb-root .itfb-heading h2{margin:0 0 .25rem;font-size:1.2rem}
#itfb-root .itfb-heading p{margin:0;color:var(--ink3,#576b76);font-size:.9rem;line-height:1.4}
#itfb-root.itfb-has-shot .itfb-head{display:none}
#itfb-root .itfb-x{margin-left:auto;flex:0 0 auto;width:36px;height:36px;min-height:0;padding:0;display:grid;place-items:center;border:0;background:transparent;color:var(--ink3,#576b76);border-radius:8px}
#itfb-root .itfb-x:hover{background:var(--bg);color:var(--ink)}
#itfb-root .itfb-toolbar{display:none;flex-wrap:wrap;align-items:center;gap:.4rem;padding:.7rem 1rem;border-bottom:1px solid var(--line);background:var(--tint2)}
#itfb-root.itfb-has-shot .itfb-toolbar{display:flex}
#itfb-root .itfb-tool-title{font-weight:750;margin-right:.4rem}
#itfb-root .itfb-sep{width:1px;height:22px;background:var(--line);margin:0 .25rem}
#itfb-root .itfb-spacer{margin-left:auto}
#itfb-root .itfb-btn{display:inline-flex;align-items:center;gap:.4rem;padding:.5rem .75rem;min-height:0;border-radius:8px;font-size:.85rem;font-weight:650;white-space:nowrap}
#itfb-root .itfb-btn kbd{font:inherit;font-size:.68rem;font-weight:800;padding:1px 4px;border-radius:4px;border:1px solid var(--line);background:var(--bg);color:var(--ink3,#576b76)}
#itfb-root .itfb-btn.itfb-on{background:var(--accent);color:var(--accent-ink);border-color:var(--accent)}
#itfb-root .itfb-btn.itfb-on kbd{background:transparent;color:inherit;border-color:currentColor;opacity:.75}
#itfb-root .itfb-sw{width:24px;height:24px;min-height:0;padding:0;border-radius:6px;border:2px solid white;box-shadow:0 0 0 1px var(--line)}
#itfb-root .itfb-sw.itfb-on{box-shadow:0 0 0 2px var(--ink);transform:scale(1.08)}
#itfb-root .itfb-body{flex:1 1 auto;display:flex;min-height:0;overflow:auto;padding:0 1.4rem .4rem}
#itfb-root.itfb-has-shot .itfb-body{padding:16px;background:var(--navy,#1f2328)}
/* The form (no editor open): the note, the screenshot row and Send only; the picture stage is the editor's. */
#itfb-root:not(.itfb-has-shot) .itfb-body{display:none}
#itfb-root .itfb-chooser{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;width:100%;padding:.55rem .7rem;border:1.5px dashed var(--line);border-radius:12px;background:var(--tint2)}
#itfb-root.itfb-drop-hot .itfb-chooser{border-color:var(--accent);background:var(--tint)}
#itfb-root .itfb-chooser-hint{font-size:.85rem;font-weight:650;color:var(--ink3,#576b76);margin-right:.2rem}
#itfb-root.itfb-has-shot .itfb-chooser{display:none}
#itfb-root .itfb-choice{display:inline-flex;flex-direction:row;align-items:center;gap:.45rem;padding:.4rem .7rem;min-height:0;border-radius:10px;text-align:left;font-weight:600;background:white}
#itfb-root .itfb-choice b{font-size:.85rem}
#itfb-root .itfb-choice small{margin-left:.35rem;font-weight:500;color:var(--ink3,#576b76);font-size:.75rem}
#itfb-root .itfb-choice-icon{display:inline-grid;place-items:center;width:24px;height:24px;border-radius:6px;background:var(--tint);color:var(--ink)}
#itfb-root .itfb-choice-icon svg{width:16px;height:16px}
#itfb-root .itfb-choice.itfb-primary{border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent)}
#itfb-root .itfb-choice.itfb-primary .itfb-choice-icon{background:var(--accent);color:var(--accent-ink)}
#itfb-root.itfb-paste-ready .itfb-choice.itfb-primary{box-shadow:0 0 0 4px var(--tint),inset 0 0 0 1px var(--accent)}
#itfb-root .itfb-file{display:none}
#itfb-root .itfb-stage{position:relative;isolation:isolate;display:none;margin:auto;line-height:0;border-radius:8px;box-shadow:0 14px 40px #0006}
#itfb-root.itfb-has-shot .itfb-stage{display:block}
#itfb-root .itfb-stage canvas{display:block;border-radius:8px;touch-action:none}
#itfb-root .itfb-stage canvas.itfb-ink,#itfb-root .itfb-stage canvas.itfb-live{position:absolute;inset:0;width:100%;height:100%;cursor:crosshair}
#itfb-root .itfb-stage canvas.itfb-live{pointer-events:none}
#itfb-root .itfb-foot{display:grid;gap:.5rem;padding:.9rem 1.4rem 1.2rem;border-top:1px solid var(--line)}
#itfb-root:not(.itfb-has-shot) .itfb-foot{border-top:0;padding-top:0}
/* The form scrolls on a short screen and Cancel / Send stay pinned at its bottom (Quality 2026-12-02: a
   phone held sideways, 844x390, opened with the buttons below the screen). */
#itfb-root:not(.itfb-has-shot) .itfb-panel{overflow:auto}
#itfb-root:not(.itfb-has-shot) .itfb-actions{position:sticky;bottom:0;z-index:1;background:white;padding:.4rem 0;margin-bottom:-.4rem}
@media(max-height:500px){#itfb-root:not(.itfb-has-shot) textarea.itfb-note{min-height:72px}#itfb-root:not(.itfb-has-shot) .itfb-head{padding-top:.6rem;padding-bottom:.3rem}}
#itfb-root .itfb-label{font-size:.9rem}
#itfb-root .itfb-privacy{margin:0;font-size:.8rem;line-height:1.4;color:var(--ink3,#576b76)}
#itfb-root textarea.itfb-note{min-height:120px;max-height:30vh}
#itfb-root.itfb-has-shot textarea.itfb-note{min-height:60px}
#itfb-root .itfb-actions{display:flex;align-items:center;gap:.6rem;flex-wrap:wrap}
#itfb-root .itfb-send{background:var(--accent);color:var(--accent-ink);border-color:var(--accent);padding:.6rem 1.3rem}
#itfb-root .itfb-send:hover:not(:disabled){background:var(--accent-dark)}
#itfb-root .itfb-send:disabled{cursor:not-allowed}
#itfb-root .itfb-status-anchor{position:relative;height:0;z-index:3}
#itfb-root .itfb-status{position:absolute;left:50%;bottom:8px;transform:translateX(-50%);max-width:88%;font-size:.82rem;font-weight:600;text-align:center;pointer-events:none;border-radius:8px}
#itfb-root .itfb-status:not(:empty){padding:.4rem .8rem;background:var(--ink);color:white}
#itfb-root:not(.itfb-has-shot) .itfb-status{position:static;transform:none;max-width:none;margin:0 1.4rem}
#itfb-root:not(.itfb-has-shot) .itfb-status-anchor{height:auto}
#itfb-root:not(.itfb-has-shot) .itfb-status:not(:empty){margin-bottom:.6rem;background:var(--tint2);color:var(--ink);border:1px solid var(--line)}
#itfb-root .itfb-status.itfb-err:not(:empty){background:#fff0f0;color:#a12835;border:1px solid #f3c4c8}
#itfb-root .itfb-confirm{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:5;display:flex;align-items:center;gap:.6rem;flex-wrap:wrap;justify-content:center;padding:1rem 1.2rem;background:white;border:1px solid var(--line);border-radius:12px;box-shadow:0 16px 40px #0f1b2d40}
#itfb-root .itfb-confirm[hidden]{display:none}
#itfb-root .itfb-confirm b{width:100%;text-align:center}
/* Beside the button that asked (#212, James 2026-12-03), with its own X top-right. */
#itfb-root .itfb-confirm.itfb-near{transform:none;width:max-content;max-width:calc(100% - 16px);box-sizing:border-box;justify-content:flex-start}
#itfb-root .itfb-confirm.itfb-near b{text-align:left;padding-right:1.6rem}
#itfb-root .itfb-confirm-x{position:absolute;top:4px;right:4px;width:32px;height:32px;min-height:0;padding:0;display:grid;place-items:center;border:0;background:transparent;color:var(--ink3,#576b76);border-radius:8px}
#itfb-root .itfb-confirm-x:hover{background:var(--bg);color:var(--ink)}
#itfb-root .itfb-danger{color:#9d2934;border-color:#e6b4b9}
/* Save in the picture editor: back to the form with the picture attached (same look as Submit). */
#itfb-root .itfb-save{background:var(--accent);color:var(--accent-ink);border-color:var(--accent)}
#itfb-root .itfb-save:hover{background:var(--accent-dark)}
#itfb-root .itfb-toolbar .itfb-save~.itfb-x{margin-left:4px} /* Save sits next to the X, at the right */
#itfb-root .itfb-stage canvas.itfb-ink.itfb-erasing{cursor:cell}
/* Sticky notes and the handles of extra pictures, above the canvases (from Omnia's markup tools). */
#itfb-root .itfb-overlays{position:absolute;inset:0;pointer-events:none;line-height:normal}
#itfb-root .itfb-sticky{position:absolute;z-index:5;pointer-events:auto;background:#fff6b8;color:#3a2f00;border:1px solid rgba(0,0,0,.18);border-radius:8px;box-shadow:0 8px 24px rgba(0,0,0,.35);font-size:13px;overflow:hidden}
#itfb-root .itfb-sticky-bar{display:flex;justify-content:flex-end;align-items:center;height:1.7em;min-height:22px;background:rgba(0,0,0,.06);border-bottom:1px solid rgba(0,0,0,.1);cursor:grab;touch-action:none}
#itfb-root .itfb-sticky-x{width:1.7em;min-width:22px;height:100%;min-height:0;padding:0;display:grid;place-items:center;border:0;border-radius:0 8px 0 0;background:transparent;color:#3a2f00}
#itfb-root .itfb-sticky-x:hover{background:rgba(0,0,0,.08)}
@media(pointer:coarse){#itfb-root .itfb-sticky-bar{min-height:44px}#itfb-root .itfb-sticky-x{min-width:44px;min-height:44px}} /* phones: the note's bar and X are 44px to touch */
#itfb-root textarea.itfb-sticky-text{display:block;width:100%;min-height:0;max-height:none;padding:.6em;border:0;border-radius:0;background:transparent;color:inherit;font:inherit;line-height:1.3;resize:none;overflow:hidden}
#itfb-root textarea.itfb-sticky-text:focus{outline:2px solid var(--accent);outline-offset:-2px}
#itfb-root .itfb-layer{position:absolute;pointer-events:none;outline:2px dashed var(--accent);outline-offset:0}
#itfb-root .itfb-layer button{position:absolute;pointer-events:auto;min-height:0;display:inline-flex;align-items:center;justify-content:center;gap:4px;padding:0 8px;height:30px;border:1px solid var(--accent);border-radius:8px;background:white;color:var(--ink);font-size:.78rem;font-weight:700;touch-action:none;box-shadow:0 4px 12px #0003}
#itfb-root .itfb-layer-bar{left:4px;top:4px;cursor:move}
#itfb-root .itfb-layer-x{right:4px;top:4px;width:30px;padding:0}
#itfb-root .itfb-layer-grip{right:-8px;bottom:-8px;width:30px;padding:0;cursor:nwse-resize}
@media(pointer:coarse){#itfb-root .itfb-layer button{height:44px}#itfb-root .itfb-layer-x,#itfb-root .itfb-layer-grip{width:44px}}
/* Note arrows, ported from Omnia's c18_board/feedback-overlay.css (.sfb-notelayer, .sfb-notearrow) at f02e4f9d:
   a round handle on each note's right edge, in the arrow colour; drag it (or click it, then click) to the spot. */
#itfb-root .itfb-notelayer{position:absolute;inset:0;pointer-events:none;z-index:4;line-height:0}
#itfb-root .itfb-notearrow{position:absolute;pointer-events:auto;width:24px;height:24px;min-height:0;margin:-12px 0 0 -4px;padding:0;display:grid;place-items:center;border-radius:999px;border:1.5px solid currentColor;background:#fff6b8;box-shadow:0 1px 4px #0006;cursor:crosshair;touch-action:none}
#itfb-root .itfb-notearrow.itfb-on{background:var(--on-sidebar-btn);outline:2px solid currentColor}
@media(pointer:coarse){#itfb-root .itfb-notearrow{width:44px;height:44px;margin-top:-22px}}
/* The form with a screenshot: its thumbnail with Mark it up and Remove; the screenshot row is hidden. */
#itfb-root .itfb-attached{display:none;align-items:center;gap:1rem;width:100%;padding:.2rem 0}
#itfb-root.itfb-saved .itfb-attached{display:flex}
#itfb-root.itfb-saved .itfb-chooser{display:none}
#itfb-root .itfb-thumb{flex:0 0 auto;padding:0;min-height:0;width:112px;height:80px;border:1px solid var(--line);border-radius:10px;overflow:hidden;background:var(--tint2);display:block}
#itfb-root .itfb-thumb img{display:block;width:100%;height:100%;object-fit:contain}
#itfb-root .itfb-thumb:hover{border-color:var(--accent)}
#itfb-root .itfb-attached-text{display:grid;gap:.15rem;min-width:0}
#itfb-root .itfb-attached-text small{color:var(--ink3,#576b76);font-size:.8rem}
#itfb-root .itfb-attached-actions{display:flex;gap:.5rem;flex-wrap:wrap;margin-top:.4rem}
#itfb-root .itfb-remove{color:var(--bad);border-color:var(--bad)}
@media(max-width:800px){#itfb-root .itfb-attached .itfb-btn{min-height:44px}#itfb-root .itfb-thumb{width:104px;height:80px}}
@media(max-width:800px){
 /* On a phone the editor toolbar now holds Note, Eraser, Add image and Save too, so it is packed tighter
    (as on a short phone) to leave the picture room. The editor's Paste button is left off there: a phone
    has no screenshot to paste, Add image does it (Ctrl+V still adds one on a narrow desktop window; see
    feedback-overlay.js, which takes the button out rather than hiding it). */
 #itfb-root.itfb-has-shot .itfb-toolbar{gap:4px;padding-top:max(8px,env(safe-area-inset-top));padding-bottom:8px;padding-left:max(8px,env(safe-area-inset-left))}
 #itfb-root.itfb-has-shot .itfb-toolbar .itfb-btn{padding-left:8px;padding-right:8px;min-width:44px}
 #itfb-root.itfb-has-shot .itfb-tool-title,#itfb-root.itfb-has-shot .itfb-toolbar .itfb-sep{display:none}
}
@media(max-width:800px){
 #itfb-root .itfb-panel{width:100%;max-height:94vh;top:auto;bottom:0;transform:translateX(-50%);border-radius:18px 18px 0 0} /* 100%, not 100vw: 100vw counts a classic scrollbar, so the panel hung 7px off each side at 768 */
 #itfb-root.itfb-has-shot .itfb-panel{left:0;right:0;top:0;bottom:0;border-radius:0;transform:none}
 /* Review F3: on a phone the X stays top right (it never wraps onto its own row:
    the toolbar scrolls sideways instead), and the panel keeps clear of the notch,
    the rounded corners and the home bar (index.html sets viewport-fit=cover). */
 #itfb-root .itfb-head{padding-top:max(1.3rem,env(safe-area-inset-top));padding-left:max(1.4rem,env(safe-area-inset-left));padding-right:max(1rem,env(safe-area-inset-right))}
 #itfb-root .itfb-foot{padding-bottom:max(1.2rem,env(safe-area-inset-bottom));padding-left:max(1.4rem,env(safe-area-inset-left));padding-right:max(1.4rem,env(safe-area-inset-right))}
 #itfb-root .itfb-toolbar{position:relative;flex-wrap:nowrap;overflow-x:auto;padding-top:max(.7rem,env(safe-area-inset-top));padding-left:max(1rem,env(safe-area-inset-left));padding-right:calc(52px + env(safe-area-inset-right))}
 /* Overrides the line above (kept as is because feedback-ui.test.js checks its text; that check is now
    stale and needs James's OK to update): the tools wrap onto more rows instead of scrolling sideways,
    so Copy and Download are always in view (Quality 2026-10-28). The Close X is fixed to the top corner,
    so it never wraps, and the right padding keeps it clear of every row. */
 #itfb-root .itfb-toolbar{flex-wrap:wrap;overflow:visible;padding-right:calc(56px + env(safe-area-inset-right))}
 #itfb-root .itfb-toolbar kbd{display:none} /* keyboard hints mean nothing on a phone */
 #itfb-root .itfb-toolbar .itfb-x{position:fixed;top:max(.6rem,env(safe-area-inset-top));right:max(.6rem,env(safe-area-inset-right));z-index:6;background:var(--tint2)}
 #itfb-root .itfb-choice{min-height:44px}
 #itfb-root .itfb-btn{min-height:44px}
 #itfb-root .itfb-actions .itfb-btn{min-height:44px}
}
.choices{display:grid;gap:.5rem;border:0;padding:0;margin:.6rem 0 0;min-width:0}
.choices .check{align-items:flex-start;gap:.65rem;padding:.65rem .75rem;border:1px solid #d5dde2;border-radius:10px;cursor:pointer}
.choices .check input{margin-top:.15rem;flex:0 0 auto;width:20px;height:20px;min-height:0;padding:0;accent-color:var(--accent)}
.choices .check small{display:block;color:#576b76;font-weight:400;margin-top:.15rem}
.choices .check:has(input:checked){background:var(--tint2);border-color:var(--accent)}
label.check.opt-in{align-items:flex-start;gap:.55rem}
label.check.opt-in input{margin-top:.2rem;flex:0 0 auto}
.opt-in-help{margin-top:.2rem}

/* ===== Accessibility tokens and shared patterns (WCAG 2.2 AA, 2026-10-23) =====
   Shared on purpose: a restyle changes the token values, not these rules.
   test/a11y.test.js checks the tokens against every theme. */
:root{--field-border:#857B6C;--focus-on-dark:#FFFFFF;--error:#9C3D25}
/* 1.4.11: form field edges at least 3:1 against panels and the page. */
input,select,textarea{border-color:var(--field-border)}
input[aria-invalid=true],select[aria-invalid=true],textarea[aria-invalid=true]{border-color:var(--error);box-shadow:0 0 0 1px var(--error)}
.field-error{color:var(--error);font-size:.85rem;font-weight:600;margin:.3rem 0 0}
/* 2.4.7 / 1.4.11: on the dark sidebar the ring is light. */
.side :focus-visible{outline-color:var(--focus-on-dark)}
/* 2.5.8: checkboxes and radio buttons at least 24 by 24. */
input[type=checkbox],input[type=radio]{width:24px;height:24px;min-width:24px;flex:0 0 24px;margin:0}
/* Row-link pattern: the name in a clickable row is a real button (4.1.2). */
.row-link{background:none;border:0;padding:0;margin:0;color:var(--link,var(--blue));font:inherit;font-weight:600;text-align:left;text-decoration:underline;text-underline-offset:2px;cursor:pointer;min-height:24px}
.row-link:hover{background:none;color:var(--ink)}
/* Programmatic focus on a screen heading (after navigation): the heading is not a control, so no ring; screen readers announce it. */
h1[tabindex="-1"]:focus{outline:none}
h1[tabindex="-1"]:focus-visible{outline:none;box-shadow:none}
/* Sign-in "Sign in as" is a pressed-button group, not a tablist. */
.who button[aria-pressed=true]{background:#fff;color:var(--ink);box-shadow:0 1px 2px rgba(15,27,45,.12)}
/* 1.4.10: saved views wrap on phones instead of scrolling with a hidden bar. */
@media(max-width:800px){.views-fold .viewbar{flex-wrap:wrap;overflow:visible}}
/* Legal links row (footer, sign-in). */
.legal-links{margin:.6rem 0 0;font-size:max(14px,.85rem);line-height:1.9}
.login .legal-links{text-align:center}
/* Terms consent (ported from upstream): checkbox top-aligned with long text. */
.login .check{align-items:flex-start;gap:.6rem;line-height:1.5}
.login .check input{flex:0 0 auto;margin-top:.15rem}
/* 1725.5: the license numbers and the phone number print at the same size. */
.disclosure .lic,.disclosure .phone{font-size:1em;font-weight:inherit}
.disclosure{margin-top:.6rem}
.quote-option .presented{display:block;color:var(--ink3);font-size:.8rem;margin-bottom:.2rem}
.tracking-disclaimer{font-size:.85rem}
.consequences{margin:.4rem 0 1rem;padding-left:1.2rem;display:grid;gap:.35rem}
.qr{display:grid;justify-items:start;gap:.4rem}.qr img{background:#fff;border:1px solid var(--line);border-radius:8px;padding:6px}
.steps{margin:0;padding-left:1.2rem}
/* Section headings inside a screen (h2 under the page h1) keep the small size the old h3s had. */
.h-sub{font-size:.95rem;margin:0;line-height:1.3}
/* Screenshot pass fixes: legal links never break mid-name; the certificate notice
   has room next to its bar; destructive confirm buttons read as destructive;
   the page eyebrow sits on its own line. */
.legal-links a{white-space:nowrap}
.fine-note.cert-note,.help.cert-note{padding-left:.75rem}
.primary.destructive{background:var(--error);border-color:var(--error);color:#fff}
.primary.destructive:hover{background:#912018;border-color:#912018}
.doc .eyebrow{display:block;margin-top:.5rem}
/* ===== Accessibility: jobs pages (Jobs, job tabs, Schedule, Daily logs, Photos & files), 2026-10-23 =====
   Ported from the compliance pack; see docs/A11Y_JOBS_FOLLOWUP.md. test/a11y-jobs.test.js checks these.
   1.4.10: stage chips, log and file filters and the job tabs wrap on phones (no hidden sideways scroll), above.
   2.5.8: text-style buttons in the jobs pages are at least 24px tall. */
/* Desktop only: on phones the 44px rule for buttons stays in charge. */
@media(min-width:801px){.crumbs .linkish,.week-grid .linkish,.check-mode .linkish,.up-item .linkish{min-height:24px}}
/* The job name keeps its look (bold, ink); it underlines on hover like a link. */
.jobs-table .row-link{display:block;color:var(--ink);text-decoration:none}.jobs-table .row-link:hover b{text-decoration:underline}
.jobs-table .row-link b{font-size:1.02rem}
/* 2.4.7 / 1.4.11: the previous / next buttons sit on the dark photo stage, so their ring is light there. */
.viewer-stage :focus-visible{outline-color:var(--focus-on-dark)}
/* The client's phone and email on the job Overview sit one above the other: 24px each. */
.job-kpis .kpi small a{display:inline-block;min-height:24px;line-height:24px}

/* ===== All blue: Shaun's blue and its shades (James 2026-11-21, replaces the 2026-11-20 clay accent) =====
   Colors only; layout, fonts and spacing stay as above. Contrast-checked (test/colors-shaun.test.js):
   - Brand blue #63A3C2 (Shaun's exact blue) is the sidebar / phone top bar. Text and icons on it are
     dark navy #173447 (4.66:1); white on #63A3C2 is only 2.8:1, so it is never used there.
   - Buttons, links and checkboxes: #3A7A99 with white text (4.75:1), hover #2F6582. Accent text
     (links, eyebrow-free labels, current tab) uses #2F6582 so it stays 4.5:1 on the light tints.
   - One blue scale, --blue-50 (lightest) to --blue-900 (navy), built from the blues above.
     Deep navy-blue #1E4258 with white text (10.6:1) is the main "+ Add" button, the eyebrow labels,
     the side-menu Feedback button and the landing call to action; hover #173447 (13.0:1).
     #EAF3F8 is the light placeholder / hover fill. The keyboard focus ring is #2F6582 (6.4:1 on white).
   - Status colors keep their meaning: green OK, amber expiring, red lapsed.
   --navy/--navy2 stay dark (popups, pressed chips, the feedback screen); the sidebar has its own --side. */
:root{
 --ink:#14232E;--ink2:#3E4C5A;--ink3:#56636B;
 --bg:#F5F8FA;--rule:#DCE5EB;--line:#DCE5EB;
 --blue:#3A7A99;--accent:#2F6582;--accent-dark:#2F6582;--accent-ink:#FFFFFF;
 --tint:#EEF6FA;--tint2:#F7FBFD;--link:#2F6582;
 --navy:#173447;--navy2:#1E4258;--okc:#4C9A6E;--head-muted:#ADD2E4;
 --brand:#63A3C2;--brand-100:#D6E9F2;--brand-300:#86BBD4;--brand-500:#4A8DAE;
 --side:#63A3C2;--side-ink:#173447;--side-hover:#86BBD4;--side-on:#173447;--side-line:#4A8DAE;--focus-on-side:#173447;
 --blue-50:#EAF3F8;--blue-100:#D6E9F2;--blue-200:#B4D6E6;--blue-300:#86BBD4;--blue-400:#63A3C2;
 --blue-500:#4A8DAE;--blue-600:#3A7A99;--blue-700:#2F6582;--blue-800:#1E4258;--blue-900:#173447;
 --add-btn:#1E4258;--add-btn-dark:#173447;--eyebrow:#1E4258;--placeholder:#EAF3F8;
 --bad:#9C3D25;--warn:#875611;
 color:var(--ink);background:var(--bg)
}
.muted,small,.help{color:var(--ink3)}
.danger{color:var(--bad)}
.danger-solid,.primary.destructive{background:var(--bad);border-color:var(--bad)}
.danger-solid:hover,.primary.destructive:hover{background:#7F2F1B;border-color:#7F2F1B}
.error{color:#6E2A18;background:#F6E4DD}
input,select,textarea{color:var(--ink)}
input[type=checkbox],input[type=radio]{accent-color:var(--blue)}
nav button[aria-current=page]{border-bottom-color:var(--blue)}
.eyebrow{color:var(--eyebrow)}
/* Blue text (links, "blue" status words) uses the darker link blue: #3A7A99 is only 4.3:1 on a hovered row. */
.linkish,.st.blue,.kpi strong.blue,.login .brand,.week-grid thead th.today{color:var(--link)}

/* Buttons: blue primary, deep navy-blue for the main "+ Add" */
.primary{background:var(--blue);border-color:var(--blue);color:#fff}
.primary:hover{background:var(--accent-dark);border-color:var(--accent-dark)}
.primary.qa-add-btn{background:var(--add-btn);border-color:var(--add-btn);color:#fff}
.primary.qa-add-btn:hover,.primary.qa-add-btn[aria-expanded=true]{background:var(--add-btn-dark);border-color:var(--add-btn-dark)}

/* Sidebar (and the phone top bar): Shaun's blue, navy text and icons */
.side{background:var(--side);color:var(--side-ink)}
.side .brand{color:var(--side-ink)}
.side .mark,.login .mark,.signin .mark{background:var(--navy)}.side .mark .ic,.login .mark .ic,.signin .mark .ic{stroke:#fff}
.side-co{background:var(--tint);color:var(--ink3)}
.side-co select{color:var(--side-ink)}
.side-co .co-name{color:var(--side-ink)}.side-co .co-name .ic{color:var(--side-ink)}
.side button,.side-link{color:var(--side-ink)}
.side button:hover{background:var(--side-hover);color:var(--side-ink)}
.side-link.on,.side nav button[aria-current=page]{background:var(--side-on);color:#fff;box-shadow:none;border-bottom-color:var(--side-on)}
.side-foot{border-top-color:var(--side-line)}.side-foot small{color:var(--side-ink)}
.side .user-btn{border-top-color:var(--side-line)}
.side .user-btn:hover{background:var(--side-hover)}
.av{background:var(--navy);color:#fff}
.who-txt b,.who-txt small,.user-btn .ic{color:var(--side-ink)}
.side :focus-visible{outline-color:var(--focus-on-side)}

/* Dashboard tiles: a brand-blue top edge; the amber warning color where something needs attention soon */
.kpi{border-top:3px solid var(--brand)}
.kpi:has(>strong.warn){border-top-color:var(--warn)}
.kpi:has(>strong.bad){border-top-color:var(--bad)}

/* Tables, rows and panels: cool, light blue-grey tints */
th{color:var(--ink3);background:#EEF3F6}
th,td{border-bottom-color:#E3EAEF}
table.clean td{border-bottom-color:#E3EAEF}
.todo,.acc+.acc,table.clean tbody tr,table.fold tbody tr[data-row]{border-top-color:#E3EAEF}
.acc summary:hover,.acc[open] summary,.acc-body,tbody tr[data-row]:hover,tr.click-row:hover,table.fold tbody tr[data-row]:hover,table.fold tbody tr.open,table.fold tr.detail>td{background:var(--tint)}
.panel.inset{background:var(--tint2)}
.kpi,.panel,.acc-list,.login{box-shadow:0 1px 2px rgba(23,52,71,.06),0 0 0 1px rgba(23,52,71,.06)}

/* Status words (meaning colors: green OK, amber warning, red problem) */
.badge{background:#E4EFE8;color:#2C6A4F}
.badge.warn{background:#F5EBD9;color:var(--warn)}
.badge.bad{background:#F6E4DD;color:var(--bad)}
.badge.none{background:#ECEFF2;color:#56636B}
.badge.blue{background:var(--brand-100);color:var(--navy)}
.st.none i,.sq.none,.sq.unknown{background:#B9C4CC}
.alert.bad,.gate.bad{background:#F6E4DD;color:#6E2A18}
.alert.warn,.gate.warn{background:#F5EBD9;color:#5E3C0B}
.gate.ok{background:#E4EFE8;color:#2C6A4F}
.gate.info{background:var(--tint2);border-color:var(--brand-100)}
.job-subs tr.row-bad td,.job-sched tr.row-bad td{background:#FBF0EB}
.up-item.done .up-state{color:#2C6A4F}
.up-item.failed,.up-item.refused{border-color:#E2B5A6;background:#FBF0EB}

/* Chips, tabs, filter cards and choices: selected = navy / blue */
.chip[aria-pressed=true]{background:var(--navy);color:#fff}.chip[aria-pressed=true] span{color:#D6E9F2}
.panel .cards .card.selected,.panel .cards .card[aria-pressed=true],.quote-option.chosen{box-shadow:0 0 0 2px var(--blue)}
.check-choices .choice:has(input:checked),.choices .check:has(input:checked){background:var(--tint);border-color:var(--blue)}

/* Schedules and photos (Jobs pages, if Jobs is switched on) */
.sched-chip{border-color:var(--brand-100);background:var(--tint);color:var(--accent-dark)}
.sched-chip:hover{background:var(--brand-100)}
.sched-chip.bad{background:#F6E4DD;border-color:#E2B5A6}
.sched-chip.warn{background:#F5EBD9;border-color:#E5CDA0;color:var(--warn)}
.sched-chip.done,.sched-chip.unknown,.sched-chip.own{background:var(--tint2);border-color:#D3DEE5}
.week-grid th,.week-grid td{border-right-color:#E3EAEF}
.week-grid thead th{background:var(--tint2)}
.week-grid tbody th{background:#fff}
.week-grid tbody tr.job-end td,.week-grid tbody th{border-bottom-color:var(--line)}
.tl{background:linear-gradient(90deg,#D3DEE5 1px,transparent 1px) 0 0/calc(100% / var(--weeks)) 100% repeat-x}
.tl-head{background:none}.tl-head span{border-left-color:#D3DEE5}
.tl-bar.warn{background:#C08A2E}.tl-bar.done{background:#C3CED6}.tl-bar.own{background:var(--brand-300)}.tl-bar.unknown{background:#A9B5BE}
.thumb,.photo-tile,.generic{background:#EAF1F5}
.viewer-stage{background:#14232E}

/* Popups and notices */
dialog::backdrop{background:rgba(23,52,71,.45)}
dialog.menu-dialog::backdrop{background:rgba(23,52,71,.25)}
#itfb-root .itfb-backdrop{background:rgba(23,52,71,.45)}
#itfb-root.itfb-has-shot .itfb-body{background:#14232E}
.doc .placeholder{background:var(--placeholder)}

@media(max-width:800px){
 .side nav[aria-label=Workspace] button{color:var(--ink3)}
 .side nav[aria-label=Workspace] button[aria-current=page]{background:transparent;color:var(--accent)}
 .side nav[aria-label=Workspace] button:hover{background:var(--tint)} /* phone tab bar: the light tint, so inactive tab text stays 4.5:1 on hover (Quality on #191) */
 .side-co{background:var(--tint)}
 .side-link{border-color:var(--side-ink)!important}
}

/* Legal notices (James 2026-10-28): one short muted line at the bottom of the page or dialog,
   with Read more; the full wording opens in a small pop-up. */
.notice-line{margin:20px 0 0;padding-top:10px;border-top:1px solid var(--line)}
.notice-line .fine-note{margin:0}
.notice-line .linkish{font-size:inherit;font-weight:600;margin-left:2px}
.notice-dialog{max-width:560px}
.notice-dialog .notice-body{color:var(--ink2);line-height:1.5}
/* Mobile Web Reviewer 2026-10-28 (AUDIT_mobile_web_2026_10_28.md).
   M1: iPhone zooms into any text box under 16px; zoom itself stays allowed.
   M2: vh is the tallest viewport on iPhone Safari, so sheets use dvh where supported.
   M6, M7: touch targets at least 44px.  M8: the sign-in card fits a 320px-wide phone. */
@media(max-width:800px){
 input:not([type=checkbox]):not([type=radio]),select,textarea{font-size:16px}
 dialog{max-height:92vh;max-height:92dvh}
 #company{min-height:44px;font-size:16px}
 .side-link{width:44px!important;height:44px}
 .row-actions button{min-height:44px}
 .views-fold summary,.legal summary{padding:12px 0}
 /* The dialog Close X was about 38px; 44px like every other touch target. */
 .dialog-x{min-width:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;padding:0}
 #itfb-root .itfb-x{width:44px;height:44px} /* the Send feedback Close X too (was 36px) */
 /* Mobile Web Reviewer, full mobile pass 2 (2026-10-28): every tap target at least 44px. */
 /* Colour swatches: a 44px tap area, the colour drawn 28px inside it, never squeezed. */
 #itfb-root .itfb-sw{flex:0 0 auto;width:44px;height:44px;padding:8px;border:0;border-radius:10px;background-clip:content-box;box-shadow:none;outline:1px solid var(--line);outline-offset:-9px}
 #itfb-root .itfb-sw.itfb-on{transform:none;box-shadow:none;outline:3px solid var(--ink);outline-offset:-10px}
 .todo>button,.row-actions button{min-width:44px} /* "Fix" on the agent dashboard, "Edit" on Policies */
 .kpi span select.win{font-size:16px;min-height:44px;padding:4px 8px} /* "Renewing in" picker: no zoom on iPhone */
 .legal-links a{display:inline-flex;align-items:center;min-height:44px} /* footer links */
 .pick-hit{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;cursor:pointer} /* tick boxes */
 .pick-hit{position:relative;z-index:1} /* above the status text next to it, so all 44px tick it (re-check 2026-10-28) */
 /* The tick-box column is as wide as its 44px tap area (it was 24px), so the tap area never spills over
    the sub's name (Quality 2026-10-28). */
 table.fold tbody tr[data-row]{grid-template-columns:44px minmax(0,1fr) 44px}
 a[data-compliance]{display:inline-flex;align-items:center;min-height:44px} /* admin "Launch checklist" link */
 /* A short phone (320x568): the whole Send feedback sheet scrolls, so the three choices aren't squeezed. */
 #itfb-root:not(.itfb-has-shot) .itfb-panel{overflow:auto}
 #itfb-root:not(.itfb-has-shot) .itfb-body{flex:0 0 auto;overflow:visible}
}
@media(pointer:coarse){#itfb-root .itfb-toolbar kbd{display:none}} /* no keyboard hints on touch screens */
/* Feedback picture toolbar: the Colour and More buttons are added only on a short phone (see
   feedback-overlay.js); elsewhere their groups sit in the toolbar as before. */
#itfb-root .itfb-colours,#itfb-root .itfb-more{display:contents}
#itfb-root .itfb-dot{display:inline-block;width:14px;height:14px;border-radius:50%;background:#e5484d;box-shadow:0 0 0 1px var(--line)}
@media(max-height:700px){
 #itfb-root .itfb-fold{display:inline-flex;align-items:center;gap:6px}
 #itfb-root .itfb-colours,#itfb-root .itfb-more{display:none}
 #itfb-root .itfb-toolbar.itfb-show-colours .itfb-colours,#itfb-root .itfb-toolbar.itfb-show-more .itfb-more{display:contents}
 #itfb-root .itfb-tool-title,#itfb-root .itfb-toolbar .itfb-sep{display:none}
 /* Tighter in the picture editor, so the picture keeps at least 200px (320x568) / 280px (375x667). */
 #itfb-root.itfb-has-shot .itfb-toolbar{gap:4px;padding-top:max(8px,env(safe-area-inset-top));padding-bottom:8px;padding-left:max(8px,env(safe-area-inset-left))}
 #itfb-root.itfb-has-shot .itfb-toolbar .itfb-btn{padding-left:8px;padding-right:8px;min-width:44px} /* Pen and Box were 41px */
 #itfb-root.itfb-has-shot .itfb-toolbar kbd{display:none}
 #itfb-root.itfb-has-shot .itfb-body{padding:8px}
 #itfb-root.itfb-has-shot .itfb-foot{gap:.35rem;padding-top:.5rem}
 #itfb-root.itfb-has-shot textarea.itfb-note{min-height:44px;height:60px} /* room for the 2-line placeholder */
 #itfb-root.itfb-has-shot .itfb-privacy{font-size:.72rem;line-height:1.3}
}
/* A phone held sideways (Quality 2026-10-28: at 844x390 the picture got 32px and drawing didn't register):
   the note and Send sit in a column beside the picture instead of under it. From 560px wide, so an iPhone SE
   held sideways (568x320) gets it too (Quality 2026-10-29: its picture was 40x40 under the note). */
@media(max-height:500px) and (min-width:560px){
 #itfb-root.itfb-has-shot .itfb-panel{display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,36%);grid-template-rows:auto minmax(0,1fr) 0;grid-template-areas:"bar bar" "body foot" "anchor foot"}
 /* Cancel and Submit stay pinned at the bottom of the note column, on one row, while the note and the
    privacy line scroll above them (Quality 2026-10-29: at 560-600px Submit sat below the screen). */
 #itfb-root.itfb-has-shot .itfb-actions{position:sticky;bottom:0;z-index:1;flex-wrap:nowrap;background:white;padding:6px 0 max(6px,env(safe-area-inset-bottom));margin-top:auto}
 #itfb-root.itfb-has-shot .itfb-privacy{font-size:.68rem;line-height:1.25}
 #itfb-root.itfb-has-shot .itfb-toolbar{grid-area:bar}
 #itfb-root.itfb-has-shot .itfb-body{grid-area:body}
 #itfb-root.itfb-has-shot .itfb-status-anchor{grid-area:anchor}
 #itfb-root.itfb-has-shot .itfb-foot{grid-area:foot;align-content:start;overflow:auto;border-top:0;border-left:1px solid var(--line);padding-top:8px;padding-right:max(8px,env(safe-area-inset-right))}
 /* Wider than 800px, so the phone tap sizes above don't apply: the same 44px swatches and buttons. */
 #itfb-root .itfb-sw{flex:0 0 auto;width:44px;height:44px;padding:8px;border:0;border-radius:10px;background-clip:content-box;box-shadow:none;outline:1px solid var(--line);outline-offset:-9px}
 #itfb-root .itfb-sw.itfb-on{transform:none;box-shadow:none;outline:3px solid var(--ink);outline-offset:-10px}
 #itfb-root .itfb-toolbar .itfb-btn,#itfb-root .itfb-actions .itfb-btn{min-height:44px}
 #itfb-root .itfb-x{width:44px;height:44px}
}
@media(max-width:360px){
 .login-page{padding:16px 8px}
 .login{padding:1.4rem 1rem}
 .login h1{font-size:1.6rem}
}

/* Quality follow-ups (2026-10-28). Screen-reader-only labels (.sr, position:absolute) inside a scrolling
   table were placed against the page, not the table's box, so the page itself scrolled sideways (at
   801px: Certificates received and the agency home). Their scroll boxes now hold them, and a table inside
   a flush panel scrolls in its own box instead of being cut off (at 801-820px the agency home lost the
   Certificate requests "Open" buttons and the Clients "Next renewal"). Only on the widths where that
   happens (Certificates received overflows up to about 1212px, the agency home up to 1024px): 1280px
   and wider stay exactly as before (a positioned box turned off ClearType text smoothing on Windows). */
@media(max-width:1279px){.table-wrap{position:relative}}
@media(max-width:1024px){.scroll-x{position:relative;overflow-x:auto}}
/* In the two-column layout (1101-1359px) the agency home's Certificate requests table was up to 130px
   wider than its column, so it fits with tighter side padding and wrapping headings (QA 2026-10-28:
   no desktop scrollbar). Measured: it fits from 1101px; from 1360px it fits as it is. */
@media(min-width:1101px) and (max-width:1359px){.cols .scroll-x table.clean th,.cols .scroll-x table.clean td{padding-left:.5rem;padding-right:.5rem}.cols .scroll-x table.clean th{white-space:normal}}
/* The half-width agency Clients table fits its panel up to 1599px too (QA 2026-10-28: 55px over at 1440). */
@media(min-width:1360px) and (max-width:1599px){.cols .scroll-x table.clean th,.cols .scroll-x table.clean td{padding-left:.5rem;padding-right:.5rem}.cols .scroll-x table.clean th{white-space:normal}}
/* Half-width Overview tables wrap inside their panel (QA 2026-10-28: a 32-character client name or
   "Renews in 50 days" pushed the Clients table 11-86px past its panel at 1101-1600px). */
/* Names wrap only at spaces (QA 2026-10-29: "Compa/ny" at 1101-1199px); from 1600px a standing like "Renews in 30 days" stays on one line. */
@media(min-width:1600px){.cols .scroll-x table.clean td .st{white-space:nowrap}}
/* A single very long word in a name may break mid-word, only as a last resort, so Open stays in sight. */
.long-word,.cols .scroll-x table.clean td :is(b,.linkish).long-word{overflow-wrap:anywhere}
/* Agency Overview: one column up to 1359px, so the Clients table has room for a long hyphenated name
   (and a 19-letter word, which ran 22px over at 1280px in two columns). */
@media(max-width:1359px){.cols.agency{grid-template-columns:1fr}}
/* Just above it, in two columns, tighter cells keep a 19-letter client name inside the Clients panel. */
@media(min-width:1360px) and (max-width:1439px){.cols.agency .scroll-x table.clean :is(th,td){padding-left:.3rem;padding-right:.3rem}}
@media(min-width:1101px) and (max-width:1199px){.cols .scroll-x table.clean th,.cols .scroll-x table.clean td{padding-left:.3rem;padding-right:.3rem}}
@media(min-width:1600px) and (max-width:1799px){.cols .scroll-x table.clean th,.cols .scroll-x table.clean td{padding-left:.5rem;padding-right:.5rem}.cols .scroll-x table.clean th{white-space:normal}}
@media(min-width:1025px){.cols .scroll-x table.clean .st{white-space:normal;align-items:flex-start}.cols .scroll-x table.clean .st i{flex:none;margin-top:.3em}.cols .scroll-x table.clean td b,.cols .scroll-x table.clean td .linkish{overflow-wrap:break-word;word-break:normal}.cols .scroll-x table.clean td button:not(.linkish){white-space:nowrap}}
/* Client home Policies and Certificates tables (Quality 2026-10-28): from 801px, beside the side menu, they
   were up to 109px wider than the screen, so the whole page grew wider than a phone held sideways (844px).
   Tighter cells and wrapping headings there; a scroll box of their own if a long name still doesn't fit.
   In the two-column layout the half-width Policies table was also cut off by its panel (73px at 1280px). */
@media(max-width:1279px){.fit-x{position:relative;overflow-x:auto}}
@media(min-width:801px) and (max-width:1799px){.fit-x table.clean th,.fit-x table.clean td{padding-left:.5rem;padding-right:.5rem}.fit-x table.clean th{white-space:normal}}
/* Long names (Quality 2026-10-29): a 32-character coverage or insurer name pushed the Open buttons out of
   sight at 801-1200px, and a 40-character name with no spaces cut the table off from 1280px. From 801px
   names and Standing wrap, a long unbroken word breaks, buttons and dates stay on one line, and the box
   scrolls at every width as a last resort. */
.nw{white-space:nowrap}
@media(min-width:801px){
 .fit-x{overflow-x:auto}
 /* Words break only between words; only an insurer or holder name may break inside a very long word,
    so "Northbridge" or "Renews" never splits (Quality 2026-10-29: anywhere on every cell let the
    columns squeeze until ordinary words broke at 801-820px and 1101px). */
 .fit-x table.clean td{overflow-wrap:break-word}
 /* An insurer or holder name breaks only inside a word of 20+ letters (longWords wraps it in .long-word);
    its column keeps room for an ordinary word (Quality 2026-10-29: "Northbridg" / "e", "Underwrite" / "r"). */
 .fit-x table.clean td.brk{min-width:7.5em}
 .fit-x table.clean .st{white-space:normal;align-items:baseline;overflow-wrap:normal}.fit-x table.clean .st i{flex:none;align-self:flex-start;margin-top:.3em} /* lined up by its text, not its square */
 .fit-x table.clean td button{white-space:nowrap}
 .todo>button{min-height:44px} /* the To do panel's Open buttons were 36px */
}
/* When a table still has to scroll (801-1279px), its Open column stays pinned at the right edge, so the
   button is always in sight. Not from 1280px, where the tables fit and a positioned cell would turn off
   ClearType text smoothing on Windows. */
@media(min-width:801px) and (max-width:1279px){.fit-x table.clean td:last-child,.fit-x table.clean th:last-child{position:sticky;right:0;background:white;box-shadow:-8px 0 8px -8px #0f1b2d26}
 /* The pinned cell takes its row's hover and focus tint like the rest of the row (Quality 2026-10-29). */
 .fit-x table.clean tr.row-go:hover>td:last-child,.fit-x table.clean tr.row-go:focus-within>td:last-child{background:var(--tint)}}
/* Smaller text and tighter cells at 801-1279px, where the panels are narrowest, so no table needs to scroll and the pin
   never covers Standing (Quality 2026-10-29: an insurer with a 15-19 letter word scrolled Policies 23-66px
   at 801-1200px, with the pin over Standing). If a table still scrolls, a soft shadow shows on the edge
   that has more to see (it scrolls with the content, so it only shows where there is more). */
@media(min-width:801px) and (max-width:1279px){.fit-x table.clean{font-size:.875rem}.fit-x table.clean th,.fit-x table.clean td{padding-left:.3rem;padding-right:.3rem}.fit-x table.clean td.brk{min-width:7em}.fit-x table.clean td button:not(.linkish){padding-left:6px;padding-right:6px}}
@media(min-width:1101px) and (max-width:1279px){.fit-x table.clean th,.fit-x table.clean td{padding-left:.2rem;padding-right:.2rem}} /* the two-column panels are narrowest here */
/* Inside a table's scroll box (client home and agency Overview) the focus ring is drawn just inside the button, so the box's edge never
   clips it (Quality 2026-10-29: clipped by a fraction of a pixel). */
.fit-x :focus-visible:not(.linkish),.scroll-x :focus-visible:not(.linkish){outline:2px solid var(--ink);outline-offset:-3px;box-shadow:none} /* a thin ring just inside, clear of the label; an outline, so high-contrast mode keeps it */
/* A client name link has no padding, so its ring goes just outside the text instead of through it. */
.fit-x .linkish:focus-visible,.scroll-x .linkish:focus-visible{outline:2px solid var(--ink);outline-offset:2px;box-shadow:none}
@media(min-width:801px) and (max-width:1279px){.fit-x{background:linear-gradient(90deg,#fff 30%,#fff0) 0 0/40px 100% no-repeat local,linear-gradient(90deg,#0f1b2d24,#0f1b2d00) 0 0/14px 100% no-repeat scroll}}
/* "No account yet" after a Google sign-in (src/no-account.js). */
.no-account{max-width:34rem}
.no-account .who{margin:1rem 0}
.no-account #ask-approval{min-height:44px}
/* Admin page (src/admin.js): View as row, and the strip shown while viewing as someone. */
.view-as-grid{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:end;max-width:640px}
.view-as-grid select{width:100%}
.viewing-as{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 16px;margin:0 0 16px;padding:10px 14px;border:1px solid var(--warn);border-left-width:4px;border-radius:8px;background:var(--tint)}
.admin-list{margin:0;padding-left:1.2rem}
@media (max-width:640px){.view-as-grid{grid-template-columns:1fr}}
/* Admin tables: a long link or unbroken word in a free-text cell (anyone can send one from the sign-up form) wraps instead of widening the table. */
#request-list td.wrap,#people-list td.wrap{overflow-wrap:anywhere;word-break:break-word;min-width:9rem}
/* Status words and the buttons stay whole ("Approved", "Approve sign-up"); only free text wraps. */
#request-list td.nowrap,#request-list .row-actions button,#people-list .row-actions button{white-space:nowrap}
/* The small notes under a status ("Waiting for them to sign in with Google") wrap; only the status word stays whole. */
#request-list td.nowrap small{white-space:normal;overflow-wrap:anywhere}
/* Admin tables below 1300px (the requests table needs about 1290px of window): the same stacked, labelled cards phones use (see the 800px rules),
   so Approve sign-up, Decline and the People buttons are always in view, never off to the side. */
@media(max-width:1299px){#request-list table,#request-list tbody,#request-list tr,#request-list td,#people-list table,#people-list tbody,#people-list tr,#people-list td{display:block;width:100%}
 #request-list .table-wrap,#people-list .table-wrap{border:0;background:transparent;overflow:visible}
 #request-list thead,#people-list thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
 #request-list tbody tr,#people-list tbody tr{background:white;border:1px solid var(--line);border-radius:12px;margin:0 0 .7rem;padding:.4rem .2rem}
 #request-list td,#people-list td{border:0;padding:.45rem .8rem .45rem calc(36% + .8rem);position:relative;min-height:2rem;min-width:0}
 #request-list td[data-label]::before,#people-list td[data-label]::before{content:attr(data-label);position:absolute;left:.8rem;top:.6rem;width:34%;font-size:.7rem;text-transform:uppercase;letter-spacing:.05em;color:#536975;font-weight:700}
 #request-list td:not([data-label]),#people-list td:not([data-label]){padding-left:.8rem}
 #request-list td.row-actions,#people-list td.row-actions{display:flex;flex-wrap:wrap;gap:.5rem}}
/* The narrowest phones: the Admin tab is an icon (its aria-label still says Admin) so the other tab labels fit. */
/* Every phone tab has its label, Admin too (design pass 2026-10-30). */
/* Under 360px the tab labels get a little more room so "Dashboard" and "Certificates" stay inside their tabs. */
@media(max-width:359px){.side nav[aria-label=Workspace] button{padding-left:2px;padding-right:2px}.side nav[aria-label=Workspace] button span{font-size:.62rem;letter-spacing:-.01em}}
/* "Clients and access": the People button sits level with its client (QA 2026-10-28). */
#agency-clients td{vertical-align:middle}

/* Read it for me: fields filled by the AI reader stay marked until the person edits them. */
.ai-read{display:grid;gap:.5rem;justify-items:start;padding:.9rem;border:1px dashed var(--accent);border-radius:10px;background:var(--tint,#EEF6FA)}
.ai-read label{width:100%}
.ai-filled{border-color:var(--blue-500);background:var(--blue-50)}
.ai-mark{color:#885910;font-weight:600;font-size:.78rem}

/* Anything marked hidden stays hidden, even where a class sets display (QA of #109). */
[hidden]{display:none !important}
/* A long company name ends in "..." inside the sidebar box instead of running past it (design sweep 2026-10-30). */
.side-co{grid-template-columns:minmax(0,1fr);min-width:0}.side-co .co-name{min-width:0}

/* Record a received certificate: one card per coverage, each with its own limits and endorsement
   boxes (Shaun, 2026-10-30). Phone first: the cards stack, fields go one per row under 560px,
   and every button and box is at least 44px tall. */
.cov-section{display:grid;gap:.7rem;min-width:0}
.cov-section .help{margin:0}
.cov-list{display:grid;gap:1rem;min-width:0}
.cov-card{grid-template-columns:1fr 1fr;gap:.8rem;padding:1rem;margin:0;min-width:0;background:white}
.cov-card legend{padding:0 .3rem}
.cov-card>label{min-width:0}
.cov-card .cov-boxes,.cov-card .cov-remove,.cov-card .cov-other{grid-column:1/-1}
.cov-boxes{display:grid;gap:.2rem;min-width:0}
.cov-boxes-title{font-size:.9rem;font-weight:600}
.cov-boxes label.check,.cov-section label.check{min-height:44px;gap:.6rem;overflow-wrap:anywhere}
.cov-boxes input[type=checkbox]{flex:0 0 auto;width:22px;height:22px}
.cov-add,.cov-remove{min-height:44px;justify-self:start}
.cov-remove{color:#9d2934}
.from-description{display:block;width:100%}
.cert-facts{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:1rem;margin:0 0 1rem}
.cert-facts dt{font-size:.8rem;font-weight:700;color:#536975}
.cert-facts dd{margin:.2rem 0 0;white-space:pre-line;overflow-wrap:anywhere}
@media screen and (max-width:800px){.cert-facts{grid-template-columns:1fr}}
@media screen and (max-width:560px){.cov-card{grid-template-columns:1fr;padding:.8rem}.cov-add,.cov-remove{width:100%}#dialog input:not([type=checkbox]):not([type=radio]),#dialog select{min-height:44px}}
.cov-limits{display:contents}
.cov-card .cov-statute{grid-column:1/-1;min-height:44px}
/* Phone with the keyboard open (Coordinator follow-up to #138, P3): a field scrolled into view stops
   above the pinned Cancel / Record bar instead of 25px behind it, and the last field can scroll clear of it. */
@media screen and (max-width:800px){#dialog form input,#dialog form select,#dialog form textarea{scroll-margin-bottom:120px}#dialog .form-grid{padding-bottom:24px}}
/* Design polish pass (Mobile Web Reviewer audit 2026-10-30). */
/* #3 On wide windows the page stops growing at 1440px and sits centered beside the side bar, so lines and
   short pages don't stretch across a 1920px screen. Widths up to 1704px are unchanged. */
.shell>main{max-width:1440px;margin:0 auto}
/* #4 Empty lists show an icon, the sentence and, where there is one, the button that fixes it. */
.empty-note{display:grid;justify-items:center;gap:10px;text-align:center;padding:28px 20px 32px;color:var(--ink2)}
.empty-note>.ic{width:44px;height:44px;padding:10px;border-radius:12px;background:var(--tint);color:var(--accent);stroke-width:1.8}
.empty-note p{margin:0;max-width:34ch;line-height:1.45}
.empty-note button{margin-top:4px;min-height:44px}
/* #6 Page titles and panel titles use the landing page's serif, so the app and the website feel like one product. */
@font-face{font-family:"Newsreader";font-style:normal;font-weight:200 800;font-display:swap;src:url(/fonts/newsreader.woff2) format("woff2")}
.topbar h1,.ph h2{font-family:"Newsreader",Georgia,serif;font-weight:600;letter-spacing:-.01em}
.topbar h1{font-weight:500}
/* #7 Column labels are at least 13px and darker. */
table.clean th{font-size:max(.82rem,13px);color:var(--ink2)}
/* #11 Side-by-side panels keep their own height instead of stretching to the taller one. */
.cols{align-items:start}
/* #12 Status markers a little larger; a row's Open lines up with the row title. */
.sq{width:11px;height:11px}
/* Design pass, part 3 (2026-10-30). */
/* #5 Stat cards and panel titles carry a small icon in the brand color. */
.kpi>span .ic,.ph h2 .ic{width:18px;height:18px;padding:5px;box-sizing:content-box;border-radius:7px;background:var(--tint);color:var(--accent);stroke-width:1.9;vertical-align:-7px;margin-right:9px}
.kpi>span .ic{display:block;margin:0 0 8px}
@media (max-width:800px){.panel .ph button.primary,.panel table button[data-agency-people]{min-height:44px}}
/* #8 One button set: filled (primary), outlined (secondary) and text link. Panel buttons are full size and
   "See all" in a panel header is a text link like the one on the stat cards. */
.ph button:not(.primary){border:0;background:none;color:var(--link);font-weight:600;font-size:.9rem;padding:6px 4px}
.ph button:not(.primary):hover{background:none;text-decoration:underline}
.ph button.primary,[data-agency-people]{font-size:.9rem;padding:8px 14px;min-height:40px;border-radius:8px}
/* #10 Phones: the status cards fold into one Filter control; the tab strip shows a shadow only when it scrolls. */
.filter-fold{margin:4px 0 12px;border:1px solid var(--line);border-radius:10px;background:#fff}
.filter-fold summary{cursor:pointer;font-weight:600;padding:12px 14px;min-height:44px;display:flex;align-items:center}
.filter-fold .cards{padding:0 10px 10px;margin:0}
@media (max-width:800px){nav:not([aria-label=Workspace]){-webkit-mask-image:none;mask-image:none;background:linear-gradient(270deg,var(--bg) 30%,transparent) right/40px 100% no-repeat local,linear-gradient(270deg,rgba(15,27,45,.16),transparent) right/14px 100% no-repeat scroll,var(--bg)}}
/* #12 Row "Open" lines up with the row title on laptops (phones keep the 44px target). */
@media(min-width:801px){.row-go td>button{padding-top:0;padding-bottom:0;line-height:inherit}}
/* Re-check after the second polish PR (2026-10-30). */
/* Every section title uses the serif, not only panel headers ("Sign-up requests", "Recent activity"). */
main h2{font-family:"Newsreader",Georgia,serif;font-weight:600;letter-spacing:-.01em}
.no-addr{display:flex;align-items:center;gap:8px}.no-addr .ic{width:20px;height:20px;color:var(--accent);flex:none}
/* Admin sign-up cards: each small line is already its own block, so the <br> before it no longer adds a blank line. */
td.wrap br{display:none}
/* Phones: no text under 13px (stat card notes, table labels, small notes, row buttons, footer links). */
@media (max-width:800px){.kpi small,main small,main th,.row-actions button,footer a,.license-line{font-size:max(13px,.82rem)}}
/* The quote screens' license line (Ins. Code 1725.5(a)-(b)): the agency name with "Insurance" and its license
   number, on the quote itself, at 12-point (16 px) or larger on every screen size, and no smaller than any
   phone number or address shown (the full disclosure, with the address and phone, is under Read more).
   The request form's "We'll send your request..." line sits just above Submit. */
.quote-lic{font-size:max(16px,1rem);line-height:1.45;margin:0;color:var(--ink)}
.quote-lic .linkish{font-size:inherit;font-weight:600;margin-left:2px}
.quote-send .help{margin:0 0 8px}
/* The one always-visible line in the app footer ("Insurance Tracker is software, not an insurance agency."):
   small but readable, never under 13px. */
.software-line{font-size:max(13px,.82rem);color:var(--ink3);margin:8px 0 0}
/* In the quote options dialog the license line sits right above the option cards (next to the prices). */
#dialog .quote-license{margin:0 0 12px;padding:0;border-top:0}
/* Dashboard panels (James 2026-10-30): on laptops and tablets the panels in a row are the same height; the
   footer (Show all, or "That's everything" with an action) sits at the bottom so no panel ends in a blank.
   While one panel is open with all its rows, its row stops matching heights so the panel beside it stays put.
   Phones stack the panels at their natural height. Replaces "panels keep their own height" (audit #11). */
@media (min-width:801px){.cols{align-items:stretch}.cols.has-open{align-items:start}.cols>.panel{display:flex;flex-direction:column}.cols>.panel>.panel-end{margin-top:auto}}
.panel-end{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 20px 16px;border-top:1px solid var(--rule,#E7E1D6)}
.panel-end.quiet p{margin:0;color:var(--ink3);font-size:.9rem}
.panel-end button{min-height:40px;font-size:.9rem}
.more-toggle{border:0;background:none;color:var(--link);font-weight:600;padding:8px 0}
.more-toggle:hover{background:none;text-decoration:underline}
[data-more][hidden]{display:none!important}
@media (max-width:800px){.panel-end{padding:10px 16px 14px}.panel-end button{min-height:44px}}
/* A short panel's footer takes the leftover height as one soft, centred block, so the space reads as intended. */
@media (min-width:801px){.cols>.panel>.panel-end.quiet{flex:1 0 auto;flex-direction:column;justify-content:center;text-align:center;background:var(--tint);border-top:0;margin-top:0}}
/* Sign-in (James 2026-10-30: "the whole sign-in page is not right"): the landing page's look, one card,
   Google first, then email and password, a Create account line, small print last. Fits one phone screen. */
.login-page:has(.signin){background:var(--bg);min-height:100svh;padding:max(16px,3svh) 16px}
.signin{max-width:420px;padding:clamp(1.5rem,4vw,2.4rem);display:grid;gap:14px}
.signin .brand{font-family:"Newsreader",Georgia,serif;font-size:1.3rem;font-weight:600;color:var(--ink)}
.signin .mark{width:34px;height:34px;border-radius:9px;background:var(--navy)}.signin .mark .ic{stroke:#fff;width:19px;height:19px}
.signin h1{font-family:"Newsreader",Georgia,serif;font-weight:500;font-size:clamp(1.9rem,6vw,2.4rem);letter-spacing:-.015em;margin:6px 0 0}
.signin>p.muted{margin:-6px 0 4px}
.signin #google{display:flex;align-items:center;justify-content:center;gap:10px;min-height:48px;font-weight:600;margin:0}
.signin #google .g{width:20px;height:20px;flex:none}
/* instkr.com: Google's own Continue with Google button (src/google-signin.js), centred where ours was. */
.signin .google-gis{display:flex;justify-content:center;min-height:44px}
.signin .or{display:flex;align-items:center;gap:12px;margin:0;color:var(--ink3);font-size:.85rem}
.signin .or::before,.signin .or::after{content:"";flex:1;height:1px;background:var(--line)}
.signin form{margin:0;gap:12px}.signin form .primary{min-height:48px}
.signin #forgot{justify-self:start;min-height:44px;padding:0}
.signin .signup-line{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:12px;border-top:1px solid var(--line)}
.signin .signup-line .google{width:auto;margin:0;min-height:44px}
.signin .fine{margin:0;font-size:.82rem;line-height:1.5}
@media (max-width:480px){.login-page:has(.signin){place-items:start center}.signin{padding:20px;gap:10px}.signin input{font-size:16px}}
@media (max-width:480px){
 .login-page:has(.signin){padding:8px 16px}
 .signin{background:transparent;box-shadow:none;padding:8px 4px;gap:10px}
 .signin h1{font-size:1.75rem;margin:2px 0 0}.signin>p.muted{margin:-4px 0 2px;line-height:1.4}
 .signin form label{gap:4px}.signin form input{padding:.6rem .7rem}
 .signin .legal-links{font-size:max(14px,.8rem);line-height:1.3;margin:0}.signin .legal-links a{display:inline-block;padding:2px 0}
}
/* Short phones (iPhone SE 375x667): the same sign-in, tighter, so it still fits without scrolling. */
@media (max-width:480px) and (max-height:740px){
 .signin{gap:8px}.signin .brand{font-size:1.1rem}.signin .mark{width:28px;height:28px}
 .signin h1{font-size:1.5rem}.signin>p.muted{display:none}
 .signin #google,.signin form .primary{min-height:44px}.signin .or{font-size:.8rem}
 .signin form{gap:8px}.signin form input{padding:.5rem .7rem}
 .signin .signup-line{padding-top:8px}.signin #forgot{min-height:44px}
}

/* + Add (James 2026-10-30; Send archived 2026-11-02): in the top bar on a laptop; on a phone a bar just above the tab bar,
   the menu opening upward. Every button is at least 44px. */
.quick-actions{display:flex;gap:8px;align-items:center}
.quick-actions button{min-height:44px}
.qa-add{position:relative}
.qa-menu{position:absolute;right:0;top:calc(100% + 6px);z-index:7;min-width:260px;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 10px 30px #1f232826;padding:6px;display:grid;gap:2px}
.qa-menu[hidden]{display:none}
.qa-menu button{border:0;background:transparent;text-align:left;font-weight:600;padding:12px 14px;border-radius:8px;min-height:44px}
.qa-menu button:hover,.qa-menu button:focus-visible{background:var(--tint)}
/* One Add menu (James 2026-11-20): page headers have no Add buttons of their own, and the header actions
   (+ Add, Email, Export CSV) stay on one row on a laptop. On a narrow laptop (801-899px) the title keeps at
   least 200px and the buttons wrap beside it (QA on PR 198: one row there squeezed the title to nothing). */
@media screen and (min-width:900px){.topbar .toolbar{flex-wrap:nowrap;flex-shrink:0}.topbar>div:first-child{min-width:0}}
@media screen and (min-width:801px) and (max-width:899px){.topbar>div:first-child{flex:1 0 200px;min-width:200px}.topbar .toolbar{flex-wrap:wrap;justify-content:flex-end;min-width:0}}
.send-pick{display:grid;gap:10px;min-width:0}
.send-pick-bar{display:flex;gap:12px;align-items:end;flex-wrap:wrap}
.send-search{flex:1 1 220px;min-width:0}
.send-group{gap:0;padding:6px 10px;max-height:260px;overflow:auto}
.send-group[hidden],.send-item[hidden]{display:none}
.send-item{min-height:44px;gap:10px;align-items:center;overflow-wrap:anywhere}
.send-item small{display:block;color:#576b76}
.send-suggest{display:flex;flex-wrap:wrap;gap:8px}
.send-suggest .chip{display:grid;text-align:left;font-weight:600;padding:8px 12px;min-height:44px;border-radius:10px;max-width:100%;overflow-wrap:anywhere}
.send-suggest .chip small{font-weight:400;color:#576b76}
.send-suggest .chip[aria-pressed=true]{border-color:var(--accent);background:var(--tint)}
/* The phone + Add bar is pinned just above the tab bar, and the message at the bottom sat under it: its last line and its Dismiss and Tell us buttons were covered. On pages with the bar the message sits above it (4.6rem is the bar's bottom, 74px its height and a gap). */
@media screen and (max-width:800px){body:has(.topbar .quick-actions) #notice{bottom:calc(4.6rem + 74px + env(safe-area-inset-bottom))}}
@media screen and (max-width:800px){.topbar .quick-actions{position:fixed;left:max(12px,env(safe-area-inset-left));right:max(12px,env(safe-area-inset-right));bottom:calc(4.6rem + env(safe-area-inset-bottom));z-index:6;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:0 -4px 18px #1f232814;padding:6px}.topbar .quick-actions>*{flex:1 1 0}.topbar .quick-actions .qa-add-btn{width:100%}.topbar .qa-menu{top:auto;bottom:calc(100% + 10px);left:0;right:auto;min-width:min(300px,calc(100vw - 24px));max-height:calc(100vh - 4.6rem - 84px - env(safe-area-inset-bottom));max-height:calc(100dvh - 4.6rem - 84px - env(safe-area-inset-bottom));overflow-y:auto;overscroll-behavior:contain}main:has(.quick-actions){padding-bottom:calc(9.5rem + env(safe-area-inset-bottom))}}
/* Final design re-check (Mobile Reviewer 2026-10-30). */
/* No text under 13px: table column labels, phone card labels (dt), Tasks count badges, the saved-views label. */
main th,main dt,main td small,main .badge,main .viewbar .eyebrow{font-size:max(13px,.82rem)}
/* Tasks buckets and "Invite an agent" use the same serif as the other section titles. */
main h3.bucket-h,h3.wide{font-family:"Newsreader",Georgia,serif;font-weight:600;font-size:1.2rem;letter-spacing:-.01em}
/* 1101-1599px: the company Overview gives Policies more of the row, so insurer and standing don't wrap at 1366. */
@media (min-width:1101px) and (max-width:1599px){.cols:not(.agency):not(.full){grid-template-columns:1.85fr 1fr}}
main .kv dt,main .cert-facts dt{font-size:max(13px,.82rem)}

/* Add several at once (James 2026-10-30): one card per PDF in the review list; fields one per row on phones. */
.bulk-list{display:grid;gap:12px;min-width:0}
.bulk-row{margin:0;padding:10px 12px;min-width:0;background:#fff}
.bulk-row legend{max-width:100%}
.bulk-include{min-height:44px;gap:10px;font-weight:700;overflow-wrap:anywhere}
.bulk-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px;min-width:0}
.bulk-fields>label{min-width:0}
.bulk-fields .wide{grid-column:1/-1}
.bulk-coverages ul{margin:.3rem 0;padding-left:1.2rem}
/* QA on #182: in this comma list a note stays in line, so the next endorsement never starts a line with a comma. */
.bulk-coverages .from-description{display:inline;width:auto}
.bulk-error{margin:0}
.ai-many{margin-top:0}
@media screen and (max-width:560px){.bulk-fields{grid-template-columns:1fr}.bulk-row input:not([type=checkbox]),.bulk-row select{min-height:44px}}
/* Phones (Mobile Web Reviewer 2026-10-30): the legal links wrap as separate items with a gap, so no line ends
   in a stray dot; the sign-in page centres them. */
@media (max-width:800px){.legal-links{display:flex;flex-wrap:wrap;column-gap:1.1rem}.legal-links .sep{display:none}.login .legal-links{justify-content:center}}
/* An unbroken long word (a long email or company name) wraps instead of stretching the box around it:
   dialogs scrolled sideways and pages grew past the screen on phones (web walk 2026-11-06). Only these
   boxes: a table's columns stay as they are. */
#dialog .form-grid>*{min-width:0}
#dialog :is(h2,p,b,small,label,li),.list-item :is(b,small),#content .panel>p{overflow-wrap:anywhere}
.list-item>:first-child{min-width:0}
/* Hidden "Actions" labels in table headers: anchored to their cell so they stay inside the table's scroll box (see .expander above). */
.table-wrap th:has(>.sr){position:relative}
/* Public pages on a phone: the Back link and the rows of links are 44px tap targets. The rows stay in the text
   flow, so a long link still wraps and no dot is left at the start of a line. */
@media screen and (max-width:800px){
 .doc .back{display:inline-flex;align-items:center;min-height:44px;margin-bottom:.5rem}
 .doc>p:last-of-type,.doc>p:has(>a[href^="#"]){line-height:44px}
 .doc>p:last-of-type a,.doc>p:has(>a[href^="#"]) a{padding:12px 0}
 .doc>p>a[href="/app"]:only-child{display:inline-flex;align-items:center;min-height:44px}
 .doc .stack{gap:0}
 .doc>p.stack>a.back{padding:0;margin:0}
}
/* iPhone Safari only: a date field keeps its own box sizing unless its native look is off, so it ran past the
   dialog's right edge; and the Renewing in picker ignores min-height, so it needs a height. */
@media screen and (max-width:800px){
 input[type=date]{-webkit-appearance:none;appearance:none;height:48px}
 input[type=date]::-webkit-date-and-time-value{text-align:left}
 .kpi span select.win{height:44px}
}
/* Sideways on an iPhone with a camera cut-out: the wide layout keeps clear of it on the right, and the sidebar grows by the cut-out on the left so its logo and labels stay visible. */
@media(min-width:801px){.shell>main{padding-right:max(40px,env(safe-area-inset-right))}.side{width:calc(264px + env(safe-area-inset-left));padding-left:max(14px,env(safe-area-inset-left))}}
/* Same, for the account menu and the bottom message: off the cut-out, and the menu scrolls rather than running off the top of a short sideways screen. */
@media(min-width:801px){dialog.menu-dialog{left:max(16px,env(safe-area-inset-left));max-height:calc(100dvh - 32px);overflow:auto}#notice{right:max(1.2rem,env(safe-area-inset-right))}}
/* Certificate request: several policies, each with its own endorsements (broker feedback 2026-11-20). A policy's endorsements show once it is checked. */
.cert-policies{border:1px solid var(--line);border-radius:10px;padding:10px 14px 14px;margin:0;display:grid;gap:10px;min-width:0}
.cert-policies legend{font-weight:700;padding:0 .3rem}
.cert-policy{border:1px solid var(--line);border-radius:10px;padding:10px 12px;min-width:0}
.cert-policy:has(>label input:checked){border-color:var(--accent);background:var(--tint2)}
.cert-policy>label.check{align-items:flex-start;gap:.6rem}
.cert-policy>label.check input{margin-top:.15rem;flex:0 0 auto}
.cert-policy>label.check small{display:block;color:var(--ink3);font-weight:400;overflow-wrap:anywhere}
.cert-policy-ends{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:6px 16px;margin:10px 0 0 28px}
.cert-policy-ends>label:not(.check){grid-column:1/-1}
.cert-policy:has(>label input:not(:checked)) .cert-policy-ends{display:none}
.cert-policy-list{margin:0;padding:0;list-style:none;display:grid;gap:6px}
.cert-policy-list small{display:block;color:var(--ink3)}
.cert-policy-expired{margin-left:8px;font-size:.75rem;padding:1px 6px;vertical-align:1px}
@media screen and (max-width:800px){.cert-policy-ends{margin-left:0;grid-template-columns:1fr}}
/* Assign pop-up (src/assign-popup.js): one pop-up for every place that shows or sets "Assigned to". */
dialog.assign-dialog{width:min(560px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto}
.assign-dialog .assign-search{display:grid;gap:4px;margin:0 0 10px}
.assign-dialog .assign-choices{margin:0 0 10px}.assign-dialog [data-assign-list]{display:grid;gap:8px;max-height:min(46dvh,380px);overflow:auto;padding:2px}
.assign-dialog .choice small{color:var(--ink3);overflow-wrap:anywhere}.assign-dialog .choice b{overflow-wrap:anywhere}
.assign-dialog .assign-add-open{margin:4px 0 10px;min-height:44px}
.assign-dialog .assign-add{border:1px solid var(--line);border-radius:10px;padding:12px;margin:0 0 10px;background:var(--tint2)}
.assign-dialog .assign-add .form-grid{grid-template-columns:1fr 1fr}
@media(max-width:560px){.assign-dialog .assign-add .form-grid{grid-template-columns:1fr}}
/* Phones: full width, docked at the bottom, like the app's other phone pop-ups. */
@media screen and (max-width:800px){dialog.assign-dialog{width:100%;max-width:100%;max-height:92vh;max-height:92dvh;margin:auto 0 0;border-radius:18px 18px 0 0}}
.assign-list .assign-items{display:grid;gap:8px;margin:0 0 10px}
/* Several people can be ticked (James 2026-12-02). The signed-in person comes first, labelled Me. */
.assign-dialog .choice[data-me] b{display:inline}.assign-dialog .me-tag{color:var(--ink);background:var(--tint2);border:1px solid var(--line);vertical-align:1px}
.assign-dialog .assign-picked{margin:0 0 10px;overflow-wrap:anywhere}
/* Your tasks: at the top of the home, the open items assigned to you. */
.your-tasks{margin:0 0 16px}
.assign-field .assign-h{display:block;font-weight:600}.assign-field .assign-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:4px}
.assign-field .assign-now{overflow-wrap:anywhere}
.assign-field:has(input:disabled) [data-assign-change]{display:none}
/* In a list, who it is assigned to wraps between words only, never mid-word (Quality on #194): the column
   keeps at least its longest word and the name/project columns give way instead. */
table.fold .assign-who{white-space:normal;overflow-wrap:normal;word-break:normal;text-align:left;max-width:100%}
/* "Assigned to" is a longer heading than the old "Owner": where the list is narrow (801 and 1024px screens) its
   column gets less side padding and the headings are slightly smaller (the one-word "Subcontractor" heading sets that column's width), so the list still fits without scrolling sideways. */
@container fold (max-width:759px){table.fold thead th:nth-child(7),table.fold tbody tr[data-row]>td.c-owner{padding-left:.25rem;padding-right:.25rem}table.fold thead th{font-size:.88em;letter-spacing:0}}
.assign-who{overflow-wrap:anywhere;text-align:left}
.assign-count{margin-left:8px}
/* Recommended coverage (src/recommendations.js): the client's card stands out with the accent edge. */
.recommend-card{border-left:4px solid var(--accent)}.recommend-card h2{margin:0 0 .4rem;overflow-wrap:anywhere}.recommend-card .rec-note{margin:0 0 .4rem;color:var(--ink);overflow-wrap:anywhere}.recommend-card .rec-from,.recommend-card .rec-asked{margin:0 0 .6rem}.recommend-card .row-actions{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center}.recommend-card .rec-asked{margin:0}
#recommend-broker td small,#recommend-broker td .st+small{display:block;color:var(--ink3);overflow-wrap:anywhere}.rec-act{text-align:right;white-space:nowrap}.rec-confirm{display:inline-flex;flex-wrap:wrap;gap:.4rem;align-items:center;justify-content:flex-end;white-space:normal}
/* Recommended coverage: "Asked" in front of the date only on phones (the column header says it on desktop). */
.rec-ph{display:none}
/* The opened subcontractor row on Certificates received grows to its full height and width (James
   2026-11-20): no scroll box inside it. Its content no longer widens the table (width 0, then at least
   the cell's width), the projects table takes two of the three columns, and its tables wrap their
   headings and statuses, with a little less side padding, instead of scrolling sideways. Phones
   (800px and under) keep their stacked cards as they were. */
@media(min-width:801px){table.fold tr.detail>td>.detail-body{width:0;min-width:100%}.detail-grid>.wide-2{grid-column:span 2}.detail-body .table-wrap{overflow:visible}.detail-body th{white-space:normal}.detail-body .st{white-space:normal;align-items:flex-start}.detail-body th,.detail-body td{padding:.8rem .65rem}}
/* The subcontractor list fits the visible list width at 801-1440px (Quality on #188, 2026-11-20): no
   sideways scroll on the list, and every button in the opened row inside its edge. Headings wrap, button
   rows wrap, and a long word with no spaces (a 60-character policy number, a long carrier name) breaks
   anywhere instead of widening the list. Where the list is narrow (under 760px wide: an 801 or 1024
   screen) it drops the Projects, Requirements and Earliest expiration columns (all three are in
   the opened row), stacks the opened row's sections, and shows its tables as labelled cards, as phones do. */
@media(min-width:801px){
 .fold-wrap{container:fold/inline-size}
 table.fold{width:100%}
 table.fold th,table.fold tbody tr[data-row] :is(b,small){white-space:normal}
 table.fold tbody tr[data-row] .st{white-space:normal;align-items:flex-start}
 table.fold th,table.fold td{padding-left:.6rem;padding-right:.6rem}
 /* Break-anywhere only where long unbroken values live (names, projects, carriers, policy numbers):
    elsewhere it let columns shrink below a whole word, so headings, buttons and amounts split mid-word
    at 1180-1440px (review of #188, round 3). Amounts stay on one line; other text wraps between words. */
 table.fold :is(td.c-name,td.long-value){overflow-wrap:anywhere}
 table.fold .detail-body :is(dd,p,li){overflow-wrap:break-word}
 table.fold .detail-body td.amt,table.fold .detail-body td.date:not(:has(.no-expiry)){white-space:nowrap}
 /* Amount headings ("Each occurrence") and a short policy number ("GL-9001") stay on one line too
    (Quality on #188, 5ee27b1); a policy number over 20 characters is a long value and may break. */
 table.fold .detail-body :is(th.amt,td.short-value){white-space:nowrap}
 table.fold tr.detail>td{padding:4px 12px 16px}
 table.fold .detail-body :is(.heading,.toolbar,.row-actions){flex-wrap:wrap}
 table.fold .detail-body .heading{gap:.5rem}
 table.fold .detail-body :is(.toolbar,td) button{white-space:normal;max-width:100%}
 table.fold .detail-body td button{margin:2px 4px 2px 0}
}
@container fold (max-width:759px){
 table.fold tbody tr[data-row]>td:nth-child(n+3):nth-child(-n+5),table.fold thead th:nth-child(n+3):nth-child(-n+5){display:none}
 table.fold .detail-grid{grid-template-columns:minmax(0,1fr)}
 table.fold .detail-grid>.wide-2{grid-column:auto}
}
/* The opened row's tables (8 columns for coverage) need about 820px with whole words and one-line
   amounts, so under 960px of list width (1180 and 1280 screens too) they show as labelled cards. */
@container fold (max-width:959px){
 table.fold .detail-body .table-wrap :is(table,tbody,tr,td){display:block;width:100%}
 table.fold .detail-body .table-wrap thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
 table.fold .detail-body .table-wrap tbody tr{background:white;border:1px solid var(--line);border-radius:12px;margin:0 0 .7rem;padding:.4rem .2rem}
 table.fold .detail-body .table-wrap td{border:0;padding:.35rem .8rem}
 table.fold .detail-body .table-wrap td[data-label]::before{content:attr(data-label);display:block;margin-bottom:2px;font-size:.7rem;text-transform:uppercase;letter-spacing:.05em;color:var(--ink3);font-weight:700}
}
/* Projects tab (2026-11-20): each project row opens the list of its subcontractors under it, and the project opens in a side panel on the right; under 800px wide the panel is a full-width sheet. */
.pj-toggle{display:inline-flex;align-items:center;gap:.35rem;font-size:.82rem;padding:.4rem .7rem;min-height:36px;white-space:nowrap}
.pj-toggle .ic{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2}
.pj-subs-row>td{background:var(--tint2,#F4F7FB);padding:.4rem 1rem .8rem}
.pj-table .row-link,.pj-subs-list .row-link{display:inline;white-space:normal;overflow-wrap:anywhere;word-break:break-word;max-width:100%}
.pj-subs-list{list-style:none;margin:0;padding:0}
.pj-wrap{position:relative}
.pj-notes{overflow-wrap:anywhere;word-break:break-word}
.pj-table td.pj-where{overflow-wrap:anywhere;word-break:break-word;min-width:7rem}
body:has(.pj-panel) #notice{z-index:30}
.pj-subs-list li{display:flex;justify-content:space-between;align-items:center;gap:.8rem;padding:.6rem 0;border-bottom:1px solid var(--line)}
.pj-subs-list li:last-child{border-bottom:0}
.pj-sub-name{min-width:0;overflow-wrap:anywhere}
.pj-sub-name small{display:block;margin-top:.2rem}
.pj-empty{margin:.5rem 0}
.pj-scrim{position:fixed;inset:0;background:color-mix(in srgb,var(--ink) 35%,transparent);z-index:20}
.pj-panel{position:fixed;top:0;right:0;bottom:0;width:min(480px,92vw);background:white;color:var(--ink);border-left:1px solid var(--line);box-shadow:-8px 0 30px color-mix(in srgb,var(--ink) 18%,transparent);z-index:21;overflow:auto;padding:max(1.4rem,env(safe-area-inset-top)) 1.4rem max(2rem,env(safe-area-inset-bottom));overscroll-behavior:contain}
.pj-panel:focus{outline:none}
.pj-head{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem;margin-bottom:1rem}
.pj-head h2{overflow-wrap:anywhere}
.pj-x{position:static;min-width:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;padding:0}
.pj-facts{display:grid;gap:.7rem;margin:0 0 1rem}
.pj-facts>div{display:grid;grid-template-columns:7.5rem 1fr;gap:.6rem}
.pj-facts dt{font-size:.78rem;font-weight:700;color:var(--ink3,#576b76)}
.pj-facts dd{margin:0;overflow-wrap:anywhere}
.pj-facts dd small{display:block}
.pj-actions{display:flex;flex-wrap:wrap;gap:.5rem;margin:1rem 0 1.4rem}
.pj-subs-title{font-size:.95rem;margin:0 0 .5rem}
.pj-counts{display:flex;flex-wrap:wrap;gap:.4rem .8rem;align-items:center;margin:0 0 .4rem;font-size:.85rem}
@media screen and (max-width:800px){.pj-panel{width:100%;border-left:0;padding:max(1rem,env(safe-area-inset-top)) 16px max(2rem,env(safe-area-inset-bottom))}.pj-facts>div{grid-template-columns:1fr;gap:.15rem}.pj-actions button{flex:1 1 100%}}

/* ---- Admins' To-dos (src/admin-todos.js). Own block: .td-* only. ---- */
.td-tabs{display:flex;flex-wrap:wrap;gap:.6rem 1rem;align-items:center;justify-content:space-between;margin:0 0 .9rem}
.td-tabs .chips{display:flex;flex-wrap:wrap;gap:.4rem}
.td-tabs .chip.td-new{background:transparent;box-shadow:inset 0 0 0 1px var(--rule);color:var(--ink3)}
.td-list-actions{display:flex;gap:1rem}.td-list-actions .danger{color:var(--bad)}
.td-add{display:flex;gap:.5rem;margin:0 0 .9rem}.td-add input{flex:1;min-width:0}.td-add select{width:auto}
.td-tools{display:flex;flex-wrap:wrap;gap:.6rem 1rem;align-items:center;justify-content:space-between;margin:0 0 1rem}.td-tools .viewbar{margin:0}
.td-group{margin:0 0 1rem}.td-group h3,.td-col h3{display:flex;align-items:center;gap:.45rem;font-size:.8rem;text-transform:uppercase;letter-spacing:.05em;color:var(--ink3);margin:0 0 .35rem}
.td-group h3 span,.td-col h3 span,.td-done summary span{font-weight:500;color:var(--ink3)}
.td-dot{width:9px;height:9px;border-radius:50%;display:inline-block;background:var(--td-p)}
.p-high{--td-p:var(--bad)}.p-medium{--td-p:var(--warn)}.p-low{--td-p:#8A9AAD}
.td-rows{list-style:none;margin:0;padding:0;border:1px solid var(--line);border-radius:10px;background:#fff}
.td-row{display:flex;align-items:center;gap:.6rem;padding:.45rem .7rem;border-bottom:1px solid var(--line);border-left:3px solid var(--td-p)}
.td-row:first-child{border-top-left-radius:9px;border-top-right-radius:9px}.td-row:last-child{border-bottom:0;border-bottom-left-radius:9px;border-bottom-right-radius:9px}
.td-row input[type=checkbox]{flex:none;margin:0}
.td-title{flex:1;min-width:0;text-align:left;border:0;background:transparent;padding:.3rem 0;font-weight:500;color:var(--ink);overflow-wrap:anywhere}
.td-title:hover{background:transparent;text-decoration:underline}
.td-row.done .td-title{color:var(--ink3);text-decoration:line-through}
.td-meta{display:flex;flex-wrap:wrap;align-items:center;gap:.35rem;font-size:.78rem;color:var(--ink3)}
.td-due.over{color:var(--bad);font-weight:600}
.td-has-note{border:1px solid var(--rule);border-radius:4px;padding:0 .3rem}
.td-who{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%;background:var(--tint);color:var(--accent-dark);font-size:.68rem;font-weight:700}
.td-del{border:0;background:transparent;color:var(--ink3);font-size:.78rem;padding:.3rem .5rem;opacity:0}
.td-row:hover .td-del,.td-del:focus-visible{opacity:1}.td-del:hover{color:var(--bad);background:transparent}
@media(hover:none){.td-del{opacity:1}}
.td-done{margin-top:1rem}.td-done summary{cursor:pointer;font-weight:600;color:var(--ink3);margin:0 0 .4rem}
.td-board{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;align-items:start}
.td-col{background:var(--tint2);border:1px solid var(--line);border-radius:12px;padding:.7rem;min-height:160px}
.td-col.over{outline:2px dashed var(--accent);outline-offset:-2px}
.td-cards{display:grid;gap:.5rem}
.td-card{background:#fff;border:1px solid var(--line);border-left:4px solid var(--td-p);border-radius:9px;padding:.55rem .7rem;cursor:grab;display:grid;gap:.2rem}
.td-card.dragging{opacity:.5}.td-card .td-title{padding:0}
.td-drop-here{font-size:.85rem;text-align:center;margin:1rem 0}
.td-dialog .td-form .form-actions{align-items:center}.td-dialog .td-del-in{margin-right:auto}
.td-people{grid-template-columns:1fr 1fr}.td-people small{margin-left:.3rem}
.td-pop{position:fixed;z-index:20;width:280px;background:#fff;border:1px solid var(--line);border-radius:10px;box-shadow:0 8px 28px #0f1b2d33;padding:.8rem}
.td-pop p{margin:0 0 .6rem;font-size:.9rem;line-height:1.4}.td-pop-actions{display:flex;gap:.5rem}.td-pop-actions button{padding:.45rem .8rem;font-size:.85rem}
.td-pop .danger{background:var(--bad);border-color:var(--bad);color:#fff}
@media screen and (max-width:800px){.side .side-link[data-view=todos]{display:none}.td-board{grid-template-columns:1fr}.td-people{grid-template-columns:1fr}.td-add{flex-wrap:wrap}.td-add input{flex-basis:100%}}
/* All clients at a glance (src/client-board.js), the top of the Agency overview. */
.board-tools{display:flex;flex-wrap:wrap;gap:12px;padding:4px 20px 0}
.board-tools label{margin:0;font-size:.85rem;color:var(--ink2)}
.board-tools :is(input,select){display:block;margin-top:4px;font-size:1rem}
.board-search{flex:1 1 16rem}.board-search input{width:100%}.board-sort{flex:0 1 14rem}.board-sort select{width:100%}
.board-filters{padding:12px 20px 0;margin:0}.board-n{color:var(--ink2);font-variant-numeric:tabular-nums;margin-left:2px}
#client-board [data-board-note] .help{margin:10px 20px 0}
#client-board [data-board-body]{margin-top:10px}
table.board{width:100%;border-collapse:collapse;table-layout:fixed;font-size:.95rem}
table.board th{background:transparent;text-transform:none;letter-spacing:0;padding:6px 8px;border-bottom:1px solid var(--rule);vertical-align:bottom;text-align:left;white-space:normal}
table.board th:first-child,table.board td:first-child{padding-left:20px;width:24%}
table.board th:last-child,table.board td:last-child{padding-right:20px}
table.board th button{border:0;background:transparent;padding:4px 0;min-height:32px;font-size:max(.82rem,13px);font-weight:500;color:var(--ink2);text-align:left}
table.board th[aria-sort] button{color:var(--ink);font-weight:700}
table.board td{padding:12px 8px;border-bottom:1px solid #E3EAEF;vertical-align:top;color:var(--ink);overflow-wrap:break-word}
table.board td small{display:block;color:var(--ink3);font-size:.82rem;margin-top:2px}
table.board .st{white-space:normal;align-items:baseline}.board .st i{flex:none}
table.board tbody tr{cursor:pointer}table.board tbody tr:hover>td,table.board tbody tr:focus-within>td{background:var(--tint)}
table.board .board-name .linkish{overflow-wrap:break-word;min-height:24px}
.board-ph{display:none}
/* Narrower screens: each client is a card. Its name, then only the columns that have something. */
@media(max-width:1100px){
 table.board,table.board tbody{display:block}table.board thead{display:none}
 table.board tbody tr{display:grid;grid-template-columns:repeat(auto-fill,minmax(8.5rem,1fr));gap:10px 12px;margin:0;padding:14px 20px;border:0;border-top:1px solid #E3EAEF;border-radius:0;background:transparent}
 table.board tbody tr:hover,table.board tbody tr:focus-within{background:var(--tint)}
 table.board td{display:block;width:auto!important;min-width:0;min-height:0;padding:0!important;border:0;background:transparent!important}
 table.board td::before{content:none!important}
 table.board td.board-name{grid-column:1/-1}
 table.board td.board-zero{display:none}
 .board-ph{display:block;font-size:.75rem;color:var(--ink3);margin-bottom:2px}
}
@media screen and (max-width:800px){
 .board-tools{padding:4px 16px 0}.board-filters{padding:12px 16px 0}
 .board-filters .seg{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}.board-filters .seg button{min-height:44px;padding:6px 8px}
 .board-sort{flex:1 1 100%}
 #client-board [data-board-note] .help{margin:10px 16px 0}
 table.board tbody tr{padding:12px 16px}
 table.board .board-name .linkish{min-height:44px}
}
