/* AIS school workspace: one component tree for Arabic and English. */
:root{--school-green:#154b40;--school-gold:#a08036;--school-paper:#f5f8f5;--school-line:#dfe8e2;--school-muted:#63786f}
body[data-school-session="guest"] .primary-nav,body[data-school-session="loading"] .primary-nav{display:none!important}
.primary-nav [hidden]{display:none!important}
body:not([data-school-role="developer"]) #devSettingsEntry,body:not([data-school-role="developer"]) [data-dev-open]{display:none!important}
body:not([data-school-role="developer"]) #creativeAssistantDock{display:none!important}
body:not([data-school-role="developer"]) #libraryAddTile,body:not([data-school-role="developer"]) #libraryAddButton{display:none!important}
body[data-school-session="guest"] #developerSettingsPanel,body[data-school-session="guest"] #devClockPopup{display:none!important}
#app [data-school-hidden="true"]{display:none!important}
.school-space{max-width:1280px;margin:0 auto;padding:28px 24px 72px;color:var(--ink,#17302c)}
/* Display editors share a nonmodal dock; the active page is never replaced. */
:root{--school-panel-width:clamp(330px,34vw,420px)}
body.school-display-panel-open #app,body.school-display-panel-open>.app-header,body.school-display-panel-open>.app-footer,body.school-display-panel-open>#schoolOwnerPreviewBanner{margin-inline-end:calc(var(--school-panel-width) + 24px)}
body.school-display-panel-open .app-header{grid-template-columns:minmax(0,1fr) auto}
body.school-display-panel-open .app-header .primary-nav{grid-column:1/-1;grid-row:2;max-width:100%;overflow-x:auto}
body.school-display-panel-open .app-header .header-tools{flex-wrap:wrap}
.school-display-panel,[dir] .dev-settings-panel{position:fixed;inset:12px;inset-inline-start:auto;width:var(--school-panel-width);max-width:calc(100vw - 24px);height:calc(100dvh - 24px);max-height:calc(100dvh - 24px);margin:0;padding:0;border:1px solid var(--school-line);border-radius:20px;background:var(--white,#fff);color:var(--ink,#17302c);box-shadow:0 10px 30px #183d271c;z-index:110;overflow:hidden}
.school-display-panel[open]{display:flex;flex-direction:column}
.school-display-panel::backdrop{background:transparent;backdrop-filter:none}
.school-display-panel>header{flex:none;margin:0;padding:18px;border-bottom:1px solid var(--school-line);align-items:flex-start;gap:12px;background:var(--white,#fff)}
.school-display-panel>header h2{font-size:20px;line-height:1.5;margin:3px 0 0}
.school-display-panel>header .school-btn{min-width:38px;min-height:38px;padding:6px}
.school-display-panel .school-panel-body{padding:18px;overflow:auto;flex:1;min-height:0;overscroll-behavior:contain}
.school-display-panel .school-personal-grid{grid-template-columns:1fr;gap:12px}
.school-display-panel .school-field{gap:6px}
.school-display-panel .school-field input,.school-display-panel .school-field select{padding:9px 10px;min-height:42px}
.school-display-panel .school-field input[type=color]{width:56px;padding:4px;height:40px}
.school-display-panel .school-field input[type=checkbox]{min-height:20px;width:20px;height:20px}
.school-display-panel .school-account-summary{font-size:13px;line-height:1.6;margin-top:0;margin-bottom:16px;color:var(--school-muted)}
.school-panel-savebar{display:flex;gap:9px;position:sticky;bottom:-18px;padding:12px 0;background:var(--white,#fff);border-top:1px solid var(--school-line);z-index:1}
.school-panel-savebar .primary{flex:1}
.school-display-panel .school-notice{font-size:12px;line-height:1.7;padding:12px;margin:14px 0}
.school-display-panel .school-notice small{display:block;margin-top:7px}
.school-display-panel .school-notice a{color:var(--school-green);font-weight:700}
@media(max-width:760px){
 body.school-display-panel-open #app,body.school-display-panel-open>.app-header,body.school-display-panel-open>.app-footer,body.school-display-panel-open>#schoolOwnerPreviewBanner{margin-inline-end:0}
 body.school-display-panel-open #app{padding-bottom:54dvh}
 .school-display-panel,[dir] .dev-settings-panel{inset:auto 8px 8px!important;inset-inline-start:8px!important;inset-inline-end:8px!important;width:calc(100% - 16px);max-width:calc(100% - 16px);height:52dvh;max-height:52dvh;border-radius:18px;padding:0}
 .school-display-panel>header{padding:12px 16px}
 .school-display-panel>header h2{font-size:17px}
 .school-display-panel .school-panel-body{padding:14px 16px}
 .school-display-panel .school-personal-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 .school-display-panel .school-field{font-size:12px;min-width:0}
 .school-display-panel .school-field input,.school-display-panel .school-field select{width:100%;min-width:0;font-size:13px}
 .school-panel-savebar{bottom:-14px}
}
.school-hero{display:flex;gap:24px;align-items:center;justify-content:space-between;margin:0 0 24px;flex-wrap:wrap}
.school-hero h1{font-size:clamp(25px,3vw,39px);line-height:1.4;margin:5px 0 8px}.school-hero p{max-width:700px;color:var(--school-muted);line-height:1.9;margin:0}.school-eyebrow{color:var(--school-green);font-size:12px;letter-spacing:.08em;font-weight:800}
.school-actions,.school-tabs,.school-inline,.school-chipline{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.school-actions{margin-top:16px}
.school-btn{border:1px solid var(--school-line);background:#fff;color:var(--school-green);padding:11px 17px;border-radius:13px;font:inherit;font-weight:700;cursor:pointer;min-height:44px;display:inline-flex;gap:9px;align-items:center;justify-content:center;text-decoration:none}.school-btn.primary{background:var(--school-green);border-color:var(--school-green);color:white}.school-btn.soft{background:#eaf3ed}.school-btn.danger{color:#922e39;background:#fff2f1}.school-btn:disabled{cursor:default;opacity:.5}.school-btn:hover:not(:disabled){box-shadow:0 3px 12px #154b4012;transform:translateY(-1px)}
.school-btn:focus-visible,.school-space input:focus-visible,.school-space select:focus-visible,.school-space textarea:focus-visible,.school-account-dialog input:focus-visible{outline:3px solid #b2cdb6;outline-offset:3px}
.school-card{background:var(--surface,#fff);border:1px solid var(--school-line);border-radius:23px;padding:24px;box-shadow:0 8px 28px #173e3706}.school-card h2{margin:0 0 12px;font-size:21px}.school-card h3{margin:0 0 8px}.school-card p{line-height:1.8;color:var(--school-muted)}
.school-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.school-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.school-stack{display:grid;gap:18px}.school-stat b{display:block;font-size:35px;margin:8px 0}.school-stat small{color:var(--school-muted)}
.school-auth{max-width:960px;display:grid;grid-template-columns:1fr 1.15fr;gap:32px;margin:34px auto;align-items:start}.school-auth-intro{padding:30px 10px}.school-auth-intro img{width:84px;height:84px;object-fit:contain}.school-auth-intro h1{font-size:36px;line-height:1.5}.school-auth-intro p{line-height:1.9;color:var(--school-muted)}.school-auth-form{padding:30px}
.school-field{display:flex;flex-direction:column;gap:8px;min-width:0;font-weight:650}.school-field small,.school-help{font-weight:400;font-size:13px;line-height:1.8;color:var(--school-muted)}.school-field input,.school-field select,.school-field textarea,.school-search{width:100%;box-sizing:border-box;border:1px solid var(--school-line);border-radius:12px;padding:12px 14px;font:inherit;background:#fff;color:inherit;min-height:46px}.school-field textarea{resize:vertical;min-height:106px;line-height:1.8}.school-field input[type=color]{width:80px;padding:5px}.school-field input[type=checkbox]{width:auto;min-height:20px;accent-color:var(--school-green)}
.school-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.school-form-grid .full{grid-column:1/-1}.school-checks{display:flex;flex-wrap:wrap;gap:12px}.school-checks label{display:flex;gap:8px;align-items:center;background:#f3f7f4;border:1px solid var(--school-line);padding:10px 14px;border-radius:12px}.school-checks input{accent-color:var(--school-green)}
.school-notice{background:#edf4ef;border:1px solid #d9e8de;border-radius:14px;padding:14px 17px;line-height:1.8;font-size:14px;color:#264a3e;margin:14px 0}.school-notice.warn{background:#fff7e9;border-color:#eedec0;color:#725d30}.school-notice.error{background:#fff0ef;border-color:#eccfca;color:#8d3640}.school-error{color:#8d3640;font-weight:650;line-height:1.7}.school-status{display:inline-flex;align-items:center;gap:5px;border-radius:99px;background:#edf3ef;color:#285347;font-size:12px;font-weight:750;padding:5px 10px}.school-status.pending,.school-status.submitted,.school-status.review{background:#fff1d9;color:#896228}.school-status.approved,.school-status.completed,.school-status.active{background:#def1e5;color:#226444}.school-status.suspended,.school-status.failed{background:#ffe6e3;color:#963a40}.school-status.test{background:#ede6ff;color:#67449d}.school-empty{text-align:center;padding:45px 20px;border:1px dashed #cbded0;border-radius:22px;color:var(--school-muted)}
.school-account-btn{border:1px solid var(--school-line);padding:8px 12px;border-radius:14px;background:#edf4ef;color:var(--school-green);font:inherit;font-size:12px;font-weight:700;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.school-account-dialog{border:1px solid var(--school-line);border-radius:24px;max-width:620px;width:calc(100% - 42px);padding:26px;color:#17302c;max-height:85vh;overflow:auto}.school-account-dialog::backdrop{background:#102f2b80;backdrop-filter:blur(5px)}.school-account-dialog header{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:20px}.school-account-dialog h2{margin:0}.school-account-dialog .school-stack{gap:15px}
.school-stepbar{display:flex;gap:10px;margin-bottom:22px;counter-reset:step}.school-step{flex:1;display:flex;gap:10px;align-items:center;border-bottom:3px solid #e3ebe5;padding:12px 4px;color:var(--school-muted);font-size:14px}.school-step b{display:inline-flex;align-items:center;justify-content:center;background:#e7efe8;min-width:28px;height:28px;border-radius:50%}.school-step.current{border-color:var(--school-green);color:var(--school-green);font-weight:750}.school-step.current b,.school-step.done b{background:var(--school-green);color:#fff}
.school-drop{border:2px dashed #aac7b7;border-radius:22px;background:linear-gradient(140deg,#f5faf6,#edf5f1);padding:30px;text-align:center;margin:16px 0;transition:border-color .2s}.school-drop.over{border-color:#154b40;background:#e4f0e8}.school-drop h2{margin:8px 0;font-size:23px}.school-drop .school-drop-icon{font-size:38px;color:var(--school-green)}.school-drop p{line-height:1.8;color:var(--school-muted)}
.school-files{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.school-file{border:1px solid var(--school-line);border-radius:17px;overflow:hidden;background:#fff;position:relative}.school-file-preview{aspect-ratio:16/10;background:#eef2ef;display:flex;align-items:center;justify-content:center}.school-file-preview img,.school-file-preview video{width:100%;height:100%;object-fit:contain}.school-file-preview audio{width:95%;height:45px}.school-file-symbol{font-size:40px;color:#698b79}.school-file-body{padding:13px}.school-file-body h3{font-size:13px;overflow-wrap:anywhere;margin:5px 0}.school-file-body small{font-size:12px;color:var(--school-muted)}.school-file-number{position:absolute;top:9px;inset-inline-start:9px;z-index:2;border:1px solid #fff8;background:#154b40ed;color:#fff;padding:5px 10px;border-radius:10px;font-weight:800;font-size:13px}.school-file textarea{font:inherit;border:1px solid var(--school-line);border-radius:10px;width:100%;box-sizing:border-box;padding:8px;min-height:64px;margin-top:10px;resize:vertical;font-size:12px}.school-file progress{width:100%;height:7px;accent-color:var(--school-green)}.school-file-remove{font-size:12px;padding:5px 10px;min-height:30px;margin-top:8px}.school-progress{border:1px solid var(--school-line);border-radius:15px;padding:15px;background:#f7faf7}.school-progress progress{display:block;width:100%;accent-color:var(--school-green);margin:10px 0}.school-upload-state{font-size:12px;line-height:1.7;margin:8px 0;color:var(--school-muted)}
.school-tabs{border-bottom:1px solid var(--school-line);padding-bottom:10px;margin:0 0 22px}.school-tabs button{border:0;background:transparent;border-radius:12px;padding:11px 16px;font:inherit;cursor:pointer;color:var(--school-muted)}.school-tabs button.active{background:#e7f1eb;color:var(--school-green);font-weight:800}.school-filters{display:grid;grid-template-columns:2fr repeat(2,1fr);gap:12px;margin-bottom:20px}.school-filters select,.school-filters input{font:inherit;padding:11px;border:1px solid var(--school-line);border-radius:12px;background:#fff;min-width:0}
.school-project{cursor:pointer;transition:transform .15s}.school-project:hover{transform:translateY(-3px)}.school-project .school-inline{justify-content:space-between;margin-bottom:12px}.school-project h2{font-size:19px}.school-project .school-meta{font-size:13px;line-height:1.8;color:var(--school-muted);margin:10px 0}.school-project button{margin-top:10px}.school-detail-layout{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(280px,.8fr);gap:22px}.school-fact{display:grid;grid-template-columns:minmax(110px,.4fr) 1fr;gap:15px;padding:11px 0;border-bottom:1px solid #eaf0eb;font-size:14px}.school-fact b{font-size:13px;color:var(--school-muted)}.school-fact span{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8}.school-comment{background:#f2f6f2;padding:15px;border-radius:14px;margin-top:12px}.school-comment p{white-space:pre-wrap;margin:8px 0}.school-comment small{color:var(--school-muted)}.school-sequence{display:flex;gap:10px;flex-wrap:wrap;margin:14px 0}.school-sequence-item{display:flex;align-items:center;gap:9px;padding:10px;border:1px solid #d6e2d9;background:#f1f7f3;border-radius:12px;cursor:grab}.school-sequence-item button{border:0;background:#fff;border-radius:6px;padding:5px;cursor:pointer}.school-sequence-item.dragging{opacity:.5}
.school-review-list{padding:0;list-style:none;margin:12px 0}.school-review-list li{padding:11px 0;border-bottom:1px solid var(--school-line);line-height:1.8}.school-summary pre{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;line-height:1.9;margin:12px 0}.school-section-title{margin:26px 0 14px;font-size:20px}
.school-admin-table-wrap{overflow:auto}.school-admin-table{width:100%;border-collapse:collapse;font-size:13px}.school-admin-table th,.school-admin-table td{text-align:start;padding:14px 10px;border-bottom:1px solid var(--school-line);vertical-align:top;min-width:100px}.school-admin-table th{color:var(--school-muted);font-size:12px}.school-admin-table td small{display:block;margin-top:5px;color:var(--school-muted)}.school-admin-table .school-btn{font-size:12px;padding:6px 9px;min-height:34px}.school-nav-editor{display:grid;gap:8px;padding:0;list-style:none}.school-nav-editor li{display:flex;gap:12px;align-items:center;padding:13px 15px;background:#f2f6f3;border:1px solid var(--school-line);border-radius:12px;cursor:grab}.school-nav-editor b{flex:1}.school-nav-editor select{padding:6px;border:1px solid var(--school-line);background:#fff;border-radius:8px}.school-rights-warning{padding:12px;border-inline-start:3px solid #b89448;background:#fff9ee;font-size:13px;line-height:1.9}.school-personal-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}
.school-loading{padding:40px;text-align:center;color:var(--school-muted)}.school-spinner{width:26px;height:26px;border:3px solid #dfebe3;border-top-color:var(--school-green);border-radius:50%;animation:school-spin .8s linear infinite;margin:0 auto 14px}@keyframes school-spin{to{transform:rotate(360deg)}}
.school-inbox-item{width:100%;text-align:start;border:1px solid var(--school-line);background:#fff;padding:18px;border-radius:15px;cursor:pointer;color:inherit;font:inherit}.school-inbox-item.unread{border-inline-start:4px solid var(--school-green);background:#f3f8f4}.school-inbox-item small{display:block;color:var(--school-muted);margin:8px 0}.school-badge{font-size:11px;background:#b77c23;color:white;border-radius:10px;padding:2px 5px;margin-inline-start:5px}
.school-upload-tray{position:fixed;bottom:18px;inset-inline-end:18px;z-index:85;background:#fff;border:1px solid var(--school-line);box-shadow:0 10px 35px #183e3722;border-radius:16px;padding:15px;width:320px;max-width:calc(100vw - 68px);font-size:13px}.school-upload-tray progress{display:block;width:100%;margin:10px 0;accent-color:var(--school-green)}.school-upload-tray p{line-height:1.8;margin:7px 0}.school-upload-tray[hidden]{display:none}
body.school-reduced-motion .school-space *,body.school-reduced-motion .school-btn{animation:none!important;transition:none!important;scroll-behavior:auto!important}
@media(max-width:1050px){.school-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.school-files{grid-template-columns:repeat(2,minmax(0,1fr))}.school-detail-layout{grid-template-columns:1fr}.school-account-btn{max-width:100px}.primary-nav{flex-wrap:wrap}}
@media(max-width:680px){.school-space{padding:22px 14px 80px}.school-auth{grid-template-columns:1fr;margin:0;gap:10px}.school-auth-intro{padding:10px}.school-auth-intro h1{font-size:28px;margin:10px 0}.school-auth-intro img{width:54px;height:54px}.school-auth-form,.school-card{padding:18px}.school-grid,.school-grid.two,.school-form-grid,.school-personal-grid{grid-template-columns:1fr}.school-files{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.school-file-body{padding:9px}.school-stepbar{gap:5px}.school-step{flex-direction:column;align-items:center;text-align:center;font-size:11px;gap:6px}.school-filters{grid-template-columns:1fr}.school-fact{grid-template-columns:1fr;gap:5px}.school-tabs{flex-wrap:nowrap;overflow:auto}.school-tabs button{flex-shrink:0}.school-drop{padding:20px 12px}.school-account-dialog{padding:20px}.school-account-btn{font-size:11px}}
/* Private source information and durable queue state. */
.school-metadata{margin:12px 0;padding:10px;border:1px solid var(--line,#dce8e2);border-radius:12px;font-size:12px}.school-metadata summary,.school-queue-status summary{cursor:pointer;font-weight:700;min-height:32px;display:flex;align-items:center;gap:6px}.school-metadata dl{margin:12px 0}.school-metadata dl>div{display:grid;grid-template-columns:minmax(80px,1fr) 2fr;gap:10px;margin:8px 0}.school-metadata dt{color:var(--muted,#657a72)}.school-metadata dd{margin:0;overflow-wrap:anywhere;unicode-bidi:plaintext}.school-queue-status{border-inline-start:5px solid #b28b33}.school-queue-status li{margin:8px 0;overflow-wrap:anywhere}
.school-platform-group{margin:0;padding:0;border:0;min-width:0}.school-platform-group legend{font-weight:650;margin-bottom:8px;padding:0}
/* School destinations grow in a real header row instead of overflowing a fixed height. */
body[data-school-session="signed-in"]:not([data-dev-nav-position="bottom"]) .app-header{height:auto;min-height:148px;grid-template-columns:minmax(180px,1fr) auto;grid-template-rows:auto auto;gap:12px;padding:14px 24px;align-items:center}
body[data-school-session="signed-in"]:not([data-dev-nav-position="bottom"]) .app-header .brand{grid-column:1;grid-row:1;min-width:0}
body[data-school-session="signed-in"]:not([data-dev-nav-position="bottom"]) .header-tools{grid-column:2;grid-row:1;flex-wrap:wrap;max-width:100%;gap:8px}
body[data-school-session="signed-in"]:not([data-dev-nav-position="bottom"]) .primary-nav{position:static;transform:none;inset:auto;grid-column:1/-1;grid-row:2;justify-self:stretch;width:100%;max-width:none;margin:0;display:flex;flex-wrap:wrap;justify-content:center;overflow:visible;gap:6px}
body[data-school-session="signed-in"]:not([data-dev-nav-position="bottom"]) .primary-nav button{width:auto;min-width:86px;max-width:160px;min-height:66px;flex:1 0 86px;padding:8px 10px;line-height:1.45}
@media(max-width:760px){body[data-school-session="signed-in"]:not([data-dev-nav-position="bottom"]) .app-header{grid-template-columns:minmax(105px,1fr) minmax(0,2fr);padding:10px 12px;gap:10px;min-height:140px}body[data-school-session="signed-in"]:not([data-dev-nav-position="bottom"]) .header-tools{justify-content:flex-end}body[data-school-session="signed-in"]:not([data-dev-nav-position="bottom"]) .primary-nav{flex-wrap:nowrap;overflow-x:auto;justify-content:flex-start;scrollbar-width:thin}body[data-school-session="signed-in"]:not([data-dev-nav-position="bottom"]) .primary-nav button{flex:0 0 86px;min-height:64px}}

/* Keep one home symbol when the existing vector icon is available. */
#navHome:has(svg.icon) .cr-primary-nav-icon { display: none !important; }
/* Shared intake and account security use the same bilingual school components. */
.school-auth-extra summary,.school-incoming-more summary{cursor:pointer;min-height:42px;display:flex;align-items:center;font-weight:650;color:var(--school-green)}
.school-auth-extra .school-field{margin-top:12px}.school-security-devices{margin-top:28px;padding-top:18px;border-top:1px solid var(--school-line)}
.school-device-signin{padding:20px;border:1px solid var(--school-line);border-radius:18px;background:var(--school-paper,#f5f8f5)}.school-device-signin h3{font-size:19px;margin:10px 0}.school-device-signin .school-btn{width:100%;box-sizing:border-box}.school-device-signin .school-help{margin:10px 0;line-height:1.8}.school-device-symbol{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:14px;background:#e4f0e8;color:var(--school-green);font-size:26px}.school-auth-password{margin:18px 0;border-top:1px solid var(--school-line);padding-top:8px}.school-auth-password>summary{cursor:pointer;font-weight:700;color:var(--school-green);padding:12px 0;min-height:44px;line-height:1.7}.school-auth-password[open]>summary{margin-bottom:8px}.school-auth-password>summary:focus-visible{outline:3px solid #b2cdb6;outline-offset:3px;border-radius:6px}.school-auth-form>.school-help{display:block;margin-top:14px}.school-auth-form>.school-error:empty{display:none}.school-account-device{border-top:1px solid var(--school-line);margin-top:24px;padding-top:18px}.school-account-device h3{margin:0 0 12px}
.school-device-signin .school-device-setup-btn{margin-top:10px;background:#fff}
.school-device-first{margin-bottom:18px;border-color:#94baa4}.school-device-first-copy{font-weight:700;line-height:1.8;color:var(--school-green)}.school-device-helper-link{display:inline-flex;align-items:center;justify-content:center;text-align:center;text-decoration:none;line-height:1.6;min-height:44px;padding:10px 16px;box-sizing:border-box}.school-device-signin .school-device-helper-link{margin-top:4px;width:100%}
.school-device-signin .school-device-existing-btn{margin-top:10px;background:#fff;color:var(--school-green);font-weight:600}
.school-install-btn{border-color:var(--school-green);font-weight:700}.school-install-btn:disabled{opacity:.7;cursor:default}.school-install-guidance{display:grid;gap:12px;margin:18px 0}.school-install-guidance article{border:1px solid var(--school-line);border-radius:14px;padding:14px;background:var(--school-paper)}.school-install-guidance p{line-height:1.8;margin:8px 0 0}
.school-passkeys{list-style:none;padding:0;margin:10px 0}.school-passkeys li{padding:12px 14px;background:var(--school-paper);border:1px solid var(--school-line);border-radius:12px;margin:8px 0}.school-passkeys small{display:block;color:var(--school-muted);margin-top:4px}
.school-incoming .school-inline{justify-content:space-between;gap:12px;margin-bottom:18px}.school-incoming .school-files{margin:20px 0}.school-incoming-more{border-top:1px solid var(--school-line);margin-top:12px;padding-top:6px}
.school-incoming>.school-actions{position:sticky;bottom:12px;z-index:3;padding:12px;background:#fffffff5;border:1px solid var(--school-line);border-radius:16px;box-shadow:0 8px 28px #173e3714}
body[data-system-app="teacher"] .school-auth-intro img,body[data-system-app="employee"] .school-auth-intro img,body[data-system-app="developer"] .school-auth-intro img{object-fit:contain;background:transparent}
@media(max-width:680px){.school-incoming>.school-actions{bottom:6px;padding:8px;gap:8px}.school-incoming>.school-actions .school-btn{flex:1 1 auto;font-size:12px}.school-security-devices{margin-top:22px}}

/* Dock dimensions must outrank the legacy centred account dialog rules. */
#schoolDialog.school-display-panel{position:fixed;inset:12px;inset-inline-start:auto;width:var(--school-panel-width);max-width:calc(100vw - 24px);height:calc(100dvh - 24px);max-height:calc(100dvh - 24px);margin:0;padding:0;border-radius:20px;box-sizing:border-box;overflow:hidden}
#schoolDialog.school-display-panel::backdrop{background:transparent;backdrop-filter:none}
#schoolDialog.school-display-panel>header{margin:0;padding:18px;flex:none;align-items:flex-start;border-bottom:1px solid var(--school-line)}
#schoolDialog.school-display-panel .school-personal-grid{grid-template-columns:1fr}
/* Keep all sign-in controls reachable on narrow role-app screens. */
@media(max-width:680px){
 body[data-system-app][data-school-session="guest"] .app-header{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;padding:12px;min-width:0}
 body[data-system-app][data-school-session="guest"] .app-header .brand{min-width:0;max-width:100%}
 body[data-system-app][data-school-session="guest"] .header-tools{flex:1 1 220px;min-width:0;max-width:100%;flex-wrap:wrap;justify-content:flex-end;gap:8px}
}
@media(max-width:760px){
 #schoolDialog.school-display-panel{inset:auto 8px 8px;inset-inline-start:8px;inset-inline-end:8px;width:calc(100% - 16px);max-width:calc(100% - 16px);height:52dvh;max-height:52dvh;padding:0;margin:0;border-radius:18px}
 #schoolDialog.school-display-panel>header{padding:12px 16px;margin:0}
 #schoolDialog.school-display-panel .school-personal-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
