.agent-starter {
  --starter-ink: #eaf4ff;
  --starter-muted: #9eb0c6;
  --starter-panel: rgba(8, 21, 35, 0.9);
  --starter-line: rgba(133, 178, 219, 0.2);
  --starter-mint: #58e1ba;
  --starter-blue: #73a8ff;
  --starter-amber: #ffc96b;
  --starter-violet: #dc90ff;
  position: relative;
  margin: 72px 0;
  overflow: hidden;
  border: 1px solid var(--starter-line);
  border-radius: 34px;
  color: var(--starter-ink);
  background:
    radial-gradient(circle at 92% 8%, rgba(90, 126, 255, 0.22), transparent 31%),
    radial-gradient(circle at 9% 88%, rgba(88, 225, 186, 0.14), transparent 28%),
    linear-gradient(145deg, #06111d, #111c31 62%, #171b31);
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.38);
}

.agent-starter [hidden] { display: none !important; }

.starter-gridwash {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(121, 177, 220, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(121, 177, 220, 0.12) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, #000, transparent 78%);
}

.starter-masthead,
.starter-stats,
.starter-workbench,
.starter-boundary { position: relative; z-index: 1; }

.starter-masthead {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 42px;
  padding: 54px 58px 30px;
}

.starter-badge {
  min-height: 210px;
  padding: 24px;
  border: 1px solid rgba(88, 225, 186, 0.5);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(88, 225, 186, 0.12), rgba(8, 20, 35, 0.8));
  box-shadow: inset 0 0 48px rgba(88, 225, 186, 0.07);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.starter-badge span,
.starter-kicker,
.starter-panel-heading > span,
.starter-preview-top,
.starter-validation-head span {
  color: var(--starter-mint);
  font: 700 0.72rem/1.3 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.16em;
}

.starter-badge b { display: block; margin: 22px 0 10px; font-size: 4.7rem; line-height: 0.9; color: #fff; }
.starter-badge strong { display: block; font-size: 1.15rem; line-height: 1.18; letter-spacing: 0.1em; }
.starter-badge i { display: inline-block; margin-top: 20px; padding: 5px 9px; border-radius: 999px; color: #06111d; background: var(--starter-mint); font-style: normal; font-size: 0.68rem; font-weight: 900; }

.starter-intro h2 { margin: 8px 0 18px; max-width: 860px; color: #fff; font-size: clamp(2.45rem, 5.7vw, 5rem); line-height: 0.95; letter-spacing: -0.06em; }
.starter-intro h2 em { color: var(--starter-mint); font-style: normal; }
.starter-intro p { max-width: 800px; color: var(--starter-muted); font-size: 1.08rem; line-height: 1.7; }
.starter-intro-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 25px; }
.starter-primary { color: #06111d !important; background: var(--starter-mint) !important; border-color: var(--starter-mint) !important; }
.starter-secondary { color: var(--starter-ink) !important; background: rgba(118, 157, 203, 0.08) !important; border-color: rgba(118, 157, 203, 0.3) !important; }
.starter-method-link { color: var(--starter-blue); font-weight: 700; }

.starter-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0 58px 30px;
  border: 1px solid var(--starter-line);
  border-radius: 18px;
  background: rgba(4, 13, 24, 0.58);
}

.starter-stats span { padding: 18px 20px; border-right: 1px solid var(--starter-line); }
.starter-stats span:last-child { border-right: 0; }
.starter-stats b { display: block; color: #fff; font: 800 1.7rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.starter-stats small { display: block; margin-top: 7px; color: var(--starter-muted); }

.starter-workbench { margin: 0 30px 34px; border: 1px solid var(--starter-line); border-radius: 26px; overflow: hidden; background: rgba(4, 12, 22, 0.78); }
.starter-workbench-head { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 22px 28px; border-bottom: 1px solid var(--starter-line); }
.starter-workbench-head span { color: var(--starter-blue); font: 700 0.7rem ui-monospace, monospace; letter-spacing: 0.14em; }
.starter-workbench-head h3 { margin: 5px 0 0; color: #fff; }
.starter-workbench-head button { color: var(--starter-muted); border: 1px solid var(--starter-line); border-radius: 999px; padding: 8px 13px; background: transparent; cursor: pointer; }

.starter-steps { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--starter-line); }
.starter-steps button { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; min-height: 88px; padding: 18px; color: var(--starter-muted); text-align: left; border: 0; border-right: 1px solid var(--starter-line); background: transparent; cursor: pointer; }
.starter-steps button:last-child { border-right: 0; }
.starter-steps button b { grid-row: span 2; align-self: center; color: rgba(115, 168, 255, 0.5); font: 800 1.55rem ui-monospace, monospace; }
.starter-steps button span { color: var(--starter-ink); font-weight: 800; }
.starter-steps button small { color: var(--starter-muted); }
.starter-steps button[aria-current="step"] { background: linear-gradient(180deg, rgba(88, 225, 186, 0.13), transparent); box-shadow: inset 0 -3px var(--starter-mint); }
.starter-steps button[aria-current="step"] b { color: var(--starter-mint); }

.starter-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.7fr); min-height: 690px; }
.starter-form { min-width: 0; padding: 30px; border-right: 1px solid var(--starter-line); }
.starter-panel-heading h3 { margin: 7px 0 10px; color: #fff; font-size: 1.7rem; }
.starter-panel-heading p { margin: 0 0 25px; color: var(--starter-muted); line-height: 1.65; }

.starter-template-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.starter-template-card { position: relative; display: block; padding: 18px; border: 1px solid var(--starter-line); border-radius: 17px; background: rgba(115, 168, 255, 0.05); cursor: pointer; }
.starter-template-card:has(input:checked) { border-color: var(--starter-mint); background: rgba(88, 225, 186, 0.1); box-shadow: 0 0 0 1px rgba(88, 225, 186, 0.2); }
.starter-template-card input { position: absolute; opacity: 0; }
.starter-template-card b { display: block; color: #fff; }
.starter-template-card small { display: block; margin-top: 8px; color: var(--starter-muted); line-height: 1.45; }

.starter-field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 22px; }
.starter-field-wide { grid-column: 1 / -1; }
.starter-form label > span,
.starter-form legend { display: block; margin-bottom: 8px; color: #c9d9e8; font-size: 0.82rem; font-weight: 800; }
.starter-form label > span b { color: var(--starter-amber); }
.starter-form input,
.starter-form textarea,
.starter-form select { width: 100%; box-sizing: border-box; color: #fff; border: 1px solid rgba(132, 176, 217, 0.28); border-radius: 12px; padding: 12px 13px; background: rgba(1, 8, 15, 0.72); font: inherit; }
.starter-form textarea { resize: vertical; }
.starter-form input:focus,
.starter-form textarea:focus,
.starter-form select:focus { outline: 2px solid rgba(88, 225, 186, 0.45); border-color: var(--starter-mint); }
.starter-outcome-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.starter-outcome-grid label { padding: 15px; border: 1px solid var(--starter-line); border-radius: 15px; }
.starter-outcome-grid label:nth-child(1) { box-shadow: inset 0 3px var(--starter-mint); }
.starter-outcome-grid label:nth-child(2) { box-shadow: inset 0 3px var(--starter-amber); }
.starter-outcome-grid label:nth-child(3) { box-shadow: inset 0 3px var(--starter-violet); }

.starter-safety { display: grid; gap: 12px; padding: 0; border: 0; }
.starter-safety label { display: flex; align-items: flex-start; gap: 12px; padding: 15px; border: 1px solid var(--starter-line); border-radius: 14px; color: var(--starter-muted); line-height: 1.5; }
.starter-safety input { width: 19px; height: 19px; flex: 0 0 auto; margin-top: 2px; accent-color: var(--starter-mint); }
.starter-local-note { margin-top: 20px; padding: 17px; border-left: 3px solid var(--starter-mint); color: var(--starter-muted); background: rgba(88, 225, 186, 0.07); }
.starter-local-note b { color: var(--starter-mint); }

.starter-validation-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; padding: 18px; border: 1px solid var(--starter-line); border-radius: 15px; background: rgba(115, 168, 255, 0.05); }
.starter-validation-head b { color: #fff; font: 800 1.3rem ui-monospace, monospace; }
.starter-validation-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 16px 0 22px; padding: 0; list-style: none; }
.starter-validation-list li { display: flex; align-items: center; gap: 9px; padding: 10px 12px; color: var(--starter-muted); border: 1px solid var(--starter-line); border-radius: 10px; font-size: 0.85rem; }
.starter-validation-list li::before { content: "×"; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; color: #0b1420; background: #69788a; font-weight: 900; }
.starter-validation-list li.is-pass { color: #dffcf4; border-color: rgba(88, 225, 186, 0.28); }
.starter-validation-list li.is-pass::before { content: "✓"; background: var(--starter-mint); }
.starter-bundle-map { padding: 17px; border: 1px dashed rgba(220, 144, 255, 0.4); border-radius: 15px; }
.starter-bundle-map > span { color: var(--starter-violet); font: 800 0.72rem ui-monospace, monospace; letter-spacing: 0.12em; }
.starter-bundle-map div { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.starter-bundle-map b { padding: 5px 8px; color: #d9e7f5; border-radius: 6px; background: rgba(220, 144, 255, 0.08); font: 600 0.68rem ui-monospace, monospace; }
.starter-export-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.starter-export-actions button:disabled { opacity: 0.45; cursor: not-allowed; }
.starter-action-status { display: block; min-height: 22px; margin-top: 13px; color: var(--starter-mint); }

.starter-form-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--starter-line); }
.starter-form-nav span { color: var(--starter-muted); }

.starter-preview { position: relative; padding: 30px; background: linear-gradient(180deg, rgba(24, 39, 64, 0.75), rgba(3, 10, 18, 0.8)); }
.starter-preview-top { display: flex; justify-content: space-between; gap: 12px; }
.starter-preview-top b { color: var(--starter-blue); }
.starter-preview h3 { margin: 24px 0 10px; color: #fff; font-size: 1.75rem; }
.starter-preview > p { color: var(--starter-muted); line-height: 1.6; }
.starter-circuit { position: relative; display: grid; gap: 24px; margin: 30px 0; }
.starter-circuit::before { content: ""; position: absolute; top: 23px; bottom: 23px; left: 23px; width: 2px; background: linear-gradient(var(--starter-mint), var(--starter-blue), var(--starter-amber), var(--starter-violet)); }
.starter-circuit div { position: relative; display: grid; grid-template-columns: 48px 1fr; gap: 13px; align-items: center; }
.starter-circuit i { position: relative; z-index: 1; display: grid; place-items: center; width: 48px; height: 48px; border: 2px solid currentColor; border-radius: 50%; color: var(--starter-mint); background: #0b1726; font: normal 800 0.75rem ui-monospace, monospace; box-shadow: 0 0 18px currentColor; }
.starter-circuit div:nth-child(2) i { color: var(--starter-blue); }
.starter-circuit div:nth-child(3) i { color: var(--starter-amber); }
.starter-circuit div:nth-child(4) i { color: var(--starter-violet); }
.starter-circuit b { display: block; color: #fff; }
.starter-circuit small { display: block; margin-top: 4px; color: var(--starter-muted); }
.starter-authority-card { padding: 17px; border: 1px solid rgba(255, 201, 107, 0.35); border-radius: 15px; background: rgba(255, 201, 107, 0.06); }
.starter-authority-card span { color: var(--starter-amber); font: 800 0.7rem ui-monospace, monospace; letter-spacing: 0.12em; }
.starter-authority-card b { display: block; margin-top: 9px; color: #fff; }
.starter-meter { margin-top: 24px; }
.starter-meter > span { color: var(--starter-muted); font: 700 0.75rem ui-monospace, monospace; }
.starter-meter > div { height: 8px; margin-top: 9px; overflow: hidden; border-radius: 999px; background: #25354a; }
.starter-meter i { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--starter-blue), var(--starter-mint)); transition: width 180ms ease; }
.starter-meter small { display: block; margin-top: 8px; color: var(--starter-muted); }
.starter-preview-note { padding-top: 18px; border-top: 1px solid var(--starter-line); font-size: 0.82rem; }
.starter-boundary { margin: 0; padding: 20px 34px 24px; color: var(--starter-muted); border-top: 1px solid var(--starter-line); font-size: 0.84rem; line-height: 1.55; }
.starter-boundary b { color: var(--starter-amber); }

@media (max-width: 980px) {
  .starter-masthead { grid-template-columns: 1fr; }
  .starter-badge { min-height: 0; }
  .starter-badge b { font-size: 3rem; }
  .starter-layout { grid-template-columns: 1fr; }
  .starter-form { border-right: 0; border-bottom: 1px solid var(--starter-line); }
  .starter-preview { min-height: 560px; }
}

@media (max-width: 760px) {
  .starter-masthead { padding: 38px 24px 24px; }
  .starter-stats { grid-template-columns: 1fr 1fr; margin: 0 24px 24px; }
  .starter-stats span:nth-child(2) { border-right: 0; }
  .starter-stats span:nth-child(-n+2) { border-bottom: 1px solid var(--starter-line); }
  .starter-workbench { margin: 0 12px 24px; }
  .starter-steps { grid-template-columns: 1fr 1fr; }
  .starter-steps button:nth-child(2) { border-right: 0; }
  .starter-steps button:nth-child(-n+2) { border-bottom: 1px solid var(--starter-line); }
  .starter-template-grid,
  .starter-outcome-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .starter-intro h2 { font-size: 2.5rem; }
  .starter-stats { grid-template-columns: 1fr; }
  .starter-stats span { border-right: 0; border-bottom: 1px solid var(--starter-line); }
  .starter-stats span:last-child { border-bottom: 0; }
  .starter-workbench-head { align-items: flex-start; flex-direction: column; }
  .starter-field-grid,
  .starter-validation-list { grid-template-columns: 1fr; }
  .starter-form,
  .starter-preview { padding: 22px 18px; }
  .starter-form-nav { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  .agent-starter *,
  .agent-starter *::before,
  .agent-starter *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
