:root{--bg-primary: #ffffff;--bg-secondary: #f8fafc;--bg-tertiary: #f1f5f9;--bg-hover: #e2e8f0;--bg-active: #cbd5e1;--text-primary: #0f172a;--text-secondary: #475569;--text-muted: #94a3b8;--border-subtle: rgba(15, 23, 42, .08);--border-medium: rgba(15, 23, 42, .16);--border-focus: #1e96eb;--affine-primary: #1e96eb;--accent-primary: #1e96eb;--accent-hover: #1880ca;--accent-light: #f0f7ff;--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, .05);--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, .1), 0 2px 4px -2px rgba(0, 0, 0, .1);--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -4px rgba(0, 0, 0, .1);--shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, .1), 0 8px 10px -6px rgba(0, 0, 0, .1);--radius-sm: 4px;--radius-md: 8px;--radius-lg: 12px;--radius-full: 9999px;--font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;--transition-fast: .15s cubic-bezier(.4, 0, .2, 1);--transition-normal: .25s cubic-bezier(.4, 0, .2, 1)}@keyframes planora-ui-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){[data-testid$=-spinner]{animation:none!important}}*,*:before,*:after{box-sizing:border-box}html,body,#root{width:100%;height:100%;min-width:320px;min-height:100%;margin:0;overflow:hidden;overscroll-behavior:none}button,input,textarea,select{font:inherit}button,[role=button]{-webkit-tap-highlight-color:transparent}:where(button,input,textarea,select,[tabindex]):focus-visible{outline:3px solid var(--accent-primary, #2563eb);outline-offset:2px}@media(forced-colors:active){:where(button,input,textarea,select,[role=button],[role=option]):focus-visible{outline:2px solid CanvasText;outline-offset:2px}[aria-selected=true]{forced-color-adjust:none;outline:1px solid Highlight}}.workspace-shell{min-height:100dvh;overscroll-behavior:none}.workspace-content,.workspace-main{min-width:0;min-height:0;overscroll-behavior:none}.workspace-canvas{overscroll-behavior:none}.workspace-shell{height:100dvh!important;max-height:100dvh!important}.shared-browser-notice{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:9px 16px;color:#713f12;background:#fffbeb;border-bottom:1px solid #fde68a;font-size:13px}.shared-browser-notice p{margin:0}.shared-browser-notice button{flex:0 0 auto;padding:4px 8px;color:inherit;background:transparent;border:1px solid #d6a84f;border-radius:5px;cursor:pointer}.canvas-transform-layer{min-width:100%;min-height:100%}.canvas-toolbar-shell{max-width:calc(100% - 16px);z-index:300!important}.canvas-toolbar{max-width:100%;overflow-x:auto;scrollbar-width:none;-ms-overflow-style:none;touch-action:pan-x;scroll-behavior:smooth}.canvas-toolbar::-webkit-scrollbar{display:none}.canvas-toolbar>*{flex:0 0 auto}.shared-access-page>article,.shared-access-page>div,.shared-access-page>aside{min-width:0}.shared-access-notice{overflow-wrap:anywhere}.shared-canvas-content{max-width:100%;touch-action:pan-x pan-y}@media(max-width:1023px){.shared-browser-notice{align-items:flex-start;padding:8px 12px;font-size:12px}.document-editor{padding:40px 20px!important}.document-content:not(.document-content-full){max-width:740px}.ai-assistant-drawer{width:min(520px,44vw)!important}}@media(max-width:600px){.shared-access-page{padding-top:max(16px,env(safe-area-inset-top))!important;padding-right:max(12px,env(safe-area-inset-right))!important;padding-bottom:max(20px,env(safe-area-inset-bottom))!important;padding-left:max(12px,env(safe-area-inset-left))!important}.shared-access-page>form{padding:18px!important}.shared-access-page{font-size:14px;line-height:1.5}.shared-access-error{padding:18px!important}.shared-access-error h1{margin:0 0 8px;font-size:clamp(20px,6vw,24px);line-height:1.25}.shared-access-error p{margin:0;font-size:14px;line-height:1.55;overflow-wrap:anywhere}.shared-access-page>form h1{font-size:20px!important;line-height:1.25}.shared-access-page>form p{font-size:14px!important;line-height:1.55}.shared-access-notice{display:flex;flex-direction:column;align-items:flex-start;gap:10px}.shared-access-notice button{margin-left:0!important}.shared-canvas-content{height:min(68dvh,620px)!important;padding:12px!important}.shared-canvas-preview>div:first-child h1{font-size:clamp(22px,7vw,28px)!important;line-height:1.2}.shared-document-content h1{width:100%!important;margin-left:0!important;font-size:clamp(23px,7vw,29px)!important;line-height:1.2!important}.shared-document-block textarea{font-size:14px!important;line-height:1.55!important}.shared-document-block[data-block-type=heading1] textarea{font-size:clamp(21px,6vw,25px)!important}.shared-document-block[data-block-type=heading2] textarea{font-size:clamp(18px,5vw,21px)!important}.shared-document-block[data-block-type=heading3] textarea{font-size:clamp(16px,4.5vw,18px)!important}.shared-document-content-full{width:100%!important;max-width:100%!important}.shared-document-content>[data-testid=shared-access-role]{margin-left:0!important}.shared-document-block{width:calc(100% - 12px)!important;margin-left:calc(12px + var(--shared-block-depth, 0px))!important}}.editor-controls{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;flex-shrink:0;min-height:56px;min-width:0;gap:8px;padding:12px 16px}.editor-controls-leading{display:flex;align-items:center;flex:1 1 120px;min-width:0;gap:6px}.editor-location-title{display:block;flex:1;min-width:0;overflow:hidden}.editor-controls-actions{display:flex;align-items:center;flex-shrink:0;gap:8px}.editor-controls-actions>div{display:flex;align-items:center}.workspace-sidebar-rail{display:flex;flex-direction:column;align-items:center;flex:0 0 40px;width:40px;padding-top:8px;height:100%;background:var(--bg-secondary, #f8fafc);border-right:1px solid var(--border-subtle, #e2e8f0)}.sidebar-expand-control{display:none!important}@media(max-width:1023px){.workspace-sidebar-rail{display:none!important}.sidebar-expand-control{display:inline-flex!important}}@media(max-width:767px){.editor-controls{padding:8px!important;gap:6px}.editor-controls-leading{gap:6px}.editor-controls-context{display:none}.editor-controls-actions{gap:2px}.editor-controls-actions>[data-testid=save-status]{display:none}.workspace-content{height:100dvh!important}.workspace-sidebar{position:fixed;inset:0 auto 0 0;z-index:200;width:min(88vw,320px)!important;max-width:320px;box-shadow:var(--shadow-xl)}.workspace-main{width:100%}.ai-assistant-drawer{position:fixed;inset:0 0 0 auto;z-index:210;width:min(100vw,360px)!important;max-width:100%}.document-editor{padding:28px 12px!important;align-items:stretch!important}.document-content{max-width:none!important}.document-content-full,.shared-document-content-full{width:90%!important;max-width:90%!important}.document-title{margin-left:0!important;width:100%!important;font-size:28px!important;line-height:1.2}.document-add-block{margin-left:0!important;min-height:44px}.canvas-toolbar-shell{bottom:max(12px,env(safe-area-inset-bottom,12px))!important;max-width:calc(100% - 16px)!important}.canvas-toolbar{padding:3px!important;gap:1px!important}.canvas-toolbar button{width:36px!important;height:36px!important;flex-shrink:0!important}.canvas-toolbar [data-testid=canvas-linked-popover-toggle]{padding:0 6px!important}.canvas-toolbar .linked-toggle-label{display:none!important}.canvas-zoom-controls{top:8px!important;right:8px!important}.canvas-zoom-controls button{min-width:40px;min-height:40px}.canvas-transform-layer{touch-action:none}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important}}.pen-custom-color-input{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none!important;outline:none!important;border-radius:50%!important;width:20px!important;height:20px!important;min-height:20px!important;padding:0!important;cursor:pointer;background:conic-gradient(from 0deg,red,orange,#ff0,green,#00f,indigo,violet,red)!important;box-sizing:border-box}.pen-custom-color-input::-webkit-color-swatch-wrapper{padding:0!important;border-radius:50%!important}.pen-custom-color-input::-webkit-color-swatch{border:none!important;border-radius:50%!important;background:conic-gradient(from 0deg,red,orange,#ff0,green,#00f,indigo,violet,red)!important}.pen-custom-color-input::-moz-color-swatch{border:none!important;border-radius:50%!important;background:conic-gradient(from 0deg,red,orange,#ff0,green,#00f,indigo,violet,red)!important}.context-color-custom-input::-webkit-color-swatch-wrapper{padding:0!important}.context-color-custom-input::-webkit-color-swatch{border:0!important;background:transparent!important}.context-color-custom-input::-moz-color-swatch{border:0!important;background:transparent!important}@keyframes document-checklist-item-move{0%{opacity:.72;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}.document-checklist-item-moving{animation:document-checklist-item-move .28s ease-out}@media(prefers-reduced-motion:reduce){.document-checklist-item-moving{animation:none}}
