/* Brabo Manager Training: shared shell styles (login, invite, setup, dashboard) */
:root{
  --brand:#036F8C; --brand-deep:#02516A; --brand-ink:#0B3B4A; --brand-soft:#DCEDF3; --brand-tint:#F2F8FA; --on-brand:#FFFFFF;
  --bg:#FFFFFF; --surface:#F5F9FB; --fg:#182A32; --muted:#5A717A; --line:#D3E0E6; --line-strong:#AFC5CE;
  --ok:#1F7A4D; --ok-soft:#E2F3E9; --warn:#8F6208; --warn-soft:#FBF1D9; --bad:#B4302A; --bad-soft:#FBE7E5;
  --emp:#6A4A97; --emp-soft:#F0EAF7;
  --logo-blue:block; --logo-light:none;
  --display:'Cinzel','Trajan Pro',Georgia,'Times New Roman',serif;
  --serif:'Source Serif 4',Georgia,'Times New Roman',serif;
  --sans:'Source Sans 3','Segoe UI',Helvetica,Arial,sans-serif;
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --brand:#5FB9D3; --brand-deep:#8ED2E4; --brand-ink:#CFE7EF; --brand-soft:#16333E; --brand-tint:#10252E; --on-brand:#0B1A20;
    --bg:#0D191F; --surface:#13232B; --fg:#E4EDF1; --muted:#9FB4BC; --line:#28414B; --line-strong:#3C5A66;
    --ok:#5CC48A; --ok-soft:#153426; --warn:#E2B04A; --warn-soft:#3A2E12; --bad:#F08A82; --bad-soft:#3D1D1B;
    --emp:#BEA6E6; --emp-soft:#2A2238;
    --logo-blue:none; --logo-light:block; color-scheme:dark;
  }
}
:root[data-theme="dark"]{
  --brand:#5FB9D3; --brand-deep:#8ED2E4; --brand-ink:#CFE7EF; --brand-soft:#16333E; --brand-tint:#10252E; --on-brand:#0B1A20;
  --bg:#0D191F; --surface:#13232B; --fg:#E4EDF1; --muted:#9FB4BC; --line:#28414B; --line-strong:#3C5A66;
  --ok:#5CC48A; --ok-soft:#153426; --warn:#E2B04A; --warn-soft:#3A2E12; --bad:#F08A82; --bad-soft:#3D1D1B;
  --emp:#BEA6E6; --emp-soft:#2A2238;
  --logo-blue:none; --logo-light:block; color-scheme:dark;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;height:100%}
body{margin:0;min-height:100%;background:var(--bg);color:var(--fg);font-family:var(--sans);font-size:16px;line-height:1.5;display:flex;flex-direction:column}
[hidden]{display:none!important}
img{max-width:100%}
a{color:var(--brand)}
h1,h2,h3{text-wrap:balance;line-height:1.2;margin:0}
p{margin:0}
button{font-family:inherit}
:focus-visible{outline:3px solid var(--brand);outline-offset:2px}
.wrap{width:100%;max-width:1280px;margin:0 auto;padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px))}
.kicker{font-family:var(--display);letter-spacing:.16em;text-transform:uppercase;font-size:.72rem;color:var(--brand);font-weight:700}
.muted{color:var(--muted)}
.small{font-size:.88rem}

/* header */
.site{border-bottom:3px solid var(--brand);background:var(--bg)}
.site .wrap{display:flex;align-items:center;justify-content:space-between;gap:12px 24px;padding-block:9px;flex-wrap:wrap}
.logo{display:block;line-height:0}
.logo img{height:38px;width:auto}
.logo .light{display:var(--logo-light)}
.logo .blue{display:var(--logo-blue)}
.masthead{display:flex;flex-direction:column;gap:2px}
.masthead .title{font-family:var(--serif);font-size:1.1rem;font-weight:600;color:var(--brand-ink)}
.userbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;font-size:.92rem}
.userbar .who{display:flex;flex-direction:column;line-height:1.2;text-align:right}
.userbar .who b{font-weight:600}
.userbar .who span{font-size:.8rem;color:var(--muted)}
.badge{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:1px 9px;font-size:.8rem;font-weight:600;white-space:nowrap;background:var(--brand-soft);color:var(--brand-ink)}
.badge.ok{background:var(--ok-soft);color:var(--ok)}
.badge.warn{background:var(--warn-soft);color:var(--warn)}
.badge.bad{background:var(--bad-soft);color:var(--bad)}
.badge.neutral{background:var(--surface);color:var(--muted);border:1px solid var(--line)}

/* nav tabs */
.tabs{position:sticky;top:env(safe-area-inset-top,0px);background:var(--bg);border-bottom:1px solid var(--line);z-index:5}
.tabs .wrap{display:flex;gap:4px;flex-wrap:nowrap;padding-block:7px;align-items:center}
.tab{appearance:none;border:0;background:transparent;font-size:.95rem;font-weight:600;color:var(--muted);padding:9px 13px;border-radius:999px;cursor:pointer;line-height:1;white-space:nowrap;display:inline-flex;align-items:center;gap:6px;flex:none}
.tab:hover{background:var(--surface);color:var(--fg)}
.tab[aria-selected="true"]{background:var(--brand);color:var(--on-brand)}

main{flex:1}
main .wrap{padding-block:22px 64px;display:flex;flex-direction:column;gap:20px}
.page-head{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;flex-wrap:wrap}
.page-head h1{font-family:var(--serif);font-size:1.75rem;font-weight:700;color:var(--brand-ink);line-height:1.15}
.page-head>div:first-child{display:flex;flex-direction:column;gap:4px;min-width:0}
.page-head .lede{color:var(--muted);max-width:68ch}

/* cards */
.card{border:1px solid var(--line);border-radius:10px;padding:18px 20px;display:flex;flex-direction:column;gap:12px;background:var(--bg);min-width:0}
.card h2{font-family:var(--serif);font-size:1.25rem;color:var(--brand-ink)}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:16px}
.course{border:1px solid var(--line);border-radius:12px;padding:20px 22px;display:flex;flex-direction:column;gap:12px;background:var(--bg);min-width:0}
.course h2{font-family:var(--serif);font-size:1.3rem;color:var(--brand-ink)}
.course .sub{color:var(--muted)}
.bar{height:8px;border-radius:999px;background:var(--surface);overflow:hidden;border:1px solid var(--line)}
.bar i{display:block;height:100%;background:var(--brand);border-radius:999px}
.bar.done i{background:var(--ok)}
.parts{display:flex;gap:6px;flex-wrap:wrap}
.part{font-size:.78rem;font-weight:600;border:1px solid var(--line);border-radius:999px;padding:3px 10px;color:var(--muted);display:inline-flex;gap:6px;align-items:center}
.part.on{border-color:var(--ok);color:var(--ok);background:var(--ok-soft)}
.course .foot{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin-top:auto}

/* buttons */
.btn{appearance:none;border:1px solid var(--brand);background:var(--brand);color:var(--on-brand);font-weight:600;font-size:.95rem;padding:10px 16px;border-radius:8px;cursor:pointer;display:inline-flex;align-items:center;gap:8px;line-height:1.1;text-decoration:none}
.btn:hover{background:var(--brand-deep);border-color:var(--brand-deep)}
.btn.ghost{background:transparent;color:var(--brand)}
.btn.ghost:hover{background:var(--brand-tint)}
.btn.quiet{background:transparent;color:var(--muted);border-color:var(--line-strong)}
.btn.quiet:hover{background:var(--surface);color:var(--fg)}
.btn.danger{background:transparent;color:var(--bad);border-color:var(--bad)}
.btn.sm{padding:6px 10px;font-size:.85rem}
.btn[disabled]{opacity:.55;cursor:default}
.actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}

/* forms */
label{display:flex;flex-direction:column;gap:6px;font-size:.88rem;font-weight:600;color:var(--muted)}
input[type="text"],input[type="email"],input[type="password"],input[type="search"],select,textarea{font:inherit;font-size:1rem;color:var(--fg);background:var(--bg);border:1px solid var(--line-strong);border-radius:6px;padding:10px 12px;width:100%;max-width:100%}
textarea{min-height:90px;resize:vertical}
.field{display:flex;flex-direction:column;gap:6px}
.form{display:flex;flex-direction:column;gap:14px}
/* a session's classes: one row each, in the order they are taught */
.sf-courses{display:flex;flex-direction:column;gap:6px;align-items:stretch}
.sf-label{font-size:.88rem;font-weight:600;color:var(--muted)}
.sf-row{display:flex;gap:8px;align-items:center}
.sf-row select{flex:1;min-width:0}
.sf-row .sf-rm{flex:none}
.sf-courses .sf-addc{align-self:flex-start}
.ev-cbox{margin-top:16px;border-top:1px solid var(--line);padding-top:12px}
.ev-cbox h3{margin:0 0 4px;font-weight:700;color:var(--muted);font-size:.85rem;text-transform:uppercase;letter-spacing:.05em}
.ev-classes{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.ev-classes li{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:6px 0;border-bottom:1px solid var(--line)}
.ev-classes li:last-child{border-bottom:0}
.ev-cname{display:flex;flex-direction:column;gap:1px;min-width:0}
.ev-cname small{font-size:.78rem;color:var(--muted);font-weight:600}
.ev-cacts{display:flex;gap:6px;flex:none}
.row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.row>*{min-width:0}
.check{display:flex;align-items:center;gap:10px;font-weight:500;color:var(--fg);font-size:.98rem;flex-direction:row}
.check input{width:18px;height:18px;margin:0}
.error{color:var(--bad);font-weight:600;font-size:.92rem;min-height:1.2em}
.success{color:var(--ok);font-weight:600;font-size:.92rem}
.hint{font-size:.85rem;color:var(--muted)}
.linkbox{display:flex;gap:8px;align-items:center}
.linkbox input{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.85rem}

/* narrow pages */
.lms-narrow{flex:1;display:flex;align-items:flex-start;justify-content:center;padding:40px max(16px,env(safe-area-inset-left,0px)) 64px}
.lms-card{width:100%;max-width:440px;border:1px solid var(--line);border-radius:12px;padding:28px;display:flex;flex-direction:column;gap:16px;background:var(--bg)}
.lms-card h1{font-family:var(--serif);font-size:1.6rem;color:var(--brand-ink)}
.lms-card .logo{align-self:flex-start;margin-bottom:4px}
.lms-card .logo img{height:40px}

/* tables */
.tablewrap{overflow-x:auto;border:1px solid var(--line);border-radius:10px;position:relative}
table{border-collapse:collapse;width:100%;font-size:.92rem}
th,td{text-align:left;padding:9px 12px;border-bottom:1px solid var(--line);vertical-align:top}
th{font-weight:600;color:var(--brand-ink);background:var(--surface);white-space:nowrap;font-size:.86rem}
tr:last-child td{border-bottom:0}
td .name{font-weight:600}
td .email{font-size:.82rem;color:var(--muted)}
td.num{font-variant-numeric:tabular-nums;white-space:nowrap}
.prog{display:flex;flex-direction:column;gap:4px;min-width:140px}
.prog .bar{height:6px}
.prog span{font-size:.8rem;color:var(--muted);white-space:nowrap}
.rowlink{cursor:pointer}
.rowlink:hover td{background:var(--brand-tint)}
.toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;justify-content:space-between}
.toolbar .left,.toolbar .right{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:0;border:1px solid var(--line);border-radius:10px;background:var(--surface);overflow:hidden}
.stat{padding:11px 16px;display:flex;flex-direction:column;gap:1px;border-right:1px solid var(--line);margin-right:-1px}
.stat b{font-family:var(--serif);font-size:1.45rem;color:var(--brand-ink);font-variant-numeric:tabular-nums;line-height:1.15}
.stat span{font-size:.82rem;color:var(--muted)}

/* modal */
.modal-bg{position:fixed;inset:0;background:rgba(10,20,25,.55);display:flex;align-items:center;justify-content:center;padding:16px;z-index:20}
.modal{background:var(--bg);color:var(--fg);border-radius:12px;padding:24px;width:100%;max-width:520px;display:flex;flex-direction:column;gap:14px;border:1px solid var(--line);max-height:92vh;overflow:auto}
.modal h2{font-family:var(--serif);font-size:1.3rem;color:var(--brand-ink)}
.toast{position:fixed;left:50%;bottom:max(20px,env(safe-area-inset-bottom,0px));transform:translateX(-50%);background:var(--brand-ink);color:#fff;padding:10px 16px;border-radius:999px;font-weight:600;font-size:.92rem;z-index:30;box-shadow:0 6px 24px rgba(0,0,0,.2)}
:root[data-theme="dark"] .toast{background:var(--brand-soft);color:var(--fg)}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .toast{background:var(--brand-soft);color:var(--fg)}}
.empty{border:1px dashed var(--line-strong);border-radius:10px;padding:24px;text-align:center;color:var(--muted)}
.record{white-space:pre-wrap;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.85rem;background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:12px;line-height:1.5;overflow-x:auto}
.crumb{font-size:.9rem;color:var(--muted)}
.crumb a{text-decoration:none;font-weight:600}
.pill-list{display:flex;gap:6px;flex-wrap:wrap}

footer.site-foot{border-top:1px solid var(--line);background:var(--surface);font-size:.85rem;color:var(--muted)}
footer.site-foot .wrap{padding-block:18px 24px;display:flex;flex-direction:column;gap:6px}
footer.site-foot b{color:var(--brand-ink)}

@media (max-width:720px){
  .row{grid-template-columns:1fr}
  .userbar .who{text-align:left}
  .page-head{align-items:flex-start}
}
@media (prefers-reduced-motion: reduce){*{transition:none!important}}

/* course tracks */
.track{display:flex;flex-direction:column;gap:12px;margin-top:8px}
.track-head{display:flex;align-items:baseline;gap:12px;border-bottom:1px solid var(--line);padding-bottom:6px}
.track-head h2{font-family:var(--serif);font-size:1.3rem;color:var(--brand-ink)}
#tracks{display:flex;flex-direction:column;gap:28px}

/* classes and content release */
.card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:wrap}
.card-head>div:first-child{max-width:62ch;display:flex;flex-direction:column;gap:4px}
.card-head .field{min-width:260px}
select.inline{width:auto;max-width:100%;padding:8px 32px 8px 10px;font-size:.95rem}
select.inline.sm{padding:5px 26px 5px 8px;font-size:.85rem}
.class-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:10px}
.class-card{display:flex;flex-direction:column;gap:6px;border:1px solid var(--line);border-radius:10px;padding:12px 14px;text-decoration:none;color:var(--fg);background:var(--surface);min-width:0}
.class-card b{font-size:1.02rem;color:var(--brand-ink)}
a.class-card:hover{border-color:var(--brand);background:var(--brand-tint)}
.class-card .badge{align-self:flex-start;margin-top:2px}
.class-card.plain{border-style:dashed;background:transparent}
.empty.small{padding:14px;font-size:.92rem}
.actions.nowrap{flex-wrap:nowrap}
.lock{width:12px;height:12px;fill:currentColor;vertical-align:-1px}
.part.locked{border-style:dashed;color:var(--muted);background:transparent}
.part.locked .lock{width:11px;height:11px}
.lockline{display:flex;align-items:center;gap:6px}
.lockline .lock{width:13px;height:13px;flex:0 0 auto;fill:var(--warn)}
.course.is-locked{background:var(--surface);border-style:dashed}
.modal.wide{max-width:980px}
.rel-top{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:10px}
.rel-legend{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.rel-chip{font-size:.8rem;font-weight:600;border-radius:999px;padding:1px 9px}
.rel-chip.on,.rel-btn.on{background:var(--ok-soft);color:var(--ok);border:1px solid var(--ok)}
.rel-chip.off,.rel-btn.off{background:var(--surface);color:var(--muted);border:1px dashed var(--line-strong)}
table.rel th,table.rel td{padding:8px 10px;vertical-align:middle}
table.rel td .name{font-size:.92rem}
table.rel tr.group td{background:var(--brand-tint);color:var(--brand);font-family:var(--display);font-size:.7rem;letter-spacing:.14em;text-transform:uppercase;font-weight:700;padding:6px 10px}
.rel-btn{appearance:none;font:inherit;font-size:.82rem;font-weight:700;border-radius:999px;padding:5px 12px;cursor:pointer;position:relative;min-width:88px;line-height:1.1}
.rel-btn:hover{filter:brightness(.96)}
.rel-btn.mine::after{content:"";position:absolute;top:-3px;right:-3px;width:9px;height:9px;border-radius:50%;background:var(--brand);border:2px solid var(--bg)}
.busy{opacity:.6;pointer-events:none}
.pick{display:flex;flex-direction:column;gap:6px;max-height:48vh;overflow:auto;border:1px solid var(--line);border-radius:8px;padding:8px 10px}
.pick label{padding:6px 4px;border-bottom:1px solid var(--line)}
.pick label:last-child{border-bottom:0}
.check.small{font-size:.85rem}
.toolbar .left input[type="search"]{width:auto;flex:0 1 320px}
.actions.nowrap .btn{white-space:nowrap}

/* live lessons */
.livejoin{display:flex;align-items:center;gap:10px;flex-wrap:wrap;border:1px solid var(--ok);background:var(--ok-soft);border-radius:10px;padding:8px 12px}
.livejoin .small{flex:1;min-width:120px}
.badge.live{background:#B4302A;color:#fff;gap:6px}
.badge.live::before{content:"";width:8px;height:8px;border-radius:50%;background:#fff;animation:livedot 1.4s infinite}
@keyframes livedot{50%{opacity:.25}}
.course .foot .actions{gap:8px}
@media (prefers-reduced-motion: reduce){.badge.live::before{animation:none}}

/* session transcript */
.transcript{display:flex;flex-direction:column;gap:10px;max-height:70vh;overflow:auto;border:1px solid var(--line);border-radius:10px;padding:12px 14px;background:var(--surface)}
.tmsg{display:flex;flex-direction:column;gap:3px}
.tmsg .who{display:flex;align-items:center;gap:8px;font-size:.85rem;color:var(--muted)}
.tmsg .who b{color:var(--fg);font-weight:600}
.tmsg .when{margin-left:auto;white-space:nowrap;font-variant-numeric:tabular-nums}
.tmsg .body{background:var(--bg);border:1px solid var(--line);border-radius:8px;padding:8px 12px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.45}
.tmsg.staff .body{border-left:3px solid var(--brand)}
.tmsg.removed .body{opacity:.6;text-decoration:line-through}
.tmsg.removed .body .muted{text-decoration:none}

/* ---------- schedule ---------- */
input[type="date"],input[type="time"]{font:inherit;font-size:1rem;color:var(--fg);background:var(--bg);border:1px solid var(--line-strong);border-radius:6px;padding:9px 10px;width:100%;max-width:100%;min-height:44px}
.row3{display:grid;grid-template-columns:1.3fr 1fr 1fr;gap:12px}
.row3>*{min-width:0}
.inline-field{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.inline-field select{width:auto}
.cal-bar .left{gap:8px}
.cal-bar h2{font-family:var(--serif);font-size:1.35rem;color:var(--brand-ink);min-width:9.5em;text-align:center}
.seg{display:inline-flex;border:1px solid var(--line-strong);border-radius:8px;overflow:hidden}
.seg button{appearance:none;border:0;background:var(--bg);color:var(--muted);font-weight:600;font-size:.88rem;padding:8px 14px;cursor:pointer}
.seg button+button{border-left:1px solid var(--line-strong)}
.seg button[aria-pressed="true"]{background:var(--brand);color:var(--on-brand)}
.cal{border:1px solid var(--line);border-radius:10px;overflow:hidden;background:var(--bg)}
.cal-head{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));background:var(--surface);border-bottom:1px solid var(--line)}
.cal-head div{padding:8px 10px;font-size:.75rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.cal-body{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}
.cal-day{min-height:118px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);padding:6px;display:flex;flex-direction:column;gap:4px;min-width:0}
.cal-day:nth-child(7n){border-right:0}
.cal-day.out{background:var(--surface)}
.cal-day.out .cal-num{color:var(--line-strong)}
.cal-num{display:flex;justify-content:space-between;align-items:center;font-size:.85rem;font-weight:700;color:var(--muted);min-height:24px}
.cal-day.today .cal-num>:first-child,.cal-day.today .cal-num{color:var(--brand)}
.cal-day.today{box-shadow:inset 0 3px 0 var(--brand)}
.cal-add{appearance:none;border:0;background:transparent;color:var(--muted);font-size:1.1rem;line-height:1;width:24px;height:24px;border-radius:6px;cursor:pointer;opacity:0;transition:opacity .15s}
.cal-day:hover .cal-add,.cal-add:focus-visible{opacity:1}
.cal-add:hover{background:var(--brand-soft);color:var(--brand-ink)}
@media (hover:none){.cal-add{opacity:1}}
.cal-item{appearance:none;display:block;width:100%;text-align:left;border:0;border-left:3px solid var(--brand);background:var(--brand-soft);color:var(--brand-ink);font:inherit;font-size:.8rem;line-height:1.25;padding:4px 6px;border-radius:4px;cursor:pointer;text-decoration:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cal-item b{font-weight:700}
.cal-item:hover{filter:brightness(.97)}
.cal-item.past{opacity:.6}
.cal-item.due{border-left-color:var(--warn);background:var(--warn-soft);color:var(--warn)}
.cal-item.due.done{border-left-color:var(--ok);background:var(--ok-soft);color:var(--ok)}
.cal-item .meta{display:block;font-size:.85rem;color:var(--muted);font-weight:400;white-space:normal;margin-top:2px}
.cal-empty{margin-top:10px}
.agenda{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:10px;overflow:hidden}
.agenda-day{display:grid;grid-template-columns:76px 1fr;border-bottom:1px solid var(--line)}
.agenda-day:last-child{border-bottom:0}
.agenda-date{padding:14px 10px;display:flex;flex-direction:column;align-items:center;background:var(--surface);border-right:1px solid var(--line)}
.agenda-date b{font-family:var(--serif);font-size:1.6rem;line-height:1;color:var(--brand-ink)}
.agenda-date span{font-size:.75rem;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);font-weight:700;margin-top:4px}
.agenda-day.today .agenda-date{background:var(--brand-soft)}
.agenda-items{padding:10px 12px;display:flex;flex-direction:column;gap:8px;min-width:0}
.agenda-items .cal-item{font-size:.95rem;padding:8px 10px;white-space:normal}
.facts{display:grid;grid-template-columns:auto 1fr;gap:6px 16px;margin:4px 0 0}
.facts dt{font-weight:700;color:var(--muted);font-size:.85rem;text-transform:uppercase;letter-spacing:.05em;padding-top:2px}
.facts dd{margin:0;overflow-wrap:anywhere}
.upnext ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.upnext li{display:grid;grid-template-columns:11em 1fr;gap:12px;padding:8px 0;border-top:1px solid var(--line);align-items:baseline}
.upnext li:first-child{border-top:0}
.upnext .when{font-weight:600;color:var(--brand-ink);font-size:.92rem}
.upnext li.due .when{color:var(--warn)}
#upnext:empty{display:none}

/* ---------- assignments ---------- */
.as-list{display:flex;flex-direction:column;gap:10px}
.as-item{display:flex;justify-content:space-between;align-items:center;gap:14px;border:1px solid var(--line);border-radius:10px;padding:14px 16px;color:inherit;text-decoration:none;background:var(--bg)}
.as-item:hover{border-color:var(--brand)}
.as-item b{font-family:var(--serif);font-size:1.1rem;color:var(--brand-ink);display:block;margin:2px 0}
.as-item>div{min-width:0}
.due-over{color:var(--bad);font-weight:600}
.prose{line-height:1.6;max-width:72ch;overflow-wrap:anywhere}
.h3{font-family:var(--serif);font-size:1.05rem;color:var(--brand-ink);margin:8px 0 6px}
.files{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.files li{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:8px 10px;border:1px solid var(--line);border-radius:8px;background:var(--surface)}
.files li a{font-weight:600;overflow-wrap:anywhere;min-width:0;flex:1}
.files li.muted{background:transparent;border-style:dashed}
.dropzone{border:2px dashed var(--line-strong);border-radius:10px;padding:16px;text-align:center;display:flex;flex-direction:column;gap:4px;background:var(--brand-tint);transition:border-color .15s,background .15s}
.dropzone.over{border-color:var(--brand);background:var(--brand-soft)}
.linkish{appearance:none;border:0;background:none;padding:0;color:var(--brand);font:inherit;text-decoration:underline;cursor:pointer}
.dz-progress{display:flex;flex-direction:column;gap:6px;text-align:left}
.dz-progress:not(:empty){margin-top:8px}
.dz-row{display:grid;grid-template-columns:minmax(0,1fr) 40%;gap:10px;align-items:center;font-size:.88rem}
.dz-row .name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dz-row.failed{grid-template-columns:1fr}
.feedback{border-left:4px solid var(--ok);background:var(--ok-soft);border-radius:6px;padding:10px 14px;display:flex;flex-direction:column;gap:4px;overflow-wrap:anywhere}
.feedback.revise{border-left-color:var(--warn);background:var(--warn-soft)}
.modal .feedback{margin:6px 0}
.modal #rv-files{margin:8px 0}

@media (max-width:720px){
  .row3{grid-template-columns:1fr 1fr}
  .row3>:first-child{grid-column:1 / -1}
  .cal-day{min-height:64px;padding:4px}
  .cal-item{font-size:0;padding:0;height:6px;border-left:0;border-radius:3px}
  .cal-item b{display:none}
  .cal-head div{padding:6px 4px;text-align:center}
  .cal-bar h2{min-width:0;font-size:1.15rem}
  .upnext li{grid-template-columns:1fr;gap:2px}
  .as-item{flex-direction:column;align-items:flex-start}
  .agenda-day{grid-template-columns:60px 1fr}
}
/* every dashboard view stacks its blocks with the same rhythm */
main .wrap>section{display:flex;flex-direction:column;gap:20px;min-width:0}
main .wrap>section>.crumb{margin-bottom:-8px}
label.inline-field{flex-direction:row;align-items:center;justify-content:flex-start}

/* ---------- course builder ---------- */
.card .seg{align-self:flex-start;flex-wrap:wrap}
ol.how{margin:0;padding-left:1.3em;display:flex;flex-direction:column;gap:6px}
ol.how code,.prompts code{font-size:.85em;background:var(--surface);border:1px solid var(--line);border-radius:4px;padding:1px 6px;overflow-wrap:anywhere}
.prompts{border-top:1px solid var(--line);padding-top:12px}
.prompts ul{margin:6px 0 0;padding-left:1.2em;color:var(--muted);display:flex;flex-direction:column;gap:4px;font-size:.92rem}
.course.is-draft{border-style:dashed}
.note-box{border:1px solid var(--line);background:var(--surface);border-radius:8px;padding:12px 14px;display:flex;flex-direction:column;gap:6px}
.note-box ul{margin:0;padding-left:1.2em}
.lms-card .form select{width:100%}
.std-pick{max-height:min(52vh,460px)}
.std-group{display:flex;flex-direction:column;gap:2px;padding:6px 0}
.std-group+.std-group{border-top:1px solid var(--line)}
.std-item{padding:6px 0}
.std-item details{margin:2px 0 0 28px}
.std-item details summary{cursor:pointer;color:var(--brand)}
.std-item .prose{margin-top:6px;padding:10px 12px;background:var(--surface);border-radius:6px}

/* ---------- course editor ---------- */
.editor .editor-tabs{flex-wrap:wrap;align-self:flex-start;position:sticky;top:58px;z-index:4;background:var(--bg)}
.editor-tabs button{position:relative}
.editor-tabs .dot{display:none;width:7px;height:7px;border-radius:50%;background:var(--warn);margin-left:6px;vertical-align:middle}
.editor-tabs .unsaved .dot{display:inline-block}
.editor-panel{gap:16px}
.editor-panel h2{margin-top:2px}
.warnbox{background:var(--warn-soft);border-color:var(--warn-soft)}
.warnbox summary{cursor:pointer}
.warnbox ul{margin:8px 0 0;padding-left:1.2em;font-size:.92rem}
.savebar{position:sticky;bottom:0;background:var(--bg);padding:12px 0 4px;border-top:1px solid var(--line);margin-top:6px;z-index:3}
.note-inline{background:var(--brand-tint);border:1px solid var(--line);border-radius:8px;padding:10px 14px;font-size:.92rem}
.row3>span:empty{display:none}
.two-col{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.blk{display:flex;flex-direction:column;gap:10px}
.blk>.btn{align-self:flex-start}
.blk-card{border:1px solid var(--line);border-radius:10px;padding:14px;display:flex;flex-direction:column;gap:10px;background:var(--surface)}
.blk-card>.btn{align-self:flex-start}
.blk-top{display:flex;justify-content:space-between;align-items:center;gap:8px}
.blk-top .tools,.slide-card .tools{display:flex;gap:4px;flex-wrap:wrap}
.line{display:flex;gap:8px;align-items:center}
.line input[type="text"]{flex:1}
.line.opt input[type="radio"]{width:18px;height:18px;accent-color:var(--ok);flex:none}
.opts{display:flex;flex-direction:column;gap:6px}
.q-list{display:flex;flex-direction:column;gap:8px}
.q-row{display:grid;grid-template-columns:150px 1fr auto;gap:8px;align-items:start}
.q-row textarea{grid-column:2 / 3;min-height:70px}
.q-row select{padding:10px 8px}
input[type="number"]{font:inherit;font-size:1rem;color:var(--fg);background:var(--bg);border:1px solid var(--line-strong);border-radius:6px;padding:10px 12px;width:100%}
/* rich text */
.rte-wrap{border:1px solid var(--line-strong);border-radius:8px;background:var(--bg);display:flex;flex-direction:column;min-width:0}
.rte-bar{display:flex;flex-wrap:wrap;gap:4px;padding:6px;border-bottom:1px solid var(--line);background:var(--surface);border-radius:8px 8px 0 0;position:sticky;top:104px;z-index:2}
.rte-bar button{appearance:none;border:1px solid transparent;background:transparent;color:var(--fg);font:600 .85rem/1 var(--sans);padding:7px 9px;border-radius:6px;cursor:pointer}
.rte-bar button:hover{background:var(--brand-soft)}
.rte-bar select{width:auto;padding:5px 8px;font-size:.85rem}
.rte-bar .sep{width:1px;background:var(--line);margin:2px 4px}
.rte{padding:14px 16px;min-height:160px;outline:none;font-family:var(--serif);font-size:1.02rem;line-height:1.6;overflow-wrap:anywhere}
.rte:focus{box-shadow:inset 0 0 0 2px var(--brand-soft)}
.rte>*+*{margin-top:.7em}
.rte h2{font-size:1.35rem;color:var(--brand-ink);margin-top:1em}
.rte h3{font-size:1.1rem;color:var(--brand-ink)}
.rte ul,.rte ol{padding-left:1.4em}
.rte .note,.rte .takeaways,.rte .say,.rte details,.rte .objectives,.rte .segment,.rte .exercise,.rte .terms{border:1px solid var(--line);border-left:4px solid var(--brand);border-radius:6px;padding:10px 14px;background:var(--brand-tint)}
.rte .note.example{border-left-color:var(--ok);background:var(--ok-soft)}
.rte .note.caution{border-left-color:var(--warn);background:var(--warn-soft)}
.rte .label{display:block;font:700 .72rem/1.2 var(--sans);letter-spacing:.08em;text-transform:uppercase;color:var(--brand)}
.rte .say{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.rte .say .no{color:var(--bad)}
.rte .say .yes{color:var(--ok)}
.rte summary{font-weight:600;font-family:var(--sans)}
.rte table{font-family:var(--sans);font-size:.9rem}
/* slides */
.slide-tools{display:flex;gap:8px;flex-wrap:wrap}
.slide-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:14px}
.slide-card{border:1px solid var(--line);border-radius:10px;padding:10px;display:flex;flex-direction:column;gap:8px;background:var(--surface);min-width:0}
.slide-card .thumb{position:relative;aspect-ratio:16/9;background:#0b1a20;border-radius:6px;overflow:hidden;display:flex;align-items:center;justify-content:center}
.slide-card .thumb img{width:100%;height:100%;object-fit:contain;display:block}
.slide-card .thumb .num{position:absolute;left:6px;top:6px;background:rgba(0,0,0,.6);color:#fff;font-size:.72rem;font-weight:700;border-radius:4px;padding:1px 6px}
.text-thumb{width:100%;height:100%;padding:14px 16px;background:#F5F9FB;color:#0B3B4A;display:flex;flex-direction:column;gap:4px;overflow:hidden;font-size:.8rem}
.text-thumb.t-title,.text-thumb.t-key,.text-thumb.t-close{background:#0B3B4A;color:#E4EDF1}
.text-thumb .kind{font:700 .62rem/1 var(--sans);letter-spacing:.08em;text-transform:uppercase;opacity:.7}
.text-thumb b{font-family:var(--serif);font-size:1rem;line-height:1.2}
.text-thumb ul{margin:0;padding-left:1.1em}
.slide-card textarea{min-height:64px;font-size:.88rem}
@media (max-width:720px){
  .q-row{grid-template-columns:1fr auto}
  .q-row select{grid-column:1 / -1}
  .q-row textarea{grid-column:1 / -1}
  .two-col{grid-template-columns:1fr}
  .editor .editor-tabs{position:static}
  .rte-bar{position:static}
}

/* ---------- polls in logs and profiles ---------- */
a.plink{color:inherit;text-decoration:none;font-weight:600}
a.plink:hover{color:var(--brand);text-decoration:underline}
.sp-poll{border-top:1px solid var(--line);padding:14px 0;display:flex;flex-direction:column;gap:10px}
.sp-poll:first-child{border-top:0;padding-top:4px}
.sp-head{display:flex;flex-direction:column;gap:2px}
.sp-bars{display:flex;flex-direction:column;gap:6px;max-width:620px}
.sp-bar{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr) 2.5em;gap:10px;align-items:center;font-size:.92rem}
.sp-bar b{text-align:right;font-variant-numeric:tabular-nums}
.pp-group{border-top:1px solid var(--line);padding:12px 0;display:flex;flex-direction:column;gap:6px}
.pp-group:first-child{border-top:0;padding-top:0}
.pp-head{display:flex;flex-wrap:wrap;gap:4px 12px;align-items:baseline}
.pp-head a{text-decoration:none}
.pp-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;padding:6px 10px;background:var(--surface);border-radius:6px;font-size:.93rem}
.pp-row .q{color:var(--muted)}
.pp-row .a{font-weight:600;overflow-wrap:anywhere}
@media (max-width:720px){.pp-row{grid-template-columns:1fr;gap:2px}}

/* Working in switcher, scope chip, Sign in as */
.scope-switch{display:flex;flex-direction:column;gap:2px;font-size:.75rem;color:var(--muted);font-weight:600;text-transform:uppercase;letter-spacing:.04em}
.scope-switch select{font:inherit;font-size:.9rem;text-transform:none;letter-spacing:0;font-weight:600;color:var(--fg);background:var(--brand-tint);border:1px solid var(--line-strong);border-radius:8px;padding:6px 28px 6px 10px;max-width:240px}
.scope-chip{display:inline-flex;align-items:center;font-size:.82rem;font-weight:600;color:var(--brand-ink);background:var(--brand-soft);border-radius:999px;padding:4px 12px;white-space:nowrap}
.sa-pick{max-height:340px;overflow:auto;border:1px solid var(--line);border-radius:8px}
.sa-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 12px;border-bottom:1px solid var(--line)}
.sa-row:last-child{border-bottom:0}
.sa-row > span{min-width:0;overflow-wrap:anywhere}

/* Polls page */
.poll-admin{display:grid;grid-template-columns:280px 1fr;gap:24px;align-items:start}
.pa-courses{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:10px;padding:8px;position:sticky;top:12px;max-height:calc(100vh - 40px);overflow:auto}
.pa-courses .pa-pick{display:none}
.pa-track{font-size:.75rem;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);padding:10px 8px 4px}
.pa-courses a{display:flex;justify-content:space-between;gap:8px;padding:7px 8px;border-radius:6px;color:var(--fg);text-decoration:none;font-size:.92rem}
.pa-courses a:hover{background:var(--surface)}
.pa-courses a.on{background:var(--brand-soft);color:var(--brand-ink);font-weight:600}
.pa-n{font-variant-numeric:tabular-nums;color:var(--muted);font-size:.85rem}
.pa-main{display:flex;flex-direction:column;gap:16px;min-width:0}
.pa-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.pa-head h2{font-family:var(--serif);font-size:1.4rem;color:var(--brand-ink)}
.pa-sec-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap}
.pa-sec h3{font-size:1.05rem}
.pa-list{list-style:none;margin:0;padding:0}
.pa-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 0;border-top:1px solid var(--line)}
.pa-q{min-width:0;overflow-wrap:anywhere}
.pa-meta{margin-top:2px}
.pa-acts{display:flex;gap:4px;flex-shrink:0;flex-wrap:wrap;justify-content:flex-end}
@media (max-width:820px){
  .poll-admin{grid-template-columns:1fr}
  .pa-courses{position:static;max-height:none;border:0;padding:0}
  .pa-courses a,.pa-courses .pa-track{display:none}
  .pa-courses .pa-pick{display:flex}
  .pa-row{flex-direction:column;align-items:stretch}
  .pa-acts{justify-content:flex-start}
  .scope-switch select{max-width:180px}
}

/* Academy > Course > Class */
.track-head h3{font-family:var(--serif);font-size:1.25rem;color:var(--brand-ink)}

/* catalog manager */
.cat-ac{border:1px solid var(--line);border-radius:12px;padding:18px 20px;display:flex;flex-direction:column;gap:14px;background:var(--bg)}
.cat-ac + .cat-ac{margin-top:18px}
.cat-ac.brabo{background:var(--brand-tint)}
.cat-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap}
.cat-head h2{font-family:var(--serif);font-size:1.45rem;color:var(--brand-ink)}
.cat-head h3{font-size:1.08rem}
.cat-tools{display:flex;gap:4px;flex-wrap:wrap}
.cat-course{border:1px solid var(--line);border-radius:10px;padding:12px 14px;background:var(--bg);display:flex;flex-direction:column;gap:8px}
.cat-classes{list-style:none;margin:0;padding:0}
.cat-classes li{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:8px 0;border-top:1px solid var(--line)}
.cat-classes li:first-child{border-top:0}
.cat-classes .nm{min-width:0;overflow-wrap:anywhere}
.cat-classes .mv{display:flex;gap:4px;align-items:center;flex-shrink:0}
.cat-classes select{max-width:200px;font-size:.85rem;padding:4px 6px}
.owner-tag{font-size:.72rem;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:var(--muted)}
@media (max-width:720px){.cat-classes li{flex-direction:column;align-items:stretch}.cat-classes select{max-width:none;flex:1}}

/* messages */
.tab-badge{display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;padding:0 5px;margin-left:6px;border-radius:999px;background:#C2410C;color:#fff;font-size:.72rem;font-weight:700;line-height:1;vertical-align:1px}
.tab-badge[hidden]{display:none}
.msg{display:grid;grid-template-columns:280px 1fr;gap:0;border:1px solid var(--line);border-radius:12px;overflow:hidden;height:calc(100vh - 260px);min-height:440px;background:var(--bg)}
.msg-list{border-right:1px solid var(--line);overflow:auto;padding:8px;display:flex;flex-direction:column;background:var(--surface)}
.ml-head{display:flex;justify-content:space-between;align-items:center;font-size:.75rem;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);padding:12px 8px 4px}
.ml-head .btn{text-transform:none;letter-spacing:0}
.msg-list a{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:8px;border-radius:8px;color:var(--fg);text-decoration:none}
.msg-list a:hover{background:var(--bg)}
.msg-list a.on{background:var(--brand-soft);color:var(--brand-ink)}
.ml-name{display:flex;flex-direction:column;min-width:0;font-weight:600;font-size:.94rem;overflow-wrap:anywhere}
.ml-name .muted{font-weight:400}
.hash{color:var(--muted);font-weight:700}
.ml-none{padding:4px 8px}
.msg-main{display:flex;flex-direction:column;min-width:0;min-height:0}
.msg-main > .empty,.msg-main > p{margin:24px}
.mc-head{display:flex;align-items:center;gap:12px;padding:12px 18px;border-bottom:1px solid var(--line)}
.mc-head h2{font-size:1.1rem}
.mc-back{display:none}
.mc-log{flex:1;overflow:auto;padding:16px 18px;display:flex;flex-direction:column;gap:12px}
.mm{max-width:78%;display:flex;flex-direction:column;gap:3px;align-self:flex-start}
.mm.mine{align-self:flex-end;align-items:flex-end}
.mm-meta{display:flex;gap:8px;align-items:baseline;font-size:.85rem}
.mm-body{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:8px 12px;overflow-wrap:anywhere;line-height:1.45}
.mm.mine .mm-body{background:var(--brand-soft);border-color:transparent}
.mm.gone .mm-body{font-style:italic;color:var(--muted);background:transparent}
.mm-del{opacity:0;transition:opacity .15s}
.mm:hover .mm-del,.mm-del:focus{opacity:1}
.mc-form{display:flex;gap:10px;align-items:flex-end;padding:12px 18px 4px;border-top:1px solid var(--line)}
.mc-form textarea{flex:1;resize:vertical;min-height:44px;max-height:200px}
.mc-hint{padding:0 18px 10px}
@media (max-width:720px){
  .msg{grid-template-columns:1fr;height:calc(100vh - 220px)}
  .msg .msg-main{display:none}
  .msg.has-conv .msg-list{display:none}
  .msg.has-conv .msg-main{display:flex}
  .mc-back{display:inline-flex}
  .mm{max-width:92%}
  .mm-del{opacity:1}
  .mc-hint{display:none}
}

/* course tests */
.track-head .th-test{margin-left:auto}
.test-form{display:flex;flex-direction:column;gap:14px;margin-top:8px}
.tq{border:1px solid var(--line);border-radius:10px;padding:14px 16px;display:flex;flex-direction:column;gap:8px;min-width:0}
.tq legend{display:flex;flex-direction:column;gap:2px;padding:0 4px}
.tq-opts{display:flex;flex-direction:column;gap:6px}
.tq.right{border-color:#2F855A}
.tq.wrong{border-color:#C2410C}
.tq label.is-answer span{font-weight:700}
.tq-why{font-size:.92rem;color:var(--fg);background:var(--surface);border-radius:8px;padding:8px 10px}
.result.pass{border-color:#2F855A}
.result.fail{border-color:#C2410C}
.te-q{border-top:1px solid var(--line);padding:14px 0;display:flex;flex-direction:column;gap:8px}
.te-q:first-child{border-top:0}
.te-q-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.te-tools{margin-left:auto;display:flex;gap:4px}
.te-opts{display:flex;flex-direction:column;gap:6px}
.te-opt{display:flex;align-items:center;gap:8px}
.te-opt input[type="text"]{flex:1;min-width:0}
.grade{font-variant-numeric:tabular-nums}
@media (max-width:720px){.track-head{flex-wrap:wrap}.track-head .th-test{margin-left:0;width:100%}}

/* ---------- Growth: goals, 1:1s, reviews ---------- */
.gw{display:flex;flex-direction:column;gap:18px}
.gw-cards .gw-card{text-decoration:none;color:inherit;gap:8px}
.gw-card h2{font-size:1.15rem}
.gw-card:hover{border-color:var(--brand)}
.gw-card .btn{align-self:flex-start;margin-top:auto}
.gw-attn ul{margin:6px 0 0;padding-left:20px;display:flex;flex-direction:column;gap:4px}
.gw-pages{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}
.gw-pages a,.gw-pages>span{display:flex;gap:8px;align-items:center;border:1px solid var(--line);border-radius:10px;padding:8px 10px;text-decoration:none;color:var(--fg);background:var(--bg);min-width:0}
.gw-pages a.on{border-color:var(--brand);background:var(--brand-tint)}
.gw-pages>span.off{opacity:.6}
.gw-pages a>span:not(.gw-pn),.gw-pages>span>span:not(.gw-pn){display:flex;flex-direction:column;min-width:0}
.gw-pages b{font-size:.92rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gw-pages small{color:var(--muted);font-size:.75rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gw-pn{font-family:var(--display);font-size:.8rem;color:var(--brand);flex:none;width:18px}
.gw-sheet{border:1px solid var(--line);border-radius:12px;background:var(--bg);overflow:hidden}
.gw-sheet-head{padding:22px 24px 12px;display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;border-bottom:1px solid var(--line);background:var(--surface)}
.gw-sheet-head>div:first-child{display:flex;flex-direction:column;gap:4px;max-width:72ch}
.gw-sheet-head h2{font-family:var(--serif);font-size:1.6rem;color:var(--brand-ink)}
.gw-intro{max-width:70ch}
.gw-stages{display:flex;gap:14px;margin:2px 0 4px;font-family:var(--display);letter-spacing:.12em;text-transform:uppercase;font-size:.72rem;color:var(--muted)}
.gw-stages .on{color:var(--brand);border-bottom:2px solid var(--brand)}
.gw-share-box{align-self:flex-start;max-width:380px}
.gw-share{background:var(--bg);border:1px solid var(--line);border-radius:10px;padding:10px 12px;align-items:flex-start}
.gw-share input{margin-top:3px;flex:none}
.gw-private{background:var(--warn-soft);color:var(--fg);border-radius:10px;padding:10px 12px;font-size:.9rem}
.gw-blocks{padding:18px 24px 22px;display:flex;flex-direction:column;gap:18px}
.gw-blocks>.btn,.gw-blocks>.actions{align-self:flex-start}
.gw-heading{display:flex;flex-direction:column;gap:4px}
.gw-heading h2{font-family:var(--serif);font-size:1.2rem;color:var(--brand-ink)}
.gw-field{display:flex;gap:14px}
.gw-n{font-family:var(--display);color:var(--brand);font-size:.95rem;flex:none;width:30px;padding-top:2px}
.gw-body{flex:1;display:flex;flex-direction:column;gap:6px;min-width:0}
.gw-body label,.gw-step label,.gw-trio label,.gw-dev label{font-size:1rem;color:var(--fg);gap:2px}
.gw-body label b{font-weight:700}
.gw-prompt{color:var(--muted)}
.gw-field.big textarea{min-height:110px}
.gw-ro{border:1px solid var(--line);border-radius:8px;padding:10px 12px;background:var(--surface);min-height:42px}
.gw-step{display:grid;grid-template-columns:2fr 1fr;gap:14px}
.gw-step>div{display:flex;flex-direction:column;gap:6px}
.gw-trio{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.gw-trio>div{display:flex;flex-direction:column;gap:6px}
.gw-table th,.gw-table td{vertical-align:top}
.gw-table textarea{min-height:52px}
.gw-rowlabel{min-width:160px}
.gw-money input{width:120px;text-align:right}
.gw-dollar{display:flex;align-items:center;gap:4px;justify-content:flex-end}
.gw-total td{border-top:2px solid var(--line-strong)}
.gw-pos{color:var(--ok)} .gw-neg{color:var(--bad)}
.gw-footer{font-family:var(--display);letter-spacing:.14em;text-transform:uppercase;font-size:.72rem;color:var(--muted);text-align:center;padding-top:10px;border-top:1px solid var(--line)}
.gw-foot{display:flex;justify-content:space-between;align-items:center;gap:10px}
.gw-radio{display:flex;gap:16px;align-items:center;flex-wrap:wrap}
.gw-thread{display:flex;flex-direction:column;gap:10px}
.gw-note{border-left:3px solid var(--line-strong);padding:4px 12px;display:flex;flex-direction:column;gap:4px}
.gw-note.mine{border-color:var(--brand)}
.gw-add{display:flex;gap:8px;align-items:flex-start}
.gw-add textarea,.gw-add input[type=text]{flex:1}
.gw-jadd{flex-wrap:wrap} .gw-jadd select{width:auto} .gw-jadd textarea{flex:1 1 320px}
.gw-cadd{flex-wrap:wrap} .gw-cadd select,.gw-cadd input[type=date]{width:auto} .gw-cadd input[type=text]{flex:1 1 240px;min-width:0}
.gw-list{margin:0;padding-left:20px}
.gw-actions{display:flex;flex-direction:column;gap:6px}
.gw-action{display:flex;flex-direction:row;gap:10px;align-items:flex-start;padding:8px 10px;border:1px solid var(--line);border-radius:8px;font-size:1rem;font-weight:400;color:var(--fg)}
.gw-action input{margin-top:4px;flex:none}
.gw-action>span{flex:1}
.gw-action.done>span{text-decoration:line-through;color:var(--muted)}
.gw-owner{font-weight:700;color:var(--brand-ink)}
/* an item or a commitment, with who ticked it off and the notes kept on it */
.gw-entry{display:flex;flex-direction:column;gap:6px;padding:8px 10px;border:1px solid var(--line);border-radius:8px}
.gw-row{display:flex;gap:8px;align-items:flex-start}
.gw-row>.gw-action{flex:1;min-width:0;border:0;padding:0;border-radius:0}
.gw-row>.gw-action>input[type=checkbox]{width:18px;height:18px;margin:3px 0 0;accent-color:var(--brand)}
.gw-row>.btn{flex:none}
/* lined up with the item's words: an 18px box and the row's 10px gap */
.gw-entry>.gw-doneby,.gw-entry>.gw-inotes,.gw-entry>.gw-noteadd{margin-left:28px}
.gw-inotes{display:flex;flex-direction:column;gap:6px}
.gw-inotes .gw-note{padding:2px 10px;gap:2px}
.gw-inotes .gw-note>div:last-child{overflow-wrap:anywhere}
.gw-inotes>.linkish{align-self:flex-start}
.gw-noteadd{flex-wrap:wrap}
/* who wrote it: the employee's side in its own color, the manager's in the brand's */
.gw-role{display:inline-block;margin-left:6px;padding:0 7px;border-radius:999px;font-size:.72rem;font-weight:700;line-height:1.6;vertical-align:1px;color:var(--muted);background:var(--surface);border:1px solid var(--line)}
.gw-role.employee{color:var(--emp);background:var(--emp-soft);border-color:transparent}
.gw-role.manager{color:var(--brand-deep);background:var(--brand-soft);border-color:transparent}
.gw-inotes .gw-note.r-employee{border-color:var(--emp)}
.gw-inotes .gw-note.r-manager{border-color:var(--brand)}
.gw-inotes .gw-note.r-other{border-color:var(--line-strong)}
/* a 1:1's notes: the employee's and the manager's, side by side */
.gw-notes2{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.gw-nside{display:flex;flex-direction:column;gap:6px;padding-left:12px;border-left:3px solid var(--line-strong)}
.gw-nside.employee{border-left-color:var(--emp)}
.gw-nside.manager{border-left-color:var(--brand)}
.gw-nhead{display:flex;align-items:center;flex-wrap:wrap}
.gw-nside .gw-ro{min-height:124px;white-space:normal;overflow-wrap:anywhere}
.gw-nmeta:empty{display:none}
.gw-oldnotes{display:flex;flex-direction:column;gap:6px;margin-top:14px}
.gw-next{display:flex;flex-direction:column;gap:6px;margin-top:14px}
.gw-next label{font-size:1rem;color:var(--fg);gap:2px}
.gw-next label .muted{font-weight:400}
.gw-nhead label{font-size:1rem;color:var(--fg)}
/* the date and time a 1:1 is set for, in a form */
.form input[type="datetime-local"]{font:inherit;font-size:1rem;color:var(--fg);background:var(--bg);border:1px solid var(--line-strong);border-radius:6px;padding:9px 10px;width:100%;max-width:100%;min-height:44px}
@media (max-width:760px){.gw-notes2{grid-template-columns:1fr}}
/* scheduling 1:1s for several people */
.dp-who{border:1px solid var(--line);border-radius:8px;padding:10px 14px 12px;margin:0;display:flex;flex-direction:column;gap:8px}
.dp-who legend{font-weight:700;padding:0 4px}
.dp-opt,.dp-person{flex-direction:row;font-size:1rem;font-weight:400;color:var(--fg);text-align:left}
.dp-opt{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.dp-opt input,.dp-person input{width:auto}
.dp-opt select{width:auto;max-width:100%}
.dp-people{display:flex;flex-direction:column;gap:6px;margin-left:24px}
.dp-people[hidden]{display:none}
.dp-list{max-height:260px;overflow:auto;border:1px solid var(--line);border-radius:8px;padding:4px 8px;display:flex;flex-direction:column}
.dp-person{display:flex;gap:8px;align-items:flex-start;padding:6px 2px;border-bottom:1px solid var(--line);font-weight:400}
.dp-person:last-child{border-bottom:0}
.dp-person input{margin-top:4px;flex:none}
.dp-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.dp-result{margin:6px 0 12px;padding-left:20px;display:flex;flex-direction:column;gap:4px}
@media (max-width:600px){.dp-row{grid-template-columns:1fr}.dp-people{margin-left:0}}
.gw-noteadd input[type=text]{padding:7px 10px;flex:1 1 220px;min-width:0}
.gw-move .kicker{margin-bottom:2px}
.gw-qs{display:flex;flex-direction:column;gap:14px}
.gw-quote{border-left:3px solid var(--brand);background:var(--brand-tint);padding:10px 14px;border-radius:0 8px 8px 0;display:flex;flex-direction:column;gap:4px}
.gw-quote ul{margin:0;padding-left:18px}
.gw-agenda{width:100%;border-collapse:collapse;margin:8px 0}
.gw-agenda td{padding:8px 10px;border-bottom:1px solid var(--line);vertical-align:top}
.gw-guide summary{cursor:pointer;display:flex;gap:12px;align-items:baseline;flex-wrap:wrap;list-style:none}
.gw-guide summary::-webkit-details-marker{display:none}
.gw-guide summary h2{font-size:1.15rem}
.gw-guide[open] summary{margin-bottom:10px}
.gw-moves{margin:8px 0;padding-left:20px;display:flex;flex-direction:column;gap:8px}
.gw-subtabs{display:flex;gap:6px;border-bottom:1px solid var(--line)}
.gw-subtabs a{padding:8px 14px;text-decoration:none;color:var(--muted);font-weight:600;border-bottom:3px solid transparent;margin-bottom:-1px}
.gw-subtabs a.on{color:var(--brand-ink);border-color:var(--brand)}
.gw-steps{display:flex;gap:6px;flex-wrap:wrap}
.gw-steps span{font-size:.85rem;padding:4px 10px;border-radius:999px;border:1px solid var(--line);color:var(--muted)}
.gw-steps span.done{background:var(--ok-soft);color:var(--ok);border-color:transparent}
.gw-steps span.on{background:var(--brand);color:var(--on-brand);border-color:var(--brand)}
.gw-listrow{display:flex;gap:8px;align-items:flex-start;margin-bottom:8px}
.gw-listrow textarea{flex:1}
.gw-gaprow{border:1px solid var(--line);border-radius:10px;padding:10px;margin-bottom:8px;display:flex;flex-direction:column;gap:8px;align-items:flex-start}
.gw-gaprow .gw-trio{width:100%}
.gw-goalrow{display:grid;grid-template-columns:2fr 1.5fr auto auto;gap:8px;margin-bottom:8px;align-items:center}
.gw-ratings select{width:auto}
.gw-big{font-family:var(--serif);font-size:1.4rem;color:var(--brand-ink)}
.gw-checklist{display:flex;flex-direction:column;gap:8px}
.gw-checklist .check{align-items:flex-start} .gw-checklist .check input{margin-top:3px;flex:none}
.growth-toggles{display:flex;flex-direction:column;gap:10px}
.growth-toggles .check{align-items:flex-start} .growth-toggles .check input{margin-top:4px;flex:none} .growth-toggles .check>span{display:flex;flex-direction:column}
.growth-card{gap:14px}
@media (max-width:900px){.gw-pages{grid-template-columns:repeat(4,minmax(0,1fr))}.gw-step,.gw-trio{grid-template-columns:1fr}.gw-goalrow{grid-template-columns:1fr 1fr}.gw-sheet-head,.gw-blocks{padding-left:14px;padding-right:14px}}
@media (max-width:600px){.gw-pages{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* printing a plan or a review */
.gw-print{display:none}
@media print{
  body.gw-printing>*:not(.gw-print){display:none!important}
  .gw-print{display:block;color:#000}
  .gw-print-page{page-break-after:always;border:0;margin-bottom:24px}
  .gw-print-head{margin-bottom:18px}
  .gw-print-foot{font-size:.7rem;letter-spacing:.14em;text-transform:uppercase;color:#666;padding:10px 24px;border-top:1px solid #ccc}
  header.site,nav.tabs,footer.site-foot,.crumb,.page-head .actions,.gw-subtabs,#lms-toast,.gw-add,.gw-foot{display:none!important}
}

/* ================= dashboard refresh: navigation, tables built for big lists, menus, sub-pages, academies ================= */
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
/* header */
.site .masthead{padding-left:20px;border-left:1px solid var(--line);margin-right:auto}
.site .masthead .kicker{font-size:.66rem}
.userbar .who b{font-size:.95rem}
.userbar .scope-switch{display:flex;flex-direction:column;gap:2px;font-size:.8rem;font-weight:600;color:var(--muted);text-transform:none;letter-spacing:0}
.userbar .scope-switch select{padding:6px 30px 6px 10px;font-size:.9rem;min-width:220px;background-color:var(--surface)}
/* navigation: tabs that do not fit move under More */
.tabrow{display:flex;gap:2px;flex:1 1 auto;min-width:0;overflow:hidden;align-items:center}
.tabmore{flex:none}
.tab[aria-selected="true"] .tab-badge{background:var(--on-brand);color:var(--brand)}
.more-btn .dot{width:7px;height:7px;border-radius:50%;background:var(--bad);display:inline-block}
.more-btn .chev-s{width:9px;height:9px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg) translateY(-2px);display:inline-block}
.more-btn.has-active{background:var(--brand-soft);color:var(--brand-ink)}
/* breadcrumbs */
.crumbs{display:flex;flex-wrap:wrap;gap:6px;align-items:center;font-size:.9rem;color:var(--muted)}
.crumbs a{text-decoration:none;font-weight:600}
.crumbs a:hover{text-decoration:underline}
.crumbs .sep{color:var(--line-strong)}
.page-head .meta{display:flex;flex-wrap:wrap;gap:6px 14px;color:var(--muted);font-size:.95rem;align-items:center}
/* sub-pages of one client */
.subtabs{display:flex;gap:4px;border-bottom:1px solid var(--line);overflow-x:auto;scrollbar-width:none}
.subtabs::-webkit-scrollbar{display:none}
.subtabs a{padding:9px 14px;text-decoration:none;color:var(--muted);font-weight:600;border-bottom:3px solid transparent;margin-bottom:-1px;white-space:nowrap;display:inline-flex;gap:8px;align-items:center}
.subtabs a:hover{color:var(--fg)}
.subtabs a.on{color:var(--brand-ink);border-color:var(--brand)}
.subtabs .count{font-size:.78rem;font-weight:600;color:var(--muted);background:var(--surface);border:1px solid var(--line);border-radius:999px;padding:0 7px;font-variant-numeric:tabular-nums}
/* filters above a table */
.filters{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.filters input[type="search"]{flex:1 1 260px;max-width:340px;padding:8px 12px}
.filters select{width:auto;max-width:220px;padding:7px 30px 7px 10px;font-size:.92rem}
.filters .spacer{flex:1}
.filters .check{font-size:.9rem;font-weight:500;gap:8px}
.filters .check input{width:16px;height:16px}
.tablebar{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;min-height:30px}
.tablebar .right{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.filter-note{font-size:.88rem;color:var(--muted)}
.filter-note button{appearance:none;border:0;background:none;color:var(--brand);font-weight:600;cursor:pointer;padding:0;font-size:inherit}
/* tables: sortable headers, sticky header and first column, row menus */
th.first,td.first{position:sticky;left:0;z-index:1;background:var(--bg)}
th.first{z-index:3;background:var(--surface)}
tbody tr:hover td{background:var(--surface)}
.rowlink:hover td,tr.rowlink:hover td.first{background:var(--brand-tint)}
tr.picked td,tr.picked td.first{background:var(--brand-tint)}
.tablewrap table{min-width:100%}
th.sortable{padding:0}
.th-sort{appearance:none;border:0;background:transparent;font:inherit;color:inherit;font-weight:600;padding:9px 12px;width:100%;text-align:left;cursor:pointer;display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.th-sort:hover{color:var(--brand)}
.th-sort .arr{width:0;height:0;border-left:4px solid transparent;border-right:4px solid transparent;border-top:5px solid var(--line-strong);opacity:.0;transition:opacity .12s}
.th-sort:hover .arr{opacity:1}
th[aria-sort="ascending"] .arr{opacity:1;border-top:0;border-bottom:5px solid var(--brand)}
th[aria-sort="descending"] .arr{opacity:1;border-top-color:var(--brand)}
th[aria-sort="ascending"],th[aria-sort="descending"]{color:var(--brand)}
td.num .th-sort,th.num .th-sort{justify-content:flex-start}
th.sel,td.sel{width:36px;padding-right:0}
th.sel input,td.sel input{width:16px;height:16px;margin:2px 0 0}
td .title-line{font-size:.82rem;color:var(--fg);opacity:.8}
td .sub-line{font-size:.8rem;color:var(--muted)}
td .who-name{font-weight:600;text-decoration:none;color:var(--brand-ink)}
td a.who-name:hover{text-decoration:underline;color:var(--brand)}
.empty-row{text-align:center;padding:22px 12px!important}
.rowmenu{appearance:none;border:1px solid transparent;background:transparent;border-radius:8px;width:32px;height:30px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;color:var(--muted)}
.rowmenu:hover,.rowmenu[aria-expanded="true"]{border-color:var(--line-strong);background:var(--surface);color:var(--fg)}
.rowmenu svg{width:16px;height:16px;fill:currentColor}
td.act{width:44px;text-align:right;padding-block:6px}
.mini{display:flex;flex-direction:column;gap:4px;min-width:120px}
.mini .bar{height:6px}
.mini span{font-size:.8rem;color:var(--muted);white-space:nowrap;font-variant-numeric:tabular-nums}
.pager{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;padding:2px 2px 0}
.pager-ctl{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.pager .pp{flex-direction:row;align-items:center;gap:6px;font-weight:500}
/* a selection bar for bulk changes */
.bulkbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;background:var(--brand-ink);color:#fff;border-radius:10px;padding:8px 10px 8px 14px;position:sticky;bottom:12px;z-index:6;box-shadow:0 8px 24px rgba(11,59,74,.25)}
.bulkbar b{font-weight:600;margin-right:6px}
.bulkbar .btn{background:transparent;color:#fff;border-color:rgba(255,255,255,.45)}
.bulkbar .btn:hover{background:rgba(255,255,255,.12)}
:root[data-theme="dark"] .bulkbar{background:var(--brand-soft);color:var(--fg)}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .bulkbar{background:var(--brand-soft);color:var(--fg)}:root:not([data-theme="light"]) .bulkbar .btn{color:var(--fg);border-color:var(--line-strong)}}
/* popup menus (row actions, More) */
.menu{position:fixed;z-index:40;min-width:200px;max-width:280px;background:var(--bg);border:1px solid var(--line-strong);border-radius:10px;padding:5px;display:flex;flex-direction:column;box-shadow:0 12px 32px rgba(10,30,40,.18)}
.menu button,.menu a{appearance:none;border:0;background:transparent;text-align:left;font:inherit;font-size:.93rem;color:var(--fg);padding:8px 10px;border-radius:6px;cursor:pointer;text-decoration:none;display:flex;gap:8px;align-items:center}
.menu button:hover,.menu button:focus-visible,.menu a:hover,.menu a:focus-visible{background:var(--brand-tint);outline:none}
.menu .danger{color:var(--bad)}
.menu hr{border:0;border-top:1px solid var(--line);margin:4px 2px}
.menu .menu-label{font-size:.8rem;color:var(--muted);padding:6px 10px 2px}
/* segmented choice */
.seg-choice{display:inline-flex;border:1px solid var(--line-strong);border-radius:999px;padding:3px;gap:2px;background:var(--surface)}
.seg-choice button{appearance:none;border:0;background:transparent;border-radius:999px;padding:6px 14px;font:inherit;font-size:.9rem;font-weight:600;color:var(--muted);cursor:pointer}
.seg-choice button[aria-pressed="true"]{background:var(--bg);color:var(--brand-ink);box-shadow:0 1px 2px rgba(0,0,0,.12)}
/* academies: each one opens and closes */
#tracks{gap:14px}
.academy{border:1px solid var(--line);border-radius:12px;background:var(--bg);overflow:hidden}
.academy-head{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:6px 18px;padding:14px 18px;background:var(--surface)}
.academy:not(.closed) .academy-head{border-bottom:1px solid var(--line)}
.academy-head h2{margin:0;grid-column:1 / 3}
.acc-btn{appearance:none;border:0;background:transparent;padding:0;cursor:pointer;display:inline-flex;align-items:center;gap:14px;color:var(--brand-ink);text-align:left;font:inherit}
.acc-btn .acc-name{font-family:var(--display);font-size:1.18rem;letter-spacing:.07em;font-weight:700}
.acc-btn:hover .acc-name{color:var(--brand)}
.acc-btn .chev{width:26px;height:26px;border-radius:50%;border:1px solid var(--line-strong);display:inline-flex;align-items:center;justify-content:center;flex:none;background:var(--bg)}
.acc-btn .chev::before{content:"";width:7px;height:7px;border-right:2px solid var(--brand);border-bottom:2px solid var(--brand);transform:rotate(45deg) translate(-1px,-1px);transition:transform .18s ease}
.academy.closed .acc-btn .chev::before{transform:rotate(-45deg) translate(-1px,-1px)}
.acc-meta{grid-column:1 / 3;color:var(--muted);font-size:.9rem;padding-left:40px}
.acc-prog{grid-column:3;grid-row:1 / 3;display:flex;flex-direction:column;align-items:flex-end;gap:5px;min-width:180px}
.acc-prog .bar{width:180px;height:7px}
.acc-prog span{font-size:.85rem;color:var(--muted);font-variant-numeric:tabular-nums}
.academy-body{padding:6px 18px 20px;display:flex;flex-direction:column;gap:18px}
.acc-tools{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.linkbtn{appearance:none;border:0;background:none;color:var(--brand);font-weight:600;cursor:pointer;padding:2px 4px;font-size:.92rem}
.linkbtn:hover{text-decoration:underline}
.track{margin-top:10px}
.track-head{gap:12px;align-items:baseline;flex-wrap:wrap}
.track-head h3{font-family:var(--serif);font-size:1.15rem;color:var(--brand-ink)}
.course .kicker{font-family:var(--sans);letter-spacing:.02em;text-transform:none;font-size:.82rem;font-weight:600;color:var(--brand)}
/* people: role column for Brabo administrators who work at a company */
.role-line{display:flex;flex-direction:column;gap:1px}
.role-line .brabo{font-size:.78rem;color:var(--brand);font-weight:600}
/* person details */
.facts.pfacts{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:0;border:1px solid var(--line);border-radius:10px;overflow:hidden}
.facts.pfacts>div{padding:10px 14px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);margin:0 -1px -1px 0;display:flex;flex-direction:column;gap:2px;min-width:0}
.facts.pfacts dt{font-size:.8rem;color:var(--muted);font-weight:600}
.facts.pfacts dd{margin:0;font-weight:600;color:var(--fg);overflow-wrap:anywhere}
.mode-pick{display:flex;gap:8px;flex-wrap:wrap}
.mode-pick label{flex-direction:row;align-items:center;gap:8px;border:1px solid var(--line-strong);border-radius:8px;padding:8px 12px;font-weight:600;color:var(--fg);cursor:pointer}
.mode-pick label:has(input:checked){border-color:var(--brand);background:var(--brand-tint)}
.mode-pick input{width:16px;height:16px;margin:0}
@media (max-width:900px){
  .site .masthead{display:none}
  .userbar .who span{display:none}
  .userbar .scope-switch select{min-width:0;max-width:52vw}
  .academy-head{grid-template-columns:1fr;padding:12px 14px}
  .academy-head h2,.acc-meta{grid-column:1}
  .acc-prog{grid-column:1;grid-row:auto;align-items:flex-start;padding-left:40px;min-width:0}
  .acc-prog .bar{width:min(220px,60vw)}
  .academy-body{padding:4px 14px 16px}
}
@media (max-width:640px){
  .site .wrap{padding-block:8px}
  .logo img{height:32px}
  .userbar{gap:8px}
  .userbar .scope-switch span{display:none}
  .page-head h1{font-size:1.45rem}
  .filters input[type="search"]{max-width:none;flex-basis:100%}
  .stats{grid-template-columns:repeat(2,1fr)}
  .stat{border-bottom:1px solid var(--line);margin-bottom:-1px}
  .bulkbar{bottom:8px}
}
@media (prefers-reduced-motion: reduce){.acc-btn .chev::before,.th-sort .arr{transition:none}}

.role-line span:first-child{white-space:nowrap}
.role-line .brabo{white-space:nowrap}
.role-line a{font-weight:600;text-decoration:none}
.role-line a:hover{text-decoration:underline}
.ns{font-size:.82rem;color:var(--muted);white-space:nowrap}
@media (max-width:640px){
  .site .wrap{display:grid;grid-template-columns:auto 1fr;align-items:center}
  .userbar{justify-content:flex-end}
  .userbar .who{display:none}
  .userbar .scope-switch{order:3;flex-basis:100%}
  .userbar:has(.scope-switch){display:grid;grid-template-columns:1fr auto;grid-column:1 / -1}
  .userbar:has(.scope-switch) #signout{grid-row:1;grid-column:2}
  .userbar .scope-switch select{max-width:none;width:100%}
  .site .wrap:has(.scope-switch) .logo{grid-column:1 / -1}
}

/* context lines above a page title: plain words, not an all-caps label */
.page-head .kicker{font-family:var(--sans);text-transform:none;letter-spacing:0;font-size:.9rem;font-weight:600;color:var(--brand)}

/* ---------- 1:1 templates ---------- */
.tpl-table td.first{min-width:240px}
.tpl-name{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.tpl-table th.ctr,.tpl-table td.ctr{text-align:center}
.tpl-table td.ctr input{width:18px;height:18px;margin:0;vertical-align:middle}
.tpl-pick{font-size:.88rem;font-weight:600;color:var(--muted);gap:8px}
.tpl-form label .hint{font-weight:400}
.tpl-fs{border:1px solid var(--line);border-radius:10px;padding:12px 16px 14px;margin:0;display:flex;flex-direction:column;gap:10px;min-width:0}
.tpl-fs legend{padding:0 6px;font-weight:600;color:var(--brand-ink);font-size:.95rem}
.tpl-qs{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.tpl-q{display:flex;align-items:center;gap:6px}
.tpl-q .n{flex:none;width:1.6em;text-align:right;color:var(--muted);font-weight:600;font-variant-numeric:tabular-nums}
.tpl-q input{flex:1;min-width:0}
.tpl-q .btn{flex:none;min-width:34px;padding-left:8px;padding-right:8px}
.tpl-qbar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.tpl-per{font-size:.9rem;gap:8px}
.tpl-facts{display:grid;grid-template-columns:auto 1fr;gap:6px 16px;margin:0}
.tpl-facts dt{font-weight:600;color:var(--muted);font-size:.88rem}
.tpl-facts dd{margin:0}
.tpl-h3{font-size:1rem;margin:4px 0 6px;color:var(--brand-ink)}
.tpl-preview-qs{margin:0 0 6px;padding-left:22px;display:flex;flex-direction:column;gap:6px}
@media (max-width:640px){.tpl-q .btn{min-width:30px;padding-left:6px;padding-right:6px}.tpl-facts{grid-template-columns:1fr}.tpl-table td.first{min-width:200px}}
.tpl-choice{align-items:flex-start;margin:0 0 14px}
.tpl-choice input{margin-top:4px;flex:none}
.tpl-choice>span{display:flex;flex-direction:column;max-width:72ch}
/* archived 1:1s */
.gw-archived{flex-direction:row;align-items:center;justify-content:space-between;gap:12px 20px;flex-wrap:wrap;background:var(--surface);border-color:var(--line-strong)}
.gw-archived>div{max-width:72ch}
.gw-archtoggle{padding:10px 2px 0}
tr.archived td{color:var(--muted)}
/* a person's 1:1 settings, under the heading of their 1:1s */
.one-prefs{display:flex;flex-wrap:wrap;gap:10px 22px;align-items:center;padding:10px 0 2px;border-top:1px solid var(--line)}
.one-prefs .tpl-pick select{max-width:240px}

/* ---------- chart colors: one per answer, in a fixed order, checked for color blindness; their own steps in dark mode ---------- */
:root{--s1:#2a78d6;--s2:#eb6834;--s3:#1baf7a;--s4:#eda100;--s5:#e87ba4;--s6:#008300;--s7:#6250d6;--s8:#e34948}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){--s1:#3987e5;--s2:#d95926;--s3:#199e70;--s4:#c98500;--s5:#d55181;--s6:#008300;--s7:#9085e9;--s8:#e66767}}
:root[data-theme="dark"]{--s1:#3987e5;--s2:#d95926;--s3:#199e70;--s4:#c98500;--s5:#d55181;--s6:#008300;--s7:#9085e9;--s8:#e66767}
.s1{--c:var(--s1)}.s2{--c:var(--s2)}.s3{--c:var(--s3)}.s4{--c:var(--s4)}.s5{--c:var(--s5)}.s6{--c:var(--s6)}.s7{--c:var(--s7)}.s8{--c:var(--s8)}

/* ---------- a poll's results over time ---------- */
.ph-q{font-family:var(--serif);font-size:1.12rem;font-weight:600;color:var(--fg)}
.ph-body{display:flex;flex-direction:column;gap:18px;transition:opacity .15s}
.ph-body.ph-loading{opacity:.55}
.ph-filters{display:flex;gap:12px 20px;flex-wrap:wrap;align-items:center}
.ph-seg{display:inline-flex;border:1px solid var(--line-strong);border-radius:8px;overflow:hidden}
.ph-opt{position:relative;display:flex;flex-direction:row;align-items:center;gap:6px;padding:6px 12px;font-size:.88rem;font-weight:600;color:var(--muted);cursor:pointer;border-left:1px solid var(--line-strong)}
.ph-opt:first-child{border-left:0}
.ph-opt input{position:absolute;opacity:0;width:1px;height:1px}
.ph-opt:has(input:checked){background:var(--brand-soft);color:var(--brand-ink)}
.ph-opt:has(input:focus-visible){outline:3px solid var(--brand);outline-offset:-3px}
.ph-co{display:flex;flex-direction:row;align-items:center;gap:8px;font-size:.88rem;font-weight:600;color:var(--muted)}
.ph-co select{font:inherit;font-weight:400;color:var(--fg);background:var(--bg);border:1px solid var(--line-strong);border-radius:6px;padding:6px 8px;max-width:260px}
.ph-sum{color:var(--muted)}
.ph-sum b{color:var(--fg)}
.ph-fig{margin:0;display:flex;flex-direction:column;gap:10px}
.ph-fig figcaption{font-weight:600;color:var(--fg)}
.ph-key{display:inline-block;width:10px;height:10px;border-radius:2px;background:var(--c);flex:none}
.ph-line{display:inline-block;width:12px;height:2px;border-radius:1px;background:var(--c);flex:none;align-self:center}
/* everything, all months together */
.ph-bars{display:flex;flex-direction:column;gap:8px}
.ph-bar{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1.6fr) 6.2em;gap:12px;align-items:center;font-size:.92rem}
.ph-bl{display:flex;gap:8px;align-items:center;min-width:0;overflow-wrap:anywhere}
.ph-bt{height:14px;position:relative}
.ph-bt i{position:absolute;left:0;top:0;bottom:0;background:var(--c);border-radius:0 4px 4px 0}
.ph-bv{text-align:right;white-space:nowrap}
.ph-bv b{font-weight:600}
.ph-legend{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:6px 16px;font-size:.86rem;color:var(--muted)}
.ph-legend li{display:flex;align-items:center;gap:6px}
/* month by month */
.ph-plot{position:relative;padding-left:44px}
.ph-grid{position:absolute;left:44px;right:0;top:0;height:180px;pointer-events:none}
.ph-grid span{position:absolute;left:0;right:0;bottom:calc(var(--y) * 1%);border-top:1px solid var(--line)}
.ph-grid b{position:absolute;right:100%;margin-right:8px;transform:translateY(-50%);font-size:.75rem;font-weight:400;color:var(--muted);font-variant-numeric:tabular-nums;white-space:nowrap}
.ph-cols{display:flex;align-items:flex-start;position:relative}
.ph-col{flex:1 1 0;min-width:0;display:flex;flex-direction:column;align-items:center;gap:4px;padding:0 2px 2px;border-radius:6px;cursor:default;outline-offset:2px}
.ph-col.on .ph-stack{outline:2px solid var(--line-strong);outline-offset:3px;border-radius:5px}
.ph-stack{width:min(24px,72%);height:180px;display:flex;flex-direction:column-reverse;gap:2px}
.ph-stack i{display:block;background:var(--c);min-height:2px}
.ph-stack i:last-child{border-radius:4px 4px 0 0}
.ph-stack.vol{position:relative;justify-content:flex-start;flex-direction:column-reverse}
.ph-stack.vol i{flex:none}
.ph-stack.none{border-bottom:1px solid var(--line-strong);height:180px}
.ph-cap{position:absolute;left:50%;transform:translate(-50%,-4px);font-size:.8rem;font-weight:600;color:var(--fg);white-space:nowrap}
.ph-x{font-size:.75rem;color:var(--muted);white-space:nowrap;text-align:center;line-height:1.2}
.ph-n{font-size:.75rem;color:var(--fg);font-variant-numeric:tabular-nums;line-height:1.1}
.ph-note{font-size:.82rem;color:var(--muted)}
.ph-tip{position:absolute;top:0;z-index:3;min-width:180px;max-width:300px;background:var(--bg);color:var(--fg);border:1px solid var(--line-strong);border-radius:8px;padding:8px 10px;box-shadow:0 8px 24px rgba(0,0,0,.18);display:flex;flex-direction:column;gap:4px;font-size:.84rem;pointer-events:none}
.ph-tm{font-weight:600;color:var(--brand-ink)}
.ph-tr{display:grid;grid-template-columns:12px 3em minmax(0,1fr) auto;gap:6px;align-items:baseline}
.ph-tr b{font-weight:700;font-variant-numeric:tabular-nums;text-align:right}
.ph-tr span{color:var(--muted);overflow-wrap:anywhere}
.ph-tr small{color:var(--muted);font-variant-numeric:tabular-nums}
.ph-tt{color:var(--muted);border-top:1px solid var(--line);padding-top:4px;margin-top:2px}
/* open answers, the numbers, and companies */
.ph-texts h3,.ph-cos h3{font-size:1rem;color:var(--fg);margin-bottom:6px}
.ph-texts ul{list-style:none;margin:0 0 6px;padding:0;display:flex;flex-direction:column;gap:6px;max-height:260px;overflow:auto}
.ph-texts li{display:flex;flex-direction:column;gap:2px;border-left:3px solid var(--line-strong);padding:2px 0 2px 10px}
.ph-texts li small{font-size:.78rem}
.ph-tablewrap{display:flex;flex-direction:column;gap:10px;align-items:flex-start}
.ph-tablewrap .tablewrap{width:100%}
.ph-table th[scope="row"]{background:transparent;color:var(--fg);font-weight:600}
.ph-cos .tablewrap th[scope="row"]{background:transparent;color:var(--fg)}
.ph-thin{display:flex;gap:2px;width:160px;height:8px}
.ph-thin i{display:block;background:var(--c);min-width:2px}
.ph-thin i:first-child{border-radius:4px 0 0 4px}
.ph-thin i:last-child{border-radius:0 4px 4px 0}
.ph-thin i:only-child{border-radius:4px}
@media (max-width:640px){
  .ph-bar{grid-template-columns:minmax(0,1fr) 5.4em;grid-template-areas:"l v" "t t";row-gap:4px}
  .ph-bl{grid-area:l}.ph-bt{grid-area:t}.ph-bv{grid-area:v}
  .ph-x{font-size:.68rem;writing-mode:vertical-rl;transform:rotate(180deg)}
}
@media (prefers-reduced-motion: reduce){.ph-body{transition:none}}
.ph-table tr:last-child th,.ph-cos tr:last-child th{border-bottom:0}
