/* Staff, sponsor and partner screens (design lock 10, 12, 13, 18, 19, 25) and the staff views restyled to match.
   Tokens live in app.css :root; this file only composes them. Class prefix: st- */
/* Layout grids */
/* Owner rule 15 Nov: rows share one even column grid and one gap, so tile edges line up with the cards below. */
.st-top{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--gap);margin-bottom:var(--gap)}
.st-top>.st-hero{grid-column:span 2}
.st-top-2{grid-template-columns:repeat(3,minmax(0,1fr))}
.st-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--gap);margin-bottom:var(--gap)}
.st-two>*{height:100%}
.st-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:var(--gap);margin-bottom:var(--gap)}
.st-page .spacer{margin-top:var(--gap)}
.spacer-b{margin-bottom:var(--gap)}
/* Navy hero panel with the architectural image */
.st-hero{display:grid;grid-template-columns:minmax(0,1fr) clamp(110px,25%,300px);min-height:var(--hero-min);border-radius:var(--radius-hero);overflow:hidden;background:var(--navy-2);color:#fff}
.st-hero-copy{padding:var(--hero-pad);display:flex;flex-direction:column;gap:8px;min-width:0}
.st-hero .eyebrow{color:#C9D6DB}
.st-hero h2{margin:0;color:#fff}
.st-hero p{margin:0;color:#D7E1E5;font-size:15px;line-height:1.5;max-width:46ch}
.st-hero-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:auto;padding-top:10px}
/* Hero without a stats row (partner Home, ref 19): keep the buttons with the text and centre the block, no empty band */
.st-hero-copy:not(:has(.st-hero-stats)){justify-content:center}
.st-hero-copy:not(:has(.st-hero-stats)) .st-hero-actions{margin-top:14px}
.st-hero-art{background:#0D2C3A url(/static/brand/architecture.jpg) center/cover no-repeat}
.st-hero-meta{font-size:13px!important;color:#C9D6DB!important}
.st-hero-stats{display:flex;flex-wrap:wrap;row-gap:10px;margin:6px 0 0}
.st-hero-stats div{padding:2px 14px 2px 0;margin-inline-end:14px;border-inline-end:1px solid #ffffff2e}
.st-hero-stats div:last-child{border:0;margin:0;padding-inline-end:0}
.st-hero-stats dt{font-size:12px;color:#C9D6DB;order:2;white-space:nowrap}
.st-hero-stats dd{margin:0;font-size:20px;font-weight:600;letter-spacing:-.01em;white-space:nowrap}
.st-hero-stats div{display:flex;flex-direction:column-reverse}
.st-hero .btn{white-space:nowrap}
.btn.st-gold:hover:not(:disabled){background:#F3AD40;border-color:#F3AD40}
.btn.st-ghost{background:transparent;border-color:#ffffff59;color:#fff}
.btn.st-ghost:hover:not(:disabled){border-color:#ffffffb0;background:#ffffff14}
.st-hero .btn:focus-visible{outline-color:var(--gold-brand)}
/* Cards */
.st-card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:var(--card-pad);min-width:0}
.st-card-head{display:flex;align-items:center;gap:var(--space-2);margin-bottom:var(--space-2);flex-wrap:wrap}
.st-card-head h2{margin:0;flex:1;line-height:1.3}
.st-card-head+.small.muted{margin-top:-6px}
.st-card-ico{display:inline-grid;place-items:center}
.st-card-ico .ico{width:22px;height:22px;color:var(--gold);stroke-width:1.5}
.st-link{border:0;background:none;color:var(--ink);font:inherit;font-weight:600;font-size:13px;display:inline-flex;align-items:center;gap:6px;cursor:pointer;min-height:var(--ctl-sm);padding:0 6px;border-radius:8px;flex:none;white-space:nowrap}
.st-link .ico{width:16px;height:16px}
.st-link:hover{background:var(--nav-hover)}
.st-link:focus-visible,.st-chev:focus-visible,.st-sub:focus-visible,.st-method:focus-visible,.st-private summary:focus-visible{outline:3px solid var(--gold);outline-offset:2px}
.st-module{display:flex;flex-direction:column;gap:2px}
.st-link-card{color:inherit;text-decoration:none;transition:border-color .15s,box-shadow .15s}
.st-link-card:hover{border-color:var(--subtle);box-shadow:0 6px 20px rgba(16,48,64,.06)}
.st-link-card:focus-visible{outline:2px solid var(--teal);outline-offset:2px}
.st-big{font-size:clamp(48px,4.6vw,72px);line-height:1;font-weight:300;letter-spacing:-.04em;margin-top:10px;color:var(--ink)}
.st-big .st-of{font-size:clamp(22px,2vw,30px);letter-spacing:-.02em}
.st-big.st-big-text{font-size:clamp(20px,1.6vw,26px);font-weight:600;letter-spacing:-.02em;line-height:1.2}
.st-of{color:var(--teal);font-size:15px}
[data-theme=dark] .st-of{color:var(--accent)}
.st-bar{display:block;height:4px;border-radius:99px;background:var(--line);overflow:hidden;margin:14px 0 10px}
.st-bar i{display:block;height:100%;background:var(--navy);border-radius:inherit}
[data-theme=dark] .st-bar i{background:var(--accent)}
.st-progress{display:flex;flex-direction:column;align-items:center;text-align:center;gap:14px}
.st-progress h2{align-self:flex-start;margin:0;text-align:start}
.st-progress p{margin:auto 0 0}
.st-ring{--p:0;width:136px;height:136px;border-radius:50%;background:conic-gradient(var(--navy) calc(var(--p)*1%),var(--line) 0);display:grid;place-items:center;flex:none}
[data-theme=dark] .st-ring{background:conic-gradient(var(--accent) calc(var(--p)*1%),var(--line) 0)}
.st-ring>div{width:114px;height:114px;border-radius:50%;background:var(--card);display:grid;place-content:center;text-align:center}
.st-ring b{font-size:26px;letter-spacing:-.02em;line-height:1.1}
.st-ring small{font-size:11px;color:var(--muted)}
.st-kpi{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:var(--stat-pad);display:flex;flex-direction:column;gap:6px;min-width:0}
.st-kpi span{color:var(--muted);font-size:14px}
.st-kpi b{font-size:30px;letter-spacing:-.02em;line-height:1.1;font-weight:600}
.st-kpi small{font-size:12px;color:var(--muted)}
/* Lists */
.st-outline,.st-dates,.st-people,.st-checklist,.st-sched,.st-sublist ul{list-style:none;margin:0;padding:0}
.st-outline>li,.st-dates>li,.st-people>li{display:flex;align-items:center;gap:14px;padding:12px 0;border-top:1px solid var(--line);min-width:0}
.st-outline>li:first-child,.st-dates>li:first-child,.st-people>li:first-child{border-top:0}
.st-outline b,.st-dates b,.st-people b{display:block;font-size:14px;font-weight:600;overflow-wrap:anywhere}
.st-outline small,.st-dates small,.st-people small{display:block;font-size:12px;color:var(--muted);overflow-wrap:anywhere}
.st-step{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:var(--soft);border:1px solid var(--line);font-size:13px;font-weight:600;flex:none}
.st-outline li.current .st-step{background:var(--navy);border-color:var(--navy);color:#fff}
.st-meta{font-size:13px;color:var(--muted);white-space:nowrap}
.st-chev{width:var(--ctl-sm);height:var(--ctl-sm);border:0;background:none;border-radius:50%;display:grid;place-items:center;color:var(--muted);cursor:pointer;flex:none}
.st-chev .ico{width:16px;height:16px}
.st-chev:hover{background:var(--nav-hover);color:var(--ink)}
.st-date{width:52px;text-align:center;flex:none;border-inline-end:1px solid var(--line);padding-inline-end:12px}
.st-date b{font-size:20px;line-height:1.1}
.st-date small{font-size:12px}
.st-empty-line{display:flex;gap:14px;align-items:flex-start}
.st-empty-line>.ico{width:22px;height:22px;color:var(--muted);flex:none;margin-top:2px}
.st-empty-line b{display:block;font-size:14px}
.st-empty-line small{display:block;font-size:13px;color:var(--muted)}
.st-people .avatar{width:40px;height:40px;font-size:13px;flex:none}
.st-medal{width:40px;height:40px;border-radius:50%;background:var(--ivory);display:grid;place-items:center;flex:none}
.st-medal .ico{width:18px;height:18px;color:var(--gold)}
.st-meter{width:150px;flex:none}
.st-meter .st-bar{margin:0 0 4px}
.st-checklist{display:grid;gap:8px;margin-top:4px}
.st-checklist li{display:flex;align-items:center;gap:10px;font-size:13px}
.st-tick{width:18px;height:18px;border-radius:50%;border:1.5px solid #C9CDCB;display:grid;place-items:center;flex:none}
.st-checklist li.done .st-tick{background:var(--navy);border-color:var(--navy);color:#fff}
.st-tick .ico{width:12px;height:12px}
.st-rows{margin:8px 0 0;display:grid}
.st-rows>div{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:9px 0;border-top:1px solid var(--line)}
.st-rows>div:first-child{border-top:0}
.st-rows dt{color:var(--muted);font-size:14px}
.st-rows dd{margin:0;font-size:22px;font-weight:600}
.st-oversight h2{margin:6px 0 4px}
.st-readiness .st-big-text{margin-bottom:6px}
.st-readiness p{margin:10px 0 0}
/* Teaching room (13): schedule on the left, deck, timer and private notes */
.with-outline:has(.teach-room){grid-template-columns:minmax(240px,300px) minmax(0,1fr);row-gap:0}
.outline-main:has(.teach-room),.teach-room{display:contents}
.teach-room>*{grid-column:2;min-width:0}
.teach-room>.pagehead{grid-column:1/-1}
.with-outline:has(.teach-room) .outline-panel{grid-column:1;grid-row:2/span 40;margin-bottom:24px}
.st-agenda-head{display:flex;justify-content:space-between;align-items:center;margin:0 0 14px}
.st-agenda-head h2{margin:0}
.st-agenda-head .ico{width:20px;height:20px;color:var(--muted)}
.agenda .day-select{width:100%;margin-bottom:12px}
.st-sched{display:grid;gap:4px}
.st-sched .agenda-card.st-sched-item{display:flex;align-items:center;gap:12px;margin:0;padding:12px 10px;border:1px solid transparent;border-radius:var(--radius-control);background:none;min-height:56px}
.st-sched .agenda-card.st-sched-item:hover{background:var(--nav-hover)}
.st-sched .agenda-card.st-sched-item.selected{background:#EAF2F4;border-color:#D3E4E9}
[data-theme=dark] .st-sched .agenda-card.st-sched-item.selected{background:var(--nav-active);border-color:var(--line)}
.st-sched-item b{display:block;font-size:13px;line-height:1.35;font-weight:600}
.st-sched-item small{display:block;font-size:12px;color:var(--muted)}
.st-sched-item.selected small{color:var(--teal)}
[data-theme=dark] .st-sched-item.selected small{color:var(--accent)}
.st-sched-mark{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:var(--soft);border:1px solid var(--line);font-size:12px;font-weight:600;flex:none;color:var(--ink)}
.st-sched-mark.live{background:var(--teal);border-color:var(--teal);color:#fff}
.st-sched-mark.done{background:#E2F1E9;border-color:#CEE6D9;color:var(--good)}
.st-sched-mark .ico{width:14px;height:14px}
.st-sched-break{display:flex;gap:8px;align-items:center;padding:6px 12px;font-size:12px;color:var(--muted)}
.st-sched-break .ico{width:14px;height:14px}
.st-status{margin-top:16px;padding:14px;border-radius:var(--radius-control);background:var(--soft)}
.st-status p{margin:6px 0 0;display:flex;align-items:center;gap:8px;font-size:13px}
.st-status p.small{display:block}
.st-dot{width:8px;height:8px;border-radius:50%;background:#2E9E6A;flex:none}
.st-dot.live{background:var(--gold-brand)}
.st-deck{border-radius:var(--radius)}
.st-deck-head{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:16px;padding:10px 12px 10px 20px;border-bottom:1px solid var(--line)}
.st-deck-head b{text-align:center;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.st-deck-arrows{display:flex;gap:2px}
.st-deck-arrows .icon-btn .ico{width:18px;height:18px}
.st-deck .teaching-stage{background:var(--card);display:block;min-height:320px;padding:8px 12px}
.st-deck .zone-number{display:none}
.st-deck .teaching-bottom{border-top:1px solid var(--line)}
.st-timer{margin-top:var(--gap)}
.st-timer-row{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.st-time{font-size:30px;font-weight:600;letter-spacing:.01em;min-width:96px}
.st-timer-label b{display:block;font-size:14px}
.st-timer-label small{display:block;font-size:12px;color:var(--muted)}
.st-pacing{margin:10px 0 0}
.st-private{margin-top:14px;border-top:1px solid var(--line);padding-top:12px}
.st-private summary{display:flex;align-items:center;gap:10px;cursor:pointer;list-style:none;min-height:var(--ctl-sm);border-radius:8px}
.st-private summary::-webkit-details-marker{display:none}
.st-private summary .ico{width:18px;height:18px;color:var(--muted)}
.st-private summary b{font-size:14px}
.st-open{margin-inline-start:auto;font-size:13px;color:var(--muted)}
.st-private-body{padding:8px 0 4px;max-width:var(--measure)}
.st-private-body h4{font-size:13px;margin:14px 0 4px}
.st-private-body p{margin:0;font-size:14px;line-height:1.6}
.st-tools{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-top:14px;padding-top:12px;border-top:1px solid var(--line)}
.present-exit{display:none}
/* Presentation mode: slides and timer only. Private notes, staff tools and navigation never show. */
body.presenting .sidebar,body.presenting .topbar,body.presenting .crumbs,body.presenting .outline-panel,body.presenting .st-private,body.presenting .st-tools,body.presenting .st-pacing,body.presenting .noticebar,body.presenting .footer,body.presenting .st-tabs,body.presenting .teach-room .pagehead,body.presenting .lesson-meta{display:none!important}
body.presenting .app-shell,body.presenting .with-outline:has(.teach-room){grid-template-columns:minmax(0,1fr)}
body.presenting .main{padding:20px clamp(16px,2.6vw,40px)}
body.presenting .st-deck .teaching-stage{min-height:62vh}
body.presenting .st-deck .slide h2{font-size:clamp(30px,4vw,56px)}
body.presenting .present-exit{display:inline-flex}
/* Projector screen (separate window): slide only, light and large */
.screen{background:var(--bg)}
.screen-stage .slide{background:var(--card);border:1px solid var(--line);border-radius:var(--radius-hero);padding:5vh 5vw}
.screen-wait{text-align:center;color:var(--muted)}
.screen-wait img{width:min(360px,60vw);height:auto}
[data-theme=dark] .screen-wait img{filter:invert(1)}
/* Review queue (18) */
.st-review{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--gap);align-items:start}  /* matches the three tiles above */
.st-review>.st-detail{grid-column:span 2}
.st-sublist ul{display:grid;gap:6px;margin-top:12px}
.st-sub{display:flex;align-items:flex-start;gap:12px;width:100%;padding:12px;border:1px solid transparent;border-radius:var(--radius-control);background:none;color:var(--ink);text-align:start;cursor:pointer;font:inherit}
.st-sub:hover{background:var(--nav-hover)}
.st-sub.selected{background:#EEF4F5;border-color:#D3E4E9}
[data-theme=dark] .st-sub.selected{background:var(--nav-active);border-color:var(--line)}
.st-sub .avatar{width:36px;height:36px;font-size:12px;flex:none}
.st-sub b{display:block;font-size:14px}
.st-sub small{display:block;font-size:12px;color:var(--muted)}
.st-sub-top{display:flex;justify-content:space-between;align-items:flex-start;gap:8px}
.st-sub .pill{flex:none;white-space:nowrap}
.st-detail h2{margin:6px 0 2px}
.st-detail>.row p{margin:0}
.st-sec{border-top:1px solid var(--line);margin-top:18px;padding-top:18px}
.st-sec h3{font-size:15px;margin:0}
.st-sec .tiny{margin:2px 0 0}
.st-quote{margin-top:12px;padding:16px 18px;border:1px solid var(--line);border-radius:var(--radius-control);background:var(--card)}
.st-quote.soft{background:var(--soft)}
.st-quote small{display:block;font-size:12px;color:var(--muted);margin-bottom:4px}
.st-quote p{margin:0;line-height:1.6;white-space:pre-wrap;max-width:var(--measure)}
.st-detail .info{margin-top:16px}
.st-detail .fieldlabel{margin-top:2px}
.st-review-foot{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-top:12px}
.st-review-foot p{margin:0}
/* Invite learners (12) */
.st-invite{display:grid;grid-template-columns:minmax(0,2fr) minmax(260px,1fr);gap:var(--gap-layout);align-items:start}
.st-methods{display:flex;gap:10px;flex-wrap:wrap;margin:6px 0 20px}
.st-method{display:inline-flex;align-items:center;gap:8px;min-height:var(--ctl);padding:0 16px;border:1px solid var(--line);border-radius:var(--radius-control);background:var(--card);color:var(--ink);font:inherit;font-size:13px;font-weight:600;cursor:pointer}
.st-method .ico{width:16px;height:16px}
.st-method.active{background:#FBF1E0;border-color:#E9CC97;color:#74501A}
[data-theme=dark] .st-method.active{background:var(--nav-active);border-color:var(--gold);color:var(--ink)}
.st-method:disabled{opacity:.55;cursor:not-allowed}
.st-code-box{display:grid;gap:6px;margin:12px 0;padding:16px;border:1px solid var(--line);border-radius:var(--radius-control);background:var(--soft)}
.st-code-box small{font-size:12px;color:var(--muted)}
.st-code-box code{font-size:15px;padding:8px 10px;background:var(--card)}
.st-code-box .btn{justify-self:start}
.st-url{display:block;margin-top:6px;font-size:11px;max-width:100%}
.st-people .pill+.btn{margin-inline-start:4px}
.st-summary h2{margin:6px 0 2px}
.st-lock{display:flex;gap:8px;align-items:flex-start;margin:14px 0}
.st-lock .ico{width:16px;height:16px;flex:none;margin-top:2px}
.st-next{padding:14px 16px;border-radius:var(--radius-control);background:var(--soft)}
.st-next p{margin:6px 0 0}
/* Restyled staff views inside .st-page: calmer tables and panels */
.st-page .table-wrap,.st-table{border:0;border-radius:0;background:none}
.st-page table{width:100%;border-collapse:collapse}
.st-page th{text-align:start;font-size:12px;font-weight:600;color:var(--muted);padding:10px 14px;border-bottom:1px solid var(--line);background:none;text-transform:none;letter-spacing:0}
.st-page td{padding:14px;border-bottom:1px solid var(--line);vertical-align:middle;font-size:14px}
.st-page tr:last-child td{border-bottom:0}
.st-page td .avatar{width:36px;height:36px;font-size:12px}
.st-page .roster-progress .st-bar{width:120px;margin:6px 0 0}
.st-page .grid2{align-items:start}
.st-page aside.stack{display:grid;gap:var(--gap);align-content:start}
.st-page aside.stack>.panel{margin:0}
.st-page .resource-row{border-radius:var(--radius-control)}
/* Sidebar-height: the account card stays visible at the bottom of the viewport (see app.css) */
/* Responsive */
@media(max-width:1280px){
.st-top{grid-template-columns:repeat(2,minmax(0,1fr))}
.st-top>.st-hero{grid-column:1/-1}
}
@media(max-width:1200px){
.with-outline:has(.teach-room){grid-template-columns:minmax(0,1fr)}
.outline-main:has(.teach-room),.teach-room{display:block}
.with-outline:has(.teach-room) .outline-panel{grid-column:auto;grid-row:auto;margin-top:24px}
}
@media(max-width:900px){
.st-review,.st-invite,.st-two,.st-top-2{grid-template-columns:minmax(0,1fr)}
.st-review>.st-detail{grid-column:auto}
}
@media(max-width:650px){
.st-top:has(.st-readiness){grid-template-columns:minmax(0,1fr)}
.st-ring{width:104px;height:104px}
.st-ring>div{width:88px;height:88px}
.st-ring b{font-size:22px}
.st-kpis:has(>:nth-child(3):last-child){grid-template-columns:repeat(3,minmax(0,1fr))}
.st-kpi span{font-size:13px}
.st-sublist .scroll-region{max-height:40vh}
.st-hero{grid-template-columns:minmax(0,1fr);min-height:0}
.st-hero-art{min-height:120px;order:-1}
.st-hero .btn{flex:1 1 auto}
.st-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
.st-kpi b{font-size:24px}
.st-meter{display:none}
.st-deck-head{grid-template-columns:minmax(0,1fr) auto;padding-inline-start:14px}
.st-deck-head b{display:none}
.st-deck .teaching-stage{min-height:0}
.st-timer-row .row{width:100%}
.st-review-foot .row{width:100%}
.st-review-foot .btn{flex:1 1 auto}
.st-people>li{flex-wrap:wrap}
.st-people .grow{flex:1 1 9rem}
}
@media(prefers-reduced-motion:reduce){
.st-link,.st-sub,.st-sched-item{transition:none}
}
@media print{
.st-hero-art{display:none}
}
/* Staff credentials view (studio.js markup): separate the issue form from the list */
form[data-studio="issue-cred"]{margin-bottom:16px}
/* Sponsor hero (ref 25) has no image: the stats row gets the full width */
.st-hero.st-hero-plain{grid-template-columns:minmax(0,1fr)}
:root:not([data-theme=dark]) .st-sub.selected small{color:#46525B}
.st-oversight .st-rows dd{font-size:20px}
/* Four KPIs: one row on wide screens, two by two below; numeric table columns end-aligned */
@media(min-width:1100px){
.st-kpis:has(>:nth-child(4):last-child){grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media(max-width:1099.98px){
.st-kpis:has(>:nth-child(4):last-child){grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:650px){
.st-kpis>:last-child:is(:nth-child(1),:nth-child(n+5):nth-child(odd)){grid-column:1/-1}
}
.st-table[aria-label="Learners"] :is(td,th):is(:nth-child(2),:nth-child(3),:nth-child(4)),.st-table[aria-label="Learner results"] :is(td,th):nth-child(n+2):nth-child(-n+6){text-align:end;font-variant-numeric:tabular-nums}
.num,th.num{text-align:end;font-variant-numeric:tabular-nums}
#phaseLeft{display:inline-block}
#phaseLeft::before{content:"· "}
/* Resources: the right column (register + curriculum) ends level with the upload card */
.st-page .st-res-grid{align-items:stretch}
.st-res-col{display:flex;flex-direction:column;gap:var(--gap);min-width:0}
.st-res-col>.st-cur{flex:1}
.st-cur-list{list-style:none;margin:var(--space-2) 0 0;padding:0}
