:root{--light-accent:#315cf5;--nav-active:#342115;--sidebar-bg:#0c0d10;--soft:#191a20}html[data-theme=light]{color-scheme:light;--bg:#f4f6fb;--surface:#fff;--surface2:#f1f5fd;--border:#dce4f3;--muted:#647791;--text:#182c48;--accent:var(--light-accent);--green:#087f66;--blue:#315fc9;--red:#ce435f;--nav-active:#eaf0ff;--sidebar-bg:#fbfcff;--soft:#edf2fb}html[data-theme=light] body{background:var(--bg);color:var(--text)}html[data-theme=light] .rail,html[data-theme=light] .sidebar{background:var(--sidebar-bg)}html[data-theme=light] .topbar{background:#f9fbff}html[data-theme=light] .card{background:linear-gradient(135deg,#fff,#fbfcff);box-shadow:0 4px 16px #18305003}html[data-theme=light] button{background:#f8faff;border-color:var(--border);color:var(--text)}html[data-theme=light] button:hover{background:#e9effc;border-color:#aebfe7}html[data-theme=light] button.primary{background:var(--accent);border-color:var(--accent);color:white}html[data-theme=light] button.ghost,html[data-theme=light] button.link-btn{background:transparent;border-color:transparent;color:var(--blue)}html[data-theme=light] .nav-item{background:transparent;color:#536c8e}html[data-theme=light] .nav-item.active{background:#eaf0ff;color:var(--accent)}html[data-theme=light] .nav-item:hover{background:#eef3fd}html[data-theme=light] .nav-item small{background:#e7eefa;color:#5c7393}html[data-theme=light] .brand small,html[data-theme=light] .nav-label{color:#7b8ca6}html[data-theme=light] .crumb{color:#476186}html[data-theme=light] input,html[data-theme=light] select,html[data-theme=light] textarea{background:#fff;border-color:#d4dfef;color:#19304f}html[data-theme=light] .welcome{background:radial-gradient(ellipse at 100% 0,#eaf0ff,transparent 65%),linear-gradient(110deg,#fff,#f3f8ff);border-color:#d6e3fe}html[data-theme=light] .connection{background:#f7faff;border-color:#dbe6f7}html[data-theme=light] .metric-title{color:#5f7290}html[data-theme=light] .metric-foot{color:#7283a0}html[data-theme=light] .iconbox{filter:saturate(.85)}html[data-theme=light] .metric .iconbox{background:#e9eafa;color:#7a5ed4}html[data-theme=light] .metric:nth-child(2) .iconbox{background:#e3f5ed;color:#158263}html[data-theme=light] .metric:nth-child(3) .iconbox{background:#fff1dc;color:#ab7826}html[data-theme=light] .metric:nth-child(4) .iconbox{background:#eee6fa;color:#8860ae}html[data-theme=light] .pill{background:#edf1f7;color:#58718e}html[data-theme=light] .pill.green{color:#087f66;background:#e2f4ec}html[data-theme=light] .pill.orange{color:#aa6327;background:#fff1df}html[data-theme=light] .pill.blue{color:#355fc4;background:#e8efff}html[data-theme=light] .pill.red{color:#c33956;background:#fdebf0}html[data-theme=light] td{border-color:#e4ebf5}html[data-theme=light] th{background:#f7f9fd;color:#6e819d}html[data-theme=light] tr:hover td{background:#f2f6ff}html[data-theme=light] .issue-name{color:#203956}html[data-theme=light] .issue-url{color:#7488a4}html[data-theme=light] .chart .gridline{stroke:#dce5f3}html[data-theme=light] .chart text{fill:#7d91ac}html[data-theme=light] .chart-footer,html[data-theme=light] .table-bottom{border-color:#e0e8f6}html[data-theme=light] .banner{background:#fff9ec;border-color:#f0dfba;color:#90703e}html[data-theme=light] .readout,html[data-theme=light] dialog pre{background:#122640;color:#c6d8ef;border-color:#193451}html[data-theme=light] dialog{background:#fff;color:#1b314f;border-color:#d8e3f4}html[data-theme=light] label{color:#536b8c}html[data-theme=light] .module:hover{background:#eff4ff;border-color:#b9cbef}html[data-theme=light] .auth-story{background:radial-gradient(ellipse at 10% 15%,#dce6ff,transparent 65%),#eff5ff}html[data-theme=light] .auth-story p{color:#617797}html[data-theme=light] .auth-tags span{border-color:#c7d8f0;color:#5d7699}html[data-theme=light] .tabbar button.active{background:#e6edff;color:#315cf5}html[data-theme=light] .block-row{border-color:#dce5f3}html[data-theme=light] .health-stats strong{color:#1d3557}html[data-theme=light] .progress{background:#e0e8f4}html[data-theme=light] .task .number{background:#f2f6ff;border-color:#cedbf0}html[data-theme=light] .mark{background:#ecf1fe;border-color:#bacced;color:#315cf5}.brand-logo{max-width:155px;max-height:40px;object-fit:contain;display:block;margin-bottom:6px}.platform-heading{display:flex;gap:16px;align-items:center}.platform-emblem{width:50px;height:50px;background:color-mix(in srgb,var(--accent) 12%,transparent);color:var(--accent);display:grid;place-items:center;border:1px solid color-mix(in srgb,var(--accent) 20%,transparent);border-radius:14px}.admin-tabs,.audit-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:22px}.admin-tabs button,.audit-tabs button{background:transparent;color:var(--muted)}.admin-tabs button.active,.audit-tabs button.active{color:var(--accent);background:color-mix(in srgb,var(--accent) 10%,transparent);border-color:color-mix(in srgb,var(--accent) 25%,transparent)}.admin-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.plan-card{padding:25px;display:flex;flex-direction:column;gap:18px}.plan-price{font-size:2rem;font-weight:650;letter-spacing:-1px}.plan-price small{font-size:.8rem;font-weight:400;color:var(--muted);letter-spacing:0}.plan-limits{list-style:none;margin:0;padding:0;font-size:.875rem;color:var(--muted)}.plan-limits li{padding:10px 0;border-bottom:1px solid var(--border);display:flex;justify-content:space-between;gap:12px}.plan-limits b{font-weight:600;color:var(--text)}.quota-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.quota{padding:18px;border:1px solid var(--border);border-radius:12px}.quota .spread{font-size:.8125rem;margin-bottom:12px}.quota strong{color:var(--text)}.control-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.audit-overview{display:grid;grid-template-columns:1fr 1fr 1fr;gap:20px}.audit-score{display:flex;justify-content:center;align-items:center;gap:25px;padding:30px 20px}.audit-stat{padding:20px 24px;display:flex;justify-content:space-between;gap:20px;font-size:.875rem;border-top:1px solid var(--border)}.severity-bars{padding:22px}.severity-bars .bar-row{margin:18px 0}.bar-row .spread{font-size:.8125rem;margin-bottom:10px}.audit-tool-header{padding:25px 28px;border:1px solid var(--border);border-radius:20px;background:linear-gradient(120deg,var(--surface),color-mix(in srgb,var(--accent) 5%,var(--surface)));display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:23px}.tool-form{display:flex;gap:10px;align-items:end;flex-wrap:wrap}.tool-form label{margin:0;flex:1;min-width:170px}.tool-form button{height:41px}.analysis-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:24px 0}.analysis-stat{padding:18px 20px;border:1px solid var(--border);border-radius:12px;background:var(--surface)}.analysis-stat span{display:block;font-size:.75rem;color:var(--muted);margin-bottom:8px}.analysis-stat strong{font-size:1.6rem;font-weight:600}.checks-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.check-row{display:flex;align-items:flex-start;gap:12px;justify-content:space-between;padding:14px 20px;border-top:1px solid var(--border);font-size:.8125rem}.check-row .evidence{font-size:.75rem;color:var(--muted);margin-top:6px;overflow-wrap:anywhere;line-height:1.55}.keyword-cloud{display:flex;flex-wrap:wrap;gap:14px 22px;padding:26px;align-items:center;justify-content:center;min-height:160px}.keyword-cloud span{font-weight:650;color:var(--accent);line-height:1.3}.keyword-cloud span:nth-child(3n){color:#9a76dc}.keyword-cloud span:nth-child(3n+1){color:#13a5b9}.split-panel{display:grid;grid-template-columns:1.3fr 1fr;gap:22px}.outline-row{padding:11px 20px;border-bottom:1px solid var(--border);font-size:.8125rem;display:flex;gap:12px}.outline-row b{color:var(--blue);font-size:.75rem;width:30px}.optimization-card{padding:18px 22px;border:1px solid var(--border);border-radius:13px;margin:12px 0}.optimization-card h3{font-size:.875rem;margin:0 0 8px}.optimization-card p{font-size:.8125rem;color:var(--muted);margin:7px 0}.scope-note{padding:14px 18px;border:1px solid var(--border);border-radius:10px;margin:18px 0;font-size:.8125rem;color:var(--muted);line-height:1.6}.asset-preview{display:flex;align-items:center;gap:20px;margin:15px 0}.asset-preview img{max-height:60px;max-width:200px;object-fit:contain}.account-detail{padding:24px}.admin-search{width:100%;max-width:400px}.inline-form{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.inline-form input,.inline-form select{width:auto}.light-demo-tip{color:var(--muted);font-size:12px}.topbar .theme-toggle{width:36px;padding:8px}.billing-status{padding:23px;border-left:3px solid var(--accent);margin-bottom:20px}.pricing-foot{font-size:.75rem;color:var(--muted);line-height:1.6}.table-action{white-space:nowrap}.mini-code{background:var(--soft);padding:2px 6px;border-radius:5px;font-size:.75rem;font-family:ui-monospace,monospace}.feature-checks{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:20px}.metrics-two{display:grid;grid-template-columns:1fr 1fr;gap:20px}.error-message{padding:18px;border:1px solid var(--red);border-radius:12px;color:var(--red);font-size:.875rem;margin:15px 0}.history-control{width:auto;max-width:340px}.soft-label{font-size:.75rem;color:var(--muted)}
@media(max-width:1200px){.admin-grid{grid-template-columns:1fr 1fr}.audit-overview{grid-template-columns:1fr 1fr}.audit-overview>.card:last-child{grid-column:span 2}.quota-grid{grid-template-columns:1fr 1fr}}@media(max-width:800px){.audit-overview,.split-panel,.checks-grid,.metrics-two{grid-template-columns:1fr}.audit-overview>.card:last-child{grid-column:auto}.analysis-stats{grid-template-columns:1fr 1fr}.audit-tool-header{align-items:flex-start;flex-direction:column}.control-grid{grid-template-columns:1fr}.quota-grid{grid-template-columns:1fr}.admin-grid{grid-template-columns:1fr}}@media print{.audit-tabs,.admin-tabs,.tool-form,.toolbar,.scope-note{display:none}.card{break-inside:avoid}.audit-overview{display:grid;grid-template-columns:repeat(3,1fr)}}
