:root {
  color-scheme: dark;
  --background: #0b1120;
  --panel: #111a2b;
  --panel-soft: #151f32;
  --border: rgba(148, 163, 184, .14);
  --text: #edf3fa;
  --muted: #91a0b6;
  --cyan: #62d9e8;
  --green: #64d9a1;
  --amber: #f5bd67;
  font-family: "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(ellipse at 79% 9%, rgba(32, 113, 139, .16), transparent 34rem),
    var(--background);
  color: var(--text);
}

a { color: inherit; text-decoration: none; }
button { font: inherit; }

.shell { max-width: 1240px; margin: 0 auto; padding: 0 42px; }
.topbar { height: 82px; display: flex; align-items: center; gap: 42px; border-bottom: 1px solid var(--border); }
.brand { display: flex; align-items: center; gap: 11px; font-family: "Segoe UI", Arial, sans-serif; font-size: 19px; letter-spacing: .03em; }
.brand strong { color: var(--cyan); }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(98, 217, 232, .45); border-radius: 11px; color: var(--cyan); font-weight: 700; }
nav { display: flex; gap: 28px; flex: 1; height: 100%; }
.nav-link { display: flex; align-items: center; color: var(--muted); font-size: 13px; border-bottom: 2px solid transparent; }
.nav-link:hover, .nav-link.active { color: var(--text); border-color: var(--cyan); }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid var(--border); border-radius: 9px; padding: 10px 15px; font-size: 12px; font-weight: 600; transition: .18s ease; cursor: pointer; }
.button:hover { transform: translateY(-1px); border-color: rgba(98, 217, 232, .55); }
.button-quiet { background: rgba(255,255,255,.025); color: #c8d3e2; }
.button-primary { background: var(--cyan); color: #07131d; border-color: var(--cyan); }
.button-primary:hover { background: #82e4ef; }

.hero { position: relative; min-height: 270px; display: flex; align-items: center; justify-content: space-between; overflow: hidden; border-bottom: 1px solid var(--border); }
.hero-copy { position: relative; z-index: 1; max-width: 650px; padding: 38px 0 42px; }
.eyebrow { color: var(--cyan); font-size: 10px; font-weight: 700; letter-spacing: .14em; }
.pulse-dot { display: inline-block; width: 7px; height: 7px; margin: 0 8px 1px 0; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px rgba(100,217,161,.65); }
h1, h2, p { margin-top: 0; }
h1 { margin: 12px 0 9px; font: 600 52px/1 "Segoe UI", Arial, sans-serif; letter-spacing: -.05em; }
h1 span { color: var(--cyan); }
.hero-copy > p { max-width: 465px; margin-bottom: 22px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.hero-actions { display: flex; align-items: center; gap: 14px; }
.access-note { font-size: 11px; color: var(--muted); }
.hero-art { position: absolute; width: 340px; height: 260px; right: 46px; top: 6px; opacity: .8; }
.orbit { position: absolute; border: 1px solid rgba(98,217,232,.16); border-radius: 50%; transform: rotate(-28deg); }
.orbit-one { width: 270px; height: 130px; top: 62px; left: 34px; }
.orbit-two { width: 220px; height: 188px; top: 35px; left: 54px; transform: rotate(52deg); }
.core { position: absolute; width: 94px; height: 94px; left: 123px; top: 76px; display: grid; place-items: center; border: 1px solid rgba(98,217,232,.35); border-radius: 29px; background: linear-gradient(145deg, #163448, #111b2c); box-shadow: 0 0 62px rgba(31,157,179,.2); font: 700 29px "Segoe UI", Arial, sans-serif; }
.core span { color: var(--cyan); }
.node { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 14px var(--cyan); }
.node-one { left: 62px; top: 84px; }.node-two { left: 265px; top: 144px; }.node-three { left: 164px; top: 222px; }

.status-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 20px 0; }
.card { border: 1px solid var(--border); border-radius: 13px; background: linear-gradient(145deg, rgba(20,31,49,.92), rgba(15,24,39,.94)); }
.status-card { min-height: 132px; padding: 19px 20px; }
.card-heading { display: flex; align-items: center; gap: 9px; margin-bottom: 16px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .12em; }
.icon { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 7px; font-size: 14px; }
.icon-run { color: var(--cyan); background: rgba(98,217,232,.1); }.icon-model { color: #b6a4ff; background: rgba(182,164,255,.1); }.icon-schedule { color: var(--amber); background: rgba(245,189,103,.1); }
.metric { display: block; overflow: hidden; color: var(--text); font: 600 18px "Space Grotesk", sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.submetric { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; line-height: 1.5; }

.content-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 14px; padding: 0 0 28px; }
.training-card, .model-card { padding: 21px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
h2 { margin: 6px 0 0; font: 600 20px "Segoe UI", Arial, sans-serif; letter-spacing: -.025em; }
.section-heading .button { padding: 8px 12px; }
.activity-panel { padding: 18px; border: 1px solid var(--border); border-radius: 10px; background: rgba(7,14,26,.42); }
.activity-line { display: flex; align-items: flex-start; gap: 12px; min-height: 63px; }
.activity-indicator { flex: 0 0 auto; width: 9px; height: 9px; margin-top: 5px; border-radius: 50%; background: #75839a; }
.activity-indicator.success { background: var(--green); box-shadow: 0 0 12px rgba(100,217,161,.45); }
.activity-indicator.running { background: var(--cyan); animation: blink 1.2s infinite; }
.activity-indicator.failure { background: #fb7185; }
.activity-line strong { font-size: 13px; }
.activity-line p { margin: 6px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.activity-meta { display: flex; justify-content: space-between; gap: 12px; padding-top: 13px; border-top: 1px solid var(--border); color: var(--muted); font-size: 10px; }
.training-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.text-link { color: var(--cyan); font-size: 11px; font-weight: 600; }
.text-link:hover { text-decoration: underline; }
.notice { margin: 12px 0 0; color: var(--amber); font-size: 11px; line-height: 1.5; }
.model-description { margin: 11px 0 17px; color: var(--muted); font-size: 11px; line-height: 1.65; }
.model-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.model-facts div { min-width: 0; padding: 11px; border: 1px solid var(--border); border-radius: 8px; background: rgba(7,14,26,.34); }
.model-facts span { display: block; margin-bottom: 5px; color: var(--muted); font-size: 9px; }
.model-facts strong { display: block; color: #dce7f3; font-size: 10px; font-weight: 600; }
.privacy-note { display: flex; gap: 9px; align-items: flex-start; margin-top: 13px; padding: 11px; border-radius: 8px; background: rgba(98,217,232,.055); }
.privacy-icon { width: 17px; height: 17px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid rgba(98,217,232,.4); border-radius: 50%; color: var(--cyan); font-size: 10px; }
.privacy-note p { margin: 0; color: #a8b7c9; font-size: 10px; line-height: 1.5; }

footer { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--border); color: var(--muted); font-size: 10px; }
footer a { color: #c8d3e2; }
footer a:hover { color: var(--cyan); }
@keyframes blink { 50% { opacity: .35; } }

@media (max-width: 820px) {
  .shell { padding: 0 22px; }
  .topbar { gap: 20px; }
  nav { gap: 15px; }
  .hero-art { right: -72px; opacity: .38; }
  .content-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .shell { padding: 0 15px; }
  .topbar { height: 67px; gap: 13px; }
  .brand { font-size: 15px; }
  .brand-mark { width: 30px; height: 30px; }
  nav { gap: 11px; }
  .nav-link { font-size: 10px; }
  .topbar > .button { padding: 8px; font-size: 0; }
  .topbar > .button span { font-size: 12px; }
  .hero { min-height: 260px; }
  .hero-copy { padding: 35px 0; }
  h1 { font-size: 46px; }
  .hero-copy > p { max-width: 310px; font-size: 12px; }
  .access-note { max-width: 105px; font-size: 9px; }
  .hero-art { right: -164px; }
  .status-grid { grid-template-columns: 1fr; gap: 9px; }
  .status-card { min-height: 112px; }
  .activity-meta { flex-direction: column; }
  .training-actions { align-items: flex-start; flex-direction: column; }
  footer { align-items: flex-start; flex-direction: column; padding: 14px 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

:root {
  --background: #080d18;
  --panel: #101a2a;
  --panel-soft: #142239;
  --border: rgba(148, 163, 184, .17);
  --cyan: #72e0eb;
  --purple: #b7a4ff;
}

body {
  background:
    radial-gradient(ellipse at 82% 4%, rgba(35, 136, 163, .2), transparent 34rem),
    radial-gradient(ellipse at 8% 52%, rgba(95, 69, 173, .1), transparent 28rem),
    var(--background);
}

.shell { max-width: 1320px; }
.topbar { gap: 34px; }
.hero { min-height: 286px; }
.hero-copy > p { max-width: 530px; }
.status-grid { gap: 16px; padding: 22px 0 16px; }
.card {
  border-color: rgba(148, 163, 184, .18);
  background: linear-gradient(145deg, rgba(20, 32, 51, .97), rgba(13, 22, 36, .97));
  box-shadow: 0 14px 36px rgba(0, 0, 0, .12);
}
.status-card { min-height: 126px; }
.dashboard-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 16px; padding-bottom: 16px; }
.training-card, .network-card { min-width: 0; padding: 22px; }
.section-heading { margin-bottom: 19px; }
.activity-panel { padding: 17px; }
.activity-line { align-items: center; min-height: 48px; }
.activity-copy { min-width: 0; flex: 1; }
.activity-copy strong { font-size: 14px; }
.run-number, .version-chip {
  flex: 0 0 auto;
  padding: 6px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: #b6c8dc;
  background: rgba(255,255,255,.035);
  font-size: 10px;
  font-weight: 700;
}
.progress-meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; color: var(--muted); font-size: 10px; }
.progress-meta strong { color: var(--cyan); font-size: 11px; }
.progress-track { height: 8px; margin-top: 8px; overflow: hidden; border-radius: 20px; background: rgba(148,163,184,.14); }
.progress-fill { width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #42c8d8, #9b91ff); transition: width .35s ease; }
.step-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 15px 0 0; padding: 0; list-style: none; }
.step-row { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 9px; border: 1px solid rgba(148,163,184,.11); border-radius: 8px; color: #8090a7; background: rgba(5,11,21,.3); font-size: 10px; }
.step-mark { display: grid; width: 17px; height: 17px; flex: 0 0 auto; place-items: center; border: 1px solid rgba(148,163,184,.25); border-radius: 50%; font-size: 9px; }
.step-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.step-row.done { color: #b8d8cc; border-color: rgba(100,217,161,.2); }
.step-row.done .step-mark { color: var(--green); border-color: rgba(100,217,161,.5); }
.step-row.active { color: #e8faff; border-color: rgba(98,217,232,.45); background: rgba(98,217,232,.08); }
.step-row.active .step-mark { color: var(--cyan); border-color: var(--cyan); animation: blink 1.2s infinite; }
.step-row.failed { color: #ffd1d8; border-color: rgba(251,113,133,.4); }
.step-row.failed .step-mark { color: #fb7185; border-color: #fb7185; }
.activity-meta { margin-top: 15px; }
.model-description { margin: 10px 0 14px; font-size: 11px; }
.network-scroll { overflow-x: auto; padding: 6px 0 3px; border: 1px solid rgba(148,163,184,.1); border-radius: 10px; background: rgba(5,11,21,.28); }
.network-svg { display: block; width: 100%; min-width: 520px; height: auto; }
.network-edge { stroke: rgba(131,152,181,.1); stroke-width: .75; transition: stroke .15s, opacity .15s; }
.network-edge.is-active { stroke: rgba(98,217,232,.44); opacity: .8; }
.network-edge.is-winning { stroke: rgba(183,164,255,.88); stroke-width: 1.25; opacity: 1; }
.network-node.input { fill: #24354b; stroke: #425873; stroke-width: .7; transition: fill .15s, stroke .15s; }
.network-node.input.active { fill: var(--cyan); stroke: #d3fbff; }
.network-node.output { fill: #18253a; stroke: #7d8aa2; stroke-width: 1.4; }
.network-node.output.winner { fill: var(--purple); stroke: #e2d9ff; stroke-width: 2; }
.network-svg text { fill: #a9b8cb; font-family: "Segoe UI", Arial, sans-serif; font-size: 10px; }
.network-svg .layer-title { fill: #e7eef8; font-size: 11px; font-weight: 700; }
.network-svg .output-label { fill: #c8d5e5; font-size: 10px; }
.network-legend { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 11px; color: var(--muted); font-size: 10px; }
.network-legend span { display: flex; align-items: center; gap: 7px; }
.legend-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.input-dot { background: var(--cyan); }.output-dot { background: var(--purple); }
.network-note { margin: 11px 0 0; color: #8392a8; font-size: 10px; line-height: 1.5; }
.playground-card { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 22px; margin-bottom: 24px; padding: 24px; }
.playground-intro h2 { margin-top: 8px; font-size: 24px; }
.playground-intro > p { max-width: 420px; margin: 10px 0 15px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.load-status { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 10px; }
.load-status.ready { color: var(--green); }
.load-status.error { color: var(--amber); }
.test-form label { display: block; margin-bottom: 8px; color: #dce7f3; font-size: 11px; font-weight: 600; }
.test-form textarea {
  display: block;
  width: 100%;
  min-height: 105px;
  resize: vertical;
  border: 1px solid rgba(148,163,184,.22);
  border-radius: 10px;
  outline: 0;
  padding: 12px 13px;
  color: var(--text);
  background: rgba(5,11,21,.45);
  font: 12px/1.6 "Segoe UI", Arial, sans-serif;
}
.test-form textarea:focus { border-color: rgba(98,217,232,.65); box-shadow: 0 0 0 3px rgba(98,217,232,.09); }
.test-form textarea::placeholder { color: #687a91; }
.test-controls { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 9px; color: var(--muted); font-size: 10px; }
.button:disabled { cursor: not-allowed; opacity: .48; transform: none; }
.test-result { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(150px, .7fr) minmax(0, 1.3fr); gap: 18px; padding: 16px; border: 1px solid rgba(148,163,184,.13); border-radius: 10px; background: rgba(5,11,21,.34); }
.result-heading span { display: block; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .12em; }
.result-heading strong { display: block; margin-top: 9px; color: var(--purple); font-size: 17px; }
.score-list { display: grid; gap: 9px; }
.score-item { display: grid; grid-template-columns: 100px minmax(60px,1fr) 42px; align-items: center; gap: 10px; color: #b7c5d6; font-size: 10px; }
.score-track { height: 7px; overflow: hidden; border-radius: 10px; background: rgba(148,163,184,.14); }
.score-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, #45cbd9, #a899ff); }
.score-value { color: #dfe8f4; text-align: right; font-variant-numeric: tabular-nums; }
.empty-result { margin: 0; color: var(--muted); font-size: 11px; }
.score-note { grid-column: 1 / -1; margin: 0; color: #7f8ea3; font-size: 9px; line-height: 1.5; }

@media (max-width: 900px) {
  .dashboard-grid { grid-template-columns: 1fr; }
  .playground-card { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .shell { padding: 0 16px; }
  .topbar { gap: 12px; }
  nav { min-width: 0; overflow-x: auto; gap: 12px; }
  .nav-link { flex: 0 0 auto; font-size: 10px; }
  .status-grid { grid-template-columns: 1fr; }
  .step-list { grid-template-columns: 1fr; }
  .playground-card { grid-template-columns: 1fr; padding: 18px; }
  .test-result { grid-template-columns: 1fr; gap: 12px; }
  .score-note { grid-column: 1; }
  .training-card, .network-card { padding: 17px; }
}
