:root {
  color-scheme: light;
  --ink: #1c302c;
  --muted: #52635e;
  --paper: #f5f6f2;
  --white: #fff;
  --line: #d7dfd9;
  --accent: #145b48;
  --accent-dark: #0e4436;
  --warm: #e4ede7;
  font-family: "Segoe UI", "Helvetica Neue", sans-serif;
  font-size: 16px;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; color: var(--ink); background: var(--paper); line-height: 1.5; }
::selection { color: white; background: var(--accent); }
a { color: var(--accent); text-underline-offset: .2em; }
a:hover { color: var(--accent-dark); }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select { outline-offset: 3px; }
:focus-visible { outline: 3px solid #bc7931; }
.container { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
main.container { flex: 1; padding-block: 48px 80px; }
.topbar { background: #193b33; color: white; }
.topbar-inner { width: min(1200px, calc(100% - 48px)); min-height: 76px; margin: auto; display: flex; align-items: center; gap: 48px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: #fff; font-weight: 700; line-height: 1.1; letter-spacing: -.02em; }
.brand:hover { color: #fff; }
.brand small { display: block; color: #c3d7cc; font-size: .68rem; font-weight: 500; letter-spacing: .04em; margin-top: 3px; }
.brand-mark { width: 34px; height: 34px; border: 1px solid #80b69b; display: grid; place-items: center; font-size: 1.05rem; }
nav { display: flex; gap: 26px; flex: 1; }
nav a, .link-button { color: #dceae2; text-decoration: none; font-size: .88rem; font-weight: 600; }
nav a:hover, .link-button:hover { color: white; text-decoration: underline; }
.link-button { border: 0; background: transparent; padding: 0; cursor: pointer; }
.footer { border-top: 1px solid var(--line); padding: 22px 0; font-size: .78rem; color: var(--muted); }
.footer span { float: right; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 8px; font-size: 2rem; letter-spacing: -.035em; line-height: 1.15; }
h2 { font-size: 1.2rem; letter-spacing: -.02em; margin-bottom: 0; }
h3 { font-size: 1rem; margin-bottom: 6px; }
p { color: var(--muted); }
.page-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 36px; }
.page-heading p { margin-bottom: 0; }
.page-heading.narrow { margin-bottom: 24px; }
.back { display: inline-block; font-size: .86rem; font-weight: 650; text-decoration: none; margin-bottom: 22px; }
.back:hover { text-decoration: underline; }
.section { margin-top: 42px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 15px; }
.section-heading p { margin: 5px 0 0; }
.summary { display: flex; flex-wrap: wrap; gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px 0; color: var(--muted); font-size: .9rem; }
.summary span { padding: 0 30px; border-right: 1px solid var(--line); }
.summary span:first-child { padding-left: 0; }
.summary span:last-child { border: 0; }
.summary strong { font-size: 1.15rem; color: var(--ink); margin-right: 5px; font-variant-numeric: tabular-nums; }
.button { display: inline-flex; gap: 18px; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 4px; padding: 10px 16px; font-size: .88rem; font-weight: 650; text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s; }
.button.primary { color: white; background: var(--accent); }
.button.primary:hover { color: white; background: var(--accent-dark); }
.button.secondary { color: var(--ink); background: var(--white); border-color: #b6c4ba; }
.button.secondary:hover { color: var(--ink); background: var(--warm); }
.button.wide { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.list { background: var(--white); border: 1px solid var(--line); border-radius: 4px; }
.list-row { color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px 20px; text-decoration: none; border-bottom: 1px solid var(--line); }
.list-row:last-child { border: 0; }
a.list-row:hover { color: var(--ink); background: #f1f6f2; }
.list-row strong, .list-row span:not(.row-action):not(.status) { display: block; }
.list-row div > span { margin-top: 3px; font-size: .83rem; color: var(--muted); }
.row-action { color: var(--accent); font-size: .83rem; font-weight: 650; white-space: nowrap; }
.row-action span { display: inline !important; margin-left: 5px; }
.empty { background: #fff; border: 1px dashed #afc0b4; padding: 34px; }
.empty p { margin-bottom: 18px; }
.empty-inline { margin: 0; padding: 22px 0; border-top: 1px solid var(--line); }
.small { font-size: .83rem; }
.muted { color: var(--muted); }
.form-panel, .single-panel { background: white; border: 1px solid var(--line); border-radius: 4px; padding: 28px; }
.single-panel { width: min(100%, 520px); margin: 16px auto; }
.single-panel h2, .form-panel h2 { margin-bottom: 12px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; color: var(--ink); font-size: .85rem; font-weight: 650; }
input:not([type=checkbox]), textarea, select { display: block; width: 100%; margin-top: 6px; padding: 10px 11px; border: 1px solid #aebdb4; border-radius: 3px; background: #fff; color: var(--ink); caret-color: var(--accent); }
input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--accent); }
textarea { resize: vertical; }
.required { color: #a3382a; }
.form-actions { display: flex; gap: 10px; margin-top: 28px; }
.form-stack { display: grid; gap: 18px; margin-top: 22px; }
.notice { border: 1px solid #bdcfc2; background: #eaf3ec; color: #1a4a33; padding: 14px 18px; margin-bottom: 24px; border-radius: 3px; }
.notice.error { border-color: #d9b8b2; background: #f9eeeb; color: #782f24; }
.notice.warning { border-color: #e0cb9e; background: #fbf5e6; color: #674910; }
.table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--line); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: .86rem; text-align: left; }
th { background: #edf2ee; color: #42584c; font-size: .75rem; text-transform: uppercase; letter-spacing: .035em; }
td, th { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
.data { white-space: nowrap; font-variant-numeric: tabular-nums; }
.toolbar { padding: 16px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.status { display: inline-block; padding: 4px 9px; border: 1px solid #cad7cc; border-radius: 3px; background: #f0f5f1; font-size: .75rem; font-weight: 650; white-space: nowrap; }
.status.failed { border-color: #d9b8b2; background: #f9eeeb; color: #782f24; }
.status.running, .status.queued { border-color: #e0cb9e; background: #fbf5e6; color: #674910; }
.code-line { background: #eef3ef; padding: 12px; overflow-wrap: anywhere; font-size: .83rem; }
.two-column { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr); gap: 32px; align-items: start; }
.auth-layout { display: grid; grid-template-columns: 1fr 440px; gap: 80px; align-items: center; margin: 38px 0 60px; }
.auth-intro h1 { font-size: 2.8rem; max-width: 13ch; }
.auth-intro > p { max-width: 45ch; font-size: 1.06rem; margin-top: 20px; }
.auth-note { max-width: 420px; border-top: 1px solid #a9beb0; margin-top: 50px; padding-top: 18px; color: var(--muted); font-size: .87rem; }
.auth-note strong { color: var(--ink); }
.auth-form { padding: 34px; border: 1px solid var(--line); background: white; box-shadow: 0 12px 32px rgba(27, 55, 42, .06); }
.auth-form > p:last-child { margin: 20px 0 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 740px) {
  .container, .topbar-inner { width: calc(100% - 32px); }
  main.container { padding-top: 32px; }
  .topbar-inner { flex-wrap: wrap; gap: 14px; padding: 16px 0; }
  nav { order: 3; flex-basis: 100%; gap: 18px; overflow-x: auto; }
  .logout { margin-left: auto; }
  .page-heading, .section-heading.wrap { flex-direction: column; }
  .form-grid, .two-column, .auth-layout { grid-template-columns: 1fr; }
  .auth-layout { gap: 32px; margin: 0; }
  .auth-intro h1 { font-size: 2.1rem; }
  .auth-note { margin-top: 24px; }
  .summary span { padding-inline: 14px; }
  .list-row { padding: 15px; }
  .row-action { white-space: normal; text-align: right; }
  .footer span { display: none; }
}
