*{box-sizing:border-box;margin:0;padding:0}:root{--background:#fff;--foreground:#0a0a0a;--accent:#0a0a0a;--muted:#6b7280;--surface:#fff;--border:#e5e7eb;--success:#059669;--warning:#d97706;--error:#dc2626;--info:#0a0a0a}@theme inline{--color-background: var(--background); --color-foreground: var(--foreground); --font-sans: var(--font-geist-sans); --font-mono: var(--font-geist-mono);}body{background:var(--background);color:var(--foreground);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;width:100%;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,sans-serif;line-height:1.6;overflow-x:hidden}html,body{width:100%;margin:0;padding:0;overflow-x:hidden}@keyframes fade-in{0%{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}@keyframes fade-in-up{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}@keyframes shake{0%,to{transform:translate(0)}10%,30%,50%,70%,90%{transform:translate(-5px)}20%,40%,60%,80%{transform:translate(5px)}}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes sweep{0%{transform:translate(-100%)}to{transform:translate(100%)}}@keyframes fade-in-highlight{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}@keyframes pulse-highlight{0%{opacity:0;transform:scale(1.05)}20%{opacity:1;transform:scale(1)}70%{opacity:1}to{opacity:.6}}.animate-fade-in{animation:.6s ease-out forwards fade-in}.animate-fade-in-up{animation:.6s ease-out forwards fade-in-up}.animate-shake{animation:.5s ease-in-out shake}.animation-delay-100{animation-delay:.1s}.animation-delay-200{animation-delay:.2s}.animation-delay-300{animation-delay:.3s}.animation-delay-400{animation-delay:.4s}.animation-delay-500{animation-delay:.5s}.btn-sweep{position:relative;overflow:hidden}.btn-sweep:before{content:"";background:linear-gradient(90deg,#0000,#fff3,#0000);width:100%;height:100%;transition:none;position:absolute;top:0;left:0;transform:translate(-100%)}.btn-sweep:hover:before{animation:.6s ease-out sweep}.app-container{flex-direction:column;min-height:100vh;display:flex}.app-header{z-index:50;-webkit-backdrop-filter:blur(16px);background:#ffffffd9;border-bottom:1px solid #e2e8f0cc;height:64px;position:fixed;top:0;left:0;right:0}.header-content{justify-content:space-between;align-items:center;max-width:1400px;height:100%;margin:0 auto;padding:0 24px;display:flex}.logo{color:#0f172a;letter-spacing:-.02em;align-items:center;gap:10px;font-size:1.25rem;font-weight:700;transition:opacity .2s;display:flex}.logo:hover{opacity:.8}.logo-icon{color:#fff;background:linear-gradient(135deg,#46a8fa 0%,#2563eb 100%);border-radius:10px;justify-content:center;align-items:center;width:36px;height:36px;display:flex;box-shadow:0 2px 8px #46a8fa59}.logo-icon svg{width:22px;height:22px}.logo-text{letter-spacing:-.02em;font-weight:600}.logo-rag{color:#46a8fa;font-weight:700}.main-content{flex:1;margin-top:64px;padding:24px}.landing-page{background:var(--background);min-height:100vh}.landing-hero{text-align:center;flex-direction:column;justify-content:center;align-items:center;min-height:100vh;padding:120px 24px 80px;display:flex;position:relative;overflow:hidden}.landing-hero:before{content:"";pointer-events:none;background:radial-gradient(circle at 20% 20%,#46a8fa14 0%,#0000 50%),radial-gradient(circle at 80% 80%,#46a8fa0f 0%,#0000 50%);position:absolute;inset:0}.hero-visualization{pointer-events:none;z-index:0;opacity:.45;width:1200px;height:600px;position:absolute;top:55%;left:50%;transform:translate(-50%,-50%)}.floating-docs{width:100%;height:100%;position:absolute}.doc{background:linear-gradient(135deg,#1e293b 0%,#0f172a 100%);border:1px solid #46a8fa4d;border-radius:6px;flex-direction:column;align-items:center;width:48px;height:60px;padding:8px 6px;animation:6s ease-in-out infinite floatDoc;display:flex;position:absolute;box-shadow:0 4px 20px #0000004d}.doc-icon{margin-bottom:4px;font-size:16px}.doc-lines{flex-direction:column;gap:3px;width:100%;display:flex}.doc-lines span{background:#46a8fa66;border-radius:1px;height:2px}.doc-lines span:first-child{width:100%}.doc-lines span:nth-child(2){width:80%}.doc-lines span:nth-child(3){width:60%}.doc-1{animation-delay:0s;top:20%;left:-5%}.doc-2{animation-delay:1s;top:65%;left:-3%}.doc-3{animation-delay:.5s;top:25%;right:-5%}.doc-4{animation-delay:1.5s;top:70%;right:-3%}.doc-5{animation-delay:2s;top:42%;left:-8%}@keyframes floatDoc{0%,to{transform:translateY(0)rotate(0)}25%{transform:translateY(-8px)rotate(2deg)}50%{transform:translateY(-4px)rotate(-1deg)}75%{transform:translateY(-12px)rotate(1deg)}}.processing-core{width:100px;height:100px;position:absolute;top:65%;left:50%;transform:translate(-50%,-50%)}.core-ring{border:2px solid #0000;border-radius:50%;position:absolute;top:50%;left:50%}.ring-1{border-color:#46a8fa #46a8fa33 #46a8fa33;width:100px;height:100px;margin:-50px 0 0 -50px;animation:3s linear infinite spinRing}.ring-2{border-color:#46a8fa26 #46a8fa #46a8fa26 #46a8fa26;width:75px;height:75px;margin:-37.5px 0 0 -37.5px;animation:2s linear infinite reverse spinRing}.ring-3{border-color:#46a8fa1a #46a8fa1a #46a8fa;width:50px;height:50px;margin:-25px 0 0 -25px;animation:4s linear infinite spinRing}.core-center{background:linear-gradient(135deg,#46a8fa 0%,#2563eb 100%);border-radius:50%;justify-content:center;align-items:center;width:32px;height:32px;margin:-16px 0 0 -16px;animation:2s ease-in-out infinite pulseCore;display:flex;position:absolute;top:50%;left:50%;box-shadow:0 0 30px #46a8fa80}.core-center svg{color:#fff;width:18px;height:18px}@keyframes spinRing{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes pulseCore{0%,to{transform:scale(1);box-shadow:0 0 30px #46a8fa80}50%{transform:scale(1.1);box-shadow:0 0 50px #46a8facc}}.extraction-streams{width:100%;height:100%;position:absolute}.stream{opacity:0;background:linear-gradient(90deg,#0000,#46a8fa,#0000);border-radius:2px;width:80px;height:3px;animation:3s ease-in-out infinite streamFlow;position:absolute}.stream-1{animation-delay:0s;top:30%;left:8%;transform:rotate(25deg)}.stream-2{animation-delay:.6s;top:58%;left:5%;transform:rotate(-15deg)}.stream-3{animation-delay:.3s;top:35%;right:8%;transform:rotate(-30deg)}.stream-4{animation-delay:.9s;top:62%;right:5%;transform:rotate(20deg)}.stream-5{animation-delay:1.2s;top:44%;left:2%;transform:rotate(5deg)}@keyframes streamFlow{0%{opacity:0;transform:translateX(-20px)rotate(inherit)}20%{opacity:1}80%{opacity:1}to{opacity:0;transform:translateX(80px)rotate(inherit)}}.knowledge-nodes{width:100%;height:100%;position:absolute}.k-node{color:#46a8fa;white-space:nowrap;background:linear-gradient(135deg,#46a8fa33 0%,#2563eb33 100%);border:1px solid #46a8fa66;border-radius:20px;padding:6px 12px;font-size:11px;font-weight:600;animation:4s ease-in-out infinite nodeAppear;position:absolute;box-shadow:0 2px 10px #46a8fa33}.node-1{animation-delay:0s;top:15%;right:-2%}.node-2{animation-delay:.5s;top:45%;right:-5%}.node-3{animation-delay:1s;top:80%;right:2%}.node-4{animation-delay:1.5s;top:80%;left:2%}.node-5{animation-delay:2s;top:45%;left:-5%}.node-6{animation-delay:2.5s;top:15%;left:2%}@keyframes nodeAppear{0%,to{opacity:.3;transform:scale(.9)}50%{opacity:1;transform:scale(1.05)}}.connection-lines{width:100%;height:100%;position:absolute;top:0;left:0}.conn-line{stroke:#46a8fa4d;stroke-width:1px;stroke-dasharray:5 5;animation:2s linear infinite dashMove}.line-1{animation-delay:0s}.line-2{animation-delay:.3s}.line-3{animation-delay:.6s}.line-4{animation-delay:.9s}.line-5{animation-delay:1.2s}.line-6{animation-delay:1.5s}@keyframes dashMove{0%{stroke-dashoffset:0}to{stroke-dashoffset:-20px}}.particles{width:100%;height:100%;position:absolute;overflow:hidden}.particle{opacity:0;background:#46a8fa;border-radius:50%;width:4px;height:4px;animation:4s ease-out infinite particleRise;position:absolute;bottom:50%}.p-1{background:#46a8fa}.p-2{background:#60a5fa;width:3px;height:3px}.p-3{background:#3b82f6;width:5px;height:5px}.p-4{background:#93c5fd;width:2px;height:2px}.p-5{background:#2563eb}@keyframes particleRise{0%{opacity:0;transform:translateY(50px)scale(0)}20%{opacity:1;transform:translateY(30px)scale(1)}80%{opacity:.5}to{opacity:0;transform:translateY(-100px)scale(.5)}}.hero-badge{color:#fff;z-index:1;background:linear-gradient(135deg,#46a8fa 0%,#2563eb 100%);border:none;border-radius:100px;align-items:center;gap:8px;margin-bottom:24px;padding:8px 16px;font-size:.875rem;font-weight:500;display:inline-flex;position:relative;box-shadow:0 2px 10px #46a8fa4d}.landing-hero h1{letter-spacing:-.02em;color:var(--foreground);z-index:1;max-width:800px;margin-bottom:24px;font-size:clamp(2.5rem,5vw,4rem);font-weight:700;line-height:1.1;position:relative}.landing-hero p{color:var(--muted);z-index:1;max-width:650px;margin:0 auto 48px;font-size:1.25rem;line-height:1.6;position:relative}.hero-cta{z-index:1;flex-wrap:wrap;justify-content:center;gap:16px;display:flex;position:relative}.btn{cursor:pointer;border:none;border-radius:12px;justify-content:center;align-items:center;gap:8px;padding:12px 24px;font-size:.9375rem;font-weight:600;text-decoration:none;transition:all .2s cubic-bezier(.4,0,.2,1);display:inline-flex;position:relative;overflow:hidden}.btn:after{content:"";pointer-events:none;background:linear-gradient(#ffffff1a 0%,#0000 50%);position:absolute;inset:0}.btn-primary{color:#fff;background:linear-gradient(135deg,#3b82f6 0%,#2563eb 100%);box-shadow:0 4px 14px #3b82f666}.btn-primary:hover{background:linear-gradient(135deg,#60a5fa 0%,#3b82f6 100%);transform:translateY(-2px);box-shadow:0 6px 20px #3b82f680}.btn-primary:active{transform:translateY(0);box-shadow:0 2px 8px #3b82f666}.btn-secondary{color:#1e293b;background:#fff;border:1px solid #e2e8f0;box-shadow:0 1px 3px #00000014}.btn-secondary:hover{background:#f8fafc;border-color:#cbd5e1;transform:translateY(-1px);box-shadow:0 4px 12px #0000001a}.btn-secondary:active{transform:translateY(0);box-shadow:0 1px 2px #00000014}.btn-lg{border-radius:14px;padding:16px 32px;font-size:1rem}.btn-sm{border-radius:10px;padding:8px 16px;font-size:.8125rem}.btn-icon{color:#64748b;cursor:pointer;background:#f1f5f9;border:none;border-radius:10px;padding:10px;transition:all .2s}.btn-icon:hover{color:#0f172a;background:#e2e8f0;transform:scale(1.05)}.btn-danger{color:#fff;background:linear-gradient(135deg,#ef4444 0%,#dc2626 100%);box-shadow:0 4px 14px #ef444466}.btn-danger:hover{background:linear-gradient(135deg,#f87171 0%,#ef4444 100%);transform:translateY(-2px);box-shadow:0 6px 20px #ef444480}.btn-success{color:#fff;background:linear-gradient(135deg,#22c55e 0%,#16a34a 100%);box-shadow:0 4px 14px #22c55e66}.btn-success:hover{background:linear-gradient(135deg,#4ade80 0%,#22c55e 100%);transform:translateY(-2px);box-shadow:0 6px 20px #22c55e80}.btn:disabled{opacity:.6;cursor:not-allowed;box-shadow:none!important;transform:none!important}.features-section{background:var(--surface);border-top:1px solid var(--border);padding:80px 24px}.features-container{max-width:1200px;margin:0 auto}.section-header{text-align:center;margin-bottom:64px}.section-header h2{letter-spacing:-.02em;color:var(--foreground);margin-bottom:16px;font-size:2rem;font-weight:700}.section-header p{color:var(--muted);font-size:1.125rem}.features-grid{grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:24px;display:grid}.feature-card{background:var(--background);border:1px solid var(--border);border-radius:16px;padding:32px;transition:all .3s}.feature-card:hover{border-color:#d4d4d4;transform:translateY(-2px);box-shadow:0 4px 20px #0000000d}.feature-icon{border:1px solid var(--border);width:40px;height:40px;color:var(--foreground);background:#f3f4f6;border-radius:10px;justify-content:center;align-items:center;margin-bottom:16px;font-size:1rem;display:flex}.feature-card h3{color:var(--foreground);margin-bottom:8px;font-size:1.125rem;font-weight:600}.feature-card p{color:var(--muted);font-size:.9375rem;line-height:1.6}.modal-overlay{-webkit-backdrop-filter:blur(8px);z-index:100;background:#0f172ab3;justify-content:center;align-items:center;padding:16px;animation:.2s ease-out modal-overlay-in;display:flex;position:fixed;inset:0}@keyframes modal-overlay-in{0%{opacity:0}to{opacity:1}}.modal-content{background:var(--surface);border-radius:24px;width:100%;max-width:520px;max-height:90vh;animation:.3s ease-out modal-content-in;position:relative;overflow-y:auto;box-shadow:0 0 0 1px #0000000d,0 25px 50px -12px #00000040,0 12px 24px -8px #00000026}.auth-modal{background:#fff;border-radius:20px;width:100%;max-width:880px;min-height:520px;animation:.3s ease-out modal-content-in;display:flex;overflow:hidden;box-shadow:0 0 0 1px #0000000d,0 25px 80px -12px #0006}.auth-modal-brand{background:linear-gradient(135deg,#0f172a 0%,#1e293b 100%);flex-direction:column;flex:0 0 340px;justify-content:center;padding:48px 40px;display:flex;position:relative;overflow:hidden}.auth-modal-brand:before{content:"";pointer-events:none;background:radial-gradient(circle,#46a8fa26 0%,#0000 70%);width:100%;height:100%;position:absolute;top:-50%;right:-50%}.auth-modal-brand:after{content:"";pointer-events:none;background:radial-gradient(circle,#46a8fa1a 0%,#0000 70%);width:80%;height:80%;position:absolute;bottom:-30%;left:-30%}.auth-brand-content{z-index:1;position:relative}.auth-brand-logo{background:linear-gradient(135deg,#46a8fa 0%,#2563eb 100%);border-radius:14px;justify-content:center;align-items:center;width:56px;height:56px;margin-bottom:24px;display:flex;box-shadow:0 8px 32px #46a8fa4d}.auth-brand-logo svg{color:#fff;width:32px;height:32px}.auth-brand-content h3{color:#fff;letter-spacing:-.02em;margin-bottom:8px;font-size:1.75rem;font-weight:700}.auth-brand-content h3 .brand-rag{color:#46a8fa}.auth-brand-content>p{color:#94a3b8;margin-bottom:40px;font-size:.9375rem}.auth-brand-features{flex-direction:column;gap:16px;display:flex}.auth-feature{color:#cbd5e1;align-items:center;gap:12px;font-size:.875rem;display:flex}.auth-feature svg{color:#46a8fa;flex-shrink:0}.auth-modal-form{flex-direction:column;flex:1;padding:48px 40px;display:flex}.auth-form-header{margin-bottom:32px}.auth-form-header h2{color:#0f172a;margin-bottom:8px;font-size:1.5rem;font-weight:700}.auth-form-header p{color:#64748b;font-size:.9375rem}.auth-modal-form .form-group{margin-bottom:20px}.auth-modal-form .form-label{color:#374151;text-transform:uppercase;letter-spacing:.05em;margin-bottom:8px;font-size:.8125rem;font-weight:600;display:block}.auth-modal-form .form-input{color:#0f172a;background:#f9fafb;border:1px solid #e5e7eb;border-radius:10px;outline:none;width:100%;padding:14px 16px;font-size:.9375rem;transition:all .2s}.auth-modal-form .form-input:hover{border-color:#d1d5db}.auth-modal-form .form-input:focus{background:#fff;border-color:#46a8fa;box-shadow:0 0 0 3px #46a8fa26}.auth-modal-form .form-input::placeholder{color:#9ca3af}.form-error-box{color:#dc2626;background:#fef2f2;border:1px solid #fecaca;border-radius:10px;align-items:center;gap:10px;margin-bottom:20px;padding:12px 14px;font-size:.875rem;display:flex}.form-error-box svg{flex-shrink:0}.auth-submit-btn{color:#fff;cursor:pointer;background:linear-gradient(135deg,#46a8fa 0%,#2563eb 100%);border:none;border-radius:10px;width:100%;margin-top:8px;padding:14px 24px;font-size:.9375rem;font-weight:600;transition:all .2s}.auth-submit-btn:hover:not(:disabled){background:linear-gradient(135deg,#60a5fa 0%,#3b82f6 100%);transform:translateY(-1px);box-shadow:0 8px 24px #46a8fa59}.auth-submit-btn:active:not(:disabled){transform:translateY(0)}.auth-submit-btn:disabled{opacity:.7;cursor:not-allowed}.auth-loading{justify-content:center;align-items:center;gap:10px;display:flex}.auth-switch{text-align:center;color:#64748b;margin-top:auto;padding-top:24px;font-size:.875rem}.auth-switch button{color:#46a8fa;cursor:pointer;background:0 0;border:none;margin-left:4px;padding:0;font-weight:600}.auth-switch button:hover{color:#2563eb;text-decoration:underline}@media (max-width:768px){.auth-modal{flex-direction:column;max-width:440px;min-height:auto}.auth-modal-brand{flex:none;padding:32px 24px}.auth-brand-features{display:none}.auth-brand-content>p{margin-bottom:0}.auth-modal-form{padding:32px 24px}}@keyframes modal-content-in{0%{opacity:0;transform:scale(.95)translateY(10px)}to{opacity:1;transform:scale(1)translateY(0)}}.modal-header{padding:24px 24px 0}.modal-header h2{color:var(--foreground);margin-bottom:8px;font-size:1.5rem;font-weight:600}.modal-header p{color:var(--muted);font-size:.9375rem}.modal-body{padding:24px}.modal-close{cursor:pointer;color:#64748b;background:#f1f5f9;border:none;border-radius:10px;justify-content:center;align-items:center;width:36px;height:36px;font-size:1.25rem;line-height:1;transition:all .2s;display:flex;position:absolute;top:20px;right:20px}.modal-close:hover{color:#0f172a;background:#e2e8f0;transform:scale(1.05)}.form-group{margin-bottom:24px}.form-label{color:#1e293b;margin-bottom:8px;font-size:.875rem;font-weight:600;display:block}.form-input{color:#0f172a;background:#f8fafc;border:2px solid #e2e8f0;border-radius:12px;outline:none;width:100%;padding:14px 16px;font-size:1rem;transition:all .2s}.form-input:hover{border-color:#cbd5e1}.form-input:focus{background:#fff;border-color:#3b82f6;box-shadow:0 0 0 4px #3b82f61a}.form-input::placeholder{color:#94a3b8}.form-input.error{background:#fef2f2;border-color:#ef4444}.form-input.error:focus{box-shadow:0 0 0 4px #ef44441a}.form-error{color:#ef4444;align-items:center;gap:6px;margin-top:8px;font-size:.8125rem;display:flex}.form-helper{color:#64748b;margin-top:8px;font-size:.8125rem}.invite-code-input{letter-spacing:.1em;text-transform:uppercase;font-family:SF Mono,Monaco,monospace}.auth-switch{text-align:center;border-top:1px solid var(--border);color:var(--muted);margin-top:24px;padding-top:24px;font-size:.9375rem}.auth-switch button{color:var(--accent);cursor:pointer;background:0 0;border:none;margin-left:4px;font-weight:500}.auth-switch button:hover{text-decoration:underline}.dashboard{max-width:1400px;margin:0 auto;padding:40px 32px}.dashboard-header{justify-content:space-between;align-items:center;margin-bottom:24px;display:flex}.dashboard-header h1{color:#0f172a;letter-spacing:-.02em;font-size:1.75rem;font-weight:700}.dashboard-actions{gap:12px;display:flex}.stats-grid{grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:32px;display:grid}@media (max-width:900px){.stats-grid{grid-template-columns:repeat(2,1fr)}}.stat-card{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:16px 20px;transition:all .2s;box-shadow:0 1px 2px #0000000a}.stat-card:hover{border-color:#cbd5e1;box-shadow:0 2px 8px #0000000f}.stat-label{color:#64748b;text-transform:uppercase;letter-spacing:.03em;margin-bottom:4px;font-size:.75rem;font-weight:500}.stat-value{color:#0f172a;letter-spacing:-.02em;font-size:1.5rem;font-weight:700}.content-grid{grid-template-columns:1fr 1fr;gap:24px;display:grid}@media (max-width:1024px){.content-grid{grid-template-columns:1fr}}.content-section{background:#fff;border:1px solid #e2e8f0;border-radius:20px;overflow:hidden;box-shadow:0 1px 3px #0000000d}.section-title{background:#fafbfc;border-bottom:1px solid #f1f5f9;justify-content:space-between;align-items:center;padding:20px 24px;display:flex}.section-title h2{color:#0f172a;font-size:1.0625rem;font-weight:600}.section-content{max-height:500px;overflow-y:auto}.list-item{border-bottom:1px solid #f1f5f9;justify-content:space-between;align-items:center;padding:18px 24px;transition:all .2s;display:flex}.list-item:last-child{border-bottom:none}.list-item:hover{background:#f8fafc}.list-item-content{flex:1;min-width:0}.list-item-title{color:var(--foreground);white-space:nowrap;text-overflow:ellipsis;margin-bottom:4px;font-size:.9375rem;font-weight:500;overflow:hidden}.list-item-meta{color:var(--muted);font-size:.8125rem}.list-item-actions{gap:4px;margin-left:12px;display:flex}.empty-state{text-align:center;color:#64748b;padding:60px 24px}.empty-state-icon,.empty-icon{color:#94a3b8;justify-content:center;margin-bottom:16px;display:flex}.empty-state-icon svg,.empty-icon svg{stroke-width:1.5px;width:48px;height:48px}.empty-state h3{color:#0f172a;margin-bottom:10px;font-size:1.25rem;font-weight:600}.empty-state p{color:#64748b;max-width:400px;margin:0 auto;font-size:.9375rem;line-height:1.6}.empty-state .btn{margin-top:24px}.example-queries{text-align:left;background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;width:100%;max-width:340px;margin-top:24px;padding:18px 20px}.example-queries>p{text-transform:uppercase;letter-spacing:.08em;color:#64748b;margin-bottom:14px;font-size:.6875rem;font-weight:700}.example-queries ul{margin:0;padding:0;list-style:none}.example-queries li{color:#334155;border-bottom:1px solid #e2e8f0;padding:10px 0;font-size:.875rem}.example-queries li:last-child{border-bottom:none;padding-bottom:0}.chat-layout{grid-template-columns:.5fr minmax(350px,480px) minmax(600px,1100px) .5fr;width:100%;height:calc(100vh - 64px);margin-top:64px;transition:grid-template-columns .3s;display:grid}.chat-layout.layout-balanced{grid-template-columns:.25fr minmax(400px,550px) minmax(600px,1fr) .25fr}.chat-layout.layout-chat-focus{grid-template-columns:.1fr minmax(500px,800px) minmax(400px,600px) .1fr}.chat-layout.layout-pdf-focus{grid-template-columns:.1fr minmax(300px,400px) minmax(700px,1fr) .1fr}.chat-layout>.chat-panel{border-right:1px solid var(--border);grid-column:2;overflow:hidden}.chat-layout>.document-panel{grid-column:3;position:relative;overflow:hidden}.layout-toggle{background:var(--surface);border:1px solid var(--border);border-radius:6px;gap:2px;padding:2px;display:flex}.layout-btn{cursor:pointer;width:32px;height:28px;color:var(--muted);background:0 0;border:none;border-radius:4px;justify-content:center;align-items:center;transition:all .15s;display:flex}.layout-btn:hover{background:var(--border);color:var(--foreground)}.layout-btn.active{background:var(--foreground);color:#fff}.layout-btn svg{width:16px;height:16px}.chat-sidebar{background:var(--surface);border-right:1px solid var(--border);flex-direction:column;width:280px;display:flex}.sidebar-header{border-bottom:1px solid var(--border);padding:16px}.sidebar-content{flex:1;padding:8px;overflow-y:auto}.sidebar-item{cursor:pointer;border-radius:8px;align-items:center;gap:12px;margin-bottom:4px;padding:12px;transition:all .2s;display:flex}.sidebar-item:hover{background:#f5f5f5}.sidebar-item.active{color:var(--foreground);background:#f3f4f6;font-weight:500}.sidebar-item-icon{background:#f5f5f5;border-radius:8px;justify-content:center;align-items:center;width:32px;height:32px;font-size:1rem;display:flex}.sidebar-item-text{flex:1;min-width:0}.sidebar-item-title{white-space:nowrap;text-overflow:ellipsis;font-size:.875rem;font-weight:500;overflow:hidden}.sidebar-item-date{color:var(--muted);font-size:.75rem}.chat-main{flex-direction:column;flex:1;min-width:0;display:flex}.chat-content{flex:1;display:flex;overflow:hidden}.chat-messages-panel{flex-direction:column;flex:1;min-width:400px;display:flex}.document-panel{background:var(--surface);border-left:1px solid var(--border);flex-direction:column;width:50%;max-width:700px;display:flex}.chat-panel{background:var(--background);flex-direction:column;height:100%;display:flex}.messages-container{flex:1;padding:20px;overflow-y:auto}.message{gap:10px;margin-bottom:20px;display:flex}.message.user{flex-direction:row-reverse}.message-avatar{background:var(--foreground);color:#fff;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:32px;min-width:32px;height:32px;font-size:.75rem;font-weight:600;display:flex}.message.user .message-avatar{background:#374151}.message.assistant .message-avatar{background:var(--foreground)}.message-content{flex:1;min-width:0}.message.user .message-content{flex-direction:column;align-items:flex-end;display:flex}.message-text{border-radius:10px;padding:12px 14px;font-size:.875rem;line-height:1.5}.message.user .message-text{background:var(--foreground);color:#fff;border-radius:10px 10px 4px}.message.assistant .message-text{background:var(--surface);border:1px solid var(--border);color:var(--foreground)}.message-text p{margin-bottom:12px}.message-text p:last-child{margin-bottom:0}.markdown-content{line-height:1.7}.markdown-content p,.markdown-content .md-p{margin-bottom:12px;display:block}.markdown-content p:last-child,.markdown-content .md-p:last-child{margin-bottom:0}.markdown-content strong{color:#1e293b;font-weight:600}.markdown-content em{font-style:italic}.markdown-content ul,.markdown-content ol,.markdown-content .md-ul,.markdown-content .md-ol{margin:12px 0;padding-left:24px;display:block}.markdown-content ol,.markdown-content .md-ol{list-style-type:decimal}.markdown-content ul,.markdown-content .md-ul{list-style-type:disc}.markdown-content li,.markdown-content .md-li{margin-bottom:8px;display:list-item}.markdown-content li:last-child,.markdown-content .md-li:last-child{margin-bottom:0}.markdown-content code{background:#f3f4f6;border-radius:4px;padding:2px 6px;font-family:monospace;font-size:.85em}.markdown-content a{color:#2563eb;text-decoration:underline}.markdown-content a:hover{color:#1d4ed8}.markdown-content .md-paragraph{display:inline}.markdown-content .md-paragraph strong{font-weight:600}.page-link-btn{color:#1d4ed8;cursor:pointer;vertical-align:baseline;background:linear-gradient(135deg,#dbeafe 0%,#bfdbfe 100%);border:1px solid #93c5fd;border-radius:12px;align-items:center;gap:2px;margin:0 3px;padding:2px 8px;font-family:inherit;font-size:.75rem;font-weight:600;transition:all .15s;display:inline-flex;box-shadow:0 1px 2px #3b82f61a}.page-link-btn:hover{background:linear-gradient(135deg,#bfdbfe 0%,#93c5fd 100%);border-color:#60a5fa;transform:translateY(-1px);box-shadow:0 2px 4px #3b82f633}.page-link-btn:active{transform:translateY(0)}.page-link-inline{color:#3b82f6;font-size:inherit;cursor:pointer;background:0 0;border:none;border-bottom:1px dashed #93c5fd;padding:0;font-family:inherit;font-weight:500;text-decoration:none;transition:all .15s;display:inline}.page-link-inline:hover{color:#1d4ed8;border-bottom-style:solid;border-bottom-color:#3b82f6}.page-link-inline:before{content:"(";color:#94a3b8}.page-link-inline:after{content:")";color:#94a3b8}.citation-link{color:var(--foreground);cursor:pointer;border:1px solid var(--border);background:#f3f4f6;border-radius:4px;align-items:center;gap:4px;padding:2px 8px;font-family:inherit;font-size:.8125rem;font-weight:500;transition:all .2s;display:inline-flex}.citation-link:hover{background:#e5e7eb}.message-citations{flex-wrap:wrap;align-items:center;gap:8px;margin-top:12px;display:flex}.citations-label{color:var(--muted);text-transform:uppercase;letter-spacing:.05em;font-size:.75rem;font-weight:500}.citation-badge{border:1px solid var(--border);color:var(--foreground);cursor:pointer;background:#f3f4f6;border-radius:4px;align-items:center;padding:4px 10px;font-family:inherit;font-size:.8125rem;transition:all .2s;display:inline-flex}.citation-badge:hover{background:#e5e7eb;border-color:#d1d5db}.chat-input-form{background:var(--background);border-top:1px solid var(--border);gap:10px;padding:16px;display:flex}.chat-input-form textarea{border:1px solid var(--border);resize:none;background:var(--surface);border-radius:10px;outline:none;flex:1;min-height:44px;max-height:150px;padding:12px 14px;font-family:inherit;font-size:.875rem;transition:all .2s}.chat-input-form textarea:focus{border-color:var(--foreground);box-shadow:0 0 0 3px #1a1a1a14}.chat-input-form textarea::placeholder{color:var(--muted)}.send-button{background:var(--foreground);color:#fff;cursor:pointer;border:none;border-radius:10px;flex-shrink:0;justify-content:center;align-items:center;width:44px;height:44px;transition:all .2s;display:flex}.send-button:hover{background:#333}.send-button:disabled{opacity:.4;cursor:not-allowed}.typing-indicator{gap:4px;padding:8px 0;display:flex}.typing-indicator span{background:var(--muted);border-radius:50%;width:8px;height:8px;animation:1.4s ease-in-out infinite both typing}.typing-indicator span:first-child{animation-delay:-.32s}.typing-indicator span:nth-child(2){animation-delay:-.16s}@keyframes typing{0%,80%,to{opacity:.4;transform:scale(.6)}40%{opacity:1;transform:scale(1)}}.document-panel{background:var(--surface);flex-direction:column;width:100%;height:100%;display:flex}.document-header{border-bottom:1px solid var(--border);background:var(--background);justify-content:space-between;align-items:center;gap:16px;padding:12px 16px;display:flex}.document-selector{border:1px solid var(--border);background:var(--surface);cursor:pointer;border-radius:6px;outline:none;flex:1;max-width:280px;padding:8px 12px;font-size:.875rem}.document-selector:focus{border-color:var(--foreground)}.document-empty{text-align:center;background:#f8f9fa;flex-direction:column;flex:1;justify-content:center;align-items:center;padding:40px;display:flex}.document-empty h3{color:var(--foreground);margin-bottom:8px;font-size:1rem;font-weight:500}.document-empty p{color:var(--muted);max-width:280px;font-size:.875rem}.pdf-viewer{background:#505050;flex-direction:column;flex:1;width:100%;display:flex;overflow:hidden}.page-navigation{border-top:1px solid var(--border);background:var(--background);justify-content:center;align-items:center;gap:12px;padding:10px 16px;display:flex}.nav-btn{border:1px solid var(--border);background:var(--surface);cursor:pointer;border-radius:6px;padding:8px 16px;font-size:.875rem;transition:all .2s}.nav-btn:hover:not(:disabled){background:#f5f5f5}.nav-btn:disabled{opacity:.5;cursor:not-allowed}.page-input{border:1px solid var(--border);text-align:center;border-radius:6px;outline:none;width:60px;padding:8px 12px;font-size:.875rem}.page-input:focus{border-color:var(--foreground)}.document-panel-header{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;padding:16px 20px;display:flex}.document-panel-content{flex-direction:column;flex:1;display:flex;overflow:hidden}.pdf-viewer-container{box-sizing:border-box;background:#505050;flex-direction:column;flex:1;justify-content:flex-start;align-items:center;width:100%;padding:16px;display:flex;overflow:auto}.pdf-scroll-container{flex-direction:column;align-items:center;width:100%;display:flex}.pdf-document{flex-direction:column;align-items:center;display:flex}.pdf-page{box-shadow:0 4px 16px #0006}.pdf-controls{background:var(--surface);border-radius:6px;align-items:center;gap:8px;margin-bottom:12px;padding:6px 10px;display:flex;box-shadow:0 2px 8px #00000026}.zoom-btn{border:1px solid var(--border);background:var(--surface);cursor:pointer;border-radius:6px;justify-content:center;align-items:center;width:32px;height:32px;font-size:1rem;transition:all .2s;display:flex}.zoom-btn:hover{background:#f5f5f5}.zoom-level{color:var(--muted);text-align:center;min-width:48px;font-size:.875rem}.pdf-citation-overlay{z-index:100;background:#fffffff7;border-radius:12px;max-height:60vh;padding:20px;animation:.2s slide-down;position:absolute;top:60px;left:16px;right:16px;overflow-y:auto;box-shadow:0 8px 32px #0003}@keyframes slide-down{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}.pdf-citation-overlay-header{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;margin-bottom:16px;padding-bottom:12px;display:flex}.pdf-citation-overlay-header h3{margin:0;font-size:1rem;font-weight:600}.pdf-citation-overlay-close{cursor:pointer;color:var(--muted);background:0 0;border:none;padding:0;font-size:1.5rem;line-height:1}.pdf-citation-overlay-close:hover{color:var(--foreground)}.citation-list{flex-direction:column;gap:12px;display:flex}.citation-item{cursor:pointer;background:#f8f9fa;border:1px solid #0000;border-radius:8px;align-items:flex-start;gap:12px;padding:12px;transition:all .15s;display:flex}.citation-item:hover{border-color:var(--border);background:#f0f0f0}.citation-item-page{background:var(--foreground);color:#fff;border-radius:8px;flex-shrink:0;justify-content:center;align-items:center;width:48px;height:48px;font-size:.875rem;font-weight:600;display:flex}.citation-item-content{flex:1;min-width:0}.citation-item-title{color:var(--foreground);margin-bottom:4px;font-size:.875rem;font-weight:500}.citation-item-snippet{color:var(--muted);-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:.8125rem;line-height:1.4;display:-webkit-box;overflow:hidden}.citation-item-goto{color:#2563eb;align-items:center;gap:4px;margin-top:6px;font-size:.75rem;display:flex}.pdf-page-nav{border-top:1px solid var(--border);background:var(--surface);align-items:center;gap:12px;padding:12px 20px;display:flex}.page-info{color:var(--muted);font-size:.875rem}.pdf-placeholder{color:var(--muted);text-align:center;background:#f8f9fa;flex-direction:column;flex:1;justify-content:center;align-items:center;padding:40px;display:flex}.pdf-placeholder .pdf-icon{opacity:.4;margin-bottom:16px}.pdf-placeholder h4{color:var(--foreground);margin-bottom:8px;font-size:1rem;font-weight:500}.pdf-placeholder p{color:var(--muted);font-size:.875rem}.pdf-loading{color:#fff;flex-direction:column;justify-content:center;align-items:center;padding:40px;display:flex}.pdf-loading p{margin-top:12px;font-size:.875rem}.pdf-error{color:#f59e0b;text-align:center;flex-direction:column;justify-content:center;align-items:center;padding:40px;display:flex}.pdf-error svg{margin-bottom:12px}.pdf-error p{margin-bottom:4px;font-size:1rem;font-weight:500}.pdf-error span{color:#d1d5db;font-size:.875rem}.spinner{border:2px solid #e5e5e5;border-top-color:var(--foreground);border-radius:50%;width:20px;height:20px;animation:.8s linear infinite spin}.spinner-light{border-color:#fff #ffffff4d #ffffff4d}.loading-overlay{z-index:200;background:#fffc;justify-content:center;align-items:center;display:flex;position:fixed;inset:0}.badge{border-radius:100px;align-items:center;padding:4px 10px;font-size:.75rem;font-weight:500;display:inline-flex}.badge-success{color:var(--success);background:#10b9811a}.badge-warning{color:var(--warning);background:#f59e0b1a}.badge-error{color:var(--error);background:#ef44441a}.badge-info{color:var(--info);background:#3b82f61a}.toast-container{z-index:300;flex-direction:column;gap:8px;display:flex;position:fixed;bottom:24px;right:24px}.toast{background:var(--surface);border:1px solid var(--border);border-radius:12px;align-items:center;gap:12px;padding:14px 20px;animation:.3s ease-out fade-in-up;display:flex;box-shadow:0 4px 20px #0000001a}.toast-success{border-color:var(--success)}.toast-error{border-color:var(--error)}.validation-badge{border-radius:8px;align-items:center;gap:6px;margin-top:12px;padding:6px 12px;font-size:.8125rem;font-weight:500;display:inline-flex}.validation-badge.validated{color:var(--success);background:#10b9811a;border:1px solid #10b98133}.validation-badge.warning{color:var(--warning);background:#f59e0b1a;border:1px solid #f59e0b33}.validation-badge.error{color:var(--error);background:#ef44441a;border:1px solid #ef444433}.modal-content h2{color:#0f172a;letter-spacing:-.02em;margin-bottom:8px;padding:32px 32px 0;font-size:1.625rem;font-weight:700}.modal-subtitle{color:#64748b;padding:0 32px 28px;font-size:.9375rem;line-height:1.6}.modal-content{position:relative}.upload-zone{text-align:center;cursor:pointer;background:linear-gradient(135deg,#f8fafc 0%,#f1f5f9 100%);border:2px dashed #cbd5e1;border-radius:20px;margin:0 32px 32px;padding:48px 40px;transition:all .3s cubic-bezier(.4,0,.2,1);position:relative;overflow:hidden}.upload-zone:before{content:"";opacity:0;background:linear-gradient(135deg,#3b82f60d 0%,#93c5fd0d 100%);transition:opacity .3s;position:absolute;inset:0}.upload-zone:hover:before,.upload-zone.dragging:before{opacity:1}.upload-zone:hover,.upload-zone.dragging{background:linear-gradient(135deg,#eff6ff 0%,#dbeafe 100%);border-style:solid;border-color:#3b82f6;transform:scale(1.02);box-shadow:0 8px 30px #3b82f626}.upload-zone.uploading{pointer-events:none;opacity:.8}.upload-icon{color:#94a3b8;z-index:1;justify-content:center;margin-bottom:20px;display:flex;position:relative}.upload-icon svg{opacity:.6;width:56px;height:64px;transition:all .25s}.upload-zone:hover .upload-icon svg{opacity:1;color:#3b82f6;transform:translateY(-4px)}.upload-text{color:var(--foreground);margin-bottom:10px;font-size:1.0625rem;font-weight:600}.upload-hint{color:var(--muted);font-size:.875rem;line-height:1.5}.upload-formats{flex-wrap:wrap;justify-content:center;gap:8px;margin-top:20px;display:flex}.upload-format-badge{color:#6b7280;background:#fff;border:1px solid #e5e7eb;border-radius:20px;padding:6px 12px;font-size:.75rem;font-weight:500}.upload-progress{flex-direction:column;align-items:center;gap:12px;display:flex}.upload-progress p{color:var(--foreground);font-size:.875rem}.upload-complete-actions{justify-content:center;gap:12px;margin-top:24px;display:flex}.upload-another-btn{border:1px solid var(--border);color:var(--foreground);cursor:pointer;background:0 0;border-radius:6px;padding:10px 20px;font-size:.875rem;transition:all .2s}.upload-another-btn:hover{background:var(--card-hover);border-color:var(--foreground)}.upload-done-btn{background:var(--accent);color:#fff;cursor:pointer;border:none;border-radius:6px;padding:10px 24px;font-size:.875rem;font-weight:500;transition:all .2s}.upload-done-btn:hover{background:var(--accent-hover)}.upload-error{color:var(--error);background:#ef44441a;border:1px solid #ef444433;border-radius:10px;margin:0 32px 32px;padding:14px 18px;font-size:.875rem}.upload-status-list{flex-direction:column;gap:16px;margin:0 32px 32px;display:flex}.upload-status-item{background:linear-gradient(135deg,#f8fafc 0%,#f1f5f9 100%);border:1px solid #e2e8f0;border-radius:12px;padding:20px;transition:all .2s}.upload-status-item:has(.upload-status-icon.complete){background:linear-gradient(135deg,#f0fdf4 0%,#dcfce7 100%);border-color:#86efac}.upload-status-item:has(.upload-status-icon.error){background:linear-gradient(135deg,#fef2f2 0%,#fee2e2 100%);border-color:#fca5a5}.upload-status-header{align-items:center;gap:10px;margin-bottom:6px;display:flex}.upload-status-icon{text-align:center;width:20px;font-size:1rem;font-weight:600}.upload-status-icon.complete{color:#22c55e}.upload-status-icon.error{color:#ef4444}.upload-status-name{color:var(--foreground);text-overflow:ellipsis;white-space:nowrap;font-size:.875rem;font-weight:500;overflow:hidden}.upload-status-progress{color:var(--muted);margin-left:30px;font-size:.8125rem}.upload-progress-bar{background:#e2e8f0;border-radius:3px;height:6px;margin-top:12px;overflow:hidden}.upload-progress-bar-fill{background:linear-gradient(90deg,#3b82f6 0%,#60a5fa 50%,#3b82f6 100%) 0 0/200% 100%;width:100%;height:100%;animation:1.5s infinite progress-shimmer}@keyframes progress-shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}.spinner-small{border:2px solid #e5e5e5;border-top-color:#333;border-radius:50%;width:14px;height:14px;animation:.8s linear infinite spin;display:inline-block}.upload-auto-close{text-align:center;color:#16a34a;background:linear-gradient(135deg,#f0fdf4 0%,#dcfce7 100%);border-radius:8px;margin-top:8px;padding:12px;font-size:.9375rem;font-weight:600}.upload-modal-content.upload-multi{max-width:560px;padding:0}.upload-header{padding:24px 24px 0}.upload-header h2{color:var(--foreground);margin:0 0 4px;font-size:1.25rem;font-weight:600}.upload-header p{color:var(--muted);margin:0;font-size:.875rem}.upload-overall-progress{align-items:center;gap:12px;margin:20px 24px;display:flex}.progress-bar-bg{background:#e5e7eb;border-radius:3px;flex:1;height:6px;overflow:hidden}.progress-bar-bg.large{border-radius:4px;height:8px}.progress-bar-fill{border-radius:inherit;background:#46a8fa;height:100%;transition:width .3s}.progress-percent{color:var(--foreground);text-align:right;min-width:40px;font-size:.8125rem;font-weight:600}.upload-file-list{border:1px solid var(--border);background:var(--card);border-radius:10px;max-height:320px;margin:0 24px;overflow-y:auto}.upload-file-item{border-bottom:1px solid var(--border);align-items:center;gap:12px;padding:12px 14px;transition:background .2s;display:flex}.upload-file-item:last-child{border-bottom:none}.upload-file-item:hover{background:var(--card-hover)}.upload-file-item.complete{background:#22c55e0d}.upload-file-item.error{background:#ef44440d}.upload-file-item .file-icon{flex-shrink:0;justify-content:center;align-items:center;width:28px;height:28px;font-size:1rem;font-weight:600;display:flex}.upload-file-item .file-info{flex:1;min-width:0}.upload-file-item .file-name{color:var(--foreground);white-space:nowrap;text-overflow:ellipsis;font-size:.875rem;font-weight:500;overflow:hidden}.upload-file-item .file-status{margin-top:2px;font-size:.75rem}.file-progress-bar{background:#e5e7eb;border-radius:2px;height:3px;margin-top:6px;overflow:hidden}.file-progress-fill{background:#46a8fa;border-radius:2px;height:100%;transition:width .2s}.file-remove{width:24px;height:24px;color:var(--muted);cursor:pointer;background:0 0;border:none;border-radius:4px;flex-shrink:0;justify-content:center;align-items:center;font-size:.875rem;transition:all .2s;display:flex}.file-remove:hover{color:#ef4444;background:#ef44441a}.file-spinner{border:2px solid #e5e7eb;border-top-color:#46a8fa;border-radius:50%;width:16px;height:16px;animation:.8s linear infinite spin;display:inline-block}.upload-dropzone{border:2px dashed var(--border);text-align:center;cursor:pointer;background:var(--card);border-radius:12px;margin:16px 24px;padding:40px 24px;transition:all .2s}.upload-dropzone.compact{padding:16px}.upload-dropzone:hover,.upload-dropzone.dragging{background:#46a8fa0d;border-color:#46a8fa}.dropzone-icon{color:var(--muted);margin-bottom:12px}.upload-dropzone:hover .dropzone-icon,.upload-dropzone.dragging .dropzone-icon{color:#46a8fa}.dropzone-text{color:var(--foreground);margin:0;font-size:.9375rem}.dropzone-text strong{color:#46a8fa}.dropzone-hint{color:var(--muted);margin:8px 0 0;font-size:.8125rem}.dropzone-add{color:#46a8fa;justify-content:center;align-items:center;gap:6px;margin:0;font-size:.875rem;font-weight:500;display:flex}.dropzone-add svg{opacity:.8}.upload-actions{border-top:1px solid var(--border);background:var(--card);justify-content:flex-end;gap:12px;padding:20px 24px;display:flex}.upload-actions .btn{cursor:pointer;border-radius:8px;padding:10px 20px;font-size:.875rem;font-weight:500;transition:all .2s}.upload-actions .btn-secondary{border:1px solid var(--border);color:var(--foreground);background:0 0}.upload-actions .btn-secondary:hover{background:var(--card-hover);border-color:var(--foreground)}.upload-actions .btn-primary{color:#fff;background:#46a8fa;border:none}.upload-actions .btn-primary:hover:not(:disabled){background:#2196f3}.upload-actions .btn-primary:disabled{opacity:.5;cursor:not-allowed}.upload-processing-hint{color:var(--muted);margin:0;font-size:.875rem}.upload-complete-message{color:#22c55e;align-items:center;gap:10px;font-size:.9375rem;font-weight:500;animation:.3s fadeIn;display:flex}.upload-complete-message.centered{background:#22c55e14;border-radius:10px;justify-content:center;margin-top:8px;padding:16px}@keyframes fadeIn{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}.upload-single-view{padding:32px}.upload-single-header{align-items:center;gap:16px;margin-bottom:24px;display:flex}.upload-single-icon{background:var(--card);border:3px solid #e5e7eb;border-radius:16px;justify-content:center;align-items:center;width:64px;height:64px;transition:border-color .3s;display:flex}.upload-single-spinner{border:3px solid #e5e7eb;border-top-color:#46a8fa;border-radius:50%;width:32px;height:32px;animation:.8s linear infinite spin}.upload-single-info{flex:1;min-width:0}.upload-single-info h3{color:var(--foreground);white-space:nowrap;text-overflow:ellipsis;margin:0 0 4px;font-size:1rem;font-weight:600;overflow:hidden}.upload-single-info p{margin:0;font-size:.875rem;transition:color .2s}.upload-single-progress{align-items:center;gap:12px;margin-bottom:24px;display:flex}.upload-single-progress .progress-bar-bg{height:8px}.upload-single-progress .progress-percent{font-size:.9375rem;font-weight:700}.upload-single-stages{justify-content:center;align-items:center;gap:8px;margin-bottom:24px;display:flex}.stage-item{opacity:.4;flex-direction:column;align-items:center;gap:6px;transition:opacity .3s;display:flex}.stage-item.active{opacity:.8}.stage-item.done{opacity:1}.stage-item .stage-dot{background:#d1d5db;border-radius:50%;width:10px;height:10px;transition:all .3s}.stage-item.active .stage-dot{background:#46a8fa;animation:1.5s infinite pulse}.stage-item.done .stage-dot{background:#22c55e}.stage-item span:last-child{color:var(--muted);font-size:.6875rem;font-weight:500}.stage-item.done span:last-child{color:#22c55e}.stage-item.active span:last-child{color:#46a8fa}.upload-single-stages .stage-line{background:#d1d5db;width:20px;height:2px}.upload-error-box{color:#ef4444;background:#ef44441a;border:1px solid #ef444433;border-radius:8px;align-items:center;gap:8px;margin-bottom:24px;padding:12px 16px;font-size:.875rem;display:flex}.upload-single-view .upload-complete-actions{margin-top:0}.upload-modal-content{min-height:300px}.processing-view{padding:0 24px 24px}.processing-header{background:linear-gradient(135deg,#f8fafc 0%,#f1f5f9 100%);border-radius:12px;align-items:center;gap:12px;margin-bottom:20px;padding:16px;display:flex}.processing-header .file-icon{background:#fff;border-radius:10px;justify-content:center;align-items:center;width:40px;height:40px;display:flex;box-shadow:0 2px 8px #00000014}.processing-header .file-icon svg{color:#3b82f6}.processing-header .file-info{flex:1;min-width:0}.processing-header .file-name{color:var(--foreground);white-space:nowrap;text-overflow:ellipsis;font-size:.9375rem;font-weight:600;overflow:hidden}.processing-header .file-status{color:var(--muted);margin-top:2px;font-size:.8125rem}.processing-header .complete-badge{color:#fff;background:linear-gradient(135deg,#22c55e 0%,#16a34a 100%);border-radius:50%;justify-content:center;align-items:center;width:32px;height:32px;font-size:1rem;font-weight:700;animation:.3s ease-out fade-in-highlight;display:flex}.pages-scanner{scroll-behavior:smooth;background:#1a1a2e;border-radius:12px;gap:12px;margin-bottom:20px;padding:16px;display:flex;overflow-x:auto}.pages-scanner::-webkit-scrollbar{height:6px}.pages-scanner::-webkit-scrollbar-track{background:#ffffff1a;border-radius:3px}.pages-scanner::-webkit-scrollbar-thumb{background:#ffffff4d;border-radius:3px}.page-thumb{background:#2d2d44;border:2px solid #0000;border-radius:8px;flex-shrink:0;width:100px;height:140px;transition:all .3s;position:relative;overflow:hidden}.page-thumb.current{border-color:#3b82f6;box-shadow:0 0 20px #3b82f680}.page-thumb.extracted,.page-thumb.indexed{border-color:#22c55e}.page-thumb img{object-fit:cover;filter:brightness(.8);width:100%;height:100%;transition:filter .3s}.page-thumb.extracted img,.page-thumb.indexed img{filter:brightness()}.page-placeholder{color:#ffffff4d;background:linear-gradient(135deg,#2d2d44 0%,#3d3d5c 100%);justify-content:center;align-items:center;width:100%;height:100%;font-size:1.5rem;font-weight:700;display:flex}.page-overlay{background:#0006;flex-direction:column;justify-content:center;align-items:center;transition:background .3s;display:flex;position:absolute;inset:0}.page-thumb.extracted .page-overlay,.page-thumb.indexed .page-overlay{background:#0003}.page-status-icon{text-shadow:0 2px 4px #0000004d;margin-bottom:4px;font-size:1.5rem;font-weight:700}.page-number{color:#fffc;font-size:.6875rem;font-weight:500}.page-regions{color:#fff9;margin-top:2px;font-size:.625rem}.scan-line{background:linear-gradient(90deg,#0000 0%,#f59e0b 20%,#fbbf24 50%,#f59e0b 80%,#0000 100%);height:3px;animation:1.5s ease-in-out infinite scan-down;position:absolute;top:0;left:0;right:0;box-shadow:0 0 15px #f59e0b}@keyframes scan-down{0%{top:0}to{top:100%}}.region-grid{pointer-events:none;grid-template-rows:repeat(4,1fr);grid-template-columns:repeat(4,1fr);gap:1px;display:grid;position:absolute;inset:4px}.region-cell{background:0 0;border:1px solid #0000;transition:all .3s}.region-cell.active{background:#22c55e4d;border-color:#22c55e99}.stage-progress{justify-content:center;align-items:center;gap:8px;padding:16px 0;display:flex}.stage{opacity:.4;flex-direction:column;align-items:center;gap:6px;transition:all .3s;display:flex}.stage.done,.stage.active{opacity:1}.stage-dot{background:#d1d5db;border-radius:50%;width:12px;height:12px;transition:all .3s}.stage.done .stage-dot{background:#22c55e}.stage.active .stage-dot{background:#3b82f6;animation:1.5s infinite pulse}@keyframes pulse{0%,to{transform:scale(1);box-shadow:0 0 #3b82f666}50%{transform:scale(1.1);box-shadow:0 0 0 8px #3b82f600}}.stage span:last-child{color:var(--muted);font-size:.6875rem;font-weight:500}.stage.done span:last-child{color:#22c55e}.stage.active span:last-child{color:#3b82f6}.stage-line{background:#d1d5db;width:24px;height:2px;transition:background .3s}.result-summary{background:linear-gradient(135deg,#f0fdf4 0%,#dcfce7 100%);border-radius:12px;justify-content:center;gap:32px;margin-top:16px;padding:20px;display:flex}.result-stat{flex-direction:column;align-items:center;gap:4px;display:flex}.result-value{color:#16a34a;font-size:1.75rem;font-weight:700}.result-label{color:#22c55e;text-transform:uppercase;letter-spacing:.5px;font-size:.75rem;font-weight:600}.upload-error{color:var(--error);background:#ef44441a;border:1px solid #ef444433;border-radius:10px;justify-content:space-between;align-items:center;gap:12px;margin:16px 0 0;padding:14px 18px;font-size:.875rem;display:flex}.retry-btn{background:var(--error);color:#fff;cursor:pointer;border:none;border-radius:6px;padding:6px 14px;font-size:.8125rem;font-weight:500;transition:background .2s}.retry-btn:hover{background:#b91c1c}.upload-area{border:2px dashed var(--border);text-align:center;cursor:pointer;border-radius:12px;padding:40px;transition:all .2s}.upload-area:hover,.upload-area.drag-over{border-color:var(--accent);background:#fafafa}.progress-bar{background:var(--border);border-radius:4px;height:8px;overflow:hidden}.progress-fill{background:var(--accent);height:100%;transition:width .3s}.text-muted{color:var(--muted)}.text-success{color:var(--success)}.text-error{color:var(--error)}.truncate{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.sr-only{clip:rect(0,0,0,0);border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-track{background:0 0}::-webkit-scrollbar-thumb{background:#d4d4d4;border-radius:4px}::-webkit-scrollbar-thumb:hover{background:#a3a3a3}.pdf-page-wrapper{-webkit-user-select:none;user-select:none;position:relative}.pdf-page-wrapper.identify-mode{cursor:crosshair}.pdf-page-wrapper.identify-mode:hover{outline-offset:-2px;outline:2px dashed #2563eb4d}.selection-box{pointer-events:none;z-index:100;background:#2563eb1a;border:2px solid #2563eb;animation:1.5s infinite selection-pulse;position:absolute}@keyframes selection-pulse{0%,to{box-shadow:0 0 #2563eb66}50%{box-shadow:0 0 0 4px #2563eb1a}}.selection-label{color:#fff;white-space:nowrap;background:#2563eb;border-radius:4px;padding:2px 8px;font-size:.6875rem;position:absolute;top:-24px;left:0}.identify-mode-indicator{color:#fff;z-index:100;background:#1e40af;border-radius:20px;padding:8px 16px;font-size:.875rem;font-weight:500;animation:2s infinite pulse-identify;position:absolute;bottom:80px;left:50%;transform:translate(-50%);box-shadow:0 4px 12px #00000026}@keyframes pulse-identify{0%,to{opacity:1}50%{opacity:.8}}.identify-toggle-btn{z-index:50;border:1px solid var(--border);color:var(--foreground);cursor:pointer;background:#fff;border-radius:6px;padding:8px 16px;font-size:.8125rem;font-weight:500;transition:all .15s;position:absolute;top:56px;right:12px;box-shadow:0 2px 4px #0000000d}.identify-toggle-btn:hover{background:#f8fafc;border-color:#94a3b8}.identify-toggle-btn.active{color:#fff;background:#1e40af;border-color:#1e40af}.identify-toggle-btn.active:hover{background:#1e3a8a}.element-info-panel{border:1px solid var(--border);z-index:1000;background:#fff;border-radius:8px;flex-direction:column;width:340px;max-height:calc(100vh - 120px);animation:.2s fade-in;display:flex;position:fixed;top:80px;right:24px;overflow:hidden;box-shadow:0 4px 16px #0000001a}.element-info-header{border-bottom:1px solid var(--border);background:#fafafa;justify-content:space-between;align-items:center;padding:14px 16px;display:flex}.element-info-header h3{color:var(--foreground);margin:0;font-size:.875rem;font-weight:600}.header-actions{align-items:center;gap:8px;display:flex}.confidence-badge{color:var(--muted);border:1px solid var(--border);background:#f1f5f9;border-radius:3px;padding:2px 6px;font-size:.6875rem;font-weight:600}.element-info-header .close-btn{width:24px;height:24px;color:var(--muted);cursor:pointer;background:0 0;border:none;border-radius:4px;justify-content:center;align-items:center;font-size:1.125rem;display:flex}.element-info-header .close-btn:hover{color:var(--foreground);background:#e5e7eb}.element-info-loading{text-align:center;flex-direction:column;align-items:center;gap:12px;padding:32px 16px;display:flex}.element-info-loading .loading-stages{flex-direction:column;gap:2px;display:flex}.element-info-loading p{color:var(--foreground);margin:0;font-size:.875rem;font-weight:500}.element-info-loading .loading-sub{color:var(--muted);font-size:.75rem;font-weight:400}.element-info-content{flex:1;padding:16px;overflow-y:auto}.info-section{margin-bottom:12px}.info-section h4{color:var(--muted);text-transform:uppercase;letter-spacing:.5px;margin-bottom:6px;font-size:.6875rem;font-weight:600}.part-numbers{flex-wrap:wrap;gap:4px;display:flex}.part-number-tag{color:var(--foreground);border:1px solid var(--border);background:#f1f5f9;border-radius:3px;padding:3px 8px;font-family:monospace;font-size:.75rem;font-weight:500}.specs-list,.requirements-list{color:var(--foreground);margin:0;padding-left:16px;font-size:.8125rem}.specs-list li,.requirements-list li{margin-bottom:3px}.requirements-list{background:#fffbeb;border-left:2px solid #f59e0b;border-radius:4px;padding:8px 8px 8px 24px}.explanation-section{margin-bottom:12px}.explanation-section h4{color:var(--muted);text-transform:uppercase;letter-spacing:.5px;margin-bottom:6px;font-size:.6875rem;font-weight:600}.explanation-section .markdown-content{font-size:.8125rem;line-height:1.5}.raw-identification{border-top:1px solid var(--border);margin-top:12px;padding-top:12px}.raw-identification summary{color:var(--muted);cursor:pointer;-webkit-user-select:none;user-select:none;font-size:.6875rem}.raw-identification summary:hover{color:var(--foreground)}.raw-identification p{color:var(--muted);background:#f8f9fa;border-radius:4px;margin-top:8px;padding:8px;font-size:.75rem;line-height:1.4}.citations-section{border-top:1px solid var(--border);margin-top:16px;padding-top:16px}.citation-links{flex-wrap:wrap;gap:8px;display:flex}.citation-link{color:#1e40af;cursor:pointer;background:#f1f5f9;border:1px solid #e2e8f0;border-radius:6px;padding:6px 12px;font-size:.8125rem;transition:all .15s}.citation-link:hover{background:#e0e7ff;border-color:#a5b4fc}.btn-primary{color:#fff!important;background:#1e40af!important;border-color:#1e40af!important}.btn-primary:hover{background:#1e3a8a!important}.knowledge-graph-modal{background:#fff;border:none;border-radius:24px;flex-direction:column;width:95vw;max-width:1400px;height:85vh;display:flex;overflow:hidden;box-shadow:0 0 0 1px #0000000d,0 25px 50px -12px #0003}.graph-modal-header{background:#fff;border-bottom:1px solid #f1f5f9;justify-content:space-between;align-items:center;padding:18px 24px;display:flex}.graph-modal-title{align-items:center;gap:12px;display:flex}.modal-title-icon{color:#3b82f6}.graph-modal-title h2{color:#0f172a;letter-spacing:-.02em;margin:0;font-size:1.125rem;font-weight:700}.graph-stats{color:#64748b;background:#f1f5f9;border-radius:8px;padding:6px 12px;font-family:ui-monospace,monospace;font-size:.75rem;font-weight:500}.graph-modal-actions{align-items:center;gap:12px;display:flex}.reprocess-btn{color:#fff;cursor:pointer;background:linear-gradient(135deg,#3b82f6 0%,#2563eb 100%);border:none;border-radius:10px;align-items:center;gap:6px;padding:8px 14px;font-size:.8125rem;font-weight:600;transition:all .2s;display:flex;box-shadow:0 2px 8px #3b82f64d}.reprocess-btn:hover:not(:disabled){background:linear-gradient(135deg,#60a5fa 0%,#3b82f6 100%);transform:translateY(-1px);box-shadow:0 4px 12px #3b82f666}.reprocess-btn:disabled{opacity:.6;cursor:not-allowed}.spinner-small{border:1.5px solid #ffffff4d;border-top-color:#fff;border-radius:50%;width:12px;height:12px;animation:1s linear infinite spin}.modal-close{color:#9ca3af;cursor:pointer;background:0 0;border:none;border-radius:6px;justify-content:center;align-items:center;width:32px;height:32px;font-size:20px;transition:all .15s;display:flex}.modal-close:hover{color:#374151;background:#f3f4f6}.graph-filter-bar{background:#fafafa;border-bottom:1px solid #e5e7eb;align-items:center;gap:6px;padding:10px 20px;display:flex;overflow-x:auto}.filter-label{color:#6b7280;white-space:nowrap;text-transform:uppercase;letter-spacing:.05em;font-size:.6875rem}.filter-btn{color:#374151;cursor:pointer;white-space:nowrap;text-transform:capitalize;background:#fff;border:1px solid #e5e7eb;border-radius:6px;align-items:center;gap:5px;padding:4px 10px;font-size:.6875rem;transition:all .15s;display:flex}.filter-btn:hover{background:#f9fafb;border-color:#d1d5db}.filter-btn.active{color:#fff;background:#3b82f6;border-color:#3b82f6}.filter-dot{border-radius:50%;width:8px;height:8px}.filter-count{color:#9ca3af;font-family:ui-monospace,monospace;font-size:.625rem}.filter-btn.active .filter-count{color:#fffc}.graph-modal-content{flex:1;display:flex;overflow:hidden}.graph-area{background:#f9fafb;flex:1;min-width:0;position:relative}.graph-loading,.graph-error,.graph-empty{color:#6b7280;text-align:center;flex-direction:column;justify-content:center;align-items:center;padding:24px;display:flex;position:absolute;inset:0}.graph-loading .spinner{border:2px solid #e5e7eb;border-top-color:#3b82f6;border-radius:50%;width:32px;height:32px;animation:1s linear infinite spin}.graph-loading p{color:#6b7280;margin-top:12px;font-size:.8125rem}.graph-error{color:#dc2626}.graph-error p{margin-bottom:12px;font-size:.8125rem}.graph-empty .empty-icon{color:#9ca3af;margin-bottom:12px}.graph-empty h3{color:#374151;margin-bottom:6px;font-size:.9375rem;font-weight:600}.graph-empty p{color:#6b7280;max-width:360px;font-size:.8125rem}.graph-empty .hint{color:#9ca3af;margin-top:8px;font-size:.75rem}.graph-side-panel{background:#fff;border-left:1px solid #e5e7eb;flex-shrink:0;width:280px;overflow-y:auto}.node-details{padding:16px}.node-header{align-items:flex-start;gap:10px;margin-bottom:16px;display:flex}.node-icon{color:#374151;font-size:20px;line-height:1}.node-title-area{flex:1;min-width:0}.node-title-area h3{color:#111827;word-wrap:break-word;margin:0 0 6px;font-size:.875rem;font-weight:600;line-height:1.3}.node-level-badge{color:#fff;text-transform:uppercase;letter-spacing:.02em;border-radius:4px;padding:2px 8px;font-size:.625rem;font-weight:600;display:inline-block}.node-info-grid{flex-direction:column;gap:0;margin-bottom:16px;display:flex}.info-row{border-bottom:1px solid #f3f4f6;justify-content:space-between;align-items:flex-start;padding:8px 0;display:flex}.info-row.full-width{flex-direction:column;gap:4px}.info-label{color:#6b7280;text-transform:uppercase;letter-spacing:.03em;font-size:.6875rem}.info-value{color:#111827;text-align:right;word-break:break-word;font-size:.75rem}.info-row.full-width .info-value{text-align:left}.info-section-title{color:#6b7280;text-transform:uppercase;letter-spacing:.05em;border-bottom:1px solid #e5e7eb;margin-top:12px;padding-bottom:4px;font-size:.625rem;font-weight:600}.connections-section{border-top:1px solid #e5e7eb;margin-top:16px;padding-top:16px}.connections-section h4{color:#374151;text-transform:uppercase;letter-spacing:.03em;margin:0 0 10px;font-size:.6875rem;font-weight:600}.connections-list{flex-direction:column;gap:3px;display:flex}.connection-item{cursor:pointer;background:#f9fafb;border-radius:6px;align-items:center;gap:6px;padding:6px 8px;transition:background .15s;display:flex}.connection-item:hover{background:#f3f4f6}.connection-direction{color:#9ca3af;font-family:ui-monospace,monospace;font-size:.75rem}.connection-type{color:#6b7280;text-transform:uppercase;letter-spacing:.02em;background:#e5e7eb;border-radius:3px;padding:2px 4px;font-size:.5625rem}.connection-name{color:#374151;white-space:nowrap;text-overflow:ellipsis;flex:1;font-size:.75rem;overflow:hidden}.no-selection{text-align:center;padding:20px 16px}.no-selection-icon{color:#9ca3af;margin-bottom:10px}.no-selection h4{color:#374151;margin:0 0 6px;font-size:.8125rem;font-weight:600}.no-selection>p{color:#6b7280;margin-bottom:20px;font-size:.75rem;line-height:1.4}.graph-legend{text-align:left;background:#f9fafb;border:1px solid #e5e7eb;border-radius:6px;margin-top:16px;padding:12px}.graph-legend h4{color:#6b7280;text-transform:uppercase;letter-spacing:.08em;margin:0 0 10px;font-size:.5625rem;font-weight:600}.legend-item{color:#374151;text-transform:capitalize;align-items:center;gap:8px;margin-bottom:6px;font-size:.6875rem;display:flex}.legend-item:last-child{margin-bottom:0}.legend-dot{border-radius:50%;flex-shrink:0;width:10px;height:10px}.legend-line{border-radius:1px;flex-shrink:0;width:20px;height:2px}.legend-line.contains{background:#3b82f680}.legend-line.same-as{background:#22c55e}.legend-line.references{background:#f59e0b}.graph-btn{color:#fff;cursor:pointer;background:#3b82f6;border:none;border-radius:6px;align-items:center;gap:6px;padding:8px 14px;font-size:.8125rem;font-weight:500;transition:all .15s;display:flex}.graph-btn:hover{background:#2563eb}.graph-btn .graph-icon{flex-shrink:0}.stat-card.graph-stat{cursor:pointer;background:#f0f9ff;border:1px solid #bae6fd;transition:all .15s}.stat-card.graph-stat:hover{background:#e0f2fe;border-color:#7dd3fc}.delete-confirm-modal{text-align:center;background:#fff;border-radius:20px;width:100%;max-width:400px;padding:32px;animation:.3s ease-out modal-content-in;box-shadow:0 0 0 1px #0000000d,0 25px 50px -12px #00000040}.delete-confirm-icon{color:#ef4444;background:linear-gradient(135deg,#fef2f2 0%,#fee2e2 100%);border-radius:16px;justify-content:center;align-items:center;width:56px;height:56px;margin:0 auto 20px;display:flex}.delete-confirm-modal h3{color:#0f172a;letter-spacing:-.02em;margin-bottom:12px;font-size:1.25rem;font-weight:700}.delete-confirm-modal p{color:#64748b;margin-bottom:28px;font-size:.9375rem;line-height:1.6}.delete-confirm-actions{justify-content:center;gap:12px;display:flex}.delete-confirm-actions .btn{min-width:100px}.containers-section{margin-bottom:32px}.section-header-row{justify-content:space-between;align-items:center;margin-bottom:24px;display:flex}.section-header-row h2{color:#0f172a;letter-spacing:-.02em;font-size:1.25rem;font-weight:700}.containers-grid{grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:20px;display:grid}.containers-empty{text-align:center;background:#fff;border:1px solid #e2e8f0;border-radius:20px;padding:48px 24px}.container-card{cursor:pointer;background:#fff;border:1px solid #e2e8f0;border-radius:16px;flex-direction:column;padding:0;transition:all .2s;display:flex;overflow:hidden}.container-card:hover{border-color:#cbd5e1;transform:translateY(-2px);box-shadow:0 8px 24px #00000014}.container-card-header{justify-content:space-between;align-items:flex-start;padding:20px 20px 0;display:flex}.container-card-icon{color:#fff;border-radius:12px;justify-content:center;align-items:center;width:48px;height:48px;display:flex;box-shadow:0 4px 12px #00000026}.container-card-actions{opacity:0;gap:4px;transition:opacity .2s;display:flex}.container-card:hover .container-card-actions{opacity:1}.btn-icon-sm{color:#64748b;cursor:pointer;background:0 0;border:none;border-radius:6px;justify-content:center;align-items:center;padding:6px;transition:all .2s;display:flex}.btn-icon-sm:hover{color:#0f172a;background:#f1f5f9}.container-card-body{flex:1;padding:16px 20px}.container-card-title{color:#0f172a;letter-spacing:-.01em;margin-bottom:6px;font-size:1.0625rem;font-weight:600;line-height:1.3}.container-card-desc{color:#64748b;-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:.875rem;line-height:1.5;display:-webkit-box;overflow:hidden}.container-card-footer{background:#fafbfc;border-top:1px solid #f1f5f9;justify-content:space-between;align-items:center;gap:12px;padding:14px 20px;display:flex}.container-card-stats{align-items:center;gap:12px;display:flex}.container-stat{color:#64748b;align-items:center;gap:6px;font-size:.8125rem;display:flex}.container-stat svg{color:#94a3b8}.visibility-badge-sm{color:#94a3b8;align-items:center;display:flex}.container-card-tags{flex-wrap:wrap;justify-content:flex-end;gap:6px;display:flex}.tag-tiny{color:#64748b;background:#f1f5f9;border-radius:4px;padding:2px 8px;font-size:.6875rem;font-weight:500}.tag-more{color:#475569;background:#e2e8f0}.container-card-add{background:0 0;border:2px dashed #e2e8f0;min-height:200px}.container-card-add:hover{box-shadow:none;background:#3b82f605;border-color:#3b82f6;transform:none}.container-add-content{color:#94a3b8;flex-direction:column;justify-content:center;align-items:center;gap:12px;height:100%;min-height:180px;transition:color .2s;display:flex}.container-card-add:hover .container-add-content{color:#3b82f6}.container-add-icon{background:#f1f5f9;border-radius:14px;justify-content:center;align-items:center;width:56px;height:56px;transition:all .2s;display:flex}.container-card-add:hover .container-add-icon{background:#3b82f61a}.container-add-content span{font-size:.9375rem;font-weight:500}.container-detail-header{margin-bottom:24px}.btn-back{color:#64748b;cursor:pointer;background:0 0;border:none;align-items:center;gap:8px;padding:8px 0;font-size:.9375rem;font-weight:500;transition:color .2s;display:inline-flex}.btn-back:hover{color:#0f172a}.btn-back svg{transition:transform .2s}.btn-back:hover svg{transform:translate(-4px)}.container-detail-info{background:#fff;border:1px solid #e2e8f0;border-radius:20px;align-items:flex-start;gap:24px;margin-bottom:32px;padding:28px;display:flex}.container-detail-icon{color:#fff;border-radius:18px;flex-shrink:0;justify-content:center;align-items:center;width:72px;height:72px;display:flex;box-shadow:0 8px 24px #00000026}.container-detail-text{flex:1;min-width:0}.container-detail-text h1{color:#0f172a;letter-spacing:-.02em;margin-bottom:8px;font-size:1.75rem;font-weight:700}.container-detail-desc{color:#64748b;margin-bottom:12px;font-size:1rem;line-height:1.6}.container-detail-meta{flex-wrap:wrap;align-items:center;gap:16px;display:flex}.visibility-badge{color:#64748b;text-transform:capitalize;background:#f1f5f9;border-radius:6px;align-items:center;gap:6px;padding:4px 12px;font-size:.8125rem;font-weight:500;display:inline-flex}.container-tags{flex-wrap:wrap;gap:8px;display:flex}.tag-small{color:#475569;background:#f1f5f9;border-radius:6px;padding:4px 10px;font-size:.8125rem}.container-detail-actions{flex-shrink:0;gap:10px;display:flex}.stats-grid-3{grid-template-columns:repeat(3,1fr)}.container-modal{max-width:620px}.container-modal-icon{color:#64748b;background:#f1f5f9;border:1px solid #e2e8f0;border-radius:14px;justify-content:center;align-items:center;width:56px;height:56px;margin-bottom:16px;display:flex}.form-textarea{resize:vertical;min-height:80px;font-family:inherit}.color-picker{flex-wrap:wrap;gap:8px;display:flex}.color-option{cursor:pointer;border:2px solid #0000;border-radius:8px;width:32px;height:32px;transition:all .2s;position:relative}.color-option:hover{transform:scale(1.1)}.color-option.selected{border-color:#0f172a;box-shadow:0 0 0 2px #fff,0 0 0 4px}.color-option.selected:after{content:"✓";color:#fff;text-shadow:0 1px 2px #0000004d;justify-content:center;align-items:center;font-size:14px;font-weight:700;display:flex;position:absolute;inset:0}.tags-input-wrapper{background:#f8fafc;border:2px solid #e2e8f0;border-radius:12px;padding:8px 12px;transition:all .2s}.tags-input-wrapper:focus-within{background:#fff;border-color:#3b82f6;box-shadow:0 0 0 4px #3b82f61a}.tags-list{flex-wrap:wrap;gap:6px;margin-bottom:8px;display:flex}.tags-list:empty{display:none}.tags-list+.tags-input{margin-top:0}.tag{color:#475569;background:#e2e8f0;border-radius:6px;align-items:center;gap:4px;padding:4px 10px;font-size:.8125rem;display:inline-flex}.tag button{color:#94a3b8;cursor:pointer;background:0 0;border:none;margin-left:2px;padding:0;font-size:1rem;line-height:1}.tag button:hover{color:#ef4444}.tags-input{color:#0f172a;background:0 0;border:none;outline:none;width:100%;padding:4px 0;font-size:.9375rem}.tags-input::placeholder{color:#94a3b8}.form-divider{align-items:center;gap:16px;margin:28px 0 20px;display:flex}.form-divider:before,.form-divider:after{content:"";background:#e2e8f0;flex:1;height:1px}.form-divider span{text-transform:uppercase;letter-spacing:.08em;color:#94a3b8;font-size:.75rem;font-weight:600}.visibility-options{flex-direction:column;gap:10px;display:flex}.visibility-option{cursor:pointer;background:#fff;border:2px solid #e2e8f0;border-radius:12px;align-items:center;gap:14px;padding:14px 16px;transition:all .2s;display:flex}.visibility-option:hover{background:#fafbfc;border-color:#cbd5e1}.visibility-option.selected{background:#3b82f60a;border-color:#3b82f6}.visibility-option input{display:none}.visibility-icon{color:#64748b;background:#f1f5f9;border-radius:10px;flex-shrink:0;justify-content:center;align-items:center;width:40px;height:40px;display:flex}.visibility-option.selected .visibility-icon{color:#3b82f6;background:#3b82f61a}.visibility-text{flex-direction:column;gap:2px;display:flex}.visibility-title{color:#0f172a;font-size:.9375rem;font-weight:600}.visibility-desc{color:#64748b;font-size:.8125rem}.governance-notice{background:linear-gradient(135deg,#f0fdf4 0%,#ecfdf5 100%);border:1px solid #bbf7d0;border-radius:12px;padding:16px}.governance-badge{color:#fff;text-transform:uppercase;letter-spacing:.05em;background:#22c55e;border-radius:6px;align-items:center;gap:6px;margin-bottom:10px;padding:4px 10px;font-size:.6875rem;font-weight:700;display:inline-flex}.governance-notice p{color:#166534;margin:0;font-size:.875rem;line-height:1.6}.modal-actions{border-top:1px solid #f1f5f9;justify-content:flex-end;gap:12px;margin-top:28px;padding-top:20px;display:flex}.form-error-banner{color:#dc2626;background:#fef2f2;border:1px solid #fecaca;border-radius:10px;align-items:center;gap:10px;margin-bottom:20px;padding:12px 16px;font-size:.875rem;display:flex}.spinner-sm{border:2px solid #ffffff4d;border-top-color:#fff;border-radius:50%;width:16px;height:16px;animation:.8s linear infinite spin}
