:root {
  color-scheme: light;
  --paper: #f5f1e8;
  --white: #fffdf8;
  --ink: #233e34;
  --muted: #737a70;
  --gold: #a88954;
  --line: #dedbce;
  --green: #204b3b;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: radial-gradient(ellipse at 95% 0, #e8eddf70, transparent 48%), var(--paper); }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .48; }
button, input, select { border-radius: 7px; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #ad864d; outline-offset: 4px; }
input:focus-visible, select:focus-visible { outline-offset: 2px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; z-index: 10; left: 20px; top: 16px; padding: 12px 18px; background: var(--white); }
.page-shell { width: min(1160px, 100% - 80px); margin: 0 auto; }
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 116px; border-bottom: 1px solid var(--line); }
.identity { display: inline-flex; gap: 17px; align-items: center; text-decoration: none; }
.identity__seal { display: flex; align-items: center; justify-content: center; width: 60px; height: 66px; border: 1px solid #b99f70; border-radius: 30px 30px 7px 7px; outline: 1px solid #cfc0a333; outline-offset: -5px; font: italic 23px Georgia, serif; color: #7b6239; }
.identity__seal span { font-size: 12px; margin: 8px 1px 0; }
.identity__copy { display: grid; gap: 7px; }
.identity__copy strong { font: 23px Georgia, serif; }
.identity__copy > span { color: var(--muted); font-size: 11px; letter-spacing: .07em; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 11px 18px; border: 1px solid var(--line); background: var(--white); color: var(--ink); font-size: 13px; font-weight: 550; line-height: 1.35; text-decoration: none; transition: background-color 160ms, border-color 160ms; }
.button svg, .search-input svg { flex: 0 0 auto; width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; }
.button--primary { background: var(--green); color: #fffdf6; border-color: var(--green); }
.button--quiet { background: transparent; border-color: transparent; color: #606e62; }
.button--page { padding: 8px 14px; min-width: 44px; }
@media (hover: hover) { .button:hover:not(:disabled) { border-color: #b9ac91; background: #f2ede1; }.button--primary:hover:not(:disabled) { background: #2d5a47; border-color: #2d5a47; }.filter-tabs button:hover { background: #ecebdd; } }
.eyebrow { color: #8c7249; font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.login-view { min-height: calc(100svh - 200px); display: grid; align-content: center; justify-items: center; padding: 60px 0 38px; }
.login-card { width: min(100%, 440px); padding: 40px; border: 1px solid var(--line); background: var(--white); box-shadow: 0 15px 40px #4f4b3110; border-radius: 14px; }
.login-card h1 { margin: 17px 0 20px; font-size: 38px; line-height: 1.14; letter-spacing: -.035em; }
.login-card__intro { color: var(--muted); font-size: 12px; line-height: 1.75; }
.login-card form { margin-top: 30px; }
.field-label { display: block; margin-bottom: 8px; color: #5f6e61; font-size: 11px; font-weight: 550; }
input, select { min-height: 44px; width: 100%; border: 1px solid #d9d8cb; background: #fffefb; color: var(--ink); padding: 11px 13px; font-size: 14px; }
input::placeholder { color: #8d9187; opacity: 1; }
input:disabled { background: #f5f3eb; }
.field-hint { margin-top: 8px; font-size: 10px; color: #878a7e; line-height: 1.5; }
.login-submit { width: 100%; margin-top: 22px; justify-content: space-between; }
.form-error { margin-top: 13px; color: #965142; font-size: 12px; line-height: 1.55; }
.session-status { min-height: 21px; margin-top: 16px; font-size: 11px; color: var(--muted); line-height: 1.5; }
.text-button { padding: 2px 0; border: 0; background: transparent; color: var(--green); font-size: inherit; text-decoration: underline; text-underline-offset: 3px; }
.login-caption { margin-top: 29px; font: italic 22px Georgia, serif; color: #a18b65; }
.login-caption span { margin: 0 9px; font-size: 16px; }
.dashboard { padding: 43px 0 46px; }
.dashboard-heading { display: flex; justify-content: space-between; gap: 24px; align-items: center; margin-bottom: 30px; }
.dashboard-heading h1 { margin: 8px 0 9px; font-size: 46px; line-height: 1.08; letter-spacing: -.035em; }
.dashboard-heading__note { color: var(--muted); font-size: 12px; line-height: 1.6; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 29px; }
.stat { position: relative; padding: 22px 26px 23px; border: 1px solid var(--line); background: #fffdf7a6; border-radius: 10px; }
.stat--yes { background: #e9efe4; border-color: #d3ddcc; }
.stat__label { display: flex; align-items: center; gap: 7px; color: #667461; font-size: 11px; line-height: 1.4; }
.stat__number { display: block; margin-top: 15px; font-size: 39px; font-weight: 400; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.stat__detail { display: block; margin-top: 9px; color: #848777; font-size: 10px; }
.status-dot { width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%; background: #51794f; }
.status-dot--no { background: #b39772; }
.guest-book { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.guest-book__heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 18px 26px; border-bottom: 1px solid #e9e6dc; }
.guest-book__heading h2 { font-size: 23px; letter-spacing: -.025em; }
.refresh-button { padding: 9px 0 9px 12px; }
.toolbar { display: grid; grid-template-columns: minmax(180px, 1fr) auto minmax(150px, 185px); gap: 20px; align-items: end; padding: 23px 26px 13px; }
.search-input { position: relative; }
.search-input svg { position: absolute; top: 13px; left: 13px; color: #7d8977; pointer-events: none; }
.search-input input { padding-left: 40px; }
.filter-tabs { display: flex; padding: 3px; gap: 2px; background: #f1f2e9; border: 1px solid #e4e6d9; border-radius: 7px; }
.filter-tabs button { min-height: 36px; padding: 8px 13px; border: 0; background: transparent; color: #687461; font-size: 11px; line-height: 1.4; white-space: nowrap; border-radius: 4px; }
.filter-tabs button[aria-pressed="true"] { background: #fffef9; color: var(--ink); box-shadow: 0 1px 4px #46513813; }
.sort-field select { padding-right: 27px; font-size: 12px; }
.results-message { display: flex; justify-content: space-between; gap: 14px; min-height: 40px; padding: 8px 26px 15px; font-size: 10px; color: #868c7e; line-height: 1.5; }
.results-message > :last-child { text-align: right; }
.results { height: 480px; min-height: 330px; overflow: auto; overscroll-behavior: contain; }
.results.is-loading .desktop-table, .results.is-loading .mobile-cards { opacity: .45; }
.desktop-table, .mobile-cards { transition: opacity 140ms; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { position: sticky; top: 0; z-index: 1; padding: 13px 26px; border-block: 1px solid #e6e6da; background: #f5f6ef; color: #7b8474; font-size: 11px; font-weight: 550; }
td { padding: 18px 26px; border-bottom: 1px solid #eceadf; vertical-align: middle; font-size: 13px; line-height: 1.5; }
tr:last-child td { border-bottom: 0; }
th:first-child, td:first-child { width: 46%; }
th:nth-child(2), td:nth-child(2) { width: 26%; }
.guest-name { display: block; font-weight: 550; font-size: 14px; overflow-wrap: anywhere; }
.attendance-badge { display: inline-flex; align-items: center; gap: 7px; padding: 5px 9px; border-radius: 20px; background: #eaf1e5; color: #47603e; font-size: 11px; white-space: nowrap; }
.attendance-badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.attendance-badge--no { background: #f1eee5; color: #907b58; }
.guest-date { color: #81877b; font-size: 12px; font-variant-numeric: tabular-nums; }
.notice { margin: 0 26px 17px; padding: 13px 15px; border: 1px solid #e1cfc0; background: #fbf4eb; border-radius: 7px; color: #855943; font-size: 12px; line-height: 1.55; }
.notice .text-button { margin-top: 5px; }
.empty-state { display: grid; align-content: center; justify-items: center; min-height: 100%; padding: 40px 25px; text-align: center; }
.empty-state__mark { margin-bottom: 19px; color: #b5a178; font: italic 23px Georgia, serif; }
.empty-state h3 { margin-bottom: 9px; font-size: 26px; }
.empty-state p { max-width: 370px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.list-footer { display: flex; justify-content: space-between; align-items: center; min-height: 78px; gap: 15px; padding: 15px 26px; border-top: 1px solid #e9e6dc; }
.list-footer > p { font-size: 10px; color: #818979; }
.pagination { display: flex; gap: 13px; align-items: center; }
.pagination > span { color: #5e6b57; font-size: 11px; font-variant-numeric: tabular-nums; }
.mobile-cards { display: none; }
.site-footer { display: flex; justify-content: space-between; gap: 20px; padding: 25px 0; border-top: 1px solid var(--line); color: #939280; font-size: 10px; }
.site-footer > :first-child { font: italic 15px Georgia, serif; color: #8f7954; }
@media (max-width: 900px) {
  .page-shell { width: calc(100% - 44px); }
  .toolbar { grid-template-columns: 1fr auto; gap: 18px; }
  .search-field { grid-column: 1 / -1; }
  .sort-field { width: 190px; }
  .stat { padding: 20px; }
  td, th { padding-inline: 20px; }
}
@media (max-width: 600px) {
  body { min-width: 320px; }
  .page-shell { width: calc(100% - 32px); }
  .masthead { min-height: 94px; gap: 10px; }
  .identity { gap: 12px; }
  .identity__seal { width: 43px; height: 51px; font-size: 18px; }
  .identity__seal span { font-size: 10px; }
  .identity__copy strong { font-size: 20px; }
  .identity__copy > span { font-size: 9px; letter-spacing: 0; }
  .masthead > .button { padding-inline: 5px; font-size: 11px; }
  .login-view { padding: 34px 0; min-height: calc(100svh - 176px); }
  .login-card { padding: 30px 23px; }
  .login-card h1 { font-size: 34px; }
  input, select { font-size: 16px; }
  .dashboard { padding: 29px 0; }
  .dashboard-heading { display: block; margin-bottom: 22px; }
  .dashboard-heading h1 { font-size: 40px; }
  .dashboard-heading__note { font-size: 11px; }
  .dashboard-heading > .button { margin-top: 19px; }
  .stats { gap: 7px; margin-bottom: 21px; }
  .stat { padding: 14px 11px 16px; border-radius: 8px; }
  .stat__label { font-size: 9px; align-items: baseline; gap: 4px; min-height: 26px; }
  .stat__label .status-dot { width: 4px; height: 4px; }
  .stat__number { font-size: 31px; margin-top: 9px; }
  .stat__detail { display: none; }
  .guest-book { border-radius: 9px; }
  .guest-book__heading { padding: 13px 15px; gap: 8px; }
  .guest-book__heading h2 { font-size: 20px; }
  .refresh-button { min-width: 38px; padding: 8px; }
  .refresh-button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .toolbar { padding: 18px 15px 10px; gap: 14px 10px; grid-template-columns: 1fr; }
  .field-label { font-size: 10px; }
  .sort-field { width: 100%; display: grid; grid-template-columns: 64px minmax(0,1fr); align-items: center; gap: 12px; }
  .sort-field select { font-size: 16px; padding: 9px 6px; }
  .filter-tabs { gap: 0; padding: 3px; min-height: 44px; }
  .filter-tabs button { padding: 8px; font-size: 10px; }
  .filter-tabs button { flex: 1; }
  .results-message { padding: 6px 15px 13px; font-size: 9px; gap: 8px; }
  .results-message > :last-child { max-width: 105px; }
  .results { height: auto; min-height: 280px; overflow: visible; }
  .desktop-table { display: none; }
  .mobile-cards { display: grid; list-style: none; margin: 0; padding: 0 15px; }
  .guest-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 11px; align-items: start; padding: 19px 0; border-top: 1px solid #e8e6db; }
  .guest-card__details { display: grid; gap: 7px; min-width: 0; }
  .guest-card .guest-name { font-size: 14px; }
  .guest-card .guest-date { font-size: 11px; }
  .guest-card .attendance-badge { font-size: 10px; padding-inline: 8px; }
  .notice { margin-inline: 15px; }
  .empty-state { min-height: 280px; }
  .empty-state h3 { font-size: 24px; }
  .list-footer { padding: 13px 15px; min-height: 72px; }
  .list-footer > p { max-width: 130px; font-size: 9px; line-height: 1.5; }
  .pagination { gap: 10px; }
  .site-footer { padding: 20px 0; font-size: 9px; gap: 12px; }
}
@media (max-width: 370px) {
  .toolbar { grid-template-columns: 1fr; }
  .sort-field { width: 100%; }
  .filter-tabs button { flex: 1; }
  .stat__label { font-size: 8px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
