/* course-assist: the parts of the pages that are its own (both interfaces). Colours come from the
   kit's pens in CAD and from style.css in Classic, so one rule serves both. */
html[data-ui="classic"]{--red:#b3261e;--c-med:#1c2126;--c-dash:#8a939c;--c-active:#1d4f7a;--grey:#667079;--tone:#e6eaee;--f-iso:Arial,Helvetica,sans-serif;--hatch:rgba(29,79,122,.35);--s2:#1d4f7a;--s3:#b5179e}
html[data-ui="classic"] svg.dwg text{font-family:Arial,Helvetica,sans-serif;fill:var(--ink)}
html[data-ui="classic"] svg.dwg .s11{font-size:11px;fill:var(--grey)}
html[data-ui="classic"] svg.dwg .s12{font-size:12.5px}
html[data-ui="classic"] svg.dwg .s14{font-size:13.5px;font-weight:700}
html[data-ui="classic"] .lm{stroke:var(--c-med);stroke-width:1.4;fill:none}
html[data-ui="classic"] .lp{stroke:var(--c-dash);stroke-width:1.4;fill:none;stroke-dasharray:5 4}
html[data-ui="classic"] .fp{fill:var(--paper)}
html[data-ui="classic"] .hot{cursor:pointer}
html[data-ui="classic"] .hot:hover .cb{stroke:var(--c-active);stroke-width:2.5}

/* drawings */
svg.tcdwg{display:block;overflow:visible}
.kad-tone{fill:var(--tone,#e6e6e6)}
.kad-hatch{fill:url(#none);fill:var(--tone,#e6e6e6);opacity:.6;animation:tcpulse 1.2s ease-in-out infinite alternate}
@keyframes tcpulse{from{opacity:.25}to{opacity:.8}}
.kad-delta{fill:var(--paper);stroke:var(--red);stroke-width:1.5}
svg.dwg .kad-deltat{fill:var(--red);font-weight:700}
svg.dwg .kad-tick{fill:var(--c-med,var(--ink))}
.tl-rule{stroke:var(--line);stroke-width:1}
.tl-col{stroke:var(--line);stroke-width:.6;stroke-dasharray:2 4}
.tl-barfill{fill:var(--s2,#1f4fbf);opacity:.13}
.tl-doc.gen .lm{stroke:var(--s2,#1f4fbf)}
svg.dwg .tl-topic{fill:var(--ink)}
.mb-covered{fill:var(--c-med,var(--ink));opacity:.75}
.mb-assessed{fill:var(--s2,#1f4fbf);opacity:.5}
.mb-taught{fill:var(--s3,#ff7fff);opacity:.45}
.mb-gap{fill:var(--red);opacity:.18}
.mapbars{height:100%;min-height:90px}
#mapping .vbody > .mapbars{height:calc(100% - 46px)}
#kadsvg,#tlsvg{min-height:160px}

/* states and labels */
.bad{color:var(--red,#a52a2a)}
.ok{color:var(--good,#27693a)}
html:not([data-ui="classic"]) .ok{color:var(--ink)}
.lbl.bad,.lbl.st-failed,.lbl.st-gap{color:var(--red);border-color:var(--red)}
.lbl.st-covered,.lbl.st-done,.lbl.st-applied{color:var(--ink)}
.lbl.st-running,.lbl.st-queued,.lbl.st-proposed{border-style:dashed}
.lbl.st-taught{color:var(--grey,#666)}
td.num,th.num,.r{text-align:right}
.nowrap{white-space:nowrap}
.iso{font-family:var(--f-iso);letter-spacing:.03em}
.iso.big{font-size:18px;min-width:2.2em}
.cut3{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.grow{flex:1}
.row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.vstack>*+*{margin-top:8px}
.inl{display:inline-flex;gap:4px;align-items:center;margin-right:10px}
form.inl{margin:0}
label.blk{display:block}
dl.kv{display:grid;grid-template-columns:max-content 1fr;gap:3px 12px;margin:0;font-size:13.5px}
dl.kv dt{color:var(--grey,var(--muted));font-size:12px;text-transform:uppercase;letter-spacing:.04em}
dl.kv dd{margin:0;min-width:0}
dl.kv dd.cut{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.plist{list-style:none;margin:0;padding:0}
.plist li{padding:3px 0;border-bottom:1px dotted var(--line)}
.plist li.sev-error .lbl{color:var(--red);border-color:var(--red)}
.chips{display:flex;flex-wrap:wrap;gap:4px}
.chips .chip{cursor:default;font-family:var(--f-iso);font-size:12.5px}
.chip.ok{border-color:var(--ink)}
.chip.bad{border-color:var(--red);color:var(--red);border-style:dashed}
.chip.extra{color:var(--grey,var(--muted))}

/* forms: two columns of labelled fields */
.formgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 14px;align-items:start}
.formgrid label{display:flex;flex-direction:column;gap:2px;font-size:12.5px;color:var(--grey,var(--muted))}
.formgrid label.inl{flex-direction:row;color:var(--ink)}
.formgrid input,.formgrid select,.formgrid textarea{font:inherit;font-size:14px;color:var(--ink);width:100%}
.formgrid .wide2,.formgrid fieldset{grid-column:1 / -1}
.formgrid fieldset{border:1px solid var(--line);padding:4px 8px 8px;margin:0}
.formgrid fieldset input[type=text],.formgrid fieldset input:not([type]){margin-top:4px}
textarea{resize:vertical}
textarea.code,.code{font-family:var(--f-code,monospace);font-size:12.5px}
input.num2{width:3.5em}input.w6{width:6em}input.w8{width:8em}
select.reqsel{width:100%;font-size:12.5px}
[data-path].unsaved{box-shadow:inset 3px 0 0 var(--c-dash,#aaa)}
[data-path].saving{box-shadow:inset 3px 0 0 var(--s2,#1d4f7a)}
[data-path].saved{box-shadow:inset 3px 0 0 var(--ink)}

/* session / question / slide cards in a detail view */
article.sess{border:1px solid var(--line);padding:8px 10px;margin:0 0 10px}
article.sess>header{margin-bottom:6px}
article.sess.flash{outline:2px solid var(--c-active,var(--accent));outline-offset:2px}
.sessed,.qed,.slideed{max-width:1200px}

/* class page */
.cmlist{list-style:none;margin:0;padding:0}
.cmlist li{padding:4px 0;border-bottom:1px dotted var(--line);font-size:13.5px}
.cmlist .cmtext{display:block}
.cmlist li:not(:last-child){margin-bottom:2px}
.cmlist .cmact{margin-top:4px;display:flex;gap:6px;flex-wrap:wrap;align-items:center}
.cmlist .cmact form{flex:1;min-width:300px}
.cmlist .cmact input[name=answer]{flex:1}
.cm.k-question .lbl{border-color:var(--red);color:var(--red)}
.instr{display:flex;gap:6px;align-items:flex-end}
.instr textarea{flex:1;font:inherit;font-size:13.5px;height:3.4em;min-height:0;padding:4px 6px}
.jobs .job{font-size:13px;margin-top:4px}
table.ticks td.tick{text-align:center;font-family:var(--f-iso)}
table.maptable td.evs{font-size:12.5px}
table.maptable tr.cat-E td{font-weight:700}
.kadman td{padding:2px 4px}

/* knowledge */
.dropzone{border:2px dashed var(--line);padding:22px 10px;text-align:center;cursor:pointer;margin-bottom:8px}
.dropzone.over{border-color:var(--ink);background:var(--tone,#eee)}

/* document viewer */
.pvbar{margin-bottom:8px}
.pvbar input{min-width:220px}
.pages .pg{margin:0 auto 14px;max-width:900px;text-align:center}
.pages .pg img{max-width:100%;max-height:calc(100vh - 260px);border:1px solid var(--line);background:#fff;min-height:200px}
.vw-open .pages .pg img,.fs-main .pages .pg img{max-height:none}
img.pgimg{max-width:100%}
.textview{white-space:pre-wrap;font-size:12.5px;max-height:none}
table.xl th,table.xl td{font-size:12.5px;white-space:nowrap;max-width:280px;overflow:hidden;text-overflow:ellipsis}
.editbody{display:flex;flex-direction:column;gap:6px}
#wopiframe{flex:1;width:100%;min-height:calc(100vh - 170px);border:1px solid var(--line);background:#fff}

/* changes */
table.difftable td{vertical-align:top}
table.difftable pre.val{margin:0;white-space:pre-wrap;font:inherit;font-size:13px}
table.difftable td.old pre{color:var(--grey,var(--muted));text-decoration:line-through;text-decoration-color:var(--red)}

/* slides */
.thumbs{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px}
.thumbs .thumb{display:flex;flex-direction:column;align-items:center;text-decoration:none;color:var(--ink)}
.thumbs img{width:100%;aspect-ratio:16/9;object-fit:contain;border:1px solid var(--line);background:#fff}
.blockbar{display:flex;height:22px;border:1px solid var(--ink);margin-bottom:8px}
.blockbar .bk{border-right:1px solid var(--ink)}
.blockbar .bk:last-child{border-right:0}
.bk-lecture{background:var(--tone,#ddd)}
.bk-activity,.bk-demo,.bk-discussion{background:repeating-linear-gradient(45deg,transparent 0 4px,var(--hatch-l,rgba(0,0,0,.3)) 4px 5px)}
.bk-break{background:transparent}
.bk-summary{background:var(--paper)}
.lbl.bk-lecture,.lbl.bk-activity,.lbl.bk-demo,.lbl.bk-discussion,.lbl.bk-break,.lbl.bk-summary{background:none}

.tcnote{margin-left:6px}
@media (max-width:900px){.formgrid{grid-template-columns:1fr}}
.compact input{width:5em;height:auto;padding:1px 4px;min-height:0}
table.fixed,table.revtable{table-layout:fixed}
table.fixed td.cut,table.revtable td.cut{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.vw-open table.revtable td.cut,.fs-main table.revtable td.cut{white-space:normal}
#reviewtable select,#reviewtable input{width:100%;min-width:0}
/* citations and notes */
.srcs{display:inline-flex;flex-wrap:wrap;gap:3px;vertical-align:middle;margin-left:6px}
.src{font-size:11.5px;border:1px solid var(--line);padding:0 5px;text-decoration:none;color:var(--ink);white-space:nowrap;max-width:260px;overflow:hidden;text-overflow:ellipsis}
.src:hover{border-color:var(--ink)}
.src.web{border-style:dotted}
.src.own{border-color:var(--red);color:var(--red);border-style:dashed}
table.notetable tr.nk-ignore td{color:var(--grey,var(--muted));text-decoration:line-through;text-decoration-color:var(--red)}
.seclist{max-height:none;padding-left:18px}
.fileln{margin:0 0 .2rem}

/* ---- list and detail inside a view: choose on the left, read and act on the right (no scrolling) ---- */
.md{display:grid;grid-template-columns:minmax(230px,30%) minmax(0,1fr);gap:16px;height:100%;min-height:0}
.md-list,.md-pane{min-height:0;min-width:0;overflow:auto}
.md-pane{display:flex;flex-direction:column;gap:6px}
.md-pane[hidden]{display:none}
html[data-ui="classic"] .md{height:auto}
html[data-ui="classic"] .md-list,html[data-ui="classic"] .md-pane{overflow:visible}
table.mdt tr.hot{cursor:pointer}
table.mdt tr.hot:hover td{background:var(--tone,#f2f2f2)}
table.mdt tr.mdsel td{background:var(--tone,#e9e9e9)}
table.mdt tr.mdsel td:first-child{box-shadow:inset 4px 0 0 var(--red)}
table.mdt td{white-space:normal}
.panehead{gap:8px;padding-bottom:4px;border-bottom:1px solid var(--line);margin-bottom:2px}
.pager{display:flex;align-items:center;gap:6px;justify-content:flex-end;margin-top:4px}
.pager .btn{min-width:2em;padding:0 6px}
.cut1{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.cut2{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
table.doct{table-layout:fixed}
table.doct th:nth-child(1){width:52%}table.doct th:nth-child(2){width:20%}table.doct th:nth-child(3){width:12%}
table.doct td.cut{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
table.maptable{table-layout:fixed}
table.maptable th:nth-child(1){width:6.5em}table.maptable th:nth-child(3){width:9.5em}table.maptable th:nth-child(4),table.maptable th:nth-child(5){width:16%}
table.maptable td.cut{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mapbars.side{height:150px;min-height:0;margin-bottom:8px}

/* ---- the dumping ground ---- */
.dropzone.big{padding:18px 10px;margin-bottom:8px;font-size:13.5px}
.dropzone.big b{font-size:15px}
.dropcover{position:fixed;inset:0;z-index:900;background:rgba(255,255,255,.82);display:flex;align-items:center;justify-content:center;pointer-events:none}
.dropcover>div{border:3px dashed var(--red,#b3261e);padding:40px 60px;background:var(--paper,#fff);text-align:center;min-width:420px}
.dropcover .sketch{font-size:26px;margin:0 0 6px}
html[data-space="model"] .dropcover{background:rgba(0,0,0,.7)}
table.unitsum td{padding:2px 4px}
ol.steps{padding-left:18px;margin:4px 0 8px}
ol.steps li{margin-bottom:3px}

/* ---- issues ---- */
.isheet{display:flex;flex-direction:column;gap:6px}
form.iss{border-bottom:1px dotted var(--line);padding-bottom:5px;margin:0}
form.iss .iss-t{font-size:13.5px;line-height:1.35}
form.iss .iss-t .cut2{display:inline;-webkit-line-clamp:unset}
form.iss .iss-t{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
form.iss .iss-r{margin-top:3px;gap:6px;flex-wrap:nowrap}
form.iss .iss-r input[name=text]{min-width:0;font-size:13px;padding:1px 6px}
.lbl.k-clash,.lbl.k-gap,.lbl.k-review,.lbl.k-setup{border-color:var(--red);color:var(--red)}
.lbl.k-question{border-style:dashed}
tr.sev-major td:first-child .lbl{font-weight:700}
.isstext{font-size:16px;line-height:1.45;margin:4px 0}
pre.issdet{white-space:pre-wrap;max-height:9.5em;overflow:hidden;margin:0;font-size:12.5px}
.isspane textarea{width:100%}
table.isslist td{vertical-align:top}

/* ---- course details: the form beside the units ---- */
.coursefull{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(0,1fr);gap:20px;height:100%;min-height:0}
.formgrid.g3{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px 12px}
.formgrid.g3 input{padding:2px 5px}
.formgrid .wide3{grid-column:1 / -1}
.unitsbox{display:flex;flex-direction:column;gap:8px;min-width:0}
html[data-ui="classic"] .coursefull{grid-template-columns:1fr}
.formgrid .span2{grid-column:span 2}
.sesspane .formgrid textarea{resize:none}
.sesspane fieldset label.inl{margin-right:8px}
select.smallsel{font-size:13px;padding:1px 4px;height:auto;min-height:0}
#write .vbody p{margin:0 0 6px}
table.isheet td{white-space:normal;padding:4px 2px}
table.isheet form.iss{border:0;padding:0}
table.isheet td{padding:3px 2px}
form.iss .iss-t{font-size:13px;line-height:1.3}
form.iss .iss-r{margin-top:2px}
form.iss .iss-r .btn,form.iss .iss-r input{height:24px;min-height:0}
#write .vbody form p{margin:0 0 6px}
.formgrid.g4{grid-template-columns:repeat(4,minmax(0,1fr));gap:4px 10px}
.formgrid .wide4{grid-column:1 / -1}
.formgrid .span3{grid-column:span 3}
.fs-main .formgrid label{font-size:11px;gap:1px}
.fs-main .formgrid input:not([type=checkbox]):not([type=radio]),.fs-main .formgrid select:not([multiple]){height:26px;min-height:0;padding:1px 6px;font-size:13px}
.fs-main .formgrid textarea{font-size:13px;padding:3px 6px}
.formgrid fieldset.modes{display:flex;flex-wrap:wrap;gap:2px 12px;align-items:center;padding:2px 8px 4px}
.formgrid fieldset.modes legend{font-size:11px}
.formgrid fieldset label.inl{display:inline-flex;flex-direction:row;align-items:center;gap:4px;width:auto;font-size:12.5px;color:var(--ink)}
.formgrid fieldset label.inl input{width:auto;height:auto}
.formgrid fieldset.modes input[name=mode_other]{flex:1;min-width:180px}
.fs-main .dropzone.big{padding:8px 10px;margin-bottom:6px}
.fs-main .dropzone.big br,.fs-main .dropzone.big .small{display:none}
.fs-main .formgrid textarea{min-height:0;height:auto}
.fs-main .vbody:has(> .md){display:flex;flex-direction:column}
.fs-main .vbody > .md{flex:1 1 auto;height:auto;min-height:0}
table.unitt{table-layout:fixed}
table.unitt th:nth-child(1){width:44%}table.unitt th:nth-child(2){width:16%}table.unitt th:nth-child(4){width:5.5em}
table.unitt td{white-space:normal;vertical-align:top}
table.unitt td form.row{flex-wrap:nowrap}
table.unitt input{min-width:0;width:100%}
.kadbody{display:flex;gap:18px}
.kadbody #kadsvg{flex:1 1 auto;min-width:0;height:100%}
.kadbody .pkgplan{flex:0 0 32%;min-width:0;display:flex;flex-direction:column}
.kadbody .pkgplan table{table-layout:fixed}
.kadbody .pkgplan td.cut{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.kadbody .pkgplan th:nth-child(2){width:4em}
html[data-ui="classic"] .kadbody{display:block}
html[data-ui="classic"] .kadbody #kadsvg{height:300px}
.kadticks{display:flex;flex-wrap:wrap;gap:2px 10px;align-items:center;max-width:820px}
table.maptable th:nth-child(3){width:11.5em}
table.maptable td.evs{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.qform textarea{resize:none}
.fs-headl #liveprobs{max-width:760px;margin:0}
.fs-headl #liveprobs li{padding:1px 0;border:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:760px}
.slidegrid{display:grid;grid-template-columns:1fr;gap:14px;min-height:0}
.slidegrid.withpic{grid-template-columns:minmax(0,1.3fr) minmax(0,1fr)}
.slidepic img{width:100%;aspect-ratio:16/9;object-fit:contain;border:1px solid var(--line);background:#fff}
.guideform textarea{resize:none}
.guideform label.inl{align-self:end;flex-direction:row;color:var(--ink);font-size:12.5px}
#blockedit textarea{resize:none;width:100%}
#blockedit td{white-space:normal}

.fs-main select.reqsel{height:auto;min-height:150px}
.pages .pg[hidden]{display:none}
.fs-main .pvbody{display:flex;flex-direction:column;overflow:hidden}
.fs-main .pvbody .pages{flex:1 1 auto;min-height:0;display:flex;gap:18px;justify-content:center;align-items:stretch}
.fs-main .pvbody .pages .pg{flex:0 1 auto;margin:0;display:flex;flex-direction:column;align-items:center;min-height:0;max-width:50%}
.fs-main .pvbody .pages .pg img{max-height:calc(100% - 18px);max-width:100%;width:auto;height:auto;object-fit:contain;min-height:0}
form.collab{gap:10px;align-items:flex-end;flex-wrap:nowrap}
form.collab label{display:flex;flex-direction:column;min-width:240px}
.toolgrid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1.1fr);gap:18px;min-height:0}
.toolgrid textarea{width:100%;resize:none}
.sysgrid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);gap:20px;height:100%;min-height:0}
.sysright{display:flex;flex-direction:column;min-height:0}
.sysright .callbox{flex:1 1 auto;min-height:0;overflow:hidden}
table.calls{table-layout:fixed}
table.calls td.cut{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html[data-ui="classic"] .sysgrid,html[data-ui="classic"] .toolgrid{display:block}
table.reft{table-layout:fixed}
table.reft td{white-space:normal}
table.reft td:last-child{width:6.5em}
html[data-ui="classic"] #flowsvg{min-height:64px}
.isspane textarea{height:4.2em;min-height:0;resize:none}
.isslinks{margin:2px 0 4px}

/* ---------- build view: progress of a generation job ---------- */
.buildview{position:fixed;inset:4vh 4vw;z-index:900;background:var(--paper);color:var(--ink);border:var(--w-bold,3px) solid var(--ink);display:flex;flex-direction:column;box-shadow:0 0 0 100vmax rgba(0,0,0,.35);font-family:var(--f-read)}
.buildview[hidden],.builddock[hidden]{display:none}
html.bv-on body{overflow:hidden}
.bv-head{display:flex;gap:1rem;align-items:flex-start;padding:.7rem 1rem;border-bottom:var(--w-thin,1px) solid var(--line)}
.bv-title{flex:1;min-width:0;display:flex;flex-direction:column;gap:.2rem}
.bv-title b{font-size:1.1rem}
.bv-acts{display:flex;gap:.4rem;flex-wrap:wrap;justify-content:flex-end}
.bv-bar{position:relative;height:1.3rem;margin:.6rem 1rem;border:var(--w-med,1.5px) solid var(--ink)}
.bv-fill{height:100%;background:var(--ink);transition:width .6s ease}
.bv-fill.bad{background:var(--red)}
.bv-pct{position:absolute;right:.4rem;top:0;line-height:1.2rem;font-family:var(--f-iso);mix-blend-mode:difference;color:#fff}
.bv-body{flex:1;min-height:0;display:flex;gap:1rem;padding:0 1rem 1rem}
.bv-phases{list-style:none;margin:0;padding:0;width:15rem;flex:none;overflow:auto}
.bv-phases li{display:grid;grid-template-columns:1.4rem 1fr;gap:0 .3rem;padding:.35rem 0;border-bottom:1px dashed var(--line)}
.bv-phases li .small{grid-column:2}
.bv-phases .ph-wait{color:var(--grey)}
.bv-phases .ph-active b{text-decoration:underline}
.ph-mark{text-align:center}
.bv-main{flex:1;min-width:0;overflow:auto;display:flex;flex-direction:column;gap:.7rem}
.bv-using{border:1px solid var(--line);padding:.4rem .6rem}
.bv-using ul{margin:.2rem 0 0;padding-left:1.1rem;columns:2 18rem}
.bv-items{display:grid;grid-template-columns:repeat(auto-fill,minmax(12rem,1fr));gap:.5rem}
.bv-item{padding:.45rem .55rem;min-height:4.2rem;font-size:.85rem;transition:background .4s,color .4s;overflow:hidden}
.bv-lab{display:flex;gap:.3rem;align-items:center}
.bv-prev,.bv-det{margin-top:.25rem;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.bv-det{color:var(--grey)}
.bv-item.st-pending{border:1px dashed var(--line);color:var(--grey)}
.bv-item.st-writing{border:1px solid color-mix(in srgb,var(--ink) 25%,var(--paper));background:color-mix(in srgb,var(--ink) 14%,var(--paper));color:var(--ink);
  background-image:repeating-linear-gradient(45deg,transparent 0 6px,color-mix(in srgb,var(--ink) 8%,transparent) 6px 12px);background-size:200% 100%;animation:bv-hatch 3s linear infinite}
.bv-item.st-written{border:1px solid color-mix(in srgb,var(--ink) 60%,var(--paper));background:color-mix(in srgb,var(--ink) 58%,var(--paper));color:var(--paper)}
.bv-item.st-ready{border:1px solid var(--ink);background:var(--ink);color:var(--paper)}
.bv-item.st-written .bv-det,.bv-item.st-ready .bv-det{color:inherit;opacity:.8}
@keyframes bv-hatch{to{background-position:-100% 0}}
@media (prefers-reduced-motion:reduce){.bv-item.st-writing{animation:none}}
.bv-log{margin:0;padding-left:1.1rem;color:var(--grey)}
.builddock{position:fixed;right:1rem;bottom:1rem;z-index:880;background:var(--paper);color:var(--ink);border:var(--w-med,1.5px) solid var(--ink);padding:.4rem .6rem;display:flex;gap:.5rem;align-items:center;max-width:32rem;font-family:var(--f-read)}
.builddock .cut1{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;flex:1}
.builddock + .builddock{bottom:3.6rem}
@media (max-width:700px){.bv-body{flex-direction:column}.bv-phases{width:auto;max-height:30vh}}

/* ---------- mapping: choosing and changing */
.maptools{display:flex;flex-wrap:wrap;gap:4px 12px;align-items:center;padding:2px 0 6px;border-bottom:1px solid var(--line);margin-bottom:4px}
.maptools .grp{display:inline-flex;gap:4px;align-items:center}
.maptools select.smallsel{height:24px;min-height:0;padding:0 4px;font-size:12px;max-width:16em}
.maptools .btn.small{padding:1px 7px}
table.maptable th.ck,table.maptable td.ck{width:1.6em;text-align:center}
table.maptable td.evs{font-size:12px;line-height:1.3}
table.maptable .ev{display:inline-flex;align-items:baseline;margin-right:6px;white-space:nowrap}
button.unmap{border:0;background:none;color:var(--grey);cursor:pointer;padding:0 2px;margin-left:1px;font-size:12px;line-height:1}
button.unmap:hover,button.unmap:focus-visible{color:var(--red)}
/* ---------- advice: what the DAP and the sessions still need */
.advice{display:flex;flex-direction:column;gap:6px;margin-bottom:8px}
.adv{border:1px solid var(--line);border-left:3px solid var(--ink);padding:4px 6px;display:flex;flex-direction:column;gap:3px;font-size:12.5px}
.adv.warn{border-left-color:var(--red)}
.adv.ok{border-left-color:var(--c-med,var(--ink))}
.adv .row{display:flex;gap:4px;align-items:center;flex-wrap:wrap}
.adv select{height:22px;min-height:0;padding:0 3px;font-size:12px}
/* ---------- tasks */
table.tsheet td{padding-top:2px;padding-bottom:2px;vertical-align:top}
table.tsheet td .cut1,table.isslist td .cut1{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
td.tst{width:1%}
.jobpane{display:flex;flex-direction:column;gap:6px;min-height:0;overflow:auto}
.jobpane details{border-top:1px solid var(--line);padding:3px 0}
.jobpane summary{cursor:pointer}
.jd-live .bv-body{padding:0;gap:8px}
.jd-live .bv-bar{margin:4px 0}
.jd-live .bv-phases{width:11rem;font-size:12px}
.jd-live .bv-items{grid-template-columns:repeat(auto-fill,minmax(9rem,1fr))}
.jd-live .bv-item{min-height:3rem;font-size:12px}
.jd-raised{border-left:3px solid var(--red);padding:2px 6px}
.jd-raised ul{margin:2px 0;padding-left:1.1rem}
table.kv th{text-align:left;width:9em;vertical-align:top;font-weight:normal;color:var(--grey)}
details.call{border:0;padding:1px 0}
details.call summary{font-size:12px}
pre.calltxt{white-space:pre-wrap;font-family:var(--f-code);font-size:11px;max-height:16rem;overflow:auto;border:1px solid var(--line);padding:4px;margin:2px 0 6px}
.jd-steps{margin:2px 0 4px;padding-left:1.4rem;max-height:9rem;overflow:auto}
/* the kit styles every button in a view (with an id in its selector): this small × is not one of those */
table.maptable button.unmap{all:unset!important;cursor:pointer!important;color:var(--grey)!important;padding:0 3px!important;font:12px/1 var(--f-read)!important}
table.maptable button.unmap:hover,table.maptable button.unmap:focus-visible{color:var(--red)!important;outline:1px solid var(--red)!important}
table.maptable td.evs.cut{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
table.maptable td .lbl + .lbl{margin-left:3px}
.cad .fs table.maptable td.cut{white-space:nowrap;max-width:0}
/* lists beside a detail: never wider than their column (a long one-line text is cut, not pushed into the detail) */
.md-list > table{width:100%}
.md-list td{overflow-wrap:anywhere}
.md-list > table.isslist{table-layout:fixed}
.md-list > table.isslist td{overflow:hidden}
.md-list > table.isslist td.tst{width:7.5em;overflow-wrap:normal}
.md-list .cut1,.md-list .cut2{min-width:0}
html[data-ui="classic"] .md{grid-template-columns:minmax(260px,36%) minmax(0,1fr)}
html[data-ui="classic"] .md-list{overflow:hidden}
/* "maps to" bubbles */
.reqpick{display:flex;flex-direction:column;gap:4px}
.reqpick .bubbles{display:flex;flex-wrap:wrap;gap:4px;align-items:center}
.reqpick .bub{border:1px solid var(--line);border-radius:12px;padding:1px 8px;font-size:12px;line-height:1.35;cursor:pointer;max-width:100%;background:var(--paper)}
.reqpick .bub b{margin-right:3px}
.cad .reqpick .bub{border-radius:0}
.lab{display:flex;flex-direction:column;gap:3px;font-size:13px;color:var(--grey)}
.lab .reqpick{color:var(--ink)}
/* Classic: a long list beside its detail scrolls with the page; the detail stays in view */
html[data-ui="classic"] .md{align-items:start}
html[data-ui="classic"] .md-pane:not([hidden]){position:sticky;top:8px;max-height:calc(100vh - 16px);overflow:auto}
table.maptable .ev.info a,table.maptable .ev.info span.muted{color:var(--grey);font-style:italic}
table.maptable .prim{font-size:11px;margin-left:2px}
/* delivery: sessions by how complete their materials are */
table.sesslist tr.ss-empty td:first-child{box-shadow:inset 3px 0 0 var(--red)}
table.sesslist tr.ss-empty td{background:color-mix(in srgb,var(--red) 9%,transparent)}
table.sesslist tr.ss-part td:first-child{box-shadow:inset 3px 0 0 #d9a400}
table.sesslist tr.ss-part td{background:color-mix(in srgb,#f2c200 16%,transparent)}
ul.tight{margin:0 0 4px;padding-left:1.1rem}
ul.tight li{margin:0}
.mats .cut1{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.enhform [hidden],.formgrid > [hidden]{display:none!important}
/* ---------- delivery: the deck's preview, slides in or out */
.deckbar{position:sticky;top:0;background:var(--paper);z-index:2;padding:2px 0 6px;gap:6px;align-items:center}
.thumbs.scroll{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:10px;align-content:start}
.thumbs.scroll .thumb{position:relative;border:1px solid var(--line);background:var(--paper);display:flex;flex-direction:column}
.thumbs.scroll .thumb img{width:100%;display:block;aspect-ratio:16/9;object-fit:contain;background:#fff}
.thumbs.scroll .tcard{aspect-ratio:16/9;padding:8px;font-size:11px;line-height:1.3;overflow:hidden;display:flex;flex-direction:column;gap:2px;background:#fff}
.thumbs.scroll .tcard b{font-size:12px}
.thumbs.scroll .tick{display:flex;gap:6px;align-items:center;padding:3px 6px;border-top:1px solid var(--line);font-size:12px;cursor:pointer}
.thumbs.scroll .thumb.off img,.thumbs.scroll .thumb.off .tcard{opacity:.28;filter:grayscale(1)}
.thumbs.scroll .thumb.off{border-style:dashed}
.thumbs.scroll .thumb.newfile{box-shadow:-5px 0 0 -2px var(--ink)}
table.mdt tr.off td{color:var(--grey)}
table.mdt tr.off td .cut1{text-decoration:line-through}
.sharebox{border-top:1px solid var(--line);padding-top:6px;margin-top:4px}
.row.rwrap{flex-wrap:wrap}
.planform textarea{font-size:13px}
.findings td{vertical-align:top}
.findings tr.fs-ignore td,.findings tr.fs-fixed td{opacity:.55}
.checkrow{gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:6px}
.thumbs.scroll .thumb > *{width:100%;box-sizing:border-box}
.thumbs.scroll .thumb a{display:block}
.thumbs.scroll .tick{justify-content:flex-start;margin:0}
.thumbs.scroll .tick input{margin:0}
.sharebox [data-share]{gap:4px 14px;margin:2px 0 6px}
.sharebox p{margin:4px 0}
/* Classic: a tick box with its words sits on its line (the base style gives every label a block and a big top margin) */
html[data-ui="classic"] label.inl{display:inline-flex;gap:5px;align-items:center;margin:2px 10px 2px 0;color:var(--ink);font-size:13px}
html[data-ui="classic"] label.inl input{margin:0}
html[data-ui="classic"] .thumbs.scroll .tick{margin:0}
.formgrid label.inl,html[data-ui="classic"] .formgrid label.inl{display:flex!important;flex-direction:row!important;align-items:center;gap:6px;color:var(--ink)}
.formgrid label.inl input{width:auto;margin:0}
.slidepane .panehead input:not([type=checkbox]){padding:5px 8px;border:1px solid var(--line);border-radius:3px;font:inherit}
table.sesslist tr.rowsel td{font-weight:600;outline:2px solid var(--ink);outline-offset:-2px}
/* CAD: a sheet view shows what fits (the preview's first slides; the PowerPoints settings in the Build detail) */
.cad #deck:not(.is-fs) .thumbs.scroll .thumb:nth-child(n+7){display:none}
.cad #build:not(.is-fs) .sharebox,.cad #build:not(.is-fs) .vbody > p.small:not(.row){display:none}
