/* Prosolve SA - To Do and Reminders (web) - the desktop app's stylesheet (app.py CSS), plus a few web-only rules at the end. */
:root{color-scheme:light;
/* v2.18.0 (V8-5): the old short names now point at the shared tokens in tokens.css (the one palette) – card borders 2 px lighter brand blue (Q-i) */
--bg:var(--c-bg);--card:var(--c-card);--fg:var(--c-text);--muted:var(--c-muted);--line:var(--c-line);--acc:var(--c-brand);--acc2:var(--c-brand-tint);
--red:var(--c-err);--box:var(--c-card-border);--box-w:var(--card-bw);--box-r:var(--r);--box-pad:var(--card-pad);--redbg:var(--c-err-bg);--amber:var(--c-warn);--amberbg:var(--c-warn-bg);--green:var(--c-ok);--greenbg:var(--c-ok-bg)}
/* Display scale (Dashboard "Display" setting): the whole UI is in rem, so one root font-size scales text, spacing, boxes, tables and
   the header together. Auto = HD = 100%. Width breakpoints are html.wNNN classes set by app.js from the width in rem
   (media queries cannot see this scale). */
html{font-size:calc(16px * var(--ui-scale,1))}
html[data-display="qhd"]{--ui-scale:1.3333}
html[data-display="4k"]{--ui-scale:2}
.dispsel{display:inline-flex;align-items:center;gap:.375rem;font-size:.8125rem;color:var(--muted)} .tact .dispsel select{width:auto}
*{box-sizing:border-box}
body{margin:0;font:0.9375rem/1.5 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;background:var(--bg);color:var(--fg)}
header{display:flex;align-items:center;gap:0.625rem;padding:0.3125rem 0.875rem;background:var(--card);border-bottom:1px solid var(--line);
position:sticky;top:0;z-index:5;flex-wrap:nowrap;font-size:0.875rem}
header button.sm,header .btn.sm{padding:0.1875rem 0.5625rem;white-space:nowrap}
.brand{font-weight:700;font-size:1rem;white-space:nowrap}
nav{display:flex;gap:0.125rem;flex:1;min-width:0;flex-wrap:nowrap}
nav a{padding:0.25rem 0.5625rem;border-radius:0.5rem;color:var(--fg);text-decoration:none;white-space:nowrap}
nav a:hover{background:var(--bg)} nav a.on{background:var(--acc2);color:var(--acc);font-weight:600}
.who{display:flex;align-items:center;gap:0.375rem;white-space:nowrap} .who a{padding:0.25rem 0.5rem;border-radius:0.5rem;color:var(--fg);text-decoration:none}
.who a:hover{background:var(--bg)} .who a.on{background:var(--acc2);color:var(--acc);font-weight:600}
main{max-width:77.5rem;margin:0 auto;padding:1.25rem}
/* The dashboard fits the window: only the Focus list scrolls. #app (not body) is the column, because header and main live inside it.
   100dvh follows the visible area (browser toolbars, display scaling and zoom change it); 100vh is the fallback. */
body.fit{height:100vh;height:100dvh;overflow:hidden}
body.fit #app{height:100%;display:flex;flex-direction:column;min-height:0}
body.fit header,body.fit #syncbar{flex:none}
body.fit #alerts{flex:none;width:100%;box-sizing:border-box}
body.fit main{flex:1 1 auto;min-height:0;overflow-y:auto;display:flex;flex-direction:column;width:100%;max-width:77.5rem;margin:0 auto;box-sizing:border-box;padding-top:0.75rem;padding-bottom:0.375rem}
body.fit main>*{flex:none}
body.fit main h1{margin:0 0 0.625rem;font-size:1.25rem}
body.fit .card.focus{flex:1 1 auto;min-height:min(13.75rem,40dvh);display:flex;flex-direction:column;margin-bottom:0.375rem;padding-bottom:0.5rem}
body.fit .focus .scroll{flex:1;min-height:0;overflow:auto}
body.fit .focus thead th{position:sticky;top:0;background:var(--card);z-index:1}
body.fit .dbpath{margin:0.125rem 0 0}
h1{font-size:1.375rem;margin:0.25rem 0 1rem} h2{font-size:1.0625rem;margin:0 0 0.75rem}
a{color:var(--acc)}
/* every main section is one box: same colour, thickness, corner radius and padding on all pages (change the --box variables above) */
.card{background:var(--card);border:var(--box-w) solid var(--box);border-radius:var(--box-r);padding:var(--box-pad);margin-bottom:0.75rem}
.grid{display:grid;gap:1rem;grid-template-columns:repeat(auto-fill,minmax(17.5rem,1fr))}
.two{display:grid;gap:1rem;grid-template-columns:1fr 1fr} html.w800 .two{grid-template-columns:1fr}
.stats{display:grid;gap:0.375rem;grid-template-columns:repeat(auto-fit,minmax(7.375rem,1fr));margin-bottom:0.75rem}
.stat{background:var(--card);border:var(--card-bw) solid var(--card-bc);border-radius:0.5rem;padding:0.3125rem 0.625rem;text-decoration:none;color:var(--fg);
 display:flex;align-items:center;gap:0.5rem;min-height:2.5rem}
.stat:hover{border-color:var(--acc)}
.stat b{font-size:1.25rem;line-height:1;min-width:1.2em} .stat span{color:var(--muted);font-size:0.75rem;line-height:1.25}
.stat.warn b{color:var(--red)} .stat.warn em{color:var(--c-overdue);font-style:normal;font-weight:700}
.stat.tom{background:var(--c-tomorrow-bg)} .stat.tom b{color:var(--c-overdue)}
form.f{display:grid;gap:0.75rem;grid-template-columns:repeat(auto-fill,minmax(12.5rem,1fr))}
form.f .full{grid-column:1/-1}
label{display:flex;flex-direction:column;gap:0.25rem;font-size:0.8125rem;color:var(--muted)}
label.chk{flex-direction:row;align-items:center;gap:0.5rem;color:var(--fg)}
input,select,textarea{font:inherit;color:var(--fg);background:var(--bg);border:1px solid var(--line);border-radius:0.5rem;padding:0.4375rem 0.625rem;width:100%}
input[type=checkbox]{width:auto}
textarea{resize:vertical;min-height:4.375rem}
input:focus,select:focus,textarea:focus{outline:0.125rem solid var(--acc);outline-offset:-1px}
.btn,button{font:inherit;cursor:pointer;border:1px solid var(--line);background:var(--card);color:var(--fg);
border-radius:0.5rem;padding:0.4375rem 0.875rem;text-decoration:none;display:inline-block}
.btn:hover,button:hover{border-color:var(--acc)}
.primary{background:var(--acc);border-color:var(--acc);color:var(--c-white)}
.danger{color:var(--red)} .sm{padding:0.1875rem 0.625rem;font-size:0.8125rem}
.actions{display:flex;gap:0.5rem;align-items:end;flex-wrap:wrap}
form.inline{display:inline}
table.list{width:100%;border-collapse:collapse}
table.list th{text-align:left;font-size:0.75rem;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);
padding:0.375rem 0.5rem;border-bottom:1px solid var(--line)}
table.list td{padding:0.5rem;border-bottom:1px solid var(--line);vertical-align:top}
td.acts{white-space:nowrap;text-align:right}
table.compact{font-size:0.75rem;line-height:1.3} table.compact th{font-size:0.6562rem;padding:0.25rem 0.375rem;white-space:nowrap}
table.compact td{padding:0.1875rem 0.375rem;vertical-align:middle} table.compact .ttl{font-weight:600}
table.compact .na, table.compact .lu, table.compact .muted{font-size:0.75rem} table.compact .badge{font-size:0.6562rem;padding:0 0.375rem}
table.compact td.lucol{min-width:8.75rem;max-width:none} table.compact .lu{white-space:normal}
table.compact .btn.sm{padding:1px 0.5rem;font-size:0.7188rem} table.compact td.na{min-width:8.75rem} table.compact td:nth-child(1):not(.pick),table.compact td.pick+td{min-width:11.25rem} .nw{white-space:nowrap}
tr.done .ttl{text-decoration:line-through;color:var(--muted)}
.ttl{font-weight:600;text-decoration:none;color:var(--fg)}
.check{width:1.5rem;height:1.5rem;padding:0;border-radius:0.375rem;font-weight:700;color:var(--green);line-height:1}
tr.done .check{background:var(--greenbg);border-color:var(--green)}
.badge,.chip{display:inline-block;font-size:0.75rem;padding:1px 0.5rem;border-radius:6.1875rem;background:var(--bg);border:1px solid var(--line)}
.p1{background:var(--redbg);color:var(--red);border-color:transparent}
.p3{color:var(--muted)}
.calbar{display:flex;align-items:center;gap:0.375rem;flex-wrap:wrap;margin-bottom:0.5rem} .calbar h2{margin:0 0.375rem;min-width:9.375rem;text-align:center}
.calbar .seg{display:inline-flex;margin-left:auto} .calbar .seg .btn{border-radius:0} .calbar .seg .btn:first-child{border-radius:0.5rem 0 0 0.5rem}
.calbar .seg .btn:last-child{border-radius:0 0.5rem 0.5rem 0} .calbar .seg .btn.on{background:var(--acc2);color:var(--acc);font-weight:600}
.calbar .gall{display:inline-flex;gap:0.25rem}
table.cal{width:100%;border-collapse:collapse;table-layout:fixed}
table.cal thead th{font-size:0.6875rem;text-transform:uppercase;color:var(--muted);font-weight:600;padding:0.1875rem;border-bottom:1px solid var(--line)}
table.cal th.wn{width:2.75rem} table.cal tbody th.wn{vertical-align:top;padding:0.25rem 0.125rem;border:1px solid var(--line);background:var(--bg);font-weight:500}
table.cal tbody th.wn span{display:block;font-size:0.6875rem;color:var(--muted)} table.cal tbody th.wn em{display:block;font-style:normal;font-size:0.6875rem;color:var(--acc);font-weight:600}
.wtog{padding:0 0.375rem;font-size:0.75rem;line-height:1.125rem}
table.cal td{border:1px solid var(--line);vertical-align:top;padding:0.125rem 0.1875rem;height:5.375rem;overflow:hidden}
table.cal td.out{background:var(--c-subtle)} table.cal td.out .dn{color:var(--c-muted)} table.cal td.we{background:var(--c-subtle)}
table.cal td.today{box-shadow:inset 0 0 0 0.125rem var(--acc)} table.cal td.today .dn{color:var(--acc);font-weight:700}
.dn{font-size:0.75rem;color:var(--muted);text-align:right;line-height:1.3}
.ci{display:flex;gap:0.25rem;align-items:baseline;font-size:0.7188rem;line-height:1.35;padding:0 0.25rem;margin:1px 0;border-radius:0.25rem;text-decoration:none;
color:var(--fg);background:var(--st-active-bg);border-left:0.1875rem solid var(--acc);overflow:hidden}
.ci .cn{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0} .ci .ct{color:var(--muted);flex:none}
.ci.rem{background:var(--amberbg);border-left-color:var(--c-warn)} .ci.over{background:var(--redbg);border-left-color:var(--red)}
.ci.today{font-weight:600} .ci.done{background:var(--c-grey-bg);border-left-color:var(--c-muted);color:var(--muted)} .ci.done .cn{text-decoration:line-through}
.ci.fut{opacity:.8} .ci:hover{filter:brightness(.96)}
.cmore{border:0;background:none;padding:0 0.25rem;font-size:0.6875rem;color:var(--acc);cursor:pointer}
table.cal .cf{display:none}
table.cal tr.open td{height:auto} table.cal tr.open .cc{display:none} table.cal tr.open .cf{display:block}
table.cal tr.open .ci{display:block;padding:0.1875rem 0.375rem;margin:0.1875rem 0;font-size:0.7812rem}
table.cal tr.open .ci .cn{display:block;white-space:normal;font-weight:600} table.cal tr.open .ci .ct{display:inline}
table.cal tr.open .ci .cr,table.cal tr.open .ci .cna{display:block;font-size:0.7188rem;color:var(--muted)}
.calkey{display:flex;flex-wrap:wrap;gap:0.375rem;align-items:center;margin:0.5rem 0 0} .calkey .ci{display:inline-flex}
html.w760 table.cal td{height:4rem} html.w760 .ci .ct{display:none}
.setup h3{font-size:0.875rem;margin:0.875rem 0 0.375rem} .setup .cand{display:flex;gap:0.5rem;align-items:center;margin:0.25rem 0}
.setup .cand code{flex:1;word-break:break-all}
.brand .ver{font-size:0.6875rem;font-weight:500;color:var(--c-muted);margin-left:0.125rem}
.syncbar{position:sticky;top:0;z-index:20;background:var(--c-brand-tint);border-bottom:1px solid var(--c-brand-line);padding:0.25rem 0.875rem;font-size:0.8125rem}
.syncbar[hidden]{display:none}
.due.over{color:var(--red);font-weight:600} .due.today{color:var(--red);font-weight:700}
/* task rows: overdue = orange line, due tomorrow = yellow line, due today = white; all three bold red text */
tr.overdue td{background:var(--c-overdue-bg)} tr.tomorrow td{background:var(--c-tomorrow-bg)}
tr.overdue td, tr.tomorrow td, tr.duetoday td,
tr.overdue td :is(.ttl,.na,.lu,.muted,.due,.small,.p3), tr.tomorrow td :is(.ttl,.na,.lu,.muted,.due,.small,.p3),
tr.duetoday td :is(.ttl,.na,.lu,.muted,.due,.small,.p3){color:var(--c-overdue);font-weight:700}
li.duetoday, li.duetoday a{color:var(--c-overdue);font-weight:700}
.ok{color:var(--green)}
a.catlink{color:inherit;text-decoration:none} a.catlink:hover{text-decoration:underline}
.dbpath{margin-top:1.75rem;text-align:center;font-size:0.6875rem} .printonly{display:none} [hidden]{display:none!important}
dl.info{display:grid;grid-template-columns:max-content 1fr;gap:0.375rem 1rem;margin:0}
dl.info dt{color:var(--muted);font-size:0.8125rem} dl.info dd{margin:0}
.desc{white-space:pre-wrap;word-break:break-word}
.dhead{display:flex;align-items:center;gap:0.75rem;flex-wrap:wrap;margin-bottom:0.75rem} .dhead h2{margin:0;font-size:1.25rem}
.badge.open{background:var(--st-active-bg);border-color:var(--st-active-line);color:var(--c-brand-dk)} .badge.done{background:var(--c-ok-bg);border-color:var(--c-ok-line);color:var(--c-ok)}
.facts{display:grid;grid-template-columns:repeat(auto-fill,minmax(11.25rem,1fr));gap:0.625rem}
.fact{background:var(--c-subtle);border:1px solid var(--line);border-radius:0.5rem;padding:0.5rem 0.75rem}
.fact.wide{grid-column:1/-1} .fact .k{font-size:0.6875rem;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}
.fact .v{font-weight:600;margin-top:0.1875rem;word-break:break-word} .fact .v.desc{font-weight:400}
.overdue-card,.duetoday-card{border-left:0.375rem solid var(--c-overdue)}
tr.overdue td,tr.overdue td :is(.ttl,.na,.lu,.muted,.due,.small,.p3),.due.over{font-weight:700}   /* Q-j replaces the v2.0.2 "no fill, nothing bold" for overdue only */
.chip{text-decoration:none;color:var(--muted)} .chip.on{background:var(--acc2);color:var(--acc)}
.muted{color:var(--muted)} .small{font-size:0.8125rem} .empty{color:var(--muted);font-style:italic}
.tabs{display:flex;gap:0.375rem;margin-bottom:0.75rem;flex-wrap:wrap}
.tabs a{padding:0.3125rem 0.75rem;border-radius:6.1875rem;border:1px solid var(--line);text-decoration:none;color:var(--fg)}
.tabs a.on{background:var(--acc);border-color:var(--acc);color:var(--c-white)}
.note{display:flex;flex-direction:column;gap:0.375rem}
.note .body{white-space:pre-wrap;word-break:break-word;max-height:13.75rem;overflow:hidden}
.note.pin{border-color:var(--amber)}
.flash{background:var(--greenbg);color:var(--green);padding:0.5rem 0.875rem;border-radius:0.5rem;margin-bottom:0.75rem}
.flash.err{background:var(--redbg);color:var(--red)}
#alerts{max-width:68.75rem;margin:0 auto;padding:0 1.25rem}
.alerts{margin-top:0.625rem;border:1px solid var(--amber);border-radius:0.625rem;background:var(--c-white);overflow:hidden}
.alerts .ahead{display:flex;justify-content:space-between;align-items:center;background:var(--amberbg);
 padding:0.25rem 0.625rem;font-size:0.8125rem;font-weight:700;border-bottom:1px solid var(--amber)}
.alerts .ahead span{font-weight:400}
.alerts .alist{max-height:min(13.125rem,30vh);overflow-y:auto}
.atab{width:100%;border-collapse:collapse;table-layout:fixed;font-size:0.8125rem}
.atab th{text-align:left;font-size:0.6562rem;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);padding:0.1875rem 0.5rem;
 background:var(--c-warn-bg);border-bottom:1px solid var(--line);position:sticky;top:0}
.atab td{padding:0.25rem 0.5rem;border-bottom:1px solid var(--line);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}
.atab tr:last-child td{border-bottom:0} .atab td.c-task.multi{vertical-align:top;border-right:1px solid var(--line);white-space:normal}
.atab tr:not(.gfirst) td{border-top:0} .atab tr.gfirst td{border-top:1px solid var(--c-warn-line)} .atab tr.late td{background:var(--c-warn-bg)}
.atab .c-task{width:30%} .atab .c-task a{color:inherit;text-decoration:none} .atab .c-task a:hover{text-decoration:underline}
.atab .c-na{width:30%} .atab th:nth-child(3){width:8rem} .atab th:nth-child(4){width:7.75rem} .atab th{white-space:nowrap} .atab th.acts{width:20.625rem}
.atab td.c-when{color:var(--muted)}
.atab td.acts{border-left:0.125rem solid var(--amber);background:var(--c-warn-bg);overflow:visible;padding:0.1875rem 0.5rem}
.atab .ab{display:flex;gap:0.375rem;align-items:center;justify-content:flex-end}
.atab select{width:auto;padding:0.125rem 0.25rem;font-size:0.75rem} .atab .btn,.atab button{padding:0.125rem 0.5rem;font-size:0.75rem}
.atab form{display:flex;gap:0.25rem;margin:0} .atab button.primary{min-width:5.75rem} .atab .gap{visibility:hidden}
html.w900 .atab th:nth-child(4),html.w900 .atab td.c-when{display:none} html.w900 .alerts .ahead .muted{display:none}
html.w640 .alist{overflow-x:auto} html.w640 .atab{min-width:38.75rem}
ul.plain{list-style:none;margin:0;padding:0} ul.plain li{padding:0.375rem 0;border-bottom:1px solid var(--line)}
ul.plain li:last-child{border:0}
.owner{background:var(--acc2);color:var(--acc);border-color:transparent}
.na{font-size:0.8125rem} .na .due{white-space:nowrap}
details.add{margin-bottom:0.625rem} details.add summary{cursor:pointer;font-weight:600;font-size:0.875rem;color:var(--acc);list-style:none}
details.add summary::-webkit-details-marker{display:none}
details.add[open] summary{color:var(--fg)}
.tabs.prio a{font-size:0.75rem;padding:1px 0.5625rem} .flabel{align-self:center;min-width:3.875rem;font-size:0.75rem}
.tasks-page .tabs{margin-bottom:0.375rem;gap:0.25rem} .tasks-page .tabs a{padding:0.1875rem 0.6875rem;font-size:0.8125rem}
.tasks-page .tabs.prio a{font-size:0.75rem;padding:1px 0.5625rem}
label.opt{flex-direction:row;align-items:flex-start;gap:0.5rem;color:var(--fg);font-size:0.8125rem} label.opt input{width:auto;margin-top:0.125rem}
.qbar{margin:0 0 0.75rem;gap:0.375rem} .qbar button,.qbar .btn{padding:0.3125rem 0.75rem;font-size:0.8125rem}
dialog.qadd{border:1px solid var(--line);border-radius:0.75rem;padding:1rem 1.25rem;width:min(47.5rem,94vw);box-shadow:0 0.75rem 2.5rem rgba(0,0,0,.25)}
dialog.qadd::backdrop{background:rgba(15,23,42,.45)} .qhead{display:flex;justify-content:space-between;align-items:center;margin-bottom:0.625rem}
.qhead h2{margin:0}
dialog.qadd.datefix{width:min(34rem,94vw)} dialog.datefix [data-df-offer]{margin-top:0.5rem}  /* v2.19.17 (fix 12): the date-problem pop-up */
table.rgroups th.gt, table.rgroups td.gt{width:1.125rem;min-width:0!important;padding-right:0}
.gtog{border:0;background:none;padding:0 0.125rem;font-size:0.8125rem;cursor:pointer;color:var(--muted);width:auto}
table.rgroups tr.gfirst td{border-top:1px solid var(--c-line)} table.rgroups tr.gsub td{border-top:0}
table.rgroups td.c-task{min-width:12.5rem} .hrow{display:flex;justify-content:space-between;align-items:center}
.gall{display:flex;gap:0.375rem} .gall button{padding:0.125rem 0.5rem;font-size:0.75rem;font-weight:400}
.card.ccompact h2{font-size:0.9375rem;margin-bottom:0.375rem}
form.f.fcompact.rform{grid-template-columns:2fr 1.3fr 1fr 1.6fr} form.f.rform .rmsg{grid-column:1/4}
form.f.rform textarea{min-height:0;resize:vertical} form.f.rform .actions{align-self:end}
html.w760 form.f.fcompact.rform{grid-template-columns:1fr 1fr} html.w760 form.f.rform .rmsg{grid-column:1/-1}
form.f.fcompact{gap:0.375rem 0.625rem;grid-template-columns:repeat(auto-fill,minmax(10.625rem,1fr));align-items:end;font-size:0.75rem}
form.f.fcompact input, form.f.fcompact select, form.f.fcompact textarea{padding:0.25rem 0.5rem;font-size:0.7812rem} form.f.fcompact label{gap:0.125rem;font-size:0.75rem} form.f.fcompact .btn, form.f.fcompact button{padding:0.25rem 0.625rem;font-size:0.7812rem}
td.lucol{min-width:11.25rem;max-width:20rem} .lu{font-size:0.8125rem;white-space:pre-wrap;word-break:break-word}
.upd{border-left:0.1875rem solid var(--line);padding:0.5rem 0.75rem;margin-bottom:0.625rem}
.upd.latest{border-left-color:var(--acc)}
.upd .body{white-space:pre-wrap;word-break:break-word}
@media print{
 @page{margin:12mm}
 *{-webkit-print-color-adjust:exact;print-color-adjust:exact}
 header,#alerts,.noprint,button,.btn,details.add,form.f,.tabs,.flash,td.acts,th.acts,.stats a.stat:hover{display:none!important}
 body{background:var(--c-white);font-size:0.75rem} main{max-width:none;padding:0}
 body.fit{height:auto;overflow:visible;display:block} body.fit .focus .scroll{overflow:visible}
 .card{border:1px solid var(--c-print-line);border-radius:0.375rem;break-inside:avoid-page}
 .printonly{display:block;color:var(--c-grey);font-size:0.6875rem;margin:-0.625rem 0 0.625rem}
 a{color:inherit;text-decoration:none}
 table.list, table.list .na, table.list .lu, table.list .small, .chip, .badge{font-size:0.6875rem} .two{grid-template-columns:1fr 1fr}
}
/* web only */
.loading{color:var(--muted);font-style:italic;padding:1.25rem 0}
.cfgerr{max-width:45rem;margin:2.5rem auto;padding:0 1.25rem}
button[disabled]{opacity:.6;cursor:progress}

/* v1.13: task statuses and projects */
.badge.st{font-weight:600}
.badge.st-active{background:var(--st-active-bg);border-color:var(--st-active-line);color:var(--c-brand-dk)}
.badge.st-awaiting-update-internal{background:var(--c-warn-bg);border-color:var(--c-warn-line);color:var(--c-warn)}
.badge.st-awaiting-update-external{background:var(--c-warn-bg);border-color:var(--c-warn-line);color:var(--c-warn)}
.badge.st-awaiting-feedback{background:var(--st-violet-bg);border-color:var(--st-violet-line);color:var(--st-violet)}
.badge.st-on-hold{background:var(--c-grey-bg);border-color:var(--c-line);color:var(--c-grey)}
.badge.st-completed{background:var(--c-ok-bg);border-color:var(--c-ok-line);color:var(--c-ok)}
.tags{margin-top:0.1875rem;display:flex;flex-wrap:wrap;gap:0.25rem;align-items:center}
a.ptag{font-size:0.75rem;color:var(--fg);text-decoration:none;white-space:nowrap}
a.ptag:hover{color:var(--acc);text-decoration:underline}
/* v2.19.12: the Client column of the task and project lists - a secondary column, hidden on narrow screens */
td.ccol{font-size:0.8125rem;white-space:nowrap} @media (max-width:56rem){table.list .ccol{display:none}}
.pbar{display:inline-block;vertical-align:middle;width:5.625rem;height:0.5rem;border-radius:6.1875rem;background:var(--c-line);overflow:hidden}
.pbar i{display:block;height:100%;background:var(--c-ok)}
table.list th.pick,table.list td.pick{width:2.25rem;min-width:2.25rem;max-width:2.25rem;padding-left:0.375rem;padding-right:0;text-align:center}
input[type=checkbox]{width:auto}
td.num,th.num{text-align:right}
form.bulk{margin:0 0 0.5rem;padding:0.375rem 0.625rem;border:1px dashed var(--amber);border-radius:0.5rem;background:var(--amberbg);display:flex;gap:0.5rem;align-items:center;flex-wrap:wrap}
form.bulk[hidden]{display:none}
form.bulk label{display:flex;flex-direction:row;align-items:center;gap:0.375rem} form.bulk select{width:auto}
ul.stlog li{margin:0.25rem 0}
tr.archived{opacity:.6}
.pstats{margin:0.75rem 0}
@media print{.bulk,.pick{display:none} html{font-size:16px!important}}

/* v1.13 layout: title bar with actions, one-line filters, add panels */
.titlebar{display:flex;align-items:center;justify-content:space-between;gap:0.75rem;flex-wrap:wrap;margin:0.25rem 0 0.625rem} .titlebar h1{margin:0}
/* v2.19.7 (item 8): tab buttons directly right of a page heading (Asset returns, Asset issues) - one style, wraps under the heading when it does not fit */
.titlemain{display:flex;align-items:center;gap:0.375rem 1rem;flex-wrap:wrap;min-width:0}
.pagetabs,html.w1100 .pagetabs{display:flex;gap:0.25rem;flex-wrap:wrap;margin:0;flex:0 1 auto;order:0;min-width:0}   /* not the header nav rules (nav{flex:1}, html.w1100 nav{flex:1 1 100%}) */
.pagetabs a{padding:0.375rem 0.875rem;border:1px solid var(--nr-line,var(--c-line));border-radius:62.5rem;text-decoration:none;color:inherit;background:var(--nr-card,var(--c-white));font-size:0.875rem;white-space:nowrap}
.pagetabs a.on{background:var(--acc2,var(--c-brand-tint));border-color:var(--acc,var(--c-brand));font-weight:600}
.tact{display:flex;align-items:center;gap:0.5rem;flex-wrap:wrap} .tact form{margin:0}
.tact input[type=search]{width:13.75rem} .tact select,.tact .btn{width:auto;padding:0.3125rem 0.625rem;font-size:0.8125rem}
body.fit .titlebar{margin-bottom:0.625rem}
.addpanel[hidden]{display:none}
.live .frow{display:flex;gap:0.5rem;align-items:center;flex-wrap:wrap;margin-bottom:0.375rem} .live .frow:last-of-type{margin-bottom:0}
.live .frow input[type=search]{flex:1;min-width:13.75rem;width:auto;padding:0.3125rem 0.625rem;font-size:0.8125rem}
.live .tabs.seg{margin:0;gap:0;flex-wrap:nowrap} .live .tabs.seg a{border-radius:0;padding:0.3125rem 0.75rem;font-size:0.8125rem;margin-left:-1px}
.live .tabs.seg a:first-child{border-radius:0.5rem 0 0 0.5rem;margin-left:0} .live .tabs.seg a:last-child{border-radius:0 0.5rem 0.5rem 0}
.fsel{width:auto;max-width:11.875rem;padding:0.25rem 0.5rem;font-size:0.7812rem;border-radius:0.5rem} .fsel.on{border-color:var(--acc);background:var(--acc2)}
.clearf{font-size:0.8125rem;margin-left:0.25rem}
/* v2.14.0 (General fixes V6 item 1): the date range of the Tasks list and the project page task list: presets + From / To, wrapping as one group */
.drange{display:inline-flex;gap:0.375rem;align-items:center;flex-wrap:wrap;min-width:0;max-width:100%}
.drange .fsel{max-width:19rem}
.drange .dfield{display:inline-flex;flex-direction:row;gap:0.25rem;align-items:center;font-size:0.75rem;color:var(--muted);margin:0;white-space:nowrap}
.drange .dfield input{width:auto;min-width:0;max-width:9.5rem;padding:0.1875rem 0.375rem;font-size:0.7812rem;border-radius:0.5rem}
.pfilter{margin:0 0 0.5rem}
.undated{margin:0.75rem 0 0.25rem;font-weight:normal}
.fchips{display:flex;gap:0.375rem;align-items:center;flex-wrap:wrap;margin-top:0.375rem}
.fchip{display:inline-flex;gap:0.25rem;align-items:center;font-size:0.75rem;padding:1px 0.25rem 1px 0.625rem;border-radius:6.1875rem;background:var(--acc2);color:var(--acc)}
.fchip a{text-decoration:none;padding:0 0.3125rem;color:inherit}
tr.clickrow{cursor:pointer} tr.clickrow:hover td{background:var(--acc2)}
form.f.fcompact.rform{display:flex;flex-wrap:wrap;gap:0.5rem;align-items:flex-end} form.f.rform label{flex:0 0 auto;min-width:0}
form.f.rform label.rtitle{flex:1 1 13.75rem} form.f.rform label.rmsg{flex:2 1 13.75rem;grid-column:auto}
form.f.rform .actions{flex:0 0 auto;display:flex;gap:0.375rem}
.nbar{display:flex;gap:0.875rem;align-items:center;flex-wrap:wrap}
.nsearch{flex:0 1 23.75rem;min-width:13.75rem;margin:0} .sbox{position:relative;display:block} .sbox input{padding-right:1.75rem}
.xclear{position:absolute;right:0.5rem;top:50%;transform:translateY(-50%);text-decoration:none;color:var(--muted);font-size:0.8125rem}
.ntags{display:flex;gap:0.375rem;align-items:center;flex-wrap:wrap} .chip.on{background:var(--acc);border-color:var(--acc);color:var(--c-white);text-decoration:none}
html.w1100 header{flex-wrap:wrap} html.w1100 nav{order:3;flex:1 1 100%;flex-wrap:wrap} html.w1100 .who{margin-left:auto}
.card.tasks-page{overflow-x:auto}

/* v1.14: tighter UI. Slightly smaller text and less padding so more fits on screen; nothing is bold except overdue tasks. */
body{font-size:0.875rem;line-height:1.4}
main{max-width:90rem;padding:0.75rem 1rem}
body.fit main{max-width:90rem}
/* SUPPORT RELEASE: the Support page uses the full width (Support's Wide layout is 1500 px and up; it draws itself in a shadow root) */
body.support main{max-width:none} .supportmount{display:block;min-width:0}
/* 2.20.9-staging (Support fixes v3 item 6): Support draws the title on its own top line, beside its tabs; ToDo's title bar steps aside only then */
body.support main:has(> .supportmount[data-support-title]) > .titlebar{display:none}
h1{font-size:1.25rem;margin:0.125rem 0 0.625rem} h2{font-size:1rem;margin:0 0 0.5rem}
header{padding:0.25rem 0.75rem;gap:0.5rem;font-size:0.8125rem}
nav a{padding:0.1875rem 0.5rem}
:root{--box-pad:0.5rem 0.75rem} .card{margin-bottom:0.5rem}
table.compact{font-size:0.75rem;line-height:1.25} table.compact td{padding:0.125rem 0.375rem} table.compact th{padding:0.1875rem 0.375rem}
table.list th{padding:0.25rem 0.5rem}
.stat{padding:0.25rem 0.625rem}
form.f{gap:0.5rem 0.75rem} input,select,textarea{font-size:0.8125rem}
.ttl,table.compact .ttl,.badge.st,.ci.today,table.cal tr.open .ci .cn,.fact .v,.card.note .ttl{font-weight:400}
.due.over,.due.today,tr.duetoday td,tr.tomorrow td,tr.duetoday td :is(.ttl,.na,.lu,.muted,.due,.small,.p3),tr.tomorrow td :is(.ttl,.na,.lu,.muted,.due,.small,.p3),li.duetoday,li.duetoday a{font-weight:400}
.due.over,tr.overdue td,tr.overdue td :is(.ttl,.na,.lu,.muted,.due,.small,.p3){font-weight:700}
/* v1.14: sharing labels, new-task marker, Viewing selector, 2FA-skip flag */
.stag{font-size:0.6875rem;color:var(--muted);margin-left:0.25rem;font-weight:400}
.newtag{font-size:0.6875rem;color:var(--c-white);background:var(--red);border-radius:6.1875rem;padding:0 0.375rem;margin-left:0.25rem;font-weight:400}
.viewing{display:inline-flex;flex-direction:row;align-items:center;gap:0.25rem;font-size:0.8125rem;color:var(--muted);white-space:nowrap}
.viewing select{width:auto;padding:0.125rem 0.375rem;font-size:0.8125rem}
.skipflag{color:var(--amber);font-size:0.75rem}
label.chk.sharesw{flex-direction:row;align-items:center;gap:0.375rem;grid-column:1/-1}
.sharecard ul{margin:0 0 0.375rem} .sharecard li{padding:0.0625rem 0}

/* v1.14 follow-up: planning pop-up, project files, timeline (Gantt), selection bar */
.bulk{display:flex;flex-wrap:wrap;align-items:center;gap:0.375rem 0.5rem} .bulk label{flex-direction:row;align-items:center;gap:0.25rem} .bulk select{width:auto}
.plantag{font-size:0.6875rem;color:var(--amber);background:var(--amberbg);border:1px solid var(--c-warn-line);border-radius:6.1875rem;padding:0 0.375rem;white-space:nowrap;font-weight:400}
.plandlg{border:var(--box-w) solid var(--box);border-radius:var(--box-r);padding:0.75rem 1rem;max-width:min(40rem,94vw)} .plandlg::backdrop{background:rgba(0,0,0,.35)}
.plandlg table{width:100%} .plandlg .ptitle{max-width:16rem;overflow-wrap:anywhere} .plandlg input{width:100%}
.sharedwith{max-width:12rem}
.dropzone{border:0.125rem dashed var(--line);border-radius:var(--box-r);padding:0.625rem;text-align:center;margin-bottom:0.375rem}
.dropzone.over{border-color:var(--acc);background:var(--acc2)}
.upline{display:flex;gap:0.5rem;align-items:center;justify-content:center;margin-top:0.25rem;font-size:0.8125rem} .upline progress{width:10rem} .upmsg.err{color:var(--red)}
.fth{width:3rem} img.fthumb{width:2.5rem;height:2.5rem;object-fit:cover;border-radius:0.25rem;border:1px solid var(--line);display:block} .ficon{font-size:1.5rem}
.gscroll{overflow:auto;max-height:70vh;border:1px solid var(--line);border-radius:0.5rem}
.gwrap{position:relative;--lw:14rem;width:100%;min-width:calc(var(--lw) + var(--gmin,40rem))}
.ghead,.grow,.gsec{display:flex;border-bottom:1px solid var(--line)} .grow:hover{background:var(--bg)} .ghead{position:sticky;top:0;z-index:4;background:var(--card)}
.gsec{background:var(--bg)} .gsechead{color:var(--muted);font-size:0.75rem}
.glabel{flex:none;width:var(--lw);position:sticky;left:0;z-index:3;background:var(--card);padding:0.1875rem 0.375rem;font-size:0.75rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border-right:1px solid var(--line)}
.glabel a{color:var(--fg);text-decoration:none} .grow.done .glabel a{color:var(--muted)}
.gtrack{position:relative;flex:1 1 auto;height:1.5rem} .gtrackh{height:1.375rem;background:var(--bg)} .gsecfill{height:1.375rem}
.gtick{position:absolute;top:0;bottom:0;border-left:1px solid var(--line);font-size:0.6875rem;color:var(--muted);padding:0.125rem 0.25rem;white-space:nowrap;overflow:hidden}
.gwe{position:absolute;top:0;bottom:0;background:rgba(0,0,0,.035)}
.gbar{position:absolute;top:0.25rem;height:1rem;border-radius:0.25rem;background:var(--st-active-line);border:1px solid var(--c-brand-line);min-width:0.25rem}
.gbar.gpoint{width:0.75rem!important;transform:rotate(45deg) scale(.8);border-radius:0.125rem}
.gbar.st-active,.gk.st-active{background:var(--st-active-line);border-color:var(--c-brand-line)} .gbar.st-awaiting-update-internal,.gbar.st-awaiting-update-external,.gbar.st-awaiting-feedback,.gk.st-awaiting-update-internal{background:var(--c-warn-line);border-color:var(--c-warn)}
.gbar.st-on-hold,.gk.st-on-hold{background:var(--c-line);border-color:var(--c-muted)} .gbar.g-over,.gk.g-over{background:var(--c-err-line);border-color:var(--red)} .gbar.g-done,.gk.g-done{background:var(--c-line);border-color:var(--c-line)}
.gover{position:absolute;top:0.25rem;height:1rem;border:1px dashed var(--red);border-left:0;background:repeating-linear-gradient(45deg,var(--c-err-bg),var(--c-err-bg) 0.1875rem,var(--c-white) 0.1875rem,var(--c-white) 0.375rem);border-radius:0 0.25rem 0.25rem 0}
.gtoday{position:absolute;top:0;bottom:0;width:0;left:calc(var(--lw) + (100% - var(--lw)) * var(--gf));border-left:0.125rem solid var(--red);z-index:2;pointer-events:none}
.gbar.g-step,.gk.g-step{background:var(--st-violet-line);border-color:var(--st-violet)} .gbar.gnodue{border-style:dashed} .gnd{margin-left:0.25rem}
.gkey{display:flex;gap:0.625rem;flex-wrap:wrap;align-items:center} .gk{display:inline-block;padding:0 0.5rem;border:1px solid;border-radius:0.25rem;font-size:0.6875rem;color:var(--fg)} .gk.gk-over{border:1px dashed var(--red);background:var(--c-err-bg)}
@media print{@page{size:landscape;margin:8mm} .gscroll{overflow:visible;max-height:none} .gwrap{min-width:0} .glabel{position:static} .ghead{position:static} .plandlg{display:none} body.printgantt main>*:not(#ganttsec):not(.printonly){display:none!important} body.printgantt #ganttsec summary .small{display:none}}
/* v2.20.1 (General fixes V12 item 1): Print of a project's task list - only #ptprint (a plain, emoji-free copy of the tables shown), landscape */
.ptprint{display:none} .ptbtns{margin:0 0 0.5rem}
@media print{body.printtasks main>*:not(#ptprint){display:none!important} body.printtasks #ptprint{display:block}
 #ptprint h1{font-size:1rem;margin:0 0 0.25rem} #ptprint h3{font-size:0.8125rem;margin:0.75rem 0 0.25rem} #ptprint .pt-meta{font-size:0.6875rem;margin:0 0 0.5rem}
 #ptprint table{width:100%;border-collapse:collapse;font-size:0.6875rem} #ptprint th,#ptprint td{border:1px solid var(--c-print-line);padding:0.125rem 0.25rem;text-align:left;vertical-align:top}
 #ptprint thead{display:table-header-group} #ptprint tr{break-inside:avoid}}
#files table{width:100%} #files th{text-align:left}

/* v2.0.2: screenshots and documents on tasks */
.attbox{grid-column:1/-1;border:0.0625rem dashed var(--line);border-radius:0.5rem;padding:0.375rem 0.5rem} .attbox.over,.attcard.over{border-color:var(--acc)}
.attbar{display:flex;gap:0.5rem;align-items:center;flex-wrap:wrap} .keeporig{flex-direction:row;align-items:center;gap:0.25rem;font-size:0.75rem}
.chips{display:flex;gap:0.375rem;flex-wrap:wrap;margin-top:0.375rem} .chips:empty{display:none}
.fchip2{display:inline-flex;align-items:center;gap:0.375rem;border:1px solid var(--line);border-radius:0.5rem;padding:0.125rem 0.375rem;font-size:0.75rem;max-width:18rem}
.fchip2 img{width:2.25rem;height:2.25rem;object-fit:cover;border-radius:0.25rem;display:block} .fchip2 .fn{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:9rem}
.xbtn{border:0;background:none;padding:0 0.25rem;color:var(--muted);cursor:pointer;width:auto} .xbtn:hover{color:var(--red)}
.ufiles{display:flex;gap:0.375rem;flex-wrap:wrap;margin-top:0.25rem} .fdoc{display:inline-flex;gap:0.25rem}
.linkbtn{border:0;background:none;padding:0;color:var(--acc);text-align:left;cursor:pointer;width:auto;text-decoration:underline}
details.attcard>summary{cursor:pointer;list-style:none} details.attcard>summary h2{margin:0} details.attcard[open]>summary{margin-bottom:0.5rem}
details.attcard>summary::before{content:"▸ "} details.attcard[open]>summary::before{content:"▾ "}
dialog.viewer{border:var(--box-w) solid var(--box);border-radius:var(--box-r);padding:0.5rem 0.75rem;width:min(94vw,72rem);max-width:94vw;background:var(--card);color:var(--fg)}
dialog.viewer::backdrop{background:rgba(15,23,42,.6)}
.vbar{display:flex;justify-content:space-between;align-items:center;gap:0.5rem;margin-bottom:0.375rem} .vtitle{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.vact{display:inline-flex;gap:0.375rem;align-items:center;flex:none} .vact button{width:auto;padding:0.125rem 0.625rem}
.vstage{display:flex;justify-content:center;align-items:center;height:calc(100vh - 9rem);overflow:hidden;background:var(--bg);border-radius:0.5rem}
.vstage img{max-width:100%;max-height:100%;object-fit:contain;cursor:zoom-in} .vstage iframe{width:100%;height:100%;border:0;background:var(--c-white)}
.vstage.actual{overflow:auto;display:block} .vstage.actual img{max-width:none;max-height:none;cursor:zoom-out}
.vmeta{margin-top:0.375rem}

/* v2.0.2: plain task rows. No coloured fills on rows, cards or tags; the status is shown by the colour of the text only; nothing is bold.
   Hover and selection keep a faint neutral outline so they stay usable. */
tr.overdue td,tr.tomorrow td,tr.duetoday td,.atab tr.late td,.atab td.acts,tr.clickrow:hover td,tr.done .check,.stat.tom,.fact,.p1,.newtag,.plantag,
.badge.open,.badge.done,.badge.st,.badge.st-active,.badge.st-awaiting-update-internal,.badge.st-awaiting-update-external,.badge.st-awaiting-feedback,.badge.st-on-hold,.badge.st-completed,
.ci,.ci.rem,.ci.over,.ci.done,.owner{background:transparent}
.newtag{color:var(--red)} .plantag{color:var(--amber)} .p1{color:var(--red)}
.badge.st,.badge.open,.badge.done,.badge.st-active,.badge.st-awaiting-update-internal,.badge.st-awaiting-update-external,.badge.st-awaiting-feedback,.badge.st-on-hold,.badge.st-completed{border-color:var(--line)}
.ci.over{color:var(--red)} .ci.rem{color:var(--amber)} .ci{border-left-color:var(--line)} .ci.done{color:var(--muted)}
.overdue-card,.duetoday-card,.tomorrow-card{border-left:var(--box-w) solid var(--box)}
tr.clickrow:hover td{box-shadow:inset 0 1px 0 var(--c-line),inset 0 -1px 0 var(--c-line)}
tr.overdue td,tr.overdue td :is(.ttl,.na,.lu,.muted,.due,.small,.p3),.due.over,.due.today,table.cal tr.open .ci .cn,.ci.today,
.fact .v,.badge,.chip,.owner,.skipflag,.upd b,table.compact b,.focus b,.dhead b,.stat.warn em{font-weight:400}

/* v2.0.3: paste screenshot area */
dialog.pastebox{border:var(--box-w) solid var(--box);border-radius:var(--box-r);padding:0;width:min(94vw,34rem);max-width:94vw;background:var(--card);color:var(--fg)}
dialog.pastebox::backdrop{background:rgba(15,23,42,.6)} .pbody{padding:0.625rem 0.75rem;display:flex;flex-direction:column;gap:0.5rem}
.pastezone{border:0.125rem dashed var(--line);border-radius:0.5rem;min-height:8rem;padding:1rem;display:flex;align-items:center;justify-content:center;text-align:center;cursor:text;background:transparent}
.pastezone:focus,.pastezone.over{outline:none;border-color:var(--acc)} #p-msg.err{color:var(--red)}
.pacts{display:flex;gap:0.5rem;justify-content:flex-end} .pacts .btn{width:auto}

/* v2.0.4: delete project / task dialogs, Move to… */
.dpopts{border:1px solid var(--line);border-radius:0.5rem;display:flex;flex-direction:column;gap:0.375rem;padding:0.5rem 0.75rem} .dpopts legend{font-size:0.875rem;padding:0 0.25rem}
.movebox{display:flex;gap:0.5rem;align-items:center;flex-wrap:wrap} .movebox select{width:auto;max-width:100%}

/* v2.0.5: sortable column headers */
.thsort{border:0;background:none;padding:0;margin:0;width:auto;font:inherit;text-transform:inherit;letter-spacing:inherit;color:inherit;cursor:pointer;display:inline-flex;align-items:baseline;gap:0.25rem;text-align:left}
.thsort:hover,.thsort:focus-visible{border:0;color:var(--fg)} .thsort:focus-visible{outline:0.125rem solid var(--line);outline-offset:0.125rem}
.sarrow{font-size:0.7em;opacity:0;min-width:1em;display:inline-block} th.sorted .sarrow{opacity:.9} .thsort:hover .sarrow,.thsort:focus-visible .sarrow{opacity:.45} th.sorted .thsort:hover .sarrow{opacity:.9}

/* v2.0.6: project groups, task numbers, attachment counts, pop-ups of the project screen */
.tno{font-size:0.6875rem;color:var(--muted);margin-right:0.25rem;white-space:nowrap;font-variant-numeric:tabular-nums}
.clip{font-size:0.6875rem;color:var(--muted);white-space:nowrap;margin-left:0.25rem}
table.grouped th.pcol{width:5.5rem} table.grouped td.pcol{padding:0}
table.grouped tr.grp td{border-top:1px solid var(--line);border-bottom:0;padding:0.375rem 0.375rem 0.125rem;background:transparent;font-size:0.8125rem;font-weight:400}
table.grouped tr.grp td a{color:var(--fg);text-decoration:none} table.grouped tr.grp td a:hover{text-decoration:underline}
table.grouped tr.grp:first-child td{border-top:0}
.exdlg{max-width:min(46rem,94vw)} .exlist{display:flex;flex-direction:column;gap:0.125rem;max-height:18rem;overflow:auto;border:1px solid var(--line);border-radius:0.5rem;padding:0.25rem 0.5rem}
.exrow{flex-direction:row;align-items:baseline;gap:0.375rem;font-size:0.8125rem;cursor:pointer} .exrow[hidden]{display:none}
.exdone>summary{cursor:pointer;font-size:0.8125rem;margin-bottom:0.25rem}

/* v2.0.6: calendar pop-up of the date fields (computers with a mouse; touch screens keep their own picker) */
@media (hover:hover) and (pointer:fine){
  input[type=date]::-webkit-calendar-picker-indicator,input[type=datetime-local]::-webkit-calendar-picker-indicator{display:none}
  input[type=date],input[type=datetime-local]{padding-right:1.75rem;cursor:pointer;
    background:var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%236b7280' stroke-width='1.3'%3E%3Crect x='2' y='3' width='12' height='11' rx='1.5'/%3E%3Cpath d='M2 6.5h12M5.5 1.5v3M10.5 1.5v3'/%3E%3C/svg%3E") no-repeat right 0.5rem center/0.875rem}
}
.dpop{position:fixed;z-index:2000;background:var(--card);color:var(--fg);border:1px solid var(--line);border-radius:0.5rem;box-shadow:0 0.5rem 1.5rem rgba(0,0,0,.22);padding:0.5rem;width:16.5rem;font-size:0.8125rem}
.dpop[hidden]{display:none}
.dphead{display:flex;align-items:center;justify-content:space-between;margin-bottom:0.25rem} .dptitle{font-weight:400}
.dpnav{border:0;background:none;width:1.75rem;height:1.75rem;font-size:1.125rem;line-height:1;cursor:pointer;color:var(--fg);border-radius:0.375rem;padding:0} .dpnav:hover,.dpnav:focus-visible{background:var(--bg)}
.dpgrid{display:grid;grid-template-columns:repeat(7,1fr);gap:0.125rem;text-align:center} .dpwk{font-size:0.6875rem;color:var(--muted);padding:0.125rem 0}
.dpday{border:1px solid transparent;background:none;padding:0;height:1.875rem;border-radius:0.375rem;cursor:pointer;color:var(--fg);font:inherit;width:auto}
.dpday.out{color:var(--muted);opacity:.6} .dpday:hover,.dpday:focus-visible{background:var(--bg);border-color:var(--line);outline:none}
.dpday.today{border-color:var(--acc);box-shadow:inset 0 0 0 1px var(--acc);color:var(--acc)} .dpday.sel{background:var(--acc);color:var(--c-white);border-color:var(--acc)}
.dpfoot{display:flex;align-items:center;justify-content:space-between;gap:0.5rem;margin-top:0.375rem;flex-wrap:wrap}
.dplink{border:0;background:none;color:var(--acc);cursor:pointer;padding:0.125rem 0.25rem;width:auto;font:inherit;text-decoration:underline}
.dptime{flex-direction:row;align-items:center;gap:0.25rem;font-size:0.75rem} .dptime input{width:6.5rem;padding:0.125rem 0.25rem;background-image:none}

/* v2.0.6: right-click / long-press menu on a task */
.ctxmenu{position:fixed;z-index:3000;min-width:11rem;background:var(--card);color:var(--fg);border:1px solid var(--line);border-radius:0.5rem;box-shadow:0 0.5rem 1.5rem rgba(0,0,0,.22);padding:0.25rem;font-size:0.8125rem}
.ctxmenu .ctxhead{padding:0.25rem 0.625rem;color:var(--muted);font-size:0.75rem;max-width:18rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ctxmenu button{display:block;width:100%;text-align:left;border:0;background:none;padding:0.375rem 0.625rem;border-radius:0.375rem;cursor:pointer;font:inherit;color:inherit}
.ctxmenu button:hover,.ctxmenu button:focus-visible{background:var(--bg);outline:none} .ctxmenu button[disabled]{color:var(--muted);cursor:default;background:none}
.taskact{max-width:min(30rem,94vw)}
/* v2.8.0 (item 9): the Status badge on the task page opens the status picker */
.stpick{all:unset;cursor:pointer;display:inline-flex;align-items:center;gap:0.25rem;border-radius:62.5rem}
.stpick:hover .badge,.stpick:focus-visible .badge{box-shadow:0 0 0 0.125rem var(--line)}
.stpick:focus-visible{outline:0.125rem solid var(--acc);outline-offset:0.125rem}
.stpick-caret{font-size:0.75rem;color:var(--muted)}
.stchoices{display:flex;flex-direction:column;gap:0.375rem}
.stchoice{display:flex;align-items:center;gap:0.5rem;text-align:left;justify-content:flex-start;background:none;border:1px solid var(--line);border-radius:0.5rem;padding:0.375rem 0.625rem;cursor:pointer}
.stchoice:hover:not([disabled]){background:var(--bg)}
.stchoice.on{border-color:var(--acc);cursor:default}
@media print{.stpick-caret{display:none}}

/* v2.0.8: the Attachments tile (looks like the other info tiles, but is a button) and its view-only list */
button.fact.fbtn{font:inherit;color:inherit;text-align:left;cursor:pointer;width:100%}
button.fact.fbtn:hover,button.fact.fbtn:focus-visible{border-color:var(--accent,var(--c-brand));outline:none;box-shadow:0 0 0 0.125rem rgba(37,99,235,.25)}
dialog.attdlg{width:min(38rem,calc(100vw - 1.5rem));max-height:85vh;overflow:auto}
.attlist{list-style:none;margin:0;padding:0}
.attrow{display:flex;gap:0.625rem;align-items:flex-start;padding:0.5rem 0;border-top:1px solid var(--line)}
.attrow:first-child{border-top:0}
.attrow .ficon{font-size:1.25rem;line-height:1.4}
.attrow .attmain{min-width:0;word-break:break-word}
.attrow .badge{margin-right:0.25rem}

/* v2.0.8: Help */
.helpsearch input{width:100%;max-width:32rem}
.helpres{overflow-wrap:anywhere;margin:0.75rem 0;padding:0.5rem 0.75rem;border:1px solid var(--line);border-radius:0.5rem;background:var(--c-subtle)}
.helpres ul{list-style:none;margin:0;padding:0}.helpres li{padding:0.375rem 0;border-top:1px solid var(--line)}.helpres li:first-child{border-top:0}
.helpres mark,.helpdoc mark{background:var(--c-tomorrow-bg);color:inherit;padding:0 1px}
.helpcols{display:grid;grid-template-columns:minmax(14rem,18rem) minmax(0,1fr);gap:1.25rem;align-items:start;margin-top:0.75rem}
.helptopics{position:sticky;top:0.5rem;max-height:calc(100vh - 1.5rem);overflow:auto;border:1px solid var(--line);border-radius:0.5rem;padding:0.5rem 0.75rem;background:var(--c-white)}
.helptopics summary{cursor:pointer;font-weight:400;margin-bottom:0.25rem}
.htree,.htree ul{list-style:none;margin:0;padding:0}.htree ul{padding-left:0.875rem}
.htree li{margin:0.1875rem 0}.htree>li>a{font-size:0.9375rem}
.htree a{text-decoration:none}.htree a:hover{text-decoration:underline}
.helpdoc{min-width:0;max-width:56rem;overflow-wrap:anywhere}
.hsec{scroll-margin-top:0.75rem;padding-top:0.25rem}
.hsec.hl1{margin-top:1.5rem;border-top:0.125rem solid var(--line)}.hsec.hl1:first-child{margin-top:0;border-top:0}
.hsec h2{font-size:1.25rem;margin:0.5rem 0}.hsec h3{font-size:1.0625rem;margin:1rem 0 0.375rem}.hsec h4{font-size:0.9375rem;margin:0.875rem 0 0.25rem}
.hsec p,.hsec li{line-height:1.5}.hsec ul,.hsec ol{margin:0.375rem 0;padding-left:1.375rem}
.hsec.hflash{animation:hflash 1.8s ease-out}
@keyframes hflash{from{background:var(--c-tomorrow-bg)}to{background:transparent}}
.hcall{margin:0.625rem 0;padding:0.5rem 0.75rem;border:1px solid var(--st-active-line);background:var(--c-brand-tint);border-radius:0.5rem}
table.hmd{margin:0.5rem 0}.helpdoc .scroll{overflow-x:auto;max-width:100%}table.hmd th,table.hmd td{vertical-align:top}
@media (max-width:56rem){
  .helpcols{grid-template-columns:minmax(0,1fr)}
  .helptopics{position:static;max-height:none}
  .helpsearch input{max-width:none}
}
@media print{.helpcols{display:block}.helptopics{display:none}}

/* v2.0.9: project steps, passing a project */
.steplist{margin:0.5rem 0} .steprow{display:flex;gap:0.5rem;align-items:flex-start;padding:0.375rem 0.25rem;border-bottom:1px solid var(--line)} .steprow.dragging{opacity:0.5} .steprow.made .stepname{color:var(--muted)}
.draghandle{cursor:grab;color:var(--muted);user-select:none;padding:0 0.25rem} .stepmain{flex:1 1 auto;min-width:0} .stepacts{display:flex;gap:0.25rem;flex-wrap:wrap;justify-content:flex-end;align-items:center}
.stepsdlg,.stepdlg{width:min(46rem,96vw)} .stepdesc{white-space:pre-wrap}
.passalerts{display:flex;flex-direction:column;gap:0.375rem;margin-bottom:0.75rem} .passalert{display:flex;gap:0.5rem;align-items:center;flex-wrap:wrap;border:1px solid var(--acc);border-radius:0.5rem;padding:0.375rem 0.625rem;background:var(--card)}
.passalert.wait,.passalert.accepted,.passalert.declined{border-color:var(--line)} .passalert>span:not(.passnew):not(.passacts){flex:1 1 16rem} .passacts{display:flex;gap:0.25rem}
.passnew{color:var(--red);border:1px solid var(--red);border-radius:0.25rem;padding:0 0.375rem;font-size:0.6875rem;text-transform:uppercase}
.passwait{margin:0.5rem 0}
/* v2.1.0 Meeting note planner */
.modlist li{padding:0.5rem 0}
.ptrow.made .stepname s{color:var(--muted)}
.attfield{border:1px solid var(--line);border-radius:0.5rem;padding:0.5rem 0.75rem;margin:0} .attfield legend{font-size:0.8125rem;color:var(--muted);padding:0 0.25rem}
.attpick{display:flex;flex-wrap:wrap;gap:0.25rem 1rem} .attpick .chk{display:inline-flex;align-items:center;gap:0.375rem}
.ptdlg{width:min(42rem,96vw)}
.live.ptools{display:inline-flex;margin:0 0.5rem 0.5rem 0} .live.ptools input[type=search]{min-width:min(24rem,70vw)}
/* live meeting: large, touch friendly; every point starts very light red and turns pastel green once notes are entered */
.livehead{display:flex;flex-wrap:wrap;gap:0.75rem;justify-content:space-between;align-items:center;margin-bottom:0.75rem}
.liveacts{display:flex;flex-wrap:wrap;gap:0.5rem;align-items:center}
.bigbtn{padding:0.75rem 1.25rem;font-size:1.0625rem;min-height:2.75rem}
.mpt{border:1px solid var(--line);border-radius:0.75rem;padding:0.875rem 1rem;margin-bottom:0.75rem;transition:background-color .2s}
.mpt.todo,.mpt-key.todo{background:var(--c-err-bg);border-color:var(--c-err-bg)}
.mpt.done,.mpt-key.done{background:var(--c-ok-bg);border-color:var(--c-ok-line)}
.mpt-head{display:flex;align-items:center;gap:0.625rem} .mpt-head h2{margin:0;font-size:1.25rem}
.mpt-n{display:inline-flex;align-items:center;justify-content:center;min-width:2rem;height:2rem;border-radius:50%;background:var(--c-white);border:1px solid var(--line)}
.mpt-meta{margin:0.25rem 0 0.5rem;color:var(--muted)}
.mpt textarea{width:100%;min-height:6rem;font-size:1.0625rem;margin-top:0.5rem}
.mpt-key{display:inline-block;padding:0.125rem 0.625rem;border:1px solid;border-radius:6.1875rem;margin-right:0.5rem}
.liveadd{display:flex;flex-wrap:wrap;gap:0.75rem;align-items:flex-end} .liveadd label{flex:1 1 16rem} .liveadd input{font-size:1.0625rem;min-height:2.75rem}
/* summary and reconciliation */
.msummary .ms-title{font-size:1.375rem;margin:0 0 0.75rem} .msummary .ms-h2{font-size:1.0625rem;margin:1rem 0 0.375rem;border-bottom:1px solid var(--line)}
.msummary .ms-point{font-size:1rem;font-weight:400;margin:0.75rem 0 0.25rem} .msummary .ms-k{color:var(--muted);margin-right:0.375rem}
.msummary .ms-field{margin-left:1rem} .ms-task,.ms-live{font-size:0.75rem;color:var(--muted)}
.recpt .dhead{display:flex;justify-content:space-between;align-items:center;gap:0.5rem} .recpt h3{margin:0;font-size:1rem;font-weight:400}
.recst-matched{background:var(--c-ok-bg);border-color:var(--c-ok-line);color:var(--c-ok)} .recst-partly{background:var(--c-warn-bg);border-color:var(--c-warn-line);color:var(--c-warn)} .recst-not_found{background:var(--c-err-bg);border-color:var(--c-err-bg);color:var(--c-err)}
.sugrow{display:flex;gap:0.5rem;align-items:flex-start;padding:0.25rem 0} .sugrow .was{text-decoration:line-through;color:var(--muted)} .sugrow.applied{opacity:0.6}
@media print{.msummary{border:0;padding:0}.mpt{break-inside:avoid}}
/* v2.1.2 rich notes, files on points, carry over */
.rte{border:1px solid var(--line);border-radius:0.5rem;background:var(--card);margin-top:0.25rem}
.rte:focus-within{border-color:var(--acc);box-shadow:0 0 0 0.125rem rgba(37,99,235,.2)}
.rtbar{display:flex;flex-wrap:wrap;gap:0.25rem;padding:0.25rem 0.375rem;border-bottom:1px solid var(--line);background:var(--c-subtle);border-radius:0.5rem 0.5rem 0 0}
.rtbar .btn{min-width:2rem} .rtbar .rt-b{font-weight:bolder} .rtbar .rt-i{font-style:italic}
.rtbody{min-height:6rem;max-height:32rem;overflow:auto;padding:0.5rem 0.625rem;outline:none;line-height:1.45;word-break:break-word}
.rtbody:empty:before{content:attr(data-placeholder);color:var(--muted)}
.rtbody p,.rich p{margin:0 0 0.5rem} .rtbody ul,.rtbody ol,.rich ul,.rich ol{margin:0 0 0.5rem;padding-left:1.5rem} .rtbody li,.rich li{margin:0.125rem 0}
.rtbody h1,.rtbody h2,.rtbody h3,.rtbody h4,.rich h1,.rich h2,.rich h3,.rich h4{margin:0.5rem 0 0.375rem;font-weight:bolderer;line-height:1.3}
.rtbody h1,.rich h1{font-size:1.25rem} .rtbody h2,.rich h2{font-size:1.125rem} .rtbody h3,.rich h3{font-size:1rem} .rtbody h4,.rich h4{font-size:0.9375rem}
.rich{margin:0.125rem 0 0.5rem} .rich>:last-child{margin-bottom:0} .stepmain .k{color:var(--muted);font-size:0.75rem;display:block}
.rte.live .rtbody{min-height:7rem;font-size:1.0625rem;background:var(--c-white)}
.mpt-head .stepacts{margin-left:auto} .mpt-foot{margin-top:0.5rem;display:flex;flex-direction:column;gap:0.375rem}
.chk.carry{display:inline-flex;align-items:center;gap:0.5rem;min-height:2.5rem;font-size:1rem}
.chk.carry input{width:1.25rem;height:1.25rem}
.mpt .attbox{background:rgba(255,255,255,.6)} .ptstat{min-width:0}
.carried{color:var(--muted)} .ms-rich{margin:0.125rem 0 0.25rem 1rem}
.msummary .ms-rich h1,.msummary .ms-rich h2,.msummary .ms-rich h3,.msummary .ms-rich h4{font-size:0.9375rem;margin:0.375rem 0 0.25rem;font-weight:bolderer}
.msummary .ms-rich p{margin:0 0 0.375rem} .msummary .ms-rich ul,.msummary .ms-rich ol{margin:0 0 0.375rem;padding-left:1.5rem}
#enddlg{width:min(34rem,96vw)} #ptatt .attbox{margin-top:0.25rem}
@media print{.rtbar,.mpt-foot,.attbox{display:none!important}}

/* v2.1.3 attachment bar on the project page */
#pattbox{margin-top:0.75rem}

/* v2.1.4: the notification bell, the list and the e-mail view */
.who a.bell{position:relative;padding:0.25rem 0.5rem} .bell .badge{position:absolute;top:-0.125rem;right:-0.125rem;min-width:1.125rem;height:1.125rem;padding:0 0.25rem;border-radius:0.5625rem;background:var(--c-err);color:var(--c-white);font-size:0.6875rem;line-height:1.125rem;text-align:center;box-sizing:border-box}
.notifs{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:0.375rem} .notif{display:flex;gap:0.5rem;align-items:center;border:1px solid var(--line);border-radius:0.5rem;padding:0.375rem 0.625rem;background:var(--card)}
.notif.new{border-color:var(--acc)} .notif .nmain{flex:1 1 auto;display:flex;flex-direction:column;min-width:0} .notif .nicon{font-size:1.125rem}
.nstat{font-size:0.75rem;padding:0.0625rem 0.5rem;border-radius:0.75rem;background:var(--bg);border:1px solid var(--line);white-space:nowrap} .nstat.new{background:var(--acc2);color:var(--acc);border-color:var(--acc)}
.mailbody{white-space:pre-wrap;word-wrap:break-word;font:inherit;background:var(--bg);border:1px solid var(--line);border-radius:0.5rem;padding:0.75rem;max-height:32rem;overflow:auto}
.mailframe{width:100%;height:28rem;border:1px solid var(--line);border-radius:0.5rem;background:var(--c-white)} .mailfiles{padding-left:1.25rem}

/* v2.1.5: parked-task sections, compact Dashboard (screen only), one-line Projects box */
.parksec{margin:0.5rem 0 0} .parksec>summary{cursor:pointer;color:var(--muted);font-size:0.875rem;padding:0.25rem 0}
.parksec[open]>summary{color:var(--fg)} .parknote{white-space:nowrap}
@media screen{
body.fit main h1{font-size:1.125rem;margin:0} body.fit .titlebar{margin:0 0 0.375rem}
body.fit .dispsel{flex-direction:row}
body.fit .tact select{padding:0.125rem 0.5rem;margin:0;line-height:1.25}
body.fit .stats{gap:0.25rem;margin-bottom:0.375rem}
body.fit .stat{min-height:2rem;padding:0.125rem 0.5rem} body.fit .stat b{font-size:1.0625rem}
body.fit .qbar{margin:0 0 0.375rem} body.fit .qbar button,body.fit .qbar .btn{padding:0.1875rem 0.625rem;font-size:0.8125rem}
body.fit .card.focus{padding:0.375rem 0.625rem;margin-bottom:0.375rem}
body.fit .card.projsum{padding:0.375rem 0.75rem;margin-bottom:0.375rem}
body.fit .card.focus h2,body.fit .card.projsum h2{font-size:0.875rem;margin:0 0 0.25rem}
body.fit .card.focus h2 .muted,body.fit .card.projsum h2 .showall{font-weight:400}
body.fit .focus table.compact{font-size:0.75rem;line-height:1.25} body.fit .focus table.compact th{padding:0.125rem 0.375rem;font-size:0.75rem}
body.fit .focus table.compact td{padding:0.125rem 0.375rem;font-size:0.75rem} body.fit .focus table.compact .btn.sm{font-size:0.75rem}
body.fit .projsum table.compact{font-size:0.75rem;line-height:1.25;width:100%} body.fit .projsum table.compact td{padding:0.125rem 0.375rem;white-space:nowrap}
body.fit .projsum td.pname{width:100%;max-width:0;overflow:hidden;text-overflow:ellipsis}
body.fit .projsum .pbar{display:inline-block;vertical-align:middle;width:5rem;height:0.375rem}
body.fit .stat span em{font-style:normal}
}
@media screen and (pointer:coarse){
body.fit .stat,body.fit .qbar button,body.fit .qbar .btn,body.fit .projsum .showall{min-height:2.25rem}
body.fit .projsum .showall{display:inline-flex;align-items:center}
}

/* v2.5.0 (item 16): one emoji per meaning, from web/icons.js, always before its label, the same gap after it everywhere; never printed */
.ic{display:inline-block;margin-right:0.3em;font-style:normal;font-weight:normal;line-height:1;font-family:"Segoe UI Emoji","Apple Color Emoji","Noto Color Emoji",sans-serif}   /* the Windows app (WebView2) and every browser show colour emoji */
@media print{.ic{display:none!important}}
/* v2.5.0 (items 13, 15): the Modules and Reports drop-downs in the top bar */
.navdd{position:relative;display:inline-flex}
.navddbtn{font:inherit;padding:0.1875rem 0.5rem;border-radius:0.5rem;border:0;background:none;color:var(--fg);cursor:pointer;white-space:nowrap}
.navddbtn:hover{background:var(--bg)} .navddbtn.on{background:var(--acc2);color:var(--acc)}
.navddbtn:focus-visible,.navddmenu .ddi:focus-visible,.gsbtn:focus-visible{outline:0.125rem solid var(--c-brand);outline-offset:0.0625rem}
.ddcaret{font-size:0.75em;color:var(--muted)}
.navddmenu{position:absolute;left:0;top:calc(100% + 0.25rem);z-index:30;min-width:19rem;max-width:min(26rem,calc(100vw - 1rem));background:var(--card);border:1px solid var(--line);
  border-radius:0.5rem;box-shadow:0 0.5rem 1.5rem rgba(15,23,42,.15);padding:0.25rem;display:flex;flex-direction:column}
.navddmenu[hidden]{display:none}
.navddmenu .ddi{display:flex;flex-direction:column;gap:0.0625rem;padding:0.4375rem 0.625rem;border-radius:0.375rem;color:var(--fg);text-decoration:none;white-space:normal}
.navddmenu .ddi:hover,.navddmenu .ddi:focus{background:var(--bg)}
.navddmenu .ddname{font-weight:500} .navddmenu .dddesc{font-size:0.75rem;color:var(--muted)}
/* v2.5.0 (item 14): the 🔍 button next to the bell */
.gsbtn{font:inherit;border:0;background:none;cursor:pointer;padding:0.25rem 0.375rem;border-radius:0.5rem} .gsbtn:hover{background:var(--bg)} .gsbtn .ic{margin-right:0}
.bell .ic{margin-right:0}
@media print{.navdd,.gsbtn{display:none}}
/* v2.5.1 (item 18): nothing in the top bar overlaps at any width. The menu keeps its full width (no squeezing under the next item); the
   right-hand group (🔍 🔔 Viewing, the name drop-down, 🖨) sits at the far right; when a window is too narrow for one line the bar wraps
   (the right-hand group, then menu items, go to a second line) instead of drawing items over each other. */
header{flex-wrap:wrap;row-gap:0.25rem}
header nav{flex:1 1 auto;min-width:auto;flex-wrap:wrap;row-gap:0.125rem}
header .who{margin-left:auto;flex-wrap:nowrap}
.who .viewing{margin:0 0.125rem}
.iconly .ic,.printbtn .ic{margin-right:0}
header .printbtn{padding:0.1875rem 0.4375rem}
.navddmenu.right{left:auto;right:0;min-width:11rem}
.navddmenu .ddform{display:block;margin:0}
.navddmenu button.ddi{font:inherit;width:100%;text-align:left;border:0;background:none;cursor:pointer;flex-direction:row;align-items:center}
.usermenu .navddbtn{padding:0.25rem 0.5rem}

/* v2.5.0 item 17: notes from closed items (shown only when "Show notes from closed items" is ticked) */
.card.note.note-closed { opacity: .65; }
.note-closed-tag { color: var(--muted); }
.notes-closed-tog { margin-top: .4rem; }
.notes-hidden-line { margin: .2rem 0 .6rem; }
#mexstat.err{color:var(--red)}
/* v2.5.1 (item 19): Reminders sections (Active, Paused, Dismissed): the heading's ▾/▸ shows or hides the section */
.rsec h2.hrow{margin-bottom:0} .rsec .rsecbody{margin-top:0.5rem}
.rsectog{font:inherit;font-weight:inherit;border:0;background:none;padding:0.125rem 0.25rem;margin-left:-0.25rem;border-radius:0.375rem;cursor:pointer;color:inherit;display:inline-flex;align-items:center;gap:0.375rem}
.rsectog:hover{background:var(--bg)} .rsectog:focus-visible{outline:0.125rem solid var(--c-brand);outline-offset:0.0625rem}
.rsecarrow{font-size:0.8em;color:var(--muted);width:0.9em;display:inline-block}
@media print{.rsec .rsecbody[hidden]{display:block}}
/* v2.6.0 (item 2): Settings > Modules > "Who may use each module": the Modules and Reports headings over their columns */
#modgridtab th.mghead{text-align:center;border-bottom:1px solid var(--c-line)} #modgridtab .mgrep{border-left:1px solid var(--c-line)}
#deluser .du-lead{margin:0 0 0.25rem}
/* v2.7.0 (General fixes V4, item 1): at phone width (html.w640) the right-hand group of the top bar (Viewing, the name drop-down with
   My account / Sign out, 🖨) folds into a ☰ menu; 🔍 and 🔔 stay in the bar. Wider screens: no ☰, the group sits in the bar as before. */
.whotog{display:none}
.whopanel{display:contents}
html.w640 header .who{position:relative}
html.w640 .whotog{display:inline-flex;align-items:center;justify-content:center;font:inherit;font-size:1.125rem;line-height:1;min-width:2.25rem;min-height:2.25rem;
padding:0.25rem 0.5rem;border:1px solid var(--line);border-radius:0.5rem;background:var(--card);color:var(--fg);cursor:pointer}
html.w640 .whotog[aria-expanded="true"]{background:var(--acc2);border-color:var(--acc);color:var(--acc)}
html.w640 .whotog:focus-visible{outline:0.125rem solid var(--c-brand);outline-offset:0.0625rem}
html.w640 .whopanel{display:none}
html.w640 .whopanel.open{display:flex;flex-direction:column;align-items:stretch;gap:0.375rem;position:absolute;right:0;top:calc(100% + 0.375rem);z-index:40;
width:max-content;min-width:14rem;max-width:calc(100vw - 1rem);padding:0.5rem;background:var(--card);border:1px solid var(--line);border-radius:0.625rem;
box-shadow:0 0.5rem 1.5rem rgba(15,23,42,.14);white-space:normal}
html.w640 .whopanel .viewing{display:flex;flex-direction:column;align-items:stretch;text-align:left;gap:0.125rem;margin:0;font-size:0.8125rem;color:var(--muted)}
html.w640 .whopanel .viewing select{width:100%;max-width:none}
/* the name drop-down opens in place inside the ☰ menu: My account and Sign out are listed under the name */
html.w640 .whopanel .usermenu{display:block}
html.w640 .whopanel .usermenu .navddbtn{pointer-events:none;font-weight:500;padding:0.25rem 0.375rem} html.w640 .whopanel .usermenu .ddcaret{display:none}
html.w640 .whopanel .usermenu .navddmenu,html.w640 .whopanel .usermenu .navddmenu[hidden]{display:block!important;position:static;min-width:0;max-width:none;border:0;box-shadow:none;padding:0;margin:0}
html.w640 .whopanel .printbtn{align-self:flex-start}
html.w640 .whopanel .printbtn::after{content:"Print or save as PDF";margin-left:0.375rem}
@media print{.whotog,.whopanel{display:none!important}}
/* v2.9.0 (GF V4 item 7): the viewer's "can't be shown here" panel and the Download buttons in the attachment lists */
.vnone{text-align:center;padding:1rem} .vnone p{margin:0.25rem 0 0.75rem}
.attrow .attmain{flex:1} .attrow .attdl{flex:none;align-self:center}
.fthumb[data-fv]{cursor:zoom-in}
/* v2.9.0 (GF V4 item 15): the search list of the longer dropdowns (web/combo.js). The select itself stays the visible control. */
.cbx-pop{position:fixed;z-index:1000;display:flex;flex-direction:column;background:var(--card);color:var(--fg);border:1px solid var(--line);border-radius:0.5rem;box-shadow:0 0.5rem 1.5rem rgba(15,23,42,.18);padding:0.375rem;min-width:15rem}
.cbx-pop .cbx-q{width:100%;margin:0 0 0.25rem;padding:0.375rem 0.5rem;font-size:0.8125rem}
.cbx-list{list-style:none;margin:0;padding:0;overflow:auto;flex:1 1 auto;min-height:2rem}
.cbx-list li{padding:0.3125rem 0.5rem;border-radius:0.375rem;font-size:0.8125rem;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cbx-list li.on{background:var(--acc);color:var(--c-white)}
.cbx-list li[aria-selected="true"]{color:var(--acc)} .cbx-list li.on[aria-selected="true"]{color:var(--c-white)}
.cbx-list li[aria-disabled="true"]{opacity:.5;cursor:default}
.cbx-list .cbx-grp{cursor:default;font-size:0.6875rem;color:var(--muted);text-transform:uppercase;letter-spacing:.03em;padding-top:0.5rem}
.cbx-list .cbx-none{cursor:default;color:var(--muted);font-style:italic}
.cbx-list .cbx-act{border-top:1px solid var(--line);border-radius:0;margin-top:0.25rem}
.cbx-back{position:fixed;inset:0;z-index:999;background:rgba(15,23,42,.45)}
.cbx-sheet{left:0.5rem !important;right:0.5rem;top:0.75rem !important;bottom:auto;width:auto !important;max-height:min(70vh,30rem) !important}
.cbx-head b{font-weight:400} .cbx-head{display:flex;justify-content:space-between;align-items:center;padding:0.125rem 0.25rem 0.375rem} .cbx-x{border:0;background:none;font-size:1rem;cursor:pointer;color:var(--fg)}
.cbx-sheet .cbx-list li{padding:0.5rem;font-size:0.9375rem;white-space:normal}
/* v2.9.0 (GF V4 item 12): the repair notes on a linked task (read-only) */
.repnotes .rnbody{white-space:pre-wrap;word-break:break-word;margin:0.125rem 0 0}
/* v2.10.0 (item 20): the Dashboard's Pinned notes card – compact like the project summary, nothing bold, printed with the page */
.card.pinned h2 .showall,.card.pinned h2 .muted{font-weight:400}
.pinlist{list-style:none;margin:0;padding:0}
/* v2.19.13 (fix 7): the Dashboard's Projects and Pinned notes cards fold; the heading row (with its count) is the summary */
details.dashsec>summary{cursor:pointer} details.dashsec>summary h2{display:inline} details.dashsec[open]>summary{margin-bottom:0.25rem}
@media print{details.dashsec>summary::marker{content:""}}
.pinlist li{padding:0.25rem 0;border-top:1px solid var(--line)} .pinlist li:first-child{border-top:0}
.pinlist .pin-ttl{font-weight:400} .pinlist .pin-task{font-size:0.8125rem;margin-left:0.25rem} .pinlist .pin-tags .chip{font-size:0.75rem}
.pinlist .pin-body{margin-top:0.125rem;overflow-wrap:anywhere}
body.fit .card.pinned{padding:0.375rem 0.625rem;margin-bottom:0.375rem} body.fit .card.pinned h2{font-size:0.875rem;margin:0 0 0.25rem}
@media print{.card.pinned{break-inside:avoid}}


/* v2.12.0 (Feedback system): the Feedback button next to the bell (the ☰ menu at phone width), the form, the review list. No bold in the rows. */
.fbbtn{display:inline-flex;align-items:center;gap:0.25rem;font-size:0.875rem} .fbbtn .ic{margin-right:0}
.fbmenu{display:none}
html.w640 .fbbtn{display:none}
html.w640 .whopanel .fbmenu{display:inline-flex;align-self:flex-start}
@media print{.fbbtn,.fbmenu{display:none!important}}
.fbdlg{width:min(42rem,calc(100vw - 2rem))} .fbform{display:grid;gap:0.625rem} .fbform label{display:grid;gap:0.25rem}
.fbform textarea{width:100%;box-sizing:border-box;resize:vertical} .fbform input[name=title]{width:100%;box-sizing:border-box}
.fbtypes{border:0;padding:0;margin:0;display:flex;flex-wrap:wrap;gap:0.25rem 1rem} .fbtypes legend{padding:0;margin-bottom:0.25rem} .fbtypes label.chk{display:inline-flex}
.fbdrop{border:0.0625rem dashed var(--line,var(--c-print-line));border-radius:0.5rem;padding:0.5rem} .fbdrop.over{background:var(--acc2,var(--c-brand-tint));border-color:var(--acc,var(--c-brand))}
.fbfiles{list-style:none;margin:0.375rem 0 0;padding:0;display:grid;gap:0.25rem}
.fbfile{display:flex;align-items:center;gap:0.375rem;flex-wrap:wrap} .fbfile img{width:3rem;height:2.25rem;object-fit:cover;border-radius:0.25rem}
.fbfile .fn{overflow-wrap:anywhere} .fbfile.bad .fn{color:var(--c-err)} .fbfile .err,.fberr{color:var(--c-err)}
.fbctx summary{cursor:pointer} .fbctx dd,.fbwrap{overflow-wrap:anywhere}
.fbtext{white-space:pre-wrap;overflow-wrap:anywhere}
.fb-st{display:inline-block;padding:0 0.375rem;border-radius:0.25rem;font-size:0.8125rem;background:var(--bg,var(--c-grey-bg));font-weight:400}
.fb-st-new{color:var(--c-brand-dk)} .fb-st-accepted{color:var(--c-ok)} .fb-st-in-brief{color:var(--st-violet)} .fb-st-done{color:var(--c-text)} .fb-st-rejected{color:var(--c-err)}
.fbtable td,.fbtable th{font-weight:400} .fbtable td.num{text-align:right} .fbsort{color:inherit;text-decoration:none;white-space:nowrap}
.fbcounts a{text-decoration:none} .fbcounts a.on{text-decoration:underline}
.fbfilters{display:flex;flex-wrap:wrap;gap:0.5rem;align-items:flex-end}
.fbexport{display:flex;flex-wrap:wrap;gap:0.5rem;align-items:center;margin-bottom:0.5rem}
.fbreplies li{margin-bottom:0.5rem} .fbflist li{margin-bottom:0.25rem}
/* v2.19.2 (Stage 2 / Feedback two-way, V8 v11 item 15): the side of each reply, and "Reply waiting" in the reviewer list (tokens only) */
.fbreplies li{border-left:0.25rem solid var(--c-line);padding-left:0.5rem} .fbreplies li.fbreply-submitter{border-left-color:var(--c-brand-line)}
.fbrole{display:inline-block;padding:0 0.375rem;border-radius:0.5rem;background:var(--c-grey-bg);color:var(--c-grey);font-size:0.75rem}
.fbreply-submitter .fbrole{background:var(--c-brand-tint);color:var(--c-brand)}
.fbwait{display:inline-block;padding:0 0.375rem;border-radius:0.5rem;background:var(--c-warn-bg);color:var(--c-warn);border:1px solid var(--c-warn-line);font-size:0.8125rem}
.fbdllist li{margin:0.25rem 0}
/* v2.13.0 (General fixes V5 item 1): PDFs drawn by the app (pdf.js) - a toolbar and the page on a canvas, scrolling inside the viewer */
.vstage.pdf{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;overflow:hidden}
.pdfbar{display:flex;flex-wrap:wrap;align-items:center;gap:0.375rem;padding:0.375rem 0.5rem;border-bottom:1px solid var(--line);background:var(--card)}
.pdfbar .on{background:var(--acc2);border-color:var(--acc)} .pdfbar .pdfsep{width:0.75rem} .pdfbar .pdfzoom{min-width:3.5rem;text-align:center}
.pdfbar .pdfpg input{width:4.5rem} .pdfbar .sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.pdfpage{flex:1 1 auto;overflow:auto;text-align:center;padding:0.75rem 0}
.pdfpage canvas{background:var(--c-white);box-shadow:0 0.125rem 0.5rem rgba(0,0,0,.25);display:inline-block}
/* v2.13.0 (General fixes V5 item 4): automatic screen fit - html[data-band] (small / fhd / qhd / uhd), html[data-density], html[data-nav]; the
   text size is --ui-scale (set by the page, above). 1080p (fhd, normal density) keeps the earlier look; the bigger bands use the extra width. */
/* html[data-menu] (expanded / collapsed) is set for styling hooks; the top bar itself is left exactly as in 2.6.0+ (its positions are tested) */
html[data-band="qhd"] main,html[data-band="qhd"] body.fit main{max-width:min(110rem,100%)}
html[data-band="uhd"] main,html[data-band="uhd"] body.fit main{max-width:min(120rem,100%)}
html[data-band="small"] .grid{grid-template-columns:repeat(auto-fill,minmax(min(15rem,100%),1fr))}
html[data-band="qhd"] .grid{grid-template-columns:repeat(auto-fill,minmax(clamp(15rem,24%,22rem),1fr))}
html[data-band="uhd"] .grid{grid-template-columns:repeat(auto-fill,minmax(clamp(15rem,19%,22rem),1fr))}
html[data-density="compact"] table.compact td{padding:0.0625rem 0.3125rem} html[data-density="compact"] table.list td{padding:0.25rem 0.375rem}
html[data-density="compact"] .card{margin-bottom:0.375rem}
html[data-density="comfortable"] table.compact td{padding:0.3125rem 0.5rem} html[data-density="comfortable"] table.list td{padding:0.625rem 0.625rem}
html[data-density="comfortable"] table.compact{line-height:1.4}
.dispset{grid-template-columns:repeat(auto-fit,minmax(12rem,16rem));align-items:end}
/* v2.13.0 (General fixes V5 item 3): every pop-up - never bigger than the window (content scrolls), default size from the screen band (--pop-pct,
   item 4), a full-screen button and drag-resize on the edges / corner; the size or full screen is remembered per pop-up type */
dialog.pop{max-width:min(calc(var(--pop-pct,94) * 1vw),calc(100vw - 1rem));max-height:min(calc(var(--pop-pct,94) * 1vh),calc(100dvh - 1rem));overflow:auto;box-sizing:border-box}
dialog.pop.popsized{max-width:calc(100vw - 0.5rem);max-height:calc(100dvh - 0.5rem)}
dialog.pop.popfull{width:100vw!important;height:100dvh!important;max-width:100vw;max-height:100dvh;margin:0;inset:0;border-radius:0}
dialog.pop.popfull .vstage{height:calc(100dvh - 6rem)}
dialog.pop.popsized .vstage{height:auto;min-height:10rem;flex:1 1 auto}
dialog.pop.popsized.viewer[open]{display:flex;flex-direction:column} dialog.pop.popfull.viewer[open]{display:flex;flex-direction:column}
dialog.pop.popfull.viewer .vstage{flex:1 1 auto;height:auto;min-height:0}
.popctl{position:sticky;top:0;float:right;z-index:6;display:flex;gap:0.25rem;margin:0 0 0.25rem 0.5rem}
.popbtn{font:inherit;font-size:0.875rem;line-height:1;min-width:1.75rem;min-height:1.75rem;padding:0.125rem 0.375rem;border:1px solid var(--line);border-radius:0.375rem;background:var(--card);color:var(--fg);cursor:pointer}
.popbtn:hover{background:var(--acc2);border-color:var(--acc)} .popbtn[aria-pressed="true"]{background:var(--acc2);border-color:var(--acc);color:var(--acc)}
dialog.pop.viewer:not(.popsized):not(.popfull) .vstage{height:calc(min(calc(var(--pop-pct,94) * 1vh), calc(100dvh - 1rem)) - 7rem)}
/* v2.13.0 (General fixes V5 item 7): the attachments of a note (one component everywhere) and meeting plan sharing (item 2) */
.notefiles{margin:0.25rem 0 0.375rem;border-radius:0.375rem} .notefiles[data-nfadd="1"]{border:1px dashed var(--line);padding:0.25rem 0.375rem}
.notefiles.over{border-color:var(--acc);background:var(--acc2)} .notefiles:focus-visible{outline:0.125rem solid var(--acc)}
.nfbar{display:flex;flex-wrap:wrap;align-items:center;gap:0.375rem} .nfchips:empty{display:none} .nfchip img{max-height:2.5rem;max-width:4rem;border-radius:0.25rem;margin-right:0.25rem}
.padd{border-left:0.1875rem solid var(--acc2);padding:0.125rem 0 0.125rem 0.5rem;margin:0.375rem 0} .addedby{font-style:italic} .mshared{margin:0.125rem 0}
.sharef{grid-template-columns:repeat(auto-fit,minmax(12rem,18rem));align-items:end}
/* v2.16.0 (General fixes V7 item 4): To top and Move to # next to ▲ ▼ on the meeting points (organiser only, hidden in print) */
.ptmoveto{display:inline-flex;align-items:center;gap:0.25rem;flex-wrap:wrap} .ptmoveto .ptto{width:3.25rem;min-width:0;padding:0.15rem 0.3rem;text-align:center}
.ptmoveto .ptto.bad{border-color:var(--danger,var(--c-err))} .ptmoveto .ptmsg{color:var(--danger,var(--c-err));flex-basis:100%;text-align:right} .ptmoveto .ptmsg:empty{display:none}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
/* v2.16.0 (General fixes V7 item 1): removed points, additions and files – shown greyed on demand */
.rmtools{display:inline-flex;gap:0.375rem;flex-wrap:wrap;align-items:center;margin-left:auto} .rmbox{margin-top:0.75rem;border-top:1px dashed var(--line);padding-top:0.5rem}
.rmbox h3{margin:0.25rem 0} .rmrow,.padd.removed,.rmchip{opacity:0.62;filter:grayscale(1)} .rmrow:hover,.padd.removed:hover,.rmchip:hover{opacity:0.85}
.rmrow .stepacts,.rmacts{filter:none;opacity:1} .rmby{font-style:italic;margin-left:0.25rem} .rmacts{display:inline-flex;gap:0.25rem;margin-left:0.375rem;flex-wrap:wrap}
.rmfiles{margin-top:0.25rem}
/* v2.16.0 (General fixes V7 item 2): screenshots and files while writing a point or an addition (held in the pop-up until it is saved) */
.nfstaged{border:1px dashed var(--line);padding:0.25rem 0.375rem;margin-top:0.375rem} .nfstaged.over{border-color:var(--acc);background:var(--acc2)}
.nffail{color:var(--danger,var(--c-err));flex-basis:100%;margin-top:0.125rem}

/* ===================================================================================================================================
   v2.19.3 (live). v2.18.0 – General fixes V8 items 4 and 5: one look (the palette is tokens.css) and tighter detail pages.
   Shared rules only (no page-by-page one-offs). Same text sizes; narrow screens (html.w800 and below) stack as before.
   =================================================================================================================================== */
/* item 5 (b): every card, pop-up, Settings section and meeting card: 2 px lighter brand blue border, 0.625rem radius, compact padding */
.card,details.card,.nr .nr-card,.nr.nr-card,.nr .us-card,dialog.qadd,dialog.nr-dialog,dialog.viewer,dialog.pastebox,dialog.pop{border:var(--card-bw) solid var(--card-bc);border-radius:var(--r)}
.card,.nr .nr-card,.nr.nr-card,.nr .us-card{padding:var(--card-pad);margin-bottom:var(--gap)}
.card .card,.nr .nr-card .nr-card{border:var(--card-bw) solid var(--card-bc)}   /* a card inside a card keeps the same border */
/* item 5 (e): buttons – one filled navy primary, outline secondary, red outline danger (filled on hover) */
.btn:hover,button:hover{border-color:var(--c-brand);color:var(--c-brand)}
.primary:hover,.btn.primary:hover{background:var(--c-brand-dk);border-color:var(--c-brand-dk);color:var(--c-white)}
.danger,.btn.danger,button.danger{color:var(--c-err);border-color:var(--c-err)}
.danger:hover,.btn.danger:hover,button.danger:hover{background:var(--c-err);border-color:var(--c-err);color:var(--c-white)}
:is(.btn,button,a.nr-btn,summary.btn):focus-visible{outline:0.125rem solid var(--c-accent);outline-offset:0.125rem}
input:focus,select:focus,textarea:focus{outline:0.125rem solid var(--c-brand);outline-offset:-1px}
button[disabled],.btn[disabled]{opacity:.6;cursor:default}
/* item 5 (c, Q-j): overdue = red bar + light red row + bold red text; due today = the red bar on a white row; tomorrow keeps yellow */
tr.overdue td{background:var(--c-overdue-bg)} tr:is(.overdue,.duetoday) td:first-child{box-shadow:inset 0.375rem 0 0 var(--c-overdue)}
.overdue-card,.duetoday-card{border-left:0.375rem solid var(--c-overdue)}
tr.overdue td,tr.overdue td :is(.ttl,.na,.lu,.muted,.due,.small,.p3),.due.over{font-weight:700}   /* Q-j replaces the v2.0.2 "no fill, nothing bold" for overdue only */
/* item 5 (h): the small logo in the header (no taller header) */
.brand{display:inline-flex;align-items:center;gap:0.375rem} .hlogo{height:1.75rem;width:auto;margin:-0.25rem 0;display:block}
html.w640 .hlogo{height:1.5rem}

/* item 4: tighter detail pages */
.card h2.sub,#updates h2.sub{margin-top:0.75rem}
.dhead{margin-bottom:var(--sp-3)} .facts{gap:var(--sp-3)} .fact{padding:var(--sp-2) var(--sp-4)}
/* (a) one action row under the facts: Status select + Set status + Edit details + Full history (label beside the select) */
.actrow{display:flex;flex-wrap:wrap;align-items:center;gap:var(--sp-3);margin-top:var(--sp-3)}
.actrow form.inline{display:inline-flex;align-items:center;gap:var(--sp-2)}
label.inl{flex-direction:row;align-items:center;gap:var(--sp-2);color:var(--c-text)} label.inl select{width:auto}
/* (b) Shared with as one chip line; the help lines are a hint */
.shareline{display:flex;flex-wrap:wrap;align-items:center;gap:var(--sp-2);margin-top:var(--sp-3)}
.shareline>.k{color:var(--c-muted)} .shareline ul.chips{display:inline-flex;flex-wrap:wrap;gap:var(--sp-2);margin:0;padding:0;list-style:none}
.shareline .chip{display:inline-flex;align-items:center;gap:var(--sp-1);color:var(--c-text)} .shareline .actions{margin:0}
.shareline details.plog{flex-basis:100%}
.xchip{border:0;background:none;padding:0 0.125rem;color:var(--c-err);font-size:0.75rem;line-height:1;cursor:pointer} .xchip:hover{color:var(--c-white);background:var(--c-err);border-radius:62rem}
.hint{cursor:help;color:var(--c-muted)} .hint:focus-visible{outline:0.125rem solid var(--c-accent);border-radius:62rem}
/* (c-f) the update form: text full width (2 rows), next action + date on one row, the attach bar, then Logged by + tick + Log update */
form.f.uform{gap:var(--sp-2) var(--sp-4)}
.frow2{display:grid;grid-template-columns:2fr 1fr auto;gap:var(--sp-2) var(--sp-4);align-items:end} .frow2 .grow2{min-width:0}
.frow2.frowend{grid-template-columns:minmax(10rem,1fr) auto auto} .frow2 .actions{justify-content:flex-end}
.frow2 label.chk{align-self:center;white-space:nowrap}
.unote{margin:0} .attbox .attbar{gap:var(--sp-2)} .atthint{flex:1 1 12rem}
/* V8 v11 item 18: the "Updates & next actions" form in three compact rows (flex rows that wrap; fixed widths for the date, the time and the name) */
form.f.uform{gap:var(--sp-2) var(--sp-3)} form.f.uform textarea[name=body]{min-height:3.25rem;height:3.25rem;resize:vertical}
.urow{display:flex;flex-wrap:wrap;align-items:flex-end;gap:var(--sp-2) var(--sp-3)} .urow > label{margin:0}
.urow .u-na{flex:1 1 20rem;min-width:0} .urow .u-date{flex:0 0 11rem} .urow .u-time{flex:0 0 8rem} .urow .u-by{flex:0 1 16rem;min-width:10rem}
.urow label.chk{flex:0 0 auto;white-space:nowrap;align-self:center;margin-bottom:0.375rem}
.urow-end .actions{margin:0} .urow-end .unote{flex:1 1 18rem;align-self:center;margin:0}
.uform .attbox{padding-top:var(--sp-1);padding-bottom:var(--sp-1)}
/* (g) Update and Close stay stacked: the button stays under the update form. The box opens in dialog.closepop, the same pop-up as the other forms. */
.closesec{margin-top:var(--sp-4)}
dialog.closepop{width:min(42rem,calc(100vw - 2rem))}
details.popout{display:inline-block;position:relative} details.popout>summary{list-style:none} details.popout>summary::-webkit-details-marker{display:none}
details.popout[open]>form{position:absolute;z-index:30;right:0;left:auto;top:calc(100% + 0.25rem);width:min(36rem, calc(100vw - 1rem));max-width:min(36rem, calc(100vw - 1rem));background:var(--c-card);border:var(--card-bw) solid var(--card-bc);
  border-radius:var(--r);padding:var(--card-pad);padding-top:2.1rem;box-shadow:0 0.5rem 1.5rem rgba(15,23,42,.18)}
details.popout[open]>form.f.fcompact{grid-template-columns:repeat(auto-fill,minmax(min(10.625rem,100%),1fr))}
details.popout[open]>form label,details.popout[open]>form input,details.popout[open]>form select{min-width:0;max-width:100%}
details.popout[open]>form .popx{position:absolute;top:0.35rem;right:0.4rem;z-index:2;border:0;background:transparent;cursor:pointer;font-size:1.05rem;line-height:1;padding:0.15rem 0.35rem;color:var(--c-muted)}
/* (i) short cards side by side on wide screens */
.cols3{display:grid;gap:var(--gap);grid-template-columns:repeat(3,minmax(0,1fr));align-items:start} .cols3>.card{margin-bottom:0}
.cols3{margin-bottom:var(--gap)}
html.w1100 .cols3{grid-template-columns:1fr 1fr} html.w800 .cols3{grid-template-columns:1fr}
/* (j) narrow screens: everything stacks as before */
html.w800 .frow2,html.w800 .frow2.frowend{grid-template-columns:1fr} html.w800 .actrow{gap:var(--sp-2)}
/* forms everywhere (item 4 k, standard section 7): tighter gaps, same text size; wide screens put short fields side by side */
form.f{gap:var(--sp-2) var(--sp-4)} .card>h2{margin-bottom:var(--sp-3)}
/* V8-2: the Waiting on feedback row whose 5 days are up */
tr.wdue td{background:var(--c-warn-bg)}
fieldset{border:1px solid var(--c-line);border-radius:var(--r-sm);padding:var(--sp-3) var(--sp-4);margin:0} fieldset legend{font-size:var(--fs-small);color:var(--c-muted);padding:0 var(--sp-1)}
@media print{.closesec,details.popout,.actrow,.hint{display:none!important} .card,details.card,.nr .nr-card{border:0.5pt solid var(--c-print-line)}}
/* V8-4 (k): meeting points and Settings sections on the same compact spacing */
.mpt{border:var(--card-bw) solid var(--card-bc);border-radius:var(--r);padding:var(--card-pad);margin-bottom:var(--gap)}
dialog.qadd{padding:var(--sp-4) var(--sp-5)}

/* v2.19.1 (General fixes V9 item 2): a field that needs fixing keeps what was typed and shows a red border (#C00000, --c-field-err) and a red message
   beside it; a refusal from the server sits above the form's buttons. web/form_check.js puts them on and takes them off. */
.fc-bad,input.fc-bad,select.fc-bad,textarea.fc-bad,.rte.fc-bad,fieldset.fc-bad{border:1px solid var(--c-field-err)!important;box-shadow:0 0 0 1px var(--c-field-err)}
.fc-msg{display:block;color:var(--c-field-err);font-size:var(--fs-small);margin-top:var(--sp-1);font-weight:400}
.fc-box{color:var(--c-field-err);border:1px solid var(--c-field-err);background:var(--c-err-bg);border-radius:var(--r-sm);padding:var(--sp-2) var(--sp-3);font-size:var(--fs-small);margin:var(--sp-2) 0}
.fc-req{color:var(--c-field-err)}
.planform td .fc-msg{max-width:12rem}
.cfdlg .fc-follows{margin:0}

/* v2.19.5: who and since sit on their own line under Status and Set status */
.actrow form.stform{flex-wrap:wrap;max-width:100%}
.actrow form.stform details.stwait{flex-basis:100%;max-width:min(36rem, calc(100vw - 1rem))}
.actrow form.stform details.stwait .f.fcompact{grid-template-columns:repeat(auto-fill,minmax(min(10.625rem,100%),1fr))}
dialog.taskact{width:min(47.5rem, calc(100vw - 1rem));max-width:min(47.5rem, calc(100vw - 1rem))}

/* v2.19.6-staging (Settings → Modules): the Save button of the module switches sits at the top, beside the intro (not between the descriptions);
   the "Who may use each module" headings wrap onto two lines so the tick columns stay narrow */
.modsavebar{grid-column:1 / -1;display:flex;align-items:flex-start;justify-content:space-between;gap:0.75rem;margin:0 0 0.5rem}
.modsavebar p{margin:0;flex:1 1 auto} .modsavebar .primary{flex:0 0 auto}
table.compact.modgridwrap thead th{white-space:normal;min-width:4rem;max-width:6.5rem;vertical-align:bottom;line-height:1.2;overflow-wrap:normal}
table.compact.modgridwrap thead th.mghead{max-width:none}
