:root {
  --navy-950: #061f3d;
  --navy-900: #082c57;
  --navy-800: #0f4174;
  --blue-700: #165f9b;
  --blue-100: #e9f3fb;
  --gold-500: #ffc340;
  --gold-100: #fff5d8;
  --green-700: #177153;
  --green-100: #e6f4ee;
  --red-700: #a63c3c;
  --red-100: #fbeaea;
  --ink: #17283a;
  --muted: #607184;
  --line: #d8e1e8;
  --line-strong: #c4d0d9;
  --surface: #ffffff;
  --wash: #f3f6f9;
  --shadow: 0 12px 34px rgba(6, 31, 61, 0.1);
  --radius: 14px;
  --focus: 0 0 0 3px rgba(22, 95, 155, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--wash);
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(
      circle at 100% 0,
      rgba(255, 195, 64, 0.12),
      transparent 25rem
    ),
    var(--wash);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

[hidden] {
  display: none !important;
}

.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;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  transform: translateY(-160%);
  border-radius: 7px;
  padding: 10px 14px;
  color: #fff;
  background: var(--navy-900);
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  min-height: 74px;
  align-items: stretch;
  justify-content: space-between;
  gap: 20px;
  padding: 0 clamp(16px, 4vw, 52px);
  color: #fff;
  background: linear-gradient(
    105deg,
    var(--navy-950),
    var(--navy-900) 72%,
    #123f70
  );
  box-shadow: 0 3px 18px rgba(6, 31, 61, 0.25);
}

.brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  border: 0;
  padding: 8px 0;
  color: inherit;
  background: transparent;
  text-align: left;
}

.brand-logo {
  display: grid;
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 195, 64, 0.9);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(6, 31, 61, 0.28);
}

.brand-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.brand-copy strong {
  overflow: hidden;
  font-size: 15px;
  letter-spacing: 0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-copy small {
  margin-top: 2px;
  color: #bfd2e4;
  font-size: 11px;
}

.primary-nav {
  display: flex;
  align-items: stretch;
}

.nav-button {
  min-width: 108px;
  border: 0;
  border-bottom: 4px solid transparent;
  padding: 0 15px;
  color: #d4e2ef;
  background: transparent;
  font-size: 13px;
  font-weight: 800;
}

.nav-button:hover,
.nav-button.is-active {
  border-bottom-color: var(--gold-500);
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.demo-banner {
  display: flex;
  min-height: 35px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 7px 16px;
  color: #59430b;
  background: var(--gold-100);
  border-bottom: 1px solid #ead595;
  font-size: 11px;
  line-height: 1.35;
  text-align: center;
}

.demo-banner strong {
  border-radius: 99px;
  padding: 2px 7px;
  color: var(--navy-950);
  background: var(--gold-500);
  font-size: 9px;
  letter-spacing: 0.13em;
}

.page {
  width: min(calc(100% - 32px), 880px);
  margin: 0 auto;
  padding: clamp(30px, 5vw, 56px) 0 72px;
}

.page-wide {
  width: min(calc(100% - 32px), 1220px);
}

.page-start {
  text-align: center;
}

.view:not(.is-active) {
  display: none;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 9px;
  color: var(--navy-950);
  font-size: clamp(30px, 4.4vw, 44px);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

h2 {
  color: var(--navy-900);
  font-size: 16px;
}

p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.eyebrow {
  margin-bottom: 6px;
  color: var(--blue-700);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.lead {
  font-size: 16px;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  margin: 31px 0 21px;
  text-align: left;
}

.choice-card {
  display: grid;
  min-width: 0;
  min-height: 118px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 4px 16px rgba(6, 31, 61, 0.05);
  text-align: left;
  transition:
    transform 150ms ease,
    border-color 150ms ease,
    box-shadow 150ms ease;
}

.choice-card:hover,
.choice-card:focus-visible {
  transform: translateY(-2px);
  border-color: #7baed1;
  box-shadow: var(--shadow);
}

.choice-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.02em;
}

.choice-icon-assign {
  color: var(--blue-700);
  background: var(--blue-100);
}

.choice-icon-refer {
  color: #705510;
  background: var(--gold-100);
}

.choice-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.choice-copy small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.choice-copy strong {
  margin: 3px 0 4px;
  color: var(--navy-950);
  font-size: 18px;
}

.choice-copy em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.35;
}

.choice-arrow {
  color: #8ca0b1;
  font-size: 29px;
}

.text-link,
.back-button {
  border: 0;
  border-radius: 7px;
  padding: 8px;
  color: var(--blue-700);
  background: transparent;
  font-weight: 800;
}

.text-link:hover,
.back-button:hover {
  color: var(--navy-900);
  text-decoration: underline;
}

.form-shell {
  text-align: left;
}

.form-heading,
.title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin: 8px 0 23px;
}

.time-badge {
  flex: 0 0 auto;
  border-radius: 99px;
  padding: 7px 11px;
  color: var(--green-700);
  background: var(--green-100);
  font-size: 11px;
  font-weight: 900;
}

#record-form {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.form-card,
.optional-card,
.data-card,
.integration-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 3px 13px rgba(6, 31, 61, 0.035);
}

.form-card {
  padding: 22px;
}

.form-card > h2 {
  margin-bottom: 17px;
}

.field-grid {
  display: grid;
  gap: 14px;
}

.student-grid {
  grid-template-columns: 1.2fr 1.2fr 0.95fr 0.65fr;
}

.two-column {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field-span {
  grid-column: 1 / -1;
}

.field,
.tile-fieldset,
.compact-fieldset {
  min-width: 0;
  border: 0;
  padding: 0;
  margin: 0;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #405366;
  font-size: 12px;
  font-weight: 800;
}

.field > span,
.field legend,
.tile-fieldset legend,
.compact-fieldset legend {
  color: #405366;
  font-size: 12px;
  font-weight: 800;
}

.field b,
.tile-fieldset b {
  color: var(--red-700);
}

.field input,
.field select,
.field textarea,
.toolbar input,
.toolbar select,
.status-select,
.attendance-input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  padding: 9px 11px;
  color: var(--ink);
  background: #fff;
}

.field input:hover,
.field select:hover,
.field textarea:hover,
.toolbar input:hover,
.toolbar select:hover {
  border-color: #96aabd;
}

.field textarea {
  min-height: 92px;
  resize: vertical;
  line-height: 1.45;
}

.field [aria-invalid="true"] {
  border-color: var(--red-700);
  background: #fffafa;
}

.route-line {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 14px;
  border-top: 1px solid #edf1f4;
  padding-top: 13px;
  font-size: 11px;
}

.route-line span {
  color: var(--muted);
}

.route-line strong {
  color: var(--navy-900);
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 7px;
}

.option-grid-compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.select-tile {
  position: relative;
  min-width: 0;
}

.select-tile input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.select-tile span {
  display: flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 8px 9px;
  color: #445668;
  background: #f8fafb;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.25;
  text-align: center;
}

.select-tile input:focus-visible + span {
  box-shadow: var(--focus);
}

.select-tile input:checked + span {
  border-color: var(--blue-700);
  color: var(--blue-700);
  background: var(--blue-100);
  font-weight: 850;
}

.field-help {
  margin-top: 7px;
  font-size: 10px;
}

.assignment-details {
  margin-top: 15px;
}

.compact-fieldset {
  margin-top: 17px;
  border-top: 1px solid #edf1f4;
  padding-top: 15px;
}

.optional-label {
  margin-left: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}

.staff-card {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  align-items: end;
  gap: 22px;
}

.staff-card h2 {
  margin-bottom: 4px;
}

.staff-card p {
  font-size: 11px;
}

.optional-card {
  overflow: hidden;
}

.optional-card summary {
  padding: 16px 21px;
  color: var(--blue-700);
  font-size: 12px;
  font-weight: 850;
  list-style-position: inside;
  cursor: pointer;
}

.optional-content {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 15px;
  padding: 0 21px 21px;
}

.form-error {
  border: 1px solid #ecc7c7;
  border-radius: 9px;
  padding: 11px 13px;
  color: var(--red-700);
  background: var(--red-100);
  font-size: 12px;
  font-weight: 700;
}

.submit-bar {
  position: sticky;
  bottom: 0;
  z-index: 8;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 2px;
  padding: 13px 0;
  background: rgba(243, 246, 249, 0.93);
  backdrop-filter: blur(8px);
}

.button,
.icon-button {
  min-height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  padding: 9px 16px;
  font-weight: 850;
}

.button-primary {
  border-color: var(--blue-700);
  color: #fff;
  background: var(--blue-700);
}

.button-primary:hover {
  border-color: var(--navy-800);
  background: var(--navy-800);
}

.button-secondary,
.icon-button {
  color: var(--navy-900);
  background: #fff;
}

.button-secondary:hover,
.icon-button:hover {
  border-color: #91a6b8;
  background: #f8fafb;
}

.title-row {
  align-items: flex-start;
  margin-top: 0;
}

.title-row h1 {
  margin-bottom: 7px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 11px;
  margin-bottom: 14px;
}

.stat-grid article {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 15px 17px;
  background: #fff;
}

.stat-grid span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.stat-grid strong {
  display: block;
  margin-top: 3px;
  color: var(--navy-900);
  font-size: 27px;
  line-height: 1;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(150px, 0.32fr) minmax(
      135px,
      0.28fr
    ) auto;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 12px 12px 0 0;
  padding: 12px;
  background: #fff;
}

.icon-button {
  width: 43px;
  padding: 7px;
  font-size: 20px;
}

.record-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 12px 12px;
  background: #fff;
}

.record-row {
  display: grid;
  grid-template-columns: minmax(170px, 1.15fr) minmax(210px, 1.55fr) minmax(
      105px,
      0.65fr
    ) minmax(140px, 0.8fr) auto;
  align-items: center;
  gap: 14px;
  border-top: 1px solid #e9eef2;
  padding: 14px 15px;
  font-size: 12px;
}

.record-row:first-child {
  border-top: 0;
}

.record-row:hover {
  background: #fbfcfd;
}

.record-student strong,
.record-type strong {
  display: block;
  overflow: hidden;
  color: var(--navy-950);
  text-overflow: ellipsis;
}

.record-row small {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  line-height: 1.3;
  text-overflow: ellipsis;
}

.record-date {
  color: var(--muted);
  font-size: 11px;
}

.type-pill {
  display: inline-block;
  border-radius: 99px;
  padding: 4px 8px;
  color: var(--blue-700);
  background: var(--blue-100);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.type-pill.referral {
  color: #735713;
  background: var(--gold-100);
}

.status-select {
  min-height: 38px;
  padding: 7px 9px;
  font-size: 11px;
  font-weight: 800;
}

.status-select.status-attended,
.status-select.status-completed {
  border-color: #a9d2c3;
  color: var(--green-700);
  background: #f5fbf8;
}

.status-select.status-no-show {
  border-color: #e5baba;
  color: var(--red-700);
  background: #fff8f8;
}

.view-record {
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  padding: 7px 10px;
  color: var(--blue-700);
  background: transparent;
  font-size: 11px;
  font-weight: 850;
}

.view-record:hover {
  background: var(--blue-100);
}

.empty-state,
.loading-state,
.error-state {
  display: flex;
  min-height: 210px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 7px;
  padding: 30px;
  color: var(--muted);
  text-align: center;
}

.empty-state strong,
.error-state strong {
  color: var(--navy-900);
}

.loading-dot {
  width: 24px;
  height: 24px;
  border: 3px solid var(--line);
  border-top-color: var(--blue-700);
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.data-page {
  max-width: 720px;
}

.data-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: 14px;
  padding: 21px;
}

.data-card strong,
.integration-card strong {
  color: var(--navy-900);
}

.data-card p,
.integration-card p {
  margin-top: 4px;
  font-size: 12px;
}

.data-card .button {
  flex: 0 0 auto;
}

.integration-card {
  display: grid;
  grid-template-columns: 86px 1fr;
  align-items: center;
  gap: 18px;
  margin-top: 22px;
  overflow: hidden;
  padding: 16px 21px 16px 10px;
  border-color: #d8c27e;
  background: linear-gradient(105deg, #fffaf0, #fff);
}

.integration-card img {
  display: block;
  width: 86px;
  height: 76px;
  object-fit: contain;
  border-radius: 9px;
}

.privacy-note {
  margin-top: 16px;
  font-size: 11px;
}

.record-dialog {
  width: min(calc(100% - 24px), 720px);
  max-height: min(86vh, 820px);
  border: 0;
  border-radius: 16px;
  padding: 0;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 22px 70px rgba(6, 31, 61, 0.28);
}

.record-dialog::backdrop {
  background: rgba(6, 24, 44, 0.62);
  backdrop-filter: blur(3px);
}

.dialog-shell {
  max-height: inherit;
  overflow: auto;
}

.dialog-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  border-bottom: 1px solid var(--line);
  padding: 20px 22px 16px;
  background: #fff;
}

.dialog-header h2 {
  margin: 0;
  font-size: 23px;
}

.dialog-close {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--muted);
  background: #fff;
  font-size: 23px;
}

.dialog-body {
  display: grid;
  gap: 14px;
  padding: 20px 22px 26px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.detail-item,
.detail-section,
.history-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  background: #fbfcfd;
}

.detail-item span,
.detail-section > span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.detail-item strong,
.detail-section strong {
  color: var(--navy-950);
  font-size: 13px;
}

.detail-section p {
  color: var(--ink);
  font-size: 13px;
  white-space: pre-wrap;
}

.attendance-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 9px;
  border: 1px solid #b8cfdf;
  border-radius: 11px;
  padding: 13px;
  background: var(--blue-100);
}

.history-list {
  display: grid;
  gap: 8px;
}

.history-list h3 {
  margin: 4px 0 0;
  color: var(--navy-900);
  font-size: 13px;
}

.history-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
}

.history-item strong {
  display: block;
  color: var(--navy-900);
}

.history-item time {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 10px;
}

.toast {
  position: fixed;
  right: 18px;
  top: 94px;
  z-index: 50;
  display: flex;
  max-width: min(420px, calc(100% - 36px));
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 12px 13px 12px 15px;
  color: #fff;
  background: var(--navy-950);
  box-shadow: 0 12px 35px rgba(6, 31, 61, 0.3);
  font-size: 12px;
  font-weight: 700;
}

.toast.is-error {
  background: #7f2929;
}

.toast button {
  border: 0;
  padding: 2px 5px;
  color: #fff;
  background: transparent;
  font-size: 19px;
}

@media (max-width: 940px) {
  .record-row {
    grid-template-columns: minmax(150px, 1fr) minmax(
        190px,
        1.35fr
      ) 105px minmax(130px, 0.8fr) auto;
    gap: 10px;
  }
}

@media (max-width: 790px) {
  .site-header {
    position: static;
    min-height: 0;
    flex-direction: column;
    gap: 2px;
    padding: 11px 14px 0;
  }

  .brand {
    padding: 0;
  }

  .brand-logo {
    border-radius: 8px;
  }

  .brand-logo {
    width: 48px;
    height: 48px;
  }

  .primary-nav {
    height: 45px;
    margin-top: 4px;
  }

  .nav-button {
    min-width: 0;
    flex: 1;
    padding: 0 8px;
  }

  .page {
    width: min(calc(100% - 24px), 880px);
    padding-top: 30px;
  }

  .choice-card {
    min-height: 105px;
  }

  .student-grid,
  .two-column,
  .staff-card,
  .optional-content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .option-grid,
  .option-grid-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .toolbar {
    grid-template-columns: minmax(0, 1fr) 1fr auto;
  }

  .toolbar .search-field {
    grid-column: 1 / -1;
  }

  .record-row {
    grid-template-columns: minmax(0, 1fr) minmax(135px, 0.55fr) auto;
    gap: 9px 12px;
  }

  .record-type {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .record-date {
    display: none;
  }

  .status-select {
    grid-column: 2;
    grid-row: 1;
  }

  .view-record {
    grid-column: 3;
    grid-row: 1;
  }
}

@media (max-width: 620px) {
  .demo-banner {
    align-items: flex-start;
    text-align: left;
  }

  .choice-grid {
    grid-template-columns: 1fr;
    margin-top: 24px;
  }

  .choice-card {
    min-height: 94px;
    padding: 14px;
  }

  .form-heading,
  .title-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }

  .title-row .button {
    width: 100%;
  }

  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .stat-grid article {
    padding: 13px;
  }

  .data-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .data-card .button {
    width: 100%;
  }

  .integration-card {
    grid-template-columns: 66px 1fr;
  }

  .integration-card img {
    width: 66px;
    height: 66px;
  }
}

@media (max-width: 470px) {
  .brand-logo {
    width: 44px;
    height: 44px;
  }

  .brand-copy small {
    display: none;
  }

  .brand-copy strong {
    font-size: 14px;
  }

  .nav-button {
    font-size: 12px;
  }

  h1 {
    font-size: 31px;
  }

  .student-grid,
  .two-column,
  .staff-card,
  .optional-content {
    grid-template-columns: 1fr;
  }

  .field-span {
    grid-column: 1;
  }

  .form-card {
    padding: 17px;
  }

  .option-grid,
  .option-grid-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .submit-bar .button {
    flex: 1;
    padding-inline: 10px;
  }

  .toolbar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  #type-filter {
    grid-column: 1;
  }

  #status-filter {
    grid-column: 1;
  }

  .toolbar .icon-button {
    grid-column: 2;
    grid-row: 2 / span 2;
    height: 100%;
  }

  .record-row {
    grid-template-columns: minmax(0, 1fr) minmax(124px, 0.72fr);
  }

  .record-type {
    grid-column: 1 / -1;
  }

  .view-record {
    grid-column: 1 / -1;
    grid-row: 3;
    min-height: 34px;
    padding: 5px;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .attendance-editor {
    grid-template-columns: 1fr;
  }

  .attendance-editor .button {
    width: 100%;
  }

  .dialog-header,
  .dialog-body {
    padding-inline: 16px;
  }

  .toast {
    top: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
