:root{
  --bg:#050913;
  --bg-2:#09111f;
  --panel:rgba(12,19,33,.84);
  --panel-2:rgba(8,13,24,.94);
  --line:rgba(145,169,205,.18);
  --line-2:rgba(145,169,205,.32);
  --text:#edf5ff;
  --muted:#90a7c8;
  --muted-2:#667a98;
  --accent:#62e6c8;
  --accent-2:#74a7ff;
  --accent-3:#9f72ff;
  --warn:#ffca66;
  --good:#3be2a6;
  --bad:#ff6b81;
}
*{box-sizing:border-box}
html,body{min-height:100%}
body{
  margin:0;
  color:var(--text);
  background:
    radial-gradient(circle at 12% 10%, rgba(98,230,200,.18), transparent 24%),
    radial-gradient(circle at 82% 14%, rgba(116,167,255,.18), transparent 20%),
    radial-gradient(circle at 60% 88%, rgba(159,114,255,.12), transparent 24%),
    linear-gradient(180deg, #050913 0%, #060b14 46%, #04060c 100%);
  font-family:"Segoe UI",system-ui,sans-serif;
}
.noise{
  position:fixed;
  inset:0;
  pointer-events:none;
  opacity:.07;
  background-image:
    linear-gradient(rgba(255,255,255,.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.24) 1px, transparent 1px);
  background-size:48px 48px;
  mask-image:radial-gradient(circle at center, black 24%, transparent 90%);
}
.shell{
  width:min(1600px, calc(100% - 32px));
  margin:0 auto;
  padding:32px 0 48px;
  position:relative;
}
.hero{
  display:grid;
  grid-template-columns:minmax(0,1.25fr) minmax(360px,.75fr);
  gap:18px;
  align-items:stretch;
  margin-bottom:18px;
}
.hero-copy,
.hero-metrics,
.panel{
  border:1px solid var(--line);
  background:linear-gradient(180deg, rgba(13,20,34,.92), rgba(7,11,20,.95));
  box-shadow:0 26px 80px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.03);
  backdrop-filter:blur(14px);
}
.hero-copy{
  position:relative;
  overflow:hidden;
  border-radius:28px;
  padding:28px;
}
.hero-copy::after{
  content:"";
  position:absolute;
  inset:auto -60px -60px auto;
  width:220px;
  height:220px;
  background:radial-gradient(circle, rgba(98,230,200,.14), transparent 68%);
}
.hero h1,
.panel h2{
  margin:0;
  letter-spacing:-.05em;
  line-height:1;
}
.hero h1{font-size:clamp(36px, 4vw, 66px)}
.panel h2{font-size:24px}
.eyebrow{
  margin:0 0 10px;
  color:var(--accent);
  letter-spacing:.18em;
  text-transform:uppercase;
  font-size:11px;
  font-weight:800;
}
.lede{
  max-width:760px;
  color:var(--muted);
  font-size:16px;
  line-height:1.6;
  margin:14px 0 0;
}
.hero-actions,
.preset-actions,
.toggle-row{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.hero-actions{margin-top:22px}
.hero-metrics{
  border-radius:28px;
  padding:18px;
  display:grid;
  gap:12px;
}
.metric-card{
  border-radius:22px;
  border:1px solid var(--line);
  background:linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
  padding:18px;
}
.metric-card.accent{
  background:
    radial-gradient(circle at 15% 20%, rgba(98,230,200,.12), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.01));
}
.metric-card span{
  display:block;
  color:var(--muted);
  text-transform:uppercase;
  letter-spacing:.14em;
  font-size:11px;
}
.metric-card strong{
  display:block;
  margin-top:12px;
  font-size:34px;
  letter-spacing:-.05em;
}
.metric-card small{
  display:block;
  margin-top:8px;
  color:var(--muted-2);
}
.panel{
  border-radius:28px;
  padding:22px;
}
.control-bar{
  margin-bottom:18px;
}
.control-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
}
.chain-picker{
  margin-top:16px;
  padding:16px;
  border-radius:22px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
}
.chain-picker-head{
  display:flex;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom:12px;
}
.chain-checkboxes{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
}
.chain-chip{
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 14px;
  border-radius:16px;
  border:1px solid var(--line);
  background:rgba(4,8,16,.72);
  color:var(--text);
}
.chain-chip input{width:16px;height:16px;margin:0}
.chain-chip span{
  display:grid;
  gap:2px;
  font-size:13px;
}
.chain-chip small{
  color:var(--muted);
  font-size:11px;
}
label{
  display:grid;
  gap:8px;
  color:var(--muted);
  font-size:12px;
  letter-spacing:.04em;
}
input,select,button{
  font:inherit;
}
input,select{
  width:100%;
  color:var(--text);
  background:rgba(4,8,16,.9);
  border:1px solid var(--line);
  border-radius:16px;
  padding:12px 14px;
  outline:none;
}
input:focus,select:focus{
  border-color:rgba(98,230,200,.42);
  box-shadow:0 0 0 3px rgba(98,230,200,.08);
}
.toggle-row{
  margin-top:16px;
  justify-content:space-between;
  align-items:center;
}
.toggle{
  display:flex;
  align-items:center;
  gap:10px;
  color:var(--text);
  font-size:13px;
}
.toggle input{width:16px;height:16px;margin:0}
.primary-button,
.secondary-button,
.ghost-button{
  border:0;
  border-radius:14px;
  padding:12px 16px;
  cursor:pointer;
  font-weight:800;
  transition:transform .18s ease, filter .18s ease, border-color .18s ease, background .18s ease;
}
.primary-button{
  color:#05131a;
  background:linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
  box-shadow:0 18px 42px rgba(98,230,200,.14);
}
.secondary-button,
.ghost-button{
  color:var(--text);
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.08);
}
.ghost-button{
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.ghost-button.compact{
  padding:10px 12px;
}
.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover{
  transform:translateY(-1px);
  filter:brightness(1.04);
}
.layout{
  display:grid;
  grid-template-columns:minmax(0,1.5fr) minmax(340px,.78fr);
  gap:18px;
  align-items:start;
}
.pipeline-panel{
  min-height:780px;
}
.panel-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:18px;
}
.status-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  border-radius:999px;
  padding:10px 14px;
  border:1px solid rgba(255,255,255,.08);
  color:var(--muted);
  font-size:12px;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.status-pill.idle{background:rgba(255,255,255,.04)}
.status-pill.running{
  color:#d8fff3;
  border-color:rgba(98,230,200,.22);
  background:rgba(98,230,200,.1);
}
.status-pill.good{
  color:#dcfff0;
  border-color:rgba(59,226,166,.22);
  background:rgba(59,226,166,.1);
}
.status-pill.bad{
  color:#ffe4ea;
  border-color:rgba(255,107,129,.22);
  background:rgba(255,107,129,.1);
}
.endpoint-grid{
  display:grid;
  gap:14px;
}
.endpoint-card{
  border-radius:24px;
  border:1px solid var(--line);
  background:
    radial-gradient(circle at 10% 10%, rgba(116,167,255,.08), transparent 22%),
    linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  padding:18px;
}
.endpoint-card.active{
  border-color:rgba(98,230,200,.3);
  box-shadow:0 0 0 1px rgba(98,230,200,.08) inset, 0 22px 50px rgba(0,0,0,.26);
}
.endpoint-head{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:flex-start;
}
.endpoint-step{
  color:var(--accent);
  text-transform:uppercase;
  letter-spacing:.14em;
  font-size:11px;
  font-weight:800;
}
.endpoint-title{
  margin:8px 0 4px;
  font-size:18px;
  letter-spacing:-.03em;
}
.endpoint-desc{
  margin:0;
  color:var(--muted);
  line-height:1.5;
  font-size:13px;
}
.endpoint-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:14px;
}
.endpoint-actions button{
  margin:0;
  padding:10px 12px;
  border-radius:12px;
}
.endpoint-meta{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:14px;
}
.meta-chip{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:7px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.04);
  color:var(--muted);
  font-size:12px;
}
.meta-chip.good{color:#d9fff1;border-color:rgba(59,226,166,.22);background:rgba(59,226,166,.08)}
.meta-chip.bad{color:#ffdbe1;border-color:rgba(255,107,129,.22);background:rgba(255,107,129,.08)}
.endpoint-response{
  margin-top:14px;
  display:grid;
  gap:12px;
}
.response-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.response-title{
  color:var(--muted);
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.14em;
}
.response-output{
  margin:0;
  padding:16px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(4,8,16,.88);
  color:#dfeaff;
  max-height:420px;
  overflow:auto;
  white-space:pre-wrap;
  word-break:break-word;
  line-height:1.55;
  font-size:13px;
}
.response-output[data-state="pending"]{
  color:var(--muted);
}
.report-card{
  display:grid;
  gap:12px;
}
.report-card h2,
.report-card h3,
.report-card h4{
  margin:0;
  line-height:1.15;
}
.report-card h2{
  font-size:28px;
  letter-spacing:-.04em;
}
.report-card h3{
  font-size:20px;
  color:#f4f8ff;
}
.report-card h4{
  font-size:16px;
  color:#dff3ff;
}
.report-card p{
  margin:0;
  color:var(--text);
}
.report-card li{
  margin-left:18px;
  color:var(--text);
}
.report-move,
.report-holding{
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:flex-start;
  padding:14px 16px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.03);
}
.report-move-main,
.report-holding div:first-child{
  display:grid;
  gap:4px;
}
.report-move-date{
  color:var(--muted);
  font-size:11px;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.report-move strong,
.report-holding strong{
  font-size:15px;
  letter-spacing:-.02em;
}
.report-move span,
.report-holding span,
.report-move-side span{
  color:var(--muted);
  font-size:12px;
}
.report-move-side{
  display:grid;
  justify-items:end;
  gap:4px;
  text-align:right;
}
.report-move-side strong{
  color:#d9fff1;
}
.report-holding-basis{
  color:#dff3ff;
  font-weight:700;
}
.report-card .report-code{
  margin:0;
  padding:14px;
  border-radius:16px;
  background:rgba(2,7,13,.94);
  border:1px solid rgba(255,255,255,.08);
  color:#d7e9ff;
  overflow:auto;
  white-space:pre-wrap;
}
.report-kicker{
  color:var(--accent);
  text-transform:uppercase;
  letter-spacing:.16em;
  font-size:11px;
  font-weight:800;
}
.report-raw{
  margin-top:12px;
  border-radius:16px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
  padding:12px 14px;
}
.report-raw summary{
  cursor:pointer;
  color:var(--muted);
  font-weight:700;
}
.report-raw pre{
  margin-top:12px;
  max-height:240px;
}
.sidebar{
  display:grid;
  gap:18px;
}
.summary-cards{
  display:grid;
  gap:12px;
}
.summary-card{
  border-radius:22px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
  padding:16px;
}
.summary-card strong{
  display:block;
  font-size:20px;
  letter-spacing:-.03em;
  margin-top:8px;
}
.summary-card span{
  color:var(--muted);
  text-transform:uppercase;
  letter-spacing:.14em;
  font-size:11px;
}
.summary-card small{
  display:block;
  color:var(--muted-2);
  margin-top:8px;
  line-height:1.45;
}
.run-log{
  display:grid;
  gap:10px;
  max-height:540px;
  overflow:auto;
  padding-right:4px;
}
.log-item{
  border-radius:18px;
  border:1px solid var(--line);
  background:rgba(4,8,16,.72);
  padding:14px;
}
.log-item-head{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
}
.log-item strong{
  font-size:13px;
  letter-spacing:.01em;
}
.log-item small{
  color:var(--muted);
}
.log-item p{
  margin:8px 0 0;
  color:var(--muted);
  font-size:12px;
  line-height:1.45;
}
.log-item.ok{border-color:rgba(59,226,166,.2)}
.log-item.fail{border-color:rgba(255,107,129,.2)}

@media (max-width: 1180px){
  .hero,
  .layout,
  .control-grid{
    grid-template-columns:1fr;
  }
  .chain-checkboxes{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width: 720px){
  .shell{width:min(100% - 20px, 1600px);padding:18px 0 28px}
  .hero-copy,.hero-metrics,.panel{border-radius:22px}
  .panel{padding:18px}
  .endpoint-actions,
  .hero-actions,
  .preset-actions{
    display:grid;
    grid-template-columns:1fr;
  }
  .toggle-row{flex-direction:column;align-items:flex-start}
  .chain-checkboxes{grid-template-columns:1fr}
}
