:root {
  color-scheme: light;
  --ink: #14212b;
  --muted: #61717d;
  --line: #dce4e8;
  --paper: #f5f7f8;
  --white: #fff;
  --brand: #006c67;
  --brand-dark: #004d49;
  --warn: #9a5a00;
  --danger: #a12b2b;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); line-height: 1.5; }
a { color: var(--brand-dark); }
.topbar { min-height: 68px; padding: 14px max(24px, calc((100vw - 1180px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 24px; background: var(--white); border-bottom: 1px solid var(--line); }
.brand { font-size: 1.15rem; font-weight: 800; text-decoration: none; color: var(--ink); }
nav { display: flex; align-items: center; gap: 22px; }
nav > a { text-decoration: none; font-weight: 650; }
.page { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 48px 0 72px; }
footer { padding: 26px; text-align: center; color: var(--muted); border-top: 1px solid var(--line); background: var(--white); }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 12px; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); letter-spacing: -0.04em; }
h2 { font-size: 1.55rem; }
h3 { font-size: 1.3rem; }
p { color: var(--muted); }
.lead { font-size: 1.1rem; }
.eyebrow { display: block; margin-bottom: 8px; color: var(--brand); font-size: .78rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.hero { padding: 44px; margin-bottom: 54px; display: flex; align-items: end; justify-content: space-between; gap: 32px; color: white; background: linear-gradient(130deg, #083f46, #007a70); border-radius: 22px; box-shadow: 0 18px 60px rgba(4, 63, 67, .18); }
.hero p, .hero .eyebrow { color: #d4f0eb; max-width: 720px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px; border: 0; border-radius: 10px; color: white; background: var(--brand); text-decoration: none; font: inherit; font-weight: 750; cursor: pointer; }
.button:hover { background: var(--brand-dark); }
.button.secondary { color: var(--ink); background: #e8edef; }
.button.danger { background: var(--danger); }
.button.small { min-height: 38px; padding: 7px 13px; }
.button:disabled { opacity: .45; cursor: not-allowed; }
.section-heading, .authority-heading, .card-topline { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.section-heading { margin: 38px 0 20px; }
.authority { margin-bottom: 34px; }
.authority-heading { margin-bottom: 15px; }
.location-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(275px, 1fr)); gap: 14px; }
.card, .panel, .form-card { background: var(--white); border: 1px solid var(--line); border-radius: 15px; box-shadow: 0 4px 16px rgba(26, 47, 58, .04); }
.card { padding: 20px; }
.card h4 { font-size: 1rem; }
.meta, small { display: block; color: var(--muted); font-size: .83rem; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.actions.end { justify-content: flex-end; }
.badge { flex: 0 0 auto; padding: 5px 9px; border-radius: 999px; font-size: .73rem; font-weight: 800; }
.badge.good { color: #075a3c; background: #dff5ea; }
.badge.warn { color: #774200; background: #fff0d4; }
.badge.neutral { color: #45545d; background: #e8edef; }
.list { overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: 14px; }
.list-row { min-height: 58px; padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.list-row:last-child { border: 0; }
.list-row.large { min-height: 74px; }
.empty { padding: 34px; color: var(--muted); text-align: center; background: var(--white); border: 1px dashed #bdcbd1; border-radius: 14px; }
.narrow { width: min(820px, 100%); margin: 0 auto; }
.form-card { padding: 28px; margin-top: 28px; }
label, legend { font-weight: 700; }
label { display: grid; gap: 7px; }
input, select { width: 100%; min-height: 44px; padding: 9px 11px; border: 1px solid #b9c6cc; border-radius: 8px; color: var(--ink); background: var(--white); font: inherit; }
fieldset { padding: 22px 0; margin: 18px 0; border: 0; border-top: 1px solid var(--line); }
legend { padding: 0 12px 0 0; }
.option-group { padding: 12px 0; }
.check { display: flex; align-items: center; gap: 9px; margin: 8px 0; font-weight: 500; }
.check input { width: 18px; min-height: 18px; }
.check-grid, .form-grid, .detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.weekday-row { display: flex; flex-wrap: wrap; gap: 12px; }
.check.compact { padding: 8px 10px; margin: 0; background: var(--paper); border-radius: 8px; }
.panel { padding: 22px; }
.panel ul { padding-left: 20px; }
.alert { padding: 16px 18px; margin: 20px 0; border-radius: 10px; }
.alert.error { color: #782020; background: #fde8e8; border: 1px solid #f2bcbc; }
.alert.warn { color: #694000; background: #fff3db; border: 1px solid #efce8b; }
.required-mark, .field-error { color: var(--danger); }
.field-hint { margin: 4px 0 12px; color: var(--muted); font-size: .9rem; }
.field-error { margin: 8px 0 12px; font-weight: 750; }
.inline-form { margin: 24px 0; }
@media (max-width: 720px) {
  .topbar, .hero, .section-heading { align-items: stretch; flex-direction: column; }
  nav { flex-wrap: wrap; gap: 12px; }
  .hero { padding: 28px; }
  .form-grid, .check-grid, .detail-grid { grid-template-columns: 1fr; }
}
