:root {
  --red: #ac1f32;
  --navy: #142d4e;
  --ink: #142437;
  --muted: #526174;
  --line: #dce3ec;
  --paper: #f2f5fa;
  --brand-height: 140px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  font:
    17px/1.5 Arial,
    Helvetica,
    sans-serif;
  color: var(--ink);
}
button,
input,
select {
  font: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
a,
input,
select {
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.6;
  cursor: wait;
}
.college-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.95fr) minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  padding: 20px 32px;
  background: white;
  border-bottom: 4px solid var(--red);
}
.university-banner {
  width: 100%;
  max-width: 570px;
  height: auto;
  display: block;
}
.constitution-logo {
  width: 100px;
  height: auto;
  display: block;
  justify-self: end;
}
.college-heading {
  text-align: center;
}
.college-heading h1 {
  font-size: clamp(20px, 1.7vw, 33px);
  font-weight: 800;
  line-height: 1.2;
  margin: 0;
  color: var(--navy);
}
.college-heading p {
  font-size: clamp(14px, 1vw, 19px);
  margin: 5px 0;
  font-weight: 700;
  color: #354a68;
}
.college-heading > strong {
  display: block;
  font-size: clamp(15px, 1.15vw, 23px);
  color: var(--red);
  letter-spacing: 0.7px;
  line-height: 1.3;
}
.main-nav {
  background: var(--navy);
  padding: 10px 28px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  color: white;
}
.nav-pages {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.nav-pages > a {
  padding: 11px 15px;
  border-radius: 7px;
  font-size: 16px;
  font-weight: 700;
}
.nav-pages > a:hover {
  background: #294667;
}
.nav-pages > a.active {
  background: white;
  color: var(--navy);
}
.nav-session {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-session > span {
  font-size: 13px;
  max-width: 170px;
}
.nav-session button {
  color: white;
  border-color: #ffffff60;
}
main {
  max-width: 1600px;
  padding: 28px 32px 40px;
  margin: auto;
}
.page-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 25px;
}
.page-title h2 {
  font-size: 31px;
  line-height: 1.2;
  margin: 0 0 8px;
  color: var(--navy);
  font-weight: 800;
}
.page-title p {
  font-size: 17px;
  color: var(--muted);
  margin: 0;
}
.page-title:has(+ .registration-card) {
  justify-content: center;
  text-align: center;
}
.page-title:has(+ .registration-card) h2 {
  font-size: 35px;
}
.actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--red);
  color: white;
  border: 1px solid var(--red);
  border-radius: 7px;
  padding: 12px 19px;
  font-size: 16px;
  line-height: 1.3;
  font-weight: 700;
  text-align: center;
}
.button:hover {
  filter: brightness(0.94);
}
.button.secondary {
  background: white;
  color: var(--navy);
  border-color: #b9c7d7;
}
.button.quiet {
  background: transparent;
  color: inherit;
  border-color: #bdc8d6;
  padding: 8px 12px;
}
.text-link {
  color: var(--red);
  font-weight: 700;
  font-size: 16px;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 3px 12px #17345404;
}
.panel h3 {
  font-size: 21px;
  color: var(--navy);
  margin: 0 0 22px;
  font-weight: 800;
}
.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 25px;
}
.metric {
  background: white;
  border: 1px solid var(--line);
  border-top: 4px solid var(--navy);
  padding: 20px 24px;
  border-radius: 10px;
}
.metric span {
  display: block;
  font-size: 17px;
  font-weight: 700;
  color: var(--muted);
}
.metric strong {
  display: block;
  font-size: 42px;
  line-height: 1.3;
  margin-top: 9px;
  font-weight: 800;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}
.metric small {
  font-size: 22px;
}
.metric.red {
  border-top-color: var(--red);
  background: #fff8f9;
}
.metric.red strong {
  color: var(--red);
}
.overview-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  margin-bottom: 25px;
}
.bank-bars {
  display: grid;
  gap: 17px;
}
.bank-bar > div:first-child {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  gap: 15px;
  margin-bottom: 8px;
}
.bank-bar strong {
  color: var(--red);
  white-space: nowrap;
}
.progress {
  height: 9px;
  background: #e9edf3;
  border-radius: 20px;
  overflow: hidden;
}
.progress > i {
  display: block;
  height: 100%;
  background: var(--red);
  border-radius: 20px;
}
.status-summary > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.status-summary strong {
  font-size: 28px;
  color: var(--navy);
}
.muted {
  color: var(--muted);
  font-size: 16px;
}
.table-scroll {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
th {
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
  color: var(--navy);
  background: #edf2f8;
  padding: 15px 14px;
}
td {
  font-size: 16px;
  padding: 17px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
td b {
  font-weight: 700;
}
td small {
  display: block;
  font-size: 14px;
  color: #53637a;
  margin-top: 5px;
  min-width: 130px;
}
td select {
  min-width: 170px;
}
tbody tr:last-child td {
  border-bottom: 0;
}
.donor-id {
  font: 700 15px/1.5 monospace;
  white-space: nowrap;
}
.blood {
  color: var(--red);
}
.status {
  display: inline-block;
  padding: 7px 11px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}
.status-registered {
  background: #e8effc;
  color: #254f9b;
}
.status-ongoing {
  background: #fff0d4;
  color: #895a00;
}
.status-completed {
  background: #e6f3e9;
  color: #24613c;
}
.status-cancelled {
  background: #fae8ec;
  color: #96334b;
}
.empty {
  padding: 35px;
  text-align: center;
  color: var(--muted);
  font-size: 18px;
}
input,
select {
  border: 1.5px solid #b9c6d8;
  border-radius: 7px;
  padding: 13px 14px;
  color: var(--ink);
  background: white;
  min-width: 0;
  font-size: 17px;
  width: 100%;
}
input:focus,
select:focus {
  outline: 2px solid #8ba7ce;
  border-color: #557aa9;
}
.filters {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 15px;
  margin-bottom: 18px;
}
.result-count {
  font-weight: 700;
  color: var(--muted);
  font-size: 15px;
  margin: 12px 0;
}
.registration-card {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 38px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 23px 26px;
}
.field {
  display: grid;
  gap: 10px;
}
.field label {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
}
.field.full {
  grid-column: 1/-1;
}
.optional {
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
}
.form-footer {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
.form-footer > span {
  font-size: 16px;
  color: var(--muted);
}
.form-footer .button {
  padding: 15px 28px;
  font-size: 19px;
}
.save-result {
  margin: 18px 0 0;
  font-size: 17px;
  font-weight: 700;
  color: #236342;
}
.save-result:empty {
  display: none;
}
.room-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.room-label {
  display: inline-block;
  background: #edf2f8;
  border-radius: 5px;
  padding: 5px 10px;
  font-size: 15px;
  color: var(--navy);
  font-weight: 700;
}
.room-card h3 {
  font-size: 21px;
  margin: 16px 0;
  min-height: 2.8em;
}
.room-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}
.room-stats strong {
  display: block;
  font-size: 29px;
  color: var(--red);
}
.room-stats span {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}
.room-card .button {
  width: 100%;
  padding: 11px 9px;
  font-size: 15px;
}
.report-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 23px;
}
.report-symbol {
  font-size: 37px;
  color: var(--red);
}
.report-card h3 {
  margin: 14px 0;
  font-size: 23px;
}
.report-card p {
  font-size: 17px;
  color: var(--muted);
  min-height: 80px;
}
.report-note {
  text-align: center;
  color: var(--muted);
  font-size: 16px;
  margin-top: 25px;
}
.toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 90vw;
  width: max-content;
  padding: 14px 22px;
  background: #143f2c;
  color: white;
  border-radius: 8px;
  font-weight: 700;
  font-size: 16px;
  z-index: 20;
  display: none;
}
.toast.visible {
  display: block;
}
.login-mode .main-nav {
  display: none;
}
.login-card {
  max-width: 500px;
  margin: 30px auto;
}
.login-card h2 {
  font-size: 30px;
  color: var(--navy);
  margin: 0;
}
.login-card p {
  font-size: 17px;
  color: var(--muted);
}
.login-card form {
  display: grid;
  gap: 20px;
  margin: 25px 0;
}
.login-card .login-message {
  color: var(--red);
  margin: 0;
}
.login-message:empty {
  display: none;
}
/* Shared responsive controls and on-page completion form. */
body,
main,
.panel,
.college-heading,
.nav-pages,
.nav-session {
  min-width: 0;
}
.button,
.nav-pages > a {
  min-height: 44px;
}
input,
select {
  min-height: 48px;
}
.college-header {
  column-gap: 24px;
}
.university-banner {
  justify-self: start;
}
.college-heading {
  justify-self: stretch;
}
.college-heading h1 {
  overflow-wrap: normal;
}
.contact-cell {
  overflow-wrap: anywhere;
}
.form-error {
  color: #a11b30;
  font-size: 16px;
  font-weight: 700;
  margin: 12px 0;
}
.form-error:empty {
  display: none;
}
.completion-panel {
  border: 2px solid #acc2e0;
  background: #f1f6ff;
  padding: 24px;
  border-radius: 10px;
  margin-bottom: 25px;
}
.completion-panel h3 {
  margin: 0 0 8px;
}
.completion-panel > p {
  font-weight: 700;
  color: var(--navy);
  overflow-wrap: anywhere;
}
.completion-panel form {
  max-width: 620px;
}
.completion-panel .actions {
  margin-top: 18px;
}
.completion-panel input {
  max-width: 350px;
}
.sr-only {
  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;
}
/* Big Screen: fluid cards, no fixed viewport-sized squares or overlap. */
.screen-mode .main-nav {
  display: none;
}
.screen-mode main {
  max-width: none;
  padding: 20px 28px 12px;
}
.screen-layout {
  display: grid;
  grid-template-columns: minmax(255px, 0.9fr) minmax(0, 2.7fr);
  gap: 22px;
  align-items: stretch;
}
.total-card {
  background: linear-gradient(145deg, #fff, #fff1f0);
  border: 1px solid #e6bdc3;
  border-radius: 14px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  min-height: 400px;
  overflow: hidden;
}
.total-card-top {
  display: grid;
  gap: 8px;
  text-align: center;
  flex-shrink: 0;
}
.total-card-top > span:first-child {
  font-size: clamp(16px, 1.3vw, 25px);
  font-weight: 800;
  color: var(--red);
  letter-spacing: 1px;
}
.screen-clock {
  font-size: 16px;
  color: #685265;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.drop-stage {
  position: relative;
  isolation: isolate;
  flex: 1;
  min-height: 230px;
  display: grid;
  place-items: center;
  overflow: hidden;
  margin: 12px 0;
}
.drop-outline {
  position: absolute;
  inset: 8% 2%;
  opacity: 0.12;
}
.drop-outline svg {
  height: 100%;
  width: 100%;
  fill: var(--red);
}
#screen-total {
  position: relative;
  z-index: 2;
  font-size: clamp(110px, 12vw, 220px);
  font-weight: 800;
  color: var(--red);
  line-height: 1;
  letter-spacing: -5px;
  font-variant-numeric: tabular-nums;
}
.screen-source {
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: #33714e;
  line-height: 1.4;
  flex-shrink: 0;
}
.connection-warning {
  color: #9d5b0d !important;
}
.bank-display {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}
.screen-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  flex-shrink: 0;
}
.screen-summary > div {
  border: 1px solid var(--line);
  background: white;
  border-radius: 10px;
  padding: 15px 17px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.screen-summary span {
  font-size: 15px;
  font-weight: 700;
  color: var(--muted);
}
.screen-summary strong,
.screen-summary strong > span {
  font-size: clamp(25px, 2.3vw, 42px);
  color: var(--navy);
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.screen-summary small {
  font-size: 17px;
}
.bank-screen-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  flex: 1;
}
.bank-tile {
  position: relative;
  overflow: hidden;
  border: 1.5px solid #d5dfea;
  border-radius: 12px;
  background: white;
  padding: 14px;
  min-width: 0;
  min-height: 195px;
  display: grid;
  grid-template-rows: auto auto minmax(48px, 1fr) auto auto;
  gap: 6px;
  text-align: center;
  align-items: center;
}
.tile-room {
  font-size: 12px;
  font-weight: 700;
  color: #5b6e86;
  line-height: 1.2;
}
.bank-tile h3 {
  font-size: clamp(15px, 1.15vw, 23px);
  line-height: 1.2;
  font-weight: 800;
  color: var(--navy);
  min-height: 2.4em;
  display: grid;
  place-items: center;
  margin: 0;
  overflow-wrap: normal;
}
.tile-number {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 48px;
}
.tile-number > strong {
  font-size: clamp(42px, 4vw, 78px);
  line-height: 1;
  font-weight: 800;
  color: var(--red);
  font-variant-numeric: tabular-nums;
}
.tile-donation-label {
  font-size: 12px;
  font-weight: 700;
  color: #566b85;
  line-height: 1.3;
  margin: 0;
}
.tile-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  border-top: 1px solid #e2e8f1;
  padding-top: 8px;
  font-size: 11px;
  color: #5b6c83;
  font-weight: 700;
  line-height: 1.3;
}
.tile-bottom b {
  display: inline-block;
  font-size: 14px;
  color: var(--navy);
  margin-left: 3px;
}
.tile-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, #ac1f32, #e89b94, #ac1f32);
  background-size: 200% 100%;
  animation: wave-flow 6s linear infinite;
}
.bank-tile:nth-child(even) .tile-wave {
  animation-delay: -3s;
}
.screen-toolbar {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 14px;
}
.screen-toolbar .button {
  font-size: 14px;
  padding: 9px 14px;
  min-height: 40px;
}
.demo-explainer {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.arrival-drop {
  position: absolute;
  width: 38px;
  height: 38px;
  border-radius: 0 50% 50% 50%;
  background: var(--red);
  left: calc(50% - 19px);
  top: -50px;
  transform: rotate(45deg);
  opacity: 0;
  z-index: 4;
}
.liquid-wipe {
  position: absolute;
  width: 180%;
  height: 180%;
  bottom: -210%;
  left: -40%;
  border-radius: 43%;
  background: #c23744;
  opacity: 0.25;
  z-index: 1;
}
.screen-delta {
  position: absolute;
  right: 4%;
  top: 20%;
  font-size: 29px;
  font-weight: 800;
  color: var(--red);
  background: #fff;
  border-radius: 25px;
  padding: 5px 10px;
  opacity: 0;
  z-index: 3;
}
.bank-delta {
  position: absolute;
  right: 0;
  top: 2px;
  font-size: 24px;
  font-weight: 800;
  color: var(--red);
  opacity: 0;
}
.drop-hit .arrival-drop {
  animation: drop-arrival 0.9s ease-in forwards;
}
.drop-hit .liquid-wipe {
  animation: liquid-wipe 1.7s ease-in-out forwards;
}
.drop-hit #screen-total {
  animation: number-lift 1.2s ease-in-out;
}
.drop-hit .screen-delta,
.bank-hit .bank-delta {
  animation: increment-rise 3s forwards;
}
.bank-hit {
  animation: bank-flash 3s ease-out;
}
@keyframes wave-flow {
  to {
    background-position: 200% 0;
  }
}
@keyframes drop-arrival {
  0% {
    top: -50px;
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  80% {
    top: 65%;
    opacity: 1;
    transform: rotate(45deg) scale(0.8);
  }
  100% {
    top: 80%;
    opacity: 0;
    transform: rotate(45deg) scale(3);
  }
}
@keyframes liquid-wipe {
  0%,
  25% {
    bottom: -210%;
  }
  65% {
    bottom: -50%;
    transform: rotate(20deg);
  }
  100% {
    bottom: 130%;
    transform: rotate(70deg);
  }
}
@keyframes number-lift {
  45% {
    transform: translateY(7px);
    opacity: 0.75;
  }
  75% {
    transform: translateY(-6px);
  }
  100% {
    transform: none;
  }
}
@keyframes increment-rise {
  0% {
    opacity: 0;
    transform: translateY(12px);
  }
  20%,
  75% {
    opacity: 1;
    transform: none;
  }
  100% {
    opacity: 0;
    transform: translateY(-18px);
  }
}
@keyframes bank-flash {
  15%,
  50% {
    border-color: #b3293c;
    background: #fff3f4;
    box-shadow: 0 0 0 3px #b3293c20;
  }
  100% {
    box-shadow: none;
  }
}
/* Fill roomy desktop views; grow naturally on short displays instead of clipping tiles. */
@media (min-width: 1280px) and (min-height: 720px) {
  .screen-mode main {
    height: auto;
    min-height: calc(100svh - var(--brand-height));
    display: flex;
    flex-direction: column;
    overflow: visible;
  }
  .screen-layout {
    flex: 1;
    min-height: calc(100svh - var(--brand-height) - 100px);
  }
  .total-card {
    min-height: 0;
  }
  .bank-display {
    min-height: 0;
  }
  .bank-screen-grid {
    grid-template-rows: repeat(2, minmax(195px, 1fr));
    min-height: 0;
  }
  .bank-tile {
    min-height: 0;
  }
  .drop-stage {
    min-height: 160px;
  }
  .screen-toolbar {
    flex-shrink: 0;
  }
  .demo-explainer {
    display: none;
  }
}
@media (min-width: 1800px) {
  .college-header {
    padding: 24px 46px;
    grid-template-columns: minmax(0, 1fr) minmax(380px, 0.95fr) minmax(0, 1fr);
  }
  .university-banner {
    max-width: 630px;
  }
  .constitution-logo {
    width: 120px;
  }
  .screen-mode main {
    padding: 22px 34px 12px;
  }
  .screen-layout {
    gap: 26px;
  }
  .bank-display {
    gap: 20px;
  }
  .bank-screen-grid {
    gap: 20px;
  }
  .bank-tile {
    padding: 20px;
    gap: 8px;
  }
  .bank-tile h3 {
    font-size: 23px;
  }
  .tile-room {
    font-size: 15px;
  }
  .tile-donation-label {
    font-size: 16px;
  }
  .tile-bottom {
    font-size: 14px;
  }
  .tile-bottom b {
    font-size: 20px;
  }
  .screen-summary span {
    font-size: 20px;
  }
  .screen-source {
    font-size: 16px;
  }
  .screen-clock {
    font-size: 20px;
  }
  .screen-toolbar .button {
    font-size: 16px;
  }
}
@media (max-width: 1279px) {
  .screen-layout {
    grid-template-columns: 1fr;
  }
  .total-card {
    min-height: 310px;
    max-height: 360px;
  }
  .drop-stage {
    min-height: 210px;
    margin: 8px 0;
  }
  .drop-outline {
    inset: 0;
  }
  #screen-total {
    font-size: 140px;
  }
  .screen-source {
    font-size: 13px;
  }
  .screen-summary strong,
  .screen-summary strong > span {
    font-size: 29px;
  }
  .screen-summary span {
    font-size: 15px;
  }
  .bank-tile {
    min-height: 195px;
  }
  .screen-mode main {
    height: auto;
    overflow: visible;
  }
  .screen-toolbar .button {
    min-height: 44px;
  }
  .demo-explainer {
    flex-basis: 100%;
    text-align: center;
  }
  .room-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 1100px) {
  .college-header {
    grid-template-columns: minmax(0, 1fr) 85px;
    gap: 14px;
    padding: 15px 24px;
  }
  .university-banner {
    max-width: 650px;
  }
  .constitution-logo {
    width: 85px;
    grid-column: 2;
    grid-row: 1;
  }
  .college-heading {
    grid-column: 1/-1;
    grid-row: 2;
  }
  .college-heading h1 {
    font-size: 27px;
  }
  .college-heading p {
    font-size: 16px;
  }
  .college-heading > strong {
    font-size: 19px;
  }
  .main-nav {
    padding: 10px 18px;
    flex-wrap: wrap;
    gap: 10px;
  }
  .nav-pages {
    width: 100%;
    justify-content: space-between;
  }
  .nav-pages > a {
    font-size: 15px;
    padding: 10px 12px;
  }
  .nav-session {
    width: 100%;
    justify-content: space-between;
  }
  .nav-session > span {
    max-width: none;
  }
  .metrics {
    gap: 15px;
  }
  .metric {
    padding: 18px;
  }
  .metric span {
    font-size: 15px;
  }
  .metric strong {
    font-size: 37px;
  }
  .filters {
    grid-template-columns: 1fr 1fr;
  }
  .filters > input {
    grid-column: 1/-1;
  }
  .overview-grid {
    grid-template-columns: 1fr;
  }
  .report-grid {
    grid-template-columns: 1fr;
  }
  .report-card p {
    min-height: 0;
  }
  .report-card .actions {
    flex-wrap: wrap;
  }
  .screen-summary > div {
    padding: 13px;
  }
  .bank-tile h3 {
    font-size: 17px;
  }
  .tile-number > strong {
    font-size: 48px;
  }
}
@media (max-width: 700px) {
  .college-header {
    grid-template-columns: minmax(0, 1fr) 65px;
    padding: 13px 15px;
    gap: 13px;
  }
  .constitution-logo {
    width: 65px;
  }
  .college-heading h1 {
    font-size: 24px;
  }
  .college-heading p {
    font-size: 15px;
  }
  .college-heading > strong {
    font-size: 18px;
  }
  .nav-pages {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }
  .nav-pages > a {
    text-align: center;
    font-size: 14px;
    padding: 10px 5px;
  }
  .main-nav {
    padding: 10px 12px;
  }
  main {
    padding: 24px 16px 30px;
  }
  .page-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }
  .page-title h2 {
    font-size: 28px;
  }
  .page-title p {
    font-size: 16px;
  }
  .page-title:has(+ .registration-card) {
    align-items: center;
  }
  .page-title:has(+ .registration-card) h2 {
    font-size: 30px;
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .metric {
    padding: 16px;
  }
  .metric span {
    font-size: 14px;
  }
  .metric strong {
    font-size: 34px;
  }
  .metric small {
    font-size: 20px;
  }
  .panel {
    padding: 20px;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .field.full {
    grid-column: auto;
  }
  .registration-card {
    padding: 25px 20px;
  }
  .field label {
    font-size: 17px;
  }
  .form-footer {
    flex-direction: column;
    align-items: stretch;
  }
  .filters {
    grid-template-columns: 1fr;
  }
  .filters > input {
    grid-column: auto;
  }
  .room-grid {
    grid-template-columns: 1fr;
  }
  .room-card h3 {
    min-height: 0;
  }
  .room-stats span {
    font-size: 14px;
  }
  .room-stats strong {
    font-size: 34px;
  }
  .room-card .button {
    font-size: 16px;
  }
  .report-card .actions {
    align-items: stretch;
    flex-direction: column;
  }
  .panel-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .panel-heading h3 {
    margin-bottom: 8px;
  }
  .bank-bar > div:first-child {
    font-size: 14px;
  }
  .completion-panel {
    padding: 19px;
  }
  .completion-panel .actions {
    align-items: stretch;
    flex-direction: column;
  }
  .completion-panel input {
    max-width: none;
  }
  .completion-panel .button {
    width: 100%;
  }
  .screen-mode main {
    padding: 16px 14px;
  }
  .screen-layout {
    gap: 17px;
  }
  .bank-display {
    gap: 14px;
  }
  .screen-summary {
    gap: 8px;
  }
  .screen-summary > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 12px 8px;
    gap: 7px;
  }
  .screen-summary span {
    font-size: 12px;
  }
  .screen-summary strong,
  .screen-summary strong > span {
    font-size: 25px;
  }
  .screen-summary small {
    font-size: 15px;
  }
  .bank-screen-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .bank-tile {
    min-height: 205px;
    padding: 13px 11px;
    gap: 7px;
  }
  .bank-tile h3 {
    font-size: 17px;
  }
  .tile-number > strong {
    font-size: 49px;
  }
  .tile-donation-label {
    font-size: 11px;
  }
  .tile-bottom {
    font-size: 10px;
    padding-top: 7px;
    gap: 5px;
  }
  .tile-bottom b {
    font-size: 14px;
  }
  .total-card {
    min-height: 320px;
    padding: 20px;
  }
  .total-card-top > span:first-child {
    font-size: 18px;
  }
  .drop-stage {
    min-height: 220px;
  }
  #screen-total {
    font-size: 145px;
  }
  .screen-toolbar {
    gap: 8px;
  }
  .screen-toolbar .button {
    font-size: 13px;
    padding: 10px 12px;
  }
  .login-card {
    margin: 15px auto;
  }
  .table-scroll {
    overflow: visible;
  }
  .donor-table,
  .donor-table tbody {
    display: block;
    width: 100%;
  }
  .donor-table thead {
    display: none;
  }
  .donor-table tbody {
    display: grid;
    gap: 16px;
  }
  .donor-table tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 16px;
    border: 1px solid #d2deed;
    border-radius: 9px;
    padding: 0 14px;
    background: #fff;
  }
  .donor-table td {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    padding: 13px 0;
    border-bottom: 1px solid #e7ecf3;
    font-size: 16px;
    min-width: 0;
    overflow-wrap: anywhere;
    white-space: normal;
  }
  .donor-table td:before {
    content: attr(data-label);
    font:
      700 13px/1.3 Arial,
      sans-serif;
    color: #68778b;
  }
  .donor-table td small {
    min-width: 0;
    font-size: 14px;
    margin: 0;
    overflow-wrap: anywhere;
  }
  .donor-table td.name-cell,
  .donor-table td.contact-cell,
  .donor-table td.bank-cell,
  .donor-table td.action-cell {
    grid-column: 1/-1;
  }
  .donor-table td.name-cell {
    background: #f2f6fc;
    margin: 0 -14px;
    padding: 14px;
    border-radius: 8px 8px 0 0;
  }
  .donor-table td.name-cell > b {
    font-size: 18px;
  }
  .donor-table td:last-child {
    border-bottom: 0;
  }
  .donor-table td select {
    min-width: 0;
    width: 100%;
    font-size: 16px;
  }
  .donor-table .status {
    align-self: flex-start;
  }
  .donor-table td.donor-id {
    font-size: 14px;
  }
}
@media (max-width: 370px) {
  .college-heading h1 {
    font-size: 21px;
  }
  .college-heading p {
    font-size: 14px;
  }
  .college-heading > strong {
    font-size: 16px;
  }
  .constitution-logo {
    width: 55px;
  }
  .college-header {
    grid-template-columns: minmax(0, 1fr) 55px;
  }
  .nav-pages > a {
    font-size: 12px;
  }
  .screen-summary strong,
  .screen-summary strong > span {
    font-size: 22px;
  }
  .bank-tile h3 {
    font-size: 15px;
  }
  .tile-bottom {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .bank-tile {
    min-height: 215px;
  }
  .metric span {
    font-size: 13px;
  }
  .metric strong {
    font-size: 30px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .screen-mode *,
  .screen-mode *:before,
  .screen-mode *:after {
    animation: none !important;
    transition: none !important;
  }
  .arrival-drop,
  .liquid-wipe,
  .screen-delta,
  .bank-delta {
    display: none !important;
  }
}

@media (min-width: 1800px) {
  .bank-screen-grid {
    grid-template-rows: repeat(2, minmax(275px, 1fr));
  }
}
