.app-header {
  max-width: 480px;
  margin: 0 auto;
  padding: 16px 16px 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

#app {
  max-width: 480px;
  margin: 0 auto;
  padding: 16px;
  padding-bottom: 96px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 700px) {
  .app-header,
  #app {
    max-width: 640px;
  }
  #app {
    padding-bottom: 32px;
  }
}

.view-title {
  margin: 0;
  font-size: 1.4rem;
}

.setup-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
}

.attendance-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.validation-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
}

.align-actions {
  position: sticky;
  bottom: 0;
  display: flex;
  gap: 8px;
  padding: 8px 0;
  background: linear-gradient(to top, var(--bg) 70%, transparent);
}

.align-actions > button {
  flex: 1;
}

.grid-scroll {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.review-grid {
  width: 100%;
  font-size: 0.85rem;
}

.review-grid th,
.review-grid td {
  padding: 6px 10px;
  border-bottom: 1px solid var(--border);
  text-align: center;
  white-space: nowrap;
}

.review-grid th[scope="row"] {
  text-align: left;
}

.build-info {
  /* Hidden for now (layout still being sorted out) — kept in the DOM and
     still fetching version.json, just not displayed. Remove this line to
     bring it back once the top-right placement is confirmed correct. */
  display: none;
  flex-shrink: 0;
  color: var(--text-muted);
  font-size: 0.7rem;
  text-align: right;
  white-space: nowrap;
}

@media print {
  .no-print {
    display: none !important;
  }
  .app-header,
  #app {
    max-width: none;
    padding: 0;
  }
}
