:root {
  color-scheme: dark;
  --bg: #06111d;
  --bg2: #071827;
  --sidebar: #061321;
  --panel: #081827;
  --panel2: #091c2e;
  --line: #1d3650;
  --line2: #142a40;
  --text: #eef4ff;
  --muted: #90a6c7;
  --muted2: #66809f;
  --purple: #8456ff;
  --purple2: #a78bff;
  --purple-bg: #261c58;
  --blue: #4aa4ff;
  --green: #24ce8b;
  --green-bg: #073c31;
  --amber: #f2ad00;
  --amber-bg: #3b2c00;
  --red: #ff3f55;
  --red-bg: #3b1019;
  --cyan: #55c6e8;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  min-height: 100%;
  background: radial-gradient(circle at 62% 0, #0b2033 0, #06121e 38%, #04101a 100%);
  color: var(--text);
  font:
    12px/1.35 Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
body {
  min-width: 1180px;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input {
  font: inherit;
  color: inherit;
}
.screen {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 200px;
  background: linear-gradient(180deg, #061321 0, #071522 60%, #061321 100%);
  border-right: 1px solid var(--line2);
  display: flex;
  flex-direction: column;
  z-index: 20;
}
.brand {
  height: 56px;
  border-bottom: 1px solid var(--line2);
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 22px;
  font-size: 21px;
  font-weight: 760;
}
.brand-mark {
  width: 32px;
  height: 32px;
  position: relative;
}
.brand-mark:before,
.brand-mark:after {
  content: "";
  position: absolute;
  border-radius: 4px;
  background: linear-gradient(180deg, #9565ff, #6c3cf1);
}
.brand-mark:before {
  width: 10px;
  height: 31px;
  transform: skew(-25deg);
  left: 7px;
  top: 1px;
}
.brand-mark:after {
  width: 10px;
  height: 28px;
  transform: skew(27deg);
  right: 5px;
  top: 5px;
  opacity: 0.9;
}
.side-scroll {
  padding: 10px 8px 74px;
  overflow: auto;
}
.side-link {
  height: 36px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  gap: 11px;
  color: #c4d1e4;
  padding: 0 14px;
  margin: 1px 0;
  position: relative;
  font-size: 12px;
}
.side-link:hover {
  background: #0d2135;
}
.side-link.active {
  background: linear-gradient(90deg, #322064, #2d1f72);
  color: #fff;
}
.side-link.active:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #a16aff;
}
.nav-ico {
  width: 19px;
  color: #a3b7d2;
  text-align: center;
  font-size: 16px;
}
.side-label {
  font-size: 10px;
  color: #8396b2;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 17px 14px 7px;
}
.project-switch {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 34px;
  border: 1px solid var(--line);
  height: 47px;
  border-radius: 6px;
  background: #071728;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
}
.project-dot {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8358ff, #3f2ba0);
  display: grid;
  place-items: center;
  font-weight: 700;
}
.project-switch small {
  display: block;
  color: var(--muted);
  font-size: 9px;
}
.main {
  grid-column: 2;
  min-width: 0;
}
.topbar {
  height: 56px;
  border-bottom: 1px solid var(--line2);
  background: rgba(5, 17, 29, 0.88);
  display: grid;
  grid-template-columns: 1fr 648px 1fr;
  align-items: center;
  padding: 0 22px;
  position: sticky;
  top: 0;
  z-index: 15;
}
.topbar .brand-spacer {
  color: transparent;
}
.search-box {
  height: 34px;
  border: 1px solid #294660;
  background: #061a2e;
  border-radius: 7px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  color: #8ea5c7;
}
.search-box input {
  border: 0;
  outline: 0;
  background: transparent;
  width: 100%;
  font-size: 12px;
}
.search-box input::placeholder {
  color: #8ba1c0;
}
.kbd {
  font-size: 10px;
  color: #91a3bd;
  border: 1px solid #263c54;
  border-radius: 4px;
  padding: 2px 6px;
  background: #0b2034;
}
.top-user {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 18px;
}
.bell {
  font-size: 17px;
  color: #b7c7dc;
}
.avatar {
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: linear-gradient(135deg, #344c78, #18263e);
  display: grid;
  place-items: center;
  font-size: 10px;
}
.user-line {
  display: flex;
  align-items: center;
  gap: 8px;
}
.content {
  padding: 20px 27px 26px;
}
.breadcrumbs {
  display: flex;
  gap: 14px;
  align-items: center;
  color: #a9bce0;
  font-size: 11px;
  margin-bottom: 13px;
}
.breadcrumbs .sep {
  color: #6682a3;
}
.run-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.run-title {
  font-size: 21px;
  font-weight: 740;
  letter-spacing: -0.01em;
}
.id-badge {
  display: inline-flex;
  margin-left: 8px;
  border-radius: 999px;
  background: #202257;
  color: #b6b5ff;
  padding: 3px 8px;
  font-size: 10px;
  vertical-align: 3px;
}
.context-strip {
  display: flex;
  align-items: center;
  gap: 17px;
  color: #a9b9d3;
  margin-top: 11px;
}
.divider {
  width: 1px;
  height: 20px;
  background: #25415c;
}
.context-link {
  color: #56aaff;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 10px;
}
.pill.green {
  background: #064938;
  border-color: #087557;
  color: #6de4b3;
}
.pill.purple {
  background: #24205a;
  border-color: #433b93;
  color: #c3b2ff;
}
.pill.blue {
  background: #0b2d55;
  border-color: #1b5e9c;
  color: #79baff;
}
.pill.amber {
  background: #3b2c00;
  border-color: #8b6700;
  color: #ffc84b;
}
.pill.red {
  background: #42121b;
  border-color: #952738;
  color: #ff818f;
}
.actions {
  display: flex;
  gap: 10px;
}
.btn {
  height: 37px;
  padding: 0 14px;
  border-radius: 5px;
  border: 1px solid #254058;
  background: #081a2a;
  color: #eaf2ff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.btn.purple {
  border-color: #7f4aff;
  background: #27174d;
  color: #c7adff;
}
.btn.danger {
  border-color: #ff334d;
  background: transparent;
  color: #ff566b;
}
.btn.primary {
  border-color: #8657ff;
  background: linear-gradient(180deg, #7d50ef, #6338c4);
  color: #fff;
}
.btn.ghost {
  background: transparent;
}
.tabs {
  height: 52px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin-top: 10px;
}
.tab {
  height: 52px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  color: #acc0dc;
  position: relative;
  font-size: 12px;
}
.tab.active {
  color: #fff;
  font-weight: 650;
}
.tab.active:after {
  content: "";
  position: absolute;
  left: 7px;
  right: 7px;
  bottom: 0;
  height: 3px;
  background: #8a5cff;
  border-radius: 3px 3px 0 0;
}
.grid-top {
  display: grid;
  grid-template-columns: 1.57fr 1fr;
  gap: 13px;
  margin-top: 16px;
}
.grid-bottom {
  display: grid;
  grid-template-columns: 1.1fr 1.1fr 1.13fr;
  gap: 13px;
  margin-top: 13px;
}
.panel {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(8, 27, 45, 0.96), rgba(6, 22, 37, 0.98));
  border-radius: 7px;
  overflow: hidden;
  min-width: 0;
}
.panel-head {
  padding: 12px 14px 10px;
  border-bottom: 1px solid var(--line2);
}
.panel-head h2 {
  font-size: 14px;
  margin: 0 0 2px;
  font-weight: 700;
}
.panel-head p {
  margin: 0;
  color: #8ca4c4;
  font-size: 10px;
}
.panel-body {
  padding: 11px 14px;
}
.table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.table th {
  height: 30px;
  text-align: left;
  color: #97acca;
  font-size: 9px;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
  padding: 0 10px;
}
.table td {
  height: 54px;
  border-bottom: 1px solid #18334c;
  padding: 0 10px;
  vertical-align: middle;
}
.table tbody tr:last-child td {
  border-bottom: 0;
}
.task-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}
.state-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 700;
  flex: 0 0 auto;
}
.state-icon.green {
  background: #1ecb8a;
  color: #08281f;
}
.state-icon.purple {
  background: linear-gradient(135deg, #8b62ff, #6a3cea);
  color: #fff;
}
.state-icon.slate {
  background: #476083;
  color: #bcd0e8;
}
.task-title {
  font-weight: 650;
}
.task-sub {
  color: #8fa5c4;
  font-size: 10px;
  margin-top: 2px;
}
.link {
  color: #9b7cff;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.agent-card {
  border: 1px solid #264761;
  border-radius: 7px;
  padding: 12px 13px;
  background: #07182a;
  margin-bottom: 12px;
}
.agent-card:last-child {
  margin-bottom: 0;
}
.agent-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.agent-title {
  font-weight: 650;
  margin-top: 8px;
}
.agent-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px 18px;
  margin-top: 12px;
  font-size: 10px;
}
.kv {
  display: grid;
  grid-template-columns: 66px 1fr;
  gap: 7px;
}
.kv b {
  color: #8fa4c5;
  font-weight: 500;
}
.saved {
  color: #49dc9c;
}
.timeline {
  position: relative;
  padding-left: 19px;
}
.timeline:before {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 9px;
  width: 1px;
  background: #6b83a4;
}
.event {
  position: relative;
  padding: 2px 0 13px 13px;
}
.event:before {
  content: "";
  position: absolute;
  left: -18px;
  top: 5px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #3dbf83;
}
.event.purple:before {
  background: #8558ff;
}
.event.blue:before {
  background: #58a5ef;
}
.event.red:before {
  background: #ff5065;
}
.event.amber:before {
  background: #efae25;
}
.event-time {
  position: absolute;
  right: 0;
  top: 2px;
  color: #7089aa;
  font-size: 9px;
}
.event-title {
  font-weight: 650;
  font-size: 10px;
}
.event-sub {
  color: #8aa1c0;
  font-size: 9px;
  margin-top: 2px;
  max-width: 83%;
}
.callout {
  border: 1px solid #187b60;
  background: linear-gradient(90deg, rgba(5, 69, 56, 0.65), rgba(4, 43, 39, 0.35));
  border-radius: 5px;
  padding: 12px;
  margin-bottom: 10px;
}
.callout.red {
  border-color: #9c2c40;
  background: linear-gradient(90deg, rgba(82, 16, 29, 0.65), rgba(46, 10, 17, 0.34));
}
.callout.amber {
  border-color: #8c650c;
  background: linear-gradient(90deg, rgba(73, 52, 5, 0.72), rgba(46, 34, 8, 0.35));
}
.callout.purple {
  border-color: #7251d0;
  background: linear-gradient(90deg, rgba(55, 35, 104, 0.6), rgba(32, 22, 65, 0.4));
}
.callout-title {
  font-weight: 700;
  color: #8af0c7;
}
.callout.red .callout-title {
  color: #ff8b99;
}
.callout.amber .callout-title {
  color: #ffd16f;
}
.callout.purple .callout-title {
  color: #c5abff;
}
.callout-sub {
  font-size: 10px;
  color: #b2c6dc;
  margin-top: 2px;
}
.detail-list {
  margin-top: 5px;
}
.detail-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  border-bottom: 1px solid #18334c;
  padding: 9px 2px;
  font-size: 10px;
}
.detail-row:last-child {
  border-bottom: 0;
}
.detail-row b {
  color: #a8bad2;
}
.current-next {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  min-height: 112px;
}
.cn {
  padding: 11px 12px;
  border-right: 1px solid #18334c;
}
.cn:last-child {
  border-right: 0;
}
.cn-label {
  font-size: 9px;
  text-transform: uppercase;
  color: #9b7cff;
  margin-bottom: 8px;
}
.cn-label.blue {
  color: #5bacff;
}
.cn-label.green {
  color: #45df9b;
}
.cn-label.amber {
  color: #ffc24b;
}
.cn-title {
  font-weight: 650;
  font-size: 10px;
}
.cn-sub {
  color: #879ebd;
  font-size: 9px;
  margin-top: 4px;
}
.review-card {
  border: 1px solid #203d58;
  border-radius: 6px;
  padding: 13px;
  background: #07182a;
}
.review-card .big {
  font-weight: 650;
  margin-bottom: 4px;
}
.disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.recovery-band {
  border: 1px solid #8f2e3e;
  background: linear-gradient(90deg, rgba(79, 18, 30, 0.75), rgba(44, 15, 22, 0.4));
  border-radius: 7px;
  padding: 12px 14px;
  margin-top: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.recovery-band h3 {
  margin: 0;
  font-size: 12px;
  color: #ff9aa5;
}
.recovery-band p {
  margin: 3px 0 0;
  color: #b9c8da;
  font-size: 10px;
}
.attempt-row {
  border: 1px solid #264761;
  border-radius: 6px;
  padding: 10px 11px;
  margin-bottom: 9px;
  background: #07182a;
}
.attempt-row:last-child {
  margin-bottom: 0;
}
.attempt-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.attempt-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
  font-size: 9px;
  color: #9db1ce;
}
.review-layout {
  display: grid;
  grid-template-columns: 1.75fr 0.9fr;
  gap: 13px;
  margin-top: 16px;
}
.diff-panel {
  display: grid;
  grid-template-columns: 216px 1fr;
  min-height: 603px;
}
.file-tree {
  border-right: 1px solid var(--line2);
  background: #061726;
  padding: 10px 0;
}
.file-head {
  padding: 0 12px 9px;
  color: #8da4c3;
  font-size: 9px;
  text-transform: uppercase;
}
.file {
  height: 34px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #adbed5;
  font-size: 10px;
}
.file.active {
  background: #13284b;
  color: #fff;
  border-left: 2px solid #8a5cff;
  padding-left: 10px;
}
.file .chg {
  color: #65d69b;
}
.diff-view {
  background: #061522;
}
.diff-toolbar {
  height: 42px;
  border-bottom: 1px solid var(--line2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  color: #a9bdd7;
}
.code {
  font:
    10px/1.6 ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
}
.code-line {
  display: grid;
  grid-template-columns: 38px 38px 1fr;
  padding: 0 10px;
  min-height: 20px;
}
.code-line.add {
  background: rgba(12, 91, 60, 0.23);
}
.code-line.del {
  background: rgba(107, 23, 34, 0.23);
}
.ln {
  color: #526c89;
  text-align: right;
  padding-right: 10px;
  user-select: none;
}
.review-side .panel {
  margin-bottom: 13px;
}
.finding {
  padding: 11px 12px;
  border-bottom: 1px solid #18334c;
}
.finding:last-child {
  border-bottom: 0;
}
.finding-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.finding-title {
  font-weight: 650;
  font-size: 10px;
}
.finding-sub {
  color: #8da4c3;
  font-size: 9px;
  margin-top: 4px;
}
.gate-row {
  display: grid;
  grid-template-columns: 21px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid #18334c;
}
.gate-row:last-child {
  border-bottom: 0;
}
.gate-mark {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #08442f;
  color: #5fe0a4;
}
.gate-mark.bad {
  background: #4c121e;
  color: #ff8391;
}
.gate-mark.warn {
  background: #493600;
  color: #ffca58;
}
.gate-name {
  font-size: 10px;
  font-weight: 650;
}
.gate-sub {
  font-size: 9px;
  color: #879fbe;
}
.merge-gate {
  margin-top: 13px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #07182a;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 16px;
  padding: 14px;
}
.merge-gate h2 {
  font-size: 13px;
  margin: 0 0 5px;
}
.merge-gate p {
  color: #8ea5c4;
  font-size: 10px;
  margin: 0;
}
.merge-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
.outcome-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 13px;
  margin-top: 16px;
}
.provenance {
  font:
    10px/1.6 ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  color: #b5c7df;
  background: #061522;
  border: 1px solid #1b3853;
  border-radius: 6px;
  padding: 12px;
}
.next-box {
  border: 1px solid #286b52;
  background: #082b23;
  border-radius: 6px;
  padding: 13px;
}
.next-box h3 {
  margin: 0 0 6px;
  color: #74e2b4;
  font-size: 12px;
}
.next-box p {
  margin: 0;
  color: #a8bfd0;
  font-size: 10px;
}
.mini-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.settings-panel .panel-body {
  display: grid;
  gap: 10px;
}
.config-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 12px;
  border: 1px solid #1b3853;
  border-radius: 6px;
  background: #081725;
}
.config-row.locked {
  background: #07131f;
}
.config-main {
  min-width: 0;
}
.config-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #dce8f7;
  font-size: 12px;
  font-weight: 700;
}
.config-desc {
  margin: 4px 0 9px;
  color: #8da4c3;
  font-size: 10px;
}
.config-row input[type="text"],
.config-row input:not([type]) {
  width: min(560px, 100%);
}
.config-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
}
.config-toggle input {
  accent-color: #7c6df2;
}
.config-row .error {
  grid-column: 1 / -1;
}
.status-line {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 8px;
}
.subtle {
  color: #8da4c3;
}
.right {
  margin-left: auto;
}
@media (max-width: 1280px) {
  body {
    min-width: 1024px;
  }
  .screen {
    grid-template-columns: 180px 1fr;
  }
  .sidebar {
    width: 180px;
  }
  .topbar {
    grid-template-columns: 1fr 520px 1fr;
  }
  .content {
    padding: 17px 18px;
  }
  .grid-top {
    grid-template-columns: 1.5fr 1fr;
  }
  .diff-panel {
    grid-template-columns: 185px 1fr;
  }
}
.login-output {
  margin-top: 12px;
  max-height: 320px;
  overflow: auto;
  padding: 12px;
  border: 1px solid #26364f;
  border-radius: 8px;
  background: #09111f;
  color: #d7e3f4;
  white-space: pre-wrap;
  word-break: break-word;
}
.run-launch-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) auto;
  align-items: end;
}
.run-launch-grid label {
  display: grid;
  gap: 5px;
  color: #9eb2cc;
  font-size: 12px;
}
.run-launch-grid select,
.run-launch-grid input {
  min-height: 38px;
  border: 1px solid #30435e;
  border-radius: 7px;
  background: #0b1626;
  color: #e8eef8;
  padding: 7px 9px;
}
