:root {
  color-scheme: light;
  --ink: #202b35;
  --muted: #566574;
  --red: #c73932;
  --blue: #237ebc;
  --paper: #fff;
  --line: #dce3e9;
  --soft-blue: #f1f6fa;
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: #929395;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 12px;
}

.site-header {
  height: 89px;
  min-height: 89px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 14px 24px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: transparent;
  font: 700 18px/1.2 Arial, sans-serif;
  background: linear-gradient(90deg, #0870a9 0 57%, #d13b32 57% 100%);
  background-clip: text;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 2px solid var(--blue);
  border-radius: 50%;
  color: var(--blue);
  font-size: 21px;
  font-weight: 400;
  background: none;
  -webkit-text-fill-color: currentColor;
}

.notice-card, .admin-card {
  width: min(100% - 32px, 506px);
  margin: 0 auto 40px;
  padding: 25px 23px 32px;
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 9px;
  background: var(--paper);
  box-shadow: 0 9px 24px rgba(31, 42, 51, .2);
  animation: arrive .45s ease-out both;
}

.notice-card { min-height: 472px; animation: none; }

.card-kicker {
  margin-bottom: 12px;
  color: var(--muted);
  font: 600 12px/1.4 Arial, sans-serif;
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin: 0 6px 1px 0;
  border-radius: 50%;
  background: #54a27b;
}

h1 {
  margin: 0 0 13px;
  color: var(--red);
  font: 700 18px/1.3 Arial, sans-serif;
  text-align: center;
}

.intro, .followup {
  max-width: 460px;
  margin: 0 auto;
  color: #313a42;
  font-size: 12px;
  line-height: 1.35;
  text-align: center;
}

.intro { max-width: 450px; }
.followup { margin-top: 7px; }
.message-block { padding: 21px 0 0; }

.message-block h2 {
  margin: 0 0 10px;
  color: var(--red);
  font: 700 14px/1.35 Arial, sans-serif;
  text-align: center;
}

.guidance-list {
  margin: 0 0 12px;
  padding-left: 30px;
  color: #30363b;
  font: 12px/1.15 Georgia, 'Times New Roman', serif;
}

.guidance-list li { padding-left: 2px; }
.guidance-list li + li { margin-top: 3px; }
.closing-note { margin: 0 0 25px; color: #30363b; font: 12px/1.35 Georgia, 'Times New Roman', serif; text-align: center; }
.booking-button {
  display: block;
  width: 100%;
  min-height: 58px;
  margin: 0 0 3px;
  border: 0;
  border-radius: 4px;
  background: #1688d0;
  color: #fff;
  font: 700 18px/1 Arial, sans-serif;
  cursor: pointer;
}
.booking-button:hover { background: #0877bb; }
.booking-button:focus-visible { outline: 3px solid #153e5a; outline-offset: 3px; }
.booking-button:disabled { cursor: wait; opacity: .75; }
.booking-status { min-height: 16px; margin: 0 0 10px; color: #566574; font: 11px/1.4 Arial, sans-serif; text-align: center; }

.contact-list { display: grid; gap: 10px; }

.contact-item {
  display: flex;
  align-items: center;
  min-height: 66px;
  padding: 10px 13px;
  border-left: 3px solid #2b94e6;
  border-radius: 5px;
  background: #f3f6f9;
}

.contact-item h2 { margin: 0 0 5px; font: 600 11px/1.35 Arial, sans-serif; }
.contact-item p { margin: 0; color: #2878ad; font: 600 14px/1.35 Arial, sans-serif; overflow-wrap: anywhere; }

.admin-page { font-family: Arial, sans-serif; background-image: linear-gradient(135deg, #d5d8db 0%, #eceeef 48%, #d5d8db 100%); }
.admin-header .brand { color: #263e50; background: none; -webkit-text-fill-color: currentColor; }
.admin-header { height: auto; min-height: 88px; align-items: center; justify-content: space-between; max-width: 900px; margin: auto; padding: 24px; }
.admin-header .brand { font-size: 18px; }
.admin-nav { display: flex; align-items: center; gap: 20px; }
.back-link { color: #356a8c; font-size: 14px; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.admin-card { width: min(100% - 32px, 720px); margin-top: 16px; padding: 34px 38px; }
.admin-card .card-kicker { text-align: left; }
.admin-card h1 { margin-bottom: 25px; font-size: 25px; text-align: left; }
.login-form, .editor-form { display: grid; gap: 10px; }
.login-form[hidden], .editor-form[hidden] { display: none; }
.login-form { max-width: 390px; }
.admin-card label { margin-top: 8px; color: #344250; font: 600 13px/1.35 Arial, sans-serif; }
.admin-card input, .admin-card textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid #cbd5dd;
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  font: 15px/1.45 Arial, sans-serif;
}
.admin-card textarea { resize: vertical; }
.admin-card input:focus, .admin-card textarea:focus { border-color: var(--blue); outline: 3px solid rgba(35, 126, 188, .15); }
.primary-button, .secondary-button { min-height: 42px; padding: 0 18px; border: 0; border-radius: 4px; font: 700 14px Arial, sans-serif; cursor: pointer; }
.primary-button { background: #267fb8; color: #fff; }
.primary-button:hover { background: #1d6ea3; }
.secondary-button { border: 1px solid #bdc8d0; background: #fff; color: #344250; }
.login-form .primary-button { margin-top: 10px; }
.editor-caption { margin: -8px 0 8px; color: var(--muted); font-size: 14px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; margin-top: 5px; }
.form-grid > div { display: grid; align-content: start; gap: 10px; }
.form-actions { display: flex; gap: 10px; margin-top: 16px; }
.feedback { min-height: 22px; margin: 14px 0 0; color: #2e7652; font: 14px/1.5 Arial, sans-serif; }
.feedback[data-error="true"] { color: #b22f2a; }
.logs-card { width: min(100% - 32px, 920px); }
.logs-heading-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.logs-heading-row h1 { margin: 0; }
.logs-actions { display: flex; gap: 8px; }
.logs-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 4px; }
.logs-table { width: 100%; border-collapse: collapse; font: 13px/1.45 Arial, sans-serif; text-align: left; }
.logs-table th, .logs-table td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.logs-table th { background: #f2f5f7; color: #52616e; font-size: 11px; font-weight: 700; white-space: nowrap; }
.logs-table tr:last-child td { border-bottom: 0; }
.logs-table td:first-child, .logs-table td:nth-child(3) { white-space: nowrap; }
.logs-table a { color: #2878ad; overflow-wrap: anywhere; }
.logs-empty { margin: 0; padding: 22px; color: var(--muted); font: 14px/1.5 Arial, sans-serif; text-align: center; }
.logs-count { margin: -12px 0 12px; color: var(--muted); font: 12px/1.4 Arial, sans-serif; }

@keyframes arrive { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 560px) {
  .site-header { height: 76px; min-height: 76px; padding-top: 13px; }
  .notice-card { min-height: 0; margin-top: 0; padding: 20px 22px 25px; }
  .notice-card h1 { font-size: 18px; }
  .intro, .message-block p, .guidance-list, .closing-note { font-size: 12px; }
  .admin-header { min-height: 76px; padding-inline: 18px; }
  .admin-header .brand { font-size: 16px; }
  .admin-nav { gap: 12px; }
  .admin-nav .back-link { font-size: 12px; }
  .admin-card { margin-top: 8px; padding: 26px 22px; }
  .logs-card { padding: 24px 16px; }
  .logs-heading-row { align-items: flex-start; flex-direction: column; }
  .logs-actions { width: 100%; }
  .logs-actions > * { flex: 1; }
  .form-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}