.textbook-editor-app{position:relative;min-height:100vh;background:#f1f3f6;color:#252a33}.kbook-shell .textbook-editor-titlebar,.textbook-editor-app .textbook-editor-titlebar{position:absolute;inset:0 0 auto 0;z-index:6;height:78px;background:transparent;color:#20242c;border-bottom:0;pointer-events:none}.kbook-shell .textbook-editor-brand,.textbook-editor-app .textbook-editor-brand{position:absolute;left:10px;top:0;height:78px;padding:0;display:inline-flex;align-items:center;gap:8px;color:#20242c;font-size:15px;font-weight:700;text-decoration:none;pointer-events:auto}.kbook-shell .textbook-editor-brand img,.textbook-editor-app .textbook-editor-brand img{width:30px;height:14px;object-fit:contain}.kbook-shell .textbook-title-field,.textbook-editor-app .textbook-title-field{position:absolute;left:48px;top:17px;width:clamp(220px,34vw,520px);max-width:calc(100vw - 760px);height:30px;border-radius:4px;margin:0;pointer-events:none}.kbook-shell .textbook-title-field input,.kbook-shell .textbook-title-field strong,.textbook-editor-app .textbook-title-field input,.textbook-editor-app .textbook-title-field strong{width:100%;height:100%;border:0;border-radius:4px;outline:0;display:block;background:transparent;color:#20242c;text-align:left;text-overflow:ellipsis;white-space:nowrap;font-size:15px;font-weight:700;line-height:30px;overflow:hidden;padding:0 8px}.kbook-shell .textbook-save-state,.textbook-editor-app .textbook-save-state{position:absolute;left:56px;top:45px;z-index:7;width:clamp(220px,34vw,520px);max-width:calc(100vw - 760px);height:18px;display:flex;align-items:center;gap:5px;overflow:hidden;color:#667085;font-size:11px;line-height:18px;white-space:nowrap;pointer-events:none}.kbook-shell .textbook-save-state span,.textbook-editor-app .textbook-save-state span{min-width:0;overflow:hidden;text-overflow:ellipsis}.kbook-shell .textbook-save-state svg,.textbook-editor-app .textbook-save-state svg{flex:0 0 auto;color:#8a94a6}.kbook-shell .textbook-editor-titlebar nav,.textbook-editor-app .textbook-editor-titlebar nav{position:absolute;top:50%;right:24px;height:34px;width:340px;display:flex;align-items:center;justify-content:flex-end;gap:2px;padding-right:0;pointer-events:none;transform:translateY(-50%)}.kbook-shell .textbook-editor-titlebar nav button,.textbook-editor-app .textbook-editor-titlebar nav button{flex:0 0 auto;width:auto;height:32px;min-width:68px;max-width:none;padding:0 6px;border:0;border-radius:4px;background:#fff;color:#20242c;display:inline-flex;align-items:center;justify-content:center;gap:6px;font-size:14px;line-height:1;white-space:nowrap;cursor:pointer;pointer-events:auto}.kbook-shell .textbook-editor-titlebar nav button.save-action,.textbook-editor-app .textbook-editor-titlebar nav button.save-action{width:96px}.kbook-shell .textbook-editor-titlebar nav button:hover,.textbook-editor-app .textbook-editor-titlebar nav button:hover{background:#f5f7fb;color:#1677ff}.kbook-shell .textbook-editor-titlebar nav button:disabled,.textbook-editor-app .textbook-editor-titlebar nav button:disabled{cursor:not-allowed;opacity:.58}.kbook-shell .textbook-editor-titlebar nav button.submit,.kbook-shell .textbook-import-input,.textbook-editor-app .textbook-editor-titlebar nav button.submit,.textbook-editor-app .textbook-import-input{display:none}.kbook-shell .textbook-toolbar,.textbook-editor-app .textbook-toolbar{position:relative;z-index:5;height:78px;min-height:78px;padding:3px 0;display:grid;grid-template-columns:var(--textbook-outline-column,292px) minmax(0,1fr) var(--textbook-assistant-column,360px);align-items:stretch;grid-gap:0;gap:0;overflow:visible;background:#fff;border-bottom:1px solid #e6e8ec}.kbook-shell .textbook-toolbar-stage,.textbook-editor-app .textbook-toolbar-stage{grid-column:2;min-width:0;height:100%;display:flex;align-items:stretch;justify-content:center;gap:0;overflow:visible}.kbook-shell .tool-group,.textbook-editor-app .tool-group{min-height:70px;padding:0 7px;display:flex;align-items:center;align-content:center;gap:4px;position:relative}.kbook-shell .tool-group:not(:last-child):after,.textbook-editor-app .tool-group:not(:last-child):after{position:absolute;top:14px;right:0;bottom:14px;width:1px;background:#e6e8ec;content:""}.kbook-shell .history-tools,.textbook-editor-app .history-tools{width:178px;justify-content:center}.kbook-shell .text-tools,.textbook-editor-app .text-tools{align-items:center;flex-direction:column;gap:3px;justify-content:center;width:386px}.kbook-shell .style-tools,.textbook-editor-app .style-tools{justify-content:center;width:54px}.kbook-shell .tool-group.compact,.textbook-editor-app .tool-group.compact{gap:10px}.kbook-shell .tool-group.block-tools,.textbook-editor-app .tool-group.block-tools{flex-wrap:nowrap;min-width:0;gap:4px;justify-content:flex-start;padding-right:4px}.kbook-shell .toolbar-row,.textbook-editor-app .toolbar-row{align-items:center;display:flex;gap:4px;width:100%}.kbook-shell .text-tools .toolbar-row,.textbook-editor-app .text-tools .toolbar-row{justify-content:flex-start;height:25px}.kbook-shell .text-format-row,.textbook-editor-app .text-format-row{padding-left:0}.kbook-shell .text-tools .toolbar-field,.textbook-editor-app .text-tools .toolbar-field{height:23px;padding:0 4px 0 7px}.kbook-shell .text-tools .style-field .toolbar-field,.textbook-editor-app .text-tools .style-field .toolbar-field{width:74px}.kbook-shell .text-tools .font-field .toolbar-field,.textbook-editor-app .text-tools .font-field .toolbar-field{width:92px}.kbook-shell .text-tools .size-field .toolbar-field,.textbook-editor-app .text-tools .size-field .toolbar-field{width:56px}.kbook-shell .text-tools .toolbar-field span,.textbook-editor-app .text-tools .toolbar-field span{font-size:12px}.kbook-shell .text-tools .toolbar-field>svg,.textbook-editor-app .text-tools .toolbar-field>svg{height:14px;width:14px}.kbook-shell .text-tools .toolbar-field.icon-only,.textbook-editor-app .text-tools .toolbar-field.icon-only{min-width:38px;width:38px;height:30px;border-radius:6px;justify-content:center;padding:0 3px}.kbook-shell .text-tools .toolbar-button.icon-only,.textbook-editor-app .text-tools .toolbar-button.icon-only{flex:0 0 30px;min-width:29px;min-height:25px;width:30px}.kbook-shell .text-tools .toolbar-button.icon-only>svg,.textbook-editor-app .text-tools .toolbar-button.icon-only>svg{height:15px;width:15px}.kbook-shell .text-tools .color-trigger,.textbook-editor-app .text-tools .color-trigger{width:36px}.kbook-shell .text-tools .line-height-field .toolbar-field,.kbook-shell .text-tools .spacing-field .toolbar-field,.textbook-editor-app .text-tools .line-height-field .toolbar-field,.textbook-editor-app .text-tools .spacing-field .toolbar-field{width:38px}.kbook-shell .tool-group:last-child,.textbook-editor-app .tool-group:last-child{border-right:0}.kbook-shell .tool-group select,.textbook-editor-app .tool-group select{height:28px;min-width:122px;padding:0 28px 0 12px;border:1px solid #e0e3e8;border-radius:4px;background:#fff;color:#20242c;font-size:16px}.kbook-shell .toolbar-button,.textbook-editor-app .toolbar-button{min-width:34px;min-height:34px;padding:2px;border:0;border-radius:4px;display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;background:transparent;color:#20242c;font:inherit;position:relative;cursor:pointer}.kbook-shell .toolbar-button.active,.kbook-shell .toolbar-button:hover,.textbook-editor-app .toolbar-button.active,.textbook-editor-app .toolbar-button:hover{background:#f0f4ff;color:#1677ff}.kbook-shell .toolbar-button:disabled,.textbook-editor-app .toolbar-button:disabled{cursor:default;opacity:.38}.kbook-shell .toolbar-dropdown.active>.toolbar-field,.textbook-editor-app .toolbar-dropdown.active>.toolbar-field{background:#f0f4ff;color:#1677ff}.kbook-shell .toolbar-field.empty>span,.textbook-editor-app .toolbar-field.empty>span{visibility:hidden}.kbook-shell .toolbar-state-suffix,.textbook-editor-app .toolbar-state-suffix{min-width:10px;color:currentColor;font-size:10px;line-height:1;text-align:center}.kbook-shell .toolbar-button.accent,.textbook-editor-app .toolbar-button.accent{min-width:34px;color:#1677ff}.kbook-shell .toolbar-button.icon-only,.textbook-editor-app .toolbar-button.icon-only{min-width:27px;min-height:27px;padding:0;gap:0}.kbook-shell .toolbar-button span,.textbook-editor-app .toolbar-button span{font-size:12px;line-height:1;white-space:nowrap}.kbook-shell .toolbar-button>svg,.textbook-editor-app .toolbar-button>svg{height:17px;width:17px}.kbook-shell .toolbar-field>svg,.textbook-editor-app .toolbar-field>svg{height:15px;width:15px}.kbook-shell .toolbar-button svg+span+svg,.textbook-editor-app .toolbar-button svg+span+svg{margin-top:-4px}.kbook-shell .textbook-editor-workspace,.textbook-editor-app .textbook-editor-workspace{height:calc(100vh - 78px);display:grid;grid-template-columns:var(--textbook-outline-column,292px) minmax(0,1fr) var(--textbook-assistant-column,360px);overflow:hidden;background:#f1f3f6}.kbook-shell .textbook-editor-workspace.outline-collapsed,.textbook-editor-app .textbook-editor-workspace.outline-collapsed{grid-template-columns:var(--textbook-outline-collapsed-column,44px) minmax(0,1fr) var(--textbook-assistant-column,360px)}.kbook-shell .textbook-outline-panel,.textbook-editor-app .textbook-outline-panel{min-width:0;display:flex;flex-direction:column;overflow:hidden;border-right:1px solid #dfe5ee;background:#fff}.kbook-shell .textbook-outline-head,.textbook-editor-app .textbook-outline-head{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:58px;padding:10px 12px;border-bottom:1px solid #e3e8f0}.kbook-shell .textbook-outline-head.has-navigator-tabs,.textbook-editor-app .textbook-outline-head.has-navigator-tabs,.textbook-player-app .textbook-outline-head.has-navigator-tabs{justify-content:flex-start;gap:6px;padding:10px}.kbook-shell .textbook-editor-workspace.outline-collapsed .textbook-outline-head,.textbook-editor-app .textbook-editor-workspace.outline-collapsed .textbook-outline-head{justify-content:center;padding:10px 0}.kbook-shell .textbook-outline-head-title,.textbook-editor-app .textbook-outline-head-title{min-width:0;flex:0 0 auto;display:inline-flex;align-items:center;gap:9px;color:#1767d8}.kbook-shell .textbook-outline-toggle-panel,.textbook-editor-app .textbook-outline-toggle-panel,.textbook-editor-app .textbook-studio-toggle-panel,.textbook-player-panel-toggle{width:28px;height:28px;display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:5px;background:transparent;color:#1767d8;cursor:pointer}.kbook-shell .textbook-outline-toggle-panel:hover,.textbook-editor-app .textbook-outline-toggle-panel:hover,.textbook-editor-app .textbook-studio-toggle-panel:hover,.textbook-player-panel-toggle:hover{background:#edf5ff}.kbook-shell .textbook-outline-toggle-panel:active,.textbook-editor-app .textbook-outline-toggle-panel:active,.textbook-editor-app .textbook-studio-toggle-panel:active,.textbook-player-panel-toggle:active{background:#dbeafe;transform:translateY(1px)}.kbook-shell .textbook-outline-head strong,.textbook-editor-app .textbook-outline-head strong{display:block;width:64px;overflow:hidden;color:#172033;font-size:14px;line-height:1;white-space:nowrap}.kbook-shell .textbook-outline-head span,.textbook-editor-app .textbook-outline-head span{color:inherit;font-size:inherit}.kbook-shell .textbook-outline-actions,.textbook-editor-app .textbook-outline-actions{display:inline-flex;flex:0 0 auto;gap:6px}.kbook-shell .textbook-outline-head.has-navigator-tabs .textbook-outline-actions,.textbook-editor-app .textbook-outline-head.has-navigator-tabs .textbook-outline-actions{flex:0 0 auto;margin-left:auto;gap:2px}.kbook-shell .textbook-outline-actions button,.textbook-editor-app .textbook-outline-actions button{height:24px;min-width:0;padding:0 8px;display:inline-flex;align-items:center;justify-content:center;gap:3px;border:1px solid transparent;border-radius:4px;background:transparent;color:#1767d8;font-size:11px;font-weight:600;line-height:1;cursor:pointer;transition:background .14s ease,border-color .14s ease,color .14s ease,transform .08s ease}.kbook-shell .textbook-outline-actions button:hover,.textbook-editor-app .textbook-outline-actions button:hover{border-color:rgba(22,119,255,.16);background:rgba(22,119,255,.06);color:#0f63d8}.kbook-shell .textbook-outline-actions button:active,.textbook-editor-app .textbook-outline-actions button:active{border-color:rgba(22,119,255,.22);background:rgba(22,119,255,.1);transform:translateY(1px)}.kbook-shell .textbook-outline-actions button:focus-visible,.kbook-shell .textbook-outline-toggle-panel:focus-visible,.textbook-editor-app .textbook-outline-actions button:focus-visible,.textbook-editor-app .textbook-outline-toggle-panel:focus-visible,.textbook-editor-app .textbook-studio-toggle-panel:focus-visible,.textbook-player-panel-toggle:focus-visible{outline:2px solid #bad4ff;outline-offset:2px}.kbook-shell .textbook-outline-actions button svg,.textbook-editor-app .textbook-outline-actions button svg{width:12px;height:12px}.kbook-shell .textbook-outline-head.has-navigator-tabs .textbook-outline-actions>.textbook-outline-add-control>.textbook-outline-action-button,.textbook-editor-app .textbook-outline-head.has-navigator-tabs .textbook-outline-actions>.textbook-outline-add-control>.textbook-outline-action-button{width:34px;padding:0}.kbook-shell .textbook-outline-head.has-navigator-tabs .textbook-outline-actions>.textbook-outline-action-button,.textbook-editor-app .textbook-outline-head.has-navigator-tabs .textbook-outline-actions>.textbook-outline-action-button{width:28px;padding:0}.kbook-shell .textbook-outline-head.has-navigator-tabs .textbook-outline-actions>.textbook-outline-action-button span,.kbook-shell .textbook-outline-head.has-navigator-tabs .textbook-outline-actions>.textbook-outline-add-control>.textbook-outline-action-button span,.textbook-editor-app .textbook-outline-head.has-navigator-tabs .textbook-outline-actions>.textbook-outline-action-button span,.textbook-editor-app .textbook-outline-head.has-navigator-tabs .textbook-outline-actions>.textbook-outline-add-control>.textbook-outline-action-button span{display:none}.kbook-shell .textbook-outline-add-control,.textbook-editor-app .textbook-outline-add-control{position:relative}.kbook-shell .textbook-outline-action-button,.textbook-editor-app .textbook-outline-action-button{white-space:nowrap}.kbook-shell .textbook-outline-add-menu,.textbook-editor-app .textbook-outline-add-menu{position:absolute;top:calc(100% + 8px);right:0;z-index:40;min-width:116px;padding:6px;border:1px solid #dbe3ef;border-radius:8px;display:grid;grid-gap:3px;gap:3px;background:#ffffff;box-shadow:0 16px 34px rgba(15,23,42,.14)}.kbook-shell .textbook-outline-add-menu button,.textbook-editor-app .textbook-outline-add-menu button{width:100%;height:30px;justify-content:flex-start;padding:0 9px;border-radius:6px;color:#253044;font-size:12px;font-weight:700}.kbook-shell .textbook-outline-add-menu button:hover,.textbook-editor-app .textbook-outline-add-menu button:hover{border-color:transparent;background:#eef5ff;color:#1767d8}.kbook-shell .textbook-editor-workspace.outline-collapsed .textbook-navigator-tabs,.kbook-shell .textbook-editor-workspace.outline-collapsed .textbook-outline-actions,.kbook-shell .textbook-editor-workspace.outline-collapsed .textbook-outline-head strong,.kbook-shell .textbook-editor-workspace.outline-collapsed .textbook-outline-list,.kbook-shell .textbook-editor-workspace.outline-collapsed .textbook-resource-tab-panel,.textbook-editor-app .textbook-editor-workspace.outline-collapsed .textbook-navigator-tabs,.textbook-editor-app .textbook-editor-workspace.outline-collapsed .textbook-outline-actions,.textbook-editor-app .textbook-editor-workspace.outline-collapsed .textbook-outline-head strong,.textbook-editor-app .textbook-editor-workspace.outline-collapsed .textbook-outline-list,.textbook-editor-app .textbook-editor-workspace.outline-collapsed .textbook-resource-tab-panel{visibility:hidden;opacity:0;pointer-events:none}.kbook-shell .textbook-editor-workspace.outline-collapsed .textbook-outline-actions,.kbook-shell .textbook-editor-workspace.outline-collapsed .textbook-outline-head strong,.textbook-editor-app .textbook-editor-workspace.outline-collapsed .textbook-outline-actions,.textbook-editor-app .textbook-editor-workspace.outline-collapsed .textbook-outline-head strong{width:0;min-width:0;overflow:hidden}.kbook-shell .textbook-editor-workspace.outline-collapsed .textbook-navigator-tabs,.kbook-shell .textbook-editor-workspace.outline-collapsed .textbook-outline-actions,.kbook-shell .textbook-editor-workspace.outline-collapsed .textbook-outline-list,.kbook-shell .textbook-editor-workspace.outline-collapsed .textbook-resource-tab-panel,.textbook-editor-app .textbook-editor-workspace.outline-collapsed .textbook-navigator-tabs,.textbook-editor-app .textbook-editor-workspace.outline-collapsed .textbook-outline-actions,.textbook-editor-app .textbook-editor-workspace.outline-collapsed .textbook-outline-list,.textbook-editor-app .textbook-editor-workspace.outline-collapsed .textbook-resource-tab-panel{display:none}.kbook-shell .textbook-editor-workspace.outline-collapsed .textbook-outline-panel,.textbook-editor-app .textbook-editor-workspace.outline-collapsed .textbook-outline-panel,.textbook-editor-workspace.outline-collapsed .textbook-outline-panel{overflow:visible}.kbook-shell .textbook-editor-workspace.outline-collapsed .textbook-outline-head,.textbook-editor-app .textbook-editor-workspace.outline-collapsed .textbook-outline-head,.textbook-editor-workspace.outline-collapsed .textbook-outline-head{justify-content:center;overflow:visible}.kbook-shell .textbook-editor-workspace.outline-collapsed .textbook-outline-head-title,.textbook-editor-app .textbook-editor-workspace.outline-collapsed .textbook-outline-head-title,.textbook-editor-workspace.outline-collapsed .textbook-outline-head-title{width:28px;min-width:28px;gap:0;justify-content:center;visibility:visible;opacity:1}.kbook-shell .textbook-editor-workspace.outline-collapsed .textbook-outline-toggle-panel,.textbook-editor-app .textbook-editor-workspace.outline-collapsed .textbook-outline-toggle-panel,.textbook-editor-workspace.outline-collapsed .textbook-outline-toggle-panel{visibility:visible;opacity:1;pointer-events:auto}.kbook-shell .textbook-outline-list,.textbook-editor-app .textbook-outline-list{flex:1 1;min-height:0;overflow-y:auto;padding:8px 0 16px}.kbook-shell .textbook-navigator-tabs,.textbook-editor-app .textbook-navigator-tabs,.textbook-player-app .textbook-navigator-tabs{flex:0 0 auto;height:26px;display:inline-flex;align-items:center;gap:2px;padding:2px;border:1px solid #e7edf6;border-radius:999px;background:#f7f9fc}.kbook-shell .textbook-navigator-tabs button,.textbook-editor-app .textbook-navigator-tabs button,.textbook-player-app .textbook-navigator-tabs button{height:20px;min-width:36px;padding:0 8px;border:1px solid transparent;border-radius:999px;background:transparent;color:#6b778c;font-size:12px;font-weight:800;line-height:18px;cursor:pointer}.kbook-shell .textbook-navigator-tabs button[aria-selected=true],.textbook-editor-app .textbook-navigator-tabs button[aria-selected=true],.textbook-player-app .textbook-navigator-tabs button[aria-selected=true]{border-color:rgba(23,103,216,.12);background:#ffffff;color:#1767d8;box-shadow:0 1px 4px rgba(23,103,216,.08)}.kbook-shell .textbook-navigator-tabs button:hover,.textbook-editor-app .textbook-navigator-tabs button:hover,.textbook-player-app .textbook-navigator-tabs button:hover{color:#1767d8}.kbook-shell .textbook-resource-tab-panel,.textbook-editor-app .textbook-resource-tab-panel,.textbook-player-app .textbook-resource-tab-panel{flex:1 1;min-height:0;display:flex;flex-direction:column;gap:10px;padding:10px;overflow:hidden}.kbook-shell .textbook-resource-searchbar,.textbook-editor-app .textbook-resource-searchbar,.textbook-player-app .textbook-resource-searchbar{min-width:0;height:34px;display:grid;grid-template-columns:112px minmax(0,1fr);grid-gap:0;gap:0;align-items:center;overflow:hidden;border:1px solid #dbe4f0;border-radius:7px;background:#ffffff}.kbook-shell .textbook-resource-filter-select,.textbook-editor-app .textbook-resource-filter-select,.textbook-player-app .textbook-resource-filter-select{min-width:0;width:100%;height:100%;padding:0 20px 0 9px;border:0;border-right:1px solid #e6edf6;border-radius:0;background:transparent;color:#172033;font-size:11px;font-weight:800;outline:0}.kbook-shell .textbook-resource-searchbar:focus-within,.textbook-editor-app .textbook-resource-searchbar:focus-within,.textbook-player-app .textbook-resource-searchbar:focus-within{border-color:#9cc4ff;box-shadow:0 0 0 3px rgba(22,119,255,.1)}.kbook-shell .textbook-resource-search,.textbook-editor-app .textbook-resource-search,.textbook-player-app .textbook-resource-search{min-width:0;height:100%;display:flex;align-items:center;gap:6px;padding:0 9px;border:0;border-radius:0;background:transparent;color:#94a3b8}.kbook-shell .textbook-resource-search input,.textbook-editor-app .textbook-resource-search input,.textbook-player-app .textbook-resource-search input{min-width:0;flex:1 1;border:0;outline:0;background:transparent;color:#172033;font-size:13px}.kbook-shell .textbook-resource-index-list,.textbook-editor-app .textbook-resource-index-list,.textbook-player-app .textbook-resource-index-list{flex:1 1;min-height:0;display:flex;flex-direction:column;gap:8px;overflow-y:auto;padding-right:2px}.kbook-shell .textbook-resource-index-item,.textbook-editor-app .textbook-resource-index-item,.textbook-player-app .textbook-resource-index-item{width:100%;min-height:52px;display:grid;grid-template-columns:34px minmax(0,1fr);grid-template-rows:auto auto;grid-column-gap:8px;column-gap:8px;grid-row-gap:2px;row-gap:2px;align-items:center;padding:7px 8px;border:1px solid #e2e8f0;border-radius:7px;background:#ffffff;color:#172033;text-align:left;cursor:pointer}.kbook-shell .textbook-resource-index-item:hover,.textbook-editor-app .textbook-resource-index-item:hover,.textbook-player-app .textbook-resource-index-item:hover{border-color:#bfd7ff;background:#f7fbff}.kbook-shell .textbook-resource-index-kind,.textbook-editor-app .textbook-resource-index-kind,.textbook-player-app .textbook-resource-index-kind{grid-row:1/span 2;width:30px;height:30px;display:inline-flex;align-items:center;justify-content:center;border-radius:7px;background:#eef6ff;color:#1767d8;font-size:10px;font-weight:800}.kbook-shell .textbook-resource-index-kind.is-3d,.textbook-editor-app .textbook-resource-index-kind.is-3d,.textbook-player-app .textbook-resource-index-kind.is-3d{background:#ecfdf5;color:#059669}.kbook-shell .textbook-resource-index-item span:last-child,.kbook-shell .textbook-resource-index-item strong,.textbook-editor-app .textbook-resource-index-item span:last-child,.textbook-editor-app .textbook-resource-index-item strong,.textbook-player-app .textbook-resource-index-item span:last-child,.textbook-player-app .textbook-resource-index-item strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kbook-shell .textbook-resource-index-item strong,.textbook-editor-app .textbook-resource-index-item strong,.textbook-player-app .textbook-resource-index-item strong{font-size:12px;font-weight:400}.kbook-shell .textbook-resource-index-item span:last-child,.textbook-editor-app .textbook-resource-index-item span:last-child,.textbook-player-app .textbook-resource-index-item span:last-child{color:#64748b;font-size:11px;font-weight:400}.kbook-shell .textbook-outline-state,.textbook-editor-app .textbook-outline-state{color:#7a8aa3;font-size:14px;line-height:1.6;padding:18px 20px}.kbook-shell .textbook-page-loading,.textbook-editor-app .textbook-page-loading{align-items:center;color:#7a8aa3;display:flex;font-size:16px;justify-content:center;min-height:360px}.kbook-shell .textbook-outline-item,.textbook-editor-app .textbook-outline-item{position:relative;min-height:40px;margin-bottom:0;padding:0 8px 0 calc(8px + var(--outline-depth, 0) * 22px);display:grid;grid-template-columns:22px minmax(0,1fr);align-items:center;grid-gap:4px;gap:4px;border-radius:0;border:1px solid transparent;color:#253044;cursor:pointer;transition:background .14s ease,color .14s ease,box-shadow .14s ease}.kbook-shell .textbook-outline-item.section:after,.kbook-shell .textbook-outline-item.section:before,.kbook-shell .textbook-outline-item.subsection:after,.kbook-shell .textbook-outline-item.subsection:before,.textbook-editor-app .textbook-outline-item.section:after,.textbook-editor-app .textbook-outline-item.section:before,.textbook-editor-app .textbook-outline-item.subsection:after,.textbook-editor-app .textbook-outline-item.subsection:before{content:none}.kbook-shell .textbook-outline-item:hover,.textbook-editor-app .textbook-outline-item:hover{background:#f5f7fb}.kbook-shell .textbook-outline-item.has-title-issue,.textbook-editor-app .textbook-outline-item.has-title-issue{min-height:58px;align-items:start;padding-top:3px;padding-bottom:3px;border-color:#fed7aa;background:#fff7ed}.kbook-shell .textbook-outline-item.active,.textbook-editor-app .textbook-outline-item.active{border-color:transparent;background:#f0f4fa;box-shadow:none;color:#1767d8}.kbook-shell .textbook-outline-item.active.has-title-issue,.textbook-editor-app .textbook-outline-item.active.has-title-issue{border-color:#fdba74;background:#fff7ed}.kbook-shell .textbook-outline-item.dragging,.textbook-editor-app .textbook-outline-item.dragging{opacity:.48}.kbook-shell .textbook-outline-item.drop-target,.textbook-editor-app .textbook-outline-item.drop-target{border-color:#1677ff;background:#e7f1ff;box-shadow:none}.kbook-shell .textbook-outline-item.chapter .textbook-outline-title,.textbook-editor-app .textbook-outline-item.chapter .textbook-outline-title{font-weight:800}.kbook-shell .textbook-outline-item.section .textbook-outline-title,.textbook-editor-app .textbook-outline-item.section .textbook-outline-title{font-weight:700}.kbook-shell .textbook-outline-item.subsection .textbook-outline-title,.textbook-editor-app .textbook-outline-item.subsection .textbook-outline-title{color:#475569;font-size:12px}.kbook-shell .textbook-outline-delete,.kbook-shell .textbook-outline-drag,.kbook-shell .textbook-outline-row-actions button,.kbook-shell .textbook-outline-select,.textbook-editor-app .textbook-outline-delete,.textbook-editor-app .textbook-outline-drag,.textbook-editor-app .textbook-outline-row-actions button,.textbook-editor-app .textbook-outline-select{width:28px;height:28px;display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:5px;background:transparent;color:#64748b}.kbook-shell .textbook-outline-delete,.kbook-shell .textbook-outline-drag,.kbook-shell .textbook-outline-row-actions,.textbook-editor-app .textbook-outline-delete,.textbook-editor-app .textbook-outline-drag,.textbook-editor-app .textbook-outline-row-actions{opacity:0;pointer-events:none;transition:opacity .16s ease,background .16s ease,color .16s ease}.kbook-shell .textbook-outline-item:focus-within .textbook-outline-delete,.kbook-shell .textbook-outline-item:focus-within .textbook-outline-drag,.kbook-shell .textbook-outline-item:focus-within .textbook-outline-row-actions,.kbook-shell .textbook-outline-item:hover .textbook-outline-delete,.kbook-shell .textbook-outline-item:hover .textbook-outline-drag,.kbook-shell .textbook-outline-item:hover .textbook-outline-row-actions,.textbook-editor-app .textbook-outline-item:focus-within .textbook-outline-delete,.textbook-editor-app .textbook-outline-item:focus-within .textbook-outline-drag,.textbook-editor-app .textbook-outline-item:focus-within .textbook-outline-row-actions,.textbook-editor-app .textbook-outline-item:hover .textbook-outline-delete,.textbook-editor-app .textbook-outline-item:hover .textbook-outline-drag,.textbook-editor-app .textbook-outline-item:hover .textbook-outline-row-actions{opacity:1;pointer-events:auto}.kbook-shell .textbook-outline-drag,.textbook-editor-app .textbook-outline-drag{width:18px;cursor:-webkit-grab;cursor:grab}.kbook-shell .textbook-outline-drag:active,.textbook-editor-app .textbook-outline-drag:active{cursor:-webkit-grabbing;cursor:grabbing}.kbook-shell .textbook-outline-drag:disabled,.textbook-editor-app .textbook-outline-drag:disabled{cursor:default}.kbook-shell .textbook-outline-delete:hover,.kbook-shell .textbook-outline-drag:hover,.kbook-shell .textbook-outline-row-actions button:hover,.kbook-shell .textbook-outline-select:hover,.textbook-editor-app .textbook-outline-delete:hover,.textbook-editor-app .textbook-outline-drag:hover,.textbook-editor-app .textbook-outline-row-actions button:hover,.textbook-editor-app .textbook-outline-select:hover{background:#e6edf8;color:#1767d8}.kbook-shell .textbook-outline-row-actions,.textbook-editor-app .textbook-outline-row-actions{width:52px;display:inline-flex;justify-content:center;gap:0}.kbook-shell .textbook-outline-delete:disabled,.kbook-shell .textbook-outline-drag:disabled,.kbook-shell .textbook-outline-row-actions button:disabled,.textbook-editor-app .textbook-outline-delete:disabled,.textbook-editor-app .textbook-outline-drag:disabled,.textbook-editor-app .textbook-outline-row-actions button:disabled{opacity:.35;cursor:not-allowed}.kbook-shell .textbook-outline-item:not(:hover):not(:focus-within) .textbook-outline-delete,.kbook-shell .textbook-outline-item:not(:hover):not(:focus-within) .textbook-outline-drag,.textbook-editor-app .textbook-outline-item:not(:hover):not(:focus-within) .textbook-outline-delete,.textbook-editor-app .textbook-outline-item:not(:hover):not(:focus-within) .textbook-outline-drag{opacity:0;pointer-events:none}.kbook-shell .textbook-outline-title,.textbook-editor-app .textbook-outline-title{width:100%;min-width:0;height:34px;padding:0 8px;display:inline-flex;align-items:center;border:0;border-radius:5px;background:transparent;color:#253044;font-size:13px;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:pointer}.kbook-shell .textbook-outline-title:focus-visible,.textbook-editor-app .textbook-outline-title:focus-visible{outline:2px solid #bad4ff;background:#fff}.kbook-shell .textbook-outline-item:hover .textbook-outline-title,.textbook-editor-app .textbook-outline-item:hover .textbook-outline-title{background:transparent}.kbook-shell .textbook-outline-item.active .textbook-outline-title,.textbook-editor-app .textbook-outline-item.active .textbook-outline-title{color:#1767d8}.kbook-shell .textbook-outline-leaf-dot,.textbook-editor-app .textbook-outline-leaf-dot{width:6px;height:6px;border-radius:999px;background:#94a3b8}.kbook-shell .textbook-outline-item.active .textbook-outline-leaf-dot,.textbook-editor-app .textbook-outline-item.active .textbook-outline-leaf-dot{background:#1767d8}.kbook-shell .textbook-outline-title[aria-invalid=true],.textbook-editor-app .textbook-outline-title[aria-invalid=true]{color:#9a3412}.kbook-shell .textbook-outline-title-issue,.textbook-editor-app .textbook-outline-title-issue{min-width:0;grid-column:2/-1;display:inline-flex;align-items:center;gap:4px;overflow:hidden;color:#c2410c;font-size:11px;font-weight:700;line-height:16px;text-overflow:ellipsis;white-space:nowrap}.kbook-shell .textbook-outline-title-issue svg,.textbook-editor-app .textbook-outline-title-issue svg{flex:0 0 auto}.kbook-shell .textbook-outline-manager-backdrop,.textbook-editor-app .textbook-outline-manager-backdrop{position:fixed;inset:0;z-index:130;padding:28px;display:flex;align-items:center;justify-content:center;background:rgba(15,23,42,.32);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}.kbook-shell .textbook-outline-manager,.textbook-editor-app .textbook-outline-manager{width:min(620px,calc(100vw - 42px));max-height:min(760px,calc(100vh - 42px));border:1px solid #dbe3ef;border-radius:10px;display:grid;grid-template-rows:auto minmax(0,1fr) auto;overflow:hidden;background:#ffffff;color:#172033;box-shadow:0 26px 68px rgba(15,23,42,.18)}.kbook-shell .textbook-outline-manager-head,.textbook-editor-app .textbook-outline-manager-head{min-height:58px;padding:14px 18px;border-bottom:1px solid #e4eaf2;display:flex;align-items:center;justify-content:space-between;gap:16px}.kbook-shell .textbook-outline-manager-head h2,.textbook-editor-app .textbook-outline-manager-head h2{margin:0;color:#101828;font-size:18px;line-height:1.25;font-weight:800}.kbook-shell .textbook-outline-manager-close,.textbook-editor-app .textbook-outline-manager-close{width:34px;height:34px;border:0;border-radius:7px;display:inline-flex;align-items:center;justify-content:center;background:#f3f6fa;color:#475569;cursor:pointer}.kbook-shell .textbook-outline-manager-close:hover,.textbook-editor-app .textbook-outline-manager-close:hover{background:#e8eef7;color:#172033}.kbook-shell .textbook-outline-manager-list,.textbook-editor-app .textbook-outline-manager-list{min-height:0;overflow-y:auto;padding:10px 12px;display:grid;grid-gap:6px;gap:6px;background:#f8fafc}.kbook-shell .textbook-outline-manager-item,.textbook-editor-app .textbook-outline-manager-item{min-height:42px;padding:6px 8px 6px calc(8px + var(--outline-depth, 0) * 22px);border:1px solid transparent;border-radius:8px;display:grid;grid-template-columns:28px 24px minmax(0,1fr) auto;grid-template-areas:"drag toggle title actions";align-items:center;grid-gap:0 4px;gap:0 4px;background:#ffffff}.kbook-shell .textbook-outline-manager-item.active,.textbook-editor-app .textbook-outline-manager-item.active{border-color:rgba(22,119,255,.24);background:#eef5ff}.kbook-shell .textbook-outline-manager-item.has-title-issue,.textbook-editor-app .textbook-outline-manager-item.has-title-issue{border-color:#fdba74;background:#fff7ed}.kbook-shell .textbook-outline-manager-item.dragging,.textbook-editor-app .textbook-outline-manager-item.dragging{opacity:.5}.kbook-shell .textbook-outline-manager-item.drop-target,.textbook-editor-app .textbook-outline-manager-item.drop-target{border-color:rgba(22,119,255,.45);background:#e7f1ff}.kbook-shell .textbook-outline-manager-drag,.kbook-shell .textbook-outline-manager-toggle,.textbook-editor-app .textbook-outline-manager-drag,.textbook-editor-app .textbook-outline-manager-toggle{width:24px;height:24px;border:0;border-radius:5px;display:inline-flex;align-items:center;justify-content:center;background:transparent;color:#64748b;cursor:pointer}.kbook-shell .textbook-outline-manager-drag,.textbook-editor-app .textbook-outline-manager-drag{grid-area:drag;cursor:-webkit-grab;cursor:grab}.kbook-shell .textbook-outline-manager-drag:active,.textbook-editor-app .textbook-outline-manager-drag:active{cursor:-webkit-grabbing;cursor:grabbing}.kbook-shell .textbook-outline-manager-drag:disabled,.textbook-editor-app .textbook-outline-manager-drag:disabled{opacity:.32;cursor:default}.kbook-shell .textbook-outline-manager-toggle,.textbook-editor-app .textbook-outline-manager-toggle{grid-area:toggle}.kbook-shell .textbook-outline-manager-drag:hover,.kbook-shell .textbook-outline-manager-toggle:hover,.textbook-editor-app .textbook-outline-manager-drag:hover,.textbook-editor-app .textbook-outline-manager-toggle:hover{background:#e8eef7;color:#1767d8}.kbook-shell .textbook-outline-manager-title,.textbook-editor-app .textbook-outline-manager-title{grid-area:title;min-width:0;min-height:24px;padding:0;border:0;display:inline-flex;align-items:center;background:transparent;color:#253044;font-size:13px;line-height:24px;font-weight:800;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:pointer}.kbook-shell .textbook-outline-manager-title:hover,.textbook-editor-app .textbook-outline-manager-title:hover{color:#1767d8}.kbook-shell .textbook-outline-manager-meta,.textbook-editor-app .textbook-outline-manager-meta{grid-column:3/5;grid-row:2;min-height:16px;color:#94a3b8;font-size:11px;line-height:16px;white-space:nowrap}.kbook-shell .textbook-outline-manager-item.has-title-issue .textbook-outline-manager-meta,.textbook-editor-app .textbook-outline-manager-item.has-title-issue .textbook-outline-manager-meta{color:#c2410c;font-weight:700}.kbook-shell .textbook-outline-manager-actions,.textbook-editor-app .textbook-outline-manager-actions{grid-area:actions;display:inline-flex;align-items:center;gap:4px}.kbook-shell .textbook-outline-manager-actions button,.textbook-editor-app .textbook-outline-manager-actions button{width:30px;height:30px;border:0;border-radius:6px;display:inline-flex;align-items:center;justify-content:center;background:transparent;color:#64748b;cursor:pointer}.kbook-shell .textbook-outline-manager-actions button:hover,.textbook-editor-app .textbook-outline-manager-actions button:hover{background:#e8eef7;color:#1767d8}.kbook-shell .textbook-outline-manager-actions button.danger:hover,.textbook-editor-app .textbook-outline-manager-actions button.danger:hover{background:#fee2e2;color:#dc2626}.kbook-shell .textbook-outline-manager-actions button:disabled,.textbook-editor-app .textbook-outline-manager-actions button:disabled{opacity:.36;cursor:not-allowed}.kbook-shell .textbook-outline-manager-foot,.textbook-editor-app .textbook-outline-manager-foot{padding:12px 18px;border-top:1px solid #e4eaf2;display:flex;justify-content:flex-end;background:#ffffff}.kbook-shell .textbook-outline-manager-foot button,.textbook-editor-app .textbook-outline-manager-foot button{min-width:76px;height:36px;border:1px solid #dbe3ef;border-radius:7px;background:#ffffff;color:#253044;font-size:13px;font-weight:800;cursor:pointer}.kbook-shell .textbook-outline-manager-foot button:hover,.textbook-editor-app .textbook-outline-manager-foot button:hover{border-color:rgba(22,119,255,.28);color:#1767d8}.textbook-editor-app .textbook-outline-delete-backdrop{position:fixed;inset:0;z-index:1400;display:grid;place-items:center;padding:24px;background:rgba(15,23,42,.28);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.textbook-editor-app .textbook-outline-delete-dialog{position:relative;width:min(520px,calc(100vw - 32px));max-height:min(760px,calc(100vh - 32px));overflow:auto;padding:18px;border:0;border-radius:16px;background:#fff;box-shadow:0 28px 64px rgba(15,23,42,.18);color:#1d2433;font-size:13px}.textbook-editor-app .textbook-outline-delete-dialog>header{display:flex;align-items:flex-start;justify-content:space-between;min-height:34px}.textbook-editor-app .textbook-outline-delete-dialog h2{margin:0 44px 12px 0;color:#1d2433;font-size:18px;line-height:1.25}.textbook-editor-app .textbook-outline-delete-description,.textbook-editor-app .textbook-outline-delete-error,.textbook-editor-app .textbook-outline-delete-warning{margin:0;font-size:13px;line-height:1.5}.textbook-editor-app .textbook-outline-delete-description{margin-bottom:12px;color:#64748b}.textbook-editor-app .textbook-outline-delete-close{position:absolute;top:16px;right:16px;display:grid;width:34px;height:34px;place-items:center;border:0;border-radius:999px;color:#1d2433;background:rgba(148,163,184,.14);cursor:pointer}.textbook-editor-app .textbook-outline-delete-close:hover{background:rgba(148,163,184,.22)}.textbook-editor-app .textbook-outline-delete-error,.textbook-editor-app .textbook-outline-delete-warning{margin:0 0 12px;padding:10px 12px;border-radius:8px}.textbook-editor-app .textbook-outline-delete-warning{color:#9a3412;background:#fff7ed}.textbook-editor-app .textbook-outline-delete-error{color:#b91c1c;background:#fef2f2}.textbook-editor-app .textbook-outline-delete-dialog>footer{display:flex;justify-content:flex-end;gap:10px;margin-top:12px;padding:0;border:0}.textbook-editor-app .textbook-outline-delete-dialog .button{min-width:0;min-height:40px;height:40px;padding:0 16px;border-radius:999px;font-size:13px;font-weight:700;justify-content:center}.textbook-editor-app .textbook-outline-delete-dialog .button.danger{border-color:#e5484d;color:#fff;background:#e5484d}.textbook-editor-app .textbook-outline-delete-dialog .button.danger:hover:not(:disabled){border-color:#d63c42;background:#d63c42}.textbook-editor-app .textbook-outline-delete-dialog button:disabled{cursor:not-allowed;opacity:.6}@media (max-width:560px){.textbook-editor-app .textbook-outline-delete-backdrop{padding:16px}}.kbook-shell .textbook-editor-left-panel,.textbook-editor-app .textbook-editor-left-panel{min-width:0;padding:18px 16px;display:flex;flex-direction:column;gap:14px;overflow-y:auto;background:#eef1f5;border-right:1px solid #e1e6ee}.kbook-shell .textbook-avatar-panel,.textbook-editor-app .textbook-avatar-panel{position:relative;background:#eef1f5}.kbook-shell .resource-config-card,.kbook-shell .section-meta-card,.kbook-shell .textbook-avatar-card,.textbook-editor-app .resource-config-card,.textbook-editor-app .section-meta-card,.textbook-editor-app .textbook-avatar-card{border:1px solid #e2e7f0;border-radius:8px;background:#fff;box-shadow:0 10px 24px rgba(31,41,55,.06)}.kbook-shell .textbook-avatar-card,.textbook-editor-app .textbook-avatar-card{padding:18px 14px;display:grid;grid-gap:10px;gap:10px;justify-items:center;text-align:center}.kbook-shell .textbook-avatar-card .textbook-avatar,.textbook-editor-app .textbook-avatar-card .textbook-avatar{position:relative;left:auto;bottom:auto;width:116px;height:178px}.kbook-shell .section-meta-card>strong,.kbook-shell .textbook-avatar-card strong,.textbook-editor-app .section-meta-card>strong,.textbook-editor-app .textbook-avatar-card strong{color:#172033;font-size:16px}.kbook-shell .toolbar-select,.textbook-editor-app .toolbar-select{align-items:center;border:1px solid #e0e3e8;border-radius:4px;display:inline-flex;gap:3px;height:28px;padding:0 0 0 10px}.kbook-shell .toolbar-select select,.textbook-editor-app .toolbar-select select{border:0;min-width:112px;padding-left:0}.kbook-shell .toolbar-select.color-select select,.textbook-editor-app .toolbar-select.color-select select{min-width:86px}.kbook-shell .toolbar-select.line-height-select,.textbook-editor-app .toolbar-select.line-height-select{padding-left:8px}.kbook-shell .toolbar-select.line-height-select span,.textbook-editor-app .toolbar-select.line-height-select span{color:#4b5563;font-size:13px;font-weight:700}.kbook-shell .toolbar-select.line-height-select select,.textbook-editor-app .toolbar-select.line-height-select select{min-width:76px}.kbook-shell .toolbar-dropdown,.textbook-editor-app .toolbar-dropdown{position:relative}.kbook-shell .toolbar-field,.textbook-editor-app .toolbar-field{align-items:center;background:#fff;border:1px solid #e0e3e8;border-radius:4px;color:#20242c;cursor:pointer;display:inline-flex;gap:3px;height:26px;justify-content:space-between;min-width:56px;padding:0 5px 0 8px;position:relative}.kbook-shell .color-trigger[data-tooltip]:after,.kbook-shell .toolbar-button[data-tooltip]:after,.kbook-shell .toolbar-field[data-tooltip]:after,.textbook-editor-app .color-trigger[data-tooltip]:after,.textbook-editor-app .toolbar-button[data-tooltip]:after,.textbook-editor-app .toolbar-field[data-tooltip]:after{position:absolute;left:50%;top:calc(100% + 6px);z-index:120;padding:4px 7px;border-radius:3px;background:rgba(31,41,55,.92);color:#fff;content:attr(data-tooltip);font-size:12px;line-height:1.2;opacity:0;pointer-events:none;transform:translateX(-50%);transition:opacity .12s ease;white-space:nowrap}.kbook-shell .color-trigger[data-tooltip]:hover:after,.kbook-shell .toolbar-button[data-tooltip]:hover:after,.kbook-shell .toolbar-field[data-tooltip]:hover:after,.textbook-editor-app .color-trigger[data-tooltip]:hover:after,.textbook-editor-app .toolbar-button[data-tooltip]:hover:after,.textbook-editor-app .toolbar-field[data-tooltip]:hover:after{opacity:1}.kbook-shell .toolbar-dropdown.wide .toolbar-field,.textbook-editor-app .toolbar-dropdown.wide .toolbar-field{min-width:90px}.kbook-shell .style-field .toolbar-field,.textbook-editor-app .style-field .toolbar-field{width:92px}.kbook-shell .font-field .toolbar-field,.textbook-editor-app .font-field .toolbar-field{width:104px}.kbook-shell .size-field .toolbar-field,.textbook-editor-app .size-field .toolbar-field{width:66px}.kbook-shell .toolbar-field.icon-only,.textbook-editor-app .toolbar-field.icon-only{min-width:31px;border-color:transparent;background:transparent;padding:0 2px}.kbook-shell .color-trigger,.textbook-editor-app .color-trigger{gap:2px;justify-content:center;width:32px}.kbook-shell .color-trigger-icon,.textbook-editor-app .color-trigger-icon{display:block;flex:0 0 18px;height:20px;line-height:1;position:relative;width:18px}.kbook-shell .font-color-letter,.textbook-editor-app .font-color-letter{color:#4b5563;display:block;font-size:17px;font-weight:500;height:16px;left:50%;line-height:16px;position:absolute;top:0;transform:translateX(-50%)}.kbook-shell .color-trigger-icon i,.textbook-editor-app .color-trigger-icon i{border-radius:1px;box-shadow:0 0 0 1px rgba(15,23,42,.1);display:block;bottom:0;height:3px;left:50%;position:absolute;transform:translateX(-50%);width:16px}.kbook-shell .color-trigger>svg,.textbook-editor-app .color-trigger>svg{height:10px;width:10px}.kbook-shell .color-trigger-icon>svg,.textbook-editor-app .color-trigger-icon>svg{height:15px;left:50%;position:absolute;top:0;transform:translateX(-50%);width:15px}.kbook-shell .line-height-field .toolbar-field,.kbook-shell .spacing-field .toolbar-field,.textbook-editor-app .line-height-field .toolbar-field,.textbook-editor-app .spacing-field .toolbar-field{width:31px}.kbook-shell .toolbar-field span,.textbook-editor-app .toolbar-field span{font-size:13px;line-height:1}.kbook-shell .toolbar-field svg,.textbook-editor-app .toolbar-field svg{color:#4b5563;flex:0 0 auto}.kbook-shell .toolbar-dropdown.open .toolbar-field,.kbook-shell .toolbar-field:hover,.textbook-editor-app .toolbar-dropdown.open .toolbar-field,.textbook-editor-app .toolbar-field:hover{background:#edf2ff;color:#2563ff}.kbook-shell .toolbar-menu,.textbook-editor-app .toolbar-menu{background:#fff;border:1px solid #e0e4ea;border-radius:4px;box-shadow:0 10px 28px rgba(15,23,42,.13);left:0;padding:6px;position:absolute;top:calc(100% + 4px);z-index:60}.kbook-shell .font-menu,.kbook-shell .line-height-menu,.kbook-shell .style-menu,.textbook-editor-app .font-menu,.textbook-editor-app .line-height-menu,.textbook-editor-app .style-menu{min-width:116px}.kbook-shell .style-menu,.textbook-editor-app .style-menu{min-width:138px}.kbook-shell .toolbar-menu button,.textbook-editor-app .toolbar-menu button{align-items:center;background:transparent;border:0;border-radius:3px;color:#4b5563;cursor:pointer;display:flex;gap:6px;min-height:30px;padding:0 8px;text-align:left;width:100%}.kbook-shell .toolbar-menu button.selected,.kbook-shell .toolbar-menu button:hover,.textbook-editor-app .toolbar-menu button.selected,.textbook-editor-app .toolbar-menu button:hover{background:#eef3ff;color:#2563ff}.kbook-shell .toolbar-menu button>svg:first-child,.textbook-editor-app .toolbar-menu button>svg:first-child{color:transparent;flex:0 0 14px;height:14px;width:14px}.kbook-shell .toolbar-menu button.selected>svg:first-child,.textbook-editor-app .toolbar-menu button.selected>svg:first-child{color:#2563ff}.kbook-shell .table-grid-menu,.textbook-editor-app .table-grid-menu{display:grid;grid-template-columns:repeat(10,20px);grid-gap:3px;gap:3px;padding:8px 8px 32px}.kbook-shell .table-grid-menu button,.textbook-editor-app .table-grid-menu button{position:relative;z-index:0;display:block;width:20px;min-height:20px;height:20px;padding:0;border:1px solid #cbd5e1;border-radius:2px;background:#fff}.kbook-shell .table-grid-menu button:hover,.textbook-editor-app .table-grid-menu button:hover{z-index:2;background:#fff}.kbook-shell .table-grid-menu button:hover:before,.textbook-editor-app .table-grid-menu button:hover:before{position:absolute;right:-1px;bottom:-1px;z-index:1;box-sizing:border-box;width:calc(var(--table-grid-columns) * 23px - 3px);height:calc(var(--table-grid-rows) * 23px - 3px);border:1px solid #2563eb;border-radius:3px;background:rgba(37,99,235,.16);content:"";pointer-events:none}.kbook-shell .table-grid-menu button:hover:after,.textbook-editor-app .table-grid-menu button:hover:after{position:absolute;top:var(--table-grid-label-top);left:var(--table-grid-label-left);width:227px;color:#334155;content:attr(data-table-dimensions);font-size:12px;font-weight:600;line-height:20px;text-align:center;white-space:nowrap;pointer-events:none}.kbook-shell .toolbar-field:disabled,.textbook-editor-app .toolbar-field:disabled{cursor:not-allowed;opacity:.38}.textbook-table-context-menu{position:fixed;z-index:120;display:grid;width:210px;padding:6px;border:1px solid #dce3ed;border-radius:8px;background:#fff;box-shadow:0 12px 30px rgba(15,23,42,.18)}.textbook-table-context-menu button{min-height:34px;padding:0 12px;border:0;border-radius:5px;background:transparent;color:#334155;font-size:14px;text-align:left;cursor:pointer}.textbook-table-context-menu button:focus-visible,.textbook-table-context-menu button:hover:not(:disabled){outline:0;background:#eef4ff;color:#1d4ed8}.textbook-table-context-menu button:disabled{color:#a8b1bf;cursor:not-allowed}.textbook-table-context-menu button.has-divider{margin-top:5px;border-top:1px solid #e8edf4;border-radius:0 0 5px 5px;padding-top:5px}.textbook-ai-context-menu{width:184px;padding:4px;box-shadow:0 8px 22px rgba(15,23,42,.14)}.textbook-ai-context-menu-section+.textbook-ai-context-menu-section{margin-top:4px;padding-top:4px;border-top:1px solid #e8edf4}.textbook-ai-context-menu button{display:inline-flex;align-items:center;gap:8px;width:100%;min-height:32px;padding:0 12px;color:#243044;font-size:14px;line-height:1.1}.textbook-ai-context-menu button.danger{color:#ef4444}.textbook-context-menu-icon{flex:0 0 auto}.kbook-shell .style-preview,.textbook-editor-app .style-preview{color:#4b5563;font-weight:700;white-space:nowrap}.kbook-shell .style-preview.paragraph,.textbook-editor-app .style-preview.paragraph{color:#2563ff;font-size:14px;font-weight:400}.kbook-shell .style-preview.h1,.textbook-editor-app .style-preview.h1{font-size:20px}.kbook-shell .style-preview.h2,.textbook-editor-app .style-preview.h2{font-size:18px}.kbook-shell .style-preview.h3,.textbook-editor-app .style-preview.h3{font-size:16px}.kbook-shell .style-preview.h4,.textbook-editor-app .style-preview.h4{font-size:15px}.kbook-shell .font-menu button,.kbook-shell .line-height-menu button,.kbook-shell .size-menu button,.textbook-editor-app .font-menu button,.textbook-editor-app .line-height-menu button,.textbook-editor-app .size-menu button{font-size:14px}.kbook-shell .size-menu,.textbook-editor-app .size-menu{max-height:250px;min-width:84px;overflow-y:auto;scrollbar-color:#888 transparent}.kbook-shell .color-menu,.textbook-editor-app .color-menu{min-width:244px;padding:10px 12px 12px}.kbook-shell .color-menu-head,.textbook-editor-app .color-menu-head{align-items:center;display:flex;gap:8px;margin-bottom:8px}.kbook-shell .color-menu-head strong,.textbook-editor-app .color-menu-head strong{color:#333;font-size:14px;font-weight:400}.kbook-shell .color-swatch.large,.textbook-editor-app .color-swatch.large{border:1px solid #d8dde5;border-radius:4px;display:inline-block;height:20px;width:20px}.kbook-shell .color-swatch.empty,.kbook-shell .color-trigger.empty .color-trigger-icon i,.textbook-editor-app .color-swatch.empty,.textbook-editor-app .color-trigger.empty .color-trigger-icon i{border:1px dashed #98a2b3;background:transparent}.kbook-shell .color-grid,.textbook-editor-app .color-grid{display:grid;grid-gap:4px;gap:4px;grid-template-columns:repeat(10,18px)}.kbook-shell .color-grid button,.textbook-editor-app .color-grid button{border:1px solid #d8dde5;border-radius:3px;height:18px;min-height:18px;padding:0;width:18px}.kbook-shell .color-grid button.selected,.textbook-editor-app .color-grid button.selected{box-shadow:inset 0 0 0 2px rgba(255,255,255,.9);filter:brightness(1.06)}.kbook-shell .color-grid button svg,.textbook-editor-app .color-grid button svg{color:#fff;filter:drop-shadow(0 1px 1px rgba(0,0,0,.35));margin:auto}.kbook-shell .list-menu,.textbook-editor-app .list-menu{display:grid;grid-gap:8px;gap:8px;grid-template-columns:repeat(3,96px);min-width:0;width:max-content;padding:8px}.kbook-shell .bullet-list-menu,.kbook-shell .ordered-list-menu,.textbook-editor-app .bullet-list-menu,.textbook-editor-app .ordered-list-menu{grid-template-columns:repeat(3,96px)}.kbook-shell .list-menu button,.textbook-editor-app .list-menu button{border:1px solid #e0e4ea;border-radius:4px;display:grid;grid-template-columns:24px 1fr;grid-gap:7px;gap:7px;height:64px;min-height:64px;max-width:96px;overflow:hidden;padding:8px;width:96px}.kbook-shell .list-menu button>svg:first-child,.textbook-editor-app .list-menu button>svg:first-child{display:none}.kbook-shell .list-menu button i,.textbook-editor-app .list-menu button i{background:linear-gradient(#e5e7eb,#e5e7eb) 0 8px /44px 3px no-repeat,linear-gradient(#e5e7eb,#e5e7eb) 0 24px /44px 3px no-repeat,linear-gradient(#e5e7eb,#e5e7eb) 0 40px /44px 3px no-repeat;height:48px;width:44px}.kbook-shell .list-menu button span,.textbook-editor-app .list-menu button span{color:#222;font-size:12px;line-height:1.28;white-space:pre-line}.kbook-shell .bullet-preview,.textbook-editor-app .bullet-preview{display:grid;grid-gap:14px;gap:14px;justify-items:center}.kbook-shell .bullet-preview,.kbook-shell .bullet-preview:after,.kbook-shell .bullet-preview:before,.textbook-editor-app .bullet-preview,.textbook-editor-app .bullet-preview:after,.textbook-editor-app .bullet-preview:before{content:""}.kbook-shell .bullet-preview,.textbook-editor-app .bullet-preview{height:48px;width:16px}.kbook-shell .bullet-preview.disc,.textbook-editor-app .bullet-preview.disc{background:radial-gradient(circle,#111 0 2px,transparent 3px) center 3px /16px 12px no-repeat,radial-gradient(circle,#111 0 2px,transparent 3px) center 19px /16px 12px no-repeat,radial-gradient(circle,#111 0 2px,transparent 3px) center 35px /16px 12px no-repeat}.kbook-shell .bullet-preview.circle,.textbook-editor-app .bullet-preview.circle{background:radial-gradient(circle,transparent 0 2px,#111 3px,transparent 4px) center 3px /16px 12px no-repeat,radial-gradient(circle,transparent 0 2px,#111 3px,transparent 4px) center 19px /16px 12px no-repeat,radial-gradient(circle,transparent 0 2px,#111 3px,transparent 4px) center 35px /16px 12px no-repeat}.kbook-shell .bullet-preview.square,.textbook-editor-app .bullet-preview.square{background:linear-gradient(#111,#111) center 6px /5px 5px no-repeat,linear-gradient(#111,#111) center 22px /5px 5px no-repeat,linear-gradient(#111,#111) center 38px /5px 5px no-repeat}.kbook-shell .align-menu,.textbook-editor-app .align-menu{min-width:132px}.kbook-shell .align-menu button,.textbook-editor-app .align-menu button{font-size:14px;justify-content:flex-start}.kbook-shell .align-menu button svg:not(:first-child),.textbook-editor-app .align-menu button svg:not(:first-child){height:16px;width:16px}.kbook-shell .textbook-avatar-card span,.textbook-editor-app .textbook-avatar-card span{color:#64748b;font-size:13px;line-height:1.55}.kbook-shell .textbook-avatar-card button,.textbook-editor-app .textbook-avatar-card button{min-height:36px;padding:0 12px;border:0;border-radius:6px;display:inline-flex;align-items:center;gap:6px;background:#1677ff;color:#fff;cursor:pointer;font-weight:700}.kbook-shell .textbook-avatar,.textbook-editor-app .textbook-avatar{position:absolute;left:34px;bottom:30px;width:116px;height:178px}.kbook-shell .avatar-head,.textbook-editor-app .avatar-head{position:relative;width:92px;height:92px;margin:0 auto;border-radius:50%;background:radial-gradient(circle at 34% 38%,#fff 0 8px,transparent 9px),radial-gradient(circle at 64% 38%,#fff 0 8px,transparent 9px),radial-gradient(circle at 35% 39%,#1e293b 0 4px,transparent 5px),radial-gradient(circle at 65% 39%,#1e293b 0 4px,transparent 5px),radial-gradient(circle at 48% 66%,#e85b5b 0 5px,transparent 6px),#ffd2ad;box-shadow:inset 0 10px 0 #8b3f2f,0 10px 24px rgba(31,41,55,.18)}.kbook-shell .avatar-head:before,.textbook-editor-app .avatar-head:before{content:"";position:absolute;left:16px;top:-10px;width:66px;height:42px;border-radius:50% 50% 45% 45%;background:linear-gradient(135deg,#7b3a2d,#bd6b4a);transform:rotate(-8deg)}.kbook-shell .avatar-head span,.textbook-editor-app .avatar-head span{position:absolute;left:43px;top:47px;width:8px;height:8px;border-radius:50%;background:#f2a580}.kbook-shell .avatar-body,.textbook-editor-app .avatar-body{width:82px;height:84px;margin:-2px auto 0;border-radius:26px 26px 16px 16px;background:linear-gradient(90deg,transparent 0 23px,#fff 24px 58px,transparent 59px),linear-gradient(135deg,#6d8cf5,#2d5bde);box-shadow:0 16px 24px rgba(45,91,222,.18)}.kbook-shell .textbook-page-wrap,.textbook-editor-app .textbook-page-wrap{position:relative;height:100%;padding:18px 48px 44px;overflow:auto;-ms-overflow-style:none;scrollbar-width:none}.kbook-shell .textbook-page-wrap::-webkit-scrollbar,.textbook-editor-app .textbook-page-wrap::-webkit-scrollbar{display:none}.kbook-shell .textbook-body-workspace,.textbook-editor-app .textbook-body-workspace{position:relative;min-width:0;height:100%;overflow:hidden;background:#f1f3f6}.kbook-shell .textbook-body-outline-panel,.textbook-editor-app .textbook-body-outline-panel{position:absolute;z-index:12;inset:0 auto 0 0;width:44px;height:100%;border-right:1px solid transparent;background:transparent;overflow:hidden;transition:width .16s ease,box-shadow .16s ease,background-color .12s ease,border-color .12s ease}.kbook-shell .textbook-body-outline-panel:focus-within,.kbook-shell .textbook-body-outline-panel:hover,.textbook-editor-app .textbook-body-outline-panel:focus-within,.textbook-editor-app .textbook-body-outline-panel:hover{width:248px;border-right-color:#dfe5ee;background:#f8fafc;box-shadow:16px 0 28px rgba(15,23,42,.08)}.kbook-shell .textbook-body-outline-toggle,.textbook-editor-app .textbook-body-outline-toggle{width:32px;height:56px;margin:84px auto 0;border:0;border-radius:10px;display:grid;place-items:center;color:#475569;background:transparent}.kbook-shell .textbook-body-outline-toggle:hover,.textbook-editor-app .textbook-body-outline-toggle:hover{color:#0b67ff;background:#eaf2ff}.kbook-shell .textbook-body-outline-mark,.textbook-editor-app .textbook-body-outline-mark{width:18px;display:grid;grid-gap:8px;gap:8px}.kbook-shell .textbook-body-outline-mark i,.textbook-editor-app .textbook-body-outline-mark i{display:block;height:2px;border-radius:999px;background:#c8d1df}.kbook-shell .textbook-body-outline-mark i:first-child,.textbook-editor-app .textbook-body-outline-mark i:first-child{background:#667085}.kbook-shell .textbook-body-outline-panel:focus-within .textbook-body-outline-toggle,.kbook-shell .textbook-body-outline-panel:hover .textbook-body-outline-toggle,.textbook-editor-app .textbook-body-outline-panel:focus-within .textbook-body-outline-toggle,.textbook-editor-app .textbook-body-outline-panel:hover .textbook-body-outline-toggle{position:absolute;top:18px;right:10px;margin:0;height:32px}.kbook-shell .textbook-body-outline-content,.textbook-editor-app .textbook-body-outline-content{height:100%;min-width:248px;padding:56px 14px 18px;overflow:auto;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .12s ease}.kbook-shell .textbook-body-outline-panel:focus-within .textbook-body-outline-content,.kbook-shell .textbook-body-outline-panel:hover .textbook-body-outline-content,.textbook-editor-app .textbook-body-outline-panel:focus-within .textbook-body-outline-content,.textbook-editor-app .textbook-body-outline-panel:hover .textbook-body-outline-content{opacity:1;visibility:visible;pointer-events:auto}.kbook-shell .textbook-body-outline-head,.textbook-editor-app .textbook-body-outline-head{min-height:34px;display:flex;align-items:center;color:#172033;font-size:12px;font-weight:800}.kbook-shell .textbook-body-outline-list,.textbook-editor-app .textbook-body-outline-list{margin-top:8px;display:grid;grid-gap:4px;gap:4px}.kbook-shell .textbook-body-outline-item,.textbook-editor-app .textbook-body-outline-item{min-width:0;min-height:32px;border:0;border-radius:6px;padding:0 8px 0 calc(8px + var(--body-outline-depth, 0) * 14px);display:block;overflow:hidden;color:#64748b;background:transparent;font-size:11px;line-height:32px;text-align:left;text-overflow:ellipsis;white-space:nowrap}.kbook-shell .textbook-body-outline-item:hover,.textbook-editor-app .textbook-body-outline-item:hover{color:#0b67ff;background:#edf5ff}.kbook-shell .textbook-body-outline-item.active,.textbook-editor-app .textbook-body-outline-item.active{color:#0b67ff;background:#e8f1ff;font-weight:700}.kbook-shell .textbook-body-outline-empty,.textbook-editor-app .textbook-body-outline-empty{margin:8px 0 0;color:#94a3b8;font-size:11px}.kbook-shell .textbook-page,.textbook-editor-app .textbook-page{width:min(100%,920px);min-height:1120px;margin:0 auto;padding:56px 48px;background:#fff;box-shadow:0 1px 0 rgba(15,23,42,.04)}.kbook-shell .textbook-section-title-editor,.textbook-editor-app .textbook-section-title-editor{margin:0 0 18px;padding:0 0 12px;border-bottom:1px solid #dfe8f4}.kbook-shell .textbook-section-title-editor input,.textbook-editor-app .textbook-section-title-editor input{width:100%;min-width:0;border:0;background:transparent;color:#172033;font-family:SimSun,STSong,serif;font-size:28px;font-weight:700;line-height:1.25;outline:0}.kbook-shell .textbook-section-title-editor input:focus,.textbook-editor-app .textbook-section-title-editor input:focus{box-shadow:none}.kbook-shell .textbook-section-title-editor input[aria-invalid=true],.textbook-editor-app .textbook-section-title-editor input[aria-invalid=true]{color:#9a3412;box-shadow:inset 0 -2px 0 #f97316}.kbook-shell .textbook-section-title-editor.chapter input,.textbook-editor-app .textbook-section-title-editor.chapter input{font-size:30px}.kbook-shell .textbook-section-title-editor.subsection input,.textbook-editor-app .textbook-section-title-editor.subsection input{font-size:24px}.kbook-shell .textbook-section-title-issue,.textbook-editor-app .textbook-section-title-issue{margin-top:8px;display:inline-flex;align-items:center;gap:5px;color:#c2410c;font-size:12px;font-weight:700}.kbook-shell .textbook-prose,.textbook-editor-app .textbook-prose{min-height:820px;outline:0;color:#000;font-family:SimSun,STSong,serif;font-size:14px;line-height:1.5;cursor:text}.kbook-shell .textbook-prose p,.textbook-editor-app .textbook-prose p{margin:0 0 8px}.kbook-shell .textbook-prose>p,.textbook-editor-app .textbook-prose>p{text-indent:2em}.kbook-shell .textbook-prose ol,.kbook-shell .textbook-prose ul,.textbook-editor-app .textbook-prose ol,.textbook-editor-app .textbook-prose ul{padding-left:1.4em}.kbook-shell .textbook-prose .is-editor-empty:first-child:before,.textbook-editor-app .textbook-prose .is-editor-empty:first-child:before{float:left;height:0;color:#98a2b3;content:attr(data-placeholder);pointer-events:none}.kbook-shell .textbook-prose .ProseMirror-gapcursor,.textbook-editor-app .textbook-prose .ProseMirror-gapcursor{position:absolute;display:none;margin:0;pointer-events:none}.kbook-shell .textbook-prose.ProseMirror-focused .ProseMirror-gapcursor,.textbook-editor-app .textbook-prose.ProseMirror-focused .ProseMirror-gapcursor{display:block}.kbook-shell .textbook-prose .ProseMirror-gapcursor:after,.textbook-editor-app .textbook-prose .ProseMirror-gapcursor:after{position:absolute;top:-11px;left:0;width:0;height:22px;border-left:2px solid #1677ff;content:"";animation:textbook-caret-blink 1s steps(2,start) infinite}@keyframes textbook-caret-blink{0%,49%{opacity:1}50%,to{opacity:0}}.kbook-shell .textbook-assistant-panel,.textbook-editor-app .textbook-assistant-panel{position:relative;padding:36px 32px 24px 0;display:flex;flex-direction:column;gap:16px;overflow-y:auto;background:#f1f3f6}.kbook-shell .assistant-card,.textbook-editor-app .assistant-card{width:100%;max-width:360px;padding:22px 20px;border-radius:8px;background:#fff;box-shadow:0 8px 28px rgba(31,41,55,.13)}.kbook-shell .assistant-greeting,.textbook-editor-app .assistant-greeting{margin:0 0 14px;color:#2f70ff;font-size:18px;line-height:1.35;font-weight:800}.kbook-shell .assistant-card h2,.textbook-editor-app .assistant-card h2{margin:16px 0 12px;font-size:16px;line-height:1.2;font-weight:800}.kbook-shell .assistant-grid,.textbook-editor-app .assistant-grid{display:grid;grid-template-columns:1fr 1fr;grid-gap:12px 14px;gap:12px 14px}.kbook-shell .assistant-grid button,.kbook-shell .assistant-more,.textbook-editor-app .assistant-grid button,.textbook-editor-app .assistant-more{min-height:62px;border:0;border-radius:8px;display:flex;align-items:center;justify-content:center;gap:10px;background:#f0f1f5;color:#20242c;font-size:14px;font-weight:700;cursor:pointer}.kbook-shell .assistant-grid button:hover,.textbook-editor-app .assistant-grid button:hover{color:#1677ff;background:#e8f1ff}.kbook-shell .assistant-grid button svg,.textbook-editor-app .assistant-grid button svg{flex:0 0 auto;color:#1677ff}.kbook-shell .assistant-grid button span,.textbook-editor-app .assistant-grid button span{min-width:0;white-space:nowrap}.kbook-shell .assistant-grid.compact button,.textbook-editor-app .assistant-grid.compact button{min-height:50px}.textbook-editor-app .textbook-assistant-panel{min-height:0;padding:0;gap:0;overflow-y:auto;overflow-x:hidden;scrollbar-width:none;-ms-overflow-style:none;background:#ffffff;border-left:1px solid #dfe5ee}.textbook-editor-app .textbook-assistant-panel::-webkit-scrollbar{display:none}.textbook-editor-app .textbook-studio-panel{min-height:100%;display:flex;flex-direction:column;background:#ffffff}.textbook-editor-app .textbook-studio-head{min-height:64px;padding:0 18px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #dfe5ee}.textbook-editor-app .textbook-studio-head strong{color:#07152d;font-size:18px;line-height:1;font-weight:800}.textbook-editor-app .textbook-studio-head .textbook-studio-toggle-panel{flex:0 0 auto}.textbook-editor-app .textbook-editor-workspace.assistant-collapsed .textbook-studio-head{min-height:58px;justify-content:center;padding:10px 0}.textbook-editor-app .textbook-editor-workspace.assistant-collapsed .textbook-studio-divider,.textbook-editor-app .textbook-editor-workspace.assistant-collapsed .textbook-studio-head strong,.textbook-editor-app .textbook-editor-workspace.assistant-collapsed .textbook-studio-queue,.textbook-editor-app .textbook-editor-workspace.assistant-collapsed .textbook-studio-tools{visibility:hidden;opacity:0;pointer-events:none}.textbook-editor-app .textbook-editor-workspace.assistant-collapsed .textbook-studio-head strong{width:0;min-width:0;overflow:hidden}.textbook-editor-app .textbook-editor-workspace.assistant-collapsed .textbook-studio-divider,.textbook-editor-app .textbook-editor-workspace.assistant-collapsed .textbook-studio-queue,.textbook-editor-app .textbook-editor-workspace.assistant-collapsed .textbook-studio-tools{display:none}.textbook-editor-app .textbook-studio-tools{padding:16px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-gap:10px;gap:10px}.textbook-editor-app .textbook-studio-tool{position:relative;min-width:0;min-height:62px;padding:10px 10px 10px 12px;border:0;border-radius:8px;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;grid-gap:8px;gap:8px;color:#17304f;text-align:left;cursor:pointer}.textbook-editor-app .textbook-studio-tool:hover{filter:saturate(1.06) brightness(.98);transform:translateY(-1px)}.textbook-editor-app .textbook-studio-tool.blue{background:#edf4ff}.textbook-editor-app .textbook-studio-tool.green{background:#eaf7ef}.textbook-editor-app .textbook-studio-tool.gold{background:#f6f1dd}.textbook-editor-app .textbook-studio-tool.cyan{background:#e8f8fb}.textbook-editor-app .textbook-studio-tool.rose{background:#faeeee}.textbook-editor-app .textbook-studio-tool-icon{width:22px;height:22px;border-radius:6px;display:inline-flex;align-items:center;justify-content:center;color:#1261df}.textbook-editor-app .textbook-studio-tool-title{min-width:0;overflow:hidden;color:#0a1a33;font-size:14px;line-height:1.25;font-weight:800;text-overflow:ellipsis;white-space:nowrap}.textbook-editor-app .textbook-studio-tool small{position:absolute;top:8px;right:28px;padding:2px 5px;border-radius:4px;background:#07152d;color:#ffffff;font-size:10px;line-height:1;font-weight:800}.textbook-editor-app .textbook-studio-divider{height:1px;margin:0 16px;background:#dfe5ee}.textbook-editor-app .textbook-studio-queue{flex:0 0 auto;padding:18px 16px;display:flex;flex-direction:column;gap:12px;overflow:visible}.textbook-editor-app .textbook-studio-queue-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.textbook-editor-app .textbook-studio-queue-head strong{color:#07152d;font-size:15px;font-weight:800}.textbook-editor-app .textbook-studio-queue-head span{color:#6b778c;font-size:12px;font-weight:700}.textbook-editor-app .textbook-studio-task-list{display:flex;flex-direction:column;gap:10px;overflow:visible;padding:0 0 16px;border:0;border-radius:0;background:transparent}.textbook-editor-app .textbook-studio-task{position:relative;min-height:70px;padding:12px 10px;border:1px solid #e5ebf3;border-radius:8px;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;grid-gap:8px;gap:8px;background:#ffffff;cursor:pointer}.textbook-editor-app .textbook-studio-task-open{min-width:0;padding:0;border:0;display:grid;grid-template-columns:38px minmax(0,1fr);align-items:start;grid-gap:8px;gap:8px;background:transparent;color:inherit;text-align:left;cursor:pointer}.textbook-editor-app .textbook-studio-task-open:focus-visible{outline:2px solid #1677ff;outline-offset:2px}.textbook-editor-app .textbook-studio-task+.textbook-studio-task{border-top-color:#e5ebf3}.textbook-editor-app .textbook-studio-task-icon{width:34px;height:34px;border-radius:8px;display:inline-flex;align-items:center;justify-content:center;color:#0b77a8;background:#f7fbff}.textbook-editor-app .textbook-studio-task.succeeded .textbook-studio-task-icon{color:#8f2f2b}.textbook-editor-app .textbook-studio-task.queued .textbook-studio-task-icon,.textbook-editor-app .textbook-studio-task.running .textbook-studio-task-icon{color:#927c24}.textbook-editor-app .textbook-studio-task.failed .textbook-studio-task-icon{color:#c03744}.textbook-editor-app .textbook-studio-task-main{min-width:0;display:flex;flex-direction:column;gap:3px}.textbook-editor-app .textbook-studio-task-main strong{display:block;overflow:hidden;color:#1f2937;font-size:15px;line-height:1.25;font-weight:800;text-overflow:ellipsis;white-space:nowrap}.textbook-editor-app .textbook-studio-task-main span{color:#5f6673;font-size:13px;line-height:1.4}.textbook-editor-app .textbook-studio-progress-row{width:min(196px,100%);margin-top:6px;display:flex;align-items:center;gap:8px}.textbook-editor-app .textbook-studio-progress{flex:1 1 auto;min-width:0;height:4px;border-radius:999px;overflow:hidden;background:#edf1f7}.textbook-editor-app .textbook-studio-progress i{display:block;height:100%;border-radius:inherit;background:#2868e8;transition:width .18s ease}.textbook-editor-app .textbook-studio-task-main .textbook-studio-progress-value{flex:0 0 30px;color:#455166;font-size:11px;line-height:1;text-align:right}.textbook-editor-app .textbook-studio-task-error{margin:4px 0 0;color:#c03744;font-size:12px;line-height:1.45}.textbook-editor-app .textbook-studio-empty{min-height:180px;border:1px dashed #d5deea;border-radius:8px;display:grid;place-items:center;align-content:center;grid-gap:10px;gap:10px;color:#6b778c;background:#fbfdff;text-align:center}.textbook-editor-app .textbook-studio-empty strong{font-size:14px;font-weight:800}.textbook-editor-app .textbook-studio-task-top{position:relative;min-width:0;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;grid-gap:8px;gap:8px}.textbook-editor-app .textbook-studio-task-menu-wrap{position:relative}.textbook-editor-app .textbook-studio-task-menu-btn{width:32px;height:32px;border:0;border-radius:8px;display:inline-flex;align-items:center;justify-content:center;background:transparent;color:#5e6b80;cursor:pointer}.textbook-editor-app .textbook-studio-task-menu-btn:hover{background:#edf3fb;color:#12233d}.textbook-editor-app .textbook-studio-task-menu{position:absolute;top:30px;right:0;z-index:8;width:142px;padding:6px;border:1px solid #dfe5ee;border-radius:8px;display:grid;grid-gap:2px;gap:2px;background:#ffffff;box-shadow:0 16px 40px rgba(15,23,42,.16)}.textbook-editor-app .textbook-studio-task-menu button{min-height:30px;padding:0 8px;border:0;border-radius:6px;display:flex;align-items:center;justify-content:flex-start;gap:8px;background:transparent;color:#1f2937;font-size:12px;font-weight:800;cursor:pointer}.textbook-editor-app .textbook-studio-task-menu button svg{width:14px;height:14px}.textbook-editor-app .textbook-studio-task-menu button:hover{background:#f1f5fb}.textbook-editor-app .textbook-studio-task-menu button:disabled{opacity:.44;cursor:not-allowed}.textbook-editor-app .textbook-studio-modal-backdrop{position:fixed;inset:0;z-index:140;padding:32px;display:flex;align-items:center;justify-content:center;background:rgba(20,29,45,.34);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.textbook-editor-app .textbook-studio-modal{position:relative;width:min(1120px,calc(100vw - 64px));max-height:min(860px,calc(100vh - 64px));overflow:auto;padding:42px 40px 34px;border-radius:8px;display:grid;grid-gap:24px 28px;gap:24px 28px;background:#ffffff;color:#172033;box-shadow:0 32px 82px rgba(15,23,42,.22)}.textbook-editor-app .textbook-studio-modal.detail{width:min(720px,calc(100vw - 64px))}.textbook-editor-app .textbook-studio-modal h2{grid-column:1/-1;margin:0;padding-right:72px;color:#101828;font-size:34px;line-height:1.16;font-weight:900}.textbook-editor-app .textbook-studio-modal-close{position:absolute;top:38px;right:40px;width:62px;height:62px;border:0;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;background:#eef1f5;color:#101828;cursor:pointer}.textbook-editor-app .textbook-studio-modal-field{min-width:0;display:grid;grid-gap:12px;gap:12px}.textbook-editor-app .textbook-studio-modal-field.full{grid-column:1/-1}.textbook-editor-app .textbook-studio-modal-cost strong,.textbook-editor-app .textbook-studio-modal-field>span:not(.textbook-studio-file-picker){color:#172033;font-size:24px;line-height:1.25;font-weight:900}.textbook-editor-app .textbook-studio-modal-field select,.textbook-editor-app .textbook-studio-modal-field textarea{width:100%;border:1px solid #dbe3ef;border-radius:8px;background:#f8fafc;color:#172033;font:inherit;font-size:23px;outline:0}.textbook-editor-app .textbook-studio-modal-field select{min-height:72px;padding:0 28px}.textbook-editor-app .textbook-studio-modal-field textarea{min-height:150px;padding:24px 26px;resize:vertical}.textbook-editor-app .textbook-studio-modal-field textarea::placeholder{color:#7b7f88}.textbook-editor-app .textbook-studio-file-picker{position:relative;min-height:72px;padding:8px 20px 8px 10px;border:1px solid #dbe3ef;border-radius:8px;display:flex;align-items:center;gap:22px;background:#f8fafc;overflow:hidden}.textbook-editor-app .textbook-studio-file-picker input{position:absolute;inset:0;opacity:0;cursor:pointer}.textbook-editor-app .textbook-studio-file-picker b{min-height:56px;padding:0 24px;border-radius:8px;display:inline-flex;align-items:center;background:#e8f0ff;color:#1f67df;font-size:22px;font-weight:900;white-space:nowrap}.textbook-editor-app .textbook-studio-file-picker em{min-width:0;overflow:hidden;color:#697386;font-size:22px;font-style:normal;font-weight:800;text-overflow:ellipsis;white-space:nowrap}.textbook-editor-app .textbook-studio-modal-cost{display:grid;align-content:start;grid-gap:16px;gap:16px}.textbook-editor-app .textbook-studio-modal-cost span{color:#172033;font-size:22px;font-weight:900}.textbook-editor-app .textbook-studio-modal-error{grid-column:1/-1;margin:0;padding:12px 16px;border:1px solid rgba(220,38,38,.22);border-radius:8px;background:#fff1f2;color:#b91c1c;font-size:15px;font-weight:800}.textbook-editor-app .textbook-studio-modal-actions{grid-column:1/-1;display:flex;justify-content:flex-end;align-items:center;gap:18px;margin-top:6px}.textbook-editor-app .textbook-studio-modal-actions button{min-width:132px;min-height:70px;padding:0 32px;border:1px solid #dbe3ef;border-radius:999px;background:#ffffff;color:#172033;font-size:24px;font-weight:900;cursor:pointer}.textbook-editor-app .textbook-studio-modal-actions button.primary{border-color:transparent;background:#2f6feb;color:#ffffff}.textbook-editor-app .textbook-studio-modal-actions button:disabled{opacity:.46;cursor:not-allowed}.textbook-editor-app .textbook-studio-detail-list{grid-column:1/-1;margin:0;display:grid;grid-gap:14px;gap:14px}.textbook-editor-app .textbook-studio-detail-list div{display:grid;grid-template-columns:120px minmax(0,1fr);grid-gap:16px;gap:16px;align-items:start}.textbook-editor-app .textbook-studio-detail-list dt{color:#6b778c;font-size:15px;font-weight:800}.textbook-editor-app .textbook-studio-detail-list dd{min-width:0;margin:0;overflow-wrap:anywhere;color:#172033;font-size:15px;font-weight:800}@media (max-width:900px){.textbook-editor-app .textbook-studio-modal-backdrop{padding:18px}.textbook-editor-app .textbook-studio-modal{width:calc(100vw - 36px);grid-template-columns:1fr;padding:30px 22px 24px}.textbook-editor-app .textbook-studio-modal h2{font-size:26px}.textbook-editor-app .textbook-studio-modal-close{top:24px;right:22px;width:46px;height:46px}}.textbook-editor-app .textbook-studio-modal-backdrop{padding:24px;background:rgba(15,23,42,.28)}.textbook-editor-app .textbook-studio-modal{width:min(520px,calc(100vw - 32px));max-height:min(760px,calc(100vh - 32px));padding:18px;border-radius:16px;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;color:#1d2433;font-size:13px;box-shadow:0 28px 64px rgba(15,23,42,.18)}.textbook-editor-app .textbook-studio-modal.ai-video{width:min(640px,calc(100vw - 32px))}.textbook-editor-app .textbook-studio-modal.detail{width:min(520px,calc(100vw - 32px))}.textbook-editor-app .textbook-studio-modal h2{padding-right:44px;font-size:18px;line-height:1.25;font-weight:800}.textbook-editor-app .textbook-studio-modal-close{top:16px;right:16px;width:34px;height:34px;background:rgba(148,163,184,.14)}.textbook-editor-app .textbook-studio-modal-close svg{width:20px;height:20px}.textbook-editor-app .textbook-studio-modal-field{gap:6px}.textbook-editor-app .textbook-studio-modal-cost strong,.textbook-editor-app .textbook-studio-modal-field>span:not(.textbook-studio-file-picker){font-size:13px;font-weight:700}.textbook-editor-app .textbook-studio-modal-field select,.textbook-editor-app .textbook-studio-modal-field textarea{border-color:rgba(148,163,184,.22);font-size:13px}.textbook-editor-app .textbook-studio-modal-field select{min-height:40px;padding:10px 12px}.textbook-editor-app .textbook-studio-modal-field textarea{min-height:88px;padding:10px 12px}.textbook-editor-app .textbook-studio-modal.ai-video .textbook-studio-modal-field textarea{min-height:110px}.textbook-editor-app .textbook-studio-file-picker{min-height:38px;padding:4px 10px 4px 4px;gap:10px;border-color:rgba(148,163,184,.26);border-radius:6px}.textbook-editor-app .textbook-studio-file-picker b{min-height:28px;padding:0 12px;border-radius:4px;font-size:12px;font-weight:800}.textbook-editor-app .textbook-studio-file-picker em{font-size:12px;font-weight:400}.textbook-editor-app .textbook-studio-modal-cost{gap:8px}.textbook-editor-app .textbook-studio-modal-cost span{font-size:13px;font-weight:800}.textbook-editor-app .textbook-studio-modal-actions{gap:10px;margin-top:0}.textbook-editor-app .textbook-studio-modal-actions button{min-width:0;min-height:40px;padding:0 16px;font-size:13px;font-weight:700}.textbook-editor-app .textbook-studio-detail-list{gap:10px}.textbook-editor-app .textbook-studio-detail-list div{grid-template-columns:84px minmax(0,1fr)}.textbook-editor-app .textbook-studio-detail-list dd,.textbook-editor-app .textbook-studio-detail-list dt{font-size:13px}.kbook-shell .textbook-ai-card,.textbook-editor-app .textbook-ai-card,.textbook-player-ai-panel .textbook-ai-card{display:grid;grid-gap:12px;gap:12px}.kbook-shell .textbook-ai-card textarea,.textbook-editor-app .textbook-ai-card textarea,.textbook-player-ai-panel .textbook-ai-card textarea{width:100%;min-height:72px;resize:vertical;border:1px solid #d9e0ea;border-radius:6px;padding:10px 12px;background:#fff;color:#172033;font:inherit;line-height:1.5;outline:0}.kbook-shell .textbook-ai-card textarea:focus,.textbook-editor-app .textbook-ai-card textarea:focus,.textbook-player-ai-panel .textbook-ai-card textarea:focus{border-color:#8bbcff;box-shadow:0 0 0 3px rgba(22,119,255,.12)}.kbook-shell .textbook-ai-status,.textbook-editor-app .textbook-ai-status,.textbook-player-ai-panel .textbook-ai-status{border-radius:6px;background:#edf5ff;color:#1767d8;font-size:12px;font-weight:800;padding:8px 10px}.kbook-shell .textbook-ai-error,.textbook-editor-app .textbook-ai-error,.textbook-player-ai-panel .textbook-ai-error{border:1px solid rgba(220,38,38,.2);border-radius:6px;background:#fff1f2;color:#b91c1c;font-size:12px;font-weight:800;line-height:1.45;padding:8px 10px}.kbook-shell .textbook-ai-result,.textbook-editor-app .textbook-ai-result,.textbook-player-ai-panel .textbook-ai-result{display:grid;grid-gap:10px;gap:10px;border:1px solid #e2e8f0;border-radius:8px;background:#f8fafc;padding:12px}.kbook-shell .textbook-ai-result>strong,.textbook-editor-app .textbook-ai-result>strong,.textbook-player-ai-panel .textbook-ai-result>strong{color:#172033;font-size:13px;font-weight:900}.kbook-shell .textbook-ai-result p,.textbook-editor-app .textbook-ai-result p,.textbook-player-ai-panel .textbook-ai-result p{margin:0;color:#334155;font-size:13px;line-height:1.55;white-space:pre-wrap}.kbook-shell .textbook-ai-actions,.textbook-editor-app .textbook-ai-actions,.textbook-player-ai-panel .textbook-ai-actions{display:flex;flex-wrap:wrap;gap:8px}.kbook-shell .textbook-ai-actions button,.kbook-shell .textbook-ai-actions span,.textbook-editor-app .textbook-ai-actions button,.textbook-editor-app .textbook-ai-actions span,.textbook-player-ai-panel .textbook-ai-actions button,.textbook-player-ai-panel .textbook-ai-actions span{min-height:28px;border:1px solid rgba(22,119,255,.18);border-radius:6px;background:#fff;color:#1767d8;font-size:12px;font-weight:800;padding:0 10px}.kbook-shell .textbook-ai-recommendations,.textbook-editor-app .textbook-ai-recommendations{display:grid;grid-gap:8px;gap:8px}.kbook-shell .textbook-ai-recommendations button,.textbook-editor-app .textbook-ai-recommendations button{min-height:0;display:grid;justify-items:start;grid-gap:4px;gap:4px;border:1px solid #e2e8f0;border-radius:6px;background:#fff;color:#172033;padding:10px;text-align:left}.kbook-shell .textbook-ai-config span,.kbook-shell .textbook-ai-recommendations span,.textbook-editor-app .textbook-ai-config span,.textbook-editor-app .textbook-ai-recommendations span,.textbook-player-ai-panel .textbook-ai-result small{color:#64748b;font-size:12px;line-height:1.45}.kbook-shell .textbook-ai-config,.textbook-editor-app .textbook-ai-config{display:grid;grid-gap:6px;gap:6px}.kbook-shell .textbook-ai-segmented,.textbook-editor-app .textbook-ai-segmented{display:grid;grid-template-columns:repeat(3,1fr);grid-gap:6px;gap:6px}.kbook-shell .textbook-ai-segmented button,.textbook-editor-app .textbook-ai-segmented button{min-height:32px;border:1px solid #dbe4f0;border-radius:6px;background:#fff;color:#334155;cursor:pointer;font-size:12px;font-weight:800}.kbook-shell .textbook-ai-segmented button.active,.textbook-editor-app .textbook-ai-segmented button.active{border-color:rgba(22,119,255,.35);background:#edf5ff;color:#1767d8}.kbook-shell .textbook-ai-resource-list,.textbook-editor-app .textbook-ai-resource-list{max-height:220px;display:grid;grid-gap:8px;gap:8px;overflow-y:auto}.kbook-shell .textbook-ai-resource-list label,.textbook-editor-app .textbook-ai-resource-list label{display:grid;grid-template-columns:18px minmax(0,1fr);align-items:start;grid-gap:8px;gap:8px;border:1px solid #e2e8f0;border-radius:6px;background:#fff;padding:9px}.kbook-shell .textbook-ai-resource-list input,.textbook-editor-app .textbook-ai-resource-list input{margin-top:2px}.kbook-shell .textbook-ai-resource-list span,.textbook-editor-app .textbook-ai-resource-list span{min-width:0;display:grid;grid-gap:3px;gap:3px}.kbook-shell .textbook-ai-resource-list strong,.textbook-editor-app .textbook-ai-resource-list strong{overflow:hidden;color:#172033;font-size:13px;text-overflow:ellipsis;white-space:nowrap}.kbook-shell .textbook-ai-resource-list small,.textbook-editor-app .textbook-ai-resource-list small{color:#64748b;font-size:12px}.kbook-shell .textbook-ai-progress,.textbook-editor-app .textbook-ai-progress{display:grid;grid-gap:8px;gap:8px}.kbook-shell .textbook-ai-progress-head,.textbook-editor-app .textbook-ai-progress-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.kbook-shell .textbook-ai-progress-head button,.textbook-editor-app .textbook-ai-progress-head button{border:0;background:transparent;color:#1767d8;cursor:pointer;font-size:12px;font-weight:800}.kbook-shell .textbook-ai-job,.textbook-editor-app .textbook-ai-job{display:grid;grid-gap:4px;gap:4px;border-left:3px solid #94a3b8;border-radius:6px;background:#fff;padding:9px 10px}.kbook-shell .textbook-ai-job.running,.textbook-editor-app .textbook-ai-job.running{border-left-color:#1677ff}.kbook-shell .textbook-ai-job.succeeded,.textbook-editor-app .textbook-ai-job.succeeded{border-left-color:#16a34a}.kbook-shell .textbook-ai-job.failed,.textbook-editor-app .textbook-ai-job.failed{border-left-color:#dc2626}.kbook-shell .textbook-ai-job span,.textbook-editor-app .textbook-ai-job span{overflow:hidden;color:#172033;font-size:13px;font-weight:800;text-overflow:ellipsis;white-space:nowrap}.kbook-shell .textbook-ai-job strong,.textbook-editor-app .textbook-ai-job strong{color:#334155;font-size:12px}.kbook-shell .textbook-ai-job small,.textbook-editor-app .textbook-ai-job small{color:#64748b;font-size:12px;line-height:1.4}.kbook-shell .section-meta-card,.textbook-editor-app .section-meta-card{padding:14px;display:grid;grid-gap:12px;gap:12px}.kbook-shell .resource-config-card label,.kbook-shell .section-meta-card label,.textbook-editor-app .resource-config-card label,.textbook-editor-app .section-meta-card label{display:grid;grid-gap:6px;gap:6px;color:#64748b;font-size:13px;font-weight:700}.kbook-shell .resource-config-card select,.kbook-shell .section-meta-card input,.kbook-shell .section-meta-card textarea,.textbook-editor-app .resource-config-card select,.textbook-editor-app .section-meta-card input,.textbook-editor-app .section-meta-card textarea{width:100%;border:1px solid #d9e0ea;border-radius:6px;background:#fff;color:#172033;font:inherit;outline:0}.kbook-shell .resource-config-card select,.kbook-shell .section-meta-card input,.textbook-editor-app .resource-config-card select,.textbook-editor-app .section-meta-card input{min-height:36px;padding:0 10px}.kbook-shell .section-meta-card textarea,.textbook-editor-app .section-meta-card textarea{min-height:82px;padding:10px;resize:vertical}.kbook-shell .resource-config-card,.textbook-editor-app .resource-config-card{width:100%;max-width:360px;padding:16px;display:grid;grid-gap:12px;gap:12px}.kbook-shell .resource-config-head,.textbook-editor-app .resource-config-head{display:flex;align-items:center;gap:8px;color:#172033}.kbook-shell .resource-config-preview,.textbook-editor-app .resource-config-preview{display:grid;grid-template-columns:78px minmax(0,1fr);grid-gap:12px;gap:12px;align-items:center}.kbook-shell .resource-config-preview img,.textbook-editor-app .resource-config-preview img{width:78px;height:58px;border-radius:6px;object-fit:contain;background:#111827}.kbook-shell .resource-config-preview span,.kbook-shell .resource-config-preview strong,.textbook-editor-app .resource-config-preview span,.textbook-editor-app .resource-config-preview strong{display:block}.kbook-shell .resource-config-preview strong,.textbook-editor-app .resource-config-preview strong{color:#172033;font-size:14px}.kbook-shell .resource-config-card p,.kbook-shell .resource-config-preview span,.textbook-editor-app .resource-config-card p,.textbook-editor-app .resource-config-preview span{margin:4px 0 0;color:#64748b;font-size:12px;line-height:1.5}.kbook-shell .resource-setting-grid,.textbook-editor-app .resource-setting-grid{display:grid;grid-template-columns:1fr 1fr;grid-gap:8px;gap:8px}.kbook-shell .resource-setting-grid span,.kbook-shell .textbook-three-meta em,.textbook-editor-app .resource-setting-grid span,.textbook-editor-app .textbook-three-meta em{border-radius:999px;background:#eef5ff;color:#1767d8;font-size:12px;font-style:normal;font-weight:700}.kbook-shell .resource-setting-grid span,.textbook-editor-app .resource-setting-grid span{min-height:28px;padding:6px 8px;display:inline-flex;align-items:center}.kbook-shell .assistant-more,.textbook-editor-app .assistant-more{width:100%;min-height:64px;margin-top:24px;border:1px solid #d6d8dd;background:#fff}.kbook-shell .textbook-json-preview,.textbook-editor-app .textbook-json-preview{max-width:360px;margin-top:16px;color:#667085;font-size:13px}.kbook-shell .textbook-json-preview summary,.textbook-editor-app .textbook-json-preview summary{cursor:pointer}.kbook-shell .textbook-json-preview pre,.textbook-editor-app .textbook-json-preview pre{max-height:220px;overflow:auto;padding:12px;border-radius:8px;background:#111827;color:#e5e7eb}.kbook-shell .textbook-image-node,.textbook-editor-app .textbook-image-node{margin:14px 0;padding:0}.kbook-shell .textbook-image-node.selected .textbook-image-frame,.textbook-editor-app .textbook-image-node.selected .textbook-image-frame{outline:2px solid #1677ff;outline-offset:3px}.kbook-shell .textbook-image-figure,.textbook-editor-app .textbook-image-figure{position:relative;margin:0 auto;padding-top:0;width:min(88%,920px);display:grid;justify-items:center;grid-gap:10px;gap:10px}.kbook-shell .textbook-image-frame,.textbook-editor-app .textbook-image-frame{position:relative;width:100%;aspect-ratio:16/10;display:flex;align-items:center;justify-content:center;overflow:hidden;border:1px solid #d8e2ef;border-radius:4px;background:#f8fafc;color:#94a3b8}.kbook-shell .textbook-image-frame img,.kbook-shell .textbook-image-frame video,.textbook-editor-app .textbook-image-frame img,.textbook-editor-app .textbook-image-frame video{width:100%;height:100%;object-fit:contain;cursor:zoom-in}.kbook-shell .textbook-image-frame.is-inline-2d-image,.textbook-editor-app .textbook-image-frame.is-inline-2d-image,.textbook-player-app .textbook-image-frame.is-image:not(.is-cover-preview):not(.sbs-mono-frame){width:auto;max-width:100%;height:auto;aspect-ratio:auto;border:0;border-radius:0;background:transparent;overflow:visible}.kbook-shell .textbook-image-frame.is-inline-2d-image img,.textbook-editor-app .textbook-image-frame.is-inline-2d-image img,.textbook-player-app .textbook-image-frame.is-image:not(.is-cover-preview):not(.sbs-mono-frame) img{display:block;width:auto;max-width:100%;height:auto;max-height:70vh}.kbook-shell .textbook-image-frame.is-cover-preview,.textbook-editor-app .textbook-image-frame.is-cover-preview,.textbook-player-app .textbook-image-frame.is-cover-preview{justify-content:flex-start}.kbook-shell .textbook-image-frame.is-cover-preview img,.textbook-editor-app .textbook-image-frame.is-cover-preview img,.textbook-player-app .textbook-image-frame.is-cover-preview img{flex:0 0 200%;width:200%;max-width:none;object-fit:cover;object-position:left center}.kbook-shell .textbook-image-frame.sbs-mono-frame,.textbook-editor-app .textbook-image-frame.sbs-mono-frame{justify-content:flex-start}.kbook-shell .textbook-image-frame.sbs-mono-frame img,.kbook-shell .textbook-image-frame.sbs-mono-frame video,.textbook-editor-app .textbook-image-frame.sbs-mono-frame img,.textbook-editor-app .textbook-image-frame.sbs-mono-frame video{flex:0 0 200%;width:200%;max-width:none;height:100%;object-fit:contain;object-position:left center}.kbook-shell .textbook-image-frame.is-video.is-3d-video,.textbook-editor-app .textbook-image-frame.is-video.is-3d-video{aspect-ratio:16/9}.kbook-shell .textbook-image-frame.is-video.has-poster-cover img,.textbook-editor-app .textbook-image-frame.is-video.has-poster-cover img{width:100%;max-width:100%;height:100%;object-fit:cover;object-position:center}.kbook-shell .textbook-image-frame.is-video.sbs-mono-frame video,.textbook-editor-app .textbook-image-frame.is-video.sbs-mono-frame video{height:100%;object-fit:cover}.kbook-shell .textbook-image-frame>svg,.textbook-editor-app .textbook-image-frame>svg{width:56px;height:56px}.kbook-shell .textbook-course-preview,.textbook-editor-app .textbook-course-preview{width:100%;height:100%;border:0;display:grid;place-items:center;position:relative;overflow:hidden;background:linear-gradient(135deg,#f8fbff,#edf5ff);color:#53657d;cursor:zoom-in}.kbook-shell .textbook-course-preview img,.textbook-editor-app .textbook-course-preview img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}.kbook-shell .textbook-course-preview svg,.textbook-editor-app .textbook-course-preview svg{width:58px;height:58px;color:#5b7aa5}.kbook-shell .textbook-document-preview,.textbook-editor-app .textbook-document-preview{gap:10px;background:linear-gradient(135deg,#f8fbff,#eef6ff)}.kbook-shell .textbook-document-preview svg,.textbook-editor-app .textbook-document-preview svg{width:56px;height:56px;color:#2f70ed}.kbook-shell .textbook-document-preview strong,.textbook-editor-app .textbook-document-preview strong{color:#172033;font-size:22px;line-height:1.2}.kbook-shell .textbook-course-preview span,.textbook-editor-app .textbook-course-preview span{position:relative;z-index:1;display:inline-flex;align-items:center;min-height:32px;padding:0 14px;border-radius:999px;background:rgba(15,23,42,.72);color:#ffffff;font-size:13px;font-weight:700;box-shadow:0 10px 26px rgba(15,23,42,.18)}.kbook-shell .textbook-document-actions,.textbook-editor-app .textbook-document-actions,.textbook-player-app .textbook-document-actions{display:inline-flex;align-items:center;gap:10px;justify-content:center}.kbook-shell .textbook-document-actions a,.textbook-editor-app .textbook-document-actions a,.textbook-player-app .textbook-document-actions a{display:inline-flex;align-items:center;gap:5px;color:#1677ff;font-size:13px;font-weight:700;text-decoration:none}.kbook-shell .textbook-image-node>.textbook-image-node,.textbook-editor-app .textbook-image-node>.textbook-image-node,.textbook-player-app .textbook-image-node>.textbook-image-node{width:100%;margin:0}.kbook-shell .textbook-image-node.is-embedded-document,.textbook-editor-app .textbook-image-node.is-embedded-document,.textbook-player-app .textbook-image-node.is-embedded-document{margin:0}.kbook-shell .textbook-image-node.is-embedded-document .textbook-image-figure,.textbook-editor-app .textbook-image-node.is-embedded-document .textbook-image-figure,.textbook-player-app .textbook-image-node.is-embedded-document .textbook-image-figure{width:min(100%,1160px);gap:8px}.kbook-shell .textbook-image-node.is-embedded-document.is-inline-document-active .textbook-image-figure,.textbook-editor-app .textbook-image-node.is-embedded-document.is-inline-document-active .textbook-image-figure,.textbook-player-app .textbook-image-node.is-embedded-document.is-inline-document-active .textbook-image-figure{width:min(100%,1280px)}.kbook-shell .textbook-inline-document-reader,.textbook-editor-app .textbook-inline-document-reader,.textbook-player-app .textbook-inline-document-reader{width:100%;height:clamp(380px,58vh,640px);min-height:0;overflow:hidden;border-radius:6px;display:grid;place-items:center;background:#242526;box-shadow:0 14px 38px rgba(15,23,42,.22)}.kbook-shell .textbook-image-node.is-embedded-document .textbook-inline-document-reader,.textbook-editor-app .textbook-image-node.is-embedded-document .textbook-inline-document-reader,.textbook-player-app .textbook-image-node.is-embedded-document .textbook-inline-document-reader{height:clamp(420px,62vh,720px);border-radius:4px;box-shadow:0 10px 28px rgba(15,23,42,.18)}.kbook-shell .textbook-inline-document-reader:-webkit-full-screen,.textbook-editor-app .textbook-inline-document-reader:-webkit-full-screen,.textbook-player-app .textbook-inline-document-reader:-webkit-full-screen{width:100vw;height:100vh;border-radius:0}.kbook-shell .textbook-inline-document-reader:fullscreen,.textbook-editor-app .textbook-inline-document-reader:fullscreen,.textbook-player-app .textbook-inline-document-reader:fullscreen{width:100vw;height:100vh;border-radius:0}.kbook-shell .textbook-inline-document-frame,.textbook-editor-app .textbook-inline-document-frame,.textbook-player-app .textbook-inline-document-frame{grid-area:1/1;display:block;width:100%;height:100%;border:0;background:#242526}.kbook-shell .textbook-image-figure figcaption,.textbook-editor-app .textbook-image-figure figcaption{color:#8a94a6;font-size:16px;line-height:1.35;text-align:center}.kbook-shell .textbook-image-frame>.textbook-image-toolbar,.textbook-editor-app .textbook-image-frame>.textbook-image-toolbar{display:none}.kbook-shell .textbook-image-figure>.textbook-image-toolbar,.textbook-editor-app .textbook-image-figure>.textbook-image-toolbar{position:relative;z-index:1;justify-self:end;display:inline-flex;gap:4px;padding:4px;border:1px solid rgba(148,163,184,.25);border-radius:6px;background:rgba(255,255,255,.96);box-shadow:0 8px 24px rgba(15,23,42,.14);opacity:0;pointer-events:none;transform:translateY(2px);transition:opacity .16s ease,transform .16s ease}.kbook-shell .textbook-image-node.is-document>.textbook-image-toolbar,.textbook-editor-app .textbook-image-node.is-document>.textbook-image-toolbar{position:relative;z-index:2;width:-moz-fit-content;width:fit-content;max-width:min(100%,1160px);margin:0 max(calc((100% - 1160px) / 2),0px) 8px auto;display:flex;gap:4px;padding:4px;border:1px solid rgba(148,163,184,.25);border-radius:6px;background:rgba(255,255,255,.96);box-shadow:0 8px 24px rgba(15,23,42,.14);opacity:0;pointer-events:none;transform:translateY(2px);transition:opacity .16s ease,transform .16s ease}.kbook-shell .textbook-image-figure:hover>.textbook-image-toolbar,.kbook-shell .textbook-image-figure>.textbook-image-toolbar:focus-within,.kbook-shell .textbook-image-node.selected .textbook-image-figure>.textbook-image-toolbar,.textbook-editor-app .textbook-image-figure:hover>.textbook-image-toolbar,.textbook-editor-app .textbook-image-figure>.textbook-image-toolbar:focus-within,.textbook-editor-app .textbook-image-node.selected .textbook-image-figure>.textbook-image-toolbar{opacity:1;pointer-events:auto;transform:translateY(0)}.kbook-shell .textbook-image-node.is-document.selected>.textbook-image-toolbar,.kbook-shell .textbook-image-node.is-document:hover>.textbook-image-toolbar,.kbook-shell .textbook-image-node.is-document>.textbook-image-toolbar:focus-within,.textbook-editor-app .textbook-image-node.is-document.selected>.textbook-image-toolbar,.textbook-editor-app .textbook-image-node.is-document:hover>.textbook-image-toolbar,.textbook-editor-app .textbook-image-node.is-document>.textbook-image-toolbar:focus-within{opacity:1;pointer-events:auto;transform:translateY(0)}.kbook-shell .textbook-image-toolbar button,.textbook-editor-app .textbook-image-toolbar button{min-height:30px;border:0;border-radius:5px;display:inline-flex;align-items:center;gap:5px;padding:0 8px;background:transparent;color:#1f2937;cursor:pointer;font-size:12px;font-weight:600}.kbook-shell .textbook-image-toolbar button svg,.textbook-editor-app .textbook-image-toolbar button svg{width:16px!important;height:16px!important;flex:0 0 16px}.kbook-shell .textbook-image-toolbar button:hover,.textbook-editor-app .textbook-image-toolbar button:hover{background:#eef4ff}.kbook-shell .textbook-image-toolbar button.danger,.textbook-editor-app .textbook-image-toolbar button.danger{color:#ef4444}.kbook-shell .textbook-image-toolbar button.danger:hover,.textbook-editor-app .textbook-image-toolbar button.danger:hover{background:#fff1f2}.kbook-shell .textbook-caption-dialog,.textbook-editor-app .textbook-caption-dialog{position:fixed;inset:0;z-index:120;display:grid;place-items:center;background:rgba(15,23,42,.36)}.kbook-shell .textbook-caption-card,.textbook-editor-app .textbook-caption-card{width:min(360px,calc(100vw - 32px));display:grid;grid-gap:12px;gap:12px;padding:18px;border:1px solid #d8e2ef;border-radius:8px;background:#ffffff;box-shadow:0 24px 64px rgba(15,23,42,.22)}.kbook-shell .textbook-caption-card h3,.textbook-editor-app .textbook-caption-card h3{margin:0;color:#111827;font-size:17px;font-weight:800}.kbook-shell .textbook-caption-card input,.textbook-editor-app .textbook-caption-card input{width:100%;min-height:38px;padding:0 10px;border:1px solid #cfd8e6;border-radius:6px;color:#111827;font-size:14px}.kbook-shell .textbook-caption-card div,.textbook-editor-app .textbook-caption-card div{display:flex;justify-content:flex-end;gap:8px}.kbook-shell .textbook-caption-card button,.textbook-editor-app .textbook-caption-card button{min-height:32px;border:1px solid #cfd8e6;border-radius:6px;padding:0 14px;background:#ffffff;color:#334155;cursor:pointer;font-size:13px;font-weight:700}.kbook-shell .textbook-caption-card button:last-child,.textbook-editor-app .textbook-caption-card button:last-child{border-color:#2f70ed;background:#2f70ed;color:#ffffff}.kbook-shell .textbook-model-node,.textbook-editor-app .textbook-model-node{margin:14px 0;padding:0}.kbook-shell .textbook-model-node.selected .textbook-model-frame,.textbook-editor-app .textbook-model-node.selected .textbook-model-frame{outline:2px solid #1677ff;outline-offset:3px}.kbook-shell .textbook-model-figure,.textbook-editor-app .textbook-model-figure{position:relative;margin:0 auto;padding-top:0;width:min(88%,920px);display:grid;justify-items:center;grid-gap:10px;gap:10px}.kbook-shell .textbook-model-frame,.textbook-editor-app .textbook-model-frame{position:relative;width:100%;aspect-ratio:16/10;display:flex;align-items:center;justify-content:center;overflow:hidden;border:1px solid #d8e2ef;border-radius:4px;background:#eef3f8;color:#9cc0ff}.kbook-shell .textbook-model-frame img,.textbook-editor-app .textbook-model-frame img{width:100%;height:100%;object-fit:cover}.kbook-shell .textbook-model-frame>svg,.textbook-editor-app .textbook-model-frame>svg{width:64px;height:64px}.kbook-shell .textbook-model-figure figcaption,.textbook-editor-app .textbook-model-figure figcaption{color:#8a94a6;font-size:16px;line-height:1.35;text-align:center}.kbook-shell .textbook-model-figure>.textbook-image-toolbar,.textbook-editor-app .textbook-model-figure>.textbook-image-toolbar{position:relative;z-index:1;justify-self:end;display:inline-flex;gap:4px;padding:4px;border:1px solid rgba(148,163,184,.25);border-radius:6px;background:rgba(255,255,255,.96);box-shadow:0 8px 24px rgba(15,23,42,.14);opacity:0;pointer-events:none;transform:translateY(2px);transition:opacity .16s ease,transform .16s ease}.kbook-shell .textbook-model-figure:hover>.textbook-image-toolbar,.kbook-shell .textbook-model-figure>.textbook-image-toolbar:focus-within,.kbook-shell .textbook-model-node.selected .textbook-model-figure>.textbook-image-toolbar,.textbook-editor-app .textbook-model-figure:hover>.textbook-image-toolbar,.textbook-editor-app .textbook-model-figure>.textbook-image-toolbar:focus-within,.textbook-editor-app .textbook-model-node.selected .textbook-model-figure>.textbook-image-toolbar{opacity:1;pointer-events:auto;transform:translateY(0)}.kbook-shell .textbook-three-node,.textbook-editor-app .textbook-three-node{margin:14px 0;padding:16px;border:1px solid #d7e3ff;border-radius:8px;display:grid;grid-template-columns:minmax(220px,.82fr) minmax(0,1fr) 44px;grid-gap:16px;gap:16px;align-items:center;background:#f8fbff}.kbook-shell .textbook-three-node.is-flat,.textbook-editor-app .textbook-three-node.is-flat{border-color:#d9e2ec;background:#ffffff}.kbook-shell .textbook-three-node.is-spatial,.textbook-editor-app .textbook-three-node.is-spatial{background:linear-gradient(135deg,#f8fbff,#edf7ff 52%,#f7fbf2)}.kbook-shell .textbook-three-node.selected,.textbook-editor-app .textbook-three-node.selected{outline:2px solid #1677ff}.kbook-shell .textbook-three-preview,.textbook-editor-app .textbook-three-preview{position:relative;min-height:148px;aspect-ratio:16/9;border-radius:6px;display:flex;align-items:center;justify-content:center;overflow:hidden;background:#111827;color:#9cc0ff}.kbook-shell .textbook-three-preview img,.kbook-shell .textbook-three-preview video,.textbook-editor-app .textbook-three-preview img,.textbook-editor-app .textbook-three-preview video{width:100%;height:100%;object-fit:contain}.kbook-shell .player-video-frame.sbs-mono-frame video,.kbook-shell .textbook-three-preview.sbs-mono-frame video,.textbook-editor-app .player-video-frame.sbs-mono-frame video,.textbook-editor-app .textbook-three-preview.sbs-mono-frame video{width:200%;max-width:none;height:100%;object-fit:cover;object-position:left center;transform:none}.kbook-shell .sbs-mono-frame,.textbook-editor-app .sbs-mono-frame{overflow:hidden}.kbook-shell .spatial-media-frame,.textbook-editor-app .spatial-media-frame{border:1px solid rgba(54,214,255,.34);box-shadow:inset 10px 0 0 rgba(255,61,96,.12),inset -10px 0 0 rgba(54,214,255,.13),0 18px 42px rgba(37,99,235,.16);perspective:900px}.kbook-shell .spatial-media-frame img,.kbook-shell .spatial-media-frame video,.textbook-editor-app .spatial-media-frame img,.textbook-editor-app .spatial-media-frame video{filter:drop-shadow(-6px 0 0 rgba(255,54,96,.32)) drop-shadow(6px 0 0 rgba(36,214,255,.28));transform:rotateX(1deg) rotateY(-2deg) translateZ(18px)}.kbook-shell .textbook-model-cover-play,.textbook-editor-app .textbook-model-cover-play{position:absolute;left:50%;top:50%;z-index:2;width:66px;height:66px;border:0;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:#1677ff;color:#ffffff;cursor:pointer;box-shadow:0 20px 48px rgba(22,119,255,.34);transform:translate(-50%,-50%);transition:transform .18s ease,box-shadow .18s ease,background .18s ease}.kbook-shell .textbook-model-cover-play:focus-visible,.kbook-shell .textbook-model-cover-play:hover,.textbook-editor-app .textbook-model-cover-play:focus-visible,.textbook-editor-app .textbook-model-cover-play:hover{background:#0f66e8;box-shadow:0 24px 56px rgba(22,119,255,.42);outline:none;transform:translate(-50%,-50%) scale(1.04)}.kbook-shell .textbook-inline-model-player,.textbook-editor-app .textbook-inline-model-player{position:relative;width:100%;height:100%;min-height:min(62vh,680px);background:#0f172a}.kbook-shell .textbook-inline-model-frame,.textbook-editor-app .textbook-inline-model-frame{display:block;width:100%;height:100%;min-height:min(62vh,680px);border:0;background:#e9eef4}.kbook-shell .textbook-model-node.is-inline-player .textbook-inline-model-frame,.kbook-shell .textbook-model-node.is-inline-player .textbook-inline-model-player,.textbook-editor-app .textbook-model-node.is-inline-player .textbook-inline-model-frame,.textbook-editor-app .textbook-model-node.is-inline-player .textbook-inline-model-player,.textbook-player-app .textbook-model-node.is-inline-player .textbook-inline-model-frame,.textbook-player-app .textbook-model-node.is-inline-player .textbook-inline-model-player{min-height:0}.kbook-shell .textbook-inline-model-close,.textbook-editor-app .textbook-inline-model-close,.textbook-player-app .textbook-inline-model-close{position:absolute;right:14px;top:14px;z-index:3;min-height:30px;border:0;border-radius:999px;padding:0 14px;background:rgba(15,23,42,.72);color:#ffffff;cursor:pointer;font-size:12px;font-weight:700;box-shadow:0 10px 24px rgba(15,23,42,.22);transition:transform .16s ease,background .16s ease,box-shadow .16s ease}.kbook-shell .textbook-inline-model-close:hover,.textbook-editor-app .textbook-inline-model-close:hover,.textbook-player-app .textbook-inline-model-close:hover{background:rgba(15,23,42,.9);box-shadow:0 12px 28px rgba(15,23,42,.28);transform:translateY(-1px)}.kbook-shell .textbook-course-window,.textbook-editor-app .textbook-course-window{position:absolute;inset:0;display:grid;place-items:center;background:radial-gradient(circle at 50% 42%,rgba(54,214,255,.2),transparent 34%),#101827;color:#dbeafe}.kbook-shell .textbook-course-window img,.kbook-shell .textbook-course-window svg,.textbook-editor-app .textbook-course-window img,.textbook-editor-app .textbook-course-window svg{width:min(42%,180px);height:min(42%,120px);object-fit:contain;opacity:.82}.kbook-shell .textbook-course-window span,.textbook-editor-app .textbook-course-window span{position:absolute;bottom:16px;left:16px;margin:0;color:#dbeafe;font-size:13px}.kbook-shell .textbook-three-copy span,.textbook-editor-app .textbook-three-copy span{display:block;margin-bottom:4px;color:#1677ff;font-size:14px;font-weight:700}.kbook-shell .textbook-three-copy strong,.textbook-editor-app .textbook-three-copy strong{display:block;font-size:21px;line-height:1.3}.kbook-shell .textbook-three-copy p,.textbook-editor-app .textbook-three-copy p{margin:6px 0 0;color:#667085;font-size:15px;line-height:1.5}.kbook-shell .player-mode-toggle,.kbook-shell .textbook-play-mode,.textbook-editor-app .player-mode-toggle,.textbook-editor-app .textbook-play-mode{align-items:center;display:inline-flex;gap:2px;min-height:28px;margin-top:9px;padding:3px;border:1px solid #d8e2ef;border-radius:8px;background:#ffffff}.kbook-shell .player-mode-toggle button,.kbook-shell .textbook-play-mode button,.textbook-editor-app .player-mode-toggle button,.textbook-editor-app .textbook-play-mode button{min-width:38px;min-height:22px;border:0;border-radius:6px;background:transparent;color:#64748b;cursor:pointer;font-size:12px;font-weight:800}.kbook-shell .player-mode-toggle button.active,.kbook-shell .textbook-play-mode button.active,.textbook-editor-app .player-mode-toggle button.active,.textbook-editor-app .textbook-play-mode button.active{background:#2f70ed;color:#ffffff}.kbook-shell .course-page-controls,.textbook-editor-app .course-page-controls{align-items:center;display:inline-flex;gap:8px;min-height:36px;padding:4px 6px;border:1px solid #d8e2ef;border-radius:8px;background:#ffffff}.kbook-shell .course-page-controls button,.textbook-editor-app .course-page-controls button{min-width:58px;min-height:28px;border:0;border-radius:6px;background:#eef4ff;color:#1f3b70;cursor:pointer;font-size:13px;font-weight:800}.kbook-shell .course-page-controls button:disabled,.textbook-editor-app .course-page-controls button:disabled{cursor:not-allowed;opacity:.45}.kbook-shell .course-page-controls span,.textbook-editor-app .course-page-controls span{min-width:54px;color:#334155;font-size:13px;font-weight:800;text-align:center}.kbook-shell .textbook-three-meta,.textbook-editor-app .textbook-three-meta{margin-top:10px;display:flex;flex-wrap:wrap;gap:6px}.kbook-shell .textbook-three-meta em,.textbook-editor-app .textbook-three-meta em{padding:5px 8px}.kbook-shell .textbook-three-play,.textbook-editor-app .textbook-three-play{width:42px;height:42px;border:0;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:#1677ff;color:#fff;cursor:pointer}.kbook-shell .material-library-backdrop,.kbook-shell .material-upload-backdrop,.textbook-editor-app .material-library-backdrop,.textbook-editor-app .material-upload-backdrop{position:fixed;inset:0;z-index:95;display:grid;place-items:center;padding:18px;background:rgba(15,23,42,.42)}.kbook-shell .material-upload-backdrop,.textbook-editor-app .material-upload-backdrop{z-index:97}.kbook-shell .material-library-modal,.textbook-editor-app .material-library-modal{width:min(980px,100%);height:min(640px,calc(100vh - 36px))}.kbook-shell .material-library-modal,.kbook-shell .material-upload-modal,.textbook-editor-app .material-library-modal,.textbook-editor-app .material-upload-modal{display:grid;grid-template-rows:auto auto minmax(0,1fr);grid-gap:8px;gap:8px;overflow:hidden;padding:12px;border-radius:8px;background:#f7f9fd;color:#1d2433;font-size:13px;box-shadow:0 28px 80px rgba(15,23,42,.28)}.kbook-shell .material-upload-modal,.textbook-editor-app .material-upload-modal{width:min(760px,100%);height:min(520px,calc(100vh - 36px))}.kbook-shell .material-upload-head,.textbook-editor-app .material-upload-head{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:48px;padding-bottom:8px;border-bottom:1px solid #e3e9f2}.kbook-shell .material-upload-title,.textbook-editor-app .material-upload-title{min-width:0;display:flex;align-items:center;flex-wrap:wrap;gap:4px 8px}.kbook-shell .material-library-head,.textbook-editor-app .material-library-head{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:48px;padding-bottom:8px;border-bottom:1px solid #e3e9f2}.kbook-shell .material-library-title,.textbook-editor-app .material-library-title{min-width:0;display:flex;align-items:center;gap:10px}.kbook-shell .material-library-head h2,.kbook-shell .material-upload-head h2,.textbook-editor-app .material-library-head h2,.textbook-editor-app .material-upload-head h2{margin:0;color:#172033;font-size:16px;line-height:1.2;white-space:nowrap}.kbook-shell .material-upload-hint,.textbook-editor-app .material-upload-hint{min-width:0;overflow:hidden;color:#64748b;font-size:10px;font-weight:700;line-height:1.25;text-overflow:ellipsis;white-space:nowrap}.kbook-shell .material-upload-dropzone,.textbook-editor-app .material-upload-dropzone{min-width:0;display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;grid-gap:10px;gap:10px;padding:12px;border:1px dashed #b9c9e2;border-radius:8px;background:#eef6ff}.kbook-shell .material-upload-dropzone-icon,.textbook-editor-app .material-upload-dropzone-icon{width:38px;height:38px;border-radius:8px;display:grid;place-items:center;background:#ffffff;color:#1677ff;box-shadow:0 8px 18px rgba(22,119,255,.12)}.kbook-shell .material-upload-summary,.textbook-editor-app .material-upload-summary{min-width:0;display:grid;grid-gap:3px;gap:3px}.kbook-shell .material-upload-summary strong,.textbook-editor-app .material-upload-summary strong{overflow:hidden;color:#172033;font-size:13px;line-height:1.2;text-overflow:ellipsis;white-space:nowrap}.kbook-shell .material-upload-summary span,.textbook-editor-app .material-upload-summary span{overflow:hidden;color:#64748b;font-size:11px;line-height:1.25;text-overflow:ellipsis;white-space:nowrap}.kbook-shell .material-library-head-actions,.kbook-shell .material-upload-actions,.textbook-editor-app .material-library-head-actions,.textbook-editor-app .material-upload-actions{display:inline-flex;align-items:center;gap:8px}.kbook-shell .material-library-modal .button,.kbook-shell .material-upload-modal .button,.textbook-editor-app .material-library-modal .button,.textbook-editor-app .material-upload-modal .button{min-height:32px;padding:0 10px;font-size:12px;font-weight:800}.kbook-shell .material-library-head-actions .icon-btn,.kbook-shell .material-upload-close,.textbook-editor-app .material-library-head-actions .icon-btn,.textbook-editor-app .material-upload-close{width:32px;height:32px;min-height:32px;padding:0;border:1px solid #dbe4f0;border-radius:6px;display:inline-flex;align-items:center;justify-content:center;background:#ffffff;color:#1d2433;cursor:pointer}.kbook-shell .material-library-head-actions .icon-btn:hover,.kbook-shell .material-upload-close:hover,.textbook-editor-app .material-library-head-actions .icon-btn:hover,.textbook-editor-app .material-upload-close:hover{background:#eef4ff}.kbook-shell .material-library-resources,.kbook-shell .material-upload-panel,.textbook-editor-app .material-library-resources,.textbook-editor-app .material-upload-panel{grid-row:3;min-height:0;overflow:hidden}.kbook-shell .material-upload-panel,.textbook-editor-app .material-upload-panel{display:grid;grid-template-rows:minmax(0,1fr)}.kbook-shell .material-upload-list,.textbook-editor-app .material-upload-list{min-height:0;overflow:auto;display:grid;align-content:start;grid-gap:8px;gap:8px;padding-right:4px}.kbook-shell .material-upload-item,.textbook-editor-app .material-upload-item{min-width:0;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-gap:8px;gap:8px;align-items:center;padding:8px;border:1px solid #e2e8f0;border-radius:10px;background:#ffffff}.kbook-shell .material-upload-item-main,.textbook-editor-app .material-upload-item-main{min-width:0;display:grid;grid-gap:2px;gap:2px}.kbook-shell .material-upload-item strong,.textbook-editor-app .material-upload-item strong{overflow:hidden;color:#1f2937;font-size:13px;text-overflow:ellipsis;white-space:nowrap}.kbook-shell .material-upload-item span,.textbook-editor-app .material-upload-item span{color:#64748b;font-size:12px}.kbook-shell .material-upload-status,.textbook-editor-app .material-upload-status{padding:3px 7px;border-radius:999px;background:#f1f5f9;color:#475569;font-size:11px;font-weight:800;line-height:1;white-space:nowrap}.kbook-shell .material-upload-status.uploading,.textbook-editor-app .material-upload-status.uploading{background:#eaf2ff;color:#1459c7}.kbook-shell .material-upload-status.success,.textbook-editor-app .material-upload-status.success{background:#dcfce7;color:#15803d}.kbook-shell .material-upload-status.error,.textbook-editor-app .material-upload-status.error{background:#fee2e2;color:#b91c1c}.kbook-shell .material-upload-progress,.textbook-editor-app .material-upload-progress{height:8px;overflow:hidden;border-radius:999px;background:#dbe4f0}.kbook-shell .material-upload-progress-wrap,.textbook-editor-app .material-upload-progress-wrap{grid-column:1/-1;min-width:0;display:grid;grid-template-columns:minmax(0,1fr) 34px;align-items:center;grid-gap:8px;gap:8px}.kbook-shell .material-upload-progress-value,.textbook-editor-app .material-upload-progress-value{color:#64748b;font-size:12px;font-weight:800;line-height:1;text-align:right}.kbook-shell .material-upload-progress i,.textbook-editor-app .material-upload-progress i{display:block;height:100%;border-radius:inherit;background:#1677ff;transition:width .16s ease}.kbook-shell .material-upload-item.success .material-upload-progress i,.textbook-editor-app .material-upload-item.success .material-upload-progress i{background:#16a34a}.kbook-shell .material-upload-item.error .material-upload-progress i,.textbook-editor-app .material-upload-item.error .material-upload-progress i{background:#dc2626}.kbook-shell .material-upload-item em,.textbook-editor-app .material-upload-item em{grid-column:1/-1;color:#dc2626;font-size:12px;font-style:normal}.kbook-shell .material-upload-item button,.textbook-editor-app .material-upload-item button{grid-column:1/-1;justify-self:end;border:0;background:transparent;color:#64748b;cursor:pointer;font-size:12px}.kbook-shell .material-library-error,.kbook-shell .material-upload-empty,.textbook-editor-app .material-library-error,.textbook-editor-app .material-upload-empty{grid-column:1/-1;margin:0;color:#64748b;font-size:12px}.kbook-shell .material-library-error,.textbook-editor-app .material-library-error{padding:8px 10px;border:1px solid #fecaca;border-radius:6px;background:#fff1f2;color:#b42318;font-weight:800}.kbook-shell .material-library-resources,.textbook-editor-app .material-library-resources{display:block}.kbook-shell .material-library-tabs,.textbook-editor-app .material-library-tabs{display:inline-flex;align-items:center;gap:2px;padding:3px;border:1px solid #dbe4f0;border-radius:8px;background:#ffffff}.kbook-shell .material-library-tabs button,.textbook-editor-app .material-library-tabs button{min-width:40px;min-height:22px;border:0;border-radius:6px;background:transparent;color:#64748b;font-size:12px;font-weight:800;cursor:pointer}.kbook-shell .material-library-tabs button.active,.textbook-editor-app .material-library-tabs button.active{background:#2f70ed;color:#ffffff}.kbook-shell .material-resource-grid,.textbook-editor-app .material-resource-grid{min-height:0;overflow:auto;display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));align-content:start;grid-gap:10px;gap:10px;padding-right:4px}.kbook-shell .material-resource-card,.textbook-editor-app .material-resource-card{min-width:0;border:1px solid #e2e8f0;border-radius:8px;padding:8px;background:#ffffff;color:#1f2937;display:grid;grid-gap:6px;gap:6px;text-align:left;cursor:pointer}.kbook-shell .material-resource-card:hover,.textbook-editor-app .material-resource-card:hover{border-color:#1677ff;box-shadow:0 10px 22px rgba(15,23,42,.08)}.kbook-shell .material-resource-thumb,.textbook-editor-app .material-resource-thumb{width:100%;aspect-ratio:16/10;border-radius:6px;overflow:hidden;display:grid;place-items:center;background:#edf2f7;color:#64748b}.kbook-shell .material-resource-thumb img,.kbook-shell .material-resource-thumb video,.textbook-editor-app .material-resource-thumb img,.textbook-editor-app .material-resource-thumb video{width:100%;height:100%;object-fit:cover}.kbook-shell .material-resource-card span,.kbook-shell .material-resource-card strong,.textbook-editor-app .material-resource-card span,.textbook-editor-app .material-resource-card strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kbook-shell .material-resource-card strong,.textbook-editor-app .material-resource-card strong{font-size:13px}.kbook-shell .material-resource-card span,.textbook-editor-app .material-resource-card span{color:#64748b;font-size:12px}.kbook-shell .material-resource-card em,.textbook-editor-app .material-resource-card em{color:#1677ff;font-size:12px;font-style:normal;font-weight:800}.kbook-shell .textbook-import-backdrop,.textbook-editor-app .textbook-import-backdrop{position:fixed;inset:0;z-index:94;display:grid;place-items:center;padding:18px;background:rgba(15,23,42,.42)}.kbook-shell .textbook-import-modal,.textbook-editor-app .textbook-import-modal{width:min(982px,calc(100vw - 36px));height:min(800px,calc(100vh - 36px));display:grid;grid-template-rows:auto minmax(0,1fr) auto;grid-gap:10px;gap:10px;padding:14px;border-radius:8px;background:#f7f9fd;box-shadow:0 28px 80px rgba(15,23,42,.28)}.kbook-shell .textbook-import-head,.textbook-editor-app .textbook-import-head{min-width:0;display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:8px;border-bottom:1px solid #e3e9f2}.kbook-shell .textbook-import-head div,.textbook-editor-app .textbook-import-head div{min-width:0}.kbook-shell .textbook-import-title-row,.textbook-editor-app .textbook-import-title-row{min-width:0;display:flex;flex:1 1 auto;flex-wrap:wrap;align-items:center;gap:8px 10px}.kbook-shell .textbook-import-head span,.textbook-editor-app .textbook-import-head span{display:block;color:#64748b;font-size:12px;font-weight:800}.kbook-shell .textbook-import-head h2,.textbook-editor-app .textbook-import-head h2{max-width:min(100%,520px);margin:0;color:#172033;font-size:18px;line-height:1.25;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kbook-shell .textbook-import-head button,.textbook-editor-app .textbook-import-head button{width:32px;height:32px;border:0;border-radius:6px;background:#ffffff;color:#475569;cursor:pointer}.kbook-shell .textbook-import-head button:disabled,.textbook-editor-app .textbook-import-head button:disabled{cursor:not-allowed;opacity:.5}.kbook-shell .textbook-history-backdrop,.textbook-editor-app .textbook-history-backdrop{position:fixed;inset:0;z-index:96;display:grid;place-items:center;padding:18px;background:rgba(15,23,42,.42)}.kbook-shell .textbook-history-modal,.textbook-editor-app .textbook-history-modal{width:min(620px,calc(100vw - 36px));max-height:min(500px,calc(100vh - 36px));display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;grid-gap:8px;gap:8px;padding:14px 16px;border-radius:8px;background:#ffffff;color:#252a33;box-shadow:0 28px 80px rgba(15,23,42,.28)}.kbook-shell .textbook-history-head,.textbook-editor-app .textbook-history-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.kbook-shell .textbook-history-head div,.textbook-editor-app .textbook-history-head div{min-width:0}.kbook-shell .textbook-history-head span,.textbook-editor-app .textbook-history-head span{display:block;color:#8a94a6;font-size:12px;font-weight:800}.kbook-shell .textbook-history-head h2,.textbook-editor-app .textbook-history-head h2{margin:0;overflow:hidden;color:#20242c;font-size:18px;line-height:1.24;text-overflow:ellipsis;white-space:nowrap}.kbook-shell .textbook-history-head button,.textbook-editor-app .textbook-history-head button{width:28px;height:28px;border:0;border-radius:4px;background:transparent;color:#252a33;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}.kbook-shell .textbook-history-error,.textbook-editor-app .textbook-history-error{padding:10px 12px;border:1px solid #fecaca;border-radius:6px;background:#fff1f2;color:#b42318;font-size:14px;font-weight:700}.kbook-shell .textbook-history-table,.textbook-editor-app .textbook-history-table{min-height:0;max-height:min(318px,calc(100vh - 178px));overflow:auto;border:1px solid #e5e7eb;border-radius:6px}.kbook-shell .textbook-history-row,.textbook-editor-app .textbook-history-row{min-height:42px;display:grid;grid-template-columns:minmax(78px,96px) minmax(150px,1fr) 156px;align-items:center;grid-gap:8px;gap:8px;padding:0 12px;border-bottom:1px solid #e5e7eb;color:#252a33;font-size:13px}.kbook-shell .textbook-history-row.head,.textbook-editor-app .textbook-history-row.head{position:-webkit-sticky;position:sticky;top:0;z-index:1;min-height:36px;background:#f5f7fb;color:#252a33;font-size:13px;font-weight:900}.kbook-shell .textbook-history-row:last-child,.textbook-editor-app .textbook-history-row:last-child{border-bottom:0}.kbook-shell .textbook-history-actions,.textbook-editor-app .textbook-history-actions{min-width:0;display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:7px}.kbook-shell .textbook-history-actions button,.kbook-shell .textbook-history-foot button,.kbook-shell .textbook-history-preview-bar button,.textbook-editor-app .textbook-history-actions button,.textbook-editor-app .textbook-history-foot button,.textbook-editor-app .textbook-history-preview-bar button{min-height:28px;padding:0;border:0;background:transparent;color:#1677ff;display:inline-flex;align-items:center;gap:5px;font:inherit;font-size:13px;cursor:pointer}.kbook-shell .textbook-history-actions button.danger,.kbook-shell .textbook-history-preview-bar button.danger,.textbook-editor-app .textbook-history-actions button.danger,.textbook-editor-app .textbook-history-preview-bar button.danger{color:#dc2626}.kbook-shell .textbook-history-actions button:disabled,.kbook-shell .textbook-history-foot button:disabled,.kbook-shell .textbook-history-preview-bar button:disabled,.textbook-editor-app .textbook-history-actions button:disabled,.textbook-editor-app .textbook-history-foot button:disabled,.textbook-editor-app .textbook-history-preview-bar button:disabled{cursor:not-allowed;opacity:.55}.kbook-shell .textbook-history-empty,.textbook-editor-app .textbook-history-empty{min-height:72px;display:grid;place-items:center;padding:16px;color:#8a94a6;font-size:14px;font-weight:700}.kbook-shell .textbook-history-foot,.textbook-editor-app .textbook-history-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#8a94a6;font-size:12px;line-height:1.5}.kbook-shell .textbook-history-preview,.textbook-editor-app .textbook-history-preview{min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr);grid-gap:12px;gap:12px}.kbook-shell .textbook-history-preview-bar,.textbook-editor-app .textbook-history-preview-bar{min-width:0;display:flex;flex-wrap:wrap;align-items:center;gap:14px;padding:10px 12px;border:1px solid #e5e7eb;border-radius:6px;background:#f8fafc;color:#64748b;font-size:14px;font-weight:800}.kbook-shell .textbook-history-preview-page,.textbook-editor-app .textbook-history-preview-page{min-height:0;overflow:auto;padding:18px;border:1px solid #e5e7eb;border-radius:6px;background:#ffffff;color:#172033;line-height:1.75}.kbook-shell .textbook-history-preview-page img,.kbook-shell .textbook-history-preview-page video,.textbook-editor-app .textbook-history-preview-page img,.textbook-editor-app .textbook-history-preview-page video{max-width:100%;height:auto}.kbook-shell .textbook-import-meta,.textbook-editor-app .textbook-import-meta{display:flex;flex-wrap:wrap;gap:4px}.kbook-shell .textbook-import-meta span,.textbook-editor-app .textbook-import-meta span{min-height:20px;display:inline-flex;align-items:center;border:1px solid #dbe4f0;border-radius:999px;padding:0 7px;background:#ffffff;color:#475569;font-size:10px;font-weight:800}.kbook-shell .textbook-import-error,.kbook-shell .textbook-import-status,.textbook-editor-app .textbook-import-error,.textbook-editor-app .textbook-import-status{min-height:180px;display:grid;place-items:center;border:1px dashed #c9d5e6;border-radius:8px;background:#ffffff;color:#64748b;font-size:14px;font-weight:700}.kbook-shell .textbook-import-error,.textbook-editor-app .textbook-import-error{border-color:#fecaca;background:#fff7f7;color:#b42318;padding:18px;text-align:center}.kbook-shell .textbook-import-error.compact,.textbook-editor-app .textbook-import-error.compact{min-height:auto;padding:8px 10px;font-size:12px;text-align:left}.kbook-shell .textbook-import-warnings,.textbook-editor-app .textbook-import-warnings{display:grid;grid-gap:4px;gap:4px;padding:8px 10px;border:1px solid #fed7aa;border-radius:6px;background:#fff7ed;color:#9a3412}.kbook-shell .textbook-import-warnings p,.textbook-editor-app .textbook-import-warnings p{margin:0;font-size:12px;line-height:1.45;font-weight:700}.kbook-shell .textbook-prose h1,.textbook-editor-app .textbook-prose h1{margin:0 0 22px;color:#172033;font-size:28px;line-height:1.35;font-weight:800}.kbook-shell .textbook-prose h2,.textbook-editor-app .textbook-prose h2{margin:0 0 22px;font-size:24px;line-height:1.35;font-weight:800}.kbook-shell .textbook-prose h3,.textbook-editor-app .textbook-prose h3{margin:0 0 16px;font-size:20px;line-height:1.35;font-weight:800}.kbook-shell .textbook-prose h4,.textbook-editor-app .textbook-prose h4{margin:0 0 12px;font-size:17px;line-height:1.35;font-weight:800}.kbook-shell .textbook-import-document-flow,.textbook-editor-app .textbook-import-document-flow{min-height:0;display:grid;grid-template-rows:minmax(0,1fr)}.kbook-shell .textbook-import-document-note,.textbook-editor-app .textbook-import-document-note{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border:1px solid #dbe4f0;border-radius:8px;background:#f8fafc;color:#475569}.kbook-shell .textbook-import-document-note strong,.textbook-editor-app .textbook-import-document-note strong{color:#172033;font-size:14px}.kbook-shell .textbook-import-document-note span,.textbook-editor-app .textbook-import-document-note span{min-width:0;overflow:hidden;font-size:12px;font-weight:800;text-overflow:ellipsis;white-space:nowrap}.kbook-shell .textbook-import-document-pages,.textbook-editor-app .textbook-import-document-pages{min-height:0;overflow:auto;display:grid;align-content:start;grid-gap:12px;gap:12px;border:1px solid #dbe4f0;border-radius:8px;background:#ffffff;padding:10px}.kbook-shell .textbook-import-document-page,.textbook-editor-app .textbook-import-document-page{width:100%;min-height:0;margin:0;padding:0;display:block;background:transparent;box-shadow:none}.kbook-shell .textbook-import-review,.textbook-editor-app .textbook-import-review{min-height:0;display:grid;grid-template-columns:180px minmax(0,1fr) 230px;grid-gap:10px;gap:10px}.kbook-shell .textbook-import-current,.kbook-shell .textbook-import-options,.kbook-shell .textbook-import-pages,.textbook-editor-app .textbook-import-current,.textbook-editor-app .textbook-import-options,.textbook-editor-app .textbook-import-pages{min-height:0;overflow:auto;border:1px solid #dbe4f0;border-radius:8px;background:#ffffff}.kbook-shell .textbook-import-pages,.textbook-editor-app .textbook-import-pages{display:grid;align-content:start;grid-gap:8px;gap:8px;padding:8px}.kbook-shell .textbook-import-pages button,.textbook-editor-app .textbook-import-pages button{min-width:0;display:grid;grid-template-columns:54px minmax(0,1fr);align-items:center;grid-gap:8px;gap:8px;padding:7px;border:1px solid #e4eaf2;border-radius:8px;background:#ffffff;color:#172033;text-align:left;cursor:pointer}.kbook-shell .textbook-import-pages button.active,.textbook-editor-app .textbook-import-pages button.active{border-color:#1677ff;background:#eef6ff}.kbook-shell .textbook-import-page-thumb,.textbook-editor-app .textbook-import-page-thumb{width:54px;aspect-ratio:16/10;display:grid;place-items:center;overflow:hidden;border-radius:6px;background:#eef2f7;color:#64748b}.kbook-shell .textbook-import-page-thumb img,.textbook-editor-app .textbook-import-page-thumb img{width:100%;height:100%;object-fit:cover}.kbook-shell .textbook-import-pages em,.kbook-shell .textbook-import-pages strong,.textbook-editor-app .textbook-import-pages em,.textbook-editor-app .textbook-import-pages strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kbook-shell .textbook-import-pages strong,.textbook-editor-app .textbook-import-pages strong{font-size:12px}.kbook-shell .textbook-import-pages em,.textbook-editor-app .textbook-import-pages em{margin-top:2px;color:#64748b;font-size:11px;font-style:normal;font-weight:800}.kbook-shell .textbook-import-current,.textbook-editor-app .textbook-import-current{padding:12px}.kbook-shell .textbook-import-options,.textbook-editor-app .textbook-import-options{display:grid;align-content:start;grid-gap:10px;gap:10px;padding:12px;color:#172033}.kbook-shell .textbook-import-options strong,.textbook-editor-app .textbook-import-options strong{font-size:15px;line-height:1.35}.kbook-shell .textbook-import-options>span,.textbook-editor-app .textbook-import-options>span{color:#64748b;font-size:12px;font-weight:800}.kbook-shell .textbook-import-mode-grid,.textbook-editor-app .textbook-import-mode-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-gap:8px;gap:8px}.kbook-shell .textbook-import-mode-grid button,.textbook-editor-app .textbook-import-mode-grid button{min-height:34px;border:1px solid #dbe4f0;border-radius:6px;background:#ffffff;color:#334155;font-size:12px;font-weight:900;cursor:pointer}.kbook-shell .textbook-import-mode-grid button:disabled,.textbook-editor-app .textbook-import-mode-grid button:disabled{cursor:not-allowed;opacity:.46}.kbook-shell .textbook-import-mode-grid button.active,.textbook-editor-app .textbook-import-mode-grid button.active{border-color:#1677ff;background:#1677ff;color:#ffffff}.kbook-shell .textbook-import-page-warnings,.textbook-editor-app .textbook-import-page-warnings{display:grid;grid-gap:5px;gap:5px;padding:8px;border-radius:6px;background:#fff7ed;color:#9a3412}.kbook-shell .textbook-import-page-warnings p,.textbook-editor-app .textbook-import-page-warnings p{margin:0;font-size:12px;line-height:1.45}.kbook-shell .textbook-import-empty-preview,.textbook-editor-app .textbook-import-empty-preview{min-height:240px;display:grid;place-items:center;border:1px dashed #c9d5e6;border-radius:8px;background:#f8fafc;color:#64748b;font-size:14px;font-weight:800}.kbook-shell .textbook-import-snapshot-preview,.textbook-editor-app .textbook-import-snapshot-preview{margin:0;display:grid;grid-gap:8px;gap:8px}.kbook-shell .textbook-import-snapshot-preview img,.textbook-editor-app .textbook-import-snapshot-preview img{width:100%;max-height:520px;object-fit:contain;border-radius:8px;background:#eef2f7}.kbook-shell .textbook-import-snapshot-preview figcaption,.textbook-editor-app .textbook-import-snapshot-preview figcaption{color:#64748b;font-size:12px;text-align:center}.kbook-shell .courseware-page-node,.textbook-editor-app .courseware-page-node{margin:20px 0;padding:10px;border:1px solid #dbe4f0;border-radius:8px;background:#f8fafc}.kbook-shell .courseware-page-node.selected,.textbook-editor-app .courseware-page-node.selected{border-color:#1677ff;box-shadow:0 0 0 3px rgba(22,119,255,.12)}.kbook-shell .courseware-page-toolbar,.textbook-editor-app .courseware-page-toolbar{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-bottom:8px;color:#64748b;font-size:12px;font-weight:900}.kbook-shell .courseware-page-toolbar>span,.textbook-editor-app .courseware-page-toolbar>span{margin-right:auto}.kbook-shell .courseware-page-toolbar button,.textbook-editor-app .courseware-page-toolbar button{min-height:28px;display:inline-flex;align-items:center;gap:5px;border:1px solid #dbe4f0;border-radius:6px;background:#ffffff;color:#334155;cursor:pointer}.kbook-shell .courseware-page-toolbar button.danger,.textbook-editor-app .courseware-page-toolbar button.danger{border-color:#fecaca;background:#fff7f7;color:#b42318}.kbook-shell .courseware-page-preview,.textbook-editor-app .courseware-page-preview{margin:0}.kbook-shell .courseware-page-canvas,.textbook-editor-app .courseware-page-canvas{position:relative;aspect-ratio:16/9;overflow:hidden;display:grid;place-items:center;border:1px solid #e4eaf2;border-radius:8px;background:#eef2f7;color:#64748b}.kbook-shell .courseware-page-bg,.textbook-editor-app .courseware-page-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.kbook-shell .courseware-page-element,.textbook-editor-app .courseware-page-element{position:absolute;z-index:1}.kbook-shell .courseware-page-element.is-text,.textbook-editor-app .courseware-page-element.is-text{overflow:hidden;padding:2px 4px;border-radius:4px;background:rgba(255,255,255,.72);line-height:1.25}.kbook-shell .courseware-page-element.is-image,.textbook-editor-app .courseware-page-element.is-image{object-fit:contain}.kbook-shell .courseware-page-preview figcaption,.textbook-editor-app .courseware-page-preview figcaption{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:8px;color:#475569;font-size:12px}.kbook-shell .courseware-page-preview figcaption span,.kbook-shell .courseware-page-preview figcaption strong,.textbook-editor-app .courseware-page-preview figcaption span,.textbook-editor-app .courseware-page-preview figcaption strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kbook-shell .courseware-experiment-preview,.textbook-editor-app .courseware-experiment-preview{position:absolute;right:5%;bottom:6%;z-index:4;width:min(45%,420px);border:1px solid rgba(23,103,216,.28);border-radius:8px;padding:12px;display:grid;grid-gap:8px;gap:8px;background:rgba(255,255,255,.94);box-shadow:0 16px 34px rgba(15,23,42,.16)}.kbook-shell .courseware-experiment-preview>strong,.textbook-editor-app .courseware-experiment-preview>strong{color:#1767d8;font-size:14px}.kbook-shell .courseware-experiment-params,.textbook-editor-app .courseware-experiment-params{display:grid;grid-gap:7px;gap:7px}.kbook-shell .courseware-experiment-params label,.textbook-editor-app .courseware-experiment-params label{display:grid;grid-template-columns:minmax(64px,.7fr) minmax(80px,1fr) auto;align-items:center;grid-gap:7px;gap:7px;color:#334155;font-size:12px;font-weight:800}.kbook-shell .courseware-experiment-params input,.textbook-editor-app .courseware-experiment-params input{width:100%;accent-color:#1767d8}.kbook-shell .courseware-experiment-params em,.textbook-editor-app .courseware-experiment-params em{color:#0f766e;font-style:normal;white-space:nowrap}.kbook-shell .courseware-experiment-preview ol,.textbook-editor-app .courseware-experiment-preview ol{margin:0;padding-left:18px;color:#475569;font-size:12px;line-height:1.35}.kbook-shell .courseware-editor-backdrop,.textbook-editor-app .courseware-editor-backdrop{position:fixed;inset:0;z-index:96;display:grid;place-items:center;padding:18px;background:rgba(15,23,42,.42)}.kbook-shell .courseware-editor-modal,.textbook-editor-app .courseware-editor-modal{width:min(1040px,100%);max-height:calc(100vh - 36px);display:grid;grid-template-rows:auto minmax(0,1fr) auto;grid-gap:12px;gap:12px;padding:14px;border-radius:8px;background:#f7f9fd;box-shadow:0 28px 80px rgba(15,23,42,.28)}.kbook-shell .courseware-editor-head,.textbook-editor-app .courseware-editor-head{min-width:0;display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:8px;border-bottom:1px solid #e3e9f2}.kbook-shell .courseware-editor-head div,.textbook-editor-app .courseware-editor-head div{min-width:0}.kbook-shell .courseware-editor-head span,.textbook-editor-app .courseware-editor-head span{display:block;color:#64748b;font-size:12px;font-weight:800}.kbook-shell .courseware-editor-head h3,.textbook-editor-app .courseware-editor-head h3{margin:3px 0 0;overflow:hidden;color:#172033;font-size:17px;line-height:1.25;text-overflow:ellipsis;white-space:nowrap}.kbook-shell .courseware-editor-head button,.textbook-editor-app .courseware-editor-head button{width:32px;height:32px;border:0;border-radius:6px;background:#ffffff;color:#475569;cursor:pointer}.kbook-shell .courseware-editor-body,.textbook-editor-app .courseware-editor-body{min-height:0;display:grid;grid-template-columns:minmax(0,1.2fr) minmax(280px,.8fr);grid-gap:12px;gap:12px}.kbook-shell .courseware-editor-fields,.kbook-shell .courseware-editor-preview,.textbook-editor-app .courseware-editor-fields,.textbook-editor-app .courseware-editor-preview{min-height:0;overflow:auto;border:1px solid #dbe4f0;border-radius:8px;background:#ffffff;padding:12px}.kbook-shell .courseware-editor-fields,.textbook-editor-app .courseware-editor-fields{display:grid;align-content:start;grid-gap:12px;gap:12px}.kbook-shell .courseware-editor-fields label,.textbook-editor-app .courseware-editor-fields label{display:grid;grid-gap:6px;gap:6px;color:#334155;font-size:12px;font-weight:900}.kbook-shell .courseware-editor-fields input,.kbook-shell .courseware-editor-fields textarea,.textbook-editor-app .courseware-editor-fields input,.textbook-editor-app .courseware-editor-fields textarea{width:100%;border:1px solid #dbe4f0;border-radius:6px;padding:8px 9px;color:#172033;font:inherit;font-weight:600;resize:vertical}.kbook-shell .courseware-editor-text-head,.textbook-editor-app .courseware-editor-text-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.kbook-shell .courseware-editor-text-head strong,.textbook-editor-app .courseware-editor-text-head strong{color:#172033;font-size:14px}.kbook-shell .courseware-editor-text-head span,.textbook-editor-app .courseware-editor-text-head span{min-width:0;color:#64748b;font-size:12px;font-weight:700;text-align:right}.kbook-shell .courseware-editor-text-head button,.kbook-shell .courseware-editor-text-list button,.textbook-editor-app .courseware-editor-text-head button,.textbook-editor-app .courseware-editor-text-list button{min-height:30px;border:1px solid #dbe4f0;border-radius:6px;background:#ffffff;color:#334155;font-size:12px;font-weight:900;cursor:pointer}.kbook-shell .courseware-editor-text-list,.textbook-editor-app .courseware-editor-text-list{display:grid;grid-gap:10px;gap:10px}.kbook-shell .courseware-editor-text-list label,.textbook-editor-app .courseware-editor-text-list label{padding:10px;border:1px solid #e4eaf2;border-radius:8px;background:#f8fafc}.kbook-shell .courseware-editor-text-list p,.textbook-editor-app .courseware-editor-text-list p{margin:0;color:#64748b;font-size:13px;font-weight:700}.kbook-shell .courseware-editor-candidates,.textbook-editor-app .courseware-editor-candidates{display:grid;grid-gap:8px;gap:8px}.kbook-shell .courseware-editor-candidates button,.textbook-editor-app .courseware-editor-candidates button{min-height:34px;padding:7px 9px;border:1px solid #dbe4f0;border-radius:6px;background:#ffffff;color:#334155;font-size:12px;font-weight:800;line-height:1.35;text-align:left;cursor:pointer}.kbook-shell .courseware-editor-candidates button:hover,.textbook-editor-app .courseware-editor-candidates button:hover{border-color:#1677ff;color:#0f5fd7}.kbook-shell .courseware-editor-candidates p,.textbook-editor-app .courseware-editor-candidates p{margin:0;color:#64748b;font-size:13px;font-weight:700}.kbook-shell .courseware-editor-actions,.textbook-editor-app .courseware-editor-actions{display:flex;justify-content:flex-end;gap:8px}.kbook-shell .textbook-import-actions,.textbook-editor-app .textbook-import-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding-top:2px}.kbook-shell .textbook-import-actions .button,.textbook-editor-app .textbook-import-actions .button{min-height:36px;padding:0 16px;border-radius:8px;font-size:14px}.kbook-shell .textbook-import-action-error,.textbook-editor-app .textbook-import-action-error{flex:1 1 auto;min-width:0;color:#b42318;font-size:12px;font-weight:800;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kbook-shell .textbook-import-progress,.textbook-editor-app .textbook-import-progress{flex:1 1 auto;min-width:0;color:#2563eb;font-size:13px;font-weight:800}.kbook-shell .textbook-import-selection-summary,.textbook-editor-app .textbook-import-selection-summary{min-width:0;margin-right:auto;color:#475569;font-size:12px;font-weight:800;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.textbook-editor-app .textbook-import-confirmation,.textbook-editor-app .textbook-import-setup{min-height:0;overflow:auto}.textbook-editor-app .textbook-import-setup{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:28px;padding:42px 32px}.textbook-editor-app .textbook-import-image-mode{width:min(920px,100%);display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-gap:16px;gap:16px;margin:0;padding:0;border:0}.textbook-editor-app .textbook-import-image-mode legend{grid-column:1/-1;margin-bottom:24px;color:#334155;font-size:16px;font-weight:800}.textbook-editor-app .textbook-import-image-mode label{display:flex;align-items:flex-start;gap:12px;min-height:104px;padding:18px;border:1px solid #dbe4f0;border-radius:10px;background:#ffffff;cursor:pointer}.textbook-editor-app .textbook-import-image-mode label.is-selected{border-color:#1677ff;box-shadow:0 0 0 2px rgba(22,119,255,.1)}.textbook-editor-app .textbook-import-image-mode input{margin-top:3px;accent-color:#1677ff}.textbook-editor-app .textbook-import-image-mode span{display:grid;grid-gap:6px;gap:6px}.textbook-editor-app .textbook-import-image-mode strong{color:#172033;font-size:14px}.textbook-editor-app .textbook-import-image-mode small{color:#64748b;font-size:12px;line-height:1.45}.textbook-editor-app .textbook-import-setup>.button.primary{min-width:200px;min-height:46px;padding:0 24px}.textbook-editor-app .textbook-import-status{min-height:0;height:100%;display:grid;align-content:center;place-items:center;justify-items:center;grid-gap:12px;gap:12px;border:0;border-radius:0;background:transparent;color:#64748b}.textbook-editor-app .textbook-import-confirmation{min-height:0;display:grid;grid-template-rows:minmax(0,1fr) auto;grid-gap:12px;gap:12px;padding-right:3px}.textbook-editor-app .textbook-import-destination,.textbook-editor-app .textbook-import-outline-editor{border:1px solid #dfe7f1;border-radius:10px;background:#ffffff}.textbook-editor-app .textbook-import-outline-editor{min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr)}.textbook-editor-app .textbook-import-outline-editor>header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:13px 14px;border-bottom:1px solid #e8edf4}.textbook-editor-app .textbook-import-destination h3,.textbook-editor-app .textbook-import-outline-editor h3{margin:0;color:#172033;font-size:14px}.textbook-editor-app .textbook-import-outline-editor header p{margin:4px 0 0;color:#64748b;font-size:12px}.textbook-editor-app .textbook-import-outline-summary{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:5px}.textbook-editor-app .textbook-import-outline-summary span{padding:4px 7px;border-radius:999px;background:#eef4ff;color:#285ea8;font-size:11px;font-weight:700}.textbook-editor-app .textbook-import-outline-summary button{height:26px;padding:0 9px;border:1px solid #cbd9eb;border-radius:6px;background:#ffffff;color:#2d5f9f;font-size:12px;font-weight:700;cursor:pointer}.textbook-editor-app .textbook-import-outline-summary button:hover{border-color:#7aa7e2;background:#f4f8ff}.textbook-editor-app .textbook-import-outline-table{min-height:0;max-height:none;overflow:auto}.textbook-editor-app .textbook-import-outline-row{display:grid;grid-template-columns:minmax(280px,1fr) 112px 104px;align-items:center;grid-gap:8px;gap:8px;min-height:45px;padding:6px 10px 6px calc(10px + var(--source-indent, 0px));border-bottom:1px solid #eef2f7}.textbook-editor-app .textbook-import-outline-row:last-child{border-bottom:0}.textbook-editor-app .textbook-import-outline-title{min-width:0;display:flex;align-items:center;gap:7px}.textbook-editor-app .textbook-import-outline-level{flex:0 0 auto;color:#94a3b8;font-size:10px;font-weight:800}.textbook-editor-app .textbook-import-destination select,.textbook-editor-app .textbook-import-outline-row select,.textbook-editor-app .textbook-import-outline-title input{min-width:0;height:32px;border:1px solid #d7e0eb;border-radius:6px;background:#ffffff;color:#27364b;font-size:12px}.textbook-editor-app .textbook-import-outline-title input{width:100%;padding:0 9px}.textbook-editor-app .textbook-import-destination select,.textbook-editor-app .textbook-import-outline-row select{padding:0 8px}.textbook-editor-app .textbook-import-outline-row button{height:30px;border:1px solid #d7e0eb;border-radius:6px;background:#f8fafc;color:#475569;font-size:11px;cursor:pointer}.textbook-editor-app .textbook-import-destination{display:flex;flex-wrap:wrap;align-items:center;gap:10px 18px;padding:12px 14px}.textbook-editor-app .textbook-import-destination h3{width:100%}.textbook-editor-app .textbook-import-destination label{display:inline-flex;align-items:center;gap:6px;color:#334155;font-size:12px;font-weight:700}.textbook-editor-app .textbook-import-destination input{accent-color:#1677ff}.textbook-editor-app .textbook-import-destination select{min-width:260px}.textbook-editor-app .textbook-import-actions .button{display:inline-flex;align-items:center;justify-content:center;gap:6px}.kbook-shell .resource-picker-backdrop,.textbook-editor-app .resource-picker-backdrop{position:fixed;inset:0;z-index:90;display:grid;place-items:center;padding:18px;background:rgba(15,23,42,.42)}.kbook-shell .resource-picker-modal,.textbook-editor-app .resource-picker-modal{width:min(980px,100%);height:min(640px,calc(100vh - 36px));display:grid;grid-template-rows:auto auto minmax(0,1fr);grid-gap:8px;gap:8px;padding:12px;border-radius:8px;background:#f7f9fd;box-shadow:0 28px 80px rgba(15,23,42,.28)}.kbook-shell .resource-picker-actions,.kbook-shell .resource-picker-head,.textbook-editor-app .resource-picker-actions,.textbook-editor-app .resource-picker-head{display:flex;align-items:center;gap:8px}.kbook-shell .resource-picker-head,.textbook-editor-app .resource-picker-head{justify-content:space-between;min-height:48px;padding-bottom:8px;border-bottom:1px solid #e3e9f2}.kbook-shell .resource-picker-title,.textbook-editor-app .resource-picker-title{align-items:center;display:flex;gap:10px;min-width:0}.kbook-shell .resource-picker-head h2,.textbook-editor-app .resource-picker-head h2{margin:0;color:#172033;font-size:16px;line-height:1.2;white-space:nowrap}.kbook-shell .resource-picker-tabs,.textbook-editor-app .resource-picker-tabs{align-items:center;display:inline-flex;gap:2px;min-height:28px;padding:3px;border:1px solid #dbe4f0;border-radius:8px;background:#ffffff}.kbook-shell .resource-picker-tabs button,.textbook-editor-app .resource-picker-tabs button{min-width:40px;min-height:22px;border:0;border-radius:6px;background:transparent;color:#64748b;cursor:pointer;font-size:12px;font-weight:800}.kbook-shell .resource-picker-tabs button.active,.textbook-editor-app .resource-picker-tabs button.active{background:#2f70ed;color:#ffffff}.kbook-shell .compact-icon,.textbook-editor-app .compact-icon{min-height:32px;width:32px}.kbook-shell .resource-picker-actions .button.compact,.textbook-editor-app .resource-picker-actions .button.compact{min-height:32px;padding:0 10px;font-size:12px}.kbook-shell .resource-picker-actions .button svg,.textbook-editor-app .resource-picker-actions .button svg{height:14px;width:14px}.kbook-shell .resource-picker-actions .compact-icon svg,.textbook-editor-app .resource-picker-actions .compact-icon svg{height:16px;width:16px}.kbook-shell .resource-picker-error,.textbook-editor-app .resource-picker-error{grid-row:2;margin:0;padding:7px 9px;border:1px solid #fed7aa;border-radius:6px;background:#fff7ed;color:#9a3412;font-size:12px;font-weight:700}.kbook-shell .resource-picker-content,.textbook-editor-app .resource-picker-content{grid-row:3;min-height:0;display:block;overflow:hidden}.kbook-shell .resource-picker-modal>.resource-picker-empty,.textbook-editor-app .resource-picker-modal>.resource-picker-empty{grid-row:3}.kbook-shell .resource-picker-group,.textbook-editor-app .resource-picker-group{height:100%;min-height:0;display:grid;grid-template-rows:minmax(0,1fr)}.kbook-shell .resource-picker-grid,.textbook-editor-app .resource-picker-grid{min-height:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-content:start;grid-gap:10px;gap:10px;overflow:auto;padding-right:4px}.kbook-shell .resource-picker-card,.textbook-editor-app .resource-picker-card{min-width:0;padding:0;border:1px solid #dbe4f0;border-radius:8px;overflow:hidden;background:#fff;color:#172033;cursor:pointer;text-align:left;transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease}.kbook-shell .resource-picker-card:hover,.textbook-editor-app .resource-picker-card:hover{border-color:#dbe4f0;box-shadow:0 16px 34px rgba(15,23,42,.12);transform:translateY(-1px)}.kbook-shell .resource-picker-card:focus,.kbook-shell .resource-picker-card:focus-visible,.textbook-editor-app .resource-picker-card:focus,.textbook-editor-app .resource-picker-card:focus-visible{border-color:#dbe4f0;outline:none}.kbook-shell .resource-picker-card.is-spatial .resource-picker-thumb,.textbook-editor-app .resource-picker-card.is-spatial .resource-picker-thumb{box-shadow:inset 8px 0 0 rgba(255,61,96,.1),inset -8px 0 0 rgba(54,214,255,.12)}.kbook-shell .resource-picker-thumb,.textbook-editor-app .resource-picker-thumb{height:106px;display:grid;place-items:center;overflow:hidden;background:#101827}.kbook-shell .resource-picker-thumb img,.kbook-shell .resource-picker-thumb video,.textbook-editor-app .resource-picker-thumb img,.textbook-editor-app .resource-picker-thumb video{width:100%;height:100%;object-fit:contain}.kbook-shell .resource-picker-card strong,.kbook-shell .resource-picker-card>span:not(.resource-picker-thumb),.textbook-editor-app .resource-picker-card strong,.textbook-editor-app .resource-picker-card>span:not(.resource-picker-thumb){display:block;padding:0 9px}.kbook-shell .resource-picker-card strong,.textbook-editor-app .resource-picker-card strong{margin-top:8px;overflow:hidden;color:#172033;font-size:13px;line-height:1.35;text-overflow:ellipsis;white-space:nowrap}.kbook-shell .resource-picker-card>span:not(.resource-picker-thumb),.textbook-editor-app .resource-picker-card>span:not(.resource-picker-thumb){margin:4px 0 9px;color:#64748b;font-size:12px}.kbook-shell .resource-picker-empty,.textbook-editor-app .resource-picker-empty{height:100%;min-height:0;display:grid;place-items:center;border:1px dashed #c9d5e6;border-radius:8px;background:#fff;color:#64748b;font-size:14px}.textbook-editor-app .textbook-assistant-panel.has-resource-drawer{padding:0;overflow:hidden;background:#f7f9fd}.textbook-editor-app .textbook-editor-side-drawer{min-width:0;width:100%;height:100%;min-height:0;display:flex;flex-direction:column;overflow:hidden;background:#f7f9fd}.textbook-editor-app .textbook-editor-side-drawer .material-library-modal,.textbook-editor-app .textbook-editor-side-drawer .material-upload-modal,.textbook-editor-app .textbook-editor-side-drawer .resource-picker-modal{width:100%;height:100%;min-height:0;max-height:none;display:grid;grid-template-rows:auto auto auto minmax(0,1fr);grid-gap:8px;gap:8px;overflow:hidden;padding:12px;border-radius:0;background:#f7f9fd;box-shadow:none}.textbook-editor-app .textbook-editor-side-drawer .material-library-head,.textbook-editor-app .textbook-editor-side-drawer .material-upload-head,.textbook-editor-app .textbook-editor-side-drawer .resource-picker-head{min-height:54px;align-items:center;gap:8px}.textbook-editor-app .textbook-editor-side-drawer .material-library-title,.textbook-editor-app .textbook-editor-side-drawer .material-upload-title,.textbook-editor-app .textbook-editor-side-drawer .resource-picker-title{flex:1 1 auto;align-items:flex-start;flex-direction:column;gap:6px}.textbook-editor-app .textbook-editor-side-drawer .material-library-head h2,.textbook-editor-app .textbook-editor-side-drawer .material-upload-head h2,.textbook-editor-app .textbook-editor-side-drawer .resource-picker-head h2{white-space:normal}.textbook-editor-app .textbook-editor-side-drawer .material-library-head-actions,.textbook-editor-app .textbook-editor-side-drawer .material-upload-actions,.textbook-editor-app .textbook-editor-side-drawer .resource-picker-actions{flex:0 0 auto;justify-content:flex-end;flex-wrap:wrap;gap:6px}.textbook-editor-app .textbook-editor-side-drawer .material-library-head{align-items:start}.textbook-editor-app .textbook-editor-side-drawer .material-library-title{gap:8px}.textbook-editor-app .textbook-editor-side-drawer .material-library-tabs{width:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.textbook-editor-app .textbook-editor-side-drawer .material-library-tabs button{min-width:0;padding:0 8px}.textbook-editor-app .textbook-editor-side-drawer .material-library-head-actions{gap:6px}.textbook-editor-app .textbook-editor-side-drawer .material-library-head-actions .button.primary.compact{min-height:30px;padding:0 8px;border-radius:6px;font-size:12px}.textbook-editor-app .textbook-editor-side-drawer .material-library-head-actions .button.primary.compact svg{width:14px;height:14px}.textbook-editor-app .textbook-side-drawer-feedback{grid-row:2;margin:0;padding:8px 10px;border:1px solid rgba(22,119,255,.18);border-radius:6px;background:#eef6ff;color:#1459c7;font-size:12px;font-weight:800}.textbook-editor-app .textbook-editor-side-drawer .material-library-error,.textbook-editor-app .textbook-editor-side-drawer .resource-picker-error{grid-row:auto}.textbook-editor-app .textbook-editor-side-drawer .material-library-resources,.textbook-editor-app .textbook-editor-side-drawer .material-upload-panel,.textbook-editor-app .textbook-editor-side-drawer .resource-picker-content{grid-row:4;min-height:0;overflow:hidden}.textbook-editor-app .textbook-editor-side-drawer .resource-picker-empty{min-height:0;height:auto;padding:28px 12px;border:0;border-radius:0;background:transparent;color:#64748b;text-align:center}.textbook-editor-app .textbook-editor-side-drawer .material-resource-grid,.textbook-editor-app .textbook-editor-side-drawer .resource-picker-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:max-content;align-items:start;align-content:start;grid-gap:8px;gap:8px;height:100%;overflow:auto;scrollbar-width:none;-ms-overflow-style:none;padding:0}.textbook-editor-app .textbook-editor-side-drawer .material-resource-grid::-webkit-scrollbar,.textbook-editor-app .textbook-editor-side-drawer .resource-picker-grid::-webkit-scrollbar{display:none}.textbook-editor-app .textbook-editor-side-drawer .resource-card.material-resource-card,.textbook-editor-app .textbook-editor-side-drawer .resource-card.resource-picker-card{width:100%;height:auto;min-height:0;min-width:0;align-self:start;overflow:hidden;padding:0;border:1px solid rgba(15,23,42,.08);border-radius:8px;display:grid;grid-template-rows:auto auto;background:#ffffff;color:#172033;box-shadow:0 12px 32px rgba(15,23,42,.08);cursor:pointer;text-align:left;transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease}.textbook-editor-app .textbook-editor-side-drawer .resource-card:hover{border-color:rgba(15,23,42,.08);box-shadow:0 16px 34px rgba(15,23,42,.12);transform:translateY(-1px)}.textbook-editor-app .textbook-editor-side-drawer .resource-card:focus,.textbook-editor-app .textbook-editor-side-drawer .resource-card:focus-visible{border-color:rgba(15,23,42,.08);outline:none}.textbook-editor-app .textbook-editor-side-drawer .resource-card .card-preview{position:relative;width:100%;aspect-ratio:16/10;min-height:0;padding:0;border:0;display:grid;place-items:center;overflow:hidden;background:#edf3fa;cursor:pointer}.textbook-editor-app .textbook-editor-side-drawer .resource-card .card-preview img,.textbook-editor-app .textbook-editor-side-drawer .resource-card .card-preview video{position:absolute;inset:0;display:block;width:100%;height:100%;cursor:pointer;object-fit:cover}.textbook-editor-app .textbook-editor-side-drawer .resource-card-fallback{position:absolute;inset:0;display:grid;place-items:center;align-content:center;grid-gap:8px;gap:8px;background:linear-gradient(135deg,#eaf4ff,#f7fbff);color:#1459c7;cursor:pointer}.textbook-editor-app .textbook-editor-side-drawer .resource-card-fallback.document{background:linear-gradient(135deg,#eef3f8,#ffffff);color:#334155}.textbook-editor-app .textbook-editor-side-drawer .resource-card-fallback.model{background:linear-gradient(135deg,#edf7f3,#fbfffd);color:#047857}.textbook-editor-app .textbook-editor-side-drawer .resource-card-fallback-icon{width:46px;height:46px;border-radius:12px;display:grid;place-items:center;background:rgba(255,255,255,.82);box-shadow:0 12px 28px rgba(15,23,42,.08)}.textbook-editor-app .textbook-editor-side-drawer .resource-card-fallback strong{color:currentColor;font-size:12px;font-weight:900;line-height:1}.textbook-editor-app .textbook-editor-side-drawer .resource-card .card-body{min-width:0;display:block;padding:10px 12px 12px;cursor:pointer}.textbook-editor-app .textbook-editor-side-drawer .resource-card .card-body h3{margin:0;overflow:hidden;color:#172033;font-size:13px;line-height:1.35;font-weight:800;cursor:pointer;text-overflow:ellipsis;white-space:nowrap}.textbook-editor-app .textbook-editor-side-drawer .material-upload-item{grid-template-columns:minmax(0,1fr) auto}.textbook-editor-app .textbook-editor-side-drawer .material-upload-progress-wrap{grid-template-columns:minmax(0,1fr) 34px}@media (max-width:900px){.textbook-editor-app .textbook-assistant-panel.has-resource-drawer{position:fixed;left:0;right:0;bottom:0;z-index:96;height:min(72vh,620px);border-top:1px solid #dfe5ee;border-left:0;box-shadow:0 -22px 48px rgba(15,23,42,.2)}.textbook-editor-app .textbook-assistant-panel.has-resource-drawer .textbook-editor-side-drawer{border-radius:14px 14px 0 0}}@media (max-width:720px){.textbook-editor-app .textbook-assistant-panel.has-resource-drawer{height:calc(100vh - 78px)}.textbook-editor-app .textbook-editor-side-drawer .material-resource-grid,.textbook-editor-app .textbook-editor-side-drawer .resource-picker-grid{grid-template-columns:1fr}.textbook-editor-app .textbook-editor-side-drawer .material-library-head,.textbook-editor-app .textbook-editor-side-drawer .material-upload-head,.textbook-editor-app .textbook-editor-side-drawer .resource-picker-head{align-items:stretch;flex-direction:column}.textbook-editor-app .textbook-editor-side-drawer .material-library-head-actions,.textbook-editor-app .textbook-editor-side-drawer .material-upload-actions,.textbook-editor-app .textbook-editor-side-drawer .resource-picker-actions{justify-content:flex-start}.textbook-editor-app .textbook-editor-side-drawer .material-upload-dropzone{grid-template-columns:minmax(0,1fr)}.textbook-editor-app .textbook-editor-side-drawer .material-upload-dropzone-icon{display:none}}.kbook-shell .textbook-prose .tableWrapper,.textbook-editor-app .textbook-prose .tableWrapper{max-width:100%;margin:24px 0;overflow-x:auto;overflow-y:hidden;border:1px solid #d8e1ef;border-radius:8px;background:#fff}.kbook-shell .textbook-prose table,.textbook-editor-app .textbook-prose table{max-width:100%;margin:24px 0;width:100%;border:1px solid #d8e1ef;border-collapse:collapse;table-layout:fixed;background:#fff}.kbook-shell .textbook-prose .tableWrapper table,.textbook-editor-app .textbook-prose .tableWrapper table{margin:0;border:0}.kbook-shell .textbook-prose td,.kbook-shell .textbook-prose th,.textbook-editor-app .textbook-prose td,.textbook-editor-app .textbook-prose th{min-width:72px;min-height:44px;padding:12px 14px;border:1px solid #e4eaf2;text-align:left;vertical-align:middle;overflow-wrap:anywhere}.kbook-shell .textbook-prose th,.textbook-editor-app .textbook-prose th{background:#f5f8fc;color:#172033;font-size:15px;font-weight:800}.kbook-shell .textbook-prose td,.textbook-editor-app .textbook-prose td{color:#475569;font-size:15px}.kbook-shell .textbook-prose td p,.kbook-shell .textbook-prose th p,.textbook-editor-app .textbook-prose td p,.textbook-editor-app .textbook-prose th p{text-indent:0!important}.kbook-shell .textbook-prose .selectedCell,.textbook-editor-app .textbook-prose .selectedCell{position:relative}.kbook-shell .textbook-prose .selectedCell:after,.textbook-editor-app .textbook-prose .selectedCell:after{position:absolute;inset:0;background:rgba(37,99,235,.16);content:"";pointer-events:none}@media (max-width:1320px){.kbook-shell .textbook-toolbar,.textbook-editor-app .textbook-toolbar{grid-template-columns:0 minmax(0,1fr) 0}.kbook-shell .textbook-editor-workspace,.kbook-shell .textbook-editor-workspace.outline-collapsed,.textbook-editor-app .textbook-editor-workspace,.textbook-editor-app .textbook-editor-workspace.outline-collapsed{display:block}.kbook-shell .assistant-greeting,.kbook-shell .assistant-grid button,.kbook-shell .assistant-more,.textbook-editor-app .assistant-greeting,.textbook-editor-app .assistant-grid button,.textbook-editor-app .assistant-more{font-size:14px}}@media (max-width:980px){.kbook-shell .textbook-import-modal,.textbook-editor-app .textbook-import-modal{height:calc(100vh - 24px)}.kbook-shell .textbook-import-review,.textbook-editor-app .textbook-import-review{grid-template-columns:1fr}.kbook-shell .textbook-import-pages,.textbook-editor-app .textbook-import-pages{grid-auto-flow:column;grid-auto-columns:minmax(150px,1fr);overflow-x:auto;overflow-y:hidden}.kbook-shell .textbook-import-options,.textbook-editor-app .textbook-import-options{max-height:220px}.kbook-shell .textbook-import-document-note,.textbook-editor-app .textbook-import-document-note{align-items:flex-start;flex-direction:column}.kbook-shell .textbook-import-document-note span,.textbook-editor-app .textbook-import-document-note span{white-space:normal}.kbook-shell .textbook-import-document-pages,.textbook-editor-app .textbook-import-document-pages{padding:10px}.kbook-shell .textbook-import-document-page,.textbook-editor-app .textbook-import-document-page{padding:0}.kbook-shell .textbook-import-actions,.textbook-editor-app .textbook-import-actions{flex-wrap:wrap}.kbook-shell .textbook-import-selection-summary,.textbook-editor-app .textbook-import-selection-summary{flex:1 0 100%}.kbook-shell .courseware-editor-body,.textbook-editor-app .courseware-editor-body{grid-template-columns:1fr}.kbook-shell .courseware-editor-modal,.textbook-editor-app .courseware-editor-modal{max-height:calc(100vh - 24px)}.kbook-shell .textbook-editor-titlebar,.textbook-editor-app .textbook-editor-titlebar{height:78px}.kbook-shell .textbook-editor-titlebar nav,.textbook-editor-app .textbook-editor-titlebar nav{min-height:0}.kbook-shell .textbook-title-field,.textbook-editor-app .textbook-title-field{left:46px;top:14px;width:156px;max-width:156px}.kbook-shell .textbook-save-state,.textbook-editor-app .textbook-save-state{left:54px;top:43px;width:156px;max-width:156px}.kbook-shell .textbook-editor-brand strong,.textbook-editor-app .textbook-editor-brand strong{display:none}.kbook-shell .textbook-toolbar,.textbook-editor-app .textbook-toolbar{max-width:100vw;padding-left:0;padding-right:0;grid-template-columns:minmax(0,1fr);overflow-x:visible;overflow-y:visible}.kbook-shell .textbook-toolbar-stage,.textbook-editor-app .textbook-toolbar-stage{grid-column:1;justify-content:flex-start;overflow-x:auto;overflow-y:visible;padding:0 8px}.kbook-shell .textbook-editor-workspace,.textbook-editor-app .textbook-editor-workspace{height:auto;min-height:calc(100vh - 78px);display:block;overflow-x:hidden}.kbook-shell .textbook-editor-workspace.outline-collapsed,.textbook-editor-app .textbook-editor-workspace.outline-collapsed{display:block}.kbook-shell .textbook-avatar-panel,.kbook-shell .textbook-editor-left-panel,.textbook-editor-app .textbook-avatar-panel,.textbook-editor-app .textbook-editor-left-panel{display:none}.kbook-shell .textbook-outline-panel,.textbook-editor-app .textbook-outline-panel{max-height:320px;border-right:0;border-bottom:1px solid #dfe5ee}.kbook-shell .textbook-outline-list,.textbook-editor-app .textbook-outline-list{max-height:242px}.kbook-shell .textbook-page-wrap,.textbook-editor-app .textbook-page-wrap{padding:16px}.kbook-shell .textbook-body-workspace,.textbook-editor-app .textbook-body-workspace{height:auto;overflow:visible}.kbook-shell .textbook-body-outline-panel,.textbook-editor-app .textbook-body-outline-panel{height:100%}.kbook-shell .textbook-body-outline-toggle,.textbook-editor-app .textbook-body-outline-toggle{margin-top:64px}.kbook-shell .textbook-body-outline-content,.textbook-editor-app .textbook-body-outline-content{max-height:220px}.kbook-shell .textbook-page,.textbook-editor-app .textbook-page{width:100%;max-width:100%;min-height:760px;padding:42px 18px}.kbook-shell .textbook-assistant-panel,.textbook-editor-app .textbook-assistant-panel{padding:16px}.kbook-shell .assistant-card,.kbook-shell .resource-config-card,.kbook-shell .textbook-json-preview,.textbook-editor-app .assistant-card,.textbook-editor-app .resource-config-card,.textbook-editor-app .textbook-json-preview{max-width:none}}@media (min-width:901px) and (max-width:1320px){.kbook-shell .textbook-editor-workspace.outline-collapsed,.textbook-editor-app .textbook-editor-workspace.outline-collapsed{height:calc(100vh - 78px);min-height:0;display:grid;grid-template-columns:var(--textbook-outline-collapsed-column,44px) minmax(0,1fr) var(--textbook-assistant-column,360px);overflow:hidden}.textbook-editor-app .textbook-editor-workspace.resource-drawer-open{height:calc(100vh - 78px);min-height:0;display:grid;grid-template-columns:var(--textbook-outline-column,292px) minmax(0,1fr) var(--textbook-assistant-column,360px);overflow:hidden}.textbook-editor-app .textbook-editor-workspace.outline-collapsed.resource-drawer-open{display:grid;grid-template-columns:var(--textbook-outline-collapsed-column,44px) minmax(0,1fr) var(--textbook-assistant-column,360px)}.textbook-editor-app .textbook-editor-workspace.resource-drawer-open .textbook-outline-panel{max-height:none;border-right:1px solid #dfe5ee;border-bottom:0}.textbook-editor-app .textbook-editor-workspace.resource-drawer-open .textbook-assistant-panel{padding:0}}