:root {
  color-scheme: light;
  --ink: #182b28;
  --muted: #506761;
  --green: #0e604e;
  --wash: #f3f6f3;
  --card: #fff;
  --line: #dce5df;
  --danger: #942a37;
  font: 16px/1.5 system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--wash); }
a { color: var(--green); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #ba6f17; outline-offset: 3px; }
h1, h2, p { margin: 0 0 .7rem; }
h1 { font-size: clamp(1.9rem, 3vw, 2.85rem); line-height: 1.1; letter-spacing: -.05em; }
h2 { font-size: 1.25rem; letter-spacing: -.025em; }
.shell { width: min(1110px, calc(100% - 2rem)); margin: 0 auto; }
main { padding: clamp(1.5rem, 4vw, 4rem) 0; }
.narrow { width: min(640px, calc(100% - 2rem)); }
.topbar { background: #102e27; color: #effaf2; }
.topbar-inner { display: flex; align-items: center; gap: 1.4rem; min-height: 66px; padding: .65rem 0; }
.topbar a { color: inherit; text-decoration: none; }
.brand { display: inline-flex; gap: .55rem; align-items: center; font-weight: 750; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 1.65rem; height: 1.65rem; border-radius: .45rem; color: #102e27; background: #c1e39e; }
nav { display: flex; flex: 1; align-items: center; gap: 1.2rem; }
nav a { font-size: .9rem; }
nav a:hover, nav a[aria-current] { text-decoration: underline; }
.heading { display: flex; justify-content: space-between; align-items: start; gap: 1rem; margin-bottom: 1.15rem; }
.muted { color: var(--muted); }
.card { border: 1px solid var(--line); background: var(--card); border-radius: .9rem; }
.room { padding: clamp(1rem, 3vw, 1.7rem); margin: 1rem 0; }
.metrics { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); margin: 1.3rem 0; }
.metrics > div { padding: 1rem; min-height: 99px; }
dt { color: var(--muted); font-size: .88rem; }
dd { margin: 0; }
.metrics dd { font-size: 1.75rem; line-height: 1.15; font-weight: 730; font-variant-numeric: tabular-nums; margin-top: .35rem; }
.table-card { overflow: auto; margin: 1rem 0; }
table { width: 100%; border-collapse: collapse; }
td, th { text-align: left; padding: .75rem 1rem; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-size: .85rem; background: #f8faf8; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
caption { text-align: left; font-weight: 650; padding: .8rem 1rem; }
.empty { color: var(--muted); padding: 1.5rem 1rem; }
.state { display: inline-block; padding: .18rem .55rem; background: #e8f2e7; color: #244b34; border-radius: .45rem; font-size: .85rem; }
button, .button { display: inline-block; font: inherit; font-weight: 650; padding: .64rem .95rem; color: #fff; background: var(--green); border: 1px solid transparent; border-radius: .55rem; cursor: pointer; text-decoration: none; }
button:hover, .button:hover { background: #094434; }
.secondary { background: white; border-color: var(--line); color: var(--green); }
.secondary:hover { background: #edf5ed; }
.quiet { color: #edf9ee; background: transparent; padding: .35rem .5rem; }
.stack { display: grid; align-items: start; gap: .9rem; margin-top: .8rem; }
.stack button { justify-self: start; }
label { display: block; font-size: .9rem; font-weight: 650; margin-bottom: .28rem; }
input, select, textarea { font: inherit; color: inherit; background: #fff; border: 1px solid #aebfb4; border-radius: .5rem; padding: .6rem .65rem; width: 100%; }
textarea { resize: vertical; }
.helptext { font-size: .86rem; color: var(--muted); }
.notice { padding: .7rem .85rem; border: 1px solid var(--line); border-radius: .55rem; background: #ecf5e9; }
.error, .errorlist { color: var(--danger); }
.notice.error { background: #fff3f4; }
.back { display: inline-block; margin-bottom: .85rem; }
.details, .actions { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.details { margin: 0 0 1rem; }
.clean-list { list-style: none; margin: 0; padding: 0; }
.clean-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.preview-text { overflow-wrap: anywhere; white-space: pre-wrap; font: inherit; }
iframe { width: 100%; min-height: 240px; border: 1px solid var(--line); border-radius: .45rem; }
@media (max-width: 640px) {
  .topbar-inner { flex-wrap: wrap; gap: .55rem; }
  nav { order: 2; flex-basis: 100%; gap: .85rem; }
  .topbar-inner > form { margin-left: auto; }
  .heading { flex-wrap: wrap; }
  td, th { padding: .65rem; }
}
