:root {
  color-scheme: light;
  --bg: #f5f5f2;
  --paper: #ffffff;
  --ink: #20211f;
  --muted: #696b66;
  --line: #dedfd9;
  --accent: #235e45;
  --accent-soft: #e8f1ec;
  --danger: #8a332b;
  --danger-soft: #f8eae8;
  --warn: #795818;
  --warn-soft: #f6f0df;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); }
button, input { font: inherit; }
.page { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0 64px; }
.header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 48px; }
.header-actions { display: flex; align-items: center; gap: 18px; }
.brand { color: var(--ink); text-decoration: none; font-size: 19px; font-weight: 700; letter-spacing: -.02em; }
.tag { display: inline-block; margin-left: 10px; padding: 3px 7px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); font-size: 12px; }
.language-switch { display: flex; align-items: center; gap: 10px; font-size: 12px; }
.language-switch a { color: var(--muted); text-decoration: none; }
.language-switch a[aria-current="page"] { color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 12px; font-size: clamp(28px, 4vw, 44px); line-height: 1.15; letter-spacing: -.035em; }
h2 { margin-bottom: 6px; font-size: 19px; }
.eyebrow { margin-bottom: 8px; color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.lead { max-width: 680px; color: var(--muted); font-size: 17px; line-height: 1.75; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 24px; margin-bottom: 18px; }
.login-panel { max-width: 760px; margin: 80px auto 0; }
form { margin-top: 32px; }
label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 650; }
.form-row { display: flex; gap: 8px; }
input { min-width: 0; flex: 1; border: 1px solid #b9bbb4; border-radius: 5px; padding: 11px 12px; background: white; }
input:focus { outline: 2px solid #9fc4af; outline-offset: 1px; border-color: var(--accent); }
button { border: 1px solid var(--accent); border-radius: 5px; padding: 10px 16px; background: var(--accent); color: white; cursor: pointer; }
button:disabled { opacity: .55; cursor: wait; }
.secondary { background: white; color: var(--accent); }
.text-button { padding: 4px; border: 0; background: transparent; color: var(--muted); text-decoration: underline; }
.message { min-height: 22px; margin: 8px 0 0; color: var(--danger); font-size: 13px; }
.fine-print { margin: 28px 0 0; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; line-height: 1.6; }
.title-row, .section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.status { padding: 6px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 700; }
.metrics { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 28px 0 18px; }
.metrics article { padding: 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; }
.metrics span { display: block; margin-bottom: 14px; color: var(--muted); font-size: 12px; }
.metrics strong { display: block; font-size: 25px; font-variant-numeric: tabular-nums; }
.section-heading p { margin-bottom: 0; color: var(--muted); font-size: 13px; }
.list { display: grid; gap: 10px; margin-top: 18px; }
.mandate { display: grid; grid-template-columns: 1fr auto auto; gap: 18px; padding: 15px 0; border-top: 1px solid var(--line); }
.mandate:first-child { border-top: 0; }
.mandate span, .mandate small { display: block; color: var(--muted); font-size: 12px; }
.mandate strong { display: block; margin-bottom: 4px; }
.table-wrap { overflow-x: auto; margin-top: 18px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11px; font-weight: 600; text-align: left; white-space: nowrap; }
td { padding: 14px 12px; border-bottom: 1px solid #ecece8; vertical-align: top; }
td strong, td small { display: block; }
td small { margin-top: 4px; color: var(--muted); line-height: 1.45; }
.pill { display: inline-block; border-radius: 999px; padding: 4px 8px; font-size: 11px; font-weight: 700; }
.pill.execute, .pill.completed { background: var(--accent-soft); color: var(--accent); }
.pill.block, .pill.failed { background: var(--danger-soft); color: var(--danger); }
.pill.pending { background: var(--warn-soft); color: var(--warn); }
.empty { margin: 24px 0 4px; color: var(--muted); text-align: center; }
.boundary { margin-top: 18px; padding: 18px 20px; border: 1px dashed #b9bbb4; border-radius: 7px; color: var(--muted); font-size: 13px; }
.boundary strong { color: var(--ink); }
.boundary p { margin: 6px 0 0; line-height: 1.65; }

@media (max-width: 820px) {
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .mandate { grid-template-columns: 1fr; gap: 8px; }
}

@media (max-width: 560px) {
  .page { width: min(100% - 20px, 1120px); padding-top: 18px; }
  .header { margin-bottom: 30px; }
  .header-actions { gap: 10px; }
  .panel { padding: 18px; }
  .login-panel { margin-top: 30px; }
  .form-row, .title-row, .section-heading { align-items: stretch; flex-direction: column; }
  .metrics { grid-template-columns: 1fr 1fr; }
}
