.tiptap-shell{background:var(--color-primary-bg);border-radius:12px;flex-direction:column;display:flex;overflow:clip}.tiptap-toolbar{border:1px solid var(--color-surface-border);z-index:100;background:var(--color-divider-v2);border-radius:12px;flex-wrap:wrap;align-items:center;gap:4px 1px;padding:12px 10px;display:flex;position:sticky;top:0}.tiptap-toolbar-sep{background:var(--color-divider);flex-shrink:0;width:1px;height:20px;margin:0 4px}.tiptap-tb{cursor:pointer;width:34px;height:34px;color:var(--color-text);background:0 0;border:none;border-radius:6px;flex-shrink:0;justify-content:center;align-items:center;padding:0;transition:background .12s,color .12s;display:inline-flex}.tiptap-tb:hover:not(:disabled){background:var(--color-surface-hover)}.tiptap-tb.is-active{background:var(--color-primary-accent);color:#fff}.tiptap-tb.is-active:hover{background:var(--color-primary-accent-hover);color:#fff}.tiptap-tb:disabled{opacity:.3;cursor:default}.tiptap-link-row{align-items:center;gap:6px;width:100%;padding:4px 2px 2px;display:flex}.tiptap-link-input{border:1px solid var(--color-surface-border);background:var(--color-primary-bg-side);height:30px;color:var(--color-text);border-radius:6px;outline:none;flex:1;min-width:0;padding:0 10px;font-size:.82rem}.tiptap-link-input:focus{border-color:var(--color-primary-accent)}.tiptap-table-toolbar{flex-wrap:wrap;align-items:center;gap:4px;width:100%;padding:4px 2px 2px;display:flex}.tiptap-table-btn{border:1px solid var(--color-divider);height:28px;color:var(--color-text);cursor:pointer;background:0 0;border-radius:6px;flex-shrink:0;align-items:center;gap:4px;padding:0 9px;font-size:.78rem;transition:background .12s,color .12s;display:inline-flex}.tiptap-table-btn:hover{background:var(--color-surface-hover)}.tiptap-table-btn-danger{color:var(--color-error);border-color:var(--color-error)}.tiptap-table-btn-danger:hover{background:var(--color-error);color:#fff}.tiptap-insert-wrap{position:relative}.tiptap-insert-btn{border:1px solid var(--color-divider);cursor:pointer;height:30px;color:var(--color-text);white-space:nowrap;background:0 0;border-radius:6px;align-items:center;gap:4px;padding:0 10px;font-size:.78rem;font-weight:600;transition:background .12s;display:inline-flex}.tiptap-insert-btn:hover,.tiptap-insert-btn.is-open{background:var(--color-surface-hover)}.tiptap-insert-dropdown{background:var(--color-primary-bg);border:1px solid var(--color-surface-border);min-width:170px;box-shadow:0 8px 28px var(--color-shadow-strong);z-index:200;border-radius:10px;padding:4px;position:absolute;top:calc(100% + 6px);left:0}.tiptap-insert-item{cursor:pointer;width:100%;color:var(--color-text);text-align:left;background:0 0;border:none;border-radius:7px;align-items:center;gap:9px;padding:8px 10px;font-size:.85rem;transition:background .12s;display:flex}.tiptap-insert-item:hover{background:var(--color-surface-hover)}.tiptap-content{word-break:break-word;min-height:520px;caret-color:var(--color-primary-accent);color:var(--color-text);background:var(--color-primary-bg);border-radius:0 0 12px 12px;outline:none;padding:1rem;font-size:1.05rem;line-height:1.75}.tiptap-content p{margin:0 0 .55rem;font-size:1.2rem}.tiptap-content h1{margin:1.8rem 0 .6rem;font-size:2rem;font-weight:700;line-height:1.2}.tiptap-content h2{margin:1.4rem 0 .5rem;font-size:1.5rem;font-weight:700;line-height:1.3}.tiptap-content h3{margin:1.2rem 0 .4rem;font-size:1.2rem;font-weight:600;line-height:1.35}.tiptap-content h4,.tiptap-content h5,.tiptap-content h6{margin:1rem 0 .3rem;font-weight:600}.tiptap-content ul{margin:.5rem 0;padding-left:1.6rem;list-style:outside}.tiptap-content ol{margin:.5rem 0;padding-left:1.6rem;list-style:decimal}.tiptap-content li{margin:.25rem 0}.tiptap-content li>p{margin:0}.tiptap-content blockquote{border-left:3px solid var(--color-primary-accent);color:var(--color-text-secondary);margin:.8rem 0;padding:.4rem 0 .4rem 1rem;font-style:italic}.tiptap-content code{background:var(--color-primary-bg-side2);color:var(--color-text);border-radius:4px;padding:.12em .45em;font-family:ui-monospace,Fira Code,Cascadia Code,monospace;font-size:.875em}.tiptap-content pre{background:var(--color-primary-bg-side);border:1px solid var(--color-divider);color:var(--color-text);border-radius:8px;margin:1.5rem 0;padding:1.25rem;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;font-size:.9rem;line-height:1.6;overflow-x:auto}.tiptap-content pre code{font-size:inherit;color:inherit;white-space:pre;background:0 0;padding:0}.hljs-comment,.hljs-quote{color:#6a737d;font-style:italic}.hljs-keyword,.hljs-selector-tag{color:#d73a49}.hljs-string,.hljs-doctag,.hljs-regexp,.hljs-variable.template-variable,.hljs-template-variable{color:#032f62}.hljs-title,.hljs-title.function_,.hljs-name,.hljs-attr,.hljs-attribute{color:#6f42c1}.hljs-variable,.hljs-template-variable,.hljs-number,.hljs-literal,.hljs-type,.hljs-params,.hljs-link{color:#e36209}.hljs-built_in,.hljs-bullet,.hljs-formula,.hljs-subst{color:#005cc5}.hljs-section,.hljs-selector-id,.hljs-title.class_{color:#6f42c1;font-weight:700}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700}[data-theme=dark] .hljs-comment,[data-theme=dark] .hljs-quote{color:#8b949e}[data-theme=dark] .hljs-keyword,[data-theme=dark] .hljs-selector-tag{color:#ff7b72}[data-theme=dark] .hljs-string,[data-theme=dark] .hljs-doctag,[data-theme=dark] .hljs-regexp,[data-theme=dark] .hljs-variable.template-variable,[data-theme=dark] .hljs-template-variable{color:#a5d6ff}[data-theme=dark] .hljs-title,[data-theme=dark] .hljs-title.function_,[data-theme=dark] .hljs-name,[data-theme=dark] .hljs-attr,[data-theme=dark] .hljs-attribute{color:#d2a8ff}[data-theme=dark] .hljs-variable,[data-theme=dark] .hljs-template-variable,[data-theme=dark] .hljs-number,[data-theme=dark] .hljs-literal,[data-theme=dark] .hljs-type,[data-theme=dark] .hljs-params,[data-theme=dark] .hljs-link{color:#ffa657}[data-theme=dark] .hljs-built_in,[data-theme=dark] .hljs-bullet,[data-theme=dark] .hljs-formula,[data-theme=dark] .hljs-subst{color:#79c0ff}[data-theme=dark] .hljs-section,[data-theme=dark] .hljs-selector-id,[data-theme=dark] .hljs-title.class_{color:#d2a8ff}.math{background:var(--color-primary-bg-side);border:1px solid var(--color-divider);cursor:pointer;text-align:center;border-radius:8px;min-height:3rem;margin:1.5rem 0;padding:1.25rem;transition:all .2s;display:block;position:relative}.math:hover{border-color:var(--color-primary-accent);background:var(--color-surface-hover)}.math.math-selected{outline:2px solid var(--color-primary-accent);background:var(--color-surface);border-color:#0000}.math-content{color:var(--color-text-secondary);width:100%;font-family:ui-monospace,monospace;font-size:.95rem;display:block}.math-content-empty:before{content:"Enter LaTeX formula...";color:var(--color-text-muted);font-style:italic}.math .katex-display{width:100%;margin:0;padding:0;display:block;overflow:auto hidden}.tiptap-content img{border-radius:8px;max-width:100%;margin:.6rem 0;display:block}.tiptap-content img.ProseMirror-selectednode{outline:2px solid var(--color-primary-accent);outline-offset:2px}.tiptap-content hr{border:none;border-top:2px solid var(--color-divider);margin:1.5rem 0}.tiptap-content a{color:var(--color-primary-accent);cursor:pointer;text-decoration:underline}.tiptap-content mark{background-color:#f7581633;border-radius:3px;padding:0 2px}.tiptap-content sup{vertical-align:super;font-size:.72em}.tiptap-content sub{vertical-align:sub;font-size:.72em}.tiptap-content p.is-empty:only-child:before{color:var(--color-placeholder-text);content:attr(data-placeholder);float:left;pointer-events:none;height:0}.tiptap-content ::selection{background:var(--color-selection-bg);color:var(--color-selection-text)}.tiptap-editor-wrap .ProseMirror{outline:none}.tiptap-bubble-menu,.tiptap-floating-menu{display:none}[data-nostr-entity]{cursor:default;-webkit-user-select:none;user-select:none;margin:1rem 0;display:block}.ProseMirror-selectednode [data-nostr-entity],.ProseMirror .nostr-entity-selected{outline:2px solid var(--color-primary-accent);border-radius:10px}.ProseMirror .tableWrapper{scrollbar-width:thin;margin:1rem 0;overflow-x:auto}.ProseMirror .tableWrapper::-webkit-scrollbar{height:8px;display:block}.ProseMirror .tableWrapper::-webkit-scrollbar-track{background:0 0}.ProseMirror .tableWrapper::-webkit-scrollbar-thumb{background:var(--color-divider);border-radius:4px}.ProseMirror .tableWrapper::-webkit-scrollbar-thumb:hover{background:var(--color-surface-hover)}.ProseMirror table{border-collapse:collapse;table-layout:fixed;width:max-content;min-width:100%;margin:0}.ProseMirror table td,.ProseMirror table th{border:1px solid var(--color-divider);vertical-align:top;box-sizing:border-box;overflow-wrap:break-word;word-break:break-word;width:160px;min-width:160px;padding:8px 12px;position:relative}.ProseMirror table td>*,.ProseMirror table th>*{max-width:100%}.ProseMirror table td code,.ProseMirror table th code{white-space:pre-wrap;word-break:break-word}.ProseMirror table th{background:var(--color-surface-hover);text-align:left;font-weight:600}.ProseMirror table .selectedCell{background:var(--color-surface-hover)}.ProseMirror table .column-resize-handle{background-color:var(--color-primary-accent);pointer-events:none;width:4px;position:absolute;top:0;bottom:0;right:-2px}.ProseMirror table .grip-column,.ProseMirror table .grip-row{background:var(--color-surface-hover)}.ProseMirror.resize-cursor{cursor:col-resize}.tiptap-link-row .btn-small,.tiptap-image-row .btn-small,.tiptap-toolbar .btn-small{border-radius:var(--radius-md);height:34px;padding:0 14px;font-size:.8rem}.ai-panel-backdrop{z-index:1000002;pointer-events:none;background:#00000073;justify-content:flex-end;align-items:center;width:max-content;height:100vh;padding:1rem;transition:opacity .25s;display:flex;position:fixed;top:0;right:0}.ai-panel{background:var(--color-primary-bg);border:1px solid var(--color-divider);z-index:1000003;border-radius:18px;flex-direction:column;width:min(420px,100vw);height:100%;transition:transform .3s cubic-bezier(.4,0,.2,1);display:flex;position:relative;overflow:hidden;box-shadow:-8px 0 32px #00000059}.ai-panel .handle{background:var(--color-divider);border-radius:5px;width:100px;height:6px;margin-top:10px}.ai-panel-header{border-bottom:1px solid var(--color-surface-border);flex-shrink:0;justify-content:space-between;align-items:center;padding:16px 20px;display:flex}.ai-panel-title{color:var(--color-text);letter-spacing:.01em;margin:0;font-size:.95rem;font-weight:700}.ai-panel-subtitle{color:var(--color-text-muted);margin:2px 0 0;font-size:.72rem}.ai-close-btn{cursor:pointer;color:var(--color-text-secondary);border-radius:var(--radius-sm);background:0 0;border:none;padding:4px 6px;font-size:1.4rem;line-height:1;transition:color .15s,background .15s}.ai-close-btn:hover{color:var(--color-text);background:var(--color-surface-hover)}.ai-panel-messages{scroll-behavior:smooth;flex-direction:column;flex:1;gap:12px;padding:16px 16px 8px;display:flex;overflow-y:auto}.ai-panel-messages::-webkit-scrollbar{width:4px}.ai-panel-messages::-webkit-scrollbar-track{background:0 0}.ai-panel-messages::-webkit-scrollbar-thumb{background:var(--color-surface-border);border-radius:2px}.ai-empty-state{text-align:center;color:var(--color-text-secondary);flex-direction:column;align-items:center;gap:12px;padding:40px 24px;font-size:.875rem;line-height:1.55;display:flex}.ai-spark{color:#f97316;flex-shrink:0;font-style:normal}.ai-spark-lg{opacity:.9;justify-content:center;align-items:center;line-height:0;display:flex}.ai-msg-user{justify-content:flex-end;display:flex}.ai-msg-user span{background:var(--color-primary-bg-side);color:var(--color-text);border-radius:var(--radius-lg) var(--radius-lg) var(--radius-sm) var(--radius-lg);word-break:break-word;max-width:88%;padding:9px 14px;font-size:.875rem;line-height:1.5}.ai-msg-ai{border:1px solid var(--color-surface-border);border-radius:var(--radius-lg);flex-direction:column;gap:10px;max-width:100%;padding:12px 14px;display:flex}.ai-msg-ai-header{align-items:flex-start;gap:8px;display:flex}.ai-msg-ai-text{color:var(--color-text);word-break:break-word;font-size:.875rem;line-height:1.6}.ai-msg-preview{background:var(--color-surface-hover);border-radius:0 var(--radius-sm) var(--radius-sm) 0;border-left:3px solid #f97316;flex-direction:column;gap:6px;padding:10px 12px;display:flex}.ai-msg-preview-label{text-transform:uppercase;letter-spacing:.07em;color:#f97316;font-size:.68rem;font-weight:600}.ai-msg-preview pre{color:var(--color-text-secondary);white-space:pre-wrap;word-break:break-word;margin:0;font-family:SF Mono,Fira Code,Fira Mono,monospace;font-size:.78rem;line-height:1.5}.ai-panel-actions{flex-wrap:wrap;gap:8px;display:flex}.ai-btn-accept{color:#fff;border-radius:var(--radius-md);cursor:pointer;background:#f97316;border:none;flex:1;padding:7px 14px;font-family:inherit;font-size:.8rem;font-weight:600;transition:opacity .15s}.ai-btn-accept:hover{opacity:.85}.ai-btn-reject{color:var(--color-text-secondary);border:1px solid var(--color-surface-border);border-radius:var(--radius-md);cursor:pointer;background:0 0;flex:1;padding:7px 14px;font-family:inherit;font-size:.8rem;font-weight:600;transition:background .15s,color .15s}.ai-btn-reject:hover{background:var(--color-surface-hover);color:var(--color-text)}.ai-status-label{margin:0;font-size:.75rem;font-weight:500}.ai-status-accepted{color:var(--color-success)}.ai-status-rejected{color:var(--color-text-muted)}.ai-skeleton{border-radius:var(--radius-sm);background:linear-gradient(90deg, var(--color-surface-border) 25%, var(--color-surface-hover) 50%, var(--color-surface-border) 75%);background-size:200% 100%;width:100%;height:14px;animation:1.4s ease-in-out infinite ai-shimmer}@keyframes ai-shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}.ai-panel-input-area{border-top:1px solid var(--color-surface-border);background:var(--color-primary-bg);flex-shrink:0;align-items:flex-end;gap:8px;padding:12px 16px;display:flex}.ai-textarea{background:var(--color-surface);border:1px solid var(--color-surface-border);border-radius:var(--radius-md);color:var(--color-text);resize:none;flex:1;min-height:38px;max-height:104px;padding:9px 12px;font-family:inherit;font-size:.875rem;line-height:1.5;transition:border-color .15s;overflow-y:auto}.ai-textarea::placeholder{color:var(--color-text-muted)}.ai-textarea:focus{border-color:#f97316;outline:none}.ai-textarea:disabled{opacity:.5;cursor:not-allowed}.ai-send-btn{border-radius:var(--radius-md);color:#fff;cursor:pointer;background:#f97316;border:none;flex-shrink:0;justify-content:center;align-items:center;width:38px;height:38px;transition:opacity .15s;display:flex}.ai-send-btn:hover:not(:disabled){opacity:.85}.ai-clear-btn{border-radius:var(--radius-md);background:var(--color-surface);border:1px solid var(--color-surface-border);width:38px;height:38px;color:var(--color-text-muted);cursor:pointer;flex-shrink:0;justify-content:center;align-items:center;transition:opacity .15s,color .15s;display:flex}.ai-clear-btn:hover:not(:disabled){color:var(--color-text)}.ai-clear-btn:disabled,.ai-send-btn:disabled{opacity:.35;cursor:not-allowed}.ai-diff-banner{z-index:10;background:var(--color-background);border-bottom:1px solid #f97316;justify-content:space-between;align-items:center;gap:12px;padding:10px 16px;display:flex;position:sticky;top:0}.ai-diff-banner-label{letter-spacing:.08em;text-transform:uppercase;color:#f97316;align-items:center;gap:6px;font-size:.75rem;font-weight:600;display:flex}.ai-diff-banner-actions{flex-shrink:0;gap:8px;display:flex}.ai-diff-viewer{background:var(--color-primary-bg);border-radius:0 0 12px 12px;flex-direction:column;gap:2px;min-height:520px;padding:1rem;font-size:1.05rem;line-height:1.75;display:flex;overflow-y:auto}.ai-diff-summary{letter-spacing:.05em;text-transform:uppercase;color:#f97316;justify-content:space-between;align-items:center;gap:6px;margin-bottom:.5rem;padding:0 0 1rem;font-size:1rem;font-weight:600;display:flex}.ai-diff-block{white-space:pre-wrap;word-break:break-word;border-radius:4px;padding:10px 14px;font-size:.92rem;line-height:1.7;transition:opacity .2s}.ai-diff-unchanged{color:var(--color-text)}.ai-diff-removed{color:var(--color-text);opacity:.75;background:#ef44441a;border-left:3px solid #ef4444;text-decoration:line-through}.ai-diff-added{color:var(--color-text);background:#10b9811a;border-left:3px solid #10b981}.ai-diff-resolved{opacity:.4}.ai-diff-actions{border-top:1px solid #8080801f;gap:8px;margin-top:8px;padding-top:8px;display:flex}.ai-diff-btn{cursor:pointer;border:1px solid #0000;border-radius:4px;padding:3px 12px;font-family:inherit;font-size:.78rem;font-weight:600;transition:opacity .15s}.ai-diff-btn-accept{color:#fff;background:#f97316;border-color:#f97316}.ai-diff-btn-reject{color:var(--color-text-secondary);border-color:var(--color-surface-border);background:0 0}.ai-diff-btn:hover{opacity:.8}.ai-diff-status-label{color:var(--color-text-muted);margin:6px 0 0;font-size:.75rem;font-style:italic}.sr-panel{z-index:1000003;flex-direction:column;width:450px;height:100vh;padding:1rem;transition:transform .25s cubic-bezier(.4,0,.2,1);display:flex;position:fixed;top:0;right:0;overflow:hidden;transform:translateY(100%)}.sr-panel.is-open{transform:translateY(0)}.sr-panel-header{border-bottom:1px solid var(--color-surface-border);flex-direction:column;flex-shrink:0;gap:4px;padding:16px;display:flex}.sr-panel-header-row{justify-content:space-between;align-items:center;display:flex}.sr-persona-name{color:var(--color-text);font-size:.92rem;font-weight:700}.sr-persona-role{color:#6366f1;font-size:.75rem;font-weight:500}.sr-persona-desc{color:var(--color-text-muted);margin-top:2px;font-size:.72rem}.sr-reactions{flex-direction:column;flex:1;gap:10px;height:100%;padding:12px;display:flex;overflow:scroll}.sr-reactions::-webkit-scrollbar{width:4px}.sr-reactions::-webkit-scrollbar-track{background:0 0}.sr-reactions::-webkit-scrollbar-thumb{background:var(--color-surface-border);border-radius:2px}.sr-reaction-card{background:var(--color-surface);cursor:pointer;text-align:left;border:none;border-left:3px solid #6366f1;border-radius:6px;width:100%;padding:10px 12px;transition:opacity .15s;position:relative}.sr-reaction-card:hover{opacity:.85}.sr-reaction-card.severity-warning{border-left-color:#f59e0b}.sr-reaction-card.severity-critical{border-left-color:#ef4444}.sr-reaction-meta{justify-content:space-between;align-items:center;margin-bottom:5px;display:flex}.sr-para-label{color:var(--color-text-muted);font-family:monospace;font-size:.68rem}.sr-reaction-text{color:var(--color-text);margin:0;font-size:.82rem;line-height:1.5}.sr-reaction-actions{gap:6px;margin-top:8px;display:flex}.sr-fix-btn,.sr-ignore-btn{border:1px solid var(--color-surface-border);cursor:pointer;color:var(--color-text-secondary);background:0 0;border-radius:4px;padding:2px 8px;font-family:inherit;font-size:.72rem;transition:border-color .15s,color .15s}.sr-fix-btn:hover{color:#6366f1;border-color:#6366f1}.sr-ignore-btn:hover{border-color:var(--color-text-muted);color:var(--color-text-muted)}.sr-reaction-card.sr-reaction-ignored{opacity:.4;cursor:default;border-left-style:dashed}.sr-reaction-card.sr-reaction-ignored:hover{opacity:.4}.sr-reaction-card.sr-reaction-treated{opacity:.75;cursor:default;border-left-color:var(--color-green-main)}.sr-reaction-card.sr-reaction-treated:hover{opacity:.75}.sr-reaction-text-done{text-decoration:line-through}.sr-treated-label{color:var(--color-green-main);align-items:center;gap:4px;margin:6px 0 0;font-size:.68rem;display:inline-flex}.sr-ignored-label{color:var(--color-text-muted);margin:6px 0 0;font-size:.68rem;font-style:italic}.sr-switch-btn{border:1px solid var(--color-primary-light);background:0 0;background-color:var(--color-primary-light);cursor:pointer;color:var(--color-primary-accent);white-space:nowrap;border-radius:4px;flex-shrink:0;padding:2px 8px;font-family:inherit;font-size:.72rem;transition:border-color .15s,color .15s}.sr-active-footer{border-top:1px solid var(--color-surface-border);background:var(--color-surface);flex-shrink:0;padding-top:32px;position:relative}.sr-active-avatar-wrap{z-index:1;position:absolute;top:-30px;left:16px}.sr-active-avatar{border:2px solid var(--color-surface-border);width:58px;height:58px;box-shadow:0 2px 8px #0000002e}.sr-active-footer-body{padding:0 16px 16px}.sr-picker-grid{flex:1;grid-template-columns:1fr 1fr;gap:10px;padding:16px;display:grid;overflow-y:auto}.sr-picker-grid::-webkit-scrollbar{width:4px}.sr-picker-grid::-webkit-scrollbar-track{background:0 0}.sr-picker-grid::-webkit-scrollbar-thumb{background:var(--color-surface-border);border-radius:2px}.sr-persona-card{border:1px solid var(--color-surface-border);cursor:pointer;background:var(--color-surface);text-align:left;border-radius:8px;flex-direction:column;gap:4px;padding:12px;font-family:inherit;transition:border-color .15s,transform .1s;display:flex}.sr-persona-card:hover{border-color:#6366f1;transform:translateY(-1px)}.sr-persona-card:disabled{opacity:.5;cursor:not-allowed;transform:none}.sr-persona-emoji{font-size:1.4rem}.sr-persona-card-name{color:var(--color-text);font-size:.82rem;font-weight:700}.sr-persona-card-role{color:#6366f1;font-size:.7rem}.sr-persona-card-desc{color:var(--color-text-muted);margin-top:2px;font-size:.68rem;line-height:1.4}.sr-analyzing-indicator{color:var(--color-text-muted);align-items:center;gap:5px;font-size:.68rem;display:flex}.sr-analyzing-dot{background:#6366f1;border-radius:50%;flex-shrink:0;width:6px;height:6px;animation:1.2s ease-in-out infinite sr-pulse}@keyframes sr-pulse{0%,to{opacity:.3;transform:scale(.8)}50%{opacity:1;transform:scale(1)}}.sr-empty-state{text-align:center;color:var(--color-text-muted);padding:32px 16px;font-size:.82rem;line-height:1.6}
.legal-doc-page{z-index:30;-webkit-overflow-scrolling:touch;--ld-paper:#fff;--ld-ink:#16130f;--ld-ink-soft:#625a4d;--ld-rule:#e7e1d4;--ld-accent:#e70;--ld-accent-soft:#fdead2;--ld-card:#fbf8f2;--ld-mono-bg:#f2ede1;background:var(--ld-paper);color:var(--ld-ink);width:100%;transition:background-color var(--transition-normal), color var(--transition-normal);font-family:-apple-system,Inter,Helvetica Neue,Arial,sans-serif;position:fixed;inset:0;overflow-y:auto}[data-theme=dark] .legal-doc-page{--ld-paper:#000;--ld-ink:#f1ece1;--ld-ink-soft:#a89e8c;--ld-rule:#262320;--ld-accent:#f5943a;--ld-accent-soft:#241c10;--ld-card:#0b0b0c;--ld-mono-bg:#131110}[data-theme=gray] .legal-doc-page{--ld-paper:#171718;--ld-ink:#f1ece1;--ld-ink-soft:#a89e8c;--ld-rule:#2f2f2f;--ld-accent:#f5943a;--ld-accent-soft:#2c2013;--ld-card:#202020;--ld-mono-bg:#1c1c1c}.legal-doc-topbar{z-index:20;background:var(--ld-paper);border-bottom:1px solid var(--ld-rule);position:sticky;top:0}.legal-doc-topbar-inner{align-items:center;gap:2.5rem;max-width:1440px;margin:0 auto;padding:.85rem 1.5rem;display:flex}.legal-doc-brand{text-decoration:none;display:flex}.legal-doc-brand-mark-wrap{align-items:center;column-gap:8px;transition:opacity .2s;display:flex}.legal-doc-brand-mark{filter:brightness(0);flex:none}[data-theme=dark] .legal-doc-brand-mark,[data-theme=gray] .legal-doc-brand-mark{filter:brightness(0)invert()}.legal-doc-brand-badge{letter-spacing:.04em;text-transform:uppercase;color:var(--ld-accent);border:1px solid var(--ld-accent);border-radius:9999px;padding:2px 8px;font-size:.65rem;font-weight:700}.legal-doc-switcher{gap:.25rem;margin-left:auto;display:flex;overflow-x:auto}.legal-doc-switcher-item{color:var(--ld-ink-soft);white-space:nowrap;border-radius:999px;padding:.4rem .75rem;font-size:.86rem;text-decoration:none;transition:color .15s,background-color .15s}.legal-doc-switcher-item:hover{color:var(--ld-ink);background:var(--ld-accent-soft)}.legal-doc-switcher-item.is-active{color:var(--ld-accent);background:var(--ld-accent-soft);font-weight:600}.legal-doc-wrap{grid-template-columns:260px minmax(0,1fr);gap:5rem;max-width:1440px;margin:0 auto;padding:3rem 2.5rem 10rem;display:grid}@media (max-width:900px){.legal-doc-wrap{grid-template-columns:1fr;gap:1.5rem;padding:2rem 1.25rem 3.5rem}.legal-doc-toc{order:2;position:static!important}.legal-doc-main{order:1}.legal-doc-switcher{gap:.1rem}}.legal-doc-toc{height:fit-content;font-size:.83rem;position:sticky;top:5rem}.legal-doc-toc-label{text-transform:uppercase;letter-spacing:.08em;color:var(--ld-ink-soft);margin-bottom:.75rem;font-size:.68rem;display:block}.legal-doc-toc ol{border-left:1px solid var(--ld-rule);margin:0;padding:0;list-style:none}.legal-doc-toc a{color:var(--ld-ink-soft);border-left:2px solid #0000;margin-left:-1px;padding:.35rem 0 .35rem .85rem;text-decoration:none;transition:color .15s,border-color .15s;display:block}.legal-doc-toc a:hover,.legal-doc-toc a:focus-visible{color:var(--ld-ink)}.legal-doc-toc a.is-active{color:var(--ld-accent);border-left-color:var(--ld-accent)}.legal-doc-main{width:100%;min-width:0;max-width:78ch;padding-bottom:6rem;height:auto!important}.legal-doc-header{border-bottom:1px solid var(--ld-rule);margin-bottom:2rem;padding-bottom:1.5rem}.legal-doc-eyebrow{text-transform:uppercase;letter-spacing:.08em;color:var(--ld-accent);margin-bottom:.5rem;font-size:.72rem;font-weight:700;display:block}.legal-doc-title{letter-spacing:-.01em;text-wrap:balance;margin:0 0 .6rem;font-family:Georgia,"Source Serif 4",serif;font-size:2.1rem;font-weight:600}.legal-doc-updated{color:var(--ld-ink-soft);font-size:.8rem;display:block}.legal-doc-body{font-size:.97rem;line-height:1.7}.legal-doc-body h2{text-wrap:balance;margin:2.25rem 0 .6rem;scroll-margin-top:5.5rem;font-family:Georgia,"Source Serif 4",serif;font-size:1.35rem;font-weight:600}.legal-doc-body h2:first-child{margin-top:0}.legal-doc-body h3{margin:1.4rem 0 .4rem;font-size:1rem;font-weight:700}.legal-doc-body p{margin:.55rem 0}.legal-doc-body ul,.legal-doc-body ol{margin:.5rem 0;padding-left:1.3rem}.legal-doc-body li{margin:.3rem 0}.legal-doc-body strong{color:var(--ld-ink)}.legal-doc-body a{color:var(--ld-accent)}.legal-doc-table{table-layout:fixed;border-collapse:collapse;width:100%;margin:.9rem 0 1.4rem;font-size:.87rem}.legal-doc-table td,.legal-doc-table th{white-space:normal;overflow-wrap:break-word}.legal-doc-table th{text-align:left;text-transform:uppercase;letter-spacing:.05em;color:var(--ld-ink-soft);border-bottom:1px solid var(--ld-ink);padding:.4rem .6rem;font-size:.68rem}.legal-doc-table td{border-bottom:1px solid var(--ld-rule);vertical-align:top;padding:.55rem .6rem}.legal-doc-table tr:last-child td{border-bottom:none}.legal-doc-callout{border-left:3px solid var(--ld-accent);background:var(--ld-accent-soft);border-radius:0 8px 8px 0;margin:1.25rem 0;padding:.9rem 1.1rem;font-size:.9rem}.legal-doc-callout p{margin:.25rem 0}.legal-doc-callout p:first-child{margin-top:0}.legal-doc-callout p:last-child{margin-bottom:0}.legal-doc-code{background:var(--ld-mono-bg);border-radius:4px;padding:.05rem .4rem;font-family:ui-monospace,SF Mono,Menlo,monospace;font-size:.85em}
.sc-s-18{border:1px solid var(--color-divider);background-color:var(--color-primary-bg-side2);border-radius:20px;overflow:hidden}.no-bg{background-color:#0000}.main-middle,.ifs-full{width:100%}.if-no-border{border:none}.if-no-border:focus{border:none;outline:none}.bg-img{background-position:50%;background-repeat:no-repeat}.cover-bg{background-size:cover}input[type=text].if,input[type=number].if,input[type=text].if:focus,input[type=number].if:focus{border-radius:999px;padding:0 1.25rem}input[type=text].if.if-no-border,input[type=number].if.if-no-border,input[type=text].if.if-no-border:focus,input[type=number].if.if-no-border:focus{background:0 0;border:none;border-radius:0;outline:none}.txt-area{font-family:var(--font-inter), sans-serif;border:1px solid var(--color-divider);height:7rem;color:var(--color-primary-text);background:0 0;border-radius:18px;margin-right:0;padding:1.25rem;font-size:1rem}textarea.txt-area.if-no-border,textarea.txt-area.if-no-border:focus{background:0 0;border:none;border-radius:0;outline:none}.profile-edit-row{flex-wrap:nowrap;align-items:flex-start;display:flex}.profile-edit-row>*{flex:1 1 0;min-width:0}@media only screen and (max-width:800px){.profile-edit-row{flex-wrap:wrap}.profile-edit-row>*{flex:100%}}.settings-profile-pic .toggle{border-radius:50%;width:auto;height:auto;transition:all .2s ease-in-out;transform:scale(.6)translateY(150%)}.settings-profile-pic .toggle:after{content:none}.settings-profile-pic:hover .toggle{transform:scale(1)translateY(0)}.yaki-username-border{background:var(--color-divider);border-radius:16px;width:100%;padding:1px;position:relative}.yaki-username-border-spinner{z-index:0;border-radius:16px;position:absolute;inset:0;overflow:hidden}.yaki-username-border-spinner:before{content:"";aspect-ratio:1;transform-origin:50%;opacity:.7;background:conic-gradient(#0000 0deg 300deg,#8b5cf6 330deg,#ec4899 345deg,#f59e0b 355deg,#0000 360deg);width:150%;animation:3s linear infinite yaki-username-rotate;position:absolute;top:50%;left:50%}@keyframes yaki-username-rotate{0%{transform:translate(-50%,-50%)rotate(0)}to{transform:translate(-50%,-50%)rotate(360deg)}}.yaki-username-border-content{z-index:1;background:var(--color-primary-bg);border-radius:15px;position:relative;overflow:hidden}.yaki-username-border-content>.sc-s-18{margin:0;border:none!important}.yaki-nip05-overlay .sticker-small{word-break:break-word;border-radius:50px;justify-content:center;align-items:center;width:fit-content;height:10px;padding:0 5px;font-size:.625rem;display:flex}.yaki-nip05-overlay .sticker-green{background:var(--color-green-main);color:#fff}.yaki-nip05-overlay .sticker-orange{background:var(--color-orange-main);color:#fff}.flash{animation:1s ease-in-out infinite alternate flash}@keyframes flash{0%{opacity:.2}to{opacity:1}}
.styles-module__x-16BW__backdrop{z-index:999999999;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:#0000008c;justify-content:center;align-items:center;padding:16px;animation:.3s both styles-module__x-16BW__backdropIn;display:flex;position:fixed;inset:0}.styles-module__x-16BW__backdrop.styles-module__x-16BW__exiting{animation:.28s forwards styles-module__x-16BW__backdropOut}@keyframes styles-module__x-16BW__backdropIn{0%{opacity:0}to{opacity:1}}@keyframes styles-module__x-16BW__backdropOut{0%{opacity:1}to{opacity:0}}.styles-module__x-16BW__card{-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);background:#141414b3;border-radius:20px;width:100%;max-width:520px;max-height:90dvh;padding:28px 24px 24px;animation:.42s cubic-bezier(.22,1,.36,1) both styles-module__x-16BW__cardIn;position:relative;overflow:hidden auto;box-shadow:0 0 0 1px #ffffff1f,0 4px 6px #00000040,0 12px 24px #0006,0 32px 48px #0000004d,inset 0 1px #ffffff14}.styles-module__x-16BW__card.styles-module__x-16BW__exiting{animation:.26s cubic-bezier(.4,0,1,1) forwards styles-module__x-16BW__cardOut}@keyframes styles-module__x-16BW__cardIn{0%{opacity:0;transform:scale(.93)translateY(10px)}to{opacity:1;transform:scale(1)translateY(0)}}@keyframes styles-module__x-16BW__cardOut{0%{opacity:1;transform:scale(1)translateY(0)}to{opacity:0;transform:scale(.95)translateY(6px)}}.styles-module__x-16BW__glow{filter:blur(28px);pointer-events:none;background:radial-gradient(circle,#f7581647,#0000 68%);width:260px;height:200px;animation:5s ease-in-out infinite styles-module__x-16BW__glowPulse;position:absolute;top:-80px;left:50%;transform:translate(-50%)}@keyframes styles-module__x-16BW__glowPulse{0%,to{opacity:.75;transform:translate(-50%)scale(1)}50%{opacity:1;transform:translate(-50%)scale(1.12)}}.styles-module__x-16BW__header{text-align:center;margin-bottom:22px;position:relative}.styles-module__x-16BW__badge{letter-spacing:.09em;text-transform:uppercase;color:var(--color-primary-accent);margin-bottom:12px;font-size:.65rem;font-weight:700;animation:.5s cubic-bezier(.22,1,.36,1) both styles-module__x-16BW__riseIn;display:inline-block}h3.styles-module__x-16BW__title,.styles-module__x-16BW__title{color:#ffffffe6;margin:0 0 8px;font-family:DM sans,sans-serif;font-size:1.35rem;font-weight:700;animation:.5s cubic-bezier(.22,1,.36,1) 50ms both styles-module__x-16BW__riseIn}.styles-module__x-16BW__subtitle{color:#ffffff80;max-width:380px;margin:0 auto;font-family:DM sans,sans-serif;font-size:.87rem;line-height:1.6;animation:.5s cubic-bezier(.22,1,.36,1) .1s both styles-module__x-16BW__riseIn}@keyframes styles-module__x-16BW__riseIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.styles-module__x-16BW__fields{flex-direction:column;gap:12px;margin-bottom:18px;display:flex}.styles-module__x-16BW__field{background:#ffffff0a;border:1px solid #ffffff12;border-radius:14px;padding:13px 14px;transition:border-color .25s,background-color .25s;animation:.5s cubic-bezier(.22,1,.36,1) both styles-module__x-16BW__riseIn}.styles-module__x-16BW__field:first-of-type{animation-delay:.14s}.styles-module__x-16BW__field:nth-of-type(2){animation-delay:.2s}.styles-module__x-16BW__field:nth-of-type(3){animation-delay:.26s}.styles-module__x-16BW__field.styles-module__x-16BW__available{background:#2fbf710f;border-color:#2fbf7173}.styles-module__x-16BW__field.styles-module__x-16BW__taken{background:#e03b3b0d;border-color:#e03b3b73;animation:.4s styles-module__x-16BW__shake}@keyframes styles-module__x-16BW__shake{0%,to{transform:translate(0)}25%{transform:translate(-5px)}75%{transform:translate(5px)}}.styles-module__x-16BW__settled{background:#2fbf710d;border-color:#2fbf7159}.styles-module__x-16BW__settledValue{color:#ffffffeb;text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;font-weight:600;overflow:hidden}.styles-module__x-16BW__fieldLabel{letter-spacing:.06em;text-transform:uppercase;color:#ffffff6b;align-items:center;gap:7px;margin-bottom:9px;font-family:DM sans,sans-serif;font-size:.7rem;font-weight:700;display:flex}.styles-module__x-16BW__inputRow{align-items:center;gap:2px;font-family:DM sans,sans-serif;font-size:.92rem;display:flex}.styles-module__x-16BW__affix{color:#fff6;white-space:nowrap;flex-shrink:0}.styles-module__x-16BW__input,input[type=text].styles-module__x-16BW__input:not(.styles-module__x-16BW__if),input[type=text].styles-module__x-16BW__input:not(.styles-module__x-16BW__if):focus{color:#ffffffeb;min-width:40px;font-family:inherit;font-size:inherit;background:0 0;border:none;border-radius:0;outline:none;flex:1;height:auto;padding:0;font-weight:600;line-height:normal}.styles-module__x-16BW__input::placeholder,input[type=text].styles-module__x-16BW__input::placeholder{color:#ffffff40;font-weight:400}.styles-module__x-16BW__input:disabled{color:#ffffff8c;cursor:not-allowed}.styles-module__x-16BW__status{flex-shrink:0;justify-content:center;align-items:center;width:20px;height:20px;display:flex}.styles-module__x-16BW__check{color:#2fbf71;flex-shrink:0;justify-content:center;align-items:center;animation:.32s cubic-bezier(.34,1.56,.64,1) both styles-module__x-16BW__popIn;display:inline-flex}.styles-module__x-16BW__cross{color:var(--color-red-main,#e03b3b);opacity:.8;flex-shrink:0;justify-content:center;align-items:center;animation:.32s cubic-bezier(.34,1.56,.64,1) both styles-module__x-16BW__popIn;display:inline-flex}@keyframes styles-module__x-16BW__popIn{0%{opacity:0;transform:scale(.4)}to{opacity:1;transform:scale(1)}}.styles-module__x-16BW__spinner{border:2px solid #ffffff2e;border-top-color:var(--color-primary-accent);border-radius:50%;width:14px;height:14px;animation:.7s linear infinite styles-module__x-16BW__spin}@keyframes styles-module__x-16BW__spin{to{transform:rotate(360deg)}}.styles-module__x-16BW__hint{margin:8px 0 0;font-family:DM sans,sans-serif;font-size:.76rem;line-height:1.45;animation:.3s both styles-module__x-16BW__riseIn}.styles-module__x-16BW__hintError{color:var(--color-red-main,#e03b3b)}.styles-module__x-16BW__hintOk{color:#2fbf71}.styles-module__x-16BW__optIn{background:#ffffff0a;border:1px solid #ffffff12;border-radius:14px;margin-bottom:14px;padding:12px 14px;animation:.5s cubic-bezier(.22,1,.36,1) .3s both styles-module__x-16BW__riseIn}.styles-module__x-16BW__optInRow{cursor:pointer;align-items:flex-start;gap:10px;display:flex}.styles-module__x-16BW__checkbox,input[type=checkbox].styles-module__x-16BW__checkbox{appearance:none;cursor:pointer;background:0 0;border:1px solid #ffffff40;border-radius:5px;flex-shrink:0;width:17px;height:17px;margin:1px 0 0;transition:background-color .18s,border-color .18s;position:relative}.styles-module__x-16BW__checkbox:checked{background-color:var(--color-primary-accent);border-color:var(--color-primary-accent)}.styles-module__x-16BW__checkbox:checked:after{content:"";border:2px solid #fff;border-width:0 2px 2px 0;width:4px;height:9px;position:absolute;top:1px;left:5px;transform:rotate(45deg)}.styles-module__x-16BW__optInLabel{color:#ffffffb8;font-family:DM sans,sans-serif;font-size:.78rem;line-height:1.5}.styles-module__x-16BW__optInHint{color:#ffffff73;margin:9px 0 0 27px;font-family:DM sans,sans-serif;font-size:.74rem;line-height:1.5;animation:.3s both styles-module__x-16BW__riseIn}.styles-module__x-16BW__note{color:#ffffff6b;text-align:center;margin:0 0 16px;font-family:DM sans,sans-serif;font-size:.76rem;line-height:1.55}.styles-module__x-16BW__actions{flex-direction:column;gap:9px;display:flex}.styles-module__x-16BW__primary{border-radius:var(--border-r-18,10px);background-color:var(--color-primary-accent);color:#fff;cursor:pointer;border:none;justify-content:center;align-items:center;width:100%;height:42px;font-family:DM sans,sans-serif;font-size:14px;font-weight:700;transition:opacity .15s,transform .15s;display:flex}.styles-module__x-16BW__primary:hover:not(:disabled){opacity:.88}.styles-module__x-16BW__primary:active:not(:disabled){transform:scale(.98)}.styles-module__x-16BW__primary:disabled{opacity:.4;cursor:not-allowed}.styles-module__x-16BW__skip{color:#ffffff80;cursor:pointer;border-radius:var(--border-r-18,10px);background:0 0;border:none;width:100%;height:38px;font-family:DM sans,sans-serif;font-size:13px;font-weight:600;transition:background-color .15s,color .15s}.styles-module__x-16BW__skip:hover{color:#ffffffbf;background-color:#ffffff0f}.styles-module__x-16BW__success{text-align:center;flex-direction:column;align-items:center;gap:14px;padding:18px 0 6px;display:flex}.styles-module__x-16BW__successRing{color:#2fbf71;background:#2fbf7124;border:1px solid #2fbf714d;border-radius:50%;justify-content:center;align-items:center;width:74px;height:74px;font-size:2rem;animation:.45s cubic-bezier(.34,1.56,.64,1) both styles-module__x-16BW__popIn;display:flex}.styles-module__x-16BW__successList{flex-direction:column;gap:8px;width:100%;margin-top:4px;display:flex}.styles-module__x-16BW__successItem{color:#fffc;background:#ffffff0a;border:1px solid #ffffff12;border-radius:12px;align-items:center;gap:9px;padding:10px 13px;font-family:DM sans,sans-serif;font-size:.85rem;animation:.4s cubic-bezier(.22,1,.36,1) both styles-module__x-16BW__riseIn;display:flex}.styles-module__x-16BW__successItem:first-of-type{animation-delay:.1s}.styles-module__x-16BW__successItem:nth-of-type(2){animation-delay:.18s}.styles-module__x-16BW__successItem:nth-of-type(3){animation-delay:.26s}[data-theme=light] .styles-module__x-16BW__card{background:#ffffffd9;box-shadow:0 0 0 1px #00000014,0 4px 6px #0000000f,0 12px 24px #0000001a,inset 0 1px #ffffffe6}[data-theme=light] .styles-module__x-16BW__title{color:#000000d9}:is([data-theme=light] .styles-module__x-16BW__subtitle,[data-theme=light] .styles-module__x-16BW__note){color:#00000080}:is([data-theme=light] .styles-module__x-16BW__field,[data-theme=light] .styles-module__x-16BW__successItem,[data-theme=light] .styles-module__x-16BW__optIn){background:#00000008;border-color:#00000012}[data-theme=light] .styles-module__x-16BW__optInLabel{color:#000000b8}[data-theme=light] .styles-module__x-16BW__optInHint{color:#00000080}[data-theme=light] .styles-module__x-16BW__checkbox{border-color:#00000040}:is([data-theme=light] .styles-module__x-16BW__fieldLabel,[data-theme=light] .styles-module__x-16BW__affix){color:#00000073}:is([data-theme=light] .styles-module__x-16BW__input,[data-theme=light] .styles-module__x-16BW__settledValue,[data-theme=light] .styles-module__x-16BW__successItem){color:#000000d9}[data-theme=light] .styles-module__x-16BW__input::placeholder{color:#00000047}[data-theme=light] .styles-module__x-16BW__skip{color:#00000080}[data-theme=light] .styles-module__x-16BW__skip:hover{color:#000000bf;background-color:#0000000a}
