#ashell{display:flex;min-height:100vh}
#asb{width:236px;flex:none;display:flex;flex-direction:column;padding:24px 14px 18px;border-right:1px solid var(--sbLine);background-color:var(--sbB);background-image:linear-gradient(180deg,var(--sbA),var(--sbB));color:var(--sbInk);position:sticky;top:0;height:100vh;overflow-y:auto}
.abrand{display:flex;flex-direction:column;align-items:center;gap:10px;padding:8px 0 26px;text-align:center}
.abrand .sub{font-size:12px;font-weight:600;letter-spacing:.1em;color:var(--sbMut);text-transform:uppercase}
.anav{display:flex;flex-direction:column;gap:4px}
.alink{display:flex;align-items:center;gap:12px;padding:11px 14px;min-height:44px;border-radius:12px;font-size:14px;font-weight:500;color:var(--sbInk2);transition:background .15s,color .15s;border:1px solid transparent;text-align:left}
.alink svg{width:18px;height:18px}
.alink:hover{background:var(--sbHover);color:var(--sbInk)}
.alink.on{background:rgba(201,162,39,.14);color:#E6CA6E;border-color:rgba(201,162,39,.3);font-weight:600}
.alink .cnt{margin-left:auto;font-size:12px;font-weight:600;color:var(--sbMut);font-variant-numeric:tabular-nums}
.asbfoot{margin-top:auto;padding-top:16px;border-top:1px solid var(--sbLine);display:flex;flex-direction:column;gap:4px}
.awho{display:flex;align-items:center;gap:10px;padding:10px 12px}
.awho .avatar{width:36px;height:36px;font-size:13px;border-radius:50%;background:var(--sbTile);border:1.5px solid rgba(201,162,39,.5);display:flex;align-items:center;justify-content:center;font-weight:600;color:#E6CA6E;flex:none}
.awho .wn{font-size:13.5px;font-weight:600}
.awho .wr{font-size:12px;color:var(--sbMut)}

/* Sub-navigation under a grouped item. It exists only while its group is the
   section being read, so the sidebar spends rows on one area at a time. */
.asub{display:flex;flex-direction:column;gap:2px;margin:2px 0 6px 15px;padding-left:11px;border-left:1px solid var(--sbLine)}
.alink.sub{padding:8px 12px;min-height:36px;font-size:13.5px;border-radius:9px}
.alink .sbchev{margin-left:auto;width:15px;height:15px;color:var(--sbMut)}
.alink.on .sbchev{color:inherit}
.alink .sbchev+.cnt,.alink.sub .cnt{margin-left:auto}

#amain{flex:1;min-width:0;display:flex;flex-direction:column}
/* The portal's own controls, as opposed to any one screen's. Sticky so the
   theme switch stays reachable down a long table, and transparent so it reads
   as part of the page rather than as a second header competing with the h1. */
#atop{display:flex;align-items:center;gap:12px;padding:10px 34px 0;position:sticky;top:0;z-index:40;
      background:var(--bg);min-height:46px}
#atop .topact{margin-left:auto;display:flex;align-items:center;gap:6px}
#atop .tn2{font-family:var(--serif);font-size:20px;font-weight:600}
/* Menu button and wordmark belong to the phone layout, where the sidebar is
   a drawer. On a desktop the sidebar is already open and both are noise. */
#atop .topmob{display:none}
#atop .topwm{align-items:center;gap:10px}
#aview{flex:1;padding:14px 34px 60px;max-width:1560px;width:100%;margin:0 auto}

.ahead{display:flex;align-items:flex-start;gap:14px;margin-bottom:22px;flex-wrap:wrap}
.ahead .hx{flex:1;min-width:240px}
.ahead h1{font-family:var(--serif);font-size:31px;font-weight:600;line-height:1.12}
/* Names the group a screen sits in without repeating it as a second heading. */
.ahead h1 .hgrp{font-family:var(--sans);font-size:12px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;
                color:var(--mut);margin-left:12px;vertical-align:middle}
.ahead .hs{font-size:14px;color:var(--mut);margin-top:5px;line-height:1.55;max-width:70ch}
.ahead .hb{display:flex;gap:10px;flex-wrap:wrap;align-items:center}

/* A page-level tab strip. The same tabs as inside a panel, without the panel's
   inset, so it lines up with the heading above it. */
.peopletabs{padding:0;margin:-8px 0 22px;overflow-x:auto}
.peopletabs .ptab{display:flex;align-items:center;gap:8px;white-space:nowrap}
.peopletabs .ptab svg{width:16px;height:16px}

/* Stat tiles: sans figures, tabular, no gold unless the number is a warning. */
.atiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:14px;margin-bottom:24px}
.atile{padding:17px 18px;border-radius:var(--r);background:var(--panel);border:1px solid var(--line2)}
.atile .tk{font-size:13px;font-weight:600;margin-bottom:8px;color:var(--ink2);display:flex;align-items:center;gap:7px}
.atile .tk svg{width:15px;height:15px;color:var(--mut)}
.atile .tk .tipbtn{margin-left:-2px}
.atile .tv{font-size:29px;font-weight:700;color:var(--ink);font-variant-numeric:tabular-nums;line-height:1.12}
.atile .tv.na{color:var(--mut);font-size:22px}
.atile .td{font-size:12.5px;color:var(--mut);margin-top:5px}
.atile .td b{color:var(--ok);font-weight:600}
.atile.hero{background:linear-gradient(180deg,var(--panel2),var(--panel));border-color:var(--line3)}

.pgrid{display:grid;grid-template-columns:300px minmax(0,1fr);gap:20px;align-items:start}
.pgrid.withday{grid-template-columns:300px minmax(0,1fr) 460px}
.plist{display:flex;flex-direction:column;gap:9px}
.pcard{display:flex;align-items:center;gap:12px;width:100%;text-align:left;padding:13px 14px;min-height:64px;border-radius:var(--r);background:var(--panel);border:1px solid var(--line2);transition:border-color .15s,background .15s}
.pcard:hover{border-color:var(--line3);background:var(--panel2)}
.pcard.on{border-color:rgba(201,162,39,.55);background:linear-gradient(180deg,var(--panel2),var(--panel));box-shadow:inset 3px 0 0 var(--gold)}
.pcard .cv{width:44px;height:44px;flex:none;border-radius:11px;overflow:hidden;border:1px solid var(--line2)}
.pcard .px{flex:1;min-width:0}
.pcard .pn{display:block;font-weight:600;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pcard .pm{display:flex;font-size:12.5px;color:var(--mut);margin-top:3px;align-items:center;gap:6px}

/* Sections are separated by surface and spacing, not by nested outlines. */
.panel{background:var(--panel);border:1px solid var(--line2);border-radius:var(--r-l);overflow:hidden}
.panel-h{display:flex;align-items:center;gap:12px;padding:16px 20px;border-bottom:1px solid var(--line2);flex-wrap:wrap}
.panel-h .pt{font-weight:600;font-size:16px;display:flex;align-items:center;gap:10px;min-width:0}
.panel-h .pa{margin-left:auto;display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.panel-b{padding:20px}
.subhead{font-size:13px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--ink2);display:flex;align-items:center;gap:10px;margin:20px 0 12px}
.subhead .sm2{margin-left:auto;font-size:13px;font-weight:500;letter-spacing:0;text-transform:none;color:var(--mut);font-variant-numeric:tabular-nums}

.ptabs{display:flex;gap:2px;padding:0 20px;border-bottom:1px solid var(--line2)}
.ptab{padding:13px 16px;min-height:48px;font-size:14px;font-weight:500;color:var(--mut);border-bottom:2px solid transparent;margin-bottom:-1px}
.ptab:hover{color:var(--ink2)}
.ptab.on{color:var(--gold2);border-bottom-color:var(--gold);font-weight:600}

.dayrow{display:flex;align-items:center;gap:11px;width:100%;padding:11px 12px;min-height:58px;border-radius:12px;background:var(--bg2);margin-bottom:8px;border:1px solid transparent;transition:background .15s,border-color .15s}
.dayrow:hover{background:var(--panel2);border-color:var(--line2)}
.dayrow.on{background:var(--panel2);border-color:rgba(201,162,39,.5);box-shadow:inset 3px 0 0 var(--gold)}
.dayrow .num{width:28px;height:28px;flex:none;border-radius:8px;background:var(--panel3);display:flex;align-items:center;justify-content:center;font-size:12.5px;font-weight:600;color:var(--ink2);font-variant-numeric:tabular-nums}
.dayrow .dx{flex:1;min-width:0;text-align:left}
.dayrow .dt{display:block;font-size:14px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dayrow .dm{display:flex;font-size:12.5px;color:var(--mut);margin-top:3px;align-items:center;gap:7px;flex-wrap:wrap}
.dayrow .dctl{display:flex;gap:2px;align-items:center}
.dayrow .dctl .iconbtn{width:32px;height:32px;border-radius:8px}
.dayrow .dctl .iconbtn svg{width:16px;height:16px}

.seqrow{display:flex;align-items:center;gap:10px;padding:11px 12px;min-height:56px;border-radius:12px;background:var(--bg2);margin-bottom:8px;border:1px solid transparent;transition:background .15s,border-color .15s}
.seqrow:hover{background:var(--panel2)}
/* The component being edited is unmistakable. */
.seqrow.on{background:var(--panel2);border-color:rgba(201,162,39,.55);box-shadow:inset 3px 0 0 var(--gold)}
.seqrow .stile2{width:36px;height:36px;flex:none;border-radius:9px;background:var(--panel3);display:flex;align-items:center;justify-content:center;color:var(--ink2)}
.seqrow.on .stile2{color:var(--gold2)}
.seqrow .stile2 svg{width:17px;height:17px}
.seqrow .sx{flex:1;min-width:0;text-align:left}
.seqrow .sn{display:flex;font-size:14px;font-weight:600;align-items:center;gap:8px;flex-wrap:wrap}
.seqrow .sm{display:block;font-size:12.5px;color:var(--mut);margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.seqrow .sd{font-size:12.5px;color:var(--mut);flex:none;font-variant-numeric:tabular-nums}
.seqrow .sctl{display:flex;gap:2px}
.seqrow .sctl .iconbtn{width:32px;height:32px;border-radius:8px}
.seqrow .sctl .iconbtn svg{width:16px;height:16px}
.seqrow.dragging{opacity:.4}
.editnow{font-size:11px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--onGold);background:var(--gold);border-radius:4px;padding:1px 6px}

/* Selecting a component brings its settings to the top of the panel. */
.compcfg{border-radius:var(--r);background:var(--panel2);border:1px solid rgba(201,162,39,.3);padding:18px;margin-bottom:20px}
.compcfg .cch{display:flex;align-items:center;gap:10px;margin-bottom:16px;flex-wrap:wrap}
.compcfg .cct{font-size:13px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--gold2);display:flex;align-items:center;gap:9px}
.compcfg .cct svg{width:16px;height:16px}
.compcfg .ccx{margin-left:auto}
.reflist{display:flex;flex-direction:column;gap:2px}
.reflist label{display:flex;align-items:center;gap:11px;padding:11px 10px;min-height:48px;font-size:14px;cursor:pointer;border-radius:10px;transition:background .15s}
.reflist label:hover{background:var(--hover)}
.reflist input{accent-color:var(--gold);width:17px;height:17px;flex:none}
.reflist .rn{flex:1;min-width:0}
.reflist .rd{color:var(--mut);font-size:13px;font-variant-numeric:tabular-nums;flex:none}

.libbar{display:flex;gap:10px;align-items:center;margin-bottom:16px;flex-wrap:wrap}
.libsearch{position:relative;flex:1;min-width:210px}
.libsearch svg{position:absolute;left:13px;top:50%;transform:translateY(-50%);width:16px;height:16px;color:var(--mut)}
.libsearch input{padding-left:38px}
.libbar select.input{width:auto;min-width:150px}
.chips{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:16px}

.lgrid{display:grid;grid-template-columns:minmax(0,1fr);gap:20px;align-items:start}
.lgrid.withedit{grid-template-columns:minmax(0,1fr) 440px}

/* Headings sit clearly apart from the rows beneath them. */
table.ltable{width:100%;border-collapse:collapse;font-size:14px}
.ltable thead th{text-align:left;font-size:13px;font-weight:600;letter-spacing:.01em;color:var(--ink2);padding:13px 14px;background:var(--bg2);border-bottom:2px solid var(--line3);white-space:nowrap}
.ltable th.n,.ltable td.n{text-align:right;font-variant-numeric:tabular-nums}
.ltable td{padding:13px 14px;border-bottom:1px solid var(--line2);vertical-align:middle}
.ltable tbody tr{cursor:pointer;transition:background .12s}
.ltable tbody tr:hover{background:var(--hover)}
.ltable tbody tr.on{background:var(--goldSoft);box-shadow:inset 3px 0 0 var(--gold)}
.ltable tbody tr:last-child td{border-bottom:0}
.lthumb{width:46px;height:33px;border-radius:8px;overflow:hidden;border:1px solid var(--line2);flex:none}
.lcell{display:flex;align-items:center;gap:11px;min-width:0}
.lcell .lt{font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:240px}
.ltype{display:inline-flex;align-items:center;gap:7px;color:var(--ink2);font-size:13.5px;white-space:nowrap}
.ltype svg{width:15px;height:15px;color:var(--mut)}
/* Used In stays a compact summary; the detail is one click away. */
.usedbtn{display:inline-flex;align-items:center;gap:7px;font-size:13px;color:var(--ink2);white-space:nowrap;padding:6px 10px;min-height:36px;border-radius:9px;border:1px solid transparent;transition:border-color .15s,background .15s}
.usedbtn:hover{border-color:var(--line3);background:var(--hover)}
.usedbtn svg{width:13px;height:13px;color:var(--mut);flex:none}
.usedbtn.none{color:var(--mut);cursor:default}
.usedbtn.none:hover{border-color:transparent;background:none}
.lpage{display:flex;align-items:center;gap:6px;justify-content:space-between;padding:13px 16px;border-top:1px solid var(--line2);font-size:13px;color:var(--mut);flex-wrap:wrap}
.lpage .pgs{display:flex;gap:4px}
.lpage .pg{min-width:34px;height:34px;border-radius:9px;display:inline-flex;align-items:center;justify-content:center;font-size:13px;color:var(--ink2);border:1px solid transparent;position:relative;font-variant-numeric:tabular-nums}
.lpage .pg:after{content:"";position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:44px;height:44px}
.lpage .pg:hover{border-color:var(--line3)}
.lpage .pg.on{background:var(--goldSoft);color:var(--gold2);border-color:rgba(201,162,39,.4);font-weight:600}

/* Editor panels keep their title, status and save state pinned while the
   body scrolls. */
.editor{display:flex;flex-direction:column;max-height:calc(100vh - 128px);position:sticky;top:20px}
.editor .panel-h{position:sticky;top:0;z-index:6;background:var(--panel2);backdrop-filter:blur(6px);flex:none;row-gap:8px}
.editor .panel-h .ptl{display:flex;align-items:center;gap:10px;min-width:0;flex-wrap:wrap;width:100%}
.editor .panel-h .prow2{display:flex;align-items:center;gap:10px;width:100%;flex-wrap:wrap}
.editor .panel-b{overflow-y:auto;flex:1;min-height:0}
.editor .panel-f{flex:none;padding:14px 20px;border-top:1px solid var(--line2);display:flex;gap:10px;align-items:center;flex-wrap:wrap;background:var(--panel)}

.vidbox{display:flex;align-items:center;gap:12px;padding:12px;border-radius:12px;background:var(--bg2);margin-bottom:16px;flex-wrap:wrap}
.vidbox .vthumb{width:78px;height:50px;border-radius:9px;overflow:hidden;flex:none;position:relative;border:1px solid var(--line2)}
.vidbox .vthumb .vp{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:var(--gold2)}
.vidbox .vthumb .vp svg{width:16px;height:16px;filter:drop-shadow(0 1px 3px rgba(0,0,0,.55))}
.vidbox .vx{flex:1;min-width:120px}
.vidbox .vn{display:block;font-size:13.5px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.vidbox .vs{display:block;font-size:12.5px;color:var(--mut);margin-top:3px}

/* A Guided Practice audio stem. The media box above it leads with a frame
   grab; there is nothing to grab from an audio file, so the icon says which
   stem the row is and the text says whether it is filled. */
.stemrow{display:flex;align-items:center;gap:12px;padding:11px 12px;border-radius:12px;background:var(--bg2);margin-bottom:9px;flex-wrap:wrap}
.stemrow .stemic{width:38px;height:38px;flex:none;border-radius:11px;background:linear-gradient(180deg,var(--panel3),var(--panel2));border:1px solid var(--line2);display:flex;align-items:center;justify-content:center;color:var(--gold2)}
.stemrow .stemic svg{width:17px;height:17px}
.stemrow .vx{flex:1;min-width:120px}
.stemrow .vn{display:block;font-size:13.5px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.stemrow .vs{display:block;font-size:12.5px;color:var(--mut);margin-top:3px}

/* The public address of a program. The fixed prefix sits outside the field so
   what is editable is only the part that is: an author typing a whole URL into
   a slug box would be the obvious mistake to make otherwise. */
.slugrow{display:flex;align-items:stretch;border:1px solid var(--line2);border-radius:var(--r);overflow:hidden;background:var(--bg2)}
.slugpre{display:flex;align-items:center;padding:0 2px 0 12px;font-size:13.5px;color:var(--mut);white-space:nowrap;font-family:var(--mono,ui-monospace,SFMono-Regular,Menlo,monospace)}
.slugrow .input{border:0;background:transparent;border-radius:0;padding-left:2px;font-family:var(--mono,ui-monospace,SFMono-Regular,Menlo,monospace)}

/* The finished link, ready to paste. Beside the trailer because that is what
   somebody is about to check after uploading one. */
.sharerow{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:11px 12px;border-radius:12px;background:var(--bg2);border:1px dashed var(--line2);margin-top:12px}
.sharerow svg{width:16px;height:16px;flex:none;color:var(--gold2)}
.sharerow code{flex:1;min-width:180px;font-size:12.5px;color:var(--ink2);word-break:break-all}

.toolcfg{display:grid;grid-template-columns:minmax(0,1fr) 440px;gap:20px;align-items:start}
.trow{display:flex;align-items:center;gap:12px;width:100%;padding:13px 14px;min-height:70px;border-radius:var(--r);background:var(--panel);border:1px solid var(--line2);margin-bottom:10px;transition:border-color .15s,background .15s}
.trow:hover{border-color:var(--line3);background:var(--panel2)}
.trow.on{border-color:rgba(201,162,39,.55);background:var(--panel2);box-shadow:inset 3px 0 0 var(--gold)}
.trow.dragging{opacity:.4}
.trow.dragover{border-color:var(--gold2);border-style:dashed}
.trow .grip{color:var(--mut);cursor:grab;padding:8px 4px;flex:none;touch-action:none;display:flex;align-items:center}
.trow .grip:active{cursor:grabbing}
.trow .grip svg{width:16px;height:16px}
.trow .ticon{width:44px;height:44px;flex:none;border-radius:12px;background:linear-gradient(180deg,var(--panel3),var(--panel2));border:1px solid var(--line2);display:flex;align-items:center;justify-content:center;color:var(--ink2)}
.trow.on .ticon{color:var(--gold2);border-color:var(--line)}
.trow .ticon svg{width:20px;height:20px}
.trow .ticon.asimg,.pt .ptic{background:none;border:none}
.trow .ticon.asimg .bim{width:100%;height:100%}
.pt .ptic{width:24px;height:24px}
.trow .tx{flex:1;min-width:0;text-align:left}
.trow .tn{display:block;font-weight:600;font-size:14.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.trow .tm{display:flex;font-size:12.5px;color:var(--mut);margin-top:4px;align-items:center;gap:8px;flex-wrap:wrap}
.trow .ord{font-size:12.5px;color:var(--mut);font-variant-numeric:tabular-nums;flex:none;width:20px;text-align:center}
.dragnote{display:flex;align-items:center;gap:9px;padding:12px 14px;border-radius:12px;background:var(--bg2);color:var(--mut);font-size:13px;margin-top:4px}
.dragnote svg{width:15px;height:15px;flex:none}

.iconpick{display:grid;grid-template-columns:repeat(6,1fr);gap:8px}
.iconpick button{aspect-ratio:1;min-height:44px;border-radius:11px;border:1px solid var(--line2);display:flex;align-items:center;justify-content:center;color:var(--ink2);transition:all .12s}
.iconpick button:hover{border-color:var(--line3);color:var(--ink)}
.iconpick button.on{background:var(--goldSoft);border-color:rgba(201,162,39,.5);color:var(--gold2)}
.iconpick button svg{width:19px;height:19px}

/* ---- insights -----------------------------------------------------------
   One filter row scopes every panel; no filter lives inside a chart card. */
.insbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:14px 16px;border-radius:var(--r);background:var(--panel);border:1px solid var(--line2);margin-bottom:20px}
.insbar .ibl{font-size:13px;font-weight:600;color:var(--ink2);display:flex;align-items:center;gap:8px}
.insbar .ibl svg{width:15px;height:15px;color:var(--mut)}
.insbar select.input{width:auto;min-width:170px}
.insbar .ibr{margin-left:auto;display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:13px;color:var(--mut)}
.sampleband{display:flex;align-items:flex-start;gap:10px;padding:13px 16px;border-radius:var(--r);background:var(--warnSoft);border:1px solid var(--warnLine);color:var(--ink2);font-size:13.5px;line-height:1.55;margin-bottom:20px}
.sampleband svg{width:17px;height:17px;color:var(--warn);flex:none;margin-top:1px}

.insgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:18px}
.inspanel{background:var(--panel);border:1px solid var(--line2);border-radius:var(--r-l);padding:20px}
.inspanel .it{font-weight:600;font-size:15px;margin-bottom:6px;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.inspanel .it svg{width:16px;height:16px;color:var(--mut)}
.inspanel .isub{font-size:13px;color:var(--mut);margin-bottom:16px;line-height:1.5}
/* Marks a panel the programme filter does not scope, so a filtered view is
   never read as if every number narrowed with it. */
.wstag{margin-left:auto;font-size:11.5px;font-weight:600;color:var(--mut);background:var(--hover2);border:1px solid var(--line2);border-radius:999px;padding:3px 9px;white-space:nowrap}
.insrows{display:flex;flex-direction:column;gap:12px}
.insfoot2{font-size:13px;color:var(--mut);margin-top:14px;padding-top:13px;border-top:1px solid var(--line2);line-height:1.55}
.insfoot{display:flex;align-items:center;gap:9px;margin-top:20px;padding-top:16px;border-top:1px solid var(--line2);font-size:13px;color:var(--mut);flex-wrap:wrap}
.insfoot svg{width:15px;height:15px;flex:none}
.insfoot .rt{margin-left:auto;display:flex;align-items:center;gap:8px}
.insfoot .rt .iconbtn{width:34px;height:34px}
.insfoot .rt .iconbtn svg{width:16px;height:16px}
.evrow{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid var(--line2);font-size:13.5px;flex-wrap:wrap}
.evrow:last-child{border-bottom:0}
.evrow .ev{flex:1;color:var(--ink2);min-width:140px}
.evrow .ei{font-size:12.5px;color:var(--mut);font-variant-numeric:tabular-nums;white-space:nowrap}
.deflist{display:flex;flex-direction:column;gap:2px}
.defrow{display:flex;align-items:center;gap:10px;width:100%;text-align:left;padding:11px 10px;min-height:48px;border-radius:10px;font-size:14px;color:var(--ink2);transition:background .15s}
.defrow:hover{background:var(--hover2);color:var(--ink)}
.defrow svg{width:15px;height:15px;color:var(--mut);flex:none;margin-left:auto}

/* ---- users ----------------------------------------------------------------
   The table carries a person, not a record, so the name and the address sit
   together in one cell behind their initials rather than in two columns that
   have to be read across.                                                   */
.uav{width:36px;height:36px;flex:none;border-radius:50%;background:var(--panel3);border:1.5px solid rgba(201,162,39,.45);
  display:flex;align-items:center;justify-content:center;font-size:12.5px;font-weight:600;color:var(--gold2);letter-spacing:.02em}
/* A blocked account is never carried by colour alone; the row also wears a
   Blocked pill. This just stops the avatar reading as an active one. */
.uav.off{border-color:var(--badLine);color:var(--bad);background:var(--badSoft)}
.ux{min-width:0;display:flex;flex-direction:column;gap:2px}
.ux .lt{max-width:230px}
.ux .ue{font-size:12.5px;color:var(--mut);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:230px}
.lpage .pg[disabled]{opacity:.35;cursor:not-allowed}
.lpage .pg svg{width:15px;height:15px}

.urows{display:flex;flex-direction:column;gap:2px}
.urow{display:flex;align-items:baseline;gap:14px;padding:9px 0;border-bottom:1px solid var(--line2);font-size:14px}
.urow:last-child{border-bottom:0}
.urow span{color:var(--mut);flex:none;min-width:118px}
.urow b{font-weight:600;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

.ucounts{display:grid;grid-template-columns:repeat(auto-fit,minmax(96px,1fr));gap:8px}
.ucounts .uc{padding:11px 12px;border-radius:11px;background:var(--bg2);border:1px solid var(--line2)}
.ucounts .uc b{display:block;font-size:19px;font-weight:700;font-variant-numeric:tabular-nums;line-height:1.15}
.ucounts .uc span{display:block;font-size:11.5px;color:var(--mut);margin-top:3px}

/* ---- feedback ------------------------------------------------------------ */
.fbrow{display:flex;gap:13px;padding:15px 0;border-bottom:1px solid var(--line2);align-items:flex-start}
.fbrow:last-child{border-bottom:0}
.fbico{width:38px;height:38px;flex:none;border-radius:11px;display:flex;align-items:center;justify-content:center;border:1px solid var(--line2)}
.fbico svg{width:17px;height:17px}
.fbico.up{color:var(--ok);border-color:rgba(140,191,160,.36)}
.fbico.down{color:var(--bad);border-color:var(--badLine)}
.fbico.prob{color:var(--warn);border-color:var(--warnLine)}
.fbico.gen{color:var(--ink2)}
.fbx{flex:1;min-width:0}
.fbcm{font-size:14.5px;color:var(--ink);line-height:1.55}
.fbcm.none{color:var(--mut);font-style:italic}
.fbtags{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}
.fbtag{font-size:12px;font-weight:500;color:var(--ink2);background:var(--hover2);border:1px solid var(--line2);border-radius:999px;padding:3px 9px}
.fbmeta{font-size:12.5px;color:var(--mut);margin-top:8px;display:flex;gap:8px;flex-wrap:wrap;align-items:center}

/* Who left a response, above what they said. Sitting first because it is the
   thing that decides whether the rest is worth reading. */
.fbwho{display:flex;align-items:center;gap:7px;margin-bottom:6px;font-size:13px;min-width:0}
.fbwho svg{width:14px;height:14px;color:var(--mut);flex:none}
.fbwho.none{color:var(--mut);font-style:italic}
.fblink{font-weight:600;color:var(--gold2);border-bottom:1px solid transparent;max-width:26ch;overflow:hidden;
        text-overflow:ellipsis;white-space:nowrap}
.fblink:hover{border-bottom-color:currentColor}
.fbem{color:var(--mut);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* The same rows on a profile, where the panel is narrower and the submitter is
   already known from the header above them. */
.ufb{display:flex;flex-direction:column}
.ufbrow{display:flex;gap:11px;padding:13px 0;border-bottom:1px solid var(--line2);align-items:flex-start}
.ufbrow:last-child{border-bottom:0}
.ufbrow .fbico{width:32px;height:32px;border-radius:9px}
.ufbrow .fbico svg{width:15px;height:15px}
.ufbrow .fbcm{font-size:13.5px}
.ufbrow .fbx{min-width:0}

/* Which device family an account was last seen on. */
.platcell{display:inline-flex;align-items:center;gap:7px;white-space:nowrap;font-size:13px}
.platcell svg{width:15px;height:15px;color:var(--mut);flex:none}

/* A single explained switch: the label carries what turning it on will do. */
.checkrow2{display:flex;align-items:flex-start;gap:10px;cursor:pointer;padding:12px 14px;border-radius:12px;background:var(--panel2);border:1px solid var(--line2)}
.checkrow2:hover{border-color:rgba(201,162,39,.34)}
.checkrow2 input{margin-top:2px;flex:none;width:16px;height:16px;accent-color:var(--gold)}
.checkrow2 b{display:block;font-size:13.5px;font-weight:600;color:var(--ink)}
.checkrow2 span span{display:block;font-size:12.5px;color:var(--mut);line-height:1.55;margin-top:4px}
.pill-bad{background:var(--badSoft);color:var(--bad);border-color:var(--badLine)}
.dayrow.blocked{border-color:var(--badLine)}
.dayrow.blocked .num{background:var(--badSoft);color:var(--bad)}

/* ---- live vs draft ------------------------------------------------------
   One banner, two clearly named sides: the version users see and the
   revision being edited, with the field-level differences one click away. */
.liveband{display:flex;align-items:center;gap:12px;padding:13px 15px;border-radius:12px;background:var(--bg2);border:1px solid var(--line3);margin-bottom:18px;flex-wrap:wrap}
.liveband .lb{display:flex;align-items:center;gap:10px;min-width:0}
.liveband .lb i{width:30px;height:30px;border-radius:9px;display:flex;align-items:center;justify-content:center;flex:none}
.liveband .lb i svg{width:15px;height:15px}
.liveband .lb.l i{background:var(--okSoft);color:var(--ok)}
.liveband .lb.d i{background:var(--warnSoft);color:var(--warn)}
.liveband .lb b{display:block;font-size:13.5px}
.liveband .lb em{display:block;font-style:normal;font-size:12px;color:var(--mut);margin-top:1px}
.liveband .lbarrow{color:var(--mut);display:flex;flex:none}
.liveband .lbarrow svg{width:15px;height:15px}
.diffrow{padding:11px 0;border-bottom:1px solid var(--line2)}
.diffrow:last-of-type{border-bottom:0}
.diffrow .dfk{font-size:12px;font-weight:600;letter-spacing:.05em;text-transform:uppercase;color:var(--mut);margin-bottom:6px}
.diffrow .dfv{display:flex;align-items:baseline;gap:10px;font-size:13.5px;flex-wrap:wrap}
.diffrow .from{color:var(--mut);text-decoration:line-through;text-decoration-color:rgba(224,139,133,.55);word-break:break-word}
.diffrow .dfa{color:var(--mut);flex:none;align-self:center;display:flex}
.diffrow .dfa svg{width:13px;height:13px}
.diffrow .to{color:var(--ok);word-break:break-word}

/* Where-used rows double as navigation. */
.evrow.golink{width:100%;text-align:left;cursor:pointer;border-radius:10px;padding:10px 8px;transition:background .12s}
.evrow.golink:hover{background:var(--hover2)}
.evrow.golink>svg{width:15px;height:15px;color:var(--mut);flex:none}

/* Thumbnail picker: the bundled atmospheres, an inherit option, an upload. */
.thumbgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(86px,1fr));gap:8px}
.thopt{position:relative;aspect-ratio:3/2;border-radius:10px;overflow:hidden;border:1.5px solid var(--line2);padding:0;background:var(--bg2);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;color:var(--mut);font-size:11.5px;font-weight:600;cursor:pointer;transition:border-color .12s,color .12s}
.thopt img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.thopt:hover{border-color:var(--line3);color:var(--ink2)}
.thopt.on{border-color:var(--gold);box-shadow:0 0 0 2px rgba(201,162,39,.25)}
.thopt.on:after{content:"";position:absolute;right:5px;top:5px;width:16px;height:16px;border-radius:50%;background:var(--gold);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23141508' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7'/%3E%3C/svg%3E");background-size:10px;background-position:center;background-repeat:no-repeat}
.thopt svg{width:15px;height:15px;position:relative}
.thopt span{position:relative;line-height:1.2;text-align:center;padding:0 4px}
.thopt.none,.thopt.up{background:var(--bg2)}

.loginwrap{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px}
.logincard{width:100%;max-width:400px;text-align:center;padding:40px 34px}
.logincard h1{font-family:var(--serif);font-size:34px;font-weight:600;margin:12px 0 2px}
.logincard .ls{font-size:12px;font-weight:600;letter-spacing:.1em;color:var(--mut);text-transform:uppercase;margin-bottom:26px}
.logincard .field{text-align:left}

.spin{animation:spin 1s linear infinite}
#pvmodal .phone{margin:0 auto}

/* ---- responsive ---------------------------------------------------------
   1920 keeps three columns. At 1440 and 1366 the Day editor becomes a wide
   drawer instead of squeezing a third column into the row.                 */
@media (max-width:1599px){
  .pgrid.withday{grid-template-columns:300px minmax(0,1fr)}
  .editor.dayeditor{position:fixed;top:0;right:0;bottom:0;z-index:75;width:min(560px,94vw);max-height:none;height:100%;border-radius:0;border-right:0;border-top:0;border-bottom:0;box-shadow:var(--shadow);background:var(--panel)}
  .editor.dayeditor .panel-h{border-radius:0}
}
@media (min-width:1600px){#drawerscrim{display:none}}
@media (max-width:1380px){
  #aview{padding:26px 24px 60px}
  .pgrid{grid-template-columns:270px minmax(0,1fr)}
  .pgrid.withday{grid-template-columns:270px minmax(0,1fr)}
  .lgrid.withedit{grid-template-columns:minmax(0,1fr) 400px}
  .toolcfg{grid-template-columns:minmax(0,1fr) 400px}
}
@media (max-width:1200px){
  .lgrid.withedit{grid-template-columns:minmax(0,1fr)}
  .lgrid.withedit .ltablewrap{display:none}
  .toolcfg{grid-template-columns:minmax(0,1fr)}
  .toolcfg.editing .tlist{display:none}
  .editor{position:static;max-height:none}
  .lgrid.withedit .editor,.toolcfg.editing .editor{max-height:none}
}
@media (max-width:900px){
  #asb{position:fixed;z-index:80;left:0;top:0;bottom:0;transform:translateX(-100%);transition:transform .22s;box-shadow:var(--shadow)}
  #asb.open{transform:none}
  #atop{padding:12px 16px;border-bottom:1px solid var(--line2);background:var(--panel);backdrop-filter:blur(10px)}
  #atop .topmob{display:flex}
  #atop .tn2{font-size:15px;color:var(--mut)}
  #aview{padding:20px 16px 50px}
  .pgrid,.pgrid.withday{grid-template-columns:minmax(0,1fr)}
  .pgrid .plist{flex-direction:row;overflow-x:auto;padding-bottom:6px}
  .pgrid .pcard{min-width:230px}
  .pgrid.withday .plist,.pgrid.withday .pdetail{display:none}
  .ltablewrap{overflow-x:auto}
  table.ltable{min-width:720px}
  .editor.dayeditor{width:100vw;max-width:100vw}
  .ahead h1{font-size:27px}
}
