@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500;1,600&display=swap');

:root {
  color-scheme: light;
  font-family: "DM Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #282421;
  background: #f8f5ef;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --accent: #913b2e;
  --accent-dark: #702c24;
  --muted: #716961;
  --paper: #fffdf9;
  --line: #e8dfd3;
  --sand: #eee5d9;
  --serif: "Playfair Display", Georgia, serif;
  --shadow: 0 22px 60px rgb(68 43 33 / 9%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
body { margin: 0; min-width: 320px; background: #f8f5ef; }
button, input, textarea, select { font: inherit; }
button {
  min-height: 46px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  padding: 0.72rem 1.15rem;
  color: white;
  background: var(--accent);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 700;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
button:hover { background: var(--accent-dark); box-shadow: 0 5px 16px rgb(112 44 36 / 16%); transform: translateY(-1px); }
button:disabled { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid #c58f66; outline-offset: 3px; }
.button-secondary { color: #453b34; border-color: #ded2c4; background: #f1ebe2; }
.button-secondary:hover { color: var(--accent-dark); border-color: #c9a995; background: #e9ded1; }
.site-header {
  position: relative;
  z-index: 2;
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1rem max(5vw, calc((100vw - 1320px) / 2));
  background: rgb(255 253 249 / 94%);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; color: #29231f; text-decoration: none; }
.brand-name { font-family: var(--serif); font-size: 1.38rem; font-weight: 700; }
.brand-name span { color: var(--accent); }
.account { display: flex; align-items: center; justify-content: flex-end; gap: 0.65rem; min-width: 0; }
.site-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 0.35rem; }
.site-nav a { min-height: 40px; display: inline-flex; align-items: center; padding: 0.55rem 0.7rem; color: #51463d; font-size: 0.84rem; font-weight: 650; text-decoration: none; white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--accent-dark); background: #f3ece3; }
.admin-nav { padding-left: 0.55rem; border-left: 1px solid var(--line); }
.nav-group-label { align-self: center; color: var(--muted); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.auth-links { display: flex; align-items: center; gap: 0.65rem; }
.auth-links a, .community-nav a { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0.65rem 1rem; border: 1px solid #d8c8b8; color: #453b34; background: transparent; font-size: 0.88rem; font-weight: 700; text-decoration: none; transition: background 160ms ease, border-color 160ms ease, color 160ms ease; }
.auth-links a:hover, .community-nav a:hover { border-color: #b98c72; color: var(--accent-dark); background: #f3ece3; }
.auth-links .signup-link { border-color: var(--accent); color: white; background: var(--accent); }
.auth-links .signup-link:hover { border-color: var(--accent-dark); background: var(--accent-dark); }
label { display: grid; gap: 0.38rem; color: var(--muted); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.015em; }
input, textarea, select {
  width: 100%;
  min-height: 44px;
  padding: 0.65rem 0.75rem;
  border: 1px solid #dcd2c7;
  border-radius: 4px;
  color: #282421;
  background: #fffefa;
  font-size: 0.9rem;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
input:focus, textarea:focus, select:focus { border-color: #a76d57; box-shadow: 0 0 0 3px rgb(145 59 46 / 9%); outline: 0; }
input:read-only { color: #716961; background: #f3ece3; }
input::placeholder, textarea::placeholder { color: #a49a8f; }
textarea { resize: vertical; }
#signed-in { display: flex; align-items: center; gap: 1rem; }
.signed-in-label { color: var(--muted); font-size: 0.86rem; }
.signed-in-label strong { color: var(--accent-dark); font-family: var(--serif); font-size: 0.96rem; font-weight: 700; }
main { max-width: 1320px; margin: auto; padding: 0 2.5rem; }
.hero { min-height: 470px; display: flex; align-items: center; padding: 5rem 0; }
.hero-copy { position: relative; z-index: 1; width: min(100%, 850px); padding: 1rem 0; }
.eyebrow { margin: 0; color: var(--accent); text-transform: uppercase; letter-spacing: 0.17em; font-size: 0.7rem; font-weight: 700; }
.hero .eyebrow { display: flex; align-items: center; gap: 0.65rem; }
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: #bb8b69; box-shadow: 0 0 0 4px rgb(187 139 105 / 15%); }
.hero h1 { margin: 1.2rem 0 1.15rem; color: #302622; font-family: var(--serif); font-size: clamp(3.5rem, 6.6vw, 6.4rem); font-weight: 500; letter-spacing: -0.065em; line-height: 0.99; }
.hero h1 em { color: var(--accent); font-weight: 500; }
.hero-description { max-width: 440px; margin: 0; color: var(--muted); font-size: 1.07rem; line-height: 1.85; }
.hero-link { display: inline-flex; align-items: center; gap: 1rem; margin-top: 2rem; padding: 0.75rem 0; color: var(--accent); border-bottom: 1px solid #bd8973; font-size: 0.9rem; font-weight: 700; text-decoration: none; transition: gap 160ms ease, color 160ms ease; }
.hero-link:hover { gap: 1.35rem; color: var(--accent-dark); }
.hero-link span { font-size: 1.2rem; }
.hero-location { display: flex; align-items: center; gap: 0.55rem; margin: 3rem 0 0; color: #877d73; font-size: 0.76rem; letter-spacing: 0.04em; }
.hero-location span { color: var(--accent); font-size: 1rem; }
.site-page { min-height: 100vh; display: flex; flex-direction: column; }
.site-page > main { flex: 1; width: 100%; }
.upcoming-section { padding: 0 0 4rem; }
.upcoming-section .event-grid { margin-bottom: 0; }
.notice { min-height: 1.5rem; margin: 0 0 0.5rem; color: var(--accent); font-size: 0.9rem; font-weight: 650; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.45rem; }
.section-heading h2 { margin: 0.35rem 0 0; color: #302622; font-family: var(--serif); font-size: clamp(2.1rem, 4vw, 3rem); font-weight: 500; letter-spacing: -0.045em; }
.section-note { max-width: 320px; margin: 0 0 0.3rem; color: var(--muted); font-size: 0.86rem; line-height: 1.6; text-align: right; }
.event-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.4rem; margin-bottom: 1rem; }
.event-grid > p { grid-column: 1 / -1; color: var(--muted); }
.event-card { overflow: hidden; border: 1px solid var(--line); background: var(--paper); box-shadow: 0 8px 24px rgb(68 43 33 / 4%); transition: transform 200ms ease, box-shadow 200ms ease; }
.event-card:hover { box-shadow: 0 18px 36px rgb(68 43 33 / 10%); transform: translateY(-3px); }
.event-image { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: #e9e2d8; }
.event-content { padding: 1.35rem 1.4rem 1.5rem; }
.event-content h3 { margin: 0 0 0.6rem; color: #302622; font-family: var(--serif); font-size: 1.45rem; font-weight: 600; }
.event-content p { color: var(--muted); line-height: 1.65; }
.event-meta { margin: 0.3rem 0; color: var(--accent) !important; font-size: 0.82rem; font-weight: 600; }
.event-balance { padding: 0.72rem 0.85rem; border-left: 2px solid #bd8973; background: #f4eee6; font-size: 0.84rem; }
.event-status { color: var(--accent); font-weight: 750; }
.registration-controls { min-height: 4.1rem; display: flex; align-items: end; flex-wrap: wrap; gap: 0.65rem; margin-top: 1rem; }
.registration-controls label { flex: 1; min-width: 115px; }
.registration-controls > .event-status { flex: 1; min-width: 0; }
.registration-controls > button { margin-left: auto; }
.approval-setting { padding: 0.8rem 1rem; border-left: 2px solid #bd8973; background: #f4eee6; }
.approval-toggle { display: flex !important; align-items: center; gap: 0.6rem !important; min-height: 32px; color: #554b43; font-size: 0.86rem; }
.approval-toggle input { width: 17px; min-height: 17px; accent-color: var(--accent); }
.approval-help { margin: 0.2rem 0 0 1.65rem; color: var(--muted); font-size: 0.8rem; font-weight: 400; line-height: 1.5; }
.event-approval-note { padding: 0.65rem 0.8rem; border-left: 2px solid #bd8973; color: #66544a; background: #f4eee6; font-size: 0.84rem; }
.admin-panel { margin: 2rem 0 4rem; padding: clamp(1.3rem, 4vw, 2.5rem); border: 1px solid var(--line); background: #fffdf9; box-shadow: var(--shadow); }
.admin-panel > .section-heading { padding-bottom: 1.1rem; border-bottom: 1px solid var(--line); }
.admin-page { min-height: 100vh; display: flex; flex-direction: column; }
.admin-page > main { flex: 1; width: 100%; }
.admin-page main { max-width: 1320px; padding: 2rem 2.5rem 4rem; }
.admin-page .admin-panel { margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; }
.admin-header .account { align-items: center; gap: 1.2rem; }
.admin-page-heading { margin-bottom: 2rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--line); }
.admin-page-heading h1 { margin: 0.45rem 0 0; color: #302622; font-family: var(--serif); font-size: 2.25rem; font-weight: 500; }
.admin-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); align-items: start; gap: 2.5rem; }
.admin-sidebar { position: sticky; top: 1rem; padding-right: 1rem; border-right: 1px solid var(--line); }
.admin-sidebar > .eyebrow { margin: 0 0 0.8rem 0.8rem; }
.admin-sidebar-nav { display: grid; gap: 0.3rem; }
.admin-tab { width: 100%; justify-content: flex-start; min-height: 46px; padding: 0.7rem 0.8rem; border: 0; border-left: 3px solid transparent; color: #51463d; background: transparent; text-align: left; }
.admin-tab:hover { color: var(--accent-dark); background: #f3ece3; }
.admin-tab.is-active { border-left-color: var(--accent); color: var(--accent-dark); background: #f3ece3; }
.admin-sidebar-nav a.admin-tab { display: flex; align-items: center; color: #51463d; text-decoration: none; }
.admin-sidebar-nav a.admin-tab:hover { color: var(--accent-dark); }
.admin-workspace, .admin-view { min-width: 0; }
.admin-view > .section-heading { margin-bottom: 1.2rem; }
.admin-view .section-heading h2 { font-size: 1.8rem; }
.admin-event-manager { display: grid; gap: 0.8rem; padding: 1.2rem; border: 1px solid var(--line); background: #fffdf9; }
.admin-event-manager label { max-width: 650px; }
.admin-detail-tabs { display: flex; gap: 0.25rem; margin-top: 1.5rem; border-bottom: 1px solid var(--line); }
.admin-detail-tab { min-height: 44px; margin-bottom: -1px; padding: 0.65rem 1rem; border: 1px solid transparent; border-bottom: 0; color: var(--muted); background: transparent; box-shadow: none; transform: none; }
.admin-detail-tab:hover { border-color: var(--line); border-bottom-color: #fffdf9; color: var(--accent-dark); background: #fffdf9; box-shadow: none; transform: none; }
.admin-detail-tab.is-active { border-color: var(--line); border-bottom-color: #fffdf9; color: var(--accent-dark); background: #fffdf9; box-shadow: none; }
.admin-event-manager > .text-button { justify-self: start; }
.admin-tool { margin-top: 1.3rem; padding: 1.4rem; border: 1px solid var(--line); background: #fffdf9; scroll-margin-top: 1.5rem; }
.admin-tool-panel { margin-top: 0; border-top: 0; border-radius: 0 0 4px 4px; }
.admin-tool > h3 { margin-top: 0; color: #302622; font-family: var(--serif); font-size: 1.35rem; }
.admin-tool-heading { margin-bottom: 1.15rem; }
.admin-tool-heading .eyebrow { margin-bottom: 0.4rem; }
.admin-tool-heading h3 { margin: 0; color: #302622; font-family: var(--serif); font-size: 1.35rem; }
.admin-tool-heading .hint { margin: 0.35rem 0 0; }
.admin-access { width: min(100%, 560px); margin: 4rem auto; padding: 2rem; border: 1px solid var(--line); background: #fffdf9; }
.admin-access h1 { color: #302622; font-family: var(--serif); font-size: 2rem; font-weight: 500; }
.admin-access p:not(.eyebrow) { color: var(--muted); line-height: 1.6; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.15rem; }
.wide { grid-column: 1 / -1; }
.form-actions { display: flex; gap: 0.65rem; }
.stack-form { display: grid; gap: 0.9rem; }
.email-preview { margin-top: 1.5rem; padding: 1.2rem; border: 1px solid var(--line); background: #f8f5ef; }
.email-preview h3 { margin: 0.35rem 0; color: #302622; font-family: var(--serif); font-size: 1.25rem; }
.email-preview > p { color: #49413a; overflow-wrap: anywhere; }
.email-preview pre { margin: 0; color: #49413a; font: inherit; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.button-danger { border-color: #9c2f2c; color: #fff; background: #9c2f2c; }
.button-danger:hover { border-color: #792522; background: #792522; }
.hint, .muted { color: var(--muted); font-size: 0.84rem; line-height: 1.6; }
.mail-heading { margin-top: 2rem; }
.participant-row, .mail-row { padding: 0.8rem 0; border-bottom: 1px solid var(--line); }
.participant-row { display: flex; justify-content: space-between; align-items: center; gap: 0.7rem; }
.participant-row button { min-height: 38px; padding: 0.45rem 0.7rem; }
.venue-participant-info { padding: 0.7rem 0.85rem; border-left: 2px solid #bd8973; background: #f4eee6; font-size: 0.86rem; }
.venue-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr); align-items: start; gap: 1.25rem; }
.venue-layout > .admin-tool { min-width: 0; margin-top: 0; }
.venue-list-section h2, #settings-panel h2 { margin-top: 0; color: #302622; font-family: var(--serif); font-size: 1.35rem; }
.venue-entry { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.venue-entry-heading { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; }
.venue-entry h3 { margin: 0; color: #302622; font-family: var(--serif); font-size: 1.15rem; }
.venue-entry p { margin: 0.45rem 0; color: var(--muted); font-size: 0.83rem; line-height: 1.55; white-space: pre-wrap; }
.venue-entry button { margin-top: 0.4rem; }
.venue-entry button + button { margin-left: 0.45rem; }
.venue-reference-count { font-weight: 700; }
.venue-event-list { margin: 0.35rem 0 0.75rem; padding-left: 1.2rem; color: var(--muted); font-size: 0.82rem; line-height: 1.6; }
.venue-status { padding: 0.25rem 0.5rem; border-radius: 999px; color: #66544a; background: #f3ece3; font-size: 0.72rem; white-space: nowrap; }
.venue-form-label { margin-top: 0.5rem; }
.hidden { display: none !important; }
footer { padding: 2.5rem 1.5rem; color: #e9ded2; background: #302622; text-align: center; }
footer p { margin: 0; font-family: var(--serif); font-size: 1rem; letter-spacing: 0.04em; }
footer a { display: inline-block; margin-top: 0.8rem; color: #e9ded2; font-size: 0.82rem; text-underline-offset: 0.2em; }
.privacy-page { min-height: 100vh; display: flex; flex-direction: column; }
.privacy-page > main { flex: 1; width: min(100% - 2.5rem, 900px); padding: 3.5rem 0 5rem; }
.privacy-heading { margin: 1.3rem 0 2.2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.privacy-heading h1 { margin: 0.6rem 0; color: #302622; font-family: var(--serif); font-size: clamp(2.4rem, 5vw, 3.5rem); font-weight: 500; line-height: 1.1; }
.privacy-heading > p:last-child { margin: 0; color: var(--muted); font-size: 0.88rem; }
.privacy-content { color: #49413a; font-size: 0.96rem; line-height: 1.75; }
.privacy-content section { padding: 1.8rem 0; border-bottom: 1px solid var(--line); }
.privacy-content h2 { margin: 0 0 0.85rem; color: #302622; font-family: var(--serif); font-size: 1.55rem; font-weight: 600; }
.privacy-content p { margin: 0.65rem 0; }
.privacy-content ul { display: grid; gap: 0.55rem; margin: 0.8rem 0; padding-left: 1.3rem; }
.privacy-content li { padding-left: 0.15rem; }
.privacy-content a { color: var(--accent-dark); text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
.privacy-contact { display: grid; gap: 0.6rem; margin: 1rem 0; }
.privacy-contact div { display: grid; grid-template-columns: minmax(210px, 0.8fr) 1.2fr; gap: 1rem; padding-bottom: 0.6rem; border-bottom: 1px solid var(--line); }
.privacy-contact dt { color: var(--muted); font-size: 0.86rem; }
.privacy-contact dd { margin: 0; }
.privacy-contact strong, .privacy-draft-note { color: #7a392d; }
.privacy-draft-note { margin: 1rem 0 0 !important; padding: 0.9rem 1rem; border-left: 2px solid var(--accent); background: #f3ece3; font-size: 0.86rem; }
.privacy-content code { padding: 0.08rem 0.28rem; color: #51463d; background: #f0e9df; font-size: 0.9em; }
.privacy-providers { list-style: none; padding: 0 !important; }
.privacy-providers li { padding: 0.85rem 0; border-bottom: 1px solid #eee6dc; }
.community-page { min-height: 100vh; display: flex; flex-direction: column; }
.community-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.65rem; }
.community-main { flex: 1; width: min(100% - 2.5rem, 900px); padding: 3.5rem 0 5rem; }
.community-heading { margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.community-heading h1 { margin: 0.6rem 0; color: #302622; font-family: var(--serif); font-size: clamp(2.4rem, 5vw, 3.5rem); font-weight: 500; line-height: 1.1; }
.community-status { max-width: 720px; margin: 0; color: var(--muted); line-height: 1.65; }
.community-status.is-error, .community-result.is-error { color: #a32323; }
.community-section { padding: 1.6rem 0; border-bottom: 1px solid var(--line); }
.community-section h2 { margin: 0 0 0.65rem; color: #302622; font-family: var(--serif); font-size: 1.55rem; }
.community-section > p { max-width: 720px; color: var(--muted); line-height: 1.65; }
.community-form { max-width: 520px; display: grid; gap: 0.65rem; }
.community-form label { margin-top: 0.35rem; color: #554b43; font-size: 0.82rem; }
.community-form button { justify-self: start; margin-top: 0.5rem; }
.community-result { max-width: 720px; overflow-wrap: anywhere; color: var(--accent-dark); line-height: 1.65; }
.community-result a { color: var(--accent-dark); }

@media (min-width: 1500px) {
  .hero { min-height: 520px; }
}
@media (max-width: 980px) {
  .site-header { align-items: flex-start; flex-direction: column; gap: 1rem; padding: 1.2rem 2rem; }
  .auth-header { align-items: center; flex-direction: row; }
  .account { width: 100%; justify-content: flex-start; }
  .site-header .account { flex-wrap: wrap; }
  .hero { min-height: 0; padding: 4rem 0; }
  .hero h1 { font-size: clamp(3.3rem, 7vw, 5rem); }
}
@media (max-width: 680px) {
  main { padding: 0 1.25rem; }
  .site-header { padding: 1rem 1.25rem; }
  .account { align-items: center; justify-content: flex-start; flex-wrap: wrap; gap: 0.55rem; }
  .site-nav { width: 100%; gap: 0.15rem; }
  .site-nav a { padding-inline: 0.5rem; font-size: 0.8rem; }
  .auth-links { width: auto; justify-content: flex-start; gap: 0.5rem; }
  #signed-in { flex: 1 0 100%; justify-content: flex-end; gap: 0.5rem; }
  .signed-in-label { display: block; min-width: 0; max-width: 48vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hero { padding: 3.5rem 0 3rem; }
  .hero h1 { font-size: clamp(3.4rem, 12vw, 5.2rem); }
  .hero-location { margin-top: 2rem; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .section-note { text-align: left; }
  .event-grid { grid-template-columns: 1fr; }
  .admin-columns { grid-template-columns: 1fr; gap: 2rem; }
  .privacy-page > main { width: min(100% - 2rem, 900px); padding: 2.5rem 0 3rem; }
  .privacy-contact div { grid-template-columns: 1fr; gap: 0.15rem; }
  .admin-page main { padding: 1.5rem 1.25rem 3rem; }
  .admin-layout { grid-template-columns: 1fr; gap: 1.4rem; }
  .venue-layout { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; padding: 0 0 0.8rem; border-right: 0; border-bottom: 1px solid var(--line); }
  .admin-sidebar-nav { display: flex; flex-wrap: wrap; gap: 0.35rem; }
  .admin-tab { width: auto; border-left: 0; border-bottom: 2px solid transparent; }
  .admin-tab.is-active { border-bottom-color: var(--accent); }
  .admin-detail-tabs { overflow-x: auto; }
  .admin-detail-tab { flex: 0 0 auto; padding: 0.65rem 0.8rem; }
  .admin-header .account { width: 100%; justify-content: space-between; gap: 0.75rem; }
  .admin-header #signed-in { flex: 0 0 auto; justify-content: flex-end; }
  .community-main { width: min(100% - 2rem, 900px); padding: 2.5rem 0 3rem; }
}
@media (max-width: 480px) {
  .brand-name { font-size: 1.08rem; }
  .form-grid { grid-template-columns: 1fr; }
  .wide { grid-column: auto; }
  .hero h1 { font-size: 3.45rem; }
  .form-actions { flex-wrap: wrap; }
  .form-actions button { flex: 1; }
  .participant-row { align-items: flex-start; flex-direction: column; }
  .venue-entry-heading { align-items: flex-start; flex-direction: column; }
}

.auth-page { min-height: 100vh; display: flex; flex-direction: column; }
.auth-header { width: 100%; }
.auth-main { width: min(100% - 3rem, 1040px); flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 0.78fr); align-items: center; gap: clamp(3rem, 8vw, 7rem); padding-top: 4rem; padding-bottom: 5rem; }
.auth-card { width: 100%; max-width: 470px; margin: auto; padding: clamp(1.7rem, 4vw, 3rem); border: 1px solid var(--line); background: var(--paper); box-shadow: var(--shadow); }
.auth-card h1 { margin: 0.65rem 0 0.7rem; color: #302622; font-family: var(--serif); font-size: clamp(2.5rem, 5vw, 3.5rem); font-weight: 500; letter-spacing: -0.05em; }
.auth-intro { margin: 0 0 1.8rem; color: var(--muted); font-size: 0.94rem; line-height: 1.7; }
.auth-page-form { display: grid; gap: 0.65rem; }
.auth-page-form label { margin-top: 0.35rem; color: #554b43; font-size: 0.82rem; }
.auth-page-form input { min-height: 49px; }
.auth-page-form button { width: 100%; margin-top: 0.8rem; }
.auth-message { min-height: 1.35rem; margin: 0.2rem 0 0; color: var(--muted); font-size: 0.84rem; line-height: 1.5; }
.auth-message.is-error { color: #a32323; }
.auth-message.is-success { color: #3e6c4a; }
.text-button { min-height: auto; margin: 0.2rem 0 0; padding: 0.35rem 0; border: 0; color: var(--accent); background: transparent; font-size: 0.84rem; font-weight: 600; }
.text-button:hover { box-shadow: none; background: transparent; text-decoration: underline; transform: none; }
.auth-switch { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.8rem; margin: 1.7rem 0 0; padding-top: 1.3rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.85rem; }
.auth-switch a { min-height: 40px; display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.55rem 0.8rem; border: 1px solid #d8c8b8; color: var(--accent-dark); background: #f7f1e9; font-weight: 700; text-decoration: none; transition: border-color 160ms ease, background 160ms ease; }
.auth-switch a:hover { border-color: #b98c72; background: #efe3d5; }
.auth-switch a span { font-size: 1.05rem; }
.auth-aside { position: relative; min-height: 330px; display: flex; flex-direction: column; justify-content: center; padding: 2rem 0 2rem 2.5rem; border-left: 1px solid #d8c6b3; }
.auth-aside blockquote { max-width: 340px; margin: 1.3rem 0; color: #302622; font-family: var(--serif); font-size: clamp(1.8rem, 3.3vw, 2.7rem); letter-spacing: -0.035em; line-height: 1.25; }
.auth-aside-note { color: var(--muted); font-size: 0.86rem; }
.auth-page footer { margin-top: auto; }
@media (max-width: 680px) {
  .auth-header { align-items: center; flex-direction: row; }
  .auth-main { width: min(100% - 2rem, 500px); grid-template-columns: 1fr; gap: 2rem; padding-top: 2rem; padding-bottom: 3rem; }
  .auth-card { padding: 1.6rem; }
  .auth-aside { min-height: 0; padding: 1.2rem 0 0; border-top: 1px solid #d8c6b3; border-left: 0; }
  .auth-aside blockquote { font-size: 1.7rem; }
}
.auth-page a:focus-visible, .auth-page button:focus-visible, .auth-links a:focus-visible { outline: 3px solid #bd8973; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

.account-main { max-width: 52rem; margin: 0 auto; }
.account-section { margin: 0 0 1.5rem; padding: 1.5rem; border: 1px solid #ded2c4; border-radius: 12px; background: #fffdf9; }
.account-section h2 { margin-top: 0; }
.account-danger { border-color: #d9a3a3; }
.account-danger form { display: grid; gap: 0.6rem; max-width: 24rem; }

.checkin-counter { font-size: 1.1rem; font-weight: 600; }
.checkin-scanner { position: relative; max-width: 480px; margin: 1rem 0; }
.checkin-scanner video { width: 100%; border-radius: 12px; background: #000; }
.checkin-result { margin-top: 0.8rem; padding: 1rem; border-radius: 12px; color: #fff; font-size: 1.15rem; font-weight: 600; text-align: center; }
.checkin-result.is-ok { background: #1f7a3d; }
.checkin-result.is-warn { background: #b26a00; }
.checkin-result.is-error { background: #a32323; }
.ticket-card { display: flex; flex-direction: column; align-items: center; gap: 0.7rem; padding: 1rem 0; border-bottom: 1px solid var(--line); text-align: center; }
.ticket-qr-display { display: grid; justify-items: center; gap: 0.3rem; }
.ticket-qr-image { width: 240px; max-width: 100%; height: auto; }
.ticket-participant { font-size: 1rem; }
.ticket-event { color: var(--muted); font-size: 0.9rem; }
.print-list { display: none; }
@font-face {
  font-family: "Ticket PDF";
  src: url("/fonts/LiberationSans-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@media print {
  body.printing-list > :not(main), body.printing-list main > :not(.admin-panel) { display: none !important; }
  body.printing-list .admin-sidebar, body.printing-list .admin-page-heading, body.printing-list .admin-view:not(#checkin-view) { display: none !important; }
  body.printing-list .admin-layout, body.printing-list .admin-workspace { display: block !important; }
  body.printing-list #checkin-view > :not(#print-list) { display: none !important; }
  body.printing-list #print-list { display: block; color: #000; font-family: "Ticket PDF", sans-serif; }
  .print-list table { width: 100%; border-collapse: collapse; font-size: 11pt; }
  .print-list th, .print-list td { padding: 4px 6px; border-bottom: 1px solid #999; text-align: left; }
  .print-list td.box { width: 28px; }
}

.req { color: #b3261e; font-weight: 700; }
.required-note { margin: 0.5rem 0 0; color: var(--muted); font-size: 0.78rem; grid-column: 1 / -1; }
