:root { font-family: system-ui, sans-serif; color: #e9f2ef; background: #101a1b; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
h1 { margin: 3px 0 0; font-size: clamp(24px, 4vw, 36px); letter-spacing: -.03em; }
h2 { margin: 0 0 12px; font-size: 21px; letter-spacing: -.02em; }
h3, h4 { margin: 0; }
.eyebrow { margin: 0; color: #7ce1bd; font: 700 11px/1.3 ui-monospace, monospace; letter-spacing: .13em; text-transform: uppercase; }
.muted, .footnote { color: #a2b5b0; }
.footnote { margin-bottom: 0; font-size: 12px; line-height: 1.5; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px max(22px, calc((100vw - 1100px) / 2)); border-bottom: 1px solid #2a3e3d; }
.dashboard { max-width: 1180px; padding: 32px 22px 80px; margin: 0 auto; }
.panel, .pipeline-panel, .login-card { border: 1px solid #2a3e3d; border-radius: 12px; background: #172627; box-shadow: 0 14px 40px #0002; }
.panel { padding: 22px; margin: 22px 0; }
.intro { margin-bottom: 31px; }
.intro h2 { margin: 8px 0; font-size: clamp(25px, 3.5vw, 32px); }
.intro .muted { max-width: 760px; line-height: 1.55; }
.notice { padding: 12px 15px; background: #1b3230; border-left: 3px solid #7ce1bd; border-radius: 6px; }
.notice.partial, .notice.failed, .notice.error { background: #392820; border-color: #e2a171; }
.run-meta { display: flex; flex-wrap: wrap; gap: 9px 20px; margin: 15px 0 0; color: #a2b5b0; font-size: 12px; }
.run-meta .complete { color: #7ce1bd; }
.run-meta .partial, .run-meta .failed { color: #e2a171; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
.section-heading h2 { margin: 0; }
.section-heading span { color: #a2b5b0; font: 12px ui-monospace, monospace; }
.pipeline-stack { display: grid; gap: 17px; }
.pipeline-panel { padding: 22px; border-left: 4px solid #496f67; }
.pipeline-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.pipeline-title { display: flex; align-items: baseline; gap: 12px; }
.pipeline-title h3 { font-size: 20px; letter-spacing: -.02em; }
.pipeline-number { color: #7ce1bd; font: 700 12px ui-monospace, monospace; }
.pipeline-source { margin: 7px 0 0 30px; color: #7ce1bd; font: 700 11px ui-monospace, monospace; text-transform: uppercase; letter-spacing: .09em; }
.pipeline-description { margin: 14px 0; color: #a2b5b0; font-size: 13px; line-height: 1.5; }
.pipeline-times { display: flex; flex-wrap: wrap; gap: 5px 20px; color: #a2b5b0; font: 12px ui-monospace, monospace; }
.pipeline-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 9px; margin: 17px 0 19px; }
.pipeline-metric { padding: 12px 14px; border: 1px solid #2b4542; border-radius: 8px; background: #102021; }
.pipeline-metric small { display: block; color: #a2b5b0; font-size: 11px; }
.pipeline-metric strong { display: block; margin-top: 6px; font-size: 18px; overflow-wrap: anywhere; }
.status-pill, .source-tag { flex: none; padding: 6px 10px; border-radius: 99px; background: #233a39; color: #b8cbc5; font: 700 11px ui-monospace, monospace; white-space: nowrap; }
.status-pill.complete { background: #174236; color: #8ce9bf; }
.status-pill.partial, .status-pill.failed { background: #493024; color: #f2b383; }
.status-pill.running { background: #183d50; color: #93d9ef; }
.pending-details { margin: 0 0 18px; padding: 12px 14px; border-radius: 8px; background: #392820; color: #f2b383; }
.pending-details summary { cursor: pointer; font-size: 13px; font-weight: 700; }
.pending-details p { margin-bottom: 0; color: #e8d5c8; font-size: 12px; line-height: 1.6; }
.history-title { margin: 18px 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .07em; }
.history-empty, .history-note { color: #a2b5b0; font-size: 12px; line-height: 1.5; }
.history-note { margin-bottom: 0; }
.table-scroll { overflow: auto; max-height: 330px; }
table { width: 100%; min-width: 760px; border-collapse: collapse; }
th, td { padding: 10px 8px; border-bottom: 1px solid #2a3e3d; text-align: left; }
th { position: sticky; top: 0; background: #172627; color: #a2b5b0; font: 700 11px ui-monospace, monospace; text-transform: uppercase; }
td { font-size: 12px; }
.complete { color: #7ce1bd; }
.partial, .failed { color: #e2a171; }
.outside-worker { margin-top: 30px; }
.outside-worker .section-heading { margin-bottom: 5px; }
.external-row { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 15px 0; border-bottom: 1px solid #2a3e3d; }
.external-row:last-child { border-bottom: 0; padding-bottom: 0; }
.external-row h3 { font-size: 14px; }
.external-row p { margin: 5px 0 0; color: #a2b5b0; font-size: 12px; }
button { border: 0; border-radius: 7px; padding: 12px 15px; background: #7ce1bd; color: #112321; font-weight: 750; cursor: pointer; }
button.quiet { background: #233a39; color: #e9f2ef; }
.login-page { display: grid; place-items: center; padding: 24px; }
.login-card { width: min(100%, 430px); padding: 30px; }
.login-card .muted { line-height: 1.5; }
.login-card form { display: grid; gap: 10px; margin-top: 25px; }
.login-card label { font-size: 13px; font-weight: 650; }
.login-card input { width: 100%; padding: 12px 13px; border: 1px solid #49605d; border-radius: 7px; background: #102021; color: #e9f2ef; font: inherit; }
.login-card input:focus { outline: 2px solid #7ce1bd; outline-offset: 1px; }
.login-card form button { margin-top: 9px; }
@media (max-width: 650px) {
  .topbar { padding: 18px 20px; }
  .dashboard { padding: 24px 16px 60px; }
  .pipeline-panel { padding: 17px; }
  .section-heading, .external-row { align-items: flex-start; flex-direction: column; }
  .pipeline-title h3 { font-size: 18px; }
  .pipeline-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
[hidden] { display: none !important; }
