:root{
  color-scheme:dark;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  --bg:#070910;
  --bg-2:#0b0f19;
  --surface:rgba(17,22,35,.84);
  --surface-strong:#111827;
  --surface-soft:#0d1320;
  --surface-hover:#151d2e;
  --border:rgba(148,163,184,.14);
  --border-strong:rgba(148,163,184,.24);
  --text:#f8fafc;
  --muted:#94a3b8;
  --muted-2:#64748b;
  --primary:#7c3aed;
  --primary-2:#2563eb;
  --primary-soft:rgba(124,58,237,.16);
  --cyan:#22d3ee;
  --ok:#34d399;
  --warn:#fbbf24;
  --err:#fb7185;
  --shadow:0 24px 70px rgba(0,0,0,.34);
  --shadow-soft:0 12px 34px rgba(0,0,0,.22);
  --radius-xl:26px;
  --radius-lg:20px;
  --radius-md:14px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;background:var(--bg)}
body{
  margin:0;
  min-height:100vh;
  background:
    radial-gradient(circle at 10% -5%,rgba(124,58,237,.22),transparent 33rem),
    radial-gradient(circle at 95% 12%,rgba(37,99,235,.18),transparent 28rem),
    linear-gradient(180deg,#080b13 0%,#070910 48%,#090b12 100%);
  color:var(--text);
  line-height:1.5;
  overflow-x:hidden;
}
body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  opacity:.23;
  background-image:linear-gradient(rgba(255,255,255,.018) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.018) 1px,transparent 1px);
  background-size:34px 34px;
  mask-image:linear-gradient(to bottom,black,transparent 75%);
}
::selection{background:rgba(124,58,237,.4);color:white}
a{color:inherit}
button,input,textarea,select{font:inherit}
button,a,input,textarea,select{outline:none}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{
  box-shadow:0 0 0 3px rgba(96,165,250,.2),0 0 0 1px #60a5fa;
}
.topbar{
  position:sticky;
  top:0;
  z-index:50;
  border-bottom:1px solid rgba(148,163,184,.1);
  background:rgba(7,9,16,.76);
  backdrop-filter:blur(24px) saturate(140%);
}
.topbar-inner{
  width:min(1180px,calc(100% - 32px));
  min-height:72px;
  margin:0 auto;
  display:flex;
  align-items:center;
  gap:24px;
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
  min-width:max-content;
}
.brand-mark{
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  border-radius:12px;
  font-size:14px;
  font-weight:900;
  letter-spacing:-.04em;
  background:linear-gradient(135deg,var(--primary),var(--primary-2));
  box-shadow:0 8px 24px rgba(84,70,255,.35),inset 0 1px 0 rgba(255,255,255,.25);
}
.brand-copy{display:grid;line-height:1.08}
.brand-copy strong{font-size:15px;letter-spacing:-.02em}
.brand-copy small{margin-top:5px;color:var(--muted-2);font-size:10px;text-transform:uppercase;letter-spacing:.12em}
.desktop-nav{display:flex;align-items:center;gap:4px;margin-left:auto}
.desktop-nav a{
  color:var(--muted);
  text-decoration:none;
  font-size:13px;
  font-weight:700;
  padding:10px 12px;
  border-radius:10px;
  transition:.2s ease;
}
.desktop-nav a:hover{color:white;background:rgba(255,255,255,.055)}
.secure-chip{
  min-width:max-content;
  display:flex;
  align-items:center;
  gap:8px;
  color:#d7e3f5;
  font-size:12px;
  font-weight:800;
  padding:8px 11px;
  border:1px solid rgba(52,211,153,.16);
  background:rgba(16,185,129,.08);
  border-radius:999px;
}
.secure-chip span,.status-dot,.eyebrow-dot{
  width:8px;
  height:8px;
  border-radius:999px;
  background:var(--ok);
  box-shadow:0 0 0 4px rgba(52,211,153,.11),0 0 18px rgba(52,211,153,.6);
}
.app-shell{
  position:relative;
  z-index:1;
  width:min(1180px,calc(100% - 32px));
  margin:0 auto;
  padding:34px 0 80px;
}
.hero{
  display:grid;
  grid-template-columns:minmax(0,1.6fr) minmax(300px,.7fr);
  gap:22px;
  align-items:stretch;
  margin:6px 0 24px;
}
.hero-copy,.hero-panel{
  border:1px solid var(--border);
  box-shadow:var(--shadow-soft);
  overflow:hidden;
}
.hero-copy{
  position:relative;
  min-height:370px;
  padding:44px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  border-radius:var(--radius-xl);
  background:
    radial-gradient(circle at 85% 15%,rgba(34,211,238,.11),transparent 22rem),
    radial-gradient(circle at 5% 100%,rgba(124,58,237,.2),transparent 28rem),
    linear-gradient(145deg,rgba(18,24,39,.96),rgba(10,14,24,.93));
}
.hero-copy::after{
  content:"";
  position:absolute;
  right:-70px;
  bottom:-95px;
  width:320px;
  height:320px;
  border:1px solid rgba(255,255,255,.05);
  border-radius:50%;
  box-shadow:0 0 0 55px rgba(255,255,255,.018),0 0 0 110px rgba(255,255,255,.012);
}
.eyebrow,.section-kicker{
  color:#a5b4fc;
  font-size:11px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.15em;
}
.eyebrow{display:flex;align-items:center;gap:10px;margin-bottom:18px}
.eyebrow-dot{width:7px;height:7px;background:#818cf8;box-shadow:0 0 16px rgba(129,140,248,.85)}
.hero h1{
  position:relative;
  z-index:1;
  margin:0;
  max-width:760px;
  font-size:clamp(42px,6vw,72px);
  line-height:.96;
  letter-spacing:-.058em;
  font-weight:850;
}
.hero h1 span{
  background:linear-gradient(90deg,#c4b5fd 0%,#93c5fd 42%,#67e8f9 100%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.hero-lead{
  position:relative;
  z-index:1;
  max-width:690px;
  margin:22px 0 0;
  color:#a7b2c5;
  font-size:15px;
  line-height:1.7;
}
.hero-actions{
  position:relative;
  z-index:2;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:28px;
}
.action-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:0 17px;
  border-radius:12px;
  border:1px solid var(--border-strong);
  background:rgba(255,255,255,.04);
  color:#e5edf8;
  font-size:13px;
  font-weight:850;
  text-decoration:none;
  transition:.2s ease;
}
.action-link:hover{transform:translateY(-1px);background:rgba(255,255,255,.075)}
.action-link.primary{
  border-color:rgba(129,140,248,.38);
  background:linear-gradient(135deg,#7c3aed,#2563eb);
  color:white;
  box-shadow:0 12px 28px rgba(67,56,202,.28);
}
.hero-panel{
  padding:22px;
  border-radius:var(--radius-xl);
  background:linear-gradient(180deg,rgba(17,24,39,.9),rgba(10,14,23,.94));
  display:flex;
  flex-direction:column;
}
.hero-panel-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding-bottom:18px;
  border-bottom:1px solid var(--border);
  font-size:12px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.11em;
  color:#cbd5e1;
}
.hero-signal{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:17px 0;
  border-bottom:1px solid var(--border);
  font-size:13px;
  color:var(--muted);
}
.hero-signal strong{color:#f8fafc;font-size:12px}
.hero-panel-foot{margin-top:auto;padding-top:18px;color:var(--muted-2);font-size:11px;line-height:1.55}
.overview-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
  margin-bottom:18px;
}
.card{
  position:relative;
  margin:18px 0;
  padding:22px;
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  background:linear-gradient(180deg,rgba(18,24,38,.88),rgba(12,16,27,.88));
  box-shadow:var(--shadow-soft);
  backdrop-filter:blur(18px);
}
.overview-grid .card{margin:0;min-height:100%}
.card::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  border-radius:inherit;
  background:linear-gradient(135deg,rgba(255,255,255,.025),transparent 42%);
}
.card-heading,.finding-head{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.card-heading{margin-bottom:18px}
.card-icon{
  display:grid;
  place-items:center;
  min-width:42px;
  height:42px;
  padding:0 8px;
  border-radius:12px;
  background:linear-gradient(145deg,rgba(124,58,237,.2),rgba(37,99,235,.12));
  border:1px solid rgba(129,140,248,.18);
  color:#c4b5fd;
  font-size:10px;
  font-weight:900;
  letter-spacing:.08em;
}
h1,h2,h3,h4{color:var(--text)}
h2{margin:4px 0 0;font-size:20px;line-height:1.15;letter-spacing:-.025em}
h3{margin:0 0 6px;font-size:14px;color:#d7dfeb;letter-spacing:-.01em}
h4{margin:15px 0 7px;font-size:12px;color:#cbd5e1;text-transform:uppercase;letter-spacing:.08em}
.section-gap{margin-top:24px}
label{
  display:block;
  margin:12px 0 7px;
  color:#aeb9ca;
  font-size:11px;
  font-weight:800;
  letter-spacing:.025em;
}
.field-grid,.grid,.filter-row{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
input,textarea,select{
  width:100%;
  border:1px solid rgba(148,163,184,.15);
  border-radius:13px;
  background:rgba(5,9,17,.72);
  color:#edf3fb;
  transition:border-color .18s ease,background .18s ease,box-shadow .18s ease;
}
input,select{min-height:47px;padding:0 13px}
textarea{padding:13px;resize:vertical;line-height:1.5}
input::placeholder,textarea::placeholder{color:#4f5d72}
input:hover,textarea:hover,select:hover{border-color:rgba(148,163,184,.27);background:rgba(8,13,23,.88)}
input:focus,textarea:focus,select:focus{border-color:rgba(96,165,250,.55);background:#080d17}
select{cursor:pointer}
input[type=file]{padding:10px;height:auto}
button{
  min-height:43px;
  width:auto;
  margin:0;
  padding:0 16px;
  border:1px solid rgba(129,140,248,.36);
  border-radius:12px;
  background:linear-gradient(135deg,#7c3aed,#2563eb);
  color:white;
  font-size:12px;
  font-weight:850;
  cursor:pointer;
  box-shadow:0 8px 22px rgba(67,56,202,.18);
  transition:transform .18s ease,filter .18s ease,border-color .18s ease,background .18s ease;
}
button:hover:not(:disabled){transform:translateY(-1px);filter:brightness(1.06)}
button:active:not(:disabled){transform:translateY(0)}
button.secondary{
  border-color:var(--border-strong);
  background:rgba(255,255,255,.045);
  color:#e5edf8;
  box-shadow:none;
}
button.secondary:hover:not(:disabled){background:rgba(255,255,255,.075)}
button.danger{
  border-color:rgba(251,113,133,.24);
  background:rgba(190,24,93,.14);
  color:#fecdd3;
  box-shadow:none;
}
button:disabled{opacity:.38;cursor:not-allowed;filter:saturate(.35)}
.button-row{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:9px;
  margin-top:14px;
}
.button-row button{flex:0 1 auto}
.muted{color:var(--muted);font-size:12px}
.compact{margin:5px 0 0;line-height:1.55}
.ok,.ok-text{color:var(--ok)}
.warn{color:var(--warn)}
.err,.err-text{color:var(--err)}
.pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:26px;
  padding:5px 9px;
  border:1px solid rgba(148,163,184,.12);
  border-radius:999px;
  background:rgba(148,163,184,.08);
  color:#c7d2e3;
  font-size:10px;
  font-weight:850;
  letter-spacing:.035em;
  white-space:nowrap;
}
.pill.ok{border-color:rgba(52,211,153,.18);background:rgba(16,185,129,.11);color:#86efac}
.pill.warn{border-color:rgba(251,191,36,.18);background:rgba(245,158,11,.11);color:#fde68a}
.pill.err{border-color:rgba(251,113,133,.2);background:rgba(244,63,94,.11);color:#fda4af}
.hidden{display:none!important}
pre{
  position:relative;
  margin:12px 0 0;
  padding:15px;
  max-height:380px;
  overflow:auto;
  white-space:pre-wrap;
  word-break:break-word;
  border:1px solid rgba(148,163,184,.11);
  border-radius:14px;
  background:#060912;
  color:#cbd5e1;
  font:11px/1.55 ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;
}
details{
  margin-top:9px;
  border-radius:12px;
}
summary{
  cursor:pointer;
  color:#cbd5e1;
  font-size:11px;
  font-weight:750;
}
summary:hover{color:white}
.launcher-card{
  padding:26px;
  border-color:rgba(129,140,248,.2);
  background:
    radial-gradient(circle at 100% 0,rgba(59,130,246,.07),transparent 28rem),
    linear-gradient(180deg,rgba(17,23,37,.94),rgba(10,14,24,.94));
}
.launcher-card>.finding-head{
  padding-bottom:20px;
  margin-bottom:18px;
  border-bottom:1px solid var(--border);
}
.launcher-card>.finding-head h2{font-size:24px}
.launcher-card textarea{font-family:inherit}
.launcher-card #h1ScopeJson{
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  font-size:12px;
}
.h1-control-center,.h1-run-monitor,.policy-preview{
  margin:14px 0 18px;
  padding:18px;
  border:1px solid rgba(148,163,184,.13);
  border-radius:16px;
  background:linear-gradient(180deg,rgba(7,11,20,.68),rgba(9,13,23,.82));
}
.h1-control-center>.finding-head,.h1-run-monitor>.finding-head{margin-bottom:12px}
.h1-program-picker{margin-top:8px}
.remote-meta,.fingerprint{margin-top:11px;overflow-wrap:anywhere}
.remote-meta{padding:10px 12px;border-radius:11px;background:rgba(255,255,255,.025);border:1px solid rgba(148,163,184,.09)}
.fingerprint{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:10px;color:#65758d}
.remote-scope-grid,.scope-preview-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  margin-top:15px;
}
.remote-scope-grid>div,.scope-preview-grid>div{
  min-width:0;
  padding:14px;
  border:1px solid rgba(148,163,184,.1);
  border-radius:14px;
  background:rgba(4,8,16,.42);
}
.remote-scope-grid strong,.scope-preview-grid strong{font-size:11px;color:#dbe5f2;text-transform:uppercase;letter-spacing:.055em}
.scope-table,.scope-exclusions{margin-top:9px;max-height:260px;overflow:auto}
.scope-asset-row,.scope-exclusion-row{
  padding:9px 0;
  border-top:1px solid rgba(148,163,184,.1);
  font-size:11px;
}
.scope-asset-row:first-child,.scope-exclusion-row:first-child{border-top:0}
.scope-asset-row code{display:block;color:#e2e8f0;overflow-wrap:anywhere}
.scope-asset-row span{display:block;margin-top:4px;color:var(--muted-2)}
.scope-list{
  display:flex;
  flex-direction:column;
  gap:7px;
  margin-top:8px;
  max-height:210px;
  overflow:auto;
}
.scope-list code{
  display:block;
  padding:8px 9px;
  border:1px solid rgba(148,163,184,.08);
  border-radius:9px;
  background:#070b13;
  color:#dce6f3;
  overflow-wrap:anywhere;
}
.check-stack{display:grid;gap:8px;margin:16px 0}
.check-row{
  display:flex;
  align-items:flex-start;
  gap:10px;
  margin:0;
  padding:11px 12px;
  border:1px solid rgba(148,163,184,.11);
  border-radius:12px;
  background:rgba(5,9,17,.58);
  color:#b8c3d3;
  font-size:12px;
  line-height:1.45;
}
.check-row:hover{border-color:rgba(129,140,248,.2)}
.check-row input{
  width:17px;
  min-width:17px;
  height:17px;
  min-height:0;
  margin:1px 0 0;
  padding:0;
  accent-color:#6366f1;
}
.file-label{margin-top:13px}
.safety-locks{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:17px;
  padding:13px;
  border:1px solid rgba(52,211,153,.12);
  border-radius:14px;
  background:rgba(16,185,129,.045);
  color:#9fe6c7;
  font-size:10px;
}
.safety-locks strong{width:100%;color:#c8f7df;text-transform:uppercase;letter-spacing:.08em}
.safety-locks span{
  padding:6px 9px;
  border:1px solid rgba(52,211,153,.08);
  border-radius:999px;
  background:rgba(16,185,129,.06);
}
.confirm-row{margin:15px 0 8px}
.stats,.h1-run-stats{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  margin-top:12px;
}
.stat,.h1-run-stats>div{
  min-width:0;
  min-height:82px;
  padding:12px;
  border:1px solid rgba(148,163,184,.1);
  border-radius:13px;
  background:linear-gradient(180deg,rgba(5,9,17,.62),rgba(8,12,21,.72));
}
.stat h3,.h1-run-stats span{margin:0;color:var(--muted-2);font-size:10px;text-transform:uppercase;letter-spacing:.07em}
.stat strong,.h1-run-stats strong{
  display:block;
  margin-top:8px;
  color:#f7fbff;
  font-size:17px;
  line-height:1.15;
  overflow-wrap:anywhere;
}
.meter{height:6px;margin:8px 0 2px;overflow:hidden;border-radius:999px;background:rgba(148,163,184,.11)}
.meter>span{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#8b5cf6,#3b82f6,#22d3ee)}
.budget-row{margin:12px 0}
.budget-head{display:flex;justify-content:space-between;gap:10px;color:var(--muted);font-size:10px}
.finding,.cluster,.review-item{
  padding:12px 0;
  border-top:1px solid rgba(148,163,184,.1);
}
.finding:first-child,.cluster:first-child,.review-item:first-child{border-top:0}
.filter-row{margin:12px 0}
.timeline{margin-top:12px}
.timeline-item{
  display:grid;
  grid-template-columns:14px 1fr;
  gap:10px;
  padding:11px 0;
  border-top:1px solid rgba(148,163,184,.1);
}
.timeline-item:first-child{border-top:0}
.timeline-dot{width:9px;height:9px;margin-top:6px;border-radius:999px;background:#64748b}
.timeline-dot.decision{background:var(--ok);box-shadow:0 0 14px rgba(52,211,153,.35)}
.timeline-dot.event{background:#60a5fa;box-shadow:0 0 14px rgba(96,165,250,.32)}
.timeline-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
.timeline-head .muted{white-space:nowrap}
.cluster-meta{margin-top:6px;color:var(--muted);font-size:11px}
.why-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:9px}
.why-block{
  padding:9px;
  border:1px solid rgba(148,163,184,.1);
  border-radius:10px;
  background:rgba(5,9,17,.5);
  font-size:11px;
}
.why-block strong{display:block;margin-bottom:3px}
.signal-diff-list{margin-top:8px}
.signal-diff{padding:7px 0;border-top:1px solid var(--border);font-size:11px}
.signal-diff:first-child{border-top:0}
.signal-diff strong{display:block;margin-bottom:2px}
.causal-summary{
  margin-top:8px;
  padding:10px 11px;
  border-left:3px solid #60a5fa;
  border-radius:8px;
  background:rgba(37,99,235,.08);
  color:#b9c8db;
  font-size:11px;
}
.stability-alert{
  margin-top:9px;
  padding:10px 11px;
  border:1px solid rgba(251,113,133,.2);
  border-radius:10px;
  background:rgba(190,24,93,.1);
  color:#fda4af;
  font-size:11px;
}
.h1-run-review{margin-top:14px;padding-top:14px;border-top:1px solid var(--border)}
.h1-run-review button{max-width:100%}
.h1-run-finding{
  margin-top:9px;
  padding:11px;
  border:1px solid rgba(148,163,184,.1);
  border-radius:12px;
  background:rgba(5,9,17,.58);
}
.h1-run-finding .muted{margin-top:5px;overflow-wrap:anywhere}
.h1-attention-saved-views{align-items:center}
.h1-attention-custom-views,.h1-attention-filters{
  grid-template-columns:repeat(2,minmax(0,1fr));
}
.h1-review-editor{
  margin-top:.7rem;
  border:1px solid var(--border);
  border-radius:14px;
  padding:13px;
  background:rgba(5,9,17,.45);
}
.h1-review-editor summary{cursor:pointer;font-weight:800}
.h1-review-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;margin-top:12px}
.h1-review-field{display:flex;flex-direction:column;gap:5px}
.h1-review-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.details-card pre{min-height:110px}
.mobile-dock{display:none}
::-webkit-scrollbar{width:9px;height:9px}
::-webkit-scrollbar-track{background:transparent}
::-webkit-scrollbar-thumb{background:#253044;border:2px solid transparent;background-clip:padding-box;border-radius:999px}
::-webkit-scrollbar-thumb:hover{background:#35435b;border:2px solid transparent;background-clip:padding-box}
@media(max-width:900px){
  .desktop-nav{display:none}
  .hero{grid-template-columns:1fr}
  .hero-copy{min-height:330px}
  .hero-panel{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}
  .hero-panel-head,.hero-panel-foot{grid-column:1/-1}
  .overview-grid{grid-template-columns:1fr}
}
@media(max-width:720px){
  body{padding-bottom:76px}
  .topbar-inner{width:min(100% - 24px,1180px);min-height:62px}
  .brand-mark{width:34px;height:34px;border-radius:11px}
  .brand-copy small{display:none}
  .secure-chip{padding:7px 9px;font-size:10px}
  .app-shell{width:min(100% - 20px,1180px);padding:18px 0 32px}
  .hero{gap:12px;margin-bottom:12px}
  .hero-copy{min-height:0;padding:26px 20px;border-radius:20px}
  .hero h1{font-size:44px;line-height:.98}
  .hero-lead{margin-top:16px;font-size:13px}
  .hero-actions{margin-top:20px}
  .action-link{flex:1 1 auto}
  .hero-panel{display:block;padding:18px;border-radius:20px}
  .hero-signal{padding:13px 0}
  .overview-grid{gap:12px;margin-bottom:12px}
  .card{margin:12px 0;padding:17px;border-radius:18px}
  .launcher-card{padding:17px}
  .launcher-card>.finding-head h2{font-size:21px}
  .field-grid,.grid,.filter-row,.remote-scope-grid,.scope-preview-grid,.stats,.h1-run-stats,.why-grid,.h1-review-grid{
    grid-template-columns:1fr;
  }
  .h1-attention-custom-views,.h1-attention-filters{grid-template-columns:1fr}
  .finding-head{align-items:flex-start}
  .button-row{display:grid;grid-template-columns:1fr;width:100%}
  .button-row button{width:100%}
  .button-row .pill{justify-self:start}
  .h1-control-center,.h1-run-monitor,.policy-preview{padding:14px;border-radius:14px}
  .remote-scope-grid>div,.scope-preview-grid>div{padding:12px}
  .timeline-head{display:block}
  .timeline-head .muted{display:block;margin-top:4px;white-space:normal}
  .mobile-dock{
    position:fixed;
    left:10px;
    right:10px;
    bottom:max(10px,env(safe-area-inset-bottom));
    z-index:60;
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:4px;
    padding:6px;
    border:1px solid rgba(148,163,184,.16);
    border-radius:17px;
    background:rgba(10,14,23,.9);
    backdrop-filter:blur(20px) saturate(150%);
    box-shadow:0 16px 50px rgba(0,0,0,.45);
  }
  .mobile-dock a{
    min-width:0;
    padding:7px 3px;
    border-radius:12px;
    color:#8290a5;
    text-align:center;
    text-decoration:none;
    font-size:9px;
    font-weight:800;
  }
  .mobile-dock a:active,.mobile-dock a:hover{background:rgba(129,140,248,.12);color:#e2e8f0}
  .mobile-dock span{display:block;margin-bottom:2px;color:#c4b5fd;font-size:16px;line-height:1}
}
@media(max-width:390px){
  .secure-chip{font-size:0;gap:0;padding:8px}
  .secure-chip span{width:8px;height:8px}
  .hero h1{font-size:39px}
  .hero-actions{display:grid;grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){
  *{scroll-behavior:auto!important;transition:none!important}
}

.target-memory-grid{
  display:grid;
  grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);
  gap:12px;
  margin-top:14px;
}
.target-memory-grid>div{
  min-width:0;
  padding:14px;
  border:1px solid rgba(148,163,184,.1);
  border-radius:14px;
  background:rgba(4,8,16,.42);
}
.memory-kind-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  margin-top:12px;
}
.memory-kind{
  padding:10px;
  border:1px solid rgba(148,163,184,.09);
  border-radius:11px;
  background:rgba(5,9,17,.52);
}
.memory-kind span,.memory-kind strong{display:block}
.memory-kind span{
  color:var(--muted-2);
  font-size:9px;
  font-weight:850;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.memory-kind strong{
  margin-top:5px;
  font-size:16px;
  color:#f8fafc;
}
.memory-delta-columns{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-top:12px;
}
.memory-delta-label{
  display:block;
  margin-bottom:7px;
  font-size:10px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
}
@media(max-width:720px){
  .target-memory-grid,.memory-delta-columns{grid-template-columns:1fr}
}

.surface-diff-banner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin-top:14px;
  padding:14px;
  border:1px solid rgba(129,140,248,.13);
  border-radius:14px;
  background:linear-gradient(135deg,rgba(124,58,237,.08),rgba(37,99,235,.05));
}
.surface-diff-banner>div:first-child{min-width:0}
.surface-diff-banner strong{display:block;margin-top:4px;font-size:15px;color:#f8fafc}
.surface-score{
  min-width:92px;
  padding:10px 12px;
  border:1px solid rgba(148,163,184,.1);
  border-radius:12px;
  background:rgba(5,9,17,.52);
  text-align:center;
}
.surface-score span{display:block;color:var(--muted-2);font-size:9px;font-weight:850;text-transform:uppercase;letter-spacing:.08em}
.surface-score strong{margin-top:4px;font-size:22px;line-height:1}
.surface-focus{
  margin-top:12px;
  padding:13px;
  border:1px solid rgba(148,163,184,.1);
  border-radius:13px;
  background:rgba(5,9,17,.42);
}
@media(max-width:520px){
  .surface-diff-banner{align-items:flex-start}
  .surface-score{min-width:76px}
}

.temporal-surface-panel{
  margin-top:12px;
  padding:14px;
  border:1px solid rgba(34,211,238,.12);
  border-radius:14px;
  background:linear-gradient(135deg,rgba(14,116,144,.06),rgba(37,99,235,.035));
}
.temporal-stats{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
  margin-top:12px;
}
.temporal-stats>div{
  min-width:0;
  padding:10px;
  border:1px solid rgba(148,163,184,.09);
  border-radius:11px;
  background:rgba(5,9,17,.48);
}
.temporal-stats span{
  display:block;
  color:var(--muted-2);
  font-size:9px;
  font-weight:850;
  text-transform:uppercase;
  letter-spacing:.07em;
}
.temporal-stats strong{
  display:block;
  margin-top:5px;
  color:#f8fafc;
  font-size:17px;
}
.temporal-head-gap{margin-top:14px}
@media(max-width:720px){
  .temporal-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
}

.surface-confidence-panel{
  margin-top:12px;
  padding:14px;
  border:1px solid rgba(52,211,153,.12);
  border-radius:14px;
  background:linear-gradient(135deg,rgba(16,185,129,.055),rgba(37,99,235,.03));
}
.confidence-stats{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
  margin-top:12px;
}
.confidence-stats>div{
  min-width:0;
  padding:10px;
  border:1px solid rgba(148,163,184,.09);
  border-radius:11px;
  background:rgba(5,9,17,.48);
}
.confidence-stats span{
  display:block;
  color:var(--muted-2);
  font-size:9px;
  font-weight:850;
  text-transform:uppercase;
  letter-spacing:.07em;
}
.confidence-stats strong{
  display:block;
  margin-top:5px;
  color:#f8fafc;
  font-size:17px;
}
@media(max-width:520px){.confidence-stats{grid-template-columns:1fr 1fr 1fr}}

.h1-quick-start{
  margin:14px 0;
  padding:14px;
  border:1px solid rgba(96,165,250,.18);
  border-radius:14px;
  background:linear-gradient(135deg,rgba(37,99,235,.08),rgba(16,185,129,.035));
}
.h1-quick-start .check-row{
  width:auto;
}
@media(max-width:640px){
  .h1-quick-start{padding:12px}
}

.h1-advanced-settings{
  margin:16px 0;
  padding:0;
  border:1px solid rgba(148,163,184,.12);
  background:rgba(5,9,17,.42);
}
.h1-advanced-settings>summary{
  padding:13px 14px;
  border-radius:12px;
  color:#cbd5e1;
  font-size:12px;
  font-weight:850;
}
.h1-advanced-settings[open]>summary{
  border-bottom:1px solid rgba(148,163,184,.1);
  border-radius:12px 12px 0 0;
}
.h1-advanced-settings>h3,
.h1-advanced-settings>label,
.h1-advanced-settings>p,
.h1-advanced-settings>.grid,
.h1-advanced-settings>.check-stack,
.h1-advanced-settings>textarea,
.h1-advanced-settings>input{
  margin-left:14px;
  margin-right:14px;
}
.h1-advanced-settings>:last-child{
  margin-bottom:14px;
}
@media(max-width:640px){
  .h1-advanced-settings>summary{padding:12px}
}

.h1-batch-panel{
  border-color:rgba(34,211,238,.16);
  background:linear-gradient(135deg,rgba(14,116,144,.055),rgba(37,99,235,.04));
}
.h1-batch-controls{margin-top:8px}
.h1-batch-catalog{
  display:grid;
  gap:8px;
  margin-top:13px;
  max-height:360px;
  overflow:auto;
}
.h1-batch-program{
  display:grid;
  grid-template-columns:22px minmax(0,1fr);
  gap:10px;
  align-items:flex-start;
  margin:0;
  padding:11px 12px;
  border:1px solid rgba(148,163,184,.1);
  border-radius:12px;
  background:rgba(5,9,17,.52);
  cursor:pointer;
}
.h1-batch-program:hover{border-color:rgba(34,211,238,.2)}
.h1-batch-program input{
  width:17px;
  min-width:17px;
  height:17px;
  min-height:0;
  margin:2px 0 0;
  padding:0;
  accent-color:#22d3ee;
}
.h1-batch-program strong{
  display:block;
  color:#e8f2fb;
  font-size:12px;
}
@media(max-width:720px){
  .h1-batch-catalog{max-height:420px}
}
