:root{font-family:var(--font-family-sans, "Plus Jakarta Sans", "Noto Sans TC", "Noto Sans SC", "Microsoft JhengHei", "PingFang TC", "PingFang SC", "Segoe UI", sans-serif);color:var(--text-primary, #0f172a);background:var(--bg-app, #f8fafc);font-size:15px;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}*{box-sizing:border-box}html,body,#root{min-height:100%}body{margin:0;background:linear-gradient(180deg,#fcfdff,#f7f9fc);color:var(--text-primary, #0f172a);line-height:1.5;overflow-wrap:anywhere}button,input,select,textarea,a{font:inherit}button{cursor:pointer}.ui-button{display:inline-flex;align-items:center;justify-content:center;min-height:2.75rem;border:1px solid transparent;border-radius:var(--radius-lg, 16px);padding:.7rem 1rem;font-weight:800;transition:background .14s ease,border-color .14s ease,transform .14s ease}.ui-button-primary{background:var(--action-primary-bg, #2563eb);color:var(--action-primary-text, #fff)}.ui-button-primary:hover{background:var(--action-primary-bg-hover, #1d4ed8)}.ui-button-secondary,.ui-button-ghost{background:var(--action-secondary-bg, #fff);border-color:var(--action-secondary-border, #cbd5e1);color:var(--action-secondary-text, #1e293b)}.ui-button-danger{background:var(--danger-600, #dc2626);color:#fff}.ui-input{border:1px solid var(--border-default, #e2e8f0);border-radius:var(--radius-md, 12px);background:#fff}.ui-label,.ui-form-field{display:grid;gap:.45rem}.ui-card{background:var(--bg-canvas, #fff);border:1px solid var(--border-default, #e2e8f0);border-radius:24px;box-shadow:var(--shadow-md, 0 12px 30px rgba(15, 23, 42, .08))}.ui-badge{display:inline-flex;width:fit-content;align-items:center;border-radius:999px;padding:.3rem .65rem;font-size:.78rem;font-weight:800}.ui-badge-neutral{background:var(--bg-subtle, #f1f5f9);color:var(--text-secondary, #334155)}.ui-table{width:100%;border-collapse:collapse}.ui-tabs{display:flex;flex-wrap:wrap;gap:.5rem}.ui-form-error,.ui-permission-state{color:var(--text-danger, #b91c1c)}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--focus-ring, #93c5fd);outline-offset:2px}.auth-layout{min-height:100vh;display:grid;place-items:center;padding:32px 16px}.language-selector{display:inline-grid;gap:6px;margin-bottom:16px;color:var(--text-secondary, #334155);font-size:.9rem;font-weight:700}.language-selector select{min-width:180px}.auth-card,.page-panel,.nav-panel,.dashboard-section,.dashboard-stat-card,.dashboard-class-card,.dashboard-announcement-card,.dashboard-alert,.dashboard-reminder{border:1px solid var(--border-default, #e2e8f0);background:#fffffff5;box-shadow:0 1px 2px #0f172a0d}.auth-card{width:min(100%,420px);border-radius:16px;padding:32px}.auth-card h1,.page-copy h1,.dashboard-hero-copy h1,.dashboard-empty-state h1{margin:0;font-size:clamp(1.65rem,1.2vw + 1.1rem,2rem);line-height:1.2;font-weight:600}.eyebrow{margin:0 0 8px;color:var(--action-primary-bg, #2563eb);font-size:.8rem;font-weight:600;letter-spacing:.05em;text-transform:uppercase}.support-copy,.page-copy p,.info-card p,.auth-form label span,.dashboard-support-copy,.dashboard-list-card p,.dashboard-class-card p,.dashboard-reminder p,.dashboard-announcement-card p,.dashboard-stat-card p{color:var(--text-secondary, #334155);font-size:.92rem}.support-copy{margin:12px 0 24px;line-height:1.55}.demo-auth-note{margin:12px 0 18px;border:1px dashed var(--border-strong, #cbd5e1);border-radius:12px;background:#f8fafc;color:var(--text-secondary, #334155);padding:12px 14px;font-size:.9rem}.auth-form{display:grid;gap:16px}.auth-form label{display:grid;gap:8px}.auth-form input,.lesson-editor-field input,.lesson-editor-field select,.lesson-editor-field textarea{width:100%;padding:12px 14px;border:1px solid var(--border-default, #e2e8f0);border-radius:10px;background:#fff}.auth-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:8px}.auth-actions button,.ghost-button,.profile-button,.dashboard-primary-button,.dashboard-secondary-button,.dashboard-card-actions button,.dashboard-primary-link,.dashboard-secondary-link{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;min-height:2.25rem;border-radius:.5rem;border:1px solid transparent;padding:.5rem .875rem;font-size:.875rem;font-weight:500;line-height:1;transition:background-color .12s ease,border-color .12s ease,color .12s ease,box-shadow .12s ease}.auth-actions button,.dashboard-primary-button,.dashboard-card-actions button:first-child,.dashboard-primary-link{background:var(--action-primary-bg, #2563eb);color:var(--action-primary-text, #fff);box-shadow:0 1px 2px #2563eb2e}.auth-actions button:hover,.dashboard-primary-button:hover,.dashboard-card-actions button:first-child:hover,.dashboard-primary-link:hover{background:var(--action-primary-bg-hover, #1d4ed8)}.auth-actions button:disabled{cursor:wait;opacity:.7}.auth-actions a{color:var(--action-primary-bg, #2563eb);text-decoration:none}.form-error{margin:0;color:var(--danger-text, #b91c1c);font-size:.9rem;font-weight:600}.app-shell{--shell-sidebar-width: 232px;--shell-sidebar-collapsed-width: 84px;min-height:100vh;display:grid;grid-template-columns:minmax(var(--shell-sidebar-width),var(--shell-sidebar-width)) minmax(0,1fr);gap:18px;padding:18px;background:radial-gradient(circle at top left,rgba(245,158,11,.08),transparent 26%),radial-gradient(circle at bottom right,rgba(37,99,235,.08),transparent 22%),linear-gradient(180deg,#fcfdff,#f5f7fb)}.app-shell-sidebar-collapsed{grid-template-columns:minmax(var(--shell-sidebar-collapsed-width),var(--shell-sidebar-collapsed-width)) minmax(0,1fr)}.brand-title{display:block;font-size:.95rem;font-weight:600}.topbar-icon{width:1rem;height:1rem;flex:0 0 auto}.shell-sidebar-scrim{display:none}.shell-sidebar{position:sticky;top:18px;align-self:start;z-index:30}.shell-sidebar-surface{display:grid;gap:18px;align-content:start;min-height:calc(100vh - 36px);padding:18px 14px;border:1px solid rgba(15,23,42,.08);border-radius:28px;background:linear-gradient(180deg,#fffffffa,#f8fafcf2),#fffffff0;box-shadow:0 18px 40px #0f172a12,inset 0 1px #ffffffb8}.shell-sidebar-top{display:flex;align-items:center;justify-content:flex-start;gap:10px}.shell-brand-button{display:flex;align-items:center;gap:12px;min-width:0;width:100%;padding:4px;border:0;background:transparent;color:inherit;text-align:left}.shell-brand-mark{display:inline-flex;align-items:center;justify-content:center;width:2.8rem;height:2.8rem;border-radius:1rem;background:linear-gradient(135deg,#f59e0b,#f97316);color:#fffdf7;box-shadow:0 10px 24px #f9731638;flex:0 0 auto}.shell-brand-mark-icon{width:1.25rem;height:1.25rem}.shell-brand-copy{display:grid;gap:.15rem;min-width:0}.shell-brand-title{font-size:1rem;font-weight:700;letter-spacing:-.01em}.shell-brand-subtitle{color:var(--text-secondary, #475569);font-size:.8rem}.shell-sidebar-toggle{display:inline-flex;align-items:center;justify-content:center;width:2.25rem;height:2.25rem;border:1px solid rgba(203,213,225,.92);border-radius:.9rem;background:#f8fafceb;color:#0f172a;flex:0 0 auto}.shell-header-toggle{width:2rem;height:2rem;border-radius:999px;background:#fffffff5;box-shadow:0 10px 24px #0f172a14}.shell-nav{display:grid;gap:8px;align-content:start;width:100%}.shell-nav-context{padding-top:6px;border-top:1px solid rgba(148,163,184,.18)}.shell-nav-link{position:relative;display:flex;align-items:center;gap:12px;min-height:3rem;width:100%;padding:10px 12px;border-radius:16px;color:var(--text-secondary, #334155);text-decoration:none;transition:transform .14s ease,background-color .14s ease,color .14s ease,box-shadow .14s ease}.shell-nav-link-context-root{margin-top:2px}.shell-nav-link-subnav{min-height:2.75rem;padding-block:8px;padding-left:22px}.shell-nav-link:hover{background:#ffffffeb;color:var(--text-primary, #0f172a);transform:translate(2px)}.shell-nav-link:after{content:attr(data-tooltip);position:absolute;top:50%;left:calc(100% + 12px);transform:translateY(-50%) translate(-4px);min-width:max-content;padding:.45rem .7rem;border:1px solid rgba(203,213,225,.96);border-radius:.7rem;background:#0f172af5;color:#f8fafc;font-size:.8rem;font-weight:600;line-height:1;box-shadow:0 12px 28px #0f172a29;opacity:0;pointer-events:none;transition:opacity .12s ease,transform .12s ease;z-index:50}.shell-nav-link:hover:after,.shell-nav-link:focus-visible:after{opacity:1;transform:translateY(-50%) translate(0)}.shell-nav-link-active{background:linear-gradient(135deg,#2563eb1f,#f59e0b1c);color:#0f172a;box-shadow:inset 0 0 0 1px #2563eb1a}.shell-nav-link-icon{display:inline-flex;align-items:center;justify-content:center;width:2rem;height:2rem;border-radius:.9rem;background:#e2e8f0bd;color:#1e3a8a;line-height:0;font-size:.84rem;font-weight:700;letter-spacing:.02em}.shell-nav-link-icon .topbar-icon{width:1rem;height:1rem}.shell-nav-link-label{font-size:.92rem;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.shell-nav-link-badge{margin-left:auto;display:inline-flex;min-width:1.45rem;height:1.45rem;align-items:center;justify-content:center;padding:0 .38rem;border-radius:999px;background:#dbeafe;color:#1d4ed8;font-size:.72rem;font-weight:700;line-height:1}.topbar-avatar{display:inline-flex;align-items:center;justify-content:center;width:1.75rem;height:1.75rem;border-radius:999px;background:linear-gradient(135deg,#dbeafe,#fef3c7);color:#1d4ed8;font-size:.8rem;font-weight:700;letter-spacing:.04em}.ghost-button,.profile-button,.dashboard-secondary-button,.dashboard-secondary-link{background:var(--action-secondary-bg, #fff);border-color:transparent;color:var(--action-secondary-text, #1e293b);box-shadow:none}.ghost-button:hover,.profile-button:hover,.dashboard-secondary-button:hover,.dashboard-secondary-link:hover{background:var(--action-secondary-bg-hover, #f8fafc)}.shell-header-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px}.shell-header-actions .ghost-button,.shell-header-actions .profile-button{min-height:2.5rem;padding:.375rem .75rem;border:0;border-radius:.875rem;background:#ffffffe6}.shell-header-actions .ghost-button:hover,.shell-header-actions .profile-button:hover{background:#f8fafcfa}.role-switcher{display:grid;gap:3px;min-width:140px}.role-switcher label{color:var(--text-tertiary, #64748b);font-size:.72rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase}.role-switcher select{min-height:2.5rem;border:0;border-radius:.875rem;background:#ffffffeb;color:var(--text-primary, #0f172a);box-shadow:0 1px #94a3b82e}.shell-language-selector{display:grid;gap:3px;min-width:130px;color:var(--text-tertiary, #64748b);font-size:.72rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase}.shell-language-selector select{min-height:2.5rem;border:0;border-radius:.875rem;background:#ffffffeb;color:var(--text-primary, #0f172a);box-shadow:0 1px #94a3b82e;letter-spacing:normal;text-transform:none}.role-switch-error{color:var(--text-danger, #b91c1c);font-size:.78rem}.shell-header-icon-button{width:2.5rem;min-width:2.5rem;padding-inline:0}.shell-main{display:grid;align-content:start;gap:16px;min-width:0}.shell-header{position:sticky;top:18px;z-index:20;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;height:4rem;padding:0 16px;border:1px solid rgba(255,255,255,.72);border-radius:22px;background:#fffc;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);box-shadow:0 12px 30px #0f172a0f,inset 0 1px #ffffffb8}.shell-header-leading{display:grid;grid-template-columns:2rem minmax(0,1fr);align-items:center;gap:10px;min-width:0;height:100%}.shell-header-copy{display:flex;align-items:center;height:100%;min-width:0}.shell-header-breadcrumb{margin:0;display:flex;align-items:center;height:100%}.shell-header-breadcrumb .breadcrumb-list{gap:6px;align-items:center;height:100%}.shell-header-breadcrumb .breadcrumb-link,.shell-header-breadcrumb .breadcrumb-page,.shell-header-breadcrumb .breadcrumb-separator{display:inline-flex;align-items:center;line-height:1;white-space:nowrap;letter-spacing:normal;text-transform:none}.shell-header-breadcrumb .breadcrumb-link,.shell-header-breadcrumb .breadcrumb-separator{color:var(--text-secondary, #475569);font-size:.9rem;font-weight:600}.shell-header-breadcrumb .breadcrumb-link:hover{color:var(--text-primary, #0f172a)}.shell-header-breadcrumb .breadcrumb-page{color:var(--action-primary-bg, #2563eb);font-size:.95rem;font-weight:700}.shell-content{min-width:0}.shell-mobile-tabs{display:none}.shell-content .breadcrumb{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.app-shell-sidebar-collapsed .shell-sidebar-surface{padding-inline:10px;align-content:start;justify-items:center}.app-shell-sidebar-collapsed .shell-nav{justify-items:center}.app-shell-sidebar-collapsed .shell-sidebar-top{width:100%;justify-content:center}.app-shell-sidebar-collapsed .shell-brand-button{width:auto;justify-content:center}.app-shell-sidebar-collapsed .shell-brand-copy,.app-shell-sidebar-collapsed .shell-nav-link-label{display:none}.app-shell-sidebar-collapsed .shell-nav-link{justify-content:center;width:3rem;min-height:3rem;padding:0}.app-shell-sidebar-collapsed .shell-nav-link-badge{position:absolute;top:.2rem;right:.1rem;margin-left:0;min-width:1rem;height:1rem;padding:0 .2rem;font-size:.62rem}.page-panel{border-radius:16px;padding:28px}.page-copy{display:grid;gap:12px;margin-bottom:24px}.page-copy p{margin:0;max-width:70ch;line-height:1.7}.status-pill,.dashboard-badge{display:inline-flex;align-items:center;width:fit-content;min-height:1.35rem;padding:.125rem .5rem;border:1px solid #dbe4f0;border-radius:.5rem;background:#f8fafc;color:#526277;font-size:.8rem;font-weight:600;letter-spacing:.01em}.badge-outline{display:inline-flex;align-items:center;justify-content:center;width:fit-content;min-height:1.3rem;padding:.1rem .5rem;border:1px solid var(--border-default, #e2e8f0);border-radius:.5rem;background:transparent;color:var(--text-secondary, #334155);font-size:.8rem;font-weight:500;line-height:1;white-space:nowrap}.badge-default,.badge-secondary,.badge-destructive{display:inline-flex;align-items:center;justify-content:center;width:fit-content;min-height:1.3rem;padding:.1rem .5rem;border-radius:.5rem;font-size:.8rem;font-weight:500;line-height:1;white-space:nowrap}.badge-default{border:1px solid transparent;background:var(--action-primary-bg, #2563eb);color:#fff}.badge-secondary{border:1px solid transparent;background:#f1f5f9;color:var(--text-secondary, #334155)}.badge-destructive{border:1px solid transparent;background:#fef2f2;color:#b91c1c}.page-card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.info-card{padding:18px;border:1px solid var(--border-default, #e2e8f0);border-radius:12px;background:var(--bg-canvas, #fff)}.info-card h2{margin:0 0 8px;font-size:1rem}.info-card p{margin:0;line-height:1.6}.dashboard-page{display:grid;gap:20px}.dashboard-hero{display:grid;grid-template-columns:minmax(0,1fr);gap:20px}.dashboard-hero-copy,.dashboard-empty-state{padding:28px;border-radius:16px;border:1px solid var(--border-default, #e2e8f0);background:#fff;box-shadow:0 1px 2px #0f172a0d}.dashboard-headline{margin:14px 0 0;font-size:1rem;font-weight:500}.dashboard-hero-heading-row{display:flex;align-items:start;justify-content:space-between;gap:12px}.dashboard-summary-links{display:flex;flex-wrap:wrap;gap:6px;margin-top:18px;padding-bottom:4px;border-bottom:1px solid rgba(226,232,240,.95)}.dashboard-summary-link{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:8px 10px 10px;border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent;color:var(--text-tertiary, #64748b);text-decoration:none;transition:border-color .12s ease,color .12s ease}.dashboard-summary-link[type=button]{cursor:pointer;font:inherit}.dashboard-summary-link:hover{color:#1e40af}.dashboard-summary-link[aria-pressed=true]{border-color:#2563eb;color:#1e40af}.dashboard-summary-link-copy{display:grid;gap:2px}.dashboard-summary-link-label{font-size:.85rem;font-weight:700}.dashboard-support-copy,.dashboard-meta{margin:8px 0 0;line-height:1.55}.dashboard-meta{color:var(--text-tertiary, #64748b);font-size:.86rem}.dashboard-count-badge,.dashboard-section-count{font-size:.8rem;font-weight:600}.dashboard-stat-grid,.dashboard-class-grid,.dashboard-layout{display:grid;gap:16px}.dashboard-stat-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.dashboard-stat-card,.dashboard-section,.dashboard-class-card,.dashboard-announcement-card,.dashboard-alert,.dashboard-reminder{border-radius:16px;padding:20px}.dashboard-stat-label,.dashboard-card-kicker{display:block;color:var(--text-tertiary, #64748b);font-size:.8rem;font-weight:500}.dashboard-stat-value{display:block;margin-top:8px;font-size:1.55rem;line-height:1;font-weight:600}.dashboard-layout{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-section-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.dashboard-section-title{display:inline-flex;align-items:center;gap:10px;flex-wrap:wrap}.dashboard-section-actions{display:inline-flex;align-items:center;gap:12px;flex-wrap:wrap}.dashboard-section-header h2,.dashboard-list-card h3,.dashboard-class-card h3,.dashboard-announcement-card h3,.dashboard-reminder h3{margin:0;font-size:1rem;line-height:1.35;font-weight:600}.dashboard-section-note{color:var(--text-tertiary, #64748b);font-size:.8rem}.dashboard-list,.dashboard-reminder-list{display:grid;gap:12px}.dashboard-list-card{display:flex;align-items:start;justify-content:space-between;gap:16px;padding:16px;border-radius:12px;background:#fff;border:1px solid var(--border-default, #e2e8f0)}.dashboard-list-card p,.dashboard-class-card p,.dashboard-stat-card p,.dashboard-announcement-card p,.dashboard-reminder p{margin:6px 0 0;font-size:.9rem}.dashboard-list-meta,.dashboard-class-metrics,.dashboard-stream-meta{display:grid;gap:8px;justify-items:end;text-align:right;color:var(--text-tertiary, #64748b);font-size:.82rem}.dashboard-inline-link{color:var(--action-primary-bg, #2563eb);text-decoration:none;font-weight:500}.dashboard-reminder{border-width:1px}.dashboard-reminder-urgent{border-color:#fecaca;background:#fff5f5}.dashboard-reminder-warning{border-color:#fde68a;background:#fffdf3}.dashboard-reminder-info{border-color:#bfdbfe;background:#f8fbff}.dashboard-section-wide{grid-column:1 / -1}.dashboard-class-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-card-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}.dashboard-primary-link,.dashboard-secondary-link{display:inline-flex;align-items:center;justify-content:center;text-decoration:none}.dashboard-announcement-card{background:#fff}.dashboard-empty-panel,.dashboard-stream-card{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:18px;border:1px solid var(--border-default, #e2e8f0);border-radius:12px;background:var(--bg-canvas, #fff)}.dashboard-empty-panel{flex-direction:column}.dashboard-empty-panel h3,.dashboard-stream-card h3{margin:0}.dashboard-empty-panel p,.dashboard-stream-card p{margin:8px 0 0;color:var(--text-secondary, #334155);line-height:1.6;font-size:.92rem}.dashboard-stream-list{display:grid;gap:12px}.dashboard-stream-copy,.dashboard-stream-meta{display:grid;gap:8px}.dashboard-inline-actions{display:inline-flex;flex-wrap:wrap;gap:12px;margin-top:10px}.dashboard-stream-meta{justify-items:end;text-align:right;color:var(--text-tertiary, #64748b);font-size:.9rem}.dashboard-alert{color:#b91c1c;background:#fff5f5;border-color:#fecaca}.lesson-editor-page{gap:24px}.lesson-editor-layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:24px;align-items:start}.lesson-editor-main-column,.lesson-editor-rail,.lesson-editor-preview-stack,.lesson-editor-status-stack,.lesson-editor-block-list{display:grid;gap:16px}.lesson-editor-panel,.lesson-editor-block-card,.lesson-editor-preview-card,.lesson-editor-confirm-card{border:1px solid var(--border-default, #e2e8f0);border-radius:16px;background:#fffffff0;box-shadow:0 1px 2px #0f172a0d}.lesson-editor-panel{padding:20px}.lesson-editor-header-panel{background:#fff}.lesson-editor-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.grading-queue-filter-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.lesson-editor-field{display:grid;gap:8px}.lesson-editor-field span{color:var(--text-secondary, #334155);font-size:.82rem;font-weight:500}.lesson-editor-context-row{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:8px}.lesson-editor-context-meta{color:var(--text-secondary, #334155);font-size:.88rem;font-weight:500}.lesson-editor-field-wide{grid-column:1 / -1}.lesson-editor-chip-list{display:flex;flex-wrap:wrap;gap:8px}.lesson-editor-chip{color:var(--text-tertiary, #64748b)}.editor-choice-grid{display:grid;gap:12px;margin-bottom:16px}.editor-choice-card{display:grid;grid-template-columns:auto minmax(0,1fr);gap:12px;align-items:start;padding:14px;border:1px solid var(--border-default, #e2e8f0);border-radius:12px;background:#fff}.editor-choice-card input{margin-top:2px}.editor-choice-card p{margin:8px 0 0;color:var(--text-secondary, #334155);font-size:.88rem;line-height:1.5}.grading-queue-card{align-items:center}.grading-queue-workspace{display:grid;gap:18px}.grading-queue-filters{display:grid;gap:14px}.grading-queue-helper-row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.grading-queue-helper-copy{color:var(--text-tertiary, #64748b);font-size:.84rem;line-height:1.5}.grading-queue-primary,.grading-queue-cell-stack{display:grid;gap:4px}.grading-queue-meta-row{display:flex;flex-wrap:wrap;gap:8px}.grading-queue-meta{min-width:220px}.grading-queue-table-wrap{overflow-x:auto;border:1px solid var(--border-default, #e2e8f0);border-radius:12px;background:#fff}.grading-queue-table{width:100%;min-width:880px;border-collapse:collapse}.grading-queue-table th,.grading-queue-table td{padding:12px 14px;border-bottom:1px solid var(--border-default, #e2e8f0);text-align:left;vertical-align:top}.grading-queue-table thead th{background:#f8fafc;color:var(--text-tertiary, #64748b);font-size:.8rem;font-weight:600;letter-spacing:.02em}.grading-queue-sort-button{display:inline-flex;align-items:center;gap:6px;padding:0;border:0;background:transparent;color:inherit;font:inherit;cursor:pointer}.grading-queue-sort-indicator{color:var(--text-tertiary, #64748b);font-size:.8rem}.grading-queue-table tbody tr:hover{background:#94a3b814}.grading-queue-table tbody th{font-weight:500}.grading-queue-cell-title{color:var(--text-primary, #0f172a);font-size:.92rem;line-height:1.35}.grading-queue-cell-subtitle{color:var(--text-tertiary, #64748b);font-size:.8rem;line-height:1.4}.grading-queue-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.grading-queue-pagination-list{display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0;padding:0;list-style:none}.grading-queue-pagination-link,.grading-queue-pagination-previous,.grading-queue-pagination-next{display:inline-flex;align-items:center;justify-content:center;gap:.35rem;min-width:2.25rem;height:2.25rem;padding:0 .75rem;border:1px solid var(--action-secondary-border, #cbd5e1);border-radius:.5rem;background:#fff;color:var(--action-secondary-text, #1e293b);font-size:.875rem;font-weight:500;line-height:1;transition:background-color .12s ease,border-color .12s ease,color .12s ease,box-shadow .12s ease}.grading-queue-pagination-link:hover,.grading-queue-pagination-previous:hover,.grading-queue-pagination-next:hover{background:#f8fafc}.grading-queue-pagination-link-active{border-color:var(--border-default, #e2e8f0);background:#f8fafc;color:var(--text-primary, #0f172a);box-shadow:none}.grading-queue-pagination-link{width:2.25rem;padding:0}.grading-queue-pagination-previous:disabled,.grading-queue-pagination-next:disabled,.grading-queue-pagination-link:disabled{opacity:.45;cursor:not-allowed}.grading-queue-pagination-ellipsis{display:inline-flex;align-items:center;justify-content:center;width:2.25rem;height:2.25rem;color:var(--text-tertiary, #64748b)}.grading-queue-pagination-copy{color:var(--text-tertiary, #64748b);font-size:.84rem;line-height:1.4}.lesson-editor-block-card,.lesson-editor-preview-card,.lesson-editor-confirm-card{padding:18px}.lesson-editor-block-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.lesson-editor-block-card h3,.lesson-editor-preview-card h3,.lesson-editor-confirm-card h3{margin:0;font-size:.98rem;font-weight:600}.lesson-editor-block-card p,.lesson-editor-preview-card p,.lesson-editor-confirm-card p{margin:10px 0 0;color:var(--text-secondary, #334155);line-height:1.6}.lesson-editor-block-meta{color:var(--text-tertiary, #64748b);font-size:.84rem}.lesson-block-kind-badge{color:var(--text-tertiary, #64748b)}.breadcrumb{margin:0 0 16px}.shell-header .shell-header-breadcrumb{margin:0}.breadcrumb-list{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0;padding:0;list-style:none}.breadcrumb-item{display:inline-flex;align-items:center;min-width:0}.breadcrumb-link,.breadcrumb-page,.breadcrumb-separator{font-size:.92rem;line-height:1.3;white-space:nowrap}.breadcrumb-link{color:var(--action-primary-bg, #2563eb);text-decoration:none;transition:color .12s ease}.breadcrumb-link:hover{color:#1d4ed8}.breadcrumb-page{color:var(--action-primary-bg, #2563eb);font-weight:600}.breadcrumb-separator{color:var(--text-tertiary, #64748b)}.lesson-editor-rail{position:sticky;top:20px}.lesson-editor-summary-grid{display:grid;gap:12px}.lesson-editor-summary-card{padding:16px;border:1px solid var(--border-default, #e2e8f0);border-radius:12px;background:#fff}.lesson-editor-summary-card strong{display:block;margin-top:8px;font-size:1.15rem;line-height:1.1;font-weight:600}.lesson-editor-summary-card p{margin:8px 0 0;color:var(--text-secondary, #334155);line-height:1.5;font-size:.84rem}.lesson-editor-rail .dashboard-card-actions{display:grid;gap:10px}.lesson-editor-rail .dashboard-card-actions button,.lesson-editor-rail .dashboard-card-actions a{width:100%;justify-content:center}.lesson-editor-preview-panel{position:sticky;top:0}.submission-review-page{gap:24px}.submission-review-layout{display:grid;grid-template-columns:minmax(0,1.25fr) 360px;gap:24px;align-items:start}.submission-review-main-column,.submission-review-stack{display:grid;gap:16px}.submission-review-overview-grid,.submission-review-file-heading{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.submission-review-badges,.submission-review-link-list{display:flex;flex-wrap:wrap;gap:8px}.submission-review-work-list{display:grid;gap:0;margin:0;padding:0;list-style:none;border-top:1px solid var(--border-default, #e2e8f0)}.submission-review-work-item{display:grid;grid-template-columns:128px minmax(0,1fr);gap:14px;align-items:start;padding:14px 0;border-bottom:1px solid var(--border-default, #e2e8f0)}.submission-review-work-body{display:grid;gap:8px;min-width:0}.submission-review-work-thumbnail,.submission-review-work-preview{width:128px;height:92px;border:1px solid var(--border-default, #e2e8f0);border-radius:12px;background:#f8fafc}.submission-review-work-thumbnail{object-fit:cover}.submission-review-work-thumbnail-button{padding:0;border:none;background:transparent;border-radius:12px;text-align:left}.submission-review-work-preview{display:grid;place-items:center;color:var(--text-tertiary, #64748b);font-size:.8rem;font-weight:600}.submission-review-work-preview-text{background:linear-gradient(180deg,#fffffff2,#f8fafcf2),repeating-linear-gradient(180deg,transparent,transparent 14px,rgba(203,213,225,.65) 14px,rgba(203,213,225,.65) 15px)}.submission-review-work-preview-link{background:radial-gradient(circle at 24px 24px,rgba(37,99,235,.12),transparent 24px),linear-gradient(135deg,#fff,#eff6ff)}.submission-review-preview-dialog{width:min(760px,calc(100vw - 32px))}.submission-review-preview-stack,.submission-review-preview-meta{display:grid;gap:12px}.submission-review-preview-image{width:100%;max-height:72vh;object-fit:contain;border:1px solid var(--border-default, #e2e8f0);border-radius:16px;background:#f8fafc}.submission-review-preview-text-card{border:1px solid var(--border-default, #e2e8f0);border-radius:16px;background:#f8fafc;padding:20px}.submission-review-preview-text-card p{margin:0;white-space:pre-wrap}.submission-review-history-card{align-items:flex-start}.submission-review-form-grid{grid-template-columns:1fr}.submission-review-checkbox-field{gap:12px}.submission-review-checkbox{display:inline-flex;align-items:center;gap:10px;color:var(--text-secondary, #334155)}.submission-review-actions{margin-top:16px}.submission-review-next-card{display:grid;gap:12px}.submission-workspace-page{gap:24px}.submission-workspace-layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:24px;align-items:start}.submission-workspace-main,.submission-workspace-side,.submission-workspace-form{display:grid;gap:16px}.submission-workspace-section-heading,.submission-workspace-badges{display:flex;flex-wrap:wrap;gap:10px;align-items:center}.submission-workspace-section-heading{justify-content:space-between}.submission-workspace-form textarea{width:100%;padding:12px 14px;border:1px solid var(--border-default, #e2e8f0);border-radius:12px;background:#fff;resize:vertical}.gradebook-page{gap:24px}.gradebook-header-panel,.gradebook-workspace,.gradebook-main-column,.gradebook-summary-strip,.gradebook-toolbar,.gradebook-window-controls,.gradebook-window-buttons,.gradebook-sheet-actions,.gradebook-detail-stack{display:grid;gap:10px}.gradebook-header-panel,.gradebook-workspace{gap:16px}.gradebook-workspace{grid-template-columns:minmax(0,1fr);align-items:start}.gradebook-main-column{min-width:0}.gradebook-summary-strip{grid-template-columns:repeat(3,minmax(0,1fr))}.gradebook-summary-card{padding:12px 14px;border:1px solid var(--border-default, #e2e8f0);border-radius:12px;background:#fff}.gradebook-toolbar{grid-template-columns:repeat(2,minmax(0,1fr));align-items:end}.gradebook-window-controls{gap:6px;grid-column:1 / -1;padding:10px 12px;border:1px solid var(--border-default, #e2e8f0);border-radius:12px;background:#f8fafc}.gradebook-window-buttons{grid-template-columns:repeat(2,minmax(0,1fr))}.gradebook-toolbar>.dashboard-primary-button{justify-self:start}.gradebook-window-label{color:var(--text-tertiary, #64748b);font-size:.8rem;font-weight:500}.gradebook-window-copy{margin:0;color:var(--text-tertiary, #64748b);font-size:.8rem;line-height:1.45}.gradebook-table-wrap{overflow-x:auto;border:1px solid var(--border-default, #e2e8f0);border-radius:14px;background:#fff}.gradebook-table{width:100%;min-width:640px;border-collapse:collapse;table-layout:fixed}.gradebook-table th,.gradebook-table td{padding:8px 10px;border-bottom:1px solid var(--border-default, #e2e8f0);text-align:left;vertical-align:top}.gradebook-table thead th{position:sticky;top:0;background:#f8fafc;z-index:1;font-size:.8rem}.gradebook-table tbody th{position:sticky;left:0;background:#fff;min-width:150px;z-index:1}.gradebook-table thead th:first-child{left:0;z-index:2}.gradebook-table tbody tr:hover{background:#94a3b814}.gradebook-column-heading{display:grid;gap:2px}.gradebook-column-heading strong{font-size:.8rem;line-height:1.3;font-weight:600}.gradebook-column-heading span{color:var(--text-tertiary, #64748b);font-size:.8rem}.gradebook-cell-button{display:grid;gap:4px;width:100%;padding:0;border:none;background:transparent;text-align:left}.gradebook-cell-button-compact{align-items:start}.gradebook-cell-button strong{font-size:.8rem;font-weight:500;color:var(--text-primary, #0f172a)}.gradebook-row-heading{display:grid;gap:2px}.gradebook-row-heading strong{font-size:.84rem;font-weight:600}.gradebook-row-heading span{color:var(--text-tertiary, #64748b);font-size:.8rem}.gradebook-mobile-list{display:none;gap:12px}.gradebook-mobile-statuses{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}.gradebook-sheet-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.gradebook-sheet-actions>:last-child:nth-child(odd){grid-column:1 / -1}.gradebook-action-disabled{cursor:not-allowed;opacity:.55;box-shadow:none}.sheet-overlay{position:fixed;inset:0;background:#0f172a52;z-index:40}.dialog-overlay{position:fixed;inset:0;background:#0f172a66;z-index:60}.dialog-content{position:fixed;top:50%;left:50%;width:min(720px,calc(100vw - 32px));max-height:calc(100vh - 32px);padding:24px;overflow-y:auto;transform:translate(-50%,-50%);border:1px solid var(--border-default, #e2e8f0);border-radius:20px;background:#fffffffa;box-shadow:0 24px 64px #0f172a3d;z-index:70;display:grid;gap:16px}.sheet-content{position:fixed;top:0;height:100vh;width:min(480px,92vw);padding:24px;border-left:1px solid var(--border-default, #e2e8f0);background:#fffffffa;box-shadow:-24px 0 48px #0f172a29;z-index:50;overflow-y:auto;display:grid;align-content:start;gap:16px}.sheet-content-right{right:0}.sheet-content-left{left:0;border-left:none;border-right:1px solid var(--border-default, #e2e8f0);box-shadow:24px 0 48px #0f172a29}.sheet-header{display:grid;gap:12px}.sheet-header-gradebook{padding-bottom:16px;border-bottom:1px solid var(--border-default, #e2e8f0)}.sheet-close-action{justify-self:start}.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}@media(max-width:1100px){.dashboard-hero,.dashboard-layout,.dashboard-class-grid,.dashboard-stat-grid,.lesson-editor-layout,.submission-review-layout,.submission-workspace-layout,.gradebook-workspace,.gradebook-summary-strip,.gradebook-toolbar{grid-template-columns:1fr}.lesson-editor-rail,.lesson-editor-preview-panel{position:static}}@media(max-width:900px){.app-shell,.app-shell-sidebar-collapsed{grid-template-columns:1fr}.shell-sidebar-scrim{position:fixed;inset:0;z-index:39;border:0;background:#0f172a73;opacity:0;pointer-events:none;transition:opacity .16s ease}.app-shell-sidebar-open .shell-sidebar-scrim{opacity:1;pointer-events:auto}.shell-sidebar{position:fixed;inset:14px auto 14px 14px;z-index:40;width:min(252px,calc(100vw - 28px));transform:translate(calc(-100% - 20px));transition:transform .18s ease}.app-shell-sidebar-open .shell-sidebar{transform:translate(0)}.shell-sidebar-surface{min-height:calc(100vh - 28px)}.shell-header{top:12px}.app-shell-sidebar-collapsed .shell-sidebar-surface{padding-inline:14px;justify-items:stretch}.app-shell-sidebar-collapsed .shell-sidebar-top{justify-content:space-between}.app-shell-sidebar-collapsed .shell-brand-button{width:100%;justify-content:flex-start}.app-shell-sidebar-collapsed .shell-brand-copy{display:grid}.app-shell-sidebar-collapsed .shell-nav{justify-items:stretch}.app-shell-sidebar-collapsed .shell-nav-link-label{display:block}.app-shell-sidebar-collapsed .shell-nav-link{justify-content:flex-start;width:100%;min-height:3rem;padding:10px 12px}.app-shell-sidebar-collapsed .shell-nav-link:hover{transform:translate(2px)}.app-shell-sidebar-collapsed .shell-nav-link .shell-nav-link-icon{flex:0 0 auto}.app-shell-sidebar-collapsed .shell-nav-link .shell-nav-link-label{min-width:0;flex:1 1 auto}.app-shell-sidebar-collapsed .shell-nav-link-badge{position:static;min-width:1.45rem;height:1.45rem;margin-left:auto;padding:0 .38rem;font-size:.72rem}.app-shell-sidebar-collapsed .shell-nav-link-active{padding-inline:12px}.page-card-grid,.lesson-editor-form-grid{grid-template-columns:1fr}.submission-review-work-item{grid-template-columns:96px minmax(0,1fr)}.submission-review-work-thumbnail,.submission-review-work-preview{width:96px;height:72px}.gradebook-mobile-statuses{justify-content:flex-start}.gradebook-window-buttons,.gradebook-sheet-actions{grid-template-columns:1fr}.grading-queue-table{min-width:720px}.grading-queue-pagination{align-items:stretch}.sheet-content{width:min(100vw,440px)}.dialog-content{width:min(100vw - 24px,680px);padding:20px}}@media(max-width:640px){.app-shell{padding:12px}.auth-card,.page-panel,.dashboard-hero-copy,.dashboard-section,.dashboard-stat-card,.dashboard-class-card,.dashboard-announcement-card,.dashboard-alert,.dashboard-reminder{padding:20px;border-radius:16px}.auth-actions,.dashboard-list-card,.dashboard-section-header,.shell-header,.shell-header-leading{display:flex;flex-direction:column;align-items:stretch}.shell-header{height:auto;padding:12px 16px}.shell-main{padding-bottom:76px}.shell-mobile-tabs{position:fixed;right:12px;bottom:12px;left:12px;z-index:28;display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:6px;border:1px solid rgba(203,213,225,.95);border-radius:22px;background:#fffffff0;padding:8px;box-shadow:0 18px 42px #0f172a29;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}.shell-mobile-tab{display:grid;justify-items:center;gap:3px;border-radius:16px;padding:8px 6px;color:var(--text-secondary, #334155);text-decoration:none;font-size:.72rem;font-weight:800}.shell-mobile-tab .topbar-icon{width:1.05rem;height:1.05rem}.shell-mobile-tab-active{background:linear-gradient(135deg,#2563eb21,#f59e0b1f);color:var(--action-primary-bg, #2563eb)}.shell-header-copy,.shell-header-breadcrumb,.shell-header-breadcrumb .breadcrumb-list{height:auto}.topbar-actions,.shell-header-actions,.dashboard-card-actions{display:grid;grid-template-columns:1fr}.admin-invite-form{grid-template-columns:1fr}.dashboard-summary-links{flex-direction:column}.dashboard-summary-link{width:100%;justify-content:flex-start;border-radius:16px}.grading-queue-helper-row,.grading-queue-pagination{flex-direction:column;align-items:stretch}.shell-sidebar{inset:10px auto 10px 10px;width:min(320px,calc(100vw - 20px))}.grading-queue-pagination-list{justify-content:flex-start}.dashboard-list-meta,.dashboard-class-metrics{justify-items:start;text-align:left}.gradebook-table-wrap{display:none}.gradebook-mobile-list{display:grid}.sheet-content{width:100vw;padding:20px}.dialog-content{width:calc(100vw - 16px);padding:16px}}.dashboard-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px;margin:16px 0}.dashboard-card{display:grid;gap:12px;border:1px solid var(--border-default, #e2e8f0);border-radius:16px;background:#fffffff5;padding:18px;box-shadow:0 1px 2px #0f172a0d}.dashboard-card h2{margin:0;font-size:1.05rem}.compact-list{display:grid;gap:10px}.compact-list-row{display:grid;gap:4px;border:1px solid var(--border-subtle, #edf2f7);border-radius:12px;padding:12px;color:inherit;text-decoration:none}.compact-list-row span{color:var(--text-secondary, #334155);font-size:.9rem}.admin-people-page{display:grid;gap:16px}.admin-invite-card,.admin-invite-form{display:grid;gap:14px}.admin-invite-form{grid-template-columns:repeat(2,minmax(0,1fr));align-items:end}.admin-role-fieldset{display:grid;gap:8px;margin:0;border:1px solid var(--border-default, #e2e8f0);border-radius:14px;padding:12px}.admin-role-fieldset legend{padding:0 6px;color:var(--text-secondary, #334155);font-size:.86rem;font-weight:700}.admin-role-options,.admin-role-pills,.admin-action-stack{display:flex;flex-wrap:wrap;gap:8px}.admin-role-options label{display:inline-flex;align-items:center;gap:6px;font-weight:700}.admin-people-heading-row{display:flex;align-items:start;justify-content:space-between;gap:12px}.admin-people-heading-row span{color:var(--text-secondary, #334155);font-weight:700}.admin-people-table-wrap{overflow:auto}.admin-people-table{min-width:980px}.admin-people-table th,.admin-people-table td{padding:12px;border-bottom:1px solid var(--border-default, #e2e8f0);text-align:left;vertical-align:top}.admin-people-table thead th{color:var(--text-secondary, #334155);font-size:.78rem;letter-spacing:.06em;text-transform:uppercase}.admin-people-table tbody th{display:grid;gap:4px;min-width:190px}.admin-people-table tbody th span{color:var(--text-secondary, #334155);font-size:.88rem;font-weight:500}.admin-action-stack .ui-button{min-height:2.25rem;border-radius:12px;padding:.45rem .7rem;font-size:.84rem}.route-state-card{min-height:180px;align-content:center}.route-skeleton{height:96px;border-radius:18px;background:linear-gradient(90deg,#eef2f7,#f8fafc 45%,#eef2f7);background-size:220% 100%;animation:route-skeleton-pulse 1.2s ease-in-out infinite}@keyframes route-skeleton-pulse{0%{background-position:0% 50%}to{background-position:200% 50%}}@media(prefers-reduced-motion:reduce){.route-skeleton{animation:none}}
