*{box-sizing:border-box}body{margin:0;color:#17202a;background:#eef2f6;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}button,input,select{font:inherit}button{border:1px solid #9aa8b8;border-radius:6px;padding:8px 12px;color:#17202a;background:#fff;cursor:pointer}button:hover{border-color:#52616f}button:disabled{border-color:#d5dde7;color:#94a3b8;background:#edf2f7;cursor:not-allowed}button:disabled:hover{border-color:#d5dde7}.wordsearchPanel{width:min(600px,100%);margin:12px auto;padding:12px;display:grid;gap:16px}.wordsearchHeader{display:flex;align-items:center;justify-content:space-between;gap:12px}.wordsearchHeader h1,.wordsearchHeader p{margin:0}.wordsearchHeader p{color:#64748b;font-size:13px}.wordsearchActions{display:flex;gap:8px}.wordsearchBoard{width:min(100%,440px);aspect-ratio:1;justify-self:center;position:relative;display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:5px;touch-action:none;-webkit-user-select:none;user-select:none}.wordsearchHighlights{position:absolute;inset:0;z-index:2;pointer-events:none}.wordsearchHighlight{--wordsearch-highlight-color: #0f766e;--wordsearch-highlight-x: 0;--wordsearch-highlight-y: 0;--wordsearch-highlight-length: 1;--wordsearch-highlight-angle: 0deg;position:absolute;left:calc(var(--wordsearch-highlight-x) * 12.5%);top:calc(var(--wordsearch-highlight-y) * 12.5%);width:calc(var(--wordsearch-highlight-length) * 12.5%);height:calc(12.5% - 8px);min-height:30px;border:3px solid var(--wordsearch-highlight-color);border-radius:999px;background:color-mix(in srgb,var(--wordsearch-highlight-color) 28%,transparent);box-shadow:0 2px 10px color-mix(in srgb,var(--wordsearch-highlight-color) 22%,transparent);opacity:.8;transform:translate(-50%,-50%) rotate(var(--wordsearch-highlight-angle));transform-origin:center}.wordsearchHighlight.found{opacity:.68}.wordsearchHighlight.active{border-color:var(--wordsearch-highlight-color);background:color-mix(in srgb,var(--wordsearch-highlight-color) 28%,transparent);opacity:.9}.wordsearchHighlight.remote{border-style:dashed;opacity:.76}.wordsearchCell{position:relative;z-index:1;min-width:0;width:100%;height:100%;border:1px solid #cbd5e1;border-radius:6px;padding:0;background:#ffffffc7;color:#0f172a;font-size:22px;font-weight:800;-webkit-backdrop-filter:saturate(1.1);backdrop-filter:saturate(1.1)}.wordsearchCell:disabled{color:#0f172a;opacity:1}.wordsearchBank{display:flex;flex-wrap:wrap;gap:8px}.wordsearchWord{--wordsearch-found: #94a3b8;border:1px solid #cbd5e1;border-radius:6px;padding:6px 10px;color:#334155;background:#fff;font-size:13px;font-weight:800}.wordsearchWord.found{border-color:var(--wordsearch-found);color:#0f172a;background:linear-gradient(#ffffffbd,#ffffffbd),var(--wordsearch-found);text-decoration:line-through}.wordsearchStatus,.wordsearchMissing{margin:0;color:#b45309;font-size:13px;font-weight:700}.demoTopBar{position:sticky;top:0;z-index:50;width:100%;min-height:58px;border-bottom:1px solid #d4dde7;padding:10px max(16px,calc((100vw - 1180px)/2));background:#f8fafcf5;box-shadow:0 8px 20px #192a3e12;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap}.topBarGroup{min-width:0;display:flex;align-items:center;gap:8px;flex-wrap:wrap}.topBarPrimary{flex:1 1 auto}.topBarActions{justify-content:flex-end}.demoTopBar label{display:inline-grid;grid-template-columns:auto minmax(150px,1fr);align-items:center;gap:8px}.demoTopBar label span{color:#526070;font-size:12px;font-weight:700}.demoTopBar select{min-width:0;width:100%;height:34px;border:1px solid #c3cfdb;border-radius:6px;padding:0 28px 0 10px;color:#17202a;background:#fff}.demoTopBar label:first-child select{min-width:150px}.demoTopBar label:nth-child(2) select{min-width:130px}.documentManager{min-width:min(360px,42vw)}.documentManagerTrigger{min-width:240px;height:38px;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:8px;text-align:left}.documentManagerTrigger span:first-child{color:#526070;font-size:12px;font-weight:700}.documentManagerTrigger strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}.documentModalOverlay{position:fixed;inset:0;z-index:100;padding:72px 16px 24px;background:#0f172a6b;display:grid;align-items:start;justify-items:center}.documentModal{width:min(920px,100%);max-height:calc(100vh - 96px);overflow:auto;border:1px solid #cbd5e1;border-radius:8px;background:#f8fafc;box-shadow:0 24px 60px #0f172a47}.documentModalHeader,.documentModalActions,.documentCreateForm,.documentModalSection{padding:14px 16px}.documentModalHeader{position:sticky;top:0;z-index:1;border-bottom:1px solid #d7e0ea;background:#f8fafc;display:flex;align-items:center;justify-content:space-between;gap:12px}.documentModalHeader h1{font-size:20px}.documentModalActions,.documentCreateForm{display:flex;flex-wrap:wrap;gap:8px;border-bottom:1px solid #e2e8f0}.documentCreateForm input{min-width:min(360px,100%);flex:1 1 240px;height:38px;border:1px solid #c3cfdb;border-radius:6px;padding:0 10px;background:#fff}.documentModalSection h2{margin:0 0 10px;font-size:14px;color:#334155}.documentRows{display:grid;gap:8px}.documentRow{min-width:0;border:1px solid #d7e0ea;border-radius:8px;padding:12px;background:#fff;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center}.documentRowMain{min-width:0;display:grid;gap:6px}.documentRowTitle,.documentRowMeta,.documentRowActions{min-width:0;display:flex;align-items:center;gap:6px;flex-wrap:wrap}.documentRowTitle strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.documentRowMeta{color:#64748b;font-size:12px}.documentRowMeta span{max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.documentBadge{border:1px solid #cbd5e1;border-radius:999px;padding:2px 7px;color:#334155;background:#f1f5f9;font-size:11px;font-weight:700;text-transform:uppercase}.source-local{border-color:#a7d7c5;color:#176149;background:#e8f7f1}.source-server{border-color:#b7c7ee;color:#244d98;background:#eaf0ff}.source-local-and-server{border-color:#c9b6ee;color:#583b92;background:#f2ecff}.documentRowActions{justify-content:flex-end}.dangerButton{border-color:#e2a8a8;color:#9f1d1d;background:#fff7f7}.dangerButton:hover{border-color:#ba3b3b}.documentModalMessage,.documentModalStatus{margin:0;color:#64748b;font-size:13px}.documentModalStatus{padding:0 16px 16px}.rolePicker button{min-width:92px}.topBarMessage{margin:0;font-size:13px}button.active{border-color:#1f6feb;color:#0f3d8a;background:#e8f1ff}.collabShell{width:min(1180px,calc(100vw - 32px));min-height:calc(100vh - 58px);margin:0 auto;padding:32px 0;display:grid;grid-template-columns:minmax(0,1fr) 132px minmax(0,1fr);grid-template-areas:"left sync right";gap:18px;align-items:start}.soloShell{width:min(760px,calc(100vw - 32px));min-height:calc(100vh - 58px);margin:0 auto;padding:32px 0;display:grid;gap:18px}.todoPanel{min-width:0;border:1px solid #d4dde7;border-radius:8px;background:#fdfefe;box-shadow:0 10px 24px #192a3e14}.leftPanel{grid-area:left}.rightPanel{grid-area:right}.panelHeader{display:flex;justify-content:space-between;gap:16px;padding:18px;border-bottom:1px solid #e1e8f0}h1{margin:0;font-size:22px;line-height:1.15}p{margin:6px 0 0;color:#64748b}.panelActions{display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end}.panelActions button{padding:5px 9px;font-size:13px}.panelActions button:disabled{opacity:.58}.colorPicker{display:flex;gap:8px;align-items:center;padding:18px 18px 0}.swatch{width:32px;height:32px;border:2px solid #fff;border-radius:999px;padding:0;box-shadow:0 0 0 1px #bcccdc}.swatch:hover,.swatch:focus-visible,.swatch.selected{box-shadow:0 0 0 1px #486581,0 0 0 4px #d9e2ec}.addForm{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:18px}.addForm input,.titleInput{min-width:0;width:100%;border:1px solid #c3cfdb;border-radius:6px;padding:9px 10px;color:#17202a;background:#fff}.todoList{display:grid;gap:8px;max-height:calc(100vh - 218px);margin:0;padding:0 18px 18px;overflow:auto;list-style:none}.todoItem{position:relative;display:grid;grid-template-columns:28px minmax(0,1fr) auto;gap:10px;align-items:center;min-height:54px;border:1px solid #dce4ed;border-radius:8px;padding:10px;background:var(--task-bg, #fff);touch-action:pan-y;will-change:transform}.todoItem.done{background:#f6f8fa}.todoItem.dragging{border-color:#829ab1;opacity:.62}.todoItem.dropBefore:before,.todoItem.dropAfter:after{position:absolute;right:10px;left:10px;height:3px;border-radius:999px;background:#2563eb;content:""}.todoItem.dropBefore:before{top:-6px}.todoItem.dropAfter:after{bottom:-6px}.dragHandle,.dragHandleSpacer{width:28px;height:34px}.dragHandle{display:inline-grid;place-items:center;border:0;border-radius:6px;padding:0;color:#64748b;background:transparent;cursor:grab;opacity:0;touch-action:none;transition:background .15s ease,color .15s ease,opacity .15s ease}.dragHandle span{font-weight:700;line-height:1;letter-spacing:0;transform:rotate(90deg)}.todoItem:hover .dragHandle,.todoItem:focus-within .dragHandle,.draggingList .dragHandle{opacity:1}.dragHandle:hover,.dragHandle:focus-visible{color:#17202a;background:#e6eef7}.dragHandle:active{cursor:grabbing}.todoItem label{min-width:0;display:flex;gap:10px;align-items:center}.todoContent{min-width:0;display:grid;gap:6px}.todoTitle{min-width:0;overflow-wrap:anywhere}.todoTitleMeta{color:#64748b;font-size:13px}.done .todoTitle{color:#748094;text-decoration:line-through}.todoDetails{min-width:0}.todoNotesInput{width:100%;min-width:0;border:1px solid #c3cfdb;border-radius:6px;padding:6px 8px;color:#17202a;background:#fff;font-size:13px}.itemActions{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.itemActions button{padding:6px 9px}.todoExtraControl{min-width:0;display:flex;align-items:center;gap:6px;color:#526070;font-size:13px}.todoExtraControl input{margin:0}.todoPrioritySelect{min-width:88px;height:32px;border:1px solid #c3cfdb;border-radius:6px;padding:0 8px;color:#17202a;background:#fff;font-size:13px}.presenceCursorStack{display:flex;flex-direction:row-reverse;align-items:center;padding:0 2px}.presenceCursor{display:inline-grid;place-items:center;width:24px;height:24px;margin-left:-5px;border:2px solid #fff;border-radius:999px;color:#fff;font-size:12px;font-weight:700;line-height:1;box-shadow:0 1px 3px #0f172a2e}.richNotesPanel{min-width:0;min-height:min(720px,calc(100vh - 122px));border:1px solid #d4dde7;border-radius:8px;background:#fdfefe;box-shadow:0 10px 24px #192a3e14;display:grid;grid-template-columns:minmax(240px,320px) minmax(0,1fr);overflow:hidden}.richNotesSidebar{min-width:0;border-right:1px solid #dce4ed;background:#f8fafc;display:flex;flex-direction:column}.richNotesSidebarHeader,.richNotesEditorHeader{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:16px;border-bottom:1px solid #e1e8f0}.richNotesSidebarHeader h1,.richNotesEditorHeader h2{margin:0;font-size:20px;line-height:1.2}.richNotesEditorHeader p{margin:3px 0 0;white-space:nowrap}.richNotesSidebarHeader button,.richNotesArchiveHeader button,.richNotesEmptyState button{padding:6px 10px;font-size:13px}.richNotesList{min-width:0;display:grid;gap:6px;margin:0;padding:10px;overflow:auto;list-style:none}.richNotesList li{min-width:0;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;align-items:stretch}.richNoteRow{min-width:0;display:grid;gap:3px;border-color:#d7e0ea;padding:9px 10px;text-align:left}.richNoteRowActive,.richNoteRowActive:hover{border-color:#2f6fbd;background:#e8f1ff}.richNoteTitle,.richNoteDate{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.richNoteTitle{font-weight:700}.richNoteDate,.richNotesEmptyList{color:#64748b;font-size:12px}.richNotesEmptyList{margin:0;padding:12px 16px}.richNotesArchiveHeader{margin-top:auto;border-top:1px solid #e1e8f0;padding:10px}.richNotesEditorPane{min-width:0;display:grid;grid-template-rows:auto minmax(0,1fr);background:#fff}.richNotesEditor{min-width:0;min-height:420px;padding:26px;overflow:auto}.richNotesEditor [contenteditable]{min-height:100%;outline:none;color:#17202a;font-size:17px;line-height:1.62;white-space:pre-wrap}.richNotesEditor [contenteditable]:focus-visible{box-shadow:inset 0 0 0 2px #b7cff5}.richNotesEditor strong{font-weight:800}.richNotesEditor a{color:#1f6feb}.richNotesEmptyState{min-height:360px;display:grid;align-content:center;justify-items:center;gap:12px;padding:32px}.richNotesEmptyState h2{margin:0;font-size:20px}.syncRail{grid-area:sync;position:sticky;top:32px;display:grid;gap:12px;justify-items:center;border:1px solid #d4dde7;border-radius:8px;padding:18px 12px;background:#fdfefe}.syncIndicator{width:18px;height:18px;border-radius:999px}.syncIndicator.on{background:#20a464;box-shadow:0 0 0 5px #d8f3e5}.syncIndicator.off{background:#d14343;box-shadow:0 0 0 5px #fde2e2}.syncButton{width:100%}.queueCounts{width:100%;display:grid;gap:6px;color:#64748b;font-size:13px}.queueCounts span{display:flex;justify-content:space-between;border-radius:6px;padding:5px 7px;background:#eef2f6}.peerShell{width:min(1180px,calc(100vw - 32px));min-height:calc(100vh - 58px);margin:0 auto;padding:32px 0;display:grid;grid-template-columns:320px minmax(0,1fr);gap:18px;align-items:start}.wordsearchPeerDemo{width:min(1180px,calc(100vw - 32px));min-height:100vh;margin:0 auto;padding:18px 0 32px;display:grid;grid-template-columns:1fr;gap:18px;align-items:start;align-content:start}.wordsearchPeerControls{position:sticky;top:12px;z-index:40;display:flex;align-items:center;gap:12px;border:1px solid #d4dde7;border-radius:8px;padding:10px;background:#fdfefef5;box-shadow:0 10px 24px #192a3e14;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.wordsearchPeerControls .peerControls{position:static;flex:1 1 auto}.newGameButton{width:auto;border-color:#0f766e;color:#0f172a;background:#ccfbf1;font-weight:800;white-space:nowrap}.newGameButton:hover{border-color:#115e59}.localFirstShell,.serverShell{width:min(1180px,calc(100vw - 32px));min-height:calc(100vh - 58px);margin:0 auto;padding:32px 0;display:flex;flex-direction:column;gap:18px;align-items:stretch}.peerControls,.localFirstControls,.serverHistory,.waitingPanel{border:1px solid #d4dde7;border-radius:8px;background:#fdfefe;box-shadow:0 10px 24px #192a3e14}.peerControls,.localFirstControls{position:sticky;top:24px;display:grid;gap:16px;padding:18px}.peerControlsBar{min-width:0;border:0;border-radius:0;padding:0;background:transparent;box-shadow:none;display:flex;align-items:center;gap:10px;flex-wrap:wrap}.localFirstControls h2,.serverHistory h2{margin:0;font-size:18px;line-height:1.2}.serverControls{position:sticky;top:0;z-index:20;display:grid;grid-template-columns:auto auto minmax(0,1fr);gap:12px;align-items:center;border:1px solid #d4dde7;border-radius:8px;padding:8px 10px;background:#fdfefe;box-shadow:0 8px 18px #192a3e14}.serverControls.disconnected{border-color:#f59e0b;background:#ffedd5}.serverIdentity{min-width:0;display:flex;gap:8px;align-items:center}.serverIdentity strong{min-width:0;overflow:hidden;color:#17202a;font-size:14px;text-overflow:ellipsis;white-space:nowrap}.serverDocument{display:grid;gap:18px;min-width:0}.serverToolbarActions{display:flex;gap:6px;align-items:center}.serverIconButton,.serverSyncIndicator{display:inline-grid;place-items:center;width:34px;height:34px;border-radius:6px;padding:0;color:#52616f}.serverSyncIndicator{border:1px solid transparent}.serverIconButton svg,.serverSyncIndicator svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}.serverIconButton.active,.serverSyncIndicator.active{color:#0f3d8a}.presenceRoster{display:flex;flex:1;justify-content:flex-end;min-width:0}.presenceRoster ul{display:flex;flex-direction:row-reverse;align-items:center;margin:0;padding:0;list-style:none}.presenceRoster li{display:flex;margin-left:-5px}.presenceAvatar{display:inline-grid;place-items:center;width:24px;height:24px;border-radius:999px;color:#fff;font-size:12px;font-weight:700;line-height:1}.presenceRoster .presenceAvatar,.serverIdentity .presenceAvatar{border:2px solid #fff;box-shadow:0 1px 3px #0f172a2e}.presenceEmpty{color:#64748b;font-size:13px;white-space:nowrap}.presenceEmpty.disconnected{color:#7c2d12;font-weight:700}.serverToolbarNotice{grid-column:1 / -1;margin:0;border:1px solid #cbd5e1;border-radius:8px;padding:10px 12px;display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:13px}.serverToolbarNotice.info{color:#52616f;background:#f8fafc}.serverToolbarNotice.error{border-color:#f0b8b8;color:#b42318;background:#fff5f5}.serverToolbarNotice.warning{border-color:#f59e0b;color:#7c2d12;background:#ffedd5;box-shadow:0 8px 18px #b4530929;font-size:14px;font-weight:700}.serverToolbarNotice.warning .serverToolbarNoticeIcon{font-size:18px;line-height:1}.serverToolbarNotice button{margin-left:auto;border-color:#2f6fbd;color:#0f3d8a;background:#e8f1ff}.serverLogin{grid-column:1 / -1;display:grid;gap:16px;align-content:start;max-width:520px}.serverKnownUsers{display:flex;flex-wrap:wrap;gap:8px}.serverLoginForm{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}.serverLoginForm input{min-width:0;width:100%;border:1px solid #c3cfdb;border-radius:6px;padding:9px 10px;color:#17202a;background:#fff}.serverLoginError{color:#b42318}.serverHistory{display:grid;gap:14px;padding:18px}.serverHistory header{display:flex;align-items:baseline;justify-content:space-between;gap:12px}.serverHistory header p{margin:0}.serverHistory h3,.serverHistory h4{margin:0}.serverBranchList,.serverBranchActions{display:flex;flex-wrap:wrap;gap:8px}.serverBranchActions input,.serverBranchActions select{min-width:min(260px,100%);border:1px solid #c3cfdb;border-radius:6px;padding:8px 10px;color:#17202a;background:#fff}.serverMergePanel{display:grid;gap:12px;border-top:1px solid #dce4ed;border-bottom:1px solid #dce4ed;padding:14px 0}.serverMergeHeader{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.serverMergeHeader p{margin:4px 0 0;color:#64748b;font-size:13px}.serverMergeFacts{display:grid;grid-template-columns:repeat(auto-fit,minmax(132px,1fr));gap:8px;margin:0}.serverMergeFacts div{min-width:0;border:1px solid #dce4ed;border-radius:8px;padding:8px 10px;background:#f8fafc}.serverMergeFacts div.primary{border-color:#99c2ff;background:#eef6ff}.serverMergeFacts dt{color:#64748b;font-size:11px;text-transform:uppercase}.serverMergeFacts dd{margin:3px 0 0;color:#17202a;font-size:16px;font-weight:700}.serverMergeWarning{margin:0;border:1px solid #f1c9a7;border-radius:8px;padding:8px 10px;background:#fff8f1;color:#9a3412;font-size:13px}.serverMergeToolbar{display:flex;flex-wrap:wrap;gap:8px}.serverPreviewNotice{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #b8d6ff;border-radius:8px;padding:8px 10px;background:#f0f6ff;color:#0f3d8a;font-size:13px}.serverMergePreviewGrid{display:grid;grid-template-columns:minmax(220px,.8fr) minmax(280px,1.2fr);gap:12px;min-width:0}.serverMergePaths,.serverMergeState{min-width:0}.serverMergePaths h4,.serverMergeState h4{margin-bottom:8px;font-size:13px}.serverMergePaths ul{display:grid;gap:6px;max-height:260px;margin:0;padding:0;overflow:auto;list-style:none}.serverMergePaths label{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:8px;min-height:34px;border:1px solid #dce4ed;border-radius:8px;padding:7px 9px;background:#fff}.serverMergePaths label.reverted{border-color:#f1c9a7;background:#fff8f1}.serverMergePaths span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,monospace;font-size:12px}.serverMergePaths strong{color:#64748b;font-size:11px;text-transform:uppercase}.serverMergeEmpty{margin:0;color:#64748b;font-size:13px}.serverTimeline{display:flex;gap:8px;overflow-x:auto;padding-bottom:4px}.serverTimeline button{flex:0 0 auto;max-width:190px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.serverPreview{max-height:260px;margin:0;overflow:auto;border:1px solid #dce4ed;border-radius:8px;padding:10px;background:#f8fafc;color:#334155;font-size:12px}.serverStaleReview{display:grid;gap:14px;border:1px solid #d4dde7;border-radius:8px;padding:18px;background:#fdfefe;box-shadow:0 10px 24px #192a3e14}.serverStaleReviewHeader{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.serverStaleReviewHeader h2{margin:0;color:#17202a;font-size:18px;line-height:1.2}.serverStaleReviewHeader p{margin:5px 0 0;color:#52616f;font-size:13px}.serverStaleReviewActions,.serverStaleReviewFork{display:flex;flex-wrap:wrap;gap:8px}.serverStaleReviewFork input{width:min(380px,100%);border:1px solid #c3cfdb;border-radius:6px;padding:8px 10px;color:#17202a;background:#fff}.serverStaleReviewGrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;align-items:start}@media(max-width:760px){.serverMergeFacts,.serverMergePreviewGrid,.serverStaleReviewGrid{grid-template-columns:1fr}.serverMergeHeader,.serverStaleReviewHeader{display:grid}}.localFirstStats{display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px 12px;margin:0}.localFirstStats dt{color:#64748b;font-size:12px;text-transform:uppercase}.localFirstStats dd{min-width:0;margin:0;overflow-wrap:anywhere}.replayPreview{max-height:220px;margin:0;overflow:auto;border:1px solid #dce4ed;border-radius:8px;padding:10px;background:#f8fafc;color:#334155;font-size:12px}.rolePicker{display:flex;gap:8px}.mobileRoleSelect{display:none}.peerStatusLight{min-width:0;display:inline-flex;align-items:center;gap:8px;color:#334155;font-size:13px;font-weight:800;white-space:nowrap}.statusDot{width:12px;height:12px;border-radius:999px;background:#f59e0b;box-shadow:0 0 0 4px #f59e0b2e}.statusDot.connected{background:#16a34a;box-shadow:0 0 0 4px #16a34a2e}.statusDot.ready{background:#65a30d;box-shadow:0 0 0 4px #65a30d2e}.statusDot.error{background:#dc2626;box-shadow:0 0 0 4px #dc26262e}.peerFacts{display:grid;gap:10px;margin:0}.peerFacts div{display:grid;gap:4px}.peerFacts dt{color:#64748b;font-size:12px;text-transform:uppercase}.peerFacts dd{min-width:0;margin:0;overflow-wrap:anywhere}.peerConnect{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}.peerConnectBar{flex:1 1 260px;max-width:420px}.peerConnect input,.inviteBox input{min-width:0;border:1px solid #c3cfdb;border-radius:6px;padding:9px 10px}.inviteBox{display:grid;gap:6px}.inviteBox label{color:#64748b;font-size:12px;text-transform:uppercase}.inviteBox div{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}.inviteBox input{width:100%;color:#334155;background:#f8fafc}.copyInviteButton{white-space:nowrap}.connectionList{display:grid;gap:10px}.compactionRiskList{display:grid;gap:8px}.connectionRow{display:grid;gap:8px;border:1px solid #dce4ed;border-radius:8px;padding:10px;background:#fff}.connectionRow strong,.connectionRow em{display:block;overflow-wrap:anywhere}.connectionRow span,.connectionRow em{color:#64748b;font-size:13px}.connectionActions{display:flex;flex-wrap:wrap;gap:6px;align-items:center}.connectionActions button{padding:5px 8px;font-size:13px}.waitingPanel{min-height:220px;padding:24px}.peerErrorPanel{display:grid;gap:12px;align-content:start}.peerRecoveryActions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.peerRecoveryActions .peerConnect{flex:1 1 280px}.historyView{display:grid;gap:12px;margin-bottom:16px}.historyView h2{margin:0;font-size:16px;line-height:1.2}.historyScroller{max-width:100%;overflow:auto;border:1px solid #dce4ed;border-radius:8px;padding:14px;background:#f8fafc}.historyTree{position:relative;width:max-content;min-width:100%}.historyBranch,.historyNodeRow{display:flex;flex-direction:row;align-items:center}.historyNodeStem{width:10px;height:4px;margin-left:-10px;background:#9aa8b8}.historyNode{z-index:5;flex-shrink:0;width:18px;height:18px;min-width:18px;margin-block:2px;border:2px solid #9aa8b8;border-radius:999px;padding:0;background:#334155}.historyNode.current{border-color:#93c5fd;background:#1f6feb}.historyNode.previewing{border-color:#f8fafc;background:#93c5fd}.historyBranchLineWrap{margin-right:6px;margin-left:-6px}.historyBranchLine{width:4px;background:#9aa8b8}.historyChildren{display:flex;flex-direction:column}.historySkip{display:flex;align-items:center;justify-content:center;width:60px;height:4px;background:#9aa8b8}.historySkip span{border:1px solid #dce4ed;border-radius:999px;padding:1px 6px;background:#f8fafc;color:#64748b;font-size:12px}.whiteboardPanel{min-width:0;border:1px solid #d4dde7;border-radius:8px;background:#fdfefe;box-shadow:0 10px 24px #192a3e14;overflow:hidden}.whiteboardHeader{display:flex;justify-content:space-between;gap:16px;padding:14px 16px;border-bottom:1px solid #e1e8f0}.whiteboardActions,.whiteboardToolbar{display:flex;flex-wrap:wrap;gap:6px;align-items:center}.whiteboardActions button,.whiteboardToolbar button,.whiteboardToolbar select{min-height:32px;padding:5px 9px;font-size:13px}.whiteboardToolbar{padding:10px 12px;border-bottom:1px solid #e1e8f0;background:#f8fafc}.whiteboardSwatches{display:flex;gap:4px;align-items:center}.whiteboardSwatch{width:26px;min-width:0;height:26px;border:2px solid #fff;border-radius:999px;padding:0;box-shadow:0 0 0 1px #bcccdc}.whiteboardSwatch.active{box-shadow:0 0 0 1px #486581,0 0 0 4px #d9e2ec}.whiteboardArchive{display:flex;flex-wrap:wrap;gap:8px;padding:10px 12px;border-bottom:1px solid #e1e8f0;background:#fff}.whiteboardArchive span{color:#64748b;font-size:13px}.whiteboardViewport{position:relative;height:min(70vh,720px);min-height:440px;overflow:hidden;background:linear-gradient(#e2e8f0 1px,transparent 1px),linear-gradient(90deg,#e2e8f0 1px,transparent 1px),#edf2f7;background-size:32px 32px;touch-action:none;-webkit-user-select:none;user-select:none}.whiteboardViewport.tool-pen,.whiteboardViewport.tool-note,.whiteboardViewport.tool-emoji{cursor:crosshair}.whiteboardViewport.tool-pan{cursor:grab}.whiteboardCanvas{position:absolute;left:0;top:0;transform-origin:0 0;-webkit-user-select:none;user-select:none}.whiteboardSvg{position:absolute;inset:0;pointer-events:none}.whiteboardStroke{pointer-events:stroke;cursor:pointer;touch-action:none}.whiteboardStroke.selected{filter:drop-shadow(0 0 .35rem rgb(37 99 235 / 45%))}.whiteboardActiveStroke,.whiteboardPreviewOverlay,.whiteboardPreviewSvg,.whiteboardSelectionPreview{pointer-events:none}.whiteboardPreviewOverlay{z-index:4;opacity:.72}.whiteboardPreviewOverlay.local{opacity:.88}.whiteboardPreviewOverlay.stale,.whiteboardPreviewSvg.stale,.whiteboardSelectionPreview.stale{opacity:.35}.whiteboardPreviewSvg{position:absolute;inset:0;z-index:3}.whiteboardSelectionPreview{position:absolute;z-index:5;border:2px dashed #0f766e;border-radius:6px;background:#14b8a614}.whiteboardPreviewNoteText{padding:12px;color:#17202a;overflow:hidden;white-space:pre-wrap}.previewSuppressed{opacity:.18}.whiteboardNote{display:grid;grid-template-rows:20px minmax(0,1fr) 12px;border:1px solid rgb(92 71 0 / 20%);border-radius:6px;box-shadow:0 8px 16px #0f172a29;cursor:move;overflow:hidden;touch-action:none;-webkit-user-select:none;user-select:none}.whiteboardNoteHandle{border-bottom:1px solid rgb(92 71 0 / 12%);background:#ffffff38;cursor:move;touch-action:none}.whiteboardNote.selected,.whiteboardEmoji.selected{outline:2px solid #2563eb;outline-offset:2px}.whiteboardNote textarea{min-width:0;width:100%;height:100%;border:0;padding:12px;color:#17202a;background:transparent;font:inherit;resize:none;outline:none;-webkit-user-select:text;user-select:text;touch-action:auto}.whiteboardResize{justify-self:end;align-self:end;width:18px;min-width:0;height:18px;border:0;border-radius:0;padding:0;background:linear-gradient(135deg,transparent 48%,#64748b 49%,#64748b 54%,transparent 55%),linear-gradient(135deg,transparent 63%,#64748b 64%,#64748b 69%,transparent 70%);cursor:nwse-resize;touch-action:none;-webkit-user-select:none;user-select:none}.whiteboardEmoji{display:grid;place-items:center;line-height:1;cursor:move;touch-action:none;-webkit-user-select:none;user-select:none}.whiteboardRemoteSelections{position:absolute;top:4px;left:4px;z-index:2;display:flex;flex-direction:row-reverse;pointer-events:none}.documentArchiveInput{display:none}.whiteboardRemoteSelections span{display:inline-grid;place-items:center;width:24px;height:24px;margin-left:-5px;border:2px solid #fff;border-radius:999px;color:#fff;font-size:12px;font-weight:700;box-shadow:0 1px 3px #0f172a2e}.whiteboardMinimap{position:absolute;right:14px;bottom:14px;width:132px;height:92px;border:1px solid #9aa8b8;border-radius:6px;padding:5px;background:#fff;box-shadow:0 8px 18px #0f172a29;touch-action:none;-webkit-user-select:none;user-select:none}.whiteboardMinimap svg{display:block;width:120px;height:80px}@media(max-width:820px){.collabShell{grid-template-columns:1fr;grid-template-areas:"left" "sync" "right"}.syncRail{position:static}.todoList{max-height:none}.richNotesPanel{grid-template-columns:1fr}.richNotesSidebar{border-right:0;border-bottom:1px solid #dce4ed}.richNotesList{max-height:220px}.peerShell,.wordsearchPeerDemo,.localFirstShell,.serverShell{grid-template-columns:1fr}.wordsearchPeerControls,.peerControls,.localFirstControls{position:static}.wordsearchPeerControls{align-items:stretch;flex-direction:column}.peerControlsBar{align-items:stretch}.peerConnectBar{max-width:none}.demoTopBar{position:static;align-items:stretch}.topBarGroup,.demoTopBar label,.documentManager,.documentManagerTrigger{width:100%}.topBarActions{justify-content:flex-start}.serverControls{position:static;flex-wrap:wrap}}@media(max-width:480px){.wordsearchPeerDemo{width:min(100%,calc(100vw - 12px));height:100vh;height:100dvh;min-height:0;padding:6px 0;gap:8px;grid-template-rows:auto minmax(0,1fr);align-items:stretch;overflow:hidden}.wordsearchPeerControls{gap:8px;padding:8px;flex-direction:row;flex-wrap:wrap}.wordsearchPeerControls .peerControls{width:100%}.peerControlsBar{gap:8px;align-items:center}.peerControlsBar .rolePicker{display:none}.peerControlsBar .mobileRoleSelect{display:block;flex:0 0 82px;min-width:0;height:34px;border:1px solid #9aa8b8;border-radius:6px;padding:0 24px 0 8px;color:#17202a;background:#fff}.peerStatusLight{flex:0 1 auto;min-width:78px;gap:7px}.copyInviteButton{flex:0 1 auto;min-width:0;padding:7px 9px;white-space:nowrap}.newGameButton{flex:1 1 auto;min-width:0;padding:7px 9px}.peerConnectBar{flex-basis:100%}.peerConnect{gap:6px}.peerConnect input{width:100%}.wordsearchPanel{width:100%;min-height:0;height:100%;margin:0 auto;padding:6px;gap:6px;grid-template-rows:auto minmax(0,auto) auto auto;align-content:start}.wordsearchHeader{gap:8px}.wordsearchHeader h1{font-size:17px;line-height:1.1}.wordsearchHeader p{margin-top:2px;font-size:11px;line-height:1.2}.wordsearchActions{gap:5px}.wordsearchActions button{padding:5px 7px;font-size:12px}.wordsearchBoard{width:min(100%,440px,48vh);width:min(100%,440px,48dvh);gap:3px}.wordsearchHighlight{height:calc(12.5% - 5px);min-height:0;border-width:2px;box-shadow:0 1px 6px color-mix(in srgb,var(--wordsearch-highlight-color) 18%,transparent)}.wordsearchCell{border-radius:5px;font-size:18px}.wordsearchBank{justify-content:center;gap:5px}.wordsearchWord{border-radius:5px;padding:4px 7px;font-size:11px;line-height:1.1}.wordsearchStatus,.wordsearchMissing{font-size:12px;line-height:1.2}.waitingPanel{min-height:0;padding:12px}.peerErrorPanel{gap:10px}.peerRecoveryActions{align-items:stretch}.peerRecoveryActions>button,.peerRecoveryActions .peerConnect{flex-basis:100%}}@media(max-width:340px){.wordsearchPeerDemo{width:min(100%,calc(100vw - 8px));padding:4px 0;gap:6px}.wordsearchPeerControls{padding:6px}.peerControlsBar{gap:6px}.peerControlsBar .mobileRoleSelect{flex-basis:76px;height:32px;padding-left:7px}.peerStatusLight{font-size:12px;min-width:70px}.copyInviteButton,.newGameButton{padding:6px 7px;font-size:13px}.wordsearchPanel{padding:4px;gap:5px}.wordsearchHeader h1{font-size:16px}.wordsearchActions button{padding:4px 6px}.wordsearchBoard{width:min(100%,440px,47vh);width:min(100%,440px,47dvh);gap:2px}.wordsearchCell{font-size:16px}.wordsearchBank{gap:4px}.wordsearchWord{padding:3px 6px;font-size:10px}}
