:root {
  --pine: #0e3b34;
  --pine-soft: #17564c;
  --sea: #00897b;
  --sea-dark: #00695f;
  --mint: #9be3c9;
  --ink: #15211f;
  --grey: #5c6b67;
  --line: #dde5e2;
  --paper: #f4f7f5;
  --white: #fff;
  --amber: #8a5a00;
  --amber-bg: #fdf4e3;
  --red: #a4262c;
  --red-bg: #fdf1f1;
  --radius: 10px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font: 16px/1.55 "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
}

a { color: var(--sea-dark); }

header.site {
  background: var(--pine);
  color: var(--white);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
header.site .brand { font-weight: 700; letter-spacing: .3px; font-size: 17px; }
header.site nav { margin-left: auto; display: flex; gap: 18px; }
header.site nav a { color: var(--mint); text-decoration: none; font-size: 14px; }
header.site nav a:hover, header.site nav a[aria-current="page"] { color: var(--white); text-decoration: underline; }

main { max-width: 960px; margin: 0 auto; padding: 32px 24px 72px; }
main.wide { max-width: 1200px; }

h1 { font-size: 30px; line-height: 1.25; margin: 0 0 10px; }
h2 { font-size: 21px; margin: 34px 0 12px; }
h3 { font-size: 16px; margin: 0 0 6px; }
.lede { font-size: 18px; color: var(--grey); margin: 0 0 28px; }

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  background: var(--white);
  margin-bottom: 14px;
}
.card.tint { background: var(--paper); }

.notice {
  border-radius: var(--radius);
  padding: 14px 18px;
  margin: 18px 0;
  font-size: 15px;
}
.notice.info { background: var(--paper); border: 1px solid var(--line); }
.notice.warn { background: var(--amber-bg); border: 1px solid #e8cd97; color: var(--amber); }
.notice.stop { background: var(--red-bg); border: 1px solid #e8b3b5; color: var(--red); }

button, .btn {
  font: inherit;
  font-weight: 600;
  border: 0;
  border-radius: 8px;
  padding: 11px 20px;
  background: var(--sea);
  color: var(--white);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
button:hover, .btn:hover { background: var(--sea-dark); }
button.secondary { background: var(--white); color: var(--pine); border: 1px solid var(--line); }
button.secondary:hover { background: var(--paper); }
button.danger { background: var(--red); }
button:disabled { background: #b9c4c1; cursor: not-allowed; }

input, select, textarea {
  font: inherit;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 100%;
  background: var(--white);
  color: var(--ink);
}
label { display: block; font-size: 13px; font-weight: 600; color: var(--grey); margin: 12px 0 4px; }

.searchbar { display: flex; gap: 10px; margin: 8px 0 6px; }
.searchbar input { flex: 1; font-size: 17px; padding: 13px 15px; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 720px) { .grid2, .grid3 { grid-template-columns: 1fr; } }

.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { position: relative; padding-left: 44px; margin-bottom: 18px; }
.steps li::before {
  counter-increment: s; content: counter(s);
  position: absolute; left: 0; top: 0;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--sea); color: var(--white);
  display: grid; place-items: center; font-weight: 700; font-size: 14px;
}

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--grey); font-size: 12px; text-transform: uppercase; letter-spacing: .5px; }

.pill {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .4px;
  padding: 3px 9px; border-radius: 999px; background: var(--paper); color: var(--grey);
  border: 1px solid var(--line);
}
.pill.good { background: #e6f4f1; color: var(--sea-dark); border-color: #b9ded6; }
.pill.warn { background: var(--amber-bg); color: var(--amber); border-color: #e8cd97; }
.pill.stop { background: var(--red-bg); color: var(--red); border-color: #e8b3b5; }

.muted { color: var(--grey); font-size: 14px; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.serial { font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 700; letter-spacing: .5px; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 20px 0 22px; flex-wrap: wrap; }
.tabs button {
  background: none; color: var(--grey); border-radius: 0;
  border-bottom: 2px solid transparent; padding: 10px 14px; font-weight: 600;
}
.tabs button[aria-selected="true"] { color: var(--pine); border-bottom-color: var(--sea); }
.tabs button:hover { background: var(--paper); }

.empty { text-align: center; color: var(--grey); padding: 44px 20px; }

footer.site { border-top: 1px solid var(--line); padding: 22px 24px; color: var(--grey); font-size: 13px; }

/* Utility classes.
   These exist because the Content-Security-Policy sets style-src 'self', which
   blocks style="" attributes — including ones set from JavaScript via
   setAttribute. Loosening the CSP to allow inline styles would weaken the whole
   page to save a few lines here, so the styles live in this file instead. */
.stat { font-size: 28px; font-weight: 700; }
.actions { margin-top: 16px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.narrow { max-width: 260px; }
.prewrap { white-space: pre-line; }
.spaced { margin-top: 10px; }
.section-gap { margin-top: 16px; }
.narrow-form { max-width: 420px; }
.flush { margin-top: 0; }
/* Inputs inside an action row sit beside the buttons rather than taking the
   full width and forcing every button onto its own line. */
.actions input, .actions select { width: auto; flex: 1 1 200px; min-width: 160px; }
