:root,[data-theme=light]{--md-sys-color-primary: #0b57d0;--md-sys-color-on-primary: #ffffff;--md-sys-color-primary-container: #d3e3fd;--md-sys-color-on-primary-container: #041e49;--md-sys-color-secondary: #565f71;--md-sys-color-on-secondary: #ffffff;--md-sys-color-secondary-container: #d9e3f8;--md-sys-color-on-secondary-container: #131c2b;--md-sys-color-tertiary: #6e5676;--md-sys-color-on-tertiary: #ffffff;--md-sys-color-tertiary-container: #f7d8ff;--md-sys-color-on-tertiary-container: #27132f;--md-sys-color-error: #b3261e;--md-sys-color-on-error: #ffffff;--md-sys-color-error-container: #f9dedc;--md-sys-color-on-error-container: #410e0b;--md-sys-color-success: #146c2e;--md-sys-color-success-container: #c4eed0;--md-sys-color-on-success-container: #072711;--md-sys-color-warning: #8f4e00;--md-sys-color-warning-container: #ffdcbe;--md-sys-color-on-warning-container: #2e1500;--md-sys-color-surface: #faf9fd;--md-sys-color-surface-dim: #dad9df;--md-sys-color-surface-bright: #faf9fd;--md-sys-color-surface-container-lowest: #ffffff;--md-sys-color-surface-container-low: #f4f3f8;--md-sys-color-surface-container: #eeedf4;--md-sys-color-surface-container-high: #e8e7ee;--md-sys-color-surface-container-highest: #e2e2e9;--md-sys-color-on-surface: #1b1b1f;--md-sys-color-on-surface-variant: #44474e;--md-sys-color-outline: #74777f;--md-sys-color-outline-variant: #c4c6d0;--md-sys-elevation-1: 0 1px 2px rgba(0, 0, 0, .08), 0 1px 3px 1px rgba(0, 0, 0, .05);--md-sys-elevation-2: 0 1px 2px rgba(0, 0, 0, .1), 0 2px 6px 2px rgba(0, 0, 0, .06);--md-sys-elevation-3: 0 4px 8px 3px rgba(0, 0, 0, .08), 0 1px 3px rgba(0, 0, 0, .12)}[data-theme=dark]{--md-sys-color-primary: #a8c7fa;--md-sys-color-on-primary: #062e6f;--md-sys-color-primary-container: #0842a0;--md-sys-color-on-primary-container: #d3e3fd;--md-sys-color-secondary: #bec6dc;--md-sys-color-on-secondary: #283141;--md-sys-color-secondary-container: #3e4759;--md-sys-color-on-secondary-container: #dae2f9;--md-sys-color-tertiary: #dabce2;--md-sys-color-on-tertiary: #3d2946;--md-sys-color-tertiary-container: #553f5d;--md-sys-color-on-tertiary-container: #f7d8ff;--md-sys-color-error: #f2b8b5;--md-sys-color-on-error: #601410;--md-sys-color-error-container: #8c1d18;--md-sys-color-on-error-container: #f9dedc;--md-sys-color-success: #6dd58c;--md-sys-color-success-container: #0f5223;--md-sys-color-on-success-container: #c4eed0;--md-sys-color-warning: #ffb77c;--md-sys-color-warning-container: #6d3a00;--md-sys-color-on-warning-container: #ffdcbe;--md-sys-color-surface: #121318;--md-sys-color-surface-dim: #121318;--md-sys-color-surface-bright: #38393f;--md-sys-color-surface-container-lowest: #0d0e13;--md-sys-color-surface-container-low: #1b1b20;--md-sys-color-surface-container: #1f1f25;--md-sys-color-surface-container-high: #292a2f;--md-sys-color-surface-container-highest: #34343a;--md-sys-color-on-surface: #e3e2e9;--md-sys-color-on-surface-variant: #c4c6d0;--md-sys-color-outline: #8e9099;--md-sys-color-outline-variant: #44474e;--md-sys-elevation-1: 0 1px 3px rgba(0, 0, 0, .35);--md-sys-elevation-2: 0 2px 8px rgba(0, 0, 0, .45);--md-sys-elevation-3: 0 6px 16px rgba(0, 0, 0, .55)}:root{--md-sys-shape-corner-small: 8px;--md-sys-shape-corner-medium: 16px;--md-sys-shape-corner-large: 24px;--md-sys-shape-corner-full: 9999px;--font-sans: "Plus Jakarta Sans", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;--font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;--sidebar-width-collapsed: 76px;--sidebar-width-expanded: 280px;--topbar-height: 64px}*,*:before,*:after{box-sizing:border-box}html,body,#root{height:100%;margin:0;padding:0}body{font-family:var(--font-sans);background-color:var(--md-sys-color-surface);color:var(--md-sys-color-on-surface);-webkit-font-smoothing:antialiased;line-height:1.5;overflow:hidden}button,input,select,textarea{font-family:inherit;color:inherit}button{cursor:pointer}a{color:var(--md-sys-color-primary);text-decoration:none}.app-shell{display:flex;height:100vh;width:100vw;overflow:hidden;background:var(--md-sys-color-surface)}.nav-rail{width:var(--sidebar-width-collapsed);min-width:var(--sidebar-width-collapsed);background:var(--md-sys-color-surface-container-low);border-right:1px solid var(--md-sys-color-outline-variant);display:flex;flex-direction:column;padding:12px 10px;gap:12px;transition:width .24s cubic-bezier(.2,0,0,1),min-width .24s cubic-bezier(.2,0,0,1);z-index:30;overflow:hidden}.nav-rail.expanded{width:var(--sidebar-width-expanded);min-width:var(--sidebar-width-expanded)}.nav-rail-header{display:flex;align-items:center;gap:10px;min-height:44px}.m3-icon-btn{width:40px;height:40px;min-width:40px;border-radius:var(--md-sys-shape-corner-full);border:none;background:transparent;color:var(--md-sys-color-on-surface-variant);display:inline-flex;align-items:center;justify-content:center;transition:background-color .16s ease,color .16s ease}.m3-icon-btn:hover{background:var(--md-sys-color-surface-container-highest);color:var(--md-sys-color-on-surface)}.m3-fab{height:44px;border-radius:var(--md-sys-shape-corner-medium);border:none;background:var(--md-sys-color-primary-container);color:var(--md-sys-color-on-primary-container);font-weight:600;font-size:14px;display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:0 14px;white-space:nowrap;box-shadow:var(--md-sys-elevation-1);transition:box-shadow .16s ease,filter .16s ease}.nav-rail:not(.expanded) .m3-fab{width:48px;padding:0;margin-left:4px}.m3-fab:hover{box-shadow:var(--md-sys-elevation-2);filter:brightness(.97)}.nav-destinations{display:flex;flex-direction:column;gap:4px}.nav-item{height:44px;border:none;border-radius:var(--md-sys-shape-corner-full);background:transparent;color:var(--md-sys-color-on-surface-variant);display:flex;align-items:center;gap:12px;padding:0 14px;font-size:14px;font-weight:500;white-space:nowrap;transition:background-color .15s ease,color .15s ease}.nav-rail:not(.expanded) .nav-item{justify-content:center;padding:0;width:48px;margin:0 auto}.nav-item:hover{background:var(--md-sys-color-surface-container-high);color:var(--md-sys-color-on-surface)}.nav-item.active{background:var(--md-sys-color-secondary-container);color:var(--md-sys-color-on-secondary-container);font-weight:600}.nav-badge{margin-left:auto;font-size:11px;font-weight:700;padding:2px 8px;border-radius:var(--md-sys-shape-corner-full);background:var(--md-sys-color-tertiary-container);color:var(--md-sys-color-on-tertiary-container)}.nav-divider{height:1px;background:var(--md-sys-color-outline-variant);margin:4px 6px}.nav-sessions-section{flex:1;min-height:0;display:flex;flex-direction:column;gap:8px;overflow:hidden}.nav-filter-chips{display:flex;gap:6px;flex-wrap:wrap;padding:0 2px}.m3-chip-sm{border:1px solid var(--md-sys-color-outline-variant);background:transparent;color:var(--md-sys-color-on-surface-variant);border-radius:var(--md-sys-shape-corner-small);font-size:12px;font-weight:500;padding:4px 10px;transition:all .15s ease}.m3-chip-sm.active{background:var(--md-sys-color-secondary-container);color:var(--md-sys-color-on-secondary-container);border-color:transparent}.session-list{flex:1;overflow-y:auto;display:flex;flex-direction:column;gap:4px;padding-right:2px}.session-item{display:flex;align-items:center;gap:8px;padding:9px 10px;border-radius:var(--md-sys-shape-corner-full);border:none;background:transparent;color:var(--md-sys-color-on-surface);font-size:13px;text-align:left;width:100%;transition:background-color .15s ease}.session-item:hover{background:var(--md-sys-color-surface-container-high)}.session-item.active{background:var(--md-sys-color-primary-container);color:var(--md-sys-color-on-primary-container);font-weight:600}.session-title{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.session-delete-btn{opacity:0;border:none;background:transparent;color:var(--md-sys-color-on-surface-variant);padding:4px;border-radius:var(--md-sys-shape-corner-full);display:inline-flex;align-items:center;justify-content:center;transition:opacity .15s ease,color .15s ease,background-color .15s ease}.session-item:hover .session-delete-btn,.session-item.active .session-delete-btn{opacity:1}.session-delete-btn:hover{color:var(--md-sys-color-error);background:var(--md-sys-color-error-container)}.nav-footer{display:flex;flex-direction:column;gap:4px;padding-top:8px;border-top:1px solid var(--md-sys-color-outline-variant)}.main-area{flex:1;min-width:0;display:flex;flex-direction:column;height:100vh;overflow:hidden}.top-bar{height:var(--topbar-height);min-height:var(--topbar-height);padding:0 20px;display:flex;align-items:center;justify-content:space-between;background:var(--md-sys-color-surface);border-bottom:1px solid var(--md-sys-color-outline-variant)}.top-bar-left{display:flex;align-items:center;gap:12px}.mobile-menu-btn{display:none}.brand-title{font-size:18px;font-weight:700;letter-spacing:-.02em;display:flex;align-items:center;gap:8px}.brand-pill{font-size:11px;font-weight:600;padding:2px 8px;border-radius:var(--md-sys-shape-corner-full);background:var(--md-sys-color-primary-container);color:var(--md-sys-color-on-primary-container)}.top-bar-right{display:flex;align-items:center;gap:10px}.avatar-btn{display:inline-flex;align-items:center;gap:8px;padding:4px 12px 4px 4px;border-radius:var(--md-sys-shape-corner-full);border:1px solid var(--md-sys-color-outline-variant);background:var(--md-sys-color-surface-container-low);font-size:13px;font-weight:500;transition:background-color .15s ease}.avatar-btn:hover{background:var(--md-sys-color-surface-container-high)}.avatar-circle{width:32px;height:32px;border-radius:var(--md-sys-shape-corner-full);display:inline-flex;align-items:center;justify-content:center;color:#fff;font-weight:700;font-size:14px;background-size:cover;background-position:center;flex-shrink:0}.view-body{flex:1;min-height:0;overflow-y:auto;position:relative}.m3-btn-filled{height:40px;padding:0 20px;border-radius:var(--md-sys-shape-corner-full);border:none;background:var(--md-sys-color-primary);color:var(--md-sys-color-on-primary);font-size:14px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;gap:8px;transition:filter .15s ease,box-shadow .15s ease}.m3-btn-filled:hover:not(:disabled){box-shadow:var(--md-sys-elevation-1);filter:brightness(1.06)}.m3-btn-filled:disabled{opacity:.5;cursor:not-allowed}.m3-btn-tonal{height:40px;padding:0 18px;border-radius:var(--md-sys-shape-corner-full);border:none;background:var(--md-sys-color-secondary-container);color:var(--md-sys-color-on-secondary-container);font-size:14px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;gap:8px;transition:filter .15s ease}.m3-btn-tonal:hover:not(:disabled){filter:brightness(.95)}.m3-btn-tonal:disabled{opacity:.5;cursor:not-allowed}.m3-btn-outlined{height:40px;padding:0 18px;border-radius:var(--md-sys-shape-corner-full);border:1px solid var(--md-sys-color-outline);background:transparent;color:var(--md-sys-color-primary);font-size:14px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;gap:8px;transition:background-color .15s ease}.m3-btn-outlined:hover:not(:disabled){background:var(--md-sys-color-surface-container-high)}.m3-btn-sm{height:32px;padding:0 14px;font-size:13px}.m3-input,.m3-select,.m3-textarea{width:100%;border:1px solid var(--md-sys-color-outline-variant);background:var(--md-sys-color-surface-container-lowest);color:var(--md-sys-color-on-surface);border-radius:var(--md-sys-shape-corner-small);padding:10px 14px;font-size:14px;outline:none;transition:border-color .15s ease,box-shadow .15s ease}.m3-input:focus,.m3-select:focus,.m3-textarea:focus{border-color:var(--md-sys-color-primary);box-shadow:0 0 0 2px color-mix(in srgb,var(--md-sys-color-primary) 18%,transparent)}.m3-card{background:var(--md-sys-color-surface-container-low);border:1px solid var(--md-sys-color-outline-variant);border-radius:var(--md-sys-shape-corner-large);padding:20px}.m3-pill-badge{display:inline-flex;align-items:center;gap:6px;padding:4px 12px;border-radius:var(--md-sys-shape-corner-full);font-size:12px;font-weight:600;background:var(--md-sys-color-surface-container-high);color:var(--md-sys-color-on-surface-variant)}.m3-pill-badge.primary{background:var(--md-sys-color-primary-container);color:var(--md-sys-color-on-primary-container)}.m3-pill-badge.success{background:var(--md-sys-color-success-container);color:var(--md-sys-color-on-success-container)}.m3-pill-badge.warning{background:var(--md-sys-color-warning-container);color:var(--md-sys-color-on-warning-container)}.m3-pill-badge.error{background:var(--md-sys-color-error-container);color:var(--md-sys-color-on-error-container)}.home-container{max-width:980px;margin:0 auto;padding:36px 24px 64px;display:flex;flex-direction:column;gap:28px}.home-hero{display:flex;flex-direction:column;gap:10px}.home-greeting-row{display:flex;align-items:center;flex-wrap:wrap;gap:12px}.home-greeting{font-size:16px;color:var(--md-sys-color-on-surface-variant);font-weight:500}.countdown-chip{display:inline-flex;align-items:center;gap:6px;padding:5px 14px;border-radius:var(--md-sys-shape-corner-full);background:var(--md-sys-color-tertiary-container);color:var(--md-sys-color-on-tertiary-container);font-size:13px;font-weight:600;border:none}.home-title{margin:0;font-size:clamp(26px,4vw,38px);font-weight:700;letter-spacing:-.02em;background:linear-gradient(120deg,var(--md-sys-color-primary),var(--md-sys-color-tertiary));-webkit-background-clip:text;-webkit-text-fill-color:transparent}.home-composer{background:var(--md-sys-color-surface-container);border:1px solid var(--md-sys-color-outline-variant);border-radius:var(--md-sys-shape-corner-large);padding:14px 16px;display:flex;flex-direction:column;gap:10px;box-shadow:var(--md-sys-elevation-1)}.home-composer textarea{border:none;background:transparent;resize:none;outline:none;font-size:15px;min-height:52px;max-height:160px;width:100%}.home-composer-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.module-pills{display:flex;gap:6px;flex-wrap:wrap}.module-pill{padding:6px 12px;border-radius:var(--md-sys-shape-corner-full);border:1px solid var(--md-sys-color-outline-variant);background:var(--md-sys-color-surface);color:var(--md-sys-color-on-surface-variant);font-size:12px;font-weight:600}.module-pill.active{background:var(--md-sys-color-primary-container);color:var(--md-sys-color-on-primary-container);border-color:transparent}.module-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.module-card{background:var(--md-sys-color-surface-container-low);border:1px solid var(--md-sys-color-outline-variant);border-radius:var(--md-sys-shape-corner-large);padding:20px;text-align:left;display:flex;flex-direction:column;gap:10px;transition:transform .16s ease,box-shadow .16s ease,background-color .16s ease}.module-card:hover{transform:translateY(-2px);box-shadow:var(--md-sys-elevation-2);background:var(--md-sys-color-surface-container)}.module-card-icon{width:44px;height:44px;border-radius:var(--md-sys-shape-corner-medium);background:var(--md-sys-color-primary-container);color:var(--md-sys-color-on-primary-container);display:inline-flex;align-items:center;justify-content:center}.module-card-title{font-size:16px;font-weight:700}.module-card-desc{font-size:13px;color:var(--md-sys-color-on-surface-variant)}.section-header{display:flex;align-items:center;justify-content:space-between;gap:12px}.section-header h2{margin:0;font-size:18px;font-weight:700}.quick-question-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:14px}.question-mini-card{background:var(--md-sys-color-surface-container-low);border:1px solid var(--md-sys-color-outline-variant);border-radius:var(--md-sys-shape-corner-medium);padding:16px;display:flex;flex-direction:column;gap:10px}.workspace-shell{height:100%;display:flex;overflow:hidden}.workspace-left{flex:1.1;min-width:0;border-right:1px solid var(--md-sys-color-outline-variant);background:var(--md-sys-color-surface-container-lowest);display:flex;flex-direction:column;overflow:hidden}.workspace-right{flex:1;min-width:0;display:flex;flex-direction:column;background:var(--md-sys-color-surface);overflow:hidden}.workspace-right.centered{max-width:920px;margin:0 auto;width:100%}.pane-header{height:54px;min-height:54px;padding:0 16px;border-bottom:1px solid var(--md-sys-color-outline-variant);background:var(--md-sys-color-surface-container-low);display:flex;align-items:center;justify-content:space-between;gap:10px}.pane-header-left,.pane-header-right{display:flex;align-items:center;gap:8px;min-width:0}.timer-pill{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:var(--md-sys-shape-corner-full);background:var(--md-sys-color-surface-container-high);font-family:var(--font-mono);font-size:12px;font-weight:600;border:none}.question-scroll{flex:1;min-height:0;overflow-y:auto;padding:20px;display:flex;flex-direction:column;gap:18px}.question-directions{background:var(--md-sys-color-surface-container-low);border-left:3px solid var(--md-sys-color-primary);padding:12px 14px;border-radius:0 var(--md-sys-shape-corner-small) var(--md-sys-shape-corner-small) 0;font-size:13px;color:var(--md-sys-color-on-surface-variant)}.passage-box{background:var(--md-sys-color-surface-container-low);border:1px solid var(--md-sys-color-outline-variant);border-radius:var(--md-sys-shape-corner-medium);padding:18px;display:flex;flex-direction:column;gap:12px;line-height:1.75;font-size:15px}.passage-para{margin:0;padding:6px 8px;border-radius:var(--md-sys-shape-corner-small);cursor:pointer;transition:background-color .15s ease}.passage-para:hover{background:var(--md-sys-color-surface-container)}.passage-para.highlighted{background:var(--md-sys-color-warning-container);color:var(--md-sys-color-on-warning-container)}.para-index{font-weight:700;color:var(--md-sys-color-primary);margin-right:8px;font-size:13px}.mcq-list{display:flex;flex-direction:column;gap:14px}.mcq-card{background:var(--md-sys-color-surface-container-low);border:1px solid var(--md-sys-color-outline-variant);border-radius:var(--md-sys-shape-corner-medium);padding:14px 16px;display:flex;flex-direction:column;gap:10px}.mcq-stem{font-weight:600;font-size:14px}.mcq-options{display:flex;flex-direction:column;gap:6px}.mcq-option{display:flex;align-items:flex-start;gap:10px;padding:9px 12px;border-radius:var(--md-sys-shape-corner-small);border:1px solid var(--md-sys-color-outline-variant);background:var(--md-sys-color-surface-container-lowest);text-align:left;font-size:14px;transition:all .15s ease}.mcq-option:hover{background:var(--md-sys-color-surface-container-high)}.mcq-option.selected{border-color:var(--md-sys-color-primary);background:var(--md-sys-color-primary-container);color:var(--md-sys-color-on-primary-container);font-weight:600}.mcq-option.correct{border-color:var(--md-sys-color-success);background:var(--md-sys-color-success-container);color:var(--md-sys-color-on-success-container)}.mcq-option.wrong{border-color:var(--md-sys-color-error);background:var(--md-sys-color-error-container);color:var(--md-sys-color-on-error-container)}.word-bank-grid{display:flex;flex-wrap:wrap;gap:8px;padding:14px;background:var(--md-sys-color-surface-container-low);border:1px solid var(--md-sys-color-outline-variant);border-radius:var(--md-sys-shape-corner-medium)}.word-chip{padding:6px 12px;border-radius:var(--md-sys-shape-corner-full);border:1px solid var(--md-sys-color-outline-variant);background:var(--md-sys-color-surface-container-lowest);font-size:13px;font-weight:500;display:inline-flex;align-items:center;gap:6px}.word-chip:hover{background:var(--md-sys-color-primary-container)}.word-chip.used{opacity:.55;background:var(--md-sys-color-surface-container-highest)}.blank-pill{display:inline-flex;align-items:center;gap:4px;padding:2px 10px;margin:0 3px;border-radius:var(--md-sys-shape-corner-full);border:1px dashed var(--md-sys-color-primary);background:var(--md-sys-color-primary-container);color:var(--md-sys-color-on-primary-container);font-size:13px;font-weight:600;cursor:pointer}.blank-pill.active{border-style:solid;box-shadow:0 0 0 2px color-mix(in srgb,var(--md-sys-color-primary) 30%,transparent)}.pane-footer{padding:12px 16px;border-top:1px solid var(--md-sys-color-outline-variant);background:var(--md-sys-color-surface-container-low);display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.chat-messages{flex:1;min-height:0;overflow-y:auto;padding:20px 24px;display:flex;flex-direction:column;gap:16px}.chat-row{display:flex;flex-direction:column;gap:6px}.chat-row.user{align-items:flex-end}.chat-row.assistant{align-items:flex-start}.chat-bubble{max-width:88%;padding:12px 16px;border-radius:var(--md-sys-shape-corner-large);font-size:14px;line-height:1.65;overflow-wrap:break-word}.chat-bubble.user{background:var(--md-sys-color-primary-container);color:var(--md-sys-color-on-primary-container);border-bottom-right-radius:6px;white-space:pre-wrap}.chat-bubble.assistant{background:var(--md-sys-color-surface-container-low);border:1px solid var(--md-sys-color-outline-variant);color:var(--md-sys-color-on-surface);border-bottom-left-radius:6px;width:100%;max-width:100%}.chat-bubble.assistant p:first-child{margin-top:0}.chat-bubble.assistant p:last-child{margin-bottom:0}.chat-bubble.assistant pre{background:var(--md-sys-color-surface-container-highest);padding:10px 12px;border-radius:var(--md-sys-shape-corner-small);overflow-x:auto;font-family:var(--font-mono);font-size:13px}.tool-status-list{display:flex;flex-wrap:wrap;gap:6px}.tool-status-chip{display:inline-flex;align-items:center;gap:6px;padding:5px 12px;border-radius:var(--md-sys-shape-corner-full);background:var(--md-sys-color-secondary-container);color:var(--md-sys-color-on-secondary-container);font-size:12px;font-weight:600}.tool-status-chip.done{background:var(--md-sys-color-success-container);color:var(--md-sys-color-on-success-container)}.chat-composer-wrap{padding:12px 20px 16px;border-top:1px solid var(--md-sys-color-outline-variant);background:var(--md-sys-color-surface);display:flex;flex-direction:column;gap:10px}.quick-chips-row{display:flex;gap:8px;flex-wrap:wrap}.quick-chip{padding:5px 12px;border-radius:var(--md-sys-shape-corner-full);border:1px solid var(--md-sys-color-outline-variant);background:var(--md-sys-color-surface-container-low);color:var(--md-sys-color-on-surface-variant);font-size:12px;font-weight:500}.quick-chip:hover{background:var(--md-sys-color-secondary-container);color:var(--md-sys-color-on-secondary-container);border-color:transparent}.chat-composer{display:flex;align-items:flex-end;gap:10px;background:var(--md-sys-color-surface-container);border:1px solid var(--md-sys-color-outline-variant);border-radius:var(--md-sys-shape-corner-large);padding:8px 10px 8px 16px}.chat-composer textarea{flex:1;border:none;background:transparent;resize:none;outline:none;font-size:14px;max-height:140px;padding:6px 0}.page-container{max-width:1180px;margin:0 auto;padding:28px 24px 64px;display:flex;flex-direction:column;gap:20px}.filter-bar{display:flex;flex-wrap:wrap;gap:12px;align-items:center;background:var(--md-sys-color-surface-container-low);border:1px solid var(--md-sys-color-outline-variant);border-radius:var(--md-sys-shape-corner-large);padding:14px 16px}.question-cards-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(310px,1fr));gap:16px}.segmented-tabs{display:inline-flex;border:1px solid var(--md-sys-color-outline);border-radius:var(--md-sys-shape-corner-full);overflow:hidden;background:var(--md-sys-color-surface-container-low)}.segmented-tab{padding:8px 20px;border:none;background:transparent;font-size:14px;font-weight:600;color:var(--md-sys-color-on-surface-variant)}.segmented-tab.active{background:var(--md-sys-color-secondary-container);color:var(--md-sys-color-on-secondary-container)}.admin-split{display:grid;grid-template-columns:320px 1fr;gap:20px;align-items:start}.admin-review-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000073;display:flex;align-items:center;justify-content:center;z-index:100;padding:20px}.modal-card{width:100%;max-width:720px;max-height:85vh;background:var(--md-sys-color-surface-container-lowest);border:1px solid var(--md-sys-color-outline-variant);border-radius:var(--md-sys-shape-corner-large);box-shadow:var(--md-sys-elevation-3);display:flex;flex-direction:column;overflow:hidden}.modal-header{padding:16px 20px;border-bottom:1px solid var(--md-sys-color-outline-variant);display:flex;align-items:center;justify-content:space-between}.modal-body{padding:20px;overflow-y:auto;display:flex;flex-direction:column;gap:14px}.modal-footer{padding:14px 20px;border-top:1px solid var(--md-sys-color-outline-variant);display:flex;justify-content:flex-end;gap:10px}.toast-stack{position:fixed;bottom:24px;right:24px;z-index:200;display:flex;flex-direction:column;gap:8px}.toast-item{padding:12px 18px;border-radius:var(--md-sys-shape-corner-medium);background:var(--md-sys-color-on-surface);color:var(--md-sys-color-surface);font-size:13px;font-weight:500;box-shadow:var(--md-sys-elevation-3);display:flex;align-items:center;gap:8px;max-width:380px}.toast-item.error{background:var(--md-sys-color-error);color:var(--md-sys-color-on-error)}.toast-item.success{background:var(--md-sys-color-success);color:#fff}.auth-wrapper{min-height:100%;display:flex;align-items:center;justify-content:center;padding:24px}.auth-card{width:100%;max-width:420px;background:var(--md-sys-color-surface-container-low);border:1px solid var(--md-sys-color-outline-variant);border-radius:var(--md-sys-shape-corner-large);padding:28px;box-shadow:var(--md-sys-elevation-2);display:flex;flex-direction:column;gap:18px}.color-swatch{width:30px;height:30px;border-radius:var(--md-sys-shape-corner-full);border:2px solid transparent;transition:transform .15s ease}.color-swatch.selected{border-color:var(--md-sys-color-on-surface);transform:scale(1.12)}@keyframes spin{to{transform:rotate(360deg)}}.spin{animation:spin 1s linear infinite}@media (max-width: 960px){.workspace-shell{flex-direction:column}.workspace-left{border-right:none;border-bottom:1px solid var(--md-sys-color-outline-variant);max-height:52vh}.module-grid,.admin-split,.admin-review-grid{grid-template-columns:1fr}.nav-rail{position:fixed;left:0;top:0;bottom:0;transform:translate(-100%)}.nav-rail.mobile-open{transform:translate(0);width:var(--sidebar-width-expanded)}.mobile-menu-btn{display:inline-flex}}
