/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,::backdrop,:after,:before{--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-border-style:solid;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid}}}@layer theme{:host,:root{--font-sans:"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--spacing:.25rem;--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--font-weight-medium:500;--radius-md:.375rem;--ease-out:cubic-bezier(0,0,.2,1);--ease-in-out:cubic-bezier(.4,0,.2,1);--animate-spin:spin 1s linear infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;--default-mono-font-family:var(--font-mono)}}@layer base{*,::backdrop,:after,:before{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}:host,html{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue","Noto Sans",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}menu,ol,ul{list-style:none}audio,canvas,embed,iframe,img,object,svg,video{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,optgroup,select,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit,::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden}.absolute,.sr-only{position:absolute}.fixed{position:fixed}.relative{position:relative}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.block{display:block}.contents{display:contents}.flex{display:flex}.hidden{display:none}.inline{display:inline}.inline-flex{display:inline-flex}.table{display:table}.size-10{width:calc(var(--spacing) * 10)}.h-10,.size-10{height:calc(var(--spacing) * 10)}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.animate-spin{animation:var(--animate-spin)}.items-center{align-items:center}.justify-center{justify-content:center}.gap-2{gap:calc(var(--spacing) * 2)}.rounded-md{border-radius:var(--radius-md)}.border{border-style:var(--tw-border-style);border-width:1px}.border-input{border-color:var(--input)}.bg-background{background-color:var(--background)}.bg-primary{background-color:var(--primary)}.px-0{padding-inline:0}.px-4{padding-inline:calc(var(--spacing) * 4)}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.text-primary-foreground{color:var(--primary-foreground)}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}@media (hover:hover){.hover\:bg-muted:hover{background-color:var(--muted)}.hover\:bg-primary\/90:hover{background-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-primary\/90:hover{background-color:color-mix(in oklab,var(--primary) 90%,transparent)}}}.focus-visible\:outline-2:focus-visible{outline-style:var(--tw-outline-style);outline-width:2px}.focus-visible\:outline-offset-2:focus-visible{outline-offset:2px}.focus-visible\:outline-ring:focus-visible{outline-color:var(--ring)}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:opacity-50:disabled{opacity:.5}.\[\&_svg\]\:size-4 svg{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.\[\&_svg\]\:shrink-0 svg{flex-shrink:0}}:root{--font-display:"Iowan Old Style","Palatino Linotype",Palatino,"Book Antiqua",Georgia,"Noto Serif SC","Source Han Serif SC","Songti SC","PingFang SC","Microsoft YaHei",serif;--background:#f7f8fa;--foreground:#20252b;--primary:#20252b;--primary-foreground:#fff;--muted:#eef1f3;--muted-foreground:#59636f;--border:#dde2e7;--input:#b8c1cb;--ring:#08765e;--destructive:#a52d37;--surface:#fff;--surface-subtle:#f2f4f6;--surface-hover:#e7ecef;--text-body:#394450;--accent:#08765e;--accent-soft:#e9f5ef;--warning:#815513;--warning-soft:#fff6e5;--error-soft:#fff0f1;--card-inverse:#202b31;--card-inverse-text:#f7faf9;--card-inverse-muted:#c0d0cc}*{box-sizing:border-box;letter-spacing:0}body{background:var(--background);color:var(--foreground);font-family:var(--font-sans);-webkit-font-smoothing:antialiased;margin:0;line-height:1.6}button,input,select,textarea{font:inherit}button:not(:disabled),select{cursor:pointer}textarea{resize:vertical}::selection{background:var(--accent);color:var(--surface)}[hidden]{display:none!important}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible,textarea:focus-visible{outline:2px solid var(--ring);outline-offset:3px}button,input,select,textarea{min-width:0}button svg{flex-shrink:0}.study-shell{min-height:100dvh}.lecture-sidebar,.mobile-sidebar{background:#f6f6f6;flex-direction:column;padding:16px 12px;display:flex}.lecture-sidebar{width:268px}.sidebar-brand-row{justify-content:space-between;align-items:center;margin-bottom:20px;padding-left:12px;display:flex}.sidebar-brand{font-size:20px;font-weight:600}.icon-button{color:#666;border-radius:6px;flex-shrink:0;justify-content:center;align-items:center;width:40px;height:40px;display:inline-flex}.icon-button svg{stroke-width:1.7px;width:20px;height:20px}.icon-button:hover{color:#111;background:#e7e7e7}.new-lecture{text-align:left;border-radius:6px;align-items:center;gap:12px;width:100%;min-height:44px;padding:10px 12px;font-size:14px;display:flex}.new-lecture:hover{background:#e9e9e9}.new-lecture svg{width:20px;height:20px}.history-search{margin:16px 0 24px;position:relative}.history-search svg{color:#666;width:18px;height:18px;position:absolute;top:12px;left:12px}.history-search input{background:0 0;border:1px solid #dedede;border-radius:6px;width:100%;height:42px;padding:0 12px 0 38px;font-size:13px}.history-heading{color:#666;justify-content:space-between;margin-bottom:10px;padding:0 12px;font-size:12px;display:flex}.history-scroll{flex:1;min-height:0;overflow:auto}.history-list{margin:0;padding:0;list-style:none}.history-item{border-radius:6px;margin-bottom:3px}.history-item.selected,.history-item:hover{background:#e9e9e9}.history-row{align-items:center;min-width:0;display:flex}.lecture-link{text-align:left;flex:1;min-width:0;height:44px;padding:10px 12px;font-size:14px}.lecture-link span{white-space:nowrap;text-overflow:ellipsis;display:block;overflow:hidden}.history-more{width:32px;margin-right:4px}.history-actions{gap:4px;padding:0 8px 8px;display:flex}.history-actions button{border-radius:4px;align-items:center;gap:6px;padding:8px;font-size:12px;display:flex}.history-actions button:hover{background:#ddd}.history-actions svg{width:14px;height:14px}.danger{color:#a52c2c}.history-empty{color:#666;padding:12px;font-size:13px}.sidebar-footer{color:#666;border-top:1px solid #e2e2e2;align-items:center;gap:8px;margin-top:16px;padding:16px 12px 2px;font-size:12px;display:flex}.sidebar-footer svg{width:16px;height:16px}.workspace{min-width:0;margin-left:268px}.workspace-header{z-index:40;border-bottom:1px solid var(--border);-webkit-backdrop-filter:blur(20px)saturate(180%);backdrop-filter:blur(20px)saturate(180%);background:#ffffffc7;position:sticky;top:0}.header-inner{gap:12px;min-height:72px;padding:12px 24px}.header-inner,.logo{align-items:center;display:flex}.logo{flex-shrink:0;gap:8px;font-size:20px;font-weight:600}.logo-mark{background:#000;border-radius:6px;width:24px;height:24px}.workspace-title{color:#666;white-space:nowrap;text-overflow:ellipsis;max-width:45%;margin-left:auto;font-size:14px;overflow:hidden}.open-sidebar{display:none}.workspace-main{max-width:980px;margin:40px auto;padding:0 32px 60px}.input-section{border:1px solid var(--border);background:#fff;border-radius:16px;margin-bottom:36px;padding:24px;box-shadow:0 4px 6px -1px #00000008,0 2px 4px -1px #00000005}.input-section h1{margin:0 0 24px;font-size:24px;font-weight:600;line-height:1.4}.input-heading-row{flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:8px 16px;margin-bottom:24px;display:flex}.input-heading-row h1{margin:0}.lecture-fields{border:0;gap:20px;min-width:0;display:grid}.lecture-fields label{margin-bottom:8px;font-size:13px;font-weight:500;display:block}.course-import{border:1px solid var(--border);background:#fcfcfc;border-radius:8px;padding:14px}.course-import-heading{align-items:flex-start;gap:10px;display:flex}.course-import-heading>svg{color:#10a37f;width:19px;height:19px;margin-top:1px}.course-import-heading span,.course-import-heading strong{display:block}.course-import-heading strong{font-size:14px;line-height:1.4}.course-import-heading span,.course-import-note{color:#686868;font-size:12px;line-height:1.5}.course-import-controls{grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:10px;margin-top:12px;display:grid}.file-dropzone{background:#fff;border:1px dashed #a9a9a9;border-radius:6px;align-items:stretch;min-height:42px;display:flex}.file-dropzone:focus-within,.file-dropzone:hover{background:#f6fffc;border-color:#10a37f}.file-dropzone input{opacity:0;pointer-events:none;width:1px;height:1px;position:absolute}.file-dropzone label{cursor:pointer;color:#333;text-align:center;justify-content:center;align-items:center;gap:8px;width:100%;margin:0;padding:9px 12px;display:flex}.file-dropzone label svg{color:#10a37f;width:16px;height:16px}.youtube-import{gap:8px;display:flex}.youtube-import input{border:1px solid var(--input);background:#fff;border-radius:6px;flex:1;min-width:0;padding:8px 10px;font-size:13px}.youtube-import input:focus{outline-offset:1px;border-color:#10a37f;outline:2px solid #10a37f33}.youtube-import button{white-space:nowrap;flex:none;min-height:42px}.youtube-import button svg{width:15px;height:15px}.course-import-note{margin:10px 0 0}.optional{color:#666;font-weight:400}.text-field{border:1px solid var(--input);background:#fff;border-radius:6px;width:100%;padding:9px 12px;font-size:14px}.field-heading{flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:4px 12px;display:flex}.field-heading span{color:#666;font-variant-numeric:tabular-nums;font-size:12px}#lecture{border:1px solid var(--border);background:#fafafa;border-radius:12px;width:100%;height:170px;min-height:150px;padding:16px;font-size:15px;line-height:1.75;display:block}#lecture:focus{background:#fff;border-color:#888}.input-toolbar{border-top:1px solid var(--border);flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:16px;margin-top:16px;padding-top:20px;display:flex}.language-field{width:170px}.language-field label{align-items:center;gap:6px;margin-bottom:8px;font-size:12px;display:flex}.language-field svg{width:15px;height:15px}.language-field select{border:1px solid var(--input);background:#fff;border-radius:6px;width:100%;height:42px;padding:8px 10px;font-size:14px}.generate-actions{flex-wrap:wrap;gap:8px;display:flex}.generate-actions button{min-height:44px}.form-footer{color:#666;flex-wrap:wrap;justify-content:space-between;gap:8px 16px;min-height:20px;margin-top:16px;font-size:12px;display:flex}.processing-status{align-items:center;gap:6px;display:flex}.processing-status svg{width:14px;height:14px}.save-failed{color:var(--destructive)}.notice{overflow-wrap:anywhere;align-items:flex-start;gap:8px;margin-bottom:20px;font-size:13px;line-height:1.7;display:flex}.notice svg{flex-shrink:0;width:17px;height:17px;margin-top:3px}.notice.error{color:#a72e2e;margin-top:20px;margin-bottom:0}.notice.warning{color:#87560d}.gpt-auth-verification{border:1px solid var(--border);background:var(--surface-subtle);border-radius:10px;padding:16px}.gpt-auth-verification h2{margin:0 0 8px;font-size:17px}.gpt-auth-verification p{color:var(--muted-foreground);margin:0 0 12px;font-size:14px}.gpt-auth-verification a{color:var(--accent);text-underline-offset:3px;text-decoration:underline}html.dark .course-import{background:#1e1e1e;border-color:#373737}html.dark .course-import-heading span,html.dark .course-import-note{color:#a3a3a3}html.dark .file-dropzone,html.dark .youtube-import input{color:#f1f1f1;background:#171717;border-color:#444}html.dark .file-dropzone:focus-within,html.dark .file-dropzone:hover{background:#17231f;border-color:#10a37f}html.dark .file-dropzone label{color:#e5e5e5}.empty-materials{border-top:1px solid var(--border);text-align:center;color:#777;padding:36px 0}.empty-materials>svg{stroke-width:1.3px;width:28px;height:28px;margin:0 auto 14px}.empty-materials h2{color:#555;margin-bottom:14px;font-size:16px;font-weight:500}.empty-tabs{flex-wrap:wrap;justify-content:center;gap:20px;font-size:12px;display:flex}.history-dialog{border:1px solid var(--border);background:#fff;border-radius:8px;width:min(400px,100% - 32px);margin:auto;padding:24px}.history-dialog h2{margin-bottom:16px;font-size:18px;font-weight:600}.history-dialog p{color:#666;font-size:14px}.dialog-actions{justify-content:flex-end;gap:8px;margin-top:24px;display:flex}dialog::backdrop{background:#00000047}.mobile-sidebar{display:none}.mobile-sidebar[open]{border:0;width:min(300px,100% - 44px);height:100dvh;max-height:100dvh;margin:0;display:flex;position:fixed;inset:0 auto 0 0}@media (max-width:767px){.lecture-sidebar{display:none}.workspace{margin-left:0}.open-sidebar{display:inline-flex}.workspace-main{margin-top:24px;padding:0 16px 40px}.input-section{border-radius:12px;padding:18px}.header-inner{min-height:64px;padding:10px 16px}.input-section h1{font-size:22px}.icon-button{width:44px;height:44px}.empty-tabs{gap:14px}.course-import-controls{grid-template-columns:minmax(0,1fr)}}@media (max-width:430px){.youtube-import{grid-template-columns:minmax(0,1fr);display:grid}.input-toolbar{align-items:stretch}.generate-actions,.language-field{width:100%}.generate-actions button[type=submit]{flex:1}}@media (prefers-reduced-motion:reduce){*,:after,:before{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}.chatgpt-sidebar-inner{color:#0d0d0d;background-color:#f9f9f9;flex-direction:column;height:100%;padding:10px 12px;display:flex}.gpt-brand-row{justify-content:space-between;align-items:center;padding:4px 6px 12px;display:flex}.gpt-brand-lockup{align-items:center;gap:9px;min-width:0;display:inline-flex}.account-brand img,.gpt-admin-current-brand img,.gpt-admin-login-brand img,.gpt-brand-lockup img,.gpt-rail-btn.brand img{object-fit:contain;border-radius:8px;display:block}.gpt-brand-title{font-size:16px;font-weight:600}.gpt-brand-icons{align-items:center;gap:4px;display:flex}.gpt-icon-btn{color:#676767;border-radius:8px;justify-content:center;align-items:center;width:32px;height:32px;transition:background .15s,color .15s;display:inline-flex}.gpt-icon-btn:hover{color:#0d0d0d;background:#ebebeb}.gpt-nav-actions{margin-bottom:8px}.gpt-nav-item{color:#0d0d0d;border-radius:8px;align-items:center;gap:10px;width:100%;padding:9px 10px;font-size:14px;font-weight:400;transition:background .15s;display:flex}.gpt-nav-item:hover{background:#ececec}.gpt-search-wrapper{background:#f0f0f0;border-radius:8px;align-items:center;margin:4px 0 12px;padding:0 10px;display:flex;position:relative}.gpt-search-wrapper svg{color:#8e8e8e;flex-shrink:0}.gpt-search-wrapper input{background:0 0;border:none;outline:none;width:100%;height:34px;padding-left:8px;font-size:13px}.gpt-section-label{color:#8e8e8e;padding:8px 8px 4px;font-size:12px;font-weight:500}.gpt-history-scroll{flex:1;min-height:0;overflow-y:auto}.gpt-empty-hint{color:#8e8e8e;text-align:center;padding:16px 8px;font-size:13px}.gpt-chat-list{flex-direction:column;gap:1px;margin:0;padding:0;list-style:none;display:flex}.gpt-chat-item{border-radius:8px;align-items:center;transition:background .15s;display:flex;position:relative}.gpt-chat-item.active,.gpt-chat-item:hover{background:#ececec}.gpt-chat-btn{text-align:left;color:#212121;flex:1;min-width:0;padding:8px 10px;font-size:13.5px}.gpt-chat-btn span{white-space:nowrap;text-overflow:ellipsis;display:block;overflow:hidden}.gpt-item-more{color:#676767;opacity:0;border-radius:6px;justify-content:center;align-items:center;width:28px;height:28px;margin-right:4px;transition:opacity .15s;display:inline-flex}.gpt-chat-item.active .gpt-item-more,.gpt-chat-item:hover .gpt-item-more{opacity:1}.gpt-item-more:hover{color:#000;background:#dedede}.gpt-popover-menu{z-index:70;background:#fff;border:1px solid #e5e5e5;border-radius:8px;flex-direction:column;min-width:100px;padding:4px;display:flex;position:absolute;top:calc(100% + 2px);right:6px;box-shadow:0 4px 12px #00000014}.gpt-popover-menu button{text-align:left;border-radius:6px;align-items:center;gap:6px;width:100%;padding:6px 8px;font-size:12px;display:flex}.gpt-popover-menu button:hover{background:#f4f4f4}.gpt-popover-menu button.danger{color:#d32f2f}.gpt-user-avatar{color:#fff;background:#ff5c7c;border-radius:50%;flex-shrink:0;width:32px;height:32px}.gpt-auth-page,.gpt-user-avatar{justify-content:center;align-items:center;display:flex}.gpt-auth-page{background-color:#fff;flex-direction:column;min-height:100dvh;padding:24px}.gpt-auth-header{margin-bottom:24px}.gpt-auth-box{flex-direction:column;align-items:stretch;width:100%;max-width:360px;display:flex}.account-brand{color:#0d0d0d;justify-content:center;align-items:center;gap:10px;margin:0 0 18px;font-size:18px;font-weight:700;display:inline-flex}.account-brand img{border-radius:11px;width:42px;height:42px}.gpt-auth-title{text-align:center;color:#0d0d0d;margin:0 0 8px;font-size:32px;font-weight:700}.gpt-auth-subtitle{color:#6e6e6e;text-align:center;margin:0 0 24px;font-size:14px}.gpt-auth-error{color:#b91c1c;background:#fef2f2;border:1px solid #fee2e2;border-radius:8px;margin-bottom:16px;padding:10px 14px;font-size:13px}.gpt-auth-form{gap:16px}.gpt-auth-field,.gpt-auth-form{flex-direction:column;display:flex}.gpt-auth-field{gap:6px}.gpt-auth-field label{color:#212121;font-size:13px;font-weight:500}.gpt-auth-field input{background:#fff;border:1px solid #c2c8d0;border-radius:8px;outline:none;width:100%;height:48px;padding:0 16px;font-size:15px;transition:border-color .15s,box-shadow .15s}.gpt-auth-field input:focus{border-color:#10a37f;box-shadow:0 0 0 2px #10a37f33}.gpt-auth-submit{color:#fff;background:#10a37f;border:none;border-radius:8px;height:48px;margin-top:8px;font-size:15px;font-weight:600;transition:background .15s}.gpt-auth-submit:hover{background:#0d8a6a}.gpt-sidebar-auth-footer{border-top:1px solid var(--border-color,#eaeaea);margin-top:8px;padding-top:8px;position:relative}.gpt-user-avatar.guest{color:#6e6e6e;background:#ececec}.lecture-sidebar{transition:width .2s cubic-bezier(.2,0,0,1),transform .2s cubic-bezier(.2,0,0,1)}.workspace{transition:margin-left .2s cubic-bezier(.2,0,0,1)}.lecture-sidebar.rail{width:56px;padding:8px 6px}.sidebar-collapsed .open-sidebar{display:none}.gpt-rail-icons{flex-direction:column;align-items:center;gap:8px;margin-top:14px;display:flex}.gpt-rail-btn{color:#555;cursor:pointer;background:0 0;border:none;border-radius:8px;justify-content:center;align-items:center;width:40px;height:40px;transition:background .15s,color .15s;display:inline-flex}.gpt-rail-btn:hover{color:#0d0d0d;background:#ececec}.gpt-rail-btn.brand{color:#0d0d0d}.account-menu{gap:6px;min-width:0;display:grid}.account-menu.compact{justify-items:center;margin-top:auto;position:relative}.account-identity{align-items:center;gap:10px;min-width:0;padding:8px;display:flex}.account-identity span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.account-menu small{opacity:.7;padding:0 8px;font-size:11px}.account-menu-error{overflow-wrap:anywhere;padding:8px;font-size:12px}.account-menu-error button{text-decoration:underline}.account-menu.compact .account-menu-error{background:var(--background,#fff);border:1px solid var(--border-color,#eaeaea);z-index:5;border-radius:8px;width:220px;position:absolute;bottom:0;left:100%}.gpt-rail-btn.brand img{width:28px;height:28px}.gpt-user-avatar.small{width:34px;height:34px}.lecture-sidebar{z-index:60;background-color:#f9f9f9;border-right:1px solid #e8e8e8;width:260px;transition:width .28s cubic-bezier(.2,0,0,1);position:fixed;inset:0 auto 0 0;overflow:hidden;padding:0!important}.lecture-sidebar.rail{width:54px}.workspace{margin-left:260px;transition:margin-left .28s cubic-bezier(.2,0,0,1)}.sidebar-collapsed .workspace{margin-left:54px}@media (max-width:767px){.sidebar-collapsed .workspace,.workspace{margin-left:0}.sidebar-collapsed .open-sidebar{display:inline-flex}}.gpt-sidebar-container{width:100%;height:100%;position:relative}.gpt-rail-content{opacity:0;pointer-events:none;flex-direction:column;align-items:center;width:54px;height:100%;padding:10px 6px;transition:opacity .2s cubic-bezier(.2,0,0,1) 50ms,transform .2s cubic-bezier(.2,0,0,1);display:flex;position:absolute;top:0;left:0;transform:scale(.92)}.gpt-sidebar-container.is-collapsed .gpt-rail-content{opacity:1;pointer-events:auto;transform:scale(1)}.gpt-expanded-content{opacity:1;pointer-events:auto;flex-direction:column;width:260px;height:100%;padding:10px 12px;transition:opacity .2s cubic-bezier(.2,0,0,1),transform .2s cubic-bezier(.2,0,0,1);display:flex;position:absolute;top:0;left:0;transform:translate(0)}.gpt-sidebar-container.is-collapsed .gpt-expanded-content{opacity:0;pointer-events:none;transform:translate(-12px)}:root{--bg-modal:var(--surface);--text-main:var(--foreground);--text-sub:var(--muted-foreground);--border-color:var(--border);--hover-bg:var(--surface-hover);--card-bg:var(--surface-subtle)}html.dark{--background:#15191e;--foreground:#edf1f5;--primary:#edf1f5;--primary-foreground:#192027;--muted:#272f38;--muted-foreground:#b0bbc7;--border:#37424e;--input:#536170;--surface:#1d232b;--surface-subtle:#181e25;--surface-hover:#2d3742;--text-body:#d2dae3;--accent:#7bdcb5;--accent-soft:#203c34;--ring:#7bdcb5;--destructive:#ffb1b6;--error-soft:#40262d;--warning:#ebcb86;--warning-soft:#3b3223;--card-inverse:#dceee7;--card-inverse-text:#182b25;--card-inverse-muted:#405d52}.gpt-settings-backdrop{-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);z-index:1000;background-color:#0000008c;justify-content:center;align-items:center;padding:16px;animation:fadeIn .15s ease-out;display:flex;position:fixed;inset:0}.gpt-settings-dialog{background-color:var(--bg-modal);color:var(--text-main);border:1px solid var(--border-color);border-radius:14px;flex-direction:column;width:100%;max-width:680px;height:520px;display:flex;overflow:hidden;box-shadow:0 20px 40px #0003}.gpt-settings-header{border-bottom:1px solid var(--border-color);justify-content:space-between;align-items:center;padding:16px 20px;display:flex}.gpt-settings-header h2{margin:0;font-size:17px;font-weight:600}.gpt-settings-close-btn{width:32px;height:32px;color:var(--text-sub);cursor:pointer;background:0 0;border:none;border-radius:8px;justify-content:center;align-items:center;transition:background .15s;display:inline-flex}.gpt-settings-close-btn:hover{background:var(--hover-bg);color:var(--text-main)}.gpt-settings-body{flex:1;min-height:0;display:flex}.gpt-settings-tabs{border-right:1px solid var(--border-color);background:var(--card-bg);flex-direction:column;gap:4px;width:190px;padding:12px 8px;display:flex}.gpt-settings-tab-btn{width:100%;color:var(--text-sub);text-align:left;cursor:pointer;background:0 0;border:none;border-radius:8px;align-items:center;gap:10px;padding:8px 12px;font-size:13.5px;font-weight:400;transition:all .15s;display:flex}.gpt-settings-tab-btn.active,.gpt-settings-tab-btn:hover{background:var(--hover-bg);color:var(--text-main)}.gpt-settings-tab-btn.active{font-weight:500}.gpt-settings-content{flex:1;padding:24px;overflow-y:auto}.gpt-settings-section{flex-direction:column;gap:22px;display:flex}.gpt-setting-row{justify-content:space-between;align-items:center;gap:16px;display:flex}.gpt-setting-row.block{flex-direction:column;align-items:stretch}.gpt-setting-info label{margin-bottom:2px;font-size:14px;font-weight:500;display:block}.gpt-setting-info p{color:var(--text-sub);margin:0;font-size:12.5px}.gpt-theme-grid{grid-template-columns:repeat(3,1fr);gap:12px;margin-top:12px;display:grid}.gpt-theme-card{border:2px solid var(--border-color);background:var(--card-bg);color:var(--text-sub);cursor:pointer;border-radius:10px;flex-direction:column;justify-content:center;align-items:center;gap:8px;padding:16px 12px;font-size:13px;transition:all .15s;display:flex}.gpt-theme-card:hover{color:var(--text-main);border-color:#888}.gpt-theme-card.active{color:#10a37f;background:var(--hover-bg);border-color:#10a37f}.gpt-secondary-btn{border:1px solid var(--border-color);background:var(--bg-modal);height:36px;color:var(--text-main);cursor:pointer;border-radius:8px;align-items:center;gap:6px;padding:0 14px;font-size:13px;font-weight:500;transition:background .15s;display:inline-flex}.gpt-secondary-btn:hover{background:var(--hover-bg)}.text-danger{color:#dc2626!important}.gpt-settings-footer{border-top:1px solid var(--border-color);justify-content:flex-end;padding:14px 20px;display:flex}.gpt-settings-done-btn{color:#fff;cursor:pointer;background:#10a37f;border:none;border-radius:8px;height:38px;padding:0 18px;font-size:13.5px;font-weight:500;transition:background .15s}.gpt-settings-done-btn:hover{background:#0d8a6a}.gpt-footer-user-row{align-items:center;gap:4px;display:flex}.gpt-custom-select-container{width:190px;position:relative}.gpt-custom-select-label{color:#666;align-items:center;gap:6px;margin-bottom:6px;font-size:12px;font-weight:500;display:flex}html.dark .gpt-custom-select-label{color:#999}.gpt-custom-select-trigger{color:#111;cursor:pointer;background:#fff;border:1px solid #d4d4d8;border-radius:9999px;outline:none;justify-content:space-between;align-items:center;width:100%;height:44px;padding:0 14px;font-size:13.5px;transition:all .2s cubic-bezier(.2,0,0,1);display:flex;box-shadow:0 1px 2px #0000000a}.gpt-custom-select-trigger:hover:not(:disabled){border-color:#888;box-shadow:0 2px 5px #0000000f}.gpt-custom-select-trigger.is-open,.gpt-custom-select-trigger:focus-visible{border-color:#10a37f;box-shadow:0 0 0 3px #10a37f26}.gpt-custom-select-trigger:disabled{opacity:.6;cursor:not-allowed;background:#f4f4f5}html.dark .gpt-custom-select-trigger{color:#ececec;background:#212121;border-color:#383838}html.dark .gpt-custom-select-trigger:hover:not(:disabled){border-color:#555}html.dark .gpt-custom-select-trigger:disabled{background:#1a1a1a}.gpt-select-text{white-space:nowrap;text-overflow:ellipsis;font-weight:450;overflow:hidden}.gpt-select-arrow{color:#71717a;flex-shrink:0;transition:transform .2s}.gpt-select-arrow.rotate{transform:rotate(180deg)}.gpt-custom-select-menu{z-index:90;background:#fff;border:1px solid #e4e4e7;border-radius:16px;width:100%;margin:0;padding:6px;list-style:none;animation:fadeIn .15s ease-out;position:absolute;bottom:calc(100% + 6px);left:0;box-shadow:0 10px 25px -5px #0000001a,0 8px 10px -6px #0000000d}html.dark .gpt-custom-select-menu{background:#242424;border-color:#383838;box-shadow:0 12px 28px #00000059}.gpt-custom-select-item{color:#27272a;cursor:pointer;border-radius:9999px;justify-content:space-between;align-items:center;padding:9px 12px;font-size:13px;transition:background .15s,color .15s;display:flex}html.dark .gpt-custom-select-item{color:#e4e4e7}.gpt-custom-select-item:hover{color:#000;background:#f4f4f5}html.dark .gpt-custom-select-item:hover{color:#fff;background:#303030}.gpt-custom-select-item.selected{color:#10a37f;font-weight:500}.gpt-check-icon,html.dark .gpt-custom-select-item.selected{color:#10a37f}.gpt-settings-select-container{width:220px;position:relative}.gpt-settings-select-trigger{background:var(--bg-modal);border:1px solid var(--border-color);width:100%;height:40px;color:var(--text-main);cursor:pointer;border-radius:9999px;outline:none;justify-content:space-between;align-items:center;padding:0 14px;font-size:13px;transition:all .2s cubic-bezier(.2,0,0,1);display:flex;box-shadow:0 1px 2px #0000000a}.gpt-settings-select-trigger:hover{border-color:#888}.gpt-settings-select-trigger.is-open,.gpt-settings-select-trigger:focus-visible{border-color:#10a37f;box-shadow:0 0 0 3px #10a37f26}.gpt-settings-select-menu{background:var(--bg-modal);border:1px solid var(--border-color);z-index:1050;border-radius:14px;width:100%;margin:0;padding:6px;list-style:none;animation:fadeIn .15s ease-out;position:absolute;top:calc(100% + 6px);right:0;box-shadow:0 10px 25px -5px #0000001f,0 8px 10px -6px #0000000f}.gpt-settings-select-item{color:var(--text-main);cursor:pointer;border-radius:9999px;justify-content:space-between;align-items:center;padding:8px 12px;font-size:13px;transition:background .15s,color .15s;display:flex}.gpt-settings-select-item:hover{background:var(--hover-bg)}.gpt-settings-select-item.selected{color:#10a37f;font-weight:500}#lecture{resize:none!important;scrollbar-width:thin!important;scrollbar-color:#96969666 transparent!important;overflow-y:auto!important}#lecture::-webkit-scrollbar{width:6px!important}#lecture::-webkit-scrollbar-track{background:0 0!important;margin:12px 0!important}#lecture::-webkit-scrollbar-thumb{background:#96969666!important;border-radius:9999px!important;transition:background .2s!important}#lecture::-webkit-scrollbar-thumb:hover{background:#969696b3!important}html.dark #lecture{scrollbar-color:#fff3 transparent!important}html.dark #lecture::-webkit-scrollbar-thumb{background:#fff3!important}html.dark #lecture::-webkit-scrollbar-thumb:hover{background:#fff6!important}html.dark .gpt-item-more{color:#a3a3a3!important;background:0 0!important}html.dark .gpt-item-more:hover{color:#fff!important;background:#333!important}html.dark .gpt-auth-page{color:#ececec!important;background-color:#171717!important}html.dark .account-brand,html.dark .gpt-auth-title{color:#fff!important}html.dark .gpt-auth-subtitle{color:#a3a3a3!important}html.dark .gpt-auth-field label{color:#e5e5e5!important}html.dark .gpt-auth-field input{color:#fff!important;background-color:#212121!important;border-color:#383838!important}html.dark .gpt-auth-field input:focus{border-color:#10a37f!important;box-shadow:0 0 0 2px #10a37f4d!important}html.dark .gpt-auth-error{color:#fca5a5!important;background:#391515!important;border-color:#5c1d1d!important}.gpt-admin-back-link{color:#666;align-items:center;gap:6px;font-size:13.5px;font-weight:500;text-decoration:none;transition:color .15s;display:inline-flex}.gpt-admin-back-link:hover{color:#000}html.dark .gpt-admin-back-link{color:#a3a3a3}html.dark .gpt-admin-back-link:hover{color:#fff}.gpt-admin-app{background-color:var(--background,#fafafa);min-height:100dvh;color:var(--foreground,#111);font-family:var(--font-sans);flex-direction:column;display:flex}.gpt-admin-topbar{border-bottom:1px solid var(--border-color,#e5e5e5);background:var(--bg-modal,#fff);flex-shrink:0;justify-content:space-between;align-items:center;height:54px;padding:0 24px;display:flex}html.dark .gpt-admin-topbar{background:#171717;border-bottom-color:#2e2e2e}.gpt-admin-topbar-left{align-items:center;gap:10px;font-size:13.5px;display:flex}.gpt-admin-top-back{color:#666;align-items:center;gap:6px;font-weight:450;text-decoration:none;transition:color .15s;display:inline-flex}.gpt-admin-top-back:hover{color:#000}html.dark .gpt-admin-top-back{color:#a3a3a3}html.dark .gpt-admin-top-back:hover{color:#fff}.gpt-admin-divider{color:#ccc}html.dark .gpt-admin-divider{color:#444}.gpt-admin-current-brand{color:var(--text-main,#0d0d0d);align-items:center;gap:8px;font-weight:600;display:inline-flex}.gpt-admin-current-brand img{border-radius:6px;width:24px;height:24px}.gpt-admin-login-brand{justify-content:center;margin-bottom:16px;display:flex}.gpt-admin-login-brand img{border-radius:14px;width:56px;height:56px}.gpt-admin-topbar-right{align-items:center;gap:16px;display:flex}.gpt-admin-user-pill{color:var(--text-main,#212121);align-items:center;gap:8px;font-size:13px;font-weight:500;display:inline-flex}.gpt-admin-logout-link{color:#dc2626;cursor:pointer;background:0 0;border:none;border-radius:6px;align-items:center;gap:5px;padding:4px 8px;font-size:12.5px;transition:background .15s;display:inline-flex}.gpt-admin-logout-link:hover{background:#fef2f2}html.dark .gpt-admin-logout-link:hover{background:#391515}.gpt-admin-layout{flex:1;min-height:0;display:flex}.gpt-admin-sidebar{border-right:1px solid var(--border-color,#e5e5e5);background:var(--bg-modal,#fff);flex-direction:column;flex-shrink:0;gap:24px;width:240px;padding:20px 12px;display:flex}html.dark .gpt-admin-sidebar{background:#171717;border-right-color:#2e2e2e}.gpt-admin-sidebar-title{text-transform:uppercase;letter-spacing:.05em;color:#8e8e8e;padding:0 10px 8px;font-size:11px;font-weight:600}.gpt-admin-nav-list{flex-direction:column;gap:2px;display:flex}.gpt-admin-nav-item{color:#666;text-align:left;cursor:pointer;background:0 0;border:none;border-radius:8px;align-items:center;gap:10px;width:100%;padding:8px 10px;font-size:13.5px;transition:all .15s;display:flex}.gpt-admin-nav-item:hover{color:#0d0d0d;background:#f3f3f3}.gpt-admin-nav-item.active{color:#0d0d0d;background:#ececec;font-weight:500}html.dark .gpt-admin-nav-item{color:#a3a3a3}html.dark .gpt-admin-nav-item:hover{color:#fff;background:#212121}html.dark .gpt-admin-nav-item.active{color:#fff;background:#262626}.gpt-admin-main{flex:1;max-width:1000px;padding:32px 40px;overflow-y:auto}.gpt-admin-panel{flex-direction:column;gap:24px;animation:fadeIn .15s ease-out;display:flex}.gpt-admin-panel-header{justify-content:space-between;align-items:flex-start;gap:20px;display:flex}.gpt-admin-panel-header h2{letter-spacing:-.02em;margin:0 0 4px;font-size:22px;font-weight:600}.gpt-admin-panel-header p{color:#71717a;margin:0;font-size:14px}html.dark .gpt-admin-panel-header p{color:#a1a1aa}.gpt-pill-btn{cursor:pointer;border:none;border-radius:9999px;align-items:center;gap:6px;height:38px;padding:0 16px;font-size:13.5px;font-weight:500;transition:all .15s;display:inline-flex}.gpt-pill-btn.primary{color:#fff;background:#10a37f}.gpt-pill-btn.primary:hover:not(:disabled){background:#0d8a6a}.gpt-pill-btn:disabled{opacity:.6;cursor:not-allowed}.gpt-admin-form-grid{background:var(--bg-modal,#fff);border:1px solid var(--border-color,#e4e4e7);border-radius:14px;flex-direction:column;gap:20px;padding:24px;display:flex}html.dark .gpt-admin-form-grid{background:#1e1e1e;border-color:#2e2e2e}.gpt-admin-form-group{flex-direction:column;gap:6px;display:flex}.gpt-admin-form-label{justify-content:space-between;align-items:center;display:flex}.gpt-admin-form-label label{color:var(--text-main,#18181b);font-size:13.5px;font-weight:500}.gpt-admin-form-label span{color:#71717a;font-size:12px}.gpt-admin-input-wrap{align-items:center;display:flex;position:relative}.gpt-admin-input-icon{color:#8e8e8e;pointer-events:none;position:absolute;left:14px}.gpt-admin-select-input,.gpt-admin-text-input{border:1px solid var(--border-color,#d4d4d8);background:var(--bg-modal,#fff);width:100%;height:44px;color:var(--text-main,#111);border-radius:10px;outline:none;padding:0 16px 0 40px;font-size:14px;transition:border-color .15s,box-shadow .15s}html.dark .gpt-admin-select-input,html.dark .gpt-admin-text-input{color:#f4f4f5;background:#141414;border-color:#333}.gpt-admin-select-input:focus,.gpt-admin-text-input:focus{border-color:#10a37f;box-shadow:0 0 0 2px #10a37f33}.gpt-admin-help-text{color:#71717a;margin:2px 0 0;font-size:12px}html.dark .gpt-admin-help-text{color:#8e8e8e}.text-success{font-weight:500;color:#10a37f!important}.text-warning{font-weight:500;color:#d97706!important}.gpt-admin-status-bar{color:#71717a;justify-content:space-between;align-items:center;padding:4px 4px 0;font-size:12.5px;display:flex}.gpt-admin-toast{border-radius:10px;align-items:center;gap:10px;padding:12px 16px;font-size:13.5px;animation:fadeIn .15s ease-out;display:flex}.gpt-admin-toast.success{color:#065f46;background:#ecfdf5;border:1px solid #a7f3d0}html.dark .gpt-admin-toast.success{color:#6ee7b7;background:#064e3b;border-color:#047857}.gpt-admin-toast.error{color:#991b1b;background:#fef2f2;border:1px solid #fecaca}html.dark .gpt-admin-toast.error{color:#fca5a5;background:#391515;border-color:#5c1d1d}.gpt-admin-table-container{background:var(--bg-modal,#fff);border:1px solid var(--border-color,#e4e4e7);border-radius:14px;overflow:hidden}html.dark .gpt-admin-table-container{background:#1e1e1e;border-color:#2e2e2e}.gpt-admin-table{border-collapse:collapse;text-align:left;width:100%;font-size:13.5px}.gpt-admin-table th{text-transform:uppercase;letter-spacing:.04em;color:#8e8e8e;border-bottom:1px solid var(--border-color,#e4e4e7);background:#fbfbfb;padding:12px 18px;font-size:12px;font-weight:600}html.dark .gpt-admin-table th{background:#18181b;border-bottom-color:#2e2e2e}.gpt-admin-table td{border-bottom:1px solid var(--border-color,#f4f4f5);vertical-align:middle;padding:14px 18px}html.dark .gpt-admin-table td{border-bottom-color:#27272a}.gpt-table-code{color:#666;font-family:monospace;font-size:12.5px}html.dark .gpt-table-code{color:#a1a1aa}.gpt-table-empty{text-align:center;color:#8e8e8e;padding:36px!important}.gpt-icon-action-btn{color:#71717a;cursor:pointer;background:0 0;border:none;border-radius:6px;justify-content:center;align-items:center;width:28px;height:28px;display:inline-flex}.gpt-icon-action-btn:hover{color:#111;background:#f4f4f5}.gpt-fetch-models-btn{color:#10a37f;cursor:pointer;background:0 0;border:1px solid #d4d4d8;border-radius:9999px;align-items:center;gap:5px;padding:3px 10px;font-size:11.5px;font-weight:500;transition:all .15s;display:inline-flex}.gpt-fetch-models-btn:hover:not(:disabled){background:#ecfdf5;border-color:#a7f3d0}.gpt-fetch-models-btn:disabled{opacity:.5;cursor:not-allowed}html.dark .gpt-fetch-models-btn{color:#34d399;border-color:#383838}html.dark .gpt-fetch-models-btn:hover:not(:disabled){background:#064e3b;border-color:#047857}.gpt-model-picker-area{border:1px solid var(--border-color,#e4e4e7);background:#fbfbfb;border-radius:10px;margin-top:10px;padding:12px}html.dark .gpt-model-picker-area{background:#141414;border-color:#27272a}.gpt-model-picker-title{color:#71717a;align-items:center;gap:6px;margin-bottom:8px;font-size:12px;font-weight:500;display:flex}html.dark .gpt-model-picker-title{color:#a1a1aa}.gpt-model-chips-container{flex-wrap:wrap;gap:6px;max-height:140px;padding-right:4px;display:flex;overflow-y:auto}.gpt-model-chip{border:1px solid var(--border-color,#d4d4d8);background:var(--bg-modal,#fff);color:var(--text-main,#111);cursor:pointer;border-radius:9999px;align-items:center;padding:4px 10px;font-size:12px;transition:all .15s;display:inline-flex}.gpt-model-chip:hover{background:#f4f4f5;border-color:#888}.gpt-model-chip.active{color:#065f46;background:#ecfdf5;border-color:#10a37f;font-weight:500}html.dark .gpt-model-chip{color:#e4e4e7;background:#1e1e1e;border-color:#333}html.dark .gpt-model-chip:hover{background:#27272a}html.dark .gpt-model-chip.active{color:#34d399;background:#064e3b;border-color:#047857}html{scroll-padding-top:88px}html:root body{background:var(--background);color:var(--foreground)}html:root :is(.lecture-sidebar,.mobile-sidebar){background:var(--surface-subtle);color:var(--foreground);border-color:var(--border)}html:root .workspace-header{background:var(--background);-webkit-backdrop-filter:none;backdrop-filter:none}html:root .input-section{background:var(--surface);border-color:var(--border);border-radius:16px;padding:28px;box-shadow:0 2px 10px #00000004}html:root .input-section h1{letter-spacing:-.025em;font-size:25px;font-weight:600}html:root :is(.workspace-title,.optional,.field-heading span,.form-footer,.empty-materials,.gpt-section-label,.gpt-empty-hint,.gpt-custom-select-label,.gpt-select-arrow){color:var(--muted-foreground)}html:root .empty-materials h2{color:var(--text-body)}html:root :is(.gpt-icon-btn,.gpt-rail-btn,.icon-button){color:var(--muted-foreground)}html:root :is(.gpt-nav-item,.gpt-chat-btn,.gpt-brand-row){color:var(--foreground)}html:root :is(.gpt-nav-item:hover,.gpt-chat-item:hover,.gpt-chat-item.active,.gpt-rail-btn:hover,.gpt-icon-btn:hover,.icon-button:hover){background:var(--surface-hover);color:var(--foreground)}html:root .gpt-search-wrapper{background:var(--muted)}html:root .gpt-sidebar-auth-footer{border-color:var(--border)}html:root .account-menu small{color:var(--muted-foreground);opacity:1}html:root .account-menu-error{color:var(--destructive)}html:root .gpt-popover-menu{border-color:var(--border);color:var(--foreground)}html:root .gpt-popover-menu button:hover{background:var(--surface-hover)}html:root .gpt-popover-menu button.danger{color:var(--destructive)}html:root .course-import{background:var(--surface-subtle);border-color:var(--border);border-radius:12px;padding:16px}html:root :is(.course-import-heading span,.course-import-note){color:var(--muted-foreground)}html:root :is(.course-import-heading>svg,.file-dropzone label svg){color:var(--accent)}html:root :is(.file-dropzone,.youtube-import input){background:var(--surface);border-color:var(--input);color:var(--foreground);border-radius:8px}html:root .file-dropzone label{color:var(--text-body)}html:root :is(.file-dropzone:hover,.file-dropzone:focus-within){background:var(--accent-soft);border-color:var(--accent)}html:root #lecture,html:root .text-field{color:var(--foreground);background:var(--surface);border:1px solid var(--input);box-shadow:none;border-radius:10px;transition:border-color .15s,box-shadow .15s}html:root .text-field{min-height:44px;padding:10px 14px}html:root #lecture{min-height:200px;padding:16px;line-height:1.8}html:root :is(.text-field:focus,#lecture:focus,.youtube-import input:focus){background:var(--surface);border-color:var(--ring);outline:2px solid var(--ring);outline-offset:2px}html:root input::placeholder,html:root textarea::placeholder{color:var(--muted-foreground);opacity:1}html:root :is(.gpt-custom-select-trigger,.gpt-settings-lang-trigger){color:var(--foreground);background:var(--surface);border-color:var(--input);box-shadow:none;border-radius:10px}html:root :is(.gpt-custom-select-menu,.gpt-settings-lang-menu){background:var(--surface);color:var(--foreground);border-color:var(--border)}html:root .gpt-custom-select-item{color:var(--foreground)}html:root :is(.gpt-custom-select-item:hover,.gpt-custom-select-item.selected){background:var(--accent-soft);color:var(--accent)}html:root :is(.gpt-check-icon,.gpt-settings-lang-item.selected,.gpt-theme-card.active){color:var(--accent);border-color:var(--accent)}html:root .history-dialog{color:var(--foreground);background:var(--surface);border-color:var(--border);border-radius:14px}html:root .history-dialog p{color:var(--muted-foreground)}html:root .notice.error,html:root .save-failed{color:var(--destructive)}html:root .notice.warning{color:var(--warning)}.study-sync{border:1px solid var(--border);background:var(--surface);color:var(--text-body);border-radius:12px;margin-bottom:18px;padding:14px 18px;font-size:13px}.study-sync-actions,.study-sync-heading,.study-sync-heading>div{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.study-sync-heading{justify-content:space-between}.study-sync-heading>div{min-width:0}.study-sync-owner{color:var(--muted-foreground);overflow-wrap:anywhere}.study-sync-message{border-top:1px solid var(--border);overflow-wrap:anywhere;margin-top:12px;padding-top:12px}.study-sync-message p{margin:0 0 10px}.study-sync-message strong{color:var(--foreground);margin-bottom:6px;display:block}.generation-job{border:1px solid var(--border);background:var(--surface);color:var(--text-body);overflow-wrap:anywhere;border-radius:12px;margin-top:20px;padding:16px}.generation-job-heading{align-items:flex-start;gap:10px;display:flex}.generation-job-heading>svg{flex-shrink:0;margin-top:3px}.generation-job-heading>div{min-width:0}.generation-job-heading strong{color:var(--foreground)}.generation-job p{margin:8px 0 0;font-size:14px;line-height:1.6}.generation-job-heading p{margin-top:4px}.generation-job-heading p span,.generation-job-note{color:var(--muted-foreground)}.generation-job-error{color:var(--foreground);border-left:3px solid;padding-left:10px}.generation-job-actions{flex-wrap:wrap;gap:8px;margin-top:12px;display:flex}.generation-job-actions:empty{display:none}.generation-job-actions>button{white-space:normal;height:auto;min-height:44px}@media (max-width:480px){.generation-job{padding:12px}.generation-job-actions>button{flex:auto}}@media (prefers-reduced-motion:reduce){.generation-job .animate-spin{animation:none}}@media (max-width:480px){.study-sync{padding:12px}.study-sync-actions>button{white-space:normal;height:auto;min-height:36px}}html:root :is(.gpt-auth-submit,.gpt-settings-done-btn,.gpt-pill-btn.primary){background:var(--primary);color:var(--primary-foreground);border-radius:10px}html:root :is(.gpt-auth-submit:hover,.gpt-settings-done-btn:hover,.gpt-pill-btn.primary:hover:not(:disabled)){background:var(--primary);opacity:.92}html:root .gpt-auth-box{max-width:400px}.account-back{color:var(--muted-foreground);gap:8px;font-size:13px;display:inline-flex}.account-back,.account-top{align-items:center;margin-bottom:28px}.account-top{justify-content:space-between;gap:12px;width:100%;max-width:400px;display:flex}.account-top .account-back{margin-bottom:0}.account-lang select{border:1px solid var(--border);background:var(--surface);height:34px;color:var(--foreground);border-radius:9px;padding:0 28px 0 10px;font-size:13px}.account-lang select:focus-visible{outline:2px solid var(--ring);outline-offset:2px}.account-label-row{justify-content:space-between;align-items:baseline;gap:12px;display:flex}.account-forgot{color:var(--accent);text-underline-offset:3px;font-size:12.5px;text-decoration:underline}.account-password{position:relative}.account-password input{padding-right:50px}.account-password button{width:42px;color:var(--muted-foreground);border-radius:6px;place-items:center;display:grid;position:absolute;inset:3px 3px 3px auto}.account-password button:hover{background:var(--surface-hover)}.gpt-auth-field small{color:var(--muted-foreground);font-size:12px}.account-switch{color:var(--muted-foreground);text-align:center;margin-top:22px;font-size:13px}.account-switch a{color:var(--accent);text-underline-offset:3px;text-decoration:underline}.account-legal{color:var(--muted-foreground);margin:0;font-size:12.5px;line-height:1.6}.account-legal a{color:var(--foreground);text-underline-offset:3px;text-decoration:underline}html:root .gpt-settings-dialog{height:min(520px,100dvh - 32px);box-shadow:0 24px 80px #0003}html:root .gpt-settings-content,html:root .gpt-theme-card{min-width:0}html:root :is(.gpt-admin-help-text,.gpt-admin-form-label span,.gpt-admin-status-bar,.gpt-admin-sidebar-title,.gpt-admin-table th,.gpt-table-empty){color:var(--muted-foreground)}html:root .gpt-fetch-models-btn{color:var(--accent)}html:root :is(.gpt-admin-topbar,.gpt-admin-sidebar){background:var(--surface-subtle);border-color:var(--border)}html:root :is(.gpt-admin-form-grid,.gpt-admin-table-container){background:var(--surface);border-color:var(--border)}html:root :is(.gpt-admin-text-input,.gpt-admin-select-input){background:var(--surface-subtle);color:var(--foreground);border-color:var(--input)}html:root :is(.gpt-admin-nav-item:hover,.gpt-admin-nav-item.active){background:var(--surface-hover);color:var(--foreground)}html:root .gpt-admin-logout-link{color:var(--destructive)}html:root .text-success{color:var(--accent)!important}html:root .text-warning{color:var(--warning)!important}html:root .gpt-admin-main{min-width:0}html:root .gpt-admin-form-label{flex-wrap:wrap;gap:8px}html:root .gpt-admin-table-container{overflow-x:auto}@media (max-width:767px){html:root .input-section{border-radius:14px;padding:20px}html:root .input-section h1{font-size:22px}.gpt-admin-layout{flex-direction:column}.gpt-admin-sidebar{border-right:0;border-bottom:1px solid var(--border);width:100%;padding:12px 16px}.gpt-admin-nav-list{flex-flow:wrap}.gpt-admin-nav-item{width:auto}.gpt-admin-topbar{flex-wrap:wrap;gap:12px;height:auto;min-height:54px;padding:12px 16px}.gpt-admin-main{padding:24px 16px}.gpt-admin-panel-header{flex-wrap:wrap}.gpt-admin-form-grid{padding:18px}}@media (max-width:540px){.gpt-settings-body{flex-direction:column;overflow-y:auto}.gpt-settings-tabs{border-right:0;border-bottom:1px solid var(--border);flex-direction:row;flex-shrink:0;width:100%;overflow-x:auto}.gpt-settings-tab-btn{white-space:nowrap;flex:1;justify-content:center;width:auto;padding:10px 8px}.gpt-settings-tab-btn svg{display:none}html:root .gpt-settings-content{padding:20px;overflow:visible}.gpt-setting-row{flex-wrap:wrap}.gpt-theme-grid{gap:8px}.gpt-theme-card{padding:14px 8px}}html:root .input-section h1{font-family:var(--font-display);letter-spacing:-.015em;font-size:30px;font-weight:400}@media (max-width:767px){html:root .input-section h1{font-size:25px}}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@keyframes spin{to{transform:rotate(1turn)}}:root{--ease-out:cubic-bezier(0.2,0,0,1);--ease-in-out:cubic-bezier(0.65,0,0.35,1);--ease-emphasized:cubic-bezier(0.3,0,0,1.15);--dur-fast:120ms;--dur-base:200ms;--dur-slow:320ms;--shimmer-base:var(--muted-foreground);--shimmer-highlight:var(--foreground);--skeleton:var(--muted);--skeleton-shine:color-mix(in srgb,var(--surface) 70%,transparent)}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes lumina-fade-up{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}@keyframes lumina-fade-down{0%{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}@keyframes lumina-scale-in{0%{opacity:0;transform:translateY(6px) scale(.97)}to{opacity:1;transform:none}}@keyframes lumina-slide-in-left{0%{opacity:0;transform:translateX(-100%)}to{opacity:1;transform:none}}@keyframes lumina-pop{0%{transform:scale(.6);opacity:0}60%{transform:scale(1.12);opacity:1}to{transform:scale(1)}}@keyframes lumina-shake{0%,to{transform:translateX(0)}20%{transform:translateX(-4px)}40%{transform:translateX(4px)}60%{transform:translateX(-2px)}80%{transform:translateX(2px)}}@keyframes lumina-shimmer-text{0%{background-position:150% 0}to{background-position:-50% 0}}@keyframes lumina-skeleton{0%{transform:translateX(-100%)}to{transform:translateX(100%)}}@keyframes lumina-pulse-ring{0%{box-shadow:0 0 0 0 color-mix(in srgb,var(--accent) 45%,transparent)}to{box-shadow:0 0 0 8px color-mix(in srgb,var(--accent) 0%,transparent)}}@keyframes lumina-draw{0%{stroke-dashoffset:24}to{stroke-dashoffset:0}}@keyframes lumina-card-next{0%{opacity:0;transform:translateX(28px) rotate(1.5deg)}to{opacity:1;transform:none}}@keyframes lumina-card-prev{0%{opacity:0;transform:translateX(-28px) rotate(-1.5deg)}to{opacity:1;transform:none}}.workspace-main>*{animation:lumina-fade-up var(--dur-slow) var(--ease-out) backwards}.workspace-main>:nth-child(2){animation-delay:40ms}.workspace-main>:nth-child(3){animation-delay:80ms}.workspace-main>:nth-child(n+4){animation-delay:.12s}[data-slot=button]{transition:background-color var(--dur-fast) var(--ease-out),color var(--dur-fast) var(--ease-out),border-color var(--dur-fast) var(--ease-out),box-shadow var(--dur-base) var(--ease-out),opacity var(--dur-fast),transform var(--dur-fast) var(--ease-out)}[data-slot=button]:active:not(:disabled){transform:scale(.97)}:is(.icon-button,.gpt-rail-btn,.gpt-icon-btn,.new-lecture,.gpt-nav-item,.gpt-chat-btn){transition:background-color var(--dur-fast) var(--ease-out),color var(--dur-fast) var(--ease-out),transform var(--dur-fast) var(--ease-out)}:is(.icon-button,.gpt-rail-btn,.gpt-icon-btn):active{transform:scale(.92)}html:root :is(.text-field,#lecture,.youtube-import input){transition:border-color var(--dur-base) var(--ease-out),box-shadow var(--dur-base) var(--ease-out),outline-color var(--dur-base) var(--ease-out),background-color var(--dur-base)}html:root :is(.text-field:focus,#lecture:focus,.youtube-import input:focus){box-shadow:0 0 0 4px color-mix(in srgb,var(--ring) 14%,transparent)}#lecture{transition-property:border-color,box-shadow,outline-color,background-color,height}.file-dropzone{transition:border-color var(--dur-base) var(--ease-out),background-color var(--dur-base) var(--ease-out),transform var(--dur-base) var(--ease-out),box-shadow var(--dur-base) var(--ease-out)}.file-dropzone label svg{transition:transform var(--dur-base) var(--ease-emphasized)}.file-dropzone:hover label svg{transform:translateY(-2px)}html:root .file-dropzone[data-dragging=true]{border-style:solid;border-color:var(--accent);background:var(--accent-soft);transform:scale(1.01);box-shadow:0 0 0 4px color-mix(in srgb,var(--accent) 12%,transparent)}.file-dropzone[data-dragging=true] label svg{transform:translateY(-3px) scale(1.1)}.explanation-enter,.generation-job,.notice,.study-sync-message{animation:lumina-fade-down var(--dur-base) var(--ease-out) backwards}:is(.history-dialog,.mobile-sidebar,.lumina-dialog){transition:opacity var(--dur-base) var(--ease-out),transform var(--dur-base) var(--ease-out),overlay var(--dur-base) allow-discrete,display var(--dur-base) allow-discrete}:is(.history-dialog,.lumina-dialog)[open]{opacity:1;transform:none}@starting-style{:is(.history-dialog,.lumina-dialog)[open]{opacity:0;transform:translateY(10px) scale(.98)}}.mobile-sidebar[open]{transform:none}@starting-style{.mobile-sidebar[open]{transform:translateX(-100%)}}dialog::backdrop{transition:background-color var(--dur-base) var(--ease-out),overlay var(--dur-base) allow-discrete,display var(--dur-base) allow-discrete}@starting-style{dialog[open]::backdrop{background-color:transparent}}.gpt-settings-dialog{animation:lumina-scale-in var(--dur-base) var(--ease-out) both}.gpt-chat-item,.history-item{animation:fadeIn var(--dur-base) var(--ease-out) backwards}.shimmer-text{background:linear-gradient(90deg,var(--shimmer-base) 0,var(--shimmer-base) 40%,var(--shimmer-highlight) 50%,var(--shimmer-base) 60%,var(--shimmer-base) 100%);background-size:250% 100%;-webkit-background-clip:text;background-clip:text;color:transparent;animation:lumina-shimmer-text 2.2s linear infinite}.gen-checklist-wrap{margin-top:14px}.gen-checklist{list-style:none;margin:0;padding:0;display:grid;gap:2px}.gen-check-row{display:flex;align-items:center;gap:12px;min-height:32px;font-size:14px;color:var(--muted-foreground);transition:color var(--dur-base)}.gen-check-row[data-state=active]{color:var(--foreground);font-weight:500}.gen-check-row[data-state=done]{color:var(--text-body)}.gen-check-row[data-state=error]{color:var(--destructive)}.gen-check{position:relative;display:grid;place-items:center;flex-shrink:0;width:22px;height:22px;border-radius:50%;border:1.5px solid var(--border);background:var(--surface);transition:background-color var(--dur-base),border-color var(--dur-base)}.gen-check svg{width:13px;height:13px;stroke-width:3;color:var(--surface);stroke-dasharray:24;animation:lumina-draw .36s var(--ease-out) both}.gen-check[data-state=done]{border-color:var(--accent);background:var(--accent);animation:lumina-pop .32s var(--ease-emphasized) both}.gen-check[data-state=error]{border-color:var(--destructive);background:var(--destructive)}.gen-check[data-state=active]{border-color:color-mix(in srgb,var(--accent) 25%,var(--border))}.gen-check[data-state=active]:after{content:"";position:absolute;inset:-1.5px;border-radius:50%;border:2px solid transparent;border-top:2px solid var(--accent);animation:lumina-spin .8s linear infinite}@keyframes lumina-spin{to{transform:rotate(1turn)}}.gen-check-row[data-state=active] .gen-check-label{background:linear-gradient(90deg,var(--foreground) 0,var(--foreground) 40%,var(--muted-foreground) 50%,var(--foreground) 60%,var(--foreground) 100%);background-size:250% 100%;-webkit-background-clip:text;background-clip:text;color:transparent;animation:lumina-shimmer-text 2.2s linear infinite}.gen-done{display:flex;align-items:center;gap:10px;margin:0 0 10px;font-size:14px;font-weight:500;color:var(--foreground);animation:lumina-fade-down var(--dur-base) var(--ease-out) backwards}.gen-checklist-wrap[data-status=done] .gen-checklist{display:grid;opacity:.75}.gen-progress-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:10px;font-size:12px;color:var(--muted-foreground);font-variant-numeric:tabular-nums}.gen-progress{margin-top:16px;padding-top:16px;animation:lumina-fade-down var(--dur-base) var(--ease-out) backwards}.gen-progress,.materials-skeleton{border-top:1px solid var(--border)}.materials-skeleton{padding-top:8px}.skeleton{position:relative;overflow:hidden;border-radius:8px;background:var(--skeleton)}.skeleton:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,transparent,var(--skeleton-shine),transparent);transform:translateX(-100%);animation:lumina-skeleton 1.6s var(--ease-in-out) infinite}.skeleton-title{width:46%;height:26px;margin:24px 0 14px}.skeleton-meta{width:30%;height:12px;margin-bottom:26px}.skeleton-tabs{height:54px;border-radius:12px;margin-bottom:30px}.skeleton-line{height:12px;margin-bottom:12px}.skeleton-line:nth-child(3n){width:88%}.skeleton-line:nth-child(3n+1){width:96%}.skeleton-line:nth-child(3n+2){width:72%}.skeleton-gap{height:18px}.empty-materials>svg{animation:lumina-fade-up var(--dur-slow) var(--ease-out) backwards}.empty-tabs span{transition:color var(--dur-base)}@media (prefers-reduced-motion:reduce){.shimmer-text{background:none;color:var(--foreground)}.gen-check,.gen-check svg,.gen-check-row[data-state=active] .gen-check-label,.gen-check[data-state=active]:after,.shimmer-text,.skeleton:after{animation:none}.gen-check-row[data-state=active] .gen-check-label{background:none;color:var(--foreground)}:is(.icon-button,.gpt-rail-btn,.gpt-icon-btn):active,[data-slot=button]:active:not(:disabled){transform:none}}:root{--sb-expanded:272px;--sb-rail:56px;--sb-ease:cubic-bezier(0.32,0.72,0,1);--sb-dur:300ms;--sb-bg:color-mix(in srgb,var(--background) 95%,var(--foreground) 5%);--sb-line:color-mix(in srgb,var(--foreground) 8%,transparent);--sb-hover:color-mix(in srgb,var(--foreground) 6%,transparent);--sb-active:color-mix(in srgb,var(--foreground) 10%,transparent);--sb-text:color-mix(in srgb,var(--foreground) 82%,var(--background));--sb-shadow:0 1px 2px #0000000d,0 12px 40px #0000001f}html.dark{--sb-bg:color-mix(in srgb,var(--background) 82%,#000);--sb-line:color-mix(in srgb,var(--foreground) 10%,transparent);--sb-hover:color-mix(in srgb,var(--foreground) 7%,transparent);--sb-active:color-mix(in srgb,var(--foreground) 12%,transparent);--sb-shadow:0 1px 2px #0000004d,0 16px 48px #00000080}html:root .lecture-sidebar{width:var(--sb-expanded);background:var(--sb-bg);border-right:0;box-shadow:inset -1px 0 0 var(--sb-line);transition:width var(--sb-dur) var(--sb-ease);overflow:hidden}html:root .lecture-sidebar.rail{width:var(--sb-rail)}html:root .lecture-sidebar:has(.is-peek){overflow:visible;z-index:80}html:root .workspace{margin-left:var(--sb-expanded);transition:margin-left var(--sb-dur) var(--sb-ease)}html:root .sidebar-collapsed .workspace{margin-left:var(--sb-rail)}@media (max-width:767px){html:root .sidebar-collapsed .workspace,html:root .workspace{margin-left:0}}html:root .gpt-rail-content{width:var(--sb-rail);padding:10px 8px 12px;align-items:center;transform:none;opacity:0;transition:opacity 90ms linear}html:root .gpt-sidebar-container.is-collapsed .gpt-rail-content{opacity:1;transform:none;transition:opacity .18s ease-out .13s}html:root .gpt-expanded-content{width:var(--sb-expanded);padding:10px;transform:none;opacity:1;transition:opacity .22s ease-out 80ms}html:root .gpt-sidebar-container.is-collapsed .gpt-expanded-content{opacity:0;transform:none;transition:opacity .1s ease-out}html:root .gpt-sidebar-container.is-collapsed.is-peek .gpt-expanded-content{top:8px;left:8px;height:calc(100% - 16px);border-radius:16px;background:var(--sb-bg);box-shadow:var(--sb-shadow),inset 0 0 0 1px var(--sb-line);opacity:1;pointer-events:auto;transform:none;transition:opacity .18s ease-out,transform .26s var(--sb-ease)}@starting-style{html:root .gpt-sidebar-container.is-collapsed.is-peek .gpt-expanded-content{opacity:0;transform:translateX(-10px)}}html:root .gpt-rail-btn{width:40px;height:40px;border-radius:10px;color:var(--muted-foreground)}html:root .gpt-rail-btn.is-active,html:root .gpt-rail-btn:hover{background:var(--sb-hover);color:var(--foreground)}.gpt-rail-icons{gap:4px;margin-top:10px;flex:1}.gpt-rail-footer{display:flex;flex-direction:column;align-items:center;gap:6px}.gpt-rail-btn.brand{position:relative}.gpt-rail-btn.brand :is(.sb-logo,.sb-expand-icon){transition:opacity .15s ease-out,transform .2s var(--sb-ease)}.gpt-rail-btn.brand .sb-expand-icon{position:absolute;opacity:0;transform:scale(.8)}.gpt-rail-btn.brand:is(:hover,:focus-visible) .sb-logo{opacity:0;transform:scale(.8)}.gpt-rail-btn.brand:is(:hover,:focus-visible) .sb-expand-icon{opacity:1;transform:none}html:root .gpt-rail-btn.sb-new:hover{background:transparent}.sb-new-dot{display:inline-grid;place-items:center;width:26px;height:26px;flex-shrink:0;border-radius:50%;background:var(--accent);color:var(--surface);transition:transform .2s var(--sb-ease),box-shadow .2s}:is(.gpt-nav-item.primary,.gpt-rail-btn.sb-new):hover .sb-new-dot{transform:rotate(90deg) scale(1.06);box-shadow:0 0 0 4px color-mix(in srgb,var(--accent) 16%,transparent)}:is(.gpt-nav-item.primary,.gpt-rail-btn.sb-new):active .sb-new-dot{transform:rotate(90deg) scale(.94)}html:root .gpt-brand-row{padding:0 0 12px 9px;min-height:40px}.gpt-brand-lockup img{border-radius:7px}html:root .gpt-brand-lockup{gap:10px}html:root .gpt-brand-title{font-size:15.5px;font-weight:600;letter-spacing:-.015em}html:root .gpt-icon-btn{width:36px;height:36px;border-radius:10px;color:var(--muted-foreground)}html:root .gpt-icon-btn:hover{background:var(--sb-hover);color:var(--foreground)}.gpt-nav-actions{display:grid;gap:2px;margin-bottom:14px}html:root .gpt-nav-item{gap:10px;min-height:38px;padding:0 8px 0 7px;border-radius:10px;font-size:14px;color:var(--sb-text);transition:background-color .12s ease-out,color .12s}html:root .gpt-nav-item>svg{width:26px;flex-shrink:0}html:root .gpt-nav-item:hover{background:var(--sb-hover);color:var(--foreground)}html:root .gpt-nav-item.primary{color:var(--foreground);font-weight:500}html:root .gpt-nav-item.primary:hover{background:transparent}html:root .gpt-nav-item.primary:hover>span:last-child{color:var(--accent)}html:root .gpt-search-wrapper{gap:10px;margin:0;padding:0 8px 0 7px;height:38px;border-radius:10px;border:1px solid transparent;background:transparent;cursor:text;transition:border-color .15s,background-color .15s,box-shadow .15s}html:root .gpt-search-wrapper>svg{width:26px;color:var(--muted-foreground)}html:root .gpt-search-wrapper:hover{background:var(--sb-hover)}html:root .gpt-search-wrapper:focus-within{background:var(--surface);border-color:var(--sb-line);box-shadow:0 0 0 3px color-mix(in srgb,var(--ring) 16%,transparent)}html:root .gpt-search-wrapper input{height:36px;padding:0;font-size:14px;color:var(--foreground)}html:root .gpt-search-wrapper input::placeholder{color:var(--sb-text)}html:root .gpt-search-wrapper input:focus-visible{outline:none}html:root .gpt-history-scroll{margin:0 -10px;padding:0 10px 12px;scrollbar-width:thin;scrollbar-color:transparent transparent;mask-image:linear-gradient(180deg,#000 calc(100% - 28px),transparent)}html:root .gpt-history-scroll:hover{scrollbar-color:var(--sb-line) transparent}.gpt-history-group+.gpt-history-group{margin-top:16px}html:root .gpt-section-label{position:sticky;top:0;z-index:1;padding:4px 9px 6px;font-size:12px;font-weight:500;color:var(--muted-foreground);background:var(--sb-bg)}html:root .gpt-chat-list{gap:1px}html:root .gpt-chat-item{border-radius:9px;background:transparent;transition:background-color .12s ease-out}html:root .gpt-chat-item:hover{background:var(--sb-hover)}html:root .gpt-chat-item.active{background:var(--sb-active)}html:root .gpt-chat-item.menu-open{z-index:5;background:var(--sb-hover)}html:root .gpt-chat-btn{min-height:34px;padding:0 4px 0 9px;font-size:13.5px;color:var(--sb-text)}html:root .gpt-chat-item.active .gpt-chat-btn{color:var(--foreground)}html:root .gpt-chat-btn span{text-overflow:clip;mask-image:linear-gradient(90deg,#000 calc(100% - 20px),transparent)}html:root :is(.gpt-chat-item:hover,.gpt-chat-item:focus-within,.gpt-chat-item.menu-open) .gpt-chat-btn span{mask-image:linear-gradient(90deg,#000 calc(100% - 36px),transparent calc(100% - 8px))}html:root .gpt-item-more{width:28px;height:28px;margin-right:3px;border-radius:7px;color:var(--muted-foreground);opacity:0;transition:opacity .12s,background-color .12s}html:root :is(.gpt-chat-item:hover,.gpt-chat-item:focus-within,.gpt-chat-item.menu-open) .gpt-item-more{opacity:1}html:root .gpt-item-more:hover,html:root .gpt-item-more[aria-expanded=true]{background:var(--sb-active);color:var(--foreground)}@media (hover:none){html:root .gpt-item-more{opacity:1}}html:root .gpt-popover-menu{right:2px;min-width:164px;padding:5px;border-radius:12px;border:1px solid var(--sb-line);background:var(--surface);box-shadow:var(--sb-shadow);transform-origin:top right;animation:sb-menu-in .16s var(--sb-ease) both}html:root .gpt-popover-menu button{gap:10px;padding:8px 10px;font-size:13px;border-radius:8px;color:var(--foreground)}html:root .gpt-popover-menu button svg{color:var(--muted-foreground)}html:root .gpt-popover-menu button:hover{background:var(--sb-hover)}html:root .gpt-popover-menu button.danger,html:root .gpt-popover-menu button.danger svg{color:var(--destructive)}html:root .gpt-popover-menu button.danger:hover{background:var(--error-soft)}@keyframes sb-menu-in{0%{opacity:0;transform:translateY(-4px) scale(.96)}to{opacity:1;transform:none}}html:root .gpt-empty-hint{padding:24px 12px;font-size:13px;color:var(--muted-foreground);text-align:left}html:root .gpt-sidebar-auth-footer{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:2px;margin:6px 0 0;padding:6px 0 0;border-top:0;box-shadow:0 -1px 0 var(--sb-line)}html:root .gpt-sidebar-auth-footer .account-menu{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:2px;row-gap:0;min-width:0;padding:4px;border-radius:12px;transition:background-color .12s}html:root .gpt-sidebar-auth-footer .account-menu:has(.account-identity):hover{background:var(--sb-hover)}html:root .gpt-sidebar-auth-footer .account-identity{grid-column:1;grid-row:1;gap:10px;padding:2px 3px;font-size:13.5px;font-weight:500;color:var(--foreground)}html:root :is(.gpt-sidebar-auth-footer,.gpt-rail-footer) .account-identity>svg{width:30px;height:30px;padding:6px;flex-shrink:0;border-radius:50%;background:var(--accent-soft);color:var(--accent)}html:root .gpt-sidebar-auth-footer .account-menu small{grid-column:1;grid-row:2;margin-top:-8px;padding:0 0 2px 43px;font-size:11.5px;color:var(--muted-foreground);opacity:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}html:root .gpt-sidebar-auth-footer .account-menu>button.gpt-nav-item{grid-column:2;grid-row:1/span 2;width:34px;min-height:34px;padding:0;justify-content:center;color:var(--muted-foreground)}html:root .gpt-sidebar-auth-footer .account-menu>button.gpt-nav-item>span{display:none}html:root .gpt-sidebar-auth-footer .account-menu>button.gpt-nav-item>svg{width:17px}html:root .gpt-sidebar-auth-footer .account-menu>a.gpt-nav-item{grid-column:1/-1;justify-content:center;gap:8px;min-height:36px;border:1px solid var(--sb-line);background:var(--surface);color:var(--foreground);font-weight:500;font-size:13.5px}html:root .gpt-sidebar-auth-footer .account-menu>a.gpt-nav-item>svg{width:16px}html:root .gpt-sidebar-auth-footer .account-menu>a.gpt-nav-item:hover{border-color:var(--accent);color:var(--accent);background:var(--surface)}html:root .gpt-sidebar-auth-footer .account-menu>a.gpt-nav-item~small{grid-column:1/-1;grid-row:auto;margin:6px 0 0;padding:0 4px;text-align:center}html:root .gpt-sidebar-auth-footer .account-menu-error{grid-column:1/-1}.gpt-footer-user-row{align-self:start;padding-top:4px}html:root .gpt-footer-user-row .gpt-nav-item{width:36px;min-height:36px;padding:0;justify-content:center;color:var(--muted-foreground)}html:root .gpt-footer-user-row .gpt-nav-item>span{display:none}html:root .gpt-footer-user-row .gpt-nav-item>svg{width:18px}html:root .gpt-footer-user-row .gpt-nav-item:hover{color:var(--foreground)}.gpt-footer-user-row .gpt-nav-item>svg{transition:transform .4s var(--sb-ease)}.gpt-footer-user-row .gpt-nav-item:hover>svg{transform:rotate(45deg)}html:root .gpt-rail-footer .account-identity{padding:0}html:root .mobile-sidebar{position:fixed;inset:0 auto 0 0;margin:0;padding:0;width:min(300px,calc(100% - 44px));height:100dvh;max-height:100dvh;border:0;transform:translateX(-100%);background:var(--sb-bg);box-shadow:var(--sb-shadow);transition:transform .3s var(--sb-ease),overlay .3s allow-discrete,display .3s allow-discrete}html:root .mobile-sidebar[open]{transform:none}@starting-style{html:root .mobile-sidebar[open]{transform:translateX(-100%)}}html:root .mobile-sidebar .gpt-expanded-content{width:100%}.mobile-sidebar::backdrop{background:#0000;backdrop-filter:blur(0);transition:background-color .3s,backdrop-filter .3s,overlay allow-discrete .3s,display allow-discrete .3s}.mobile-sidebar[open]::backdrop{background:#00000047;backdrop-filter:blur(2px)}@starting-style{.mobile-sidebar[open]::backdrop{background:#0000;backdrop-filter:blur(0)}}@media (prefers-reduced-motion:reduce){html:root :is(.lecture-sidebar,.workspace,.gpt-rail-content,.gpt-expanded-content,.mobile-sidebar,.sb-new-dot){transition:none}html:root .gpt-popover-menu{animation:none}}html:root .gpt-nav-item.sb-prep{margin-top:2px}html:root .gpt-nav-item.sb-prep.is-active{background:var(--sb-active);color:var(--foreground);font-weight:500}html:root .workspace-main.prep-main{max-width:1180px}.sb-plan{display:flex;align-items:center;gap:10px;margin:8px 0 6px;padding:10px 12px;border:1px solid var(--sb-line);border-radius:12px;background:var(--surface);color:var(--foreground);text-decoration:none;transition:border-color .15s,background-color .15s,transform .15s}.sb-plan:hover{border-color:color-mix(in srgb,var(--foreground) 30%,var(--sb-line))}.sb-plan:active{transform:scale(.99)}.sb-plan>svg{flex-shrink:0;color:var(--accent)}.sb-plan-text{display:grid;min-width:0;line-height:1.35}.sb-plan-text strong{font-size:13.5px;font-weight:600}.sb-plan-text small{font-size:11.5px;color:var(--muted-foreground);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sb-plan.is-pro{background:transparent;border-color:transparent;padding:6px 12px}.sb-plan.is-active,.sb-plan.is-pro:hover{background:var(--sb-hover)}.sb-legal{display:flex;flex-wrap:wrap;gap:2px 12px;padding:6px 12px 2px;font-size:11.5px}.sb-legal a{color:var(--muted-foreground)}.sb-legal a:focus-visible,.sb-legal a:hover{color:var(--foreground);text-decoration:underline;text-underline-offset:2px}html:root .study-sync:not(:has(.study-sync-message)){margin:-8px 0 20px;padding:0 2px;border-color:transparent;background:transparent;color:var(--muted-foreground);font-size:12.5px}html:root .study-sync:not(:has(.study-sync-message)) svg{width:15px;height:15px}html:root .study-sync:not(:has(.study-sync-message)) [data-slot=button]{height:30px;padding:0 10px;font-size:12.5px;color:var(--muted-foreground)}html:root .study-sync:not(:has(.study-sync-message)) [data-slot=button]:hover{color:var(--foreground)}html:root .input-section.composer{padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;margin-bottom:44px}.composer-intro{margin:8px 0 24px}html:root .composer-intro h1{margin:0;font-family:var(--font-display);font-weight:400;font-size:36px;line-height:1.2;letter-spacing:-.015em}.composer-intro p{max-width:62ch;margin:10px 0 0;color:var(--text-body);font-size:15px;line-height:1.7}html:root .composer .lecture-fields{display:block}.composer-fields{display:contents;border:0;margin:0;padding:0;min-width:0}.composer-box{position:relative;border:1px solid var(--border);border-radius:20px;background:var(--surface);box-shadow:0 1px 2px #0000000a,0 8px 28px #0000000a;transition:border-color .2s,box-shadow .2s}.composer-box:focus-within{border-color:color-mix(in srgb,var(--ring) 55%,var(--border));box-shadow:0 0 0 4px color-mix(in srgb,var(--ring) 10%,transparent),0 8px 28px #0000000f}html:root .composer-title{display:block;width:100%;padding:20px 22px 2px;border:0;outline:0;background:transparent;color:var(--foreground);font-size:17px;font-weight:600;letter-spacing:-.01em}html:root .composer-title::placeholder{color:color-mix(in srgb,var(--muted-foreground) 75%,transparent);font-weight:500}html:root .composer-box #lecture{display:block;width:100%;min-height:200px;padding:8px 22px 14px;border:0;border-radius:0;outline:0;box-shadow:none;background:transparent;color:var(--foreground);font-size:15.5px;line-height:1.75;resize:none}html:root .composer-box #lecture:focus{outline:0;box-shadow:none}html:root .composer-box :is(#lecture,.composer-title):disabled{opacity:.7}.composer-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:10px 12px 12px 22px}.composer-count{font-size:12px;color:var(--muted-foreground);font-variant-numeric:tabular-nums}.composer-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}html:root .composer-actions .gpt-custom-select-container{width:auto;min-width:150px}html:root .composer-actions .gpt-custom-select-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}html:root .composer-actions .gpt-custom-select-trigger{height:40px;border-radius:12px;font-size:13.5px}html:root .composer-actions .gpt-custom-select-menu{bottom:calc(100% + 6px);top:auto}html:root .composer-actions [data-slot=button]{height:40px;border-radius:12px;padding:0 16px;white-space:nowrap}html:root .composer-submit{padding:0 18px}.composer-drop{position:absolute;inset:6px;z-index:2;display:flex;align-items:center;justify-content:center;gap:10px;border:1.5px dashed var(--accent);border-radius:16px;background:color-mix(in srgb,var(--accent-soft) 92%,transparent);color:var(--accent);font-weight:500;font-size:14px;pointer-events:none;animation:fadeIn .15s ease-out}.composer-drop svg{width:18px;height:18px}html:root .composer .course-import{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:14px 0 0;padding:0 4px;border:0;border-radius:0;background:transparent;min-width:0}.course-import-label{font-size:13px;color:var(--muted-foreground);margin-right:2px}html:root .composer .file-dropzone{min-height:0;border:0;background:transparent}html:root .composer .file-dropzone label{width:auto;height:38px;gap:8px;padding:0 14px;border:1px solid var(--border);border-radius:999px;background:var(--surface);color:var(--foreground);font-size:13px;font-weight:500;transition:border-color .15s,background-color .15s}html:root .composer .file-dropzone label span{color:var(--muted-foreground);font-weight:400;font-size:12px}html:root .composer .file-dropzone label svg{width:15px;height:15px;color:var(--muted-foreground)}html:root .composer .file-dropzone:focus-within label,html:root .composer .file-dropzone:hover label{border-color:var(--input);background:var(--surface-hover)}html:root .composer .file-dropzone:focus-within label{outline:2px solid var(--ring);outline-offset:2px}html:root .composer .file-dropzone:is(:hover,:focus-within){background:transparent}html:root .composer .youtube-import{display:flex;align-items:center;gap:6px;flex:1 1 320px;min-width:0;max-width:520px;height:38px;padding:0 3px 0 14px;border:1px solid var(--border);border-radius:999px;background:var(--surface);transition:border-color .15s,box-shadow .15s}html:root .composer .youtube-import:focus-within{border-color:var(--ring);box-shadow:0 0 0 3px color-mix(in srgb,var(--ring) 14%,transparent)}html:root .composer .youtube-import>svg{width:15px;height:15px;flex-shrink:0;color:var(--muted-foreground)}html:root .composer .youtube-import input{flex:1;min-width:0;height:100%;padding:0 4px;border:0;outline:0;box-shadow:none;background:transparent;font-size:13px;color:var(--foreground)}html:root .composer .youtube-import input:focus{outline:0;box-shadow:none}html:root .composer .youtube-import [data-slot=button]{height:30px;min-height:0;padding:0 12px;border-radius:999px;font-size:12.5px}html:root .composer .form-footer{margin-top:16px;padding:0 4px}html:root .composer .notice.error{margin-top:14px}html:root .empty-materials{border-top:0;padding:0;text-align:left;color:var(--text-body)}html:root .empty-materials h2{margin:0;font-family:var(--font-display);font-size:22px;font-weight:400;color:var(--foreground)}.empty-lead{margin:6px 0 16px;color:var(--muted-foreground);font-size:14px}.empty-grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,150px),1fr));gap:12px}.empty-grid li{display:grid;gap:6px;align-content:start;padding:18px;border:1px solid var(--border);border-radius:16px;background:var(--surface)}.empty-grid svg{width:20px;height:20px;margin-bottom:6px;color:var(--muted-foreground);stroke-width:1.6}.empty-grid strong{font-size:14px;font-weight:600;color:var(--foreground)}.empty-grid span{font-size:13px;line-height:1.6}.empty-foot,.empty-grid span{color:var(--muted-foreground)}.empty-foot{margin:14px 0 0;font-size:12.5px}@media (max-width:767px){html:root .composer-intro h1{font-size:28px}.composer-bar{padding:10px 12px 12px 16px}html:root .composer-title{padding:16px 16px 2px}html:root .composer-box #lecture{padding:8px 16px 12px}.composer-actions{width:100%}html:root .composer-actions .gpt-custom-select-container{flex:1}html:root .composer .youtube-import{max-width:none}}@media (max-width:430px){html:root .composer-submit{flex:1}}.notice-link,.usage-hint a{color:var(--foreground);font-weight:500;text-decoration:underline;text-decoration-color:var(--border);text-underline-offset:3px}.notice-link:hover,.usage-hint a:hover{text-decoration-color:currentColor}.usage-pro{display:inline-block;padding:0 7px;border-radius:999px;border:1px solid var(--border);font-size:11px;font-weight:600;letter-spacing:.02em;color:var(--foreground)}