:root{color:#1d2430;background:#f6f7f9;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Hiragino Sans,Yu Gothic,sans-serif;font-synthesis:none;text-rendering:optimizeLegibility}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.62}.landing{min-height:100vh;padding:32px;display:grid;place-items:center}.landingHero{width:min(1160px,100%);display:grid;grid-template-columns:.9fr 1.1fr;gap:36px;align-items:center}.eyebrow{margin:0 0 8px;font-size:13px;font-weight:800;color:#2563eb}h1{margin:0 0 14px;font-size:40px;line-height:1.15;letter-spacing:0}h2{margin:28px 0 8px;font-size:20px;letter-spacing:0}.lead{margin:0;color:#596273;line-height:1.8}.heroActions{display:flex;gap:12px;margin-top:28px;flex-wrap:wrap}.legalLinks{display:flex;gap:12px;margin-top:18px}.legalLinks button,.textLink,.consentCheck button{padding:0;border:0;background:transparent;color:#2563eb;font-weight:700;text-decoration:underline}.primary,.secondary,.iconButton{border:1px solid transparent;min-height:40px;border-radius:8px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:0 14px;font-weight:800}.primary{background:#2563eb;color:#fff}.secondary{background:#fff;color:#243041;border-color:#d9dee8}.secondary.dangerButton{color:#b42318;border-color:#ffd1cc}.iconButton{width:38px;padding:0;background:#fff;color:#243041;border-color:#d9dee8}.iconButton.danger{color:#b42318}.wideButton{width:100%;margin-top:10px}.smallButton{min-height:32px;padding:0 10px}.compactButton{min-height:32px;padding:0 10px;font-size:12px}.mockEditor{height:560px;display:grid;grid-template-columns:minmax(220px,.82fr) minmax(300px,1.18fr);gap:12px;padding:12px;background:#e5e9ee;border:1px solid #cbd2dc;border-radius:8px;overflow:hidden}.mockPdf,.mockScript{min-width:0;min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr);gap:10px;padding:10px;background:#f8fafc;border:1px solid #d3dae5;border-radius:6px;overflow:hidden}.mockScript{grid-template-rows:auto auto minmax(0,1fr) auto;background:#fff}.mockPaneHeader{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0;color:#243041;font-size:12px;font-weight:900}.mockPaneHeader strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mockPaneHeader span{color:#697386;font-size:11px;white-space:nowrap}.mockPdfPage{min-height:0;padding:20px 16px;background:#f6f8fb;border:1px solid #d7dee8;border-radius:5px;box-shadow:0 1px 4px #1c27351f;overflow:hidden}.mockPdfScene{margin-bottom:14px;color:#5f6b7a;font-size:13px;font-weight:900;text-align:center}.mockPdfLine{display:grid;grid-template-columns:48px minmax(0,1fr);gap:8px;padding:8px 0;border-top:1px solid #e2e8f0;color:#4f5663}.mockPdfLine span{color:#64748b;font-size:10px;font-weight:900;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mockPdfLine p{margin:0;font-size:11px;line-height:1.65}.mockPdfLine.togaki p{font-style:italic;color:#697386}.mockSceneHeader{min-height:30px;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:7px 8px;border-top:1px solid #edf0f4;color:#596273;font-size:12px;font-weight:900}.mockSceneHeader:first-of-type{border-top:0}.mockSceneHeader small{color:#a0a8b4;font-size:11px;font-weight:800;white-space:nowrap}.mockSceneHeader.muted{border-top-color:#edf0f4;color:#8b93a1}.mockLines{min-height:0;display:grid;align-content:start;gap:6px;overflow:hidden}.mockLine{display:grid;grid-template-columns:72px minmax(0,1fr);gap:10px;align-items:start;padding:7px 8px;border:1px solid transparent;border-radius:5px;background:#f8fafc}.mockLine span{min-width:0;font-size:12px;color:#2563eb;font-weight:900;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mockLine p{margin:0;color:#243041;font-size:13px;line-height:1.55}.mockLine.togaki span{color:#64748b}.mockLine.togaki p{color:#5e6675;font-style:italic}.topbar{height:56px;display:flex;align-items:center;justify-content:space-between;padding:0 18px;background:#fff;border-bottom:1px solid #dde2ea}.brand{font-weight:900;white-space:nowrap}.account{display:flex;align-items:center;gap:8px;color:#4b5565;font-size:14px;min-width:0}.account span{max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.accountStatus{max-width:240px;font-size:12px;font-weight:800}.centerPanel{min-height:calc(100vh - 56px);display:grid;place-items:center;padding:24px}.authBox,.consentBox{width:min(640px,100%);background:#fff;border:1px solid #dde2ea;border-radius:8px;padding:24px}.authBox h1,.consentBox h1{font-size:28px;margin-top:18px}.consentBox li{margin:10px 0;line-height:1.6}.consentCheck{display:grid;grid-template-columns:16px 1fr;column-gap:10px;align-items:start;margin:18px 0;line-height:1.6}.consentCheck input[type=checkbox]{width:16px;height:16px;margin:5px 0 0}.fineprint{font-size:12px;color:#697386;line-height:1.6}.errorText,.statusError{color:#b42318}.statusOk{color:#2563eb;font-size:13px;font-weight:800}.dirtyBadge{border:1px solid #3b82f6;background:#f1f5f9;color:#475569;border-radius:999px;padding:4px 9px;font-size:12px;font-weight:800}.listPage{width:min(1080px,100%);margin:0 auto;padding:28px}.listHeader{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.listPage h1{font-size:30px}.listPage p{margin:0 0 22px;color:#596273}.webNotice{display:flex;align-items:flex-start;gap:10px;margin:0 0 18px;padding:12px 14px;border:1px solid #d9dee8;border-radius:8px;background:#f6f7f9;color:#596273}.webNotice svg{flex:0 0 auto;margin-top:2px}.webNotice strong{display:block;margin-bottom:3px;font-size:13px;color:#243041}.webNotice p{margin:0;color:#3f4857;font-size:13px;line-height:1.6}.empty{min-height:180px;padding:28px;background:#fff;border:1px solid #dde2ea;border-radius:8px;color:#596273;display:grid;place-items:center;align-content:center;gap:8px;text-align:center}.empty strong{color:#243041}.scriptGrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:12px}.scriptCard{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:start;background:#fff;border:1px solid #dde2ea;border-radius:8px;padding:12px}.scriptCard:hover{border-color:#93c5fd}.scriptCard.deleting{opacity:.68}.scriptCardOpen{min-width:0;display:grid;justify-items:start;gap:8px;padding:4px;border:0;border-radius:6px;background:transparent;color:inherit;text-align:left}.scriptCardOpen:focus-visible{outline:2px solid #93c5fd;outline-offset:2px}.scriptCardOpen span{color:#697386;font-size:13px}.scriptCardMeta{font-size:12px;line-height:1.35}.scriptDeleteButton{width:32px;min-height:32px}.listFooter{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:28px;padding:14px 0 0;border-top:1px solid #dde2ea;color:#697386}.listFooterInfo{min-width:0;display:grid;gap:2px;font-size:12px;line-height:1.5}.listFooterInfo strong{color:#3f4857;font-size:13px}.listFooterActions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}.listFooterActions .textLink{color:#697386;font-size:12px;font-weight:800}.importDialog{width:min(720px,100%);max-height:min(780px,calc(100vh - 48px));display:flex;flex-direction:column;overflow:hidden;background:#fff;border:1px solid #d9dee8;border-radius:8px;box-shadow:0 20px 54px #0f172a38}.importHeader{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;border-bottom:1px solid #dde2ea}.importHeader h2{margin:0;font-size:18px}.importHeader span{color:#697386;font-size:12px;font-weight:800}.importContent{display:grid;gap:14px;min-height:0;overflow:auto;padding:16px}.importTabs{width:min(360px,100%)}.modeTabs.importTabs{grid-template-columns:repeat(2,minmax(0,1fr))}.importField{display:grid;gap:6px;color:#596273;font-size:12px;font-weight:900}.importField input,.importField textarea{width:100%;border:1px solid #d9dee8;border-radius:8px;background:#fff;color:#243041;padding:0 10px;font-weight:700}.importField input{min-height:38px}.importField textarea{min-height:220px;padding:10px;line-height:1.7;resize:vertical}.importField small{color:#697386;font-size:12px;font-weight:800;line-height:1.5}.filePickButton{min-height:92px;border:1px dashed #93c5fd;border-radius:8px;background:#eff6ff;color:#2563eb;display:grid;place-items:center;align-content:center;gap:6px;font-size:14px;font-weight:900}.filePickButton input,.textFileRow input{display:none}.textFileRow{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.importNotice{padding:10px 12px;border:1px solid #d9dee8;border-radius:8px;background:#f8fafc;color:#3f4857;font-size:12px;font-weight:800;line-height:1.6}.importProgress{display:grid;gap:8px;padding:12px;border:1px solid #bfdbfe;border-radius:8px;background:#f8fbff;color:#1e3a8a}.importProgressHead{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;font-weight:900}.importProgressHead span{flex:0 0 auto;color:#4f6f9f;font-size:11px}.importProgressTrack{height:8px;overflow:hidden;border-radius:999px;background:#dbeafe}.importProgressTrack span{display:block;height:100%;border-radius:inherit;background:#2563eb;transition:width .24s ease}.importProgress p{margin:0;color:#2f4d78;font-size:12px;font-weight:800;line-height:1.6}.importProgress .importProgressCaution{color:#1d4ed8}.importConsentBox{display:grid;gap:4px;padding:12px;border:1px solid #bfdbfe;border-radius:8px;background:#eff6ff;color:#1d4ed8;font-size:12px;font-weight:800;line-height:1.6}.importConsentBox strong{color:#1e3a8a;font-size:13px}.importConsentBox .textLink{color:#1d4ed8;font-size:inherit;font-weight:900}.importFooter{display:flex;justify-content:flex-end;gap:10px;padding:12px 16px;border-top:1px solid #dde2ea}.workspace{height:calc(100vh - 56px);display:grid;grid-template-rows:54px minmax(0,1fr);overflow:hidden}.workspace.standalone{height:100vh}.workspace.hasSyncBanner{grid-template-rows:54px auto minmax(0,1fr)}.workspace.hasShortcutBar{grid-template-rows:54px 28px minmax(0,1fr)}.workspace.hasSyncBanner.hasShortcutBar{grid-template-rows:54px auto 28px minmax(0,1fr)}.toolbar{display:flex;align-items:center;gap:8px;min-width:0;padding:4px 10px;background:#fff;border-bottom:1px solid #dde2ea}.toolbar .primary,.toolbar .secondary{min-height:32px;padding:0 11px;font-size:13px;white-space:nowrap}.toolbarTitleGroup{display:grid;gap:2px;min-width:180px;width:clamp(190px,18vw,330px)}.titleInput{width:100%;min-width:0;border:1px solid #d9dee8;border-radius:8px;min-height:30px;padding:0 10px;font-size:14px;font-weight:800}.scriptMetaRow{display:flex;align-items:center;gap:8px;min-width:0;color:#697386;font-size:10px;font-weight:800;line-height:1;white-space:nowrap}.scriptMetaRow span{min-width:0;overflow:hidden;text-overflow:ellipsis}.toolbarActions{display:flex;align-items:center;justify-content:flex-end;gap:8px;min-width:0;margin-left:auto}.toolbarActions .statusOk,.toolbarActions .statusError{max-width:190px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;font-weight:800}.modeSwitch{display:inline-flex;gap:2px;padding:3px;background:#eef1f5;border-radius:10px}.modeSwitch button{border:0;background:transparent;border-radius:7px;min-height:32px;padding:0 16px;font-weight:800;color:#596273;display:inline-flex;align-items:center;gap:6px}.modeSwitch button.active{background:#fff;color:#2563eb;box-shadow:0 1px 2px #1c27351a}.draftRestoreBar{display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:4px 6px 4px 10px;border:1px solid #cbd5e1;border-radius:8px;background:#f1f5f9;color:#475569;font-size:12px;font-weight:900;white-space:nowrap}.syncNoticeBar{display:flex;align-items:center;gap:10px;min-width:0;padding:8px 12px;border-bottom:1px solid #cbd5e1;background:#f1f5f9;color:#475569;font-size:13px}.syncNoticeBar.conflict{border-bottom-color:#ffd1cc;background:#fff1f0;color:#b42318}.syncNoticeBar svg{flex:0 0 auto}.syncNoticeBar div{min-width:0;display:flex;align-items:baseline;gap:8px;flex:1}.syncNoticeBar strong{white-space:nowrap}.syncNoticeBar span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#3f4857}.syncNoticeBar.conflict span{color:#6f2a22}.historyOverlay{position:fixed;inset:0;z-index:50;display:grid;place-items:center;padding:24px;background:#0f172a47}.historyDialog{width:min(980px,100%);max-height:min(760px,calc(100vh - 48px));display:flex;flex-direction:column;overflow:hidden;background:#fff;border:1px solid #d9dee8;border-radius:8px;box-shadow:0 20px 54px #0f172a38}.reviewAlertDialog{width:min(440px,100%);display:grid;gap:12px;padding:18px;background:#fff;border:1px solid #d9dee8;border-radius:8px;box-shadow:0 20px 54px #0f172a38}.reviewAlertDialog h2{margin:0;font-size:18px}.reviewAlertDialog p{margin:0;color:#3f4857;font-size:14px;line-height:1.7}.reviewAlertActions{display:flex;justify-content:flex-end}.historyHeader{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;border-bottom:1px solid #dde2ea}.historyHeader h2{margin:0;font-size:18px}.historyHeader span{color:#697386;font-size:12px;font-weight:800}.historyHeaderActions{display:flex;align-items:center;gap:8px}.historyContent{flex:1;min-height:0;display:grid;grid-template-columns:280px minmax(0,1fr)}.historyList{min-height:0;overflow:auto;border-right:1px solid #dde2ea;background:#f7f9fc;padding:8px}.historyItem{width:100%;display:grid;gap:4px;text-align:left;padding:10px;border:1px solid transparent;border-radius:8px;background:transparent;color:#243041}.historyItem:hover{background:#fff;border-color:#dde2ea}.historyItem.active{background:#fff;border-color:#93c5fd;box-shadow:0 1px 2px #1c273514}.historyItem strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}.historyItem span,.historyItem small{color:#697386;font-size:12px;font-weight:800}.historyPreviewPane{min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr);background:#fff}.historyPreviewMeta{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border-bottom:1px solid #eef1f5}.historyPreviewMeta strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.historyPreviewMeta span{color:#697386;font-size:12px;font-weight:800;white-space:nowrap}.historyPreviewLines{min-height:0;overflow:auto;padding:8px 12px 16px}.historyPreviewLine{display:grid;grid-template-columns:42px minmax(90px,160px) minmax(0,1fr);gap:10px;align-items:start;padding:8px 0;border-bottom:1px solid #eef1f5}.historyPreviewLine span,.historyPreviewLine strong{color:#697386;font-size:12px;font-weight:900}.historyPreviewLine p{margin:0;color:#243041;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere}.historyPreviewLine.togaki p{color:#475569}.historyEmpty{padding:18px;color:#697386;font-size:13px;font-weight:800}.historyFooter{display:flex;align-items:center;justify-content:flex-end;gap:12px;padding:12px 16px;border-top:1px solid #dde2ea}.historyFooter span{margin-right:auto;color:#697386;font-size:12px;font-weight:800}.shortcutBar{display:flex;align-items:center;min-width:0;padding:4px 12px;overflow-x:auto;border-bottom:1px solid #dde2ea;background:#f8fafc}.shortcutBar .shortcutHints{flex-wrap:nowrap}.shortcutHints{display:flex;align-items:center;gap:10px;flex-wrap:wrap;color:#697386;font-size:11px;font-weight:800}.shortcutHint{display:inline-flex;align-items:center;gap:4px;white-space:nowrap}.shortcutHint kbd{min-width:22px;min-height:18px;padding:1px 5px;border:1px solid #cfd6e1;border-bottom-width:2px;border-radius:4px;background:#f8fafc;color:#3f4857;font-family:inherit;font-size:10px;line-height:1.4;text-align:center}.editorLayout{min-height:0;display:grid;grid-template-columns:minmax(360px,var(--pdf-column-width, 38%)) 12px minmax(460px,1fr);overflow:hidden}.editorLayout.resizing{cursor:col-resize;user-select:none}.pdfColumn{min-height:0;display:flex;background:#f0f2f5;overflow:hidden}.editorResizer{min-height:0;background:#e2e7ef;border-left:1px solid #d2d9e4;border-right:1px solid #d2d9e4;cursor:col-resize;position:relative}.editorResizer:after{content:"";position:absolute;top:50%;left:50%;width:3px;height:44px;border-radius:999px;background:#94a3b8;transform:translate(-50%,-50%)}.editorResizer:hover,.editorLayout.resizing .editorResizer{background:#d5dde8}.pdfPane{flex:1 1 auto;min-width:0;min-height:0;height:100%;padding:14px;display:grid;grid-template-rows:auto auto minmax(0,1fr);overflow:hidden}.practiceStage{min-height:0;overflow:hidden;display:flex;justify-content:center;padding:20px 16px 112px;background:#f0f2f5}.practiceStage .practicePane{width:min(920px,100%);height:100%;min-height:0;padding:0;border:0;background:transparent;overflow:hidden;display:flex;flex-direction:column}.pdfHeader,.practiceHeader{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:10px}.pdfHeader div:first-child,.practiceHeader div:first-child{min-width:0;display:grid;gap:2px}.pdfHeader strong,.practiceHeader strong{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.pdfHeader span,.practiceHeader span{font-size:12px;color:#697386}.pdfControls{display:flex;align-items:center;gap:6px;flex:0 0 auto}.pdfPageCounter{min-width:78px;min-height:38px;display:inline-flex;align-items:center;justify-content:center;padding:0 8px;border:1px solid #d9dee8;border-radius:8px;background:#fff;color:#596273;font-size:12px;font-weight:800;white-space:nowrap}.pdfEmpty{height:100%;min-height:420px;display:grid;place-items:center;align-content:center;gap:8px;background:#f6f8fb;border:1px solid #d7dee8;border-radius:6px;color:#5f6b7a;text-align:center;padding:20px}.pdfPane>.pdfEmpty{min-height:0}.pdfEmpty span{max-width:260px;line-height:1.6;font-size:13px}.pdfCanvasWrap{position:relative;min-height:0;overflow:auto;background:#eceff3;border:1px solid #d5dbe5;border-radius:6px;padding:12px}.pdfCanvasWrap canvas{display:block;margin:0 auto;background:#fff;box-shadow:0 1px 4px #1c27352e}.pdfFallback{display:grid;grid-template-rows:auto minmax(0,1fr);gap:8px;min-height:0}.pdfFallback iframe{width:100%;height:100%;border:1px solid #d5dbe5;border-radius:6px;background:#fff}.inlineWarning,.inlineStatus,.transcript{display:flex;align-items:center;gap:8px;border-radius:8px;padding:8px 10px;font-size:13px}.inlineWarning{background:#f1f5f9;color:#475569;border:1px solid #cbd5e1;margin-bottom:8px}.inlineStatus{background:#f3f6fa;color:#2563eb;border:1px solid #d7dee8;margin-top:10px}.inlineError{margin:10px;padding:10px;background:#fff1f0;color:#b42318;border:1px solid #ffd1cc;border-radius:8px;font-size:13px}.renderBadge{position:absolute;top:12px;right:12px;background:#1d2430d1;color:#fff;border-radius:999px;padding:4px 8px;font-size:12px}.spin{animation:spin .9s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.scriptDoc{overflow:auto;background:#fff;padding:10px 16px;display:flex;flex-direction:column;gap:1px;min-width:0;min-height:0}.sceneBlock{display:grid;gap:1px}.sceneHeader{min-height:34px;display:flex;align-items:center;gap:8px;margin-top:10px;padding:8px 8px 5px;border-top:1px solid #edf0f4}.sceneBlock:first-child .sceneHeader{margin-top:0;border-top:0}.sceneBlock.collapsed .sceneHeader{padding-bottom:8px}.sceneToggle{width:24px;min-height:24px;padding:0;border:0;border-radius:5px;background:transparent;color:#8b93a1;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto}.sceneToggle:hover,.sceneToggle:focus-visible{background:#f1f3f6;color:#596273;outline:none}.sceneHeaderText{min-width:0;display:flex;align-items:baseline;gap:8px}.sceneTitleButton{min-height:0;max-width:min(360px,46vw);border:0;background:transparent;color:#596273;padding:0;font-size:12px;font-weight:900;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sceneTitleButton:hover,.sceneTitleButton:focus-visible{color:#2563eb;text-decoration:underline;outline:none}.sceneTitleButton:disabled{cursor:default;opacity:1;text-decoration:none}.sceneTitleInput{width:min(360px,46vw);min-height:28px;border:1px solid #93c5fd;border-radius:6px;padding:0 8px;color:#243041;font-size:13px;font-weight:800;background:#fff}.sceneHeaderText span{color:#a0a8b4;font-size:11px;font-weight:800;white-space:nowrap}.sceneActions{margin-left:auto;display:flex;align-items:center;gap:6px}.sceneActions .smallButton{min-height:28px;padding:0 8px;font-size:12px}.docRow{display:grid;grid-template-columns:18px 26px 104px minmax(0,1fr);gap:10px;align-items:start;width:100%;text-align:left;padding:4px 8px;border:1px solid transparent;border-radius:5px;background:transparent}.docRow.clickable{cursor:pointer}.docRow.clickable:hover,.docRow.clickable:focus-visible{background:#f5f7f9;border-color:#e7ebf1;outline:none}.docIndex{color:#aeb5c0;font-size:11px;font-weight:800;font-variant-numeric:tabular-nums;text-align:right}.docRole{color:#2563eb;font-weight:800;font-size:12.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.docText{color:#243041;font-size:13px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere}.docText.empty{color:#aeb5c0}.docRow.togaki .docRole{color:#64748b}.docRow.togaki .docText{color:#5e6675;font-style:italic}.docRow.newLine{box-shadow:inset 3px 0 #3b82f6}.docRow.dragging{opacity:.42}.docRow.drop-before{border-top-color:#2563eb;box-shadow:inset 0 3px #2563eb}.docRow.drop-after{border-bottom-color:#2563eb;box-shadow:inset 0 -3px #2563eb}.dragHandle{width:18px;height:24px;display:inline-flex;align-items:center;justify-content:center;color:#a8b0bd;cursor:grab;border-radius:4px}.dragHandle:hover{background:#f1f3f6;color:#596273}.dragHandle:active{cursor:grabbing}.docRow.selected{display:grid;grid-template-columns:1fr;gap:8px;margin:4px 0;padding:10px;border:1px solid #93c5fd;border-radius:8px;background:#eff6ff;box-shadow:0 2px 8px #1c273512;scroll-margin:16px}.docRow.selected.newLine{box-shadow:0 2px 8px #1c273512,inset 3px 0 #3b82f6}.docEditHead{display:flex;gap:8px;align-items:center;min-width:0}.docEditHead .docIndex{text-align:left;flex:0 0 auto}.docEditHead select{min-height:30px;border:1px solid #d9dee8;border-radius:6px;padding:0 8px;background:#fff;font-size:13px}.docEditHead input{flex:1;min-width:0;max-width:220px;min-height:30px;border:1px solid #d9dee8;border-radius:6px;padding:0 10px;background:#fff;font-size:13px}.docEditHead .readOnlyField{background:#f1f3f6;color:#8b93a1}.docTextArea{width:100%;border:1px solid #d9dee8;border-radius:6px;padding:8px 10px;background:#fff;min-height:84px;line-height:1.6;font-size:14px;resize:vertical;overflow:hidden}.docTextArea:focus{outline:2px solid #93c5fd;outline-offset:-1px;border-color:#93c5fd}.docRowActions{display:flex;gap:6px;align-items:center}.docActionsSpacer{flex:1}.pdfSourceBar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:10px}.pdfUploadControls{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.pdfEmpty .pdfUploadControls{margin-top:6px;justify-content:center}.practiceToolbar{display:grid;grid-template-columns:minmax(0,1fr) minmax(180px,240px);gap:10px;align-items:center}.modeTabs{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;padding:4px;background:#eef1f5;border-radius:8px}.modeTabs button{border:0;border-radius:6px;min-height:34px;background:transparent;font-weight:900;color:#596273}.modeTabs .active{background:#fff;color:#2563eb;box-shadow:0 1px 2px #1c273514}.practiceRolePicker{display:grid;gap:4px;color:#596273;font-size:12px;font-weight:900}.practiceRolePicker select{width:100%;min-height:38px;border:1px solid #d9dee8;border-radius:8px;background:#fff;color:#243041;padding:0 10px;font-weight:800}.practiceScript{margin-top:14px;min-height:0;flex:1;overflow:auto;padding:14px;border:1px solid #dde2ea;border-radius:8px;background:#fff;display:flex;flex-direction:column;gap:2px}.practiceLine{width:100%;border:1px solid transparent;border-radius:6px;background:transparent;color:#243041;text-align:left;display:grid;grid-template-columns:42px 112px minmax(0,1fr) auto;gap:10px;align-items:baseline;padding:9px 10px}.practiceLine:hover{background:#f5f7f9;border-color:#e7ebf1}.practiceLine.active{background:#eff6ff;border-color:#93c5fd;box-shadow:inset 4px 0 #2563eb}.practiceLine.ownTurn:not(.active){background:#f8fafc}.practiceLine.togaki .practiceLineRole{color:#64748b}.practiceLine.togaki .practiceLineText{color:#5e6675;font-size:14px;font-style:italic}.practiceLine.masked .practiceLineText{color:#8b93a1;font-weight:900}.practiceLineIndex{color:#aeb5c0;font-size:11px;font-weight:900;font-variant-numeric:tabular-nums;text-align:right}.practiceLineRole{color:#2563eb;font-size:12.5px;font-weight:900;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.practiceLineText{min-width:0;font-size:15px;line-height:1.85;white-space:pre-wrap;overflow-wrap:anywhere}.practiceLineMeta{display:inline-flex;align-items:center;justify-content:flex-end;gap:6px;min-width:0}.practiceLineAudio{color:#475569;background:#f1f5f9;border:1px solid #cbd5e1;border-radius:999px;padding:2px 7px;font-size:11px;font-weight:900;white-space:nowrap}.practiceLineScene{color:#8b93a1;font-size:11px;font-weight:800;white-space:nowrap}.practiceEmpty{min-height:260px;display:grid;place-items:center;color:#697386;font-weight:800}.transcript{margin-top:10px;background:#f0f7ff;border:1px solid #bdd7f5;color:#184e80}.practiceRunStatus{margin-top:10px;display:flex;align-items:center;min-height:38px;padding:8px 10px;border:1px solid #d7dee8;border-radius:8px;background:#f3f6fa;color:#2563eb;font-size:13px;font-weight:800;line-height:1.5}.practiceControls{position:fixed;left:50%;bottom:0;z-index:40;width:min(920px,calc(100vw - 32px));transform:translate(-50%);display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:0;padding:10px 12px calc(10px + env(safe-area-inset-bottom));border:1px solid #dde2ea;border-bottom:0;border-radius:10px 10px 0 0;background:#f6f7f9f5;box-shadow:0 -6px 18px #1c27351f;backdrop-filter:blur(8px)}.practiceControls button{width:100%;padding-inline:10px;white-space:nowrap}.practiceError{display:grid;gap:8px;margin-top:10px;padding:10px;background:#fff1f0;color:#b42318;border:1px solid #ffd1cc;border-radius:8px;font-size:13px}.legalPage{width:min(820px,100%);margin:0 auto;padding:28px}.legalArticle{margin-top:18px;background:#fff;border:1px solid #dde2ea;border-radius:8px;padding:28px;line-height:1.8}.legalArticle h1{font-size:32px}.legalArticle p{color:#3f4857}@media(max-width:1080px){.account .textLink,.account .compactButton{display:none}.editorLayout{grid-template-columns:1fr;grid-template-rows:minmax(300px,40vh) minmax(360px,1fr)}.editorResizer{display:none}.pdfColumn{border-right:0;border-bottom:1px solid #dde2ea}.pdfCanvasWrap,.pdfFallback{height:100%}}@media(max-width:860px){.landing{padding:18px}.landingHero{grid-template-columns:1fr}h1{font-size:32px}.mockEditor{height:440px;grid-template-columns:minmax(180px,.82fr) minmax(240px,1.18fr)}.mockLine{grid-template-columns:64px minmax(0,1fr)}.toolbar{overflow-x:auto}.titleInput{min-width:150px}.modeSwitch button{padding:0 12px}.historyOverlay{padding:10px}.historyDialog,.importDialog{max-height:calc(100vh - 20px)}.historyContent{grid-template-columns:1fr;grid-template-rows:170px minmax(0,1fr)}.historyList{display:flex;gap:8px;overflow:auto;border-right:0;border-bottom:1px solid #dde2ea}.historyItem{min-width:220px}.historyPreviewLine{grid-template-columns:32px 96px minmax(0,1fr)}.docRow{grid-template-columns:18px 28px 88px minmax(0,1fr);gap:8px}.sceneHeader{align-items:flex-start;flex-direction:column;gap:6px}.sceneActions{margin-left:0;flex-wrap:wrap}.docRowActions{flex-wrap:wrap}.practiceStage{padding:14px 10px 132px}.practiceToolbar{grid-template-columns:1fr}.practiceScript{min-height:0;padding:10px}.practiceLine{grid-template-columns:32px 82px minmax(0,1fr);gap:8px;padding:8px}.practiceLineMeta,.practiceLineScene{display:none}.practiceControls{width:calc(100vw - 20px);grid-template-columns:repeat(2,minmax(0,1fr));padding-inline:8px;gap:6px}.topbar{padding:0 10px}.account span{max-width:120px}}@media(max-width:560px){.mockEditor{height:auto;grid-template-columns:1fr}.mockPdfPage{min-height:240px}.listHeader{align-items:stretch;flex-direction:column}.listHeader .primary{width:100%}.listFooter{align-items:flex-start;flex-direction:column}.listFooterActions{justify-content:flex-start}.importHeader,.importFooter{align-items:flex-start;flex-direction:column}.importFooter button{width:100%}.historyHeader,.historyFooter{align-items:flex-start;flex-direction:column}.historyHeaderActions{width:100%;justify-content:flex-end}.historyFooter button{width:100%}.historyPreviewLine{grid-template-columns:30px minmax(0,1fr)}.historyPreviewLine p{grid-column:2}}
