:root{color-scheme:dark;font-family:Inter,Noto Sans SC,Microsoft YaHei,system-ui,sans-serif;background:#07080d;color:#f8efe1;font-synthesis:none;text-rendering:optimizeLegibility;letter-spacing:0}*{box-sizing:border-box}body{margin:0;min-height:100vh;overflow-x:hidden;background:radial-gradient(circle at 18% 12%,rgba(166,24,58,.26),transparent 24%),radial-gradient(circle at 82% 16%,rgba(24,126,126,.22),transparent 27%),linear-gradient(135deg,#080911,#141014 45%,#071113)}button,input{font:inherit}button{cursor:pointer}.app{position:relative;height:100vh;padding:18px;overflow:hidden}.ambient-grid{position:absolute;inset:0;pointer-events:none;background-image:linear-gradient(rgba(232,195,109,.06) 1px,transparent 1px),linear-gradient(90deg,rgba(232,195,109,.04) 1px,transparent 1px);background-size:44px 44px;mask-image:radial-gradient(circle at 50% 48%,black,transparent 74%)}.ambient-grid:after{position:absolute;inset:0;content:"";background:repeating-linear-gradient(115deg,transparent 0,transparent 18px,rgba(232,195,109,.035) 20px,transparent 24px);animation:drift 18s linear infinite}@keyframes drift{0%{transform:translate3d(-60px,-60px,0)}to{transform:translate3d(60px,60px,0)}}.topbar{position:relative;z-index:2;display:grid;grid-template-columns:minmax(320px,.9fr) minmax(460px,1.1fr) auto;gap:18px;align-items:center;height:76px;padding:12px 14px;border:1px solid rgba(232,195,109,.22);border-radius:8px;background:#090b12b8;box-shadow:0 18px 60px #00000057;backdrop-filter:blur(18px)}.brand{display:flex;gap:14px;align-items:center;min-width:0}.seal{display:grid;width:48px;height:48px;flex:0 0 48px;place-items:center;border:1px solid rgba(232,195,109,.75);border-radius:8px;background:linear-gradient(145deg,#740d26e6,#105b58bf),#290c16;color:#ffe4a3;font-size:25px;font-weight:800;box-shadow:0 0 34px #e8c36d33}.brand span,.detail-heading p,.section-title,.stage-status em{color:#b7c5c7;font-size:12px;text-transform:uppercase}.brand h1{margin:2px 0 0;font-size:23px;line-height:1.1;color:#fff5df;letter-spacing:0}.search-box{position:relative;display:flex;align-items:center;min-width:0;height:48px;border:1px solid rgba(134,170,166,.32);border-radius:8px;background:#ffffff0f}.search-box svg{margin-left:15px;color:#e8c36d}.search-box input{width:100%;min-width:0;height:100%;padding:0 12px;border:0;outline:0;background:transparent;color:#fff8ed}.search-box input::placeholder{color:#f8efe175}.search-box>button{height:36px;min-width:66px;margin-right:6px;padding:0 16px;border:1px solid rgba(232,195,109,.45);border-radius:7px;background:linear-gradient(135deg,#8d1c35,#1f827d);color:#fff9e9;font-weight:700;white-space:nowrap}.suggestions{position:absolute;top:calc(100% + 8px);right:0;left:0;z-index:10;display:grid;gap:6px;padding:8px;border:1px solid rgba(232,195,109,.22);border-radius:8px;background:#0a0c12f2;box-shadow:0 18px 54px #00000070}.suggestions button{display:grid;grid-template-columns:34px 82px 1fr;gap:10px;align-items:center;min-height:42px;padding:5px 8px;border:1px solid transparent;border-radius:7px;background:transparent;color:#f8efe1;text-align:left}.suggestions button:hover{border-color:#e8c36d42;background:#e8c36d14}.suggestions img{width:34px;height:34px;border-radius:50%;object-fit:cover}.suggestions em{overflow:hidden;color:#9fb2b5;font-size:12px;font-style:normal;text-overflow:ellipsis;white-space:nowrap}.stats{display:flex;gap:10px;justify-content:flex-end}.stats span{padding:8px 10px;border:1px solid rgba(232,195,109,.18);border-radius:7px;background:#ffffff0d;color:#f0dbb0;font-size:13px;white-space:nowrap}.lang-switcher{display:flex;gap:4px}.lang-switcher button{padding:6px 10px;border:1px solid rgba(255,255,255,.08);border-radius:5px;background:#ffffff0a;color:#718888;font-size:12px;cursor:pointer;transition:all .16s ease}.lang-switcher button:hover{border-color:#e8c36d4d;color:#f8efe1}.lang-switcher button.active{border-color:#e8c36d80;background:linear-gradient(135deg,#8d1c3566,#1f827d4d);color:#ffe4a3}.workspace{position:relative;z-index:1;display:grid;grid-template-columns:240px minmax(620px,1fr) 330px;gap:14px;height:calc(100vh - 112px);margin-top:14px}.control-panel,.detail-panel,.graph-stage{min-height:0;border:1px solid rgba(232,195,109,.18);border-radius:8px;background:#080a10ad;box-shadow:0 18px 60px #00000047;backdrop-filter:blur(16px)}.control-panel{display:flex;flex-direction:column;gap:16px;padding:14px;overflow:auto}.panel-section{display:grid;gap:10px}.section-title{font-weight:800;color:#e8c36d}.segmented{display:grid;gap:7px}.segmented button,.filter-chip,.dev-toggle,.dev-box label,.dev-box a,.wiki-link{display:flex;align-items:center;gap:9px;min-height:38px;padding:9px 10px;border:1px solid rgba(255,255,255,.09);border-radius:7px;background:#ffffff0b;color:#f8efe1;text-decoration:none;transition:border-color .16s ease,background .16s ease,transform .16s ease}.segmented button:hover,.filter-chip:hover,.dev-toggle:hover,.dev-box label:hover,.dev-box a:hover,.wiki-link:hover,.relationship-row:hover{border-color:#e8c36d61;background:#e8c36d1a;transform:translateY(-1px)}.segmented button.active,.filter-chip.active{border-color:#e8c36d94;background:linear-gradient(135deg,#8d1c3594,#1f827d5c);box-shadow:inset 0 0 22px #e8c36d17}.filter-chip{width:100%;justify-content:flex-start}.filter-chip span{width:10px;height:10px;flex:0 0 10px;border-radius:50%;background:linear-gradient(135deg,#e8c36d,#61d4c8);box-shadow:0 0 12px currentColor}.dev-toggle{justify-content:center}.dev-box{display:grid;gap:8px}.dev-box input{display:none}.dev-box p{margin:0;color:#b7c5c7;font-size:12px;line-height:1.45}.graph-stage{position:relative;overflow:hidden}.stage-status{position:absolute;top:14px;left:16px;z-index:3;display:flex;gap:12px;align-items:center;padding:9px 11px;border:1px solid rgba(232,195,109,.18);border-radius:7px;background:#07080da8;pointer-events:auto}.stage-status span{color:#fff5df;font-weight:800}.back-full-btn{padding:5px 14px;border:1px solid rgba(232,195,109,.45);border-radius:6px;background:linear-gradient(135deg,#8d1c35,#1f827d);color:#fff9e9;font-size:13px;font-weight:700;cursor:pointer;transition:opacity .16s ease,transform .16s ease}.back-full-btn:hover{opacity:.88;transform:scale(1.04)}.graph-shell,.graph-shell svg{width:100%;height:100%}.graph-shell svg{display:block}.relationship-link{opacity:.44;mix-blend-mode:screen;transition:opacity .16s ease,stroke-width .16s ease}.relationship-link.is-active{opacity:1;stroke-width:4px;filter:drop-shadow(0 0 8px currentColor)}.relationship-link.is-filtered-out{opacity:.1}.relationship-label{pointer-events:none;opacity:.65;paint-order:stroke;stroke:#06080ce6;stroke-width:5px;fill:#fff5df;font-size:12px;font-weight:700;transition:opacity .16s ease}.relationship-label.is-visible{opacity:.95;font-size:14px}.person-node{cursor:grab;transition:opacity .16s ease}.person-node:active{cursor:grabbing}.person-node.is-muted{opacity:.18}.node-aura{opacity:.12;filter:blur(1px);transition:opacity .16s ease,transform .16s ease}.node-ring{fill:#08090ed9;stroke-width:2;filter:url(#node-glow)}.node-avatar{filter:saturate(.9) contrast(1.08)}.node-image-border{fill:transparent;stroke:#fff7e5b8;stroke-width:1.3}.node-label{pointer-events:none;paint-order:stroke;stroke:#06080cf2;stroke-width:5px;fill:#fff7e5;font-size:13px;font-weight:800;text-anchor:middle}.person-node.is-selected .node-aura,.person-node.is-hovered .node-aura{opacity:.34;transform:scale(1.18)}.person-node.is-selected .node-image-border,.person-node.is-hovered .node-image-border{stroke:#e8c36d;stroke-width:2.4px}.person-node.is-selected .node-label,.person-node.is-hovered .node-label{fill:#ffe7a8}.detail-panel{display:flex;flex-direction:column;padding:14px;overflow:hidden}.detail-panel .portrait-wrap{flex-shrink:0}.detail-scroll{display:flex;flex-direction:column;flex:1;min-height:0;overflow-y:auto;scrollbar-width:thin;scrollbar-color:rgba(232,195,109,.3) transparent}.detail-panel.empty{align-items:center;justify-content:center;color:#b7c5c7;text-align:center}.portrait-wrap{position:relative;width:100%;height:280px;overflow:hidden;border:1px solid rgba(232,195,109,.2);border-radius:8px;background:#121016}.portrait-wrap img{width:100%;height:100%;object-fit:contain;object-position:top center;filter:saturate(.92) contrast(1.08)}.detail-heading{margin-top:14px}.detail-heading p{margin:0 0 4px;color:#61d4c8;font-weight:800}.detail-heading h2{margin:0;color:#fff5df;font-size:32px;line-height:1.05}.detail-heading span{display:block;margin-top:6px;color:#e8c36d;font-size:14px}.alias-line{margin-top:10px;color:#b7c5c7;font-size:13px}.indirect-toggle{display:inline-flex;align-items:center;gap:5px;cursor:pointer;color:#718888;font-size:11px;font-weight:600;white-space:nowrap;letter-spacing:.3px}.indirect-toggle input{appearance:none;width:28px;height:15px;border:1px solid rgba(232,195,109,.3);border-radius:8px;background:#ffffff0f;vertical-align:middle;position:relative;cursor:pointer;transition:background .16s ease,border-color .16s ease}.indirect-toggle input:after{content:"";position:absolute;top:1px;left:1px;width:11px;height:11px;border-radius:50%;background:#718888;transition:transform .16s ease,background .16s ease}.indirect-toggle input:checked{background:#8d1c3580;border-color:#e8c36d80}.indirect-toggle input:checked:after{transform:translate(13px);background:#ffe4a3}.indirect-toggle input:checked+span{color:#ffe4a3}.intro{margin:14px 0;color:#e7dccd;font-size:14px;line-height:1.72}.wiki-link{justify-content:center;margin-bottom:16px;color:#ffe4a3;font-weight:800}.relationship-list{display:grid;gap:7px;padding-bottom:8px;overflow-y:auto;flex:1;min-height:0}.relationship-row{display:grid;grid-template-columns:10px 64px 1fr auto;gap:9px;align-items:center;min-height:38px;padding:8px;border:1px solid rgba(255,255,255,.08);border-radius:7px;background:#ffffff0a;color:#f8efe1;text-align:left}.relationship-row span{width:10px;height:10px;border-radius:50%}.relationship-row strong{overflow:hidden;font-size:13px;text-overflow:ellipsis;white-space:nowrap}.relationship-row em{overflow:hidden;color:#aebfc2;font-size:12px;font-style:normal;text-overflow:ellipsis;white-space:nowrap}.relationship-row b{padding:2px 5px;border:1px solid rgba(255,204,0,.36);border-radius:5px;color:#ffdc5d;font-size:11px}@media(max-height:760px){.portrait-wrap{height:200px}.detail-heading h2{font-size:27px}.intro{line-height:1.55}}.loading-screen{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100vh;gap:20px}.loading-screen p{color:#b7c5c7;font-size:15px}.loading-book{width:80px;height:100px;background:linear-gradient(135deg,#8d1c35,#1f827d);border-radius:4px 12px 12px 4px;animation:bookFlip 1.2s ease-in-out infinite;box-shadow:0 8px 32px #1f827d66;position:relative}.loading-book:after{content:"";position:absolute;left:0;top:0;bottom:0;width:6px;background:#e8c36db3;border-radius:4px 0 0 4px}@keyframes bookFlip{0%,to{transform:perspective(300px) rotateY(0)}40%{transform:perspective(300px) rotateY(-30deg)}60%{transform:perspective(300px) rotateY(10deg)}80%{transform:perspective(300px) rotateY(-5deg)}}.error-screen{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100vh;gap:16px;text-align:center}.error-screen h2{color:#fff5df;font-size:28px;margin:0}.error-screen p{color:#b7c5c7;font-size:15px;max-width:480px;line-height:1.6}.error-screen button,.error-screen .back-full-btn{padding:10px 24px;border:1px solid rgba(232,195,109,.45);border-radius:7px;background:linear-gradient(135deg,#8d1c35,#1f827d);color:#fff9e9;font-size:14px;font-weight:700;cursor:pointer;text-decoration:none}.auth-container{display:flex;align-items:center;justify-content:center;height:100vh}.auth-card{width:380px;padding:36px;border:1px solid rgba(232,195,109,.22);border-radius:12px;background:#080a10cc;box-shadow:0 18px 60px #00000057;backdrop-filter:blur(16px)}.auth-card h2{margin:0 0 24px;color:#fff5df;font-size:22px;text-align:center}.auth-card form{display:flex;flex-direction:column;gap:14px}.auth-card input{height:44px;padding:0 14px;border:1px solid rgba(255,255,255,.12);border-radius:7px;background:#ffffff0f;color:#fff8ed;font-size:14px;outline:none}.auth-card input:focus{border-color:#e8c36d73}.auth-card button{height:44px;border:1px solid rgba(232,195,109,.45);border-radius:7px;background:linear-gradient(135deg,#8d1c35,#1f827d);color:#fff9e9;font-size:15px;font-weight:700;cursor:pointer}.auth-error{color:#ff6b6b;font-size:13px;margin:0}.admin-panel{width:100%;height:100vh;padding:24px;overflow:auto}.admin-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px;padding-bottom:16px;border-bottom:1px solid rgba(232,195,109,.18)}.admin-header h2{color:#fff5df;margin:0;font-size:24px}.logout-btn{padding:8px 18px;border:1px solid rgba(232,195,109,.3);border-radius:6px;background:transparent;color:#f8efe1;cursor:pointer;font-size:13px}.logout-btn:hover{border-color:#e8c36d99;background:#e8c36d1a}@media(max-width:1024px){.workspace{grid-template-columns:1fr;grid-template-rows:auto 1fr auto}.control-panel{flex-direction:row;flex-wrap:wrap;gap:10px;padding:10px}.detail-panel{max-height:300px}}.mobile-filter-btn{display:none;align-items:center;justify-content:center;gap:4px;padding:5px 10px;border:1px solid rgba(232,195,109,.4);border-radius:6px;background:linear-gradient(135deg,#8d1c35,#1f827d);color:#fff9e9;font-size:12px;font-weight:700;cursor:pointer;transition:opacity .16s ease}.mobile-filter-btn:hover{opacity:.88}.mobile-overlay{position:fixed;inset:0;z-index:24;background:#04050980;backdrop-filter:blur(4px)}@media(max-width:768px){.app{padding:6px}.topbar{display:flex;flex-wrap:wrap;gap:6px;height:auto;padding:8px;align-items:center}.brand{order:1;gap:8px;flex:0 1 auto}.brand h1{font-size:17px}.seal{width:40px;height:40px;flex:0 0 40px;font-size:20px}.search-box{order:10;flex:1 1 100%;height:42px;margin-top:2px}.stats{display:none}.lang-switcher{order:2;margin-left:auto}.lang-switcher button{padding:4px 8px;font-size:11px}.workspace{grid-template-columns:1fr;grid-template-rows:1fr auto;gap:6px;height:calc(100vh - 100px);margin-top:6px}.control-panel{display:none}.control-panel.mobile-open{display:flex;position:fixed;inset:0;z-index:25;flex-direction:column;overflow-y:auto;padding:14px;border:none;border-radius:0;background:#080a10f5;backdrop-filter:blur(16px)}.detail-panel{max-height:40vh}.detail-panel.empty{display:none}.portrait-wrap{height:180px}.detail-heading h2{font-size:22px}.stage-status{flex-wrap:wrap;gap:6px;padding:6px 8px;font-size:12px}.mobile-filter-btn{display:inline-flex}.correction-modal{width:calc(100vw - 24px);max-height:90vh;padding:20px}.correction-fab{bottom:16px;right:16px;width:44px;height:44px}}.correction-fab{position:fixed;bottom:28px;right:28px;z-index:20;width:52px;height:52px;display:flex;align-items:center;justify-content:center;border:1px solid rgba(232,195,109,.4);border-radius:50%;background:linear-gradient(135deg,#8d1c35,#1f827d);color:#fff9e9;cursor:pointer;box-shadow:0 8px 28px #0006;transition:transform .16s ease}.correction-fab:hover{transform:scale(1.1)}.correction-overlay{position:fixed;inset:0;z-index:30;display:flex;align-items:center;justify-content:center;background:#040509b3;backdrop-filter:blur(6px)}.correction-modal{position:relative;width:420px;max-height:85vh;overflow-y:auto;padding:28px;border:1px solid rgba(232,195,109,.22);border-radius:12px;background:#0a0c12f2;box-shadow:0 24px 64px #00000080}.correction-modal h3{margin:0 0 20px;color:#ffe4a3;font-size:20px}.correction-close{position:absolute;top:14px;right:14px;padding:4px;border:0;background:transparent;color:#b7c5c7;cursor:pointer}.correction-close:hover{color:#ffe4a3}.form-group{display:flex;flex-direction:column;gap:6px;margin-bottom:16px}.form-group label{color:#b7c5c7;font-size:12px;text-transform:uppercase;font-weight:700}.form-group input,.form-group select,.form-group textarea{padding:10px 12px;border:1px solid rgba(255,255,255,.1);border-radius:7px;background:#ffffff0d;color:#fff8ed;font-size:14px;outline:none}.form-group input:focus,.form-group select:focus,.form-group textarea:focus{border-color:#e8c36d73}.form-group textarea{resize:vertical}.form-group select option{background:#1a1c22;color:#f8efe1}.suggest-wrap{position:relative}.correction-suggestions{position:absolute;top:100%;left:0;right:0;z-index:5;padding:6px;border:1px solid rgba(232,195,109,.18);border-radius:7px;background:#0a0c12f7;max-height:180px;overflow-y:auto}.correction-suggestions button{display:grid;grid-template-columns:30px 1fr auto;gap:8px;align-items:center;width:100%;padding:6px 8px;border:0;border-radius:5px;background:transparent;color:#f8efe1;cursor:pointer;text-align:left}.correction-suggestions button:hover{background:#e8c36d1a}.correction-suggestions img{width:28px;height:28px;border-radius:50%;object-fit:cover}.correction-suggestions em{color:#719191;font-size:11px;font-style:normal}.character-chip{display:flex;align-items:center;gap:8px;padding:8px 12px;border:1px solid rgba(232,195,109,.3);border-radius:7px;background:#e8c36d14;cursor:pointer}.character-chip img{width:28px;height:28px;border-radius:50%;object-fit:cover}.character-chip span{color:#ffe4a3;font-size:14px}.correction-modal form>button{width:100%;height:44px;margin-top:8px;border:1px solid rgba(232,195,109,.45);border-radius:7px;background:linear-gradient(135deg,#8d1c35,#1f827d);color:#fff9e9;font-size:15px;font-weight:700;cursor:pointer}.correction-done{text-align:center;padding:20px 0}.correction-done svg{color:#61d4c8}.correction-done h3{color:#fff5df;margin:12px 0 8px}.correction-done p{color:#b7c5c7;font-size:14px;line-height:1.6}.correction-done button{margin-top:16px;padding:10px 32px;border:1px solid rgba(232,195,109,.45);border-radius:7px;background:linear-gradient(135deg,#8d1c35,#1f827d);color:#fff9e9;font-weight:700;cursor:pointer}.admin-tabs{display:flex;gap:8px;margin:16px 0;border-bottom:1px solid rgba(232,195,109,.12);padding-bottom:12px}.admin-tabs button{padding:8px 18px;border:1px solid rgba(255,255,255,.08);border-radius:7px;background:#ffffff0a;color:#b7c5c7;cursor:pointer;font-size:13px;transition:all .16s ease}.admin-tabs button:hover{border-color:#e8c36d4d;color:#f8efe1}.admin-tabs button.active{border-color:#e8c36d80;background:linear-gradient(135deg,#8d1c3566,#1f827d4d);color:#ffe4a3}.correction-list{display:grid;gap:10px}.correction-card{padding:16px;border:1px solid rgba(255,255,255,.07);border-radius:8px;background:#ffffff08}.correction-card.approved{border-color:#61d4c833;background:#61d4c80a}.correction-card.rejected{border-color:#ff3f4f26;background:#ff3f4f08}.correction-meta{display:flex;gap:12px;align-items:center;margin-bottom:8px;flex-wrap:wrap}.correction-type{padding:2px 8px;border-radius:4px;background:#e8c36d26;color:#e8c36d;font-size:12px}.correction-status{padding:2px 8px;border-radius:4px;font-size:12px}.correction-status.approved{background:#61d4c826;color:#61d4c8}.correction-status.rejected{background:#ff3f4f26;color:#ff6b6b}.correction-date{color:#6b7c7e;font-size:12px;margin-left:auto}.correction-body p{margin:4px 0;color:#f8efe1;font-size:14px}.correction-body strong{color:#ffe4a3}.correction-desc{color:#b7c5c7!important;font-size:13px!important;font-style:italic}.correction-actions{display:flex;gap:10px;margin-top:12px}.approve-btn,.reject-btn{display:flex;align-items:center;gap:6px;padding:6px 16px;border:1px solid rgba(255,255,255,.1);border-radius:6px;cursor:pointer;font-size:13px;font-weight:600;transition:all .16s ease}.approve-btn{background:#61d4c81f;color:#61d4c8}.approve-btn:hover{background:#61d4c840}.reject-btn{background:#ff3f4f14;color:#ff6b6b}.reject-btn:hover{background:#ff3f4f33}.re-review-btn{display:flex;align-items:center;gap:6px;padding:6px 16px;border:1px solid rgba(255,255,255,.1);border-radius:6px;cursor:pointer;font-size:13px;font-weight:600;background:#e8c36d1a;color:#e8c36d;transition:all .16s ease}.re-review-btn:hover{background:#e8c36d33}.correction-filters{display:flex;gap:8px;margin-bottom:20px}.correction-filters button{padding:6px 16px;border:1px solid rgba(255,255,255,.1);border-radius:6px;font-size:13px;font-weight:600;cursor:pointer;transition:all .16s ease;background:#ffffff08;color:#b7c5c7}.correction-filters button:hover{border-color:#fff3;color:#f8efe1}.correction-filters button.active{border-color:#e8c36d80;color:#ffe4a3}.correction-filters button.active.filter-pending{background:#e8c36d26}.correction-filters button.active.filter-approved{background:#61d4c81f;color:#61d4c8;border-color:#61d4c866}.correction-filters button.active.filter-rejected{background:#ff3f4f14;color:#ff6b6b;border-color:#ff3f4f4d}.refresh-btn{display:flex;align-items:center;gap:6px;padding:6px 14px;margin-bottom:12px;border:1px solid rgba(255,255,255,.1);border-radius:6px;background:#ffffff0a;color:#b7c5c7;cursor:pointer;font-size:12px}.refresh-btn:hover{border-color:#e8c36d4d}.admin-graph-selector{display:flex;align-items:center;padding:8px 16px;border-bottom:1px solid rgba(232,195,109,.1)}.audit-op{padding:2px 8px;border-radius:4px;font-size:11px;font-weight:700}.audit-op-INSERT{background:#61d4c826;color:#61d4c8}.audit-op-UPDATE{background:#e8c36d26;color:#e8c36d}.audit-op-DELETE{background:#ff3f4f26;color:#ff6b6b}.audit-detail small{color:#6b7c7e;font-size:11px}.audit-diff{display:grid;grid-template-columns:1fr auto 1fr;gap:12px;margin-top:8px;align-items:start}.audit-diff span{color:#ffe4a3;padding-top:4px}.audit-old,.audit-new{margin:0;padding:8px;border-radius:5px;font-size:11px;max-height:200px;overflow:auto;white-space:pre-wrap;word-break:break-all}.audit-old{background:#ff3f4f14;color:#ff6b6b}.audit-new{background:#61d4c814;color:#61d4c8}.confirm-overlay{position:fixed;inset:0;z-index:40;display:flex;align-items:center;justify-content:center;background:#040509b3;backdrop-filter:blur(4px)}.confirm-box{width:360px;padding:28px;border:1px solid rgba(232,195,109,.22);border-radius:12px;background:#0a0c12f7;text-align:center}.confirm-box p{color:#f8efe1;font-size:15px;line-height:1.6;white-space:pre-wrap;margin:0 0 20px}.confirm-actions{display:flex;gap:12px;justify-content:center}.confirm-actions button{padding:10px 28px;border:1px solid rgba(255,255,255,.1);border-radius:7px;background:#ffffff0f;color:#f8efe1;cursor:pointer;font-size:14px}.confirm-actions button:hover{border-color:#e8c36d66}.confirm-actions .confirm-danger{background:linear-gradient(135deg,#8d1c35,#c0392b);border-color:#ff3f4f66}.notification{display:flex;align-items:center;justify-content:space-between;padding:10px 16px;border:1px solid rgba(97,212,200,.3);border-radius:7px;background:#61d4c814;color:#61d4c8;font-size:14px;margin-bottom:12px;cursor:pointer}.character-page{max-width:720px;margin:0 auto;padding:32px 20px;min-height:100vh}.character-page h1{font-size:2.2em;color:#e8c36d;border-bottom:2px solid rgba(232,195,109,.3);padding-bottom:10px;margin-bottom:6px}.character-page .aliases{color:#c9a84c;font-size:.95em;margin-bottom:8px}.character-page .meta-tags{margin-bottom:16px}.character-page .clan-tag,.character-page .role-tag{display:inline-block;background:#3d1524cc;color:#e8c36d;padding:2px 12px;border-radius:4px;font-size:.85em;margin:4px 4px 4px 0}.character-page .intro{font-size:1.05em;line-height:1.85;margin-bottom:20px;color:#e8dcc8}.character-page .wiki-link{display:inline-flex;align-items:center;gap:6px;padding:6px 16px;border:1px solid rgba(232,195,109,.3);border-radius:5px;color:#e8c36d;font-size:.9em;margin:12px 0;text-decoration:none;transition:border-color .2s}.character-page .wiki-link:hover{border-color:#e8c36d}.character-page section{margin-bottom:20px}.character-page h2{font-size:1.15em;color:#c9a84c;margin:20px 0 10px;padding-left:10px;border-left:3px solid #e8c36d}.character-page ul{list-style:none;padding-left:0}.character-page li{padding:6px 0;display:flex;align-items:center;gap:8px;flex-wrap:wrap}.character-page .rel-type{display:inline-block;font-size:.78em;padding:1px 8px;border-radius:3px;white-space:nowrap}.character-page .rel-name{background:none;border:none;color:#e8c36d;cursor:pointer;padding:0;font-size:1em;text-decoration:none;font-family:inherit}.character-page .rel-name:hover{text-decoration:underline}.character-page .uncertain{color:#fc0;font-size:.85em;font-style:italic}.character-page .fictional-tag{color:#b88cff;font-size:.85em;font-style:italic}.relationship-row .fictional-tag{color:#b88cff;font-size:.8em;font-style:italic;margin-left:4px}.character-page .back-to-graph{display:inline-block;margin-top:28px;padding:10px 24px;background:linear-gradient(135deg,#3d1524,#5a2038);border:1px solid rgba(232,195,109,.3);border-radius:7px;color:#e8c36d;font-size:.95em;cursor:pointer;transition:background .2s,border-color .2s;font-family:inherit}.character-page .back-to-graph:hover{background:linear-gradient(135deg,#5a2038,#7a2848);border-color:#e8c36d}.character-page footer{margin-top:40px;padding-top:16px;border-top:1px solid rgba(61,21,36,.5);text-align:center;font-size:.8em;color:#666}.character-page footer a{color:#e8c36d}.gallery-page{min-height:100vh;background:#07080d;color:#f8efe1}.gallery-header{padding:48px 24px 24px;max-width:960px;margin:0 auto}.gallery-brand{display:flex;align-items:center;gap:16px}.gallery-logo{font-size:36px;color:#6366f1;line-height:1}.gallery-brand h1{font-size:1.8em;color:#f8efe1;margin:0;font-weight:700}.gallery-tagline{color:#9ca3af;font-size:.95em;margin:2px 0 0}.gallery-main{padding:32px 24px 64px;max-width:960px;margin:0 auto}.gallery-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:24px}.gallery-card{display:block;background:linear-gradient(145deg,#1a1a2e,#141420);border:1px solid rgba(99,102,241,.2);border-radius:12px;overflow:hidden;text-decoration:none;color:#f8efe1;transition:transform .2s,border-color .2s,box-shadow .2s}.gallery-card:hover{transform:translateY(-4px);border-color:var(--card-primary, #6366f1);box-shadow:0 8px 32px #0006,0 0 0 1px var(--card-primary, #6366f1)}.card-cover{padding:32px 24px 16px;background:linear-gradient(180deg,rgba(99,102,241,.08),transparent);text-align:center}.card-seal{display:inline-flex;align-items:center;justify-content:center;width:72px;height:72px;border-radius:16px;font-size:36px;font-weight:700;line-height:1}.card-body{padding:0 24px 24px}.card-body h2{font-size:1.3em;margin:0 0 8px}.card-description{font-size:.9em;color:#9ca3af;line-height:1.6;margin:0 0 12px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.card-meta{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:16px}.card-stat{background:#6366f11f;color:#a5b4fc;padding:3px 10px;border-radius:12px;font-size:.8em}.card-category{background:#6366f114;border:1px solid rgba(99,102,241,.2);color:#818cf8;padding:2px 10px;border-radius:12px;font-size:.8em}.card-cta{display:inline-block;padding:8px 20px;border:1px solid;border-radius:6px;font-size:.9em;font-weight:500;text-align:center;transition:background .2s}.gallery-card:hover .card-cta{background:#6366f11a}.gallery-footer{padding:24px;text-align:center;color:#666;font-size:.85em;border-top:1px solid rgba(255,255,255,.05)}.back-to-gallery{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:6px;background:#ffffff0f;border:1px solid rgba(255,255,255,.1);color:var(--color-text, #f8efe1);text-decoration:none;flex-shrink:0;transition:background .2s,border-color .2s}.back-to-gallery:hover{background:#ffffff1a;border-color:var(--color-primary, #e8c36d)}
