/* Approved navigation layout; existing resource cards and covers are retained. */
#mainNav .student-tools-button{border:0;background:transparent;font-weight:650;cursor:pointer;color:#687996;padding:12px 16px;border-radius:12px}
#mainNav [data-view=teacher]{border:1px solid #dce5f5;margin-left:12px;background:#fff;color:#526eaa}
#teacherWorkspaceNav[hidden],#studentQuickTools[hidden]{display:none!important}
#teacherWorkspaceNav{width:min(1180px,calc(100% - 48px));margin:32px auto 18px;scroll-margin-top:95px}
.workspace-intro{display:flex;align-items:center;justify-content:space-between;gap:20px}.workspace-intro h1{font-size:28px;margin:0;color:#263752}.workspace-intro p{margin:5px 0 0;color:#8492a8;font-size:13px}.workspace-intro .eyebrow{font-size:10px;letter-spacing:1.5px;color:#7890b4;margin-bottom:5px}
.workspace-tabs{display:flex;gap:8px;border-bottom:1px solid #dfe7f4;margin-top:20px;padding-bottom:10px;flex-wrap:wrap}.workspace-tabs .nav-btn{border:0;padding:11px 19px;border-radius:10px;color:#7485a0;background:transparent;cursor:pointer;font-weight:650;font-size:14px}.workspace-tabs .nav-btn.active{background:#eaf0ff;color:#3b62d8}
.workspace-shortcuts{width:min(1180px,calc(100% - 48px));margin:22px auto;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.workspace-shortcuts button{border:1px solid #dce5f2;background:#fff;border-radius:13px;padding:18px 16px;text-align:left;cursor:pointer;min-width:0;color:#405776;box-shadow:0 5px 18px #29497605}.workspace-shortcuts strong{display:block;font-size:14px;margin-bottom:5px}.workspace-shortcuts small{display:block;font-size:11px;color:#8b99af;line-height:1.6}
#teacherView .teacher-tools-panel{margin-top:26px}#teacherView #teacherToolsTitle{font-size:23px}#uploadForm{scroll-margin-top:100px}#teacherWorkspaceNav .auth-btn{white-space:nowrap;font-size:12px;min-height:42px}
.student-tools-open{overflow:hidden}#studentToolsDialog{box-sizing:border-box;width:min(520px,calc(100vw - 32px));max-height:calc(100dvh - 40px);margin:auto;padding:26px;border:1px solid #e0e8f4;border-radius:24px;background:#fff;color:#2d405e;box-shadow:0 24px 70px #24385830;overflow:auto;overscroll-behavior:contain}#studentToolsDialog::backdrop{background:#23344d55;backdrop-filter:blur(2px)}.student-tools-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}.student-tools-head h2{font-size:23px;margin:0}.student-tools-head p{font-size:12px;color:#899bb3;margin:4px 0 0}#studentToolsClose{width:44px;height:44px;border:0;border-radius:50%;background:#f3f6fb;color:#7185a4;font-size:25px;cursor:pointer;flex:none}
#studentToolsGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}#studentToolsGrid .tool-rail-item{display:flex;min-width:0;gap:10px;align-items:center;padding:13px 11px;border:1px solid #e2e9f4;border-radius:13px;background:#fff;text-decoration:none;color:#465c80;transform:none;opacity:1;animation:none;min-height:76px}#studentToolsGrid .tool-rail-icon{flex:none;width:36px;height:36px;font-size:20px}#studentToolsGrid .tool-rail-copy{display:block;opacity:1;width:auto;min-width:0}#studentToolsGrid strong{display:block;font-size:13px;line-height:1.5;white-space:normal}#studentToolsGrid small{display:block;font-size:10px;line-height:1.5;color:#98a5b9;white-space:normal}.student-tools-note{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:11px;color:#899bb3;margin:20px 0 0}.student-tools-note button{background:transparent;border:0;color:#5478cc;font-size:12px;padding:10px 0;cursor:pointer}
#studentQuickTools{display:none}.workspace-shortcuts button:hover,#studentToolsGrid a:hover{border-color:#b8ccef;background:#f8faff}
@media(max-width:900px){.workspace-shortcuts{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){
  body:not(.player-is-open) .topbar{display:flex;flex-wrap:wrap;gap:0;height:auto;min-height:0;padding:13px 16px 0}
  .topbar .brand{margin-bottom:9px}.topbar .brand small{display:none}.topbar .brand strong{font-size:17px}.topbar .brand-mark{width:35px;height:35px;border-radius:10px;font-size:22px}
  #menuToggle{display:none!important}.topbar #mainNav{position:static;display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));width:100%;margin:0;padding:0;gap:0;background:transparent;border:0;box-shadow:none;transform:none;opacity:1;visibility:visible;max-height:none;overflow:visible}
  #mainNav :is(.nav-btn,.nav-link,.student-tools-button){font-size:12px;white-space:nowrap;padding:12px 3px;min-height:44px;margin:0;border:0!important;border-radius:0;text-align:center;background:transparent!important;position:relative;line-height:20px}
  #mainNav .active:after{content:'';position:absolute;bottom:0;left:28%;right:28%;height:3px;background:#4c70e5;border-radius:3px}
  body.home-layout-active:not(.player-is-open){padding-bottom:82px}#studentQuickTools{position:fixed;bottom:0;left:0;right:0;z-index:35;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;padding:8px 10px calc(8px + env(safe-area-inset-bottom));background:#ffffffed;border-top:1px solid #e1e8f4;backdrop-filter:blur(12px)}
  #studentQuickTools :is(a,button){display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:47px;text-decoration:none;border:0;background:transparent;color:#6c7f9f;font-size:11px;cursor:pointer;padding:0;line-height:1.4}
  #studentQuickTools .tool-rail-icon{width:24px;height:24px;font-size:18px;border-radius:7px;box-shadow:none}#studentQuickTools .tool-rail-copy{display:block;width:auto;opacity:1}#studentQuickTools strong{font-size:11px;font-weight:500;white-space:nowrap}#studentQuickTools .quick-more{font-size:21px;height:24px;line-height:19px;color:#5478d5}body.player-is-open #studentQuickTools{display:none}
  #teacherWorkspaceNav,.workspace-shortcuts{width:calc(100% - 28px)}#teacherWorkspaceNav{margin-top:24px;scroll-margin-top:120px}.workspace-intro{align-items:flex-start;gap:10px}.workspace-intro h1{font-size:24px}.workspace-intro p{font-size:11px}.workspace-intro .eyebrow{font-size:9px}#teacherWorkspaceNav .auth-btn{font-size:11px;padding:8px;min-height:40px}.workspace-tabs{gap:3px;margin-top:14px}.workspace-tabs .nav-btn{flex:1;padding:10px 5px;font-size:13px;min-height:44px}.workspace-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.workspace-shortcuts button{padding:14px 12px}.workspace-shortcuts small{font-size:10px}#teacherView .teacher-tools-panel{padding-top:10px}
  #studentToolsDialog{width:100%;max-width:100%;max-height:88dvh;margin:auto 0 0;padding:20px 16px calc(20px + env(safe-area-inset-bottom));border-radius:23px 23px 0 0;border:0}.student-tools-head h2{font-size:21px}.student-tools-head{margin-bottom:16px}#studentToolsGrid{gap:9px}#studentToolsGrid .tool-rail-item{padding:12px 9px;gap:8px}#studentToolsGrid .tool-rail-icon{width:30px;height:30px;font-size:17px}#studentToolsGrid strong{font-size:12px}#studentToolsGrid small{font-size:9px}.student-tools-note{font-size:10px}
  #resourceManagement,#curriculumManagement,#managementResults,#uploadForm{scroll-margin-top:130px}#resourceManagerMessage{top:116px}
}
