:root{--background:0 0% 100%;--foreground:240 10% 3.9%;--card:0 0% 100%;--card-foreground:240 10% 3.9%;--popover:0 0% 100%;--popover-foreground:240 10% 3.9%;--primary:240 5.9% 10%;--primary-foreground:0 0% 98%;--secondary:240 4.8% 95.9%;--secondary-foreground:240 5.9% 10%;--muted:240 4.8% 95.9%;--muted-foreground:240 3.8% 46.1%;--accent:240 4.8% 95.9%;--accent-foreground:240 5.9% 10%;--destructive:0 84.2% 60.2%;--destructive-foreground:0 0% 98%;--border:240 5.9% 90%;--input:240 5.9% 90%;--ring:240 5.9% 10%;--radius:.5rem;--brand:220 60% 52%;--brand-foreground:0 0% 100%;--brand-soft:220 76% 96%;--brand-soft-border:220 50% 85%;--warn:38 92% 50%;--warn-soft:48 96% 95%;--info:217 91% 60%;--info-soft:213 100% 96%}[data-theme=dark]{--background:240 10% 3.9%;--foreground:0 0% 98%;--card:240 10% 5.5%;--card-foreground:0 0% 98%;--popover:240 10% 5.5%;--popover-foreground:0 0% 98%;--primary:0 0% 98%;--primary-foreground:240 5.9% 10%;--secondary:240 3.7% 12%;--secondary-foreground:0 0% 98%;--muted:240 3.7% 12%;--muted-foreground:240 5% 64.9%;--accent:240 3.7% 14%;--accent-foreground:0 0% 98%;--border:240 3.7% 16%;--input:240 3.7% 16%;--ring:240 4.9% 83.9%;--brand-soft:220 30% 12%;--brand-soft-border:220 40% 22%;--warn-soft:38 50% 12%;--info-soft:217 50% 14%}.app-shell,.app-shell *{box-sizing:border-box}.app-shell svg.lucide{stroke-width:1.75px}.app-shell{font-feature-settings:"cv11", "ss01", "ss03";-webkit-font-smoothing:antialiased;background:hsl(var(--background));color:hsl(var(--foreground));grid-template-columns:240px 1fr;height:100vh;font-family:Inter,system-ui,-apple-system,sans-serif;font-size:14px;line-height:1.5;display:grid;overflow:hidden}.app-shell .font-mono{font-family:JetBrains Mono,ui-monospace,Menlo,monospace}.app-shell .font-serif{font-family:Instrument Serif,Georgia,serif}.app-shell ::-webkit-scrollbar{width:10px;height:10px}.app-shell ::-webkit-scrollbar-track{background:0 0}.app-shell ::-webkit-scrollbar-thumb{background:hsl(var(--border));border:2px solid hsl(var(--background));border-radius:6px}.app-shell ::-webkit-scrollbar-thumb:hover{background:hsl(var(--muted-foreground) / .4)}.app-shell .btn{border-radius:calc(var(--radius) - 2px);cursor:pointer;-webkit-user-select:none;user-select:none;white-space:nowrap;border:1px solid #0000;justify-content:center;align-items:center;gap:6px;height:36px;padding:0 14px;font-family:inherit;font-size:13px;font-weight:500;line-height:1;text-decoration:none;transition:background .12s,color .12s,border-color .12s;display:inline-flex}.app-shell .btn:disabled{opacity:.5;cursor:not-allowed}.app-shell .btn-primary{background:hsl(var(--brand));color:hsl(var(--brand-foreground));border:1px solid hsl(var(--brand) / .4);box-shadow:0 1px 2px hsl(var(--brand) / .2), inset 0 1px 0 #ffffff26}.app-shell .btn-primary:hover:not(:disabled){background:hsl(var(--brand) / .92);box-shadow:0 2px 6px hsl(var(--brand) / .25), inset 0 1px 0 #ffffff26}.app-shell .btn-secondary{background:hsl(var(--secondary));color:hsl(var(--secondary-foreground))}.app-shell .btn-secondary:hover:not(:disabled){background:hsl(var(--secondary) / .7)}.app-shell .btn-outline{background:hsl(var(--background));color:hsl(var(--foreground));border-color:hsl(var(--border))}.app-shell .btn-outline:hover:not(:disabled){background:hsl(var(--accent))}.app-shell .btn-ghost{color:hsl(var(--foreground));background:0 0;border-color:#0000}.app-shell .btn-ghost:hover:not(:disabled){background:hsl(var(--accent))}.app-shell .btn-destructive{background:hsl(var(--destructive));color:hsl(var(--destructive-foreground))}.app-shell .btn-sm{border-radius:calc(var(--radius) - 3px);height:30px;padding:0 10px;font-size:12px}.app-shell .btn-lg{height:42px;padding:0 20px;font-size:14px}.app-shell .btn-icon{width:36px;padding:0}.app-shell .btn-icon.btn-sm{width:30px}.app-shell .btn[data-active=true]{background:hsl(var(--accent))}.app-shell .card{background:hsl(var(--card));color:hsl(var(--card-foreground));border:1px solid hsl(var(--border));border-radius:var(--radius)}.app-shell .input,.app-shell .textarea{background:hsl(var(--background));width:100%;color:hsl(var(--foreground));border:1px solid hsl(var(--input));border-radius:calc(var(--radius) - 2px);outline:none;height:36px;padding:0 12px;font-family:inherit;font-size:13px;transition:border-color .12s,box-shadow .12s}.app-shell .textarea{resize:vertical;height:auto;min-height:80px;padding:10px 12px;line-height:1.5}.app-shell .input::placeholder,.app-shell .textarea::placeholder{color:hsl(var(--muted-foreground))}.app-shell .input:focus,.app-shell .textarea:focus{border-color:hsl(var(--ring));box-shadow:0 0 0 3px hsl(var(--ring) / .12)}.app-shell .label{color:hsl(var(--foreground));margin-bottom:6px;font-size:13px;font-weight:500;display:block}.app-shell .help{color:hsl(var(--muted-foreground));margin-top:6px;font-size:12px}.app-shell .badge{border:1px solid #0000;border-radius:999px;align-items:center;gap:4px;height:20px;margin-bottom:0;padding:0 8px;font-size:11px;font-weight:500;line-height:1;animation:none;display:inline-flex}.app-shell .badge-default{background:hsl(var(--primary));color:hsl(var(--primary-foreground))}.app-shell .badge-secondary{background:hsl(var(--secondary));color:hsl(var(--secondary-foreground))}.app-shell .badge-outline{color:hsl(var(--foreground));border-color:hsl(var(--border));background:0 0}.app-shell .badge-brand{background:hsl(var(--brand-soft));color:hsl(var(--brand) / .95);border-color:hsl(var(--brand-soft-border))}.app-shell .badge-warn{background:hsl(var(--warn-soft));color:hsl(var(--warn));border-color:hsl(var(--warn) / .3)}.app-shell .badge-info{background:hsl(var(--info-soft));color:hsl(var(--info));border-color:hsl(var(--info) / .3)}.app-shell .badge-destructive{background:hsl(var(--destructive) / .1);color:hsl(var(--destructive));border-color:hsl(var(--destructive) / .3)}.app-shell .spoke-schedule-badge .spoke-schedule-tooltip{background:hsl(var(--foreground));color:hsl(var(--background));white-space:nowrap;pointer-events:none;z-index:10;border-radius:5px;padding:4px 8px;font-size:11px;display:none;position:absolute;bottom:calc(100% + 6px);left:50%;transform:translate(-50%)}.app-shell .spoke-schedule-badge .spoke-schedule-tooltip:after{content:"";border:4px solid #0000;border-top-color:hsl(var(--foreground));position:absolute;top:100%;left:50%;transform:translate(-50%)}.app-shell .spoke-schedule-badge:hover .spoke-schedule-tooltip{display:block}.app-shell .sep{background:hsl(var(--border));border:0;height:1px;margin:0}.app-shell .sep-v{background:hsl(var(--border));align-self:stretch;width:1px}.app-shell .tabs-list{background:hsl(var(--muted));border-radius:calc(var(--radius) - 2px);align-items:center;gap:2px;padding:4px;display:inline-flex}.app-shell .tabs-trigger{color:hsl(var(--muted-foreground));border-radius:calc(var(--radius) - 4px);cursor:pointer;background:0 0;border:0;align-items:center;gap:6px;padding:6px 12px;font-family:inherit;font-size:13px;font-weight:500;transition:background .12s,color .12s;display:inline-flex}.app-shell .tabs-trigger[data-active=true]{background:hsl(var(--background));color:hsl(var(--foreground));box-shadow:0 1px 2px hsl(var(--foreground) / .06)}.app-shell .tabs-trigger:hover:not([data-active=true]){color:hsl(var(--foreground))}.app-shell :focus-visible{outline:2px solid hsl(var(--ring) / .6);outline-offset:2px;border-radius:4px}.app-shell .truncate{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.app-shell .text-muted{color:hsl(var(--muted-foreground))}.app-shell .text-xs{font-size:11px}.app-shell .text-sm{font-size:12px}.app-shell .spinner{border:2px solid hsl(var(--muted-foreground) / .3);border-top-color:hsl(var(--foreground));border-radius:50%;flex-shrink:0;width:14px;height:14px;animation:.7s linear infinite app-spin;display:inline-block}@keyframes app-spin{to{transform:rotate(360deg)}}.app-shell .opt-eyebrow{text-transform:uppercase;letter-spacing:.1em;align-items:center;gap:4px;font-size:10px;font-weight:700;display:inline-flex}.app-shell .sidebar{background:hsl(var(--background));border-right:1px solid hsl(var(--border));flex-direction:column;gap:4px;height:100vh;padding:20px 16px 16px;display:flex;position:sticky;top:0;overflow-y:auto}.app-shell .sidebar-brand{letter-spacing:-.02em;align-items:center;gap:8px;padding:4px 8px 18px;font-size:20px;font-weight:600;display:flex}.app-shell .brand-dot{background:hsl(var(--brand));width:22px;height:22px;color:hsl(var(--brand-foreground));border-radius:6px;flex-shrink:0;justify-content:center;align-items:center;font-family:Instrument Serif,serif;font-size:17px;font-weight:400;line-height:1;display:inline-flex}.app-shell .nav-item{border-radius:calc(var(--radius) - 2px);color:hsl(var(--muted-foreground));cursor:pointer;text-align:left;background:0 0;border:0;align-items:center;gap:10px;width:100%;padding:7px 10px;font-family:inherit;font-size:13px;font-weight:500;transition:background .12s,color .12s;display:flex}.app-shell .nav-item:hover{background:hsl(var(--accent));color:hsl(var(--foreground))}.app-shell .nav-item[data-active=true]{background:hsl(var(--accent));color:hsl(var(--foreground));font-weight:600}.app-shell .nav-item svg{flex-shrink:0}.app-shell .nav-badge{background:hsl(var(--brand));color:hsl(var(--brand-foreground));border-radius:999px;margin-left:auto;padding:2px 6px;font-size:10px;font-weight:600;line-height:1}.app-shell .sidebar-footer{border-top:1px solid hsl(var(--border));align-items:center;gap:10px;margin-top:auto;padding-top:12px;display:flex}.app-shell .avatar{background:hsl(var(--accent));width:30px;height:30px;color:hsl(var(--foreground));border-radius:999px;flex-shrink:0;justify-content:center;align-items:center;font-size:12px;font-weight:600;display:inline-flex}.app-shell .main-col{flex-direction:column;min-width:0;height:100vh;display:flex;overflow-y:auto}.app-shell .topbar{border-bottom:1px solid hsl(var(--border));background:hsl(var(--background));z-index:10;flex-shrink:0;justify-content:space-between;align-items:center;height:49px;padding:0 40px;display:flex;position:sticky;top:0}.app-shell .crumb{color:hsl(var(--muted-foreground));align-items:center;gap:8px;font-size:13px;display:flex}.app-shell .crumb strong{color:hsl(var(--foreground));font-weight:500}.app-shell .main{width:100%;max-width:1200px;padding:32px 40px 80px}.app-shell .page-header{margin-bottom:28px}.app-shell .page-title{letter-spacing:-.02em;margin:0 0 4px;font-size:24px;font-weight:600}.app-shell .page-subtitle{color:hsl(var(--muted-foreground));margin:0;font-size:14px}.app-shell .opp-card{margin-bottom:12px;padding:20px 22px;transition:border-color .12s}.app-shell .opp-head{flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:12px;display:flex}.app-shell .opp-title{letter-spacing:-.01em;color:#09090b;margin:0 0 12px;font-size:17px;font-weight:600;line-height:1.35}[data-theme=dark] .app-shell .opp-title{color:#fafafa}.app-shell .opp-meta{color:hsl(var(--muted-foreground));border-bottom:1px solid hsl(var(--border));flex-wrap:wrap;align-items:center;gap:14px;margin-bottom:16px;padding:8px 0 16px;font-size:12px;display:flex}.app-shell .opp-meta-item{align-items:center;gap:6px;display:inline-flex}.app-shell .opp-meta-item .font-mono{color:hsl(var(--foreground));font-weight:500}.app-shell .opp-stats{border-bottom:1px solid hsl(var(--border));flex-wrap:wrap;align-items:stretch;gap:28px;margin-bottom:16px;padding:4px 0 16px;display:flex}.app-shell .opp-stat{flex-direction:column;gap:5px;min-width:0;display:flex}.app-shell .opp-stat-label{text-transform:uppercase;letter-spacing:.07em;color:hsl(var(--muted-foreground));align-items:center;gap:5px;font-size:10.5px;font-weight:600;display:inline-flex}.app-shell .opp-stat-value{letter-spacing:-.02em;color:hsl(var(--foreground));font-family:JetBrains Mono,monospace;font-size:22px;font-weight:700;line-height:1.1}.app-shell .opp-stat-unit{color:hsl(var(--muted-foreground));margin-left:3px;font-size:12px;font-weight:500}.app-shell .opp-stat-kw{color:hsl(var(--brand));white-space:normal;word-break:break-word;align-self:center;font-size:14px;font-weight:600}.app-shell .opp-section{margin-bottom:14px}.app-shell .opp-section-label{text-transform:uppercase;letter-spacing:.08em;color:hsl(var(--muted-foreground));margin-bottom:6px;font-size:11px;font-weight:600}.app-shell .opp-section-body{color:hsl(var(--foreground));font-size:13px;line-height:1.55}.app-shell .opp-section-body ul{flex-direction:column;gap:4px;margin:0;padding-left:18px;display:flex}.app-shell .opp-footer{border-top:1px solid hsl(var(--border));justify-content:flex-end;align-items:center;gap:8px;margin-top:4px;padding-top:16px;display:flex}.app-shell .table{border-collapse:collapse;width:100%;font-size:13px}.app-shell .table th{text-align:left;color:hsl(var(--muted-foreground));text-transform:uppercase;letter-spacing:.06em;border-bottom:1px solid hsl(var(--border));background:hsl(var(--muted) / .5);padding:10px 16px;font-size:11px;font-weight:500}.app-shell .table td{border-bottom:1px solid hsl(var(--border));vertical-align:middle;padding:14px 16px}.app-shell .table tr:last-child td{border-bottom:0}.app-shell .table tr:hover td{background:hsl(var(--accent) / .4)}.app-shell .subtabs{border-bottom:1px solid hsl(var(--border));align-items:center;gap:4px;margin-bottom:24px;display:flex}.app-shell .subtab{color:hsl(var(--muted-foreground));cursor:pointer;background:0 0;border:0;align-items:center;gap:8px;padding:10px 14px;font-family:inherit;font-size:13px;font-weight:500;transition:color .12s;display:inline-flex;position:relative}.app-shell .subtab:hover,.app-shell .subtab[data-active=true]{color:hsl(var(--foreground))}.app-shell .subtab[data-active=true]:after{content:"";background:hsl(var(--foreground));height:2px;position:absolute;bottom:-1px;left:0;right:0}.app-shell .subtab .count{background:hsl(var(--muted));color:hsl(var(--muted-foreground));border-radius:999px;padding:1px 7px;font-size:11px;font-weight:500;line-height:1.4}.app-shell .subtab[data-active=true] .count{background:hsl(var(--foreground));color:hsl(var(--background))}.app-shell .empty{text-align:center;padding:64px 24px}.app-shell .empty-icon{background:hsl(var(--muted));width:48px;height:48px;color:hsl(var(--muted-foreground));border-radius:12px;justify-content:center;align-items:center;margin-bottom:14px;display:inline-flex}.app-shell .empty-title{color:hsl(var(--foreground));margin:0 0 6px;font-size:16px;font-weight:600}.app-shell .empty-sub{color:hsl(var(--muted-foreground));max-width:380px;margin:0 auto;font-size:13px;line-height:1.5}.app-shell .pill-row{flex-wrap:wrap;gap:6px;display:flex}.app-shell .pill{border:1px solid hsl(var(--border));background:hsl(var(--background));color:hsl(var(--muted-foreground));cursor:pointer;border-radius:999px;padding:4px 10px;font-family:inherit;font-size:12px;transition:background .12s,color .12s}.app-shell .pill:hover{background:hsl(var(--accent));color:hsl(var(--foreground))}.app-shell .pill[data-active=true]{background:hsl(var(--brand));color:hsl(var(--brand-foreground));border-color:hsl(var(--brand))}.app-shell .progress{background:hsl(var(--muted));border-radius:999px;height:6px;overflow:hidden}.app-shell .progress-bar{background:hsl(var(--brand));border-radius:999px;height:100%;transition:width .3s}.app-shell .dim-chip{border:1px solid hsl(var(--destructive) / .25);background:hsl(var(--destructive) / .08);color:hsl(var(--destructive));cursor:pointer;border-radius:999px;align-items:center;gap:6px;padding:4px 10px;font-family:inherit;font-size:11px;font-weight:500;transition:background .12s;display:inline-flex}.app-shell .dim-chip:hover{background:hsl(var(--destructive) / .15)}.app-shell .dim-chip .dot{background:hsl(var(--destructive));border-radius:999px;width:6px;height:6px}.app-shell .lang-chip{border:1px solid hsl(var(--border));border-radius:calc(var(--radius) - 2px);background:hsl(var(--background));cursor:pointer;-webkit-user-select:none;user-select:none;justify-content:space-between;align-items:center;gap:6px;padding:6px 10px;font-family:inherit;font-size:12px;transition:all .12s;display:inline-flex}.app-shell .lang-chip:hover{background:hsl(var(--accent))}.app-shell .lang-chip[data-selected=true]{border-color:hsl(var(--brand));background:hsl(var(--brand-soft))}.app-shell .lang-chip .code{color:hsl(var(--muted-foreground));background:hsl(var(--muted));border-radius:4px;padding:1px 5px;font-family:JetBrains Mono,monospace;font-size:10px}.app-shell .lang-chip[data-selected=true] .code{background:hsl(var(--brand) / .15);color:hsl(var(--brand))}.app-shell .tag-row{background:hsl(var(--muted));color:hsl(var(--foreground));border-radius:999px;align-items:center;gap:4px;padding:4px 4px 4px 10px;font-size:12px;display:inline-flex}.app-shell .tag-row button{width:18px;height:18px;color:hsl(var(--muted-foreground));cursor:pointer;background:0 0;border:0;border-radius:999px;justify-content:center;align-items:center;font-family:inherit;display:inline-flex}.app-shell .tag-row button:hover{background:hsl(var(--foreground) / .08);color:hsl(var(--foreground))}.app-shell .kpi{border-radius:6px;align-items:center;gap:4px;padding:2px 8px;font-family:JetBrains Mono,monospace;font-size:12px;font-weight:500;display:inline-flex}.app-shell .kpi.up{color:#1a9948;background:#e9fbf0}.app-shell .kpi.down{color:hsl(var(--destructive));background:hsl(var(--destructive) / .1)}.app-shell .kpi.neutral{color:hsl(var(--muted-foreground));background:hsl(var(--muted))}.app-shell .toast{background:hsl(var(--primary));color:hsl(var(--primary-foreground));border-radius:calc(var(--radius) - 2px);box-shadow:0 10px 38px hsl(var(--foreground) / .15), 0 0 0 1px hsl(var(--border));opacity:0;z-index:100;pointer-events:none;padding:10px 18px;font-size:13px;font-weight:500;transition:transform .2s,opacity .2s;position:fixed;bottom:24px;left:50%;transform:translate(-50%)translateY(60px)}.app-shell .toast[data-show=true]{opacity:1;transform:translate(-50%)translateY(0)}.app-shell a.link{color:hsl(var(--foreground));text-decoration:underline;-webkit-text-decoration-color:hsl(var(--muted-foreground));text-decoration-color:hsl(var(--muted-foreground));text-underline-offset:3px}.app-shell a.link:hover{-webkit-text-decoration-color:hsl(var(--foreground));text-decoration-color:hsl(var(--foreground))}.app-shell .cluster-panel{background:hsl(var(--muted) / .4);border-top:1px solid hsl(var(--border));padding:16px 22px}.app-shell .cluster-card{background:hsl(var(--background));border:1px solid hsl(var(--border));border-radius:var(--radius);margin-bottom:8px;padding:12px 14px}.app-shell .opt-card{border-radius:var(--radius);border:1px solid hsl(var(--border));background:hsl(var(--card));margin-bottom:12px;overflow:hidden}.app-shell .kpi-card{background:hsl(var(--card));border:1px solid hsl(var(--border));border-radius:var(--radius);flex:1;padding:16px 18px}.app-shell .kpi-card-label{text-transform:uppercase;letter-spacing:.08em;color:hsl(var(--muted-foreground));margin-bottom:8px;font-size:11px;font-weight:500}.app-shell .kpi-card-value{letter-spacing:-.02em;font-family:JetBrains Mono,monospace;font-size:24px;font-weight:600}.app-shell .kpi-card-hint{color:hsl(var(--muted-foreground));margin-top:4px;font-size:11px}.app-shell .kpi-strip{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px;display:grid}.app-shell .opp-card--priority{border-color:hsl(var(--brand-soft-border));box-shadow:inset 3px 0 0 hsl(var(--brand))}.app-shell .settings-grid{grid-template-columns:200px 1fr;gap:40px;display:grid}.app-shell .settings-subnav{align-self:start;position:sticky;top:80px}.app-shell .diff-bar{background:hsl(var(--muted));vertical-align:middle;border-radius:2px;width:40px;height:4px;display:inline-flex;overflow:hidden}.app-shell .diff-bar-fill{border-radius:2px;height:100%}.app-shell .notif-popover{background:hsl(var(--card));border:1px solid hsl(var(--border));border-radius:var(--radius);width:360px;max-height:480px;box-shadow:0 10px 32px hsl(var(--foreground) / .12);z-index:30;position:absolute;top:calc(100% + 6px);right:0;overflow-y:auto}.app-shell .history-popover{background:hsl(var(--card));border:1px solid hsl(var(--border));border-radius:var(--radius);width:320px;box-shadow:0 10px 32px hsl(var(--foreground) / .12);z-index:20;padding:6px;position:absolute;top:calc(100% + 6px);right:0}.app-shell h1,.app-shell h2,.app-shell h3,.app-shell h4,.app-shell h5,.app-shell h6{color:hsl(var(--foreground));text-align:unset;font-family:Inter,system-ui,sans-serif}.app-shell .draft-preview{min-height:unset;color:hsl(var(--foreground));background:0 0;border:none;border-radius:0;padding:0;font-family:Inter,system-ui,sans-serif;font-size:14px;line-height:1.7}.app-shell .draft-preview h1,.app-shell .draft-preview h2,.app-shell .draft-preview h3,.app-shell .draft-preview h4{color:hsl(var(--foreground))!important;font-family:Inter,system-ui,sans-serif!important}.app-shell .draft-preview h1{letter-spacing:-.02em;margin:0 0 20px;font-size:28px;font-weight:700;line-height:1.2}.app-shell .draft-preview h2{letter-spacing:-.01em;margin:32px 0 12px;font-size:20px;font-weight:600;line-height:1.3}.app-shell .draft-preview h3{margin:20px 0 8px;font-size:16px;font-weight:600}.app-shell .draft-preview h4{margin:16px 0 6px;font-size:14px;font-weight:600}.app-shell .draft-preview>p:first-of-type{color:hsl(var(--foreground));margin-bottom:20px;font-size:15px}.app-shell .draft-preview p{color:hsl(var(--foreground));margin:0 0 14px}.app-shell .draft-preview ul,.app-shell .draft-preview ol{margin:0 0 14px;padding-left:22px}.app-shell .draft-preview li{margin-bottom:5px}.app-shell .draft-preview code{background:hsl(var(--muted));border-radius:4px;padding:2px 5px;font-family:JetBrains Mono,monospace;font-size:12px}.app-shell .draft-preview pre{background:hsl(var(--muted));border-radius:var(--radius);margin:0 0 14px;padding:16px;font-family:JetBrains Mono,monospace;font-size:12px;overflow-x:auto}.app-shell .draft-preview pre code{background:0 0;padding:0}.app-shell .draft-preview strong{font-weight:600}.app-shell .draft-preview a{color:hsl(var(--brand));text-underline-offset:3px}.app-shell .sidebar-wordmark{letter-spacing:-.01em;font-family:Instrument Serif,Georgia,serif;font-size:21px;font-weight:400}.app-shell .verdict-strip{border-radius:var(--radius);align-items:center;gap:12px;margin-bottom:16px;padding:12px 14px;font-size:13px;line-height:1.5;display:flex}.app-shell .step-item{background:hsl(var(--background));border:1px solid hsl(var(--border));border-radius:var(--radius);align-items:flex-start;gap:12px;padding:12px 14px;display:flex}.app-shell .step-num{color:#fff;border-radius:999px;flex-shrink:0;justify-content:center;align-items:center;width:22px;height:22px;margin-top:1px;font-size:11px;font-weight:600;display:flex}.app-shell .step-body{background:hsl(var(--muted) / .4);border:1px solid hsl(var(--border));border-radius:var(--radius);margin-top:8px;padding:10px 12px;font-size:13px;line-height:1.6}.app-shell.ob-split{grid-template-columns:1.05fr .95fr;min-height:100vh;display:grid}.app-shell .ob-panel{background:linear-gradient(155deg, hsl(var(--brand) / .85) 0%, hsl(var(--brand) / .7) 60%, #24246b 100%);color:#fff;flex-direction:column;gap:28px;padding:48px 46px;display:flex;position:relative;overflow:hidden}.app-shell .ob-panel-dot-grid{opacity:.4;pointer-events:none;background-image:radial-gradient(#ffffff24 1px,#0000 1.4px);background-size:22px 22px;position:absolute;inset:0;-webkit-mask-image:linear-gradient(160deg,#000 10%,#0000 70%);mask-image:linear-gradient(160deg,#000 10%,#0000 70%)}.app-shell .ob-panel-wordmark{font-size:22px;position:relative;color:#fff!important}.app-shell .ob-panel-copy{flex-direction:column;gap:10px;display:flex;position:relative}.app-shell .ob-panel-head{letter-spacing:-.02em;color:#fff;max-width:380px;margin:0;font-size:28px;font-weight:700;line-height:1.2}.app-shell .ob-panel-sub{color:#ffffffc7;max-width:380px;margin:0;font-size:14px;line-height:1.6}.app-shell .ob-panel-steps{flex-direction:column;gap:2px;margin:0;padding:0;list-style:none;display:flex;position:relative}.app-shell .ob-panel-step{opacity:.55;align-items:center;gap:12px;padding:8px 0;display:flex}.app-shell .ob-panel-step.active,.app-shell .ob-panel-step.done{opacity:1}.app-shell .ob-panel-step-dot{color:#ffffffb3;background:#ffffff1f;border:1px solid #ffffff40;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:28px;height:28px;font-size:12px;font-weight:600;display:flex}.app-shell .ob-panel-step.active .ob-panel-step-dot{color:hsl(var(--brand));background:#fff;border:none}.app-shell .ob-panel-step.done .ob-panel-step-dot{color:#fff;background:#ffffff40;border:none}.app-shell .ob-panel-step-label{color:#ffffffb8;font-size:14px;font-weight:500}.app-shell .ob-panel-step.active .ob-panel-step-label{color:#fff;font-weight:700}.app-shell .ob-panel-step-here{letter-spacing:.06em;text-transform:uppercase;color:#fff9;margin-left:auto;font-size:11px;font-weight:700}.app-shell .ob-panel-footer{color:#fff9;align-items:center;gap:8px;margin-top:auto;font-size:12.5px;display:flex}.app-shell .ob-right{background:hsl(var(--background));flex-direction:column;justify-content:center;min-height:100vh;padding:40px 7%;display:flex;overflow-y:auto}.app-shell .ob-right-inner{width:100%;max-width:460px;margin:0 auto}.app-shell .ob-right-topbar{justify-content:space-between;align-items:center;margin-bottom:14px;display:flex}.app-shell .ob-back-btn{font:inherit;color:hsl(var(--muted-foreground));cursor:pointer;background:0 0;border:0;align-items:center;gap:5px;padding:0;font-size:13px;font-weight:600;transition:color .12s;display:inline-flex}.app-shell .ob-back-btn:not(:disabled):hover{color:hsl(var(--foreground))}.app-shell .ob-back-btn:disabled{opacity:.35;cursor:default}.app-shell .ob-step-count{color:hsl(var(--muted-foreground));font-size:12px;font-weight:600}.app-shell .ob-progress{align-items:center;gap:5px;display:flex}.app-shell .ob-progress-pill{background:hsl(var(--border));border-radius:3px;flex:1;height:5px;transition:background .25s}.app-shell .ob-progress-pill.active{background:hsl(var(--brand))}@media (max-width:860px){.app-shell.ob-split{grid-template-columns:1fr}.app-shell .ob-panel{display:none}.app-shell .ob-right{padding:40px 24px}}@media (max-width:520px){.app-shell .ob-right{padding:32px 20px}}.app-shell .ob-steps{align-items:flex-start;gap:0;margin-bottom:24px;display:flex}.app-shell .ob-step{flex-direction:column;align-items:center;gap:0;display:flex}.app-shell .ob-step-inner{align-items:center;width:100%;display:flex}.app-shell .ob-step-dot{border:1.6px solid hsl(var(--border));background:hsl(var(--card));width:28px;height:28px;color:hsl(var(--muted-foreground));z-index:1;border-radius:999px;flex-shrink:0;justify-content:center;align-items:center;font-size:13px;font-weight:600;transition:all .15s;display:flex;position:relative}.app-shell .ob-step-dot.active{border-color:hsl(var(--brand));background:hsl(var(--brand));color:#fff;box-shadow:0 0 0 4px hsl(var(--brand-soft))}.app-shell .ob-step-dot.done{border-color:hsl(var(--brand));background:hsl(var(--brand));color:#fff}.app-shell .ob-step-label{letter-spacing:.01em;color:hsl(var(--muted-foreground));white-space:nowrap;margin-top:7px;font-size:11px;font-weight:600}.app-shell .ob-step-label.active{color:hsl(var(--foreground))}.app-shell .ob-step-line{background:hsl(var(--border));border-radius:2px;flex:1;min-width:24px;height:2px;margin:0 6px 22px;transition:background .2s}.app-shell .ob-step-line.done{background:hsl(var(--brand))}.app-shell .ob-lang-grid{grid-template-columns:1fr 1fr;gap:8px;margin-bottom:16px;display:grid}.app-shell .ob-lang-opt{border:1px solid hsl(var(--border));border-radius:var(--radius);background:hsl(var(--background));cursor:pointer;color:hsl(var(--foreground));align-items:center;gap:10px;padding:10px 14px;font-size:13px;font-weight:500;transition:all .12s;display:flex}.app-shell .ob-lang-opt:hover{border-color:hsl(var(--brand));background:hsl(var(--brand-soft))}.app-shell .ob-lang-opt.selected{border-color:hsl(var(--brand));background:hsl(var(--brand-soft));color:hsl(var(--brand))}.app-shell .ob-lang-opt.at-cap{opacity:.4;cursor:not-allowed;pointer-events:none}.app-shell .ob-lang-check{border:2px solid hsl(var(--border));border-radius:999px;flex-shrink:0;justify-content:center;align-items:center;width:16px;height:16px;margin-left:auto;transition:all .12s;display:flex}.app-shell .ob-lang-opt.selected .ob-lang-check{background:hsl(var(--brand));border-color:hsl(var(--brand))}.app-shell .ob-comp-chip{border:1px solid hsl(var(--border));background:hsl(var(--muted));border-radius:999px;align-items:center;gap:6px;padding:5px 10px;font-family:JetBrains Mono,monospace;font-size:12px;display:inline-flex}.app-shell .ob-comp-remove{background:hsl(var(--muted-foreground) / .2);width:16px;height:16px;color:hsl(var(--muted-foreground));cursor:pointer;border:none;border-radius:999px;flex-shrink:0;justify-content:center;align-items:center;padding:0;font-size:11px;line-height:1;display:flex}.app-shell .ob-comp-remove:hover{background:hsl(var(--destructive) / .15);color:hsl(var(--destructive))}.app-shell .ob-btn-primary{border:none;height:auto;padding:12px 22px;font-size:14.5px;font-weight:600;box-shadow:0 1px 2px #3c28a040,0 8px 18px -8px #3c28a080}.app-shell .ob-btn-primary:hover:not(:disabled){box-shadow:0 1px 4px #3c28a04d,0 12px 24px -8px #3c28a08c}.app-shell .ob-btn-back{height:auto;padding:11px 16px;font-size:14px;font-weight:600}.app-shell .ob-benefit-card{border:1px solid hsl(var(--border));border-radius:var(--radius);background:hsl(var(--muted) / .4);margin-bottom:20px;padding:18px 20px}.app-shell .ob-benefit-row{color:hsl(var(--muted-foreground));align-items:baseline;gap:8px;padding:4px 0;font-size:13px;display:flex}.app-shell .ob-benefit-dot{background:hsl(var(--brand));border-radius:999px;flex-shrink:0;width:5px;height:5px;margin-top:6px}:root{--opt-green:156 55% 38%;--opt-green-tint:156 55% 95%;--opt-green-ink:156 45% 28%;--opt-amber-tint:48 96% 93%;--opt-amber-ink:38 75% 30%;--opt-brand-ink:232 50% 33%;--opt-r-sm:7px;--opt-r-md:11px;--opt-r-lg:16px;--opt-r-xl:22px;--opt-shadow-card:0 1px 2px #1416280a, 0 8px 24px -12px #1416281a}.app-shell .opt-card-v2{border-radius:var(--opt-r-xl);border:1px solid hsl(var(--border));background:hsl(var(--card));box-shadow:var(--opt-shadow-card);margin-bottom:14px;overflow:hidden}.app-shell .opt-card-v2-body{flex-direction:column;gap:20px;padding:28px 30px 30px;display:flex}.app-shell .opt-eyebrow-v2{letter-spacing:.1em;text-transform:uppercase;white-space:nowrap;align-items:center;gap:7px;font-size:11.5px;font-weight:700;display:inline-flex}.app-shell .opt-pill{white-space:nowrap;border-radius:999px;align-items:center;gap:5px;padding:5px 9px;font-size:11px;font-weight:600;line-height:1;display:inline-flex}.app-shell .opt-pill-rank{background:hsl(var(--opt-green-tint));color:hsl(var(--opt-green-ink));font-family:JetBrains Mono,monospace}.app-shell .opt-pill-green{background:hsl(var(--opt-green-tint));color:hsl(var(--opt-green-ink))}.app-shell .opt-pill-brand{background:hsl(var(--brand-soft));color:hsl(var(--opt-brand-ink))}.app-shell .opt-pill-amber{background:hsl(var(--opt-amber-tint));color:hsl(var(--opt-amber-ink))}.app-shell .opt-pill-neutral{background:hsl(var(--muted));color:hsl(var(--muted-foreground))}.app-shell .opt-progress-track{background:hsl(var(--muted));border-radius:999px;height:5px;overflow:hidden}.app-shell .opt-progress-fill{background:hsl(var(--brand));border-radius:999px;height:100%;transition:width .4s cubic-bezier(.4,0,.2,1)}.app-shell .opt-progress-fill.is-done{background:hsl(var(--opt-green))}.app-shell .opt-step-tab{border-radius:var(--opt-r-sm);border:1px solid hsl(var(--border));background:hsl(var(--muted));color:hsl(var(--muted-foreground));cursor:pointer;flex:1;justify-content:center;align-items:center;gap:5px;padding:8px 10px;font-family:inherit;font-size:12px;font-weight:700;transition:all .15s;display:flex}.app-shell .opt-step-tab.is-active{background:hsl(var(--brand-soft));border-color:hsl(var(--brand));color:hsl(var(--opt-brand-ink))}.app-shell .opt-step-tab.is-applied{background:hsl(var(--opt-green-tint));border-color:hsl(var(--opt-green) / .45);color:hsl(var(--opt-green-ink))}.app-shell .opt-stepnum{background:hsl(var(--brand-soft));width:26px;height:26px;color:hsl(var(--opt-brand-ink));border-radius:8px;flex:none;justify-content:center;align-items:center;font-family:JetBrains Mono,monospace;font-size:13px;font-weight:600;transition:all .15s;display:flex}.app-shell .opt-stepnum.is-applied{background:hsl(var(--opt-green-tint));color:hsl(var(--opt-green-ink))}.app-shell .opt-step-card{border:1px solid hsl(var(--border));border-radius:var(--opt-r-xl);background:hsl(var(--card));flex-direction:column;gap:16px;padding:22px 24px;display:flex}.app-shell .opt-h2-old{border-radius:var(--opt-r-md);border:1px dashed hsl(var(--border));color:hsl(var(--muted-foreground));text-decoration:line-through;-webkit-text-decoration-color:hsl(var(--muted-foreground) / .4);text-decoration-color:hsl(var(--muted-foreground) / .4);background:0 0;padding:14px 16px;font-size:14.5px;line-height:1.4}.app-shell .opt-h2-new{border-radius:var(--opt-r-md);background:hsl(var(--brand-soft));border:1px solid hsl(var(--brand-soft-border));color:hsl(var(--opt-brand-ink));padding:14px 16px;font-size:15px;font-weight:700;line-height:1.35}.app-shell .opt-preview{border:1px solid hsl(var(--border));border-radius:var(--opt-r-md);background:hsl(var(--muted));color:hsl(var(--foreground));padding:14px 16px;font-size:14px;line-height:1.7}.app-shell .opt-quality-tag{color:hsl(var(--opt-green-ink));background:hsl(var(--opt-green-tint));border-radius:999px;align-items:center;gap:5px;padding:4px 10px;font-size:11.5px;font-weight:600;display:inline-flex}.app-shell .opt-copy-btn{white-space:nowrap;color:hsl(var(--muted-foreground));background:hsl(var(--card));border:1px solid hsl(var(--border));border-radius:var(--opt-r-sm);cursor:pointer;align-items:center;gap:6px;padding:8px 12px;font-family:inherit;font-size:12.5px;font-weight:600;transition:all .14s;display:inline-flex}.app-shell .opt-copy-btn:hover{color:hsl(var(--foreground));border-color:hsl(var(--muted-foreground))}.app-shell .opt-copy-btn.is-copied{color:hsl(var(--opt-green-ink));border-color:hsl(var(--opt-green) / .45);background:hsl(var(--opt-green-tint))}.app-shell .opt-action-btn{white-space:nowrap;cursor:pointer;border-radius:var(--opt-r-md);background:hsl(var(--brand));color:#fff;border:1px solid #0000;justify-content:center;align-items:center;gap:8px;padding:11px 18px;font-family:inherit;font-size:14px;font-weight:600;line-height:1;transition:all .15s;display:inline-flex;box-shadow:0 1px 2px #3c28a02e,0 6px 16px -8px #3c28a059}.app-shell .opt-action-btn:hover{filter:brightness(1.08);transform:translateY(-1px)}.app-shell .opt-action-btn.is-applied{background:hsl(var(--opt-green));box-shadow:none}.app-shell .opt-action-btn:hover.is-applied{filter:brightness(1.05)}.app-shell .opt-ghost-btn{color:hsl(var(--muted-foreground));background:hsl(var(--card));border:1px solid hsl(var(--border));border-radius:var(--opt-r-md);cursor:pointer;align-items:center;gap:8px;padding:11px 16px;font-family:inherit;font-size:13.5px;font-weight:600;transition:all .15s;display:inline-flex}.app-shell .opt-ghost-btn:hover{border-color:hsl(var(--muted-foreground));color:hsl(var(--foreground))}.app-shell .subtabs-v2{border-bottom:1px solid hsl(var(--border));scrollbar-width:none;align-items:center;margin-bottom:24px;padding:0 2px;display:flex;overflow-x:auto}.app-shell .subtabs-v2::-webkit-scrollbar{display:none}.app-shell .subtab-v2{cursor:pointer;white-space:nowrap;color:hsl(var(--muted-foreground));background:0 0;border:0;border-bottom:2px solid #0000;flex-shrink:0;align-items:center;gap:6px;margin:0 7px -1px;padding:14px 3px;font-family:inherit;transition:color .15s;display:flex}.app-shell .subtab-v2:hover{color:hsl(var(--foreground))}.app-shell .subtab-v2.is-active{color:hsl(var(--foreground));border-bottom-color:hsl(var(--brand))}.app-shell .subtab-v2 svg{color:hsl(var(--muted-foreground));flex-shrink:0;transition:color .15s}.app-shell .subtab-v2:hover svg{color:hsl(var(--foreground))}.app-shell .subtab-v2.is-active svg{color:hsl(var(--brand))}.app-shell .subtab-v2 .tab-label{font-size:12.5px;font-weight:600}.app-shell .subtab-v2 .tab-count{background:hsl(var(--muted));min-width:18px;height:18px;color:hsl(var(--muted-foreground));border-radius:999px;justify-content:center;align-items:center;padding:0 4px;font-family:JetBrains Mono,monospace;font-size:10.5px;font-weight:600;transition:all .15s;display:inline-flex}.app-shell .subtab-v2.is-active .tab-count{background:hsl(var(--foreground));color:hsl(var(--background))}.app-shell .subtab-v2 .tab-range{color:hsl(var(--muted-foreground) / .65);font-family:JetBrains Mono,monospace;font-size:10.5px}.app-shell .opt-alert-v2{border-radius:var(--opt-r-lg);background:hsl(var(--brand-soft));border:1px solid hsl(var(--brand-soft-border));color:hsl(var(--foreground));align-items:flex-start;gap:12px;margin-bottom:20px;padding:13px 16px;font-size:13.5px;line-height:1.5;display:flex}.app-shell .opt-alert-v2.is-warn{background:hsl(var(--warn-soft));border-color:hsl(var(--warn) / .35)}.app-shell .opt-card-compact{border-radius:var(--opt-r-xl);border:1px solid hsl(var(--border));background:hsl(var(--card));opacity:.55;align-items:center;gap:14px;margin-bottom:14px;padding:16px 22px;display:flex}.app-shell .opt-expand-body{border-top:1px solid hsl(var(--border));background:hsl(var(--muted) / .3);flex-direction:column;gap:14px;padding:22px 24px;display:flex}.app-shell .step-item-v2{background:hsl(var(--card));border:1px solid hsl(var(--border));border-radius:var(--opt-r-md);align-items:flex-start;gap:12px;padding:14px 16px;display:flex}.app-shell .step-num-v2{color:#fff;border-radius:999px;flex-shrink:0;justify-content:center;align-items:center;width:24px;height:24px;margin-top:1px;font-size:11px;font-weight:600;display:flex}.app-shell .step-body-v2{background:hsl(var(--muted) / .5);border:1px solid hsl(var(--border));border-radius:var(--opt-r-md);margin-top:8px;padding:10px 12px;font-size:13px;line-height:1.6}.app-shell .nav-toggle,.app-shell .nav-scrim{display:none}@media (max-width:768px){.app-shell{grid-template-columns:1fr;height:auto;min-height:100dvh;overflow:visible}.app-shell .sidebar{z-index:60;border-right:1px solid hsl(var(--border));width:264px;max-width:84vw;height:100dvh;transition:transform .22s;position:fixed;top:0;left:0;transform:translate(-100%)}.app-shell .sidebar[data-open=true]{transform:translate(0);box-shadow:6px 0 28px #00000038}.app-shell .nav-scrim{z-index:55;background:#00000073;display:block;position:fixed;inset:0}.app-shell .main-col{height:auto;overflow:visible}.app-shell .topbar{gap:8px;height:52px;padding:0 14px}.app-shell .nav-toggle{display:inline-flex}.app-shell .topbar-tour,.app-shell .topbar-feedback,.app-shell .next-brief-pill,.app-shell .crumb-domain,.app-shell .crumb-domain-icon{display:none}.app-shell .crumb{min-width:0;font-size:14px}.app-shell .crumb strong{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.app-shell .main{max-width:none;padding:20px 16px 64px}.app-shell .page-header{margin-bottom:20px}.app-shell .page-title{font-size:20px}.app-shell .opp-card{padding:16px}.app-shell .opt-card-v2-body{padding:20px 16px}.app-shell .opp-stats{gap:18px}.app-shell .settings-grid{grid-template-columns:1fr;gap:20px}.app-shell .result-row{flex-direction:column;align-items:stretch!important;gap:12px!important}.app-shell .result-head{width:100%}.app-shell .result-url{overflow-wrap:anywhere;word-break:break-word}.app-shell .result-metrics{border-top:1px solid hsl(var(--border));flex-wrap:wrap;width:100%;padding-top:12px;justify-content:space-between!important;gap:14px!important}.app-shell .result-actions{width:100%}.app-shell .result-actions .btn{flex:1}.app-shell .cal-root{margin-left:0!important;margin-right:0!important;padding-top:8px!important}.app-shell .cal-inset{margin-left:0!important;margin-right:0!important;padding-left:0!important;padding-right:0!important}.app-shell .cal-cell{height:auto!important;min-height:56px!important;padding:5px!important}.app-shell .cal-dots{flex-wrap:wrap;flex-direction:row!important;gap:4px!important}.app-shell .cal-dot-text{display:none}}
