:root {
  color-scheme: light;
  --ink: #152c33;
  --muted: #50666b;
  --line: #d8e4e3;
  --page: #f1f6f5;
  --brand: #08665b;
  --brand-dark: #064b45;
  --warn: #845116;
  font-family: Tahoma, Arial, sans-serif;
  color: var(--ink);
  background: var(--page);
  line-height: 1.65;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid #238a9c; outline-offset: 3px; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.shell { width: min(100% - 36px, 1050px); margin: auto; }
main.shell { padding-block: 32px 76px; }
.bar { background: #102e34; color: #fff; }
.top { min-height: 73px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; line-height: 1.3; }
.brand b { display: block; font-size: 1.12rem; letter-spacing: .13em; }
.brand small { color: #b3d3ce; margin-block-start: 4px; }
.mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: #a9e7d4; color: #103d38; font: 800 25px Arial, sans-serif; }
.account { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.account .quiet { color: #fff; border: 1px solid #749590; }
h1, h2, h3, p, figure { margin: 0; }
h1 { font-size: clamp(1.7rem, 4vw, 2.9rem); line-height: 1.28; }
h2 { font-size: 1.15rem; line-height: 1.4; }
h3 { font-size: 1rem; }
.eyebrow { color: var(--brand-dark); font-weight: 700; font-size: .86rem; display: block; margin-block-end: 8px; }
.page-heading { display: flex; justify-content: space-between; align-items: end; gap: 14px; margin-block: 10px 24px; }
.page-heading p, .muted, label small, .row small { color: var(--muted); }
.back { display: inline-block; margin-block-end: 10px; }
.login { min-height: 65vh; display: grid; grid-template-columns: 1fr .9fr; align-items: center; gap: clamp(24px, 7vw, 90px); padding: 16px 0; }
.login-intro p { margin-block-start: 16px; color: var(--muted); }
.login .panel { margin: 0; padding: clamp(20px, 4vw, 36px); }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: clamp(16px, 3vw, 26px); margin-block-end: 18px; box-shadow: 0 3px 10px #163f3a08; min-width: 0; }
.stack { display: grid; gap: 14px; }
.columns { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-block-end: 22px; }
.metrics div { background: #e0efeb; padding: 14px 16px; border-radius: 14px; }
.metrics strong { display: block; font: 700 1.65rem Arial,sans-serif; color: var(--brand-dark); }
.metrics span { color: #365854; font-size: .84rem; }
.row { border-block-end: 1px solid var(--line); padding-block: 11px; display: flex; justify-content: space-between; align-items: start; gap: 12px; min-width: 0; overflow-wrap: anywhere; }
.row:last-child { border: 0; }
.row small { display: block; }
.badge { white-space: nowrap; align-self: start; padding: 3px 9px; border-radius: 999px; background: #edf1f1; color: #365255; font-size: .82rem; }
.badge.warn { color: var(--warn); background: #fff0da; }
.badge.good { color: #0c5b4b; background: #e1f4ec; }
details summary { cursor: pointer; color: var(--brand-dark); font-weight: 700; }
.inset { margin-block-start: 12px; padding: 13px; background: var(--page); border-radius: 12px; }
label { display: grid; gap: 5px; font-weight: 700; min-width: 0; }
input:not([type=radio],[type=checkbox]), textarea, select { color: var(--ink); width: 100%; min-width: 0; padding: 9px 12px; border: 1px solid #a7bbb9; border-radius: 9px; background: #fff; }
textarea { resize: vertical; }
.choice { display: flex; align-items: center; gap: 7px; min-height: 38px; font-size: .91rem; }
.choice input { accent-color: var(--brand); inline-size: 18px; block-size: 18px; }
.check { display: grid; gap: 9px; min-width: 0; margin: 0; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; }
.check legend { padding-inline: 6px; font-weight: 700; }
.options { display: flex; gap: 5px 20px; flex-wrap: wrap; }
.button, .primary, .secondary, .quiet { display: inline-block; text-align: center; padding: 9px 17px; border: 1px solid transparent; border-radius: 10px; min-height: 42px; font-weight: 700; font-size: .92rem; line-height: 1.5; }
.primary { color: #fff; background: var(--brand); }
.primary:hover { background: var(--brand-dark); text-decoration: none; }
.secondary, .quiet { color: var(--brand-dark); background: transparent; border-color: #aec7c3; }
.secondary:hover, .quiet:hover { background: #dcece8; color: var(--brand-dark); }
.actions { display: flex; gap: 10px; flex-wrap: wrap; position: sticky; z-index: 1; bottom: 0; padding-block: 10px; background: var(--page); }
.notice { padding: 10px 14px; border-radius: 9px; color: var(--warn); background: #fff0da; }
ul.notice { padding-inline-start: 30px; margin: 0; }
.notice.error { color: #842923; background: #ffebe8; }
.notice.success { color: var(--brand-dark); background: #dff3e8; }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.photos { display: grid; grid-template-columns: repeat(auto-fit,minmax(125px, 1fr)); gap: 14px; }
.photos img { display: block; width: 100%; height: 145px; object-fit: cover; border-radius: 9px; margin-block-end: 6px; }
#sites, [id^=check-] { scroll-margin-block-start: 12px; }
[id^=check-]:target { background: #fff5db; }
@media (max-width: 630px) {
  .columns:not(.dates), .login { grid-template-columns: 1fr; gap: 12px; }
  main.shell { padding-block-start: 22px; }
  .page-heading { align-items: start; flex-wrap: wrap; }
  .login { align-content: start; padding-block: 20px; }
  .login-intro { padding-block-end: 14px; }
  .metrics { gap: 6px; }
  .metrics div { padding: 10px 8px; }
  .actions .button, .actions .primary { flex: 1 1 135px; }
}
