:root{color-scheme:light;font-family:Microsoft YaHei,微软雅黑,PingFang SC,system-ui,sans-serif;--primary: #2f6bff;--primary-hover: #2458d8;--primary-soft: #eaf0ff;--text: #172033;--text-secondary: #5d687a;--text-muted: #7b8799;--surface: #fff;--surface-subtle: #f5f7fa;--surface-hover: #f0f3f8;--border: #e3e7ee;--border-strong: #d4dae4;--success: #168a5b;--success-soft: #e8f6f0;--warning-soft: #fff3dd;--danger: #c83a4a;--danger-soft: #fdecef;--purple: #7c5cfc;--shadow-sm: 0 1px 2px rgb(23 32 51 / .05);--shadow-md: 0 12px 32px rgb(23 32 51 / .12);--radius-sm: 8px;--radius-md: 12px;--radius-lg: 16px;color:var(--text);background:var(--surface-subtle)}*{box-sizing:border-box}html{min-width:320px;min-height:100%;scroll-behavior:smooth}body{min-width:320px;min-height:100vh;margin:0;background:var(--surface-subtle);color:var(--text);font-size:14px;line-height:1.55;text-rendering:optimizeLegibility}body.modal-open{overflow:hidden}button,input,textarea,select{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{color:inherit}a{color:inherit;text-decoration:none}button:not(:disabled),a,select{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.48}:focus-visible{outline:3px solid rgb(47 107 255 / .28);outline-offset:2px}::selection{background:#cddcff;color:#102456}.skip-link{position:fixed;z-index:2000;top:8px;left:8px;padding:10px 14px;border-radius:8px;background:var(--text);color:#fff;transform:translateY(-150%)}.skip-link:focus{transform:translateY(0)}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;border:0;margin:-1px;clip:rect(0,0,0,0);white-space:nowrap}.eyebrow{margin:0 0 8px;color:var(--primary);font-size:12px;font-weight:700;letter-spacing:.12em;text-transform:uppercase}.button,.icon-button,.text-button,.text-link{border:0;background:transparent}.button{min-height:40px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:9px 16px;border:1px solid transparent;border-radius:var(--radius-sm);font-weight:650;transition:background-color .18s ease,border-color .18s ease,color .18s ease}.button-primary{background:var(--primary);color:#fff;box-shadow:var(--shadow-sm)}.button-primary:hover:not(:disabled){background:var(--primary-hover)}.button-secondary{border-color:var(--border-strong);background:var(--surface)}.button-secondary:hover:not(:disabled),.button-ghost:hover:not(:disabled){background:var(--surface-hover)}.button-danger{background:var(--danger);color:#fff}.button-danger:hover:not(:disabled){background:#a92f3e}.button-ghost{color:var(--text-secondary)}.button-small{min-height:36px;padding:7px 14px}.icon-button{width:40px;height:40px;display:inline-grid;flex:0 0 40px;place-items:center;border-radius:var(--radius-sm);color:var(--text-secondary);transition:background-color .18s ease,color .18s ease}.icon-button:hover{background:var(--surface-hover);color:var(--text)}.text-button,.text-link{display:inline-flex;align-items:center;gap:5px;padding:4px;color:var(--primary);font-size:13px;font-weight:650}.text-button:hover,.text-link:hover{color:var(--primary-hover);text-decoration:underline;text-underline-offset:3px}.text-danger{color:var(--danger)}.text-danger:hover{color:#a92f3e}.form-field{display:grid;gap:7px}.form-field label,.color-field legend{color:var(--text);font-size:13px;font-weight:650}.form-field input,.form-field textarea,.form-field select,.table-search input{width:100%;min-height:44px;border:1px solid var(--border-strong);border-radius:var(--radius-sm);background:var(--surface);color:var(--text);padding:10px 12px;transition:border-color .18s ease,box-shadow .18s ease}.form-field textarea{resize:vertical}.form-field input:hover,.form-field textarea:hover,.form-field select:hover{border-color:#b8c1d0}.form-field input:focus,.form-field textarea:focus,.form-field select:focus,.table-search input:focus{border-color:var(--primary);box-shadow:0 0 0 3px #2f6bff1f;outline:0}.form-field small{color:var(--text-muted)}.form-error{padding:10px 12px;border:1px solid #f2bdc5;border-radius:8px;margin:0;background:var(--danger-soft);color:#9d2635}.form-success{padding:10px 12px;border:1px solid #b8dfcb;border-radius:8px;margin:0;background:var(--success-soft);color:#0c754a}.label-row{display:flex;align-items:center;justify-content:space-between}.status-badge,.visibility-pill{display:inline-flex;width:max-content;align-items:center;justify-content:center;padding:3px 8px;border-radius:999px;font-size:12px;font-weight:650;white-space:nowrap}.status-published{background:var(--success-soft);color:#0c754a}.status-draft{background:var(--warning-soft);color:#8c570a}.visibility-pill{background:var(--surface-hover);color:var(--text-secondary)}.page{min-height:100vh;padding:36px clamp(24px,4vw,56px) 64px}.page-header{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin:0 auto 28px;max-width:1280px}.page-header h1{margin:0;font-size:clamp(26px,3vw,34px);line-height:1.25;letter-spacing:-.025em}.page-header p:not(.eyebrow){margin:8px 0 0;color:var(--text-secondary);font-size:15px}.page-skeleton,.editor-skeleton{min-height:420px;border-radius:12px;background:linear-gradient(100deg,#edf0f5 25%,#f8f9fb,#edf0f5 65%);background-size:200% 100%;animation:shimmer 1.2s infinite}.login-page{display:grid;min-height:100dvh;grid-template-columns:minmax(420px,1.02fr) minmax(440px,.98fr);background:#fff}.login-intro{min-height:100dvh;display:flex;flex-direction:column;overflow:hidden;padding:36px clamp(36px,6vw,88px);background:radial-gradient(circle at 15% 85%,rgb(77 124 255 / .26),transparent 30%),radial-gradient(circle at 85% 10%,rgb(124 92 252 / .24),transparent 28%),#12224a;color:#fff}.login-brand,.brand{display:inline-flex;align-items:center;gap:10px;font-weight:750;letter-spacing:-.01em}.login-brand{font-size:18px}.brand-mark{width:36px;height:36px;display:inline-grid;flex:0 0 36px;place-items:center;border-radius:10px;overflow:hidden}.brand-logo{display:block;width:100%;height:100%;object-fit:contain}.brand-mark-large{width:42px;height:42px}.login-intro-content{width:min(620px,100%);margin:auto 0}.login-intro .eyebrow{color:#a9c0ff}.login-intro h1{margin:0;font-size:clamp(38px,4.4vw,62px);line-height:1.13;letter-spacing:-.04em}.login-intro-content>p:not(.eyebrow){max-width:570px;margin:24px 0 0;color:#c8d3ed;font-size:17px;line-height:1.8}.login-benefits{display:grid;gap:14px;padding:0;margin:36px 0 0;list-style:none}.login-benefits li,.login-trust{display:flex;align-items:center;gap:10px}.login-benefits li{color:#eef3ff;font-weight:550}.login-benefits svg{color:#8fb0ff}.login-trust{color:#aebbd7;font-size:13px}.login-form-side{display:grid;min-height:100dvh;place-items:center;padding:40px}.login-card{width:min(420px,100%)}.login-card-head{margin-bottom:32px}.login-card-head h2{margin:0;font-size:30px;letter-spacing:-.025em}.login-card-head>p:last-child{margin:8px 0 0;color:var(--text-secondary)}.login-card .form-field+.form-field{margin-top:20px}.password-field{position:relative}.password-field input{padding-right:48px}.password-field .icon-button{position:absolute;top:2px;right:2px}.login-card .form-error,.login-card .form-success{margin-top:16px}.login-submit{width:100%;min-height:46px;margin-top:24px}.login-card .text-button:disabled{color:var(--text-muted);cursor:not-allowed;text-decoration:none}.reset-password-card .login-card-head{margin-top:24px}.reset-password-card .login-card-head strong{overflow-wrap:anywhere}.reset-password-card .form-field+.form-field{margin-top:18px}.login-back-button{min-height:44px;margin:-8px 0 0 -4px}.login-action-icon{width:46px;height:46px;display:inline-grid;place-items:center;border-radius:12px;margin-bottom:18px;background:var(--primary-soft);color:var(--primary)}.verification-code-input{font-size:20px!important;font-weight:700;letter-spacing:.28em;font-variant-numeric:tabular-nums}.dev-hint{margin:16px 0 0;color:var(--text-muted);font-size:12px;text-align:center}.login-footer{position:absolute;align-self:end;margin:0 0 -12px;color:var(--text-muted);font-size:12px}.app-shell{min-height:100dvh;padding-left:240px}.app-shell.is-editor-mode{height:100dvh;min-height:0;overflow:hidden;padding-left:0}.app-shell.is-editor-mode .app-main{height:100%;min-height:0;overflow:hidden}.global-sidebar{position:fixed;z-index:100;inset:0 auto 0 0;width:240px;display:flex;flex-direction:column;border-right:1px solid var(--border);background:#fbfcfe;padding:16px 12px 12px}.brand-row{height:44px;display:flex;align-items:center;justify-content:space-between;padding:0 4px}.brand-row .brand-mark{width:32px;height:32px;flex-basis:32px;border-radius:9px}.sidebar-close{display:none}.sidebar-user-meta,.search-result span,.user-cell>span:last-child{min-width:0;display:grid}.sidebar-user strong,.sidebar-user small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sidebar-user small{color:var(--text-muted);font-size:11px}.user-avatar{display:inline-grid;place-items:center;border-radius:9px;background:#24365f;color:#fff;font-weight:700}.sidebar-create{width:100%;margin-top:16px}.sidebar-search,.table-search{display:flex;align-items:center;color:var(--text-muted)}.sidebar-search{position:relative;min-height:40px;gap:7px;border:1px solid var(--border);border-radius:8px;margin:12px 0;background:#fff;padding:0 9px}.sidebar-search:focus-within{border-color:var(--primary);box-shadow:0 0 0 3px #2f6bff1a}.sidebar-search input{min-width:0;flex:1;border:0;outline:0;background:transparent}.sidebar-search kbd{border:1px solid var(--border);border-radius:4px;background:var(--surface-subtle);padding:1px 4px;color:var(--text-muted);font:10px inherit}.search-popover{position:absolute;z-index:130;top:166px;left:12px;width:360px;max-height:420px;overflow:auto;border:1px solid var(--border);border-radius:12px;background:#fff;box-shadow:var(--shadow-md);padding:8px}.search-popover-head{display:flex;align-items:center;justify-content:space-between;padding:6px 8px 9px;color:var(--text-muted);font-size:12px}.search-result{width:100%;display:grid;grid-template-columns:20px 1fr;gap:8px;border:0;border-radius:8px;background:transparent;padding:9px;text-align:left}.search-result:hover{background:var(--surface-hover)}.search-result strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.search-result small{color:var(--text-muted)}.search-empty{margin:24px 0;color:var(--text-muted);text-align:center}.sidebar-nav,.knowledge-nav{display:grid;gap:2px}.sidebar-nav a,.knowledge-nav a{min-height:38px;display:flex;align-items:center;gap:10px;border-radius:8px;padding:7px 10px;color:var(--text-secondary);font-weight:550}.sidebar-nav a:hover,.knowledge-nav a:hover{background:var(--surface-hover);color:var(--text)}.sidebar-nav a.is-active,.knowledge-nav a.router-link-active{background:var(--primary-soft);color:#2455c5;font-weight:700}.sidebar-section{min-height:0;flex:1;overflow-y:auto;margin-top:14px}.sidebar-section-title{display:flex;align-items:center;justify-content:space-between;padding:6px 10px;color:var(--text-muted);font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase}.knowledge-nav a span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.knowledge-dot{width:9px;height:9px;flex:0 0 9px;border-radius:3px}.admin-nav{border-top:1px solid var(--border);margin-top:10px;padding-top:10px}.sidebar-user{display:grid;grid-template-columns:36px minmax(0,1fr) 40px;align-items:center;gap:9px;border-top:1px solid var(--border);margin-top:10px;padding-top:12px}.user-avatar{width:36px;height:36px}.mobile-menu-button,.sidebar-scrim{display:none}.app-main{min-width:0;min-height:100dvh}.dashboard-header{align-items:flex-end}.dashboard-header h1{font-size:clamp(30px,3.5vw,42px)}.stats-grid,.dashboard-section,.onboarding-banner,.admin-summary,.knowledge-toolbar,.document-table,.user-table{max-width:1280px;margin-right:auto;margin-left:auto}.stats-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.stat-card{min-height:106px;display:grid;grid-template-columns:42px 1fr auto;align-items:center;gap:14px;border:1px solid var(--border);border-radius:12px;background:#fff;box-shadow:var(--shadow-sm);padding:18px}.stat-icon{width:42px;height:42px;display:inline-grid;place-items:center;border-radius:11px}.stat-icon-blue{background:var(--primary-soft);color:var(--primary)}.stat-icon-purple{background:#f0ecff;color:var(--purple)}.stat-icon-green{background:var(--success-soft);color:var(--success)}.stat-card>span:nth-child(2),.admin-summary span{display:grid}.stat-card small,.admin-summary small{color:var(--text-muted);font-weight:550}.stat-card strong{margin-top:2px;font-size:25px}.stat-note{color:var(--text-muted);font-size:12px}.dashboard-section{margin-top:36px}.section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:16px}.section-heading h2{margin:0;font-size:20px}.section-heading p{margin:4px 0 0;color:var(--text-muted)}.knowledge-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.knowledge-card{min-height:210px;display:flex;flex-direction:column;border:1px solid var(--border);border-radius:12px;background:#fff;box-shadow:var(--shadow-sm);padding:20px;text-align:left;transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease}.knowledge-card:hover{border-color:#cad2df;box-shadow:0 10px 26px #17203314;transform:translateY(-2px)}.knowledge-card-top{display:flex;align-items:center;justify-content:space-between}.knowledge-icon{width:44px;height:44px;display:inline-grid;place-items:center;border-radius:11px;background:var(--surface-hover);color:var(--text-secondary)}.knowledge-card h3{margin:16px 0 5px;font-size:17px}.knowledge-card>p{display:-webkit-box;overflow:hidden;margin:0;color:var(--text-secondary);-webkit-box-orient:vertical;-webkit-line-clamp:2}.knowledge-card-footer{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--border);margin-top:auto;padding-top:14px;color:var(--text-muted);font-size:12px}.knowledge-card-new{align-items:center;justify-content:center;border-style:dashed;color:var(--text-secondary);text-align:center}.knowledge-card-new strong{margin-top:12px;color:var(--text)}.knowledge-card-new>span:last-child{max-width:230px;margin-top:5px;color:var(--text-muted)}.recent-list{overflow:hidden;border:1px solid var(--border);border-radius:12px;background:#fff;box-shadow:var(--shadow-sm)}.recent-row{min-height:66px;display:grid;grid-template-columns:34px minmax(180px,1fr) auto minmax(180px,auto) 20px;align-items:center;gap:12px;padding:10px 16px}.recent-row+.recent-row{border-top:1px solid var(--border)}.recent-row:hover{background:#fafbfc}.recent-icon{width:34px;height:34px;display:grid;place-items:center;border-radius:8px;background:var(--surface-hover)}.recent-main{min-width:0;display:grid}.recent-main strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.recent-main small,.recent-meta{color:var(--text-muted);font-size:12px}.onboarding-banner{display:flex;align-items:center;gap:14px;border:1px solid #ccd9ff;border-radius:12px;margin-top:24px;background:#f2f6ff;padding:16px 18px}.onboarding-banner div{min-width:0;flex:1}.onboarding-banner p{margin:2px 0 0;color:var(--text-secondary)}.onboarding-banner code{border:1px solid #ced8f2;border-radius:6px;background:#fff;padding:6px 9px;color:#29467f;font-size:12px}.modal-layer{position:fixed;z-index:1000;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;overflow-y:auto;background:#0c142680;padding:24px}.modal-panel{width:min(520px,100%);border:1px solid var(--border);border-radius:16px;background:#fff;box-shadow:var(--shadow-md)}.modal-header{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;border-bottom:1px solid var(--border);padding:20px 22px 16px}.modal-header h2{margin:0;font-size:20px}.modal-header p{margin:5px 0 0;color:var(--text-secondary)}.modal-body{padding:20px 22px 22px}.modal-form{display:grid;gap:18px}.modal-actions{display:flex;justify-content:flex-end;gap:10px;border-top:1px solid var(--border);margin:2px -22px -22px;padding:16px 22px}.share-dialog{display:grid;gap:16px}.share-loading{min-height:140px;display:flex;align-items:center;justify-content:center;gap:9px;color:var(--text-muted)}.share-link-field{display:grid;gap:7px}.share-link-field>span{font-size:13px;font-weight:650}.share-link-field input{width:100%;min-height:44px;border:1px solid var(--border-strong);border-radius:var(--radius-sm);background:var(--surface-subtle);padding:10px 12px;color:var(--text-secondary)}.share-link-field input:focus{border-color:var(--primary);box-shadow:0 0 0 3px #2f6bff1f;outline:0}.share-live-note{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:start;gap:10px;border:1px solid #cde9dc;border-radius:var(--radius-sm);background:var(--success-soft);padding:12px;color:#0c754a}.share-live-note p{display:grid;gap:3px;margin:0}.share-live-note span{color:#356c56;font-size:12px;line-height:1.55}.share-created-at{margin:-6px 0 0;color:var(--text-muted);font-size:12px}.share-link-actions{display:flex;align-items:center;justify-content:space-between;gap:16px}.share-empty{min-height:150px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;color:var(--text-muted);text-align:center}.share-empty strong{color:var(--text)}.share-empty p{max-width:360px;margin:0;color:var(--text-secondary);line-height:1.6}.reset-share-warning{display:grid;grid-template-columns:auto minmax(0,1fr);gap:10px;border:1px solid #f2bdc5;border-radius:var(--radius-sm);background:var(--danger-soft);padding:12px;color:#9d2635}.reset-share-warning p{margin:0;line-height:1.6}.color-field{padding:0;border:0;margin:0}.color-options{display:flex;gap:10px;margin-top:9px}.color-options label{cursor:pointer}.color-options input{position:absolute;opacity:0}.color-options span{width:30px;height:30px;display:block;border:3px solid #fff;border-radius:50%;box-shadow:0 0 0 1px var(--border-strong)}.color-options input:checked+span{box-shadow:0 0 0 2px var(--text)}.knowledge-title{display:flex;gap:16px}.knowledge-icon-large{width:56px;height:56px;flex:0 0 56px;border-radius:14px}.breadcrumb{display:flex;align-items:center;gap:6px;margin-bottom:6px;color:var(--text-muted);font-size:12px}.breadcrumb a:hover{color:var(--primary)}.knowledge-toolbar{min-height:58px;display:flex;align-items:center;justify-content:space-between;gap:16px;border:1px solid var(--border);border-bottom:0;border-radius:12px 12px 0 0;background:#fff;padding:8px 12px;color:var(--text-muted)}.table-search{position:relative;width:min(360px,100%)}.table-search svg{position:absolute;left:11px;pointer-events:none}.table-search input{min-height:38px;padding:8px 12px 8px 36px}.document-table,.user-table{overflow:hidden;border:1px solid var(--border);border-radius:0 0 12px 12px;background:#fff}.document-table-head,.document-table-row{display:grid;grid-template-columns:minmax(260px,1fr) 90px 130px 110px 20px;align-items:center;gap:16px;padding:0 18px}.document-table-head,.user-table-head{min-height:42px;background:#fafbfc;color:var(--text-muted);font-size:12px;font-weight:650}.document-table-row{width:100%;min-height:62px;border:0;border-top:1px solid var(--border);background:#fff;color:var(--text-secondary);text-align:left}.document-table-row:hover{background:#fafbfc}.document-title-cell{min-width:0;display:flex;align-items:center;gap:10px;color:var(--text)}.document-title-cell svg{flex:0 0 auto;color:var(--text-muted)}.document-title-cell strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.empty-state{display:grid;justify-items:center;padding:64px 24px;color:var(--text-muted);text-align:center}.empty-state h2{margin:14px 0 2px;color:var(--text);font-size:18px}.empty-state p{margin:0 0 18px}.admin-summary{display:grid;grid-template-columns:repeat(2,minmax(220px,300px));gap:16px;margin-bottom:24px}.admin-summary>div{min-height:82px;display:flex;align-items:center;gap:14px;border:1px solid var(--border);border-radius:12px;background:#fff;padding:16px 18px}.admin-summary svg{color:var(--primary)}.admin-summary strong{font-size:22px}.user-table-head,.user-table-row{display:grid;grid-template-columns:minmax(280px,1fr) 140px 110px 130px;align-items:center;gap:16px;padding:0 18px}.user-table-row{min-height:66px;border-top:1px solid var(--border);color:var(--text-secondary)}.user-cell{display:flex;align-items:center;gap:11px;color:var(--text)}.user-cell small{color:var(--text-muted)}.public-document-page{min-height:100dvh;background:#fff}.public-document-header{position:sticky;z-index:20;top:0;border-bottom:1px solid var(--border);background:#fffffff0;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.public-document-header-inner{width:min(1040px,calc(100% - 40px));min-height:64px;display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 auto}.public-document-brand{min-height:44px;display:inline-flex;align-items:center;gap:10px;border-radius:var(--radius-sm);padding:4px 8px 4px 4px;font-weight:750}.public-document-brand:hover{background:var(--surface-hover)}.public-document-brand img{display:block;border-radius:10px;object-fit:contain}.public-document-article{width:min(820px,calc(100% - 48px));margin:0 auto;padding:68px 0 120px}.public-document-article>header>h1{margin:0;color:var(--text);font-size:clamp(34px,5vw,48px);letter-spacing:-.035em;line-height:1.2;overflow-wrap:anywhere}.public-document-meta{margin:16px 0 0;color:var(--text-muted);font-size:13px}.public-document-prose{min-height:0;border-top:1px solid var(--border);margin-top:36px;padding-top:28px}.public-document-prose .ProseMirror{outline:0}.public-document-state{min-height:calc(100dvh - 65px);display:flex;align-items:center;justify-content:center;gap:10px;padding:40px 24px;color:var(--text-muted);text-align:center}.public-document-error{flex-direction:column}.public-document-error h1{margin:4px 0 0;color:var(--text);font-size:24px}.public-document-error p{max-width:460px;margin:0 0 12px;color:var(--text-secondary)}.public-refresh-error{border:1px solid #ead7a9;border-radius:var(--radius-sm);margin:20px 0 0;background:var(--warning-soft);padding:9px 11px;color:#744b0b;font-size:12px}.editor-page{width:100%;height:100%;min-height:0;display:grid;grid-template-columns:260px minmax(500px,1fr) 220px;overflow:hidden;background:#fff}.document-tree,.outline-panel{min-width:0;background:#fafbfc}.document-tree{position:relative;z-index:60;display:flex;flex-direction:column;overflow:visible;border-right:1px solid var(--border);transition:width .18s ease}.outline-panel{overflow:hidden}.document-tree.is-collapsed{width:48px}.tree-header,.outline-panel header{min-height:52px;display:flex;align-items:center;justify-content:space-between;gap:6px;border-bottom:1px solid var(--border);padding:6px 8px 6px 12px}.tree-header{gap:8px;padding-top:3px;padding-bottom:3px}.tree-header>.icon-button{width:44px;height:44px;flex-basis:44px}.tree-header-main{min-width:0;display:flex;flex:1;align-items:center;gap:8px}.editor-home-logo{width:44px;height:44px;display:inline-grid;flex:0 0 44px;place-items:center;border-radius:var(--radius-sm);transition:background-color .18s ease}.editor-home-logo:hover{background:var(--surface-hover)}.editor-home-logo:active{background:var(--primary-soft)}.editor-home-logo img{width:32px;height:32px;display:block;object-fit:contain}.tree-base-title{min-width:0;min-height:44px;display:flex;flex:1;align-items:center;gap:8px;border:0;border-radius:7px;background:transparent;padding:8px 6px;font-weight:700;text-align:left}.tree-base-title:hover{background:var(--surface-hover)}.tree-base-title span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tree-new{min-height:36px;display:flex;align-items:center;gap:7px;border:1px solid var(--border);border-radius:8px;margin:10px;background:#fff;padding:7px 10px;color:var(--text-secondary);font-weight:600}.tree-new:hover{border-color:var(--border-strong);color:var(--primary)}.tree-list{min-height:0;flex:1;overflow-y:auto;padding:0 8px 16px}.tree-item{width:100%;min-height:36px;display:flex;align-items:center;gap:6px;overflow:hidden;border:0;border-radius:7px;background:transparent;color:var(--text-secondary);padding-top:6px;padding-right:8px;padding-bottom:6px;text-align:left}.tree-item:hover{background:var(--surface-hover);color:var(--text)}.tree-item.is-active{background:var(--primary-soft);color:#234ea9;font-weight:650}.tree-item svg{flex:0 0 auto}.tree-item span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tree-expand{margin:6px auto}.editor-workspace{min-width:0;min-height:0;display:flex;flex-direction:column;overflow:hidden;background:#fff;container:editor-workspace / inline-size}.editor-topbar{min-height:52px;display:flex;align-items:center;justify-content:space-between;gap:14px;border-bottom:1px solid var(--border);padding:6px 12px 6px 16px}.editor-breadcrumb{min-width:0;display:flex;align-items:center;gap:6px;color:var(--text-muted);font-size:12px}.editor-breadcrumb button{border:0;background:transparent;color:var(--text-secondary)}.editor-breadcrumb span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.editor-actions{display:flex;align-items:center;gap:4px}.export-menu{position:relative;z-index:85}.export-menu>summary{cursor:pointer;list-style:none;white-space:nowrap}.export-menu>summary::-webkit-details-marker{display:none}.export-menu[open]>summary{border-color:#c8d7ff;background:var(--primary-soft);color:var(--primary)}.export-menu-panel{position:absolute;z-index:90;top:calc(100% + 6px);right:0;width:220px;display:grid;gap:2px;border:1px solid var(--border);border-radius:9px;background:#fff;box-shadow:var(--shadow-md);padding:5px}.export-menu-panel button{min-height:38px;display:flex;align-items:center;justify-content:space-between;gap:12px;border:0;border-radius:6px;background:transparent;padding:7px 10px;color:var(--text-secondary);text-align:left;font-size:13px;font-weight:600}.export-menu-panel button:hover{background:var(--surface-hover);color:var(--text)}.export-menu-panel small{color:var(--text-muted);font-size:11px;font-weight:500}.save-indicator{min-width:100px;display:inline-flex;align-items:center;justify-content:flex-end;gap:5px;margin-right:6px;color:var(--text-muted);font-size:12px;white-space:nowrap}.save-error{color:var(--danger)}.editor-toolbar{min-height:46px;display:flex;align-items:center;gap:3px;overflow-x:auto;border-bottom:1px solid var(--border);padding:5px 16px;background:#fff}.editor-toolbar button{min-width:34px;height:34px;display:inline-grid;place-items:center;flex:0 0 34px;border:0;border-radius:6px;background:transparent;color:var(--text-secondary);font-size:12px;font-weight:700}.editor-toolbar button:hover:not(:disabled){background:var(--surface-hover);color:var(--text)}.editor-toolbar button.is-active{background:var(--primary-soft);color:var(--primary)}.toolbar-divider{width:1px;height:22px;flex:0 0 1px;margin:0 4px;background:var(--border)}.editor-scroll{min-width:0;min-height:0;flex:1 1 0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scroll-padding-top:24px;scrollbar-gutter:stable;-webkit-overflow-scrolling:touch}.editor-canvas{width:min(860px,calc(100% - 64px));min-height:calc(100dvh - 98px);margin:0 auto;padding:56px 24px 160px}.editor-title{width:100%;border:0;background:transparent;color:var(--text);font-size:clamp(30px,4vw,42px);font-weight:750;letter-spacing:-.035em;line-height:1.2;outline:0}.editor-title::placeholder{color:#b0b8c5}.prose-editor{min-height:480px;color:#263146;font-family:Microsoft YaHei,微软雅黑,PingFang SC,system-ui,sans-serif;font-size:16px;line-height:1.85;outline:0}.prose-editor>*:first-child{margin-top:0}.prose-editor h1,.prose-editor h2,.prose-editor h3,.prose-editor h4,.prose-editor h5,.prose-editor h6{scroll-margin-top:24px;color:var(--text);font-family:Microsoft YaHei,微软雅黑,PingFang SC,system-ui,sans-serif;letter-spacing:-.02em;line-height:1.35}.prose-editor h1{margin:1.6em 0 .6em;font-size:30px}.prose-editor h2{margin:1.5em 0 .55em;font-size:24px}.prose-editor h3{margin:1.4em 0 .5em;font-size:19px}.prose-editor p{margin:.85em 0}.prose-editor ul,.prose-editor ol{padding-left:1.6em}.prose-editor blockquote{border-left:3px solid var(--primary);margin:1.2em 0;background:#f7f9ff;padding:10px 16px;color:var(--text-secondary)}.prose-editor pre{overflow-x:auto;border-radius:10px;background:#182033;padding:16px;color:#edf2ff;font-size:14px;line-height:1.7}.prose-editor code{border-radius:4px;background:#eff2f6;padding:2px 5px;color:#b02c45;font-family:SFMono-Regular,Consolas,monospace;font-size:.9em}.prose-editor pre code{background:transparent;padding:0;color:inherit}.prose-editor a{color:var(--primary);text-decoration:underline;text-underline-offset:3px}.prose-editor img{max-width:100%;height:auto;display:block;border-radius:8px;margin:1.25em auto}.prose-editor .is-editor-empty:first-child:before{height:0;float:left;color:#a7b0bf;content:attr(data-placeholder);pointer-events:none}.editor-save-error{border-top:1px solid var(--border);margin-top:48px;padding-top:16px;color:var(--danger)}.outline-panel{border-left:1px solid var(--border)}.outline-panel header{color:var(--text-secondary);font-weight:650}.outline-panel nav{display:grid;padding:10px 8px}.outline-panel nav button{min-height:34px;overflow:hidden;border:0;border-radius:6px;background:transparent;color:var(--text-secondary);text-align:left;text-overflow:ellipsis;white-space:nowrap}.outline-panel nav button:hover{background:var(--surface-hover);color:var(--text)}.outline-panel nav p{padding:8px 12px;color:var(--text-muted);font-size:12px}.mobile-tree-button{display:none}.spin{animation:spin .8s linear infinite}.modal-enter-active,.modal-leave-active{transition:opacity .18s ease}.modal-enter-active .modal-panel,.modal-leave-active .modal-panel{transition:transform .18s ease,opacity .18s ease}.modal-enter-from,.modal-leave-to{opacity:0}.modal-enter-from .modal-panel,.modal-leave-to .modal-panel{opacity:0;transform:translateY(8px) scale(.98)}@keyframes spin{to{transform:rotate(360deg)}}@keyframes shimmer{to{background-position-x:-200%}}.editor-page{grid-template-columns:max-content minmax(500px,1fr) max-content}.presence-group{display:inline-flex;align-items:center;gap:7px}.presence-stack{display:flex;align-items:center;isolation:isolate;padding-left:8px}.presence-avatar{position:relative;width:28px;height:28px;display:inline-grid;flex:0 0 28px;place-items:center;border:2px solid var(--surface);border-radius:50%;margin-left:-8px;color:#fff;box-shadow:0 1px 3px #1720332e;font-size:10px;font-weight:750}.presence-avatar:after{position:absolute;right:-1px;bottom:-1px;width:7px;height:7px;border:2px solid #fff;border-radius:50%;background:var(--success);content:""}.presence-avatar:first-child{margin-left:0}.presence-avatar.is-current{box-shadow:0 0 0 2px var(--primary-soft),0 1px 3px #1720332e}.presence-more{background:#667085!important;font-variant-numeric:tabular-nums}.presence-more:after{display:none}.presence-count{color:var(--text-muted);font-size:12px;font-weight:600;white-space:nowrap}.collaboration-indicator{min-height:32px;display:inline-flex;align-items:center;gap:6px;border:1px solid #cde9dc;border-radius:999px;background:var(--success-soft);padding:5px 10px;color:#0c754a;font-size:12px;font-weight:650;white-space:nowrap}.collaboration-indicator.sync-connecting{border-color:#d9e2ff;background:var(--primary-soft);color:#234ea9}.collaboration-indicator.sync-disconnected,.collaboration-indicator.sync-error{border-color:#f2bdc5;background:var(--danger-soft);color:#9d2635}.history-button[aria-pressed=true]{background:var(--primary-soft);color:var(--primary)}.readonly-toolbar-note{min-height:28px;display:inline-flex;align-items:center;margin-left:auto;border-radius:999px;background:var(--surface-hover);padding:4px 10px;color:var(--text-muted);font-size:12px;font-weight:650}.editor-title:read-only{cursor:default}.editor-load-error{width:min(520px,calc(100% - 40px));display:grid;justify-items:center;align-self:center;gap:10px;margin:auto;padding:32px;border:1px solid #f2bdc5;border-radius:var(--radius-md);background:var(--danger-soft);color:#9d2635;text-align:center}.editor-load-error p{margin:0 0 8px;color:var(--text-secondary)}.collaboration-alert{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;border:1px solid #f2bdc5;border-radius:var(--radius-sm);margin-bottom:24px;background:var(--danger-soft);padding:10px 12px;color:#9d2635;font-size:13px}.collaboration-alert .text-button{white-space:nowrap}.collaboration-cursor__caret{position:relative;border-right:1px solid;border-left:1px solid;margin-right:-1px;margin-left:-1px;pointer-events:none;word-break:normal}.collaboration-cursor__label{position:absolute;top:-1.55em;left:-1px;max-width:180px;overflow:hidden;border-radius:4px 4px 4px 0;padding:2px 6px;color:#fff;font-family:Microsoft YaHei,微软雅黑,PingFang SC,system-ui,sans-serif;font-size:11px;font-style:normal;font-weight:700;line-height:1.35;text-overflow:ellipsis;-webkit-user-select:none;user-select:none;white-space:nowrap}.outline-panel.collaboration-side-panel{width:332px;display:flex;flex-direction:column}.side-panel-header{flex:0 0 auto}.side-panel-tabs{min-width:0;display:flex;align-items:center;gap:2px}.side-panel-tabs button{min-height:34px;border:0;border-radius:7px;background:transparent;padding:6px 10px;color:var(--text-muted);font-size:13px;font-weight:650}.side-panel-tabs button:hover{background:var(--surface-hover);color:var(--text)}.side-panel-tabs button.is-active{background:var(--surface);color:var(--text);box-shadow:var(--shadow-sm)}.outline-nav{min-height:0;overflow-y:auto}.history-panel{min-height:0;flex:1;overflow-y:auto;background:var(--surface)}.history-toolbar{min-height:64px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--border);padding:10px 12px 10px 16px}.history-toolbar>div{min-width:0;display:grid;gap:2px}.history-toolbar strong{font-size:13px}.history-toolbar span{color:var(--text-muted);font-size:11px}.history-error{border:1px solid #f2bdc5;border-radius:8px;margin:12px;background:var(--danger-soft);padding:9px 10px;color:#9d2635;font-size:12px}.history-loading,.history-empty{min-height:220px;display:flex;align-items:center;justify-content:center;gap:9px;padding:32px 24px;color:var(--text-muted);text-align:center}.history-empty{flex-direction:column}.history-empty strong{color:var(--text-secondary)}.history-empty p{max-width:230px;margin:0;font-size:12px}.history-list{list-style:none;margin:0;padding:8px 0 24px}.history-list li{position:relative;margin:0;padding:0 8px}.history-list li:not(:last-child):after{position:absolute;z-index:0;top:35px;bottom:-11px;left:25px;width:1px;background:var(--border);content:""}.history-list button{position:relative;z-index:1;width:100%;min-height:76px;display:grid;grid-template-columns:18px minmax(0,1fr) 16px;align-items:center;gap:9px;border:0;border-radius:9px;background:transparent;padding:10px 8px;color:var(--text-secondary);text-align:left}.history-list button:hover:not(:disabled){background:var(--surface-hover);color:var(--text)}.history-timeline-dot{width:10px;height:10px;display:block;justify-self:center;border:2px solid var(--primary);border-radius:50%;background:var(--surface);box-shadow:0 0 0 3px var(--surface)}.history-timeline-dot.kind-publish{border-color:var(--success)}.history-timeline-dot.kind-restore{border-color:var(--purple)}.history-timeline-dot.kind-manual{border-color:#b96a07}.history-item-main{min-width:0;display:grid;gap:3px}.history-item-main>span:nth-child(2),.history-item-main small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.history-item-main>span:nth-child(2){color:var(--text-secondary);font-size:12px}.history-item-main small{color:var(--text-muted);font-size:11px}.history-item-title{display:flex;align-items:center;justify-content:space-between;gap:6px}.history-item-title strong{color:var(--text);font-size:13px}.version-kind-badge{display:inline-flex;width:max-content;align-items:center;border-radius:999px;background:var(--primary-soft);padding:2px 7px;color:#234ea9;font-size:10px;font-weight:700;white-space:nowrap}.version-kind-badge.kind-publish{background:var(--success-soft);color:#0c754a}.version-kind-badge.kind-restore{background:#f0ecff;color:#6243d8}.version-kind-badge.kind-manual{background:var(--warning-soft);color:#8c570a}.history-detail-header{min-height:52px;display:flex;align-items:center;justify-content:space-between;gap:8px;border-bottom:1px solid var(--border);padding:8px 12px}.history-back{min-height:34px}.history-detail{display:grid;gap:12px;padding:20px 16px 28px}.history-version-number{color:var(--primary);font-size:11px;font-weight:750;letter-spacing:.08em;text-transform:uppercase}.history-detail h2{margin:-4px 0 0;font-size:19px;line-height:1.35;overflow-wrap:anywhere}.history-detail-meta{margin:-5px 0 0;color:var(--text-muted);font-size:12px}.history-summary{border-left:3px solid var(--primary);margin:0;background:var(--primary-soft);padding:9px 11px;color:#314a7b;font-size:12px;overflow-wrap:anywhere}.history-preview{max-height:min(46vh,440px);overflow:auto;border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface-subtle);padding:14px;color:#39445a;font-family:Microsoft YaHei,微软雅黑,PingFang SC,system-ui,sans-serif;font-size:13px;line-height:1.75;white-space:pre-wrap;overflow-wrap:anywhere}.restore-button{width:100%;margin-top:4px}.field{display:grid;gap:7px}.field>span{font-size:13px;font-weight:650}.field textarea{width:100%;min-height:108px;resize:vertical;border:1px solid var(--border-strong);border-radius:var(--radius-sm);background:var(--surface);padding:10px 12px;color:var(--text)}.field textarea:focus{border-color:var(--primary);box-shadow:0 0 0 3px #2f6bff1f;outline:0}.field small{color:var(--text-muted)}.restore-confirmation{display:grid;gap:18px}.restore-warning{display:grid;grid-template-columns:auto minmax(0,1fr);gap:10px;border:1px solid #ead7a9;border-radius:var(--radius-sm);background:var(--warning-soft);padding:12px;color:#744b0b}.restore-warning p{margin:0}@media(max-width:1220px){.outline-panel.collaboration-side-panel.is-history-panel{position:fixed;z-index:110;top:0;right:0;bottom:0;width:min(380px,100vw);display:flex;border-left:1px solid var(--border);background:var(--surface);box-shadow:-16px 0 40px #1720332e}}@media(max-width:720px){.editor-actions .presence-stack{padding-left:0}.editor-actions .presence-stack .presence-avatar:not(:first-child){display:none}.editor-actions .collaboration-indicator{max-width:38px;overflow:hidden;padding:5px 10px}.editor-actions .icon-button.history-button{display:inline-grid}.collaboration-alert{grid-template-columns:auto minmax(0,1fr)}.collaboration-alert .text-button{grid-column:2;justify-self:start;padding-left:0}.outline-panel.collaboration-side-panel.is-history-panel{width:100vw}.history-list button{min-height:82px}.public-document-header-inner{width:calc(100% - 24px)}.public-document-brand span{display:none}.public-document-article{width:calc(100% - 40px);padding:44px 0 88px}.public-document-article>header>h1{font-size:34px}.share-link-actions{align-items:flex-start;flex-direction:column}}@media(max-width:1220px){.knowledge-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.editor-page{grid-template-columns:250px minmax(500px,1fr)}.outline-panel{display:none}}@media(max-width:960px){.app-shell{padding-left:0}.global-sidebar{width:min(300px,86vw);box-shadow:var(--shadow-md);transform:translate(-105%);transition:transform .22s ease}.global-sidebar.is-open{transform:translate(0)}.sidebar-close,.mobile-menu-button,.sidebar-scrim{display:block}.mobile-menu-button{position:fixed;z-index:80;top:8px;left:10px;border:1px solid var(--border);background:#fff;box-shadow:var(--shadow-sm)}.sidebar-scrim{position:fixed;z-index:90;top:0;right:0;bottom:0;left:0;background:#0c14266b}.page{padding-top:72px}.stats-grid{grid-template-columns:1fr}.stat-card{min-height:88px}.editor-page{grid-template-columns:minmax(0,1fr)}.document-tree{position:fixed;z-index:70;inset:52px auto 0 0;width:min(300px,86vw);box-shadow:var(--shadow-md);transform:translate(-105%);transition:transform .22s ease}.document-tree:not(.is-collapsed){transform:translate(0)}.mobile-tree-button{display:inline-grid}.editor-canvas{width:min(800px,calc(100% - 32px))}}@media(max-width:720px){.login-page{grid-template-columns:1fr}.login-intro{min-height:auto;padding:28px 24px 36px}.login-intro-content{margin-top:64px}.login-intro h1{font-size:36px}.login-intro-content>p:not(.eyebrow){font-size:15px}.login-trust{margin-top:52px}.login-form-side{min-height:auto;padding:48px 24px 72px}.login-footer{display:none}.page{padding:72px 16px 48px}.page-header,.dashboard-header,.section-heading{align-items:flex-start;flex-direction:column}.page-header .button{width:100%}.knowledge-grid{grid-template-columns:1fr}.stat-note{display:none}.recent-row{grid-template-columns:34px minmax(0,1fr) auto}.recent-row .status-badge,.recent-meta{display:none}.onboarding-banner{align-items:flex-start;flex-wrap:wrap}.onboarding-banner code{margin-left:56px}.knowledge-header{flex-direction:column}.knowledge-title{align-items:flex-start}.knowledge-toolbar{align-items:stretch;flex-direction:column}.table-search{width:100%}.document-table-head,.user-table-head{display:none}.document-table-row{grid-template-columns:minmax(0,1fr) auto 18px;gap:8px;padding:10px 12px}.document-table-row>span:nth-child(3),.document-table-row>span:nth-child(4){display:none}.admin-summary{grid-template-columns:1fr 1fr}.user-table-row{grid-template-columns:minmax(0,1fr) auto;padding:12px}.user-table-row>span:nth-child(3),.user-table-row>span:nth-child(4){display:none}.editor-actions .save-indicator,.editor-actions .button-ghost,.editor-actions .icon-button{display:none}.editor-actions .export-menu>.button-ghost{width:36px;min-width:36px;min-height:36px;display:inline-flex;gap:0;overflow:hidden;border:0;padding:0;color:var(--text-secondary);font-size:0}.editor-actions .export-menu>.button-ghost svg:first-child{width:18px;height:18px}.editor-actions .export-menu>.button-ghost svg:last-child{display:none}.export-menu-panel{position:fixed;top:56px;right:10px}.editor-breadcrumb{max-width:46vw}.editor-toolbar{padding-right:8px;padding-left:8px}.editor-canvas{width:100%;padding:36px 20px 120px}.editor-title{font-size:32px}.search-popover{position:fixed;top:132px;right:16px;left:16px;width:auto}.modal-layer{align-items:end;padding:0}.modal-panel{border-radius:16px 16px 0 0}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}.editor-toolbar{position:relative;z-index:35;width:100%;height:auto;min-height:46px;max-height:none;display:flex;flex:0 0 auto;align-items:stretch;flex-direction:column;gap:0;overflow:visible;padding:0;background:#fff}.toolbar-main-row{width:100%;height:auto;min-height:46px;max-height:none;box-sizing:border-box;display:flex;flex:0 0 auto;align-content:center;align-items:center;flex-flow:row wrap;gap:3px;overflow:visible;border-bottom:1px solid var(--border);padding:5px 12px}.toolbar-secondary-row{background:#fcfdff}.editor-toolbar button,.editor-toolbar summary{min-width:34px;height:34px;display:inline-flex;align-items:center;justify-content:center;gap:5px;flex:0 0 auto;border:0;border-radius:6px;background:transparent;color:var(--text-secondary);font:inherit;font-size:12px;font-weight:650;cursor:pointer;transition:background-color .16s ease,color .16s ease,box-shadow .16s ease}.editor-toolbar button:hover:not(:disabled),.editor-toolbar summary:hover{background:var(--surface-hover);color:var(--text)}.editor-toolbar button:focus-visible,.editor-toolbar summary:focus-visible{outline:2px solid var(--primary);outline-offset:1px}.editor-toolbar button.is-active,.editor-toolbar button[aria-pressed=true]{background:var(--primary-soft);color:var(--primary)}.editor-toolbar button:disabled{cursor:not-allowed;opacity:.4}.toolbar-wide-button{width:auto!important;min-width:66px!important;padding:0 9px!important}.toolbar-popover{position:relative;flex:0 0 auto}.toolbar-popover summary{position:relative;list-style:none}.toolbar-popover summary::-webkit-details-marker{display:none}.toolbar-popover[open] summary{background:var(--primary-soft);color:var(--primary)}.toolbar-color-indicator{position:absolute;right:7px;bottom:4px;width:15px;height:3px;border:1px solid rgb(23 32 51 / .16);border-radius:999px}.toolbar-popover-panel{position:absolute;z-index:120;top:calc(100% + 7px);left:0;width:244px;border:1px solid var(--border);border-radius:10px;background:#fff;box-shadow:0 14px 34px #17203329;padding:12px}.toolbar-popover-panel>strong{display:block;margin-bottom:10px;color:var(--text);font-size:12px}.toolbar-color-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:7px}.editor-toolbar .toolbar-color-grid button{width:34px;height:30px;min-width:34px;border:1px solid var(--border);background:#fff;padding:4px}.editor-toolbar .toolbar-color-grid button span{width:100%;height:100%;border-radius:4px}.editor-toolbar .toolbar-color-grid button.is-active{border-color:var(--primary);box-shadow:0 0 0 2px #2f6bff24}.toolbar-popover-actions{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:10px}.editor-toolbar .toolbar-text-action{width:auto;min-width:0;height:30px;padding:0 7px;color:var(--text-muted)}.toolbar-custom-color{min-height:30px;display:inline-flex;align-items:center;gap:6px;color:var(--text-muted);font-size:12px;cursor:pointer}.toolbar-custom-color input{width:28px;height:24px;border:0;background:transparent;padding:0;cursor:pointer}.table-context-toolbar{min-height:40px;display:flex;align-items:center;flex-wrap:wrap;gap:3px;border-bottom:1px solid #cad9ff;background:#f7f9ff;padding:4px 12px}.table-context-toolbar>span:first-child{display:inline-flex;align-items:center;gap:6px;margin-right:6px;color:#34528e;font-size:12px;font-weight:700}.editor-toolbar .table-context-toolbar button{width:auto;min-width:0;height:30px;padding:0 8px}.editor-toolbar .table-context-toolbar .table-delete-button{margin-left:auto;color:var(--danger)}.selection-bubble-menu{display:flex;align-items:center;gap:2px;border:1px solid #30394a;border-radius:8px;background:#202735;box-shadow:0 10px 30px #1018283d;padding:4px}.selection-bubble-menu button{width:32px;height:32px;display:inline-grid;place-items:center;border:0;border-radius:5px;background:transparent;color:#e7ebf3;cursor:pointer}.selection-bubble-menu button:hover,.selection-bubble-menu button.is-active{background:#3a465a;color:#fff}.prose-editor h4{margin:1.3em 0 .45em;color:var(--text);font-size:17px;line-height:1.45}.prose-editor h5{margin:1.25em 0 .4em;color:var(--text);font-size:15px;line-height:1.5}.prose-editor h6{margin:1.2em 0 .35em;color:var(--text-secondary);font-size:14px;line-height:1.5}.prose-editor img.ProseMirror-selectednode{outline:3px solid rgb(47 107 255 / .35);outline-offset:3px}.image-upload-status{min-height:38px;display:flex;align-items:center;gap:8px;border:1px solid #cfe0ff;border-radius:8px;margin:0 0 18px;background:#f5f8ff;padding:7px 10px;color:#34528e;font-size:13px}.image-upload-status.is-error{border-color:#f2c7c4;background:#fff7f6;color:var(--danger)}.image-upload-status .text-button{margin-left:auto;color:inherit}.prose-editor hr{height:1px;border:0;margin:2em 0;background:var(--border-strong)}.prose-editor mark{border-radius:3px;padding:.08em .16em;-webkit-box-decoration-break:clone;box-decoration-break:clone}.prose-editor ul[data-type=taskList]{list-style:none;padding-left:0}.prose-editor ul[data-type=taskList] li{display:flex;align-items:flex-start;gap:8px;margin:.45em 0}.prose-editor ul[data-type=taskList] li>label{display:inline-flex;align-items:center;padding-top:.35em}.prose-editor ul[data-type=taskList] li>label input{width:17px;height:17px;accent-color:var(--primary);cursor:pointer}.prose-editor ul[data-type=taskList] li>div{min-width:0;flex:1}.prose-editor ul[data-type=taskList] li>div>p{margin:0}.prose-editor ul[data-type=taskList] li[data-checked=true]>div{color:var(--text-muted);text-decoration:line-through}.prose-editor .tableWrapper{overflow-x:auto;margin:1.5em 0;padding-bottom:4px}.prose-editor table{width:100%;min-width:520px;border-collapse:collapse;table-layout:fixed}.prose-editor th,.prose-editor td{position:relative;min-width:90px;border:1px solid #cfd5df;padding:9px 11px;vertical-align:top;text-align:left}.prose-editor th{background:#f3f5f8;color:var(--text);font-weight:700}.prose-editor td{background:#fff}.prose-editor .spreadsheet-cell-content{min-width:0}.prose-editor th>p,.prose-editor td>p,.prose-editor .spreadsheet-cell-content>p{margin:0}.prose-editor:not(.spreadsheet-editor) .selectedCell:after{position:absolute;z-index:2;top:0;right:0;bottom:0;left:0;background:#2f6bff1f;content:"";pointer-events:none}.prose-editor .column-resize-handle{position:absolute;z-index:4;top:0;right:-2px;bottom:-2px;width:4px;background:var(--primary);pointer-events:none}.resize-cursor{cursor:col-resize}@media(max-width:720px){.toolbar-main-row{min-height:50px;flex-flow:row wrap;padding:6px 8px}.editor-toolbar button,.editor-toolbar summary{height:44px}.editor-toolbar button,.editor-toolbar summary{min-width:44px}.toolbar-popover-panel{position:fixed;top:104px;right:12px;left:12px;width:auto}.table-context-toolbar{flex-wrap:nowrap;overflow-x:auto;padding:5px 8px}.editor-toolbar .table-context-toolbar .table-delete-button{margin-left:0}}@container editor-workspace (max-width: 720px){.toolbar-main-row{min-height:50px;flex-flow:row wrap;padding:6px 8px}.editor-toolbar button,.editor-toolbar summary{height:44px}.editor-toolbar button,.editor-toolbar summary{min-width:44px}}.new-file-menu{position:relative;display:inline-block}.new-file-menu>summary{list-style:none}.new-file-menu>summary::-webkit-details-marker{display:none}.new-file-trigger{min-width:112px;justify-content:flex-start;-webkit-user-select:none;user-select:none}.new-file-chevron{margin-left:auto;transition:transform .18s ease}.new-file-menu[open] .new-file-chevron{transform:rotate(180deg)}.new-file-menu summary[aria-disabled=true]{cursor:not-allowed;opacity:.45}.new-file-menu summary:focus-visible,.new-file-popover button:focus-visible{outline:3px solid rgb(47 107 255 / .24);outline-offset:2px}.new-file-popover{position:absolute;z-index:160;top:calc(100% + 8px);right:0;width:280px;display:grid;gap:4px;border:1px solid var(--border);border-radius:12px;background:#fff;box-shadow:var(--shadow-md);padding:6px}.new-file-popover>button{width:100%;min-height:64px;display:grid;grid-template-columns:38px minmax(0,1fr);align-items:center;gap:10px;border:0;border-radius:8px;background:transparent;padding:8px;color:var(--text);text-align:left;cursor:pointer}.new-file-popover>button:hover{background:var(--surface-hover)}.new-file-popover>button:active{background:var(--primary-soft)}.new-file-popover>button>span:last-child{min-width:0;display:grid;gap:2px}.new-file-popover strong{font-size:14px}.new-file-popover small{color:var(--text-muted);font-size:12px;line-height:1.45}.new-file-option-icon{width:38px;height:38px;display:inline-grid;place-items:center;border-radius:9px;color:var(--primary);background:var(--primary-soft)}.new-file-option-spreadsheet{color:var(--success);background:var(--success-soft)}.sidebar-create.new-file-menu{width:100%;margin-top:16px}.sidebar-create .new-file-trigger{width:100%}.sidebar-create .new-file-popover{right:auto;left:0;width:100%}.new-file-menu-tree{display:block;margin:10px}.new-file-menu-tree .tree-new{width:100%;min-height:40px;margin:0}.new-file-menu-tree .new-file-popover{right:auto;left:0;width:240px}.editor-topbar.is-spreadsheet{height:52px;min-height:52px;gap:12px;background:#fff;padding:0 12px 0 16px}.spreadsheet-document-heading{min-width:0;display:flex;flex:1 1 auto;align-items:center;gap:7px}.spreadsheet-topbar-title{width:min(280px,32vw);min-width:96px;height:30px;overflow:hidden;border:1px solid transparent;border-radius:4px;background:transparent;padding:0 4px;color:#5f6670;font:inherit;font-size:14px;font-weight:400;text-overflow:ellipsis;white-space:nowrap}.spreadsheet-topbar-title:hover:not(:read-only){border-color:#d9dde3;background:#fff}.spreadsheet-topbar-title:focus{border-color:#8ab4ff;background:#fff;outline:2px solid rgb(36 144 255 / .12)}.spreadsheet-topbar-title:read-only{color:var(--text-secondary)}.spreadsheet-access-lock{flex:0 0 auto;color:#8b929d}.editor-topbar .spreadsheet-save-status{min-height:24px;flex:0 0 auto;gap:4px;border:0;border-radius:0;background:transparent;padding:0;color:#8b929d;font-size:12px;font-weight:400}.editor-topbar .spreadsheet-save-status.sync-connecting{border:0;background:transparent;color:#6f7b8e}.editor-topbar .spreadsheet-save-status.sync-disconnected,.editor-topbar .spreadsheet-save-status.sync-error{border:0;background:transparent;color:var(--danger)}.editor-topbar.is-spreadsheet .editor-actions{flex:0 0 auto;gap:8px}.editor-topbar.is-spreadsheet .presence-count{display:none}.editor-topbar.is-spreadsheet .button{height:32px;min-height:32px;border:1px solid #dfe2e7;border-radius:6px;background:#fff;padding:0 15px;color:#3d424a;font-size:13px;font-weight:500;box-shadow:none}.editor-topbar.is-spreadsheet .button:hover:not(:disabled){border-color:#c6cbd2;background:#f7f8fa;color:#20242a;transform:none}.editor-topbar.is-spreadsheet .spreadsheet-invite-button,.editor-topbar.is-spreadsheet .history-button{width:32px;height:32px;border-radius:5px;color:#4d535c}.spreadsheet-format-toolbar{height:42px;min-height:42px;display:flex;flex:0 0 auto;align-items:center;flex-wrap:nowrap;gap:1px;overflow-x:auto;overflow-y:hidden;border-bottom:1px solid #dfe2e7;background:#fafafa;padding:4px 8px;scrollbar-width:thin}.spreadsheet-format-toolbar:has(details[open]){overflow:visible}.editor-toolbar .spreadsheet-format-toolbar>button,.editor-toolbar .spreadsheet-format-toolbar>details>summary{min-width:32px;height:32px;border-radius:4px}.editor-toolbar .spreadsheet-format-toolbar>.spreadsheet-create-button{color:#fff}.editor-toolbar .spreadsheet-format-toolbar>.spreadsheet-create-button svg{width:18px;height:18px;border-radius:50%;background:#18b368;padding:2px;stroke-width:2.5}.editor-toolbar .spreadsheet-format-toolbar>.spreadsheet-create-button:hover:not(:disabled){background:#edf8f2;color:#fff}.spreadsheet-format-toolbar .toolbar-divider{height:24px;margin:0 3px;background:#e4e7eb}.spreadsheet-border-popover>summary{gap:2px;padding:0 5px}.spreadsheet-border-popover>summary .toolbar-color-indicator{right:18px;width:13px}.spreadsheet-border-panel{width:292px;padding:13px}.spreadsheet-border-panel>strong{margin-bottom:9px}.spreadsheet-border-preset-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:5px}.editor-toolbar .spreadsheet-border-preset-grid>button{width:48px;height:42px;min-width:48px;display:grid;place-items:center;border:1px solid transparent;border-radius:6px;background:#f7f8fa;padding:0}.editor-toolbar .spreadsheet-border-preset-grid>button:hover:not(:disabled){border-color:#cbd9ff;background:#eef3ff}.editor-toolbar .spreadsheet-border-preset-grid>button:focus-visible{border-color:var(--primary);outline:2px solid rgb(47 107 255 / .18);outline-offset:1px}.spreadsheet-border-preview{--spreadsheet-border-preview-color: #1f2329;position:relative;width:24px;height:24px;display:block;box-sizing:border-box;border:1px solid #cfd4dc;background-color:#fff}.spreadsheet-border-preview.is-all{border:2px solid var(--spreadsheet-border-preview-color);background:linear-gradient(to right,transparent calc(50% - 1px),var(--spreadsheet-border-preview-color) calc(50% - 1px),var(--spreadsheet-border-preview-color) calc(50% + 1px),transparent calc(50% + 1px)),linear-gradient(to bottom,transparent calc(50% - 1px),var(--spreadsheet-border-preview-color) calc(50% - 1px),var(--spreadsheet-border-preview-color) calc(50% + 1px),transparent calc(50% + 1px)),#fff}.spreadsheet-border-preview.is-outer{border:2px solid var(--spreadsheet-border-preview-color)}.spreadsheet-border-preview.is-inner,.spreadsheet-border-preview.is-horizontal,.spreadsheet-border-preview.is-vertical{border-color:#cfd4dc}.spreadsheet-border-preview.is-inner{background:linear-gradient(to right,transparent calc(50% - 1px),var(--spreadsheet-border-preview-color) calc(50% - 1px),var(--spreadsheet-border-preview-color) calc(50% + 1px),transparent calc(50% + 1px)),linear-gradient(to bottom,transparent calc(50% - 1px),var(--spreadsheet-border-preview-color) calc(50% - 1px),var(--spreadsheet-border-preview-color) calc(50% + 1px),transparent calc(50% + 1px)),#fff}.spreadsheet-border-preview.is-none:after{position:absolute;top:10px;left:-3px;width:28px;height:2px;border-radius:999px;background:#d83931;content:"";transform:rotate(-45deg)}.spreadsheet-border-preview.is-top{border-top:2px solid var(--spreadsheet-border-preview-color)}.spreadsheet-border-preview.is-bottom{border-bottom:2px solid var(--spreadsheet-border-preview-color)}.spreadsheet-border-preview.is-left{border-left:2px solid var(--spreadsheet-border-preview-color)}.spreadsheet-border-preview.is-right{border-right:2px solid var(--spreadsheet-border-preview-color)}.spreadsheet-border-preview.is-horizontal{background:linear-gradient(to bottom,transparent calc(50% - 1px),var(--spreadsheet-border-preview-color) calc(50% - 1px),var(--spreadsheet-border-preview-color) calc(50% + 1px),transparent calc(50% + 1px)),#fff}.spreadsheet-border-preview.is-vertical{background:linear-gradient(to right,transparent calc(50% - 1px),var(--spreadsheet-border-preview-color) calc(50% - 1px),var(--spreadsheet-border-preview-color) calc(50% + 1px),transparent calc(50% + 1px)),#fff}.spreadsheet-border-divider{height:1px;margin:12px 0;background:#eceff3}.spreadsheet-border-controls{display:grid;grid-template-columns:1fr 1fr;gap:8px}.spreadsheet-border-controls label{min-width:0;display:grid;gap:6px}.spreadsheet-border-controls label>span,.spreadsheet-border-color-section>span{color:var(--text-muted);font-size:11px;font-weight:650}.spreadsheet-border-controls select{width:100%;height:32px;border:1px solid var(--border);border-radius:6px;background:#fff;padding:0 26px 0 8px;color:var(--text);font:inherit;font-size:12px}.spreadsheet-border-controls select:hover{border-color:#b7c0cc}.spreadsheet-border-controls select:focus{border-color:var(--primary);outline:2px solid rgb(47 107 255 / .14)}.spreadsheet-border-color-section{display:grid;gap:7px;margin-top:11px}.spreadsheet-border-color-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:6px}.editor-toolbar .spreadsheet-border-color-grid>button,.spreadsheet-border-custom-color{width:38px;height:30px;min-width:38px;display:grid;place-items:center;box-sizing:border-box;border:1px solid var(--border);border-radius:5px;background:#fff;padding:4px}.editor-toolbar .spreadsheet-border-color-grid>button>span{width:100%;height:100%;border-radius:3px}.editor-toolbar .spreadsheet-border-color-grid>button:hover,.spreadsheet-border-custom-color:hover{border-color:#9eabc0;background:#f8f9fb}.editor-toolbar .spreadsheet-border-color-grid>button.is-active{border-color:var(--primary);box-shadow:0 0 0 2px #2f6bff24}.spreadsheet-border-custom-color{position:relative;color:var(--text-secondary);cursor:pointer}.spreadsheet-border-custom-color input{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;opacity:0;cursor:pointer}.spreadsheet-action-menu{position:relative;flex:0 0 auto}.spreadsheet-action-menu>summary{min-width:58px!important;display:inline-flex;align-items:center;justify-content:center;gap:5px;list-style:none;padding:0 8px;cursor:pointer}.spreadsheet-action-menu>summary::-webkit-details-marker{display:none}.spreadsheet-action-menu[open]>summary{background:var(--primary-soft);color:var(--primary)}.spreadsheet-action-menu-panel{position:absolute;z-index:150;top:calc(100% + 7px);left:0;width:184px;display:grid;gap:2px;border:1px solid var(--border);border-radius:10px;background:#fff;box-shadow:var(--shadow-md);padding:5px}.editor-toolbar .spreadsheet-action-menu-panel button{width:100%;height:36px;justify-content:flex-start;border-radius:6px;padding:0 10px;font-weight:500}.editor-toolbar .spreadsheet-action-menu-panel button.is-active{background:var(--primary-soft);color:var(--primary)}.editor-toolbar .spreadsheet-action-menu-panel button.is-danger{color:var(--danger)}.spreadsheet-number-format-menu>summary{min-width:76px!important;justify-content:space-between;padding:0 8px}.spreadsheet-number-format-menu .spreadsheet-action-menu-panel{width:136px}.spreadsheet-format-option-menu>summary{justify-content:space-between;padding:0 8px;color:#2f3339;font-weight:500}.spreadsheet-font-family-menu>summary{width:120px}.spreadsheet-font-size-menu>summary{width:82px;font-variant-numeric:tabular-nums}.spreadsheet-font-family-menu .spreadsheet-action-menu-panel{width:144px}.spreadsheet-font-size-menu .spreadsheet-action-menu-panel{width:108px;max-height:294px;overflow-y:auto}.document-toolbar-option-menu>summary{box-sizing:border-box}.document-toolbar-option-menu>summary>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.document-toolbar-option-menu .spreadsheet-action-menu-panel{width:max(100%,144px);max-height:min(360px,calc(100dvh - 136px));overflow-y:auto}.document-block-style-menu>summary{width:96px}.document-font-family-menu>summary{width:120px}.document-font-size-menu>summary{width:104px;font-variant-numeric:tabular-nums}.document-line-height-menu>summary{width:104px}.editor-toolbar .spreadsheet-format-option-menu .spreadsheet-action-menu-panel button{display:grid;grid-template-columns:14px auto;align-items:center;justify-content:start;gap:4px}.spreadsheet-format-option-menu .spreadsheet-action-menu-panel button>span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.editor-toolbar .spreadsheet-number-format-menu .spreadsheet-action-menu-panel button{display:grid;grid-template-columns:14px auto;align-items:center;justify-content:start;gap:4px}.spreadsheet-number-format-menu .spreadsheet-action-menu-panel,.spreadsheet-format-option-menu .spreadsheet-action-menu-panel{gap:0;padding:3px}.editor-toolbar .spreadsheet-number-format-menu .spreadsheet-action-menu-panel button,.editor-toolbar .spreadsheet-format-option-menu .spreadsheet-action-menu-panel button{height:30px;border-radius:5px;padding:0 5px;font-weight:500;text-align:left}.spreadsheet-menu-icon-placeholder{width:14px;height:14px;display:inline-block}.spreadsheet-context-menu{position:fixed;z-index:900;width:248px;max-height:calc(100dvh - 16px);overflow-y:auto;border:1px solid var(--border);border-radius:10px;background:#fff;box-shadow:0 14px 38px #19233733;padding:6px}.spreadsheet-sheet-context-menu{width:220px;overflow:hidden}.spreadsheet-sheet-context-menu>header strong{max-width:130px}.spreadsheet-context-menu>header{min-height:32px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #edf0f4;margin:0 4px 4px;padding:0 6px;color:var(--text-muted);font-size:11px}.spreadsheet-context-menu>header strong{max-width:160px;overflow:hidden;color:var(--text);font-size:12px;font-variant-numeric:tabular-nums;text-overflow:ellipsis;white-space:nowrap}.spreadsheet-context-menu>button{width:100%;min-height:36px;display:grid;grid-template-columns:20px minmax(0,1fr) auto;align-items:center;gap:8px;border:0;border-radius:6px;background:transparent;padding:0 9px;color:var(--text);font:inherit;font-size:13px;text-align:left;cursor:pointer}.spreadsheet-context-menu>button:hover:not(:disabled),.spreadsheet-context-menu>button:focus-visible:not(:disabled){background:var(--surface-hover);outline:0}.spreadsheet-context-menu>button:focus-visible{box-shadow:inset 0 0 0 2px #2f6bff52}.spreadsheet-context-menu>button:disabled{color:var(--text-muted);cursor:not-allowed;opacity:.45}.spreadsheet-context-menu>button.is-danger:not(:disabled){color:var(--danger)}.spreadsheet-context-menu>button.is-danger:hover:not(:disabled),.spreadsheet-context-menu>button.is-danger:focus-visible:not(:disabled){background:var(--danger-soft)}.spreadsheet-context-menu>button svg{justify-self:center}.spreadsheet-context-menu>button kbd{border:0;background:transparent;color:var(--text-muted);font:inherit;font-size:11px}.spreadsheet-context-separator{height:1px;display:block;margin:5px 4px;background:#edf0f4}.spreadsheet-context-label{min-height:25px;display:flex;align-items:center;padding:0 10px;color:var(--text-muted);font-size:11px;font-weight:650}.spreadsheet-action-toast{position:fixed;z-index:950;right:20px;bottom:58px;max-width:min(420px,calc(100vw - 32px));min-height:40px;display:flex;align-items:center;gap:8px;border:1px solid #c8d7ff;border-radius:9px;background:#f5f8ff;box-shadow:var(--shadow-md);padding:8px 12px;color:#2455c5;font-size:13px;font-weight:550}.spreadsheet-action-toast.is-error{border-color:#f2bdc5;background:var(--danger-soft);color:#9d2635}.spreadsheet-size-form{display:grid;gap:12px}.spreadsheet-size-form .field input{width:min(240px,100%);font-variant-numeric:tabular-nums}.spreadsheet-size-actions>span{flex:1}.spreadsheet-size-actions .spreadsheet-auto-fit-button{margin-right:auto}.spreadsheet-delete-options{display:grid;gap:8px}.spreadsheet-delete-options>button:not(.button){width:100%;min-height:66px;display:grid;grid-template-columns:40px minmax(0,1fr);align-items:center;gap:11px;border:1px solid var(--border);border-radius:9px;background:#fff;padding:10px 12px;color:var(--text);font:inherit;text-align:left;cursor:pointer;transition:border-color .16s ease,background-color .16s ease,box-shadow .16s ease}.spreadsheet-delete-options>button:not(.button):hover:not(:disabled){border-color:#a9bfff;background:#f7f9ff;box-shadow:0 3px 10px #2f6bff14}.spreadsheet-delete-options>button:not(.button):focus-visible{border-color:var(--primary);outline:3px solid rgb(47 107 255 / .18)}.spreadsheet-delete-options>button:not(.button):disabled{cursor:not-allowed;opacity:.45}.spreadsheet-delete-options>button>span:last-child{min-width:0;display:grid;gap:3px}.spreadsheet-delete-options strong{font-size:13px}.spreadsheet-delete-options small{color:var(--text-muted);font-size:12px;line-height:1.45}.spreadsheet-delete-option-icon{width:36px;height:36px;display:inline-grid;place-items:center;border-radius:8px;background:var(--primary-soft);color:var(--primary)}.spreadsheet-delete-option-icon.is-danger{background:var(--danger-soft);color:var(--danger)}.spreadsheet-delete-options .modal-actions{margin-top:4px}.spreadsheet-formula-bar{height:22px;min-height:22px;display:grid;grid-template-columns:42px minmax(160px,1fr);align-items:center;border-bottom:1px solid #d9dde3;background:#fff;color:var(--text-secondary)}.spreadsheet-cell-address{height:100%;display:inline-flex;align-items:center;border-right:1px solid #d9dde3;padding:0 5px;color:#20242a;font-size:11px;font-weight:400;font-variant-numeric:tabular-nums}.spreadsheet-formula-bar textarea{width:100%;height:21px;border:0;background:transparent;display:block;overflow:hidden;resize:none;white-space:pre;padding:0 8px;color:var(--text);font:inherit;font-size:12px;line-height:21px;outline:0}.spreadsheet-formula-bar textarea:focus{background:#fff;box-shadow:inset 0 0 0 1px #2490ff}.spreadsheet-formula-bar textarea:read-only{color:var(--text-muted)}.editor-scroll.is-spreadsheet{overflow:auto;background:#fff;scroll-padding:0;scrollbar-gutter:auto}.editor-canvas.is-spreadsheet{width:100%;max-width:none;min-height:100%;display:block;margin:0;padding:0 0 24px}.editor-canvas.is-spreadsheet .collaboration-alert{margin:12px}.spreadsheet-editor{position:relative;width:100%;min-width:100%;min-height:calc(100dvh - 220px);color:var(--text);font-size:13px;line-height:1.4;zoom:var(--spreadsheet-zoom, 1);transform-origin:top left}.spreadsheet-editor[data-resize-axis=column],.spreadsheet-editor[data-resize-axis=column] .spreadsheet-column-headers,.spreadsheet-editor[data-resize-axis=column] .spreadsheet-column-header,.spreadsheet-editor[data-resize-axis=column] tr:first-child>th,.spreadsheet-editor[data-resize-axis=column] tr:first-child>td{cursor:col-resize!important}.spreadsheet-editor[data-resize-axis=row],.spreadsheet-editor[data-resize-axis=row] .spreadsheet-row-headers,.spreadsheet-editor[data-resize-axis=row] .spreadsheet-row-header,.spreadsheet-editor[data-resize-axis=row] tr>:first-child{cursor:row-resize!important}.spreadsheet-editor[data-resize-active=true]{-webkit-user-select:none;user-select:none;touch-action:none}.spreadsheet-resize-overlay{position:fixed;z-index:930;top:0;right:0;bottom:0;left:0;overflow:hidden;pointer-events:none}.spreadsheet-resize-overlay[hidden]{display:none}.spreadsheet-resize-guide{position:absolute;border-radius:999px;background:#2f6bffb8;box-shadow:0 0 0 1px #fffc,0 0 0 2px #2f6bff1f}.spreadsheet-resize-overlay[data-resize-active=true] .spreadsheet-resize-guide{background:var(--primary);box-shadow:0 0 0 1px #ffffffe6,0 0 0 3px #2f6bff29}.spreadsheet-resize-badge{position:absolute;min-height:26px;display:inline-flex;align-items:center;border:1px solid rgb(47 107 255 / .28);border-radius:7px;background:#fffffff7;box-shadow:0 5px 18px #1f2d462e;padding:4px 8px;color:#2455c5;font:600 12px/1.3 -apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-variant-numeric:tabular-nums;white-space:nowrap}.spreadsheet-resize-overlay[data-resize-active=true] .spreadsheet-resize-badge{border-color:var(--primary);background:var(--primary);color:#fff}.spreadsheet-resize-overlay[data-resize-confirmed=true] .spreadsheet-resize-badge{border-color:#6fc39a;background:#15845d;color:#fff}.spreadsheet-editor .tableWrapper{position:relative;width:100%;min-width:1002px;overflow:visible;border:0;border-radius:0;margin:0;background:#fff;box-shadow:none;padding:29px 0 0 42px;box-sizing:border-box}.spreadsheet-editor .tableWrapper.spreadsheet-grid-table{width:max-content;min-width:1002px;display:grid;grid-template-columns:42px max-content;grid-template-rows:29px max-content;align-items:start;justify-items:start;padding:0}.spreadsheet-grid-table>.spreadsheet-grid-corner{position:sticky;z-index:15;top:0;left:0;grid-area:1 / 1;width:42px;height:29px;border-right:1px solid #d9dde3;border-bottom:1px solid #d9dde3;background:#f5f6f8;box-sizing:border-box;cursor:pointer}.spreadsheet-grid-table>.spreadsheet-column-headers{position:sticky;z-index:14;top:0;grid-area:1 / 2;height:29px;display:grid;align-items:stretch;background:#f5f6f8}.spreadsheet-grid-table .spreadsheet-column-header{width:var(--spreadsheet-column-width);min-width:0;display:flex;align-items:center;justify-content:center;border-right:1px solid #d9dde3;border-bottom:1px solid #d9dde3;box-sizing:border-box;background:#f5f6f8;color:#626b78;font-size:11px;font-weight:500;font-variant-numeric:tabular-nums;cursor:pointer;-webkit-user-select:none;user-select:none}.spreadsheet-grid-table>.spreadsheet-row-headers{position:sticky;z-index:13;left:0;grid-area:2 / 1;width:42px;display:grid;align-items:stretch;background:#f5f6f8}.spreadsheet-grid-table .spreadsheet-row-header{width:42px;height:var(--spreadsheet-row-height);min-height:0;display:flex;align-items:center;justify-content:center;border-right:1px solid #d9dde3;border-bottom:1px solid #d9dde3;box-sizing:border-box;background:#f5f6f8;color:#626b78;font-size:11px;font-weight:400;font-variant-numeric:tabular-nums;cursor:pointer;-webkit-user-select:none;user-select:none}.spreadsheet-grid-table>table{grid-area:2 / 2}.spreadsheet-grid-table .spreadsheet-column-header.is-selected{background:#dce7ff;color:#2455c5;font-weight:700;box-shadow:inset 0 3px 0 var(--primary)}.spreadsheet-grid-table .spreadsheet-row-header.is-selected{background:#dce7ff;color:#2455c5;font-weight:700;box-shadow:inset 3px 0 0 var(--primary)}.spreadsheet-grid-table>.spreadsheet-grid-corner.is-selected{background:#dce7ff;box-shadow:inset 3px 0 0 var(--primary),inset 0 3px 0 var(--primary)}.spreadsheet-editor .tableWrapper.spreadsheet-grid-table:before,.spreadsheet-editor .spreadsheet-grid-table tr>:first-child:after,.spreadsheet-editor .spreadsheet-grid-table tr:first-child>th:before,.spreadsheet-editor .spreadsheet-grid-table tr:first-child>td:before{display:none;content:none}.spreadsheet-editor .is-editor-empty:first-child:before{display:none;content:none}.spreadsheet-editor .tableWrapper:before{position:absolute;z-index:5;top:0;left:0;width:41px;height:28px;border-right:1px solid #d9dde3;border-bottom:1px solid #d9dde3;background:#f5f6f8;content:"";cursor:pointer;pointer-events:auto}.spreadsheet-editor .tableWrapper:has(.spreadsheet-table-selected):before{background:#dce7ff;box-shadow:inset 3px 0 0 var(--primary),inset 0 3px 0 var(--primary)}.spreadsheet-editor table{width:100%;min-width:960px;counter-reset:spreadsheet-column spreadsheet-row;border-collapse:collapse;table-layout:fixed}.spreadsheet-editor tr{position:relative;counter-increment:spreadsheet-row}.spreadsheet-editor tr>:first-child:after{position:absolute;z-index:3;top:-1px;bottom:-1px;left:-43px;width:41px;display:flex;align-items:center;justify-content:center;border-right:1px solid #d9dde3;border-bottom:1px solid #d9dde3;background:#f5f6f8;color:#626b78;content:counter(spreadsheet-row);font-size:11px;font-weight:400;font-variant-numeric:tabular-nums;cursor:pointer;pointer-events:auto}.spreadsheet-editor tr>:first-child.spreadsheet-row-selected:after{background:#dce7ff;color:#2455c5;font-weight:700;box-shadow:inset 3px 0 0 var(--primary)}.spreadsheet-editor th,.spreadsheet-editor td{position:relative;min-width:64px;height:34px;border:1px solid #dfe2e7;background:#fff;padding:5px 8px;vertical-align:middle;text-align:left;cursor:cell}.spreadsheet-editor th{color:var(--text);font-weight:400}.spreadsheet-editor tr:first-child>th,.spreadsheet-editor tr:first-child>td{counter-increment:spreadsheet-column}.spreadsheet-editor tr:first-child>th:before,.spreadsheet-editor tr:first-child>td:before{position:absolute;z-index:4;top:-30px;right:-1px;left:-1px;height:28px;display:flex;align-items:center;justify-content:center;border-right:1px solid #d9dde3;border-bottom:1px solid #d9dde3;background:#f5f6f8;color:#626b78;content:counter(spreadsheet-column,upper-alpha);font-size:11px;font-weight:500;cursor:pointer;pointer-events:auto}.spreadsheet-editor tr:first-child>th.spreadsheet-column-selected:before,.spreadsheet-editor tr:first-child>td.spreadsheet-column-selected:before{background:#dce7ff;color:#2455c5;font-weight:700;box-shadow:inset 0 3px 0 var(--primary)}.spreadsheet-editor th>p,.spreadsheet-editor td>p,.spreadsheet-editor .spreadsheet-cell-content>p{min-height:20px;margin:0;cursor:cell}.spreadsheet-editor tr[data-row-height]>th,.spreadsheet-editor tr[data-row-height]>td,.spreadsheet-editor tr.spreadsheet-row-resize-preview>th,.spreadsheet-editor tr.spreadsheet-row-resize-preview>td{height:var(--spreadsheet-row-height);max-height:var(--spreadsheet-row-height);overflow:hidden}.spreadsheet-editor tr[data-row-height]>th>.spreadsheet-cell-content,.spreadsheet-editor tr[data-row-height]>td>.spreadsheet-cell-content,.spreadsheet-editor tr.spreadsheet-row-resize-preview>th>.spreadsheet-cell-content,.spreadsheet-editor tr.spreadsheet-row-resize-preview>td>.spreadsheet-cell-content{height:max(20px,calc(var(--spreadsheet-row-height) - 12px));max-height:max(20px,calc(var(--spreadsheet-row-height) - 12px));overflow:hidden}.spreadsheet-editor th[rowspan]:not([rowspan="1"])>.spreadsheet-cell-content,.spreadsheet-editor td[rowspan]:not([rowspan="1"])>.spreadsheet-cell-content{position:absolute;top:5px;right:8px;bottom:5px;left:8px;min-height:0;height:auto;max-height:none;display:flex;flex-direction:column;justify-content:safe center;overflow:hidden}.spreadsheet-editor th[rowspan]:not([rowspan="1"])[style*="vertical-align: top"]>.spreadsheet-cell-content,.spreadsheet-editor td[rowspan]:not([rowspan="1"])[style*="vertical-align: top"]>.spreadsheet-cell-content{justify-content:flex-start}.spreadsheet-editor th[rowspan]:not([rowspan="1"])[style*="vertical-align: bottom"]>.spreadsheet-cell-content,.spreadsheet-editor td[rowspan]:not([rowspan="1"])[style*="vertical-align: bottom"]>.spreadsheet-cell-content{justify-content:safe flex-end}.spreadsheet-editor tr.spreadsheet-row-auto-fit-measuring>th,.spreadsheet-editor tr.spreadsheet-row-auto-fit-measuring>td,.spreadsheet-editor tr.spreadsheet-row-auto-fit-measuring>th>.spreadsheet-cell-content,.spreadsheet-editor tr.spreadsheet-row-auto-fit-measuring>td>.spreadsheet-cell-content{height:auto!important;max-height:none!important;overflow:visible!important}.spreadsheet-editor tr.spreadsheet-row-auto-fit-measuring>th[rowspan]:not([rowspan="1"])>.spreadsheet-cell-content,.spreadsheet-editor tr.spreadsheet-row-auto-fit-measuring>td[rowspan]:not([rowspan="1"])>.spreadsheet-cell-content{position:static;inset:auto;display:block;justify-content:normal}.spreadsheet-editor .selectedCell{z-index:6;background-image:linear-gradient(#2ba9ff1a,#2ba9ff1a);box-shadow:var(--spreadsheet-selection-top, 0 0 transparent),var(--spreadsheet-selection-right, 0 0 transparent),var(--spreadsheet-selection-bottom, 0 0 transparent),var(--spreadsheet-selection-left, 0 0 transparent);caret-color:transparent}.spreadsheet-editor .spreadsheet-selection-top{--spreadsheet-selection-top: inset 0 2px 0 var(--primary)}.spreadsheet-editor .spreadsheet-selection-right{--spreadsheet-selection-right: inset -2px 0 0 var(--primary)}.spreadsheet-editor .spreadsheet-selection-bottom{--spreadsheet-selection-bottom: inset 0 -2px 0 var(--primary)}.spreadsheet-editor .spreadsheet-selection-left{--spreadsheet-selection-left: inset 2px 0 0 var(--primary)}.spreadsheet-editor .selectedCell.spreadsheet-selection-active{z-index:7;background-image:none;box-shadow:inset 0 0 0 2px var(--primary);caret-color:transparent}.spreadsheet-editor .spreadsheet-selection-corner>p:last-child:after,.spreadsheet-editor .spreadsheet-selection-corner>.spreadsheet-cell-content>p:last-child:after{position:absolute;z-index:10;right:-4px;bottom:-4px;width:7px;height:7px;border:1px solid #fff;border-radius:2px;background:var(--primary);content:"";cursor:crosshair;pointer-events:auto}.spreadsheet-editor td[data-wrap-text=false]>p,.spreadsheet-editor th[data-wrap-text=false]>p,.spreadsheet-editor td[data-wrap-text=false]>.spreadsheet-cell-content>p,.spreadsheet-editor th[data-wrap-text=false]>.spreadsheet-cell-content>p{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.spreadsheet-editor .column-resize-handle{display:none}.spreadsheet-resize-measure{position:fixed!important;top:0!important;left:-100000px!important;width:max-content!important;min-width:0!important;min-height:0!important;contain:layout style;visibility:hidden;zoom:1!important}.spreadsheet-resize-measure table{width:max-content!important;min-width:0!important;table-layout:auto!important}.spreadsheet-resize-measure .tableWrapper{width:max-content!important;min-width:0!important;padding:0!important}.spreadsheet-resize-measure th[rowspan]:not([rowspan="1"])>.spreadsheet-cell-content,.spreadsheet-resize-measure td[rowspan]:not([rowspan="1"])>.spreadsheet-cell-content{position:static!important;inset:auto!important;display:block!important;height:auto!important;max-height:none!important;overflow:visible!important}.spreadsheet-resize-measure tr>:first-child:after,.spreadsheet-resize-measure tr:first-child>th:before,.spreadsheet-resize-measure tr:first-child>td:before{display:none!important;content:none!important}.spreadsheet-sheetbar{min-height:44px;display:flex;flex:0 0 auto;align-items:center;justify-content:space-between;border-top:1px solid var(--border);background:#fbfcfd;padding:0 10px}.spreadsheet-sheet-tabs,.spreadsheet-zoom{display:flex;align-items:center;gap:3px}.spreadsheet-sheet-tabs{min-width:0;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin}.spreadsheet-sheetbar button{min-width:34px;height:34px;display:inline-flex;align-items:center;justify-content:center;gap:6px;border:0;border-radius:6px;background:transparent;color:var(--text-secondary);font:inherit;cursor:pointer}.spreadsheet-sheetbar button:hover:not(:disabled),.spreadsheet-sheetbar .spreadsheet-sheet-tab:hover{background:var(--surface-hover);color:var(--text)}.spreadsheet-sheetbar button:focus-visible,.spreadsheet-sheetbar .spreadsheet-sheet-tab:focus-visible{outline:2px solid var(--primary);outline-offset:-2px}.spreadsheet-sheetbar button:disabled{cursor:not-allowed;opacity:.38}.spreadsheet-sheetbar .spreadsheet-sheet-tab{position:relative;min-width:92px;max-width:220px;height:36px;flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;gap:6px;border-radius:5px 5px 0 0;padding:0 12px;box-sizing:border-box;color:var(--text-secondary);font-size:12px;font-weight:550;cursor:grab;-webkit-user-select:none;user-select:none;transition:background-color .16s ease,color .16s ease,opacity .16s ease}.spreadsheet-sheetbar .spreadsheet-sheet-tab>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.spreadsheet-sheetbar .spreadsheet-sheet-tab.is-active{color:var(--primary);font-weight:650}.spreadsheet-sheetbar .spreadsheet-sheet-tab.is-readonly{cursor:default}.spreadsheet-sheetbar .spreadsheet-sheet-tab.is-active:after{position:absolute;right:7px;bottom:-4px;left:7px;height:2px;border-radius:999px;background:var(--primary);content:""}.spreadsheet-sheetbar .spreadsheet-sheet-tab.is-dragging{opacity:.45}.spreadsheet-sheetbar .spreadsheet-sheet-tab.is-drop-before{box-shadow:inset 3px 0 0 var(--primary)}.spreadsheet-sheetbar .spreadsheet-sheet-tab.is-drop-after{box-shadow:inset -3px 0 0 var(--primary)}.spreadsheet-sheetbar .spreadsheet-sheet-tab input{width:min(150px,16vw);min-width:72px;height:26px;border:1px solid var(--primary);border-radius:4px;outline:2px solid rgb(47 107 255 / .14);background:#fff;padding:0 6px;color:var(--text);font:600 12px/1 -apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}.spreadsheet-sheetbar .spreadsheet-add-sheet{flex:0 0 auto}.spreadsheet-editor .tableWrapper.is-hidden-spreadsheet-sheet{display:none!important}.spreadsheet-zoom output{min-width:46px;color:var(--text-secondary);font-size:12px;text-align:center;font-variant-numeric:tabular-nums}@media(prefers-reduced-motion:reduce){.spreadsheet-sheetbar .spreadsheet-sheet-tab{transition:none}}.public-document-page.is-spreadsheet{height:100dvh;min-height:0;overflow:hidden;background:#f6f7f9}.public-document-page.is-spreadsheet .public-document-header-inner{width:calc(100% - 32px);min-height:56px}.public-document-article.is-spreadsheet{width:100%;height:calc(100dvh - 57px);min-height:0;display:flex;flex-direction:column;margin:0;padding:0 16px 16px;box-sizing:border-box}.public-spreadsheet-summary{min-height:80px;display:flex;flex:0 0 auto;flex-direction:column;justify-content:center;padding:10px 4px;box-sizing:border-box}.public-document-article.is-spreadsheet>.public-spreadsheet-summary>h1{max-width:min(900px,72vw);overflow:hidden;margin:0;color:var(--text);font-size:clamp(20px,2.2vw,26px);font-weight:720;letter-spacing:-.02em;line-height:1.25;text-overflow:ellipsis;white-space:nowrap}.public-spreadsheet-summary .public-document-meta{display:flex;align-items:center;gap:6px;margin-top:7px}.public-file-type{display:inline-flex;align-items:center;gap:5px;border-radius:999px;margin-left:2px;background:var(--success-soft);padding:3px 8px;color:var(--success);font-weight:700}.public-spreadsheet-summary .public-refresh-error{width:fit-content;max-width:min(720px,90vw);margin:7px 0 0;overflow:hidden;padding:5px 8px;text-overflow:ellipsis;white-space:nowrap}.public-spreadsheet-workspace{min-height:0;display:flex;flex:1;flex-direction:column;overflow:hidden;border:1px solid var(--border);border-radius:10px;background:#fff;box-shadow:0 4px 18px #1f2d4612}.public-spreadsheet-viewport{position:relative;min-height:0;flex:1;overflow:auto;overscroll-behavior:contain;background:#fff;scrollbar-gutter:stable}.public-document-prose.is-spreadsheet{min-width:100%;min-height:100%;border:0;margin:0;padding:0}.public-spreadsheet-editor{min-height:100%;background:#fff}.public-spreadsheet-editor .tableWrapper.spreadsheet-grid-table{min-width:max(1002px,100%)}.public-spreadsheet-editor .spreadsheet-grid-corner,.public-spreadsheet-editor .spreadsheet-column-header,.public-spreadsheet-editor .spreadsheet-row-header{cursor:default}.public-spreadsheet-editor th,.public-spreadsheet-editor td,.public-spreadsheet-editor th>p,.public-spreadsheet-editor td>p,.public-spreadsheet-editor .spreadsheet-cell-content>p{cursor:text}.public-spreadsheet-editor .is-hidden-spreadsheet-sheet{display:none!important}.public-spreadsheet-sheetbar{min-height:48px;padding:0 8px 0 10px;box-shadow:0 -1px #1f2d4608}.public-spreadsheet-sheetbar .spreadsheet-sheet-tabs{gap:4px}.public-spreadsheet-sheetbar .spreadsheet-sheet-tab{min-width:104px;height:44px;padding:0 14px;cursor:pointer}.public-spreadsheet-sheetbar .spreadsheet-sheet-tab.is-readonly{cursor:pointer}.public-spreadsheet-sheetbar .spreadsheet-sheet-tab.is-active:after{bottom:0}.public-spreadsheet-sheetbar .spreadsheet-zoom{flex:0 0 auto;margin-left:12px}.public-spreadsheet-sheetbar .spreadsheet-zoom button{width:44px;height:44px}@media(max-width:720px){.page-header>.new-file-menu{width:100%}.page-header>.new-file-menu .new-file-trigger{width:100%}.new-file-trigger{min-height:44px}.new-file-popover{right:0;left:0;width:100%}.new-file-menu-tree{width:auto}.new-file-menu-tree .new-file-popover{width:min(260px,calc(100vw - 32px))}.editor-canvas.is-spreadsheet{width:100%;padding:0 0 20px}.spreadsheet-format-toolbar{flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;padding:5px 8px}.spreadsheet-action-menu-panel{position:fixed;top:142px;right:12px;left:auto}.spreadsheet-formula-bar{grid-template-columns:42px minmax(150px,1fr)}.spreadsheet-topbar-title{width:min(180px,42vw)}.public-document-page.is-spreadsheet .public-document-header-inner{width:calc(100% - 16px)}.public-document-article.is-spreadsheet{height:calc(100dvh - 57px);padding:0 8px 8px}.public-spreadsheet-summary{min-height:72px;padding:8px 2px}.public-document-article.is-spreadsheet>.public-spreadsheet-summary>h1{max-width:calc(100vw - 24px);font-size:20px}.public-spreadsheet-summary .public-document-meta{max-width:calc(100vw - 24px);overflow:hidden;margin-top:5px;text-overflow:ellipsis;white-space:nowrap}.public-spreadsheet-summary .public-document-meta>.public-file-type{flex:0 0 auto}.public-spreadsheet-workspace{border-radius:8px}.public-spreadsheet-sheetbar{min-height:52px;padding-right:4px}.public-spreadsheet-sheetbar .spreadsheet-sheet-tab{min-width:96px;height:48px;padding:0 10px}.public-spreadsheet-sheetbar .spreadsheet-zoom{margin-left:6px}.public-spreadsheet-sheetbar .spreadsheet-zoom button{width:44px}}.app-shell{padding-left:256px}.global-sidebar{width:256px;background:#f7f8fa;padding:12px}.sidebar-account{min-height:56px;display:grid;grid-template-columns:38px minmax(0,1fr) 40px;align-items:center;gap:9px;border:1px solid var(--border);border-radius:10px;background:var(--surface);padding:8px}.sidebar-account .user-avatar{width:38px;height:38px;border-radius:10px}.sidebar-account .sidebar-user-meta{gap:1px}.sidebar-account .sidebar-user-meta strong{font-size:13px}.sidebar-account .sidebar-user-meta small{color:var(--text-muted);font-size:11px}.sidebar-account .icon-button{color:var(--text-muted)}.brand-row{min-height:48px;height:auto;margin-top:8px;padding:4px}.sidebar-workspace{min-width:0;flex:1}.sidebar-workspace>span:last-child{min-width:0;display:grid;gap:1px}.sidebar-workspace strong,.sidebar-workspace small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sidebar-workspace strong{color:var(--text);font-size:13px}.sidebar-workspace small{color:var(--text-muted);font-size:10px;font-weight:500}.sidebar-create.new-file-menu{margin-top:8px}.sidebar-search-area{position:relative}.sidebar-search{margin:8px 0 10px;background:#f0f1f3}.sidebar-search kbd{border:0;background:transparent}.sidebar-search-area .search-popover{top:calc(100% + 4px);right:0;left:0;width:min(360px,calc(100vw - 32px))}.sidebar-primary-nav{margin-top:2px}.sidebar-section{margin-top:14px}.sidebar-section-title{padding-right:8px;padding-left:8px;letter-spacing:.04em;text-transform:none}.knowledge-nav-group+.knowledge-nav-group{margin-top:14px}.knowledge-nav-heading{min-height:28px;display:flex;align-items:center;justify-content:space-between;padding:4px 8px;color:var(--text-muted);font-size:11px;font-weight:650}.knowledge-nav-heading>span:first-child{display:inline-flex;align-items:center;gap:6px}.knowledge-nav-empty{margin:3px 10px 6px;color:var(--text-muted);font-size:11px}.admin-nav{margin-top:8px}.workspace-dashboard{width:min(1480px,100%);margin:0 auto;padding-top:30px}.dashboard-compact-header{display:flex;align-items:flex-end;justify-content:space-between;gap:32px;border-bottom:1px solid var(--border);padding-bottom:24px}.dashboard-compact-header h1{margin:3px 0 0;font-size:clamp(25px,2.6vw,32px);line-height:1.25;letter-spacing:-.025em}.dashboard-compact-header>div:first-child>p:last-child{margin:7px 0 0;color:var(--text-secondary);font-size:14px}.dashboard-summary{display:flex;align-items:center;gap:18px;color:var(--text-muted);font-size:12px;white-space:nowrap}.dashboard-summary span+span{border-left:1px solid var(--border);padding-left:18px}.dashboard-summary strong{color:var(--text);font-size:15px;font-variant-numeric:tabular-nums}.workbench-section{margin-top:30px;scroll-margin-top:24px}.workbench-section-heading{min-height:44px;display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:12px}.workbench-section-heading h2{margin:0;font-size:19px;line-height:1.35}.workbench-section-heading p{margin:3px 0 0;color:var(--text-muted);font-size:13px}.workspace-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.workspace-actions>.new-file-menu{display:block}.workspace-action-card{width:100%;min-height:78px;display:grid;grid-template-columns:40px minmax(0,1fr) 18px;align-items:center;gap:11px;border:1px solid var(--border);border-radius:10px;background:var(--surface);padding:12px 13px;color:var(--text);text-align:left;cursor:pointer;transition:border-color .18s ease,background-color .18s ease,box-shadow .18s ease}.workspace-action-card:hover:not(:disabled){border-color:#cbd3df;background:#fbfcfe;box-shadow:var(--shadow-sm)}.workspace-action-card:focus-visible{outline:3px solid rgb(47 107 255 / .22);outline-offset:2px}.workspace-action-card:disabled{cursor:not-allowed;opacity:.48}.workspace-action-card>span:nth-child(2){min-width:0;display:grid;gap:3px}.workspace-action-card strong{overflow:hidden;font-size:14px;text-overflow:ellipsis;white-space:nowrap}.workspace-action-card small{overflow:hidden;color:var(--text-muted);font-size:12px;text-overflow:ellipsis;white-space:nowrap}.workspace-action-card>svg{color:var(--text-muted)}.workspace-action-icon,.new-file-trigger-icon{width:40px;height:40px;display:inline-grid;place-items:center;border-radius:9px}.workspace-action-icon{background:var(--surface-hover)}.action-icon-personal{background:#eef4ff;color:#3265cb}.action-icon-team{background:#edf8f2;color:#18714c}.action-icon-members{background:#f3efff;color:#6f4fd1}.dashboard-file-action .new-file-trigger-icon{background:var(--primary-soft);color:var(--primary)}.new-file-trigger-copy{min-width:0;display:inline-flex;align-items:center;gap:5px}.new-file-trigger-copy strong{font:inherit;font-weight:700}.new-file-trigger-copy small{color:var(--text-muted);font-size:12px;font-weight:500}.dashboard-file-action .new-file-trigger-copy{display:grid;gap:3px}.dashboard-file-action .new-file-chevron{color:var(--text-muted)}.workspace-actions .new-file-popover{right:auto;left:0}.button .new-file-trigger-icon,.tree-new .new-file-trigger-icon{width:auto;height:auto;border-radius:0}.button .new-file-trigger-copy,.tree-new .new-file-trigger-copy{flex:1}.button .new-file-trigger-copy small,.tree-new .new-file-trigger-copy small{display:none}.knowledge-lanes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.knowledge-lane{min-width:0;overflow:hidden;border:1px solid var(--border);border-radius:11px;background:var(--surface)}.knowledge-lane>header{min-height:68px;display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:10px;border-bottom:1px solid var(--border);background:#fbfcfd;padding:12px 14px}.knowledge-lane>header>span:nth-child(2){min-width:0;display:grid;gap:2px}.knowledge-lane>header strong{font-size:14px}.knowledge-lane>header small{color:var(--text-muted);font-size:11px}.knowledge-lane-icon{width:38px;height:38px;display:inline-grid;place-items:center;border-radius:9px}.lane-icon-personal{background:#eef4ff;color:#3265cb}.lane-icon-team{background:#edf8f2;color:#18714c}.knowledge-lane-count{min-width:28px;border-radius:999px;background:var(--surface-hover);padding:3px 8px;color:var(--text-secondary);font-size:11px;font-weight:700;text-align:center}.knowledge-lane-list{min-height:150px}.knowledge-lane-row{min-height:62px;display:grid;grid-template-columns:34px minmax(0,1fr) 18px;align-items:center;gap:10px;padding:9px 14px;transition:background-color .16s ease}.knowledge-lane-row+.knowledge-lane-row{border-top:1px solid #edf0f4}.knowledge-lane-row:hover{background:#fafbfd}.knowledge-lane-row:focus-visible{position:relative;outline:3px solid rgb(47 107 255 / .2);outline-offset:-3px}.knowledge-row-mark{width:34px;height:34px;display:inline-grid;place-items:center;border-radius:8px}.knowledge-lane-row>span:nth-child(2){min-width:0;display:grid;gap:2px}.knowledge-lane-row strong{overflow:hidden;font-size:13px;text-overflow:ellipsis;white-space:nowrap}.knowledge-lane-row small{overflow:hidden;color:var(--text-muted);font-size:11px;text-overflow:ellipsis;white-space:nowrap}.knowledge-lane-row>svg{color:var(--text-muted)}.knowledge-lane-empty{min-height:150px;display:grid;place-content:center;justify-items:center;gap:8px;padding:20px;color:var(--text-muted);text-align:center}.knowledge-lane-empty p{max-width:280px;margin:0;font-size:12px;line-height:1.6}.recent-heading{align-items:center}.recent-filter-tabs{display:inline-flex;align-items:center;border-radius:8px;background:var(--surface-hover);padding:3px}.recent-filter-tabs button{min-height:34px;border:0;border-radius:6px;background:transparent;padding:6px 13px;color:var(--text-secondary);font-size:12px;cursor:pointer}.recent-filter-tabs button[aria-pressed=true]{background:var(--surface);color:var(--text);box-shadow:var(--shadow-sm);font-weight:700}.recent-filter-tabs button:focus-visible{outline:2px solid var(--primary);outline-offset:1px}.recent-workbench-list{overflow:hidden;border:1px solid var(--border);border-radius:11px;background:var(--surface)}.recent-workbench-head,.recent-workbench-row{display:grid;grid-template-columns:minmax(260px,1.45fr) minmax(180px,.9fr) minmax(100px,.45fr) 130px;align-items:center;gap:18px;padding:0 16px}.recent-workbench-head{min-height:42px;border-bottom:1px solid var(--border);background:#fbfcfd;color:var(--text-muted);font-size:11px;font-weight:650}.recent-workbench-row{min-height:62px;color:var(--text-secondary);font-size:12px;transition:background-color .16s ease}.recent-workbench-row+.recent-workbench-row{border-top:1px solid #edf0f4}.recent-workbench-row:hover{background:#fafbfd}.recent-workbench-row:focus-visible{outline:3px solid rgb(47 107 255 / .2);outline-offset:-3px}.recent-file-cell{min-width:0;display:flex;align-items:center;gap:10px}.recent-file-cell strong{overflow:hidden;color:var(--text);font-size:13px;text-overflow:ellipsis;white-space:nowrap}.recent-icon.is-spreadsheet{background:var(--success-soft)}.recent-base-cell{min-width:0;display:flex;align-items:center;gap:6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.recent-time{color:var(--text-muted);font-variant-numeric:tabular-nums}.recent-workbench-empty{min-height:150px;display:grid;place-content:center;justify-items:center;gap:7px;color:var(--text-muted)}.recent-workbench-empty p{margin:0}.knowledge-kind-field{border:0;margin:0;padding:0}.knowledge-kind-field legend,.color-field legend{color:var(--text-secondary);font-size:13px;font-weight:700}.knowledge-kind-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:9px}.knowledge-kind-options label{min-height:76px;display:grid;grid-template-columns:36px minmax(0,1fr);align-items:center;gap:9px;border:1px solid var(--border-strong);border-radius:10px;padding:10px;cursor:pointer}.knowledge-kind-options label.is-selected{border-color:var(--primary);background:var(--primary-soft);box-shadow:0 0 0 2px #2f6bff1a}.knowledge-kind-options label.is-disabled{cursor:not-allowed;opacity:.45}.knowledge-kind-options input{position:absolute;opacity:0}.knowledge-kind-options label>span:last-child{min-width:0;display:grid;gap:2px}.knowledge-kind-options strong{font-size:13px}.knowledge-kind-options small{color:var(--text-muted);font-size:11px}.knowledge-kind-icon{width:36px;height:36px;display:inline-grid;place-items:center;border-radius:8px;background:var(--surface-hover);color:var(--text-secondary)}.knowledge-kind-options label.is-selected .knowledge-kind-icon{background:var(--surface);color:var(--primary)}.personal-visibility-note{min-height:60px;display:grid;grid-template-columns:24px minmax(0,1fr);align-items:start;gap:8px;border:1px solid #cfdcf9;border-radius:9px;background:#f5f8ff;padding:11px 12px;color:#31579c}.personal-visibility-note>span{display:grid;gap:2px}.personal-visibility-note small{color:#60759d;font-size:11px;line-height:1.5}.personal-visibility-note.is-team{border-color:#cbe2d5;background:#f3faf6;color:#176f4a}.personal-visibility-note.is-team small{color:#4f7866}.knowledge-kind-pill{min-height:25px;display:inline-flex;align-items:center;gap:5px;border-radius:999px;margin-top:10px;padding:4px 9px;font-size:11px;font-weight:700}.knowledge-kind-pill.is-personal{background:#eef4ff;color:#315fae}.knowledge-kind-pill.is-team{background:#edf8f2;color:#176f4a}@media(max-width:1180px){.workspace-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.recent-workbench-head,.recent-workbench-row{grid-template-columns:minmax(220px,1.2fr) minmax(160px,.8fr) 110px}.recent-workbench-head>span:nth-child(3),.recent-workbench-row>span:nth-child(3){display:none}}@media(max-width:960px){.app-shell{padding-left:0}.global-sidebar{width:min(300px,88vw)}.workspace-dashboard{padding-top:72px}}@media(max-width:720px){.workspace-dashboard{padding:72px 16px 48px}.dashboard-compact-header{align-items:flex-start;flex-direction:column;gap:16px;padding-bottom:20px}.dashboard-summary{width:100%;justify-content:space-between;gap:8px;white-space:normal}.dashboard-summary span+span{padding-left:8px}.workspace-actions,.knowledge-lanes{grid-template-columns:1fr}.workbench-section{margin-top:26px}.workbench-section-heading{align-items:flex-start;flex-direction:column;gap:10px}.recent-heading{align-items:stretch}.recent-filter-tabs{width:100%}.recent-filter-tabs button{flex:1;min-height:40px}.recent-workbench-head{display:none}.recent-workbench-row{min-height:80px;grid-template-columns:minmax(0,1fr) auto;gap:7px 10px;padding:11px 12px}.recent-workbench-row .recent-file-cell{grid-column:1 / -1}.recent-workbench-row>span:nth-child(3){display:none}.recent-base-cell{grid-column:1}.recent-time{grid-column:2}.knowledge-kind-options{grid-template-columns:1fr}}@media(prefers-reduced-motion:reduce){.workspace-action-card,.knowledge-lane-row,.recent-workbench-row{transition:none}}.brand-row{min-height:52px;margin-top:0;gap:8px;padding:4px}.sidebar-brand-actions{display:flex;flex:0 0 auto;align-items:center;gap:2px}.sidebar-avatar-link{width:44px;height:44px;display:inline-grid;place-items:center;border-radius:10px;transition:background-color .18s ease}.sidebar-avatar-link:hover,.sidebar-avatar-link.router-link-active{background:var(--surface-hover)}.sidebar-avatar-link .user-avatar{width:32px;height:32px;border-radius:9px;box-shadow:0 0 0 2px var(--surface);font-size:12px}.knowledge-header-actions{display:flex;align-items:center;gap:10px}.knowledge-pill-row{display:flex;align-items:center;flex-wrap:wrap;gap:7px}.knowledge-access-pill{min-height:25px;display:inline-flex;align-items:center;gap:5px;border-radius:999px;margin-top:10px;background:var(--surface-hover);padding:4px 9px;color:var(--text-secondary);font-size:11px;font-weight:700}.settings-page{width:min(1480px,100%);margin:0 auto}.settings-header{max-width:1280px;border-bottom:1px solid var(--border);padding-bottom:24px}.settings-layout{max-width:1280px;min-height:560px;display:grid;grid-template-columns:224px minmax(0,1fr);gap:28px;margin:0 auto}.settings-subnav{align-self:start;display:grid;gap:5px;border:1px solid var(--border);border-radius:var(--radius-md);background:var(--surface);padding:7px}.settings-subnav a{min-height:58px;display:grid;grid-template-columns:22px minmax(0,1fr);align-items:center;gap:10px;border-radius:8px;padding:8px 10px;color:var(--text-secondary);transition:background-color .18s ease,color .18s ease}.settings-subnav a:hover{background:var(--surface-hover);color:var(--text)}.settings-subnav a.router-link-exact-active{background:var(--primary-soft);color:#2455c5}.settings-subnav a>span{min-width:0;display:grid;gap:1px}.settings-subnav strong{color:inherit;font-size:13px}.settings-subnav small{color:var(--text-muted);font-size:11px}.settings-content,.settings-subpage{min-width:0}.settings-subpage-header{min-height:64px;display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin-bottom:20px}.settings-subpage-header h2{margin:0;font-size:22px;letter-spacing:-.02em}.settings-subpage-header p{margin:5px 0 0;color:var(--text-secondary)}.settings-card{border:1px solid var(--border);border-radius:var(--radius-md);background:var(--surface);box-shadow:var(--shadow-sm)}.settings-loading{min-height:160px;display:flex;align-items:center;justify-content:center;gap:9px;border:1px solid var(--border);border-radius:var(--radius-md);background:var(--surface);color:var(--text-secondary)}.system-settings-form{display:grid;gap:16px}.system-settings-card{overflow:hidden}.system-settings-card-header{min-height:76px;display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:12px;border-bottom:1px solid var(--border);background:#fbfcfd;padding:14px 18px}.system-settings-card-header>span:nth-child(2){min-width:0;display:grid;gap:3px}.system-settings-card-header strong{font-size:15px}.system-settings-card-header small{color:var(--text-muted)}.settings-section-icon{width:42px;height:42px;display:inline-grid;place-items:center;border-radius:11px;background:var(--primary-soft);color:var(--primary)}.system-settings-card-body{padding:20px 18px}.brand-settings-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,.8fr);gap:28px}.logo-setting-field{display:grid;gap:7px}.field-label{color:var(--text);font-size:13px;font-weight:650}.logo-setting-control{display:flex;align-items:center;gap:14px}.logo-preview{width:68px;height:68px;display:inline-grid;flex:0 0 68px;place-items:center;overflow:hidden;border:1px solid var(--border);border-radius:15px;background:var(--surface-subtle)}.logo-preview img{width:100%;height:100%;display:block;object-fit:contain}.logo-setting-actions{min-width:0;display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px}.logo-setting-actions small{width:100%;color:var(--text-muted)}.logo-upload-button{min-height:44px;cursor:pointer}.logo-upload-button input{position:absolute;width:1px;height:1px;overflow:hidden;opacity:0}.smtp-settings-grid{display:grid;grid-template-columns:minmax(0,1fr) 140px 180px;gap:18px}.smtp-settings-grid .form-field:nth-child(4),.smtp-settings-grid .form-field:nth-child(5),.smtp-settings-grid .form-field:nth-child(6),.smtp-settings-grid .form-field:nth-child(7){grid-column:span 1}.smtp-settings-grid .form-field:nth-child(4),.smtp-settings-grid .form-field:nth-child(5){grid-column:span 1}.smtp-settings-grid .form-field:nth-child(7){grid-column:span 2}.inline-checkbox{min-height:32px;display:inline-flex;align-items:center;gap:7px;color:var(--text-secondary)!important;font-weight:500!important}.inline-checkbox input{width:16px!important;min-height:16px!important;margin:0}.mail-status{display:inline-flex;align-items:center;border-radius:999px;padding:4px 9px;font-size:12px;font-weight:700;white-space:nowrap}.mail-status.is-ready{background:var(--success-soft);color:#0c754a}.mail-status.is-incomplete{background:var(--warning-soft);color:#8c570a}.system-settings-card-footer{min-height:68px;display:flex;align-items:center;gap:12px;border-top:1px solid var(--border);background:#fbfcfd;padding:12px 18px}.system-settings-card-footer .button{min-height:44px}.system-settings-card-footer small{color:var(--text-muted)}.settings-feedback{border-radius:9px;margin:0;padding:11px 13px}.settings-feedback.is-success{border:1px solid #b8dfcb;background:var(--success-soft);color:#0c754a}.settings-feedback.is-error{border:1px solid #f2bdc5;background:var(--danger-soft);color:#9d2635}.system-settings-savebar{position:sticky;z-index:10;bottom:16px;min-height:64px;display:flex;align-items:center;justify-content:space-between;gap:16px;border:1px solid var(--border-strong);border-radius:var(--radius-md);background:#fffffff5;box-shadow:var(--shadow-md);padding:10px 12px 10px 16px;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.system-settings-savebar>span{color:var(--text-muted);font-size:12px}.system-settings-savebar .button{min-height:44px}.account-settings-card.has-settings-above{margin-top:28px}.account-settings-card{min-height:88px;display:grid;grid-template-columns:48px minmax(0,1fr) auto;align-items:center;gap:13px;padding:16px 18px}.account-settings-card>span:nth-child(2){min-width:0;display:grid;gap:2px}.account-settings-card strong{font-size:15px}.account-settings-card small{color:var(--text-muted)}.settings-avatar{width:48px;height:48px;border-radius:12px;font-size:15px}.role-policy-card{margin-top:16px;overflow:hidden}.role-policy-card>header{min-height:68px;display:flex;align-items:center;gap:11px;border-bottom:1px solid var(--border);background:#fbfcfd;padding:14px 18px;color:var(--primary)}.role-policy-card>header>span,.role-policy-row>span:last-child{min-width:0;display:grid;gap:2px}.role-policy-card>header strong{color:var(--text)}.role-policy-card>header small,.role-policy-row small{color:var(--text-muted)}.role-policy-row{min-height:78px;display:grid;grid-template-columns:40px minmax(0,1fr);align-items:center;gap:12px;padding:13px 18px}.role-policy-row+.role-policy-row{border-top:1px solid #edf0f4}.role-policy-icon{width:40px;height:40px;display:inline-grid;place-items:center;border-radius:10px;background:var(--surface-hover);color:var(--text-secondary)}.role-policy-icon.is-admin{background:var(--primary-soft);color:var(--primary)}.role-policy-note{min-height:48px;display:flex;align-items:center;gap:8px;border-top:1px solid #d8e2ff;margin:0;background:#f6f8ff;padding:11px 18px;color:#31579c;font-size:12px}.users-page .admin-summary,.users-page .knowledge-toolbar,.users-page .user-table{max-width:none}.permission-dialog{display:grid;gap:14px}.permission-loading{min-height:180px;display:grid;place-items:center;color:var(--text-muted)}.permission-add-panel{border:0;margin:0;padding:0}.permission-add-panel legend{color:var(--text-secondary);font-size:12px;font-weight:700}.permission-add-fields{display:grid;grid-template-columns:minmax(0,1fr) 120px auto;align-items:end;gap:10px;margin-top:8px}.permission-add-fields .form-field{gap:5px}.permission-add-fields .form-field label{font-size:11px}.permission-add-fields select{min-height:42px}.permission-add-button{min-height:42px;white-space:nowrap}.permission-list-head,.permission-row{display:grid;grid-template-columns:minmax(0,1fr) 120px 44px;align-items:center;gap:8px}.permission-list-head{min-height:30px;padding:0 10px;color:var(--text-muted);font-size:11px;font-weight:650}.permission-list-head span:not(:first-child){text-align:center}.permission-list{max-height:min(420px,52vh);overflow-y:auto;border:1px solid var(--border);border-radius:10px}.permission-row{min-height:66px;padding:9px 10px}.permission-row+.permission-row{border-top:1px solid #edf0f4}.permission-row.is-admin{background:#fbfcff}.permission-member{min-width:0;display:flex;align-items:center;gap:10px}.permission-member .user-avatar{width:36px;height:36px;flex:0 0 36px}.permission-member>span:last-child{min-width:0;display:grid;gap:1px}.permission-member strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.permission-member small{overflow:hidden;color:var(--text-muted);font-size:11px;text-overflow:ellipsis;white-space:nowrap}.permission-fixed-role{min-height:36px;display:inline-flex;align-items:center;justify-content:center;gap:6px;border-radius:7px;background:var(--primary-soft);color:#31579c;font-size:12px;font-weight:700}.permission-role-select{min-height:38px;padding:7px 30px 7px 10px;font-size:12px}.permission-remove-button{width:44px;min-height:44px;color:var(--text-muted)}.permission-remove-button:hover{background:var(--danger-soft);color:var(--danger)}.permission-empty{min-height:72px;display:grid;place-items:center;border-top:1px solid #edf0f4;padding:14px;color:var(--text-muted);font-size:12px;text-align:center}.permission-help{display:flex;align-items:flex-start;gap:7px;margin:0;color:var(--text-muted);font-size:12px}.permission-help svg{flex:0 0 auto;margin-top:1px;color:var(--primary)}@media(max-width:900px){.settings-layout{grid-template-columns:1fr;gap:18px}.settings-subnav{grid-template-columns:repeat(2,minmax(0,1fr))}.brand-settings-grid{grid-template-columns:1fr}.smtp-settings-grid{grid-template-columns:minmax(0,1fr) minmax(120px,.35fr)}.smtp-settings-grid .form-field:nth-child(3){grid-column:1 / -1}.smtp-settings-grid .form-field:nth-child(7){grid-column:1 / -1}}@media(max-width:720px){.sidebar-brand-actions{gap:0}.settings-page{padding:72px 16px 48px}.settings-subnav{grid-template-columns:1fr}.settings-subpage-header{align-items:stretch;flex-direction:column;gap:12px}.settings-subpage-header .button{width:100%}.account-settings-card{grid-template-columns:44px minmax(0,1fr)}.account-settings-card .button{grid-column:1 / -1;width:100%}.system-settings-card-header{grid-template-columns:42px minmax(0,1fr);padding:14px}.system-settings-card-header .mail-status{grid-column:2;width:max-content}.system-settings-card-body{padding:16px 14px}.smtp-settings-grid{grid-template-columns:1fr}.smtp-settings-grid .form-field:nth-child(n){grid-column:1}.system-settings-card-footer{align-items:stretch;flex-direction:column}.system-settings-card-footer .button{width:100%}.system-settings-savebar{position:static;align-items:stretch;flex-direction:column}.system-settings-savebar .button,.knowledge-header-actions{width:100%}.knowledge-header-actions>*{min-width:0;flex:1}.permission-add-fields{grid-template-columns:minmax(0,1fr) 110px}.permission-add-button{grid-column:1 / -1;width:100%}.permission-list-head,.permission-row{grid-template-columns:minmax(0,1fr) 108px 44px}}@media(prefers-reduced-motion:reduce){.sidebar-avatar-link,.settings-subnav a{transition:none}}
