:root{font-family:Inter,Segoe UI,system-ui,-apple-system,sans-serif;color:#0f172a;background:#f8fafc}:root{--card-min-width: 300px;--card-max-width: 680px;--card-vw: 26vw;--card-line-height: 1.5;--abstract-max-height: 220px;--card-left-gutter: 48px;--card-min-height: 300px;--icp-footer-safe-height: 46px}*{box-sizing:border-box}body,html,#root{margin:0;height:100%}html,body{overflow-x:hidden}.icp-footer{position:fixed;left:0;right:0;bottom:0;z-index:9999;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px;padding:6px 14px;font-size:12px;line-height:1.4;color:#64748b;background:#f8fafceb;border-top:1px solid rgba(226,232,240,.8);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);pointer-events:auto}.icp-footer .icp-sep{opacity:.55}.icp-footer .icp-link{display:inline-flex;align-items:center;gap:5px;color:inherit;text-decoration:none}.icp-footer .icp-badge{width:16px;height:16px;flex:0 0 auto;display:inline-block;object-fit:contain}.icp-footer a:hover,.icp-footer .icp-link:hover{color:#1e293b;text-decoration:underline}.app{display:flex;flex-direction:column;height:100%;padding-bottom:var(--icp-footer-safe-height)}.app-workspace{height:100vh;overflow:hidden}.app-workspace .app-header,.app-workspace .controls,.app-workspace .warnings{flex:0 0 auto}.app-workspace .results{overflow:hidden}.app-header{display:flex;justify-content:space-between;align-items:center;padding:10px 28px;background:#f8fafc;color:#0f172a;border-bottom:1px solid #e2e8f0}.app-header h1{margin:0;font-size:20px}.brand{display:flex;align-items:center;gap:12px}.brand-icon{width:34px;height:34px;border-radius:6px;background:#f8fafc}.account{position:relative}.account-button{display:inline-flex;align-items:center;background:transparent;border:none;padding:0;cursor:pointer;transition:transform .12s ease;-webkit-appearance:none;-moz-appearance:none;appearance:none;gap:8px}.account-button:hover{transform:translateY(-1px)}.account-avatar{width:34px;height:34px;border-radius:50%;display:block;border:1px solid rgba(226,232,240,.5);background:transparent}.account-status{font-size:13px;color:#475569}.account-menu{position:absolute;right:0;top:46px;background:#f8fafc;color:#0f172a;border:1px solid #e2e8f0;border-radius:12px;box-shadow:0 16px 34px #0f172a26;padding:8px 6px;min-width:160px;z-index:20}.account-item{width:100%;display:flex;align-items:center;gap:10px;padding:8px 12px;border:none;background:transparent;cursor:pointer;border-radius:6px;font-size:13px;color:inherit;-webkit-appearance:none;-moz-appearance:none;appearance:none;box-shadow:none}.account-item:hover{background:#94a3b82e}.account-item-badge{margin-left:auto;background:#ef4444;color:#fff;border-radius:10px;padding:0 6px;font-size:11px;font-weight:600;line-height:18px;min-width:18px;text-align:center}.menu-icon{width:16px;height:16px;display:inline-block}.controls{padding:16px 28px;display:flex;flex-direction:column;gap:12px;background:#fff;border-bottom:1px solid #e2e8f0}.expiry-reminder-banner{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 28px;background:linear-gradient(90deg,#fff7ed,#fffbeb);border-bottom:1px solid #fed7aa}.expiry-reminder-copy{display:flex;flex-direction:column;gap:4px}.expiry-reminder-title{font-size:15px;font-weight:700;color:#9a3412}.expiry-reminder-detail{font-size:13px;color:#7c2d12}.expiry-reminder-actions{display:flex;align-items:center;gap:8px}.auth{flex:1;display:flex;align-items:center;justify-content:center;padding:40px 16px;background:#f8fafc}.auth-card{width:min(420px,92vw);background:#fff;border:1px solid #e2e8f0;border-radius:16px;box-shadow:0 12px 30px #0f172a14;padding:24px}.auth-title{font-size:18px;font-weight:700;color:#0f172a;margin-bottom:16px}.auth-tabs{display:flex;gap:8px;margin-bottom:16px}.auth-tab{flex:1;border:1px solid #e2e8f0;background:#f8fafc;color:#475569;border-radius:10px;padding:8px 0;font-weight:600;cursor:pointer}.auth-tab.active{background:#0f172a;color:#f8fafc;border-color:#0f172a}.auth-form{display:flex;flex-direction:column;gap:12px}.auth-form label{display:flex;flex-direction:column;gap:6px;font-size:13px;color:#334155}.label-row{display:flex;align-items:center;justify-content:space-between}.auth-form input{padding:10px 12px;border-radius:8px;border:1px solid #cbd5f5}.phone-input-group{display:flex;align-items:center;min-width:0;border:1px solid #cbd5e1;border-radius:14px;background:linear-gradient(180deg,#fff,#f8fafc);box-shadow:inset 0 1px #ffffffe6,0 1px 2px #0f172a0a;overflow:hidden;transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease}.phone-country-select{position:relative;flex:0 0 126px;display:flex;align-items:center;gap:8px;min-height:44px;padding:0 36px 0 12px;border-right:1px solid #e2e8f0;background:linear-gradient(180deg,#fff,#f8fafc)}.phone-country-select:after{content:"▾";position:absolute;right:12px;top:50%;transform:translateY(-50%);color:#475569;font-size:12px;pointer-events:none}.phone-country-flag{flex:0 0 auto;font-size:16px;line-height:1}.phone-country-code{flex:0 1 auto;min-width:0;color:#0f172a;font-size:12px;font-weight:700;letter-spacing:.01em}.phone-format-hint{display:block;margin-top:6px;color:#64748b;font-size:12px;line-height:1.45}.phone-format-hint.invalid{color:#b91c1c}.phone-input-group.invalid{border-color:#fca5a5;background:linear-gradient(180deg,#fff,#fff7f7);box-shadow:0 0 0 1px #ef444414}.phone-input-group.invalid .phone-country-select{border-right-color:#fecaca;background:linear-gradient(180deg,#fffdfd,#fff5f5)}.phone-input-group.invalid .phone-country-code,.phone-input-group.invalid .phone-country-select:after{color:#b91c1c}.phone-input-group:focus-within{border-color:#60a5fa;box-shadow:0 0 0 3px #60a5fa2e}.phone-input-group.invalid:focus-within{border-color:#ef4444;box-shadow:0 0 0 3px #ef444429}.phone-input-group input{flex:1;min-width:0;border:none;background:transparent;height:44px;padding:0 14px;border-radius:0}.phone-input-group input:focus{outline:none}.pp-notes-page{flex:1;display:grid;grid-template-columns:320px 1fr;min-height:0;background:#f8fafc}.pp-notes-page-embedded{height:100%;display:block;background:transparent}.pp-notes-sidebar{border-right:1px solid #e2e8f0;background:#fff;display:flex;flex-direction:column;min-height:0}.pp-notes-sidebar-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 14px 10px;border-bottom:1px solid #f1f5f9}.pp-notes-sidebar-title{font-size:16px;font-weight:700;color:#0f172a}.pp-notes-back{border:1px solid #cbd5e1;background:#f8fafc;border-radius:8px;padding:6px 10px;font-size:12px;cursor:pointer}.pp-notes-sidebar-actions{display:grid;grid-template-columns:1fr;gap:8px;padding:12px 14px;border-bottom:1px solid #f1f5f9}.pp-notes-sidebar-actions button{border:1px solid #cbd5e1;background:#f8fafc;color:#1e293b;border-radius:10px;padding:8px 10px;cursor:pointer;font-weight:600;font-size:12px}.pp-notes-tree{overflow:auto;padding:10px}.pp-notes-group{margin-bottom:14px}.pp-notes-group-name{font-size:12px;color:#64748b;font-weight:700;text-transform:uppercase;letter-spacing:.08em;margin:0 8px 6px}.pp-notes-items{display:flex;flex-direction:column;gap:6px}.pp-note-item{width:100%;text-align:left;border:1px solid transparent;background:#f8fafc;border-radius:10px;padding:9px 10px;cursor:pointer;display:flex;flex-direction:column;gap:4px}.pp-note-main{border:none;background:transparent;text-align:left;padding:0;margin:0;cursor:pointer;display:flex;flex-direction:column;gap:4px}.pp-note-actions{display:flex;align-items:center;gap:8px}.pp-note-actions button{border:none;background:transparent;color:#475569;font-size:11px;padding:0;cursor:pointer}.pp-note-actions button:hover{color:#0f172a}.pp-note-actions button.danger{color:#b91c1c}.pp-note-item:hover{border-color:#cbd5e1}.pp-note-item.active{border-color:#0ea5e9;background:#eff6ff}.pp-note-title{font-size:13px;color:#0f172a;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pp-note-time{font-size:11px;color:#64748b}.pp-notes-editor-wrap{min-width:0;min-height:0;display:flex;flex-direction:column;padding:14px;gap:12px;overflow:hidden}.pp-notes-editor-wrap-embedded{height:100%;padding:12px}.pp-notes-editor-toolbar{display:none}.pp-notes-editor-toolbar>*{min-width:0}.pp-notes-workspace{flex:1;min-height:0;display:flex;flex-direction:column;gap:12px}.pp-notes-topbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 16px;border:1px solid #e2e8f0;border-radius:16px;background:linear-gradient(180deg,#fff,#f8fafc)}.pp-notes-topbar-embedded{padding:12px 14px;gap:12px}.pp-notes-title-group{min-width:0;flex:1;display:flex;flex-direction:column;gap:4px}.pp-notes-topbar-controls{flex:0 1 auto;min-width:0;display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}.pp-notes-topbar-controls-embedded{flex-wrap:nowrap}.pp-notes-category-wrap{min-width:168px;display:flex;align-items:center;gap:8px}.pp-notes-category-menu-wrap{min-width:176px}.pp-notes-category-trigger{width:100%;height:40px;display:inline-flex;align-items:center;justify-content:space-between;gap:10px;padding:0 12px;border:1px solid #cbd5e1;border-radius:10px;background:#fff;color:#0f172a;font-size:13px;cursor:pointer}.pp-notes-category-caret{font-size:14px;color:#64748b}.pp-notes-category-select{border:1px solid #cbd5e1;border-radius:10px;height:40px;padding:0 10px;font-size:13px;background:#fff;min-width:0;width:100%}.pp-notes-category-x{width:28px;height:28px;border:none;border-radius:999px;background:#fee2e2;color:#b91c1c;cursor:pointer;font-weight:700;line-height:1}.pp-notes-mode-switch{display:inline-flex;border:1px solid #cbd5e1;border-radius:10px;overflow:hidden;background:#fff;justify-self:start;width:fit-content;max-width:100%}.pp-notes-mode-switch button{border:none;background:#fff;height:40px;padding:0 16px;cursor:pointer;font-size:12px;color:#475569;white-space:nowrap}.pp-notes-mode-switch button.active{background:#0f172a;color:#f8fafc}.pp-notes-delete,.pp-notes-export{border:1px solid #cbd5e1;border-radius:10px;height:40px;padding:0 12px;cursor:pointer;font-size:12px;font-weight:600}.pp-notes-delete{background:#fff;color:#b91c1c;border-color:#fecaca}.pp-notes-export{background:#fff;color:#0369a1;border-color:#bae6fd}.pp-notes-menu-wrap{position:relative}.pp-notes-icon-button{position:relative;width:40px;height:40px;border:1px solid #cbd5e1;border-radius:10px;background:#fff;cursor:pointer;display:inline-flex;align-items:center;justify-content:center}.pp-notes-icon-button:after{content:attr(data-tooltip);position:absolute;left:50%;bottom:calc(100% + 8px);transform:translate(-50%) translateY(4px);padding:5px 8px;border-radius:8px;background:#0f172aeb;color:#fff;font-size:12px;line-height:1;white-space:nowrap;opacity:0;pointer-events:none;transition:opacity .12s ease,transform .12s ease}.pp-notes-icon-button:hover:after{opacity:1;transform:translate(-50%) translateY(0)}.pp-notes-icon-button:disabled:after{display:none}.pp-notes-share-icon img,.pp-notes-delete img{width:18px;height:18px}.pp-notes-delete{background:#fff;border-color:#fecaca}.pp-notes-delete img{opacity:.88}.pp-notes-pop-menu{position:absolute;top:calc(100% + 8px);right:0;min-width:144px;background:#fff;border:1px solid #e2e8f0;border-radius:12px;box-shadow:0 14px 30px #0f172a1f;padding:6px;z-index:40;display:flex;flex-direction:column;gap:4px}.pp-notes-embedded-more-trigger{min-width:40px}.pp-notes-embedded-more-dots{font-size:20px;line-height:1;margin-top:-6px;letter-spacing:1px;color:#475569}.pp-notes-embedded-more-menu{width:min(320px,calc(100vw - 72px));max-height:min(60vh,420px);overflow:auto}.pp-notes-embedded-more-section{display:flex;flex-direction:column;gap:4px;padding:4px 0}.pp-notes-embedded-more-section+.pp-notes-embedded-more-section{border-top:1px solid #e2e8f0;margin-top:4px;padding-top:10px}.pp-notes-embedded-more-label{padding:0 8px 4px;font-size:11px;font-weight:700;color:#64748b;letter-spacing:.04em}.pp-notes-mode-switch-compact{width:100%}.pp-notes-mode-switch-compact button{flex:1 1 0;min-width:0;padding:0 10px}.pp-notes-embedded-danger{color:#b91c1c}.pp-notes-category-menu{min-width:220px}.pp-notes-category-option-row{display:flex;align-items:center;gap:6px}.pp-notes-category-option{flex:1;display:inline-flex;align-items:center;justify-content:space-between;gap:8px}.pp-notes-category-option.active{background:#eff6ff;color:#1d4ed8}.pp-notes-category-inline-delete{width:32px;height:32px;border:none;border-radius:8px;background:#fef2f2;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}.pp-notes-category-inline-delete img{width:15px;height:15px}.pp-notes-category-inline-delete:hover{background:#fee2e2}.pp-notes-pop-menu button{border:none;background:transparent;text-align:left;padding:8px 10px;border-radius:8px;cursor:pointer;color:#0f172a}.pp-notes-pop-menu button:hover{background:#f8fafc}.pp-notes-editor-grid{flex:1;min-height:0;display:grid;grid-template-columns:1fr 1fr;gap:10px}.pp-notes-source{flex:1;min-height:0;border:1px solid #cbd5e1;border-radius:12px;padding:14px;resize:none;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:13px;line-height:1.6;background:#fff}.pp-notes-source-wrap{flex:1;min-height:0;display:flex;flex-direction:column;gap:8px}.pp-notes-source-wrap.single-mode{min-height:0}.pp-notes-source-wrap.single-mode>.pp-notes-wysiwyg,.pp-notes-source-wrap.single-mode>div:first-child{flex:1;min-height:0;display:flex;flex-direction:column}.pp-notes-source-wrap.markdown-layout{min-height:0}.pp-notes-preview{border:1px solid #e2e8f0;border-radius:12px;padding:16px;background:#fff;overflow:auto}.pp-notes-preview.single-mode{min-height:420px}.pp-notes-autosave{margin-left:auto;font-size:12px;color:#64748b;padding-left:10px;white-space:nowrap}.pp-notes-render-meta{font-size:12px;color:#64748b}.pp-notes-title-text,.pp-notes-title-editor{margin:0;font-size:22px;line-height:1.35;color:#0f172a;font-weight:700}.pp-notes-title-editor{outline:none;border-radius:8px;padding:2px 4px;margin:-2px -4px 0;min-width:120px}.pp-notes-title-editor:focus{background:#f8fafc}.pp-notes-wysiwyg{flex:1;min-height:0;height:100%;border:1px solid #cbd5e1;border-radius:14px;overflow:hidden;background:#fff;display:flex;flex-direction:column}.pp-notes-wysiwyg .rsw-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:4px;padding:8px;border-bottom:1px solid #e2e8f0;background:linear-gradient(180deg,#fff,#f8fafc)}.pp-notes-wysiwyg .rsw-btn,.pp-notes-wysiwyg .rsw-dd{border-radius:8px}.pp-notes-wysiwyg .rsw-btn{width:32px;height:32px;color:#334155}.pp-notes-wysiwyg .rsw-btn:hover{background:#e2e8f0}.pp-notes-wysiwyg .rsw-btn[data-active=true]{background:#dbeafe;color:#1d4ed8}.pp-notes-wysiwyg .rsw-dd{border:1px solid #cbd5e1;padding:6px 8px;background:#fff}.pp-notes-wysiwyg .rsw-separator{margin:0 4px;border-right-color:#e2e8f0}.pp-notes-wysiwyg .rsw-ce{flex:1;min-height:0;padding:18px 18px 28px;font-size:15px;line-height:1.75;color:#0f172a}.pp-notes-wysiwyg .rsw-ce h1,.pp-notes-wysiwyg .rsw-ce h2,.pp-notes-wysiwyg .rsw-ce h3{margin:1.2em 0 .55em;line-height:1.3}.pp-notes-wysiwyg .rsw-ce p{margin:0 0 .9em}.pp-notes-wysiwyg .rsw-ce ul{list-style:disc;padding-left:1.6em}.pp-notes-wysiwyg .rsw-ce ol{list-style:decimal;padding-left:1.6em}.pp-notes-wysiwyg .rsw-ce blockquote{margin:1em 0;padding-left:14px;border-left:3px solid #93c5fd;color:#475569}.pp-notes-wysiwyg .rsw-ce a{color:#2563eb}.pp-notes-wysiwyg .rsw-ce:focus{outline:none}.pp-notes-export-capture-shell{position:fixed;left:-10000px;top:0;width:794px;opacity:0;pointer-events:none;z-index:-1}.pp-notes-export-capture{width:794px;padding:42px 46px 54px;background:#fff;color:#0f172a}.pp-notes-export-capture-title{font-size:28px;font-weight:700;line-height:1.3}.pp-notes-export-capture-meta{margin-top:10px;font-size:13px;color:#64748b}.pp-notes-export-capture-body{margin-top:24px;font-size:16px;line-height:1.8}.pp-notes-export-capture-body h1,.pp-notes-export-capture-body h2,.pp-notes-export-capture-body h3{margin:1.1em 0 .55em;line-height:1.35}.pp-notes-export-capture-body p{margin:0 0 .9em}.pp-notes-export-capture-body ul{list-style:disc;padding-left:1.6em}.pp-notes-export-capture-body ol{list-style:decimal;padding-left:1.6em}.pp-notes-export-capture-body blockquote{margin:1em 0;padding-left:14px;border-left:3px solid #93c5fd;color:#475569}.pp-notes-share-modal{width:min(520px,92vw)}.pp-notes-share-modal-title{font-size:18px;font-weight:700;color:#0f172a}.pp-notes-share-modal-subtitle{margin-top:4px;font-size:12px;color:#64748b}.pp-notes-share-modal-body{display:flex;align-items:center;gap:18px}.pp-notes-share-qr-shell{width:240px;min-width:240px;min-height:240px;border-radius:16px;border:1px solid #e2e8f0;background:#fff;display:inline-flex;align-items:center;justify-content:center}.pp-notes-share-qr{width:220px;height:220px}.pp-notes-share-qr-loading{font-size:13px;color:#64748b}.pp-notes-share-copy{display:flex;flex-direction:column;gap:10px}.pp-notes-share-hint{font-size:13px;line-height:1.6;color:#334155}.pp-notes-share-preview-title{font-size:12px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:#64748b}.pp-notes-share-preview{padding:12px 14px;border-radius:12px;background:#f8fafc;border:1px solid #e2e8f0;color:#0f172a;font-size:14px;line-height:1.6}.pp-notes-empty{color:#64748b;font-size:13px;padding:14px}.pp-notes-empty.large{text-align:center;margin-top:60px}.pp-notes-error{background:#fef2f2;border:1px solid #fecaca;color:#b91c1c;padding:10px 12px;border-radius:10px;font-size:13px}.pp-notes-notice{background:#f0fdf4;border:1px solid #bbf7d0;color:#166534;padding:10px 12px;border-radius:10px;font-size:13px}@media (max-width: 1000px){.pp-notes-page{grid-template-columns:1fr}.pp-notes-sidebar{border-right:none;border-bottom:1px solid #e2e8f0;max-height:42vh}.pp-notes-topbar{align-items:stretch;flex-direction:column}.pp-notes-topbar-controls{justify-content:flex-start}.pp-notes-category-wrap{min-width:min(100%,220px)}.pp-notes-editor-grid{grid-template-columns:1fr}}.phone-code-input-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.phone-code-input-row .phone-input-group{flex:1;min-width:0}.auth-send-code-btn{height:40px;padding:0 12px;border-radius:8px;border:1px solid #93c5fd;background:#eff6ff;color:#1d4ed8;font-size:12px;font-weight:600;white-space:nowrap;cursor:pointer}.auth-send-code-btn:disabled{opacity:.7;cursor:not-allowed}.auth-code-expire-timer{font-size:12px;color:#1d4ed8}.auth-code-expire-timer.expired{color:#b45309}.auth-form select{padding:10px 12px;border-radius:8px;border:1px solid #cbd5f5;background:#fff}.phone-country-select select{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;padding:0;border:none;background:transparent;color:transparent;opacity:0;cursor:pointer;appearance:none;-webkit-appearance:none;-moz-appearance:none}.phone-country-select select:focus{outline:none}.reset-code-section{display:flex;flex-direction:column;gap:8px}.reset-code-label-row{display:flex;justify-content:space-between;align-items:center;font-size:13px;color:#334155}.reset-code-timer{color:#1d4ed8;font-size:12px}.reset-code-timer.expired{color:#b45309}.reset-code-grid{position:relative;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px;cursor:text}.reset-code-cell{height:38px;border-radius:8px;border:1px solid #cbd5f5;background:#fff;display:inline-flex;align-items:center;justify-content:center;font-size:18px;font-weight:700;color:#0f172a;letter-spacing:.3px}.reset-code-cell.filled{border-color:#60a5fa;background:#f8fbff}.reset-code-hidden-input{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;opacity:0;cursor:text}.auth-options,.payment-options{display:flex;gap:12px;flex-wrap:wrap}.payment-option{width:68px;height:68px;border-radius:14px;border:1px solid transparent;background:transparent;padding:6px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;transition:border-color .12s ease,box-shadow .12s ease}.payment-option img{width:56px;height:56px}.payment-option-unionpay{padding:3px}.payment-option-unionpay img{width:62px;height:62px}.payment-option.selected{border:1px solid #60a5fa;box-shadow:0 0 0 2px #3b82f633}.payment-option.disabled-payment{opacity:.72}.qr-block{margin-top:8px;display:flex;flex-direction:column;align-items:center;gap:8px;padding:12px;border-radius:12px;border:1px dashed #cbd5f5;background:#f8fafc}.qr-title{font-size:12px;color:#475569}.qr-image{width:140px;height:140px}.option{display:flex;align-items:center;gap:6px;font-size:13px;color:#475569}.auth-note{font-size:13px;color:#0f172a}.auth-reminder{display:flex;flex-direction:column;gap:6px;padding:10px 12px;border-radius:12px;border:1px solid #fcd34d;background:#fffbeb;color:#78350f;font-size:13px}.auth-reminder strong{font-size:13px;font-weight:700}.order-list{display:flex;flex-direction:column;gap:8px;margin-top:8px;font-size:12px;color:#334155}.order-item{display:grid;grid-template-columns:repeat(5,1fr);gap:6px;padding:8px 10px;border:1px solid #e2e8f0;border-radius:8px;background:#f8fafc}.auth-error{color:#b91c1c;font-size:12px}.auth-submit{background:#38bdf8;border:none;color:#0f172a;padding:10px 12px;border-radius:10px;font-weight:700;cursor:pointer}.auth-submit.outline{background:transparent;border:1px solid #cbd5f5;color:#334155}.auth-links{display:flex;justify-content:space-between;gap:10px}.auth-mode-switch{display:inline-flex;align-items:center;gap:8px}.auth-login-switch-row{display:flex;align-items:center}.auth-submode-panel{display:inline-flex;align-items:center;gap:16px;padding:0;border:none;background:transparent;box-shadow:none;margin-top:-2px}.auth-form label.auth-submode-option{display:inline-flex;flex-direction:row;align-items:center;gap:7px;padding:2px 0;border-radius:0;cursor:pointer;color:#475569;transition:color .14s ease;border:none}.auth-submode-option input{position:absolute;opacity:0;pointer-events:none}.auth-submode-dot{width:14px;height:14px;border-radius:999px;border:1.5px solid #93c5fd;background:#fff;box-shadow:inset 0 0 0 3px #fff;transition:all .14s ease}.auth-submode-text{font-size:13px;font-weight:500}.auth-submode-option.active{color:#0f172a;background:transparent;box-shadow:none}.auth-submode-option.active .auth-submode-dot{border-color:#2563eb;background:#2563eb;box-shadow:inset 0 0 0 3px #fff}.auth-link{background:transparent;border:1px solid transparent;color:#475569;cursor:pointer;font-size:12px;padding:4px 10px;border-radius:999px;transition:all .14s ease}.auth-link.active{color:#0f172a;background:#e0f2fe;border-color:#bae6fd}.auth-link.inline{font-size:12px;color:#2563eb;border:none;padding:0}.auth-avatar-row{display:flex;align-items:center;gap:12px}.settings-avatar{width:48px;height:48px;border-radius:50%;border:none;background:transparent}.settings-bind-section{border:1px solid #dbeafe;border-radius:10px;padding:10px;background:#f8fbff;display:flex;flex-direction:column;gap:10px}.settings-bind-title{font-weight:700;color:#0f172a}.settings-bind-tip{font-size:12px;color:#475569}.settings-bind-grid{display:grid;grid-template-columns:1fr;gap:8px}.settings-bind-code-row{display:flex;gap:8px;align-items:center}.settings-bind-code-row input{flex:1}@media (max-width: 640px){.phone-input-group{width:100%}.phone-country-select{flex-basis:108px;gap:6px;padding-left:10px;padding-right:30px}.phone-country-code{font-size:12px}.phone-code-input-row .phone-input-group{flex-basis:100%}.auth-send-code-btn,.settings-send-code-btn{width:100%}}.settings-send-code-btn{min-width:98px;white-space:nowrap}.settings-bind-btn{width:fit-content}.modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a59;display:flex;align-items:center;justify-content:center;padding:24px;z-index:50;overflow-y:auto}.modal-overlay.nested{background:#0f172a8c;z-index:60}.modal-card{width:min(460px,92vw);max-height:calc(100vh - 48px);overflow-y:auto;background:#fff;border-radius:16px;border:1px solid #e2e8f0;box-shadow:0 16px 40px #0f172a33;padding:20px 22px 24px}.pp-notes-picker-modal{width:min(560px,92vw)}.pp-notes-picker-subtitle{margin-top:4px;font-size:12px;color:#64748b}.pp-notes-picker-list{display:flex;flex-direction:column;gap:10px}.pp-notes-picker-item{width:100%;border:1px solid #dbeafe;background:linear-gradient(180deg,#fff,#f8fbff);border-radius:14px;padding:12px 14px;text-align:left;cursor:pointer;display:flex;flex-direction:column;gap:6px}.pp-notes-picker-item:hover{border-color:#93c5fd;box-shadow:0 14px 28px #0f172a14}.pp-notes-picker-title{font-size:14px;font-weight:700;color:#0f172a}.pp-notes-picker-meta{font-size:12px;color:#64748b}.pp-notes-floating-window{position:fixed;z-index:75;min-width:720px;min-height:520px;max-width:calc(100vw - 24px);max-height:calc(100vh - 24px);background:#fffffffa;border:1px solid rgba(191,219,254,.95);border-radius:20px;box-shadow:0 28px 60px #0f172a52;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);overflow:hidden;resize:both;display:flex;flex-direction:column}.pp-notes-floating-header{flex:0 0 auto;display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:14px 16px;border-bottom:1px solid #dbeafe;background:linear-gradient(180deg,#fff,#f8fbff);cursor:move;-webkit-user-select:none;user-select:none}.pp-notes-floating-title{font-size:15px;font-weight:800;color:#0f172a}.pp-notes-floating-subtitle{margin-top:4px;font-size:12px;color:#64748b}.pp-notes-floating-actions{display:flex;align-items:center;gap:8px}.pp-notes-floating-action{border:1px solid #cbd5e1;background:#fff;color:#334155;border-radius:999px;padding:7px 12px;font-size:12px;font-weight:700;cursor:pointer}.pp-notes-floating-action.danger{border-color:#fecaca;color:#b91c1c;background:#fff7f7}.pp-notes-floating-content{flex:1;min-height:0;display:flex}.pp-notes-floating-content .pp-notes-page-embedded{width:100%}.academic-map-modal{width:min(1240px,96vw);max-height:min(92vh,980px);padding-bottom:0;position:relative;display:flex;flex-direction:column;overflow:hidden}.academic-map-scroll{overflow-y:auto;padding:0 22px 22px;margin:0 -22px}.academic-map-summary-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:14px}.academic-map-summary-card{padding:14px 16px;border-radius:14px;background:linear-gradient(180deg,#f8fbff,#eef6ff);border:1px solid #dbeafe;display:flex;flex-direction:column;gap:4px}.academic-map-summary-card strong{font-size:24px;color:#0f172a}.academic-map-summary-card span{font-size:12px;color:#475569}.academic-map-switches{display:inline-flex;gap:8px;margin-bottom:16px;padding:6px;border-radius:999px;background:#f8fafc;border:1px solid #e2e8f0}.academic-map-switch{border:none;background:transparent;color:#475569;border-radius:999px;padding:10px 16px;cursor:pointer;font-weight:600}.academic-map-switch.active{background:#0f172a;color:#f8fafc}.academic-map-filters{display:flex;flex-direction:column;gap:10px;margin-bottom:16px;position:relative;z-index:5}.academic-map-filter-combobox{position:relative;width:min(360px,100%)}.academic-map-filter-label{font-size:12px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:#475569}.academic-map-filter-list{display:flex;flex-wrap:wrap;gap:8px}.academic-map-filter-search{width:100%;border:1px solid #cbd5e1;border-radius:14px;background:#fff;color:#0f172a;padding:10px 12px;font-size:13px;outline:none;box-shadow:inset 0 1px 2px #0f172a0a}.academic-map-filter-search:focus{border-color:#38bdf8;box-shadow:0 0 0 3px #38bdf829}.academic-map-filter-empty{font-size:12px;color:#64748b}.academic-map-filter-dropdown{position:absolute;top:calc(100% + 8px);left:0;right:0;max-height:280px;overflow-y:auto;padding:8px;border-radius:16px;border:1px solid #cbd5e1;background:#fffffffa;box-shadow:0 18px 48px #0f172a29;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.academic-map-filter-option{width:100%;text-align:left;border:none;background:transparent;color:#0f172a;border-radius:12px;padding:10px 12px;font-size:13px;cursor:pointer}.academic-map-filter-option.highlighted,.academic-map-filter-option.selected{background:#eff6ff;color:#0369a1}.academic-map-filter-chip{border:1px solid #cbd5e1;background:#fff;color:#334155;border-radius:999px;padding:8px 12px;font-size:12px;font-weight:600;cursor:pointer;transition:border-color .16s ease,background .16s ease,color .16s ease,box-shadow .16s ease}.academic-map-filter-chip:hover,.academic-map-filter-chip.active{border-color:#0ea5e9;background:#0f172a;color:#f8fafc;box-shadow:0 10px 22px #0f172a29}.academic-map-layout{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(280px,.8fr);gap:16px;align-items:stretch}.academic-map-canvas{position:relative;min-height:560px;border-radius:24px;overflow:hidden;border:1px solid #dbeafe;background:#f8fafc}.academic-world-svg,.academic-discipline-svg{width:100%;height:100%;display:block}.academic-map-sidebar{display:flex;flex-direction:column;gap:12px;min-height:560px;max-height:70vh;overflow-y:auto}.academic-map-sidebar-title{font-size:15px;font-weight:700;color:#0f172a}.academic-side-card{border-radius:16px;border:1px solid #dbeafe;background:#f8fbff;padding:14px;display:flex;flex-direction:column;gap:10px}.academic-side-card-button{width:100%;text-align:left;cursor:pointer;transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease,background .16s ease}.academic-side-card-button:hover,.academic-side-card-button.active{border-color:#7dd3fc;box-shadow:0 14px 34px #0ea5e924;background:linear-gradient(180deg,#f0f9ff,#f8fbff);transform:translateY(-1px)}.academic-side-card.dark{border-color:#94a3b838;background:linear-gradient(180deg,#111827,#1f2937)}.academic-side-card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.academic-side-title{font-weight:700;color:#0f172a;line-height:1.45}.academic-side-card.dark .academic-side-title{color:#f8fafc}.academic-side-subtitle{margin-top:4px;font-size:12px;color:#64748b}.academic-side-card.dark .academic-side-subtitle{color:#e2e8f0bd}.academic-side-badge{min-width:42px;height:42px;border-radius:50%;background:linear-gradient(135deg,#fdba74,#f97316);color:#fff;display:inline-flex;align-items:center;justify-content:center;font-size:12px;font-weight:700}.academic-discipline-dot{width:16px;height:16px;border-radius:50%;display:inline-block;box-shadow:0 0 0 4px #ffffff14}.academic-paper-mini-list{display:flex;flex-direction:column;gap:8px}.academic-paper-mini-item{border:1px solid #e2e8f0;background:#fff;border-radius:12px;padding:10px 12px;text-align:left;cursor:pointer;display:flex;flex-direction:column;gap:4px}.academic-paper-mini-item.dark{background:#ffffff0d;border-color:#94a3b829}.academic-paper-mini-item span{font-size:13px;line-height:1.45;color:#0f172a}.academic-paper-mini-item.dark span{color:#f8fafc}.academic-paper-mini-item em{font-style:normal;font-size:11px;color:#64748b}.academic-paper-mini-item.dark em{color:#e2e8f0ad}.academic-paper-mini-item:disabled{opacity:.64;cursor:not-allowed}.academic-map-empty.compact{min-height:140px}.academic-map-empty.compact.dark{background:#0f172af5;border-color:#94a3b833;color:#e2e8f0}.academic-discipline-three-shell{width:100%;height:560px;background:radial-gradient(circle at top,#1e293beb,#0f172a 68%)}.institution-profile-card{position:absolute;right:26px;bottom:26px;width:min(360px,calc(100vw - 56px));border-radius:18px;border:1px solid rgba(148,163,184,.22);background:#fffffff5;box-shadow:0 24px 56px #0f172a3d;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);padding:16px;z-index:4}.discipline-detail-card{position:absolute;left:26px;bottom:26px;width:min(380px,calc(100vw - 56px));border-radius:18px;border:1px solid rgba(148,163,184,.2);background:#f8fafcf5;box-shadow:0 24px 56px #0f172a3d;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);padding:16px;z-index:4}.discipline-detail-list{margin-top:14px}.institution-profile-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.institution-profile-name{font-size:18px;font-weight:700;color:#0f172a;line-height:1.4}.institution-profile-subtitle{margin-top:4px;font-size:12px;color:#64748b}.institution-profile-summary{margin-top:12px;font-size:13px;line-height:1.6;color:#334155}.institution-profile-metrics{margin-top:14px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.institution-profile-metrics div{border-radius:12px;background:#f8fafc;border:1px solid #e2e8f0;padding:10px 12px;display:flex;flex-direction:column;gap:4px}.institution-profile-metrics strong{font-size:18px;color:#0f172a}.institution-profile-metrics span{font-size:11px;color:#64748b}.institution-profile-links{display:flex;gap:8px;margin-top:14px;flex-wrap:wrap}.institution-link-btn{margin:0;width:auto;min-width:unset;padding:8px 14px}.institution-profile-roles{margin-top:12px;display:flex;flex-wrap:wrap;gap:8px}.institution-role-chip{padding:6px 10px;border-radius:999px;background:#eff6ff;color:#1d4ed8;font-size:12px;font-weight:600}.academic-map-empty{min-height:320px;display:flex;align-items:center;justify-content:center;color:#475569;border:1px dashed #cbd5e1;border-radius:18px;background:#f8fafc}.academic-map-error{color:#b91c1c}.academic-map-footnote{font-size:12px;line-height:1.5;color:#64748b}.academic-map-overlay-note,.academic-map-heatmap-legend{position:absolute;left:18px;border-radius:999px;padding:8px 12px;font-size:12px;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);z-index:2}.academic-map-overlay-note{top:18px;background:#ffffffe0;border:1px solid rgba(148,163,184,.3);color:#334155}.academic-map-heatmap-legend{bottom:18px;background:#0f172ad1;color:#e2e8f0}.academic-map-controls{position:absolute;top:18px;right:18px;display:flex;gap:8px;z-index:4}.academic-map-control-btn{border:1px solid rgba(148,163,184,.3);background:#ffffffeb;color:#0f172a;border-radius:12px;min-width:36px;height:36px;padding:0 10px;font-weight:700;cursor:pointer;box-shadow:0 8px 20px #0f172a14}.academic-map-control-btn.reset{min-width:auto;font-size:12px}.academic-map-tooltip{position:absolute;min-width:180px;max-width:220px;padding:10px 12px;border-radius:14px;background:#0f172ae6;color:#f8fafc;box-shadow:0 18px 45px #0f172a47;pointer-events:none;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);z-index:3}.academic-map-country-tooltip{min-width:170px}.academic-map-tooltip-header{display:flex;align-items:center;justify-content:space-between;gap:12px}.academic-map-tooltip-flag{font-size:18px;line-height:1}.academic-map-tooltip strong{display:block;font-size:13px;font-weight:700;line-height:1.45}.academic-map-tooltip span{display:block;margin-top:4px;font-size:12px;line-height:1.45;color:#e2e8f0e6}.academic-map-tooltip-trend{margin-top:10px;display:flex;flex-direction:column;gap:7px}.academic-map-tooltip-trend-row{display:grid;grid-template-columns:30px minmax(0,1fr) 42px;gap:8px;align-items:center}.academic-map-tooltip-trend-row label,.academic-map-tooltip-trend-row em{font-size:11px;font-style:normal;color:#e2e8f0d1}.academic-map-tooltip-trend-row div{height:6px;border-radius:999px;background:#94a3b83d;overflow:hidden}.academic-map-tooltip-trend-row i{display:block;height:100%;min-width:6px;border-radius:inherit;background:linear-gradient(90deg,#38bdf8,#f59e0b)}.academic-side-field-tags{display:flex;flex-wrap:wrap;gap:6px}.academic-side-field-tag{display:inline-flex;align-items:center;padding:4px 8px;border-radius:999px;background:#e0f2fe;color:#0369a1;font-size:11px;font-weight:700}@media (max-width: 980px){.academic-map-modal{max-height:calc(100vh - 24px)}.academic-map-summary-row{grid-template-columns:repeat(2,minmax(0,1fr))}.academic-map-layout{grid-template-columns:1fr}.academic-map-canvas,.academic-map-sidebar{min-height:auto;max-height:none}.institution-profile-card,.discipline-detail-card{position:static;width:100%;margin-top:16px}}@media (max-width: 640px){.modal-overlay{padding:12px;align-items:flex-start;overflow-y:auto}.app-header{flex-wrap:wrap;gap:14px}.academic-map-summary-row{grid-template-columns:1fr}.academic-map-modal{width:min(100vw - 18px,100vw);max-height:calc(100vh - 24px);padding:16px}.academic-map-scroll{padding:0 16px 16px;margin:0 -16px}.academic-map-switches{width:100%}.academic-map-switch{flex:1}.export-modal-actions{grid-template-columns:1fr}.pp-notes-floating-window{left:12px!important;top:12px!important;right:12px;bottom:12px;width:auto!important;height:auto!important;min-width:0;min-height:0;resize:none}}.modal-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.modal-close{border:none;background:transparent;cursor:pointer;padding:4px}.modal-close img{width:18px;height:18px}.control-row{display:flex;flex-wrap:wrap;gap:12px 20px;align-items:center}.keyword-row{align-items:flex-end}.keyword-group{flex:1}.control-group{display:flex;flex-direction:column;gap:6px;min-width:200px}.control-group.inline{flex-direction:row;align-items:center;gap:8px;min-width:0}.control-group.inline>label{white-space:nowrap}.control-group.inline>input{width:66px;flex:0 0 auto}.control-group input,.control-group textarea{padding:8px 10px;border-radius:6px;border:1px solid #cbd5f5}.control-group textarea::placeholder{color:#94a3b8}.search-button{background:#38bdf8;border:none;color:#0f172a;padding:10px 18px;border-radius:8px;cursor:pointer;font-weight:600;height:40px}.control-group.toggle,.control-group.checkbox{align-self:flex-end}.control-group.toggle,.control-group.checkbox,.source-toggle{display:flex;align-items:center;gap:6px}.warnings{background:#fff7ed;color:#9a3412;padding:10px 28px;border-bottom:1px solid #fed7aa}.results{flex:1;display:flex;gap:16px;padding:12px 16px 0;min-height:0}.history-sidebar{width:var(--sidebar-width, 260px);min-width:var(--sidebar-width, 260px);max-width:var(--sidebar-width, 260px);background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:12px;height:100%;min-height:0;overflow:auto;transition:width .3s ease,min-width .3s ease,max-width .3s ease}.history-header{display:flex;justify-content:space-between;align-items:center;font-weight:600;color:#0f172a;padding-bottom:10px;margin-bottom:6px;border-bottom:1px solid #eef2f7}.history-controls{display:flex;gap:6px}.history-toggle{background:#f8fafc;border:1px solid #cbd5f5;border-radius:8px;padding:4px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px}.history-toggle img{width:16px;height:16px}.history-list{display:flex;flex-direction:column;gap:6px}.history-item{display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:8px;border:1px solid #e2e8f0;border-radius:8px;background:#f8fafc}.history-title{background:transparent;border:none;cursor:pointer;color:#1d4ed8;text-align:left;flex:1}.history-actions{display:flex;gap:8px}.history-actions button{background:transparent;border:none;color:#475569;cursor:pointer}.history-row{display:flex;align-items:center;gap:6px;width:100%}.history-merge-checkbox{flex-shrink:0;cursor:pointer}.history-icon-btn{display:inline-flex;align-items:center;justify-content:center;background:transparent;border:none;cursor:pointer;padding:2px 4px;color:#475569}.history-icon-btn img{width:16px;height:16px}.history-toggle.merge-active{background:#fef3c7;border-color:#f59e0b;color:#b45309}.history-merge-go{background:#f97316;color:#fff;border:none;border-radius:8px;padding:4px 10px;font-size:12px;font-weight:600;cursor:pointer;white-space:nowrap}.history-merge-go:disabled{opacity:.7;cursor:not-allowed}.history-item.selected{border-color:#f59e0b;background:#fffbeb}.history-item.merged{border-color:#f97316;background:linear-gradient(135deg,#fff7ed,#ffedd5)}.history-item.merged .history-title{color:#c2410c;font-weight:600}.bulk-download-modal{max-width:520px}.bulk-download-input{width:100%;border:1px solid #cbd5f5;border-radius:8px;padding:6px 10px;font-size:13px;box-sizing:border-box}.bulk-download-progress{margin-top:6px;height:6px;background:#e2e8f0;border-radius:3px;overflow:hidden}.bulk-download-progress>div{height:100%;background:#2563eb;transition:width .2s ease}.modal-body{margin-bottom:14px}.modal-actions{display:flex;justify-content:flex-end;gap:8px}.modal-actions .btn-primary{background:#2563eb;color:#fff;border:none;border-radius:8px;padding:6px 14px;font-size:13px;cursor:pointer}.modal-actions .btn-primary:disabled{opacity:.6;cursor:not-allowed}.modal-actions .btn-secondary{background:#f1f5f9;color:#0f172a;border:1px solid #cbd5f5;border-radius:8px;padding:6px 14px;font-size:13px;cursor:pointer}.modal-actions .btn-secondary:disabled{opacity:.6;cursor:not-allowed}.history-empty{color:#64748b;font-size:12px}.context-menu{position:fixed;background:#fff;border:1px solid #e2e8f0;border-radius:10px;box-shadow:0 12px 30px #0f172a1f;padding:6px;display:flex;flex-direction:column;gap:4px;z-index:80}.context-menu button{background:transparent;border:none;padding:6px 10px;cursor:pointer;text-align:left;border-radius:6px}.context-menu button:hover{background:#f1f5f9}.reference-modal{width:min(820px,92vw)}.export-modal{width:min(560px,92vw)}.export-modal-title{font-size:16px;font-weight:700;color:#0f172a;line-height:1.45}.export-modal-subtitle{margin-top:6px;font-size:13px;color:#64748b}.export-modal-actions{margin-top:18px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.ai-followup-box{margin-top:14px;display:flex;gap:10px;align-items:center}.ai-followup-input{flex:1;border:1px solid #cbd5e1;border-radius:12px;background:#fff;color:#0f172a;padding:11px 12px;font-size:13px;outline:none}.ai-followup-input:focus{border-color:#38bdf8;box-shadow:0 0 0 3px #38bdf829}.ai-followup-send{margin:0;width:auto;min-width:88px}.reference-title{font-size:12px;color:#475569;margin-bottom:8px}.reference-graph{width:100%;height:420px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px}.reference-hint{font-size:12px;color:#64748b;margin-top:8px}.graph{flex:1;min-height:0;overflow:hidden;background:#fff;border:1px solid #e2e8f0;border-radius:12px;position:relative}.view-toggle{position:absolute;right:12px;top:12px;display:flex;gap:8px;z-index:5;background:#ffffffeb;border:1px solid rgba(226,232,240,.95);border-radius:16px;padding:6px;box-shadow:0 16px 34px #0f172a24;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.graph-toggle{position:absolute;left:12px;top:12px;display:flex;gap:8px;z-index:6;background:#fffffff0;border:1px solid rgba(226,232,240,.95);border-radius:16px;padding:6px;box-shadow:0 16px 34px #0f172a24;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.graph-toggle-btn{border:none;background:transparent;min-width:74px;height:40px;padding:0 12px;display:inline-flex;align-items:center;justify-content:center;gap:6px;border-radius:8px;cursor:pointer;font-size:13px;font-weight:700;color:#475569;transition:background .16s ease,color .16s ease,transform .16s ease}.graph-toggle-btn.active{background:linear-gradient(180deg,#eff6ff,#dbeafe);color:#1d4ed8}.graph-toggle-btn:hover{background:#f8fafc}.graph-toggle-icon{font-size:15px;line-height:1}.graph-legend{position:absolute;right:12px;top:72px;z-index:5;min-width:188px;border-radius:16px;padding:12px 14px;background:#fffffff0;border:1px solid rgba(226,232,240,.95);box-shadow:0 16px 34px #0f172a24;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.graph-legend-title{font-size:12px;font-weight:800;color:#0f172a;margin-bottom:8px}.graph-legend-row{display:flex;align-items:center;gap:8px;font-size:12px;color:#475569}.graph-legend-row+.graph-legend-row{margin-top:8px}.graph-legend-node{width:16px;height:16px;border-radius:999px;flex:0 0 auto}.graph-legend-node.citation{background:#3b82f6}.graph-legend-node.author{background:#14b8a6}.graph-legend-node.affiliation{background:#f59e0b}.graph-legend-line{width:30px;height:0;border-top:3px solid #2563eb;flex:0 0 auto}.graph-legend-line.citation,.graph-legend-line.author,.graph-legend-line.affiliation{border-top-color:#94a3b8d9}.card-controls{position:absolute;left:12px;top:12px;display:flex;flex-direction:column;gap:8px;z-index:25;background:#f8fafce6;border:1px solid #e2e8f0;border-radius:10px;padding:4px}.card-control{border:none;background:#f8fafc;color:#0f172a;font-size:12px;padding:6px;border-radius:8px;cursor:pointer;border:1px solid #e2e8f0;width:34px;height:34px;display:inline-flex;align-items:center;justify-content:center}.card-control img{width:18px;height:18px}.card-control:hover{background:#e2e8f0}.card-control:disabled{opacity:.6;cursor:not-allowed}.card-control.locked{background:#0f172a;color:#f8fafc;border-color:#0f172a}.display-mode-btn{width:auto;min-width:34px;padding:6px 8px;font-size:11px}.view-btn{min-width:86px;height:40px;border:none;background:transparent;border-radius:12px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:8px;color:#475569;font-size:13px;font-weight:700;transition:background .16s ease,color .16s ease}.view-btn.active{background:linear-gradient(180deg,#eff6ff,#dbeafe);color:#1d4ed8}.view-btn img{width:18px;height:18px}.view-btn:hover{background:#f8fafc}.card-mode{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:20px;padding:20px 20px 20px 76px;align-items:stretch;grid-auto-rows:1fr;will-change:transform;min-height:0;overflow:auto}.card-panel{position:absolute;top:0;right:0;bottom:0;left:0;display:grid;grid-template-rows:minmax(0,1fr) auto;min-height:0}.paper-timeline{height:84px;border-top:1px solid #e2e8f0;background:linear-gradient(180deg,#fff,#f8fafc);padding:10px 12px;z-index:18;box-shadow:0 -8px 18px #0f172a0f;display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:10px;min-width:0;overflow:hidden}.timeline-scroll-controls{min-width:0;display:flex;align-items:center;gap:8px}.timeline-scroll-window{flex:1 1 0;min-width:0;width:0;overflow:hidden}.timeline-track{display:flex;gap:10px;overflow-x:auto;overflow-y:hidden;white-space:nowrap;padding-bottom:2px;scrollbar-width:none;-ms-overflow-style:none}.timeline-track::-webkit-scrollbar{display:none}.timeline-nav{width:30px;height:30px;border-radius:8px;border:1px solid #d6e0ec;background:#fff;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;flex:0 0 auto}.timeline-nav img{width:14px;height:14px}.timeline-nav:disabled{opacity:.45;cursor:not-allowed}.timeline-item{border:1px solid #cbd5e1;background:#fff;color:#0f172a;border-radius:10px;min-width:96px;padding:8px 10px;display:inline-flex;flex-direction:column;align-items:flex-start;gap:2px;cursor:pointer;flex:0 0 auto}.timeline-item.active{border-color:#2563eb;background:#eff6ff;box-shadow:0 0 0 2px #2563eb24}.timeline-item.prediction{border-color:#2563eb;background:#eff6ff}.timeline-item.prediction-fixed{min-width:112px;padding:7px 9px;border-color:#2563eb;background:linear-gradient(180deg,#eff6ff,#dbeafe);box-shadow:0 8px 18px #2563eb29;flex:0 0 auto}.timeline-item.export-fixed{min-width:104px;border-color:#16a34a;background:linear-gradient(180deg,#f0fdf4,#dcfce7);box-shadow:0 8px 18px #16a34a24}.timeline-prediction-title{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:700}.timeline-prediction-icon{width:14px;height:14px}.timeline-year{font-size:12px;font-weight:700}.timeline-count{font-size:11px;color:#475569}.card-mode.list{grid-template-columns:1fr}.graph-tooltip{position:absolute;z-index:50;width:min(360px,calc(100vw - 48px));transform:translateY(-8px);pointer-events:none}.graph-tooltip-card{background:#fffffffa;border:1px solid rgba(203,213,225,.92);border-radius:18px;padding:14px 15px;box-shadow:0 18px 40px #0f172a29;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.graph-tooltip-kicker{font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#64748b}.graph-tooltip-title{margin-top:4px;font-size:17px;line-height:1.35;font-weight:800;color:#0f172a}.graph-tooltip-meta{margin-top:6px;font-size:12.5px;line-height:1.45;color:#64748b}.graph-tooltip-stat{margin-top:8px;display:inline-flex;align-items:center;min-height:28px;padding:0 10px;border-radius:999px;background:#eff6ff;color:#1d4ed8;font-size:12px;font-weight:700}.graph-tooltip-authors{margin-top:8px;font-size:12px;color:#475569}.graph-tooltip-abstract{margin-top:10px;color:#0f172a;font-size:13px;line-height:1.55;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}.graph-tooltip-hint{margin-top:10px;font-size:12px;color:#0f766e;font-weight:600}.graph-tooltip-link{margin-top:10px;font-size:12px;color:#1d4ed8;line-height:1.5;overflow-wrap:anywhere}.institution-tooltip-card{min-width:300px}.institution-tooltip-header{display:flex;align-items:center;gap:10px;margin-top:4px}.institution-tooltip-logo{width:34px;height:34px;border-radius:10px;border:1px solid #dbeafe;background:#fff;object-fit:cover;flex:0 0 auto}.institution-tooltip-image{margin-top:10px;width:100%;height:132px;border-radius:14px;object-fit:cover;border:1px solid #dbeafe;background:linear-gradient(180deg,#f8fafc,#eff6ff)}.institution-tooltip-metrics{margin-top:10px;display:flex;gap:8px;flex-wrap:wrap}.institution-tooltip-metrics span{display:inline-flex;align-items:center;min-height:28px;padding:0 10px;border-radius:999px;background:#f8fafc;color:#475569;font-size:12px;font-weight:700;border:1px solid #e2e8f0}.author-tooltip-card{min-width:300px}.author-tooltip-header{display:flex;align-items:center;gap:10px;margin-top:4px}.author-tooltip-avatar{width:42px;height:42px;border-radius:50%;object-fit:cover;background:linear-gradient(180deg,#eff6ff,#dbeafe);border:1px solid #bfdbfe;flex:0 0 auto}.author-tooltip-avatar.fallback{display:inline-flex;align-items:center;justify-content:center;font-size:16px;font-weight:800;color:#1d4ed8}.graph-tooltip-summary{margin-top:10px;font-size:12.5px;line-height:1.55;color:#334155}.graph-tooltip .edge-papers-list{max-height:220px;overflow-y:auto;display:flex;flex-direction:column;gap:6px;margin-top:10px}.graph-tooltip .edge-papers-list.compact{max-height:160px}.graph-tooltip .edge-paper-item{padding:8px 10px;border-radius:12px;background:linear-gradient(180deg,#fff,#f8fbff);border:1px solid #e2e8f0;font-size:13px;color:#0f172a}.graph-tooltip .edge-paper-item+.edge-paper-item{margin-top:4px}.card-mode .paper-card{width:100%}.paper-card{width:clamp(var(--card-min-width),var(--card-vw),var(--card-max-width));background:linear-gradient(180deg,#fff,#fbfdff);border-radius:14px;padding:20px 18px 16px calc(var(--card-left-gutter) + 12px);border:1px solid #e6eef6;box-shadow:0 12px 30px #0f172a14;font-size:14px;line-height:var(--card-line-height);position:relative;display:flex;flex-direction:column;transition:transform .16s ease,box-shadow .16s ease;min-height:var(--card-min-height);overflow:hidden}.heat-icon{position:absolute;top:16px;left:calc((var(--card-left-gutter) - 20px) / 2);width:20px;height:20px}.heat-high{background:#ef4444;border-radius:50%;box-shadow:0 0 0 4px #ef44441f}.heat-medium{background:#f59e0b;border-radius:50%}.heat-low{width:20px;height:20px;background:#64748b;border-radius:50%}.paper-card:before{content:"";position:absolute;left:0;top:0;bottom:0;width:var(--card-left-gutter);border-top-left-radius:14px;border-bottom-left-radius:14px;background:linear-gradient(180deg,#0ea58405,#2563eb03);pointer-events:none}.paper-title{font-weight:700;font-size:16px;margin-bottom:8px;overflow-wrap:anywhere;word-break:break-word}.paper-meta{display:flex;flex-wrap:wrap;gap:8px;color:#64748b;margin-bottom:8px;font-size:13px}.paper-abstract{color:#0f172a;margin-bottom:10px;position:relative;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:6;overflow:hidden}.paper-abstract:after{content:"";position:absolute;left:0;right:0;bottom:0;height:22px;background:linear-gradient(to bottom,#fff0,#fbfdff 90%);pointer-events:none}.paper-tags{color:#475569;margin-bottom:10px;font-size:13px}.paper-actions{margin-top:auto;display:flex;align-items:center;gap:10px}.paper-action-icon{width:32px;height:32px;border:1px solid #dbe3ef;border-radius:10px;background:#fff;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;transition:transform .12s ease,box-shadow .12s ease,border-color .12s ease}.paper-action-icon img{width:18px;height:18px}.paper-action-icon:hover{transform:translateY(-1px);box-shadow:0 8px 16px #0f172a1f}.paper-action-icon.ai{border-color:#a7f3d0;background:#f0fdfa}.paper-action-icon.comment{border-color:#c7d2fe;background:#eef2ff}.paper-action-icon.favorite{border-color:#fde68a;background:#fffbeb}.paper-action-icon.favorite.active{border-color:#f59e0b;background:#fef3c7}.paper-card:hover{transform:translateY(-6px);box-shadow:0 20px 40px #0f172a1f}.react-flow__viewport{padding:20px!important}.graph[data-graph-type] .react-flow__renderer{background:radial-gradient(circle at 14% 18%,rgba(59,130,246,.12),transparent 42%),radial-gradient(circle at 85% 76%,rgba(16,185,129,.1),transparent 38%),linear-gradient(180deg,#f8fbff,#f8fafc 42%,#f1f5f9)}.react-flow__attribution{display:none}.react-flow__edge-path{transition:stroke .18s ease,stroke-width .18s ease,opacity .18s ease,filter .18s ease}.react-flow__edge:hover .react-flow__edge-path{stroke-width:2.8!important;opacity:1!important;filter:drop-shadow(0 0 5px rgba(59,130,246,.22))}.react-flow__controls{border:1px solid rgba(226,232,240,.95);border-radius:14px;overflow:hidden;box-shadow:0 14px 30px #0f172a1f}.react-flow__controls-button{background:#fffffff5;border-bottom:1px solid #e2e8f0}.react-flow__controls-button:hover{background:#f8fafc}.react-flow__minimap{border:1px solid rgba(226,232,240,.9);border-radius:16px;overflow:hidden;background:#ffffffeb;box-shadow:0 12px 26px #0f172a1f}.graph-node{width:clamp(110px,var(--graph-node-size),220px);min-height:clamp(92px,calc(var(--graph-node-size) * .88),170px);border-radius:28px;padding:12px 12px 14px;color:#eff6ff;border:1px solid rgba(255,255,255,.8);display:flex;flex-direction:column;justify-content:center;text-align:center;box-shadow:0 16px 30px #0f172a29,inset 0 1px #fff6;transition:transform .18s ease,box-shadow .18s ease,filter .18s ease;position:relative;overflow:hidden}.graph-node:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:linear-gradient(180deg,#ffffff2e,#fff0);pointer-events:none}.graph-node.clickable{cursor:pointer}.graph-node:hover{transform:translateY(-3px) scale(1.03);filter:saturate(1.05);box-shadow:0 22px 40px #0f172a33,inset 0 1px #ffffff70}.graph-node.citation{background:radial-gradient(circle at 24% 20%,#93c5fd,#3b82f6 52%,#1d4ed8)}.graph-node.author{background:radial-gradient(circle at 24% 20%,#99f6e4,#14b8a6 54%,#0f766e)}.graph-node.affiliation{background:radial-gradient(circle at 24% 20%,#fde68a,#f59e0b 52%,#b45309);color:#1f2937}.graph-node.heat-high{background:radial-gradient(circle at 24% 20%,#fda4af,#f43f5e 52%,#be123c)}.graph-node.heat-medium{background:radial-gradient(circle at 24% 20%,#fde68a,#f59e0b 52%,#b45309);color:#1f2937}.graph-node.heat-low{background:radial-gradient(circle at 24% 20%,#bfdbfe,#60a5fa 52%,#2563eb)}.graph-node.secondary{background:radial-gradient(circle at 24% 20%,#ddd6fe,#8b5cf6 52%,#6d28d9)}.graph-node__badge{align-self:center;padding:2px 10px;border-radius:999px;background:#ffffff2e;border:1px solid rgba(255,255,255,.3);font-size:10px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.graph-node__inner{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;margin-top:8px;pointer-events:none;position:relative;z-index:1}.graph-node__title{font-weight:800;font-size:clamp(12px,calc(var(--graph-node-size) / 8.4),18px);line-height:1.18;text-align:center;padding:0 6px;text-shadow:0 1px 2px rgba(15,23,42,.18);word-break:break-word;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.graph-node__meta{font-size:clamp(10px,calc(var(--graph-node-size) / 12),12px);opacity:.92;font-weight:700;letter-spacing:.2px}.graph-node__submeta{font-size:10.5px;opacity:.8;font-weight:600}@media (max-width: 800px){.paper-card{width:92vw;font-size:14px}.paper-abstract{max-height:120px}}.paper-card.secondary{border:1px dashed #6366f1;background:#f5f3ff}.paper-card.secondary .heat-icon{background:#a855f7;box-shadow:0 0 0 4px #a855f71f}.ai-result-body{max-height:70vh;overflow:auto}.ai-result-content{color:#0f172a;line-height:1.6;font-size:14px;padding:8px 0 12px}.ai-result-content>*:first-child{margin-top:0}.ai-result-content>*:last-child{margin-bottom:0}.ai-result-content p,.ai-result-content ul,.ai-result-content ol,.ai-result-content blockquote,.ai-result-content pre,.ai-result-content table{margin:0 0 10px}.ai-result-content h1,.ai-result-content h2,.ai-result-content h3,.ai-result-content h4{margin:14px 0 8px;line-height:1.35;color:#0b1220}.ai-result-content ul,.ai-result-content ol{padding-left:20px}.ai-result-content code{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:12px;background:#f1f5f9;padding:1px 4px;border-radius:4px}.ai-result-content pre{background:#0f172a;color:#e2e8f0;padding:10px 12px;border-radius:8px;overflow-x:auto}.ai-result-content pre code{background:transparent;color:inherit;padding:0}.ai-result-content blockquote{border-left:3px solid #93c5fd;padding-left:10px;color:#334155}.ai-result-content table{width:100%;border-collapse:collapse;table-layout:fixed;border:1px solid #dbe3ef}.ai-result-content th,.ai-result-content td{border:1px solid #dbe3ef;padding:10px 12px;text-align:left;vertical-align:top;white-space:normal;word-break:normal;overflow-wrap:anywhere}.ai-result-content th:first-child,.ai-result-content td:first-child{width:130px;min-width:130px;background:#f8fafc;font-weight:700}.ai-prompt-box{border:1px dashed #cbd5e1;border-radius:8px;padding:10px;font-size:12px;color:#475569;background:#f8fafc}.ai-loading-tip{margin-top:10px;color:#475569;font-size:12px}.paper-comments-modal{width:min(860px,94vw)}.paper-comments-body{display:flex;flex-direction:column;gap:12px;max-height:68vh}.paper-comment-editor{border:1px solid #e2e8f0;border-radius:10px;padding:10px;background:#f8fafc;display:flex;flex-direction:column;gap:8px}.paper-comment-editor textarea,.paper-reply-box textarea{width:100%;min-height:74px;resize:vertical;border:1px solid #cbd5e1;border-radius:10px;padding:10px 86px 12px 12px;font:inherit}.paper-comment-input-shell{position:relative;border:1px solid #cbd5e1;border-radius:12px;background:#fff;box-shadow:inset 0 1px #fff9}.paper-comment-input-shell textarea{border:none;background:transparent;border-radius:12px}.paper-comment-input-shell textarea:focus{outline:none}.paper-comment-input-shell:focus-within{border-color:#60a5fa;box-shadow:0 0 0 2px #3b82f624}.paper-comment-input-actions{position:absolute;right:8px;bottom:8px;z-index:2;display:flex;align-items:center;gap:6px}.paper-comment-dropzone{transition:border-color .2s ease,background .2s ease}.paper-comment-dropzone.drag-over{border-color:#2563eb;background:#eff6ff}.paper-comment-helper{font-size:12px;color:#475569}.paper-comment-attach-row,.paper-comment-remove-row{display:flex;align-items:center;gap:10px;justify-content:flex-end}.paper-comment-attach-btn{display:inline-flex;align-items:center;justify-content:center;border:1px solid #bfdbfe;border-radius:999px;width:34px;height:34px;color:#1d4ed8;background:#eff6ff;cursor:pointer}.paper-comment-attach-btn.in-input{border-color:transparent;background:#f1f5f9;width:30px;height:30px}.paper-comment-attach-btn.in-input:hover{background:#e2e8f0}.paper-comment-send-btn{border:none;border-radius:999px;width:30px;height:30px;display:inline-flex;align-items:center;justify-content:center;background:#2563eb;color:#fff;cursor:pointer}.paper-comment-send-btn img{width:14px;height:14px}.paper-comment-send-btn:disabled{opacity:.6;cursor:not-allowed}.paper-comment-attach-btn img{width:16px;height:16px}.paper-comment-attach-btn input{display:none}.paper-comment-remove-image{border:none;background:transparent;color:#b91c1c;font-size:12px;cursor:pointer;padding:0}.paper-comment-image-preview{max-width:240px;max-height:150px;border-radius:8px;border:1px solid #dbe3ef}.paper-comment-submit{align-self:flex-start;border:none;border-radius:8px;background:#2563eb;color:#fff;padding:8px 12px;font-weight:600;cursor:pointer}.paper-comment-submit:disabled{opacity:.7;cursor:not-allowed}.paper-comment-error{color:#b91c1c;font-size:12px}.paper-comment-list{border:1px solid #e2e8f0;border-radius:10px;background:#fff;padding:10px;overflow:auto;min-height:210px}.paper-comment-empty{color:#64748b;font-size:13px}.paper-comment-item{border:1px solid #e2e8f0;border-radius:10px;padding:10px;background:#f8fafc;margin-bottom:10px}.paper-comment-head{display:flex;gap:10px;align-items:center;margin-bottom:6px}.paper-comment-avatar{width:34px;height:34px;border-radius:50%;object-fit:cover;border:1px solid #dbeafe;background:#fff;flex:0 0 auto}.paper-comment-author-block{display:flex;align-items:center;gap:8px;min-width:0}.paper-comment-author{font-weight:700;font-size:13px}.paper-comment-author-tag{display:inline-flex;align-items:center;min-height:22px;padding:0 8px;border-radius:999px;background:#eff6ff;color:#1d4ed8;font-size:11px;font-weight:700}.paper-comment-author-tag.guest{background:#f1f5f9;color:#475569}.paper-comment-time{margin-left:auto;color:#64748b;font-size:12px}.paper-comment-content{color:#0f172a;margin-bottom:6px;white-space:pre-wrap;word-break:break-word}.paper-comment-content .paper-comment-link{font-size:inherit;color:#1d4ed8;text-decoration:underline}.paper-comment-meta{display:flex;gap:10px;align-items:center;margin-bottom:6px}.paper-comment-emoji{font-size:18px}.paper-comment-link{color:#2563eb;font-size:12px;text-decoration:none}.paper-comment-image-link{display:inline-flex;margin-bottom:6px}.paper-comment-image{max-width:220px;max-height:140px;border-radius:8px;border:1px solid #dbe3ef}.paper-comment-actions{display:flex;gap:10px}.paper-comment-actions button{border:none;background:transparent;color:#1e40af;cursor:pointer;padding:0;font-size:12px}.paper-comment-actions .paper-comment-action-danger{color:#b91c1c}.paper-comment-actions .paper-comment-action-danger:disabled{color:#94a3b8;cursor:not-allowed}.paper-reply-box{margin-top:8px;border-top:1px dashed #cbd5e1;padding-top:8px;display:flex;flex-direction:column;gap:8px}.paper-comment-replies{margin-top:8px}.secondary-badge{position:absolute;top:16px;right:16px;background:#6366f1;color:#fff;font-size:10px;padding:2px 6px;border-radius:4px;font-weight:600;text-transform:uppercase;z-index:10}.circle-node.secondary{background:radial-gradient(circle at 32% 28%,#e9d5ff,#a855f7 55%,#6b21a8);border:1.5px dashed rgba(255,255,255,.85);color:#faf5ff;box-shadow:0 12px 26px #5b21b64d,inset 0 -6px 14px #4c1d9557,inset 0 4px 10px #ffffff4d}.pdf-selection-context-menu{background:#fff;border-radius:10px;box-shadow:0 16px 40px #0f172a47,0 2px 6px #0f172a2e;padding:6px;min-width:140px;display:flex;flex-direction:column;gap:2px;border:1px solid rgba(148,163,184,.35)}.pdf-selection-context-item{display:flex;align-items:center;gap:10px;padding:8px 12px;border-radius:6px;border:none;background:transparent;cursor:pointer;font-size:14px;color:#0f172a;text-align:left}.pdf-selection-context-item:hover:not(:disabled){background:#2563eb1a;color:#1d4ed8}.pdf-selection-context-item:disabled{opacity:.55;cursor:not-allowed}.user-profile-card{width:min(640px,96vw);max-height:88vh;overflow-y:auto}.user-profile-body{display:flex;flex-direction:column;gap:18px}.user-profile-head{display:flex;gap:16px;align-items:flex-start}.user-profile-avatar{width:84px;height:84px;border-radius:50%;object-fit:cover;border:2px solid #e2e8f0}.user-profile-meta{display:flex;flex-direction:column;gap:6px;flex:1;min-width:0}.user-profile-name{font-size:20px;font-weight:700;color:#0f172a}.user-profile-counts{display:flex;gap:16px;color:#475569;font-size:14px}.user-profile-counts strong{color:#0f172a;margin-right:4px}.user-profile-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:4px}.user-profile-section-title{font-size:14px;font-weight:600;color:#334155;margin-bottom:6px}.user-profile-bio{display:flex;align-items:flex-start;gap:10px;color:#1e293b;line-height:1.6}.user-profile-bio-edit textarea{width:100%;padding:8px;border-radius:6px;border:1px solid #cbd5e1;font-size:14px}.user-profile-bio-actions{display:flex;gap:8px;margin-top:6px}.user-profile-comment-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:10px}.user-profile-comment-item{background:#f8fafc;border-radius:8px;padding:10px 12px}.user-profile-comment-content{color:#0f172a;line-height:1.5;white-space:pre-wrap;word-break:break-word}.user-profile-comment-meta{color:#94a3b8;font-size:12px;margin-top:4px;display:flex;gap:6px}.paper-comment-avatar-btn{background:transparent;border:none;padding:0;cursor:pointer}.paper-comment-avatar-btn:disabled{cursor:default}.paper-comment-author-link{background:transparent;border:none;padding:0;color:inherit;cursor:pointer;font:inherit}.paper-comment-author-link:hover{color:#1d4ed8;text-decoration:underline}.user-profile-card-wide{width:min(860px,96vw)}.user-profile-bio-inline{color:#475569;font-size:13px;line-height:1.5;max-height:3em;overflow:hidden}.user-profile-stats-row{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;padding:14px 0;border-top:1px solid #eef2f7;border-bottom:1px solid #eef2f7}.user-profile-stat{display:flex;flex-direction:column;align-items:center;gap:2px}.user-profile-stat-num{font-size:22px;font-weight:700;color:#0f172a;line-height:1}.user-profile-stat-label{font-size:12px;color:#64748b}.user-profile-bio-edit-row{margin-top:-6px}.user-profile-columns{display:grid;grid-template-columns:1fr 1fr;gap:18px}.user-profile-column{min-width:0;display:flex;flex-direction:column}.user-profile-fav-list,.user-profile-note-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:8px;max-height:46vh;overflow-y:auto}.user-profile-fav-item{display:flex;align-items:center;gap:6px;background:#f8fafc;border-radius:8px;padding:8px 10px}.user-profile-fav-item:hover{background:#f1f5f9}.user-profile-fav-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px;background:transparent;border:none;cursor:pointer;text-align:left;padding:0}.user-profile-fav-title{font-size:14px;font-weight:600;color:#0f172a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.user-profile-fav-main:hover .user-profile-fav-title{color:#1d4ed8}.user-profile-fav-sub{font-size:12px;color:#94a3b8}.user-profile-fav-remove{flex-shrink:0;width:22px;height:22px;border-radius:50%;border:none;background:transparent;color:#94a3b8;cursor:pointer;font-size:12px}.user-profile-fav-remove:hover{background:#fee2e2;color:#ef4444}.user-profile-note-item{background:#f8fafc;border-radius:8px;padding:10px 12px}.user-profile-note-item:hover{background:#f1f5f9}.user-profile-note-main{display:block;width:100%;background:transparent;border:none;padding:0;margin:0;text-align:left;cursor:pointer}.user-profile-note-main:hover .user-profile-note-title{color:#1d4ed8}.user-profile-note-title{font-size:14px;font-weight:600;color:#0f172a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.user-profile-note-excerpt{font-size:12px;color:#64748b;line-height:1.4;margin-top:3px;max-height:2.8em;overflow:hidden}.user-profile-note-meta{display:flex;align-items:center;gap:8px;margin-top:5px;font-size:11px;color:#94a3b8}.user-profile-note-tag{background:#e0e7ff;color:#4338ca;border-radius:4px;padding:1px 6px;font-weight:600}@media (max-width: 720px){.user-profile-columns{grid-template-columns:1fr}}.messages-panel-card{width:min(880px,96vw);height:min(640px,90vh);display:flex;flex-direction:column}.messages-panel-body{flex:1;min-height:0;display:grid;grid-template-columns:240px 1fr;gap:0;border-top:1px solid #e2e8f0}.messages-thread-list{border-right:1px solid #e2e8f0;padding:12px;overflow-y:auto;display:flex;flex-direction:column;gap:6px}.messages-thread-title{font-size:13px;font-weight:600;color:#475569;padding:4px 6px}.messages-thread-item{display:flex;gap:10px;padding:8px;border-radius:8px;border:none;background:transparent;cursor:pointer;text-align:left;align-items:center}.messages-thread-item:hover{background:#f1f5f9}.messages-thread-item.active{background:#2563eb1a}.messages-thread-avatar{width:36px;height:36px;border-radius:50%;object-fit:cover}.messages-thread-meta{flex:1;min-width:0}.messages-thread-name{font-size:14px;font-weight:600;color:#0f172a;display:flex;align-items:center;gap:6px}.messages-thread-badge{background:#ef4444;color:#fff;border-radius:10px;padding:1px 6px;font-size:11px;font-weight:600}.messages-thread-preview{font-size:12px;color:#64748b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.messages-thread-view{display:flex;flex-direction:column;min-height:0}.messages-thread-header{padding:10px 16px;border-bottom:1px solid #e2e8f0}.messages-thread-peer-link{display:inline-flex;align-items:center;gap:8px;background:transparent;border:none;cursor:pointer;padding:0;font-size:14px;font-weight:600;color:#0f172a}.messages-thread-peer-link:hover{color:#1d4ed8}.messages-thread-peer-avatar{width:28px;height:28px;border-radius:50%;object-fit:cover}.messages-thread-scroll{flex:1;overflow-y:auto;padding:14px 16px;display:flex;flex-direction:column;gap:8px;background:#f8fafc}.messages-bubble{max-width:70%;padding:8px 12px;border-radius:12px;background:#fff;box-shadow:0 1px 2px #0f172a0f;align-self:flex-start}.messages-bubble.me{align-self:flex-end;background:#2563eb;color:#fff}.messages-bubble-content{white-space:pre-wrap;word-break:break-word;line-height:1.4}.messages-bubble-time{font-size:11px;color:#94a3b8;margin-top:4px}.messages-bubble.me .messages-bubble-time{color:#ffffffc7}.messages-thread-composer{display:flex;gap:8px;padding:12px 16px;border-top:1px solid #e2e8f0}.messages-thread-composer textarea{flex:1;padding:8px;border-radius:6px;border:1px solid #cbd5e1;resize:vertical;font:inherit}.messages-panel-tabs{display:flex;gap:4px}.messages-panel-tab{position:relative;background:transparent;border:none;cursor:pointer;font-size:15px;font-weight:600;color:#64748b;padding:4px 10px;border-radius:8px;display:inline-flex;align-items:center;gap:6px}.messages-panel-tab:hover{background:#f1f5f9;color:#0f172a}.messages-panel-tab.active{color:#1d4ed8;background:#2563eb1a}.messages-tab-badge{background:#ef4444;color:#fff;border-radius:10px;padding:0 6px;font-size:11px;font-weight:600;line-height:18px;min-width:18px;text-align:center}.messages-contacts{flex:1;min-height:0;display:flex;flex-direction:column;border-top:1px solid #e2e8f0}.messages-contacts-switch{display:flex;gap:8px;padding:12px 16px;border-bottom:1px solid #e2e8f0}.messages-contacts-chip{border:1px solid #cbd5e1;background:#fff;color:#475569;border-radius:999px;padding:4px 14px;cursor:pointer;font-size:13px}.messages-contacts-chip:hover{background:#f1f5f9}.messages-contacts-chip.active{background:#2563eb;border-color:#2563eb;color:#fff}.messages-contacts-list{flex:1;overflow-y:auto;padding:8px 12px;display:flex;flex-direction:column;gap:4px}.messages-contact-item{display:flex;align-items:center;gap:8px;padding:6px 8px;border-radius:8px}.messages-contact-item:hover{background:#f8fafc}.messages-contact-main{flex:1;min-width:0;display:flex;align-items:center;gap:10px;background:transparent;border:none;cursor:pointer;text-align:left;padding:0}.messages-contact-action{flex-shrink:0;border:1px solid #2563eb;color:#2563eb;background:#fff;border-radius:6px;padding:4px 12px;cursor:pointer;font-size:13px}.messages-contact-action:hover{background:#2563eb;color:#fff}.messages-notifications{flex:1;overflow-y:auto;padding:8px 12px;display:flex;flex-direction:column;gap:4px;border-top:1px solid #e2e8f0}.messages-notif-item{display:flex;align-items:flex-start;gap:10px;padding:10px 8px;border-radius:8px;background:transparent;border:none;cursor:pointer;text-align:left}.messages-notif-item:hover{background:#f8fafc}.messages-notif-item.unread{background:#2563eb0f}.messages-notif-text{font-size:14px;color:#0f172a;line-height:1.4}.messages-notif-item.unread .messages-notif-text{font-weight:600}@media (max-width: 720px){.messages-panel-body{grid-template-columns:1fr}.messages-thread-list{display:none}}.graph-3d-wrapper{position:relative;width:100%;height:100%;flex:1;min-height:480px;background:#0b1220;border-radius:14px;overflow:hidden;box-shadow:0 18px 60px #0f172a73}.graph-3d-host{position:absolute;top:0;right:0;bottom:0;left:0}.graph-3d-host canvas{display:block}.graph-3d-loading{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;color:#cbd5f5;font-size:14px;letter-spacing:.04em}.graph-3d-wrapper .graph-tooltip{position:absolute;pointer-events:auto;z-index:30;transform:none;width:min(360px,calc(100% - 24px));max-height:calc(100% - 24px);overflow:auto}.pdf-icon-btn{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border:none;background:transparent;color:#475569;border-radius:8px;cursor:pointer;padding:0;transition:background .15s ease,color .15s ease}.pdf-icon-btn:hover:not(:disabled){background:#94a3b82e;color:#0f172a}.pdf-icon-btn:disabled{opacity:.45;cursor:not-allowed}.pdf-icon-btn-active{background:#3b82f61f;color:#2563eb}.pdf-icon-btn-active:hover:not(:disabled){background:#3b82f633;color:#1d4ed8}
