:root{--brand-primary: #4f46e5;--brand-primary-hover: #4338ca;--brand-primary-soft: #eef2ff;--brand-secondary: #0ea5e9;--brand-accent: #a855f7;--slate-50: #f8fafc;--slate-100: #f1f5f9;--slate-200: #e2e8f0;--slate-300: #cbd5e1;--slate-400: #94a3b8;--slate-500: #64748b;--slate-600: #475569;--slate-700: #334155;--slate-800: #1e293b;--slate-900: #0f172a;--bg-main: var(--slate-50);--bg-card: #ffffff;--bg-subtle: var(--slate-50);--text-main: var(--slate-900);--text-muted: var(--slate-600);--text-light: var(--slate-400);--score-high: #059669;--score-high-bg: #ecfdf5;--score-med: #d97706;--score-med-bg: #fffbeb;--score-low: #dc2626;--score-low-bg: #fef2f2;--border-light: var(--slate-200);--border-focus: var(--brand-primary);--shadow-xs: 0 1px 2px 0 rgb(15 23 42 / .04);--shadow-sm: 0 1px 3px 0 rgb(15 23 42 / .06), 0 1px 2px -1px rgb(15 23 42 / .04);--shadow-md: 0 4px 12px -2px rgb(15 23 42 / .08), 0 2px 4px -2px rgb(15 23 42 / .04);--shadow-lg: 0 12px 28px -8px rgb(15 23 42 / .12), 0 4px 12px -4px rgb(15 23 42 / .06);--shadow-accent: 0 8px 20px -6px rgba(79, 70, 229, .35);--shadow-premium: 0 4px 16px -4px rgb(15 23 42 / .1), 0 1px 4px -1px rgb(15 23 42 / .06);--shadow-subtle: 0 1px 4px 0 rgb(15 23 42 / .05);--radius-xs: 6px;--radius-sm: 10px;--radius-md: 14px;--radius-lg: 20px;--radius-xl: 28px;--space-1: 4px;--space-2: 8px;--space-3: 12px;--space-4: 16px;--space-5: 20px;--space-6: 24px;--space-8: 32px;--space-10: 40px;--space-12: 48px;--space-16: 64px;--fs-xs: .75rem;--fs-sm: .875rem;--fs-base:.9375rem;--fs-md: 1rem;--fs-lg: 1.125rem;--fs-xl: 1.25rem;--fs-2xl: 1.5rem;--fs-3xl: 1.875rem;--fs-4xl: 2.25rem;--fs-5xl: 3rem}*{box-sizing:border-box;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}body{margin:0;font-family:Outfit,Inter,system-ui,-apple-system,sans-serif;background-color:var(--bg-main);background-image:radial-gradient(at 0% 0%,rgba(79,70,229,.05) 0px,transparent 50%),radial-gradient(at 100% 0%,rgba(14,165,233,.05) 0px,transparent 50%);background-attachment:fixed;color:var(--text-main);line-height:1.5}.container{max-width:1100px;margin:0 auto;padding:3rem 1.5rem}.glass-panel{background:var(--bg-card);border:1px solid var(--border-light);border-radius:var(--radius-xl);box-shadow:var(--shadow-md);padding:var(--space-8);transition:box-shadow .2s ease}h1,h2,h3{font-weight:800;letter-spacing:-.02em}.hero-input-wrapper{position:relative;transition:transform .2s ease}.hero-input{width:100%;padding:1.25rem 1.25rem 1.25rem 3.5rem;font-size:1.125rem;font-weight:500;border-radius:var(--radius-md);border:2px solid var(--border-light);background:#fff;box-shadow:var(--shadow-subtle);transition:all .3s cubic-bezier(.4,0,.2,1)}.hero-input:focus{outline:none;border-color:var(--brand-primary);box-shadow:0 0 0 4px #4f46e51a;transform:translateY(-2px)}.input{background:#fff;border:1px solid var(--border-light);padding:.75rem .875rem .75rem 2.75rem;border-radius:var(--radius-md);width:100%;font-size:var(--fs-base);font-weight:500;color:var(--text-main);transition:border-color .15s ease,box-shadow .15s ease}.input::placeholder{color:var(--slate-400)}.input:hover:not(:focus){border-color:var(--slate-300)}.input:focus{outline:none;border-color:var(--brand-primary);box-shadow:0 0 0 4px #4f46e51f}.input-wrapper{position:relative}.input-icon{position:absolute;left:1rem;top:50%;transform:translateY(-50%);color:var(--brand-primary);opacity:.8}.btn{background:var(--brand-primary);color:#fff;border:1px solid var(--brand-primary);padding:.75rem 1.5rem;border-radius:var(--radius-md);font-weight:600;font-size:var(--fs-md);font-family:inherit;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:.5rem;transition:background .15s ease,box-shadow .15s ease,transform .15s ease;box-shadow:var(--shadow-accent)}.btn:hover:not(:disabled){background:var(--brand-primary-hover);border-color:var(--brand-primary-hover);transform:translateY(-1px)}.btn:focus-visible{outline:none;box-shadow:0 0 0 4px #4f46e533}.btn:disabled{opacity:.6;cursor:not-allowed}.btn-secondary{background:var(--bg-card);color:var(--text-main);border:1px solid var(--border-light);box-shadow:var(--shadow-xs)}.btn-secondary:hover:not(:disabled){background:var(--slate-50);border-color:var(--slate-300)}.btn-ghost{background:transparent;color:var(--text-muted);border:1px solid transparent;box-shadow:none;padding:.5rem .875rem;font-weight:500;font-size:var(--fs-sm)}.btn-ghost:hover:not(:disabled){background:var(--slate-100);color:var(--text-main);border-color:transparent;transform:none}.icon-btn{width:36px;height:36px;border-radius:var(--radius-sm);background:transparent;border:1px solid transparent;color:var(--text-muted);display:inline-flex;align-items:center;justify-content:center;cursor:pointer;transition:background .15s ease,color .15s ease,border-color .15s ease}.icon-btn:hover{background:var(--slate-100);color:var(--text-main)}.icon-btn.is-active{background:var(--brand-primary-soft);color:var(--brand-primary)}.badge{display:inline-flex;align-items:center;gap:.375rem;padding:.25rem .625rem;border-radius:999px;font-size:var(--fs-xs);font-weight:600;letter-spacing:.01em;border:1px solid transparent}.badge-success{background:#ecfdf5;color:#047857;border-color:#d1fae5}.badge-error{background:#fef2f2;color:#b91c1c;border-color:#fecaca}.badge-info{background:#eff6ff;color:#1d4ed8;border-color:#dbeafe}.badge-neutral{background:var(--slate-100);color:var(--slate-700);border-color:var(--slate-200)}.badge-dot{width:6px;height:6px;border-radius:999px;background:currentColor;display:inline-block}.grid{display:grid;gap:1.5rem}.card{background:var(--bg-card);border-radius:var(--radius-lg);padding:var(--space-5);border:1px solid var(--border-light);box-shadow:var(--shadow-xs);transition:border-color .15s ease,box-shadow .15s ease,transform .15s ease;position:relative}.card:hover{border-color:var(--slate-300);box-shadow:var(--shadow-sm)}.stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:1.25rem;margin-bottom:2.5rem}.stat-card{background:#fff;border-radius:var(--radius-md);padding:1.5rem;border:1px solid var(--border-light);box-shadow:var(--shadow-premium);display:flex;flex-direction:column;gap:.75rem}.stat-icon{background:#4f46e514;color:var(--brand-primary);padding:.875rem;border-radius:var(--radius-sm);width:fit-content;display:flex}.progress-bar-bg{width:100%;height:8px;background:#f1f5f9;border-radius:4px;overflow:hidden}.progress-bar-fill{height:100%;background:linear-gradient(90deg,var(--brand-primary),var(--brand-secondary));transition:width 1s ease-in-out}.animate-spin{animation:spin 1s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes pulse{0%,to{opacity:1;transform:scale(1)}50%{opacity:.6;transform:scale(.95)}}.pill-btn{padding:.5rem 1rem;border-radius:100px;border:1px solid var(--border-light);background:#fff;font-size:.875rem;font-weight:600;display:flex;align-items:center;gap:.5rem;transition:all .2s ease;cursor:pointer}.pill-btn:hover{background:#f8fafc;transform:translateY(-1px);box-shadow:var(--shadow-subtle)}@media(max-width:1024px){.container{padding:2rem 1rem}.stats-summary-bar{padding:1rem 1.25rem!important}}@media(max-width:768px){:root{--radius-lg: 16px;--radius-md: 12px}.state-panel{grid-template-columns:1fr;text-align:center}.state-panel__visual{margin:0 auto}.state-panel__steps{text-align:left}.glass-panel{padding:1.25rem}header h1{font-size:2.25rem!important}form>div{grid-template-columns:1fr!important;gap:1.25rem!important}.hero-input{font-size:1rem;padding:1.125rem 1.125rem 1.125rem 3rem}.export-actions{width:100%;gap:.5rem!important}.pill-btn{flex:1;min-width:120px;justify-content:center;font-size:.8rem}.card{padding:1rem!important;gap:.75rem!important}.stat-card{padding:1.25rem}.btn{width:100%}.ticker-text{font-size:.75rem}.ticker-dot{margin:0 .85rem}.ticker-content{padding-right:1rem}}@media(max-width:480px){header h1{font-size:1.85rem!important}.stats-grid{grid-template-columns:1fr}.export-actions>div:last-child{width:100%;justify-content:stretch}.export-actions>div:last-child>button{flex:1}}.ticker-wrapper{width:100%;background:var(--slate-900);color:var(--slate-300);padding:.4rem 0;overflow:hidden;border-bottom:1px solid rgba(255,255,255,.06);position:relative;z-index:50}.ticker-container{width:100%;overflow:hidden;display:flex}.ticker-track{display:flex;white-space:nowrap;width:fit-content}.ticker-content{display:flex;align-items:center;padding-right:2rem}.ticker-item{display:flex;align-items:center;gap:.5rem}.ticker-text{font-size:.85rem;font-weight:500;letter-spacing:.02em}.ticker-text.bold{font-weight:700}.ticker-text.highlight-text{color:#fbbf24;font-weight:800}.ticker-icon{opacity:.8}.ticker-icon.highlight{color:#fbbf24;opacity:1}.ticker-dot{margin:0 1.5rem;opacity:.5;font-size:.8rem}.state-panel{margin-top:1.75rem;padding:1.5rem 1.5rem 1.5rem 1.25rem;border-radius:var(--radius-md);display:grid;grid-template-columns:auto 1fr;gap:1.25rem;align-items:flex-start;border:1px solid var(--border-light);box-shadow:var(--shadow-premium)}.state-panel--error{background:linear-gradient(135deg,#fef2f2,#fff 55%);border-color:#fecaca}.state-panel--offline{background:linear-gradient(135deg,#f1f5f9,#fff,#eef2ff);border-color:#c7d2fe}.state-panel__visual{width:3.5rem;height:3.5rem;border-radius:var(--radius-sm);display:flex;align-items:center;justify-content:center;flex-shrink:0}.state-panel--error .state-panel__visual{background:var(--score-low-bg);color:var(--score-low)}.state-panel--offline .state-panel__visual{background:#4f46e51f;color:var(--brand-primary)}.state-panel__title{margin:0 0 .35rem;font-size:1.05rem;font-weight:800;color:var(--text-main);letter-spacing:-.02em}.state-panel__message{margin:0;font-size:.9rem;font-weight:600;color:var(--text-muted);line-height:1.5}.state-panel__steps{margin:1rem 0 0;padding-left:1.1rem;font-size:.85rem;font-weight:600;color:var(--text-muted);line-height:1.65}.state-panel__steps li{margin-bottom:.5rem}.code-chip{font-family:ui-monospace,Cascadia Code,Consolas,monospace;font-size:.8rem;font-weight:700;background:#f1f5f9;color:#4338ca;padding:.15rem .45rem;border-radius:6px;border:1px solid #e2e8f0}.state-panel__api-hint{margin-top:.85rem;font-size:.78rem;font-weight:600;color:var(--text-light)}.empty-results{text-align:center;padding:3rem 2rem;border-radius:var(--radius-md);border:2px dashed var(--border-light);background:linear-gradient(180deg,#fafafa,#fff);box-shadow:var(--shadow-subtle)}.empty-results__icon{width:4rem;height:4rem;margin:0 auto 1.25rem;border-radius:50%;background:#4f46e514;color:var(--brand-primary);display:flex;align-items:center;justify-content:center}.empty-results h3{margin:0 0 .5rem;font-size:1.2rem;color:var(--text-main)}.empty-results p{margin:0 auto;max-width:28rem;font-size:.95rem;font-weight:600;color:var(--text-muted);line-height:1.55}.pill-btn:disabled{opacity:.45;cursor:not-allowed;transform:none;box-shadow:none}.pill-btn:disabled:hover{background:#fff;transform:none}.ai-query-btn{display:flex;align-items:center;justify-content:space-between;text-align:left;padding:1.125rem 1.25rem;border-radius:12px;border:1.5px solid var(--border-light);background:#fff;cursor:pointer;font-family:inherit;font-size:.95rem;font-weight:600;color:var(--text-main);box-shadow:var(--shadow-subtle);transition:all .2s cubic-bezier(.4,0,.2,1);line-height:1.5;width:100%}.ai-query-btn:hover{border-color:#c4b5fd;background-color:#faf5ff;transform:translateY(-2px);box-shadow:0 6px 12px -2px #7c3aed14}.ai-query-btn.selected{border:2px solid var(--brand-primary);background-color:#eef2ff;color:var(--brand-primary-hover)}.landing-nav{position:fixed;top:0;left:0;right:0;height:72px;background:#fffc;backdrop-filter:blur(12px);border-bottom:1px solid rgba(0,0,0,.05);display:flex;align-items:center;justify-content:space-between;padding:0 4rem;z-index:1000}.nav-links{display:flex;gap:2rem;align-items:center}.nav-links-center{position:absolute;left:50%;transform:translate(-50%);gap:3rem}.nav-links-auth{margin-left:auto}.nav-link{color:var(--slate-600);text-decoration:none;font-size:.9rem;font-weight:600;transition:color .2s}.nav-link:hover{color:var(--brand-primary)}.hero-badge{display:inline-flex;align-items:center;gap:8px;padding:8px 16px;background:#f5f3ff;color:#7c3aed;border-radius:99px;font-size:.8rem;font-weight:700;margin-bottom:1.5rem;box-shadow:0 2px 4px #7c3aed0d}.feature-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1.5rem;margin-top:4rem;width:100%;max-width:1200px}.feature-item{background:#fff;padding:1.5rem;border-radius:20px;border:1px solid rgba(0,0,0,.04);display:flex;align-items:center;gap:1rem;text-align:left;transition:transform .3s ease}.feature-item:hover{transform:translateY(-5px);box-shadow:var(--shadow-lg)}.feature-icon-wrapper{width:48px;height:48px;border-radius:12px;display:flex;align-items:center;justify-content:center;flex-shrink:0}.mock-results-card{background:#fff;border-radius:24px;border:1px solid rgba(0,0,0,.06);box-shadow:var(--shadow-lg);margin-top:3rem;overflow:hidden;width:100%;max-width:1200px;text-align:left}.brand-bar{display:flex;justify-content:center;align-items:center;gap:4rem;margin-top:4rem;opacity:.6;filter:grayscale(1)}.brand-logo{height:24px;font-weight:800;color:var(--slate-800);display:flex;align-items:center;gap:8px}@media(max-width:1024px){.feature-grid{grid-template-columns:repeat(2,1fr)}.landing-nav{padding:0 1.5rem}.nav-links-center{display:none}}@media(max-width:640px){.landing-nav{height:auto;min-height:64px;padding:.5rem .75rem;gap:.5rem}.nav-links-auth{gap:.25rem}.nav-links-auth button{padding:8px 10px!important;font-size:.78rem!important}.nav-links-auth>button:first-child{padding:8px!important}.feature-grid{grid-template-columns:1fr}.brand-bar{gap:2rem;flex-wrap:wrap}}.history-item-card{transition:all .3s cubic-bezier(.4,0,.2,1)!important;position:relative}.history-item-card:hover{border-color:var(--brand-primary)!important;box-shadow:0 10px 15px -3px #6366f11a,0 4px 6px -4px #6366f11a!important}.history-item-card:active{transform:scale(.98)!important}.history-item-card:hover .delete-history-btn,.history-item-card-dark:hover .delete-btn-dark{opacity:1!important}aside div::-webkit-scrollbar{width:5px}aside div::-webkit-scrollbar-track{background:transparent}aside div::-webkit-scrollbar-thumb{background:#e2e8f0;border-radius:10px}aside div::-webkit-scrollbar-thumb:hover{background:#cbd5e1}.writer-cite{display:inline-flex;align-items:center;background:#4f46e51a;color:#4f46e5;border:1px solid rgba(99,102,241,.25);border-radius:4px;padding:0 5px;font-size:.78rem;font-weight:800;font-family:ui-monospace,Cascadia Code,monospace;vertical-align:super;font-size:.7em;line-height:1;cursor:default;transition:background .15s ease}.writer-cite:hover{background:#4f46e52e}.writer-output .writer-p{margin:0 0 .875rem;line-height:1.75}.writer-output .writer-h2{margin:1.75rem 0 .875rem;font-size:1.1rem;font-weight:800;color:#0f172a;letter-spacing:-.02em;padding-bottom:.5rem;border-bottom:2px solid rgba(79,70,229,.15)}.writer-output .writer-h3{margin:1.25rem 0 .625rem;font-size:.975rem;font-weight:700;color:#1e293b;letter-spacing:-.01em}.writer-output-scroll::-webkit-scrollbar{width:5px}.writer-output-scroll::-webkit-scrollbar-track{background:transparent}.writer-output-scroll::-webkit-scrollbar-thumb{background:#e2e8f0;border-radius:10px}.writer-float-btn{position:fixed;bottom:2rem;right:2rem;z-index:8999;display:flex;align-items:center;gap:.6rem;padding:.875rem 1.375rem;background:linear-gradient(135deg,#4f46e5,#7c3aed);color:#fff;border:none;border-radius:999px;font-family:inherit;font-weight:700;font-size:.875rem;cursor:pointer;box-shadow:0 8px 24px -6px #4f46e580,0 2px 8px -2px #4f46e54d;transition:right .4s cubic-bezier(.4,0,.2,1),transform .25s cubic-bezier(.4,0,.2,1),box-shadow .25s ease;letter-spacing:-.01em}.writer-float-btn:hover{transform:translateY(-3px) scale(1.02);box-shadow:0 12px 32px -6px #4f46e58c,0 4px 12px -2px #4f46e559}.writer-float-btn:active{transform:translateY(-1px) scale(.99)}@keyframes pulse{0%,to{opacity:1;transform:scale(1)}50%{opacity:.5;transform:scale(.85)}}.writer-shell{position:fixed;inset:0 0 0 auto;z-index:9000;height:100vh;max-width:100vw;display:flex;flex-direction:column;overflow:hidden;background:#f8fafc;border-left:1px solid rgba(148,163,184,.28);box-shadow:-12px 0 34px -18px #0f172a52}.writer-topbar{height:60px;min-height:60px;display:grid;grid-template-columns:minmax(220px,1fr) auto minmax(220px,1fr);align-items:center;gap:16px;padding:0 18px;background:linear-gradient(135deg,#3730a3,#4f46e5 55%,#2563eb);color:#fff;border-bottom:1px solid rgba(255,255,255,.16)}.writer-title,.writer-mode-title,.writer-window-actions,.writer-toolbar-actions,.writer-card-title,.writer-stage-title,.writer-stage-meta,.writer-toggle-row{display:flex;align-items:center}.writer-title{gap:10px;min-width:0}.writer-title>span{width:34px;height:34px;display:grid;place-items:center;border-radius:8px;background:#ffffff29}.writer-title strong,.writer-title small,.writer-mode-title span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.writer-title strong{font-size:.96rem;font-weight:800}.writer-title small{margin-top:1px;color:#ffffffb8;font-size:.72rem;font-weight:700}.writer-mode-title{justify-self:center;gap:8px;min-width:0;padding:7px 12px;border-radius:8px;background:#0f172a2e;color:#ffffffdb;font-size:.78rem;font-weight:800}.writer-window-actions{justify-self:end;gap:6px;padding:3px;border-radius:8px;background:#0f172a29}.writer-window-actions button,.writer-mobile-icon,.writer-report-header button,.writer-drawer-head button{width:30px;height:30px;display:grid;place-items:center;border:0;border-radius:7px;background:transparent;color:inherit;cursor:pointer}.writer-window-actions button.active,.writer-window-actions button:hover,.writer-mobile-icon:hover,.writer-report-header button:hover,.writer-drawer-head button:hover{background:#ffffff2e}.writer-mobile-icon{display:none}.writer-workspace{flex:1;min-height:0;display:grid;grid-template-columns:320px minmax(0,1fr) 360px;overflow:hidden}.writer-workspace--no-report{grid-template-columns:320px minmax(0,1fr)}.writer-shell--half .writer-workspace{grid-template-columns:300px minmax(0,1fr)}.writer-shell--default .writer-workspace{display:flex;flex-direction:column}.writer-settings-panel,.writer-report-panel,.writer-editor-panel{min-height:0;background:#fff}.writer-settings-panel{display:flex;flex-direction:column;border-right:1px solid #e2e8f0}.writer-panel-scroll,.writer-report-panel{overflow-y:auto}.writer-panel-scroll{flex:1;min-height:0;padding:14px}.writer-shell--default .writer-settings-panel{max-height:44vh;border-right:0;border-bottom:1px solid #e2e8f0}.writer-card{border:1px solid #e2e8f0;border-radius:8px;background:#fff;padding:12px;box-shadow:0 1px 3px #0f172a0a}.writer-card+.writer-card{margin-top:12px}.writer-card-title{gap:8px;color:#0f172a;font-size:.82rem;font-weight:800}.writer-card-title span{margin-left:auto;min-width:24px;height:22px;display:grid;place-items:center;border-radius:999px;background:#eef2ff;color:#4f46e5;font-size:.72rem}.writer-source-list{margin-top:10px;display:grid;gap:7px}.writer-source-row{display:grid;grid-template-columns:22px minmax(0,1fr);align-items:center;gap:8px}.writer-source-row span{width:22px;height:22px;display:grid;place-items:center;border-radius:6px;background:#f1f5f9;color:#64748b;font-size:.72rem;font-weight:800}.writer-source-row p,.writer-muted,.writer-stage-clean{margin:0;color:#64748b;font-size:.78rem;line-height:1.45}.writer-source-row p{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:#334155;font-weight:650}.writer-more-sources,.writer-char-count,.writer-last-run{color:#64748b;font-size:.72rem;font-weight:700}.writer-more-sources{margin-top:8px;color:#4f46e5}.writer-label{display:block;margin:12px 0 6px;color:#475569;font-size:.72rem;font-weight:800;text-transform:uppercase}.writer-type-picker{position:relative}.writer-select-button,.writer-field,.writer-prompt{width:100%;border:1px solid #dbe3ef;border-radius:8px;background:#fff;color:#0f172a;font-family:inherit;font-size:.86rem;outline:none}.writer-select-button{min-height:42px;display:flex;align-items:center;justify-content:space-between;padding:0 12px;cursor:pointer;font-weight:800}.writer-select-button span,.writer-segment button,.writer-toolbar-actions button,.writer-primary-action,.writer-stop-action{display:inline-flex;align-items:center}.writer-select-button span{gap:8px;min-width:0}.writer-type-menu{position:absolute;z-index:20;inset:calc(100% + 6px) 0 auto 0;max-height:310px;overflow-y:auto;padding:6px;border:1px solid #dbe3ef;border-radius:8px;background:#fff;box-shadow:0 16px 30px -16px #0f172a52}.writer-type-menu button{width:100%;display:grid;grid-template-columns:18px minmax(0,1fr);gap:10px;align-items:center;border:0;border-radius:7px;background:transparent;padding:9px;color:#475569;cursor:pointer;text-align:left}.writer-type-menu button.active,.writer-type-menu button:hover{background:#eef2ff;color:#4338ca}.writer-type-menu strong,.writer-type-menu small{display:block}.writer-type-menu strong{font-size:.82rem}.writer-type-menu small{margin-top:2px;color:#64748b;font-size:.7rem}.writer-two-col{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}.writer-field{height:40px;padding:0 10px;font-weight:750}.writer-segment{height:40px;display:grid;grid-template-columns:1fr 1fr;padding:3px;border:1px solid #dbe3ef;border-radius:8px;background:#f8fafc}.writer-segment button{justify-content:center;gap:5px;border:0;border-radius:6px;background:transparent;color:#64748b;font-family:inherit;font-size:.78rem;font-weight:850;cursor:pointer}.writer-segment button.active{background:#fff;color:#4f46e5;box-shadow:0 1px 2px #0f172a14}.writer-prompt{min-height:128px;resize:vertical;padding:12px;line-height:1.55}.writer-char-count{margin-top:6px;text-align:right}.writer-toggles-card{display:grid;gap:8px}.writer-toggle-row{justify-content:space-between;gap:10px;color:#475569;font-size:.78rem;font-weight:750}.writer-toggle-row span{display:inline-flex;align-items:center;gap:7px;min-width:0}.writer-toggle-row strong{color:#059669;font-size:.72rem;text-transform:uppercase}.writer-action-dock{position:sticky;bottom:0;display:grid;gap:8px;padding:12px 14px;border-top:1px solid #e2e8f0;background:#fffffff0;backdrop-filter:blur(12px)}.writer-inline-warning{display:flex;align-items:center;gap:7px;color:#9a3412;background:#fff7ed;border:1px solid #fed7aa;border-radius:8px;padding:8px 10px;font-size:.76rem;font-weight:800}.writer-primary-action,.writer-stop-action{width:100%;justify-content:center;gap:9px;min-height:44px;border:0;border-radius:8px;color:#fff;font-family:inherit;font-size:.9rem;font-weight:850;cursor:pointer}.writer-primary-action{background:linear-gradient(135deg,#2563eb,#4f46e5);box-shadow:0 10px 18px -12px #2563ebb3}.writer-primary-action:disabled{background:#e2e8f0;color:#94a3b8;cursor:not-allowed;box-shadow:none}.writer-stop-action{background:#dc2626}.writer-editor-panel{min-width:0;display:flex;flex-direction:column;background:#f8fafc}.writer-editor-toolbar{min-height:58px;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:10px 16px;border-bottom:1px solid #e2e8f0;background:#fffffff0;backdrop-filter:blur(12px)}.writer-editor-meta{min-width:0}.writer-editor-meta strong,.writer-editor-meta span{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.writer-editor-meta strong{color:#0f172a;font-size:.9rem}.writer-editor-meta span{margin-top:2px;color:#64748b;font-size:.74rem;font-weight:700}.writer-toolbar-actions{gap:6px;justify-content:flex-end;flex-wrap:wrap}.writer-toolbar-actions button{gap:6px;min-height:34px;border:1px solid #dbe3ef;border-radius:7px;background:#fff;color:#475569;padding:0 9px;font-family:inherit;font-size:.76rem;font-weight:800;cursor:pointer}.writer-toolbar-actions button:disabled{color:#cbd5e1;cursor:not-allowed}.writer-toolbar-actions button:not(:disabled):hover{border-color:#bfdbfe;color:#2563eb}.writer-error{display:flex;align-items:center;gap:8px;margin:10px 16px 0;padding:10px 12px;border:1px solid #fed7aa;border-radius:8px;background:#fff7ed;color:#9a3412;font-size:.82rem;font-weight:800}.writer-editor-scroll{flex:1;min-height:0;overflow-y:auto;padding:28px 24px 36px}.writer-document{width:min(900px,100%);margin:0 auto;padding:28px 34px;border:1px solid #e2e8f0;border-radius:8px;background:#fff;box-shadow:0 18px 34px -28px #0f172a6b}.writer-output{color:#0f172a;font-size:1.02rem;line-height:1.7}.writer-writing-badge{width:fit-content;display:flex;align-items:center;gap:7px;margin-bottom:16px;padding:6px 10px;border-radius:999px;background:#eef2ff;color:#4338ca;font-size:.74rem;font-weight:850}.writer-writing-badge span{width:8px;height:8px;border-radius:50%;background:#4f46e5;animation:pulse 1.5s ease-in-out infinite}.writer-loading-state,.writer-empty-editor,.writer-report-empty{min-height:360px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;text-align:center;color:#94a3b8}.writer-loading-state{position:relative}.writer-loading-state>svg:first-child{color:#2563eb}.writer-loading-state strong,.writer-empty-editor strong,.writer-report-empty strong{color:#334155;font-size:.98rem}.writer-loading-state span,.writer-empty-editor span,.writer-report-empty span{max-width:320px;color:#64748b;font-size:.84rem;line-height:1.5}.writer-spinner{position:absolute;color:#2563eb2e;animation:spin 1.4s linear infinite}.writer-report-panel{min-width:0;padding:14px;border-left:1px solid #e2e8f0}.writer-report-panel--compact{border-left:0;border-top:1px solid #e2e8f0}.writer-report-header{display:flex;justify-content:space-between;gap:10px;margin-bottom:12px}.writer-report-header p,.writer-report-header h3{margin:0}.writer-report-header p{color:#64748b;font-size:.72rem;font-weight:850;text-transform:uppercase}.writer-report-header h3{margin-top:3px;color:#0f172a;font-size:1rem}.writer-report-header button{color:#64748b}.writer-report-empty{min-height:260px;padding:20px;border:1px dashed #cbd5e1;border-radius:8px;background:#f8fafc}.writer-report-summary{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:12px}.writer-report-summary>div,.writer-request-id,.writer-stage-card{border:1px solid #e2e8f0;border-radius:8px;background:#fff}.writer-report-summary>div{min-width:0;padding:10px}.writer-report-summary span,.writer-request-id span{display:block;margin-bottom:4px;color:#64748b;font-size:.68rem;font-weight:850;text-transform:uppercase}.writer-report-summary strong{color:#0f172a;font-size:.86rem}.writer-status,.writer-severity{display:inline-flex;align-items:center;width:fit-content;border-radius:999px;padding:2px 7px;font-size:.68rem!important;font-weight:900}.writer-status--ok,.writer-severity--low{background:#ecfdf5;color:#047857!important}.writer-status--warn,.writer-severity--medium{background:#fffbeb;color:#b45309!important}.writer-status--failed,.writer-severity--high{background:#fef2f2;color:#b91c1c!important}.writer-request-id{padding:10px;margin-bottom:12px}.writer-request-id code{display:block;overflow:hidden;color:#334155;font-size:.72rem;text-overflow:ellipsis;white-space:nowrap}.writer-stage-list{display:grid;gap:10px}.writer-stage-card{padding:12px}.writer-stage-title{justify-content:space-between;gap:10px}.writer-stage-title strong{color:#0f172a;font-size:.84rem}.writer-stage-meta{gap:8px;margin:8px 0 0;color:#64748b;font-size:.72rem;font-weight:800}.writer-finding-list{display:grid;gap:8px;margin-top:10px}.writer-finding{border-radius:8px;padding:9px;border:1px solid #e2e8f0;background:#f8fafc}.writer-finding--medium{border-color:#fde68a;background:#fffbeb}.writer-finding--high{border-color:#fecaca;background:#fef2f2}.writer-finding strong{color:#334155;font-size:.7rem}.writer-finding p{margin:4px 0 0;color:#475569;font-size:.76rem;line-height:1.45}.writer-inline-report{max-height:36vh;overflow-y:auto;border-top:1px solid #e2e8f0;background:#fff}.writer-mobile-overlay{position:fixed;inset:0;z-index:9010;background:#0f172a6b}.writer-mobile-drawer{width:min(340px,90vw);height:100%;background:#fff;box-shadow:18px 0 34px -26px #0f172a99}.writer-drawer-head{height:56px;display:flex;align-items:center;justify-content:space-between;padding:0 14px;border-bottom:1px solid #e2e8f0}.writer-drawer-head button{color:#475569}.writer-bottom-sheet{position:absolute;left:0;right:0;bottom:0;max-height:82vh;overflow-y:auto;border-radius:14px 14px 0 0;background:#fff}.writer-sheet-close{width:calc(100% - 28px);margin:0 14px 14px;min-height:42px;border:0;border-radius:8px;background:#0f172a;color:#fff;font-family:inherit;font-weight:850}@media(max-width:1180px){.writer-shell--full .writer-workspace{grid-template-columns:300px minmax(0,1fr)}.writer-shell--full .writer-report-panel:not(.writer-report-panel--compact){display:none}}@media(max-width:768px){.writer-topbar{grid-template-columns:minmax(0,1fr) auto;height:56px;min-height:56px;padding:0 10px}.writer-mobile-icon{display:grid}.writer-mode-title{display:none}.writer-window-actions{gap:2px}.writer-window-actions button:not(:last-child){display:none}.writer-workspace,.writer-workspace--no-report,.writer-shell--half .writer-workspace,.writer-shell--full .writer-workspace,.writer-shell--default .writer-workspace{display:grid;grid-template-columns:minmax(0,1fr)}.writer-workspace>.writer-settings-panel,.writer-workspace>.writer-report-panel{display:none}.writer-editor-toolbar{align-items:flex-start;flex-direction:column;gap:10px}.writer-toolbar-actions{width:100%;justify-content:flex-start}.writer-toolbar-actions button span{display:none}.writer-editor-scroll{padding:18px 12px 28px}.writer-document{padding:20px 16px}.writer-output{font-size:.96rem}.writer-settings-panel--mobile{height:calc(100% - 56px);border-right:0}.writer-settings-panel--mobile .writer-panel-scroll{padding-bottom:110px}.writer-bottom-sheet .writer-report-panel{max-height:none;border-left:0}}.writer-shell{isolation:isolate;background:#f8fafc}.writer-shell--document{border-left:0;box-shadow:none}.writer-backdrop{position:absolute;inset:56px 0 0;z-index:0;pointer-events:none;background:radial-gradient(circle at 18% 12%,rgba(14,165,233,.16),transparent 34%),radial-gradient(circle at 82% 24%,rgba(20,184,166,.14),transparent 32%),#f8fafc}.writer-shell--document .writer-backdrop{background:#0f172a47;backdrop-filter:blur(8px)}.writer-topbar{position:relative;z-index:5;height:56px;min-height:56px;grid-template-columns:minmax(180px,1fr) auto minmax(180px,1fr);background:linear-gradient(135deg,#172554,#1d4ed8 58%,#0f766e)}.writer-flow{position:relative;z-index:1;flex:1;min-height:0;overflow:hidden}.writer-setup-stage{height:100%;min-height:0;display:flex;justify-content:center;overflow-y:auto;padding:26px}.writer-setup-card{width:min(880px,100%);align-self:flex-start;border:1px solid rgba(148,163,184,.28);border-radius:18px;background:#fffffff0;box-shadow:0 26px 70px -48px #0f172ab3;overflow:hidden}.writer-shell--default.writer-shell--setup .writer-setup-stage{padding:0}.writer-shell--default.writer-shell--setup .writer-setup-card{min-height:100%;border:0;border-radius:0;box-shadow:none}.writer-setup-hero{display:flex;gap:14px;padding:22px;color:#0f172a;background:linear-gradient(135deg,#dbeafedb,#f0fdfac7),#fff;border-bottom:1px solid #e2e8f0}.writer-setup-icon{width:44px;height:44px;display:grid;place-items:center;flex:0 0 auto;border-radius:14px;background:#0f172a;color:#fff;box-shadow:0 16px 28px -20px #0f172acc}.writer-setup-hero p,.writer-setup-hero h2,.writer-setup-hero small{margin:0}.writer-setup-hero p{color:#2563eb;font-size:.72rem;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.writer-setup-hero h2{margin-top:4px;color:#0f172a;font-size:clamp(1.15rem,2.2vw,1.65rem);line-height:1.18}.writer-setup-hero small{display:block;margin-top:8px;color:#64748b;font-weight:750}.writer-source-strip,.writer-settings-form{padding:18px 22px}.writer-source-strip{border-bottom:1px solid #e2e8f0;background:#fff}.writer-settings-form{display:grid;gap:16px}.writer-field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.writer-field-grid label,.writer-prompt-block{min-width:0;display:grid;gap:7px}.writer-field-grid label small{color:#64748b;font-size:.72rem;line-height:1.35}.writer-language-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px;border:1px solid #e2e8f0;border-radius:12px;background:#f8fafc}.writer-field,.writer-prompt{width:100%;border:1px solid #cbd5e1;border-radius:12px;background:#fff;color:#0f172a;font:inherit;outline:none;transition:border-color .18s ease,box-shadow .18s ease}.writer-field{height:44px;padding:0 12px}.writer-prompt{min-height:154px;padding:13px;line-height:1.55;resize:vertical}.writer-field:focus,.writer-prompt:focus{border-color:#2563eb;box-shadow:0 0 0 4px #2563eb1f}.writer-char-count{justify-self:end;color:#64748b;font-size:.72rem;font-weight:800}.writer-setup-footer{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;padding-top:4px}.writer-run-state{display:flex;flex-wrap:wrap;gap:8px;color:#64748b;font-size:.74rem;font-weight:800}.writer-run-state div{display:inline-flex;align-items:center;gap:6px;padding:7px 9px;border-radius:999px;background:#f1f5f9}.writer-setup-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px}.writer-primary-action,.writer-secondary-action,.writer-stop-action{min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:12px;padding:0 16px;font-family:inherit;font-weight:900;cursor:pointer;transition:transform .18s ease,box-shadow .18s ease,opacity .18s ease}.writer-primary-action{background:linear-gradient(135deg,#0f172a,#1d4ed8);color:#fff;box-shadow:0 16px 28px -20px #1d4ed8e6}.writer-secondary-action{border:1px solid #cbd5e1;background:#fff;color:#334155}.writer-stop-action,.writer-danger-button{background:#fee2e2!important;color:#b91c1c!important}.writer-primary-action:hover:not(:disabled),.writer-secondary-action:hover:not(:disabled),.writer-stop-action:hover:not(:disabled){transform:translateY(-1px)}.writer-primary-action:disabled,.writer-secondary-action:disabled,.writer-stop-action:disabled{opacity:.55;cursor:not-allowed;transform:none}.writer-document-stage{height:100%;min-height:0;display:grid;place-items:center;overflow:hidden;padding:32px}.writer-document-modal{width:min(900px,calc(100vw - 48px));max-height:calc(100vh - 120px);display:flex;flex-direction:column;overflow:hidden;border:1px solid rgba(226,232,240,.9);border-radius:22px;background:#fffffffa;box-shadow:0 32px 100px -46px #0f172ad1}.writer-document-head{min-height:68px;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 16px;border-bottom:1px solid #e2e8f0;background:linear-gradient(180deg,#fff,#f8fafc)}.writer-document-meta{min-width:0}.writer-document-meta span,.writer-document-meta small{display:flex;align-items:center;gap:7px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.writer-document-meta span{color:#0f172a;font-weight:950}.writer-document-meta small{margin-top:3px;color:#64748b;font-size:.74rem;font-weight:800}.writer-document-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:7px}.writer-document-actions button{min-height:34px;display:inline-flex;align-items:center;gap:6px;border:1px solid #e2e8f0;border-radius:10px;background:#fff;color:#334155;padding:0 10px;font-family:inherit;font-size:.76rem;font-weight:900;cursor:pointer}.writer-document-actions .writer-document-close{width:34px;min-width:34px;justify-content:center;padding:0;border-color:#cbd5e1;background:#fff;color:#475569}.writer-document-actions button:hover:not(:disabled),.writer-document-actions button.active{border-color:#bfdbfe;background:#eff6ff;color:#1d4ed8}.writer-document-actions .writer-document-close:hover:not(:disabled){border-color:#fecaca;background:#fef2f2;color:#b91c1c}.writer-document-actions button:disabled{opacity:.45;cursor:not-allowed}.writer-error--document{margin:12px 16px 0}.writer-document-scroll{flex:1;min-height:0;overflow-y:auto;padding:22px;background:linear-gradient(90deg,rgba(148,163,184,.08) 1px,transparent 1px),linear-gradient(180deg,#f8fafc,#fff);background-size:32px 32px,auto}.writer-document-paper{max-width:820px;min-height:420px;margin:0 auto;padding:clamp(24px,4vw,42px);border:1px solid #e2e8f0;border-radius:16px;background:#fff;box-shadow:0 22px 58px -46px #0f172ab3}.writer-document-paper .writer-output{color:#0f172a;font-size:1.03rem;line-height:1.72}.writer-document-footer{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 16px;border-top:1px solid #e2e8f0;background:#fff}.writer-document-footer>div{min-width:0;display:grid;justify-items:end;gap:3px;color:#64748b;font-size:.74rem;font-weight:800}.writer-document-footer code{max-width:min(380px,48vw);overflow:hidden;color:#334155;text-overflow:ellipsis;white-space:nowrap}.writer-report-drawer{position:absolute;z-index:6;top:72px;right:16px;bottom:16px;width:min(360px,calc(100vw - 32px));overflow:hidden;border:1px solid rgba(226,232,240,.95);border-radius:18px;background:#fff;box-shadow:0 26px 78px -36px #0f172ad1}.writer-report-card{height:100%;overflow-y:auto;padding:14px;background:#fff}.writer-shell--default .writer-topbar{grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:0 10px}.writer-shell--default .writer-mode-title{display:none}.writer-shell--default .writer-title{gap:8px}.writer-shell--default .writer-title>span{width:34px;height:34px;flex:0 0 auto}.writer-shell--default .writer-title strong{font-size:.9rem}.writer-shell--default .writer-title small{font-size:.68rem}.writer-shell--default .writer-window-actions{gap:3px;padding:2px}.writer-shell--default .writer-window-actions button{width:29px;height:29px}.writer-shell--default.writer-shell--setup .writer-setup-hero{gap:12px;padding:20px 18px 22px}.writer-shell--default.writer-shell--setup .writer-setup-icon{width:42px;height:42px;border-radius:13px}.writer-shell--default.writer-shell--setup .writer-setup-hero h2{font-size:1.42rem;line-height:1.2;letter-spacing:-.035em}.writer-shell--default.writer-shell--setup .writer-setup-hero small{font-size:.78rem}.writer-shell--default.writer-shell--setup .writer-source-strip,.writer-shell--default.writer-shell--setup .writer-settings-form{padding:16px 18px}.writer-shell--default.writer-shell--setup .writer-field-grid{grid-template-columns:1fr;gap:12px}.writer-shell--default.writer-shell--setup .writer-field{height:42px;font-size:.92rem}.writer-shell--default.writer-shell--setup .writer-prompt{min-height:132px}.writer-shell--default.writer-shell--setup .writer-language-row,.writer-shell--default.writer-shell--setup .writer-setup-footer{align-items:stretch;flex-direction:column}.writer-shell--default.writer-shell--setup .writer-segment{width:100%}.writer-shell--default.writer-shell--setup .writer-segment button{flex:1;justify-content:center}.writer-shell--default.writer-shell--setup .writer-setup-actions{justify-content:stretch}.writer-shell--default.writer-shell--setup .writer-setup-actions>button{flex:1}@media(max-width:960px){.writer-topbar{grid-template-columns:minmax(0,1fr) auto}.writer-mode-title{display:none}.writer-document-head,.writer-document-footer,.writer-setup-footer{align-items:stretch;flex-direction:column}.writer-document-actions,.writer-setup-actions{justify-content:flex-start}.writer-document-footer>div{justify-items:start}}@media(max-width:768px){.writer-backdrop{inset:56px 0 0}.writer-topbar{grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:0 10px}.writer-window-actions button:not(:last-child){display:none}.writer-setup-stage{padding:12px}.writer-setup-card{border-radius:16px}.writer-setup-hero,.writer-source-strip,.writer-settings-form{padding:16px}.writer-field-grid{grid-template-columns:1fr}.writer-document-stage{align-items:end;padding:0}.writer-document-modal{width:100%;height:calc(100vh - 56px);max-height:calc(100vh - 56px);border-right:0;border-bottom:0;border-left:0;border-radius:18px 18px 0 0}.writer-document-head{min-height:0}.writer-document-actions button span{display:none}.writer-document-scroll{padding:14px}.writer-document-paper{min-height:360px;padding:22px 16px;border-radius:12px}.writer-document-paper .writer-output{font-size:.96rem}.writer-report-drawer{inset:auto 0 0;width:100%;max-height:82vh;border-right:0;border-bottom:0;border-left:0;border-radius:18px 18px 0 0}}
