:root {
  --ink: #15242b;
  --muted: #61727a;
  --paper: #f4f6f3;
  --surface: #ffffff;
  --line: #dce3de;
  --brand: #006b61;
  --brand-dark: #064b46;
  --accent: #d5f36c;
  --danger: #a93939;
  --shadow: 0 14px 35px rgba(17, 47, 43, .07);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}
a { color: inherit; }
.shell { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; gap: 12px; align-items: center; text-decoration: none; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; color: white; background: var(--brand); font: 800 22px/1 Georgia, serif; }
.brand strong, .brand small { display: block; }
.brand small { color: var(--muted); font-size: 12px; }
nav { display: flex; gap: 24px; }
nav a { color: var(--muted); font-size: 14px; font-weight: 650; text-decoration: none; }
nav a:hover { color: var(--brand); }
.logout-form { margin: 0; }
.logout-form button { padding: 0; border: 0; color: var(--muted); background: none; cursor: pointer; font: 650 14px/1.5 inherit; }
.logout-form button:hover { color: var(--brand); }
.hero { padding: 68px 0 38px; display: flex; align-items: end; justify-content: space-between; gap: 40px; }
.eyebrow { margin: 0 0 8px; color: var(--brand); font-size: 12px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 760px; margin-bottom: 14px; font-family: Georgia, serif; font-size: clamp(36px, 5vw, 62px); font-weight: 500; line-height: 1.04; letter-spacing: -.035em; }
h2 { margin-bottom: 0; font-family: Georgia, serif; font-size: 34px; font-weight: 500; letter-spacing: -.02em; }
.lede { max-width: 680px; margin-bottom: 0; color: var(--muted); font-size: 18px; }
.button { border: 0; border-radius: 10px; padding: 14px 20px; color: white; background: var(--brand); box-shadow: var(--shadow); cursor: pointer; font: 750 15px/1 inherit; white-space: nowrap; }
.button:hover { background: var(--brand-dark); }
.button:disabled { cursor: wait; opacity: .55; }
.notice { margin-top: 24px; padding: 13px 16px; border: 1px solid #afc96a; border-radius: 10px; background: #f2fad7; }
.notice-error { border-color: #e8b9b9; color: #763b3b; background: #fff1f1; }
.notification-controls { margin-top: 20px; padding: 24px; display: flex; align-items: center; justify-content: space-between; gap: 28px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.notification-controls h2 { margin-bottom: 5px; font-size: 27px; }
.notification-controls p:not(.eyebrow) { margin-bottom: 8px; color: var(--muted); }
.notification-controls small { display: block; color: var(--muted); }
.notification-controls .control-error { color: var(--danger); }
.control-actions { display: flex; gap: 10px; flex: 0 0 auto; }
.control-actions form { margin: 0; }
.button-secondary { color: var(--brand); border: 1px solid var(--brand); background: white; box-shadow: none; }
.button-secondary:hover { color: white; }
.status-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.status-card { min-height: 108px; padding: 22px; display: flex; align-items: center; gap: 13px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.status-card small, .status-card strong { display: block; }
.status-card small { margin-bottom: 6px; color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.status-card strong { font-size: 21px; line-height: 1.2; }
.status-card strong.compact { font-size: 14px; }
.status-icon { width: 12px; height: 12px; flex: 0 0 auto; border-radius: 50%; box-shadow: 0 0 0 5px #e6f4eb; background: #2d9b5d; }
.status-icon.bad { background: var(--danger); box-shadow: 0 0 0 5px #f8e2e2; }
.alert { margin-top: 20px; padding: 18px 22px; display: flex; justify-content: space-between; gap: 20px; border: 1px solid #e8b9b9; border-radius: 12px; background: #fff1f1; }
.alert p { margin: 4px 0 0; color: #763b3b; }
.alert a { align-self: center; color: var(--danger); font-weight: 750; }
.section-heading { margin: 64px 0 20px; display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.section-heading > span { color: var(--muted); font-size: 13px; }
.change-list { display: grid; gap: 12px; }
.change-card { padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
.change-topline, .change-body { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.change-topline time { color: var(--muted); font-size: 12px; }
.change-body { margin-top: 15px; }
.change-body h3 { margin-bottom: 4px; font-size: 19px; }
.change-body p { margin-bottom: 0; color: var(--muted); }
.badge { display: inline-flex; padding: 4px 9px; border-radius: 999px; font-size: 11px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.badge-added, .badge-restored { color: #17603e; background: #dff5e7; }
.badge-modified { color: #725414; background: #fff0bd; }
.badge-removed { color: #8d3030; background: #fae0e0; }
.text-link { flex: 0 0 auto; color: var(--brand); font-size: 14px; font-weight: 800; text-decoration: none; }
details { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
summary { color: var(--brand); cursor: pointer; font-size: 13px; font-weight: 750; }
.diff-list { margin-top: 14px; display: grid; gap: 8px; }
.diff-row { display: grid; grid-template-columns: 140px 1fr 1fr; gap: 12px; font-size: 13px; }
.diff-row .before, .diff-row .after { padding: 9px 11px; border-radius: 7px; overflow-wrap: anywhere; }
.diff-row .before { background: #faeaea; text-decoration: line-through; }
.diff-row .after { background: #e4f5e9; }
.delivery { margin-top: 16px; color: var(--muted); font-size: 11px; text-transform: capitalize; }
.delivery-failed { color: var(--danger); }
.empty-state { padding: 42px; text-align: center; border: 1px dashed #bac8c0; border-radius: 14px; color: var(--muted); }
.empty-state strong { display: block; margin-bottom: 5px; color: var(--ink); font-size: 18px; }
.empty-state p { margin-bottom: 0; }
.latest-heading { margin-top: 72px; }
.bulletin-list { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.bulletin-row { padding: 17px 20px; display: grid; grid-template-columns: 56px 1fr 24px; align-items: center; gap: 16px; border-bottom: 1px solid var(--line); text-decoration: none; }
.bulletin-row:last-child { border-bottom: 0; }
.bulletin-row:hover { background: #f9fbf8; }
.bulletin-number { color: var(--brand); font: 500 23px/1 Georgia, serif; }
.bulletin-content strong, .bulletin-content small { display: block; }
.bulletin-content strong { margin-bottom: 3px; font-size: 14px; }
.bulletin-content small { color: var(--muted); }
.arrow { color: var(--muted); }
.page-title { padding: 64px 0 30px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 15px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; white-space: nowrap; }
th { color: var(--muted); background: #f9fbf8; font-size: 11px; text-transform: uppercase; }
tr:last-child td { border-bottom: 0; }
.error-cell { min-width: 300px; max-width: 560px; white-space: normal; overflow-wrap: anywhere; }
.footer { padding: 54px 0 34px; color: var(--muted); font-size: 12px; }
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at top left, #e4f3ed, var(--paper) 52%); }
.login-card { width: min(440px, 100%); padding: 38px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
.login-brand { margin-bottom: 42px; }
.login-card h1 { margin-bottom: 10px; font-size: 44px; }
.login-intro { margin-bottom: 26px; color: var(--muted); }
.login-form { display: grid; gap: 9px; }
.login-form label { margin-top: 7px; font-size: 13px; font-weight: 750; }
.login-form input { width: 100%; padding: 12px 13px; border: 1px solid #b8c6bf; border-radius: 9px; background: white; color: var(--ink); font: inherit; }
.login-form input:focus { outline: 3px solid #bde1d8; border-color: var(--brand); }
.login-form .button { margin-top: 14px; }
.login-error { margin-bottom: 17px; padding: 11px 13px; border: 1px solid #e8b9b9; border-radius: 9px; color: #7d3030; background: #fff1f1; }
.login-note { margin: 22px 0 0; color: var(--muted); font-size: 12px; text-align: center; }

@media (max-width: 850px) {
  .status-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { align-items: start; flex-direction: column; }
  .notification-controls { align-items: flex-start; flex-direction: column; }
  .diff-row { grid-template-columns: 1fr; }
  .diff-row strong { margin-top: 8px; }
}
@media (max-width: 600px) {
  .shell { width: min(100% - 24px, 1120px); }
  .header-inner { padding: 12px 0; align-items: flex-start; }
  nav { padding-top: 3px; flex-direction: column; gap: 4px; align-items: flex-end; }
  .logout-form button { line-height: 1.2; }
  .hero { padding-top: 44px; gap: 25px; }
  h1 { font-size: 40px; }
  .status-grid { grid-template-columns: 1fr; }
  .control-actions { width: 100%; flex-direction: column; }
  .control-actions .button { width: 100%; }
  .status-card { min-height: 88px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 3px; }
  .change-body { align-items: flex-start; flex-direction: column; }
  .change-topline { align-items: flex-start; }
  .bulletin-row { grid-template-columns: 44px 1fr 18px; padding-inline: 14px; gap: 10px; }
  .login-card { padding: 28px 22px; }
}
