:root {
  color-scheme: dark;
  --ink: #edf3ef;
  --muted: #9aa8a0;
  --paper: #0d1110;
  --surface: #151b18;
  --surface-muted: #1b2420;
  --line: #2c3933;
  --green: #58c997;
  --green-soft: #203b31;
  --saffron: #eda55f;
  --red: #ee8175;
  --warning-surface: #332719;
  --warning-ink: #f2c58e;
  --on-accent: #07130e;
  --shadow: 0 14px 35px rgba(0, 0, 0, 0.28);
  font-family: Manrope, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(
      circle at 80% 5%,
      rgba(237, 165, 95, 0.08),
      transparent 25%
    ),
    linear-gradient(rgba(237, 243, 239, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(237, 243, 239, 0.025) 1px, transparent 1px),
    var(--paper);
  background-size:
    auto,
    28px 28px,
    28px 28px,
    auto;
}
button,
input,
select {
  font: inherit;
}
input[type="file"] {
  height: auto;
  min-height: 48px;
  padding: 10px 12px;
}
input[type="file"]::file-selector-button {
  border: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 7px 10px;
  margin-right: 12px;
  cursor: pointer;
}
.shell {
  min-height: 100vh;
  display: grid;
  grid-template: 64px 1fr/230px 1fr;
}
.topbar {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(21, 27, 24, 0.9);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 4;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand span {
  font-family: Newsreader, serif;
  font-size: 22px;
  font-weight: 600;
}
.brand small {
  font:
    500 10px DM Mono,
    monospace;
  letter-spacing: 1.5px;
  color: var(--saffron);
  border-left: 1px solid var(--line);
  padding-left: 10px;
}
.system-state {
  font:
    500 11px DM Mono,
    monospace;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.logout-button {
  height: 34px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  cursor: pointer;
}
.logout-button:hover {
  border-color: var(--ink);
}
.auth-page {
  min-height: 100vh;
  max-width: none;
  padding: 32px;
  display: grid;
  place-items: center;
}
.auth-page > svg {
  color: var(--green);
}
.auth-page > p {
  color: var(--muted);
  font-size: 12px;
}
.login-panel {
  width: min(100%, 430px);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 32px;
}
.login-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  font: 600 22px Newsreader, serif;
}
.login-brand svg,
.login-heading > svg {
  color: var(--green);
}
.login-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}
.login-heading h1 {
  margin: 0;
  font: 600 32px Newsreader, serif;
}
.login-copy {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  margin: 14px 0 22px;
}
.login-panel form {
  display: grid;
  gap: 16px;
}
.login-panel label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
}
.login-panel input {
  width: 100%;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  padding: 0 12px;
}
.login-panel input:focus {
  outline: 2px solid rgba(88, 201, 151, 0.2);
  border-color: var(--green);
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #65726b;
}
.dot.live {
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(88, 201, 151, 0.12);
}
.sidebar {
  border-right: 1px solid var(--line);
  padding: 28px 16px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(13, 17, 16, 0.72);
}
nav {
  display: grid;
  gap: 6px;
}
nav button {
  height: 44px;
  border: 0;
  background: none;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 13px;
  text-align: left;
  cursor: pointer;
}
nav button svg {
  width: 18px;
}
nav button.active {
  background: var(--ink);
  color: var(--paper);
}
nav button:hover:not(.active) {
  background: rgba(237, 243, 239, 0.06);
  color: var(--ink);
}
.sidebar-foot {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px;
  color: var(--muted);
  font-size: 12px;
}
.sidebar-foot svg {
  width: 18px;
  color: var(--green);
}
.sidebar-foot small {
  font:
    10px DM Mono,
    monospace;
}
main {
  padding: 38px clamp(22px, 4vw, 58px) 70px;
  max-width: 1450px;
  width: 100%;
}
.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
}
.eyebrow {
  font:
    500 11px DM Mono,
    monospace;
  text-transform: uppercase;
  color: var(--saffron);
  letter-spacing: 1.2px;
  margin: 0 0 7px;
}
.page-heading h1 {
  font:
    600 clamp(34px, 4vw, 48px) Newsreader,
    serif;
  margin: 0;
  letter-spacing: 0;
}
.icon-button {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: var(--surface);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  background: var(--surface);
  margin-bottom: 22px;
}
.metric {
  display: flex;
  gap: 15px;
  padding: 19px 22px;
  border-right: 1px solid var(--line);
}
.metric:last-child {
  border: 0;
}
.metric > span {
  width: 37px;
  height: 37px;
  background: var(--green-soft);
  color: var(--green);
  display: grid;
  place-items: center;
}
.metric svg {
  width: 18px;
}
.metric small,
.metric p {
  display: block;
  color: var(--muted);
  margin: 0;
  font-size: 11px;
}
.metric strong {
  display: block;
  font-size: 18px;
  margin: 2px 0;
}
.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: 22px;
  margin-bottom: 22px;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.form-panel,
.result-panel,
.horizon-panel,
.history {
  padding: 24px;
}
.panel-title {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 22px;
}
.panel-title > svg {
  width: 20px;
  color: var(--saffron);
  margin-top: 2px;
}
.panel-title h2 {
  font-size: 16px;
  margin: 0 0 3px;
}
.panel-title p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.form-panel form {
  display: grid;
  gap: 17px;
}
label {
  display: grid;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--muted);
}
input,
select {
  width: 100%;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 0 12px;
  color: var(--ink);
  outline: none;
  border-radius: 0;
}
input:focus,
select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(88, 201, 151, 0.12);
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.portfolio-grid {
  grid-template-columns: minmax(300px, 0.7fr) minmax(0, 1.3fr);
}
.portfolio-table-wrap {
  max-height: 780px;
  overflow: auto;
  border: 1px solid var(--line);
}
.portfolio-table {
  width: 100%;
  min-width: 1120px;
  border-collapse: collapse;
  font-size: 12px;
}
.portfolio-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--paper);
  color: var(--muted);
  text-align: left;
  text-transform: uppercase;
  font: 700 10px DM Mono, monospace;
  padding: 11px;
  border-bottom: 1px solid var(--line);
}
.portfolio-table td {
  padding: 12px 11px;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  background: var(--surface-muted);
}
.portfolio-table tr.buy td:first-child { border-left: 3px solid var(--green); }
.portfolio-table tr.sell td:first-child { border-left: 3px solid var(--red); }
.portfolio-table tr.hold td:first-child { border-left: 3px solid var(--saffron); }
.portfolio-table td:nth-child(1) { width: 175px; }
.portfolio-table td:nth-child(2) { width: 75px; }
.portfolio-table td:nth-child(3) { width: 125px; }
.portfolio-table td:nth-child(4) { width: 115px; }
.portfolio-table td:nth-child(5) { min-width: 260px; }
.portfolio-table td:nth-child(6) { min-width: 210px; }
.portfolio-table td:nth-child(7) { width: 125px; }
.portfolio-table td strong,
.portfolio-table td small,
.portfolio-table td code,
.portfolio-table td span { display: block; }
.portfolio-table td small,
.portfolio-table td code { color: var(--muted); margin-top: 4px; }
.portfolio-table td code { font-size: 9px; }
.portfolio-table td p { margin: 0; line-height: 1.55; }
.portfolio-table td details { margin-top: 8px; }
.portfolio-table td summary { color: var(--saffron); cursor: pointer; }
.portfolio-table td ul { padding-left: 17px; }
.rating {
  font: 700 10px DM Mono, monospace;
  text-transform: uppercase;
  padding: 5px 8px;
  border: 1px solid var(--line);
  white-space: nowrap;
}
.rating.buy { color: var(--green); border-color: var(--green); }
.rating.sell { color: var(--red); border-color: var(--red); }
.rating.hold { color: var(--saffron); border-color: var(--saffron); }
.primary,
.secondary {
  border: 0;
  min-height: 43px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 700;
}
.primary {
  background: var(--green);
  color: var(--on-accent);
  margin-top: 3px;
}
.secondary {
  background: var(--ink);
  color: var(--paper);
  width: 100%;
}
.primary:disabled,
.secondary:disabled,
.horizon:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.primary svg,
.secondary svg {
  width: 17px;
}
.result-panel {
  min-height: 415px;
}
.result-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}
.result-head code,
.run-row code {
  font:
    11px DM Mono,
    monospace;
  color: var(--muted);
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font:
    500 10px DM Mono,
    monospace;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.status svg {
  width: 13px;
  height: 13px;
}
.status.completed,
.status.healthy {
  color: var(--green);
}
.status.failed,
.status.unhealthy {
  color: var(--red);
}
.status.insufficient_evidence,
.status.completed_with_warnings {
  color: var(--saffron);
}
.stage-list {
  display: grid;
  margin: 18px 0;
}
.stage-list > div {
  display: flex;
  gap: 12px;
  min-height: 50px;
}
.stage-dot {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 50%;
  background: #59655f;
  position: relative;
  flex: none;
}
.stage-dot:after {
  content: "";
  position: absolute;
  left: 4px;
  top: 10px;
  width: 1px;
  height: 40px;
  background: var(--line);
}
.stage-list > div:last-child .stage-dot:after {
  display: none;
}
.stage-dot.succeeded {
  background: var(--green);
}
.stage-dot.failed {
  background: var(--red);
}
.stage-dot.skipped {
  background: var(--saffron);
}
.stage-list p {
  display: grid;
  margin: 0;
}
.stage-list strong {
  text-transform: capitalize;
  font-size: 12px;
}
.stage-list small {
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
}
.result-note,
.notice {
  display: flex;
  gap: 10px;
  background: var(--warning-surface);
  border-left: 3px solid var(--saffron);
  padding: 13px;
  color: var(--warning-ink);
  font-size: 11px;
}
.result-note svg,
.notice svg {
  width: 17px;
  flex: none;
}
.result-note p {
  display: grid;
  margin: 0;
  gap: 3px;
}
.result-note strong {
  text-transform: capitalize;
}
.evidence-sources {
  margin-top: 14px;
  border-top: 1px solid var(--line);
}
.evidence-sources summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 0;
  cursor: pointer;
  list-style: none;
}
.evidence-sources summary::-webkit-details-marker {
  display: none;
}
.evidence-sources summary > svg {
  width: 17px;
  color: var(--muted);
}
.evidence-sources summary span,
.evidence-list p {
  display: grid;
  gap: 2px;
  margin: 0;
}
.evidence-sources summary strong,
.evidence-list strong {
  font-size: 11px;
  text-transform: capitalize;
}
.evidence-sources summary small,
.evidence-list small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.evidence-list {
  display: grid;
  gap: 9px;
  padding-bottom: 14px;
}
.evidence-list > div {
  display: flex;
  gap: 9px;
  padding: 10px;
  background: var(--surface-muted);
  border-left: 2px solid var(--green);
}
.evidence-list > div.unavailable {
  border-left-color: var(--red);
}
.evidence-list > div > svg {
  width: 15px;
  flex: none;
  color: var(--green);
}
.evidence-list > div.unavailable > svg {
  color: var(--red);
}
.ranking-overview {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}
.ranking-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}
.ranking-list > li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.rank-number {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--paper);
  font: 600 11px DM Mono, monospace;
}
.rank-content,
.rank-heading > span {
  display: grid;
  gap: 2px;
}
.rank-heading {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}
.rank-heading > span:last-child {
  text-align: right;
}
.rank-heading strong,
.rank-heading b {
  font-size: 13px;
}
.rank-heading small,
.rank-content p,
.rank-content dt,
.rank-content dd {
  font-size: 10px;
}
.rank-heading small,
.rank-content p,
.rank-content dd {
  color: var(--muted);
}
.rank-content p {
  margin: 8px 0;
  line-height: 1.5;
}
.rank-content dl {
  display: grid;
  gap: 5px;
  margin: 0;
}
.rank-content dl > div {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 8px;
}
.rank-content dt {
  font-weight: 700;
}
.rank-content dd {
  margin: 0;
  line-height: 1.4;
}
.notice {
  margin-bottom: 18px;
  align-items: center;
}
.notice button {
  margin-left: auto;
  border: 0;
  background: none;
  font-size: 20px;
  cursor: pointer;
  color: inherit;
}
.horizon-panel {
  display: grid;
  gap: 10px;
}
.horizon-panel .panel-title {
  margin-bottom: 10px;
}
.horizon-selector {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
}
.horizon-selector button {
  min-width: 0;
  min-height: 68px;
  border: 0;
  border-right: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  padding: 10px;
  display: grid;
  align-content: center;
  gap: 4px;
  text-align: center;
  cursor: pointer;
}
.horizon-selector button:last-child {
  border-right: 0;
}
.horizon-selector button:hover {
  background: var(--surface-muted);
}
.horizon-selector button.active {
  background: var(--green);
  color: var(--on-accent);
}
.horizon-selector strong {
  font-size: 11px;
}
.horizon-selector small {
  color: var(--muted);
  font-size: 9px;
}
.horizon-selector button.active small {
  color: rgba(7, 19, 14, 0.72);
}
.horizon-summary {
  min-height: 74px;
  border: 1px solid var(--line);
  background: var(--surface-muted);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.horizon-summary span {
  display: grid;
  gap: 4px;
}
.horizon-summary strong {
  font-size: 12px;
}
.horizon-summary small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}
.horizon-summary svg {
  width: 20px;
  flex: none;
  margin-left: 12px;
  color: var(--green);
}
.agent-discussion {
  margin-top: 16px;
  border-top: 1px solid var(--line);
}
.agent-discussion summary {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  list-style: none;
}
.agent-discussion summary::-webkit-details-marker {
  display: none;
}
.agent-discussion summary > svg {
  width: 18px;
  color: var(--green);
}
.agent-discussion summary > span {
  display: grid;
}
.agent-discussion summary strong {
  font-size: 12px;
}
.agent-discussion summary small {
  color: var(--muted);
  font-size: 10px;
}
.discussion-thread {
  border-left: 1px solid var(--line);
  margin-left: 9px;
  padding-left: 18px;
}
.discussion-entry {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.discussion-entry.moderator {
  border-left: 3px solid var(--saffron);
  padding-left: 12px;
}
.discussion-head {
  display: flex;
  align-items: center;
  gap: 9px;
}
.agent-mark {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  flex: none;
  background: var(--green-soft);
  color: var(--green);
  font: 700 11px DM Mono, monospace;
}
.discussion-entry.moderator .agent-mark {
  background: var(--warning-surface);
  color: var(--saffron);
}
.discussion-head > span:nth-child(2) {
  display: grid;
  min-width: 0;
}
.discussion-head strong {
  text-transform: capitalize;
  font-size: 11px;
}
.discussion-head small,
.discussion-entry p,
.discussion-entry b,
.discussion-entry li {
  font-size: 10px;
}
.discussion-head small,
.discussion-entry p,
.discussion-entry li {
  color: var(--muted);
}
.agent-score {
  display: grid;
  margin-left: auto;
  text-align: right;
  font: 600 11px DM Mono, monospace;
}
.agent-score small {
  font: 9px DM Sans, sans-serif;
}
.discussion-entry p {
  margin: 10px 0;
  line-height: 1.55;
}
.discussion-entry > div:not(.discussion-head) {
  margin-top: 8px;
}
.discussion-entry ul {
  margin: 4px 0 0;
  padding-left: 17px;
  line-height: 1.5;
}
.provider-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}
.provider {
  padding: 22px;
}
.provider-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.provider-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: var(--green-soft);
  color: var(--green);
}
.provider-icon svg {
  width: 18px;
}
.provider h2 {
  font-size: 15px;
  margin: 17px 0 3px;
}
.capability {
  text-transform: uppercase;
  font:
    10px DM Mono,
    monospace;
  color: var(--saffron);
}
dl {
  margin: 18px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}
dl div {
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
dt {
  font-size: 10px;
  color: var(--muted);
}
dd {
  font-size: 11px;
  margin: 3px 0 0;
}
.provider-error {
  font-size: 10px;
  color: var(--red);
  word-break: break-word;
}
.history {
  min-width: 0;
}
.history-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.6fr);
  gap: 18px;
  align-items: start;
}
.run-list {
  display: grid;
  max-height: 760px;
  overflow: auto;
}
.run-row {
  display: grid;
  grid-template-columns: 160px 1fr auto;
  align-items: center;
  border-top: 1px solid var(--line);
  border-right: 0;
  border-bottom: 0;
  border-left: 3px solid transparent;
  border-radius: 0;
  background: transparent;
  color: inherit;
  width: 100%;
  text-align: left;
  padding: 13px 0;
  gap: 14px;
  cursor: pointer;
}
.run-row:hover,
.run-row.selected {
  background: var(--surface-muted);
  border-left-color: var(--green);
}
.run-row > span:nth-child(2) {
  display: grid;
}
.run-row strong {
  font-size: 12px;
}
.run-row small {
  font-size: 10px;
  color: var(--muted);
  margin-top: 2px;
}
.investigation-meta {
  display: grid;
  gap: 8px;
  margin: 16px 0;
}
.investigation-meta > div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
}
.investigation-meta code {
  white-space: normal;
  overflow-wrap: anywhere;
}
.investigation-warnings {
  margin-top: 16px;
  color: var(--muted);
  font-size: 11px;
}
.investigation-warnings strong {
  color: var(--text);
}
.investigation-warnings ul {
  margin: 8px 0 0;
  padding-left: 18px;
}
.empty {
  min-height: 180px;
  display: grid;
  place-content: center;
  justify-items: center;
  color: var(--muted);
}
.empty svg {
  width: 24px;
}
.empty p {
  font-size: 12px;
}
.spin {
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (max-width: 850px) {
  .shell {
    grid-template: 64px 1fr 62px/1fr;
  }
  .topbar {
    grid-row: 1;
  }
  .sidebar {
    grid-row: 3;
    grid-column: 1;
    border: 0;
    border-top: 1px solid var(--line);
    padding: 7px;
    position: sticky;
    bottom: 0;
    z-index: 5;
    background: var(--surface);
  }
  .sidebar nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
  nav button {
    height: 48px;
    justify-content: center;
    padding: 0;
  }
  nav button span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .sidebar-foot {
    display: none;
  }
  main {
    grid-row: 2;
    padding: 26px 16px 45px;
  }
  .content-grid {
    grid-template-columns: 1fr;
  }
  .metrics {
    grid-template-columns: 1fr;
  }
  .metric {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .metric:last-child {
    border-bottom: 0;
  }
  .provider-grid {
    grid-template-columns: 1fr;
  }
  .brand small {
    display: none;
  }
  .system-state {
    font-size: 9px;
  }
}
@media (max-width: 500px) {
  .topbar {
    padding: 0 15px;
  }
  .logout-button span,
  .system-state {
    display: none;
  }
  .auth-page {
    padding: 16px;
  }
  .login-panel {
    padding: 24px 20px;
  }
  .page-heading h1 {
    font-size: 34px;
  }
  .field-row {
    grid-template-columns: 1fr;
  }
  .run-row {
    grid-template-columns: 1fr auto;
  }
  .run-row > .status {
    grid-column: 1/-1;
  }
  .history-layout {
    grid-template-columns: 1fr;
  }
  .run-list {
    max-height: 420px;
  }
  .metrics {
    display: none;
  }
  .provider {
    padding: 18px;
  }
  .form-panel,
  .result-panel,
  .horizon-panel,
  .history {
    padding: 18px;
  }
  .horizon-selector button {
    min-height: 72px;
    padding: 8px 4px;
  }
  .horizon-selector strong {
    font-size: 10px;
  }
  .discussion-head {
    align-items: flex-start;
  }
  .agent-score {
    max-width: 76px;
  }
}
