:root {
  color-scheme: light;
  --ink: #25241f;
  --muted: #76736b;
  --line: #e3ded3;
  --brand: #292923;
  --brand-dark: #171813;
  --gold: #b08a43;
  --gold-soft: #f3eee2;
  --green: #138a61;
  --red: #c7494d;
  --amber: #a86a12;
  --violet: #7650c4;
  font-family: "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  min-width: 0;
  min-height: 100vh;
  overflow-x: hidden;
  margin: 0;
  color: var(--ink);
  background-color: #f4f3ef;
  background-image: linear-gradient(135deg, #eeede7 0%, #faf9f6 55%, #efefeb 100%);
}

button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
[hidden] { display: none !important; }

.site-shell { min-height: 100vh; display: flex; flex-direction: column; }
.opening-screen {
  position: fixed;
  z-index: 10000;
  inset: 0;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at 50% 42%, #fff 0%, #f8f7f2 56%, #eeece5 100%);
  opacity: 1;
  transition: opacity 1.2s ease;
}
.opening-screen::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: radial-gradient(ellipse at 50% 48%, rgba(255, 255, 255, .18), rgba(231, 222, 199, .16));
  animation: opening-ambient 5s ease-in-out infinite alternate;
  content: "";
}
.opening-screen.is-leaving { opacity: 0; pointer-events: none; }
.opening-screen.is-leaving .opening-brand { opacity: 0; transform: translateY(-10px) scale(.98); }
.opening-brand {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px;
  color: #25241f;
  text-align: center;
  animation: opening-brand-enter .9s cubic-bezier(.2, .75, .25, 1) both;
  transition: opacity .7s ease, transform .9s ease;
}
.opening-logo-frame {
  position: relative;
  width: clamp(104px, 19vmin, 156px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  margin-bottom: 28px;
  border: 1px solid #b08a43;
  border-radius: 50%;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 0 0 8px rgba(255, 255, 255, .4), 0 14px 42px rgba(41, 36, 27, .2);
  animation: opening-logo-glow 2.8s ease-in-out infinite;
}
.opening-logo-frame::before {
  position: absolute;
  inset: -14px;
  border: 1px solid rgba(176, 138, 67, .55);
  border-radius: 50%;
  animation: opening-logo-ring 2.8s ease-out infinite;
  content: "";
}
.opening-logo { width: 100%; height: 100%; padding: 9px; border-radius: 50%; object-fit: contain; }
.opening-brand-title {
  max-width: min(100%, 560px);
  margin: 0 0 15px;
  font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: clamp(20px, 4vw, 34px);
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 1px 18px rgba(255, 255, 255, .75);
}
.opening-brand-divider { width: 48px; height: 2px; margin-bottom: 12px; background: var(--gold); }
.opening-brand-subtitle {
  margin: 0;
  color: #806126;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
}
@keyframes opening-brand-enter {
  from { opacity: 0; transform: translateY(20px) scale(.97); filter: blur(5px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
@keyframes opening-ambient {
  from { opacity: .58; }
  to { opacity: 1; }
}
@keyframes opening-logo-glow {
  0%, 100% { box-shadow: 0 0 0 8px rgba(255, 255, 255, .4), 0 14px 42px rgba(41, 36, 27, .2); }
  50% { box-shadow: 0 0 0 11px rgba(255, 255, 255, .32), 0 17px 48px rgba(41, 36, 27, .24); }
}
@keyframes opening-logo-ring {
  0% { opacity: .65; transform: scale(.94); }
  100% { opacity: 0; transform: scale(1.12); }
}
html[data-theme="dark"] .opening-screen {
  background: radial-gradient(ellipse at 50% 42%, #292a2e 0%, #1b1d22 56%, #11141a 100%);
}
html[data-theme="dark"] .opening-screen::after {
  background: radial-gradient(ellipse at 50% 48%, rgba(78, 70, 53, .12), rgba(8, 10, 14, .28));
}
html[data-theme="dark"] .opening-brand { color: #f0eee8; }
html[data-theme="dark"] .opening-logo-frame {
  border-color: #d1ad63;
  background: #f8f7f2;
  animation-name: opening-logo-glow-dark;
}
html[data-theme="dark"] .opening-logo-frame::before { border-color: rgba(209, 173, 99, .55); }
html[data-theme="dark"] .opening-brand-title { text-shadow: 0 1px 18px rgba(0, 0, 0, .55); }
html[data-theme="dark"] .opening-brand-subtitle { color: #d1ad63; }
@keyframes opening-logo-glow-dark {
  0%, 100% { box-shadow: 0 0 0 8px rgba(255, 255, 255, .08), 0 14px 42px rgba(0, 0, 0, .42); }
  50% { box-shadow: 0 0 0 11px rgba(255, 255, 255, .12), 0 17px 48px rgba(0, 0, 0, .5); }
}
.site-header {
  height: 74px;
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(18px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .92);
}
.theme-toggle {
  min-height: 36px;
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  background: rgba(255, 255, 255, .82);
  font-size: 11px;
  font-weight: 700;
  transition: color .3s ease, background-color .3s ease, border-color .3s ease, box-shadow .3s ease, transform .2s ease;
}
.theme-toggle:hover { transform: translateY(-1px); box-shadow: 0 4px 12px #29241b18; }
.theme-toggle:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.theme-toggle-icon { color: var(--gold); font-size: 16px; line-height: 1; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.brand-mark {
  width: 44px;
  height: 44px;
  display: block;
  padding: 2px;
  border: 1px solid #d8c79d;
  border-radius: 50%;
  background: #fff;
  object-fit: contain;
  box-shadow: 0 2px 10px #9c7b3824;
}
.brand-copy { display: grid; gap: 2px; }
.brand-copy strong { color: var(--ink); font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif; font-size: 14px; font-weight: 700; line-height: 1.25; white-space: nowrap; }
.brand-copy small { color: var(--muted); font-size: 10px; }
.header-note { display: inline-flex; align-items: center; gap: 8px; color: #64748b; font-size: 11px; font-weight: 600; }
.online-dot { width: 7px; height: 7px; border-radius: 50%; background: #18a36d; box-shadow: 0 0 0 3px #18a36d1c; }

.main-content {
  width: min(100% - 32px, 540px);
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  padding: 32px 0 18px;
}
.attendance-card {
  width: 100%;
  padding: 34px;
  border: 1px solid #e5ebf2;
  border-top: 2px solid var(--gold);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 22px 70px #1d335314, 0 2px 8px #1d33530a;
  animation: enter .38s ease-out both;
}
.card-heading { margin-bottom: 24px; }
.eyebrow { margin: 0 0 8px; color: var(--gold); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
h1, h2, p { margin-top: 0; }
.card-heading h1 { margin: 0 0 8px; font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif; font-size: 27px; line-height: 1.2; letter-spacing: 0; }
.card-heading > p:last-child { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.field-label { display: block; margin-bottom: 7px; font-size: 12px; font-weight: 700; }
#name {
  width: 100%;
  min-height: 47px;
  padding: 0 13px;
  border: 1px solid #dce4ee;
  border-radius: 8px;
  outline: none;
  color: var(--ink);
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
#name::placeholder { color: #9ba7b7; }
#name:focus { border-color: var(--gold); box-shadow: 0 0 0 3px #b08a4326; }
.field-error { min-height: 18px; margin: 5px 0 0; color: var(--red); font-size: 11px; }
.location-status {
  display: flex;
  gap: 12px;
  padding: 14px;
  border: 1px solid #e5eaf0;
  border-radius: 10px;
  background: #f8fafc;
  transition: background .16s, border-color .16s;
}
.status-icon { width: 34px; height: 34px; display: grid; flex: none; place-items: center; border-radius: 10px; background: #edf1f6; font-size: 17px; }
.status-copy { min-width: 0; padding-top: 1px; }
.status-copy strong { display: block; margin-bottom: 3px; font-size: 12px; }
.status-copy p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.status-verified { border-color: #c8e8d8; background: #edf9f3; }
.status-verified .status-icon { background: #dcf3e6; }
.status-outside, .status-error { border-color: #f0d2cf; background: #fff4f2; }
.status-outside .status-icon, .status-error .status-icon { background: #ffe3df; }
.status-warning { border-color: #f0dfb7; background: #fff8e9; }
.status-warning .status-icon { background: #ffedc9; }
.status-checking { border-color: #d6e4fc; background: #f2f7ff; }
.status-checking .status-icon { background: #dfebff; }
.location-metrics { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 12px; padding: 11px 0 0; border-top: 1px solid #dfe9e3; }
.location-metrics > div { display: grid; gap: 3px; padding: 0 9px; text-align: center; }
.location-metrics > div:first-child { padding-left: 0; }
.location-metrics > div + div { border-left: 1px solid #e1e8ef; }
.location-metrics strong { font-size: 13px; }
.location-metrics span { color: var(--muted); font-size: 9px; }
.button-stack { display: grid; gap: 9px; margin-top: 17px; }
.button {
  min-height: 49px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 700;
  transition: transform .15s, background .15s, border-color .15s, box-shadow .15s;
}
.button-primary { color: #fff; background: var(--brand); box-shadow: 0 5px 12px #29292324; }
.button-primary:hover:not(:disabled) { transform: translateY(-1px); background: var(--brand-dark); box-shadow: 0 7px 16px #29292330; }
.button-submit { color: #fff; background: var(--green); box-shadow: 0 5px 12px #138a6122; }
.button-submit:hover:not(:disabled) { transform: translateY(-1px); background: #0e7752; }
.button-submit:disabled { color: #8996a8; background: #e9edf2; box-shadow: none; }
.button-arrow { margin-left: auto; opacity: .8; }
.privacy-note { display: flex; justify-content: center; align-items: flex-start; gap: 6px; margin: 14px 0 0; color: #8793a4; font-size: 10px; line-height: 1.5; text-align: center; }
.page-footnote { margin: 14px 0 0; color: #9aa5b4; font-size: 10px; text-align: center; }

.flow-panel { min-height: 410px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; animation: enter .25s ease-out both; }
.large-symbol { width: 72px; height: 72px; display: grid; place-items: center; margin-bottom: 18px; border-radius: 22px; }
.loading-symbol { color: var(--gold); background: var(--gold-soft); }
.permission-symbol { color: var(--gold); background: var(--gold-soft); }
.warning-symbol { color: var(--amber); background: #fff8e9; }
.success-symbol { color: var(--green); background: #e9f8f1; }
.duplicate-symbol { color: var(--violet); background: #f3efff; }
.error-symbol { color: var(--red); background: #fff0ef; }
.flow-panel h2 { margin: 0 0 9px; font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif; font-size: 22px; line-height: 1.3; }
.flow-description { max-width: 350px; margin: 0 auto 19px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.spinner { width: 32px; height: 32px; display: block; border: 3px solid #e8dfc9; border-top-color: var(--gold); border-radius: 50%; animation: spin .8s linear infinite; }
.progress-list { width: min(100%, 300px); display: grid; gap: 12px; margin: 10px auto 0; text-align: left; }
.progress-item { display: flex; align-items: center; gap: 10px; color: #98a3b2; font-size: 11px; }
.progress-item > span { width: 19px; height: 19px; display: grid; flex: none; place-items: center; border: 1px solid #d7dfe8; border-radius: 50%; background: #fff; }
.progress-item.complete { color: #45556c; }
.progress-item.complete > span { border-color: #c9e9d9; color: var(--green); background: #e6f7ef; }
.progress-item.current { color: var(--gold); font-weight: 700; }
.progress-item.current > span { border-color: var(--gold); }
.receipt { width: 100%; margin: 0 0 18px; padding: 4px 14px; border: 1px solid #e5ebf2; border-radius: 10px; background: #fbfcfe; text-align: left; }
.receipt-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid #e9eef4; font-size: 11px; }
.receipt-row:last-child { border-bottom: 0; }
.receipt-row span { color: var(--muted); }
.receipt-row strong { text-align: right; }
.receipt-status { color: var(--green); }
.result-actions { width: 100%; display: flex; justify-content: center; gap: 9px; }
.result-actions .button { min-width: 132px; }
.button-secondary { border-color: #dbe4ee; color: #46556c; background: #fff; }
.button-secondary:hover { border-color: #bfd0e5; background: #f8fafd; }
.error-copy { margin: 0 0 19px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.spin { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes enter { from { transform: translateY(7px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

@media (max-width: 560px) {
  .site-header { height: 65px; padding: 0 16px; }
  .brand-mark { width: 35px; height: 35px; }
  .brand-copy strong { font-size: 11px; }
  .main-content { width: min(100% - 40px, 430px); justify-content: flex-start; padding: 23px 0 18px; }
  .attendance-card { padding: 24px 19px 20px; border-radius: 14px; }
  .card-heading { margin-bottom: 20px; }
  .card-heading h1 { font-size: 22px; }
  .flow-panel { min-height: 440px; }
  .location-metrics > div { padding: 0 6px; }
  .location-metrics strong { font-size: 12px; }
}
@media (max-width: 360px) {
  .brand-copy strong { font-size: 10px; }
  .header-note { font-size: 10px; }
  .attendance-card { padding: 21px 16px 18px; }
  .location-metrics span { font-size: 8px; }
  .result-actions { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

.main-nav { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: #f8fafd; }
.nav-tab { min-height: 34px; padding: 0 12px; border: 0; border-radius: 7px; color: var(--muted); background: transparent; font-size: 11px; font-weight: 700; }
.nav-tab:hover { color: var(--ink); }
.nav-tab.active { color: var(--ink); background: #fff; box-shadow: inset 0 -2px var(--gold), 0 1px 4px #29241b12; }
.main-content.wide-content { width: min(100% - 44px, 1180px); align-items: stretch; justify-content: flex-start; padding-top: 38px; }
.page-view { width: 100%; }
.attendance-page { width: min(100%, 540px); align-self: center; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.page-heading h1 { margin: 6px 0 5px; font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif; font-size: 30px; line-height: 1.2; letter-spacing: 0; }
.page-heading > div > p:last-child { margin: 0; color: var(--muted); font-size: 12px; }
.settings-page.settings-password-required > .page-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, max-content) minmax(0, 1fr); align-items: center; }
.settings-page.settings-password-required > .page-heading > div { min-width: 0; grid-column: 2; text-align: center; }
.settings-page.settings-password-required > .page-heading .lock-location-button { grid-column: 3; grid-row: 1; justify-self: end; }
.page-actions { display: flex; gap: 8px; }
.page-actions .button { min-height: 40px; }
.summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; margin-bottom: 14px; }
.summary-card { min-width: 0; display: grid; gap: 5px; padding: 16px 17px; border: 1px solid var(--line); border-top: 2px solid #c4a668; border-radius: 10px; background: #fff; }
.summary-card > span { color: var(--muted); font-size: 10px; }
.summary-card > strong { font-size: 24px; line-height: 1.2; }
.summary-card > small { overflow: hidden; color: #8995a6; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.sheets-status { display: flex; align-items: center; gap: 11px; margin-bottom: 15px; padding: 12px 15px; border: 1px solid #f0d4d2; border-radius: 9px; background: #fff5f4; }
.sheets-status.connected { border-color: #d3eadf; background: #f1faf5; }
.sheets-status.loading { border-color: #d7e6fc; background: #f2f7ff; }
.connection-dot { width: 8px; height: 8px; display: block; flex: none; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 3px #c7494d20; }
.sheets-status.connected .connection-dot { background: #16a36d; box-shadow: 0 0 0 3px #16a36d20; }
.sheets-status.loading .connection-dot { background: var(--gold); box-shadow: 0 0 0 3px #b08a4324; animation: breathe 1.2s ease-in-out infinite; }
.sheets-status > div { display: grid; gap: 2px; }
.sheets-status strong { font-size: 11px; }
.sheets-status p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.records-panel { overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.records-filters { display: grid; grid-template-columns: minmax(180px, 1fr) auto 190px 150px; gap: 9px; padding: 13px; border-bottom: 1px solid var(--line); }
.report-actions { display: flex; align-items: center; gap: 7px; }
.report-actions .button { min-height: 40px; padding: 0 13px; }
.search-control, .filter-control { width: 100%; min-width: 0; height: 47px; min-height: 47px; display: flex; align-items: center; gap: 8px; padding: 0 13px; border: 1px solid #dce4ee; border-radius: 8px; color: #8290a5; background: #fff; }
.search-control > span { font-size: 20px; line-height: 1; }
.search-control input, .filter-control input, .filter-control select { width: 100%; min-width: 0; height: 45px; min-height: 45px; padding: 0; border: 0; outline: none; color: var(--ink); background: transparent; font-size: 16px; }
.filter-control { gap: 5px; }
.filter-control > span { color: var(--muted); font-size: 12px; }
.search-control:focus-within, .filter-control:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px #b08a4326; }
.records-table-wrap, .table-scroll { overflow-x: auto; }
.records-table { width: 100%; min-width: 740px; table-layout: fixed; border-collapse: collapse; text-align: left; }
.records-table th { padding: 11px 12px; border: 1px solid #5d5138; color: #302817; background: #ffedb5; font-size: 10px; font-weight: 700; }
.records-table td { padding: 7px 9px; border: 1px solid #9a927f; color: #302d27; font-size: 11px; overflow-wrap: anywhere; }
.records-table th:nth-child(1), .records-table td:nth-child(1) { width: 29%; }
.records-table th:nth-child(2), .records-table td:nth-child(2) { width: 23%; }
.records-table th:nth-child(3), .records-table td:nth-child(3) { width: 17%; }
.records-table th:nth-child(4), .records-table td:nth-child(4) { width: 14%; }
.records-table th:nth-child(5), .records-table td:nth-child(5) { width: 17%; }
.records-table .record-name { color: var(--ink); font-weight: 600; }
.records-table .record-row-0 .record-name { background: #eee5f6; }
.records-table .absent-record-row td { background: #fff0ef; }
.records-table .absent-record-row .record-name { color: #b42318; background: #ffe0dd; }
.reported-absence-label { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; font-weight: 400; }
.attendance-records-table { min-width: 950px; }
.attendance-records-table th:nth-child(1), .attendance-records-table td:nth-child(1) { width: 21%; }
.attendance-records-table th:nth-child(2), .attendance-records-table td:nth-child(2) { width: 15%; }
.attendance-records-table th:nth-child(3), .attendance-records-table td:nth-child(3) { width: 12%; }
.attendance-records-table th:nth-child(4), .attendance-records-table td:nth-child(4) { width: 12%; }
.attendance-records-table th:nth-child(5), .attendance-records-table td:nth-child(5) { width: 12%; }
.attendance-records-table th:nth-child(6), .attendance-records-table td:nth-child(6) { width: 28%; }
.graphics-server-record { display: grid; gap: 3px; }
.graphics-server-record strong { color: var(--ink); font-size: 10px; }
.graphics-server-record small { color: var(--muted); font-size: 9px; }
.graphics-server-record .server-status-present { color: var(--green); }
.graphics-server-record .server-status-absent { color: var(--red); }
.record-status { display: block; width: 100%; padding: 5px 6px; border-radius: 3px; color: #155724; background: #c8eccd; text-align: center; font-size: 10px; font-weight: 700; text-transform: lowercase; }
.record-status.status-absent { color: #fff; background: #e12620; }
.record-status.status-late { color: #684600; background: #ffe5a3; }
.empty-records { padding: 32px !important; color: var(--muted) !important; text-align: center; white-space: normal; }
.table-footer { display: flex; justify-content: space-between; gap: 12px; padding: 11px 15px; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; }
.records-event-panel { margin-top: 24px; }
.settings-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(310px, .9fr); gap: 16px; align-items: stretch; }
.graphics-schedule-panel { grid-column: 1 / -1; min-width: 0; padding: 22px; border: 1px solid var(--line); border-top: 2px solid #c4a668; border-radius: 10px; background: #fff; }
.graphics-schedule-heading, .graphics-assignment-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.graphics-schedule-heading { margin-bottom: 20px; }
.graphics-schedule-heading h2 { margin: 0 0 5px; font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif; font-size: 20px; }
.graphics-schedule-heading p:last-child { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.graphics-schedule-heading .eyebrow { margin-bottom: 4px; }
.graphics-schedule-heading .button, .graphics-assignment-heading .button { min-height: 38px; flex: none; }
.graphics-schedule-section + .graphics-schedule-section { margin-top: 20px; }
.graphics-schedule-section h3 { margin: 0 0 10px; font-size: 12px; }
.graphics-server-list, .graphics-assignment-list { display: grid; gap: 8px; }
.graphics-server-row, .graphics-assignment-row { min-width: 0; display: grid; gap: 9px; align-items: center; }
.graphics-server-row { grid-template-columns: minmax(0, 1fr) 36px; }
.graphics-assignment-row { grid-template-columns: minmax(135px, .7fr) minmax(135px, .7fr) minmax(180px, 1fr) 36px; }
.graphics-assignment-field { min-width: 0; display: grid; gap: 5px; color: var(--muted); font-size: 12px; font-weight: 700; }
.graphics-assignment-row { grid-template-columns: minmax(135px, .7fr) minmax(135px, .7fr) minmax(180px, 1fr) 36px; }
.graphics-server-row input, .graphics-assignment-row input, .graphics-assignment-row select { width: 100%; min-width: 0; min-height: 42px; padding: 0 11px; border: 1px solid #dce4ee; border-radius: 8px; outline: none; color: var(--ink); background: #fff; font: inherit; font-size: 12px; }
.graphics-server-row input:focus, .graphics-assignment-row input:focus, .graphics-assignment-row select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px #b08a4326; }
.graphics-remove-button { width: 36px; height: 36px; border: 1px solid #e5deda; border-radius: 7px; color: #8b4c45; background: #fff; font-size: 18px; }
.graphics-remove-button:hover { border-color: #d9a6a0; background: #fff4f2; }
.graphics-password-field { margin: 20px 0 10px; }
.graphics-password-field input { font-size: 12px; }
.graphics-schedule-save { width: 100%; min-height: 44px; }
.graphics-schedule-status { min-height: 16px; margin: 10px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.graphics-schedule-status.error { color: var(--red); }
.graphics-schedule-status.success { color: var(--green); }
.map-frame, .settings-panel { overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.map-frame { min-height: 420px; position: relative; }
.google-map-canvas { position: absolute; inset: 0; z-index: 1; }
.map-preview {
  position: absolute;
  inset: 0;
  z-index: 0;
  min-height: 0;
  overflow: hidden;
  background-color: #f0eee8;
  background-image:
    linear-gradient(31deg, transparent 46%, rgba(255,255,255,.95) 47%, rgba(255,255,255,.95) 49%, transparent 50%),
    linear-gradient(116deg, transparent 41%, rgba(255,255,255,.9) 42%, rgba(255,255,255,.9) 44%, transparent 45%),
    linear-gradient(4deg, transparent 65%, rgba(210,227,216,.8) 66%, rgba(210,227,216,.8) 76%, transparent 77%),
    repeating-linear-gradient(90deg, transparent 0 74px, rgba(255,255,255,.5) 75px 77px),
    repeating-linear-gradient(0deg, transparent 0 62px, rgba(255,255,255,.55) 63px 65px);
}
  .map-connect-message { width: min(360px, calc(100% - 32px)); position: absolute; left: 16px; bottom: 16px; z-index: 2; padding: 12px 14px; border: 1px solid #e2d7bd; border-radius: 9px; color: #51462f; background: #fffdf8ed; box-shadow: 0 5px 20px #29241b18; font-size: 11px; line-height: 1.5; }
  .map-instruction { position: absolute; left: 50%; bottom: 15px; z-index: 2; transform: translateX(-50%); margin: 0; padding: 8px 12px; border-radius: 7px; color: #fff; background: #292923e8; box-shadow: 0 3px 12px #29241b30; font-size: 10px; text-align: center; white-space: nowrap; }
.map-park { position: absolute; border-radius: 40% 52% 38% 45%; background: #e5e0d2; }
.park-one { left: 10%; bottom: 12%; width: 25%; height: 22%; }
.park-two { right: 12%; top: 22%; width: 18%; height: 17%; }
.map-tag { position: absolute; top: 15px; left: 15px; z-index: 1; padding: 8px 10px; border: 1px solid #fff; border-radius: 7px; color: #46586a; background: #ffffffdf; font-size: 10px; font-weight: 700; }
.map-radius { width: var(--radius-size, 130px); aspect-ratio: 1; display: grid; position: absolute; top: 50%; left: 49%; place-items: center; transform: translate(-50%, -50%); border: 1px solid #b08a438c; border-radius: 50%; background: #b08a431c; box-shadow: 0 0 0 9px #b08a4310, 0 0 0 20px #b08a4308; transition: width .2s ease; }
.map-pin { width: 38px; height: 38px; display: grid; place-items: center; border: 3px solid #fff; border-radius: 50% 50% 50% 10%; background: var(--brand); box-shadow: 0 4px 12px #29292338; font-size: 18px; rotate: -45deg; }
.map-pin::first-letter { rotate: 45deg; }
.map-point-label { position: absolute; top: calc(50% + 53px); left: 49%; transform: translateX(-50%); padding: 5px 8px; border-radius: 5px; color: #334155; background: #fff; box-shadow: 0 2px 8px #28394c1c; font-size: 9px; font-weight: 700; white-space: nowrap; }
.map-scale { position: absolute; right: 17px; bottom: 17px; color: #69778a; font-size: 9px; }
.map-scale::before { width: 42px; height: 4px; display: block; border-right: 1px solid; border-bottom: 1px solid; border-left: 1px solid; content: ""; }
.settings-panel { padding: 22px; }
.settings-panel h2 { margin: 0 0 5px; font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif; font-size: 19px; }
.settings-panel > p { margin: 0 0 18px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.location-access { width: min(100%, 470px); margin: 28px auto; padding: 28px; border: 1px solid var(--line); border-top: 2px solid var(--gold); border-radius: 12px; background: #fff; box-shadow: 0 16px 44px #29241b12; text-align: center; }
.access-mark { width: 46px; height: 46px; display: grid; place-items: center; margin: 0 auto 16px; border: 1px solid #d8c79d; border-radius: 50%; color: var(--gold); background: #f7f3e9; font-size: 18px; }
.location-access h2 { margin: 0 0 8px; font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif; font-size: 22px; font-weight: 700; }
.location-access > p:not(.eyebrow) { max-width: 340px; margin: 0 auto 19px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.location-access form { text-align: left; }
.unlock-location-button { width: 100%; }
.lock-location-button { flex: none; }
.event-entry-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 15px; }
.event-entry-form, .event-roster-panel { min-width: 0; padding: 22px; border: 1px solid var(--line); border-top: 2px solid #c4a668; border-radius: 10px; background: #fff; box-shadow: 0 12px 34px #29241b0c; }
.event-entry-page .event-roster-panel { overflow: hidden; padding: 0; border-top-width: 1px; box-shadow: none; }
.event-date-note { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 0 23px; padding: 10px 12px; border: 1px solid #e3ded3; border-radius: 8px; background: #faf8f2; font-size: 10px; }
.event-date-note span { color: var(--muted); }
.event-date-note strong { color: var(--ink); }
.event-location-reference { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -10px 0 16px; padding: 0 2px 12px; border-bottom: 1px solid var(--line); }
.event-location-reference > div { min-width: 0; display: grid; gap: 3px; }
.event-location-reference > div > span { color: var(--muted); font-size: 9px; font-weight: 700; text-transform: uppercase; }
.event-location-reference > div > strong { overflow-wrap: anywhere; font-size: 12px; }
.event-location-reference > div > small { color: var(--muted); font-size: 10px; }
.event-location-reference > a { flex: none; color: #46556c; font-size: 10px; font-weight: 700; text-decoration: none; }
.event-location-reference > a:hover { color: var(--gold); text-decoration: underline; }
.event-location-reference > a span { color: var(--gold); font-size: 14px; }
.event-date-note small { margin-left: auto; color: var(--muted); font-size: 9px; }
.event-location-check { display: grid; gap: 8px; margin-bottom: 20px; }
.event-location-check .location-status { align-items: center; }
.event-location-check .status-checking .status-icon { animation: breathe 1.1s ease-in-out infinite; }
.event-location-button { width: 100%; min-height: 42px; }
.event-form-actions .button:disabled { color: #807e77; border-color: #e5e1d9; background: #eceae5; box-shadow: none; }
.attendee-heading, .event-roster-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.attendee-heading h2, .event-roster-heading h2 { margin: 0 0 3px; font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif; font-size: 19px; }
.attendee-heading p { margin: 0; color: var(--muted); font-size: 10px; }
.add-attendee-button { min-height: 38px; flex: none; }
.add-attendee-button span { color: var(--gold); font-size: 17px; line-height: 1; }
.attendee-list { display: grid; gap: 8px; margin-bottom: 18px; }
.attendee-entry { display: grid; grid-template-columns: minmax(0, 1fr) minmax(120px, 180px) 34px; gap: 10px; align-items: end; padding: 11px; border: 1px solid #e8e1d3; border-radius: 8px; background: #fffdf8; }
.attendee-name-field, .attendee-status-field { min-width: 0; display: grid; gap: 7px; color: #494334; font-size: 12px; font-weight: 700; }
.attendee-name, .attendee-status { width: 100%; min-width: 0; height: 38px; padding: 0 10px; border: 1px solid #ded8cd; border-radius: 6px; outline: none; color: var(--ink); background: #fff; font-size: 11px; }
.attendee-name:focus, .attendee-status:focus { border-color: var(--gold); box-shadow: 0 0 0 3px #b08a431c; }
.remove-attendee { width: 34px; height: 38px; border: 1px solid #e5deda; border-radius: 6px; color: #8b4c45; background: #fff; font-size: 21px; line-height: 1; }
.remove-attendee:hover:not(:disabled) { border-color: #d9a6a0; background: #fff4f2; }
.remove-attendee:disabled { color: #c6c0b7; background: #f5f3ef; }
.event-form-actions { margin-top: 7px; }
.event-form-actions .button { width: 100%; }
.event-roster-heading { align-items: flex-end; margin-bottom: 14px; }
.event-entry-page .event-roster-heading { align-items: center; margin: 0; padding: 14px 15px; border-bottom: 1px solid var(--line); }
.event-roster-heading .eyebrow { margin-bottom: 5px; }
.event-roster-heading .button { min-height: 38px; white-space: nowrap; }
.event-storage-note { margin: 10px 0 0; color: var(--muted); font-size: 9px; }
.event-entry-page .event-storage-note { margin: 0; padding: 11px 15px; border-top: 1px solid var(--line); }
.event-entry-page .records-table { min-width: 720px; }
.event-entry-page .records-table th:nth-child(1), .event-entry-page .records-table td:nth-child(1) { width: 28%; }
.event-entry-page .records-table th:nth-child(2), .event-entry-page .records-table td:nth-child(2) { width: 19%; }
.event-entry-page .records-table th:nth-child(3), .event-entry-page .records-table td:nth-child(3) { width: 16%; }
.event-entry-page .records-table th:nth-child(4), .event-entry-page .records-table td:nth-child(4) { width: 23%; }
.event-entry-page .records-table th:nth-child(5), .event-entry-page .records-table td:nth-child(5) { width: 14%; }
.settings-field { display: block; margin-bottom: 13px; font-size: 12px; font-weight: 700; }
.settings-field input { width: 100%; min-height: 40px; display: block; margin-top: 6px; padding: 0 11px; border: 1px solid #dce4ee; border-radius: 8px; outline: none; color: var(--ink); background: #fff; font-size: 11px; }
.settings-field input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px #b08a4326; }
.graphics-assignment-field select { width: 100%; min-width: 0; }
input.form-control, select.form-control {
  width: 100%;
  min-width: 0;
  min-height: 47px;
  height: 47px;
  padding: 0 13px;
  border: 1px solid #dce4ee;
  border-radius: 8px;
  outline: none;
  color: var(--ink);
  background: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
}
input.form-control:focus, select.form-control:focus { border-color: var(--gold); box-shadow: 0 0 0 3px #b08a4326; }
.absent-attendees-field { display: block; margin: 0 0 7px; }
textarea.absent-attendees-input { display: block; width: 100%; min-height: 82px; padding: 12px 13px; border: 1px solid #dce4ee; border-radius: 8px; outline: none; color: var(--ink); background: #fff; font: inherit; font-size: 14px; resize: vertical; }
textarea.absent-attendees-input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px #b08a4326; }
.main-filler-field { margin: 0 0 13px; }
.main-filler-field { display: grid; gap: 7px; margin: 0 0 13px; font-size: 12px; font-weight: 700; }
.main-filler-field select { width: 100%; min-height: 47px; display: block; margin: 0; padding: 0 13px; border: 1px solid #dce4ee; border-radius: 8px; outline: none; color: var(--ink); background: #fff; font-family: inherit; font-size: 16px; }
.main-filler-field select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px #b08a4326; }
.attendance-main-filler-note { margin: -6px 0 14px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.attendance-main-filler-note.warning { color: var(--amber); }
.coordinate-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.restore-default-location { width: 100%; min-height: 40px; margin: -2px 0 13px; }
.google-maps-button { width: 100%; min-height: 40px; justify-content: space-between; margin: -2px 0 13px; color: var(--brand); text-decoration: none; }
.google-maps-button span { color: var(--gold); font-size: 16px; }
.google-maps-button[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.save-location-button { width: 100%; min-height: 44px; }
.settings-note { margin: 11px 0 0 !important; color: #7c8797 !important; font-size: 9px !important; }
.settings-note code { color: #46556c; font-size: 9px; }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 5; max-width: calc(100vw - 40px); padding: 12px 15px; border: 1px solid #cee9db; border-radius: 9px; color: #146746; background: #f0faf4; box-shadow: 0 8px 30px #18263d18; font-size: 11px; }
.record-delete-dialog {
  width: min(100% - 32px, 460px);
  padding: 25px;
  border: 1px solid var(--line);
  border-top: 2px solid var(--red);
  border-radius: 12px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 24px 80px #11141a40;
}
.record-delete-dialog::backdrop { background: rgba(17, 20, 26, .62); backdrop-filter: blur(3px); }
.record-delete-dialog h2 { margin: 0 0 9px; font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif; font-size: 22px; }
.record-delete-dialog form > p:not(.eyebrow) { color: var(--muted); font-size: 12px; line-height: 1.6; }
.record-delete-dialog .record-delete-error { padding: 10px 12px; border: 1px solid #e8b6b2; border-radius: 8px; color: #8f2925; background: #fff0ef; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 18px; }
@keyframes breathe { 50% { opacity: .45; } }

@media (max-width: 760px) {
  .main-content.wide-content { width: min(100% - 32px, 680px); padding-top: 27px; }
  .page-heading { align-items: flex-start; margin-bottom: 18px; }
  .page-heading h1 { font-size: 25px; }
  .page-heading > div > p:last-child { font-size: 11px; }
  .summary-grid { gap: 8px; }
  .summary-card { padding: 13px 11px; }
  .summary-card > span { font-size: 9px; }
  .summary-card > strong { font-size: 19px; }
  .summary-card > small { font-size: 8px; }
  .records-filters { grid-template-columns: minmax(0, 1fr) auto; }
  .records-filters .search-control { grid-column: 1 / -1; }
  .settings-layout { grid-template-columns: 1fr; }
    .graphics-schedule-panel { grid-column: auto; }
  .map-frame { min-height: 280px; }
  .map-radius { --radius-size: 150px; }
}
@media (max-width: 900px) {
  .site-header { height: auto; min-height: 74px; flex-wrap: wrap; gap: 10px; padding-top: 10px; padding-bottom: 10px; }
  .main-nav { width: 100%; justify-content: center; }
}
@media (max-width: 560px) {
  .site-header { height: auto; min-height: 65px; flex-wrap: wrap; gap: 10px; padding: 10px 16px; }
  .brand-mark { width: 40px; height: 40px; }
  .brand-copy strong { max-width: none; font-size: 11px; }
  .main-nav { width: 100%; }
  .theme-toggle { margin-left: auto; }
  .nav-tab { flex: 1; }
  .main-content.wide-content { width: min(100% - 40px, 430px); padding-top: 22px; }
  .page-heading { flex-direction: column; gap: 13px; }
    .settings-page.settings-password-required > .page-heading { grid-template-columns: minmax(0, 1fr) minmax(0, max-content) minmax(0, 1fr); gap: 8px; }
  .page-actions { width: 100%; }
  .page-actions .button { flex: 1; }
  .summary-grid { gap: 6px; }
  .summary-card { padding: 11px 8px; }
  .summary-card > strong { font-size: 17px; }
  .summary-card > span { min-height: 22px; }
  .records-filters { grid-template-columns: 1fr 1fr; }
  .records-filters .search-control { grid-column: 1 / -1; }
  .report-actions { grid-column: 1 / -1; }
  .report-actions .button { flex: 1; }
  .filter-control { min-height: 40px; }
  .table-footer { align-items: flex-start; flex-direction: column; gap: 4px; }
  .map-frame { min-height: 255px; }
  .settings-panel { padding: 18px; }
    .graphics-schedule-panel { padding: 16px; }
    .graphics-schedule-heading { align-items: flex-start; flex-direction: column; }
    .graphics-assignment-heading { align-items: flex-start; }
    .graphics-assignment-row { grid-template-columns: minmax(0, 1fr) 36px; }
    .graphics-assignment-row > .graphics-assignment-field { grid-column: 1; }
    .graphics-assignment-row .graphics-remove-button { grid-column: 2; grid-row: 1; }
  .event-entry-form, .event-roster-panel { padding: 16px; }
  .event-date-note small { width: 100%; margin-left: 0; }
  .attendee-entry { grid-template-columns: minmax(0, 1fr) 34px; gap: 8px; }
  .attendee-name-field { grid-column: 1 / -1; }
  .attendee-status-field { grid-column: 1; }
  .remove-attendee { grid-column: 2; grid-row: 2; }
  .event-roster-heading { align-items: flex-start; flex-direction: column; }
  .event-roster-heading .button { max-width: 100%; }
  .location-access { margin: 15px auto; padding: 22px 18px; }
  .lock-location-button { align-self: flex-start; }
}
@media (max-width: 360px) {
  .brand-copy strong { font-size: 10px; }
}

body, .site-header, .main-nav, .nav-tab, .attendance-card, .summary-card, .records-panel,
.graphics-schedule-panel, .location-access, .event-entry-form, .event-roster-panel,
.settings-panel, .theme-toggle, .form-control, #name, .search-control, .filter-control {
  transition: color .32s ease, background-color .32s ease, border-color .32s ease, box-shadow .32s ease;
}

html[data-theme="dark"] {
  --ink: #f0eee8;
  --muted: #b4b3af;
  --line: #3a3d45;
  --brand: #765b2b;
  --brand-dark: #5f4822;
  --gold: #d1ad63;
  --gold-soft: #393326;
  color-scheme: dark;
}
html[data-theme="dark"] body {
  color: var(--ink);
  background-color: #11141a;
  background-image: radial-gradient(ellipse at top, #23242a 0%, #15171d 48%, #11141a 100%);
}
html[data-theme="dark"] .site-header { border-color: var(--line); background: rgba(24, 27, 34, .96); }
html[data-theme="dark"] .brand-mark { border-color: #665636; background: #24252a; }
html[data-theme="dark"] .theme-toggle { color: var(--ink); border-color: #4a4b50; background: rgba(38, 40, 47, .94); }
html[data-theme="dark"] .main-nav { border-color: #44464d; background: #24262d; }
html[data-theme="dark"] .nav-tab.active { color: var(--ink); background: #35373e; }
html[data-theme="dark"] .button-secondary { color: #e5e2da; border-color: #484b54; background: #292c33; }
html[data-theme="dark"] .button-secondary:hover { border-color: #666a74; background: #343740; }
html[data-theme="dark"] .button-primary { background: var(--brand); }
html[data-theme="dark"] .button-primary:hover:not(:disabled) { background: var(--brand-dark); }
html[data-theme="dark"] .google-maps-button { color: #e5e2da; }
html[data-theme="dark"] .attendance-card,
html[data-theme="dark"] .summary-card,
html[data-theme="dark"] .records-panel,
html[data-theme="dark"] .graphics-schedule-panel,
html[data-theme="dark"] .location-access,
html[data-theme="dark"] .event-entry-form,
html[data-theme="dark"] .event-roster-panel,
html[data-theme="dark"] .settings-panel { color: var(--ink); border-color: var(--line); background: rgba(27, 30, 37, .96); }
html[data-theme="dark"] .attendance-card { border-top-color: var(--gold); box-shadow: 0 24px 75px rgba(0, 0, 0, .36), 0 2px 10px rgba(0, 0, 0, .2); }
html[data-theme="dark"] .location-status { border-color: #3b414b; background: #242830; }
html[data-theme="dark"] .status-icon { background: #343944; }
html[data-theme="dark"] .status-verified { border-color: #315747; background: #1e352c; }
html[data-theme="dark"] .status-verified .status-icon { background: #294a3a; }
html[data-theme="dark"] .status-outside,
html[data-theme="dark"] .status-error { border-color: #66403e; background: #392725; }
html[data-theme="dark"] .status-outside .status-icon,
html[data-theme="dark"] .status-error .status-icon { background: #563532; }
html[data-theme="dark"] .status-warning { border-color: #665537; background: #3a3221; }
html[data-theme="dark"] .status-warning .status-icon { background: #51432b; }
html[data-theme="dark"] .status-checking { border-color: #3e506c; background: #242f41; }
html[data-theme="dark"] .status-checking .status-icon { background: #303f56; }
html[data-theme="dark"] #name,
html[data-theme="dark"] input.form-control,
html[data-theme="dark"] select.form-control,
html[data-theme="dark"] textarea.absent-attendees-input,
html[data-theme="dark"] .settings-field input,
html[data-theme="dark"] .main-filler-field select,
html[data-theme="dark"] .attendee-name,
html[data-theme="dark"] .attendee-status {
  color: var(--ink);
  border-color: #484b54;
  background: #171a20;
}
html[data-theme="dark"] #name::placeholder { color: #9297a0; }
html[data-theme="dark"] .search-control,
html[data-theme="dark"] .filter-control { color: #aeb2bc; border-color: #484b54; background: #171a20; }
html[data-theme="dark"] .search-control input,
html[data-theme="dark"] .filter-control input,
html[data-theme="dark"] .filter-control select { color: var(--ink); }
html[data-theme="dark"] .records-filters,
html[data-theme="dark"] .table-footer,
html[data-theme="dark"] .event-entry-page .event-roster-heading,
html[data-theme="dark"] .event-entry-page .event-storage-note { border-color: var(--line); }
html[data-theme="dark"] .records-table th { color: #f4e8c8; border-color: #5b5140; background: #373126; }
html[data-theme="dark"] .records-table td { color: #dedbd4; border-color: #45474c; background: #202329; }
html[data-theme="dark"] .records-table .record-row-0 .record-name { background: #342d40; }
html[data-theme="dark"] .records-table .absent-record-row td { color: #ffe6e3; background: #3c2525; }
html[data-theme="dark"] .records-table .absent-record-row .record-name { color: #ffc4be; background: #51302f; }
html[data-theme="dark"] .reported-absence-label { color: var(--muted); }
html[data-theme="dark"] .record-status { color: #d7f2de; background: #28513a; }
html[data-theme="dark"] .record-status.status-absent { color: #ffc4be; background: #713834; }
html[data-theme="dark"] .record-status.status-late { color: #ffdfa0; background: #574620; }
html[data-theme="dark"] .sheets-status { border-color: #67413f; background: #352625; }
html[data-theme="dark"] .sheets-status.connected { border-color: #315747; background: #1e352c; }
html[data-theme="dark"] .sheets-status.loading { border-color: #3e506c; background: #242f41; }
html[data-theme="dark"] .receipt { border-color: var(--line); background: #202329; }
html[data-theme="dark"] .receipt-row { border-color: #3b3d44; }
html[data-theme="dark"] .event-date-note { border-color: var(--line); background: #24262c; }
html[data-theme="dark"] .event-location-reference { border-color: var(--line); }
html[data-theme="dark"] .event-location-reference > a { color: #d3d8e2; }
html[data-theme="dark"] .attendee-entry { border-color: #45434a; background: #24252b; }
html[data-theme="dark"] .attendee-name-field,
html[data-theme="dark"] .attendee-status-field { color: #e0ddd5; }
html[data-theme="dark"] .remove-attendee { color: #e4aaa3; border-color: #50464a; background: #29252a; }
html[data-theme="dark"] .remove-attendee:disabled { color: #85817b; background: #292a2e; }
html[data-theme="dark"] .access-mark { border-color: #625537; background: #393326; }
html[data-theme="dark"] .progress-item > span { border-color: #4a4d55; background: #24262d; }
html[data-theme="dark"] .progress-item.complete { color: #d0d3d8; }
html[data-theme="dark"] .button-submit:disabled,
html[data-theme="dark"] .event-form-actions .button:disabled { color: #9499a3; border-color: #41444b; background: #30333a; }
html[data-theme="dark"] .record-delete-dialog { border-color: var(--line); border-top-color: var(--red); color: var(--ink); background: #1b1e25; }
html[data-theme="dark"] .record-delete-dialog .record-delete-error { border-color: #66403e; color: #ffc1bb; background: #392725; }
