:root{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#17243a;background:#f4f7fb;font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-width:1080px}button,input,textarea{font:inherit}button,label{cursor:pointer}.app-shell{min-height:100vh;padding:28px 36px}.auth-loading,.login-page{min-height:100vh}.auth-loading{display:grid;place-items:center;color:#64748b}.login-page{display:grid;place-items:center;padding:32px;background:#eef2f7}.login-panel{display:grid;width:min(380px,100%);gap:16px;padding:28px;border:1px solid #dbe4f1;border-radius:8px;background:#fff;box-shadow:0 18px 50px #17243a1a}.login-panel h1{margin-bottom:8px}.login-panel label{display:grid;gap:7px;color:#52647f;font-size:13px;font-weight:700}.login-panel input{width:100%;padding:11px 12px;color:#17243a;border:1px solid #cbd7e7;border-radius:7px;outline:0}.login-panel input:focus{border-color:#3974d9;box-shadow:0 0 0 3px #3974d919}.login-panel .primary-button{width:100%}.login-error{color:#b42318;font-size:13px}.user-actions{display:flex;height:42px;align-items:center;gap:8px;margin-left:4px;padding-left:14px;border-left:1px solid #d5dfed}.user-avatar{display:grid;width:30px;height:30px;place-items:center;color:#fff;border-radius:50%;background:#52647f;font-size:12px;font-weight:800}.current-user{max-width:120px;overflow:hidden;color:#334155;font-size:13px;font-weight:700;text-overflow:ellipsis;white-space:nowrap}.logout-button{height:34px;padding:0 12px;color:#64748b;white-space:nowrap;border:1px solid #d5dfed;border-radius:7px;background:#fff}.logout-button:hover{color:#b42318;border-color:#efb8b3;background:#fff7f6}.logout-button:disabled,.upload-button.disabled{opacity:.5;cursor:wait;pointer-events:none}.module-nav{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}.module-nav button{height:42px;padding:0 18px;white-space:nowrap;color:#64748b;border:1px solid #d5dfed;border-radius:9px;background:#fff}.module-nav button.active{color:#fff;border-color:#3974d9;background:#3974d9}.module-nav button:disabled{opacity:.45;cursor:not-allowed}.topbar{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px}.top-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:10px}.close-button{color:#52647f;border:1px solid #d4dfef;border-radius:9px;padding:4px 10px;font-size:22px;background:#fff}.eyebrow{color:#3974d9;font-size:11px;letter-spacing:.13em;font-weight:700}h1,h2,p{margin:0}h1{margin-top:4px;font-size:24px}h2{margin-top:5px;font-size:19px}.upload-button,.primary-button{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:9px;padding:11px 18px;color:#fff;background:#3974d9;font-weight:700}.top-actions .upload-button{height:42px;padding-top:0;padding-bottom:0;white-space:nowrap}.primary-button:disabled{opacity:.55;cursor:not-allowed}input[type=file]{display:none}.empty-state{display:grid;place-items:center;gap:14px;min-height:680px;padding:60px;text-align:center;border:1px dashed #b8c8e3;border-radius:18px;background:#fff}.settings-panel{margin:-8px 0 20px;padding:18px 20px;border:1px solid #dbe4f1;border-radius:14px;background:#fff;box-shadow:0 8px 30px #314c7610}.settings-heading{display:flex;align-items:center;justify-content:space-between}.settings-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px 18px;margin-top:15px}.settings-grid label{display:grid;gap:6px;color:#64748b;font-size:12px;font-weight:700}.settings-grid input,.settings-grid select{min-width:0;padding:9px 10px;color:#17243a;border:1px solid #d5dfed;border-radius:8px;background:#fff}.settings-grid input[type=range]{padding:5px 0}.settings-grid output{margin-left:5px;color:#3974d9;font-weight:400}.settings-grid .wide{grid-column:span 2}.settings-note{margin-top:12px;color:#8995a8;font-size:12px}.avatar-gallery{margin-top:18px;padding-top:16px;border-top:1px solid #edf1f7}.gallery-heading{display:flex;gap:12px;align-items:baseline}.gallery-heading span{color:#8995a8;font-size:12px}.avatar-gallery__grid{display:grid;grid-template-columns:repeat(7,minmax(70px,1fr));gap:10px;margin-top:12px}.avatar-gallery__grid button{padding:5px;overflow:hidden;color:#53637c;border:1px solid #e0e7f1;border-radius:9px;background:#f6f9fd}.avatar-gallery__grid button.active{border-color:#3974d9;box-shadow:0 0 0 2px #3974d922}.avatar-gallery__grid video{display:block;width:100%;height:82px;object-fit:cover;object-position:center top;background:#16d41b;border-radius:5px}.avatar-gallery__grid span{display:block;padding:5px 2px 2px;overflow:hidden;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.empty-state p{max-width:560px;color:#6d7d96;line-height:1.7}.empty-icon{display:grid;place-items:center;width:76px;height:92px;color:#3974d9;border:3px solid #3974d9;border-radius:9px;font-weight:800;transform:rotate(-5deg)}.workspace{display:block;min-height:560px;overflow:hidden}.page-list,.editor-panel,.digital-human{min-width:0;border:1px solid #dbe4f1;border-radius:14px;background:#fff;box-shadow:0 8px 30px #314c7610}.page-list{padding:14px 10px;overflow:auto}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:8px 10px 14px}.panel-heading span{color:#7d8ba1;font-size:12px}.page-list button{display:flex;gap:10px;width:100%;margin:3px 0;padding:11px 10px;color:#53637c;text-align:left;border:0;border-radius:8px;background:transparent}.page-list button.active{color:#245bb6;background:#edf4ff}.page-list button span{color:#9aa7ba;font-variant-numeric:tabular-nums}.page-list button b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.editor-panel{padding:18px}.ghost-button{padding:9px 12px;color:#245bb6;border:1px solid #c8d9f2;border-radius:8px;background:#f4f8ff}.pdf-preview{display:grid;place-items:center;height:420px;margin:2px 0 18px;overflow:auto;background:#edf1f7;border-radius:9px}.pdf-preview canvas{max-width:94%;max-height:96%;box-shadow:0 5px 18px #13274a25}.field-label{display:grid;gap:6px;margin-top:12px;color:#64748b;font-size:12px;font-weight:700}.field-label input,.field-label textarea{width:100%;padding:10px 12px;color:#17243a;border:1px solid #d5dfed;border-radius:8px;outline:0;resize:vertical}.field-label input:focus,.field-label textarea:focus{border-color:#3974d9}.editor-footer{display:flex;align-items:center;justify-content:space-between;margin-top:16px;color:#8995a8;font-size:12px}.digital-human{position:relative;display:flex;flex-direction:column;min-height:0;overflow:hidden;background:linear-gradient(160deg,#edf5ff,#d9ecff)}.digital-human__stage{position:relative;flex:1;min-height:600px}.digital-human iframe{width:100%;height:100%;border:0;opacity:.98}.digital-human__loading{position:absolute;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;color:#637797;background:#e8f1ffcc}.digital-human__caption{position:absolute;right:12px;bottom:52px;left:12px;max-height:145px;overflow:auto;padding:10px;color:#fff;line-height:1.55;text-align:center;border-radius:8px;background:#12213dcc}.digital-human__bar{display:flex;align-items:center;gap:8px;min-height:44px;padding:0 12px;color:#536783;font-size:12px;background:#ffffffd9}.status-dot{width:8px;height:8px;border-radius:50%;background:#8da0b8}.speaking .status-dot{background:#2f79e6;box-shadow:0 0 0 5px #2f79e622}.digital-human__bar button{margin-left:auto;color:#245bb6;border:0;background:transparent}.digital-human__error{padding:20px;color:#9f3a38;text-align:center}.page-actions,.tour-controls{display:flex;gap:8px;align-items:center}.danger-button{padding:9px 12px;color:#c24141;border:1px solid #f0c9c9;border-radius:8px;background:#fff7f7}.lecture-page{min-height:760px;background:#fff}.lecture-page__header,.lecture-page__info{display:flex;align-items:center;justify-content:space-between;gap:16px}.lecture-page__document{min-width:0}.lecture-page__document>span{color:#79a7f2;font-size:10px;font-weight:800;letter-spacing:.13em}.lecture-page__document h2{overflow:hidden;color:#f8fafc;text-overflow:ellipsis;white-space:nowrap}.lecture-page__preview{display:grid;place-items:center;overflow:hidden;background:#17191d}.lecture-page__preview canvas{display:block;width:auto;height:auto;max-width:100%;max-height:100%;background:#fff;box-shadow:0 20px 60px #0008}.lecture-page__meta{display:flex;min-width:0;align-items:center;gap:14px}.lecture-page__meta strong{color:#f8fafc;font-size:13px;font-variant-numeric:tabular-nums;letter-spacing:.04em;white-space:nowrap}.lecture-page__meta strong i{color:#718096;font-style:normal}.lecture-page__meta span{overflow:hidden;color:#c4cad3;font-size:13px;text-overflow:ellipsis;white-space:nowrap}.lecture-page__back,.lecture-page__start{border-radius:8px;font-weight:700;box-shadow:0 10px 28px #0005}.lecture-page__back{padding:10px 14px;color:#edf2f7;border:1px solid #ffffff2e;background:#20242bd9}.lecture-page__start{padding:13px 20px;color:#fff;border:1px solid #5f97ed;background:#3974d9}.script-history{display:grid;gap:6px;margin:2px 4px 16px;color:#64748b;font-size:12px;font-weight:700}.script-history__list{display:grid;gap:5px;max-height:220px;overflow-y:auto}.page-list .script-history__list button{display:grid;gap:4px;margin:0;padding:9px 10px;border:1px solid #e0e7f1;background:#f8fafc}.page-list .script-history__list button.active{border-color:#8db4ec;background:#edf4ff}.script-history__list button b{color:#334155}.script-history__list button span{overflow:hidden;color:#8995a8;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.script-history__empty{padding:12px 10px;color:#94a3b8;text-align:center;border:1px dashed #d5dfed;border-radius:8px;font-weight:400}.tour-overlay{position:fixed;right:24px;bottom:18px;z-index:20;pointer-events:none}.tour-overlay__host{display:flex;width:365px;align-items:center;flex-direction:column}.tour-overlay .digital-human{width:365px;height:min(680px,calc(100vh - 84px));pointer-events:auto;border:0;border-radius:0;background:transparent;box-shadow:none}.tour-overlay .digital-human__stage{min-height:0;background:transparent}.tour-overlay .digital-human iframe,.tour-overlay .digital-human__loading{background:transparent}.tour-overlay .digital-human__caption,.tour-overlay .digital-human__bar{display:none}.tour-overlay__subtitle{position:fixed;bottom:36px;left:50%;width:fit-content;max-width:min(720px,calc(100vw - 440px));padding:10px 14px;color:#fff;font-size:16px;line-height:26px;text-align:center;pointer-events:none;border:1px solid #ffffff33;border-radius:8px;background:#0f172ad6;box-shadow:0 10px 24px #0f172a3d;transform:translate(-50%)}.tour-overlay__subtitle i{display:inline-block;width:2px;height:20px;margin-left:4px;vertical-align:-3px;background:currentcolor;animation:blink .8s step-end infinite}.tour-overlay__controls{display:flex;align-items:center;justify-content:center;gap:4px;margin-top:8px;padding:6px 8px;pointer-events:auto;border:1px solid #8bb7e45c;border-radius:10px;background:#f5f9ffe0}.tour-overlay__controls button{min-width:36px;height:36px;padding:0 10px;color:#245bb6;white-space:nowrap;border:1px solid #c8d9f2;border-radius:8px;background:#fff;box-shadow:0 2px 5px #1f59ae14}.tour-overlay__controls button:disabled{opacity:.45;cursor:not-allowed}.tour-overlay__controls .tour-overlay__stop{color:#64748b}.tour-overlay__controls .tour-overlay__next{min-width:96px;color:#fff;border-color:#3974d9;background:#3974d9}.app-shell.is-preparing,.app-shell.is-lecturing{min-height:100vh;padding:0;background:#17191d}.is-preparing .topbar,.is-lecturing .topbar{display:none}.is-preparing .lecture-page,.is-lecturing .lecture-page{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1;min-height:100vh;padding:0;border:0;border-radius:0;background:#17191d}.is-preparing .lecture-page__header{position:fixed;top:20px;right:24px;left:24px;z-index:4;pointer-events:none}.is-preparing .lecture-page__document{max-width:calc(100vw - 220px);padding:10px 14px;border:1px solid #ffffff1f;border-radius:8px;background:#20242bd9;box-shadow:0 10px 28px #0004}.is-preparing .lecture-page__back{pointer-events:auto}.is-preparing .lecture-page__preview{width:100vw;height:100vh;padding:30px 48px}.is-preparing .lecture-page__preview canvas{max-width:calc(100vw - 96px);max-height:calc(100vh - 60px)}.is-preparing .lecture-page__info{position:fixed;right:24px;bottom:20px;left:24px;z-index:4;pointer-events:none}.is-preparing .lecture-page__meta{max-width:calc(100vw - 230px);padding:11px 14px;border:1px solid #ffffff1f;border-radius:8px;background:#20242bd9;box-shadow:0 10px 28px #0004}.is-preparing .lecture-page__start{pointer-events:auto}.is-lecturing .lecture-page__header{display:none}.is-lecturing .lecture-page__preview{width:100vw;height:100vh;overflow:hidden;background:#17191d}.is-lecturing .lecture-page__preview canvas{width:auto;height:auto;max-width:100vw;max-height:100vh;box-shadow:none}.is-lecturing .lecture-page__info{position:fixed;top:18px;bottom:auto;left:24px;z-index:3;max-width:calc(100vw - 440px);padding:10px 14px;color:#fff;border-radius:8px;background:#0f172acc}.is-lecturing .lecture-page__info .danger-button{display:none}@keyframes blink{50%{opacity:0}}.app-shell.is-scripts{display:flex;height:100vh;flex-direction:column;overflow:hidden}.is-scripts .topbar{flex:none}.is-scripts .workspace{flex:1;min-height:0}.workspace-left{position:relative;display:grid;grid-template-columns:220px minmax(0,1fr);gap:18px;min-width:0;min-height:0;height:100%;overflow:hidden}.workspace .page-list,.workspace .editor-panel{min-height:0;height:100%;overflow-y:auto;overscroll-behavior:contain}.workspace .page-list{position:relative;align-self:start}.workspace .editor-panel{position:sticky;top:0;align-self:start}.avatar-gallery__grid video{height:240px;object-fit:contain;object-position:center}.script-history__actions{display:flex;gap:6px;margin-top:8px}.script-history__actions button{width:100%;padding:7px 9px;color:#245bb6;border:1px solid #c8d9f2;border-radius:7px;background:#f4f8ff;font-size:12px}.script-history__actions button:disabled{opacity:.45;cursor:not-allowed}.script-history__actions .script-history__delete{color:#c24141;border-color:#f0c9c9;background:#fff7f7}.script-history small{display:block;margin-top:7px;color:#6d7d96;font-weight:400}.script-history__list button:disabled{cursor:wait}.document-loading{position:absolute;z-index:20;top:0;right:0;bottom:0;left:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;color:#334155;background:#f5f8fce6;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.document-loading>span:last-child{max-width:min(420px,80%);overflow:hidden;color:#718096;font-size:13px;text-overflow:ellipsis;white-space:nowrap}.document-loading__spinner{width:30px;height:30px;margin-bottom:4px;border:3px solid #cbd9ec;border-top-color:#3974d9;border-radius:50%;animation:document-loading-spin .75s linear infinite}@keyframes document-loading-spin{to{transform:rotate(360deg)}}.editor-footer__actions{display:flex;gap:8px;align-items:center}.save-state{display:grid;gap:3px;color:#8995a8}.save-state__label{display:flex;align-items:center;gap:7px;font-size:13px;font-weight:700}.save-state__label i{width:8px;height:8px;border-radius:50%;background:currentcolor}.save-state.is-saved .save-state__label{color:#137a4a}.save-state.is-dirty .save-state__label{color:#b45309}.save-state.is-saving .save-state__label{color:#245bb6}.save-button:disabled{color:#137a4a;border:1px solid #b8dfcd;background:#eef9f3;opacity:1;cursor:default}.script-generator{display:grid;place-content:center;justify-items:center;gap:16px;text-align:center}.script-generator p{max-width:520px;color:#64748b;line-height:1.7}
