.moe-at {
  --moe-at-primary: #0f5f66;
  --moe-at-primary-dark: #0a484e;
  --moe-at-primary-soft: #eaf6f6;
  --moe-at-accent: #c49632;
  --moe-at-accent-dark: #8c6718;
  --moe-at-text: #17252d;
  --moe-at-muted: #64737d;
  --moe-at-border: #dce4e7;
  --moe-at-border-strong: #c7d3d8;
  --moe-at-surface: #ffffff;
  --moe-at-surface-soft: #f7fafb;
  --moe-at-danger: #b42318;
  --moe-at-danger-soft: #fff4f2;
  --moe-at-success: #16794a;
  --moe-at-success-soft: #edf9f3;
  --moe-at-shadow: 0 18px 48px rgba(23, 37, 45, .09);
  padding: 14px;
  color: var(--moe-at-text);
  font-family: inherit;
  line-height: 1.65;
}

.moe-at *,
.moe-at *::before,
.moe-at *::after { box-sizing: border-box; }

.moe-at button,
.moe-at input,
.moe-at select { font: inherit; }

.moe-at__box {
  position: relative;
  max-width: 1040px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--moe-at-border);
  border-radius: 26px;
  background: var(--moe-at-surface);
  box-shadow: var(--moe-at-shadow);
}

.moe-at__hero {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 28px 30px;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 0%, rgba(196, 150, 50, .2), transparent 32%),
    linear-gradient(135deg, #0b5158 0%, #0f6970 56%, #127780 100%);
  color: #fff;
}

.moe-at__hero::after {
  content: "";
  position: absolute;
  inset: auto -55px -95px auto;
  width: 230px;
  height: 230px;
  border: 42px solid rgba(255, 255, 255, .055);
  border-radius: 50%;
  pointer-events: none;
}

.moe-at__hero-icon {
  position: relative;
  z-index: 1;
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 19px;
  background: rgba(255, 255, 255, .13);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18);
  backdrop-filter: blur(8px);
}

.moe-at__hero-icon svg { width: 32px; height: 32px; }
.moe-at__hero-copy { position: relative; z-index: 1; min-width: 0; }
.moe-at__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 5px;
  color: #d9eeee;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
}
.moe-at__eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f2cc6b;
  box-shadow: 0 0 0 4px rgba(242, 204, 107, .15);
}
.moe-at__title {
  margin: 0 0 5px;
  color: #fff;
  font-size: clamp(24px, 3.3vw, 32px);
  font-weight: 900;
  line-height: 1.3;
}
.moe-at__subtitle { max-width: 720px; margin: 0; color: #d5e9ea; font-size: 15px; line-height: 1.75; }
.moe-at__service-badge {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  background: rgba(255, 255, 255, .11);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.moe-at__service-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #76e1ab; }

.moe-at__content { padding: 25px 28px 29px; }

.moe-at__instructions {
  margin: 0 0 18px;
  border: 1px solid #d8e5e7;
  border-radius: 15px;
  background: #f5fafb;
  overflow: hidden;
}
.moe-at__instructions-heading {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 51px;
  padding: 10px 15px 4px;
  color: #24434a;
}
.moe-at__instructions-heading svg {
  width: 20px;
  height: 20px;
  color: var(--moe-at-primary);
  flex: 0 0 auto;
}
.moe-at__instructions-heading h4 {
  margin: 0;
  color: inherit;
  font-size: 15px;
  font-weight: 850;
  line-height: 1.5;
}
.moe-at__instructions-body {
  display: grid;
  width: 100%;
  min-width: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 0 14px 14px;
}
.moe-at__instruction-item {
  display: grid;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  padding: 12px;
  overflow: hidden;
  border: 1px solid #e2eaed;
  border-radius: 12px;
  background: #fff;
  color: var(--moe-at-muted);
  font-size: 13px;
  line-height: 1.7;
  overflow-wrap: anywhere;
  word-break: normal;
}
.moe-at__instruction-item > span:last-child { min-width: 0; }
.moe-at__instruction-number {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 9px;
  background: var(--moe-at-primary-soft);
  color: var(--moe-at-primary-dark);
  font-weight: 900;
}
.moe-at__instruction-item strong { color: var(--moe-at-text); }
.moe-at__instruction-item code {
  padding: 1px 5px;
  border-radius: 5px;
  background: #edf2f4;
  color: #314952;
  direction: ltr;
  unicode-bidi: embed;
}

.moe-at__form { display: grid; gap: 15px; }
.moe-at__panel {
  padding: 19px;
  border: 1px solid var(--moe-at-border);
  border-radius: 17px;
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.moe-at__panel:focus-within { border-color: #a9c7ca; box-shadow: 0 0 0 4px rgba(15, 95, 102, .06); }
.moe-at__panel-head { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 15px; }
.moe-at__step {
  display: grid;
  width: 33px;
  height: 33px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  background: var(--moe-at-primary);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 5px 13px rgba(15, 95, 102, .16);
}
.moe-at__panel-title { margin: 0 0 2px; color: var(--moe-at-text); font-size: 16px; font-weight: 900; line-height: 1.4; }
.moe-at__panel-description { margin: 0; color: var(--moe-at-muted); font-size: 13px; }

.moe-at__mode-fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.moe-at__mode-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.moe-at__mode-card {
  position: relative;
  display: grid;
  grid-template-columns: 45px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 12px;
  min-height: 82px;
  padding: 13px 14px;
  border: 1px solid var(--moe-at-border-strong);
  border-radius: 15px;
  background: #fff;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.moe-at__mode-card:hover { transform: translateY(-1px); border-color: #91b8bb; background: #fbfefe; }
.moe-at__mode-card.is-active {
  border-color: var(--moe-at-primary);
  background: linear-gradient(135deg, #f4fbfb, #fff);
  box-shadow: 0 0 0 3px rgba(15, 95, 102, .09), 0 8px 20px rgba(23, 37, 45, .05);
}
.moe-at__mode-card input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
.moe-at__mode-card:focus-within { outline: 3px solid rgba(15, 95, 102, .18); outline-offset: 2px; }
.moe-at__mode-icon {
  display: grid;
  width: 45px;
  height: 45px;
  place-items: center;
  border-radius: 13px;
  background: #eff5f6;
  color: #45636b;
  transition: color .18s ease, background .18s ease;
}
.moe-at__mode-icon svg { width: 23px; height: 23px; }
.moe-at__mode-card.is-active .moe-at__mode-icon { background: var(--moe-at-primary); color: #fff; }
.moe-at__mode-copy { display: grid; gap: 2px; min-width: 0; }
.moe-at__mode-copy strong { color: var(--moe-at-text); font-size: 15px; font-weight: 900; }
.moe-at__mode-copy small { color: var(--moe-at-muted); font-size: 12.5px; line-height: 1.6; }
.moe-at__mode-check {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid #cbd7da;
  border-radius: 50%;
  color: transparent;
  background: #fff;
  transition: all .18s ease;
}
.moe-at__mode-check svg { width: 13px; height: 13px; }
.moe-at__mode-card.is-active .moe-at__mode-check { border-color: var(--moe-at-primary); background: var(--moe-at-primary); color: #fff; }

.moe-at__filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.moe-at__field { display: block; min-width: 0; }
.moe-at__label-row { display: flex; align-items: center; justify-content: space-between; gap: 9px; margin-bottom: 7px; }
.moe-at__label { color: var(--moe-at-text); font-size: 14px; font-weight: 850; }
.moe-at__field-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 8px;
  border: 1px solid #d9e2e5;
  border-radius: 999px;
  background: #f7f9fa;
  color: var(--moe-at-muted);
  font-size: 11px;
  font-weight: 800;
}
.moe-at__field-status.moe-at__status--required { border-color: #e7cfc9; background: #fff7f5; color: #a63b31; }
.moe-at__control-shell { position: relative; }
.moe-at__control-icon {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: 13px;
  width: 20px;
  height: 20px;
  color: #70818a;
  transform: translateY(-50%);
  pointer-events: none;
}
.moe-at__select,
.moe-at__input {
  display: block;
  width: 100%;
  min-height: 52px;
  margin: 0;
  border: 1px solid #cbd6da;
  border-radius: 12px;
  background-color: #fff;
  color: var(--moe-at-text);
  font-size: 15px;
  line-height: 1.4;
  outline: none;
  box-shadow: none;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.moe-at__select {
  padding: 10px 43px 10px 39px;
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #71828a 50%), linear-gradient(135deg, #71828a 50%, transparent 50%);
  background-position: 17px calc(50% - 2px), 12px calc(50% - 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.moe-at__input { padding: 10px 44px 10px 46px; }
.moe-at__select:focus,
.moe-at__input:focus { border-color: var(--moe-at-primary); box-shadow: 0 0 0 4px rgba(15, 95, 102, .11); }
.moe-at__select:hover,
.moe-at__input:hover { border-color: #aabcc2; }
.moe-at__select.is-invalid,
.moe-at__input.is-invalid { border-color: #d56a60; background-color: #fffafa; box-shadow: 0 0 0 3px rgba(180, 35, 24, .08); }
.moe-at[data-search-mode="school"] .moe-at__select:required { background-color: #fffdfa; }
.moe-at__clear-input {
  position: absolute;
  top: 50%;
  left: 9px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #7a8a92;
  cursor: pointer;
  transform: translateY(-50%);
}
.moe-at__clear-input:hover { background: #f0f4f5; color: #354b54; }
.moe-at__clear-input[hidden] { display: none; }
.moe-at__clear-input svg { width: 17px; height: 17px; }
.moe-at__query-help { display: flex; align-items: flex-start; gap: 7px; margin-top: 8px; color: var(--moe-at-muted); font-size: 12.5px; line-height: 1.7; }
.moe-at__query-help svg { width: 17px; height: 17px; margin-top: 2px; color: var(--moe-at-primary); flex: 0 0 auto; }
.moe-at__filter-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 0;
  padding: 9px 11px;
  border-radius: 10px;
  background: var(--moe-at-primary-soft);
  color: #34575e;
  font-size: 12.5px;
}
.moe-at__filter-note svg { width: 17px; height: 17px; flex: 0 0 auto; }

.moe-at__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 13px;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #edf1f2;
}
.moe-at__ready-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--moe-at-muted);
  font-size: 12.5px;
  font-weight: 750;
}
.moe-at__ready-dot { width: 9px; height: 9px; border-radius: 50%; background: #a7b4ba; box-shadow: 0 0 0 4px #f0f3f4; }
.moe-at__ready-state.is-ready { color: var(--moe-at-success); }
.moe-at__ready-state.is-ready .moe-at__ready-dot { background: #26a56b; box-shadow: 0 0 0 4px #e9f7f0; }
.moe-at__buttons { display: flex; flex-wrap: wrap; gap: 9px; }
.moe-at__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 112px;
  min-height: 48px;
  padding: 10px 19px;
  border: 1px solid var(--moe-at-primary-dark);
  border-radius: 12px;
  background: var(--moe-at-primary);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 7px 15px rgba(15, 95, 102, .16);
  transition: transform .16s ease, background .16s ease, box-shadow .16s ease;
}
.moe-at__button svg { width: 18px; height: 18px; }
.moe-at__button:hover:not(:disabled) { transform: translateY(-1px); background: var(--moe-at-primary-dark); box-shadow: 0 9px 20px rgba(15, 95, 102, .2); }
.moe-at__button:active:not(:disabled) { transform: translateY(0); }
.moe-at__button:disabled { opacity: .55; cursor: wait; }
.moe-at__reset {
  min-width: 126px;
  border-color: #ced8dc;
  background: #fff;
  color: #40535b;
  box-shadow: none;
}
.moe-at__reset:hover:not(:disabled) { border-color: #b7c6cb; background: #f5f8f9; color: #263b44; box-shadow: none; }
.moe-at__hint { min-height: 0; margin: 0; color: var(--moe-at-danger); font-size: 13px; }
.moe-at__hint:empty { display: none; }
.moe-at__hint--visible {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 11px 13px;
  border: 1px solid #efc3be;
  border-radius: 11px;
  background: var(--moe-at-danger-soft);
}
.moe-at__hint--visible::before { content: "!"; display: grid; width: 21px; height: 21px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: var(--moe-at-danger); color: #fff; font-size: 12px; font-weight: 900; }

.moe-at__loader { margin-top: 18px; padding: 17px; border: 1px solid var(--moe-at-border); border-radius: 15px; background: #fff; }
.moe-at__loader[hidden] { display: none; }
.moe-at__loader-head { display: flex; align-items: center; gap: 10px; color: #40545c; font-weight: 800; }
.moe-at__spinner { width: 21px; height: 21px; border: 3px solid #dce9ea; border-top-color: var(--moe-at-primary); border-radius: 50%; animation: moe-at-spin .75s linear infinite; }
.moe-at__skeleton { display: grid; gap: 9px; margin-top: 14px; }
.moe-at__skeleton span { display: block; height: 11px; border-radius: 999px; background: linear-gradient(90deg, #edf2f3 25%, #f8fafa 50%, #edf2f3 75%); background-size: 210% 100%; animation: moe-at-shimmer 1.25s infinite linear; }
.moe-at__skeleton span:nth-child(1) { width: 48%; }
.moe-at__skeleton span:nth-child(2) { width: 82%; }
.moe-at__skeleton span:nth-child(3) { width: 67%; }
@keyframes moe-at-spin { to { transform: rotate(360deg); } }
@keyframes moe-at-shimmer { to { background-position: -210% 0; } }
.moe-at.is-loading .moe-at__result { opacity: .48; pointer-events: none; }

.moe-at__result { margin-top: 18px; transition: opacity .18s ease; }
.moe-at__group-results { display: grid; gap: 16px; }
.moe-at__query-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  padding: 13px 15px;
  border: 1px solid #d8e4e7;
  border-radius: 14px;
  background: linear-gradient(135deg, #f5fafb, #fff);
}
.moe-at__query-summary-main { min-width: 0; flex: 1 1 310px; }
.moe-at__query-kicker { display: block; margin-bottom: 1px; color: var(--moe-at-muted); font-size: 11.5px; font-weight: 750; }
.moe-at__query-title { margin: 0; color: var(--moe-at-text); font-size: 16px; line-height: 1.55; }
.moe-at__query-title strong { color: var(--moe-at-primary-dark); }
.moe-at__query-stats { display: flex; flex-wrap: wrap; gap: 7px; }
.moe-at__stat,
.moe-at__mode-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid #d4e1e4;
  border-radius: 999px;
  background: #fff;
  color: #35555d;
  font-size: 11.5px;
  font-weight: 850;
  white-space: nowrap;
}
.moe-at__mode-badge { border-color: #b9d3d5; background: var(--moe-at-primary-soft); color: var(--moe-at-primary-dark); }

.moe-at__school-card {
  overflow: hidden;
  border: 1px solid var(--moe-at-border);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(23, 37, 45, .055);
}
.moe-at__school-heading { padding: 17px 18px 15px; border-bottom: 1px solid var(--moe-at-border); background: linear-gradient(135deg, #f7fafb 0%, #fff 80%); }
.moe-at__school-title-row { display: flex; align-items: flex-start; gap: 11px; }
.moe-at__school-icon {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 12px;
  background: var(--moe-at-primary-soft);
  color: var(--moe-at-primary-dark);
}
.moe-at__school-icon svg { width: 22px; height: 22px; }
.moe-at__school-copy { min-width: 0; flex: 1; }
.moe-at__school-name { margin: 0 0 8px; color: var(--moe-at-text); font-size: 20px; font-weight: 900; line-height: 1.45; }
.moe-at__meta { display: flex; flex-wrap: wrap; gap: 7px; }
.moe-at__meta span {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 4px 9px;
  border: 1px solid #d9e3e6;
  border-radius: 999px;
  background: #fff;
  color: #51636b;
  font-size: 11.5px;
  font-weight: 800;
}
.moe-at__meta .moe-at__type--secondary { border-color: #e5c75e; background: #fff4ad; color: #6d5700; }
.moe-at__meta .moe-at__type--complex { border-color: #e5aaaa; background: #ffd9d9; color: #861c1c; }
.moe-at__meta .moe-at__type--basic { border-color: #9acaa5; background: #dcf1e1; color: #17612b; }
.moe-at__meta .moe-at__type--kindergarten { border-color: #8bb1dc; background: #e0edff; color: #174f85; }
.moe-at__meta .moe-at__type--quran { border-color: #baa37e; background: #e8dcc5; color: #65491e; }
.moe-at__directorate-badge { background: #f4f7f8 !important; color: #3e5c65 !important; }
.moe-at__staff-count { align-self: flex-start; margin-right: auto; padding: 4px 9px; border-radius: 999px; background: #edf3f4; color: #50676e; font-size: 11px; font-weight: 850; white-space: nowrap; }

.moe-at__match {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  padding: 10px 11px;
  border: 1px solid #cfe1e3;
  border-radius: 11px;
  background: #f3f9f9;
  color: #24474d;
}
.moe-at__match-label { color: #647980; font-size: 12px; font-weight: 800; }
.moe-at__match-names { display: flex; flex-wrap: wrap; gap: 6px; }
.moe-at__match-names strong,
.moe-at__match > strong { padding: 3px 8px; border-radius: 999px; background: #fff; color: #164f55; font-size: 12px; }
.moe-at__staff-title { margin: 0; padding: 12px 18px; border-bottom: 1px solid var(--moe-at-border); background: #fff; color: #40535b; font-size: 13px; font-weight: 900; }
.moe-at__table-wrap { overflow-x: auto; }
.moe-at__table { width: 100%; border-collapse: collapse; border-spacing: 0; }
.moe-at__table th,
.moe-at__table td { padding: 12px 18px; border-bottom: 1px solid #edf1f2; text-align: right; vertical-align: middle; }
.moe-at__table th { background: #f8fafb; color: #5d6e75; font-size: 12px; font-weight: 900; white-space: nowrap; }
.moe-at__table td { color: #33464e; font-size: 13.5px; }
.moe-at__table tbody tr:last-child td { border-bottom: 0; }
.moe-at__table tbody tr:hover { background: #fbfdfd; }
.moe-at__matched-row { background: #fff9e9; }
.moe-at__matched-row:hover { background: #fff5d9 !important; }
.moe-at__matched-badge { display: inline-flex; margin-right: 8px; padding: 2px 7px; border-radius: 999px; background: #eed98d; color: #674e08; font-size: 10.5px; font-weight: 900; vertical-align: middle; }

.moe-at__empty {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 28px 18px;
  border: 1px dashed #cbdadd;
  border-radius: 16px;
  background: #fbfdfd;
  color: var(--moe-at-muted);
  text-align: center;
}
.moe-at__empty-icon { display: grid; width: 50px; height: 50px; place-items: center; border-radius: 15px; background: #eef4f5; color: #5b777e; }
.moe-at__empty-icon svg { width: 26px; height: 26px; }
.moe-at__empty strong { color: var(--moe-at-text); font-size: 15px; }
.moe-at__empty p { max-width: 520px; margin: 0; font-size: 13px; }
.moe-at__empty-reset { margin-top: 4px; padding: 7px 12px; border: 1px solid #c8d6da; border-radius: 9px; background: #fff; color: #40565e; font-weight: 800; cursor: pointer; }
.moe-at__empty-reset:hover { background: #f3f7f8; }

.moe-at__privacy-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 16px 0 0;
  color: #7a888e;
  font-size: 11.5px;
  text-align: center;
}
.moe-at__privacy-note svg { width: 15px; height: 15px; color: #58727a; flex: 0 0 auto; }

.moe-at__button:focus-visible,
.moe-at__select:focus-visible,
.moe-at__input:focus-visible,
.moe-at__clear-input:focus-visible,
.moe-at__empty-reset:focus-visible {
  outline: 3px solid rgba(15, 95, 102, .24);
  outline-offset: 2px;
}

@media (max-width: 820px) {
  .moe-at__hero { grid-template-columns: auto minmax(0, 1fr); padding: 24px; }
  .moe-at__service-badge { grid-column: 2; justify-self: start; }
  .moe-at__instructions { width: 100%; max-width: 100%; }
  .moe-at__instructions-body { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 680px) {
  .moe-at { padding: 6px; }
  .moe-at__box { border-radius: 18px; }
  .moe-at__hero { grid-template-columns: 48px minmax(0, 1fr); gap: 12px; padding: 20px 17px; }
  .moe-at__hero-icon { width: 48px; height: 48px; border-radius: 14px; }
  .moe-at__hero-icon svg { width: 25px; height: 25px; }
  .moe-at__title { font-size: 22px; }
  .moe-at__subtitle { font-size: 13px; }
  .moe-at__service-badge { grid-column: 1 / -1; justify-self: stretch; justify-content: center; }
  .moe-at__content { min-width: 0; padding: 16px 13px 19px; }
  .moe-at__instructions { margin-bottom: 14px; border-radius: 13px; overflow: visible; }
  .moe-at__instructions-heading { min-height: 0; padding: 12px 12px 8px; gap: 9px; }
  .moe-at__instructions-heading svg { width: 18px; height: 18px; }
  .moe-at__instructions-heading h4 { font-size: 14px; }
  .moe-at__instructions-body { gap: 8px; padding: 0 10px 10px; }
  .moe-at__instruction-item { grid-template-columns: 27px minmax(0, 1fr); gap: 8px; padding: 10px; border-radius: 10px; font-size: 12.5px; line-height: 1.65; }
  .moe-at__instruction-number { width: 27px; height: 27px; border-radius: 8px; font-size: 12px; }
  .moe-at__panel { padding: 15px 13px; border-radius: 14px; }
  .moe-at__mode-options,
  .moe-at__filters { grid-template-columns: 1fr; }
  .moe-at__mode-card { min-height: 74px; }
  .moe-at__actions { display: grid; }
  .moe-at__ready-state { justify-content: center; }
  .moe-at__buttons { display: grid; grid-template-columns: 1fr 1fr; }
  .moe-at__button { width: 100%; min-width: 0; }
  .moe-at__query-summary { display: grid; }
  .moe-at__query-stats { width: 100%; }
  .moe-at__school-heading { padding: 15px 13px; }
  .moe-at__school-title-row { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 9px; }
  .moe-at__school-icon { width: 38px; height: 38px; }
  .moe-at__staff-count { grid-column: 2; margin: 2px 0 0; justify-self: start; }
  .moe-at__school-name { font-size: 17px; }
  .moe-at__table thead { display: none; }
  .moe-at__table,
  .moe-at__table tbody,
  .moe-at__table tr,
  .moe-at__table td { display: block; width: 100%; }
  .moe-at__table tr { padding: 9px 12px; border-bottom: 1px solid var(--moe-at-border); }
  .moe-at__table tr:last-child { border-bottom: 0; }
  .moe-at__table td { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 9px; padding: 5px 0; border: 0; }
  .moe-at__table td::before { content: attr(data-label); color: var(--moe-at-muted); font-size: 11.5px; font-weight: 850; }
}

@media (max-width: 420px) {
  .moe-at__instructions-heading { padding-inline: 10px; }
  .moe-at__instructions-body { padding-inline: 8px; }
  .moe-at__instruction-item { grid-template-columns: 25px minmax(0, 1fr); padding: 9px; font-size: 12px; }
  .moe-at__instruction-number { width: 25px; height: 25px; }
  .moe-at__buttons { grid-template-columns: 1fr; }
  .moe-at__mode-card { grid-template-columns: 40px minmax(0, 1fr) 22px; gap: 9px; padding: 11px; }
  .moe-at__mode-icon { width: 40px; height: 40px; }
  .moe-at__panel-head { gap: 9px; }
  .moe-at__step { width: 30px; height: 30px; }
  .moe-at__privacy-note { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .moe-at *,
  .moe-at *::before,
  .moe-at *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
.moe-at .screen-reader-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
