*,:before,:after{box-sizing:border-box}html,body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;touch-action:pan-x pan-y;width:100%;height:100%;margin:0;padding:0}html{font-size:max(14px,min(.9vw,16px));line-height:1.5}@media (max-width:768px){html{font-size:max(14px,min(3.5vw,15px))}}img,video,canvas,svg{max-width:100%;height:auto;display:block}button,input,textarea,select{font:inherit;color:inherit;background:0 0;border:none;outline:none}h1,h2,h3,h4,h5,h6,p{font-weight:inherit;margin:0}:root{--design-width:1440;--font-xs:.75rem;--font-sm:.875rem;--font-md:1rem;--font-lg:1.125rem;--font-xl:1.4rem;--space-1:.25rem;--space-2:.5rem;--space-3:.75rem;--space-4:1rem;--space-5:1.5rem;--space-6:2rem;--radius-sm:.375rem;--radius-md:.625rem;--radius-lg:1rem;--max-content-width:1440px}::selection{background:rgba(120,160,255,.35)}[hidden]{display:none!important}.visually-hidden{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;position:absolute!important}html{height:-webkit-fill-available}body{-webkit-tap-highlight-color:transparent;min-height:100dvh}.scroll{-webkit-overflow-scrolling:touch}.safe-area{padding-bottom:env(safe-area-inset-bottom);padding-top:env(safe-area-inset-top)}.page{min-height:100dvh}.safe-area{padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}.scroll{-webkit-overflow-scrolling:touch;overscroll-behavior:contain;overflow-y:auto}*{-webkit-tap-highlight-color:transparent;touch-action:manipulation}html,body{width:100%;height:100%;margin:0}#app{flex-direction:column;width:100%;height:100dvh;display:flex;overflow:hidden}.layout{flex:1 1 0;width:100%;min-height:0;display:flex}.sidebar{border-right:1px solid var(--border);background:var(--bg-secondary);flex:0 0 260px;min-width:0;padding:16px;transition:flex-basis .25s;overflow:hidden}.sidebar.hidden{border-right:none;flex:0 0 0;padding:0;overflow:hidden}#pageContainer{flex:1 1 0;min-width:0;min-height:0;overflow-y:auto}.topbar{z-index:100;border-bottom:1px solid var(--border);backdrop-filter:blur(12px);background:rgba(255,255,255,.92);flex-shrink:0;justify-content:space-between;align-items:center;height:56px;padding:0 20px;display:flex;position:relative;top:0}.topbar-left,.topbar-right{align-items:center;display:flex}.topbar-left{gap:12px}.logo{font-size:16px;font-weight:700}.sync-status{color:var(--text-secondary);padding-right:8px;font-size:13px}.breadcrumb{color:var(--text-secondary);border-left:1px solid var(--border);align-items:center;gap:4px;max-width:480px;margin-left:4px;padding-left:12px;font-size:14px;display:flex;overflow:hidden}.breadcrumb-item{cursor:pointer;color:var(--text-secondary);white-space:nowrap;border-radius:6px;padding:2px 6px;transition:all .15s}.breadcrumb-item:hover{color:var(--primary);background:var(--hover)}.breadcrumb-item.current{color:var(--text-primary);cursor:default;font-weight:600}.breadcrumb-item.current:hover{color:var(--text-primary);background:0 0}.breadcrumb-separator{color:var(--text-tertiary);user-select:none;margin:0 2px}.icon-btn,.ui-btn{cursor:pointer;background:0 0;border:none;border-radius:8px;transition:all .18s}.icon-btn{width:36px;height:36px}.icon-btn:hover,.ui-btn:hover{background:var(--hover)}@media (max-width:768px){.sidebar{display:none}}.sidebar{flex-direction:column;padding:0;display:flex;position:relative}.sidebar-toolbar{align-items:center;gap:8px;padding:12px;display:flex}.sidebar-search-input{border:1px solid var(--border);background:#f8fafc;border-radius:6px;outline:none;flex:1;min-width:0;height:32px;padding:0 10px;font-size:13px;transition:border-color .2s,box-shadow .2s}.sidebar-search-input:focus{border-color:var(--primary);background:#fff;box-shadow:0 0 0 2px rgba(37,99,235,.1)}.sidebar-search-input::placeholder{color:#94a3b8}.sidebar-create-btn{border:1px solid var(--border);cursor:pointer;width:32px;height:32px;color:var(--text-secondary);background:#fff;border-radius:6px;flex-shrink:0;justify-content:center;align-items:center;font-size:16px;transition:all .15s;display:flex}.sidebar-create-btn:hover{background:var(--hover);border-color:var(--primary);color:var(--primary)}.sidebar-entry{cursor:pointer;height:34px;color:var(--text-primary);border-radius:6px;align-items:center;gap:8px;margin:2px 8px;padding:0 10px;font-size:13px;transition:background .12s;display:flex}.sidebar-entry:hover{background:var(--hover)}.sidebar-entry.active{color:var(--primary);background:#e8f0ff;font-weight:600}.sidebar-entry-icon{color:var(--text-secondary);flex-shrink:0}.sidebar-entry.active .sidebar-entry-icon{color:var(--primary)}.sidebar-divider{background:var(--border);height:1px;margin:6px 12px}.sidebar-section-header{cursor:pointer;height:34px;color:var(--text-secondary);text-transform:none;letter-spacing:0;border-radius:6px;justify-content:space-between;align-items:center;margin:2px 8px;padding:0 10px;font-size:12px;font-weight:600;transition:background .12s;display:flex}.sidebar-section-header:hover{background:var(--hover)}.sidebar-section-title{align-items:center;gap:6px;display:flex}.sidebar-add-btn{cursor:pointer;width:22px;height:22px;color:var(--text-secondary);background:0 0;border:none;border-radius:4px;flex-shrink:0;justify-content:center;align-items:center;font-size:14px;transition:all .12s;display:flex}.sidebar-add-btn:hover{background:var(--hover);color:var(--primary)}.sidebar-tree-body{flex:1;padding:2px 8px;overflow-x:hidden;overflow-y:auto}.sidebar-tree-empty{text-align:center;color:var(--text-secondary);padding:20px 12px;font-size:12px}.tree-item{cursor:default;color:var(--text-primary);font-size:13px}.tree-item-row{height:30px;padding:0 6px;padding-left:calc(6px + var(--tree-level,0) * 20px);cursor:pointer;border-radius:6px;align-items:center;gap:4px;transition:background .1s;display:flex}.tree-item-row:hover{background:var(--hover)}.tree-item.active>.tree-item-row{color:var(--primary);background:#e8f0ff;font-weight:600}.tree-toggle{cursor:pointer;border-radius:3px;flex-shrink:0;justify-content:center;align-items:center;width:16px;height:16px;transition:transform .15s,background .1s;display:flex}.tree-toggle:hover{background:var(--hover)}.tree-toggle svg{width:12px;height:12px;transition:transform .15s}.tree-toggle.expanded svg{transform:rotate(90deg)}.tree-toggle.leaf{visibility:hidden}#rootTreeToggle.expanded svg{opacity:1;transform:none}#rootTreeToggle:not(.expanded) svg{opacity:.5}.tree-icon{flex-shrink:0;justify-content:center;align-items:center;width:16px;height:16px;font-size:13px;display:flex}.tree-label{white-space:nowrap;text-overflow:ellipsis;user-select:none;flex:1;min-width:0;overflow:hidden}.tree-children{max-height:0;transition:max-height .25s;overflow:hidden}.tree-children.expanded{max-height:9999px}.tree-empty-hint{padding:8px 12px 8px calc(6px + var(--tree-level,0) * 20px + 16px);color:var(--text-secondary);font-size:12px;font-style:italic}.sidebar-tree-body.collapsed{display:none}.sidebar-search-overlay{z-index:20;background:#fff;position:absolute;top:56px;bottom:0;left:0;right:0;overflow-y:auto}.sidebar-search-results{flex-direction:column;min-height:100%;display:flex}.sidebar-search-loading{min-height:120px;color:var(--text-secondary);flex:1;justify-content:center;align-items:center;font-size:12px;display:flex}.sidebar-search-empty{flex-direction:column;flex:1;justify-content:center;align-items:center;gap:12px;min-height:200px;display:flex}.sidebar-search-empty-icon{color:#cbd5e1;width:48px;height:48px}.sidebar-search-empty-text{color:var(--text-secondary);font-size:13px}.sidebar-search-result-list{flex-direction:column;padding:4px 0;display:flex}.sidebar-search-result-item{cursor:pointer;height:36px;color:var(--text-primary);border-radius:6px;align-items:center;gap:8px;margin:1px 8px;padding:0 10px;font-size:13px;transition:background .12s;display:flex}.sidebar-search-result-item:hover{background:var(--hover)}.sidebar-search-result-icon{width:16px;height:16px;color:var(--text-secondary);flex-shrink:0}.sidebar-search-result-title{white-space:nowrap;text-overflow:ellipsis;user-select:none;flex:1;min-width:0;overflow:hidden}.sidebar-search-highlight{color:var(--primary);font-weight:600}@media (max-width:768px){.sidebar{display:none}}.recent-page,.search-page{flex-direction:column;width:100%;height:100%;display:flex}.recent-header,.search-header{flex-shrink:0;justify-content:space-between;align-items:center;padding:20px 24px 12px;display:flex}.recent-title,.search-title{color:var(--text-primary);align-items:center;gap:8px;margin:0;font-size:18px;font-weight:600;display:flex}.recent-count,.search-result-count{color:var(--text-secondary);font-size:13px}.recent-grid,.search-results{flex:1;padding:4px 16px 16px;overflow-y:auto}.recent-loading,.search-loading{height:200px;color:var(--text-secondary);justify-content:center;align-items:center;font-size:14px;display:flex}.search-empty{text-align:center;color:var(--text-secondary);grid-column:1/-1;padding:48px 16px;font-size:14px}.home-doc-inner-time{color:var(--text-secondary);white-space:nowrap;text-overflow:ellipsis;margin-top:2px;font-size:11px;overflow:hidden}.login-tabs{border-bottom:2px solid #eee;gap:0;margin-bottom:8px;display:flex}.login-tab{color:#999;cursor:pointer;background:0 0;border:none;flex:1;padding:10px 0;font-size:13px;transition:color .2s;position:relative}.login-tab:hover{color:#666}.login-tab.active{color:#4f46e5;font-weight:600}.login-tab.active:after{content:"";background:#4f46e5;height:2px;position:absolute;bottom:-2px;left:0;right:0}.login-qr-wrap{flex-direction:column;align-items:center;gap:12px;padding:8px 0;display:flex}.login-qr-wrap canvas{border:1px solid #eee;border-radius:8px;max-width:280px;max-height:280px}.login-qr-tip{color:#666;font-size:13px}.login-qr-refresh{color:#4f46e5;cursor:pointer;background:0 0;border:none;padding:4px 12px;font-size:12px}.login-qr-refresh:hover{text-decoration:underline}.login-sms-row{align-items:center;gap:8px;display:flex}.login-sms-row .login-input{flex:1}.login-sms-btn{white-space:nowrap;color:#4f46e5;cursor:pointer;background:#fff;border:1px solid #4f46e5;border-radius:8px;padding:10px 14px;font-size:13px;transition:all .2s}.login-sms-btn:hover{background:#eef2ff}.login-sms-btn:disabled{color:#bbb;cursor:not-allowed;background:#f5f5f5;border-color:#ddd}.login-error{color:#e53e3e;text-align:center;min-height:18px;font-size:13px}.login-modal{z-index:999;box-sizing:border-box;background:rgba(0,0,0,.25);justify-content:center;align-items:center;padding:16px;display:none;position:fixed;top:0;bottom:0;left:0;right:0}.login-card{box-sizing:border-box;background:#fff;border-radius:12px;flex-direction:column;gap:14px;width:320px;padding:24px;animation:.25s loginFade;display:flex;box-shadow:0 12px 40px rgba(0,0,0,.18)}.login-body{flex-direction:column;justify-content:flex-start;min-height:320px;padding-top:4px;display:flex}.login-icon{text-align:center;font-size:28px;line-height:1}.login-title{text-align:center;color:#333;font-size:15px;font-weight:600}.login-form{flex-direction:column;gap:12px;display:flex}.login-input{box-sizing:border-box;border:1px solid #ddd;border-radius:8px;outline:none;width:100%;padding:10px 12px;font-size:15px;transition:border-color .2s}.login-input:focus{border-color:#6366f1}.login-input::placeholder{color:#bbb;transition:opacity .2s}.login-input:focus::placeholder{opacity:0}.login-btn{color:#fff;cursor:pointer;background:#4f46e5;border:none;border-radius:8px;width:100%;padding:11px;font-size:14px;transition:background .2s}.login-btn:hover{background:#4338ca}@media (max-width:480px){.login-card{width:100%;padding:20px}.login-body{min-height:280px}.login-qr-wrap canvas{max-width:220px;max-height:220px}.login-title{font-size:17px}.login-icon{font-size:32px}}@keyframes loginFade{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}@keyframes shake{0%,to{transform:translate(0)}25%{transform:translate(-6px)}75%{transform:translate(6px)}}.login-card.shake{animation:.3s shake}.ui-btn{cursor:pointer;background:#fff;border:1px solid #ddd;border-radius:50%;justify-content:center;align-items:center;width:40px;height:40px;transition:box-shadow .25s,transform .15s,background .2s;display:inline-flex}.ui-btn:hover{transform:translateY(-1px);box-shadow:0 4px 12px rgba(0,0,0,.15)}.ui-btn:active{transform:translateY(0)}.ui-icon-btn{cursor:pointer;background:0 0;border:none;border-radius:8px;justify-content:center;align-items:center;width:36px;height:36px;display:flex}.ui-icon-btn:hover{background:#f3f4f6}.ui-btn-sm{width:32px;height:32px}.ui-btn-md{width:40px;height:40px}.ui-btn-lg{width:48px;height:48px}.ui-btn-primary{color:#fff;background:#4f46e5;border:none}.ui-btn-primary:hover{box-shadow:0 4px 14px rgba(79,70,229,.35)}.ui-btn-ghost{background:0 0;border:none}.ui-btn-soft{background:#f5f5f5;border:none}.toast-container{z-index:99999;flex-direction:column;gap:10px;display:flex;position:fixed;top:20px;left:50%;transform:translate(-50%)}.toast{color:#fff;opacity:0;border-radius:8px;min-width:200px;max-width:400px;padding:10px 16px;font-size:14px;transition:all .25s;transform:translateY(-10px)scale(.95)}.toast.show{opacity:1;transform:translateY(0)scale(1)}.toast-info{background:#333}.toast-success{background:#2ecc71}.toast-error{background:#e74c3c}.float-actions{align-items:center;gap:6px;padding:4px 8px;display:flex}.float-btn{color:#555;cursor:pointer;background:#fff;border:1px solid rgba(0,0,0,.06);border-radius:50%;outline:none;justify-content:center;align-items:center;width:36px;height:36px;transition:transform .18s cubic-bezier(.25,.8,.25,1.2),box-shadow .18s cubic-bezier(.25,.8,.25,1.2),color .18s,background .18s;display:flex;position:relative;overflow:hidden;box-shadow:0 2px 6px rgba(0,0,0,.08),0 6px 16px rgba(0,0,0,.06),0 10px 28px rgba(0,0,0,.04)}.float-btn:hover{color:#333;transform:translateY(-2px);box-shadow:0 4px 10px rgba(0,0,0,.1),0 8px 22px rgba(0,0,0,.08),0 14px 36px rgba(0,0,0,.05)}.float-btn:active{transform:translateY(1px)scale(.88);box-shadow:0 1px 3px rgba(0,0,0,.08),0 2px 6px rgba(0,0,0,.04)}.float-btn:after{content:"";opacity:0;pointer-events:none;background:radial-gradient(circle,rgba(100,100,255,.25) 0%,rgba(100,100,255,.08) 40%,transparent 70%);border-radius:50%;transition:transform .35s ease-out,opacity .35s ease-out;position:absolute;top:0;bottom:0;left:0;right:0;transform:scale(.3)}.float-btn:active:after{opacity:1;transition:transform .22s ease-out,opacity .15s ease-out;transform:scale(2.2)}.float-btn svg{z-index:1;pointer-events:none;flex-shrink:0;position:relative}.float-btn.is-horizontal svg{transform:rotate(90deg)}.float-btn[data-tooltip]:before{content:attr(data-tooltip);color:#fff;white-space:nowrap;pointer-events:none;opacity:0;background:rgba(0,0,0,.78);border-radius:6px;padding:4px 10px;font-size:12px;line-height:1.3;transition:opacity .15s,transform .15s;position:absolute;bottom:calc(100% + 8px);left:50%;transform:translate(-50%)translateY(4px)}.float-btn[data-tooltip]:hover:before{opacity:1;transform:translate(-50%)translateY(0)}.float-actions[data-active-set=editor] [data-float-set=filelist],.float-actions[data-active-set=filelist] [data-float-set=editor]{display:none}.settings-modal-content{background:#fff;border-radius:12px;width:920px;max-width:90vw;height:70vh;margin:auto;display:flex;overflow:hidden;box-shadow:0 20px 60px rgba(0,0,0,.15)}.settings-modal-content .sidebar{background:#f8fafc;border-right:1px solid #e5e7eb;flex-direction:column;flex:0 0 220px;display:flex;overflow-y:auto}.settings-modal-content .sidebar .menu{flex-direction:column;gap:6px;padding:12px;display:flex}.settings-modal-content .menu-item{cursor:pointer;color:#374151;border-radius:8px;align-items:center;height:38px;padding:0 12px;font-size:14px;transition:background .15s,color .15s;display:flex}.settings-modal-content .menu-item:hover{background:#eef2ff}.settings-modal-content .menu-item.active{color:#1d4ed8;background:#e0e7ff;font-weight:600}.settings-modal-content .content{background:#fff;flex:1 1 0;min-width:0;min-height:0;padding:24px;overflow-y:auto}.settings-close-btn{z-index:10;color:#555;cursor:pointer;background:rgba(0,0,0,.06);border:none;border-radius:50%;justify-content:center;align-items:center;width:32px;height:32px;font-size:16px;transition:background .15s,color .15s;display:none;position:absolute;top:8px;right:12px}.settings-close-btn:hover{color:#222;background:rgba(0,0,0,.12)}.settings-close-btn:active{background:rgba(0,0,0,.18);transform:scale(.93)}.settings-modal-content .sidebar::-webkit-scrollbar{width:6px}.settings-modal-content .content::-webkit-scrollbar{width:6px}.settings-modal-content .sidebar::-webkit-scrollbar-thumb{background:rgba(0,0,0,.12);border-radius:10px}.settings-modal-content .content::-webkit-scrollbar-thumb{background:rgba(0,0,0,.12);border-radius:10px}@media (max-width:768px){.settings-modal-content{width:100vw;height:100vh;border-radius:0;flex-direction:column;max-width:100vw;height:100dvh;padding-top:0;position:relative}.settings-close-btn{display:flex}.settings-modal-content .sidebar{-webkit-overflow-scrolling:touch;scroll-behavior:smooth;scrollbar-width:none;-ms-overflow-style:none;border-bottom:1px solid #e5e7eb;border-right:none;flex-direction:row;flex:none;width:100%;display:flex;position:relative;overflow-x:auto;overflow-y:hidden}.settings-modal-content .sidebar::-webkit-scrollbar{width:0;height:0;display:none}.settings-modal-content .sidebar:before,.settings-modal-content .sidebar:after{content:"";pointer-events:none;z-index:1;flex:none;width:20px;transition:opacity .2s;position:sticky;top:0;bottom:0}.settings-modal-content .sidebar:before{background:linear-gradient(90deg,#f8fafc 30%,transparent);margin-right:-20px;left:0}.settings-modal-content .sidebar:after{background:linear-gradient(270deg,#f8fafc 30%,transparent);margin-left:-20px;right:0}.settings-modal-content .sidebar .menu{white-space:nowrap;scroll-snap-type:x proximity;flex-direction:row;gap:6px;padding:8px 4px}.settings-modal-content .menu-item{scroll-snap-align:start;-webkit-touch-callout:none;user-select:none;flex:none;height:40px;min-height:40px;padding:0 14px;font-size:13px}.settings-modal-content .content{-webkit-overflow-scrolling:touch;flex:auto;padding:16px;overflow-y:auto}}@media (min-width:769px) and (max-width:1024px){.settings-modal-content{border-radius:10px;flex-direction:row;width:95vw;height:80vh}.settings-modal-content .sidebar{border-right:1px solid #e5e7eb;flex:0 0 180px;min-width:180px}.settings-modal-content .sidebar .menu{gap:4px;padding:10px}.settings-modal-content .menu-item{height:36px;padding:0 10px;font-size:13px}.settings-modal-content .content{flex:1 1 0;padding:18px}}.settings-modal-content .content .sp-group{margin-bottom:28px}.settings-modal-content .content .sp-group:last-child{margin-bottom:0}.settings-modal-content .content .sp-group-title{color:#9ca3af;text-transform:uppercase;letter-spacing:.5px;margin:0 0 4px;padding:0;font-size:12px;font-weight:600}.settings-modal-content .content .sp-row{border-bottom:1px solid #f3f4f6;justify-content:space-between;align-items:center;min-height:48px;padding:13px 0;display:flex}.settings-modal-content .content .sp-row:last-child{border-bottom:none}.settings-modal-content .content .sp-row.clickable{cursor:pointer;border-radius:6px;margin-left:-8px;margin-right:-8px;padding-left:8px;padding-right:8px;transition:background .12s}.settings-modal-content .content .sp-row.clickable:hover{background:#f9fafb}.settings-modal-content .content .sp-row.clickable:active{background:#f3f4f6}.settings-modal-content .content .sp-row-left{flex-direction:column;flex:1 1 0;gap:2px;min-width:0;display:flex}.settings-modal-content .content .sp-row-label{color:#1f2937;font-size:14px;line-height:1.5}.settings-modal-content .content .sp-row-desc{color:#9ca3af;font-size:12px;line-height:1.4}.settings-modal-content .content .sp-row-right{flex-shrink:0;align-items:center;gap:8px;margin-left:16px;display:flex}.settings-modal-content .content .sp-arrow{color:#d1d5db;flex-shrink:0;font-size:16px}.settings-modal-content .content .sp-value{color:#9ca3af;font-size:13px}.settings-modal-content .content .sp-avatar{object-fit:cover;background:#e5e7eb;border-radius:50%;width:44px;height:44px}.settings-modal-content .content .sp-toggle{-webkit-appearance:none;appearance:none;cursor:pointer;background:#d1d5db;border-radius:12px;flex-shrink:0;width:42px;height:24px;transition:background .2s;position:relative}.settings-modal-content .content .sp-toggle:checked{background:#4f46e5}.settings-modal-content .content .sp-toggle:after{content:"";background:#fff;border-radius:50%;width:20px;height:20px;transition:transform .2s;position:absolute;top:2px;left:2px;box-shadow:0 1px 3px rgba(0,0,0,.12)}.settings-modal-content .content .sp-toggle:checked:after{transform:translate(18px)}.settings-modal-content .content .sp-btn{cursor:pointer;white-space:nowrap;border-radius:7px;justify-content:center;align-items:center;height:34px;padding:0 18px;font-size:13px;font-weight:500;transition:background .15s,transform .1s;display:inline-flex}.settings-modal-content .content .sp-btn:active{transform:scale(.96)}.settings-modal-content .content .sp-btn-primary{color:#fff;background:#4f46e5}.settings-modal-content .content .sp-btn-primary:hover{background:#4338ca}.settings-modal-content .content .sp-btn-danger{color:#ef4444;background:#fef2f2;border:1px solid #fecaca}.settings-modal-content .content .sp-btn-danger:hover{background:#fee2e2}.settings-modal-content .content .sp-btn-outline{color:#374151;background:0 0;border:1px solid #d1d5db}.settings-modal-content .content .sp-btn-outline:hover{background:#f9fafb;border-color:#9ca3af}.settings-modal-content .content .sp-input{color:#1f2937;background:#fff;border:1px solid #d1d5db;border-radius:7px;flex:1 1 0;min-width:0;height:38px;padding:0 12px;font-size:13px;transition:border-color .15s}.settings-modal-content .content .sp-input:focus{border-color:#4f46e5;box-shadow:0 0 0 3px rgba(79,70,229,.1)}.settings-modal-content .content .sp-input::placeholder{color:#9ca3af}.settings-modal-content .content .sp-badge{border-radius:11px;align-items:center;height:22px;padding:0 8px;font-size:11px;font-weight:600;display:inline-flex}.settings-modal-content .content .sp-badge-free{color:#6b7280;background:#f3f4f6}.settings-modal-content .content .sp-version{color:#374151;font-size:14px;font-weight:500}.settings-modal-content .content .sp-profile{align-items:center;gap:14px;padding:16px 0;display:flex}.settings-modal-content .content .sp-profile-info{flex-direction:column;gap:2px;display:flex}.settings-modal-content .content .sp-profile-name{color:#1f2937;font-size:16px;font-weight:600}.settings-modal-content .content .sp-profile-desc{color:#9ca3af;font-size:12px}.settings-modal-content .content .sp-empty{text-align:center;color:#9ca3af;padding:32px 16px;font-size:13px}.settings-modal-content .content .sp-loading{color:#9ca3af;justify-content:center;align-items:center;padding:48px 0;font-size:14px;display:flex}.settings-modal-content .content .sp-error{color:#ef4444;justify-content:center;align-items:center;padding:48px 0;font-size:14px;display:flex}.settings-modal-content .content .sp-row.danger .sp-row-label{color:#ef4444}.settings-modal-content .content .sp-msg-list{flex-direction:column;gap:12px;margin-top:12px;display:flex}.settings-modal-content .content .sp-msg-body .sp-msg-title{color:#1f2937;font-size:14px;font-weight:500;line-height:1.4}.settings-modal-content .content .sp-msg-body .sp-msg-text{color:#6b7280;-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:12px;line-height:1.5;display:-webkit-box;overflow:hidden}.settings-modal-content .content .sp-msg-time{color:#9ca3af;white-space:nowrap;flex-shrink:0;margin-top:2px;font-size:11px}.settings-modal-content .content .sp-msg-loading{text-align:center;color:#9ca3af;padding:16px 0;font-size:12px}.settings-modal-content .content .sp-msg-end{text-align:center;color:#d1d5db;padding:16px 0;font-size:12px}.settings-modal-content .content .sp-device-desc{color:#6b7280;background:#f3f4f6;border-radius:8px;margin-bottom:16px;padding:12px 16px;font-size:13px;line-height:1.6}.settings-modal-content .content .sp-device-list{background:#fff;border-radius:10px;max-height:360px;padding:4px 0;overflow-y:auto}.settings-modal-content .content .sp-device-item{border-radius:8px;justify-content:space-between;align-items:center;margin:0 8px;padding:14px 16px;transition:background .12s;display:flex}.settings-modal-content .content .sp-device-item+.sp-device-item{position:relative}.settings-modal-content .content .sp-device-item+.sp-device-item:before{content:"";background:#d1d5db;height:1px;position:absolute;top:0;left:16px;right:16px}.settings-modal-content .content .sp-device-item:hover{background:#f9fafb}.settings-modal-content .content .sp-device-info{flex-direction:column;flex:1 1 0;gap:4px;min-width:0;display:flex}.settings-modal-content .content .sp-device-name{color:#1f2937;font-size:14px;font-weight:500}.settings-modal-content .content .sp-device-time,.settings-modal-content .content .sp-device-platform{color:#6b7280;font-size:12px}.settings-modal-content .content .sp-device-action{flex-shrink:0;align-items:center;min-height:34px;margin-left:16px;display:flex}.settings-modal-content .content .sp-device-current{color:#059669;white-space:nowrap;align-items:center;height:34px;padding:0 18px;font-size:13px;font-weight:500;display:inline-flex}.settings-modal-content .content .sp-redeem-card{background:#fff;border-radius:12px;margin-bottom:20px;padding:24px;transition:box-shadow .2s,transform .2s;box-shadow:0 2px 8px rgba(0,0,0,.06),0 0 0 1px rgba(0,0,0,.04)}.settings-modal-content .content .sp-redeem-card:hover{transform:translateY(-1px);box-shadow:0 6px 20px rgba(0,0,0,.1),0 0 0 1px rgba(0,0,0,.05)}.settings-modal-content .content .sp-redeem-title{color:#1f2937;margin-bottom:16px;font-size:16px;font-weight:600}.settings-modal-content .content .sp-redeem-row{align-items:center;gap:24px;display:flex}.settings-modal-content .content .sp-redeem-input{color:#1f2937;box-sizing:border-box;background:#fff;border:1px solid #d1d5db;border-radius:8px;outline:none;flex:1;height:40px;padding:0 12px;font-size:14px;transition:border-color .15s}.settings-modal-content .content .sp-redeem-input:focus{border-color:#4f46e5;box-shadow:0 0 0 3px rgba(79,70,229,.1)}.settings-modal-content .content .sp-redeem-input::placeholder{color:#9ca3af;font-size:13px}.settings-modal-content .content .sp-redeem-btn{cursor:pointer;white-space:nowrap;border:none;border-radius:8px;flex-shrink:0;height:40px;padding:0 22px;font-size:14px;font-weight:500;transition:background .15s,transform .1s,opacity .15s}.settings-modal-content .content .sp-redeem-btn:not(.disabled){color:#fff;background:#4f46e5}.settings-modal-content .content .sp-redeem-btn:not(.disabled):hover{background:#4338ca}.settings-modal-content .content .sp-redeem-btn:not(.disabled):active{transform:scale(.97)}.settings-modal-content .content .sp-redeem-btn.disabled{color:#9ca3af;cursor:not-allowed;background:#e5e7eb}.settings-modal-content .content .sp-invite-section{padding-bottom:4px}.settings-modal-content .content .sp-invite-title{color:#1f2937;margin-bottom:8px;font-size:15px;font-weight:600}.settings-modal-content .content .sp-invite-desc{color:#6b7280;margin-bottom:16px;font-size:13px;line-height:1.7}.settings-modal-content .content .sp-invite-code-area{background:#f9fafb;border-radius:8px;flex:1 1 0;align-items:center;gap:10px;min-width:0;padding:12px 16px;display:flex}.settings-modal-content .content .sp-invite-code-row{align-items:center;gap:24px;display:flex}.settings-modal-content .content .sp-invite-label{color:#6b7280;flex-shrink:0;font-size:13px}.settings-modal-content .content .sp-invite-code{color:#4f46e5;letter-spacing:1px;user-select:all;font-size:18px;font-weight:700}.settings-modal-content .content .sp-copy-btn{flex-shrink:0;height:32px;padding:0 14px;font-size:12px}.settings-modal-content .content .sp-generate-btn{color:#fff;cursor:pointer;background:#005cff;border:none;border-radius:6px;flex-shrink:0;height:32px;padding:0 14px;font-size:14px;font-weight:700}.settings-modal-content .content .sp-generate-btn:hover{opacity:.9}@media (max-width:480px){.settings-modal-content .content .sp-redeem-card{padding:16px}.settings-modal-content .content .sp-redeem-row{gap:12px}.settings-modal-content .content .sp-redeem-btn{padding:0 16px;font-size:13px}.settings-modal-content .content .sp-invite-code-row{gap:12px}.settings-modal-content .content .sp-invite-code-area{padding:10px 12px}}.settings-modal-content .content .sp-invite-divider{background:#e5e7eb;height:1px;margin:20px 0}.settings-modal-content .content .sp-benefits-title{color:#1f2937;margin-bottom:14px;font-size:15px;font-weight:600}.settings-modal-content .content .sp-benefits-table-wrapper{overflow-x:auto}.settings-modal-content .content .sp-benefits-table{border-collapse:separate;border-spacing:0;border:1px solid #d1d5db;border-radius:12px;width:100%;font-size:13px;overflow:hidden}.settings-modal-content .content .sp-benefits-table thead th{color:#6b7280;text-transform:uppercase;letter-spacing:.5px;text-align:left;background:#f9fafb;border-bottom:1px solid #d1d5db;border-right:1px solid #d1d5db;padding:10px 14px;font-size:12px;font-weight:600}.settings-modal-content .content .sp-benefits-table thead th:last-child{border-right:none}.settings-modal-content .content .sp-benefits-table thead th.col-pro{color:#1f2937;background:#e9f1fe;font-weight:700}.settings-modal-content .content .sp-benefits-table tbody td{color:#374151;border-bottom:1px solid #d1d5db;border-right:1px solid #d1d5db;padding:11px 14px}.settings-modal-content .content .sp-benefits-table tbody td:last-child{border-right:none}.settings-modal-content .content .sp-benefits-table tbody tr:last-child td{border-bottom:none}.settings-modal-content .content .sp-benefits-table tbody tr:hover{background:#fafbfc}.settings-modal-content .content .sp-benefits-table tbody td.col-pro{color:#1f2937;background:#e9f1fe;font-weight:700}.settings-modal-content .content .sp-recycle-list{flex-direction:column;display:flex}.settings-modal-content .content .sp-recycle-item{border-bottom:1px solid #f3f4f6;align-items:center;gap:12px;padding:12px 0;display:flex}.settings-modal-content .content .sp-recycle-item:last-child{border-bottom:none}.settings-modal-content .content .sp-recycle-icon{flex-shrink:0;justify-content:center;align-items:center;width:36px;height:36px;display:flex}.settings-modal-content .content .sp-recycle-info{flex-direction:column;flex:1 1 0;gap:2px;min-width:0;display:flex}.settings-modal-content .content .sp-recycle-title{color:#1f2937;text-overflow:ellipsis;white-space:nowrap;font-size:14px;line-height:1.4;overflow:hidden}.settings-modal-content .content .sp-recycle-time{color:#9ca3af;font-size:12px;line-height:1.3}.settings-modal-content .content .sp-recycle-more{cursor:pointer;background:0 0;border:none;border-radius:4px;flex-shrink:0;justify-content:center;align-items:center;width:28px;height:28px;padding:0;transition:background .12s;display:flex}.settings-modal-content .content .sp-recycle-more:hover{background:#f3f4f6}.sp-recycle-modal-overlay{z-index:10000;background:rgba(0,0,0,.3);justify-content:center;align-items:center;display:flex;position:fixed;top:0;bottom:0;left:0;right:0}.sp-recycle-modal{background:#fff;border-radius:12px;flex-direction:column;gap:16px;width:340px;max-width:90vw;padding:24px;display:flex;box-shadow:0 8px 30px rgba(0,0,0,.12)}.sp-recycle-modal-header{color:#1f2937;text-align:center;font-size:16px;font-weight:600}.sp-recycle-modal-body{color:#6b7280;text-align:center;word-break:break-all;font-size:14px;line-height:1.5}.sp-recycle-modal-footer{gap:12px;display:flex}.sp-recycle-modal-footer .sp-btn{cursor:pointer;border:none;border-radius:8px;flex:1;justify-content:center;align-items:center;height:38px;font-size:14px;font-weight:500;transition:background .15s,transform .1s;display:inline-flex}.sp-recycle-modal-footer .sp-btn:active{transform:scale(.96)}.sp-recycle-modal-footer .sp-btn-outline{color:#374151;background:0 0;border:1px solid #d1d5db}.sp-recycle-modal-footer .sp-btn-outline:hover{background:#f9fafb;border-color:#9ca3af}.sp-recycle-modal-footer .sp-btn-danger{color:#ef4444;background:#fef2f2;border:1px solid #fecaca}.sp-recycle-modal-footer .sp-btn-danger:hover{background:#fee2e2}.settings-modal-content .content .sp-version-list{flex-direction:column;display:flex}.settings-modal-content .content .sp-version-item{border-bottom:1px solid #f3f4f6;align-items:center;gap:12px;padding:14px 0;display:flex}.settings-modal-content .content .sp-version-item:last-child{border-bottom:none}.settings-modal-content .content .sp-version-item-icon{color:#6b7280;background:#f3f4f6;border-radius:10px;flex-shrink:0;justify-content:center;align-items:center;width:40px;height:40px;display:flex}.settings-modal-content .content .sp-version-item.is-preparing .sp-version-item-icon{color:#d97706;background:#fef3c7}.settings-modal-content .content .sp-version-item-label{color:#1f2937;flex:1 1 0;min-width:0;font-size:14px;font-weight:500}.settings-modal-content .content .sp-version-item.is-preparing .sp-version-item-label{color:#9ca3af}.settings-modal-content .content .sp-version-item-status{flex-shrink:0}.settings-modal-content .content .sp-version-num{color:#059669;background:#ecfdf5;border-radius:6px;padding:4px 10px;font-size:13px;font-weight:600}.settings-modal-content .content .sp-badge-preparing{color:#92400e;white-space:nowrap;background:#fef3c7;border-radius:6px;align-items:center;height:24px;padding:0 10px;font-size:12px;font-weight:500;display:inline-flex}.settings-modal-content .content .sp-changelog{padding-left:0;position:relative}.settings-modal-content .content .sp-changelog-entry{gap:16px;padding-bottom:24px;display:flex;position:relative}.settings-modal-content .content .sp-changelog-entry:last-child{padding-bottom:0}.settings-modal-content .content .sp-changelog-entry:last-child .sp-changelog-line{display:none}.settings-modal-content .content .sp-changelog-dot{z-index:1;background:#4f46e5;border-radius:50%;flex-shrink:0;width:10px;height:10px;margin-top:6px;position:relative;box-shadow:0 0 0 3px #e0e7ff}.settings-modal-content .content .sp-changelog-line{background:#e5e7eb;width:2px;position:absolute;top:22px;bottom:0;left:4px}.settings-modal-content .content .sp-changelog-content{flex:1 1 0;min-width:0}.settings-modal-content .content .sp-changelog-header{align-items:baseline;gap:12px;margin-bottom:10px;display:flex}.settings-modal-content .content .sp-changelog-version{color:#1f2937;font-size:15px;font-weight:700}.settings-modal-content .content .sp-changelog-date{color:#9ca3af;font-size:12px}.settings-modal-content .content .sp-changelog-list{margin:0;padding-left:18px;list-style:outside}.settings-modal-content .content .sp-changelog-list li{color:#4b5563;padding:0;font-size:13px;line-height:1.8}.settings-modal-content .content .sp-changelog-list li::marker{color:#c7d2fe}.settings-modal-content .content .sp-expand-row .sp-expand-arrow{transition:transform .2s}.settings-modal-content .content .sp-expand-row .sp-expand-arrow.expanded{transform:rotate(90deg)}.settings-modal-content .content .sp-feedback-form{max-height:0;margin-top:0;transition:max-height .3s,margin .3s;overflow:hidden}.settings-modal-content .content .sp-feedback-form.open{max-height:800px;margin-top:16px}.settings-modal-content .content .sp-feedback-section{flex-direction:column;gap:8px;margin-bottom:14px;display:flex}.settings-modal-content .content .sp-feedback-label{color:#374151;font-size:13px;font-weight:600}.settings-modal-content .content .sp-feedback-type-group{gap:10px;display:flex}.settings-modal-content .content .sp-feedback-type-card{text-align:center;cursor:pointer;border:2px solid #e5e7eb;border-radius:10px;flex-direction:column;flex:1;gap:4px;padding:12px 8px;transition:border-color .2s,background .2s,box-shadow .2s;display:flex}.settings-modal-content .content .sp-feedback-type-card:hover{background:#fafafe;border-color:#c7d2fe}.settings-modal-content .content .sp-feedback-type-card.active{background:#eef2ff;border-color:#4f46e5;box-shadow:0 0 0 3px rgba(79,70,229,.08)}.settings-modal-content .content .sp-feedback-type-label{color:#1f2937;font-size:14px;font-weight:600}.settings-modal-content .content .sp-feedback-type-card.active .sp-feedback-type-label{color:#4338ca}.settings-modal-content .content .sp-feedback-type-subtitle{color:#9ca3af;font-size:11px;line-height:1.4}.settings-modal-content .content .sp-feedback-type-card.active .sp-feedback-type-subtitle{color:#6366f1}.settings-modal-content .content .sp-feedback-content-box{background:#fff;border:1px solid #e5e7eb;border-radius:10px;flex-direction:column;display:flex;overflow:hidden}.settings-modal-content .content .sp-feedback-textarea{box-sizing:border-box;resize:vertical;color:#1f2937;background:#fff;border:none;border-radius:10px 10px 0 0;outline:none;width:100%;min-height:90px;padding:12px 14px;font-family:inherit;font-size:13px;line-height:1.6}.settings-modal-content .content .sp-feedback-textarea::placeholder{color:#9ca3af}.settings-modal-content .content .sp-feedback-textarea:focus{box-shadow:inset 0 0 0 2px #4f46e5}.settings-modal-content .content .sp-feedback-content-footer{background:#fafbfc;border-top:1px solid #f3f4f6;align-items:center;gap:10px;padding:8px 12px;display:flex}.settings-modal-content .content .sp-feedback-image-btn{cursor:pointer;background:#eef2ff;border:none;border-radius:8px;flex-shrink:0;justify-content:center;align-items:center;width:36px;height:36px;transition:background .15s;display:flex}.settings-modal-content .content .sp-feedback-image-btn:hover{background:#e0e7ff}.settings-modal-content .content .sp-feedback-image-btn:disabled{opacity:.5;cursor:not-allowed}.settings-modal-content .content .sp-feedback-image-icon{color:#4f46e5;font-size:20px;font-weight:300;line-height:1}.settings-modal-content .content .sp-feedback-images-preview{flex:1;gap:8px;display:flex;overflow-x:auto}.settings-modal-content .content .sp-feedback-image-thumb-wrap{flex-shrink:0;position:relative}.settings-modal-content .content .sp-feedback-image-thumb{object-fit:cover;border:1px solid #e5e7eb;border-radius:6px;flex-shrink:0;width:36px;height:36px}.settings-modal-content .content .sp-feedback-image-remove-btn{color:#fff;text-align:center;cursor:pointer;background:#ef4444;border:2px solid #fff;border-radius:50%;width:18px;height:18px;padding:0;font-size:12px;line-height:18px;position:absolute;top:-6px;right:-6px}.settings-modal-content .content .sp-feedback-image-remove-btn:hover{background:#dc2626}.settings-modal-content .content .sp-feedback-contact-input{color:#1f2937;box-sizing:border-box;background:#fff;border:1px solid #d1d5db;border-radius:7px;outline:none;width:100%;height:38px;padding:0 12px;font-size:13px;transition:border-color .15s}.settings-modal-content .content .sp-feedback-contact-input:focus{border-color:#4f46e5;box-shadow:0 0 0 3px rgba(79,70,229,.1)}.settings-modal-content .content .sp-feedback-contact-input::placeholder{color:#9ca3af;font-size:12px}.settings-modal-content .content .sp-feedback-submit-wrap{margin-top:2px}.settings-modal-content .content .sp-feedback-submit-btn{color:#fff;cursor:pointer;background:#4f46e5;border:none;border-radius:8px;width:100%;height:42px;font-size:14px;font-weight:600;transition:background .15s,transform .1s,opacity .15s}.settings-modal-content .content .sp-feedback-submit-btn:hover{background:#4338ca}.settings-modal-content .content .sp-feedback-submit-btn:active{transform:scale(.98)}.settings-modal-content .content .sp-rate-cancel-btn{width:100%;height:38px;margin-top:10px}.settings-modal-content .content .sp-feedback-submit-btn:disabled{opacity:.5;cursor:not-allowed}.settings-modal-content .content .sp-contact-info{margin-top:12px}.settings-modal-content .content .sp-contact-item{background:#f9fafb;border-radius:8px;flex-direction:column;gap:6px;margin-bottom:10px;padding:12px;display:flex}.settings-modal-content .content .sp-contact-item:last-child{margin-bottom:0}.settings-modal-content .content .sp-contact-label{color:#6b7280;font-size:12px}.settings-modal-content .content .sp-contact-value{color:#1f2937;font-size:14px;font-weight:500}.settings-modal-content .content .sp-contact-qr-placeholder{color:#9ca3af;background:#e5e7eb;border-radius:8px;justify-content:center;align-items:center;width:120px;height:120px;font-size:12px;display:flex}.sp-rate-modal-overlay{z-index:10001;opacity:0;background:rgba(0,0,0,.35);justify-content:center;align-items:center;transition:opacity .25s;display:flex;position:fixed;top:0;bottom:0;left:0;right:0}.sp-rate-modal-overlay.show{opacity:1}.sp-rate-modal{text-align:center;background:#fff;border-radius:16px;width:360px;max-width:90vw;max-height:85vh;padding:32px 28px 28px;transition:transform .25s;overflow-y:auto;transform:translateY(12px);box-shadow:0 12px 40px rgba(0,0,0,.15)}.sp-rate-modal.has-feedback{width:1000px}.sp-rate-modal .settings-modal-content,.sp-rate-modal .settings-modal-content .content{background:0 0;padding:0 4px;overflow:visible}.sp-rate-modal .sp-feedback-form.open{overflow-x:hidden}.sp-rate-modal-overlay.show .sp-rate-modal{transform:translateY(0)}.sp-rate-modal-header{color:#1f2937;margin-bottom:8px;font-size:18px;font-weight:700}.sp-rate-modal .sp-rate-emoji{margin-bottom:12px;font-size:44px}.sp-rate-modal .sp-rate-body{color:#6b7280;margin-bottom:20px;font-size:14px;line-height:1.6}.sp-rate-stars{justify-content:center;gap:8px;margin:20px 0 12px;display:flex}.sp-rate-star{color:#d1d5db;cursor:pointer;user-select:none;font-size:36px;transition:color .15s,transform .15s}.sp-rate-star:hover{color:#fbbf24;transform:scale(1.15)}.sp-rate-star.active{color:#f59e0b}.sp-rate-hint{color:#9ca3af;margin-bottom:4px;font-size:13px}.sp-rate-textarea{box-sizing:border-box;color:#1f2937;resize:vertical;border:1px solid #d1d5db;border-radius:8px;outline:none;width:100%;height:90px;margin-bottom:16px;padding:12px 14px;font-family:inherit;font-size:13px;line-height:1.6;transition:border-color .15s}.sp-rate-textarea:focus{border-color:#4f46e5;box-shadow:0 0 0 3px rgba(79,70,229,.1)}.sp-rate-textarea::placeholder{color:#9ca3af;font-size:13px}.sp-rate-btn{border-radius:8px;justify-content:center;align-items:center;width:100%;height:42px;font-size:14px;font-weight:500;display:inline-flex}.sp-rate-btn.sp-btn-primary{margin-bottom:10px}.sp-rate-market-list{flex-wrap:wrap;justify-content:center;gap:8px;margin-bottom:20px;display:flex}.sp-rate-market-tag{color:#374151;background:#f3f4f6;border-radius:6px;align-items:center;height:28px;padding:0 12px;font-size:12px;font-weight:500;display:inline-flex}.sp-rate-modal .sp-rate-submit-row{flex-direction:column;display:flex}.sp-rate-modal .content .sp-feedback-type-group{gap:10px}.sp-gallery-overlay{z-index:20000;justify-content:center;align-items:center;display:flex;position:fixed;top:0;bottom:0;left:0;right:0}.sp-gallery-mask{background:rgba(0,0,0,.85);position:absolute;top:0;bottom:0;left:0;right:0}.sp-gallery-viewport{z-index:1;justify-content:center;align-items:center;width:calc(100vw - 120px);max-width:500px;height:calc(100vh - 120px);max-height:90vh;display:flex;position:relative}.sp-gallery-image{object-fit:contain;user-select:none;-webkit-user-drag:none;border-radius:8px;max-width:100%;max-height:100%;box-shadow:0 8px 40px rgba(0,0,0,.3)}.sp-gallery-close{z-index:2;color:#fff;cursor:pointer;background:rgba(255,255,255,.15);border:none;border-radius:50%;justify-content:center;align-items:center;width:40px;height:40px;font-size:20px;transition:background .15s;display:flex;position:absolute;top:24px;right:24px}.sp-gallery-close:hover{background:rgba(255,255,255,.3)}.sp-gallery-arrow{z-index:2;color:#fff;cursor:pointer;background:rgba(255,255,255,.15);border:none;border-radius:50%;justify-content:center;align-items:center;width:48px;height:48px;font-size:32px;line-height:1;transition:background .15s;display:flex;position:absolute;top:50%;transform:translateY(-50%)}.sp-gallery-arrow:hover{background:rgba(255,255,255,.3)}.sp-gallery-prev{left:24px}.sp-gallery-next{right:24px}.sp-gallery-counter{z-index:2;color:rgba(255,255,255,.75);background:rgba(0,0,0,.35);border-radius:20px;padding:6px 16px;font-size:14px;font-weight:500;position:absolute;bottom:32px;left:50%;transform:translate(-50%)}.sp-gallery-copy-btn{z-index:2;color:#fff;cursor:pointer;background:rgba(79,70,229,.75);border:none;border-radius:20px;padding:8px 20px;font-size:13px;font-weight:500;transition:background .15s;position:absolute;bottom:32px;right:32px}.sp-gallery-copy-btn:hover{background:rgba(79,70,229,.95)}.sp-gallery-copy-btn:active{transform:scale(.96)}@media (max-width:420px){.sp-rate-modal .content .sp-feedback-type-group{flex-direction:column}.sp-rate-modal .content .sp-feedback-type-card{text-align:left;flex-direction:row;align-items:center;gap:8px;padding:8px 12px}.sp-rate-modal .content .sp-feedback-type-subtitle{display:none}.sp-gallery-viewport{width:calc(100vw - 40px);height:calc(100vh - 160px)}.sp-gallery-arrow{width:36px;height:36px;font-size:24px}.sp-gallery-prev{left:8px}.sp-gallery-next{right:8px}.sp-gallery-close{width:32px;height:32px;font-size:16px;top:12px;right:12px}.sp-gallery-counter{padding:4px 12px;font-size:12px;bottom:20px}.sp-gallery-copy-btn{padding:6px 14px;font-size:12px;bottom:20px;right:16px}}.file-grid{box-sizing:border-box;grid-template-columns:repeat(auto-fill,168px);justify-content:start;gap:16px;width:100%;padding:16px 48px;display:grid}.home-doc{cursor:pointer;background:#fff;border:1px solid transparent;border-radius:12px;flex-direction:column;justify-content:space-evenly;align-items:center;width:168px;height:168px;transition:all .2s;display:flex;position:relative}.home-doc.folder .home-doc-inner-icon{filter:drop-shadow(0 4px 8px rgba(0,0,0,.15))}.home-doc.folder{background:#f9fbff}.home-doc:active{transform:scale(.97);box-shadow:0 2px 6px rgba(0,0,0,.1)}.home-doc:hover{background:#f7f7f7;transform:translateY(-2px);box-shadow:0 8px 24px rgba(0,0,0,.12)}.home-doc-inner-rightTop{opacity:0;transition:opacity .2s;position:absolute;top:8px;right:8px}.home-doc:hover .home-doc-inner-rightTop{opacity:1}.home-doc-inner-icon{width:64px;height:64px;display:inline-block}.home-doc-inner-icon svg{width:100%;height:100%;display:block}.file-grid.layout-horizontal{grid-template-columns:1fr;gap:2px;max-width:860px;margin:0 auto;padding:12px 24px}.file-grid.layout-horizontal .home-doc{border-radius:8px;flex-direction:row;justify-content:flex-start;align-items:center;gap:12px;width:100%;height:auto;min-height:52px;padding:10px 16px}.file-grid.layout-horizontal .home-doc-inner-icon{flex-shrink:0;width:32px;height:32px}.file-grid.layout-horizontal .home-doc-inner-title{text-align:left;-webkit-line-clamp:1;white-space:nowrap;flex:1;min-width:0;max-width:none}.file-grid.layout-horizontal .home-doc-inner-rightTop{opacity:0;flex-shrink:0;order:1;margin-left:auto;position:static}.file-grid.layout-horizontal .home-doc:hover .home-doc-inner-rightTop{opacity:1}.file-grid-header{display:none}.file-grid.layout-horizontal .file-grid-header{color:#999;user-select:none;border-bottom:1px solid #f0f0f0;align-items:center;gap:12px;margin-bottom:4px;padding:8px 16px;font-size:12px;display:flex}.file-grid-header .hdr-icon{flex-shrink:0;width:32px}.file-grid-header .hdr-name{flex:1;min-width:0}.file-grid-header .hdr-meta{flex-shrink:0;align-items:center;gap:24px;display:flex}.file-grid-header .hdr-time{text-align:right;min-width:72px}.file-grid-header .hdr-action{flex-shrink:0;width:24px}.home-doc-inner-meta{display:none}.file-grid.layout-horizontal .home-doc-inner-meta{color:#999;white-space:nowrap;flex-shrink:0;align-items:center;gap:24px;font-size:12px;display:flex}.file-grid.layout-horizontal .home-doc-inner-meta .meta-words{color:#aaa}.file-grid.layout-horizontal .home-doc-inner-meta .meta-time{color:#bbb;text-align:right;min-width:64px}.home-doc-inner-title{color:#333;text-align:center;-webkit-line-clamp:2;text-overflow:ellipsis;word-break:break-word;-webkit-box-orient:vertical;max-width:122px;font-size:14px;line-height:1.4;display:-webkit-box;overflow:hidden}.move-to-folder-modal{flex-direction:column;min-width:360px;max-height:60vh;display:flex}.move-to-folder-header h3{color:#333;margin:0 0 12px;font-size:16px;font-weight:600}.move-to-folder-tree{border:1px solid #eee;border-radius:8px;flex:1;max-height:40vh;padding:4px 0;overflow-y:auto}.folder-empty{text-align:center;color:#999;padding:24px;font-size:14px}.folder-item{cursor:pointer;border-radius:4px;align-items:center;gap:8px;margin:2px 8px;padding:8px 12px;display:flex}.folder-item:hover{background:#f5f5f5}.folder-item.selected{color:#1976d2;background:#e3f2fd}.folder-icon{flex-shrink:0;font-size:16px}.folder-name{font-size:14px}.move-to-folder-footer{justify-content:flex-end;gap:8px;margin-top:12px;display:flex}.move-to-folder-footer button{cursor:pointer;border:none;border-radius:6px;padding:8px 20px;font-size:14px}.btn-cancel{color:#333;background:#f0f0f0}.btn-cancel:hover{background:#e0e0e0}.btn-confirm{color:#fff;background:#1976d2}.btn-confirm:hover{background:#1565c0}.btn-confirm:disabled{opacity:.4;cursor:not-allowed}:root{--bg:#fff;--bg-secondary:#fafafa;--border:#ececec;--hover:#f4f4f5;--text-primary:#111827;--text-secondary:#6b7280;--primary:#2563eb;--shadow:0 8px 24px rgba(0,0,0,.08);--editor-width:820px}html,body{color:#111827;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;background:#fff;width:100%;height:100%;margin:0;padding:0;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;overflow:hidden}.editor-page{flex-direction:column;flex:1;min-width:0;min-height:0;padding-left:max(16px,min(3vw,48px));padding-right:max(16px,min(3vw,48px));display:flex;overflow-y:auto}.editor-page::-webkit-scrollbar{width:8px}.editor-view{width:100%;min-height:100%;position:relative}.doc-container{width:100%;max-width:var(--editor-width,920px);margin:0 auto;padding:48px 0 160px}.doc-title{-webkit-appearance:none;appearance:none;letter-spacing:-.03em;width:100%;color:var(--text-primary);caret-color:var(--primary);resize:none;background:0 0;border:none;outline:none;margin:0 0 40px;padding:0;font-family:inherit;font-size:40px;font-weight:800;line-height:1.15;overflow:hidden}.doc-title::placeholder{color:#c4c7ce;font-weight:700}#editor{width:100%}.ProseMirror{box-shadow:none;caret-color:var(--primary);color:var(--text-primary);word-break:break-word;overflow-wrap:break-word;border:none;outline:none;width:100%;min-height:400px;font-size:16px;line-height:1.65}.ProseMirror:focus{outline:none!important}.ProseMirror p{margin:0 0 10px}.ProseMirror h1{margin:32px 0 16px;font-size:34px}.ProseMirror h2{margin:28px 0 14px;font-size:28px}.ProseMirror h3{margin:24px 0 12px;font-size:22px}.ProseMirror h4{margin:20px 0 10px;font-size:16px}.ProseMirror [data-ti="1"]{text-indent:1em}.ProseMirror [data-ti="2"]{text-indent:2em}.ProseMirror [data-ti="3"]{text-indent:3em}.ProseMirror [data-ti="4"]{text-indent:4em}.ProseMirror [data-ti="5"]{text-indent:5em}.ProseMirror [data-ti="6"]{text-indent:6em}.ProseMirror [data-ti="7"]{text-indent:7em}.ProseMirror [data-ti="8"]{text-indent:8em}.ProseMirror [data-ali="1"]{text-align:left}.ProseMirror [data-ali="2"]{text-align:right}.ProseMirror [data-ali="3"]{text-align:center}.ProseMirror ul,.ProseMirror ol{margin:4px 0;padding-left:28px}.ProseMirror li{margin:2px 0;line-height:1.65}.ProseMirror li p{margin:0}.ProseMirror ::selection,.doc-title::selection{background:rgba(37,99,235,.18)}._fTD_1{-webkit-box-decoration-break:clone;box-decoration-break:clone;background-image:linear-gradient(currentColor,currentColor);background-position:0 calc(100% + 3px);background-repeat:repeat-x;background-size:100% 2px;background-origin:content-box;padding-bottom:4px;text-decoration:none}._fTD_2{color:inherit;-webkit-box-decoration-break:clone;box-decoration-break:clone;background-image:linear-gradient(90deg,#000,#000);background-position:0;background-repeat:repeat-x;background-size:100% 2px;text-decoration:none;display:inline;box-shadow:0 0 transparent}@media (max-width:768px){.doc-container{padding:24px 20px 120px}.doc-title{font-size:34px}}.toolbar{z-index:9999;-webkit-backdrop-filter:blur(10px);transform-origin:bottom;user-select:none;white-space:nowrap;background:#f5f5f5;border:1px solid rgba(0,0,0,.08);border-radius:10px;align-items:center;gap:2px;padding:4px 6px;transition:opacity .18s,transform .18s;display:flex;position:fixed;box-shadow:0 10px 25px rgba(0,0,0,.1),0 2px 6px rgba(0,0,0,.06)}.toolbar.hidden{opacity:0;pointer-events:none;transform:translateY(-8px)scale(.98)}.toolbar-trigger{color:rgba(0,0,0,.7);cursor:pointer;background:0 0;border:1px solid transparent;border-radius:6px;justify-content:center;align-items:center;gap:2px;width:28px;height:28px;padding:0;transition:all .15s;display:flex}.toolbar-trigger svg,.toolbar-dropdown button svg{width:100%;height:100%}.toolbar-trigger:hover{background:rgba(0,0,0,.06);border-color:rgba(0,0,0,.1)}.toolbar-trigger.active{color:#3b82f6;background:rgba(59,130,246,.12);border-color:rgba(59,130,246,.3)}.toolbar-trigger.is-disabled{opacity:.35;cursor:not-allowed}.toolbar-arrow{opacity:.5;margin-left:1px;font-size:8px}.toolbar-group{display:flex}.toolbar-dropdown{-webkit-backdrop-filter:blur(12px);z-index:10000;white-space:nowrap;background:#f5f5f5;border:1px solid rgba(0,0,0,.08);border-radius:10px;flex-direction:row;align-items:center;gap:2px;padding:6px 8px;display:none;position:absolute;bottom:calc(100% + 8px);left:50%;transform:translate(-50%);box-shadow:0 10px 25px rgba(0,0,0,.1),0 2px 6px rgba(0,0,0,.06)}.toolbar-dropdown.open{display:flex}.toolbar-dropdown button{color:rgba(0,0,0,.7);cursor:pointer;background:0 0;border:none;border-radius:6px;justify-content:center;align-items:center;width:28px;height:28px;padding:0;transition:background .12s;display:flex}.toolbar-dropdown button:hover{background:rgba(0,0,0,.06)}.toolbar-dropdown button.active{color:#3b82f6;background:rgba(59,130,246,.12)}.color-dot{border-radius:3px;flex-shrink:0;width:14px;height:14px;display:inline-block}.toolbar-sep{background:rgba(0,0,0,.12);border-radius:1px;flex-shrink:0;width:1px;height:20px;margin:0 4px}.note-image{border-radius:8px;max-width:100%;display:block}.image-wrapper{max-width:100%;margin:8px 0;position:relative}.image-wrapper.selected{outline-offset:2px;outline:2px solid #409eff}.custom-table{border-collapse:collapse;table-layout:fixed;width:100%}.custom-table td,.custom-table th{vertical-align:top;border:1px solid #e5e5e5;padding:6px;overflow:hidden}.custom-table.selected{outline-offset:2px;outline:2px solid #409eff}.custom-table-cell .image-wrapper{justify-content:center;width:100%;display:flex}.custom-table-cell img{object-fit:contain;max-width:100%;height:auto;display:block}.frame-box{--dash-color:#d6a860;--title-bg:#fff4d8;--title-color:#fff4d8;--content-bg:#fffdf8;z-index:1;background:var(--content-bg);border-radius:5px;margin:16px 0;padding:16px;display:block;position:relative;overflow:hidden}.frame-svg{pointer-events:none;z-index:1;width:100%;height:100%;position:absolute;top:0;bottom:0;left:0;right:0}.frame-border{fill:none;stroke:var(--dash-color);stroke-width:1.3px;stroke-dasharray:4 3;stroke-linecap:round;stroke-linejoin:round;opacity:.9;vector-effect:non-scaling-stroke;shape-rendering:geometricprecision;stroke-dashoffset:1px}.frame-title{z-index:1;background:var(--title-bg);min-width:60px;min-height:28px;color:var(--title-color);border-radius:6px;align-items:center;margin-bottom:12px;padding:4px 12px;font-weight:600;line-height:1.4;display:inline-flex;position:relative}.frame-body{z-index:1;min-height:60px;position:relative}.share-page{background:#fff;width:100%;height:100%;overflow-y:auto}.share-page-header{z-index:10;background:#fff;border-bottom:1px solid #f3f4f6;align-items:center;gap:12px;padding:16px 20px;display:flex;position:sticky;top:0}.share-page-back{color:#374151;cursor:pointer;background:0 0;border:none;border-radius:8px;flex-shrink:0;justify-content:center;align-items:center;width:36px;height:36px;font-size:22px;transition:background .12s;display:flex}.share-page-back:hover{background:#f3f4f6}.share-page-back:active{background:#e5e7eb}.share-page-title{color:#1f2937;margin:0;font-size:18px;font-weight:600}.share-page-content{max-width:640px;margin:0 auto;padding:24px 20px 40px}.share-page-section{margin-bottom:32px}.share-page-section:last-child{margin-bottom:0}.share-page-section-title{color:#9ca3af;text-transform:uppercase;letter-spacing:.5px;margin:0 0 4px;padding:0;font-size:12px;font-weight:600}.share-page-row{cursor:pointer;border-bottom:1px solid #f3f4f6;border-radius:6px;justify-content:space-between;align-items:center;min-height:48px;margin-left:-8px;margin-right:-8px;padding:14px 8px;transition:background .12s;display:flex}.share-page-row:last-child{border-bottom:none}.share-page-row:hover{background:#f9fafb}.share-page-row:active{background:#f3f4f6}.share-page-row-left{flex-direction:column;flex:1 1 0;gap:2px;min-width:0;display:flex}.share-page-row-label{color:#1f2937;font-size:14px;line-height:1.5}.share-page-row-desc{color:#9ca3af;font-size:12px;line-height:1.4}.share-page-row-right{flex-shrink:0;align-items:center;gap:8px;margin-left:16px;display:flex}.share-page-arrow{color:#d1d5db;flex-shrink:0;font-size:16px}.share-page-empty{text-align:center;color:#9ca3af;padding:32px 16px;font-size:13px}.share-poster-grid{grid-template-columns:repeat(2,1fr);gap:12px;margin-top:8px;display:grid}.share-poster-thumb{cursor:pointer;aspect-ratio:3/4;background:#f3f4f6;border:2px solid transparent;border-radius:10px;transition:border-color .15s,box-shadow .15s;overflow:hidden}.share-poster-thumb:hover{border-color:#4f46e5;box-shadow:0 2px 12px rgba(79,70,229,.15)}.share-poster-thumb:active{transform:scale(.98)}.share-poster-thumb img{object-fit:cover;width:100%;height:100%;display:block}@media (min-width:768px){.share-poster-grid{grid-template-columns:repeat(4,1fr);gap:16px}}@media (max-width:420px){.share-page-header{padding:12px 14px}.share-page-title{font-size:16px}.share-page-content{padding:16px 14px 32px}.share-poster-grid{grid-template-columns:repeat(2,1fr);gap:10px}}#modalRoot{z-index:9999;position:fixed;top:0;bottom:0;left:0;right:0}.modalRoot{opacity:0;justify-content:center;align-items:center;transition:opacity .2s;display:flex;position:absolute;top:0;bottom:0;left:0;right:0}.modalRoot.show{opacity:1}.modal-overlay{background:rgba(0,0,0,.35);position:absolute;top:0;bottom:0;left:0;right:0}.modal-content{background:#fff;border-radius:16px;flex-direction:column;width:fit-content;max-width:90vw;height:fit-content;max-height:90vh;transition:transform .2s;display:inline-flex;position:relative;overflow:auto;transform:scale(.95);box-shadow:0 20px 60px rgba(0,0,0,.2)}.modalRoot.show .modal-content{transform:scale(1)}.modal-content[data-size=md]{width:fit-content;max-width:80vw;max-height:80vh}.modal-content[data-size=sm]{border-radius:12px;width:360px;max-width:90vw;max-height:60vh}.modal-content[data-size=lg]{border-radius:16px;width:1100px;max-width:95vw;height:80vh}.modal-content[data-size=fullscreen]{border-radius:0;width:100vw;height:100vh}@media (max-width:768px){.modal-content{max-width:100vw;max-height:100vh;-webkit-overflow-scrolling:touch;border-radius:0;max-height:100dvh;overflow-y:auto}.modal-content[data-size=sm],.modal-content[data-size=md]{border-radius:0;width:100vw;max-width:100vw;max-height:100dvh}.modal-content[data-size=lg]{border-radius:0;width:100vw;max-width:100vw;height:100dvh}}.create-doc-modal{box-sizing:border-box;width:360px;max-width:90vw;padding:24px}.create-doc-header{margin-bottom:16px}.create-doc-header h3{color:var(--text-primary);margin:0;font-size:16px;font-weight:600}.create-doc-type-tabs{gap:8px;margin-bottom:16px;display:flex}.create-doc-type-tab{border:1px solid var(--border);cursor:pointer;height:40px;color:var(--text-secondary);background:#fff;border-radius:8px;flex:1;justify-content:center;align-items:center;gap:6px;font-size:13px;transition:all .15s;display:flex}.create-doc-type-tab:hover{background:var(--hover)}.create-doc-type-tab.active{border-color:var(--primary);color:var(--primary);background:#e8f0ff;font-weight:600}.create-doc-input-row{margin-bottom:20px}.create-doc-name-input{border:1px solid var(--border);box-sizing:border-box;background:#f8fafc;border-radius:8px;outline:none;width:100%;height:40px;padding:0 12px;font-size:14px;transition:border-color .2s,box-shadow .2s}.create-doc-name-input:focus{border-color:var(--primary);background:#fff;box-shadow:0 0 0 3px rgba(37,99,235,.1)}.create-doc-actions{justify-content:flex-end;gap:8px;display:flex}.create-doc-btn{cursor:pointer;border:none;border-radius:8px;height:36px;padding:0 20px;font-size:13px;font-weight:500;transition:all .12s}.create-doc-btn.cancel{color:var(--text-secondary);background:0 0}.create-doc-btn.cancel:hover{background:var(--hover)}.create-doc-btn.confirm{background:var(--primary);color:#fff}.create-doc-btn.confirm:hover{opacity:.9}
/*$vite$:1*/