/* P71 v5: Almarai 300/400/700/800 and Barlow Condensed (session selectors, LD-02) are loaded by index.html (one css2 request). */
:root{--al-ink:#103B5A;--al-primary:#177E89;--al-primary-strong:#11646C;--al-navy:#062F49;--al-gold:#B1894F;--al-sky:#D9EFF7;--al-shell:#F6F8F7;--al-surface:#FFFFFF;--al-warm:#F3EEE5;--al-muted:#50656C;--al-field:#7D8E8D;--al-field-strong:#6A7C81;--al-line:#D5DDDB;--al-focus:#0B57D0;--al-focus-dark:#7FD3BF;--al-danger:#A12F25;--al-warning:#8A5A00;--al-success:#2E6B34;--al-danger-bg:#FBECEA;--al-warning-bg:#FBF3DC;--al-success-bg:#E8F1E9;--al-neutral-bg:#EEF1F0;--al-disabled-bg:#E3E8E7;--al-disabled-text:#50656C;--al-sand:#E4C179;--paper:var(--al-shell);--card:var(--al-surface);--ink:var(--al-ink);--muted:var(--al-muted);--line:var(--al-line);--teal:var(--al-primary-strong);--lime:#c9e688;--red:var(--al-danger);--amber:var(--al-warning);--line-card:var(--al-line);--grad-button-primary:linear-gradient(120deg,#177E89 0%,#11646C 50%,#0A4652 100%);--grad-button-live:linear-gradient(120deg,#1E7D47 0%,#14633A 50%,#0F5230 100%);--grad-button-secondary-border:linear-gradient(120deg,#177E89,#0E5560);--grad-button-secondary-fill:linear-gradient(120deg,#EEF8F9 0%,#DDF0F3 50%,#C9E6EA 100%);--grad-button-copied-fill:linear-gradient(120deg,#E9F6EE 0%,#CBEBD8 100%);--grad-button-sheen:linear-gradient(110deg,transparent 30%,rgba(255,255,255,.7) 50%,transparent 70%);--shadow-sm:none;--shadow-hover:0 2px 8px -4px rgba(16,59,90,.18);--shadow-button-lift:none;--shadow-overlay:0 30px 60px -30px rgba(2,20,32,.55);--shadow-card:0 1px 0 rgba(16,59,90,.05);--radius-xs:6px;--radius-sm:10px;--radius-md:12px;--radius-lg:16px;--radius-pill:999px;--motion-fast:110ms;--motion-base:150ms;--motion-panel:240ms;--motion-max:400ms;--ease-enter:cubic-bezier(.2,.7,.2,1);--ease-exit:cubic-bezier(.4,0,1,1);--dur-fast:var(--motion-fast);--dur-base:var(--motion-base);--dur-warm:var(--motion-panel);--dur-gradient:var(--motion-panel);--dur-pulse:1600ms;--ease-out:var(--ease-enter);--surface-page:var(--al-shell);--surface-card:var(--al-surface);--surface-warm:var(--home-warm-card);--surface-sunken:var(--al-neutral-bg);--surface-dark:var(--sim-bg);--text-strong:var(--al-ink);--text-muted:var(--al-muted);--text-link:var(--al-primary-strong);--text-on-action:#FFFFFF;--text-on-dark:var(--sim-ink);--text-muted-on-dark:var(--sim-muted);--action-primary-bg:var(--grad-button-primary);--action-primary-bg-hover:#0A4652;--action-secondary-border:var(--al-primary-strong);--action-danger-bg:var(--al-danger);--action-disabled-bg:var(--al-disabled-bg);--action-disabled-text:var(--al-disabled-text);--field-border:var(--al-field-strong);--tone-info-fg:var(--al-ink);--tone-info-bg:var(--al-neutral-bg);--tone-warn-fg:var(--al-warning);--tone-warn-bg:var(--al-warning-bg);--tone-danger-fg:var(--al-danger);--tone-danger-bg:var(--al-danger-bg);--tone-success-fg:var(--al-success);--tone-success-bg:var(--al-success-bg);--font-ui:'Almarai',Tahoma,'Segoe UI',sans-serif;--font-mono:var(--mono);--fs-micro:12px;--fs-dense:14px;--fs-control:15px;--fs-body:16px;--fs-h3:18px;--fs-h2:22px;--lh-tight:1.4;--lh-body:1.7;--lh-dense:1.6;--fw-regular:400;--fw-bold:700;--fw-heavy:800;--sp-1:4px;--sp-2:8px;--sp-3:12px;--sp-4:16px;--sp-5:24px;--sp-6:32px;--sp-7:48px;--control-h:44px;--density-roomy:16px;--density-default:12px;--density-compact:8px;--focus-ring:var(--al-focus);--focus-ring-dark:var(--al-focus-dark);--focus-width:3px;--focus-offset:2px;--focus-offset-heading:6px;--sheen-from:100%;font-family:'Almarai',Tahoma,'Segoe UI',sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{touch-action:manipulation}button,a{ -webkit-tap-highlight-color:transparent}button{cursor:pointer;border:1px solid var(--ink);border-radius:5px;padding:10px 18px;color:var(--card);background:var(--ink);font-weight:600}button:hover{background:#214b52}button:disabled{cursor:wait;opacity:.5}button.secondary{background:transparent;color:var(--ink);border-color:var(--line)}button.secondary:hover{background:#e7ece3}button.danger{background:var(--red);border-color:var(--red)}button.small{padding:5px 10px;font-size:13px}a{color:var(--teal)}:focus-visible{outline:var(--focus-width) solid var(--focus-ring);outline-offset:4px}input,select,textarea{width:100%;border:1px solid var(--field-border);border-radius:var(--radius-sm);padding:11px 13px;background:#fff;color:var(--ink)}textarea{min-height:100px;resize:vertical}label{display:block;font-size:14px;font-weight:600;margin:14px 0 6px}.masthead{max-width:1560px;margin:auto;padding:23px 4%;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:20px}.identity{display:flex;align-items:center;text-decoration:none;color:var(--ink);gap:12px}.header-meta{display:flex;align-items:center;gap:18px;font-size:13px}.pilot{padding:5px 10px;border:1px solid var(--line);border-radius:30px;white-space:nowrap}#identity{display:flex;gap:12px;align-items:center}main{max-width:1480px;margin:auto;padding:44px 4% 64px;min-height:calc(100vh - 190px)}h1{font-size:clamp(30px,4vw,49px);line-height:1.4;letter-spacing:0;margin:10px 0 17px;font-weight:700}h2{font-size:23px;line-height:1.5;font-weight:600;margin:0 0 16px}h3{font-size:17px;margin:0 0 10px}p{line-height:1.9}.muted,small{color:var(--muted)}.eyebrow{font-size:13px;font-weight:700;color:var(--teal)}.eyebrow:lang(en){letter-spacing:1px;text-transform:uppercase}.entry{display:grid;grid-template-columns:1.3fr 1fr;gap:8%;align-items:start;padding-top:30px}.intro{padding-top:23px}.intro p{max-width:510px;font-size:17px;color:var(--muted)}.entry-stat{display:flex;align-items:center;gap:23px;padding:23px 0;margin-top:35px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);max-width:510px}.entry-stat strong{font-family:'Barlow Condensed',sans-serif;font-size:65px;font-weight:500;line-height:1}.entry-stat span{font-size:14px}.entry-stat i{height:34px;width:1px;background:var(--line)}.entry-card{background:var(--card);border:1px solid var(--line);padding:30px}.tabs{display:flex;gap:7px;border-bottom:1px solid var(--line);margin-bottom:25px}.tabs button{border:0;border-radius:0;background:none;color:var(--muted);padding:10px 14px;border-bottom:3px solid transparent}.tabs button[aria-pressed=true]{color:var(--teal);border-bottom-color:var(--teal)}.full{width:100%;margin-top:22px}.error{color:var(--red);font-size:14px;min-height:22px}.row{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.between{justify-content:space-between}.section-head{margin-bottom:28px}.section-head p{margin:8px 0 0;color:var(--muted)}.panel{background:var(--card);border:1px solid var(--line);padding:25px;border-radius:5px}.dashboard-grid{display:grid;grid-template-columns:1.2fr 1fr;gap:28px}.case-meta{padding:15px 0;color:var(--muted);font-size:14px;min-height:60px}.room-list{display:grid;gap:12px}.room-item{border:1px solid var(--line);padding:17px;display:flex;justify-content:space-between;align-items:center;gap:12px}.room-item h3{font-size:15px;margin:0 0 3px}.badge{font-size:var(--fs-caption);color:var(--teal);background:#e4efe4;border-radius:20px;padding:3px 10px}.badge.ended{color:var(--muted);background:#eaece7}.empty{color:var(--muted);padding:20px 0;line-height:1.9}.room-head{margin-bottom:25px}.room-head h1{font-size:30px;margin:0}.room-code{font-family:'Barlow Condensed',sans-serif;font-size:30px;letter-spacing:3px;direction:ltr;unicode-bidi:isolate}.live-dot{display:inline-block;width:7px;height:7px;background:var(--teal);border-radius:50%;margin-inline-end:7px}.status{font-size:13px;color:var(--muted)}.status[data-live=false] .live-dot{background:var(--amber)}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 285px;gap:20px;direction:ltr}.workspace>*{direction:rtl}.sidebar{display:grid;align-content:start;gap:16px}.sidebar .panel{padding:18px}.console-frame{display:block;width:100%;height:calc(100vh - 240px);min-height:650px;border:1px solid var(--line);border-radius:5px;background:#f8f6ef}.member{border-top:1px solid var(--line);padding:11px 0;font-size:13px}.member .row{gap:6px;margin-top:6px}.proposal{border-top:1px solid var(--line);padding:12px 0}.proposal p{font-size:13px;direction:ltr;text-align:left;margin:7px 0}.proposal small{font-size:var(--fs-caption)}.toggle-label{display:flex;align-items:center;gap:10px;cursor:pointer;font-size:13px}.toggle-label input{width:18px;height:18px;accent-color:var(--teal)}.notice{padding:12px 17px;border:1px solid color-mix(in srgb,var(--tone-fg) 35%,var(--tone-bg));border-inline-start:4px solid var(--tone-fg);border-radius:var(--radius-xs);background:var(--tone-bg);color:var(--tone-fg);font-size:var(--fs-caption);line-height:1.8;margin-bottom:18px}.waiting{max-width:640px;margin:50px auto;text-align:center;padding:40px}.waiting .room-code{display:block;margin:16px}.waiting p{color:var(--muted)}.candidate-layout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(320px,1fr);gap:24px;direction:ltr}.candidate-layout>*{direction:ltr}.monitor{background:#0a181d;color:#f2f5ec;border-radius:7px;overflow:hidden}.monitor-head{padding:14px 20px;border-bottom:1px solid #283b3e;display:flex;justify-content:space-between;gap:12px;font-family:'Barlow Condensed',sans-serif;font-size:19px}.monitor-head small{font-size:14px;color:#a4b4af}.monitor-body{display:grid;grid-template-columns:minmax(0,1fr) 130px;min-height:325px}.monitor canvas{display:block;width:100%;height:325px}.vitals{padding:4px 14px;border-left:1px solid #283b3e}.vital{padding:8px 0;border-bottom:1px solid #243237;font-family:'Barlow Condensed',sans-serif}.vital small{display:block;font-size:13px;color:inherit;opacity:.75}.vital b{font-size:39px;line-height:1;font-weight:500}.vital.hr{color:#b8eb7b}.vital.bp{color:#ef9c86}.vital.spo2{color:#80d1eb}.vital.cvp{color:#d0a8ed}.monitor-extra{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;padding:11px 18px;border-top:1px solid #283b3e;font-family:'Barlow Condensed',sans-serif;color:#c0cec5;font-size:17px}.candidate-stage{font-family:Georgia,'Times New Roman',serif;line-height:1.7;font-size:16px;overflow-wrap:anywhere}.candidate-stage h2{font-family:'Barlow Condensed',sans-serif;font-size:29px;line-height:1.2}.candidate-stage h3{font-family:'Barlow Condensed',sans-serif;font-size:21px}.candidate-stage .eyebrow{font-family:'Barlow Condensed',sans-serif}.candidate-stage .q{border-top:1px solid var(--line);padding-top:17px;margin-top:22px}.candidate-stage .ans,.candidate-stage .tp{border-left:3px solid var(--teal);padding:12px 18px;background:#edf2e7;margin-top:15px}.candidate-stage img,.released-card img{max-width:100%;height:auto}.candidate-stage table,.released-card table{width:100%;border-collapse:collapse;font-size:14px}.candidate-stage td,.released-card td{padding:7px;border-bottom:1px solid var(--line)}.released-card{margin-top:18px;direction:ltr;font-family:Georgia,serif;line-height:1.7}.released-card svg,.candidate-stage svg{max-width:100%;height:auto}.actions{margin-top:20px;direction:ltr}.actions h3{font-family:'Barlow Condensed',sans-serif;font-size:23px}.action-grid{display:flex;flex-wrap:wrap;gap:7px}.action-grid button{background:var(--card);color:var(--ink);border-color:#bac9c0;text-align:left;font-size:13px;font-weight:400;line-height:1.5;padding:9px 12px}.action-grid button:hover{background:#e4eee0}.actions .action-group{font-size:12px;color:var(--muted);margin:17px 0 9px}.feedback-box{direction:rtl;margin-top:20px}.action-feedback{direction:ltr;background:#e9efe1;padding:14px;margin-top:15px;font-size:14px;line-height:1.7}.summary{margin:auto}.summary pre{white-space:pre-wrap;direction:ltr;text-align:left;max-height:250px;overflow:auto;background:var(--paper);padding:15px;font-size:var(--fs-caption)}.summary-item{border-top:1px solid var(--line);padding:13px 0}.loading{color:var(--muted);padding:40px;text-align:center}#toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);background:var(--ink);color:white;padding:13px 22px;border-radius:5px;z-index:20;max-width:90vw;box-shadow:0 6px 30px #103B5A26}footer{padding:18px 4%;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:15px;font-size:var(--fs-caption);color:var(--muted);max-width:1560px;margin:auto}[hidden]{display:none!important}
/* T12 institutional screens: context chip, organization chooser, role screens, administration panel */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.masthead,.header-meta,#identity{flex-wrap:wrap}.header-meta,#identity{justify-content:flex-end}.context-chip{padding:4px 10px;border:1px solid var(--line);border-radius:4px;background:var(--card);font-size:var(--fs-caption);line-height:1.6;max-width:100%;overflow-wrap:anywhere}.context-chip b{font-weight:600}.who{font-weight:600}h1:focus{outline:none}h1:focus-visible{outline:var(--focus-width) solid var(--focus-ring);outline-offset:4px}.center{justify-content:center}.chooser{max-width:680px;margin:30px auto}.chooser h1,.role-screen h1{font-size:clamp(24px,3vw,34px)}.choice-list{list-style:none;margin:20px 0 6px;padding:0;display:grid;gap:10px}.choice{display:block;width:100%;text-align:start;background:var(--card);color:var(--ink);border-color:#a7b6b1;padding:14px 17px;font-weight:400;line-height:1.7}.choice:hover{background:#e7ece3}.choice b{display:block;font-size:17px;font-weight:600}.choice span{font-size:13px;color:var(--muted)}.choice[aria-current=true]{border-color:var(--teal);box-shadow:inset 4px 0 0 var(--teal)}[dir=rtl] .choice[aria-current=true]{box-shadow:inset -4px 0 0 var(--teal)}.role-screen{max-width:680px;margin:30px auto}.role-screen h2{margin-top:26px}.gate-links{margin-top:20px;font-size:14px}.admin>.panel{margin-bottom:28px}.admin .room-list{max-height:460px;overflow-y:auto;padding:2px}.admin-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.5fr);gap:28px;align-items:start}.admin-grid>.panel{min-width:0}.plain-list{list-style:none;margin:0;padding:0}.list-row,.member-row{display:flex;justify-content:space-between;align-items:center;gap:10px 14px;flex-wrap:wrap;border-top:1px solid var(--line);padding:11px 0;font-size:14px;overflow-wrap:anywhere}.list-row:first-child,.member-row:first-child{border-top:0}.member-row .row{gap:8px}.member-row>div:first-child{min-width:0}select.compact{width:auto;padding:5px 8px;font-size:13px}.own-note{max-width:230px}.stack-form{border-top:1px solid var(--line);margin-top:16px;padding-top:6px}.stack-form h3{margin:14px 0 0}.stack-form button{margin-top:14px}.small-text{font-size:13px;margin:4px 0 0}#department-field{margin-bottom:6px}#department-field .notice{margin:10px 0 0}
/* T12b invitations: own pending invitations (chooser, "no organization"), header indicator, invited rows in the administration panel */
.invitations{border-top:1px solid var(--line);margin:22px 0 16px;padding-top:16px;text-align:start}.invitations h2{font-size:19px;margin:0 0 4px}.invitations .list-row>span:first-child{min-width:0}.invitations .row{gap:8px}.invitation-status{margin:14px 0 0;text-align:start}.invitation-status:empty{display:none}.badge.invited{color:#735417;background:#fbf3dc}#invitations-indicator .count{display:inline-block;min-width:20px;padding:0 6px;border-radius:20px;background:var(--teal);color:#fff;font-size:var(--fs-caption);line-height:20px;text-align:center}select:disabled{background:#eef0ea;color:var(--muted);cursor:not-allowed}
@media(max-width:1100px){.admin-grid{grid-template-columns:minmax(0,1fr)}}@media(max-width:1100px){.workspace{grid-template-columns:minmax(0,1fr)}.sidebar{grid-template-columns:repeat(3,1fr)}.candidate-layout{grid-template-columns:1fr 1fr}.console-frame{height:800px}}@media(max-width:760px){.masthead{padding:16px 5%;gap:10px}.pilot{font-size:var(--fs-caption)}.header-meta{gap:8px}#identity{font-size:var(--fs-caption);gap:5px}main{padding:25px 5% 40px}.entry,.dashboard-grid,.candidate-layout{grid-template-columns:1fr;gap:25px}.entry{padding-top:0}.intro{padding-top:0}.intro p{font-size:15px}.entry-stat{margin-top:20px;padding:15px 0}.entry-stat strong{font-size:45px}.entry-card,.panel{padding:21px}.sidebar{grid-template-columns:1fr}.console-frame{min-height:720px}.room-head h1{font-size:23px}.monitor-body{grid-template-columns:minmax(0,1fr) 110px}.vital b{font-size:32px}.monitor-extra{font-size:15px}.room-item{flex-wrap:wrap}.candidate-stage{font-size:16px}footer{flex-direction:column;gap:4px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation:none!important;transition-duration:1ms!important;transition-delay:0s!important}}
/* T13 live protocol v2: controller blocking panel (held / superseded / revoked) above an inert workspace */
.control-block{max-width:860px;margin:0 auto 22px;border-inline-start:5px solid var(--amber)}.control-block[data-variant=superseded],.control-block[data-variant=desync],.control-block[data-variant=revoked]{border-inline-start-color:var(--red)}.control-block h2{margin:6px 0 10px;font-size:22px;line-height:1.5}.control-block h2:focus{outline:none}.control-block h2:focus-visible{outline:var(--focus-width) solid var(--focus-ring);outline-offset:4px}.control-block p{line-height:1.9;margin:0}.control-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:16px 0 0}.control-facts div{border:1px solid var(--line);border-radius:5px;padding:10px 14px;min-width:0}.control-facts dt{font-size:var(--fs-caption);color:var(--muted)}.control-facts dd{margin:4px 0 0;font-weight:600;overflow-wrap:anywhere}.control-actions{margin-top:18px}.control-block .error:empty{display:none}.control-block .control-status{margin-top:12px;font-weight:600;color:var(--muted)}.control-block .control-status:empty{display:none}.control-actions button:disabled{opacity:.55;cursor:progress}.workspace.blocked{opacity:.35;filter:grayscale(1);pointer-events:none;user-select:none}
@media(max-width:760px){.control-facts{grid-template-columns:minmax(0,1fr)}.control-actions button{width:100%}}
@media(min-width:761px){.control-facts{grid-template-columns:repeat(3,minmax(0,1fr))}}
.control-code,.restore-code{font-family:ui-monospace,Consolas,monospace;font-size:var(--fs-caption);color:var(--muted);overflow-wrap:anywhere}
.restore-warning{border-inline-start:5px solid var(--red)}
/* T26 (§5c): "saved / saving…" status of training actions. Fixed inline size, so a change of text moves nothing. */
.action-status{display:inline-block;min-inline-size:13em;margin-inline-start:14px;font-size:13px;line-height:1.6;color:var(--muted);white-space:nowrap;vertical-align:baseline}.action-status[data-state=saving]{color:var(--amber);font-weight:600}.action-status[data-state=blocked],.action-status[data-state=unsaved]{color:var(--red);font-weight:600}.summary-truncated{margin-block:10px}.summary-truncated[hidden]{display:none}
.control-facts .wide{grid-column:1/-1}.control-block .control-note{margin-top:12px;font-size:14px;color:var(--muted)}
@media(max-width:760px){.action-status{display:block;margin-inline-start:0}}
.restore-warning[hidden]{display:none}
.signin-code{margin:14px 0 4px;text-align:start}
.signin-code summary{cursor:pointer;font-size:14px;color:var(--teal);padding:4px 0}
.signin-code summary:focus-visible{outline:var(--focus-width) solid var(--focus-ring);outline-offset:2px}
.signin-code input{font-family:ui-monospace,Consolas,monospace;letter-spacing:2px;text-transform:uppercase}
#signin-limit-hint{line-height:1.8;margin-top:8px}
#signin-limit-hint[hidden]{display:none}
dialog.modal{width:min(560px,calc(100vw - 24px));max-height:calc(100vh - 24px);overflow:auto;border:1px solid var(--line);border-radius:6px;background:var(--card);color:var(--ink);padding:24px;text-align:start}
dialog.modal::backdrop{background:rgba(16,45,54,.55)}
dialog.modal h2{margin:0 0 10px;font-size:20px}
dialog.modal h2:focus{outline:none}
dialog.modal .modal-actions{justify-content:flex-end;margin-top:18px}
dialog.modal .modal-status{margin:12px 0 0}
dialog.modal .modal-status:empty{display:none}
.signin-code-box{margin:16px 0 6px;padding:16px 10px;border:1px dashed var(--teal);background:#fff;text-align:center}
#signin-code-value{font-family:ui-monospace,Consolas,monospace;font-size:clamp(22px,6vw,32px);font-weight:600;letter-spacing:4px;user-select:all;overflow-wrap:anywhere;unicode-bidi:isolate}
.signin-code-how{margin:12px 0 0;padding-inline-start:20px;font-size:14px;line-height:1.9}
/* T30c (architecture 7a): "not medically reviewed" notice, catalog status badges, evidence register dialog.
   The notice is one compact line under the room header (it wraps on a narrow screen); it is in the header markup
   from the first paint of a room screen, so the monitor below it never moves when the socket connects. */
.content-notice{display:flex;flex-wrap:wrap;gap:2px 10px;align-items:baseline;margin:-13px 0 18px;padding:7px 12px;border:1px solid #d5bd88;border-inline-start:5px solid var(--amber);background:#fbf3dc;color:#5c4210;font-size:13px;line-height:1.7;overflow-wrap:anywhere}
.content-notice strong{font-weight:700}
.content-notice[hidden]{display:none}
.review-badge{white-space:nowrap;border:1px solid transparent}
.review-badge[data-review-status=draft_referenced]{color:#735417;background:#fbf3dc;border-color:#d5bd88}
.review-badge[data-review-status=draft_unevaluated],.review-badge[data-review-status=unknown]{color:var(--red);background:#fbecea;border-color:#e0b1ab;border-style:dashed}
.review-badge[data-review-status=in_review]{color:#1f4f7a;background:#e6eef6;border-color:#a9c2d9}
.review-badge[data-review-status=retired]{color:var(--muted);background:#eaece7;border-color:var(--line)}
.case-meta{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px 14px}
.case-status{gap:8px}
#case-field .notice{margin:14px 0 0}
#retry-catalog{margin-top:10px}
#content-panel{margin-top:28px}
.content-list .list-row>span:first-child{min-width:0;text-align:start;unicode-bidi:isolate}
dialog.modal.evidence{width:min(1180px,calc(100vw - 24px))}
dialog.modal.evidence h3{margin:20px 0 8px;font-size:16px}
.ev-version{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:8px;margin:0}
.ev-version div{border:1px solid var(--line);border-radius:5px;padding:8px 12px;min-width:0}
.ev-version dt{font-size:var(--fs-caption);color:var(--muted)}
.ev-version dd{margin:3px 0 0;font-weight:600;overflow-wrap:anywhere}
.ev-version code{font-family:ui-monospace,Consolas,monospace;font-size:var(--fs-caption)}
/* P71 v5 (J28, AC-L13): only the URL value is monospace; the Arabic link beside it keeps the page font. */
.ev-url .ev-field[data-field=url]{font-family:ui-monospace,Consolas,monospace;font-size:var(--fs-caption)}
.ev-about{border-inline-start:5px solid var(--amber);background:#fbf3dc;color:#5c4210;padding:4px 16px 10px;margin-top:16px}
.ev-about ul{margin:0;padding-inline-start:20px;font-size:14px;line-height:1.9}
.ev-counts{list-style:none;display:flex;flex-wrap:wrap;gap:8px;margin:0;padding:0}
.ev-badge{display:inline-block;padding:2px 9px;border-radius:4px;border:2px solid var(--line);font-size:var(--fs-caption);line-height:1.7;font-weight:600;background:#fff;color:var(--ink)}
/* Each level differs by border style and weight as well as colour, and always carries its words. */
.ev-badge[data-basis=reference],.ev-badge[data-verification=verified_at_source]{border-style:solid;border-color:var(--teal);background:#e4efe4;color:#0b4a3e}
.ev-badge[data-basis=simulation_assumption],.ev-badge[data-verification=located_text_extracted]{border-style:dashed;border-color:var(--amber);background:#fbf3dc;color:#5c4210}
.ev-badge[data-basis=needs_review],.ev-badge[data-verification=cited_not_verified]{border-style:double;border-width:4px;border-color:var(--red);background:#fbecea;color:#7c2a22}
.ev-badge[data-basis=unknown],.ev-badge[data-verification=unknown]{border-style:dotted;color:var(--muted)}
.ev-filters{margin:4px 0 8px;gap:8px 12px}
.ev-filters label{margin:0}
.ev-scroll{overflow-x:auto;border:1px solid var(--line);border-radius:5px;margin-top:6px}
.ev-scroll:focus-visible{outline:var(--focus-width) solid var(--focus-ring);outline-offset:2px}
.ev-table{width:100%;min-width:860px;border-collapse:collapse;font-size:14px;line-height:1.7}
.ev-table th,.ev-table td{padding:8px 10px;border-bottom:1px solid var(--line);text-align:start;vertical-align:top;overflow-wrap:anywhere}
.ev-table th{background:#eef0ea;font-size:var(--fs-caption);white-space:nowrap}
.ev-table tr[data-basis=needs_review] td:first-child{border-inline-start:4px solid var(--red)}
.ev-field{white-space:pre-wrap;unicode-bidi:plaintext}
.ev-url,.ev-sub{display:block;margin-top:4px;color:var(--muted);overflow-wrap:anywhere}
.ev-link{white-space:nowrap}
@media(max-width:760px){.content-notice{font-size:var(--fs-caption);padding:6px 10px}.ev-table{font-size:var(--fs-caption)}}
.device-row small{color:var(--muted);line-height:1.8}
.device-list{margin-top:12px}
@media(max-width:760px){dialog.modal{padding:16px}dialog.modal .modal-actions button{width:100%}}
/* T32c (architecture 7b): account seats, the instructor assessment panel and the rubric editor. No colour carries a
   meaning alone: every badge has its words. Nothing here styles a total or a grade, because none exists. */
.seat-kind{display:inline-block;margin-inline-start:14px;padding:2px 10px;border:1px solid var(--line);border-radius:20px;background:var(--card);font-size:var(--fs-caption);line-height:1.7;color:var(--muted);white-space:nowrap}
.seat-kind:empty{display:none}
.seat-kind[data-seat=account]{border-color:var(--teal);color:#0b4a3e;background:#e4efe4}
.seat-kind[data-seat=guest]{border-style:dashed}
.seat-badge{white-space:nowrap;border:1px solid transparent}
.seat-badge[data-seat=account]{border-color:var(--teal)}
.seat-badge[data-seat=guest]{color:#4f5f61;background:#eaece7;border-color:var(--line);border-style:dashed}
.enrol,.guest-entry{border-top:1px solid var(--line);margin-top:22px;padding-top:4px;text-align:start}
.enrol h2,.guest-entry h2{margin:16px 0 4px;font-size:19px}
.guest-entry h2:focus{outline:none}
.guest-entry[data-fallback=true]{border-top:3px solid var(--amber)}
.enrol-status{margin:14px 0 0}
.enrol-status:empty{display:none}
#enrol-error:empty{display:none}
dialog.modal.assessment{width:min(980px,calc(100vw - 24px))}
dialog.modal.assessment h3{margin:22px 0 8px;font-size:17px}
dialog.modal.assessment h3:focus{outline:none}
dialog.modal.assessment h3:focus-visible{outline:var(--focus-width) solid var(--focus-ring);outline-offset:4px}
dialog.modal.assessment h4{margin:20px 0 8px;font-size:15px}
dialog.modal.assessment .error:empty{display:none}
.assess-notice{margin:6px 0 8px}
.assess-label{margin:0 0 8px}
.assess-kind{margin:0 0 4px;font-size:14px}
.assess-team{margin:0 0 10px;padding:8px 12px;border-inline-start:5px solid var(--ink);background:#eef0ea;font-size:13px;line-height:1.8;font-weight:600}
.assess-table{min-width:640px}
.assess-seats .list-row>.seat-who{min-width:0}
.seat-action{gap:8px}
.seat-note{font-size:13px}
.rec-badge{white-space:nowrap}
.rec-badge[data-rec=draft],.rec-badge[data-rec=amendDraft]{color:#735417;background:#fbf3dc}
.assess-facts{margin:10px 0 0}
.assess-facts small{display:block;font-weight:400;overflow-wrap:anywhere}
.assess-amends,.assess-readonly{margin:12px 0}
#assessment-back{margin-bottom:4px}
fieldset.assess-criterion{border:1px solid var(--line);border-radius:5px;margin:0 0 12px;padding:6px 14px 14px;min-width:0}
fieldset.assess-criterion legend{padding:0 6px;font-weight:600;font-size:15px;overflow-wrap:anywhere}
.assess-scale{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.assess-option{display:inline-flex;align-items:center;gap:6px;margin:0;padding:6px 12px;border:1px solid #72847e;border-radius:5px;background:#fff;font-weight:600;cursor:pointer;min-height:36px}
.assess-option input{width:auto;margin:0;padding:0;accent-color:var(--teal)}
.assess-option:has(input:checked){border-color:var(--teal);background:#e4efe4;box-shadow:inset 0 0 0 1px var(--teal)}
.assess-option:has(input:focus-visible){outline:var(--focus-width) solid var(--focus-ring);outline-offset:2px}
.assess-na{border-style:dashed;font-weight:500}
.assess-note{min-height:60px}
.assess-actions{margin-top:16px}
.assess-scores{display:grid;gap:8px;margin:0}
.assess-scores .assess-criterion{border:1px solid var(--line);border-radius:5px;padding:8px 12px;min-width:0}
.assess-scores dt{font-weight:600;overflow-wrap:anywhere}
.assess-scores dd{margin:4px 0 0}
.assess-score{display:inline-block;min-width:28px;padding:1px 8px;border:1px solid var(--ink);border-radius:4px;text-align:center}
.assess-text{margin:4px 0 0;line-height:1.8;overflow-wrap:anywhere}
.assess-amend{margin-top:18px}
#amend-form{margin-top:8px;border-top:1px solid var(--line)}
#amend-form[hidden]{display:none}
#amend-form button{margin-top:12px}
.assess-history .list-row>span:first-child{min-width:0}
.hist-current{white-space:nowrap}
.rubrics-panel{margin-top:28px}
.rubrics-panel-text{min-width:0;flex:1 1 320px}
.rubrics-panel h2{margin-bottom:4px}
.rubrics .section-head h1{font-size:clamp(24px,3vw,34px)}
.rubrics-own{margin:14px 0;border-inline-start:5px solid var(--amber);color:#5c4210;font-weight:600}
.rubrics-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:28px;align-items:start}
.rubrics-grid>.panel{min-width:0}
.rubrics-grid h2:focus{outline:none}
.rubrics-grid h2:focus-visible{outline:var(--focus-width) solid var(--focus-ring);outline-offset:4px}
.rubric-row:focus{outline:none}
.rubric-row:focus-visible{outline:var(--focus-width) solid var(--focus-ring);outline-offset:2px}
.rubric-row>div:first-child{min-width:0;flex:1 1 240px}
.rubric-details{margin-top:6px;font-size:13px}
.rubric-details summary{cursor:pointer;color:var(--teal)}
.rubric-details ol{margin:6px 0 0;padding-inline-start:22px;line-height:1.8}
.rubric-scale{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
#rubric-key[readonly]{background:#eef0ea;color:#4f5f61}
#rubric-criteria-title{margin:22px 0 2px}
.rubric-criterion fieldset{border:1px solid var(--line);border-radius:5px;margin:12px 0 0;padding:4px 14px 14px;min-width:0}
.rubric-criterion legend{padding:0 6px;font-weight:600;font-size:14px}
.rubric-criterion-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.6fr);gap:14px}
.rubric-criterion textarea{min-height:64px}
.rubric-criterion [data-crit-remove]{margin-top:10px}
#crit-add{margin-top:12px}
.rubric-form-actions{margin-top:20px}
.rubrics .error:empty{display:none}
@media(max-width:1100px){.rubrics-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:760px){.seat-kind{margin-inline-start:0;margin-top:4px}.rubric-scale,.rubric-criterion-grid{grid-template-columns:minmax(0,1fr)}.assess-actions button,.rubric-form-actions button{width:100%}.assess-option{padding:8px 12px}}
/* T33b: report views. Counts and text only - no colour carries a meaning here. */
dialog.modal.report .report-row>span:first-child{min-width:0;flex:1 1 260px}
.report-table{min-width:0}
.report-table th[scope=row]{background:transparent;font-size:13px;white-space:normal;font-weight:600}
.report-table td{white-space:nowrap}
.report-export{margin-top:22px;border-top:1px solid var(--line);padding-top:12px}
.report-export h3{margin:0 0 4px;font-size:15px}
.report-export .error:empty,.org-report .error:empty{display:none}
.report-export-status:empty{display:none}
.report-no-individual{border-inline-start:5px solid var(--amber);font-weight:600}
.org-report,.my-records.panel{margin-top:28px}
.role-screen .my-records{border-top:1px solid var(--line);margin-top:22px;padding-top:16px;text-align:start}
.my-records h2{margin-bottom:4px}
.org-report h3{margin:22px 0 8px;font-size:17px}
.org-report h3:focus-visible{outline:var(--focus-width) solid var(--focus-ring);outline-offset:4px}
.org-report h4{margin:20px 0 8px;font-size:15px}
.report-period{display:flex;flex-wrap:wrap;gap:14px;align-items:flex-end;margin-top:14px}
.report-period>div{flex:1 1 180px;min-width:0}
.report-period input,.report-period select{width:100%}
/* T33d: the two parts of the organization report (period / closed quarter) are visibly separate. */
.report-part{border-top:2px solid var(--line);margin-top:24px;min-width:0}
.report-shown{font-weight:700;margin:16px 0 4px;overflow-wrap:anywhere}
.report-shown small{font-weight:400}
.report-shown:focus{outline:none}
.report-shown:focus-visible{outline:var(--focus-width) solid var(--focus-ring);outline-offset:4px}
.report-quarter-rule,.report-caution{border-inline-start:5px solid var(--amber)}
.report-caution{margin-top:16px;font-weight:600}
.report-dist-off{border-inline-start:5px solid var(--amber);font-weight:600;overflow-wrap:anywhere}
.report-dist-off:focus{outline:none}
.report-dist-off:focus-visible{outline:var(--focus-width) solid var(--focus-ring);outline-offset:4px}
.report-table td.report-criterion-hidden{white-space:normal}
.report-rubric{border:1px solid var(--line);border-radius:5px;padding:4px 14px 12px;margin-top:12px;min-width:0}
.report-rubric-title{overflow-wrap:anywhere}
.report-suppressed{margin:0}
@media(max-width:760px){.report-period button,.report-export button{width:100%}}
/* T37 (architecture 7d): teaching-role requests on the org_admin dashboard; T38: the standing audit line of a report. */
.approvals{text-align:start}
.approvals h2:focus{outline:none}
.approvals h2:focus-visible{outline:var(--focus-width) solid var(--focus-ring);outline-offset:4px}
.approvals-status{margin:12px 0 0}
.approvals-status:empty,.approvals .error:empty,dialog.modal.approval .error:empty{display:none}
.approval-row{display:flex;justify-content:space-between;align-items:flex-start;gap:10px 14px;flex-wrap:wrap;border-top:1px solid var(--line);padding:11px 0;font-size:14px;overflow-wrap:anywhere}
.approval-who{min-width:0;flex:1 1 260px}
.approval-state{display:flex;flex-direction:column;align-items:flex-start;gap:8px;min-width:0;flex:1 1 260px}
.approval-state .badge{white-space:normal}
.approval-state p{margin:0;max-width:none}
dialog.modal.approval p{overflow-wrap:anywhere}
.report-audit-note{margin:6px 0 10px}
@media(max-width:760px){.approval-state button{width:100%}}
/* T45: the session summary screen - standing audit line, refresh row, export group */
.summary-audit{margin:10px 0 18px}.summary-audit-note{margin:6px 0 8px}.summary-refresh{gap:10px;align-items:center;flex-wrap:wrap}.summary-audit .error:empty,.summary-refresh [role=status]:empty{display:none}.summary-audit .report-export{margin-top:12px}

/* T46-S3b (architecture 7f): criteria support, the template label, observation claims and the unreviewed-text marker.
   Neutral ink and borders only: none of these is a verdict, so none uses the teal / red / amber of a status. */
.crit-support{margin:8px 0 0;padding:6px 10px;border-inline-start:3px solid var(--line);font-size:13px;line-height:1.7;overflow-wrap:anywhere;text-align:start}
.sup-basis{display:inline-block;padding:1px 8px;border:1px solid var(--ink);border-radius:4px;font-size:var(--fs-caption);font-weight:700;background:#fff;color:var(--ink)}
.sup-line{margin-top:3px}
.sup-term{font-weight:600;color:var(--muted);font-size:var(--fs-caption);margin:0}
.sup-unresolved{margin:4px 0 0;font-weight:600}
.crit-support[data-modified="true"] .sup-basis{white-space:normal;border-style:dashed}
.ev-prefix{font-weight:600}
.summary-item>.text-flag{margin:4px 0 0;margin-inline-start:0}
.crit-support-box{margin-top:10px}
.template-label{display:inline-block;padding:1px 8px;border:1px dashed var(--ink);border-radius:4px;font-size:var(--fs-caption);font-weight:700;line-height:1.7;background:#fff;color:var(--ink);white-space:normal}
p.template-label{margin:0 0 10px}
.rubric-templates{margin-top:28px}
.rubric-templates h2:focus{outline:none}
.rubric-templates h2:focus-visible{outline:var(--focus-width) solid var(--focus-ring);outline-offset:4px}
.template-row{border-top:1px solid var(--line);padding:14px 0;min-width:0}
.template-title{margin:0 0 4px;font-size:17px;overflow-wrap:anywhere}
.template-row h4{margin:10px 0 4px;font-size:14px}
.template-criteria{margin:0 0 12px;padding-inline-start:22px;line-height:1.8}
.template-criteria li{margin-bottom:8px;overflow-wrap:anywhere}
.obs-notice{margin:6px 0 8px}
.obs-claim{min-width:220px;font-size:var(--fs-caption);line-height:1.7}
.text-flag{display:inline-block;margin-inline-start:6px;padding:0 7px;border:1px solid currentColor;border-radius:999px;font-size:.78em;font-weight:700;line-height:1.7;white-space:normal;vertical-align:middle}
.text-flag-line{margin-top:6px;padding-top:6px;border-top:1px dashed currentColor}
.text-flag-line .text-flag{margin-inline-start:0}
.cor-says+.cor-says{margin-top:8px;padding-top:8px;border-top:1px solid var(--line)}
.ev-corrections{margin-top:18px}

/* I-2 (architecture §7i): the Aleem team's internal library, read only. Table on a computer, a merged "Records" column
   at ≤1024 px, cards and a filter disclosure at ≤600 px. Every status keeps its words; no colour carries a meaning alone. */
.aleem-entry{display:inline-block;padding:5px 10px;border:1px solid var(--line);border-radius:5px;font-size:13px;font-weight:600;line-height:1.5;color:var(--ink);text-decoration:none;white-space:nowrap}
.aleem-entry:hover{background:#e7ece3}
.aleem-entry[aria-current=page]{border-color:var(--ink)}
.aleem{text-align:start;min-width:0}
.aleem .section-head{margin-bottom:14px}
.aleem h1{font-size:clamp(24px,3vw,34px);margin:6px 0 8px;overflow-wrap:anywhere}
.aleem h1:focus,.aleem [tabindex="-1"]:focus{outline:none}
.aleem h1:focus-visible,.aleem [tabindex="-1"]:focus-visible{outline:var(--focus-width) solid var(--focus-ring);outline-offset:4px}
.aleem h2{font-size:20px;margin:26px 0 10px}
.aleem h3{font-size:16px;margin:16px 0 6px}
.aleem h4{font-size:14px;margin:12px 0 4px}
.aleem code{font-family:ui-monospace,Consolas,monospace;font-size:.92em}
.aleem-readonly{border-inline-start:5px solid var(--ink);color:var(--ink);font-weight:600;margin:0 0 16px}
.aleem-summary{font-weight:600;margin:0 0 12px}
.aleem-tools{display:flex;flex-wrap:wrap;gap:12px 18px;align-items:flex-end;margin:0 0 6px}
.aleem-search{flex:1 1 280px;min-width:0}
.aleem-search label,.aleem-filter label{margin:0 0 4px}
.aleem-search small{display:block;margin-top:4px}
.aleem-filters{flex:3 1 520px;min-width:0}
.aleem-filters>summary{display:none}
.aleem-filter-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.aleem-filter select{width:100%}
.aleem-shown{margin:8px 0;font-size:14px;color:var(--muted)}
.aleem-table{min-width:760px}
.aleem-table .aleem-col-records{display:none}
.aleem-table th[scope=row]{background:transparent;white-space:normal;font-size:14px}
.aleem-case-link{font-weight:600}
.aleem-cards{display:none}
.aleem-empty{border:1px dashed var(--line);border-radius:5px;padding:18px;margin:8px 0}
.aleem-empty p{margin:0 0 10px}
.aleem-empty[hidden],.aleem-table-wrap[hidden],.aleem-cards[hidden]{display:none}
.aleem-later{margin-top:26px;border-top:1px solid var(--line);padding-top:10px}
.aleem-later>summary{cursor:pointer;font-weight:600;padding:6px 0}
.aleem-later li{display:flex;flex-wrap:wrap;gap:2px 12px;border-top:1px solid var(--line);padding:8px 0;font-size:14px}
.aleem-later li span{color:var(--muted)}
.aleem-crumbs{list-style:none;display:flex;flex-wrap:wrap;gap:4px 8px;margin:0 0 6px;padding:0;font-size:14px}
.aleem-crumbs li+li::before{content:"›";margin-inline-end:8px;color:var(--muted)}
.aleem-meta{margin:0 0 14px}
.aleem-status{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:12px 0 0}
.aleem-status>div{border:1px solid var(--line);border-radius:5px;padding:10px 14px;background:var(--card);min-width:0}
.aleem-status dt{font-size:var(--fs-caption);color:var(--muted)}
.aleem-status dd{margin:4px 0 0;font-weight:600;overflow-wrap:anywhere}
.aleem-version{border:1px solid var(--line);border-radius:5px;padding:4px 16px 12px;margin:0 0 12px;background:var(--card);min-width:0}
.aleem-version[data-current=true]{border-inline-start:5px solid var(--ink)}
.aleem-version p{margin:4px 0}
.aleem-histories{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 18px}
.aleem-history ul li{font-size:13px;line-height:1.8}
.aleem-hash{display:inline-block;max-width:100%;overflow-wrap:anywhere;word-break:break-all}
.aleem-facts{margin-bottom:8px}
.aleem-questions{margin:2px 0 0;padding-inline-start:18px}
@media(max-width:1024px){
  .aleem-table{min-width:620px}
  .aleem-table .aleem-col-evidence,.aleem-table .aleem-col-corrections{display:none}
  .aleem-table .aleem-col-records{display:table-cell}
  .aleem-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:600px){
  .aleem-table-wrap{display:none}
  .aleem-cards{display:grid;gap:10px}
  .aleem-card{border:1px solid var(--line);border-radius:5px;padding:12px 14px;background:var(--card);min-width:0}
  .aleem-card-title{font-size:16px;margin:0 0 2px;overflow-wrap:anywhere}
  .aleem-card .small-text{margin:0 0 6px}
  .aleem-card-facts{display:grid;grid-template-columns:minmax(0,auto) minmax(0,1fr);gap:4px 12px;margin:0;font-size:13px}
  .aleem-card-facts>div{display:contents}
  .aleem-card-facts dt{color:var(--muted)}
  .aleem-card-facts dd{margin:0;overflow-wrap:anywhere}
  .aleem-filters{flex-basis:100%;border:1px solid var(--line);border-radius:5px;padding:4px 12px}
  .aleem-filters>summary{display:list-item;cursor:pointer;font-weight:600;padding:6px 0}
  .aleem-filters[open]{padding-bottom:12px}
  .aleem-filter-grid{grid-template-columns:minmax(0,1fr)}
  .aleem-status,.aleem-histories{grid-template-columns:minmax(0,1fr)}
}
/* I-3 (architecture §7j): clinical review queue, version panel, "My reviews", the task and its dialogs. Light work board
   like I-2. Every state keeps its words; colour and borders only repeat them. Tables become stacked rows at ≤600 px. */
.aleem-nav{margin:0 0 14px}
.aleem-nav-list{list-style:none;display:flex;flex-wrap:wrap;gap:6px;margin:0;padding:0 0 8px;border-bottom:1px solid var(--line)}
.aleem-nav-list a{display:inline-block;padding:6px 12px;border:1px solid var(--line);border-radius:5px;font-size:14px;font-weight:600;color:var(--ink);text-decoration:none;background:var(--card)}
.aleem-nav-list a:hover{background:#e7ece3}
.aleem-nav-list a[aria-current=page]{border-color:var(--ink);box-shadow:inset 0 -3px 0 var(--teal)}
.review-synthetic{border-inline-start:5px solid var(--amber);font-weight:600;margin:0 0 12px}
.review-scope{margin:14px 0}
.review-status{margin:0 0 12px;font-weight:600}
.review-status:empty{display:none}
.review-status[data-tone=ok]{padding:10px 14px;border:1px solid var(--teal);border-inline-start:5px solid var(--teal);background:#e4efe4;color:#0b4a3e}
.review-status[data-tone=info]{padding:10px 14px;border:1px solid var(--line);border-inline-start:5px solid var(--ink);background:var(--card);color:var(--ink)}
.review-status:focus{outline:none}.review-status:focus-visible{outline:var(--focus-width) solid var(--focus-ring);outline-offset:3px}
.review-state{display:inline-block;padding:2px 10px;border:1px solid var(--line);border-radius:4px;font-size:13px;font-weight:600;line-height:1.7;background:#fff;color:var(--ink)}
.review-state[data-review-state=open],.review-state[data-review-state=grant_revoked]{border-color:var(--ink);border-style:dashed}
.review-state[data-review-state=accepted]{border-color:var(--teal);background:#e4efe4;color:#0b4a3e}
.review-state[data-review-state=changes_requested]{border-color:var(--amber);background:#fbf3dc;color:#5c4210}
.review-state[data-review-state=withdrawn],.review-state[data-review-state=stale],.review-state[data-review-state=none],.review-state[data-review-state=unknown]{color:var(--muted);background:#eef0ea}
.review-flag{display:inline-block;margin-top:4px;padding:1px 8px;border-radius:4px;font-size:var(--fs-caption);font-weight:600;line-height:1.7}
.review-revoked{border:2px solid var(--red);background:#fbecea;color:#7c2a22}
.review-stale{border:1px dashed var(--muted);background:#eef0ea;color:#4f5f61}
.review-alert{border-inline-start:5px solid var(--red);background:#fbecea;color:#7c2a22;padding:8px 14px;font-weight:600;line-height:1.8;margin:8px 0;overflow-wrap:anywhere}
.review-table{min-width:640px}
.review-table th[scope=row]{background:transparent;white-space:normal;font-size:14px}
.review-state-box,.review-decision-panel{border:1px solid var(--line);border-radius:5px;background:var(--card);padding:4px 18px 14px;margin:16px 0;min-width:0}
.review-state-box h2,.review-decision-panel h2{margin:12px 0 6px;font-size:18px}
.review-state-box p{margin:6px 0;overflow-wrap:anywhere}
.review-state-box[data-review-state=grant_revoked]{border-inline-start:5px solid var(--red)}
.review-state-box[data-review-state=open]{border-inline-start:5px solid var(--ink)}
.review-decision-panel{border-inline-start:5px solid var(--teal)}
.review-actions{margin-top:12px}
.review-decision{border-top:1px solid var(--line);margin-top:8px;padding-top:6px}
.review-decision-line{font-weight:600}
.review-note{margin-top:6px}
.review-note-text{white-space:pre-wrap;margin:4px 0;padding:8px 12px;border:1px solid var(--line);border-radius:4px;background:#fff;overflow-wrap:anywhere}
.review-history li{border-top:1px solid var(--line);padding:8px 0;font-size:14px;line-height:1.8;overflow-wrap:anywhere}
.review-history li:first-child{border-top:0}
.review-tasks{display:grid;gap:10px}
.review-task{border:1px solid var(--line);border-radius:5px;padding:10px 16px;background:var(--card);min-width:0}
.review-task[data-review-state=open]{border-inline-start:5px solid var(--ink)}
.review-task-title{font-size:17px;margin:2px 0 4px;overflow-wrap:anywhere}
.review-task p{margin:4px 0}
.review-ai-badge{display:inline-block;margin:14px 0 0;padding:4px 12px;border:2px double var(--amber);border-radius:4px;background:#fbf3dc;color:#5c4210;font-weight:600;font-size:13px}
dialog.modal.review-dialog{width:min(640px,calc(100vw - 24px))}
dialog.modal.review-dialog .error:empty{display:none}
.review-dialog-facts{display:grid;grid-template-columns:minmax(0,auto) minmax(0,1fr);gap:4px 14px;margin:10px 0;font-size:14px}
.review-dialog-facts>div{display:contents}
.review-dialog-facts dt{color:var(--muted)}
.review-dialog-facts dd{margin:0;overflow-wrap:anywhere}
.review-dialog-text{line-height:1.9}
.review-choices{border:0;margin:6px 0;padding:0;min-width:0;display:grid;gap:8px}
.review-choices legend{font-weight:600;margin-bottom:6px;padding:0}
.review-choice{display:flex;gap:10px;align-items:flex-start;margin:0;padding:10px 14px;border:1px solid #a7b6b1;border-radius:5px;background:#fff;font-weight:400;cursor:pointer}
.review-choice input{width:auto;margin:5px 0 0;accent-color:var(--teal)}
.review-choice b{display:block;font-weight:600}
.review-choice small{display:block;line-height:1.7}
.review-choice:has(input:checked){border-color:var(--teal);background:#e4efe4;box-shadow:inset 0 0 0 1px var(--teal)}
.review-choice:has(input:focus-visible){outline:var(--focus-width) solid var(--focus-ring);outline-offset:2px}
.review-attest{margin:14px 0 4px;padding:10px 14px;border:1px dashed var(--line);border-radius:5px}
.review-attest .toggle-label{font-size:14px;font-weight:600;margin:0}
.review-attest small{display:block;margin-top:4px}
.review-outcome{margin-top:10px}
.review-outcome .error{margin:0 0 8px}
.review-signin{font-weight:600}
@media(max-width:600px){
  .review-table-wrap{border:0;overflow:visible}
  .review-table{min-width:0}
  .review-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
  .review-table,.review-table tbody,.review-table tr,.review-table th,.review-table td{display:block;width:100%}
  .review-table tr{border:1px solid var(--line);border-radius:5px;margin:0 0 10px;padding:6px 12px;background:var(--card)}
  .review-table th,.review-table td{border:0;padding:4px 0}
  .review-table td::before{content:attr(data-label);display:block;font-size:var(--fs-caption);color:var(--muted)}
  .review-state-box,.review-decision-panel{padding:4px 12px 12px}
  .review-actions button{width:100%}
}
/* I-4 (architecture §7k): the coordinator board on the queue (summary bar + one action per row), review rounds,
   preparers and the re-review task. No deadline and no lateness colour: waiting rows only say since when. */
.review-board{display:flex;flex-wrap:wrap;gap:8px;margin:4px 0 6px}
.review-board-group{display:inline-flex;align-items:center;gap:10px;min-height:44px;padding:6px 14px;border:1px solid var(--line);border-radius:5px;background:var(--card);color:var(--ink);font-weight:600;font-size:14px;text-align:start}
.review-board-group:hover{background:#e7ece3}
.review-board-group[aria-pressed=true]{border-color:var(--ink);background:#e4efe4;box-shadow:inset 0 -3px 0 var(--teal)}
.review-board-count{display:inline-block;min-width:2ch;padding:0 8px;border-radius:12px;background:#eef0ea;color:var(--ink);font-size:14px;text-align:center;font-variant-numeric:tabular-nums}
.review-board-group[aria-pressed=true] .review-board-count{background:var(--ink);color:var(--card)}
.review-board-note{margin:0 0 6px}
.review-board-tools{justify-content:space-between;margin:0 0 6px}
.review-board-tools .aleem-shown{margin:6px 0}
.review-col-action{min-width:180px}
.review-col-action button{white-space:normal;text-align:start;line-height:1.5}
.review-action-text{display:inline-block;font-size:14px;line-height:1.7}
.review-row-note{margin:6px 0 0;padding:4px 10px;border-inline-start:3px solid var(--amber);background:#fbf3dc;color:#5c4210;font-size:13px;line-height:1.7}
.review-round-tag{border:1px solid var(--ink);background:#fff;color:var(--ink)}
.review-table tr[data-group=no_action]{color:var(--muted)}
.review-table tr[data-group=no_action] .aleem-case-link{color:var(--muted)}
.review-next{border-top:1px solid var(--line);margin-top:8px;padding-top:6px}
.review-next p{margin:6px 0}
.review-preparers,.review-rounds{border:1px solid var(--line);border-radius:5px;background:var(--card);padding:4px 18px 10px;margin:16px 0;min-width:0}
.review-preparers h2,.review-rounds h2,.review-rereview h2{margin:12px 0 6px;font-size:18px}
.review-preparer-list li,.review-round-list li{border-top:1px solid var(--line);padding:8px 0;font-size:14px;line-height:1.8;overflow-wrap:anywhere}
.review-preparer-list li:first-child,.review-round-list li:first-child{border-top:0}
.review-round-line{margin:0;font-weight:600}
.review-round-list li[data-decision=accepted]{border-inline-start:4px solid var(--teal);padding-inline-start:10px}
.review-round-list li[data-decision=changes_requested]{border-inline-start:4px solid var(--amber);padding-inline-start:10px}
.review-snapshot-missing{margin:4px 0 0;font-style:italic}
.review-open-tasks{font-variant-numeric:tabular-nums}
.review-rereview{border:1px solid var(--line);border-inline-start:5px solid var(--ink);border-radius:5px;background:var(--card);padding:4px 18px 12px;margin:16px 0;min-width:0}
.review-rereview h3{margin:14px 0 6px;font-size:16px}
.review-previous{margin-top:4px}
.review-changes{display:grid;gap:8px}
.review-change-group h4{margin:6px 0 4px;font-size:14px}
.review-change-list{margin:0;padding-inline-start:20px;font-size:13px;line-height:1.8;overflow-wrap:anywhere}
@media(max-width:600px){
  .review-board{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  .review-board-group{justify-content:space-between;width:100%}
  .review-col-action{min-width:0}
  .review-col-action button{width:100%}
  .review-preparers,.review-rounds,.review-rereview{padding:4px 12px 10px}
}
/* I-5 (architecture §7l): correction items and the resolution dialog; the queue row leads with its next action; the task
   starts with what is asked and what changed; technical facts folded; one dialog order (primary first, then Back).
   No availability control, no approved badge, no deadline or lateness colour. */
dialog.modal.review-dialog .review-dialog-actions{justify-content:flex-start;gap:10px}
.review-dialog-subject{margin:0 0 10px;font-size:14px;color:var(--muted);overflow-wrap:anywhere}
.review-dialog-version{white-space:nowrap;color:var(--ink);font-weight:600}
.review-row-meta{display:block;margin-top:4px;color:var(--muted);font-size:var(--fs-caption);font-weight:400}
.review-table .review-col-action{min-width:220px}
.review-row-primary{font-weight:700}
.review-table tr[data-group=needs_action] .review-action-text{font-weight:700}
.review-blocked-reason{margin:6px 0 0;font-size:13px;line-height:1.7}
.review-blocked-reason:not(.review-row-note){padding:2px 0;color:#5c4210}
.review-blocked-reason a{font-weight:600;color:#11646c;white-space:nowrap}
.review-blocked-reason a:focus-visible,.review-version-details summary:focus-visible,.review-item-history summary:focus-visible{outline:var(--focus-width) solid var(--focus-ring);outline-offset:2px}
.review-task-ask{margin:2px 0 6px;font-weight:700;font-size:15px}
.review-task[data-review-state=open] .review-task-ask{color:var(--teal)}
.review-asked{margin:4px 0 6px}
.review-asked-steps{margin:6px 0;padding-inline-start:22px;line-height:1.9;font-size:15px}
.review-asked-steps li[data-ask-step=wait_fix]{color:#5c4210}
.review-previous-label{color:var(--muted);font-weight:600}
.review-what-changed{border:1px solid var(--line);border-radius:5px;background:var(--card);padding:4px 18px 12px;margin:16px 0;min-width:0}
.review-what-changed h2{margin:12px 0 6px;font-size:18px}
.review-what-changed h3{margin:6px 0 4px;font-size:14px}
.review-version-details{margin:10px 0;border:1px solid var(--line);border-radius:5px;background:var(--card);padding:4px 14px}
.review-version-details>summary{cursor:pointer;font-weight:600;padding:8px 0;color:#11646c}
.review-version-details[open]{padding-bottom:10px}
.review-work{display:grid;gap:16px;align-items:start;margin:16px 0}
.review-work>section{margin:0}
@media(min-width:1100px){
  .review-work[data-items]:not([data-items="0"]){grid-template-columns:minmax(0,1.6fr) minmax(300px,1fr)}
  .review-work[data-items]:not([data-items="0"]) .review-decision-panel{position:sticky;top:16px}
}
.review-items{border:1px solid var(--line);border-radius:5px;background:var(--card);padding:4px 18px 12px;margin:16px 0;min-width:0}
.review-items h2{margin:12px 0 6px;font-size:18px}
.review-item-list{display:grid;gap:10px;margin:8px 0 0}
.review-item{border:1px solid var(--line);border-inline-start:5px solid var(--muted);border-radius:5px;background:#fff;padding:8px 14px;min-width:0;scroll-margin-top:16px}
.review-item[data-state=open]{border-inline-start-color:var(--red)}
.review-item[data-state=fixed_pending]{border-inline-start-color:var(--amber)}
.review-item[data-state=resolved]{border-inline-start-color:var(--teal)}
.review-item[data-targeted=true]{box-shadow:0 0 0 3px var(--lime)}
.review-item:focus{outline:none}.review-item:focus-visible{outline:var(--focus-width) solid var(--focus-ring);outline-offset:2px}
.review-item p{margin:4px 0;overflow-wrap:anywhere}
.review-item-head{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.review-item-state{display:inline-block;padding:1px 8px;border:1px solid var(--line);border-radius:4px;font-size:var(--fs-caption);font-weight:700;line-height:1.7;background:#eef0ea}
.review-item-state[data-state=open]{border-color:var(--red);background:#fbecea;color:#7c2a22}
.review-item-state[data-state=fixed_pending]{border-color:var(--amber);background:#fbf3dc;color:#5c4210}
.review-item-state[data-state=resolved]{border-color:var(--teal);background:#e4efe4;color:#0b4a3e}
.review-item-label{font-weight:600}
.review-item-label .ev-sub{display:block;font-weight:400}
.review-item-fix,.review-item-outcomes{margin-top:6px}
.review-item-history{margin-top:6px;font-size:13px}
.review-item-history summary{cursor:pointer;color:#11646c}
.review-fix-list,.review-outcome-list{margin:4px 0 0;padding-inline-start:20px;font-size:13px;line-height:1.8}
.review-item-wait{color:var(--muted);font-weight:600;font-size:14px}
.review-item-actions{margin-top:8px}
.review-outcomes{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:1099px) and (min-width:601px){
  .review-table .review-col-action{min-width:190px}
}
@media(max-width:600px){
  .review-table .review-col-action{min-width:0}
  .review-items,.review-what-changed{padding:4px 12px 10px}
  .review-outcomes{grid-template-columns:minmax(0,1fr)}
  dialog.modal.review-dialog .review-dialog-actions button{width:100%}
}
/* P83 v6 F5 tokens (copied from docs/product/design/v6/tokens.css as prototypes/v6-journey/tokens.css holds them): the dark
   session frame, the live chip and the session-code box. Defined here because the sections after this point carry no raw
   colour; the F5 rules at the end of the file use these names only. */
:root{--sim-bg:#14191C;--sim-panel:#1E2529;--sim-ink:#E9EEF0;--sim-muted:#A9B4B8;--sim-border:#6A7C81;--live-dot:#1C9A55;--live-on-dark:#BFF0D3;--live-chip-dark:#1C9A552E;--danger-on-dark:#FFD9D4;--codebox-text:#C9DCE4;--wait-ring-line:#BFE3EE;--mono:ui-monospace,"Cascadia Mono",Consolas,monospace;--ease-spring-warm:var(--ease-enter)}
/* AI-R1-UI orb tokens (owner approval 2026-11-27 of prototypes/ai-orb/index.html; identity teal, navy, gold, logo sage).
   Defined here because the sections after this point carry no raw colour; the «AI-R1 orb» rules near the end use these
   names only (translucency is mixed with color-mix, never written as rgba). */
:root{--orb-teal:#177E89;--orb-mint:#3FB8AE;--orb-gold:#B1894F;--orb-gold-light:#E2C38E;--orb-sage:#6E8A6A;--orb-navy:#123A5C;--orb-core-1:#13707A;--orb-core-2:#0B4450;--orb-core-3:#072630;--orb-eye:#F4FBFA;--orb-eye-glow:#A0F0E8;--orb-shine:#FFFFFF;--orb-shade:#000000}
/* P71 v5 batch 1 (docs/product/design/v5/DESIGN-SPEC.md §1-§5). Tokens on :root above; the session monitor, its fonts
   and colours (.monitor*, .vital, .room-code, .candidate-stage, .released-card, .actions) and the simulator frame are
   not touched (SP-06). */
body{font-size:16px;line-height:1.6;background:var(--al-shell)}
/* P71-F2 (SP-06): zero specificity, so a rule that spaces an LTR code on purpose (.room-code, the sign-in code) keeps it. */
:where(:lang(ar),[dir=rtl]){letter-spacing:0}
.num,.review-board-count{font-variant-numeric:tabular-nums}
/* §1.4 focus: 2px, offset 2px, everywhere; the programmatically focused h1 shows an underline, not a box (LD-01). */
:focus-visible{outline:var(--focus-width) solid var(--focus-ring);outline-offset:var(--focus-offset)}
.aleem :focus-visible,.masthead :focus-visible,.skip-link:focus-visible{outline:var(--focus-width) solid var(--focus-ring);outline-offset:var(--focus-offset)}
h1:focus,h1:focus-visible,.aleem h1:focus,.aleem h1:focus-visible{outline:none}
h1:focus-visible,.aleem h1:focus-visible{text-decoration:none;outline:none}
main:focus{outline:none}
/* P71-F2 (AC-H14, J06): the older 3px box on .aleem [tabindex="-1"] must not reach a focused page title or group heading. */
.aleem h1[tabindex="-1"]:focus-visible,.aleem .review-group-title[tabindex="-1"]:focus-visible{text-decoration:none;outline:none}
/* §2 buttons. Primary: primary background, white 700; secondary: surface, ink, field-strong border; danger: outline. */
/* P71-F2 (SP-06, LD-02): scoped to the light work boards and the header; a session page (it holds .room-head) keeps the
   pre-batch buttons (filled «إنهاء الجلسة», disabled cursor:wait / opacity) until batch 3. :where keeps the old specificity. */
:where(body:not(:has(.room-head)),.masthead) button{background:var(--al-primary);border-color:var(--al-primary);color:#fff;font-weight:700}
:where(body:not(:has(.room-head)),.masthead) button:hover{background:var(--al-primary-strong);border-color:var(--al-primary-strong)}
:where(body:not(:has(.room-head)),.masthead) button.secondary{background:var(--al-surface);color:var(--al-ink);border-color:var(--al-field-strong);font-weight:700}
:where(body:not(:has(.room-head)),.masthead) button.secondary:hover{background:var(--al-neutral-bg)}
:where(body:not(:has(.room-head)),.masthead) button.danger{background:var(--al-surface);color:var(--al-danger);border-color:var(--al-danger)}
:where(body:not(:has(.room-head)),.masthead) button.danger:hover{background:var(--al-danger-bg)}
:where(body:not(:has(.room-head)),.masthead) button:disabled,:where(body:not(:has(.room-head)),.masthead) button[aria-disabled=true]{opacity:1;background:var(--al-disabled-bg);border-color:var(--al-disabled-bg);color:var(--al-disabled-text);cursor:not-allowed}
a{color:var(--al-primary-strong)}
/* P83 v6 F1 (docs/product/design/v6/tokens.css, prototypes/v6-buttons): the approved buttons on the light boards, the
   header and the session page's own header row (#copy-link is primary until somebody joins, then .secondary). Later rules
   of equal specificity take over from the batch-1 rules above, which stay as they are. Primary: the G1 gradient slides on
   hover and lifts 1px. Secondary: light gradient fill, gradient edge, a sheen from the start side. Danger stays the flat
   outline; disabled stays flat. The border stays 1px, so no button changes size. No session panel, the monitor or the
   simulator frame is reached by these selectors. */
[dir=rtl]{--sheen-from:0%}[dir=ltr]{--sheen-from:100%}
:where(body:not(:has(.room-head)),.masthead,.room-head) button{background:var(--action-primary-bg) 0 0/200% 100% border-box;border-color:transparent;border-radius:var(--radius-sm);transition:background-position var(--dur-gradient) var(--ease-out),transform var(--dur-fast) var(--ease-out),box-shadow var(--dur-base) var(--ease-out),background-color var(--dur-base) var(--ease-out),border-color var(--dur-base) var(--ease-out)}
:where(.room-head) button:where(:hover:not(:disabled,[aria-disabled=true])){background:var(--action-primary-bg) 100% 0/200% 100% border-box;border-color:transparent}
/* P86 slice 1 (owner): a visible hover (darker step toward --al-primary-strong, with the lift below) and a pressed step.
   P86 lead fix 2 (owner 2026-11-26, «فلشينج وحركة غريبة»): swapping the background image on hover cannot be animated, so
   the button flashed; hover and press now only move the same gradient (background-position, animated) toward its darker
   end, and the press drops the 0.97 scale jump for a flat return. Only the position is set, so a button with its own
   class and background keeps its own look.
   P86 lead fix: the hover and press are written with the same specificity as the base rule above (0,0,1), so a button with
   its own class and a light background (.marker-btn, cards, chips) keeps its own colours on hover instead of a dark teal
   fill under dark text (owner screenshot of «للنقاش», 2026-11-26). */
:where(body:not(:has(.room-head)),.masthead) button:where(:hover:not(:disabled,[aria-disabled=true])){background-position:100% 0}
:where(body:not(:has(.room-head)),.masthead) button:where(:hover:active:not(:disabled,[aria-disabled=true])){background-position:100% 0;box-shadow:inset 0 2px 5px color-mix(in srgb,var(--al-navy) 35%,transparent)}
:where(body:not(:has(.room-head)),.masthead,.room-head) button:where(:not(.danger,.choice,.link-button,.review-board-group,.aleem-sec-toggle,.fold-toggle,[aria-pressed]):hover:not(:disabled,[aria-disabled=true])){box-shadow:var(--shadow-button-lift)}
:where(body:not(:has(.room-head)),.masthead,.room-head) button:where(:not(.danger,.choice,.link-button,.review-board-group,.aleem-sec-toggle,.fold-toggle,[aria-pressed]):active:not(:disabled,[aria-disabled=true])){transform:translateY(0)}
:where(body:not(:has(.room-head)),.masthead) button:where(:not(.secondary,.danger,.choice,.link-button,.review-board-group,.aleem-sec-toggle,.fold-toggle,[aria-pressed]):active:not(:disabled,[aria-disabled=true])){background-position:100% 0}
/* P86 lead fix 2 (owner 2026-11-26: the pale secondary buttons were unclear): a clean outline - white fill, 1px
   primary-strong edge (6.9:1 on white), ink text; hover fills with sky (ink on sky well above 4.5:1), animated as a colour. */
:where(body:not(:has(.room-head)),.masthead,.room-head) button.secondary{color:var(--al-ink);background:var(--al-surface);border:1px solid var(--al-primary-strong)}
:where(body:not(:has(.room-head)),.masthead,.room-head) button.secondary:hover:where(:not(:disabled,[aria-disabled=true])){background:var(--al-sky);border-color:var(--al-primary-strong);box-shadow:var(--shadow-hover)}
:where(body:not(:has(.room-head)),.masthead,.room-head) button.secondary:active:where(:not(:disabled,[aria-disabled=true])){background:color-mix(in srgb,var(--al-sky) 75%,var(--al-primary) 25%)}
:where(body:not(:has(.room-head)),.masthead) button:disabled,:where(body:not(:has(.room-head)),.masthead) button[aria-disabled=true]{background:var(--al-disabled-bg);border-color:var(--al-disabled-bg);color:var(--al-disabled-text);box-shadow:none;transform:none}
/* P86 slice 1 (owner 2026-11-25), with the light-board buttons above (same scope, the session page excluded):
   (a) Single-line fields: Almarai draws its glyphs low in the line box (Arabic and the English fallback alike), so the text
   and the placeholder looked low. The block padding is shifted by --field-optical-shift (top less, bottom more; the field
   height is unchanged). The value is an estimate from the font's proportions, not a browser measurement: tune the token. */
:where(body:not(:has(.room-head))) input:not([type=checkbox],[type=radio],[type=range],[type=color],[type=file],[type=submit],[type=button],[type=reset],[type=image]),:where(body:not(:has(.room-head))) select:not(.compact,[multiple],[size]){padding-block:calc(11px - var(--field-optical-shift)) calc(11px + var(--field-optical-shift))}
/* P105 v9 B1 buttons: the waiting room and the dialogs of a session page wear the same approved buttons as the light boards
   (V9-A-08); the session panels keep theirs. Zero specificity on the base rule, so a button with its own class keeps its look. */
:where(body:has(.room-head)) :where(.waiting,dialog.modal) button{background:var(--action-primary-bg) 0 0/200% 100% border-box;border-color:transparent;border-radius:var(--radius-sm);color:var(--text-on-action);font-weight:var(--fw-bold);transition:background-position var(--motion-panel) var(--ease-enter),background-color var(--motion-base) var(--ease-enter),border-color var(--motion-base) var(--ease-enter)}
:where(body:has(.room-head)) :where(.waiting,dialog.modal) button:where(:hover:not(:disabled,[aria-disabled=true])){background-position:100% 0}
:where(body:has(.room-head)) :where(.waiting,dialog.modal) button.secondary{color:var(--text-strong);background:var(--surface-card);border:1px solid var(--action-secondary-border)}
:where(body:has(.room-head)) :where(.waiting,dialog.modal) button.secondary:hover:where(:not(:disabled,[aria-disabled=true])){background:var(--al-sky)}
:where(body:has(.room-head)) :where(.waiting,dialog.modal) button.danger{background:var(--surface-card);color:var(--action-danger-bg);border-color:var(--action-danger-bg)}
:where(body:has(.room-head)) :where(.waiting,dialog.modal) button.danger:hover:where(:not(:disabled,[aria-disabled=true])){background:var(--tone-danger-bg)}
:where(body:has(.room-head)) :where(.waiting,dialog.modal) button:disabled,:where(body:has(.room-head)) :where(.waiting,dialog.modal) button[aria-disabled=true]{opacity:1;background:var(--action-disabled-bg);border-color:var(--action-disabled-bg);color:var(--action-disabled-text);cursor:not-allowed;box-shadow:none}
/* §4 header: white surface, the original logo as it is (contain, 100px), one row on a computer and a tablet. */
.skip-link{position:absolute;inset-inline-start:12px;top:-200px;z-index:40;min-height:var(--control-h);padding:10px 16px;background:var(--surface-card);color:var(--text-strong);border:2px solid var(--focus-ring);border-radius:var(--radius-sm);font-weight:var(--fw-bold)}
.skip-link:focus{top:12px}
.masthead{max-width:none;padding:8px max(4%,calc((100% - 1560px)/2));background:var(--al-surface);border-bottom:1px solid var(--al-line);gap:12px 18px;flex-wrap:wrap}
.identity{flex:0 0 auto;min-height:44px}
.brand-logo{display:block;width:100px;height:auto;object-fit:contain;background:var(--al-surface)}
.brand-name{display:none;font-family:'Almarai',Tahoma,sans-serif;font-weight:800;font-size:22px;line-height:1.2;color:var(--al-ink)}
.header-meta{flex:1 1 auto;justify-content:flex-end;gap:10px 14px;font-size:14px;min-width:0}
.pilot{font-size:13px;border-color:var(--al-field-strong);color:var(--al-ink)}
#identity{gap:10px 14px;min-width:0}
.header-work,.header-org,.header-tools{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;min-width:0}
.masthead button,.masthead .aleem-entry,.workspace-nav a,.workspace-section{min-height:44px;display:inline-flex;align-items:center}
.masthead button.small{padding:6px 12px;font-size:14px}
.aleem-entry{border:0;padding:6px 4px;font-size:15px;font-weight:800;color:var(--al-ink)}
.aleem-entry:hover{background:none;text-decoration:underline}
.workspace-nav{display:flex;min-width:0}
.workspace-nav .aleem-nav{margin:0}
.workspace-nav .aleem-nav-list{border:0;padding:0;gap:4px;flex-wrap:nowrap;overflow-x:auto}
.workspace-nav .aleem-nav-list a,.workspace-section{padding:6px 10px;border:0;border-radius:0;background:none;font-size:15px;font-weight:400;color:var(--al-ink);border-bottom:3px solid transparent;white-space:nowrap}
.workspace-nav .aleem-nav-list a:hover{background:var(--al-neutral-bg)}
.workspace-nav .aleem-nav-list a[aria-current=page],.workspace-section[aria-current=page]{font-weight:800;border-bottom-color:var(--al-ink);box-shadow:none}
.account{position:relative}
.account-button .who{font-weight:700}
.account-menu{position:absolute;inset-inline-end:0;top:calc(100% + 6px);z-index:30;min-width:240px;display:grid;gap:8px;padding:12px;background:var(--al-surface);border:1px solid var(--al-field-strong);border-radius:6px;box-shadow:0 8px 24px #103B5A26;text-align:start}
.account-menu[hidden]{display:none}
.account-menu button{width:100%;justify-content:flex-start}
.account-name{margin:0 0 4px;line-height:1.6;overflow-wrap:anywhere}
.account-name b{display:block}
.account-name small{display:block;font-size:14px}
footer{font-size:13px;color:var(--al-muted)}
@media(max-width:599px){
  .masthead{padding:6px 4%;gap:6px 10px}
  .brand-logo{display:none}
  .brand-name{display:inline}
  .header-meta,#identity{display:contents}
  .pilot{order:2;font-size:var(--fs-caption);padding:3px 8px}
  .header-tools{order:3;margin-inline-start:auto;flex-wrap:nowrap}
  .header-work{order:4;flex:1 1 100%;flex-wrap:nowrap;overflow-x:auto}
  .header-org{order:5;flex:1 1 100%}
  .account-button{max-width:46vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:inline-block;line-height:30px}
}
/* §3 status chips: words + shape + border style + colour. Families from aleem.js CHIP_FAMILIES. */
.al-chip{display:inline-flex;align-items:center;gap:6px;max-width:100%;padding:2px 10px;border:1px solid var(--al-field-strong);border-radius:4px;background:var(--al-neutral-bg);color:var(--al-ink);font-size:14px;font-weight:700;line-height:1.7;vertical-align:middle}
.al-chip-icon{flex:0 0 auto;width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.al-chip-icon .al-chip-fill{fill:currentColor;stroke:none}
.al-chip-text{min-width:0;overflow-wrap:break-word}
.al-chip[data-chip=action]{color:var(--al-warning);background:var(--al-warning-bg);border-color:var(--al-warning);border-inline-start-width:4px}
.al-chip[data-chip=waiting]{border-style:dashed}
.al-chip[data-chip=review]{background:var(--al-sky);border-color:var(--al-primary-strong)}
.al-chip[data-chip=done]{color:var(--al-success);background:var(--al-success-bg);border-color:var(--al-success)}
.al-chip[data-chip=blocked]{color:var(--al-danger);background:var(--al-danger-bg);border:3px double var(--al-danger)}
.al-chip[data-chip=draft]{border-style:dashed}
.al-chip[data-chip=retired]{color:var(--al-muted);border-style:dotted}
.al-chip[data-chip=na]{color:var(--al-muted);background:var(--al-surface);border-style:dotted}
/* §5 library: light work board. Table on a wide page; cards when the content is narrower than about 900 px. */
.aleem{color:var(--al-ink)}
.aleem h1{font-size:clamp(24px,2.6vw,32px);font-weight:800;text-wrap:balance}
.aleem h2{font-size:20px;font-weight:700}
.aleem h3{font-size:17px;font-weight:700}
.aleem p{line-height:1.8}
.aleem:lang(en) p{line-height:1.6}
.aleem-readonly{border-inline-start:5px solid var(--al-ink);background:var(--al-surface);color:var(--al-ink);font-weight:700}
.aleem-summary{font-weight:400;color:var(--al-muted);font-size:14px}
.aleem-table{min-width:0}
.aleem-table th,.aleem-table td{vertical-align:top}
.aleem-table .aleem-col-case{width:46%}
.aleem-table .aleem-col-action{white-space:nowrap}
.aleem-line{display:block;margin-top:4px;font-size:14px;color:var(--al-muted)}
.aleem-open{display:inline-flex;align-items:center;min-height:44px;font-weight:700;text-decoration:underline}
.aleem-case-link{display:inline-block;padding:2px 0;font-weight:700}
.aleem-card-action{margin:6px 0}
.aleem-chips{gap:8px}
.aleem-tech{margin:10px 0;border:1px solid var(--al-line);border-radius:5px;background:var(--al-surface);padding:4px 14px}
.aleem-tech>summary{cursor:pointer;font-weight:700;padding:8px 0;color:var(--al-primary-strong);min-height:44px}
.aleem-tech[open]{padding-bottom:10px}
#aleem-claims-all{margin:4px 0 8px}
@media(max-width:979px){
  .aleem-table-wrap{display:none}
  .aleem-cards{display:grid;gap:10px}
  .aleem-card{border:1px solid var(--al-line);border-radius:5px;padding:12px 14px;background:var(--al-surface);min-width:0}
  .aleem-card-title{font-size:17px;margin:0 0 2px;overflow-wrap:break-word}
  .aleem-card-facts{display:grid;grid-template-columns:minmax(0,auto) minmax(0,1fr);gap:6px 12px;margin:0;font-size:14px;align-items:center}
  .aleem-card-facts>div{display:contents}
  .aleem-card-facts dt{color:var(--al-muted)}
  .aleem-card-facts dd{margin:0;min-width:0}
}
/* J28 / AC-L14: Arabic cells never break inside a word; long left-to-right values (ids, URLs, hashes) may. */
.ev-table th,.ev-table td{overflow-wrap:break-word;word-break:normal;hyphens:none}
.ev-field[dir=ltr],.aleem-hash,.ev-url .ev-field[data-field=url]{overflow-wrap:anywhere;word-break:break-all}
.ev-url{font-family:inherit}
.ev-link{font-family:'Almarai',Tahoma,'Segoe UI',sans-serif;letter-spacing:0}
/* P71 v5 batch 1, part B (DESIGN-SPEC §6-§8): queue groups, "My reviews", the task. Warm review surface (02) for
   "My reviews" and the task; the queue stays on the shell. Chips come from §3; no colour carries a state alone. */
body:has(#review-tasks-screen),body:has(#review-task-screen){background:var(--al-warm)}
#review-tasks-screen input,#review-task-screen input,#review-task-screen select,#review-task-screen textarea{border-color:var(--al-field-strong)}
.review-summary{margin:4px 0 10px;font-weight:700}
.review-summary a{display:inline-flex;align-items:center;min-height:44px}
.review-group{margin:18px 0 0;min-width:0}
.review-group>summary{cursor:pointer;display:list-item;min-height:44px;padding:4px 0}
.review-group>summary h2{display:inline;margin:0}
.review-group-title{font-size:20px;font-weight:700;margin:6px 0 8px}
.review-group-title:focus{outline:none}
.review-group-title:focus-visible{text-decoration:none;outline:var(--focus-width) solid var(--focus-ring);outline-offset:var(--focus-offset-heading);border-radius:var(--radius-xs)}
.review-group-count{color:var(--al-muted);font-weight:400}
.review-subgroup-title{font-size:17px;margin:12px 0 6px}
.review-row-tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:4px}
.review-action-link{font-weight:700;text-decoration:underline;display:inline-flex;align-items:center;min-height:44px}
.review-table .review-col-action .danger{white-space:normal;text-align:start}
.review-table th[scope=row]{width:40%}
.review-blocked-reason .al-chip{white-space:normal}
.review-row-note{background:none;border:0;padding:0;color:var(--al-ink)}
.review-board-group[aria-pressed=true]{background:var(--al-sky);border-color:var(--al-ink);box-shadow:inset 0 -3px 0 var(--al-ink)}
.review-board-group{color:var(--al-ink);border-color:var(--al-field-strong)}
.review-board-group:hover{background:var(--al-neutral-bg)}
/* "My reviews": the follow-up card first, its one primary action; the other cards use a secondary link. */
.button-link{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 18px;border:1px solid var(--al-field-strong);border-radius:5px;font-weight:700;text-decoration:none;background:var(--al-surface);color:var(--al-ink)}
.button-link:hover{background:var(--al-neutral-bg)}
.button-link.primary{background:var(--al-primary);border-color:var(--al-primary);color:#fff}
.button-link.primary:hover{background:var(--al-primary-strong);border-color:var(--al-primary-strong)}
.review-follow{border:1px solid var(--al-field-strong);border-inline-start:5px solid var(--al-ink);border-radius:6px;background:var(--al-surface);padding:14px 18px;margin:12px 0 4px;display:grid;gap:4px;justify-items:start}
.review-nothing{padding:12px 16px;border:1px dashed var(--al-field-strong);border-radius:6px;background:var(--al-surface);font-weight:700}
.review-nothing:focus{outline:none}
.review-tasks-list{display:grid;gap:10px}
.review-task{background:var(--al-surface);border-color:var(--al-field-strong)}
.review-task-action{margin:8px 0 2px}
.review-scope-line{margin:0;color:var(--al-muted)}
/* The task: index (not sticky, LD-06), neutral ineligible note (LD-09), stacked register rows below 900 px (J40). */
.review-index{margin:10px 0 4px}
.review-index-list{list-style:none;display:flex;flex-wrap:wrap;gap:4px 14px;margin:0;padding:0}
.review-index-list a{display:inline-flex;align-items:center;min-height:44px;font-weight:700}
.review-index-list a[aria-current=location]{text-decoration-thickness:3px}
#review-task-screen h2[tabindex="-1"]:focus{outline:none}
#review-task-screen h2[tabindex="-1"]:focus-visible{text-decoration:none;outline:none}
.review-not-eligible{margin:8px 0;padding:10px 14px;border:1px dashed var(--al-field-strong);border-radius:5px;background:var(--al-neutral-bg)}
.review-not-eligible p{margin:6px 0 0}
.review-back{margin-top:22px}
.review-item-number{font-weight:800}
.review-item-says{margin-top:6px}
.review-correction-refs li{border-top:1px solid var(--al-line);padding:8px 0;line-height:1.8}
.review-scroll-hint{margin:6px 0 2px}
.ev-counts li[data-zero=true]{border:1px solid var(--al-field-strong);border-style:solid;background:var(--al-neutral-bg);color:var(--al-ink)}
.review-decision-panel .review-alert a{white-space:nowrap}
@media(max-width:979px){
  #review-task-screen .review-scroll-hint{display:none}
  #review-task-screen .ev-scroll{border:0;overflow:visible}
  #review-task-screen .ev-table{min-width:0}
  #review-task-screen .ev-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
  #review-task-screen .ev-table,#review-task-screen .ev-table tbody,#review-task-screen .ev-table tr,#review-task-screen .ev-table td{display:block;width:100%}
  #review-task-screen .ev-table tr{border:1px solid var(--al-field-strong);border-radius:5px;margin:0 0 10px;padding:6px 12px;background:var(--al-surface);min-width:0}
  #review-task-screen .ev-table td{border:0;padding:4px 0;overflow-wrap:break-word;word-break:normal}
  #review-task-screen .ev-table td::before{content:attr(data-label);display:block;font-size:13px;color:var(--al-muted);font-weight:700}
  .review-table th[scope=row]{width:auto}
}
/* P71 v5 (J42, AC-K7-K8): the folded source under each statement opens in place; no side panel (LD-04). */
.ev-source{margin-top:6px}
.ev-source>summary{cursor:pointer;display:list-item;min-height:44px;padding:8px 0;font-weight:700;color:var(--al-primary-strong)}
.ev-source-body{padding:4px 0 6px;border-inline-start:3px solid var(--al-line);padding-inline-start:10px}
.ev-source-body p{margin:3px 0}
.ev-no-source{margin:6px 0 0}
/* P71-F2 (AC-K12, AC-A2): count chips and register markers carry a shape; a count above 0 is the warning chip, 0 neutral. */
.ev-badge{display:inline-flex;align-items:center;gap:5px;vertical-align:middle}
.ev-badge .al-chip-icon{width:14px;height:14px}
/* P71-F3 (K12, S1): only «يحتاج مراجعة» above 0 asks for action (warning + triangle); every other count is neutral. */
.ev-counts li[data-alert=false]{border:1px solid var(--al-field-strong);border-style:solid;background:var(--al-neutral-bg);color:var(--al-ink)}
.ev-counts li[data-alert=true]{border:1px solid var(--al-warning);border-inline-start-width:4px;background:var(--al-warning-bg);color:var(--al-warning)}
/* P71-F2 (AC-L12, K9): the library version page stacks its register rows below 980 px, like the task (no clipped table). */
@media(max-width:979px){
  #aleem-version .ev-scroll{border:0;overflow:visible}
  #aleem-version .ev-table{min-width:0}
  #aleem-version .ev-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
  #aleem-version .ev-table,#aleem-version .ev-table tbody,#aleem-version .ev-table tr,#aleem-version .ev-table td{display:block;width:100%}
  #aleem-version .ev-table tr{border:1px solid var(--al-field-strong);border-radius:5px;margin:0 0 10px;padding:6px 12px;background:var(--al-surface);min-width:0}
  #aleem-version .ev-table td{border:0;padding:4px 0;overflow-wrap:break-word;word-break:normal}
  #aleem-version .ev-table td::before{content:attr(data-label);display:block;font-size:13px;color:var(--al-muted);font-weight:700}
}
#aleem-sources-all{margin:8px 0}
/* P71-F2 (AC-D3, A6, J48): the dialog subject is two lines, the item then its version; no separator can start a line. */
.review-dialog-subject .review-dialog-item,.review-dialog-subject .review-dialog-version{display:block}
/* P71-F2 (AC-H13, J16): on a phone the header is two rows at most - brand, pilot, language and account on the first; the
   workspace entry and the organization chip share the second, scrolling sideways. The account button shows its label;
   the name is visually hidden there (P71-F3) and shown in its menu. */
@media(max-width:599px){
  .masthead{row-gap:4px;padding-block:4px}
  .masthead:has(.header-work,.header-org)::after{content:'';order:3;flex-basis:100%;height:0}
  .header-tools{gap:6px}
  .header-tools button.small{padding:6px 8px}
  /* P71-F3: the name stays in the accessible name (visually hidden, like .sr-only); the colon is not drawn. */
  .account-button .who{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
  .account-button .account-colon{display:none}
  .account-button{max-width:none}
  .header-work{flex:0 1 auto;min-width:0}
  .header-org{flex:1 1 0;min-width:0;flex-wrap:nowrap;overflow-x:auto}
  .header-org .context-chip{white-space:nowrap;overflow-wrap:normal}
}
/* P71-F3 (AC-L12): a long register note opens folded with its first line visible; the whole text when opened. */
.ev-note>summary{cursor:pointer;display:list-item;min-height:44px;padding:10px 0 4px}
.ev-note>summary .ev-field{display:inline}
.ev-note:not([open])>summary{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
.ev-note[open]>summary{white-space:normal}
.ev-corrections-fold{margin-top:8px}
/* P71-F3 (AC-L12): below 980 px the stacked rows of the version page put the short cells side by side, label inline. */
@media(max-width:979px){
  #aleem-version .ev-table tr{display:flex;flex-wrap:wrap;align-items:baseline;gap:0 16px;width:100%}
  #aleem-version .ev-table td{width:auto;flex:0 1 auto;min-width:0}
  #aleem-version .ev-table td:first-child,#aleem-version .ev-table td:has(.ev-note,.cor-says,.aleem-questions){flex:1 1 100%}
  #aleem-version .ev-table td::before{display:inline;margin-inline-end:6px}
  #aleem-version .ev-table td:first-child::before{display:none}
}
/* P72 batch 2 part A (docs/product/design/v5/DESIGN-SPEC-B2.md §1-§7). Batch-1 tokens, buttons and chips reused as they are. */
/* §2 sign-in: the card first (start side), the introduction after it; one column under 761px. */
@media(min-width:761px){.entry{grid-template-columns:minmax(320px,1fr) minmax(0,1.25fr);gap:5%}}
.entry-card{border-color:var(--al-line);background:var(--al-surface)}
.entry-card h1{font-size:clamp(24px,2.4vw,30px);margin:0 0 6px}
.entry-lead{margin:0 0 6px}
.tabs button{white-space:nowrap;padding:10px 12px;min-height:44px}
:where(body:not(:has(.room-head))) .tabs button{background:none;border:0;border-bottom:3px solid transparent;border-radius:0;color:var(--al-muted);font-weight:700}
:where(body:not(:has(.room-head))) .tabs button[aria-pressed=true]{color:var(--al-primary-strong);border-bottom-color:var(--al-primary-strong)}
:where(body:not(:has(.room-head))) .tabs button:hover{background:var(--al-neutral-bg)}
.intro .eyebrow{margin:0}
/* P72-F4 (F-B2-04): `.intro p` (15px) outranked `.intro-story`; the story line is a large paragraph again (spec §2.1, §2.6). */
.intro .intro-story{max-width:none;font-size:clamp(28px,3.4vw,44px);line-height:1.4;font-weight:700;color:var(--al-ink);margin:10px 0 14px}
.check-label{display:flex;align-items:center;gap:10px;min-height:44px;margin:4px 0 0;font-weight:400;cursor:pointer}
.check-label input{width:20px;height:20px;margin:0;padding:0;flex:0 0 auto;accent-color:var(--al-primary-strong)}
.signin-code-shape{display:block;margin-top:4px}
.signed-out-note{margin:0 0 14px}
.signed-out-note:empty{display:none}
/* LD-B2-03: the error box - danger family (double border, octagon with ×), drawn only when it holds text. The icon is a
   CSS mask with no content, so it is not read out and the box's text stays exactly the message. */
.form-alert:empty{display:none}
.form-alert:not(:empty){display:flex;gap:8px;align-items:flex-start;min-height:0;margin:14px 0 0;padding:10px 12px;border:3px double var(--al-danger);border-radius:4px;background:var(--al-danger-bg);color:var(--al-danger);font-size:14px;line-height:1.7}
.form-alert:not(:empty)::before{content:'';flex:0 0 16px;height:16px;margin-top:4px;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.3 1.75h5.4l3.55 3.55v5.4l-3.55 3.55H5.3L1.75 10.7V5.3z'/%3E%3Cpath d='M5.75 5.75l4.5 4.5M10.25 5.75l-4.5 4.5'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.3 1.75h5.4l3.55 3.55v5.4l-3.55 3.55H5.3L1.75 10.7V5.3z'/%3E%3Cpath d='M5.75 5.75l4.5 4.5M10.25 5.75l-4.5 4.5'/%3E%3C/svg%3E") center/contain no-repeat}
.form-alert:not(:empty)+.full{margin-top:14px}
@media(max-width:1100px) and (min-width:761px){.entry-card{padding:24px}}
@media(max-width:760px){.entry{gap:20px}.intro .intro-story{font-size:28px}.entry-card{padding:18px 16px}main:has(.entry){padding-top:16px}}
/* §2.4 one-time code: monospace 28px/700, three visual groups by margin (no space characters). */
.signin-code-box code{font-family:ui-monospace,Consolas,monospace;font-size:28px;font-weight:700;letter-spacing:.12em}
.signin-code-box .code-group+.code-group{margin-inline-start:.6em}
/* §5 chooser: one full-width button per membership, the current one with the «done» chip; status line while saving. */
.chooser{max-width:640px}
.choice{min-height:56px}
.choice .choice-line{display:block}
.choice .al-chip{margin-top:6px}
.chooser-status:empty{display:none}
#chooser-back{margin-top:16px}
/* §6 learner home: the guest form folded under «خيار آخر». */
.learner-home{max-width:1040px}
.enrol-home{border-top:0;margin-top:8px;padding-top:0}
.enrol-home #enrol-body{margin-top:8px}
.guest-fold{margin-top:20px;border-top:1px solid var(--al-line);padding-top:8px;text-align:start}
.guest-fold>summary{cursor:pointer;min-height:44px;display:flex;align-items:center;font-weight:700;color:var(--al-primary-strong)}
/* P72-F4 (F-B2-02): display:flex drops the native marker, so the fold draws its own: a chevron at the start of the
   44px summary row, pointing down while closed and up while open (direction-neutral). */
.guest-fold>summary{gap:10px;list-style:none;width:100%}
.guest-fold>summary::-webkit-details-marker{display:none}
.guest-fold>summary::before{content:"";flex:none;width:8px;height:8px;margin:0 4px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:translateY(-2px) rotate(45deg)}
.guest-fold[open]>summary::before{transform:translateY(2px) rotate(-135deg)}
.guest-fold .guest-entry{border-top:0;margin-top:0}
#learner-no-dashboard{margin-top:18px}
/* §7 instructor home: the follow-up card, chips in the rows; one column below 1024px (tablet order). */
.continue-card{margin-bottom:28px;border-inline-start:4px solid var(--al-primary)}
.continue-card h2{margin:0 0 6px;font-size:20px}
.continue-session{margin:0 0 12px;overflow-wrap:anywhere}
.room-item h3 bdi{overflow-wrap:anywhere}
@media(max-width:1023px){.dashboard-grid{grid-template-columns:minmax(0,1fr)}}
/* P72 batch 2 part B (DESIGN-SPEC-B2 §8-§9). */
/* §8 version page: a section index (not sticky) and folded sections with a heading button (LD-B2-09). */
.aleem-sec-nav{margin:14px 0 22px;padding:12px 16px;border:1px solid var(--al-line);border-radius:5px;background:var(--al-surface)}
.aleem-sec-list{list-style:none;margin:0 0 10px;padding:0;display:flex;flex-wrap:wrap;gap:4px 18px}
.aleem-sec-link{display:inline-flex;align-items:center;min-height:44px;padding:0 4px;font-weight:700}
#aleem-sections-hint{margin:8px 0 0}
.aleem-sec{border-top:1px solid var(--al-line);padding-top:4px;margin-top:14px}
.aleem-sec-summary{border-top:0;margin-top:0}
.aleem-sec-title{margin:8px 0 2px;font-size:20px}
.aleem-sec-title:focus{outline:none}
.aleem-sec-title:focus-visible{text-decoration:none;outline:var(--focus-width) solid var(--focus-ring);outline-offset:var(--focus-offset-heading);border-radius:var(--radius-xs)}
:where(body:not(:has(.room-head))) .aleem-sec-toggle{display:flex;align-items:center;gap:10px;width:100%;min-height:44px;padding:6px 4px;border:0;border-radius:0;background:none;color:var(--al-ink);font:inherit;font-weight:700;text-align:start}
:where(body:not(:has(.room-head))) .aleem-sec-toggle:hover{background:var(--al-neutral-bg)}
.aleem-sec-toggle::before{content:'';flex:0 0 auto;width:0;height:0;border-block:6px solid transparent;border-inline-start:8px solid currentColor;transition:transform var(--motion-base) var(--ease-enter)}
.aleem-sec-toggle[aria-expanded=true]::before{transform:rotate(90deg)}
[dir=rtl] .aleem-sec-toggle[aria-expanded=true]::before{transform:rotate(-90deg)}
.aleem-sec-line{margin:0 0 6px;display:flex;flex-wrap:wrap;align-items:center;gap:4px}
.aleem-sec-body[hidden]{display:none}
/* §9 item 6: the hint exists only while its table overflows. */
.review-scroll-hint[hidden]{display:none}
.review-state-blocked{margin:6px 0 0}
.review-state-blocked .al-chip{white-space:normal}
/* §9 item 9 (LD-B2-10): library cards in two columns between 600 and 979 px of viewport, one column below. */
@media(min-width:600px) and (max-width:979px){.aleem-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* P72-F4 (B2-M6): the two-column tablet library stays within 5000 px for 31 cases - tighter card padding and spacing
   there only (the phone cards and the 44px «افتح الحالة» target are unchanged). */
@media(min-width:600px) and (max-width:979px){.aleem-cards{gap:8px}.aleem-card{padding:8px 12px}.aleem-card-action{margin:2px 0}.aleem-card-facts{gap:4px 12px}}
/* P73 batch 3 part A (docs/product/design/v5/DESIGN-SPEC-B3.md §3-§5). Layout, button shape and status shapes around the
   session only: no colour changes anywhere, and the monitor and the simulator frame keep their colours and fonts (SP-06,
   LD-B3-02); the monitor rules below change size and layout only. */
/* B3-I5, B3-I12, B1 §2: a destructive action on a session page is the danger outline (surface, danger text and border). */
.room-head button.danger,.control-block button.danger,dialog.modal button.danger{background:var(--al-surface);color:var(--al-danger);border-color:var(--al-danger)}
.room-head button.danger:hover,.control-block button.danger:hover,dialog.modal button.danger:hover{background:var(--al-danger-bg)}
/* B3-I10, B3-A7: 44px targets in the room, its panels and its dialogs. */
.room-head button,.sidebar button,.control-actions button,.feedback-box button,#ended-screen button,#end-session-dialog button,#signout-live-dialog button,#restart-dialog button{min-height:44px}
.room-head-main{min-width:0}
.room-status-line{margin:6px 0 0;line-height:1.6}
.room-next{margin:2px 0 0;font-size:14px;font-weight:700;line-height:1.7;color:var(--al-ink)}
/* B3-A9: the dot is filled while live and a hollow square otherwise, so the state does not rest on colour alone. */
.live-dot{width:9px;height:9px}
.status[data-live=false] .live-dot{background:transparent;border:2px solid var(--amber);border-radius:1px}
/* B3-I1, §3.1: DOM order is the visual order in both languages: the frame on the start side, the panels on the end side. */
.workspace,.workspace>*{direction:inherit}
.feedback-box{direction:inherit}
.feedback-save{margin-top:10px}
/* B3-I9 (LD-B3-03): the frame is as tall as the window (at least 640px); no container clips it. */
.console-frame{height:max(640px,calc(100vh - 16px));min-height:0}
@supports (height:100dvh){.console-frame{height:max(640px,calc(100dvh - 16px))}}
/* B3-I10: on a tablet the panels follow the frame in one column, in the same order. */
@media(max-width:1100px){.sidebar{grid-template-columns:minmax(0,1fr)}}
/* B3-I11 (LD-B3-14): running a session is not supported on a phone; nothing is hidden or disabled because of it. */
.room-phone-note{display:none}
@media (max-width:599px){.room-phone-note{display:block}}
/* B3-L10 (LD-B3-06): the stage card's text in Almarai instead of Georgia; its headings keep their own rule. */
.candidate-stage{font-family:'Almarai',Tahoma,'Segoe UI',sans-serif}
/* B3-L6: on a phone the four main readings sit in a 2x2 grid under the waveforms; nothing scrolls sideways. F-B3-01: the
   waveforms keep their full 325px height there (the four channel lines are drawn at fixed fractions of the height with a
   fixed amplitude, so a shorter canvas hid the ECG II label and made the channels overlap). */
@media (max-width:599px){.monitor-body{grid-template-columns:minmax(0,1fr)}.monitor-body{min-height:0}.monitor canvas{height:325px}.vitals{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px;border-left:0}.vital b{font-size:32px}}
/* B3-O5: the unconfirmed sign-out, in the danger family of the error box (batch 2). */
.signout-live-failed{margin:12px 0 0;padding:10px 12px;border:3px double var(--al-danger);border-radius:4px;background:var(--al-danger-bg);color:var(--al-danger)}
.signout-live-failed h3{margin:0 0 4px;font-size:16px}
.signout-live-failed h3:focus{outline:none}
.signout-live-failed p{margin:0}
/* P73 batch 3 part B (docs/product/design/v5/DESIGN-SPEC-B3.md §6-§9). Layout and shape only; colours come from the tokens. */
/* B3-S2/S8: the summary's action area - one primary action, wrapping, 44px targets. */
.summary-actions{flex-wrap:wrap;gap:10px;margin:12px 0}
.summary-actions button,.summary-actions .button-link,.summary-refresh button{min-height:44px}
/* B3-T2, B3-V1: a question asked inside a dialog (finalize, discard, remove a browser) - the error-box family, no new colour. */
.inline-confirm{margin:12px 0;padding:10px 12px;border:1px solid var(--al-field-strong);border-inline-start-width:4px;border-radius:4px;background:var(--al-surface)}
.inline-confirm p{margin:0 0 8px;font-weight:700}
.inline-confirm p:focus{outline:none}
.inline-confirm .row{flex-wrap:wrap;gap:8px}
.inline-confirm button,#assessment-dialog .assess-actions button,#devices-dialog button{min-height:44px}
#assessment-finalize-consequence{margin:4px 0 0}
/* B1 §2 / B3-D5/D6/V1: destructive row actions in the danger outline. */
.admin button.danger,#devices-dialog button.danger,.inline-confirm button.danger{background:var(--al-surface);color:var(--al-danger);border-color:var(--al-danger)}
.admin button.danger:hover,#devices-dialog button.danger:hover,.inline-confirm button.danger:hover{background:var(--al-danger-bg)}
.device-revoke{display:inline-flex;flex-direction:column;align-items:flex-start;gap:4px;max-width:22rem}
.device-consequence{font-size:13px;line-height:1.5}
/* B3-D1: the admin index (LD-B2-09 pattern: not sticky, plain links). */
.admin-sections-nav{margin:0 0 16px}
.admin-sections-nav ul{display:flex;flex-wrap:wrap;gap:4px 14px}
.admin-sections-nav a{display:inline-flex;align-items:center;min-height:44px;font-weight:700}
.admin-sections-nav a[aria-current=true]{text-decoration-thickness:3px}
/* B3-D2: «needs your action». */
.admin-needs{margin-bottom:20px}
.admin-needs-items li{margin:6px 0}
.admin-needs-items a{display:inline-flex;flex-wrap:wrap;align-items:center;gap:6px;min-height:44px}
/* B3-D4 (LD-B3-11): a folded section keeps only its heading row; folding hides, it removes nothing. */
.admin-fold[data-folded=true]>:not(.fold-head){display:none}
.admin-fold h2 .fold-toggle{all:unset;display:inline-flex;align-items:center;gap:8px;min-height:44px;cursor:pointer;font:inherit;color:inherit}
.admin-fold h2 .fold-toggle::before{content:"";width:8px;height:8px;border-inline-end:2px solid currentColor;border-block-end:2px solid currentColor;transform:rotate(45deg);transition:transform var(--motion-base) var(--ease-enter)}
.admin-fold h2 .fold-toggle[aria-expanded=false]::before{transform:rotate(-45deg)}
[dir=rtl] .admin-fold h2 .fold-toggle[aria-expanded=false]::before{transform:rotate(135deg)}
.admin-fold h2 .fold-toggle:focus-visible{outline:2px solid var(--al-focus);outline-offset:2px}
.admin-fold[data-folded=true]{padding-block:10px}
/* B3-A9: the session state chip has a shape as well as its word (filled dot running, hollow square ended). */
.state-badge{display:inline-flex;align-items:center;gap:6px}
.state-badge::before{content:"";width:8px;height:8px;border-radius:50%;background:currentColor}
.state-badge[data-state=ended]::before{border-radius:1px;background:transparent;border:2px solid currentColor;width:6px;height:6px}
.admin .room-item button,.admin .member-row button,.admin .member-row select{min-height:44px}
@media(max-width:1100px){.admin .member-row{flex-direction:column;align-items:stretch}.admin .member-row .row{flex-wrap:wrap}}
/* P73-F2 (B3-D9, B3-A9): the clinical review line has a shape as well as its words (check when approved, dashed ring
   otherwise); the fingerprint sits under a folded «Version details». */
.c4-review{display:flex;align-items:center;gap:6px}
.c4-review::before{content:"";flex:0 0 auto;width:8px;height:8px;border:2px dashed currentColor;border-radius:50%}
.c4-review[data-review-status=approved]::before{border:0;border-radius:0;width:5px;height:9px;border-inline-end:2px solid currentColor;border-block-end:2px solid currentColor;transform:rotate(45deg)}
.c4-version-details{margin-top:4px}
.c4-version-details summary{cursor:pointer;min-height:44px;display:flex;align-items:center}
.code-example{margin:4px 0 0}

/* P73 (spec B3 §13, K7): every target is at least 44px tall at tablet and phone widths on the light work boards
   (measured failures: refresh buttons, «المصادر والأدلة», the case picker, the library filters, queue row buttons). The
   session room (.room-head pages) is not touched. */
@media (max-width:979px){
  #refresh-rooms,#refresh-memberships,#refresh-approvals,#case-evidence,#case-id,
  #aleem-filters select,#aleem-filters-summary,
  button[data-row-action],.review-row-primary,.review-row-withdraw,#aleem-later>summary{min-height:44px}
  #aleem-later>summary{display:flex;align-items:center}
}
/* P74 batch 4 (docs/product/design/v5/DESIGN-SPEC-B4.md §1, §3, §4). Layout and shape only; colours come from the tokens. */
/* B4-R2/R4: Back first in the head, the lifecycle line, the row title as h3 beside its chip, one meta line. */
.rubrics .section-head #rubrics-back{margin:0 0 10px}
.rubrics-lifecycle{font-size:14px;line-height:1.7}
.rubric-row-head{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px}
.rubric-row-title{margin:0;font-size:16px;line-height:1.5;overflow-wrap:anywhere}
.rubric-meta{margin:2px 0 0;line-height:1.7}
.rubric-row-actions{flex-wrap:wrap}
/* B4-R5: the inline error right after the field; said in words, marked by a bar as well as the colour. */
p.field-error{margin:4px 0 0;padding-inline-start:8px;border-inline-start:3px solid var(--al-danger);color:var(--al-danger);font-size:14px;font-weight:700;line-height:1.6}
.rubrics [aria-invalid=true]{border-color:var(--al-danger);border-width:2px}
/* B4-R8 (LD-B4-09): the folded template criteria. */
.template-fold{margin:8px 0 12px}
.template-fold>summary{display:flex;align-items:center;min-height:44px;cursor:pointer;font-weight:700}
.template-fold[open]>summary{margin-bottom:4px}
/* lead (design check of b4-after/51): display:flex drops the native marker, so the fold shows the guest fold's chevron and reads as expandable */
.template-fold>summary{gap:10px;list-style:none;color:var(--al-primary-strong)}
.template-fold>summary::-webkit-details-marker{display:none}
.template-fold>summary::before{content:"";flex:none;width:8px;height:8px;margin:0 4px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:translateY(-2px) rotate(45deg)}
.template-fold[open]>summary::before{transform:translateY(2px) rotate(-135deg)}
/* F-B4-02 (design check): the rubric rows' «Show the criteria» fold gets the same chevron at every width (display:flex below 980px dropped the native marker) */
.rubric-details>summary{display:flex;align-items:center;gap:10px;list-style:none;cursor:pointer}
.rubric-details>summary::-webkit-details-marker{display:none}
.rubric-details>summary::before{content:"";flex:none;width:8px;height:8px;margin:0 4px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:translateY(-2px) rotate(45deg)}
.rubric-details[open]>summary::before{transform:translateY(2px) rotate(-135deg)}
/* F-B4-06 (design check): the rubric list's row actions and the two Refresh buttons are 44px tall at tablet and phone widths */
@media (max-width:979px){.rubric-row button,#refresh-rubrics,#refresh-templates,[data-crit-remove],#crit-add{min-height:44px}}
/* B4-C9 / B4-A3: dialog buttons and moved controls are 44px tall at tablet and phone widths. */
@media (max-width:979px){
  dialog.modal .modal-actions button,#rubrics-back,.rubric-details>summary{min-height:44px}
  .rubric-details>summary{display:flex;align-items:center}
}
/* B4-S4/S8 (LD-B4-04): the ordinary sign-out failure inside the account menu, in the danger family of .signout-live-failed. */
.account-menu{max-width:min(320px,100vw - 24px)}
.account-menu .signout-failed{margin:0;padding:10px 12px;border:3px double var(--al-danger);border-radius:4px;background:var(--al-danger-bg);color:var(--al-danger);overflow-wrap:anywhere;white-space:normal}
.account-menu .signout-failed p{margin:0;line-height:1.6}
.account-menu .signout-failed #signout-failed-title{margin:0 0 4px;font-weight:700}
.account-menu .signout-failed #signout-failed-title:focus{outline:none}
.account-menu .signout-failed #signout-failed-title:focus-visible{outline:2px solid var(--al-focus);outline-offset:2px}
.account-menu #logout{white-space:normal;text-align:start}
@media (max-width:979px){.account-menu #logout{min-height:44px}}
/* P76-S3/S5 (architecture §7m; SIGNIN-JOURNEYS §1): passkey sign-in block, enrolment card, «الدخول والأجهزة» sections,
   password step-up and change-password form. Tokens only; status by icon + text, never colour alone. */
.pk-signin{margin:14px 0 0}
.pk-or{display:flex;align-items:center;gap:10px;margin:0 0 12px;color:var(--al-muted);font-size:14px}
.pk-rule{flex:1 1 auto;height:1px;background:var(--al-line)}
.pk-note{display:flex;gap:8px;align-items:flex-start;margin:10px 0 0;font-size:14px;line-height:1.7;color:var(--al-ink)}
.pk-note:empty{display:none}
.pk-note[data-kind=done]{color:var(--al-success)}
.pk-note[data-kind=error]{color:var(--al-danger)}   /* F-P76-04: an error says so in words, octagon and colour */
/* F-P76-02 (design check): the folded «لا تستطيع استعمال مفتاحك؟» and «غيّر كلمة المرور» keep a visible open/closed chevron at
   every width (display:flex below 980px removed the native marker), as the template and guest folds do. */
.pk-lost>summary,.pw-change>summary{display:flex;align-items:center;gap:10px;list-style:none}
.pk-lost>summary::-webkit-details-marker,.pw-change>summary::-webkit-details-marker{display:none}
.pk-lost>summary::before,.pw-change>summary::before{content:"";flex:none;width:8px;height:8px;margin:0 4px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:translateY(-2px) rotate(45deg)}
.pk-lost[open]>summary::before,.pw-change[open]>summary::before{transform:translateY(2px) rotate(-135deg)}
.pk-icon{flex:0 0 16px;width:16px;height:16px;margin-top:4px}
.pk-lost{margin:12px 0 0;text-align:start}
.pk-lost summary{cursor:pointer;font-size:14px;color:var(--al-primary-strong);padding:4px 0}
.pk-lost summary:focus-visible,.pw-change summary:focus-visible{outline:2px solid var(--al-focus);outline-offset:2px}
.pk-lost-steps{margin:8px 0 6px;padding-inline-start:20px;font-size:14px;line-height:1.9}
.pk-card{max-width:880px;margin:0 0 18px;background:var(--al-surface);border:1px solid var(--al-line);border-inline-start:4px solid var(--al-primary)}
.pk-card h2{font-size:19px;margin:0 0 6px}
.pk-card h2:focus{outline:none}.pk-card h2:focus-visible{outline:2px solid var(--al-focus);outline-offset:2px}
.pk-card .error:empty{display:none}
.pk-actions{gap:10px;flex-wrap:wrap;margin-top:12px}
.pk-done-title{display:flex;gap:8px;align-items:flex-start;color:var(--al-success)}
.link-button{background:transparent;border:0;color:var(--al-primary-strong);padding:8px 0;text-decoration:underline;font-weight:400}
.link-button:hover{background:transparent;color:var(--al-ink)}
.pk-shared{margin-top:6px;text-align:start}
.pk-reauth{margin:12px 0;padding:12px 14px;border:1px solid var(--al-line);border-radius:5px;background:var(--al-shell)}
.pk-reauth h3{font-size:16px;margin:0 0 4px}
.pk-reauth .error:empty,.security-section .error:empty,#pw-form .error:empty{display:none}
.security-section{border-top:1px solid var(--al-line);margin-top:16px;padding-top:12px}
.security-section h3{font-size:16px;margin:0 0 4px}
.security-section h3:focus{outline:none}.security-section h3:focus-visible{outline:2px solid var(--al-focus);outline-offset:2px}
.pk-list{margin-top:8px}
.pk-row{gap:10px;flex-wrap:wrap;align-items:flex-start}
.pk-row-text{min-width:0;overflow-wrap:anywhere}
.pk-row small{color:var(--al-muted);line-height:1.8}
.pk-row-actions{display:flex;gap:8px;flex-wrap:wrap}
.pk-used-now{display:inline-flex;gap:4px;align-items:center}.pk-used-now .pk-icon{margin-top:0;width:12px;height:12px;flex-basis:12px}
.pk-rename{flex-basis:100%;margin-top:8px}
.pw-change summary{cursor:pointer;color:var(--al-primary-strong);padding:4px 0}
#pw-form label{display:block;margin-top:10px}#pw-form input{width:100%}#pw-form button{margin-top:12px}
@media (max-width:979px){
  .pk-signin button,.pk-card button,.pk-reauth button,.security-section button,.pk-lost summary,.pw-change summary,#devices-dialog .inline-confirm button{min-height:44px}
  .pk-lost summary,.pw-change summary{display:flex;align-items:center}
}
@media (max-width:760px){.pk-card .pk-actions button,.pk-reauth .pk-actions button{width:100%}}
/* P83 v6 F1 (docs/product/design/v6/tokens.css, prototypes/v6-cards and v6-dashboards "card edges"): white cards on the
   light boards get the visible edge (line-card), radius 14 and the card shadow; tiles and folds inside a card get the edge
   and radius 10 without a shadow. A coloured inline-start accent bar keeps its colour (only the other three edges change
   there). The panels beside the live frame and the student's monitor column, the feedback box and the released card keep
   their batch-3 look (live frame chrome is a later slice). Tokens only; no new colour here. */
.panel:not(:where(.sidebar *,.candidate-layout *,.feedback-box,.released-card)),.entry-card,.room-item,.aleem-card,.aleem-version,.aleem-sec-nav,.review-task,.review-state-box,.review-decision-panel,.review-preparers,.review-rounds,.review-rereview,.review-what-changed,.review-items{border-block-color:var(--line-card);border-inline-end-color:var(--line-card);border-radius:var(--radius-md);box-shadow:var(--shadow-card)}
.panel:not(:where(.sidebar *,.candidate-layout *,.feedback-box,.released-card,.continue-card,.control-block,.pk-card)),.entry-card,.room-item,.aleem-card,.aleem-version,.aleem-sec-nav,.review-task:not(:where(.review-follow)),.review-state-box,.review-preparers,.review-rounds,.review-what-changed,.review-items{border-inline-start-color:var(--line-card)}
.ev-version div,.aleem-status>div,.control-facts div,.aleem-tech,.review-version-details{border-color:var(--line-card);border-radius:var(--radius-sm)}
.review-item{border-block-color:var(--line-card);border-inline-end-color:var(--line-card);border-radius:var(--radius-sm)}
.choice{border-radius:var(--radius-sm)}
dialog.modal{border-color:var(--line-card);border-radius:var(--radius-md);box-shadow:var(--shadow-overlay)}
/* v6 chips: pill shape; every family keeps its words, icon, border style and colours (AC-L6, no colour alone). */
.al-chip,.badge,.ev-badge,.review-state,.review-item-state,.review-flag{border-radius:var(--radius-pill)}
/* The link styled as a button follows the same two looks (secondary by default, .primary the G1 gradient). */
.button-link{border:1px solid var(--al-primary-strong);border-radius:var(--radius-sm);background:var(--al-surface);color:var(--al-ink);transition:background-color var(--dur-base) var(--ease-out),background-position var(--dur-gradient) var(--ease-out),transform var(--dur-fast) var(--ease-out),box-shadow var(--dur-base) var(--ease-out)}
.button-link:hover{background-color:var(--al-sky);transform:translateY(-1px);box-shadow:var(--shadow-hover)}
.button-link.primary{border-color:transparent;background:var(--action-primary-bg) 0 0/200% 100% border-box}
.button-link.primary:hover{border-color:transparent;background-position:100% 0;box-shadow:var(--shadow-button-lift)}
.button-link.primary:active{background-position:100% 0;transform:none;box-shadow:inset 0 2px 5px color-mix(in srgb,var(--al-navy) 35%,transparent)}
.button-link:active{transform:translateY(0)}
/* v6 motion: 150-180 ms ease-out on work surfaces, no bounce; under reduced motion nothing animates or transitions. */
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}
/* P83 v6 F2 (owner decisions V6-5, V6-6; prototypes/v6-signin/signin.html): the sign-in screen. The lab scene and the card
   are two grid areas that never overlap: two columns from 1024px (the scene on the start side, the card beside it), one
   column below (the scene a band above the card). The card stays first in the DOM, so the focus order is unchanged. The
   lab is always fitted whole (SVG "meet"). Tokens only; the scene sky approximates the v6 token --scene (CEEAF5) from --al-sky, held on .entry
   until :root carries it. Below 600px the band is compact (the story line, the lab and Stop motion; no eyebrow, body or
   caption) so the submit button stays on the first screen (B2-S4). */
main:has(.entry){max-width:none;padding:0;min-height:0}
.entry{--al-scene:color-mix(in srgb,var(--al-sky) 95%,var(--al-primary));display:grid;grid-template-columns:minmax(0,1fr) clamp(380px,32vw,480px);gap:0;align-items:stretch;padding:0;min-height:calc(100dvh - 118px)}
.entry .entry-card{grid-column:2;grid-row:1;align-self:center;min-width:0;margin:clamp(20px,4vh,40px) clamp(20px,2.4vw,36px);padding:28px}
.entry .signin-scene{grid-column:1;grid-row:1;min-width:0;display:grid;grid-template-rows:auto minmax(240px,1fr) auto;gap:clamp(8px,1.6vh,18px);margin:0;padding:clamp(20px,4vh,40px) clamp(20px,3vw,48px) clamp(14px,3vh,28px);background:var(--al-scene)}
.signin-scene-top{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}
.signin-scene-copy{display:grid;gap:8px;max-width:640px;min-width:0}
.signin-scene .eyebrow{margin:0;font-size:13px;max-width:none}
.signin-scene .intro-story{margin:0;max-width:none;font-size:clamp(26px,3.1vw,44px);font-weight:800;line-height:1.2;color:var(--al-ink);text-wrap:balance}
.signin-scene .intro-body{margin:0;max-width:58ch;font-size:clamp(14px,1.1vw,16px);line-height:1.7;color:var(--al-muted)}
.signin-scene .signin-motion{flex:none;display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:6px 14px;font-size:13px;font-weight:700;line-height:1.3;white-space:nowrap;color:var(--al-ink);background:color-mix(in srgb,var(--al-surface) 75%,transparent);border:1px solid var(--line-card);border-radius:var(--radius-pill);box-shadow:none;transform:none}
.signin-scene .signin-motion:hover,.signin-scene .signin-motion:active{background:var(--al-surface);border-color:var(--al-field-strong);color:var(--al-ink);box-shadow:none;transform:none}
.signin-ring{width:18px;height:18px;flex:none;transform:rotate(-90deg)}
.signin-ring circle{fill:none;stroke-width:3}
.signin-ring .bg{stroke:var(--line-card)}
.signin-ring .fg{stroke:var(--al-gold);stroke-dasharray:44;stroke-dashoffset:44}
.signin-stage{position:relative;min-height:0}
.signin-lab{position:absolute;inset:0;width:100%;height:100%;display:block;overflow:hidden}
.signin-video{display:block;width:100%;height:100%;object-fit:fill}
.signin-zone{transition:fill-opacity .35s,stroke-opacity .35s}
.signin-caption{display:flex;align-items:baseline;flex-wrap:wrap;gap:2px 10px;min-height:2.6em;margin:0;font-size:14px;line-height:1.6;color:var(--al-muted)}
.signin-caption b{color:var(--al-ink);font-size:15px}
.signin-dot{flex:none;align-self:center;width:9px;height:9px;border-radius:50%;background:var(--al-gold);box-shadow:0 0 0 3px color-mix(in srgb,var(--al-gold) 30%,transparent)}
/* The card: a segmented method switch (the pressed side is a raised white pill), 46px fields, a 48px submit button. */
.entry .tabs{display:grid;grid-template-columns:1fr 1fr;gap:4px;margin:0 0 20px;padding:4px;border:0;border-radius:12px;background:var(--al-neutral-bg)}
.entry .tabs button{min-height:44px;padding:8px 10px;border:0;border-radius:9px;background:transparent;color:var(--al-muted);font-weight:700;box-shadow:none;transform:none}
.entry .tabs button:hover{background:color-mix(in srgb,var(--al-surface) 55%,transparent);color:var(--al-ink);box-shadow:none;transform:none}
.entry .tabs button[aria-pressed=true],.entry .tabs button[aria-pressed=true]:hover{background:var(--al-surface);color:var(--al-ink);font-weight:800;box-shadow:var(--shadow-card)}
.entry .entry-card h1{font-size:clamp(22px,2vw,26px);font-weight:800;line-height:1.3}
.entry input:not([type=checkbox]){min-height:46px;padding:10px 12px;font-size:16px;border:1px solid var(--al-field-strong);border-radius:var(--radius-sm)}
.entry .full{min-height:48px;border-radius:12px}
.entry .signin-code>summary{padding:10px 0;min-height:44px}
@media (max-width:1023px){
  .entry{grid-template-columns:minmax(0,1fr);min-height:0}
  .entry .signin-scene{grid-column:1;grid-row:1;grid-template-rows:auto auto auto;padding:20px clamp(16px,4vw,40px) 14px}
  .entry .entry-card{grid-column:1;grid-row:2;align-self:start;justify-self:center;width:calc(100% - 32px);max-width:520px;margin:24px 16px 36px}
  .signin-stage{height:clamp(230px,50vw,460px)}
}
@media (max-width:599px){
  .entry .signin-scene{gap:6px;padding:10px 16px 8px}
  .signin-scene-top{align-items:center}
  .signin-scene .intro-story{font-size:19px;line-height:1.25}
  .signin-scene .eyebrow,.signin-scene .intro-body,.signin-caption{display:none}
  .signin-stage{height:clamp(150px,40vw,190px)}
  .entry .entry-card{width:calc(100% - 24px);margin:12px 12px 28px;padding:16px 14px}
  .entry .tabs{margin-bottom:14px}
}
/* Short computer screens: the copy tightens so the lab keeps its height. */
@media (min-width:1024px) and (max-height:760px){
  .signin-scene .intro-body{display:none}
  .signin-scene .intro-story{font-size:clamp(24px,2.4vw,34px)}
}
/* P83 v6 F3 (owner decisions V6-14, V6-15, V6-16; prototypes/v6-dashboards, v6-journey): the application shell. A navy
   sidebar (232px; P86 slice 1 below: 256/280px, sticky) on the start side of every signed-in light page - the original logo file, the destinations of the
   account, «تسجيل الخروج» at the bottom of the first screen - and the masthead as the light top bar (context chip and
   switch first, the pilot chip, the language toggle and the account button at the end). Below 900px an icon rail
   (72px), below 620px a bar at the bottom of the phone. Not fixed or sticky on a computer (it scrolls with the page); the
   phone bar is fixed and short. Session pages (/room/CODE: src/ui/shell.js) and the sign-in page (.entry) never show it. Two-tone icons:
   a faint white fill inside each shape, the current page in sand at 62% with a sand bar on the start edge. Tokens only
   (--al-sand is the identity sand on :root). */
.al-ic{width:var(--icsz,24px);height:var(--icsz,24px);fill:none;stroke:currentColor;stroke-width:var(--icw,1.75);stroke-linecap:round;stroke-linejoin:round;flex:none;display:block}
[dir=rtl] .al-ic-dir{transform:scaleX(-1)}
.context-chip .al-ic{--icsz:16px;display:inline-block;vertical-align:-3px;margin-inline-end:6px}
.account-button .al-ic{--icsz:18px;margin-inline-end:6px}
/* P86 slice 1 (owner 2026-11-25; docs/product/design/v7-polish/README.md §3.3, lead decisions): the sidebar is larger, grouped
   and stays in view. 256px (280px from 1600px); 48px items, 16px words, 24px icons; group headers (role=group) only when the
   account sees two groups or more; the current page is a tint, bold words, a 4px sand bar and aria-current; 2px focus ring
   drawn inside the item. On a computer at least 560px tall the inner column is sticky and full height: the brand and the
   footer (assistant, account, sign-out) stay put and the lists scroll. 621-900px: an 80px rail with a tooltip on hover and
   keyboard focus (Escape hides it, src/ui/shell.js). <=620px: the phone bar as before (data-slot keeps today's first three),
   only the label is 12px. Motion: a visible hover step with a faint bar preview, the current bar grows in on change, and one
   short staggered fade-in on the first drawing (<=240ms); everything stops under prefers-reduced-motion (rule above). */
/* P86 slice 1 tokens (README §3.1, §3.2): the 13px caption floor of the light boards, the phone bar label, the shared page
   padding and board width, the optical centring of single-line fields (Almarai sits low in its line box; an estimate, see the
   field rule at the end of the file), and the primary button's hover and pressed steps (white text 6.86:1 and 7.96:1). */
:root{--fs-caption:13px;--fs-nav-phone:12px;--page-pad:clamp(20px,2.5vw,40px);--page-max-board:1600px;--field-optical-shift:.125em;--btn-primary-hover:linear-gradient(120deg,var(--al-primary-strong) 0%,color-mix(in srgb,var(--al-primary-strong) 88%,var(--al-navy)) 100%);--btn-primary-press:color-mix(in srgb,var(--al-primary-strong) 80%,var(--al-navy))}
:root{--nav-w:256px;--nav-rail:80px;--nav-hover-bg:color-mix(in srgb,var(--al-surface) 10%,transparent);--nav-current-bg:color-mix(in srgb,var(--al-surface) 16%,transparent);--nav-divider:color-mix(in srgb,var(--al-surface) 28%,var(--al-navy));--nav-group-ink:color-mix(in srgb,var(--al-surface) 72%,var(--al-navy))}
@media (min-width:1600px){:root{--nav-w:280px}}
body.app-nav-on{position:relative;min-height:100dvh;padding-inline-start:var(--nav-w)}
body.app-nav-on:has(#app .entry){padding-inline-start:0}
body:has(#app .entry) .app-nav{display:none}
.app-nav{position:absolute;inset-block:0;inset-inline-start:0;width:var(--nav-w);z-index:5;background:var(--al-navy);color:color-mix(in srgb,var(--al-surface) 86%,var(--al-navy));--duo:color-mix(in srgb,var(--al-surface) 20%,transparent)}
.app-nav-inner{display:flex;flex-direction:column;gap:6px;min-height:100dvh;padding:14px 12px}
.app-nav-brand{display:flex;flex:none;align-items:center;gap:10px;padding:4px 6px 12px}
.app-nav-logo{width:44px;height:44px;flex:none;object-fit:contain;background:var(--al-surface);border-radius:var(--radius-sm);padding:2px}
.app-nav-brand-text{display:grid;min-width:0}
.app-nav-brand-text b{color:var(--al-surface);font-size:15px;font-weight:800;line-height:1.3}
.app-nav-brand-text small{color:color-mix(in srgb,var(--al-surface) 70%,var(--al-navy));font-size:var(--fs-caption);line-height:1.4}
.app-nav-scroll{display:flex;flex-direction:column;gap:4px}
.app-nav-list,.app-nav-more-panel{list-style:none;margin:0;padding:0;display:grid;gap:4px}
.app-nav-group{display:grid;gap:4px;margin-top:6px;padding-top:8px;border-top:1px solid var(--nav-divider)}
.app-nav-group-title{display:block;padding:2px 14px;font-size:var(--fs-caption);font-weight:700;line-height:1.5;color:var(--nav-group-ink)}
.app-nav .app-nav-item{position:relative;display:flex;align-items:center;gap:12px;width:100%;min-height:48px;padding:12px 14px;border:0;border-radius:var(--radius-sm);background:transparent;color:inherit;font:inherit;font-size:16px;font-weight:400;line-height:1.4;text-align:start;text-decoration:none;box-shadow:none;transform:none;cursor:pointer;transition:background-color var(--dur-fast) var(--ease-out),color var(--dur-fast) var(--ease-out)}
.app-nav .app-nav-item::before{content:'';position:absolute;inset-inline-start:-12px;top:8px;bottom:8px;width:4px;border-radius:4px;background:var(--al-sand);opacity:0;transform:scaleY(.3);transition:opacity var(--dur-fast) var(--ease-out),transform var(--dur-base) var(--ease-out);pointer-events:none}
.app-nav .app-nav-item:hover{background:var(--nav-hover-bg);color:var(--al-surface);box-shadow:none;transform:none;--duo:color-mix(in srgb,var(--al-surface) 32%,transparent)}
.app-nav .app-nav-item:hover::before{opacity:.45;transform:scaleY(.6)}
.app-nav .app-nav-item:active{transform:none;background:color-mix(in srgb,var(--al-surface) 13%,transparent)}
.app-nav .app-nav-item[aria-current=page]{background:var(--nav-current-bg);color:var(--al-surface);font-weight:700;--duo:color-mix(in srgb,var(--al-sand) 62%,transparent)}
.app-nav .app-nav-item[aria-current=page]::before{opacity:1;transform:none;animation:app-nav-bar-in var(--dur-warm) var(--ease-out)}
@keyframes app-nav-bar-in{from{opacity:0;transform:scaleY(.2)}to{opacity:1;transform:none}}
.app-nav .app-nav-item:focus-visible,.app-nav .app-nav-brand:focus-visible{outline:2px solid var(--al-focus-dark);outline-offset:-2px}
.app-nav .app-nav-item .al-ic{--icsz:24px}
.app-nav-label{flex:1;min-width:0;overflow-wrap:anywhere}
.app-nav-foot{margin-top:auto;padding-top:8px;border-top:1px solid color-mix(in srgb,var(--al-surface) 10%,transparent)}
.app-nav-more-li,.app-nav-more-panel{display:none}
.app-nav-intro .app-nav-brand,.app-nav-intro .app-nav-group-title,.app-nav-intro .app-nav-list>li{animation:app-nav-in 140ms var(--ease-out) both;animation-delay:calc(var(--i,0) * 12ms)}
@keyframes app-nav-in{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
@media (min-width:901px) and (min-height:560px){
  .app-nav-inner{position:sticky;top:0;height:100vh;height:100dvh;min-height:0}
  .app-nav-scroll{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;margin-inline:-12px;padding:2px 12px;scrollbar-width:thin;scrollbar-color:var(--nav-divider) transparent}
  .app-nav-foot{flex:none;margin-top:0}
}
body.app-nav-on #workspace-nav{display:none}
body.app-nav-on footer{max-width:none}
body.app-nav-on .context-chip{display:inline-flex;align-items:center;border-radius:var(--radius-sm);background:var(--al-shell)}
@media (min-width:621px){
  body.app-nav-on .masthead{padding:10px max(var(--page-pad),calc((100% - var(--page-max-board)) / 2));justify-content:flex-start}
  body.app-nav-on .masthead>.identity{display:none}
  body.app-nav-on .header-meta,body.app-nav-on #identity{display:contents}
  body.app-nav-on .header-org{order:1;flex:0 1 auto}
  body.app-nav-on .header-work{order:2}
  body.app-nav-on .pilot{order:3;margin-inline-start:auto}
  body.app-nav-on .header-tools{order:4}
  body.app-nav-on .context-chip{min-height:40px;padding:6px 10px;font-size:13.5px}
  /* P86 slice 1 (README §3.2): one inline padding for the header and the page, boards up to 1600px of content; a screen root
     with data-layout="full" (wide tables) has no cap. The certificate print view and the sign-in page keep their own rules. */
  body.app-nav-on:not(.cert-page-on) main:not(:has(.entry)){max-width:calc(var(--page-max-board) + 2 * var(--page-pad));padding-inline:var(--page-pad)}
  body.app-nav-on:not(.cert-page-on) main:has(>[data-layout=full]){max-width:none}
}
@media (max-width:900px){
  body.app-nav-on{padding-inline-start:var(--nav-rail)}
  .app-nav{width:var(--nav-rail)}
  .app-nav-inner{padding:12px 8px}
  .app-nav-brand{justify-content:center;padding-inline:0}
  .app-nav-brand-text,.app-nav-group-title,.app-nav .app-nav-label{display:none}
  .app-nav .app-nav-item{justify-content:center;min-height:56px;padding:10px 0}
  .app-nav .app-nav-item::before{inset-inline-start:-8px}
}
@media (min-width:621px) and (max-width:900px){
  .app-nav{z-index:15}
  .app-nav-group,.app-nav-scroll>.app-nav-list[data-group]{margin-top:4px;padding-top:6px;border-top:1px solid var(--nav-divider)}
  /* The tooltip: the item's own label beside the item on the inline-end side (left in Arabic, right in English). The
     transparent start border bridges the gap so the pointer can move onto it (WCAG 1.4.13 hoverable). */
  .app-nav .app-nav-item:is(:hover,:focus-visible) .app-nav-label{display:block;position:absolute;inset-inline-start:100%;top:50%;transform:translateY(-50%);z-index:2;flex:none;width:max-content;max-width:240px;padding:6px 12px;border-inline-start:10px solid transparent;border-radius:var(--radius-sm);background:var(--al-navy) padding-box;color:var(--al-surface);font-size:14px;font-weight:700;line-height:1.4;overflow-wrap:normal;box-shadow:var(--shadow-overlay)}
  .app-nav.app-nav-tips-off .app-nav-item .app-nav-label{display:none}
}
@media (max-width:620px){
  body.app-nav-on{padding-inline-start:0;padding-bottom:calc(68px + env(safe-area-inset-bottom,0px))}
  .app-nav{position:fixed;inset-block:auto 0;inset-inline:0;width:auto;z-index:25}
  /* The groups and lists dissolve into one bar (display:contents); the destinations stay in today's order. */
  .app-nav-inner{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:2px;min-height:0;padding:6px 4px calc(6px + env(safe-area-inset-bottom,0px))}
  .app-nav-scroll,.app-nav-foot,.app-nav-group,.app-nav-inner .app-nav-list{display:contents}
  .app-nav-brand,.app-nav-group-title,.app-nav-signout-li{display:none}
  .app-nav[data-many=true] li[data-slot]:not([data-slot="0"],[data-slot="1"],[data-slot="2"]){display:none}
  .app-nav[data-many=true] .app-nav-more-li{display:block}
  .app-nav .app-nav-item{flex-direction:column;justify-content:center;gap:2px;min-height:52px;padding:6px 2px;font-size:var(--fs-nav-phone);text-align:center}
  .app-nav .app-nav-item .al-ic{--icsz:20px}
  .app-nav .app-nav-label{display:block;flex:none;line-height:1.3}
  .app-nav .app-nav-item::before{inset-inline-start:25%;inset-inline-end:25%;top:auto;bottom:-6px;width:auto;height:3px}
  .app-nav .app-nav-item:hover::before{opacity:0}
  .app-nav .app-nav-item[aria-current=page]::before{opacity:1}
  .app-nav-more-panel:not([hidden]){display:grid;position:absolute;inset-inline-end:8px;bottom:calc(100% + 6px);min-width:220px;max-width:calc(100vw - 16px);padding:8px;background:var(--al-navy);border-radius:var(--radius-md);box-shadow:var(--shadow-overlay)}
  .app-nav-more-panel .app-nav-item{flex-direction:row;justify-content:flex-start;font-size:14px;text-align:start}
  body.app-nav-on #toast{bottom:calc(80px + env(safe-area-inset-bottom,0px))}
}
/* P83 v6 F4 (owner decisions V6-16 with V6-14/V6-15; prototypes/v6-dashboards): the home screen of each role. Greeting and
   date, one navy «next step» card first, four KPI tiles (two-tone icon on a warm round backdrop, value, label, source line),
   then the main list beside a side column (needs your attention, the review notice). The learner home is the warm surface
   (learning-warm background, warm cards, the record as a timeline). Tokens only; warm and live tints are mixed from them. */
:root{--home-warm-card:color-mix(in srgb,var(--al-surface) 82%,var(--al-warm));--home-warm-line:color-mix(in srgb,var(--al-warm) 60%,var(--al-sand));--home-live-dot:var(--al-success);--home-sky-duo:color-mix(in srgb,var(--al-sky) 85%,var(--al-primary))}
.home-hello{display:flex;flex-wrap:wrap;gap:4px 14px;align-items:baseline;margin:0 0 4px;line-height:1.6}
.home-greeting{font-weight:700;font-size:15px;color:var(--al-ink)}
.home-date{font-size:13.5px;color:var(--al-muted)}
.home-next-slot:empty{display:none}
.home-next-slot{margin-bottom:18px}
.panel.home-next{position:relative;overflow:hidden;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px 18px;align-items:center;padding:20px;background:var(--al-navy);color:var(--al-surface);border:0;border-radius:var(--radius-md);box-shadow:var(--shadow-card);--duo:color-mix(in srgb,var(--al-sand) 35%,transparent)}
.panel.home-next::after{content:'';position:absolute;inset-inline-end:-60px;top:-60px;width:200px;height:200px;border-radius:50%;border:28px solid color-mix(in srgb,var(--al-sky) 6%,transparent);pointer-events:none}
.home-next h2{color:var(--al-surface);font-size:21px;line-height:1.4;margin:2px 0}
.home-next p{margin:0;line-height:1.7}
.home-next .home-next-body,.home-next .continue-session,.home-next #continue-more{color:color-mix(in srgb,var(--al-surface) 80%,var(--al-navy));font-size:14px}
.home-next .continue-session b{color:var(--al-surface)}
.home-next-kicker{display:flex;gap:8px;align-items:center;font-size:var(--fs-caption);font-weight:700;color:var(--al-sand)}
.home-next-kicker .al-ic{--icsz:16px}
.home-next-actions{position:relative;z-index:1;display:flex;flex-wrap:wrap;gap:8px}
.home-next button,.home-next .button-link{min-height:44px;display:inline-flex;align-items:center;gap:8px}
.home-next button .al-ic{--icsz:18px}
.home-next button:focus-visible{outline-color:var(--al-focus-dark)}
.continue-card.home-next{grid-template-columns:minmax(0,1fr);margin-bottom:0}
.continue-card.home-next>#continue-session{position:relative;z-index:1;justify-self:start;background:var(--grad-button-live) 0 0/200% 100% border-box}
.home-live-dot{display:inline-block;flex:none;width:9px;height:9px;border-radius:50%;background:var(--home-live-dot);box-shadow:0 0 0 3px color-mix(in srgb,var(--home-live-dot) 30%,transparent)}
.home-kpis-slot{margin-bottom:18px}
.home-kpis-slot[aria-busy=true]{min-height:0;margin:0}
.home-kpi-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.home-kpi{position:relative;display:grid;gap:2px;align-content:start;padding:12px 14px;padding-inline-end:62px;min-height:96px;background:var(--al-surface);border:1px solid var(--line-card);border-radius:var(--radius-md);box-shadow:var(--shadow-card)}
.home-kpi-ico{position:absolute;top:12px;inset-inline-end:12px;display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:var(--al-warm);color:var(--al-ink);--duo:var(--home-sky-duo)}
.home-kpi-ico .al-ic{--icsz:22px;--icw:1.9}
.home-kpi-value{display:flex;align-items:center;gap:8px;font-size:26px;font-weight:800;line-height:1.2;font-variant-numeric:tabular-nums}
.home-kpi.is-zero .home-kpi-value{color:var(--al-muted)}
.home-kpi-label{font-size:13px;font-weight:700;color:var(--al-ink)}
.home-kpi-src{font-size:var(--fs-caption);color:var(--al-muted);line-height:1.5}
.dashboard-grid.home-cols{grid-template-columns:minmax(0,1fr) minmax(280px,340px);grid-template-areas:'main new' 'main side';align-items:start;gap:18px}
.home-cols>.home-main{grid-area:main;min-width:0}
.home-cols>.home-new{grid-area:new;min-width:0}
.home-cols>.home-side{grid-area:side;display:grid;gap:14px;min-width:0}
.home-attention h2{display:flex;gap:8px;align-items:center;font-size:17px;margin-bottom:10px}
.home-attention h2 .al-ic{--icsz:18px;color:var(--al-primary-strong)}
.home-todo{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.home-todo li{display:grid;grid-template-columns:auto minmax(0,1fr);gap:10px;align-items:start;font-size:14px}
.home-todo a{display:inline-block;min-height:24px;font-weight:700;text-decoration:none;color:var(--al-primary-strong)}
.home-todo a:hover{text-decoration:underline;text-underline-offset:3px}
.home-todo small{display:block;font-size:var(--fs-caption);color:var(--al-muted)}
.home-todo-ico{display:grid;place-items:center;width:32px;height:32px;border-radius:12px;background:var(--al-warm);color:var(--al-ink);--duo:var(--home-sky-duo)}
.home-todo-ico.is-warn{background:var(--al-warning-bg);color:var(--al-warning);--duo:color-mix(in srgb,var(--al-sand) 55%,transparent)}
.home-todo-ico .al-ic{--icsz:18px}
.home-attn-empty{margin:0;color:var(--al-muted);font-size:14px}
.home-review-notice{display:flex;gap:8px;align-items:flex-start;padding:10px 12px;border-radius:var(--radius-sm);background:var(--al-warning-bg);color:var(--al-warning);font-size:13px;line-height:1.7;border-inline-start:3px solid var(--al-warning)}
.home-review-notice .al-ic{--icsz:18px;margin-top:2px}
.home-review-notice b{color:var(--al-ink)}
/* Learner home: the warm surface, warm cards, the record as a timeline. */
.role-screen.learner-home{background:var(--al-warm);border-color:var(--home-warm-line)}
.learner-home .my-records,.learner-home #enrol-form{background:var(--home-warm-card);border:0;border-radius:var(--radius-lg);box-shadow:var(--shadow-card);padding:16px 18px}
.learner-home .my-records{margin-top:18px}
.home-timeline-box{margin-top:12px}
.home-timeline-title{font-size:15px;margin:0 0 8px}
.home-timeline{list-style:none;margin:0;padding:0;display:grid}
.home-timeline li{position:relative;display:grid;grid-template-columns:20px minmax(0,1fr);gap:10px;padding-bottom:12px;font-size:14px}
.home-timeline li::before{content:'';position:absolute;inset-inline-start:9px;top:18px;bottom:0;width:2px;background:var(--home-warm-line)}
.home-timeline li:last-child::before{display:none}
.home-timeline small{display:block;font-size:var(--fs-caption);color:var(--al-muted)}
.home-timeline-pt{width:20px;height:20px;margin-top:2px;border-radius:50%;background:var(--al-warm);border:2px solid var(--home-warm-card);box-shadow:0 0 0 1px var(--home-warm-line)}
.home-timeline-pt.is-on{background:var(--al-sand)}
/* Aleem team: the honest counts above the library. */
#aleem-kpis{margin:6px 0 16px}
@media (max-width:1100px){
  .home-kpi-list{grid-template-columns:repeat(2,minmax(0,1fr))}
  .dashboard-grid.home-cols{grid-template-columns:minmax(0,1fr);grid-template-areas:'new' 'main' 'side'}
}
@media (max-width:620px){
  .panel.home-next{grid-template-columns:minmax(0,1fr);padding:16px}
  .home-next h2{font-size:18px}
  .home-kpi{padding-inline-end:58px;min-height:0}
  .home-kpi-value{font-size:22px}
}
@media (max-width:380px){.home-kpi{padding:48px 12px 10px}.home-kpi-ico{width:32px;height:32px;top:10px}.home-kpi-ico .al-ic{--icsz:18px}}   /* P83 (lead): phones keep two tiles per row, as in the approved v6 dashboard; the icon sits above the value */
/* P83 v6 F5 (owner decision V6-17 with V6-13; prototypes/v6-journey «جلسة جديدة», «غرفة الانتظار», «الجلسة»): the new-session
   page (/staff#new), the session-code box and copied state, the learner's waiting card, and the dark top bar of a running
   session. Motion (V6-13): only the live chip pulses, the waiting ring breathes calmly, the copied ripple and check play
   once; reduced motion stops all of them. The room's own rules (frame, monitor, readings) are not restated here; the bar
   is drawn on the class .room-bar that src/app.js adds to the session header. Tokens only. */
/* New-session page: breadcrumb, heading, the form panel beside the review notice. */
.ns-view{display:grid;gap:6px}
.ns-crumb{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:0 0 2px;font-size:var(--fs-caption);color:var(--al-muted)}
.ns-crumb a{display:inline-flex;align-items:center;min-height:24px;font-weight:700;color:var(--al-primary-strong);text-decoration:none}
.ns-crumb a:hover{text-decoration:underline;text-underline-offset:3px}
.ns-crumb .al-ic{--icsz:14px}
.ns-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,320px);gap:18px;align-items:start}
.ns-grid>*{min-width:0}
.ns-panel{border-radius:var(--radius-md);box-shadow:var(--shadow-card);border-color:var(--line-card)}
.ns-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.ns-actions button{min-height:44px}
.home-new-open{display:inline-flex;align-items:center;gap:8px;min-height:44px;margin-top:12px}
.home-new-open .al-ic{--icsz:18px}
@media (max-width:1100px){.ns-grid{grid-template-columns:minmax(0,1fr)}}
/* The copy-link button: icon and words; the copied state (live gradient border, light green fill, check, ripple). */
button.copy-link{position:relative;overflow:hidden;isolation:isolate;display:inline-flex;align-items:center;justify-content:center;gap:8px}
button.copy-link .al-ic{--icsz:16px}
button.copy-link.is-copied,button.copy-link.is-copied:hover{color:var(--al-success);border-color:transparent;background:var(--grad-button-copied-fill) padding-box,var(--grad-button-live) border-box}
button.copy-link.is-copied .al-ic{animation:f5-pop 380ms var(--ease-spring-warm)}
@keyframes f5-pop{0%{transform:scale(.3);opacity:0}100%{transform:scale(1);opacity:1}}
.copy-ripple{position:absolute;z-index:-1;border-radius:50%;background:color-mix(in srgb,var(--al-primary) 28%,transparent);transform:scale(0);animation:f5-ripple 650ms var(--ease-out) forwards;pointer-events:none}
@keyframes f5-ripple{to{transform:scale(1);opacity:0}}
/* The instructor's session-code box (navy), shown until the first learner is admitted. */
.room-share{display:grid;gap:4px;margin:0 0 18px;padding:18px 20px;border-radius:var(--radius-md);background:var(--al-navy);color:var(--al-surface);box-shadow:var(--shadow-card)}
.room-share-label{font-size:var(--fs-caption);font-weight:700;color:var(--al-sand)}
.room-share-code{justify-self:start;font-family:var(--mono);font-size:34px;font-weight:700;line-height:1.3;letter-spacing:.18em;direction:ltr;unicode-bidi:isolate}
.room-share p{margin:0;font-size:13.5px;line-height:1.7;color:var(--codebox-text)}
/* The learner's waiting card: warm, centred, a calm ring; the session and the learner's own name; the review chip. */
.panel.wait-card{display:grid;justify-items:center;gap:8px;max-width:560px;margin:36px auto;padding:30px 22px;background:var(--home-warm-card);border:1px solid var(--home-warm-line);border-radius:var(--radius-lg);box-shadow:var(--shadow-card);text-align:center}
.wait-card h1{margin:2px 0;font-size:clamp(22px,3vw,28px);line-height:1.5}
.wait-card p{margin:0}
.wait-ring{position:relative;display:grid;place-items:center;width:84px;height:84px;margin-bottom:6px;border-radius:50%;background:var(--al-sky);color:var(--al-primary-strong)}
.wait-ring .al-ic{--icsz:36px;--icw:1.6}
.wait-ring::after{content:'';position:absolute;inset:-8px;border-radius:50%;border:2px solid var(--wait-ring-line);animation:f5-breathe 2.4s ease-in-out infinite}
@keyframes f5-breathe{0%,100%{transform:scale(.94);opacity:.5}50%{transform:scale(1.04);opacity:1}}
.wait-facts{display:grid;grid-template-columns:auto minmax(0,1fr);gap:6px 14px;margin:8px 0 2px;font-size:14px;text-align:start}
.wait-facts div{display:contents}
.wait-facts dt{color:var(--al-muted)}
.wait-facts dd{margin:0;font-weight:700;overflow-wrap:anywhere}
.wait-review{display:inline-flex;align-items:center;gap:6px;padding:4px 12px;border-radius:var(--radius-pill);background:var(--al-warning-bg);color:var(--al-warning);font-size:var(--fs-caption);font-weight:700}
.wait-review .al-ic{--icsz:16px}
/* The running session's top bar (instructor and admitted learner): dark panel, light words, #connection as the live chip. */
.room-bar{align-items:center;gap:10px 16px;margin-bottom:18px;padding:12px 16px;background:var(--sim-panel);color:var(--sim-ink);border:1px solid var(--sim-border);border-radius:var(--radius-md)}
.room-bar .eyebrow{color:var(--al-sand)}
.room-bar h1{margin:0;font-size:clamp(19px,2vw,23px);line-height:1.45;color:var(--sim-ink)}
.room-bar .status{color:var(--sim-muted)}
.room-bar .status[data-live=true]{display:inline-flex;align-items:center;padding:3px 10px;border-radius:var(--radius-pill);background:var(--live-chip-dark);color:var(--live-on-dark);font-weight:700}
.room-bar .status[data-live=true] .live-dot{position:relative;background:var(--live-dot)}
.room-bar .status[data-live=true] .live-dot::after{content:'';position:absolute;inset:0;border-radius:50%;background:var(--live-dot);animation:f5-pulse var(--dur-pulse) cubic-bezier(.2,.6,.3,1) infinite}
@keyframes f5-pulse{0%{transform:scale(1);opacity:.55}100%{transform:scale(2.8);opacity:0}}
.room-bar .status[data-live=false] .live-dot{border-color:var(--al-sand)}
.room-bar .room-next{color:var(--sim-ink)}
.room-bar .action-status{color:var(--sim-muted)}
.room-bar .action-status[data-state=saving]{color:var(--al-sand)}
.room-bar .action-status[data-state=blocked],.room-bar .action-status[data-state=unsaved]{color:var(--danger-on-dark)}
.room-bar .room-code{color:var(--sim-ink)}
.room-bar :focus-visible{outline-color:var(--al-focus-dark)}
@media (prefers-reduced-motion:reduce){.room-bar .live-dot::after,.wait-ring::after,button.copy-link .al-ic{animation:none!important}.copy-ripple{display:none}}
/* P83 F6 */
/* P83 v6 F6 (owner decision V6-17 with V6-13; prototypes/v6-journey «ملخص الجلسة», «السجلات», «حسابي», «خرجت بأمان»): the session
   summary (breadcrumb, count tiles drawn with the F4 tile, the actions panel, the log as a timeline), the ended card, the
   records table (cells stack on a phone with their column name), the account page and the signed-out card with the
   approved check. Motion (V6-13): the check settles, draws, echoes once and scatters ten checks once; reduced motion shows
   the static check and no spark. Tokens only; tints are mixed from them. */
.f6-pan{background:var(--al-surface);border:1px solid var(--line-card);border-radius:var(--radius-md);box-shadow:var(--shadow-card);padding:14px 16px;display:grid;gap:10px;align-content:start;min-width:0}
.f6-pan>h2{display:flex;gap:8px;align-items:center;margin:0;font-size:17px;line-height:1.4}
.f6-pan>h2 .al-ic{--icsz:18px;color:var(--al-primary-strong)}
.f6-pan>p{margin:0}
.f6-muted{color:var(--al-muted);font-size:14px;line-height:1.7}
.f6-row{display:flex;flex-wrap:wrap;gap:8px}
.f6-row button{min-height:44px;display:inline-flex;align-items:center;gap:8px}
.f6-row button .al-ic{--icsz:18px}
/* Summary */
#summary-screen{display:grid;gap:16px}
#summary-screen>p{margin:0}
.f6-sum-head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:12px 18px}
.f6-sum-title{display:grid;gap:4px;min-width:0}
.f6-sum-title h1{margin:0;line-height:1.35;overflow-wrap:anywhere}
.f6-sum-title #summary-meta{margin:0;font-size:13.5px}
.ns-crumb .eyebrow{margin:0;font-size:inherit;font-weight:400;letter-spacing:0;text-transform:none;color:var(--al-muted)}
.f6-sum-head .report-export{display:grid;gap:4px;max-width:360px}
.f6-sum-head .report-export h3{margin:0;font-size:14px}
.f6-sum-head .report-export button{min-height:44px}
.f6-sum-kpis{margin:0}
.f6-sum-kpis .home-kpi-value{justify-content:flex-start}
.f6-sum-cols{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:16px;align-items:start}
.f6-sum-main{display:grid;gap:16px;min-width:0}
.f6-sum-cols .panel.f6-pan{margin:0}
.f6-sum-actions .summary-actions{display:flex;flex-wrap:wrap;gap:8px;margin:0}
.f6-sum-actions .summary-actions>*{min-height:44px;display:inline-flex;align-items:center}
.summary-audit.f6-pan .summary-refresh{display:flex;flex-wrap:wrap;gap:6px 12px;align-items:center}
.summary-audit.f6-pan .summary-refresh button{min-height:44px}
.f6-tl{list-style:none;margin:0;padding:0;display:grid}
.f6-tl>li{position:relative;display:grid;grid-template-columns:14px minmax(0,1fr);gap:10px;padding-bottom:12px;font-size:14px;border:0;margin:0}
.f6-tl>li::before{content:'';position:absolute;inset-inline-start:6px;top:18px;bottom:0;width:2px;background:var(--al-line)}
.f6-tl>li:last-child::before{display:none}
.f6-tl-dot{width:14px;height:14px;margin-top:5px;border-radius:50%;background:var(--al-sky);border:2px solid var(--al-primary);box-sizing:border-box}
.f6-tl>li>div{min-width:0;overflow-wrap:anywhere}
.f6-tl small{display:block;color:var(--al-muted);font-size:var(--fs-caption)}
.f6-tl p{margin:2px 0 0}
@media (max-width:1100px){.f6-sum-cols{grid-template-columns:minmax(0,1fr)}}
/* The ended card (room): calm and centred, the check in a soft disc. */
.panel.f6-ended{display:grid;justify-items:center;gap:6px;max-width:560px;margin:36px auto;padding:30px 22px;text-align:center;border-color:var(--line-card);border-radius:var(--radius-lg);box-shadow:var(--shadow-card)}
.f6-ended h1{margin:2px 0;font-size:clamp(22px,3vw,28px);line-height:1.5}
.f6-ended p{margin:4px 0 0}
.f6-ended button{min-height:44px}
.f6-ended a{display:inline-flex;align-items:center;min-height:44px}
.f6-ended-mark{display:grid;place-items:center;width:72px;height:72px;margin-bottom:4px;border-radius:50%;background:var(--al-success-bg);color:var(--al-success)}
.f6-ended-mark .al-ic{--icsz:34px;--icw:1.6}
/* Records table (the «my records» dialog). */
.f6-tbl{width:100%;border-collapse:separate;border-spacing:0;background:var(--al-surface);border:1px solid var(--line-card);border-radius:var(--radius-md);overflow:hidden;font-size:14px}
.f6-tbl th,.f6-tbl td{text-align:start;padding:10px 12px;border-top:1px solid var(--al-line);vertical-align:middle}
.f6-tbl thead th{border-top:0;background:var(--al-neutral-bg);color:var(--al-muted);font-size:var(--fs-caption);font-weight:700}
.f6-tbl tbody th{font-weight:400}
.f6-tbl tbody th b{display:block}
.f6-sub{display:block;color:var(--al-muted);font-size:var(--fs-caption);overflow-wrap:anywhere}
.f6-tbl button{min-height:44px;white-space:nowrap}
@media (max-width:620px){
  .f6-tbl,.f6-tbl tbody,.f6-tbl tr,.f6-tbl th,.f6-tbl td{display:block}
  .f6-tbl thead{display:none}
  .f6-tbl tbody tr{border-top:1px solid var(--line-card);padding:8px 0}
  .f6-tbl tbody tr:first-child{border-top:0}
  .f6-tbl tbody th,.f6-tbl tbody td{border-top:0;padding:4px 12px}
  .f6-tbl tbody td[data-l]::before{content:attr(data-l);display:block;color:var(--al-muted);font-size:var(--fs-caption)}
}
/* Account page. */
.f6-view{display:grid;gap:6px}
.f6-head h1{margin:0}
.f6-acc{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:10px}
.f6-kv{display:grid;grid-template-columns:auto minmax(0,1fr);gap:6px 14px;margin:0;font-size:14px}
.f6-kv dt{color:var(--al-muted)}
.f6-kv dd{margin:0;font-weight:700;overflow-wrap:anywhere}
.f6-mono{font-family:var(--mono);font-weight:400}
.f6-plain{list-style:none;margin:0;padding:0;display:grid;gap:2px}
.f6-lang{display:grid;gap:6px}
.f6-label{font-size:13px;font-weight:700}
.f6-seg{display:inline-flex;flex-wrap:wrap;gap:3px;padding:3px;border-radius:12px;background:var(--al-neutral-bg);justify-self:start}
.f6-view .f6-seg .f6-seg-btn{min-height:44px;padding:6px 14px;border:0;border-radius:9px;background:transparent;color:var(--al-muted);font-weight:700;box-shadow:none;transform:none}
.f6-view .f6-seg .f6-seg-btn:hover{background:color-mix(in srgb,var(--al-surface) 55%,transparent);color:var(--al-ink);box-shadow:none;transform:none}
.f6-view .f6-seg .f6-seg-btn[aria-pressed=true],.f6-view .f6-seg .f6-seg-btn[aria-pressed=true]:hover{background:var(--al-surface);color:var(--al-ink);box-shadow:var(--shadow-card)}
@media (max-width:760px){.f6-acc{grid-template-columns:minmax(0,1fr)}}
/* Signed-out card. */
.f6-center{display:grid;place-items:center;min-height:calc(100dvh - 200px);padding:32px 16px}
.f6-ccard{width:min(480px,100%);display:grid;gap:14px;justify-items:center;text-align:center;padding:26px;background:var(--al-surface);border:1px solid var(--line-card);border-radius:var(--radius-lg);box-shadow:var(--shadow-overlay)}
.f6-logo{width:100px;height:100px;object-fit:contain;background:var(--al-surface);border-radius:var(--radius-md)}
.f6-ccard h1{margin:0;font-size:clamp(22px,3vw,28px);line-height:1.4}
.f6-ccard .f6-c{margin:0;color:var(--al-muted);font-size:14px;line-height:1.7}
.f6-ccard .f6-again{min-height:48px;padding-inline:22px}
.okmark{justify-self:center;width:96px;height:96px;border-radius:50%;background:var(--al-success-bg);display:grid;place-items:center;position:relative;animation:f6-okin 480ms var(--ease-out) backwards}
.okmark svg{width:60px;height:60px;overflow:visible}
.okmark .okc,.okmark .okp{fill:none;stroke:var(--al-success);stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:1;stroke-dashoffset:0}
.okmark .okc{stroke-width:2.5;animation:f6-okdraw 800ms var(--ease-out) 250ms backwards}
.okmark .okp{stroke-width:3.5;animation:f6-okdraw 650ms var(--ease-out) 1000ms backwards}
.okmark::after{content:'';position:absolute;inset:-9px;border-radius:50%;border:2px solid color-mix(in srgb,var(--al-success) 22%,var(--al-surface));animation:f6-okecho 1500ms var(--ease-out) 1600ms backwards}
.okmark .spark{position:absolute;left:50%;top:50%;width:var(--s,14px);height:var(--s,14px);margin:calc(var(--s,14px) / -2);opacity:0;pointer-events:none;color:var(--c);animation:f6-okburst 2000ms cubic-bezier(.15,.7,.3,1) calc(1600ms + var(--d,0ms)) backwards}
.okmark .spark:nth-of-type(4n+1){--c:var(--al-success)}
.okmark .spark:nth-of-type(4n+2){--c:var(--al-primary)}
.okmark .spark:nth-of-type(4n+3){--c:var(--al-sand)}
.okmark .spark:nth-of-type(4n){--c:var(--live-dot)}
.okmark .spark svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:3.2;stroke-linecap:round;stroke-linejoin:round;overflow:visible}
@keyframes f6-okburst{0%{transform:translate(0,0) scale(.3) rotate(0deg);opacity:0}18%{opacity:1}70%{opacity:1}100%{transform:translate(var(--dx),var(--dy)) scale(1) rotate(var(--rot));opacity:0}}
@keyframes f6-okin{from{transform:scale(.8);opacity:0}}
@keyframes f6-okdraw{from{stroke-dashoffset:1}}
@keyframes f6-okecho{from{transform:scale(.85);opacity:0}45%{transform:scale(1.12);opacity:1}}
.f6-ccard.is-static .okmark,.f6-ccard.is-static .okmark::after,.f6-ccard.is-static .okc,.f6-ccard.is-static .okp{animation:none}
.f6-ccard.is-static .spark{display:none}
@media (prefers-reduced-motion:reduce){.okmark,.okmark::after,.okmark .okc,.okmark .okp{animation:none!important}.okmark .spark{display:none}}
/* P83 U1a */
/* P83 U1a (contract A; prototypes/v6-dashboards «جلساتي» upcoming row, «تبدأ خلال 40 دقيقة» next step): the upcoming
   schedules on the instructor and org admin homes, the «Start now / Schedule for later» choice and the schedule fields of
   the new-session page. Layout and shape only; colours come from the tokens. */
.sch-slot[hidden]{display:none}
.panel.sch-upcoming{margin-block-end:18px;border-radius:var(--radius-md);border-color:var(--line-card);box-shadow:var(--shadow-card)}
.sch-upcoming h2{display:flex;align-items:center;gap:8px;font-size:19px;margin:0 0 10px}
.sch-upcoming h2 .al-ic{--icsz:20px;color:var(--al-primary-strong)}
.sch-upcoming h2:focus{outline:none}
.sch-upcoming h2:focus-visible{outline:3px solid var(--al-focus);outline-offset:4px}
.sch-note{margin:0 0 10px;color:var(--al-muted);font-size:13px;line-height:1.7}
.sch-status{margin:0 0 10px;padding:8px 12px;border-radius:var(--radius-sm);background:var(--al-success-bg);color:var(--al-success);font-size:14px;line-height:1.7;overflow-wrap:anywhere}
.sch-status:empty{display:none}
.sch-list{margin:0;padding:0;list-style:none}
.sch-row{align-items:flex-start}
.sch-row:focus{outline:3px solid var(--al-focus);outline-offset:2px}
.sch-row[aria-busy=true]{opacity:.75}
.sch-main{display:grid;gap:4px;min-width:0;flex:1 1 220px}
.sch-main h3{margin:0;overflow-wrap:anywhere}
.sch-meta{display:flex;flex-wrap:wrap;gap:4px 14px;margin:0;color:var(--al-muted);font-size:13px;line-height:1.7}
.sch-meta>span{display:inline-flex;align-items:center;gap:5px;min-width:0;overflow-wrap:anywhere}
.sch-meta .al-ic{--icsz:16px;flex:0 0 auto}
.sch-code{font-weight:700;letter-spacing:1px;color:var(--al-ink)}
.sch-error{margin:4px 0 0;min-height:0}
.sch-acts{flex:0 1 auto;justify-content:flex-end;gap:8px}
.sch-acts .al-chip{margin-top:0}
.sch-acts button{min-height:44px}
.home-next .sch-next-error{flex-basis:100%;margin:0;padding:6px 10px;border-radius:var(--radius-sm);background:var(--al-danger-bg);color:var(--al-danger);font-size:14px;line-height:1.7}
.home-next .sch-next-error .control-code{color:inherit}
/* New-session page: the choice (two radio cards) and the schedule fields. */
.sch-when{margin:0 0 4px;padding:0;border:0;min-width:0}
.sch-when legend{padding:0;margin:0 0 8px;font-size:14px;font-weight:700}
.sch-when-opts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.sch-when-opt{display:flex;align-items:center;gap:10px;min-height:48px;margin:0;padding:8px 12px;border:1px solid var(--line-card);border-radius:var(--radius-sm);background:var(--al-surface);cursor:pointer;font-weight:700;transition:background-color var(--dur-fast) var(--ease-out),border-color var(--dur-fast) var(--ease-out)}
.sch-when-opt input{margin:0;flex:0 0 auto;width:18px;height:18px;accent-color:var(--al-primary-strong)}
.sch-when-opt span{display:inline-flex;align-items:center;gap:6px;min-width:0}
.sch-when-opt .al-ic{--icsz:18px;color:var(--al-primary-strong)}
.sch-when-opt:hover{border-color:var(--al-primary-strong)}
.sch-when-opt:has(input:checked){border-color:var(--al-primary-strong);background:var(--al-sky);box-shadow:inset 0 0 0 1px var(--al-primary-strong)}
.sch-when-opt:has(input:focus-visible){outline:3px solid var(--al-focus);outline-offset:2px}
.sch-when-opt input:focus-visible{outline:none}
.sch-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:0 12px}
.sch-fields[hidden]{display:none}
.sch-field{min-width:0}
.sch-fields input{min-height:44px}
.sch-fields .sch-note{grid-column:1/-1;margin:10px 0 0}
@media (max-width:420px){.sch-when-opts{grid-template-columns:minmax(0,1fr)}.sch-acts{justify-content:flex-start}}
@media (prefers-reduced-motion:reduce){.sch-when-opt{transition:none}}
/* P83 U1b: after-session reflection (contract B; prototypes/v6-journey SCR.reflect). Tokens only. */
.f6-ended .refl-slot{justify-self:stretch;width:100%;margin-top:14px;text-align:start}
.refl-slot .error{margin:0}
.refl-card>h2,.refl-list-pan>h2{font-size:17px}
.refl-field{display:grid;gap:4px;min-width:0}
.refl-field label{margin:8px 0 0}
.refl-field textarea{min-height:96px;max-width:100%;border-color:var(--al-field-strong);border-radius:var(--radius-sm)}
.refl-field textarea:focus-visible{outline:3px solid var(--al-focus);outline-offset:2px}
.refl-count{justify-self:end;font-size:var(--fs-caption);color:var(--al-muted)}
.refl-acts{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-top:10px}
.refl-acts button{min-height:44px}
.refl-status{font-size:14px;color:var(--al-success)}
.refl-card form .error:empty{min-height:0}
.refl-card #reflection-saved-at{margin:0}
.refl-slot>button{min-height:44px}
.refl-list{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.refl-entry{border-top:1px solid var(--line);padding-top:10px;min-width:0}
.refl-entry h3{margin:0;font-size:15px}
.refl-entry small{display:block;margin-top:2px}
.refl-entry dl{margin:8px 0 0;display:grid;gap:4px}
.refl-entry dt{font-size:13px;font-weight:700;color:var(--al-muted)}
.refl-entry dd{margin:0 0 6px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8}
/* P83 U1c */
/* P83 U1c: rights and language reviews (contract C). Three independent rows per version, never one verdict. Tokens only. */
.kind-reviews{border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--card);padding:4px 18px 14px;margin:16px 0;min-width:0}
.kind-reviews h2{margin:12px 0 6px;font-size:18px}
.kind-independent{margin:0 0 10px;font-weight:700;overflow-wrap:anywhere}
.kind-rows{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.kind-row{border-top:1px solid var(--line);padding-top:10px;min-width:0}
.kind-row p{margin:6px 0;overflow-wrap:anywhere}
.kind-row-head{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.kind-row-title{margin:0;font-size:16px}
.kind-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.kind-actions button,.kind-task .button-link,#review-kind-tasks-retry,#review-kinds-retry{min-height:44px}
.kind-code{display:inline-block;color:var(--al-muted);margin-inline-start:4px}
.kind-task-meta{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.kind-human{border-inline-start:3px solid var(--al-primary);padding-inline-start:10px;overflow-wrap:anywhere}
.kind-decide,.kind-task-version{border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--card);padding:4px 18px 14px;margin:16px 0;min-width:0}
.kind-decide h2,.kind-task-version h2{margin:12px 0 6px;font-size:18px}
.kind-tasks{margin-top:20px}
#review-kind-decision-dialog textarea{width:100%;min-height:96px;box-sizing:border-box}

/* P83 e2e (lead): at 600-979 px the F3 icon rail (72 px) narrows the two-column library, so its cards are tighter there
   (P72-F4 budget: 31 cards at most 5000 px tall at 834 px). */
@media(min-width:600px) and (max-width:979px){body.app-nav-on .aleem-cards{gap:6px}body.app-nav-on .aleem-card{line-height:1.4}body.app-nav-on .aleem-card-facts{gap:2px 12px}body.app-nav-on .aleem-card .small-text{margin:0 0 4px}}
/* P83 U1d */
/* P83 U1d: edit a scheduled session. The «Edit» row action, the in-app edit dialog (fields in a two-column grid that
   folds to one column) and the warning tone of the list status after a stale edit. Tokens only. */
.sch-acts{flex-wrap:wrap}
.sch-status.sch-status-warn{background:var(--al-warning-bg);color:var(--al-warning)}
dialog.modal.sch-edit-dialog{width:min(600px,calc(100vw - 24px))}
.sch-edit-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px}
.sch-edit-wide{grid-column:1/-1}
.sch-edit-field{min-width:0}
.sch-edit-field input{width:100%;min-height:44px}
.sch-edit-form .sch-note{margin:10px 0 0}
.sch-edit-form .error{margin:10px 0 0;overflow-wrap:anywhere}
.sch-edit-form .error[hidden]{display:none}
.sch-edit-form input[aria-invalid=true]{border-color:var(--al-danger)}
.sch-edit-dialog[aria-busy=true] .sch-edit-form{opacity:.85}
@media (max-width:480px){.sch-edit-form{grid-template-columns:minmax(0,1fr)}}
/* P84 U2: who is invited (instructor) and «My upcoming trainings» (learner home) */
.sch-aud-wrap{grid-column:1/-1;margin-top:12px;min-width:0}
.sch-aud-wrap>.sch-note{margin:6px 0 0}
.sch-edit-audience{margin-top:12px;min-width:0}
.sch-audience{margin:0}
.sch-aud-opts{grid-template-columns:repeat(auto-fit,minmax(170px,1fr))}
.sch-audience>.sch-note{margin:8px 0 0}
.sch-invitees{margin:10px 0 0;padding:10px 12px;border:1px solid var(--line-card);border-radius:var(--radius-sm);min-width:0}
.sch-invitees[hidden]{display:none}
.sch-invitees legend{padding:0 4px;font-size:14px;font-weight:700}
.sch-invitee-search{width:100%;min-height:44px;margin:0 0 6px}
.sch-invitee-list{max-height:220px;overflow-y:auto}
.sch-invitee-list li[hidden]{display:none}
.sch-invitee,.sch-check{display:flex;align-items:center;gap:10px;min-height:44px;margin:0;cursor:pointer;overflow-wrap:anywhere}
.sch-invitee input,.sch-check input{margin:0;flex:0 0 auto;width:18px;height:18px;accent-color:var(--al-primary-strong)}
.sch-invitee:has(input:focus-visible),.sch-check:has(input:focus-visible){outline:3px solid var(--al-focus);outline-offset:2px;border-radius:var(--radius-sm)}
.sch-invitee input:focus-visible,.sch-check input:focus-visible{outline:none}
.sch-show-case-box{margin-top:10px}
.sch-check{font-weight:700}
.sch-show-case-box .sch-note{margin:0}
.my-sch-slot[hidden]{display:none}
.learner-home .my-sch{margin-top:18px;background:var(--home-warm-card);border-radius:var(--radius-lg);box-shadow:var(--shadow-card);padding:16px 18px;text-align:start}
.my-sch h2{display:flex;align-items:center;gap:8px;font-size:19px;margin:0 0 10px}
.my-sch h2 .al-ic{--icsz:20px;color:var(--al-primary-strong)}
.my-sch .sch-list{display:grid;gap:10px}
.my-sch-row{background:var(--al-surface);border-radius:var(--radius-sm);border-color:var(--line-card)}
.my-sch-row[data-status=cancelled] h3{color:var(--al-muted);text-decoration:line-through}
.my-sch .sch-acts button{min-height:44px;display:inline-flex;align-items:center;gap:6px}
.my-sch .sch-acts button .al-ic{--icsz:16px}
.my-sch .sch-acts button:focus-visible{outline:3px solid var(--al-focus);outline-offset:2px}
.my-sch>.sch-note{margin:10px 0 0}
.my-sch .al-chip{white-space:normal;max-width:100%}
.learner-home #learner-next .home-next{margin-block:14px 0}
@media (max-width:420px){.my-sch{padding:14px 12px}.my-sch .sch-acts{width:100%}.my-sch .sch-acts button{flex:1 1 auto;justify-content:center}}
/* P84 P1 UI: pre-brief and team roles (src/ui/prebrief.js; contract F). Tokens only. Light boards (sidebar, waiting
   card, summary); the role chip and team list sit on the dark running-room bar and use the --sim tokens. */
.prep-panel[hidden],.prep-slot[hidden],.prep-role-chip[hidden],.prep-team-mini[hidden]{display:none}
.prep-head{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px}
.prep-head h3{margin:0}
.prep-panel h4,.prep-panel legend,.prep-card h3,.prep-sum h3{display:flex;align-items:center;flex-wrap:wrap;gap:6px 8px;margin:14px 0 6px;font-size:15px;font-weight:700}
.prep-panel legend{padding:0}
.prep-panel .al-chip,.prep-card .al-chip,.prep-sum .al-chip{white-space:normal;max-width:100%}
.prep-text{margin:0;white-space:pre-line;overflow-wrap:anywhere}
.prep-block{margin-top:10px;padding:10px 12px;border:1px solid var(--line-card);border-radius:var(--radius-sm);background:var(--al-neutral-bg)}
.prep-block h4{margin-top:0}
.prep-objectives{margin:0;padding:0;border:0;min-width:0}
.prep-check{display:flex;align-items:flex-start;gap:10px;min-height:44px;padding:6px 0;margin:0;cursor:pointer;overflow-wrap:anywhere}
.prep-check input{margin:3px 0 0;flex:0 0 auto;width:18px;height:18px;accent-color:var(--al-primary-strong)}
.prep-check:has(input:focus-visible){outline:3px solid var(--al-focus);outline-offset:2px;border-radius:var(--radius-sm)}
.prep-check input:focus-visible{outline:none}
.prep-field{margin-top:12px}
.prep-field label{display:block;font-weight:700;margin-bottom:4px}
.prep-field textarea{display:block;width:100%;min-height:88px;box-sizing:border-box}
.prep-help,.prep-count{display:block;margin:4px 0 0;font-size:13px;color:var(--al-muted)}
.prep-acts{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin-top:10px}
.prep-panel button,.prep-panel select,.prep-card button{min-height:44px}
.prep-panel button:focus-visible,.prep-panel select:focus-visible,.prep-panel textarea:focus-visible,.prep-card button:focus-visible,.prep-acked:focus-visible{outline:3px solid var(--al-focus);outline-offset:2px}
.prep-status{font-size:14px;color:var(--al-success)}
.prep-status[data-kind=info]{color:var(--al-muted)}
.prep-alert:empty{display:none}
.prep-alert[data-kind=warn]{color:var(--al-warning)}
.prep-roles{margin-top:6px}
.prep-roles h4{margin-bottom:2px}
.prep-table{width:100%;border-collapse:collapse;margin-top:8px;font-size:14px}
.prep-table th{text-align:start;font-weight:700;padding:6px 4px;border-bottom:1px solid var(--line-card)}
.prep-table td{padding:8px 4px;border-bottom:1px solid var(--line-card);vertical-align:top}
.prep-table td.prep-who{display:flex;flex-direction:column;align-items:flex-start;gap:4px;overflow-wrap:anywhere}
.prep-table select{width:100%;max-width:220px}
.prep-table [data-role-clear]{margin-top:6px}
.prep-role-held{display:block;font-weight:700}
.prep-removed-note{display:block;margin-top:4px;font-size:13px;color:var(--al-warning)}
.prep-ack{font-size:13px;color:var(--al-success)}
.prep-ack[data-ack=false]{color:var(--al-muted)}
.prep-slot{margin-top:16px}
.prep-card{background:var(--al-surface);border:1px solid var(--line-card);border-radius:var(--radius-lg);box-shadow:var(--shadow-card);padding:16px 18px;text-align:start}
.prep-card>h2{display:flex;align-items:center;gap:8px;margin:0 0 4px;font-size:18px}
.prep-card>h2 .al-ic,.prep-sum>h2 .al-ic{--icsz:20px;color:var(--al-primary-strong)}
.prep-card ul,.prep-sum ul{margin:0;padding-inline-start:20px}
.prep-card li,.prep-sum li{overflow-wrap:anywhere}
.prep-acked{display:flex;align-items:center;gap:6px;margin:10px 0 0;font-weight:700;color:var(--al-success)}
.prep-acked .al-ic{--icsz:18px}
.prep-role-line{margin:0;font-weight:700}
.prep-sum>h2{display:flex;align-items:center;gap:8px;font-size:17px}
.room-bar .prep-role-chip{display:inline-flex;align-items:center;min-height:28px;margin-inline-start:8px;padding:2px 10px;border:1px solid var(--sim-border);border-radius:var(--radius-pill);color:var(--sim-ink);font-size:13px;font-weight:700}
.room-bar .prep-team-mini{margin-top:2px;font-size:13px;color:var(--sim-muted)}
.room-bar .prep-team-mini summary{display:inline-flex;align-items:center;min-height:44px;cursor:pointer;color:var(--sim-ink)}
.room-bar .prep-team-mini summary:focus-visible{outline:3px solid var(--al-focus-dark);outline-offset:2px;border-radius:var(--radius-sm)}
.room-bar .prep-team-mini ul{margin:0 0 4px;padding-inline-start:18px}
@media (max-width:480px){.prep-card{padding:14px 12px}.prep-table select{max-width:none}.prep-acts button{flex:1 1 auto}}
/* P84 U2b: named invitations in the scheduling form (search, select all / clear, count, load / error / retry) */
.sch-inv-load:empty{display:none}
.sch-inv-load{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;margin:4px 0 8px}
.sch-inv-load .sch-note,.sch-inv-load .error{margin:0;min-height:0}
.sch-inv-tools{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px}
.sch-inv-tools .sch-inv-search-label{flex:1 0 100%;margin:2px 0 0;font-size:13px}
.sch-inv-tools .sch-invitee-search{flex:1 1 220px;width:auto;margin:0}
.sch-inv-acts{gap:8px}
.sch-inv-acts button,#sch-invitees-retry{min-height:44px;padding:8px 14px;font-size:14px}
.sch-inv-count{margin:8px 0 2px;font-size:14px;font-weight:700;line-height:1.6}
.sch-invitee-list{max-height:280px;margin-top:4px}
.sch-invitee-text{display:flex;flex-direction:column;min-width:0;line-height:1.5;padding:4px 0}
.sch-invitee-dept,.sch-invitee-gone{font-size:var(--fs-caption);font-weight:400}
.sch-invitee-gone{color:var(--al-warning)}
#sch-invitees-empty,#sch-invitees-capped{margin:6px 0 0}
@media (max-width:480px){.sch-inv-acts{flex:1 1 100%}.sch-inv-acts button{flex:1 1 0}}
/* P84 D1 UI: the instructor's private debrief marks (src/ui/markers.js) and the debrief guide with its client-only phase
   timer (src/ui/debrief.js); contract G. Tokens only. Light boards (room sidebar, summary). */
.marker-panel[hidden]{display:none}
.marker-head h3{margin:0}
.marker-private{margin:4px 0 0;font-size:13px;font-weight:700;color:var(--al-primary-strong)}
.marker-acts{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.marker-btn{flex:1 1 120px;display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:6px 10px;background:var(--al-surface);color:var(--al-ink);border:1px solid var(--line-card);border-radius:var(--radius-sm);cursor:pointer}
.marker-btn .al-chip{border:0;background:transparent;font-size:15px;font-weight:700}
.marker-btn-good{border-inline-start:4px solid var(--al-success)}
.marker-btn-discuss{border-inline-start:4px solid var(--al-primary-strong)}
.marker-btn:hover:not([aria-disabled=true]){background:var(--al-sky);border-color:var(--al-primary-strong);color:var(--al-ink)}
.marker-btn:active:not([aria-disabled=true]){background:color-mix(in srgb,var(--al-sky) 70%,var(--al-primary) 30%)}
.marker-panel [aria-disabled=true]{opacity:.6;cursor:progress}
.marker-panel button{min-height:44px}
.marker-panel button:focus-visible,.marker-panel textarea:focus-visible,.marker-panel h4:focus-visible{outline:3px solid var(--al-focus);outline-offset:2px}
.marker-field{margin-top:10px}
.marker-field label{display:block;font-weight:700;margin-bottom:4px}
.marker-field textarea{display:block;width:100%;min-height:64px;box-sizing:border-box}
.marker-help,.marker-count{display:block;margin:4px 0 0;font-size:13px;color:var(--al-muted)}
.marker-msg{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;margin-top:8px}
.marker-status{margin:0;font-size:14px;color:var(--al-success)}
.marker-status:empty,.marker-alert:empty{display:none}
.marker-status[data-kind=info]{color:var(--al-muted)}
.marker-alert{margin:0;flex:1 1 100%}
.marker-alert[data-kind=warn]{color:var(--al-warning)}
.marker-list-wrap h4{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px;margin:14px 0 6px;font-size:15px}
.marker-n{font-size:13px;font-weight:400;color:var(--al-muted)}
.marker-list{list-style:none;margin:0;padding:0;max-height:320px;overflow-y:auto}
.marker-item{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px 8px;padding:8px 0;border-bottom:1px solid var(--line-card)}
.marker-item-head{display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-width:0}
.marker-when{font-size:var(--fs-caption);color:var(--al-muted)}
.marker-note-text{flex:1 1 100%;order:3;margin:2px 0 0;white-space:pre-line;overflow-wrap:anywhere}
.summary-marker .marker-note-text{order:0}
.summary-marker .marker-sum-line{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px}
.marker-private-tag{font-size:var(--fs-caption);color:var(--al-muted)}
.f6-tl-dot.marker-dot{border-radius:var(--radius-sm);background:var(--al-success-bg);border-color:var(--al-success)}
.f6-tl-dot.marker-dot[data-marker-kind=discuss]{background:var(--al-sky);border-color:var(--al-primary-strong)}
.dbg-pan>h2{display:flex;align-items:center;gap:8px;font-size:17px}
.dbg-pan>h2 .al-ic{--icsz:20px;color:var(--al-primary-strong)}
.dbg-timer{margin:10px 0 4px;padding:10px 12px;border:1px solid var(--line-card);border-radius:var(--radius-sm);background:var(--al-neutral-bg)}
.dbg-timer p{margin:0}
.dbg-timer-label{font-weight:700;font-size:14px}
.dbg-timer-phase{font-size:14px}
.dbg-timer-clock{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px;margin-top:2px}
#debrief-timer{font-size:24px;font-weight:700;font-variant-numeric:tabular-nums;color:var(--al-ink)}
.dbg-timer-acts{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0}
.dbg-timer-acts button{min-height:44px}
.dbg-timer-acts button[hidden]{display:none}
.dbg-pan button:focus-visible{outline:3px solid var(--al-focus);outline-offset:2px}
.dbg-phases{list-style:none;margin:8px 0 0;padding:0;display:grid;gap:10px}
.dbg-phase{padding:10px 12px;border:1px solid var(--line-card);border-radius:var(--radius-sm);background:var(--al-surface)}
.dbg-phase[aria-current=step]{border-color:var(--al-primary-strong);border-inline-start-width:4px}
.dbg-phase[data-state=done]{background:var(--al-neutral-bg)}
.dbg-phase h3{display:flex;align-items:center;flex-wrap:wrap;gap:6px 8px;margin:0 0 6px;font-size:15px}
.dbg-step{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%;background:var(--al-sky);color:var(--al-ink);font-size:13px}
.dbg-now{font-size:var(--fs-caption);font-weight:700;color:var(--al-primary-strong)}
.dbg-now[hidden]{display:none}
.dbg-prompts{margin:0;padding-inline-start:20px;display:grid;gap:8px}
.dbg-prompts li{overflow-wrap:anywhere}
.dbg-text{margin:0}
.dbg-tags{display:flex;flex-wrap:wrap;gap:4px;margin-top:4px}
.dbg-tags .al-chip{white-space:normal;max-width:100%}
.dbg-empty{margin:0}
@media (max-width:480px){.marker-btn{flex:1 1 100%}.dbg-timer-acts button{flex:1 1 auto}}
/* P84 A2 UI: the instructor's «Suggest questions» panel (src/ui/ai-suggest.js; contract H) in the pre-brief panel of the
   room sidebar and in the debrief guide of the summary. Light boards only; tokens only; logical properties for RTL/LTR.
   The two labels (AI-drafted, local stand-in) are always visible text, never colour alone. */
.ai-suggest-slot:not(.ai-suggest){display:none}
.ai-suggest{display:grid;gap:6px}
.dbg-ai.ai-suggest{margin-top:12px;padding:10px 12px;border:1px solid var(--line-card);border-radius:var(--radius-sm);background:var(--al-neutral-bg)}
.ai-suggest-bar{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px}
.ai-suggest-ask{min-height:44px}
.ai-suggest-ask[aria-busy=true]{cursor:progress}
.ai-suggest-hint{flex:1 1 12em;font-size:13px;color:var(--al-muted);line-height:1.6}
.ai-suggest-status,.ai-suggest-alert{margin:0;font-size:14px;line-height:1.6}
.ai-suggest-status{color:var(--al-muted)}
.ai-suggest-status:empty,.ai-suggest-alert:empty{display:none}
.ai-suggest-result{display:grid;gap:6px;margin-top:4px;padding-block-start:8px;border-block-start:1px solid var(--line-card)}
.ai-suggest .ai-suggest-title{margin:0;font-size:15px;font-weight:700}
.ai-suggest-badges{display:flex;flex-wrap:wrap;gap:4px 6px;margin:0}
.ai-suggest .ai-badge{white-space:normal;max-width:100%;font-size:13px}
.ai-suggest .ai-badge-drafted{border-color:var(--al-primary-strong);background:var(--al-surface);color:var(--al-ink)}
.ai-suggest .ai-badge-standin{border-style:solid;border-color:var(--al-warning);background:var(--al-warning-bg);color:var(--al-warning)}
.ai-suggest-note,.ai-suggest-filtered,.ai-suggest-empty{margin:0;font-size:13px;line-height:1.6}
.ai-suggest-note{color:var(--al-ink);font-weight:600}
.ai-suggest-filtered{color:var(--al-warning)}
.ai-suggest-list{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.ai-suggest-item{padding:8px 10px;border:1px solid var(--line-card);border-radius:var(--radius-sm);background:var(--al-surface);min-width:0}
.ai-suggest-item .ai-suggest-label{margin:0 0 4px;font-size:13px;font-weight:700}
.ai-suggest-text{display:block;width:100%;min-height:72px;box-sizing:border-box;overflow-wrap:anywhere}
.ai-suggest-item-acts,.ai-suggest-acts{display:flex;flex-wrap:wrap;gap:6px;margin-block-start:6px}
.ai-suggest-item-acts button,.ai-suggest-acts button{min-height:40px}
.ai-suggest button:focus-visible,.ai-suggest textarea:focus-visible{outline:3px solid var(--al-focus);outline-offset:2px}
@media (max-width:480px){.ai-suggest-item-acts button,.ai-suggest-acts button,.ai-suggest-ask{flex:1 1 auto}}

/* P84 A3 UI: the Aleem assistant dialog (src/ui/assistant.js) - a light board, logical properties, 44px targets */
dialog.modal.asst-dialog{width:min(640px,calc(100vw - 24px))}
.asst-note{margin:0 0 12px}
.asst-dialog .ai-badge{white-space:normal;max-width:100%;font-size:13px}
.asst-dialog .ai-badge-standin{border-style:solid;border-color:var(--al-warning);background:var(--al-warning-bg);color:var(--al-warning)}
.asst-form{display:grid;gap:6px}
.asst-label{font-weight:700;font-size:14px}
.asst-question{display:block;width:100%;min-height:88px;box-sizing:border-box;overflow-wrap:anywhere;resize:vertical}
.asst-question[aria-invalid=true]{border-color:var(--al-danger)}
.asst-meta{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 12px;font-size:13px;color:var(--al-muted);line-height:1.6}
.asst-count{margin-inline-start:auto;font-variant-numeric:tabular-nums}
.asst-actions{margin-top:8px!important}
.asst-dialog button{min-height:44px;min-width:44px}
.asst-ask[aria-busy=true]{cursor:progress}
.asst-status,.asst-error{margin:8px 0 0;font-size:14px;line-height:1.6}
.asst-status{color:var(--al-muted)}
.asst-status:empty,.asst-error:empty{display:none}
.asst-out:empty{display:none}
.asst-out{margin-top:12px;padding-block-start:10px;border-block-start:1px solid var(--line-card)}
.asst-notice{margin:0;padding:10px 12px;border:1px solid var(--al-field-strong);border-inline-start-width:4px;border-radius:var(--radius-sm,4px);background:var(--al-surface);color:var(--al-ink);line-height:1.7}
.asst-refusal{border-color:var(--al-warning);background:var(--al-warning-bg);color:var(--al-ink);font-weight:600}
.asst-results-title{margin:0 0 8px;font-size:16px}
.asst-results{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.asst-result{padding:10px 12px;border:1px solid var(--line-card);border-radius:var(--radius-sm,4px);background:var(--al-surface);min-width:0}
.asst-result-title{margin:0 0 4px;font-size:15px;font-weight:700;overflow-wrap:anywhere}
.asst-result-chips{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;margin:0 0 4px}
.asst-result-chips .al-chip{white-space:normal;font-size:13px}
.asst-in-library{font-size:13px;color:var(--al-muted)}
.asst-result-text{margin:0;line-height:1.7;overflow-wrap:anywhere}
.asst-dialog button:focus-visible,.asst-dialog textarea:focus-visible{outline:3px solid var(--al-focus);outline-offset:2px}
@media (max-width:480px){.asst-actions button{flex:1 1 auto}}
/* P84 C1 UI: the owner's Aleem draft critical-action checklist (src/ui/critical.js; contract C1). Tokens only. The room
   sidebar panel follows the markers panel (light board beside the simulator); the summary panel is a direction 03 light
   work board. Three buttons per item (aria-pressed), 44px targets, logical properties for RTL. No score, total or count. */
.cact-panel[hidden]{display:none}
.cact-head h3{margin:0}
.cact-notice{margin:6px 0 0}
.cact-notice .al-chip,.cact-tags .al-chip{white-space:normal;max-width:100%}
.cact-notice .al-chip{font-weight:700}
.cact-private{margin:4px 0 0;font-size:13px;color:var(--al-muted)}
.cact-msg{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;margin-top:8px}
.cact-status{margin:0;font-size:14px;color:var(--al-success)}
.cact-status[data-kind=info]{color:var(--al-muted)}
.cact-status:empty,.cact-alert:empty{display:none}
.cact-alert{margin:0;flex:1 1 100%}
.cact-empty{margin:8px 0 0}
.cact-list{list-style:none;margin:8px 0 0;padding:0;display:grid;gap:8px}
.cact-item{padding:10px 12px;border:1px solid var(--line-card);border-radius:var(--radius-sm);background:var(--al-surface);border-inline-start-width:4px}
.cact-item[data-state=done]{border-inline-start-color:var(--al-success)}
.cact-item[data-state=not_done]{border-inline-start-color:var(--al-primary-strong)}
.cact-item[data-state=none],.cact-item[data-state=cleared]{border-inline-start-color:var(--line-card)}
.cact-text{margin:0;line-height:1.7;overflow-wrap:anywhere;font-weight:700}
.cact-tags{display:flex;flex-wrap:wrap;gap:4px;margin-top:6px}
.cact-acts{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.cact-btn{flex:1 1 70px;min-height:44px;padding:6px 8px;background:var(--al-surface);color:var(--al-ink);border:1px solid var(--line-card);border-radius:var(--radius-sm);font-weight:700}
.cact-btn:hover{background:var(--al-neutral-bg)}
.cact-btn[aria-pressed=true]{background:var(--al-sky);border-color:var(--al-primary-strong);box-shadow:inset 0 0 0 1px var(--al-primary-strong)}
.cact-btn-done[aria-pressed=true]{background:var(--al-success-bg);border-color:var(--al-success);box-shadow:inset 0 0 0 1px var(--al-success)}
.cact-btn-cleared{font-weight:400}
.cact-panel [aria-disabled=true]{opacity:.6;cursor:not-allowed}
.cact-panel[aria-busy=true] [aria-disabled=true]{cursor:progress}
.cact-panel button:focus-visible,.cact-sum button:focus-visible{outline:3px solid var(--al-focus);outline-offset:2px}
.cact-when{display:block;margin-top:6px;font-size:var(--fs-caption);color:var(--al-muted)}
.cact-sum>h2{font-size:17px}
.cact-sum .cact-item{background:var(--al-shell)}
@media (max-width:480px){.cact-btn{flex:1 1 100%}}
/* P84 C1 print */
@media print{.cact-panel,.cact-sum{display:none!important}}
/* P84 G1 cohorts: the instructor's work board (light, direction 03), the schedule picker control, the org admin counts card */
.coh-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:14px;margin-top:10px;align-items:start}
.coh-list-head{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:space-between}
.coh-list-head h2{display:flex;gap:8px;align-items:center;margin:0;font-size:17px;line-height:1.4}
.coh-list-head h2 .al-ic{--icsz:18px;color:var(--al-primary-strong)}
.coh-list-head button,.coh-acts button,.coh-form button{min-height:44px}
.coh-status{margin:0;color:var(--al-ink);font-size:14px;line-height:1.7}
.coh-status:empty{display:none}
.coh-status-error{color:var(--al-danger);font-weight:700}
.coh-list{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.coh-row{display:flex;flex-wrap:wrap;gap:10px 14px;align-items:center;justify-content:space-between;padding:12px 14px;border:1px solid var(--line-card);border-radius:var(--radius-md);background:var(--al-surface)}
.coh-row:focus{outline:3px solid var(--al-primary);outline-offset:2px}
.coh-row[data-status=archived]{background:var(--al-shell)}
.coh-main{min-width:0;flex:1 1 220px}
.coh-main h3{margin:0 0 4px;font-size:16px;line-height:1.5;overflow-wrap:anywhere}
.coh-meta{display:flex;flex-wrap:wrap;gap:4px 14px;margin:0;color:var(--al-muted);font-size:13.5px;line-height:1.6}
.coh-meta span{display:inline-flex;gap:6px;align-items:center}
.coh-meta .al-ic{--icsz:15px}
.coh-acts{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.coh-form{display:grid;gap:6px}
.coh-form input,.coh-form select{width:100%;min-height:44px}
.coh-help{margin:0}
.coh-privacy{display:flex;gap:8px;align-items:flex-start;margin:14px 0 0}
.coh-privacy .al-ic{--icsz:18px;flex:0 0 auto;color:var(--al-primary-strong)}
.coh-count{margin:6px 0;font-weight:700;font-size:14px}
#coh-members-dialog{width:min(560px,calc(100vw - 24px))}
#coh-members-dialog .coh-member-list{max-height:min(320px,45vh)}
.coh-member-list li[hidden]{display:none}
.sch-coh{display:grid;gap:6px;margin:8px 0 10px;padding:10px 12px;border:1px dashed var(--line-card);border-radius:var(--radius-md);background:var(--al-shell)}
.sch-coh-label{font-weight:700;font-size:14px}
.sch-coh-row{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.sch-coh-row[hidden]{display:none}
.sch-coh-select{flex:1 1 180px;min-height:44px;max-width:100%}
.sch-coh-row button{min-height:44px}
.sch-coh .sch-note{margin:0}
.sch-coh-status:empty{display:none}
.coh-counts h2,.coh-counts h3{display:flex;gap:8px;align-items:center}
#org-report .coh-counts{margin:4px 0 12px;padding:10px 12px;border:1px solid var(--line-card);border-radius:var(--radius-md);background:var(--al-shell)}
#org-report .coh-counts h3{margin:0;font-size:15px}
.coh-counts :is(h2,h3) .al-ic{--icsz:18px;color:var(--al-primary-strong)}
.coh-count-list{display:flex;flex-wrap:wrap;gap:10px 28px;margin:6px 0 10px}
.coh-count-item{display:grid;gap:2px}
.coh-count-item dt{color:var(--al-muted);font-size:13px}
.coh-count-item dd{margin:0;font-size:22px;font-weight:700;color:var(--al-ink)}
@media (max-width:760px){.coh-grid{grid-template-columns:minmax(0,1fr)}}
@media (max-width:480px){.coh-acts{width:100%}.coh-acts button{flex:1 1 auto}}
/* P84 E1: the after-session learner survey (src/ui/survey.js; contract E1). Direction 03 light work boards: the learner's
   card on the ended screen beside the reflection, the owner's combined panel on the summary. Tokens only, logical
   properties for RTL, 44px targets. The bars repeat the number shown as text (never colour only); no total or percentage. */
.srv-slot:empty{display:none}
.srv-card,.srv-sum{text-align:start}
.srv-card>h2,.srv-sum>h2{font-size:17px}
.srv-notice{margin:6px 0 10px}
.srv-notice .al-chip{white-space:normal;max-width:100%;line-height:1.6}
.srv-item{margin:0 0 12px;padding:10px 12px;border:1px solid var(--line-card);border-radius:var(--radius-sm);background:var(--al-surface);min-width:0}
.srv-q{display:block;font-weight:700;line-height:1.7;overflow-wrap:anywhere;padding:0;margin-bottom:6px}
fieldset.srv-item>legend.srv-q{float:inline-start;width:100%}
.srv-opts{clear:both;display:flex;flex-wrap:wrap;gap:6px}
.srv-opt{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:6px 10px;border:1px solid var(--line-card);border-radius:var(--radius-sm);background:var(--al-shell);cursor:pointer;flex:1 1 130px;font-weight:400}
.srv-opt input{margin:0;width:20px;height:20px;flex:0 0 auto}
.srv-opt:has(input:checked){border-color:var(--al-primary-strong);background:var(--al-sky);box-shadow:inset 0 0 0 1px var(--al-primary-strong)}
.srv-opt:has(input:focus-visible){outline:3px solid var(--al-focus);outline-offset:2px}
.srv-skip{color:var(--al-muted)}
.srv-text textarea{width:100%;min-height:88px;box-sizing:border-box}
.srv-text-foot{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 12px;margin-top:4px;font-size:13px}
.srv-acts{display:flex;flex-wrap:wrap;gap:8px}
.srv-card button{min-height:44px}
.srv-status{margin:8px 0 0;color:var(--al-success);font-weight:700}
.srv-status:empty{margin:0}
.srv-error:empty{display:none}
.srv-error{margin:8px 0 0}
.srv-retry-row[hidden]{display:none}
.srv-sent{outline:none}
.srv-sent:focus-visible{outline:3px solid var(--al-focus);outline-offset:4px}
.srv-sent h3{margin:0 0 4px;font-size:16px;color:var(--al-success)}
.srv-answers{display:grid;gap:4px;margin:8px 0 0}
.srv-answers dt{font-weight:700;margin-top:6px;overflow-wrap:anywhere}
.srv-answers dd{margin:0;overflow-wrap:anywhere;white-space:pre-wrap}
.srv-sum-line{margin:6px 0 10px;font-weight:700}
.srv-sum-list{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.srv-sum-item{padding:10px 12px;border:1px solid var(--line-card);border-radius:var(--radius-sm);background:var(--al-shell)}
.srv-sum-item h3{margin:0 0 6px;font-size:15px;line-height:1.6;overflow-wrap:anywhere}
.srv-sum-counts{display:grid;gap:4px;margin:0}
.srv-sum-row{display:grid;grid-template-columns:minmax(0,9em) minmax(0,1fr);gap:8px;align-items:center}
.srv-sum-row dt{font-size:14px}
.srv-sum-row dd{margin:0;display:flex;align-items:center;gap:8px;min-width:0}
.srv-num{min-width:2ch;font-weight:700;text-align:end}
.srv-bar{flex:1 1 auto;height:10px;border:1px solid var(--line-card);border-radius:999px;background:var(--al-surface);overflow:hidden}
.srv-bar-fill{display:block;height:100%;width:calc(var(--srv-w,0) * 100%);background:var(--al-primary-strong)}
.srv-sum-texts{margin:4px 0 0;padding-inline-start:1.2em;display:grid;gap:4px}
.srv-sum-texts li{overflow-wrap:anywhere;white-space:pre-wrap}
@media (max-width:480px){.srv-opt{flex:1 1 100%}.srv-sum-row{grid-template-columns:minmax(0,1fr)}}
@media print{.srv-card{display:none!important}}
/* P84 F1: co-facilitators, observer-debriefers over HTTP only (src/ui/cofac.js; contract F1). Direction 03 light work
   boards, tokens only, logical properties, 44px targets. The owner's room sidebar panel, the owner's summary section
   beside the timeline, the instructor home card and the co-facilitator page /staff/cofac/<CODE>. */
.cof-panel[hidden],.cof-home-slot[hidden]{display:none}
.cof-head h3{margin:0}
.cof-head h3:focus-visible,.cof-sum h3:focus-visible,.cof-view h1:focus-visible,.cof-view h3:focus-visible{outline:3px solid var(--al-focus);outline-offset:2px}
.cof-role{margin:4px 0 0;font-size:13px;color:var(--al-ink)}
.cof-limit{margin:4px 0 0}
.cof-msg{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;margin-top:8px}
.cof-status{margin:0;font-size:14px;color:var(--al-success)}
.cof-status[data-kind=info]{color:var(--al-muted)}
.cof-status:empty,.cof-alert:empty{display:none}
.cof-alert{margin:0;flex:1 1 100%}
.cof-alert[data-kind=warn]{color:var(--al-warning)}
.cof-list{list-style:none;margin:8px 0 0;padding:0;display:grid;gap:6px}
.cof-item{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px 8px;padding:6px 0;border-bottom:1px solid var(--line-card)}
.cof-who{display:flex;flex-direction:column;gap:2px;min-width:0;overflow-wrap:anywhere}
.cof-when{font-size:var(--fs-caption);color:var(--al-muted)}
.cof-panel button,.cof-sum button,.cof-view button,.cof-home .button-link{min-height:44px}
.cof-panel button:focus-visible,.cof-panel input:focus-visible,.cof-panel select:focus-visible,.cof-sum button:focus-visible,.cof-view button:focus-visible,.cof-view textarea:focus-visible,.cof-view a:focus-visible,.cof-home a:focus-visible{outline:3px solid var(--al-focus);outline-offset:2px}
.cof-panel [aria-disabled=true],.cof-sum [aria-disabled=true]{opacity:.6;cursor:progress}
.cof-add-wrap{margin-top:10px}
.cof-add-wrap #cofac-add-open{display:inline-flex;align-items:center;gap:6px}
.cof-add{display:grid;gap:6px;margin-top:8px;padding:10px;border:1px solid var(--line-card);border-radius:var(--radius-sm);background:var(--al-surface)}
.cof-add label{font-weight:700}
.cof-add input,.cof-add select{width:100%;box-sizing:border-box;min-height:44px}
.cof-add select[hidden]{display:none}
.cof-add-acts{gap:8px;flex-wrap:wrap}
/* the owner's summary: beside the timeline */
.cof-sum{display:grid;gap:8px;margin-top:14px;padding-top:12px;border-top:1px solid var(--line-card)}
.cof-sum h3{margin:0;font-size:16px}
.cof-sum h4{margin:6px 0 0;font-size:14.5px}
.cof-sum>p{margin:0}
.cof-sum-list{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.cof-sum-item{padding:8px 10px;border:1px solid var(--line-card);border-inline-start:4px solid var(--al-primary-strong);border-radius:var(--radius-sm);background:var(--al-surface)}
.cof-sum-item[data-marker-kind=good]{border-inline-start-color:var(--al-success)}
.cof-sum-line{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin:0}
.cof-by{font-size:13.5px;color:var(--al-ink)}
.cof-author{font-weight:700}
.cof-sum-item .marker-note-text{margin:4px 0 0;white-space:pre-line;overflow-wrap:anywhere}
/* the instructor home card */
.cof-home{display:grid;gap:8px;margin-bottom:14px}
.cof-home h2{display:flex;align-items:center;gap:8px;margin:0;font-size:17px}
.cof-home h2 .al-ic{--icsz:18px;color:var(--al-primary-strong)}
.cof-home>p{margin:0}
.cof-home-list{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.cof-home-item{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 12px;padding:8px 0;border-bottom:1px solid var(--line-card)}
.cof-home-text{min-width:0;overflow-wrap:anywhere}
.cof-home-text h3{margin:0;font-size:15.5px}
.cof-home-text small{color:var(--al-muted)}
.cof-home-acts{gap:8px;align-items:center;flex-wrap:wrap}
/* the co-facilitator page */
.cof-view{gap:12px}
.cof-meta{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;margin:4px 0 0;color:var(--al-muted);font-size:14px}
.cof-observer{display:flex;gap:10px;align-items:flex-start;padding:12px 14px;border:1px solid var(--line-card);border-inline-start:4px solid var(--al-primary-strong);border-radius:var(--radius-md);background:var(--al-sky);color:var(--al-ink)}
.cof-observer .al-ic{--icsz:20px;flex:none;color:var(--al-primary-strong)}
.cof-refresh{gap:8px 12px;align-items:center;flex-wrap:wrap}
.cof-refresh .error{margin:0;flex:1 1 100%}
.cof-refresh .error:empty{display:none}
.cof-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px;align-items:start}
.cof-col{display:grid;gap:14px;min-width:0}
.cof-pan h3{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:0 0 4px;font-size:15px}
.cof-block{display:grid;gap:4px}
.cof-block+.cof-block{margin-top:6px;padding-top:8px;border-top:1px solid var(--line-card)}
.cof-block p{margin:0}
.cof-rules-text,.cof-note-text{white-space:pre-line;overflow-wrap:anywhere}
.cof-objs{margin:0;padding-inline-start:1.2em;display:grid;gap:6px}
.cof-objs li{overflow-wrap:anywhere}
.cof-objs .al-chip,.cof-pan .al-chip{white-space:normal;max-width:100%}
.cof-team{list-style:none;margin:0;padding:0;display:grid;gap:4px}
.cof-team li{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 10px;padding:6px 0;border-bottom:1px solid var(--line-card);overflow-wrap:anywhere}
.cof-team-role{color:var(--al-muted)}
.cof-phases .dbg-phase h3{margin:0 0 4px}
.cof-marks .marker-list{max-height:none}
.cof-denied h1{margin-top:0}
@media (max-width:900px){.cof-grid{grid-template-columns:minmax(0,1fr)}}
@media (max-width:480px){.cof-home-acts{flex:1 1 100%;justify-content:space-between}.cof-item .cof-remove{margin-inline-start:auto}}
@media print{.cof-panel,.cof-refresh,.cof-sum{display:none!important}}
/* P84-D2: windows - survey closed state and summary window line, critical-action corrections after the end, cohort history */
.srv-window,.srv-sum-window{margin:0}
.srv-sum-window{display:flex;flex-wrap:wrap;gap:6px;align-items:center;font-size:14px;color:var(--al-muted)}
.srv-closed{padding:12px 14px;border:1px dashed var(--al-field-strong);border-radius:var(--radius-sm);background:var(--al-shell)}
.srv-closed h3{margin:0 0 4px}.srv-closed p{margin:0}
.cact-window{margin:6px 0 0;padding:6px 10px;border-radius:var(--radius-sm);background:var(--al-warning-bg);color:var(--al-warning);font-weight:700}
.cact-window[data-open=false]{background:var(--al-neutral-bg);color:var(--al-muted);font-weight:400}
.cact-item[data-after-end=true]{border-inline-start-style:dashed}
.coh-history-list{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.coh-history-item{padding:8px 10px;border:1px solid var(--line-card);border-radius:var(--radius-sm);background:var(--al-shell)}
.coh-history-item p{margin:0;line-height:1.7}
/* P84-E2: the learner portfolio (light work board) and the printable participation certificate */
.ptf-notice{margin:0 0 12px}.ptf-notice .al-chip{white-space:normal}
.ptf-scroll{overflow-x:auto}
.ptf-table{width:100%;border-collapse:collapse;font-size:14px}
.ptf-table th,.ptf-table td{padding:10px 8px;border-bottom:1px solid var(--line);text-align:start;vertical-align:top}
.ptf-table thead th{font-size:13px;color:var(--al-muted);font-weight:700;white-space:nowrap}
.ptf-table tbody th{font-weight:700}
.ptf-flag .al-chip{font-size:13px;white-space:nowrap}
.ptf-cert-link{font-weight:700}
@media (max-width:760px){
  .ptf-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
  .ptf-table,.ptf-table tbody,.ptf-table tr,.ptf-table th,.ptf-table td{display:block;width:100%}
  .ptf-table tr{border:1px solid var(--line-card);border-radius:var(--radius-sm);margin-bottom:10px;padding:6px 10px;background:var(--al-surface)}
  .ptf-table th,.ptf-table td{border:0;padding:5px 0;display:flex;gap:10px;justify-content:space-between;flex-wrap:wrap}
  .ptf-table th::before,.ptf-table td::before{content:attr(data-label);color:var(--al-muted);font-weight:400;font-size:13px}
}
.cert-view{max-width:900px;margin:auto}
.cert-actions{justify-content:space-between;margin-bottom:16px}
.cert-sheet{background:var(--al-surface);border:1px solid var(--line-card);border-radius:var(--radius-md);box-shadow:var(--shadow-card);padding:40px 48px;display:grid;gap:22px;text-align:center;position:relative}
.cert-sheet::before{content:'';position:absolute;inset:10px;border:2px solid var(--al-gold);border-radius:var(--radius-sm);pointer-events:none}
.cert-brand{display:flex;gap:14px;align-items:center;justify-content:center}
.cert-brand p{margin:0;line-height:1.5}.cert-brand-name{font-weight:800;font-size:22px;color:var(--al-navy)}.cert-brand-sub{color:var(--al-muted);font-size:14px}
.cert-body h1,.cert-revoked h1{font-size:clamp(26px,4vw,38px);margin:0 0 10px;color:var(--al-navy)}
.cert-line{margin:4px 0;color:var(--al-muted)}
.cert-name{font-size:clamp(22px,3.4vw,32px);font-weight:800;margin:6px 0;color:var(--al-ink)}
.cert-session{font-size:20px;font-weight:700;margin:4px 0 14px}
.cert-facts{display:flex;flex-wrap:wrap;justify-content:center;gap:10px 28px;margin:0}
.cert-facts div{min-width:140px}.cert-facts dt{font-size:13px;color:var(--al-muted)}.cert-facts dd{margin:2px 0 0;font-weight:700}
.cert-notice{border-top:1px solid var(--line);padding-top:12px;font-size:14px;color:var(--al-ink)}
.cert-notice p{margin:2px 0;line-height:1.7}
.cert-revoked{padding:30px 10px;border:3px double var(--al-danger);border-radius:var(--radius-sm);background:var(--al-danger-bg)}
.cert-revoked h1{color:var(--al-danger)}
@media (max-width:620px){.cert-sheet{padding:28px 18px}}
.cert-pan .al-chip{white-space:normal}
.cert-list{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.cert-row{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:space-between;padding:8px 10px;border:1px solid var(--line-card);border-radius:var(--radius-sm);background:var(--al-shell)}
.cert-row-main{display:flex;flex-wrap:wrap;gap:8px;align-items:center;min-width:0}
.cert-pick{display:inline-flex;gap:8px;align-items:center;margin:0;font-weight:700;min-height:44px}
.cert-pick input{width:20px;height:20px;margin:0}
.cert-row-acts,.cert-acts{gap:8px}.cert-acts button,.cert-row-acts button{min-height:44px}
.cert-status{margin:0;color:var(--al-success)}.cert-status:empty{display:none}
/* QA P84-FE L2: A4 for the certificate's own named page only; other printed pages keep the browser's default. */
@page cert{size:A4;margin:14mm}
@media print{
  body.cert-page-on .masthead,body.cert-page-on #app-nav,body.cert-page-on footer,body.cert-page-on .cert-actions,body.cert-page-on #toast,body.cert-page-on .skip-link{display:none!important}
  /* QA P84-FE M1: the sidebar's inline-start padding (body.app-nav-on) is dropped too, so the sheet is centred on paper. */
  body.cert-page-on,body.cert-page-on.app-nav-on{padding:0!important;margin:0!important}
  body.cert-page-on main{padding:0;margin:0 auto;max-width:none;min-height:0}
  body.cert-page-on .cert-view{max-width:182mm;margin:0 auto}
  body.cert-page-on .cert-sheet{page:cert}
  body.cert-page-on .cert-sheet{box-shadow:none;border:0;min-height:250mm;align-content:center;page-break-inside:avoid}
  .cert-pan{display:none!important}
}
/* P84-E3: team NTS observation and the private self-review (light boards; words, never numbers) */
.nts-notice,.nts-state,.nts-window{margin:0}.nts-notice .al-chip{white-space:normal}
.nts-window{color:var(--al-muted)}.nts-window[data-open=false]{color:var(--al-warning);font-weight:700}
.nts-form{display:grid;gap:10px}
.nts-domain{margin:8px 0 0;font-size:15px;color:var(--al-primary-strong)}
.nts-item{border:1px solid var(--line-card);border-radius:var(--radius-sm);padding:10px 12px;margin:0;min-width:0;background:var(--al-surface)}
.nts-q{font-weight:700;line-height:1.7;padding:0;margin-bottom:6px}
.nts-opts{display:flex;flex-wrap:wrap;gap:6px}
.nts-opt{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:6px 10px;border:1px solid var(--line-card);border-radius:var(--radius-sm);background:var(--al-shell);cursor:pointer;font-weight:400;margin:0}
.nts-opt input{margin:0;width:20px;height:20px;flex:0 0 auto}
.nts-opt:has(input:checked){border-color:var(--al-primary-strong);background:var(--al-sky);box-shadow:inset 0 0 0 1px var(--al-primary-strong)}
.nts-opt:has(input:focus-visible){outline:3px solid var(--al-focus);outline-offset:2px}
.nts-blank{border-style:dashed}
.nts-text-foot{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap}
.nts-acts button{min-height:44px}
.nts-status{margin:0;color:var(--al-success)}.nts-status:empty{display:none}
.nts-read{margin:0;display:grid;gap:6px}
.nts-read-row{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:8px;padding:6px 0;border-bottom:1px solid var(--line)}
.nts-read-row dt{line-height:1.6}.nts-read-row dd{margin:0;font-weight:700}
.nts-read-note{grid-template-columns:minmax(0,1fr)}
.nts-team{border-top:1px solid var(--line);padding-top:10px}
.nts-team-list{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.nts-team-item{padding:8px 10px;border:1px solid var(--line-card);border-radius:var(--radius-sm);background:var(--al-shell)}
.nts-author{margin:0 0 6px;font-weight:700}
@media (max-width:620px){.nts-read-row{grid-template-columns:minmax(0,1fr)}}
@media print{.nts-pan{display:none!important}}
/* P84-N1: the notification bell in the header tools and its list (light work frame, direction 03; RTL first). */
.ntf{position:relative;display:inline-flex}
.ntf-bell{position:relative;gap:6px;color:var(--al-ink);--duo:var(--al-sky)}
.ntf-bell-icon{display:block;flex:0 0 auto}
.ntf-count{min-width:20px;height:20px;padding:0 6px;border-radius:var(--radius-pill);background:var(--al-primary-strong);color:var(--al-surface);font-size:var(--fs-caption);font-weight:700;line-height:20px;text-align:center;direction:ltr;unicode-bidi:isolate}
.ntf-count[hidden]{display:none}
.ntf-panel{position:absolute;inset-inline-end:0;top:calc(100% + 6px);z-index:31;width:min(380px,calc(100vw - 24px));max-height:min(70vh,520px);overflow:auto;padding:12px;background:var(--al-surface);border:1px solid var(--al-field-strong);border-radius:6px;box-shadow:var(--shadow-card);text-align:start}
.ntf-panel[hidden]{display:none}
.ntf-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}
.ntf-title{margin:0;font-size:16px;font-weight:800;color:var(--al-ink)}
.ntf-list{list-style:none;margin:0;padding:0;display:grid;gap:2px}
.ntf-item{display:flex;align-items:flex-start;gap:10px;padding:10px 8px;border-radius:5px;color:var(--al-ink);text-decoration:none;line-height:1.6;min-height:44px}
.ntf-item:hover{background:var(--al-neutral-bg)}
.ntf-item[data-unread=true]{background:var(--al-warm);font-weight:700}
.ntf-item[data-unread=true]:hover{background:var(--al-neutral-bg)}
.ntf-dot{flex:0 0 8px;width:8px;height:8px;margin-top:9px;border-radius:50%;background:transparent}
.ntf-item[data-unread=true] .ntf-dot{background:var(--al-primary-strong)}
.ntf-text{display:grid;gap:2px;min-width:0;overflow-wrap:anywhere}
.ntf-when{font-weight:400;font-size:13px;color:var(--al-muted)}
.ntf-empty{margin:8px 0;color:var(--al-muted)}
.ntf-note{margin:8px 0 0;font-size:13px;color:var(--al-muted)}
@media (prefers-reduced-motion:reduce){.ntf-item{transition:none}}
/* P84-L1: learner development briefs - the owner's panel on the summary (light work board, direction 03) and the
   learner's approved briefs in «My portfolio». Words only; the panel is never printed. */
.brf-notice{margin:0}.brf-notice .al-chip,.brf-pan .al-chip{white-space:normal}
.brf-list{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.brf-row{display:grid;gap:6px;padding:8px 10px;border:1px solid var(--line-card);border-radius:var(--radius-sm);background:var(--al-shell)}
.brf-row[data-brf-state=discarded],.brf-row[data-brf-state=withdrawn]{background:var(--al-surface)}
.brf-row-main{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:space-between;min-width:0}
.brf-pick{display:inline-flex;gap:8px;align-items:center;margin:0;font-weight:700;min-height:44px;overflow-wrap:anywhere}
.brf-pick input{width:20px;height:20px;margin:0}
.brf-chips{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.brf-role{font-size:13px;color:var(--al-muted)}
.brf-row-acts,.brf-acts,.brf-ed-acts{gap:8px;flex-wrap:wrap}
.brf-row-acts:empty{display:none}
.brf-acts button,.brf-row-acts button,.brf-ed-acts button{min-height:44px}
.brf-outcome{margin:0;font-size:14px;color:var(--al-success)}
.brf-outcome.is-refused{color:var(--al-warning);font-weight:700}
.brf-status{margin:0;color:var(--al-success)}.brf-status:empty{display:none}
.brf-msg .error:empty{display:none}
.brf-editor{display:grid;gap:10px;margin-top:4px;padding:12px;border:1px solid var(--line-card);border-radius:var(--radius-sm);background:var(--al-surface)}
.brf-editor h3{margin:0;font-size:17px}
.brf-editor h3:focus{outline:2px solid var(--al-focus);outline-offset:2px}
.brf-ed-meta{display:flex;flex-wrap:wrap;gap:6px}
.brf-form{display:grid;gap:10px}
.brf-set{border:1px solid var(--line);border-radius:var(--radius-sm);padding:8px 10px;margin:0;display:grid;gap:8px;min-width:0}
.brf-set legend{font-weight:700;padding:0 4px}
.brf-field{display:grid;gap:4px}.brf-field label{margin:0}
.brf-field textarea{width:100%;box-sizing:border-box;min-height:64px;resize:vertical}
.brf-field textarea[aria-invalid=true]{border-color:var(--al-danger)}
.brf-count{color:var(--al-muted);font-size:var(--fs-caption);justify-self:end}
.brf-cases{list-style:none;margin:0;padding:0;display:grid;gap:4px}
.brf-case{display:inline-flex;gap:8px;align-items:center;min-height:44px;margin:0;overflow-wrap:anywhere}
.brf-case input{width:20px;height:20px;margin:0;flex:none}
.brf-ro-wrap{display:grid;gap:8px}
.brf-ro h4,.ptf-brief-part h4{margin:0 0 4px;font-size:14px;color:var(--al-muted)}
.brf-ro ul,.ptf-brief-part ul{margin:0;padding-inline-start:20px;display:grid;gap:4px}
.ptf-briefs{display:grid;gap:10px}
.ptf-brief-list{display:grid;gap:10px}
.ptf-brief{border:1px solid var(--line-card);border-radius:var(--radius-sm);padding:12px;background:var(--al-surface);display:grid;gap:8px}
.ptf-brief:focus{outline:2px solid var(--al-focus);outline-offset:2px}
.ptf-brief h3{margin:0;font-size:17px;overflow-wrap:anywhere}
.ptf-brief-meta{margin:0}
.ptf-brief-parts{display:grid;gap:10px;grid-template-columns:repeat(auto-fit,minmax(200px,1fr))}
.ptf-brief-part p{margin:0}
.ptf-brief-link,.ptf-brief-link:hover{background:none;border:0;border-radius:0;padding:0;min-height:44px;font:inherit;color:var(--teal);font-weight:700;text-decoration:underline;cursor:pointer}
@media (max-width:620px){.brf-row-main{align-items:flex-start}.brf-acts button,.brf-ed-acts button{flex:1 1 100%}}
#brf-panel-retry,#brf-editor-retry,#brf-reload,#ptf-briefs-retry{min-height:44px}
@media print{.brf-pan{display:none!important}}
/* P86 slice 1 (owner 2026-11-25): the schedule boxes, clickable-card hover and the living staff home card (the field centring
   rule (a) sits beside the light-board buttons, same scope).
   Tokens only; light boards only. */
/* (b) New session «جدولة لوقت لاحق»: date, time and duration share label / box / hint rows (subgrid), so the three boxes
   line up even when a label wraps; the 10-240 range is a hint under the duration box (src/ui/schedule.js). */
.sch-fields{align-items:start}
.sch-field{display:grid;grid-template-rows:subgrid;grid-row:span 3;align-content:start}
.sch-field>label{align-self:end}
.sch-hint{display:block;margin-top:4px;font-size:var(--fs-caption);line-height:1.5;color:var(--al-muted)}
/* Clickable cards (the choosers and option cards): a subtle border and elevation on hover, no colour wash. */
.choice:hover:not(:disabled),.srv-opt:hover,.nts-opt:hover{background:var(--al-surface);border-color:var(--al-primary-strong);box-shadow:var(--shadow-hover)}
.choice,.srv-opt,.nts-opt,.sch-when-opt{transition:border-color var(--dur-fast) var(--ease-out),box-shadow var(--dur-base) var(--ease-out)}
.sch-when-opt:hover{box-shadow:var(--shadow-hover)}
/* The staff home «next step» card (src/ui/home-instructor.js heroDecoHtml): an aria-hidden glow that drifts slowly and a
   monitor-style trace in a band below the words, its sand segment sweeping along it. No text is drawn over the trace (the
   card's bottom padding holds the band); the glow under the words keeps white 11.15:1, the body words 7.50:1 and the sand
   kicker 6.48:1 at its brightest point. Static under prefers-reduced-motion (the sweep is hidden, the glow stays still). */
.panel.home-next:has(>.home-next-deco){padding-bottom:56px}
.home-next-deco{position:absolute;inset:0;z-index:0;overflow:hidden;border-radius:inherit;pointer-events:none}
.home-next-text{position:relative;z-index:1}
.home-next-glow{position:absolute;top:-200px;inset-inline-start:-140px;width:440px;height:440px;border-radius:50%;background:radial-gradient(closest-side,color-mix(in srgb,var(--al-primary) 22%,transparent),transparent);--glow-x:38%}
[dir=rtl] .home-next-glow{--glow-x:-38%}
@keyframes home-glow-drift{from{transform:translate(0,0)}to{transform:translate(var(--glow-x),18%)}}
.home-next-trace{position:absolute;inset-inline:0;bottom:8px;width:100%;height:40px;-webkit-mask-image:linear-gradient(90deg,transparent,var(--al-navy) 10%,var(--al-navy) 90%,transparent);mask-image:linear-gradient(90deg,transparent,var(--al-navy) 10%,var(--al-navy) 90%,transparent)}
.home-next-wave,.home-next-wave-hi{fill:none;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.home-next-wave{stroke:var(--al-primary);opacity:.55}
.home-next-wave-hi{stroke:var(--al-sand);opacity:.6;stroke-dasharray:60 940;stroke-dashoffset:640}
@keyframes home-trace-sweep{to{stroke-dashoffset:0}}
@media (prefers-reduced-motion:reduce){.home-next-wave-hi{display:none}}
/* P87 direction B (owner tasking 2026-11-26; docs/product/design/v7-live/README.md §3 B, §4, §5): the instructor's live
   control dock (src/ui/live-dock.js). The panels keep their ids and modules; a tab hides the panels of the other tabs through
   the tab panel's data-active attribute, never through `hidden` (the modules set it themselves). The simulator frame is not
   moved: only its box is sized. Light work board beside the dark simulation; tokens only; every motion stops under
   prefers-reduced-motion (the global rule above). */
.live-dock{--dock-pad:12px;display:flex;flex-direction:column;gap:0;min-width:0;background:var(--al-surface);border:1px solid var(--line-card);border-radius:var(--radius-md);box-shadow:var(--shadow-card);overflow:hidden}
.live-dock>*{flex:none}
.dock-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:6px var(--dock-pad) 0}
.dock-title{margin:0;font-size:15px;font-weight:800;line-height:1.6;color:var(--al-ink)}
.dock-title:focus{outline:none}
.dock-title:focus-visible{outline:2px solid var(--al-focus);outline-offset:2px}
.live-dock :is(button,select,summary){min-height:44px}
.live-dock .toggle-label{min-height:44px}
.live-dock input[type=checkbox]{width:20px;height:20px}
.live-dock button.dock-collapse{display:none;align-items:center;gap:6px;padding:4px 10px;background:var(--al-surface);color:var(--al-ink);border:1px solid var(--al-field-strong);border-radius:var(--radius-sm);font-size:13px;font-weight:700;box-shadow:none;transform:none}
.live-dock button.dock-collapse:hover{background:var(--al-neutral-bg)}
.dock-collapse .al-ic{--icsz:18px}
.dock-collapse[aria-expanded=false] .al-ic{transform:scaleX(-1)}
[dir=rtl] .dock-collapse[aria-expanded=false] .al-ic{transform:none}
.live-dock button.dock-attn-mini{display:none}
/* «يحتاج انتباهك»: state, not messages. Each row has a shape, words with a number and one action; colour is extra. */
.dock-attn{display:grid;gap:6px;padding:6px var(--dock-pad) 0}
.dock-attn-title{margin:0;font-size:13px;font-weight:800;line-height:1.5;color:var(--al-ink)}
.dock-attn-list{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.dock-attn-row{display:flex;align-items:center;gap:8px;min-height:48px;padding-block:2px;padding-inline:8px 2px;border:1px solid var(--line-card);border-inline-start:5px solid var(--al-primary-strong);border-radius:var(--radius-sm);background:var(--al-sky);color:var(--al-ink);font-size:14px;font-weight:700;line-height:1.5}
.dock-attn-row[data-tone=danger]{border-color:var(--al-danger);border-inline-start:6px double var(--al-danger);background:var(--al-danger-bg);color:var(--al-danger)}
.dock-attn-row[data-tone=warning]{border-inline-start-color:var(--al-warning);background:var(--al-warning-bg)}
.dock-attn-row[data-tone=warning] .dock-attn-ico{color:var(--al-warning)}
.dock-attn-ico .al-ic{--icsz:20px}
.dock-attn-text{flex:1;min-width:0;overflow-wrap:anywhere}
.live-dock button.dock-attn-act{flex:none;min-width:44px;padding:4px 12px;background:var(--al-surface);color:var(--al-ink);border:1px solid var(--al-primary-strong);border-radius:var(--radius-sm);font-size:14px;font-weight:700;box-shadow:none;transform:none}
.live-dock button.dock-attn-act:hover{background:var(--al-shell)}
.dock-attn-row[data-tone=danger] button.dock-attn-act{border-color:var(--al-danger);color:var(--al-danger)}
.dock-attn-more{margin:0;font-size:13px;color:var(--al-muted)}
/* The tabs (WAI-ARIA, automatic activation); the count is a badge and also words for a screen reader. */
.dock-tabs{display:flex;gap:2px;margin-top:6px;padding:0 calc(var(--dock-pad) - 6px);border-bottom:1px solid var(--al-line)}
.live-dock button.dock-tab{position:relative;flex:1 1 0;min-width:0;min-height:56px;display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:6px 2px 4px;background:none;border:0;border-bottom:3px solid transparent;border-radius:0;color:var(--al-muted);font-size:13px;font-weight:700;line-height:1.3;white-space:nowrap;box-shadow:none;transform:none}
.live-dock button.dock-tab:hover{background:var(--al-neutral-bg);color:var(--al-ink)}
.live-dock button.dock-tab[aria-selected=true]{color:var(--al-ink);border-bottom-color:var(--al-primary-strong);font-weight:800}
.live-dock button.dock-tab:focus-visible{outline:2px solid var(--al-focus);outline-offset:-2px}
.dock-tab .al-ic{--icsz:20px}
.dock-badge{position:absolute;top:2px;inset-inline-end:calc(50% - 28px);min-width:22px;height:22px;display:inline-grid;place-items:center;padding:0 6px;border:1px solid var(--al-warning);border-radius:var(--radius-pill);background:var(--al-warning-bg);color:var(--al-ink);font-size:13px;font-weight:800;line-height:1;direction:ltr}
/* The tab panels: only the active one is drawn; each scrolls on its own inside the dock. */
.dock-panels{flex:1 1 auto;min-height:0;display:flex;flex-direction:column}
.dock-panel{display:none;flex:1 1 auto;min-height:0;flex-direction:column;gap:12px;overflow-y:auto;overscroll-behavior:contain;padding:10px var(--dock-pad) 12px;scroll-padding-top:8px}
.dock-panel[data-active]{display:flex}
.dock-panel:focus-visible{outline:2px solid var(--al-focus);outline-offset:-2px}
.dock-panel>.panel{flex:none;margin:0}
.dock-panel>.panel:empty{display:none}
.dock-empty{margin:0;padding:12px;border:1px dashed var(--al-field-strong);border-radius:var(--radius-sm);color:var(--al-muted);font-size:14px;line-height:1.7}
.dock-empty[data-state=loading]{border-style:solid;border-color:var(--al-line)}
.live-dock .member:focus,.live-dock .proposal:focus,#connection-warning:focus,#restore-warning:focus,#action-status:focus{outline:2px solid var(--al-focus);outline-offset:2px}
/* Confirmations inside the dock, never over the simulator: at most two, five seconds each (src/ui/live-dock.js). */
.dock-toasts{display:grid;gap:6px;padding:6px var(--dock-pad)}
.dock-toasts:empty{display:none}
.dock-toast{padding:10px 12px;border-radius:var(--radius-sm);background:var(--al-ink);color:var(--al-surface);font-size:14px;line-height:1.6;box-shadow:var(--shadow-card);overflow-wrap:anywhere;animation:dock-toast-in var(--dur-base) var(--ease-out)}
@keyframes dock-toast-in{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
/* The page's #toast stays the announced status region; on the instructor's room it is visually hidden and the dock shows it. */
body:has(.live-dock) #toast{position:fixed;width:1px;height:1px;max-width:none;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap;border:0;box-shadow:none}
/* «آخر الأحداث»: collapsed, page memory only. */
.dock-feed{border-top:1px solid var(--al-line);background:var(--al-shell);padding:0 var(--dock-pad)}
.dock-feed>summary{display:flex;align-items:center;gap:8px;cursor:pointer;font-size:14px;font-weight:800;color:var(--al-ink)}
.dock-feed>summary:focus-visible{outline:2px solid var(--al-focus);outline-offset:-2px}
.dock-feed-count{display:inline-grid;place-items:center;min-width:24px;height:24px;padding:0 6px;border:1px solid var(--line-card);border-radius:var(--radius-pill);background:var(--al-surface);font-size:13px;direction:ltr}
.dock-feed-help{margin:0 0 4px;font-size:13px;line-height:1.6;color:var(--al-muted)}
.dock-feed-list{list-style:none;margin:0 0 8px;padding:0;display:grid;gap:4px;max-height:140px;overflow-y:auto;font-size:13px;line-height:1.6;color:var(--al-ink)}
.dock-feed-list li{display:flex;gap:8px;align-items:baseline}
.dock-feed-list time{flex:none;font-family:var(--mono);color:var(--al-muted);direction:ltr;unicode-bidi:isolate}
.dock-feed-empty{color:var(--al-muted)}
/* The room fills the window below the header (README §3 common rules, §4.1); lead change: the frame and dock keep at least
   560px (the simulator console is unusable when shorter), so on short windows the page scrolls a little instead; the frame and the dock share the height left. The share box, the notices and the dark bar are made compact there. */
@media (min-width:900px){
  body:has(.live-dock){display:flex;flex-direction:column;height:100vh;height:100dvh}
  body:has(.live-dock)>.masthead{flex:none;width:100%;margin:0;padding-block:4px}
  body:has(.live-dock)>footer{flex:none;width:100%;margin:0 auto;padding-block:6px}
  body:has(.live-dock)>main{flex:1 1 0;display:flex;flex-direction:column;width:100%;min-height:auto;margin:0 auto;padding:10px var(--page-pad) 8px}
  body:has(.live-dock)>main>*{flex:none}
  body:has(.live-dock) .room-bar{margin-bottom:8px;padding:8px 14px}
  body:has(.live-dock) .room-bar>:first-child{flex:1 1 260px;display:flex;flex-wrap:wrap;align-items:center;column-gap:14px}
  body:has(.live-dock) .room-bar>:first-child>:is(.eyebrow,h1){flex:1 1 100%}
  body:has(.live-dock) .room-bar :is(.room-status-line,.room-next){margin:0}
  body:has(.live-dock) .room-bar .room-actions{flex:0 1 auto;gap:8px}
  body:has(.live-dock) #app>.content-notice{margin:0 0 8px}
  body:has(.live-dock) #app>.notice{margin-bottom:8px;padding:6px 12px}
  body:has(.live-dock) .room-share{grid-template-columns:auto auto minmax(0,1fr);align-items:center;column-gap:16px;margin:0 0 8px;padding:8px 16px}
  body:has(.live-dock) .room-share-code{font-size:26px;line-height:1.25}
  body:has(.live-dock) .room-share p{margin:0}
  .workspace:has(>.live-dock){--dock-w:320px;flex:1 1 0;min-height:560px;grid-template-columns:minmax(0,1fr) var(--dock-w);grid-template-rows:minmax(0,1fr);gap:12px}
  .workspace:has(>.live-dock)>*{min-width:0;min-height:0;contain:size}
  .workspace:has(>.live-dock) #simulator{height:100%;min-height:0}
}
@media (min-width:1181px){.workspace:has(>.live-dock){--dock-w:336px}}
@media (min-width:1360px){.workspace:has(>.live-dock){--dock-w:360px}}
/* At 1024 px and narrower the dock folds to a 76 px icon rail; a rail icon opens the dock on that tab. */
@media (min-width:900px) and (max-width:1024px){
  .live-dock button.dock-collapse{display:inline-flex}
  .workspace:has(>.live-dock[data-collapsed=true]){--dock-w:76px}
  .live-dock[data-collapsed=true]{--dock-pad:6px}
  .live-dock[data-collapsed=true] :is(.dock-attn,.dock-panels,.dock-feed){display:none}
  .live-dock[data-collapsed=true] .dock-head{justify-content:center;padding:6px}
  .live-dock[data-collapsed=true] :is(.dock-title,.dock-collapse-label,.dock-tab-label){position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
  .live-dock[data-collapsed=true] button.dock-collapse{width:100%;justify-content:center;padding:4px}
  .live-dock[data-collapsed=true] button.dock-attn-mini:not([hidden]){display:grid;place-items:center;gap:2px;margin:6px 6px 0;padding:4px;min-height:52px;background:var(--al-sky);color:var(--al-ink);border:1px solid var(--al-primary-strong);border-radius:var(--radius-sm);font-weight:800;box-shadow:none;transform:none}
  .live-dock[data-collapsed=true] button.dock-attn-mini[data-tone=danger]{background:var(--al-danger-bg);color:var(--al-danger);border:3px double var(--al-danger)}
  .live-dock[data-collapsed=true] button.dock-attn-mini[data-tone=warning]{background:var(--al-warning-bg);border-color:var(--al-warning)}
  .dock-attn-mini .al-ic{--icsz:20px}
  .live-dock[data-collapsed=true] .dock-tabs{flex:1 1 auto;min-height:0;flex-direction:column;gap:4px;margin:0;padding:6px;border:0;overflow-y:auto}
  .live-dock[data-collapsed=true] button.dock-tab{flex:none;min-height:48px;border-bottom:0;border-inline-start:3px solid transparent;border-radius:var(--radius-sm)}
  .live-dock[data-collapsed=true] button.dock-tab[aria-selected=true]{border-inline-start-color:var(--al-primary-strong);background:var(--al-sky)}
  .live-dock[data-collapsed=true] .dock-badge{inset-inline-end:4px}
  .live-dock[data-collapsed=true] .dock-toasts{position:fixed;top:8px;left:50%;z-index:30;width:min(420px,calc(100vw - 32px));padding:0;transform:translateX(-50%)}
}
/* Below 900 px (portrait tablet; the bottom sheet of README §3 is not built): the dock follows the frame with its own height. */
@media (max-width:899px){.live-dock{height:min(85vh,760px);margin-top:12px}.live-dock .dock-tabs{overflow-x:auto}}
/* P85 / contract I1: invitation by link. Inviter panel (src/ui/invites.js: org admin page inside the memberships section,
   the instructor's cohorts board) and the invitee's page (src/ui/invite-accept.js). Light work boards, tokens only,
   logical properties, 44 px targets; every status is words + a chip shape (never colour alone). */
.inv-block{margin-top:18px;padding-top:14px;border-top:1px solid var(--al-line)}
.coh-view .inv-block{margin-top:14px;border-top:0}
.inv-title{display:flex;gap:8px;align-items:center;margin:0 0 4px;font-size:17px;line-height:1.4}
.inv-title .al-ic{--icsz:18px;color:var(--al-primary-strong)}
.inv-title:focus{outline:none}
.inv-lead,.inv-help{margin:4px 0 0;color:var(--al-muted);font-size:14px;line-height:1.8}
.inv-status{margin:8px 0 0;color:var(--al-ink);font-size:14px;line-height:1.7}
.inv-status:empty,#inv-error:empty{display:none}
.inv-set{margin:12px 0 0;padding:0;border:0;min-width:0}
.inv-legend{padding:0;font-weight:700;font-size:15px}
.inv-rows{list-style:none;margin:8px 0 0;padding:0;display:grid;gap:10px}
.inv-row-set{margin:0;padding:10px 12px 8px;border:1px solid var(--line-card);border-radius:var(--radius-md);background:var(--al-surface);min-width:0}
.inv-row[data-invalid=true] .inv-row-set{border-color:var(--al-danger);border-inline-start-width:4px}
.inv-row-legend{padding:0 4px;font-size:13px;font-weight:700;color:var(--al-muted)}
.inv-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr));gap:4px 12px}
.inv-field{min-width:0}
.inv-field label{margin:6px 0 4px;font-size:13px}
.inv-block input,.inv-block select,.inv-block textarea{min-height:44px}
.inv-block button,.ina button,#inv-new-dialog button{min-height:44px}
.inv-block input[aria-invalid=true],.inv-block select[aria-invalid=true],.ina input[aria-invalid=true]{border:2px solid var(--al-danger)}
.inv-row-foot{display:flex;flex-wrap:wrap;gap:6px 12px;align-items:center;justify-content:space-between;margin-top:6px}
.inv-row-err,.ina-err{margin:0;color:var(--al-danger);font-size:13.5px;font-weight:700;line-height:1.6}
.inv-row-err:empty,.ina-err:empty{display:none}
.inv-row-foot button{margin-inline-start:auto}
.inv-tools,.inv-submit{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:10px}
.inv-tools button,.inv-copy-row button{display:inline-flex;gap:6px;align-items:center}
.inv-tools .al-ic,.inv-copy-row .al-ic{--icsz:16px}
.inv-csv{margin-top:10px;padding:10px 12px;border:1px dashed var(--line-card);border-radius:var(--radius-md);background:var(--al-shell)}
.inv-csv[hidden]{display:none}
.inv-csv label{margin-top:0}
.inv-csv textarea{font-family:ui-monospace,Consolas,monospace;font-size:13px}
.inv-csv button{margin-top:8px}
.inv-results{margin-top:16px;padding:12px 14px;border:1px solid var(--al-primary-strong);border-radius:var(--radius-md);background:var(--al-surface)}
.inv-results[hidden]{display:none}
.inv-results>:is(h3,h4){margin:0 0 4px;font-size:16px}
.inv-results>:is(h3,h4):focus{outline:none}
.inv-results>:is(h3,h4):focus-visible{outline:3px solid var(--al-focus);outline-offset:2px}
.inv-results-sum{margin:0 0 8px;font-weight:700}
.inv-rule{display:flex;gap:10px;align-items:flex-start;margin:8px 0;padding:10px 12px;border:1px solid var(--al-warning);border-inline-start-width:5px;border-radius:var(--radius-sm);background:var(--al-warning-bg);color:var(--al-ink)}
.inv-rule .al-ic{--icsz:20px;flex:0 0 auto;color:var(--al-warning)}
.inv-rule p{margin:0;display:grid;gap:4px;line-height:1.7}
.inv-rule span{font-size:13.5px}
.inv-secrets,.inv-failed{list-style:none;margin:8px 0 0;padding:0;display:grid;gap:10px}
.inv-secret,.inv-failed-row{padding:10px 12px;border:1px solid var(--line-card);border-radius:var(--radius-sm);background:var(--al-shell);min-width:0}
.inv-who{margin:0 0 4px;line-height:1.7;overflow-wrap:anywhere}
.inv-email{font-size:13.5px;color:var(--al-muted)}
.inv-secret-line label,.inv-code-label{display:block;margin:6px 0 4px;font-size:13px;font-weight:700}
.inv-copy-row{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.inv-link{flex:1 1 240px;min-width:0;font-family:ui-monospace,Consolas,monospace;font-size:13px}
.inv-code-box{margin:0;padding:6px 14px;border:1px dashed var(--al-primary-strong);border-radius:var(--radius-xs);background:var(--al-surface)}
.inv-code{font-family:ui-monospace,Consolas,monospace;font-size:22px;font-weight:700;letter-spacing:.12em;user-select:all;unicode-bidi:isolate}
.inv-code .code-group+.code-group{margin-inline-start:.6em}
.inv-reason{margin:0}
.inv-list-box{margin-top:18px}
.inv-list-head{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:space-between}
.inv-list-head>:is(h3,h4){margin:0;font-size:16px}
.inv-list-head>:is(h3,h4):focus{outline:none}
.inv-list-wrap{max-height:520px;overflow-y:auto;padding:2px;margin-top:8px}
.inv-list{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.inv-item{display:flex;flex-wrap:wrap;gap:8px 14px;align-items:center;justify-content:space-between;padding:10px 12px;border:1px solid var(--line-card);border-radius:var(--radius-sm);background:var(--al-surface)}
.inv-item:focus{outline:3px solid var(--al-primary);outline-offset:2px}
.inv-item:is([data-status=accepted],[data-status=expired],[data-status=revoked]){background:var(--al-shell)}
.inv-main{min-width:0;flex:1 1 220px}
.inv-item-name{margin:0;overflow-wrap:anywhere}
.inv-meta{margin:2px 0 0;color:var(--al-muted);font-size:13.5px;line-height:1.6;overflow-wrap:anywhere}
.inv-acts{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
#inv-new-dialog .inv-link{flex-basis:100%}
@media (max-width:480px){.inv-acts,.inv-tools{width:100%}.inv-acts button,.inv-tools button{flex:1 1 auto}}
/* The invitee's page: one light card under the masthead's Aleem identity. */
.ina{max-width:620px;margin:24px auto}
.ina-card{padding:24px;border:1px solid var(--al-line);border-radius:var(--radius-md);background:var(--al-surface);box-shadow:var(--shadow-card)}
.ina-eyebrow{display:flex;gap:8px;align-items:center}
.ina-eyebrow .al-ic{--icsz:18px;color:var(--al-primary-strong)}
.ina h1{font-size:clamp(24px,3vw,32px);margin:4px 0 6px}
.ina-lead{margin:0 0 12px;line-height:1.8}
.ina-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,170px),1fr));gap:8px;margin:12px 0 4px}
.ina-fact{padding:8px 12px;border:1px solid var(--al-line);border-radius:var(--radius-sm);background:var(--al-shell);min-width:0}
.ina-fact dt{font-size:var(--fs-caption);color:var(--al-muted)}
.ina-fact dd{margin:2px 0 0;font-weight:700;overflow-wrap:anywhere}
.ina-form input{min-height:44px}
.ina-help{margin:4px 0 0;color:var(--al-muted);font-size:13.5px;line-height:1.7}
.ina-code-input{font-family:ui-monospace,Consolas,monospace;letter-spacing:.2em;text-transform:uppercase}
.ina-alert{margin:12px 0 0;padding:10px 14px;border:3px double var(--al-danger);border-radius:var(--radius-sm);background:var(--al-danger-bg);color:var(--al-danger);display:grid;gap:4px;line-height:1.7}
.ina-alert:empty{display:none}
.ina-alert span{color:var(--al-ink);font-size:14px}
.ina-status{margin:10px 0 0}
.ina-status:empty{display:none}
.ina-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}
.ina-actions button{min-width:min(100%,260px)}
.ina-privacy{display:flex;gap:8px;align-items:flex-start;margin:16px 0 0;color:var(--al-muted);font-size:13.5px;line-height:1.7}
.ina-privacy .al-ic{--icsz:18px;flex:0 0 auto;color:var(--al-primary-strong)}
.ina-done{display:flex;gap:8px;align-items:center;font-weight:700}
.ina-done .al-ic{--icsz:20px;color:var(--al-success)}
@media (max-width:480px){.ina{margin:12px auto}.ina-card{padding:16px}.ina-actions button,.ina-actions .button-link{width:100%}}
/* P88 (docs/product/design/v7-live/README.md §9.2, option 1): the case picker. The native #case-id stays in the form as
   the submitted value, hidden from sight; the trigger shows the chosen case as a compact card and opens a search dialog
   of case cards with status filter chips. Tokens only; statuses keep the .review-badge words; targets >= 44px. */
#case-field select.case-pick-native{position:absolute;width:1px;height:1px;min-height:0;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
#case-field.case-pick-on{position:relative}
#case-field.case-pick-on #case-status,#case-field.case-pick-on .case-status>.sr-only{display:none}
#case-field button.case-pick-trigger{display:flex;align-items:center;gap:10px;width:100%;min-height:56px;padding:8px 14px;text-align:start;font-weight:400;line-height:1.5;color:var(--al-ink);background:var(--al-surface);border:1px solid var(--al-field-strong);border-radius:var(--radius-sm);box-shadow:none;transform:none}
#case-field button.case-pick-trigger:hover:not(:disabled){background:var(--al-shell);border-color:var(--al-primary-strong);box-shadow:var(--shadow-sm);transform:none}
#case-field button.case-pick-trigger:disabled{background:var(--al-disabled-bg);color:var(--al-disabled-text)}
.case-pick-icon{flex:none;color:var(--al-primary-strong);display:inline-flex}
.case-pick-icon .al-ic{margin:0}
.case-pick-value{flex:1 1 auto;min-width:0;display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px}
.case-pick-num,.case-card-num{font-weight:700;font-variant-numeric:tabular-nums;color:var(--al-ink)}
.case-pick-abbr,.case-card-abbr{display:inline-block;padding:0 8px;border:1px solid var(--al-line);border-radius:var(--radius-xs);background:var(--al-neutral-bg);color:var(--al-ink);font-size:var(--fs-caption);font-weight:700;line-height:1.8;white-space:nowrap}
.case-pick-title{font-weight:700;overflow-wrap:anywhere;min-width:0}
.case-pick-status .review-badge,.case-card-status .review-badge{display:inline-block}
.case-pick-change{flex:none;color:var(--al-primary-strong);font-weight:700;font-size:14px;text-decoration:underline;text-underline-offset:3px}
dialog.modal.case-picker{width:min(1040px,calc(100vw - 24px))}
dialog.modal.case-picker label{margin-top:4px}
.case-picker-hint{display:block;margin:6px 0 0;font-size:var(--fs-caption)}
.case-filters{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0 0}
dialog.modal.case-picker button.case-filter{min-height:44px;padding:6px 14px;border-radius:var(--radius-pill);font-weight:700}
dialog.modal.case-picker button.case-filter[aria-pressed=true]{background:var(--al-sky);border-color:var(--al-primary-strong);box-shadow:inset 0 0 0 1px var(--al-primary-strong)}
dialog.modal.case-picker button.case-filter[aria-pressed=true]::before{content:'✓' / '';margin-inline-end:6px}
.case-filter-n{font-weight:400}
.case-picker-count{margin:10px 0 6px;font-size:14px;color:var(--al-muted);min-height:1.9em}
.case-list{list-style:none;margin:0;padding:4px;display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,260px),1fr));gap:10px;max-height:min(56vh,560px);overflow:auto;border-radius:var(--radius-sm)}
.case-list:focus-visible{outline:2px solid var(--al-focus);outline-offset:2px}
.case-card{display:grid;grid-template-columns:1fr auto;grid-template-areas:"head status" "title title" "meta meta";gap:6px 10px;align-content:start;min-height:44px;padding:12px 14px;border:1px solid var(--al-line);border-radius:var(--radius-sm);background:var(--al-surface);cursor:pointer}
.case-card:hover{border-color:var(--al-primary-strong);background:var(--al-shell)}
.case-card[data-active=true]{outline:2px solid var(--al-focus);outline-offset:1px;border-color:var(--al-focus)}
.case-card[aria-selected=true]{border-color:var(--al-primary-strong);box-shadow:inset 0 0 0 1px var(--al-primary-strong);background:var(--al-sky)}
.case-card-head{grid-area:head;display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;min-width:0}
.case-card-status{grid-area:status;justify-self:end}
.case-card-title{grid-area:title;display:block;font-weight:700;line-height:1.5;overflow-wrap:anywhere}
.case-card-meta{grid-area:meta;display:flex;flex-wrap:wrap;gap:4px 12px;color:var(--al-muted);font-size:var(--fs-caption)}
.case-card-current{display:inline-flex;align-items:center;gap:2px;color:var(--al-primary-strong);font-size:var(--fs-caption);font-weight:700}
.case-card-current .al-ic{--icsz:16px;margin:0}
.case-picker-empty{padding:18px 4px;color:var(--al-muted)}
.case-picker-empty p{margin:0 0 10px}
@media (max-width:640px){.case-list{max-height:none}dialog.modal.case-picker{padding:16px}.case-pick-change{display:none}}
@media (prefers-reduced-motion:reduce){#case-field button.case-pick-trigger,.case-card{transition:none}}
/* Lead (P85 visual review 2026-11-26): the members section now holds «دعوة برابط»; it spans the admin grid so the invite
   rows lay out side by side (.inv-fields auto-fit) instead of a narrow column beside empty space. */
.admin-grid>#org-memberships{grid-column:1/-1}
/* P89 (owner tasking 2026-11-26; docs/product/design/v7-polish/p89.md): (A) the instructor home - the page header inside the
   dark hero, ONE «جلسة جديدة» control with a slow sheen, balanced columns and the shortcuts; (B) the admin page's folded
   sections as one grouped list «إدارة المؤسسة»; (C) the live room's floating notifications; (D) the dock's «next step» hint.
   Tokens only; the light boards stay light, the hero and the notifications use the dark tokens. Motion stops under
   prefers-reduced-motion (the global rule), except the notifications' opacity fade (no movement). */
:root{--fs-title-page:clamp(1.625rem,1.1rem + 1.2vw,2.125rem);--home-hero-soft:color-mix(in srgb,var(--al-surface) 80%,var(--al-navy));--home-cta-sheen:color-mix(in srgb,var(--al-surface) 30%,transparent);--dur-sheen:5.5s}
[dir=rtl]{--sheen-a:0%;--sheen-b:100%}[dir=ltr]{--sheen-a:100%;--sheen-b:0%}
/* (A) The hero: greeting and date, the page's one h1, the lead (only while no follow-up card is drawn), the follow-up card
   flattened into it, and the call to action at the inline end. The trace band of heroDecoHtml sits below the words. */
.home-hero{position:relative;overflow:hidden;isolation:isolate;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:'head cta' 'slot slot';align-items:center;gap:10px 24px;margin-bottom:18px;padding:22px 24px 58px;background:var(--al-navy);color:var(--al-surface);border-radius:var(--radius-md);box-shadow:var(--shadow-card)}
.home-hero::after{content:'';position:absolute;inset-inline-end:-60px;top:-60px;width:200px;height:200px;border-radius:50%;border:28px solid color-mix(in srgb,var(--al-sky) 6%,transparent);pointer-events:none;z-index:0}
.home-hero>.section-head{grid-area:head;position:relative;z-index:1;min-width:0;margin:0}
.home-hero .home-greeting{color:var(--al-surface)}
.home-hero .home-date{color:var(--home-hero-soft)}
.home-hero h1{margin:2px 0 0;font-size:var(--fs-title-page);line-height:1.3;color:var(--al-surface)}
.home-hero h1:focus-visible{outline-color:var(--focus-ring-dark)}
.home-hero .home-hero-lead{margin:6px 0 0;max-width:62ch;color:var(--home-hero-soft);font-size:15px;line-height:1.7}
.home-hero:has(#continue-slot>*) .home-hero-lead{display:none}
.home-hero>#continue-slot{grid-area:slot;position:relative;z-index:1;min-width:0;margin:0}
.home-hero .panel.home-next{margin:0;padding:14px 0 0;background:none;border:0;border-top:1px solid color-mix(in srgb,var(--al-surface) 16%,transparent);border-radius:0;box-shadow:none;overflow:visible}
.home-hero .panel.home-next::after{display:none}
.home-hero .home-next h2{font-size:19px}
.home-hero>.home-hero-cta{grid-area:cta;position:relative;z-index:1}
.home-hero button:focus-visible{outline-color:var(--al-focus-dark)}
/* The one call to action: a light sheen sweeps across it every few seconds (background-position of its own layer, so the
   button never changes size or swaps its background image on hover); the plus turns 90deg on hover. */
.home-hero .home-cta{position:relative;overflow:hidden;isolation:isolate;display:inline-flex;align-items:center;gap:8px;min-height:48px;padding:10px 22px;font-size:16px;font-weight:800;color:var(--al-surface);white-space:nowrap}
.home-cta .al-ic{--icsz:20px;transition:transform var(--dur-warm) var(--ease-out)}
.home-cta:hover .al-ic,.home-cta:focus-visible .al-ic{transform:rotate(90deg)}
.home-cta-sheen{position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(105deg,transparent 42%,var(--home-cta-sheen) 50%,transparent 58%) no-repeat;background-size:300% 100%;background-position:var(--sheen-a) 0}
@keyframes home-cta-sheen{0%{background-position:var(--sheen-a) 0}30%,100%{background-position:var(--sheen-b) 0}}
@media (prefers-reduced-motion:reduce){.home-cta-sheen{display:none}}
/* While a live session or an imminent schedule leads the hero, its own button is the primary; the call to action becomes the
   light outline (the background is a colour in both states, so hover animates a colour, never an image). */
.home-hero:has(#continue-card,[data-next=soon]) .home-cta{background:transparent;border:1px solid color-mix(in srgb,var(--al-surface) 72%,transparent);box-shadow:none}
.home-hero:has(#continue-card,[data-next=soon]) .home-cta:hover{background-color:color-mix(in srgb,var(--al-surface) 12%,transparent)}
/* The form card: a brief ring when the call to action brings it into view (a still outline under reduced motion). */
.home-new.is-called{animation:home-new-called 1.6s var(--ease-out)}
@keyframes home-new-called{0%{box-shadow:var(--shadow-card)}18%{box-shadow:0 0 0 4px color-mix(in srgb,var(--al-primary) 45%,transparent),var(--shadow-card)}100%{box-shadow:var(--shadow-card)}}
@media (prefers-reduced-motion:reduce){.home-new.is-called{outline:3px solid var(--al-primary-strong);outline-offset:2px}}
.home-new-more{margin:8px 0 0}
.home-new-more .link-button{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0;background:none;border:0;box-shadow:none;color:var(--al-primary-strong);font-size:14px;font-weight:700;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.home-new-more .link-button .al-ic{--icsz:16px}
.home-new-more .link-button:hover{color:var(--al-ink)}
/* Balanced columns: the form stays in the narrow column; the wide column holds the sessions, «needs your attention» beside
   the review notice, and the shortcuts. The narrow column spans every row; the last row takes what is left. */
.dashboard-grid.home-cols{grid-template-columns:minmax(0,1fr) minmax(280px,340px);grid-template-areas:'main new' 'side new' 'short new' 'rest new';grid-template-rows:auto auto auto 1fr;align-items:start}
.home-cols>.home-side{grid-template-columns:minmax(0,1fr);align-items:start}
.home-cols>.home-side>.home-attention{margin:0}
.home-cols>.home-shortcuts{grid-area:short;min-width:0}
.home-shortcuts{display:grid;grid-template-columns:minmax(0,1fr);gap:2px;padding:12px 16px;background:var(--al-surface);border:1px solid var(--line-card);border-radius:var(--radius-md);box-shadow:var(--shadow-card)}
.home-shortcuts-title{margin:0 0 2px;font-size:var(--fs-caption);font-weight:800;line-height:1.5;color:var(--al-muted)}
.home-shortcuts>.panel.rubrics-panel{margin:0;padding:8px 0;background:none;border:0;border-top:1px solid var(--al-line);border-radius:0;box-shadow:none}
.home-shortcuts .row.between{flex-wrap:nowrap;align-items:center;gap:12px}
.home-shortcuts .rubrics-panel-text{flex:1 1 auto}
.home-shortcuts .rubrics-panel-text h2{margin:0;font-size:15px;line-height:1.5}
.home-shortcuts .rubrics-panel-text p{margin:0;font-size:var(--fs-caption);line-height:1.5;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.home-shortcuts .row.between>button{flex:none;min-height:44px}
@media (max-width:1100px){
  .dashboard-grid.home-cols{grid-template-columns:minmax(0,1fr);grid-template-areas:'new' 'main' 'side' 'short';grid-template-rows:none}
}
@media (max-width:620px){
  .home-hero{grid-template-columns:minmax(0,1fr);grid-template-areas:'head' 'cta' 'slot';padding:18px 16px 54px}
  .home-hero .home-cta{width:100%;justify-content:center}
  .home-cols>.home-side{grid-template-columns:minmax(0,1fr)}
  .home-shortcuts .row.between{flex-wrap:wrap}
  .home-shortcuts .rubrics-panel-text p{white-space:normal}
}
/* (B) Admin: one panel «إدارة المؤسسة»; each section is a 56 px row (icon, title, one short line, chevron) and opens its own
   content beneath it. The index above stays (the sidebar and the needs list open sections through it) as a slim line. */
.admin-sections-nav{margin:0 0 10px}
.admin-sections-nav ul{gap:0 2px}
.admin-sections-nav a{padding-inline:8px;font-size:14px;font-weight:700;text-decoration:none;color:var(--al-primary-strong);border-radius:var(--radius-sm)}
.admin-sections-nav a:hover{background:var(--al-neutral-bg);text-decoration:underline;text-underline-offset:3px}
.admin-sections-nav a[aria-current=true]{text-decoration:underline;text-decoration-thickness:3px;text-underline-offset:4px}
.admin-manage{padding:14px 16px 4px}
.admin-manage>h2{margin:0 0 6px;font-size:17px}
.admin-manage-list{display:grid;grid-template-columns:minmax(0,1fr)}
.admin-manage-list>#admin-panel{display:grid;grid-template-columns:minmax(0,1fr);gap:0;margin:0}
.admin-manage .panel.admin-fold{margin:0;padding:0;background:none;border:0;border-top:1px solid var(--al-line);border-radius:0;box-shadow:none}
.admin-manage .admin-fold[data-folded=true]{padding-block:0}
.admin-manage .admin-fold[data-folded=false]{padding-bottom:18px}
.admin-manage .admin-fold>.fold-head{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:12px;row-gap:0;min-height:56px;margin:0;padding:2px 8px;border-radius:var(--radius-sm)}
.admin-manage .admin-fold>.fold-head:hover{background:var(--al-neutral-bg)}
.admin-manage .fold-head .rubrics-panel-text{display:contents}
.admin-manage .fold-head h2{grid-column:1;margin:0;font-size:16px;line-height:1.35}
.admin-manage .fold-head .fold-desc{grid-column:1;margin:0;padding-inline-start:44px;font-size:var(--fs-caption);line-height:1.4;color:var(--al-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.admin-manage .fold-head .rubrics-panel-text>p{grid-column:1/-1;margin:4px 0 0}
.admin-manage .fold-head>:is(button,.button-link,.row){grid-column:2;grid-row:1/span 2;position:relative;z-index:1}
.admin-manage .admin-fold h2 .fold-toggle{display:flex;width:100%;gap:12px;min-height:32px}
.admin-manage .admin-fold h2 .fold-toggle::before{order:2;margin-inline-start:auto;flex:none}
.admin-manage .admin-fold h2 .fold-toggle::after{content:'';position:absolute;inset:0;border-radius:inherit}
.admin-manage .admin-fold h2 .fold-toggle:focus-visible{outline:none}
.admin-manage .admin-fold>.fold-head:has(.fold-toggle:focus-visible){outline:2px solid var(--al-focus);outline-offset:-2px}
.fold-ico{display:grid;place-items:center;flex:none;width:32px;height:32px;border-radius:10px;background:var(--al-warm);color:var(--al-ink);--duo:var(--home-sky-duo)}
.fold-ico .al-ic{--icsz:18px}
.admin-manage .admin-fold[data-folded=true] .fold-head>:is(button,.button-link,.row),.admin-manage .admin-fold[data-folded=true] .fold-head .rubrics-panel-text>p:not(.fold-desc){display:none}
.admin-manage .admin-fold[data-folded=false] .fold-desc{display:none}
.admin-manage .admin-fold[data-folded=false]>:not(.fold-head){margin-inline:8px}
@media (max-width:620px){.admin-manage{padding-inline:10px}.admin-manage .fold-head .fold-desc{white-space:normal}}
/* (C) Live room: the floating notifications (src/ui/live-dock.js #dock-notify). Top of the window over the dock's column
   (inline end) on wide screens, centred on narrow ones; dark surface; slide and fade in, fade out; at most three. */
.dock-notify{position:fixed;z-index:40;top:12px;inset-inline-end:var(--page-pad,16px);width:min(360px,calc(100vw - 24px));display:grid;gap:8px;pointer-events:none}
.dock-notify:empty{display:none}
.dock-note{pointer-events:auto;display:flex;align-items:center;gap:10px;min-height:52px;padding:8px;padding-inline-start:12px;background:var(--sim-panel);color:var(--sim-ink);border:1px solid var(--sim-border);border-inline-start:4px solid var(--al-focus-dark);border-radius:var(--radius-md);box-shadow:var(--shadow-overlay);font-size:14px;line-height:1.5;opacity:0;transform:translateY(-14px);transition:opacity var(--dur-warm) var(--ease-out),transform var(--dur-warm) var(--ease-out)}
.dock-note.is-in{opacity:1;transform:none}
.dock-note.is-out{opacity:0;transform:translateY(-8px)}
.dock-note[data-tone=danger]{border-inline-start-color:var(--danger-on-dark)}
.dock-note[data-tone=warning]{border-inline-start-color:var(--al-sand)}
.dock-note[data-tone=success]{border-inline-start-color:var(--live-on-dark)}
.dock-note-ico{flex:none;display:grid;place-items:center;color:var(--al-focus-dark)}
.dock-note[data-tone=danger] .dock-note-ico{color:var(--danger-on-dark)}
.dock-note[data-tone=warning] .dock-note-ico{color:var(--al-sand)}
.dock-note[data-tone=success] .dock-note-ico{color:var(--live-on-dark)}
.dock-note-ico .al-ic{--icsz:20px}
.dock-note-text{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dock-notify button.dock-note-act{flex:none;min-height:36px;padding:4px 12px;background:transparent;color:var(--sim-ink);border:1px solid var(--sim-muted);border-radius:var(--radius-sm);font-size:14px;font-weight:700;box-shadow:none;cursor:pointer}
.dock-notify button.dock-note-act:hover{background:color-mix(in srgb,var(--sim-ink) 12%,transparent)}
.dock-notify button.dock-note-close{position:relative;flex:none;width:32px;height:32px;min-height:32px;padding:0;background:transparent;border:0;border-radius:var(--radius-sm);color:var(--sim-muted);box-shadow:none;cursor:pointer}
.dock-notify button.dock-note-close::before,.dock-notify button.dock-note-close::after{content:'';position:absolute;top:50%;left:50%;width:14px;height:2px;border-radius:1px;background:currentColor;transform:translate(-50%,-50%) rotate(45deg)}
.dock-notify button.dock-note-close::after{transform:translate(-50%,-50%) rotate(-45deg)}
.dock-notify button.dock-note-close:hover{background:color-mix(in srgb,var(--sim-ink) 12%,transparent);color:var(--sim-ink)}
@media (prefers-reduced-motion:reduce){.dock-note,.dock-note.is-out{transform:none!important;transition:opacity var(--dur-base) linear!important}}
@media (max-width:899px){.dock-notify{inset-inline:0;margin-inline:auto;width:min(420px,calc(100vw - 24px))}}
/* (D) The dock's «next step» hint: a dot and «التالي» above the tab's icon (a reserved band, so nothing moves when it appears). */
.live-dock button.dock-tab{padding-top:20px;min-height:64px}
.live-dock .dock-next{position:absolute;top:3px;inset-inline:0;margin-inline:auto;width:max-content;display:inline-flex;align-items:center;gap:4px;padding:0 6px;border-radius:var(--radius-pill);background:var(--al-sky);color:var(--al-primary-strong);font-size:var(--fs-caption);font-weight:800;line-height:1.35}
.live-dock .dock-next[hidden]{display:none}
.dock-next-dot{width:7px;height:7px;border-radius:50%;background:var(--al-primary-strong)}
@media (min-width:900px) and (max-width:1024px){
  .live-dock[data-collapsed=true] button.dock-tab{padding-top:6px;min-height:48px}
  .live-dock[data-collapsed=true] .dock-next{top:4px;inset-inline:auto 4px;margin:0;padding:0;background:none}
  .live-dock[data-collapsed=true] .dock-next-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
}
/* P89: a folded row hides its content even where an id rule sets a display (the role requests list did, leaving an empty band). */
.admin-manage .admin-fold[data-folded=true]>:not(.fold-head){display:none!important}
/* Lead review (P89): the rubrics and records rows keep their short line while folded (it sits inside .rubrics-panel-text);
   the row chevron reads as an accordion in both directions: down while folded, up while open (physical borders, so RTL and
   LTR draw the same shape). */
.admin-manage .fold-head .rubrics-panel-text>p.fold-desc{grid-column:1;margin:0}
.admin-manage .admin-fold h2 .fold-toggle::before,[dir=rtl] .admin-manage .admin-fold h2 .fold-toggle::before{border:0;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:translateY(-2px) rotate(45deg)}
.admin-manage .admin-fold h2 .fold-toggle[aria-expanded=true]::before,[dir=rtl] .admin-manage .admin-fold h2 .fold-toggle[aria-expanded=true]::before{transform:translateY(2px) rotate(-135deg)}
/* Lead review (P89): the empty band under «طلبات الدور التعليمي» was the old #content-panel{margin-top:28px} (line 50). */
.admin-manage-list>#content-panel{margin-top:0}
/* Lead fix (full e2e 2026-11-26, role approvals p1 at 390 px after the suite's other tests): the list's implicit grid
   column grew to the min-content of the longest unbreakable string (an invited email or link) and scrolled the page
   sideways. The column is now minmax(0,1fr) and every row may shrink. */
.admin-manage-list>*,.admin-manage-list>#admin-panel>*{min-width:0}
/* P105 v9 batch B1 (docs/product/design/v9/DESIGN-SPEC.md, direction A). The semantic tokens sit on the first :root; the
   older names (--dur-*, --ease-out, --ease-spring-warm) are aliases of them. This layer holds what the tokens alone cannot say.
   It sits before the later feature blocks (several tests read those to the end of the file) and changes no behaviour; session surfaces share its tokens (see the P105 review note at the end of the file), but no
   rule here targets the monitor or the simulator frame.
   Notices: one shape for the four tones (hairline box, 4px bar at the inline start, an icon drawn as a mask, so the tone never
   rests on colour alone). A notice without data-tone keeps the caution tone it always had; the wording is never touched here. */
.notice,.content-notice{--tone-fg:var(--tone-warn-fg);--tone-bg:var(--tone-warn-bg);--tone-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill-rule='evenodd' d='M10 1.5l9 16H1l9-16zM9 7.5v5h2v-5H9zm0 6.5v2h2v-2H9z'/%3E%3C/svg%3E")}
:is(.notice,.content-notice)[data-tone=info]{--tone-fg:var(--tone-info-fg);--tone-bg:var(--tone-info-bg);--tone-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill-rule='evenodd' d='M10 1a9 9 0 100 18 9 9 0 000-18zM9 9h2v6H9V9zm0-4h2v2H9V5z'/%3E%3C/svg%3E")}
:is(.notice,.content-notice)[data-tone=danger]{--tone-fg:var(--tone-danger-fg);--tone-bg:var(--tone-danger-bg);--tone-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill-rule='evenodd' d='M6.3 1h7.4L19 6.3v7.4L13.7 19H6.3L1 13.7V6.3L6.3 1zM9 5v7h2V5H9zm0 8.5v2h2v-2H9z'/%3E%3C/svg%3E")}
:is(.notice,.content-notice)[data-tone=success]{--tone-fg:var(--tone-success-fg);--tone-bg:var(--tone-success-bg);--tone-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill-rule='evenodd' d='M10 1a9 9 0 100 18 9 9 0 000-18zm4.7 6.3l-5.7 6.4-3.3-3.2 1.4-1.4 1.8 1.7 4.3-4.9 1.5 1.4z'/%3E%3C/svg%3E")}
:is(.notice,.content-notice)::before{content:"";display:inline-block;flex:none;align-self:center;width:1.15em;height:1.15em;margin-inline-end:var(--sp-2);vertical-align:-.2em;background:currentColor;-webkit-mask:var(--tone-icon) center/contain no-repeat;mask:var(--tone-icon) center/contain no-repeat}
.content-notice{border-inline-start-width:4px;border-radius:var(--radius-xs)}
@media (forced-colors:active){:is(.notice,.content-notice)::before{background:CanvasText}}
/* Dialogs: card radius, the overlay shadow, actions at the shared control size; the confirming danger action is filled. */
dialog.modal{border-radius:var(--radius-md);box-shadow:var(--shadow-overlay)}
dialog.modal[open]{animation:p105-dialog-in var(--motion-panel) var(--ease-enter)}
@keyframes p105-dialog-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
dialog.modal .modal-actions button{min-height:var(--control-h);min-width:var(--control-h);padding-inline:18px;font-size:var(--fs-control)}
dialog.modal .modal-actions button.danger:not(:disabled,[aria-disabled=true]){background:var(--action-danger-bg);border-color:var(--action-danger-bg);color:var(--text-on-action)}
dialog.modal .modal-actions button.danger:hover:not(:disabled,[aria-disabled=true]){background:color-mix(in srgb,var(--action-danger-bg) 85%,var(--al-navy));border-color:color-mix(in srgb,var(--action-danger-bg) 85%,var(--al-navy))}
/* Targets: every standalone control of the sign-in card and the waiting room is at least 44px. */
:where(.entry-card,.waiting) :where(button:not(.link-button),.button-link,select){min-height:var(--control-h);min-width:var(--control-h)}
.signin-code summary{min-height:var(--control-h);padding-block:10px;font-size:var(--fs-dense)}
/* A long sentence is never a chip: the survey's privacy note is a plain information notice. */
.srv-notice.notice{margin:6px 0 10px;font-size:var(--fs-dense);line-height:var(--lh-body)}
/* AC-V9-B1-22: at 320px in English «Quick join with a code» was wider than its half of the method switch and made the page
   scroll sideways by 13px (measured, tests/p105-b1.spec.js). The two halves may shrink and the words wrap inside their tab. */
.entry .tabs{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.entry .tabs button{min-width:0;white-space:normal;overflow-wrap:anywhere;line-height:var(--lh-tight)}
/* AC-V9-B1-11: the bell was 38px wide on a phone. */
.masthead .ntf-bell{min-width:var(--control-h)}
/* Tables: a plain header band. */
.aleem-table th,.ev-table th{background:var(--surface-sunken);font-weight:var(--fw-bold)}
/* I1-S2-UI (owner decision V7-D4; contract I1 revision 2): password reset, members accountability facts, held sign-ups.
   Light board, tokens only; the reset page reuses the invitee card (.ina). */
.signin-forgot{margin:6px 0 0;text-align:start}
.signin-forgot .link-button,.pwr-actions .link-button{min-height:44px;padding:8px 0;font-size:14px;font-weight:700;text-underline-offset:3px}
.pwr-request input{min-height:44px}
.pwr-request input[aria-invalid=true]{border:2px solid var(--al-danger)}
.pwr-help{margin:4px 0 0;color:var(--al-muted);font-size:13.5px;line-height:1.7}
.pwr-status{margin:10px 0 0;color:var(--al-muted);font-size:14px}
.pwr-status:empty{display:none}
.pwr-actions{display:flex;flex-wrap:wrap;gap:4px 16px;align-items:center;margin-top:12px}
.pwr-actions .full{margin-top:8px}
.pwr-sent{display:flex;gap:10px;align-items:flex-start;margin:8px 0 4px;padding:12px 14px;border:1px solid var(--al-success);border-inline-start-width:5px;border-radius:var(--radius-sm);background:var(--al-success-bg);color:var(--al-ink)}
.pwr-sent .al-ic{--icsz:20px;flex:0 0 auto;color:var(--al-success)}
.pwr-sent p{margin:0;display:grid;gap:4px;line-height:1.8}
.pwr-sent span{font-size:14px}
.pwr-done-list{margin:10px 0 0;padding-inline-start:22px;display:grid;gap:6px;line-height:1.8}
.pwr .ina-done span{overflow-wrap:anywhere}
.ina-pending p{margin:8px 0 0;line-height:1.8}
.ina-pending .ina-done .al-ic{color:var(--al-warning)}
.member-facts{display:flex;flex-wrap:wrap;gap:6px 8px;align-items:center;margin-top:6px;min-width:0}
.member-tag{display:inline-flex;align-items:center;padding:2px 10px;border:1px solid var(--al-primary-strong);border-radius:var(--radius-pill);background:var(--al-sky);color:var(--al-primary-strong);font-size:13px;font-weight:700;line-height:1.7}
.member-meta{color:var(--al-muted);font-size:13px;line-height:1.7;overflow-wrap:anywhere;min-width:0}
.member-self-linked-help{display:block;margin-top:4px;max-width:62ch;color:var(--al-ink);font-size:13px;line-height:1.7}
.approval-kind{display:inline-flex;margin-inline-end:8px;padding:1px 8px;border:1px solid var(--al-primary-strong);border-radius:var(--radius-pill);background:var(--al-sky);color:var(--al-primary-strong);font-size:12.5px;font-weight:700;line-height:1.7}
.approval-signals{display:flex;flex-wrap:wrap;gap:4px 6px;align-items:center;margin:6px 0 0;font-size:13px;line-height:1.7}
.approval-signals-label{color:var(--al-muted);font-weight:700}
.approval-signal{padding:1px 8px;border:1px solid var(--al-warning);border-radius:4px;background:var(--al-warning-bg);color:var(--al-ink)}
.approval-actions{gap:8px}
.approval-actions button,#reset-link-dialog button,#approval-decline-dialog button{min-height:44px}
#reset-link-dialog .inv-link{flex-basis:100%}
#reset-link-close{min-width:112px;padding-inline:24px}
#reset-link-copy-status:empty{display:none}
.pwr-shared{margin-top:8px}
.pwr-shared .al-ic{color:var(--al-warning)}
@media (max-width:480px){.approval-actions{width:100%}.approval-actions button{flex:1 1 auto}#reset-link-dialog .inv-copy-row button{flex:1 1 auto}}
/* AI-R1 orb (owner decision V7-D6; owner approval 2026-11-27 of prototypes/ai-orb/index.html; src/ui/ai-orb.js). The Aleem
   assistant's glass orb: glow, glass body, inner swirl, identity ring, shine, two eyes and the logo's gold crescent smile.
   Colours from the --orb-* tokens only (declared on :root near the top), size from --s, state from data-state
   (idle / thinking / answer / offline). The small variant (.sm, 24-28 px in the navigation) drops the swirl, the shine and
   the breathing. prefers-reduced-motion stops every animation and transition. The orb is aria-hidden: its control carries
   the name. Placed before the P90 block, whose test keeps everything after it free of motion. */
.orb{--s:44px;--orbt-spin:9s;--orbt-swirl:14s;position:relative;display:inline-block;flex:none;width:var(--s);height:var(--s);border-radius:50%;isolation:isolate;vertical-align:middle;animation:orb-breathe 4.8s ease-in-out infinite}
.orb>*{display:block}
.orb-glow{position:absolute;inset:-12%;z-index:-1;border-radius:50%;background:conic-gradient(from 0deg,var(--orb-teal),var(--orb-mint),var(--orb-gold),var(--orb-sage),var(--orb-navy),var(--orb-teal));filter:blur(calc(var(--s)*.12));opacity:.75;animation:orb-spin var(--orbt-spin) linear infinite}
.orb-body{position:absolute;inset:0;overflow:hidden;border-radius:50%;background:radial-gradient(circle at 50% 64%,var(--orb-core-1) 0%,var(--orb-core-2) 50%,var(--orb-core-3) 100%);box-shadow:inset 0 calc(var(--s)*-.04) calc(var(--s)*.12) color-mix(in srgb,var(--orb-shade) 45%,transparent)}
.orb-swirl{position:absolute;inset:8%;border-radius:50%;background:conic-gradient(from 90deg,transparent 0 20%,color-mix(in srgb,var(--orb-mint) 55%,transparent) 32%,transparent 46%,color-mix(in srgb,var(--orb-gold) 45%,transparent) 66%,transparent 80%);filter:blur(calc(var(--s)*.06));opacity:.75;animation:orb-spin var(--orbt-swirl) linear infinite reverse}
.orb-ring{position:absolute;inset:0;border-radius:50%;background:conic-gradient(from 0deg,var(--orb-teal),var(--orb-mint) 18%,var(--orb-gold-light) 34%,var(--orb-gold) 42%,var(--orb-sage) 58%,var(--orb-navy) 76%,var(--orb-teal));-webkit-mask:radial-gradient(farthest-side,transparent calc(100% - var(--s)*.115),var(--orb-shade) calc(100% - var(--s)*.1));mask:radial-gradient(farthest-side,transparent calc(100% - var(--s)*.115),var(--orb-shade) calc(100% - var(--s)*.1));filter:blur(calc(var(--s)*.008));animation:orb-spin var(--orbt-spin) linear infinite}
.orb-shine{position:absolute;inset:0;border-radius:50%;background:radial-gradient(ellipse 46% 30% at 36% 22%,color-mix(in srgb,var(--orb-shine) 42%,transparent),transparent 70%),radial-gradient(ellipse 60% 40% at 60% 92%,color-mix(in srgb,var(--orb-mint) 25%,transparent),transparent 70%);pointer-events:none}
.orb-eyes{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:calc(var(--s)*.14);animation:orb-look 7s ease-in-out infinite}
.orb-eye{display:block;width:calc(var(--s)*.075);height:calc(var(--s)*.16);border-radius:var(--radius-pill);background:var(--orb-eye);box-shadow:0 0 calc(var(--s)*.06) color-mix(in srgb,var(--orb-eye-glow) 85%,transparent);transform-origin:50% 50%;animation:orb-blink 4.6s infinite;transition:height .3s}
.orb-smile{position:absolute;left:50%;top:63%;width:calc(var(--s)*.22);height:calc(var(--s)*.09);border:calc(var(--s)*.022) solid var(--orb-gold);border-top:0;border-radius:0 0 var(--radius-pill) var(--radius-pill);opacity:0;transform:translateX(-50%) scale(.2);transition:transform .35s var(--ease-enter),opacity .25s}
@keyframes orb-spin{to{transform:rotate(360deg)}}
@keyframes orb-blink{0%,90%,100%{transform:scaleY(1)}93%{transform:scaleY(.12)}96%{transform:scaleY(1)}}
@keyframes orb-look{0%,40%,100%{transform:translate(0,0)}48%,62%{transform:translate(calc(var(--s)*-.05),calc(var(--s)*-.015))}70%,84%{transform:translate(calc(var(--s)*.04),0)}}
@keyframes orb-breathe{0%,100%{transform:scale(1)}50%{transform:scale(1.035)}}
@keyframes orb-think{0%,100%{transform:translate(calc(var(--s)*-.035),calc(var(--s)*-.03))}50%{transform:translate(calc(var(--s)*.035),calc(var(--s)*-.03))}}
.orb[data-state=thinking]{--orbt-spin:1.6s;--orbt-swirl:2.4s}
.orb[data-state=thinking] .orb-eyes{animation:orb-think 1.4s ease-in-out infinite}
.orb[data-state=thinking] .orb-eye{height:calc(var(--s)*.11)}
.orb[data-state=answer] .orb-smile{opacity:1;transform:translateX(-50%) scale(1)}
.orb[data-state=answer] .orb-eye{height:calc(var(--s)*.09)}
.orb[data-state=offline]{animation:none}
.orb[data-state=offline] .orb-ring,.orb[data-state=offline] .orb-glow{filter:grayscale(1) blur(calc(var(--s)*.008));animation:none}
.orb[data-state=offline] .orb-glow{opacity:.08}
.orb[data-state=offline] .orb-swirl{opacity:.2;animation:none}
.orb[data-state=offline] .orb-eye{height:calc(var(--s)*.04);opacity:.45;animation:none}
.orb.sm{animation:none}
.orb.sm .orb-swirl,.orb.sm .orb-shine,.orb.sm .orb-smile{display:none}
.orb.sm .orb-glow{opacity:.35}
@media (prefers-reduced-motion:reduce){.orb,.orb *{animation:none!important;transition:none!important}}
/* The navigation item (sidebar, tablet rail, phone bar and «المزيد» panel): the small orb in place of an icon. */
.app-nav .app-nav-item .orb{--s:26px}
@media (max-width:620px){.app-nav .app-nav-item .orb{--s:22px}}
/* P93-S6: the AI-R1 floating button was removed (one entry per screen size; it covered content in the P93 audit). The
   phone header entry and the chat panel are styled in the «P93-S6 assistant» block. */
/* The dialog: the orb beside the title; the AI-drafted answer as text (line breaks kept), its label, the model line, the
   fallback note and the privacy line under the question field. */
.asst-head{display:flex;align-items:center;gap:12px;margin:0 0 10px}
.asst-head .orb{--s:44px}
.asst-head h2{margin:0}
.asst-privacy{margin:0;font-size:13px;font-weight:700;line-height:1.6;color:var(--al-ink)}
.asst-model{display:grid;gap:8px;margin:0 0 12px;padding:10px 12px;border:1px solid var(--line-card);border-inline-start:4px solid var(--al-primary-strong);border-radius:var(--radius-sm,4px);background:var(--al-surface)}
.asst-dialog .asst-ai-label{justify-self:start;border-color:var(--al-primary-strong);background:var(--al-sky);color:var(--al-ink)}
.asst-answer{margin:0;white-space:pre-line;overflow-wrap:anywhere;line-height:1.8;color:var(--al-ink)}
.asst-model-line{margin:0;font-size:13px;color:var(--al-muted)}
.asst-fallback{margin:0 0 10px;font-size:13px;line-height:1.6;color:var(--al-muted)}
/* P93-S1 shell foundation (owner decision V7-D13; docs/product/design/v8-ia.md v8.1 gradients and the v8.2 UI UX Pro Max
   review table; reference CSS prototypes/v8-ia/index.html). UI UX Pro Max rules applied: touch-target-size, focus-states,
   skip-links, focus-not-obscured, fixed-element-offset, number-tabular, nav-state-active. Scope: the signed-in shell and the
   light work boards only - body.app-nav-on, which src/ui/shell.js never sets on a live session page (/room/CODE) or the
   sign-in page, so the dark simulation keeps its own sizes. Tokens only; no motion. Display only. */
/* touch-target-size: every control of the shell and the boards is at least 44px tall (small buttons, link-buttons used as
   actions, tab buttons, folds, fields). A text link inside a sentence keeps its own rule (a more specific rule, such as the
   held-role note's inline «link-button», still wins). */
body.app-nav-on :is(button,select,summary,.button-link,a[role=button],[role=tab],input:not([type=checkbox],[type=radio],[type=range],[type=hidden],[type=file],[type=color])){min-height:44px}
/* Links that act as controls (measured below 44px on 2026-11-27): the breadcrumb «الرئيسية», the instructor home's «needs your
   attention» rows and the case title links of the Aleem library, queue and task. The hidden native #case-id (the case picker
   draws the visible control) and links inside a sentence are left as they are; the admin fold buttons are 32px but their
   ::after covers the whole 56px row (P89), which is the target. The case title links keep their layout (the tablet library
   of 31 cards has a 5000px height bound, P72-F4 B2-M6): their hit area is extended to 44px by an empty ::after instead. */
body.app-nav-on :is(.ns-crumb a,.home-todo a[data-attn]){display:inline-flex;align-items:center;min-height:44px}
body.app-nav-on a.aleem-case-link{position:relative}
body.app-nav-on a.aleem-case-link::after{content:'';position:absolute;inset-inline:0;top:min(0px,calc((100% - 44px) / 2));bottom:min(0px,calc((100% - 44px) / 2))}
/* focus-not-obscured / fixed-element-offset: the masthead scrolls with the page (nothing sticky at the top), so a small top
   margin keeps a focused control off the window edge; on a phone the fixed bottom bar (68px plus the safe area) is reserved. */
html{scroll-padding-top:16px}
@media (max-width:620px){html:has(body.app-nav-on){scroll-padding-bottom:calc(84px + env(safe-area-inset-bottom,0px))}}
/* number-tabular: KPI numbers, counts, badges and table cells keep one width per digit, so a changing number moves nothing. */
body.app-nav-on :is(td,th,.badge,.al-chip,.ev-badge,.review-badge,.state-badge,.seat-badge,.rec-badge,.ntf-count,.home-kpi-value,.f6-sum-kpis,.coh-counts,.ev-counts,.case-card-num){font-variant-numeric:tabular-nums}
/* nav-state-active (v8.1 identity gradient): the current destination of the main navigation is filled with the primary
   button gradient and white words; the sand bar on the start edge stays. Its focus ring is white and drawn inside the fill
   (white on the gradient's lightest stop, the primary teal, is about 4.7:1; the mint ring of the other items is too faint there). */
.app-nav .app-nav-item[aria-current=page],.app-nav .app-nav-item[aria-current=page]:hover{background:var(--action-primary-bg);color:var(--al-surface);box-shadow:var(--shadow-button-lift)}
.app-nav .app-nav-item[aria-current=page]:focus-visible{outline:2px solid var(--al-surface);outline-offset:-4px}
/* P93-S2 admin area (owner decision V7-D13; docs/product/design/v8-ia.md, reference CSS prototypes/v8-ia/index.html .subnav,
   .sub-head, .sec-banner, .tile). The org admin's addresses (src/ui/admin-area.js): the «الإدارة» rail - gradient head with the
   organization's name, an icon square per section, the current section filled with the identity gradient - and the light
   gradient banner each view starts with. Below 900px the rail is a horizontal scroller without its head. UI UX Pro Max rules
   applied: nav-hierarchy, nav-state-active, breadcrumb-web, touch-target-size (44px), focus-states, horizontal-scroll (only the
   rail scrolls), color-not-only (the current item is also aria-current and bold). Light work board; tokens only; no motion. */
:root{--adm-head-grad:linear-gradient(135deg,var(--al-primary) 0%,color-mix(in srgb,var(--al-primary-strong) 45%,var(--al-navy)) 60%,var(--al-navy) 100%);--adm-banner-grad:linear-gradient(120deg,color-mix(in srgb,var(--al-sky) 40%,var(--al-surface)) 0%,var(--al-sky) 100%);--adm-banner-line:color-mix(in srgb,var(--al-sky) 70%,var(--al-primary));--adm-tint:color-mix(in srgb,var(--al-sky) 55%,var(--al-surface));--adm-on-grad-soft:color-mix(in srgb,var(--al-surface) 18%,transparent);--adm-head-sub:color-mix(in srgb,var(--al-surface) 78%,var(--al-primary))}
.app-nav .app-nav-area{margin-top:6px;padding-top:8px;border-top:1px solid var(--nav-divider)}
.adm-count{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;padding:0 7px;margin-inline-start:auto;border-radius:var(--radius-pill);background:var(--al-warning-bg);color:var(--al-warning);font-size:12px;font-weight:800;font-variant-numeric:tabular-nums;direction:ltr}
.adm-count[hidden]{display:none}
.adm-area.adm-with-rail{display:grid;grid-template-columns:minmax(220px,260px) minmax(0,1fr);gap:24px;align-items:start}
.adm-main{min-width:0}
.adm-view[hidden],.adm-banner-slot[hidden],.adm-rail[hidden]{display:none}
.adm-rail{position:sticky;top:16px;background:var(--al-surface);border:1px solid var(--al-line);border-radius:var(--radius-md);overflow:hidden;box-shadow:var(--shadow-sm)}
.adm-rail-head{display:flex;align-items:center;gap:12px;padding:18px 16px;background:var(--adm-head-grad);color:var(--al-surface)}
.adm-rail-head-ico{display:grid;place-items:center;flex:none;width:42px;height:42px;border-radius:var(--radius-sm);background:var(--adm-on-grad-soft)}
.adm-rail-head-text{min-width:0}.adm-rail-head-text b{display:block;font-size:16px}.adm-rail-head-text small{display:block;color:var(--adm-head-sub);font-size:12.5px;overflow-wrap:anywhere}
.adm-rail-list{display:flex;flex-direction:column;gap:4px;margin:0;padding:10px;list-style:none}
.adm-rail-item{display:flex;align-items:center;gap:10px;min-height:46px;padding:6px 10px;border-radius:var(--radius-sm);color:var(--al-ink);font-weight:700;text-decoration:none}
.adm-rail-item:hover{background:var(--al-neutral-bg)}
.adm-rail-ico{display:grid;place-items:center;flex:none;width:34px;height:34px;border-radius:var(--radius-sm);background:var(--adm-tint);color:var(--al-primary-strong)}
.adm-rail-item[aria-current=page],.adm-rail-item[aria-current=page]:hover{background:var(--grad-button-primary);color:var(--al-surface);box-shadow:var(--shadow-button-lift)}
.adm-rail-item[aria-current=page] .adm-rail-ico{background:var(--adm-on-grad-soft);color:var(--al-surface)}
.adm-rail-item[aria-current=page] .adm-count{background:var(--al-surface)}
.adm-rail-item[aria-current=page]:focus-visible{outline:2px solid var(--al-surface);outline-offset:-4px}
.adm-crumb{margin:0 0 8px}
.adm-banner{display:flex;align-items:center;flex-wrap:wrap;gap:16px;margin-bottom:24px;padding:22px 24px;border:1px solid var(--adm-banner-line);border-radius:var(--radius-md);background:var(--adm-banner-grad)}
.adm-banner-ico{display:grid;place-items:center;flex:none;width:52px;height:52px;border-radius:var(--radius-md);background:var(--grad-button-primary);color:var(--al-surface)}
.adm-banner-ico .al-ic{width:24px;height:24px}
.adm-banner-text{flex:1;min-width:200px}
.adm-banner h1{margin:0;font-size:var(--fs-title-page);line-height:1.35}
.adm-banner h1:focus{outline:none}.adm-banner h1:focus-visible{outline:var(--focus-width) solid var(--focus-ring);outline-offset:4px}
.adm-banner p{margin:2px 0 0;color:var(--al-muted)}
.adm-banner button{display:inline-flex;align-items:center;gap:8px}
.adm-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px;margin:0;padding:0;list-style:none}
.adm-tile{display:flex;align-items:center;gap:14px;min-height:88px;height:100%;padding:18px;border:1px solid var(--al-line);border-radius:var(--radius-md);background:var(--al-surface);color:var(--al-ink);text-decoration:none;box-shadow:var(--shadow-sm)}
.adm-tile:hover{box-shadow:var(--shadow-hover);border-color:var(--adm-banner-line)}
.adm-tile-ico{display:grid;place-items:center;flex:none;width:46px;height:46px;border-radius:var(--radius-sm);background:var(--grad-button-primary);color:var(--al-surface)}
.adm-tile-text{flex:1;min-width:0}.adm-tile-text b{display:block;font-size:17px}.adm-tile-text small{display:block;line-height:1.7}
.adm-tile>.al-ic{flex:none;color:var(--al-muted)}
.adm-settings{margin-bottom:20px}.adm-settings .f6-kv{margin:0 0 12px}.adm-readonly{display:inline-block}
.adm-view>section+section,.adm-view>div+section{margin-top:24px}
@media (max-width:900px){
  .adm-area.adm-with-rail{grid-template-columns:minmax(0,1fr);gap:16px}
  .adm-rail{position:static}
  .adm-rail-head{display:none}
  .adm-rail-list{flex-direction:row;overflow-x:auto;padding:6px;scroll-snap-type:x proximity}
  .adm-rail-item{white-space:nowrap;min-height:44px;scroll-snap-align:start}
  .adm-banner{padding:16px}
}
/* P93-S2b admin home (owner decision V7-D13; prototypes/v8-ia/index.html adminHome, .act, .kpi, .tile.primary): the org admin's
   short home (src/ui/org.js adminHomeHtml) - «يحتاج قرارك» rows with their action in words (the role requests' one filled with
   the identity gradient), the four KPI cards as links with the 4px identity gradient bar on top, «آخر الجلسات» (four rows and
   «كل الجلسات») beside three shortcut tiles (the first filled with the identity gradient). Inside the moved sections a heading
   that only repeats the banner title is visually hidden; it stays for the section's accessible name (aria-labelledby). UI UX Pro
   Max rules applied: visual-hierarchy, touch-target-size (44px), empty-states, nav-hierarchy, number-tabular, focus-states,
   color-not-only (every action has words). Light work board; tokens only; no motion beyond the shared hover shadow. */
.adm-home .adm-card-head{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 12px;margin-bottom:12px}
.adm-home .adm-card-head h2{margin:0}
.adm-home .admin-needs,.adm-home .home-kpis-slot{margin-bottom:24px}
.adm-home .adm-needs-total{margin-inline-start:0}
.admin-needs-items{display:grid;gap:10px;margin:0;padding:0;list-style:none}
.adm-need{display:flex;align-items:center;flex-wrap:wrap;gap:10px 12px;min-height:60px;padding:10px 14px;border:1px solid var(--al-line);border-radius:var(--radius-sm);background:var(--al-surface);color:var(--al-ink);text-decoration:none}
.adm-need:hover{border-color:var(--adm-banner-line);box-shadow:var(--shadow-hover)}
.adm-need-ico{display:grid;place-items:center;flex:none;width:40px;height:40px;border-radius:var(--radius-sm);background:var(--adm-tint);color:var(--al-primary-strong)}
.adm-need[data-needs=role-approvals] .adm-need-ico{background:var(--al-warning-bg);color:var(--al-warning)}
.adm-need-text{flex:1;min-width:min(200px,100%);font-weight:700;line-height:1.7}
.adm-need-go{display:inline-flex;align-items:center;gap:6px;min-height:44px;margin-inline-start:auto;padding:8px 14px;border:1px solid var(--al-primary-strong);border-radius:var(--radius-sm);background:var(--al-surface);color:var(--al-primary-strong);font-weight:700;white-space:nowrap}
.adm-need-go.is-primary{border-color:transparent;background:var(--grad-button-primary);color:var(--al-surface);box-shadow:var(--shadow-button-lift)}
.adm-home-empty{display:flex;align-items:center;gap:10px;margin:0;padding:12px 0}
.adm-home-empty .al-ic{flex:none;color:var(--al-muted)}
#admin-needs-empty .al-ic{color:var(--al-success)}
.home-kpi-cell{display:flex}
.home-kpi-link{flex:1;overflow:hidden;padding-top:18px;color:var(--al-ink);text-decoration:none;transition:box-shadow var(--dur-base) var(--ease-out)}
.home-kpi-link::before{content:"";position:absolute;top:0;inset-inline:0;height:4px;background:var(--grad-button-primary)}
.home-kpi-link:hover{box-shadow:var(--shadow-hover)}
.home-kpi-link .home-kpi-ico{top:16px}
.home-kpi-go{display:inline-flex;align-items:center;gap:4px;margin-top:6px;font-size:var(--fs-caption);font-weight:700;color:var(--al-primary-strong)}
.home-kpi-go .al-ic{--icsz:14px}
.adm-home-split{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:24px;align-items:start}
.adm-home-col{display:grid;gap:24px;min-width:0}
.adm-all-sessions{gap:6px;min-height:44px}
.adm-latest-rows{display:grid;margin:0;padding:0;list-style:none}
.adm-latest-row{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;padding:12px 0;border-top:1px solid var(--al-line)}
.adm-latest-row:first-child{border-top:0;padding-top:0}
.adm-latest-main{flex:1;min-width:min(200px,100%)}
.adm-latest-main b{display:block;overflow-wrap:anywhere}
.adm-latest-main small{display:block;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.adm-latest-actions{display:flex;flex-wrap:wrap;gap:8px}
.adm-latest-actions button{min-height:44px}
.adm-shortcuts h2{margin:0 0 12px}
.adm-shortcut-list{display:grid;gap:12px;margin:0;padding:0;list-style:none}
.adm-shortcut{display:flex;align-items:center;gap:14px;min-height:72px;padding:14px 16px;border:1px solid var(--al-line);border-radius:var(--radius-md);background:var(--al-surface);color:var(--al-ink);text-decoration:none;box-shadow:var(--shadow-sm)}
.adm-shortcut:hover{border-color:var(--adm-banner-line);box-shadow:var(--shadow-hover)}
.adm-shortcut-ico{display:grid;place-items:center;flex:none;width:44px;height:44px;border-radius:var(--radius-sm);background:var(--adm-tint);color:var(--al-primary-strong)}
.adm-shortcut-text{flex:1;min-width:0}.adm-shortcut-text b{display:block;font-size:16px}.adm-shortcut-text small{display:block;line-height:1.7}
.adm-shortcut>.al-ic{flex:none;color:var(--al-muted)}
.adm-shortcut.is-primary{border-color:transparent;background:var(--grad-button-primary);color:var(--al-surface);box-shadow:var(--shadow-button-lift)}
.adm-shortcut.is-primary small,.adm-shortcut.is-primary>.al-ic{color:var(--al-surface)}
.adm-shortcut.is-primary .adm-shortcut-ico{background:var(--adm-on-grad-soft);color:var(--al-surface)}
.adm-area [data-adm-view=content] #content-panel-title,.adm-area [data-adm-view=rubrics] #rubrics-panel-title,.adm-area [data-adm-view=sessions] #org-rooms-title{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.adm-area [data-adm-view=sessions] #org-rooms>.row.between{justify-content:flex-end}
@media (max-width:1100px){.adm-home-split{grid-template-columns:minmax(0,1fr)}}
@media (max-width:380px){.home-kpi-link{padding-top:54px}}
@media (max-width:620px){
  .adm-need{padding:10px 12px}
  .adm-need-go{flex:1 1 100%;justify-content:center}
  .adm-shortcut{min-height:64px;padding:12px}
}
/* P93-S2c members (owner decision V7-D13; prototypes/v8-ia/index.html «الأعضاء والأقسام» .tabs, .drawer, .choice): the members
   page as four tabs (src/ui/admin-members.js; the tab underlined with the identity colour, a tabular count chip) and the
   «دعوة عضو» side drawer - a modal <dialog> on the inline-end side (left in Arabic, right in English), full screen on a phone,
   with the two invitation methods as pressed cards. UI UX Pro Max rules applied: keyboard-nav, focus-states, touch-target-size
   (44px), progressive-disclosure, escape-routes, number-tabular. Light work board; tokens only; no motion. */
.adm-tabs{display:flex;gap:4px;margin:0 0 20px;border-bottom:1px solid var(--al-line);overflow-x:auto;scrollbar-width:thin}
.adm-tab{display:inline-flex;align-items:center;gap:8px;flex:none;min-height:48px;margin:0;padding:10px 14px;border:0;border-bottom:3px solid transparent;border-radius:0;background:none;color:var(--al-muted);font-weight:800;white-space:nowrap}
.adm-tab:hover{background:var(--adm-tint);color:var(--al-ink)}
.adm-tab[aria-selected=true]{border-bottom-color:var(--al-primary);color:var(--al-primary-strong)}
.adm-tab:focus-visible{outline:3px solid var(--al-focus);outline-offset:-3px}
.adm-tab-count{min-width:24px;padding:0 8px;border-radius:var(--radius-pill);background:var(--al-neutral-bg);color:var(--al-ink);font-size:var(--fs-caption);font-variant-numeric:tabular-nums;line-height:1.8;text-align:center;direction:ltr}
.adm-tab[aria-selected=true] .adm-tab-count{background:var(--adm-tint)}
.adm-tabpanels{display:block}
.adm-tabpanel[hidden]{display:none}
.adm-tabpanel>.panel{min-width:0}
.adm-invitations .inv-list-box{margin:0;padding:0;border:0}
.adm-area [data-adm-view=members] .member-row select.compact{min-height:44px}
dialog.adm-drawer{position:fixed;inset-block:0;inset-inline-start:auto;inset-inline-end:0;display:flex;flex-direction:column;width:min(520px,100vw);max-width:100vw;height:100dvh;max-height:none;margin:0;padding:0;border:0;border-inline-start:1px solid var(--al-line);border-radius:0;background:var(--al-surface);color:var(--al-ink);box-shadow:var(--shadow-overlay);text-align:start}
dialog.adm-drawer:not([open]){display:none}
dialog.adm-drawer::backdrop{background:color-mix(in srgb,var(--al-navy) 45%,transparent)}
.adm-drawer-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 22px;border-bottom:1px solid var(--al-line)}
.adm-drawer-head h2{margin:0;font-size:20px}
.adm-drawer-head h2:focus{outline:none}
.adm-drawer-close{min-height:44px;min-width:44px}
.adm-drawer-body{flex:1;overflow:auto;padding:20px 22px 28px;overscroll-behavior:contain}
.adm-choices{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:8px}
.adm-choice{display:grid;gap:2px;min-height:64px;padding:12px 14px;border:1px solid var(--al-line);border-radius:var(--radius-sm);background:var(--al-surface);color:var(--al-ink);font-weight:400;text-align:start}
.adm-choice:hover{background:var(--adm-tint);color:var(--al-ink)}
.adm-choice b{font-weight:800}.adm-choice small{color:var(--al-muted);line-height:1.6}
.adm-choice[aria-pressed=true]{border-color:var(--al-primary);background:var(--adm-tint);box-shadow:inset 0 0 0 1px var(--al-primary)}
.adm-invite-pane[hidden]{display:none}
.adm-invite-pane #membership-form{margin-top:8px;border-top:0}
.adm-invite-pane .inv-block{margin-top:8px}
.adm-drawer .inv-tools button,.adm-drawer .inv-submit button,.adm-drawer #membership-form button,.adm-drawer .inv-row-foot button{min-height:44px}
@media (max-width:620px){
  dialog.adm-drawer{width:100vw;border-inline-start:0}
  .adm-drawer-head{padding:12px 16px}
  .adm-drawer-body{padding:16px}
  .adm-choices{grid-template-columns:minmax(0,1fr)}
}
/* P93-S3 instructor home (owner decision V7-D13; docs/product/design/v8-ia.md; prototypes/v8-ia/index.html instrHome): the dark
   hero with TWO actions - «ابدأ جلسة الآن» (primary, the P89 sheen) and «جدولة جلسة» (secondary outline, visible) - the four
   KPI cards as links (the S2b .home-kpi-link), «يحتاج انتباهك» rows that each carry their action in words, «جلساتك الأخيرة»
   (five rows, «كل الجلسات» shows the rest), the schedules list, and a side column with «التالي في جدولك» on the warm surface,
   the shortcut tiles and the review notice. UI UX Pro Max rules applied: visual-hierarchy, primary-action, touch-target-size
   (44px), empty-states, number-tabular, nav-hierarchy. Tokens only; the hero stays dark and the boards light; no new motion. */
.home-hero>.home-hero-cta{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:12px}
.home-hero .home-cta-2{display:inline-flex;align-items:center;gap:8px;min-height:48px;padding:10px 20px;font-size:16px;font-weight:800;white-space:nowrap;color:var(--al-surface);background:transparent;border:1px solid color-mix(in srgb,var(--al-surface) 72%,transparent);border-radius:var(--radius-sm);box-shadow:none}
.home-hero .home-cta-2:hover{background-color:color-mix(in srgb,var(--al-surface) 12%,transparent)}
.home-hero .home-cta-2 .al-ic{--icsz:20px}
.dashboard-grid.home-cols.home-s3{grid-template-columns:minmax(0,1.6fr) minmax(280px,1fr);grid-template-areas:none;grid-template-rows:none;gap:24px;align-items:start}
.home-s3>.home-col-main,.home-s3>.home-col-side{display:grid;grid-template-columns:minmax(0,1fr);gap:24px;align-content:start;min-width:0}
.home-s3 .panel{margin:0}
.home-s3 .home-attention h2,.home-s3 .home-main h2{margin:0}
.home-s3 .home-attention h2{margin-bottom:12px}
.home-acts{display:grid;gap:10px;margin:0;padding:0;list-style:none}
.home-act{display:flex;align-items:center;flex-wrap:wrap;gap:10px 12px;min-height:60px;padding:10px 14px;border:1px solid var(--al-line);border-radius:var(--radius-sm);background:var(--al-surface)}
.home-act-text{flex:1;min-width:min(200px,100%)}
.home-act-text b{display:block;line-height:1.6;font-variant-numeric:tabular-nums}
.home-act-text small{display:block;font-size:var(--fs-caption);line-height:1.6}
.home-act .home-act-go{min-height:44px;margin-inline-start:auto;white-space:nowrap}
.home-s3 .home-attn-empty{display:flex;align-items:center;gap:10px;padding:8px 0}
.home-s3 .home-attn-empty .al-ic{flex:none;--icsz:20px}
#home-attention-empty .al-ic{color:var(--al-success)}
.home-recent-head{margin-bottom:12px}
.home-recent-acts{gap:8px}
.home-recent-acts button{min-height:44px}
.home-s3 #rooms .room-item small{font-variant-numeric:tabular-nums}
.home-s3 #rooms .room-item button{min-height:44px}
.home-sched-next{background:var(--home-warm-card);border-color:var(--home-warm-line)}
.home-sched-next h2{display:flex;align-items:center;gap:8px;margin:0 0 10px;font-size:18px}
.home-sched-next-name{margin:0;font-size:17px;font-weight:800;line-height:1.5;color:var(--al-navy);overflow-wrap:anywhere}
.home-sched-next-when{margin:4px 0 12px;font-size:14px;line-height:1.7;color:var(--al-muted);font-variant-numeric:tabular-nums}
.home-sched-next button{display:inline-flex;align-items:center;gap:6px;min-height:44px}
.home-s3 .home-shortcuts{gap:8px}
.home-tiles{display:grid;gap:8px;margin:0;padding:0;list-style:none}
.home-tile{display:flex;align-items:center;gap:12px;width:100%;min-height:64px;padding:10px 12px;border:1px solid var(--al-line);border-radius:var(--radius-sm);background:var(--al-surface);color:var(--al-ink);font-weight:400;text-align:start;text-decoration:none;box-shadow:none}
.home-tile:hover{background:var(--al-surface);border-color:var(--adm-banner-line);box-shadow:var(--shadow-hover)}
.home-tile-ico{display:grid;place-items:center;flex:none;width:40px;height:40px;border-radius:var(--radius-sm);background:var(--adm-tint);color:var(--al-primary-strong)}
.home-tile-text{flex:1;min-width:0}
.home-tile-text b{display:block;font-size:15px;line-height:1.5}
.home-tile-text small{display:block;font-size:var(--fs-caption);line-height:1.6;font-variant-numeric:tabular-nums}
.home-tile>.al-ic{flex:none;color:var(--al-muted)}
@media (max-width:1100px){.dashboard-grid.home-cols.home-s3{grid-template-columns:minmax(0,1fr);grid-template-areas:none}}
@media (max-width:620px){
  .home-hero>.home-hero-cta{flex-direction:column;align-items:stretch}
  .home-hero .home-cta,.home-hero .home-cta-2{width:100%;justify-content:center}
  .home-act{padding:10px 12px}
  .home-act .home-act-go{flex:1 1 100%}
}
/* P93-S4 learner (owner decision V7-D12, learner home option A; docs/product/design/v8-ia.md; prototypes/v8-ia/index.html
   learnerHome / learnerMe): the greeting h1, a 12-column grid 5/7 - the join card (label, empty field, helper line, full-width
   primary button) beside «تدريباتي القادمة» and «آخر جلسة لك» (the only warm card) - then the «ملفي» / «شهاداتي» tiles; «ملفي»
   as four tabs with the sessions as cards. UI UX Pro Max rules applied: visual-hierarchy, primary-action, touch-target-size
   (44px), input-labels, empty-states, nav-hierarchy, deep-linking. Tokens only; the boards stay light; no new motion. */
.lh-home{display:grid;gap:24px;max-width:1180px;text-align:start}
.lh-head h1{margin:0}
.lh-head .eyebrow .home-date{font-variant-numeric:tabular-nums}
.lh-lead{margin:4px 0 0;color:var(--al-muted)}
.lh-home #learner-next:empty{display:none}
.lh-home #learner-next .home-next{margin:0}
.lh-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:24px;align-items:start}
.lh-col-join{grid-column:span 5;min-width:0}
.lh-col-side{grid-column:span 7;display:grid;grid-template-columns:minmax(0,1fr);gap:24px;min-width:0}
.lh-join{margin:0;padding:24px;background:var(--al-surface);border:1px solid var(--al-line);border-radius:var(--radius-lg);box-shadow:var(--shadow-card)}
.lh-join h2{margin:0 0 4px;font-size:20px}
.lh-join #lh-join-body{margin:0}
.lh-join #enrol-form{display:grid;gap:8px;margin:16px 0 0;padding:0;background:none;border:0;border-radius:0;box-shadow:none}
.lh-join label{font-weight:700}
.lh-join #enrol-code{width:100%;min-height:48px;font-size:18px;letter-spacing:.08em;text-transform:uppercase}
.lh-join .code-example{margin:0}
.lh-join #enrol-submit{width:100%;min-height:48px}
.lh-join .form-alert:empty,.lh-join .enrol-status:empty{display:none}
.lh-home .my-sch{margin:0;padding:20px;background:var(--al-surface);border:1px solid var(--al-line);border-radius:var(--radius-lg);box-shadow:var(--shadow-card)}
.lh-last{margin:0;background:var(--home-warm-card);border-color:var(--home-warm-line)}
.lh-last h2{margin:0 0 10px;font-size:18px}
.lh-last-name{margin:0;font-size:17px;font-weight:800;line-height:1.5;color:var(--al-navy);overflow-wrap:anywhere}
.lh-last-meta{margin:4px 0 12px;font-size:var(--fs-caption);line-height:1.7;color:var(--al-muted);font-variant-numeric:tabular-nums}
.lh-last-acts{display:flex;flex-wrap:wrap;gap:8px}
.lh-last-acts .button-link{gap:6px;min-height:44px}
.lh-last button{min-height:44px}
.lh-shortcuts{margin:0}
.lh-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}
.ptf-tabs{display:flex;gap:4px;margin:0 0 16px;overflow-x:auto;border-bottom:1px solid var(--al-line);scrollbar-width:thin}
.ptf-tab{flex:none;min-height:44px;padding:10px 16px;border:0;border-bottom:3px solid transparent;border-radius:0;background:none;color:var(--al-muted);font-weight:700;box-shadow:none}
.ptf-tab:hover{background:none;color:var(--al-ink);box-shadow:none;transform:none}
.ptf-tab[aria-selected=true]{color:var(--al-primary-strong);border-bottom-color:var(--al-primary)}
.ptf-panel:focus-visible{outline:2px solid var(--al-primary);outline-offset:4px}
.ptf-panel .pan{margin:0;padding:0;background:none;border:0;box-shadow:none}
.ptf-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(280px,100%),1fr));gap:12px;margin:0;padding:0;list-style:none}
.ptf-card{display:grid;gap:8px;align-content:start;padding:16px;background:var(--al-surface);border:1px solid var(--al-line);border-radius:var(--radius-md)}
.ptf-card-title{margin:0;font-size:16px;line-height:1.5;color:var(--al-navy);overflow-wrap:anywhere}
.ptf-card-meta{margin:0;font-size:var(--fs-caption);line-height:1.7;color:var(--al-muted);font-variant-numeric:tabular-nums}
.ptf-flags{display:flex;flex-wrap:wrap;gap:6px}
.ptf-card-acts{display:flex;flex-wrap:wrap;gap:8px}
.ptf-card-acts>a,.ptf-card-acts>button{min-height:44px}
.ptf-certs{display:grid;gap:8px;margin:0;padding:0;list-style:none}
.ptf-cert-row{display:flex;flex-wrap:wrap;align-items:center;gap:10px 12px;min-height:60px;padding:10px 14px;border:1px solid var(--al-line);border-radius:var(--radius-sm)}
.ptf-cert-text{flex:1;min-width:min(200px,100%)}
.ptf-cert-text b,.ptf-cert-text small{display:block;line-height:1.6}
.ptf-cert-text small{font-size:var(--fs-caption);color:var(--al-muted);font-variant-numeric:tabular-nums}
.ptf-cert-open{min-height:44px}
.ptf-records{display:grid;gap:12px}
.ptf-records #open-my-records{min-height:44px}
@media (max-width:900px){.lh-col-join,.lh-col-side{grid-column:1/-1}}
@media (max-width:620px){
  .lh-join{padding:16px}
  .lh-tiles{grid-template-columns:minmax(0,1fr)}
  .ptf-cert-open{flex:1 1 100%}
}
/* P93-S5 aleem (docs/product/design/v8-ia.md «فريق عليم»; prototypes/v8-ia/index.html aleemLibrary): the case library's
   status tabs with real counts (role=tablist; the selected tab is a heavier word with a 3px line, not colour alone), the
   pages of 12 with «السابق» / «التالي» and «الصفحة 1 من 3», and the empty state of a status without cases. The KPI cards
   are gone (the tabs carry those counts). UI UX Pro Max rules applied: visual-hierarchy, touch-target-size (44px),
   empty-states, progressive-disclosure, deep-linking, number-tabular, color-not-only, keyboard-nav, horizontal-scroll.
   Tokens only; light work board; no new motion. */
.aleem-tabs{display:flex;flex-wrap:wrap;gap:4px 8px;margin:16px 0 4px;border-bottom:1px solid var(--al-line)}
.aleem-tab{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:8px 14px;border:0;border-bottom:3px solid transparent;border-radius:0;background:none;color:var(--al-muted);font-weight:600;box-shadow:none;cursor:pointer;touch-action:manipulation}
.aleem-tab:hover{background:none;color:var(--al-ink);box-shadow:none;transform:none}
.aleem-tab[aria-selected=true]{color:var(--al-primary-strong);font-weight:800;border-bottom-color:var(--al-primary)}
.aleem-tab:focus-visible{outline:2px solid var(--al-primary);outline-offset:2px}
.aleem-tab-count{display:inline-block;min-width:2ch;padding:0 6px;border:1px solid var(--al-line);border-radius:999px;font-variant-numeric:tabular-nums;line-height:1.6;text-align:center}
.aleem-tab[aria-selected=true] .aleem-tab-count{border-color:var(--al-primary)}
.aleem-list-panel{min-width:0}
.aleem-list-panel .aleem-shown{font-variant-numeric:tabular-nums}
.aleem-status-empty[hidden],.aleem-pager[hidden]{display:none}
.aleem-status-empty p{margin:0 0 12px;max-width:62ch}
.aleem-empty button{min-height:44px}
.aleem-pager{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 12px;margin:12px 0 0}
.aleem-page-btn{min-height:44px;min-width:44px}
.aleem-page-of{color:var(--al-muted);font-variant-numeric:tabular-nums}
.aleem-table .aleem-open,.aleem-card-action .aleem-open{min-height:44px}
@media (max-width:620px){
  .aleem-tab{padding:8px 10px}
  .aleem-pager .aleem-page-of{flex:1 1 100%;order:-1;text-align:center}
  .aleem-page-btn{flex:1 1 0}
}
/* P93-S6 assistant (owner decisions V7-D8, V7-D10, V7-D11; docs/product/design/v8-ia.md «مساعد عليم»; prototypes/v8-ia
   asstHtml, .asst, .msgs, .sugg, .composer, .typing): the docked chat panel at the inline-end edge (left in Arabic), beside
   the page on wide screens (the body keeps room for it, so nothing is hidden) and full screen on a phone; the phone header
   entry; the eyes that follow the pointer (only .orb-eyes moves, through the separate `translate` property, never the orb).
   Tokens only, logical properties, 44px targets; prefers-reduced-motion stops the typing dots and the eyes. */
.orb-eyes{translate:var(--ex,0px) var(--ey,0px)}
@media (prefers-reduced-motion:reduce){.orb .orb-eyes{translate:none!important}}
#identity .asst-head-btn{display:none}
@media (max-width:620px){
  body.app-nav-on #identity .asst-head-btn{display:inline-grid;place-items:center;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;border:1px solid var(--line-card);border-radius:50%;background:var(--al-surface)}
  body.app-nav-on #identity .asst-head-btn .orb{--s:28px}
  body.asst-head-on .app-nav li:has(>[data-nav-key="assistant"]){display:none}
}
.asst-head-btn:focus-visible{outline:3px solid var(--al-focus);outline-offset:2px}
body:has(#app :is(.entry,#invite-accept,#password-reset,.live-dock,#candidate-stage,#simulator,#waiting-screen,#session-expired,#no-org)) :is(.asst-head-btn,.asst-panel),body.cert-page-on :is(.asst-head-btn,.asst-panel){display:none}
@media print{.asst-head-btn,.asst-panel{display:none!important}}
:root{--asst-w:400px;--asst-w-wide:560px}
.asst-panel{position:fixed;z-index:20;inset-block:0;inset-inline-end:0;display:flex;flex-direction:column;width:var(--asst-w);max-width:100vw;box-sizing:border-box;background:var(--al-surface);color:var(--al-ink);border-inline-start:1px solid var(--line-card);box-shadow:var(--shadow-overlay)}
.asst-panel[data-wide=true]{width:var(--asst-w-wide)}
@media (min-width:761px){
  body.asst-open{padding-inline-end:var(--asst-w)}
  body.asst-open.asst-wide{padding-inline-end:var(--asst-w-wide)}
}
@media (min-width:761px) and (max-width:1099px){
  :root{--asst-w:360px}
  .asst-panel[data-wide=true]{width:var(--asst-w)}
  body.asst-open.asst-wide{padding-inline-end:var(--asst-w)}
  .asst-panel #asst-wide{display:none}
}
@media (max-width:760px){
  .asst-panel,.asst-panel[data-wide=true]{z-index:40;inset:0;width:100vw;height:100dvh;border:0;box-shadow:none}
  .asst-panel #asst-wide{display:none}
  body.asst-open{overflow:hidden}
}
.asst-panel-head{display:flex;align-items:center;gap:8px;padding:12px 16px;border-block-end:1px solid var(--line-card)}
.asst-panel-head .orb{--s:40px}
.asst-panel-titles{flex:1 1 auto;min-width:0}
.asst-panel-titles h2{margin:0;font-size:18px;line-height:1.4}
.asst-panel-titles h2:focus-visible{outline:3px solid var(--al-focus);outline-offset:2px}
.asst-panel-sub{display:block;font-size:13px;color:var(--al-muted);line-height:1.5}
.asst-icon-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:44px;min-height:44px;margin:0;padding:0 10px;border:1px solid var(--line-card);border-radius:var(--radius-md);background:var(--al-surface);color:var(--al-ink);font-size:14px;font-weight:700}
.asst-icon-btn:hover{background:var(--al-sky)}
.asst-new-label{white-space:nowrap}
@media (max-width:420px){.asst-new-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}}
.asst-panel .asst-note{margin:0;padding:8px 16px 0}
.asst-panel .ai-badge{white-space:normal;max-width:100%;font-size:13px}
.asst-panel .ai-badge-standin{border-style:solid;border-color:var(--al-warning);background:var(--al-warning-bg);color:var(--al-warning)}
.asst-msgs{flex:1 1 auto;min-height:0;overflow-y:auto;display:flex;flex-direction:column;gap:12px;padding:16px}
.asst-welcome{display:flex;flex-direction:column;align-items:center;gap:8px;padding:16px 8px;text-align:center}
.asst-welcome-title{margin:0;font-size:18px;font-weight:700;color:var(--al-navy)}
.asst-welcome-body{margin:0;font-size:14px;line-height:1.7;color:var(--al-muted)}
.asst-msg{max-width:92%;padding:10px 12px;border-radius:var(--radius-md);line-height:1.7;overflow-wrap:anywhere}
.asst-msg-user{align-self:flex-start;background:var(--al-navy);color:var(--al-surface);white-space:pre-line}
.asst-msg-bot{align-self:flex-end;display:grid;gap:8px;border:1px solid var(--line-card);background:var(--al-surface)}
.asst-msg-bot .asst-model{margin:0}
.asst-msg-bot .asst-ai-label{justify-self:start;border-color:var(--al-primary-strong);background:var(--al-sky);color:var(--al-ink)}
.asst-msg-refused{border-color:var(--al-warning)}
.asst-sources .asst-results-title{margin:0 0 6px;font-size:15px}
.asst-panel ol.asst-results{list-style:decimal;margin:0;padding-inline-start:24px;display:grid;gap:8px}
.asst-panel .asst-result{padding:8px 10px}
.asst-sent-on{background:var(--al-sky);color:var(--al-ink);border-radius:var(--radius-sm);box-shadow:0 0 0 2px var(--al-primary-strong)}
.asst-tools{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.asst-tools button,.asst-tools .asst-action{display:inline-flex;align-items:center;gap:6px;min-height:44px;margin:0}
.asst-listen[disabled]{cursor:not-allowed;white-space:normal;text-align:start}
.asst-listen[aria-pressed=true]{border-color:var(--al-primary-strong);background:var(--al-sky)}
.asst-typing{align-self:flex-end;display:flex;gap:6px;padding:12px 14px}
.asst-typing i{width:8px;height:8px;border-radius:50%;background:var(--al-primary);animation:asst-dot 1s ease-in-out infinite}
.asst-typing i:nth-of-type(2){animation-delay:.15s}
.asst-typing i:nth-of-type(3){animation-delay:.3s}
@keyframes asst-dot{0%,100%{opacity:.3}50%{opacity:1}}
@media (prefers-reduced-motion:reduce){.asst-typing i{animation:none!important;opacity:.7}}
.asst-chips{display:flex;flex-wrap:wrap;gap:8px;padding:0 16px 8px}
.asst-chips:empty{display:none}
.asst-chip{min-height:44px;margin:0;padding:6px 14px;border:1px solid var(--al-primary);border-radius:var(--radius-pill);background:var(--al-surface);color:var(--al-primary-strong);font-size:14px;font-weight:700;text-align:start;white-space:normal}
.asst-chip:hover{background:var(--al-sky)}
.asst-chip[aria-disabled=true]{opacity:.6;cursor:progress}
.asst-panel .asst-status,.asst-panel .asst-error{margin:0;padding:0 16px 6px;font-size:14px;line-height:1.6}
.asst-panel .asst-status{color:var(--al-muted)}
.asst-panel .asst-status:empty,.asst-panel .asst-error:empty{display:none}
.asst-composer{padding:12px 16px calc(12px + env(safe-area-inset-bottom,0px));border-block-start:1px solid var(--line-card)}
.asst-compose-row{display:flex;gap:8px;align-items:flex-end}
.asst-panel .asst-question{flex:1 1 auto;min-width:0;min-height:48px;max-height:160px;margin:0;resize:none;box-sizing:border-box;overflow-wrap:anywhere}
.asst-panel .asst-question[aria-invalid=true]{border-color:var(--al-danger)}
.asst-ask{display:inline-grid;place-items:center;min-width:48px;min-height:48px;margin:0;padding:0}
[dir=rtl] .asst-ask .asst-ic{transform:scaleX(-1)}
.asst-ask[aria-busy=true]{cursor:progress}
.asst-panel .asst-meta{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:4px 12px;margin-top:6px}
.asst-panel .asst-privacy{flex:1 1 220px;margin:0;font-size:12.5px;font-weight:600;line-height:1.6;color:var(--al-ink)}
.asst-panel .asst-count{font-size:12.5px;color:var(--al-muted);font-variant-numeric:tabular-nums}
.asst-panel-foot{display:flex;justify-content:flex-end;margin-top:4px}
.asst-switch{display:inline-flex;align-items:center;gap:8px;min-height:44px;margin:0;padding:0 8px;border:0;background:transparent;color:var(--al-ink);font-size:13px;font-weight:700}
.asst-switch-track{position:relative;width:34px;height:20px;border-radius:var(--radius-pill);background:var(--al-field-strong)}
.asst-switch-track::after{content:"";position:absolute;inset-block-start:3px;inset-inline-start:3px;width:14px;height:14px;border-radius:50%;background:var(--al-surface)}
.asst-switch[aria-pressed=true] .asst-switch-track{background:var(--al-primary-strong)}
.asst-switch[aria-pressed=true] .asst-switch-track::after{inset-inline-start:17px}
.asst-panel button:focus-visible,.asst-panel textarea:focus-visible,.asst-panel a:focus-visible{outline:3px solid var(--al-focus);outline-offset:2px}
/* P93-A11Y (measurement tests/a11y-check.spec.js, results-p93.jsonl): fixes of the 11 failures left after P93 S1-S6. UI UX
   Pro Max rules applied: dynamic-type / text reflow at 200% zoom (Z2), skip-links + focus-states (K3), keyboard-nav (K2,
   src/ui/aleem.js), focus trap in modals (K4, src/ui/core.js). Tokens only; no new motion.
   (1) Instructor hero: the decorative ring was a 256px pseudo-element pushed 60px past the inline end, so the hero's
   scroll width was always 60px wider than its box (overflow hidden). The same ring is now painted INSIDE the hero (same
   centre, radii 100-128px, same colour), so nothing overflows; under 760px (200% zoom of a 1280px window) the hero stacks
   to one column and the two action labels may wrap instead of being cut. */
.home-hero::after{inset-inline-end:0;top:0;width:196px;height:196px;border:0;border-radius:0;background:radial-gradient(circle at calc(100% - 68px) 68px,transparent 99.5px,color-mix(in srgb,var(--al-sky) 6%,transparent) 100px 128px,transparent 128.5px)}
.home-hero:dir(rtl)::after{background:radial-gradient(circle at 68px 68px,transparent 99.5px,color-mix(in srgb,var(--al-sky) 6%,transparent) 100px 128px,transparent 128.5px)}
@media (max-width:760px){
  .home-hero{grid-template-columns:minmax(0,1fr);grid-template-areas:'head' 'cta' 'slot'}
  .home-hero>.home-hero-cta{justify-content:flex-start}
  .home-hero .home-cta,.home-hero .home-cta-2{white-space:normal;max-width:100%;text-align:start}
}
/* (2) Admin sections (sessions, content, rubrics): the section heading is no longer visually hidden (its 1px clipped box
   read as clipped text at 200% zoom); it is a visible compact section label above the list, keeping its id and the
   section's aria-labelledby. */
.adm-area [data-adm-view=content] #content-panel-title,.adm-area [data-adm-view=rubrics] #rubrics-panel-title,.adm-area [data-adm-view=sessions] #org-rooms-title{position:static;width:auto;height:auto;margin:0;padding:0;overflow:visible;clip:auto;white-space:normal;font-size:var(--fs-caption);font-weight:800;line-height:1.5;color:var(--al-muted)}
.adm-area [data-adm-view=sessions] #org-rooms>.row.between{justify-content:space-between;align-items:center}
/* (3) The skip link shows its ring whenever it is focused (it is only on screen while focused), not only on
   :focus-visible - after a pointer click (e.g. «إدارة المعايير» opening the rubric editor) a scripted or restored focus
   on it did not match :focus-visible and the link appeared without a ring. */
.skip-link:focus{outline:2px solid var(--al-focus);outline-offset:2px}
/* P95 presented case (owner decisions V7-D15/V7-D16; docs/product/modes-plan.md; src/ui/presented.js): the learner screen when
   the room's setting proposals is false (.candidate-layout[data-mode=presented]) and the «طريقة الجلسة» choice on /staff#new.
   The monitor stays dark (smaller); the current item and its justification are a light warm card so the text reads large.
   Contrast: --pc-ink (navy mixed with black) on --al-warm above 15:1; the grey earlier items --al-muted on --al-surface
   about 6:1; the kicker --al-primary-strong on --al-surface about 6.5:1 (color-contrast, color-accessible-pairs). UI UX Pro Max rules:
   content-priority + visual-hierarchy (current item first, strong; earlier grey with a label, not colour only:
   color-not-only), readable-font-size (justification 22px desktop, 18px phone), progressive-disclosure (stage details and the
   case note closed), touch-target-size (summaries 48px), horizontal-scroll (minmax(0,..) and overflow-wrap:anywhere),
   reduced-motion (no animation is added; the scroll to a new item is instant under reduce, src/app.js), RTL via logical
   properties. Full mode (data-mode=full) is not touched by any rule here. */
.ns-mode{margin-top:12px}
.ns-mode-opt span{display:flex;flex-direction:column;align-items:flex-start;gap:2px}
.ns-mode-opt small{font-weight:400;color:var(--al-muted);font-size:var(--fs-caption,13px);line-height:1.4}
.candidate-layout[data-mode=presented]{--pc-ink:color-mix(in srgb,var(--al-navy) 35%,black);grid-template-columns:minmax(0,1fr) minmax(0,1.3fr);gap:20px;align-items:start}
.candidate-layout>.pc-main[dir=rtl]{direction:rtl}
.candidate-layout>.pc-main[dir=ltr]{direction:ltr}
.candidate-layout[data-mode=presented] .monitor-head{padding:8px 14px;font-size:16px}
.candidate-layout[data-mode=presented] .monitor-body{grid-template-columns:minmax(0,1fr);min-height:0}
.candidate-layout[data-mode=presented] .monitor canvas{height:120px}
.candidate-layout[data-mode=presented] .vitals{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0 10px;padding:2px 14px;border-left:0;border-top:1px solid color-mix(in srgb,var(--sim-ink) 18%,transparent)}
.candidate-layout[data-mode=presented] .vital{padding:6px 0;border-bottom:0}
.candidate-layout[data-mode=presented] .vital small{font-size:12px}
.candidate-layout[data-mode=presented] .vital b{font-size:26px!important}
.candidate-layout[data-mode=presented] .monitor-extra{padding:6px 14px;font-size:14px}
.pc-main{display:grid;gap:12px;min-width:0}
.pc-now{background:var(--al-surface);border:1px solid var(--line-card);border-radius:var(--radius-md);padding:16px 18px;box-shadow:var(--shadow-sm);min-width:0}
.pc-kicker{display:flex;flex-wrap:wrap;gap:6px 10px;margin:0 0 6px;font-size:14px;font-weight:800;color:var(--al-primary-strong)}
.pc-kind{font-weight:700;color:var(--al-muted)}
.pc-kind::before{content:'·';margin-inline-end:10px;color:var(--al-muted)}
.pc-now-title{margin:0 0 12px;font-size:24px;line-height:1.3;font-weight:800;color:var(--pc-ink,var(--al-ink));overflow-wrap:anywhere}
.pc-empty{margin:0;font-size:18px;color:var(--al-muted)}
.pc-why{background:var(--al-warm);border-inline-start:5px solid var(--al-gold);border-radius:var(--radius-sm);padding:14px 18px;color:var(--pc-ink,var(--al-ink))}
.pc-why-label{margin:0 0 4px;font-size:14px;font-weight:800;color:var(--al-ink)}
.pc-why-text{font-size:22px;line-height:1.55;overflow-wrap:anywhere;max-width:70ch}
.pc-why-text.pc-why-card{font-size:16px;line-height:1.6}
.pc-why-text.pc-why-card img,.pc-why-text.pc-why-card svg{max-width:100%;height:auto}
.pc-why-text.pc-why-card table{width:100%;border-collapse:collapse}
.pc-earlier{min-width:0}
.pc-earlier h3{margin:0 0 6px;font-size:14px;font-weight:800;color:var(--al-muted)}
.pc-earlier ol{margin:0;padding:0;list-style:none;display:grid;gap:4px}
.pc-earlier li{display:flex;flex-wrap:wrap;gap:4px 10px;padding:6px 10px;border-inline-start:3px solid var(--al-line);color:var(--al-muted);font-size:15px;line-height:1.45;overflow-wrap:anywhere}
.pc-earlier-kind{font-weight:700}
.pc-more{border:1px solid var(--line-card);border-radius:var(--radius-sm);background:var(--al-surface);min-width:0}
.pc-more>summary{display:flex;align-items:center;min-height:48px;padding:0 14px;cursor:pointer;font-weight:700;color:var(--al-ink)}
.pc-more>summary:focus-visible{outline:3px solid var(--al-focus);outline-offset:2px}
.pc-more-body{padding:0 12px 12px;display:grid;gap:12px;min-width:0}
.pc-more-body>.candidate-stage,.pc-more-body>.released-card,.pc-more-body>.feedback-box{margin:0;min-width:0}
@media (max-width:760px){
  .candidate-layout[data-mode=presented]{grid-template-columns:minmax(0,1fr);gap:12px}
  .candidate-layout[data-mode=presented] .monitor canvas{height:64px}
  .candidate-layout[data-mode=presented] .vital b{font-size:22px!important}
  .candidate-layout[data-mode=presented] .monitor-extra{font-size:13px;gap:4px 10px}
  .pc-now{padding:12px 14px}
  .pc-now-title{font-size:20px;margin-bottom:8px}
  .pc-why{padding:12px 14px}
  .pc-why-text{font-size:18px;line-height:1.5}
}
/* P95-2 presented mode (owner: «remove what is not needed so the learner is never distracted»; src/ui/presented.js
   dockTabsFor / notifyAllowed; src/ui/live-dock.js applyMode; src/app.js applyStaffMode / applyLearnerMode). HIDE BY MODE
   only: the dock of a presented-case session (.live-dock[data-mode=presented]) shows Team and Notes; the hidden tabs,
   panels, co-facilitators, rules count and feed are display:none (out of the tab order and the accessibility tree).
   UI UX Pro Max rules: nav-hierarchy (two tabs, the mode box first in Team), progressive-disclosure (the rest returns with
   the full simulation), keyboard-nav (arrows move between the shown tabs only, src/ui/live-dock.js). Tokens only, no motion.
   Full mode (data-mode=full) is not touched by any rule here. */
.live-dock .dock-tab[hidden],.live-dock .dock-panel[hidden],.live-dock .dock-feed[hidden],.live-dock .dock-mode[hidden]{display:none!important}
.live-dock[data-mode=presented] #cofac-panel,.live-dock[data-mode=presented] #dock-acks{display:none!important}
.pc-more[hidden]{display:none!important}
.dock-mode{display:grid;gap:6px;padding:10px 12px;margin:0 0 12px;border:1px solid var(--line-card);border-inline-start:4px solid var(--al-gold);border-radius:var(--radius-sm);background:var(--al-warm);min-width:0}
.dock-mode-title{margin:0;font-size:15px;font-weight:800;color:var(--al-ink)}
.dock-mode-help{margin:0;font-size:13px;line-height:1.6;color:var(--al-muted);overflow-wrap:anywhere}
.dock-mode-slot .toggle-label{margin:0;min-height:44px;align-items:center}
/* P95-3 shared screen (owner decisions V7-D15/V7-D16; docs/product/modes-plan.md Phase 2): /room/<CODE>/screen, the big
   classroom screen fed by the instructor's console tab (src/ui/screen-page.js, src/ui/screen.js). Dynamic simulation is dark
   (CLAUDE.md design scope): the --sim-* surface, identity tokens only (vital colours reuse the monitor's .vital.* rules).
   UI UX Pro Max rules: color-contrast (sim-ink / sim-muted on sim-bg / sim-panel, >= 4.5:1; gold only on large text),
   font-size-scale + readable at distance (headings >= 28px via clamp, values to 96px), line-length-control (justification
   max 60ch), reduced-motion (no animation at all here), horizontal-scroll (minmax(0,1fr), overflow-wrap:anywhere, no fixed
   widths), focus-states (visible dark focus ring), touch-target-size (44px buttons), color-not-only (states have words). */
body[data-page=screen]{background:var(--sim-bg);color:var(--sim-ink);overflow-x:hidden}
body[data-page=screen] .masthead,body[data-page=screen] #site-footer,body[data-page=screen] .skip-link{display:none!important}
body[data-page=screen] #app{max-width:none;margin:0;padding:0;background:var(--sim-bg)}
.scr{box-sizing:border-box;min-height:100dvh;display:grid;align-content:start;gap:clamp(14px,2.2vw,32px);padding:clamp(16px,3vw,48px);background:var(--sim-bg);color:var(--sim-ink);min-width:0}
.scr [hidden]{display:none!important}
.scr-top{display:flex;flex-wrap:wrap;align-items:center;gap:12px 20px;min-width:0}
.scr-brand{margin:0;font-size:clamp(28px,2.6vw,40px);font-weight:800;color:var(--sim-ink);flex:1 1 auto;min-width:0}
.scr-status{margin:0;font-size:clamp(18px,1.6vw,26px);font-weight:700;color:var(--sim-muted)}
.scr[data-state=live] .scr-status{color:var(--live-on-dark)}
.scr[data-state=offline] .scr-status{color:var(--danger-on-dark)}
.scr-tools{display:flex;gap:10px;flex-wrap:wrap}
.scr .scr-btn{min-height:44px;min-width:44px;font-size:18px}
.scr .secondary.scr-btn{background:var(--sim-panel);color:var(--sim-ink);border:1px solid var(--sim-border)}
.scr button:focus-visible{outline:3px solid var(--al-focus-dark);outline-offset:3px}
.scr-offline,.scr-ended{display:grid;gap:12px;padding:clamp(18px,2.4vw,36px);border:2px solid var(--danger-on-dark);border-radius:var(--radius-md);background:var(--sim-panel)}
.scr-ended{border-color:var(--sim-border)}
.scr-offline h2,.scr-ended h2{margin:0;font-size:clamp(30px,3.4vw,56px);line-height:1.25;color:var(--sim-ink);overflow-wrap:anywhere}
.scr-offline p{margin:0;font-size:clamp(20px,1.8vw,30px);line-height:1.6;color:var(--sim-muted);max-width:60ch}
.scr-offline .scr-btn{justify-self:start}
.scr-join{display:grid;gap:clamp(10px,1.4vw,22px);justify-items:center;text-align:center;padding:clamp(18px,3vw,48px);border:1px solid var(--sim-border);border-radius:var(--radius-md);background:var(--sim-panel);min-width:0}
.scr-join h2{margin:0;font-size:clamp(30px,3.6vw,60px);line-height:1.25;color:var(--sim-ink)}
.scr-link{margin:0;font-family:var(--mono);font-size:clamp(22px,2.4vw,44px);color:var(--codebox-text);overflow-wrap:anywhere;max-width:100%}
.scr-code-wrap{margin:0;display:grid;gap:6px;justify-items:center}
.scr-code-label{font-size:clamp(18px,1.6vw,26px);font-weight:700;color:var(--sim-muted)}
.scr-code{font-family:var(--mono);font-size:clamp(48px,8vw,140px);font-weight:700;letter-spacing:.12em;line-height:1.05;color:var(--al-gold);white-space:nowrap;max-width:100%}
.scr-count{margin:0;font-size:clamp(24px,2.4vw,40px);font-weight:800;color:var(--sim-ink)}
.scr-join.is-compact{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:8px 32px;padding:12px 20px}
.scr-join.is-compact>*{flex:0 1 auto;min-width:0}
.scr-join.is-compact .scr-link{overflow-wrap:normal;word-break:normal}
.scr-join.is-compact h2{font-size:clamp(28px,2vw,36px)}
.scr-join.is-compact .scr-link{font-size:clamp(18px,1.6vw,28px)}
.scr-join.is-compact .scr-code{font-size:clamp(32px,3.4vw,56px)}
.scr-join.is-compact .scr-code-wrap{display:flex;align-items:baseline;gap:12px}
.scr-join.is-compact .scr-code-label{white-space:nowrap}
.scr-join.is-compact .scr-count{font-size:clamp(24px,1.8vw,32px)}
.scr-live{display:grid;gap:clamp(14px,2vw,28px);min-width:0}
.scr-stage{margin:0;font-size:clamp(28px,2.8vw,48px);font-weight:700;line-height:1.3;color:var(--sim-ink);overflow-wrap:anywhere}
.scr-monitor{display:grid;gap:10px;padding:clamp(12px,1.6vw,24px);border:1px solid var(--sim-border);border-radius:var(--radius-md);background:var(--sim-panel);min-width:0}
.scr-monitor-head{display:flex;flex-wrap:wrap;gap:8px 24px;justify-content:space-between;font-family:var(--mono);font-size:clamp(18px,1.5vw,26px);color:var(--sim-muted)}
.scr-tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(8px,1.2vw,18px)}
.scr .scr-tile{display:grid;gap:4px;padding:clamp(8px,1vw,16px);border:1px solid color-mix(in srgb,var(--sim-ink) 16%,transparent);border-radius:var(--radius-sm);border-bottom-width:1px;min-width:0}
.scr .scr-tile-label{font-size:clamp(18px,1.4vw,26px);opacity:.85}
.scr .scr-tile-value{font-size:clamp(44px,5.4vw,96px);line-height:1;font-weight:600;overflow-wrap:anywhere}
.scr-now{display:grid;gap:clamp(10px,1.4vw,20px);padding:clamp(18px,2.4vw,36px);border:2px solid var(--al-gold);border-radius:var(--radius-md);background:var(--sim-panel);min-width:0}
.scr-kicker{margin:0;display:flex;flex-wrap:wrap;gap:8px 16px;font-size:clamp(20px,1.8vw,30px);font-weight:700;color:var(--sim-muted)}
.scr-kind{color:var(--al-gold)}
.scr-now-title{margin:0;font-size:clamp(34px,4vw,72px);line-height:1.2;font-weight:800;color:var(--sim-ink);overflow-wrap:anywhere}
.scr-why{display:grid;gap:8px;padding-block-start:clamp(10px,1.2vw,18px);border-top:1px solid var(--sim-border)}
.scr-why-label{margin:0;font-size:clamp(20px,1.8vw,30px);font-weight:700;color:var(--al-gold)}
.scr-why-text{margin:0;font-size:clamp(26px,2.6vw,46px);line-height:1.5;color:var(--sim-ink);max-width:60ch;overflow-wrap:anywhere}
@media (max-width:760px){.scr-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (prefers-reduced-motion:reduce){.scr *{animation:none!important;transition:none!important}}
/* P96 owner fixes (owner review 2026-11-28). Identity tokens only.
   1. Presented case, learner monitor («اللوحة مش واضحة»): the monitor stays dark (simulation surface) and keeps all eight
      readings; HR/BP/SpO2/CVP values clamp(44px..64px) desktop and 34px phone, FiO2/T/RR/EtCO2 values 26px desktop and
      22px phone, labels 15px at 90% opacity, waves 150-220px high (four channels no longer squeezed); the two columns are
      equal (1fr 1fr) and the phone stacks the monitor first. The BP value carries an inline 29px from the full monitor, so
      the presented rule needs !important (the P95 rule did the same). The item-kind chip is a pill with words.
   2. Calendar treatment: «تدريباتي القادمة» (learner) and «التالي في جدولك» (instructor) get a sky-tinted card with a primary
      start border and a date tile (day number + short month; aria-hidden, the row text says the date).
   3. «يحتاج انتباهك» / «يحتاج قرارك»: data-attn-level=has gives a gold start border, a warm tint and the attention icon
      with a dot that pulses three times (transform + opacity) when items first appear; empty stays neutral, no motion;
      no animation at all under prefers-reduced-motion.
   UI UX Pro Max rules: readable-font-size + font-size-scale (monitor values), visual-hierarchy + content-priority (balanced
   columns, monitor first on phone), color-contrast (sim-ink on the monitor > 12:1; ink on sky tint / warm tint > 9:1),
   color-not-only (date words, icon + count words), number-tabular (tabular-nums on readings and the day), reduced-motion,
   transform-performance (pulse animates transform/opacity only), excessive-motion (3 iterations, never endless),
   contextual-live-badge-updates (one status line said once, src/ui/attention.js), horizontal-scroll (minmax(0,..), wrap),
   touch-target-size (unchanged 44px buttons). Full mode (data-mode=full) is not touched. */
.candidate-layout[data-mode=presented]{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.candidate-layout[data-mode=presented] .monitor{border-radius:var(--radius-md)}
.candidate-layout[data-mode=presented] .monitor-head{padding:10px 18px;font-size:20px}
.candidate-layout[data-mode=presented] .monitor-head small{font-size:18px;color:var(--sim-muted)}
.candidate-layout[data-mode=presented] .monitor canvas{height:clamp(150px,15vw,220px)}
.candidate-layout[data-mode=presented] .vitals{grid-template-columns:minmax(0,1fr) minmax(0,1.5fr) minmax(0,1fr) minmax(0,1fr);gap:0 14px;padding:8px 18px}
.candidate-layout[data-mode=presented] .vital{padding:6px 0;min-width:0}
.candidate-layout[data-mode=presented] .vital small{font-size:15px;opacity:.9;white-space:nowrap}
.candidate-layout[data-mode=presented] .vital b{display:block;font-size:clamp(44px,3.6vw,64px)!important;line-height:1.05;font-variant-numeric:tabular-nums;white-space:nowrap}
.candidate-layout[data-mode=presented] .monitor-extra{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:6px 18px;padding:10px 18px 12px;font-size:16px;color:var(--sim-ink)}
.candidate-layout[data-mode=presented] .monitor-extra b{font-size:26px;font-weight:600;font-variant-numeric:tabular-nums}
.candidate-layout[data-mode=presented] #monitor-mode{font-size:14px;color:var(--sim-muted)}
.pc-kicker{align-items:center;font-size:15px}
.pc-kind{display:inline-flex;align-items:center;padding:2px 12px;border:1px solid var(--al-primary-strong);border-radius:var(--radius-pill);background:var(--al-sky);color:var(--al-ink);font-size:14px;font-weight:800;line-height:1.6}
.pc-kind::before{content:none}
.pc-why-label{font-size:15px;color:var(--al-primary-strong)}
@media (max-width:760px){
  .candidate-layout[data-mode=presented] .monitor-head{padding:8px 12px;font-size:17px}
  .candidate-layout[data-mode=presented] .monitor-head small{font-size:15px}
  .candidate-layout[data-mode=presented] .monitor canvas{height:84px}
  .candidate-layout[data-mode=presented] .vitals{grid-template-columns:repeat(2,minmax(0,1fr));gap:2px 12px;padding:4px 12px}
  .candidate-layout[data-mode=presented] .vital:has(#v-bp){grid-column:1/-1}
  .candidate-layout[data-mode=presented] .vital{padding:4px 0}
  .candidate-layout[data-mode=presented] .vital small{font-size:12px}
  .candidate-layout[data-mode=presented] .vital b{font-size:34px!important}
  .candidate-layout[data-mode=presented]{grid-template-columns:minmax(0,1fr)}
  .candidate-layout[data-mode=presented] .monitor-extra{gap:2px 12px;padding:6px 12px 8px;font-size:14px}
  .candidate-layout[data-mode=presented] .monitor-extra b{font-size:22px}
  .candidate-layout[data-mode=presented] #monitor-mode{font-size:12px}
}
.cal-card.my-sch,.panel.home-sched-next.cal-card{background:color-mix(in srgb,var(--al-sky) 45%,var(--al-surface));border:1px solid color-mix(in srgb,var(--al-sky) 60%,var(--al-primary));border-inline-start:5px solid var(--al-primary)}
.cal-card h2 .al-ic{color:var(--al-primary-strong)}
.cal-tile{flex:none;display:inline-grid;grid-template-rows:auto auto;justify-items:center;align-content:center;min-width:58px;padding:4px 6px 6px;border:1px solid var(--al-primary-strong);border-top-width:6px;border-radius:var(--radius-sm);background:var(--al-surface);color:var(--al-ink);line-height:1.1;text-align:center}
.cal-tile-day{font-size:24px;font-weight:800;font-variant-numeric:tabular-nums;color:var(--al-navy)}
.cal-tile-month{font-size:13px;font-weight:700;color:var(--al-primary-strong);white-space:nowrap}
.my-sch-row.cal-row{flex-wrap:wrap;justify-content:flex-start;gap:10px 14px}
.my-sch-row.cal-row>.sch-main{flex:1 1 220px;min-width:0}
.my-sch-row.cal-row>.sch-acts{margin-inline-start:auto}
.my-sch-row[data-status=cancelled] .cal-tile{border-color:var(--al-muted);color:var(--al-muted)}
.my-sch-row[data-status=cancelled] .cal-tile-day,.my-sch-row[data-status=cancelled] .cal-tile-month{color:var(--al-muted)}
.cal-entry{display:flex;align-items:center;gap:12px;margin-bottom:10px;min-width:0}
.cal-entry-text{min-width:0}
.cal-entry-text p{margin:0}
.attn-block h2,.admin-needs.attn-block h2{display:flex;align-items:center;gap:8px}
.attn-ico{position:relative;display:inline-grid;place-items:center}
.attn-ico .al-ic{--icsz:18px;color:var(--al-primary-strong)}
.attn-dot{display:none;position:absolute;top:-3px;inset-inline-end:-5px;width:9px;height:9px;border-radius:50%;background:var(--al-warning);box-shadow:0 0 0 2px var(--al-surface)}
.attn-dot::after{content:'';position:absolute;inset:0;border-radius:50%;background:var(--al-warning);opacity:0;pointer-events:none}
.panel.attn-block[data-attn-level=has]{border-color:var(--home-warm-line);border-inline-start:5px solid var(--al-gold);background:color-mix(in srgb,var(--al-warning-bg) 60%,var(--al-surface))}
.attn-block[data-attn-level=has] .attn-dot{display:block}
.attn-block[data-attn-level=has] .attn-ico .al-ic{color:var(--al-warning)}
.attn-block[data-attn-pulse=on] .attn-dot::after{animation:attn-pulse var(--dur-pulse) var(--ease-out) 3}
@keyframes attn-pulse{0%{transform:scale(1);opacity:.6}100%{transform:scale(2.8);opacity:0}}
@media (prefers-reduced-motion:reduce){.attn-block .attn-dot::after{animation:none!important}}
/* ---- P105 batch B3, part 1 (design audit v9): the org admin's screens. Layout and wording only; tokens only. ---- */
/* The fourth button class, "inside a table" (DESIGN-SPEC section C): no fill, link-coloured bold words, underline on hover,
   a 44px target. Used for the repeated actions of a row. */
button.tbl-act{display:inline-flex;align-items:center;min-height:44px;min-width:44px;padding:var(--sp-2) 0;border:0;border-radius:var(--radius-xs);background:none;box-shadow:none;color:var(--text-link);font-size:inherit;font-weight:var(--fw-bold);text-align:start;text-decoration:none;transition:color var(--motion-fast)}
button.tbl-act:hover:not(:disabled),button.tbl-act:active:not(:disabled){background:none;box-shadow:none;transform:none;color:var(--text-strong);text-decoration:underline;text-underline-offset:3px}
button.tbl-act.is-danger,button.tbl-act.is-danger:hover:not(:disabled){color:var(--tone-danger-fg)}
button.tbl-act:disabled{background:none;color:var(--action-disabled-text);cursor:not-allowed}
/* AC-V9-B3-06/07: member rows on one fixed grid (who | state and role | actions); the disabling action last and set apart. */
.adm-area .member-row[data-membership-row]{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,4fr) minmax(0,7fr);align-items:start;gap:var(--sp-2) var(--sp-4)}
.adm-area .member-row[data-membership-row]>.own-note{grid-column:2/-1;max-width:none;align-self:center}
.member-state,.member-actions{display:flex;flex-wrap:wrap;align-items:center;min-width:0}
.member-state{gap:var(--sp-2)}
.member-actions{gap:0 var(--sp-3)}
.member-actions>.member-last:not(:first-child){margin-inline-start:var(--sp-4);padding-inline-start:var(--sp-4);border-inline-start:1px solid var(--line);border-radius:0}
@media(max-width:1100px){
  .adm-area .member-row[data-membership-row]{grid-template-columns:minmax(0,1fr)}
  .adm-area .member-row[data-membership-row]>.own-note{grid-column:1}
}
/* AC-V9-B3-08: the count sits beside its heading; an item is as wide as its content needs, not the page. */
.adm-home .admin-needs .adm-card-head{justify-content:flex-start}
.adm-home .admin-needs-items{justify-items:start}
.adm-home .adm-need{width:min(100%,720px)}
/* AC-V9-B3-03: numeric columns of the report tables, headers and cells alike. */
.report-table :is(th,td).num{text-align:end;font-variant-numeric:tabular-nums}
/* AC-V9-B3-01: the cohort counts card's states. */
#coh-counts-body{margin:var(--sp-2) 0}
#coh-counts-body .loading,#coh-counts-body .error{margin:0 0 var(--sp-2)}
#coh-counts-body .coh-count-list{margin:0}
/* AC-V9-B3-04 / 05: the export line of uses; the isolated stamps of the period line. */
.report-export-uses{margin:var(--sp-2) 0 0}
.report-stamp{white-space:nowrap}
/* AC-V9-B3-10: the org admin's assistant entry is the header button at every width, and the navigation holds no second one.
   The admin is recognised by the «الإدارة» destination only that role has; :where keeps the page rule above (no entry on the
   sign-in, invitation, reset and room screens) stronger. Which roles are offered the assistant is not decided here. */
body.asst-head-on:where(.app-nav-on:has(#app-nav [data-nav-key="admin"])) #identity .asst-head-btn{display:inline-grid;place-items:center;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;border:1px solid var(--line-card);border-radius:50%;background:var(--surface-card)}
body.asst-head-on:where(.app-nav-on:has(#app-nav [data-nav-key="admin"])) #identity .asst-head-btn .orb{--s:28px}
body.asst-head-on:where(:has(#app-nav [data-nav-key="admin"])) .app-nav li:has(>[data-nav-key="assistant"]){display:none}
/* ---- P105 batch B3, part 2 (design audit v9): the Aleem team's screens. Layout only; tokens only; no review state or wording. ---- */
/* The "inside a table" class for a link of a row (the button form is in part 1). */
a.tbl-act{display:inline-flex;align-items:center;min-height:44px;min-width:44px;padding:var(--sp-2) 0;color:var(--text-link);font-weight:var(--fw-bold);text-decoration:none;transition:color var(--motion-fast)}
a.tbl-act:hover{color:var(--text-strong);text-decoration:underline;text-underline-offset:3px}
/* AC-V9-B3-11/12: the coordinator's tables share one fixed set of columns (item | next action | clinical review | reviewer),
   so a column starts at the same place in every group; a status chip stays on one line and a table wider than the page
   scrolls inside its named region. The stacked rows of the phone are unchanged. */
@media(min-width:601px){
  .review-table{table-layout:fixed;width:100%;min-width:1000px}
  .review-table thead th:nth-child(1),.review-table th[scope=row]{width:30%}
  .review-table thead th:nth-child(2){width:26%}
  .review-table thead th:nth-child(3){width:28%}
  .review-table thead th:nth-child(4){width:16%}
  .review-table .review-col-action{min-width:0}
  .review-table :is(.al-chip,.review-flag){white-space:nowrap}
  .review-table .review-blocked-reason a.tbl-act{white-space:normal}
}
/* AC-V9-B3-14: the repeated «ما تغيّر» line above the decision buttons. */
.review-changed-recap{margin:var(--sp-3) 0 0;padding:var(--sp-2) var(--sp-3);border-radius:var(--radius-xs);background:var(--surface-sunken);color:var(--text-strong);font-size:var(--fs-caption);line-height:1.7;overflow-wrap:anywhere}
.review-changed-recap a{font-weight:var(--fw-bold);color:var(--text-link)}
/* AC-V9-B3-17: identifiers and fingerprints (always inside a dir="ltr" element) in the code face; a date is one isolated,
   unbroken run with tabular numerals and keeps the interface face. */
:is(.aleem,.review-dialog-subject) :is(bdi[dir=ltr]>code,.ev-field[dir=ltr]:not([data-field=url])){font-family:var(--font-mono)}
.aleem [data-day]{unicode-bidi:isolate;white-space:nowrap;font-variant-numeric:tabular-nums}
/* P106 full run: the in-app question dialog buttons measured 43.99997px at 390 (sub-pixel), so they get a 44px floor. */
dialog.modal .modal-actions button{min-height:44px}
/* P106-F1 instructor home by state and «الجلسات» (docs/product/design/p106-nav/DESIGN.md §4, §5 items 1, 2, 7). One primary action
   in the hero (src/ui/home-instructor.js syncHero sets data-hero and .is-secondary); «التالي في جدولك» is first in the DOM, the side
   column's top on a computer and before the lists on a tablet or phone; the sessions destination as stacked sections. UI UX Pro Max
   rules applied: primary-action, visual-hierarchy, touch-target-size (44px), focus-states, back-behavior. Tokens only; no new motion. */
.home-hero .home-cta.is-secondary{background:transparent;border:1px solid color-mix(in srgb,var(--al-surface) 72%,transparent);box-shadow:none}
.home-hero[data-hero=live] .home-cta-sheen,.home-hero[data-hero=soon] .home-cta-sheen{display:none}
.home-hero #continue-more a{display:inline-flex;align-items:center;min-height:44px;color:var(--al-surface);font-weight:700;text-underline-offset:3px}
.home-hero a:focus-visible{outline-color:var(--focus-ring-dark)}
.home-recent-acts #rooms-all{min-height:44px}
.dashboard-grid.home-s3.p106-home{grid-template-rows:auto 1fr}
.p106-home>.home-col-main{grid-column:1;grid-row:1 / span 2}
.p106-home>#home-sched-next{grid-column:2;grid-row:1}
.p106-home>.home-col-side{grid-column:2;grid-row:2}
.p106-home .home-kpis-slot{margin:0}
.ins-sessions{display:grid;gap:24px;min-width:0}
.ins-sess-head{margin:0}
.ins-sess-head h1{margin:0 0 4px;font-size:var(--fs-title-page)}
.ins-sess-cta{margin-top:16px}
.ins-sess-cta button{display:inline-flex;align-items:center;gap:8px;min-height:44px}
.ins-sess-sec{margin:0;min-width:0}
.ins-sess-sec>h2{margin:0 0 12px}
.ins-sess-upcoming{display:grid;gap:16px}
.ins-sess-upcoming>h2{margin:0}
.ins-sess-upcoming .panel{margin:0}
.ins-sess-sec .room-item{flex-wrap:wrap}
.ins-sess-sec .room-item button{min-height:44px}
@media (max-width:1100px){
  .dashboard-grid.home-s3.p106-home{grid-template-rows:none}
  .p106-home>.home-col-main,.p106-home>#home-sched-next,.p106-home>.home-col-side{grid-column:1;grid-row:auto}
}
@media (max-width:620px){
  .home-hero[data-hero=live],.home-hero[data-hero=soon]{grid-template-areas:'head' 'slot' 'cta'}
  .ins-sess-cta{flex-direction:column;align-items:stretch}
  .ins-sess-cta button{justify-content:center}
}
/* P90 (owner decision V7-D4 item 6; docs/architecture.md §7g revision 2): learner presence and the session-rules agreement in
   the live dock (src/ui/live-dock.js; staff only, learners see nothing new). Presence is a shape AND words: a filled circle
   (online; the word for screen readers) or a hollow square with a visible muted label «غير متصل · hh:mm» inline after the
   name (lead review: no tooltip, no extra Tab stop; it wraps as one unit and never covers the chip or «أزل»).
   Light work board; tokens only; no motion. */
.mem-presence{display:inline-flex;align-items:center;gap:5px;margin-inline-start:6px;vertical-align:middle;white-space:nowrap;max-width:100%}
.mem-presence-dot{display:block;flex:none;width:11px;height:11px;box-sizing:border-box}
.mem-presence[data-presence=online] .mem-presence-dot{border:2px solid var(--al-success);border-radius:50%;background:var(--al-success)}
.mem-presence[data-presence=offline] .mem-presence-dot{border:2px solid var(--al-muted);border-radius:2px;background:var(--al-surface)}
.mem-presence[data-presence=offline] .mem-presence-word{color:var(--al-muted);font-size:13px;font-weight:700;line-height:1.6}
.mem-presence-word time{direction:ltr;unicode-bidi:isolate;font-family:var(--mono)}
.live-dock .member{scroll-margin-block:8px}
.dock-acks h3{margin:0 0 4px;font-size:15px}
.dock-acks-count{margin:0;font-size:14px;font-weight:800;line-height:1.7;color:var(--al-ink)}
.dock-acks-count bdi{font-family:var(--mono)}
.dock-acks-line{margin:4px 0 0;font-size:13px;line-height:1.7;color:var(--al-ink);overflow-wrap:anywhere}
.dock-acks-label{font-weight:700;color:var(--al-muted)}
.dock-acks-note{margin:6px 0 0;font-size:12.5px;line-height:1.6;color:var(--al-muted)}
/* I1-S2 follow-up: lasting role_held note on a member row */
.member-row .held-note{margin:8px 0 0;font-size:var(--fs-caption);line-height:1.7;max-width:62ch}.member-row .held-note .link-button,.admin .member-row .held-note .link-button{margin-inline-start:6px;min-height:0;padding:0 2px;vertical-align:baseline;line-height:inherit}
/* P98 audit fixes (plan-v11 phase A; docs/agent-reports/P97-journey-audit.md). Identity tokens only; earlier blocks untouched.
   A1 the scheduler's audience is a required choice: a visible required mark, and «Only me» shows a warning line (warning tokens,
      icon + words, not colour alone). A4 shared screen in the live state: the join strip is one compact line and the current
      item sits before the monitor (DOM order); the item title and justification are a little smaller so title + justification +
      the first monitor row fit at 1366x900. A6 the invitation result says no email was sent (neutral info line).
   A7 every selection box in the light pages: the box 22px and its label a target of at least 44x44px.
   UI UX Pro Max rules: touch-target-size (44px), required-indicators, color-not-only, readable-font-size at distance on the
   screen (headings stay >= 28px), visual-hierarchy (current item above readings), reduced-motion (no motion added). */
.sch-req{color:var(--al-danger);font-weight:700}
.sch-aud-warn{display:flex;gap:10px;align-items:flex-start;margin:8px 0 0;padding:10px 12px;border:1px solid var(--al-warning);border-inline-start-width:5px;border-radius:var(--radius-sm);background:var(--al-warning-bg);color:var(--al-ink);line-height:1.7}
.sch-aud-warn .al-ic{--icsz:20px;flex:0 0 auto;color:var(--al-warning)}
.inv-no-email{display:flex;gap:10px;align-items:flex-start;margin:8px 0;padding:10px 12px;border:1px solid var(--al-line);border-inline-start:5px solid var(--al-primary-strong);border-radius:var(--radius-sm);background:var(--al-sky);color:var(--al-ink);font-weight:700;line-height:1.7}
.inv-no-email .al-ic{--icsz:20px;flex:0 0 auto;color:var(--al-primary-strong)}
:is(.check-label,.sch-check,.sch-invitee,.prep-check,.cert-pick,.brf-pick,.brf-case,.toggle-label){min-height:44px;min-width:44px}
:is(.check-label,.sch-check,.sch-invitee,.prep-check,.cert-pick,.brf-pick,.brf-case,.toggle-label) input[type=checkbox]{width:22px;height:22px}
.scr[data-state=live] .scr-join.is-compact{padding:8px 16px;gap:6px 24px}
.scr[data-state=live] .scr-join.is-compact h2{font-size:28px}
.scr[data-state=live] .scr-join.is-compact .scr-code{font-size:clamp(28px,2.6vw,44px)}
.scr[data-state=live] .scr-join.is-compact .scr-link{font-size:clamp(16px,1.3vw,24px)}
.scr[data-state=live] .scr-join.is-compact .scr-count{font-size:clamp(20px,1.5vw,28px)}
.scr-live .scr-now{padding:clamp(14px,1.8vw,30px)}
.scr-live .scr-now-title{font-size:clamp(30px,3.2vw,60px)}
.scr-live .scr-why-text{font-size:clamp(24px,2.1vw,40px)}
/* P99 summary tabs (plan-v11 B1; prototypes/v10-instructor): Overview / Debrief / After the session. The tablist scrolls
   on its own on a phone (no page scroll); 48px targets; the selected tab is the identity teal with a 3px underline. */
.p99-tabs{display:flex;gap:4px;border-bottom:1px solid var(--al-line);overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;-webkit-overflow-scrolling:touch;max-width:100%;min-width:0}
.p99-tabs .p99-tab{flex:0 0 auto;min-height:48px;padding:12px 18px;border:0;border-bottom:3px solid transparent;border-radius:0;background:none;color:var(--al-muted);font-weight:800;white-space:nowrap;box-shadow:none}
.p99-tabs .p99-tab[aria-selected=true]{color:var(--al-primary-strong);border-bottom-color:var(--al-primary)}
.p99-tabs .p99-tab:focus-visible{outline:3px solid var(--al-focus);outline-offset:-3px}
.p99-panel{display:grid;gap:16px;min-width:0}
.p99-panel:focus-visible{outline:3px solid var(--al-focus);outline-offset:4px;border-radius:var(--radius-sm)}
.p99-panel>.panel,.p99-panel>section{margin:0}
.p99-panel .p99-next,.p99-panel .p99-after-note{margin:0}
.p99-next button{min-height:44px}
.f6-sum-cols.is-single{grid-template-columns:minmax(0,1fr)}
.p99-debrief-entry{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px}
.p99-debrief-entry button{min-height:44px}
.p99-debrief-entry button:disabled{cursor:not-allowed}
.p99-export .report-export{display:grid;gap:4px}
.p99-export .report-export h3{margin:0}
.p99-export .report-export button{min-height:44px}
@media (max-width:640px){.p99-tabs .p99-tab{padding:12px 14px}}
/* P99-B2 debrief mode (plan-v11 B2): «وضع النقاش», a full-screen light learning board in a native <dialog> (PEARLS steps,
   prompts, planning timer, shared-screen switch), and the shared screen's large dark debrief display. 44px+ targets; no
   motion; the phone note shows under 640px only (instructor control on a phone is not a supported target). */
dialog.dbm{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;padding:0;border:0;overflow:auto;overscroll-behavior:contain;background:var(--al-shell);color:var(--al-ink);text-align:start}
dialog.dbm::backdrop{background:color-mix(in srgb,var(--al-navy) 60%,transparent)}
.dbm-shell{box-sizing:border-box;min-height:100%;display:grid;grid-template-rows:auto auto 1fr auto;gap:16px;padding:clamp(14px,2.4vw,36px);max-width:1480px;margin:0 auto}
.dbm-head{display:flex;flex-wrap:wrap;align-items:center;gap:12px 24px}
.dbm-head-text{flex:0 0 auto}
.dbm-eyebrow{margin:0;font-size:14px;font-weight:800;color:var(--al-primary-strong)}
.dbm-progress{margin:0;font-size:18px;font-weight:700}
.dbm-steps{display:flex;flex-wrap:wrap;gap:6px;list-style:none;margin:0;padding:0;flex:1 1 420px;min-width:0}
.dbm-steps li{display:flex;align-items:center;gap:8px;padding:8px 12px;border:1px solid var(--al-line);border-radius:var(--radius-pill);background:var(--al-surface);color:var(--al-muted);font-weight:700;font-size:15px}
.dbm-steps li[data-state=done]{color:var(--al-ink)}
.dbm-steps li[data-state=current]{border-color:var(--al-primary);background:var(--al-sky);color:var(--al-ink);box-shadow:inset 0 -3px 0 var(--al-primary)}
.dbm-step-n{display:inline-grid;place-items:center;width:24px;height:24px;border-radius:50%;background:var(--al-neutral-bg);font-size:13px}
.dbm-steps li[data-state=current] .dbm-step-n{background:var(--al-primary-strong);color:var(--al-surface)}
.dbm .dbm-close{min-height:44px;min-width:44px;margin-inline-start:auto}
.dbm-phone-note{display:none;margin:0}
.dbm-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(280px,1fr);gap:20px;align-items:start;min-width:0}
.dbm-main,.dbm-side>section{background:var(--al-surface);border:1px solid var(--al-line);border-radius:var(--radius-md);padding:clamp(16px,2vw,28px);min-width:0}
.dbm-side{display:grid;gap:16px;min-width:0}
.dbm-main h2{margin:0;font-size:clamp(28px,3vw,44px);line-height:1.3;font-weight:800}
.dbm-main h2:focus{outline:none}
.dbm-main h2:focus-visible{outline:3px solid var(--al-focus);outline-offset:4px}
.dbm-purpose{margin:6px 0 16px;font-size:18px;color:var(--al-muted)}
.dbm-prompts{border:0;margin:0;padding:0;min-width:0}
.dbm-prompts legend{font-weight:700;font-size:15px;margin-bottom:8px;padding:0}
.dbm-draft{margin:0 0 8px}
.dbm-list{list-style:none;margin:0 0 12px;padding:0;display:grid;gap:8px}
.dbm .dbm-prompt{display:flex;align-items:center;gap:12px;min-height:48px;margin:0;padding:10px 14px;border:1px solid var(--al-line);border-radius:var(--radius-sm);font-size:clamp(18px,1.6vw,22px);font-weight:600;cursor:pointer}
.dbm .dbm-prompt input{width:22px;height:22px;flex:0 0 auto;accent-color:var(--al-primary-strong)}
.dbm .dbm-prompt:has(input:checked){border-color:var(--al-primary);background:var(--al-sky)}
.dbm .dbm-prompt:has(input:focus-visible){outline:3px solid var(--al-focus);outline-offset:2px}
.dbm-sub{margin:16px 0 8px;font-size:17px}
.dbm-moments{margin-top:16px;border-top:1px solid var(--al-line);padding-top:12px}
.dbm-moment-list{margin:8px 0 0;padding-inline-start:22px;display:grid;gap:6px;font-size:17px}
.dbm-clock{font-family:var(--mono);color:var(--al-muted)}
.dbm-survey{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;margin-top:18px}
.dbm-survey button{min-height:44px}
.dbm-survey button:disabled{cursor:not-allowed}
.dbm-side h3{margin:0 0 8px;font-size:17px}
.dbm-clock-big{margin:0;font-family:var(--mono);font-size:clamp(36px,3.4vw,52px);font-weight:700;line-height:1.1}
.dbm-side p{margin:4px 0}
.dbm-side button{min-height:44px;margin-top:8px}
.dbm .dbm-share-toggle{min-height:44px;font-size:17px;font-weight:700;margin:0}
.dbm .dbm-share-toggle input{width:22px;height:22px}
.dbm .dbm-nav{margin:0;max-width:none;width:100%;flex-direction:row;color:inherit;font-size:inherit;display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;position:sticky;bottom:0;background:var(--al-shell);padding:12px 0;border-top:1px solid var(--al-line)}
.dbm-nav button{min-height:48px;min-width:120px;font-size:17px}
@media (max-width:900px){.dbm-grid{grid-template-columns:minmax(0,1fr)}}
@media (max-width:640px){.dbm-phone-note{display:block}.dbm-steps li span:not(.dbm-step-n){display:none}.dbm-steps li[data-state=current] span:not(.dbm-step-n){display:inline}.dbm .dbm-nav button{flex:1 1 0;min-width:0}}
.scr-debrief{display:grid;gap:clamp(14px,2vw,32px);padding:clamp(20px,3vw,48px);border:2px solid var(--al-gold);border-radius:var(--radius-md);background:var(--sim-panel);min-width:0}
.scr-db-step{color:var(--al-gold)}
.scr-db-phase{margin:0;font-size:clamp(40px,4.6vw,84px);line-height:1.15;font-weight:800;color:var(--sim-ink)}
.scr-db-prompt{margin:0;font-size:clamp(34px,3.6vw,64px);line-height:1.4;font-weight:700;color:var(--sim-ink);max-width:40ch;overflow-wrap:anywhere}
.scr-db-moments{border-top:1px solid var(--sim-border);padding-top:clamp(10px,1.2vw,18px)}
.scr-db-moments h3{margin:0 0 10px;font-size:clamp(28px,2.2vw,40px);color:var(--al-gold)}
.scr-db-list{margin:0;padding-inline-start:1.4em;display:grid;gap:8px;font-size:clamp(24px,2vw,36px);line-height:1.4;color:var(--sim-ink)}
/* P98 follow-up: a wrapped seat badge in the live dock member row keeps clear of the presence label above it (p90). */
#members .member .seat-badge{display:inline-block;margin-block:4px;vertical-align:middle}
/* P100 survey: reflection and survey as two divided steps on the ended screen; the anonymous note; the owner's launch state. */
.p100-end-steps{display:grid;gap:clamp(16px,2vw,24px);margin-top:clamp(16px,2vw,24px);text-align:start}
.p100-step:empty{display:none}
.p100-step+.p100-step{border-top:1px solid var(--al-line);padding-top:clamp(16px,2vw,24px)}
.srv-anon{margin:8px 0 0;padding:8px 12px;border-radius:var(--radius-sm);background:var(--al-neutral-bg);color:var(--al-ink);font-size:var(--fs-caption);line-height:1.7}
.srv-wait{margin:0;color:var(--al-muted)}
.srv-launch{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px}
.srv-launch button{min-height:44px}
.srv-launch-state{margin:0;font-size:var(--fs-caption);color:var(--al-muted)}
.srv-launch[data-open=true] .srv-launch-state{color:var(--al-success)}
.srv-launch .error:empty{display:none}
/* P101 certificates */
.p101-cert-sub{margin:-12px 0 0;font-weight:700;color:var(--al-primary-strong)}
.p101-verify-block{display:flex;gap:18px;align-items:center;justify-content:center;flex-wrap:wrap;border-top:1px solid var(--al-line);padding-top:16px;text-align:start}
.p101-qr{width:120px;height:120px;flex:none;color:var(--al-navy)}
.p101-qr svg{display:block;width:100%;height:100%}
.p101-verify-text{min-width:0;max-width:420px}
.p101-verify-text h2{font-size:var(--fs-body,16px);margin:0 0 4px}
.p101-verify-help,.p101-verify-url{margin:0;font-size:var(--fs-caption);color:var(--al-muted);overflow-wrap:anywhere}
.p101-verify-code{margin:4px 0;font-size:var(--fs-caption)}
.p101-verify-code code{font-family:ui-monospace,Consolas,monospace;letter-spacing:1px;color:var(--al-ink);overflow-wrap:anywhere}
.p101-card{display:grid;gap:8px;text-align:start}
.p101-card h2{display:flex;gap:8px;align-items:center;margin:0}
.p101-card-kind{margin:0;font-weight:700}
.p101-card .button-link{justify-self:start;min-height:44px}
/* The public check page (server-rendered, no script). */
.p101-verify-page{background:var(--al-shell);color:var(--al-ink)}
.p101-verify{max-width:640px;margin:0 auto;padding:32px 16px;display:grid;gap:18px;min-height:auto}
.p101-v-brand{display:flex;gap:12px;align-items:center}
.p101-v-brand p{margin:0;line-height:1.6;color:var(--al-muted)}
.p101-v-card{background:var(--al-surface);border:1px solid var(--line-card);border-radius:var(--radius-md);box-shadow:var(--shadow-card);padding:24px;display:grid;gap:12px}
.p101-v-card h1{font-size:clamp(22px,4vw,30px);margin:0;display:grid;gap:2px}
.p101-v-card h1 [lang=en]{font-size:.6em;color:var(--al-muted)}
.p101-v-card h1[data-status=valid]{color:var(--al-success)}
.p101-v-card h1[data-status=revoked]{color:var(--al-danger)}
.p101-v-card h1[data-status=unknown]{color:var(--al-warning)}
.p101-v-facts{margin:0;display:grid;gap:8px}
.p101-v-row{display:grid;grid-template-columns:minmax(120px,1fr) 2fr;gap:8px;border-top:1px solid var(--al-line);padding-top:8px}
.p101-v-row dt{color:var(--al-muted);font-size:var(--fs-caption)}
.p101-v-row dd{margin:0;font-weight:700;overflow-wrap:anywhere}
.p101-v-note{margin:0;font-size:var(--fs-caption);color:var(--al-muted)}
@media (max-width:520px){.p101-v-row{grid-template-columns:1fr}}
/* A4 landscape for the certificate's own named page (overrides the P84 portrait rule above). */
@page cert{size:A4 landscape;margin:12mm}
@media print{
  body.cert-page-on .cert-view{max-width:273mm}
  body.cert-page-on .cert-sheet{min-height:180mm;gap:14px;padding:28px 40px}
  .p101-qr{width:32mm;height:32mm}
}
/* P102 learning card and report */
.lc-body{display:grid;gap:10px;margin-top:10px;padding-top:10px;border-top:1px solid var(--line-card)}
.lc-review,.lc-version{margin:0}.lc-review .al-chip{white-space:normal}
.lc-part{display:grid;gap:4px;min-width:0}
.lc-part h4{margin:0;font-size:var(--fs-caption);color:var(--al-primary-strong)}
.lc-part p{margin:0;line-height:1.7}
.lc-refl{display:grid;gap:6px;margin:0}
.lc-refl div{display:grid;gap:2px;padding:8px 10px;border:1px solid var(--line-card);border-radius:var(--radius-sm);background:var(--al-shell);min-width:0}
.lc-refl dt{font-size:var(--fs-caption);color:var(--al-muted)}.lc-refl dd{margin:0;line-height:1.7;overflow-wrap:anywhere;white-space:pre-line}
.p102-report-pan .row,.p102-readable{gap:8px;flex-wrap:wrap}.p102-readable{margin-top:8px}
.p102-report-pan button,.p102-readable button,.rpt-bar button{min-height:44px}
.rpt-overlay{position:fixed;inset:0;z-index:60;overflow:auto;background:color-mix(in srgb,var(--al-navy) 45%,transparent);padding:16px}
.rpt-frame{max-width:210mm;margin:0 auto;display:grid;gap:10px}
.rpt-bar{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.rpt-sheet{background:var(--al-surface);color:var(--al-ink);border-radius:var(--radius-sm);padding:24px 28px;display:grid;gap:14px;min-width:0}
.rpt-head{display:flex;gap:12px;align-items:center;border-bottom:2px solid var(--al-primary);padding-bottom:10px}
.rpt-head h2{margin:0;font-size:22px;overflow-wrap:anywhere}
.rpt-eyebrow{margin:0;font-size:var(--fs-caption);color:var(--al-muted)}
.rpt-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:8px 16px;margin:0}
.rpt-fact dt{font-size:var(--fs-caption);color:var(--al-muted)}.rpt-fact dd{margin:0;font-weight:700;overflow-wrap:anywhere}
.rpt-sec{display:grid;gap:6px;border-top:1px solid var(--line-card);padding-top:10px;break-inside:avoid}
.rpt-sec h3{margin:0;font-size:16px;color:var(--al-primary-strong)}.rpt-sec h4{margin:0;font-size:var(--fs-caption)}
.rpt-sec p{margin:0}
.rpt-names{margin:0;padding-inline-start:20px;columns:2;column-gap:24px}
.rpt-moments,.rpt-survey{margin:0;padding-inline-start:20px;display:grid;gap:4px}
.rpt-clock{font-variant-numeric:tabular-nums;color:var(--al-muted);margin-inline-end:8px}
.rpt-survey li{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}
.rpt-counts{color:var(--al-muted);font-variant-numeric:tabular-nums}
.rpt-foot{margin:0;font-size:var(--fs-caption);color:var(--al-muted);border-top:1px solid var(--line-card);padding-top:8px}
@media (max-width:620px){.rpt-sheet{padding:16px}.rpt-names{columns:1}.rpt-bar button{flex:1 1 auto}}
@page rpt{size:A4 portrait;margin:14mm}
@media print{
  body.rpt-on>*:not(#session-report){display:none!important}
  body.rpt-on,body.rpt-on.app-nav-on{padding:0!important;margin:0!important}
  body.rpt-on .rpt-overlay{position:static;background:none;padding:0;overflow:visible}
  body.rpt-on .rpt-frame{max-width:none}
  body.rpt-on .rpt-bar{display:none!important}
  body.rpt-on .rpt-sheet{page:rpt;padding:0;border-radius:0}
}
/* P103 calendar */
.cal-slot[aria-busy=true]:empty{display:none}
.cal{min-width:0;container-type:inline-size}
.cal-top{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px}
.cal-top h2{display:flex;align-items:center;gap:8px;margin:0}
.cal-nav{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.cal-month{margin:0;min-inline-size:9em;text-align:center;font-weight:700;color:var(--ink)}
.cal-step{min-inline-size:44px;min-block-size:44px;font-size:20px;line-height:1}
.cal-hint{margin:8px 0 4px;font-size:var(--fs-caption);color:var(--muted)}
.cal-body{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;align-items:start}
@container (min-width:860px){.cal-body:has(.cal-day:not([hidden])){grid-template-columns:minmax(0,1fr) minmax(240px,300px)}}
.cal-grid{display:grid;gap:4px;min-width:0}
.cal-week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}
.cal-dow{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:4px 2px;text-align:center;font-size:var(--fs-caption);font-weight:700;color:var(--muted)}
.cal-cell{position:relative;display:flex;flex-direction:column;gap:3px;min-block-size:88px;min-width:0;padding:6px;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--card);cursor:pointer;outline:none}
.cal-cell.is-out{background:var(--paper);color:var(--muted)}
.cal-cell.is-past .cal-num{color:var(--muted)}
.cal-cell.is-today{border-color:var(--al-primary);box-shadow:inset 0 0 0 1px var(--al-primary)}
.cal-cell.is-today .cal-num{background:var(--al-primary);color:var(--al-surface);border-radius:var(--radius-pill);padding:0 7px}
.cal-cell[aria-selected=true]{background:var(--al-sky)}
.cal-cell:focus-visible{outline:3px solid var(--al-focus);outline-offset:2px}
.cal-cell.is-drop{outline:3px dashed var(--al-primary);outline-offset:-3px}
.cal-num{align-self:flex-start;font-weight:700;font-size:13px;line-height:1.7}
.cal-chips{display:flex;flex-direction:column;gap:3px;min-width:0}
.cal-chip{display:flex;flex-wrap:wrap;gap:0 4px;align-items:baseline;inline-size:100%;min-width:0;min-block-size:24px;padding:1px 6px;border:1px solid var(--al-primary);border-radius:var(--radius-xs);background:var(--al-surface);color:var(--ink);font:inherit;font-size:var(--fs-caption);text-align:start;cursor:pointer;box-shadow:none}
.cal-chip.is-movable{touch-action:none;cursor:grab}
.cal-chip.is-dragging{opacity:.6;cursor:grabbing}
.cal-chip.is-cancelled{border-style:dashed;border-color:var(--line);color:var(--muted)}
.cal-chip.is-cancelled .cal-chip-time,.cal-chip.is-cancelled .cal-chip-title{text-decoration:line-through}
.cal-chip-time{flex:none;font-weight:700}
.cal-chip-title{flex:1 1 4em;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cal-chip:focus-visible{outline:3px solid var(--al-focus);outline-offset:1px}
.cal-more{font-size:var(--fs-caption);font-weight:700;color:var(--al-primary-strong)}
.cal-grid.is-dragging{user-select:none}
.cal-day{min-width:0;padding:12px;border:1px solid var(--line);border-radius:var(--radius-md);background:var(--al-warm)}
.cal-day-head{display:flex;justify-content:space-between;align-items:flex-start;gap:8px}
.cal-day-head h3{margin:0;font-size:16px}
.cal-day-list{list-style:none;margin:10px 0;padding:0;display:grid;gap:8px}
.cal-day-item{padding:8px;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--card)}
.cal-day-item.is-cancelled .cal-day-name{text-decoration:line-through;color:var(--muted)}
.cal-day-when,.cal-day-name{margin:0}
.cal-day-when{font-size:var(--fs-caption);color:var(--muted)}
.cal-day-name{font-weight:700;overflow-wrap:anywhere}
.cal-day-acts{flex-wrap:wrap;gap:6px;margin-top:6px}
#cal-day-new{display:inline-flex;align-items:center;gap:6px;margin-top:8px}
.cal-reminder{display:flex;gap:6px;align-items:flex-start;margin:10px 0 0;font-size:var(--fs-caption);color:var(--muted)}
.cal-agenda{display:none}
.cal-agenda-list{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.cal-agenda-day h3{margin:0 0 4px;font-size:15px}
.cal-agenda-day ul{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.cal-agenda-open{min-block-size:44px;inline-size:100%;text-align:start}
.cal-agenda .cal-chip{min-block-size:44px;font-size:14px}
dialog.cal-day-dialog .cal-day{border:0;padding:0;background:none}
@media (max-width:639px){
  .cal-grid,.cal-hint,#cal-day{display:none}
  .cal-agenda{display:block;margin-top:10px}
  .cal-month{min-inline-size:0}
}
/* P104 insights (plan-v11 phase E; prototypes/v10-instructor): activity charts on the light work board. Fills use the identity
   primary token (graphics only); text is ink / muted / link teal (>= 4.5:1 on white); gold is a decorative rule only. Every value
   is written as text beside its bar; the bars are aria-hidden. Nothing moves: the charts are static. */
.ins-slot{margin-bottom:18px}
.ins-slot[aria-busy=true]{min-height:0;margin:0}
.ins-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 14px;margin-bottom:12px;padding-bottom:8px;border-bottom:2px solid var(--al-gold)}
.ins-head h2,.ins-head h3{margin:0;font-size:19px;color:var(--al-ink)}
.ins-scope{margin:0;font-size:13px;line-height:1.6;color:var(--al-muted)}
.ins-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:12px}
.ins-card{margin:0;min-width:0;padding:14px 16px;background:var(--al-surface);border:1px solid var(--line-card);border-radius:var(--radius-md);box-shadow:var(--shadow-card)}
.ins-card.ins-wide{grid-column:1/-1}
.ins-card-title{margin:0 0 10px;font-size:15px;font-weight:700;color:var(--al-ink);line-height:1.5}
.ins-empty{margin:0;padding:8px 0;font-size:14px;line-height:1.7;color:var(--al-muted)}
.ins-note{margin:6px 0 0;font-size:var(--fs-caption,12px);line-height:1.6;color:var(--al-muted)}
.ins-big{margin:0 0 6px;font-size:22px;font-weight:800;line-height:1.3;color:var(--al-ink);font-variant-numeric:tabular-nums}
.ins-cols{list-style:none;margin:0;padding:0;display:flex;align-items:stretch;gap:8px;height:170px}
.ins-col{flex:1 1 0;min-width:0;display:flex;flex-direction:column;align-items:center;gap:4px}
.ins-col-v{font-size:14px;font-weight:800;color:var(--al-ink);font-variant-numeric:tabular-nums;line-height:1.2}
.ins-col-track{flex:1 1 auto;width:100%;max-width:48px;display:flex;align-items:flex-end;border-bottom:2px solid var(--al-field-strong)}
.ins-col-bar{display:block;width:100%;min-height:3px;border-radius:6px 6px 0 0;background:var(--al-primary)}
.ins-col-bar.is-zero{min-height:0;height:0!important}
.ins-col-m{max-width:100%;font-size:12px;line-height:1.4;color:var(--al-muted);text-align:center;overflow-wrap:anywhere}
.ins-col.is-now .ins-col-m{font-weight:800;color:var(--al-ink)}
.ins-bars{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.ins-bar{display:grid;gap:4px;min-width:0}
.ins-bar-lab{display:flex;justify-content:space-between;align-items:baseline;gap:4px 12px;flex-wrap:wrap;font-size:14px;line-height:1.5}
.ins-bar-name{min-width:0;font-weight:700;color:var(--al-ink);overflow-wrap:anywhere}
.ins-bar-v{color:var(--al-muted);white-space:nowrap;font-variant-numeric:tabular-nums}
.ins-bar-track{display:block;height:12px;border-radius:var(--radius-pill);background:var(--al-neutral-bg);border:1px solid var(--al-line);overflow:hidden}
.ins-bar-fill{display:block;height:100%;border-radius:var(--radius-pill);background:var(--al-primary)}
.ins-progress{margin:2px 0 0}
.ins-items{margin-top:12px;padding-top:10px;border-top:1px solid var(--al-line)}
.ins-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0}
.ins-pair>div{min-width:0;padding:10px 12px;border-radius:var(--radius-sm);background:var(--al-shell);border:1px solid var(--al-line)}
.ins-pair dt{font-size:13px;line-height:1.5;color:var(--al-muted)}
.ins-pair dd{margin:2px 0 0;font-size:24px;font-weight:800;color:var(--al-ink);font-variant-numeric:tabular-nums}
@media (max-width:480px){.ins-cols{gap:4px;height:150px}.ins-card{padding:12px}}
@media (forced-colors:active){.ins-col-bar,.ins-bar-fill{background:CanvasText}.ins-bar-track{border-color:CanvasText}}
/* ---- P105-B2 (design audit v9, batch B2: instructor and learner screens) ---- */
/* AC-V9-B2-06: the welcome hero is still (its glow, trace highlight and button sheen no longer loop; rules edited in place above). */
/* AC-V9-B2-03: no activity yet - one calm line instead of five empty cards. */
.ins-quiet{display:flex;flex-wrap:wrap;align-items:baseline;gap:var(--sp-1) var(--sp-3)}
.ins-quiet .ins-head{margin:0;padding:0;border:0}
.ins-quiet-line{margin:0;font-size:var(--fs-dense);line-height:1.7;color:var(--text-muted)}
/* AC-V9-B2-07: the calendar's shortcuts behind a named button; the sentence stays linked to the grid. */
.cal-keys{display:flex;flex-wrap:wrap;align-items:center;gap:var(--sp-2) var(--sp-3);margin:var(--sp-2) 0 var(--sp-1)}
.cal-keys .cal-hint{flex:1 1 30ch;margin:0}
.cal-hint kbd{display:inline-block;padding:0 var(--sp-1);border:1px solid var(--field-border);border-radius:var(--radius-xs);background:var(--al-surface);color:var(--text-strong);font:inherit;font-size:var(--fs-micro);font-weight:700}
@media (max-width:639px){.cal-keys{display:none}}
/* AC-V9-B2-08: a cancelled chip says so in words. */
.cal-chip-st{flex:none;font-weight:700}
/* AC-V9-B2-19: the session-log row starts with its label. */
.summary-item .sum-kind{font-weight:700;color:var(--text-strong)}
/* AC-V9-B2-10: the required mark in words. */
.sch-req-text{font-weight:400;font-size:var(--fs-caption);color:var(--text-muted)}
/* AC-V9-B2-15: the learner's ended page as an ordered list of steps, each with a status in words. */
.p100-end-steps{list-style:none;padding:0;margin-inline:0;margin-block-end:0;counter-reset:endstep}
.p100-step{counter-increment:endstep;min-width:0}
.p100-step:not(:has(>:not(.p100-step-head))){display:none}
.p100-end-steps:not(:has(>li>:not(.p100-step-head))){display:none}
.p100-step-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:var(--sp-1) var(--sp-2);margin:0 0 var(--sp-2);font-size:var(--fs-dense);color:var(--text-muted)}
.p100-step-name{font-weight:700;color:var(--text-strong)}
.p100-step-name::before{content:counter(endstep) ' · '}
.p100-step-state::before{content:'— '}
/* P105 review (Q1-M2): the v9 tokens above also reach session surfaces through shared tokens (card line, flat shadow, dialog
   and notice shape, button timing). That is accepted as visual-only scope. The monitor, the room bar and the docked note keep
   their approved 14px corners, so the dark simulation frame looks exactly as before. */
.room-bar,.scr-monitor,.candidate-layout[data-mode=presented] .monitor,.dock-note{border-radius:14px}
