:root {
  --action: #e30613;
  --action-hover: #be0510;
  --accent: #3f87cf;
  --link: #236297;
  --navy: #102b46;
  --ink: #142b3b;
  --muted: #526676;
  --surface: #fff;
  --ice: #eef6fa;
  --border: #c9d8e2;
  --success: #166534;
  --pending: #854d0e;
  --error: #991b1b;
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--ice);
  font-size: 16px;
  line-height: 1.5;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  background: var(--navy);
  color: white;
  padding: 1.25rem max(1rem, calc((100vw - 1050px) / 2));
  border-top: 4px solid var(--action);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
h1 {
  font-size: 0.8rem;
  margin: 0.2rem 0;
  font-weight: 500;
  letter-spacing: 0.06em;
  margin-top: 0.65rem;
  color: #d6e3eb;
}
h2 {
  font-size: 1.2rem;
  margin: 0 0 1rem;
}
.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.18rem;
  color: #a9d9df;
}
main {
  max-width: 1050px;
  padding: 1.5rem 1rem;
  margin: auto;
}
nav,
.actions,
.heading,
.fields {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}
.heading {
  justify-content: space-between;
  margin-bottom: 1rem;
}
.heading h2 {
  margin: 0;
}
.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1rem 0;
  box-shadow: 0 6px 24px #133c5005;
}
button,
input,
select {
  font: inherit;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.6rem 0.8rem;
  max-width: 100%;
}
button {
  cursor: pointer;
  background: var(--surface);
  color: var(--link);
  min-height: 48px;
}
button:hover {
  background: var(--ice);
}
button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
button.primary {
  background: var(--action);
  color: white;
  border-color: var(--action);
}
button.primary:hover {
  background: var(--action-hover);
  border-color: var(--action-hover);
}
nav button[aria-pressed="true"] {
  background: var(--link);
  border-color: var(--link);
  color: white;
}
:where(button, input, select, summary, a):focus-visible {
  outline: 3px solid var(--link);
  outline-offset: 3px;
}
header :focus-visible {
  outline-color: white;
}
label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.9rem;
  flex: 1;
  min-width: 140px;
}
input,
select {
  background: white;
  width: 100%;
  min-height: 48px;
}
.fields {
  align-items: end;
  margin: 1rem 0;
}
.fields button {
  margin-bottom: 0;
}
header button {
  margin-left: 0.4rem;
}
header #identity {
  display: block;
  font-size: 0.8rem;
  text-align: right;
  margin-bottom: 0.5rem;
}
#notice {
  padding: 0.8rem 1rem;
  border-radius: 8px;
  background: var(--ice);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
#notice[data-error="true"] {
  background: #ffe4dd;
  color: var(--error);
}
.badge {
  background: #e4f1ec;
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  font-size: 0.8rem;
}
.muted,
footer {
  color: var(--muted);
  font-size: 0.875rem;
}
.counts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.count {
  border-left: 3px solid var(--accent);
  padding-left: 0.7rem;
}
.count strong {
  display: block;
  font-size: 1.7rem;
}
.count span {
  font-size: 0.8rem;
}
ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}
li,
.record {
  padding: 0.8rem 0;
  border-bottom: 1px solid #e4ecef;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}
li small {
  display: block;
  color: var(--muted);
}
.pending {
  color: var(--pending);
}
.error {
  color: var(--error);
}
video {
  width: 100%;
  max-height: 300px;
  background: var(--navy);
  object-fit: cover;
  border-radius: 10px;
}
.record button {
  font-size: 0.875rem;
}
.actions {
  margin: 0.8rem 0;
}
footer {
  max-width: 1050px;
  padding: 1rem;
  margin: auto;
}
a {
  color: var(--link);
}
#admin-form {
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
#admin-form label {
  flex-basis: 40%;
}
[hidden] {
  display: none !important;
}
@media (max-width: 600px) {
  header {
    align-items: start;
    padding: 1.4rem 1rem;
  }
  .card {
    padding: 1rem;
  }
  .counts {
    grid-template-columns: repeat(2, 1fr);
  }
  header button {
    font-size: 0.8rem;
  }
  li {
    align-items: start;
  }
  label {
    min-width: 130px;
  }
}

.scan-start {
  width: 100%;
  font-size: 1.15rem;
  font-weight: 650;
  min-height: 58px;
  margin: 1rem 0 0;
}
.scanner-view {
  background: var(--navy);
  color: white;
  border: 1px solid var(--navy);
  min-height: 160px;
  display: grid;
  align-items: center;
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
}
.scanner-view p {
  padding: 1rem;
  margin: 0;
}
.scanner-view video {
  display: block;
  min-height: 180px;
}
.scan-feedback {
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 10px;
  background: var(--ice);
  font-weight: 650;
  min-height: 58px;
}
.scan-feedback[data-tone="success"] {
  background: #def3e6;
  color: var(--success);
}
.scan-feedback[data-tone="error"] {
  background: #ffe4dd;
  color: var(--error);
}
summary {
  cursor: pointer;
  min-height: 48px;
  padding: 0.5rem 0;
}
#counts {
  margin-top: 1rem;
}

.training-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin: 1.2rem 0;
}
.training-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 0.45rem;
  min-height: 170px;
  padding: 1.3rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 5px solid var(--accent);
  border-radius: 12px;
}
.training-tile strong {
  font-size: 1.2rem;
}
.training-tile > span:first-child {
  color: var(--link);
  font-weight: 650;
}
.training-tile small {
  color: var(--muted);
}
.focus-heading {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin: 1rem 0;
}
.focus-heading h2 {
  margin: 0;
}
.focus-heading p {
  font-size: 0.875rem;
  margin: 0.25rem 0;
  color: var(--muted);
}
.scanner-register {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.5rem;
}
.scanner-register > #session-tools,
.scanner-register > #offline-status {
  grid-column: 1/-1;
}
.training-active header {
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}
.training-active header h1,
.training-active header .eyebrow,
.training-active #workspace > nav {
  display: none;
}
.training-active #notice {
  font-size: 0.875rem;
  padding: 0.4rem 0.7rem;
}
.training-active #login {
  display: none;
}
.training-active header #identity {
  margin: 0;
}
.training-active main {
  padding-top: 0.7rem;
}
.training-active #counts {
  gap: 0.4rem;
}
.training-active .count strong {
  font-size: 1.25rem;
}
.training-active .count span {
  font-size: 0.7rem;
}
.training-active #counts {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 650px) {
  .scanner-register {
    display: block;
  }
  .attendee-panel {
    margin-top: 1rem;
  }
  .scanner-view video {
    max-height: 240px;
  }
  .focus-heading {
    gap: 0.65rem;
  }
  .focus-heading h2 {
    font-size: 1.05rem;
  }
  .training-tiles {
    grid-template-columns: 1fr;
  }
  .training-active .card {
    margin: 0.7rem 0;
  }
  .training-active header {
    justify-content: space-between;
  }
  .training-active #identity {
    display: none;
  }
  .training-active #identity {
    font-size: 0.7rem;
  }
  .training-active footer {
    display: none;
  }
}

/* Club identity and the two trainer views. */
.brand {
  flex-shrink: 0;
}
.club-logo {
  display: block;
  width: 205px;
  height: auto;
}
.account {
  max-width: 38%;
  text-align: right;
}
#identity {
  overflow-wrap: anywhere;
}
header button {
  background: transparent;
  border-color: #8da9bf;
  color: white;
}
header button:hover {
  background: #28455f;
}
#workspace > nav {
  margin: 1rem 0 1.5rem;
}
#training-home {
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  margin: 1.5rem 0;
}
#training-home h2 {
  font-size: 1.75rem;
  letter-spacing: -0.03em;
}
#training-home .fields {
  justify-content: space-between;
}
#training-home label {
  flex: 0 1 220px;
}
.training-tile:hover {
  background: #f8fbfd;
  border-color: var(--link);
  border-left-color: var(--link);
}
.training-tile strong {
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}
.training-tile small {
  font-size: 0.875rem;
}
.camera-panel,
.attendee-panel {
  min-width: 0;
}
.camera-panel > .muted {
  margin-top: -0.25rem;
}
.attendee-panel {
  border-left: 1px solid var(--border);
  padding-left: 1.5rem;
}
.attendee-panel > h2 {
  margin-bottom: 0.5rem;
}
#roster-tools {
  margin-bottom: 0.5rem;
}
#roster-tools summary,
#manual-entry summary {
  color: var(--link);
  font-size: 0.875rem;
}
#roster {
  margin-top: 0;
}
#roster > li {
  padding: 1rem 0;
}
#roster > li > div {
  min-width: 0;
  overflow-wrap: anywhere;
}
#roster button {
  flex-shrink: 0;
  font-size: 0.875rem;
}
.attendance-status {
  display: block;
  color: var(--muted);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}
[data-present="true"] .attendance-status {
  color: var(--success);
  font-weight: 600;
}
[data-present="true"] .attendance-status.pending {
  color: var(--pending);
}
#session-tools {
  border-top: 1px solid var(--border);
  padding-top: 0.5rem;
}
#offline-status {
  margin: 0;
}
#camera-hint {
  color: #e0edf5;
  max-width: 300px;
  margin: auto;
}
#back-trainings {
  color: var(--link);
  background: transparent;
  border: 0;
  padding-left: 0;
  white-space: nowrap;
}
.training-active .focus-heading p {
  font-size: 0.875rem;
}
.training-active .count span {
  font-size: 0.75rem;
}
.training-active .count {
  padding-left: 0.5rem;
}
@media (max-width: 650px) {
  .attendee-panel {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--border);
    padding-top: 1rem;
  }
  .account {
    max-width: 130px;
  }
  header {
    gap: 0.75rem;
  }
  .training-active header {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
}
@media (max-width: 360px) {
  .club-logo {
    width: 170px;
  }
  header .account {
    max-width: 100px;
  }
}

@media (max-width: 650px) {
  .scanner-view {
    min-height: 128px;
  }
  .scanner-view video {
    max-height: 200px;
  }
  .scan-feedback {
    padding: 0.75rem;
    min-height: 48px;
  }
}

/* A confirmation belongs to a newly accepted check-in, never just a decode. */
.scanner-view {
  position: relative;
  transition: box-shadow 120ms ease;
}
.scanner-view.confirmed {
  box-shadow: 0 0 0 5px var(--success);
}
.scan-confirmation {
  position: absolute;
  z-index: 1;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--success);
  color: white;
  border: 3px solid white;
  font-size: 2rem;
  font-weight: 700;
  pointer-events: none;
}
.scan-sound {
  color: var(--link);
  font-size: 0.875rem;
  margin-top: 0.5rem;
  background: transparent;
}
.scan-feedback[data-tone="success"] {
  border-left: 5px solid var(--success);
}
@media (prefers-reduced-motion: reduce) {
  .scanner-view {
    transition: none;
  }
}

/* Compact trainer workspace. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
#app-header {
  padding: 16px max(16px, calc((100vw - 1050px) / 2));
  gap: 16px;
  align-items: center;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}
.club-mark {
  display: block;
  width: 48px;
  height: 48px;
  overflow: hidden;
  flex-shrink: 0;
}
.club-logo {
  width: auto;
  max-width: none;
  height: 48px;
  display: block;
}
.header-titles {
  min-width: 0;
}
#app-title {
  font-size: 1.125rem;
  font-weight: 650;
  color: white;
  letter-spacing: -0.02em;
  margin: 0;
}
#header-event h2 {
  color: white;
  font-size: 1.15rem;
  line-height: 1.25;
  margin: 0;
}
#session-meta {
  color: #d1e1ee;
  font-size: 0.8rem;
  line-height: 1.45;
  margin: 5px 0 0;
}
.header-actions,
.status-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.header-actions {
  position: relative;
}
header button {
  margin: 0;
}
.icon-button,
.status-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  width: 40px;
  height: 40px;
  min-height: 40px;
  border-radius: 8px;
}
.icon-button {
  border-color: var(--border);
  background: transparent;
  color: var(--link);
}
header .icon-button {
  border: 0;
  color: white;
}
.status-icon {
  width: 28px;
  padding: 4px;
  color: #bce8cb;
}
.status-menu {
  position: relative;
}
.status-menu > summary {
  list-style: none;
  cursor: pointer;
}
.status-menu > summary::-webkit-details-marker {
  display: none;
}
.status-menu[open] > summary {
  background: #ffffff20;
}
.status-popup {
  position: absolute;
  z-index: 10;
  right: 0;
  top: calc(100% + 12px);
  width: 300px;
  max-width: calc(100vw - 24px);
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: white;
  color: var(--ink);
  box-shadow: 0 12px 36px #102b4620;
  font-size: 0.875rem;
}
.status-popup h2 {
  font-size: 1rem;
}
.status-popup button {
  color: var(--link);
  border-color: var(--border);
  background: var(--ice);
}
#account-menu #identity {
  display: block;
  text-align: left;
  color: var(--muted);
  margin: 0 0 12px;
  overflow-wrap: anywhere;
}
#network-state .offline-slash {
  display: none;
}
#network-state[data-online="false"] {
  color: #ffd28b;
}
#network-state[data-online="false"] .offline-slash {
  display: block;
}
#sync-state svg {
  display: none;
}
#sync-state[data-state="synced"] .sync-ok {
  display: block;
}
#sync-state[data-state="pending"] .sync-pending,
#sync-state[data-state="syncing"] .sync-pending {
  display: block;
}
#sync-state[data-state="pending"],
#sync-state[data-state="syncing"] {
  color: #ffd28b;
}
#sync-state[data-state="error"] {
  color: #ffb4b9;
}
#sync-state[data-state="error"] .sync-error {
  display: block;
}
#sync[data-busy="true"] svg {
  animation: sync-turn 1.2s linear infinite;
}
@keyframes sync-turn {
  to {
    transform: rotate(360deg);
  }
}
.workspace-tabs {
  gap: 24px;
  border-bottom: 1px solid var(--border);
}
.workspace-tabs button {
  min-height: 44px;
  padding: 8px 4px;
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  color: var(--muted);
}
.workspace-tabs button[aria-selected="true"] {
  background: transparent;
  border-bottom-color: var(--action);
  color: var(--ink);
  font-weight: 650;
}
#workspace > nav {
  margin: 0 0 24px;
}
#training-home {
  margin-top: 0;
}
#training-home h2 {
  font-size: 1.5rem;
  margin: 0;
}
#training-home > .heading {
  margin-bottom: 12px;
}
#training-home > .actions {
  justify-content: space-between;
  margin: 0 0 8px;
}
#training-home > .actions button {
  font-size: 0.875rem;
  padding: 6px 10px;
  min-height: 40px;
}
#training-home > .actions a {
  font-size: 0.8rem;
}
#calendar-tools {
  font-size: 0.875rem;
  color: var(--muted);
}
#calendar-tools label {
  max-width: 240px;
  margin: 8px 0;
}
.focus-toolbar {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 12px;
}
.focus-toolbar #back-trainings {
  min-height: 36px;
  padding-top: 0;
  padding-bottom: 0;
}
#counts {
  margin: 0 0 16px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  gap: 12px;
}
.training-active #counts {
  gap: 12px;
}
.count {
  border: 0;
  padding-left: 0;
  text-align: center;
}
.training-active .count {
  padding-left: 0;
}
.training-active .count strong {
  font-size: 1.8rem;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.training-active .count span {
  font-size: 0.75rem;
  color: var(--muted);
}
.scanner-register {
  margin-top: 0;
  gap: 24px;
}
.scan-heading {
  flex-wrap: nowrap;
  gap: 8px;
  margin-bottom: 12px;
}
.scan-heading h2 {
  font-size: 1.1rem;
}
.scan-sound {
  margin: 0;
  flex-shrink: 0;
}
.scan-sound .sound-off {
  display: none;
}
.scan-sound[data-enabled="false"] .sound-off {
  display: block;
}
.scan-sound[data-enabled="false"] .sound-on {
  display: none;
}
.camera-panel > .muted {
  font-size: 0.8rem;
  margin-bottom: 12px;
}
.scan-start {
  min-height: 48px;
  font-size: 1rem;
}
.scan-feedback {
  font-size: 0.9rem;
  margin-bottom: 0;
}
.attendee-panel > .heading {
  margin-bottom: 12px;
}
.roster-search {
  margin-bottom: 12px;
}
.roster-search input {
  font-size: 0.875rem;
  min-height: 44px;
}
.filter-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}
.filter-tabs button {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 4px;
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  color: var(--muted);
  font-size: 0.8rem;
}
.filter-tabs button[aria-pressed="true"] {
  border-bottom-color: var(--link);
  color: var(--link);
  background: var(--ice);
  font-weight: 650;
}
.filter-tabs svg {
  width: 17px;
  height: 17px;
}
#roster > li {
  padding: 12px 0;
}
#roster button {
  min-height: 40px;
  padding: 7px 10px;
}
#manual-entry {
  margin-top: 8px;
}
.scanner-register.history-view {
  grid-template-columns: 1fr;
}
.history-view .attendee-panel {
  border-left: 0;
  padding-left: 0;
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}
#session-tools {
  font-size: 0.875rem;
}
footer {
  font-size: 0.75rem;
  padding-top: 8px;
}
.training-active footer {
  display: block;
}
@media (max-width: 650px) {
  #app-header {
    padding: 12px;
    gap: 8px;
    align-items: flex-start;
  }
  .club-mark {
    width: 40px;
    height: 40px;
  }
  .club-logo {
    height: 40px;
    width: auto;
  }
  .brand {
    gap: 8px;
  }
  #app-title {
    font-size: 1rem;
  }
  #header-event h2 {
    font-size: 0.95rem;
  }
  #session-meta {
    font-size: 0.7rem;
  }
  .header-actions,
  .status-bar {
    gap: 3px;
  }
  header .icon-button {
    width: 32px;
    height: 36px;
    min-height: 36px;
    padding: 6px;
  }
  header .status-icon {
    width: 22px;
    height: 36px;
    min-height: 36px;
    padding: 2px;
  }
  .status-popup {
    position: fixed;
    top: 76px;
    right: 12px;
  }
  .training-active main,
  main {
    padding-top: 16px;
  }
  #workspace > nav {
    margin-bottom: 20px;
  }
  .focus-toolbar {
    gap: 8px;
    margin-bottom: 12px;
  }
  #history-note {
    font-size: 0.75rem;
  }
  #counts {
    padding: 12px 8px;
  }
  .training-active .count strong {
    font-size: 1.55rem;
  }
  .attendee-panel {
    margin-top: 20px;
    padding-top: 20px;
  }
  .filter-tabs button {
    font-size: 0.8rem;
  }
}
@media (max-width: 360px) {
  .brand {
    gap: 6px;
  }
  #app-title {
    font-size: 0.9rem;
  }
  #header-event h2 {
    font-size: 0.85rem;
  }
  #app-header {
    gap: 6px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #sync[data-busy="true"] svg {
    animation: none;
  }
}

.export-panel {
  padding: 12px;
  background: var(--ice);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 12px;
  font-size: 0.875rem;
  overflow-wrap: anywhere;
}
.export-panel p {
  margin: 0 0 6px;
}
.export-panel[data-error="true"] {
  background: #fff0ed;
  border-color: #e8b8af;
  color: var(--error);
}
#sync-state[data-state="auth"] {
  color: #ffd28b;
}
#sync-state[data-state="auth"] .sync-error {
  display: block;
}
#export-download {
  display: inline-block;
  padding: 8px 0;
  min-height: 40px;
}
.needs-signin #app-header .status-bar {
  display: none;
}
.needs-signin.training-active #login {
  display: inline-flex;
  align-items: center;
}

/* The demo's primary path is training selection followed by scanning. */
.workspace-tabs {
  display: none;
}
#demo-tools {
  display: none;
  max-width: 1080px;
  margin: 0 auto 16px;
  text-align: left;
}
.signed-in #demo-tools {
  display: block;
}
#demo-tools > summary {
  width: fit-content;
  margin: 0 auto;
  padding: 12px;
  cursor: pointer;
  color: var(--link);
}
.footer-options {
  margin-top: 12px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: white;
  font-size: 0.875rem;
}
.footer-options section + section {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.footer-options h2 {
  font-size: 1rem;
  margin: 0 0 16px;
}
.footer-options details {
  margin: 12px 0;
}
.footer-options summary {
  cursor: pointer;
}
.footer-options .actions {
  justify-content: flex-start;
}
.footer-options #account-menu > summary {
  width: fit-content;
}
.footer-options #account-menu .status-popup {
  position: static;
  width: auto;
  max-width: 100%;
  margin-top: 8px;
  box-shadow: none;
}
body:not(.training-active) .footer-training-tools {
  display: none;
}
footer > p {
  margin: 0;
}

.privacy-link {
  display: inline-block;
  padding: 10px 0;
}
.privacy-page main {
  max-width: 850px;
}
.privacy-page #app-title {
  font-size: 1.1rem;
}
.privacy-page .privacy-content h2 {
  font-size: clamp(1.4rem, 4vw, 1.8rem);
  line-height: 1.25;
}
.privacy-back {
  display: inline-block;
  padding: 8px 0;
}
.privacy-date {
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 0;
}
.privacy-summary {
  padding: 16px;
  background: var(--ice);
  border-radius: 8px;
}
.privacy-summary ul {
  padding-left: 20px;
  margin-bottom: 0;
}
.privacy-summary li + li {
  margin-top: 8px;
}
.privacy-pending {
  border-left: 3px solid var(--accent);
  padding-left: 12px;
  color: var(--muted);
  font-size: 0.875rem;
}
.privacy-content details {
  border-top: 1px solid var(--border);
  padding: 16px 0;
}
.privacy-content summary {
  font-size: 1rem;
  font-weight: 650;
  cursor: pointer;
  padding: 8px 0;
}
.privacy-content p,
.privacy-content dd {
  overflow-wrap: anywhere;
}
.privacy-roles dt {
  font-weight: 650;
  margin-top: 16px;
}
.privacy-roles dd {
  margin: 4px 0 0;
}
.privacy-page footer > p {
  margin-top: 12px;
}

.privacy-summary ul {
  list-style: disc;
}
.privacy-summary li {
  display: list-item;
  border: 0;
  padding: 0;
}

.home-history-nav {
  margin-top: 20px;
}
.home-history-nav button {
  color: var(--link);
  background: white;
  border-color: var(--border);
  text-align: left;
}
#history-controls {
  margin-bottom: 20px;
}
#history-controls #calendar-tools {
  margin-bottom: 12px;
}

.roster-filter-note {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 10px;
  margin-bottom: 12px;
  border-radius: 8px;
  background: var(--ice);
  font-size: 0.8rem;
}

.roster-read-state {
  padding: 12px;
  margin: 0 0 12px;
  border: 1px solid #dbbe89;
  border-radius: 8px;
  background: #fff8e8;
  color: var(--pending);
  font-size: 0.875rem;
}
.roster-read-state p {
  margin: 0 0 8px;
}
#sync-state[data-state="stale"] {
  color: #ffd28b;
}
#sync-state[data-state="stale"] .sync-error {
  display: block;
}
