:root {
  color-scheme: light;
  --ink: #17211d;
  --muted: #66736d;
  --line: #dfe7e2;
  --paper: #ffffff;
  --wash: #f4f7f5;
  --green: #097a5b;
  --green-dark: #075b45;
  --red: #b42318;
  --shadow: 0 18px 48px rgba(23, 33, 29, .08);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--wash); color: var(--ink); font: 15px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, sans-serif; }
a { color: var(--green-dark); text-decoration: none; font-weight: 650; }
button, input, select { font: inherit; }
.topbar { height: 70px; display: flex; align-items: center; justify-content: space-between; padding: 0 max(24px, calc((100vw - 1180px) / 2)); background: rgba(255,255,255,.92); border-bottom: 1px solid var(--line); }
.brand { display: flex; gap: 11px; align-items: center; color: var(--ink); font-weight: 780; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: #fff; background: var(--green); }
nav { display: flex; align-items: center; gap: 24px; } nav form { margin: 0; }
.link-button { padding: 0; border: 0; color: var(--green-dark); background: none; cursor: pointer; font-weight: 650; }
.inline-form, .inline-link { display: inline; margin-left: 14px; } .link-danger { padding: 0; border: 0; color: var(--red); background: none; cursor: pointer; font-weight: 700; }
.shell { width: min(1180px, calc(100% - 40px)); margin: 48px auto 80px; }
.hero, .page-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; margin-bottom: 30px; }
h1, h2, h3, p { margin-top: 0; } h1 { margin-bottom: 8px; font-size: clamp(31px, 5vw, 46px); line-height: 1.08; letter-spacing: -.045em; } h2 { margin-bottom: 4px; font-size: 21px; letter-spacing: -.025em; }
.hero p, .panel-heading p, .empty p, .danger-zone p { margin-bottom: 0; color: var(--muted); }
.eyebrow { margin-bottom: 8px; color: var(--green); font-size: 12px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.primary, .secondary, .danger { display: inline-flex; justify-content: center; align-items: center; min-height: 42px; padding: 9px 18px; border-radius: 10px; border: 1px solid transparent; cursor: pointer; font-weight: 750; }
.primary { color: #fff; background: var(--green); box-shadow: 0 8px 18px rgba(9,122,91,.18); } .primary:hover { background: var(--green-dark); }
.secondary { color: var(--ink); background: #fff; border-color: var(--line); } .danger { color: #fff; background: var(--red); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.stats-grid article { min-height: 118px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); box-shadow: var(--shadow); }
.stats-grid span { display: block; margin-bottom: 14px; color: var(--muted); font-size: 13px; font-weight: 700; }
.stats-grid strong { font-size: 30px; letter-spacing: -.035em; } .stats-grid strong.small { font-size: 17px; word-break: break-word; }
.panel { margin-top: 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); box-shadow: var(--shadow); overflow: hidden; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.table-wrap { overflow-x: auto; } table { width: 100%; border-collapse: collapse; } th, td { padding: 16px 24px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; } th { color: var(--muted); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; } tbody tr:last-child td { border-bottom: 0; }
td strong, .subtle { display: block; } .subtle { color: var(--muted); font-size: 12px; } .actions { text-align: right; }
.job-details { min-width: 280px; max-width: 560px; white-space: normal; overflow-wrap: anywhere; }
.detail-link { display: inline-block; margin-left: 10px; white-space: nowrap; }
.compact-actions { margin-top: 0; }
.pill { display: inline-flex; padding: 4px 9px; border-radius: 999px; background: #eef2ef; color: var(--muted); font-size: 12px; font-weight: 750; }
.pill.active, .pill.success { color: #087353; background: #e4f5ee; } .pill.failed { color: #a32119; background: #fdecea; } .pill.running { color: #875800; background: #fff4d2; }
.empty { padding: 48px 24px; text-align: center; }
.notice { margin-bottom: 18px; padding: 13px 16px; border-radius: 11px; border: 1px solid var(--line); background: #fff; } .notice.error { color: #8e1c15; background: #fff0ef; border-color: #f4c7c3; } .notice.success { color: #086248; background: #eaf8f2; border-color: #bfe8d8; }
.form-panel { padding: 26px; overflow: visible; } .form-panel.narrow { width: min(620px, 100%); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
label { display: grid; gap: 7px; font-weight: 720; } label span { color: var(--muted); font-size: 12px; font-weight: 500; }
input { width: 100%; min-height: 44px; padding: 9px 12px; border: 1px solid #cfd9d3; border-radius: 9px; color: var(--ink); background: #fff; outline: 0; } input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(9,122,91,.12); } input[readonly] { color: var(--muted); background: #f4f6f5; }
select { width: 100%; min-height: 44px; padding: 9px 34px 9px 12px; border: 1px solid #cfd9d3; border-radius: 9px; color: var(--ink); background: #fff; }
.code-search-panel { overflow: visible; }
.code-search-form { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(190px, 260px) auto; align-items: end; gap: 16px; padding: 22px 24px; }
.search-actions { display: flex; gap: 9px; align-items: center; }
.result-count { color: var(--green-dark); font-size: 18px; }
.code-value { direction: ltr; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-variant-numeric: tabular-nums; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 22px; }
.runs-list { display: grid; gap: 20px; }
.run-card { margin-top: 0; }
.run-summary { align-items: center; }
.run-title-row { display: flex; align-items: center; gap: 10px; margin-bottom: 5px; font-size: 18px; }
.run-message, .run-empty { padding: 13px 24px; border-bottom: 1px solid var(--line); color: var(--muted); overflow-wrap: anywhere; }
.run-message.error { color: #8e1c15; background: #fff8f7; }
.run-filter-panel { margin-top: 0; margin-bottom: 20px; overflow: visible; }
.run-filter-form { display: grid; grid-template-columns: repeat(3, minmax(170px, 1fr)) auto; align-items: end; gap: 16px; padding: 22px 24px; }
.check { display: flex; align-items: center; gap: 10px; margin-top: 22px; } .check input { width: 18px; min-height: 18px; }
.form-actions { display: flex; gap: 10px; margin-top: 28px; }
.danger-zone { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 24px; padding: 20px 24px; border: 1px solid #f0c5c2; border-radius: 16px; background: #fff8f7; }
.login-shell { display: grid; min-height: calc(100vh - 170px); place-items: center; }
.login-card { width: min(430px, 100%); padding: 36px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow); } .login-card h1 { font-size: 35px; } .login-card p { color: var(--muted); }
.stack-form { display: grid; gap: 20px; margin-top: 26px; } .wide { width: 100%; }
@media (max-width: 850px) { .stats-grid { grid-template-columns: 1fr 1fr; } .form-grid, .code-search-form, .run-filter-form { grid-template-columns: 1fr; } .search-actions { justify-content: flex-start; } }
@media (max-width: 600px) { .topbar { height: auto; min-height: 66px; padding: 14px 18px; } nav { gap: 12px; } nav a:nth-child(1) { display: none; } .shell { width: min(100% - 24px, 1180px); margin-top: 28px; } .hero, .page-heading, .panel-heading, .danger-zone { align-items: stretch; flex-direction: column; } .stats-grid { grid-template-columns: 1fr; } .form-panel, .login-card { padding: 20px; } }
