@import url("print.css?v=20261024-school5");
:root {
  --navy: #153985;
  --cyan: #09afe0;
  --ink: #172744;
  --muted: #74819a;
  --line: #e5eaf2;
  --bg: #f4f7fc;
  --white: #fff;
  --green: #12866b;
  --red: #c1444b;
  --shadow: 0 12px 40px #102c5110;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--ink);
  font:
    15px/1.55 "Segoe UI",
    Arial,
    sans-serif;
  background: var(--bg);
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.45;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}
button:focus:not(:focus-visible) {
  outline: none;
}
button,
.btn {
  border: 0;
  border-radius: 12px;
  padding: 11px 18px;
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  text-decoration: none;
}
button.secondary {
  background: #edf2fa;
  color: var(--navy);
}
button.ghost {
  background: transparent;
  color: var(--ink);
  padding: 10px;
}
button.danger {
  background: #fff0f1;
  color: var(--red);
}
button.small {
  font-size: 13px;
  padding: 8px 12px;
  min-height: 38px;
}
.icon {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.brand {
  display: flex;
  gap: 10px;
  align-items: center;
}
.brand-name {
  font-size: 21px;
  font-weight: 750;
  letter-spacing: -0.6px;
  color: var(--navy);
}
.brand-name b {
  color: var(--cyan);
}
.brand small {
  font-size: 10px;
  display: block;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 11px;
  overflow: hidden;
  background: #fff;
  flex-shrink: 0;
}
.brand-mark img {
  height: 64px;
  width: 192px;
  max-width: none;
  transform: translate(-3px, -9px);
}
.brand-mark.fallback img {
  width: 46px;
  height: 46px;
  transform: none;
}

.main {
  margin: 0 auto;
  max-width: 1600px;
  padding: 0 38px 48px;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}
.topbar .brand {
  display: flex;
}
.topbar .school-name {
  font-weight: 650;
  font-size: 15px;
}
.topbar small {
  color: var(--muted);
  display: block;
}
.user-pill {
  display: flex;
  align-items: center;
  gap: 12px;
}
.avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: #deebff;
  border-radius: 50%;
  font-weight: 700;
  color: var(--navy);
}
.user-pill strong {
  font-size: 13px;
  display: block;
}
.user-pill small {
  font-size: 11px;
}
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 1.7px;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 750;
  margin-bottom: 7px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.9px;
  margin-bottom: 8px;
}
h2 {
  font-size: 19px;
  letter-spacing: -0.3px;
}
h3 {
  font-size: 16px;
  margin-bottom: 8px;
}
.muted {
  color: var(--muted);
}
.small-text {
  font-size: 12px;
}
.hero {
  background: linear-gradient(115deg, var(--navy), #174779);
  color: white;
  border-radius: 22px;
  padding: 30px 32px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
  position: relative;
  overflow: hidden;
}
.hero p {
  color: #d2e2f6;
  margin-bottom: 18px;
  max-width: 480px;
  font-size: 14px;
}
.hero h2 {
  font-size: 25px;
  max-width: 520px;
}
.hero button {
  background: #fff;
  color: var(--navy);
}
.hero-icon {
  width: 132px;
  height: 132px;
  display: grid;
  place-items: center;
  border: 1px solid #ffffff26;
  border-radius: 32px;
  background: #ffffff0a;
  transform: rotate(-8deg);
  margin: 7px 10px;
}
.hero-icon .icon {
  width: 70px;
  height: 70px;
  stroke-width: 1.2;
  color: #81dfff;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 0 0 28px;
}
.stat {
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  display: flex;
  gap: 14px;
  align-items: center;
}
.stat strong {
  display: block;
  font-size: 26px;
  line-height: 1.2;
}
.stat span {
  font-size: 12px;
  color: var(--muted);
}
.icon-box {
  width: 45px;
  height: 45px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #eaf1ff;
  color: var(--navy);
}
.icon-box.cyan {
  background: #e5f8fd;
  color: #0787b6;
}
.icon-box.green {
  background: #e7f7ef;
  color: #178768;
}
.icon-box.orange {
  background: #fff4e4;
  color: #c68a21;
}
.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 30px;
}
.tile {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  text-align: left;
  position: relative;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--ink);
  box-shadow: 0 3px 12px #18335a04;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.tile .icon-box {
  width: 51px;
  height: 51px;
  margin-bottom: 10px;
}
.tile h3 {
  margin: 4px 0;
}
.tile p {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
  margin: 0;
}
.tile > .arrow {
  position: absolute;
  right: 20px;
  top: 25px;
  color: #a6b3c7;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 23px;
  margin-bottom: 22px;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.panel-head h2 {
  margin: 0;
}
.flow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
}
.flow span {
  background: var(--bg);
  padding: 9px 13px;
  border-radius: 10px;
}
.flow b {
  color: var(--cyan);
  padding: 9px 0;
}
.filters {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 12px;
}
.filters label {
  flex: 1;
  min-width: 140px;
}
.filters label.search {
  flex: 2;
  min-width: 200px;
}
label {
  font-size: 12px;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #596a83;
}
input,
select,
textarea {
  background: #fff;
  border: 1px solid #d9e1ed;
  border-radius: 10px;
  padding: 11px 12px;
  min-height: 44px;
  width: 100%;
  color: var(--ink);
  font-size: 14px;
}
input[type="checkbox"] {
  width: 18px;
  min-height: 18px;
  height: 18px;
  accent-color: var(--navy);
}
input[type="color"] {
  padding: 5px;
  height: 46px;
}
textarea {
  resize: vertical;
  min-height: 84px;
}
.check-label {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}
.field-note {
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}
.full {
  grid-column: 1/-1;
}
.form-section {
  font-size: 11px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--navy);
  padding: 15px 0 0;
  margin-top: 3px;
  border-top: 1px solid var(--line);
  grid-column: 1/-1;
}
.actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.form-actions {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 22px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.message {
  border-radius: 11px;
  padding: 12px 14px;
  background: #edf6fe;
  color: #326082;
  font-size: 13px;
  margin: 12px 0;
}
.message.error {
  background: #fff0f1;
  color: #b22c3e;
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
th {
  text-align: left;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  background: #f9fbfd;
  padding: 13px 12px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
td {
  padding: 15px 12px;
  border-bottom: 1px solid var(--line);
}
tr:last-child td {
  border-bottom: 0;
}
.student-name {
  display: flex;
  align-items: center;
  gap: 12px;
}
.student-name strong {
  display: block;
  max-width: 200px;
  overflow-wrap: anywhere;
}
.student-name small {
  display: block;
  color: var(--muted);
}
.student-photo {
  width: 39px;
  height: 45px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--bg);
  flex-shrink: 0;
}
.photo-empty {
  display: grid;
  place-items: center;
  color: #a3afc2;
}
.badge {
  display: inline-flex;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 650;
  border-radius: 7px;
  background: #eef1f6;
  color: #64718b;
  white-space: nowrap;
}
.badge.Verified,
.badge.Printed,
.badge.Active {
  background: #e6f7ee;
  color: #16835e;
}
.badge.Submitted {
  background: #fff3de;
  color: #a57613;
}
.badge.Returned,
.badge.Inactive {
  background: #fff0ef;
  color: #bb4b48;
}
.badge.Generated {
  background: #e7efff;
  color: #3969be;
}
.list-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 17px;
  color: var(--muted);
  font-size: 12px;
}
.empty {
  padding: 44px 20px;
  text-align: center;
  color: var(--muted);
}
.empty .icon {
  width: 38px;
  height: 38px;
  margin-bottom: 14px;
  color: #9db2d0;
}
.bottom-nav {
  display: none;
}
.loading {
  padding: 70px;
  text-align: center;
  color: var(--muted);
}
dialog {
  border: 0;
  border-radius: 20px;
  padding: 0;
  width: min(740px, calc(100% - 28px));
  max-height: 92dvh;
  color: var(--ink);
  box-shadow: 0 30px 100px #10274040;
}
dialog::backdrop {
  background: #1025407a;
  backdrop-filter: blur(3px);
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}
.modal-head h2 {
  margin: 0;
}
.modal-body {
  padding: 22px 24px;
}
.photo-editor {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.photo-editor img,
.photo-editor .large-photo {
  width: 90px;
  height: 110px;
  object-fit: cover;
  border-radius: 13px;
  background: #edf1f7;
}
.photo-editor .large-photo {
  display: grid;
  place-items: center;
}
.photo-editor .icon {
  width: 36px;
  height: 36px;
  color: #8ca2c2;
}
.upload-label input {
  font-size: 12px;
  max-width: 290px;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.detail-grid dt {
  font-size: 11px;
  color: var(--muted);
}
.detail-grid dd {
  margin: 3px 0;
  font-size: 14px;
  overflow-wrap: anywhere;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: #112e4d;
  color: white;
  border-radius: 12px;
  padding: 12px 20px;
  box-shadow: var(--shadow);
  display: none;
  z-index: 50;
  max-width: 90vw;
  font-size: 13px;
}
.preview-banner {
  background: #fff5df;
  color: #7f5c14;
  text-align: center;
  padding: 8px 16px;
  font-size: 12px;
  position: relative;
  z-index: 7;
}
.preview-banner select {
  display: inline;
  width: auto;
  min-height: 28px;
  padding: 3px 9px;
  font-size: 12px;
  margin-left: 8px;
}
.login-layout {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.login-story {
  background: linear-gradient(140deg, #0c245c, var(--navy) 60%, #1478a3);
  color: white;
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.login-story .brand-name,
.login-story .brand small {
  color: white;
}
.login-story .brand {
  margin-bottom: 70px;
}
.login-story h1 {
  font-size: 47px;
  line-height: 1.12;
  max-width: 520px;
  letter-spacing: -1.7px;
}
.login-story p {
  color: #b9cce9;
  max-width: 400px;
}
.login-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.login-pills span {
  display: flex;
  gap: 7px;
  align-items: center;
  padding: 9px 13px;
  background: #ffffff13;
  border-radius: 10px;
  font-size: 12px;
}
.login-main {
  padding: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-card {
  width: 100%;
  max-width: 390px;
}
.login-card .brand {
  display: none;
}
.login-card label {
  margin-top: 17px;
}
.login-card button[type="submit"] {
  width: 100%;
  margin-top: 25px;
}
.password-wrap {
  display: flex;
  position: relative;
}
.password-wrap input {
  padding-right: 46px;
}
.password-wrap button {
  position: absolute;
  right: 2px;
  top: 2px;
  min-height: 40px;
}
.login-footer {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  margin-top: 25px;
}
.session-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}
.session-bar select {
  max-width: 200px;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.child-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
}
.child-card .student-photo {
  width: 65px;
  height: 78px;
}
.child-card .actions {
  margin-top: 18px;
}
.school-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.school-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 23px;
}
.school-card .panel-head {
  margin-bottom: 10px;
}
.school-card p {
  margin: 5px 0 15px;
}
.check-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 16px 0;
}
.card-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 0 0 20px;
}
.idcards {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.idcard {
  width: 340px;
  min-height: 215px;
  border: 1px solid #cfd9e6;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 5px 20px #21354a0a;
  color: #1b2d4a;
  break-inside: avoid;
  position: relative;
}
.id-top {
  background: var(--navy);
  color: #fff;
  padding: 12px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.id-top img {
  height: 34px;
  width: 34px;
  object-fit: contain;
  background: white;
  border-radius: 5px;
}
.id-top strong {
  font-size: 14px;
  display: block;
  line-height: 1.15;
}
.id-top small {
  font-size: 8px;
  line-height: 1.1;
  display: block;
  margin-top: 4px;
}
.id-body {
  display: flex;
  gap: 12px;
  padding: 11px;
}
.id-face {
  width: 70px;
  height: 88px;
  object-fit: cover;
  border: 1px solid #dbe1ee;
}
.id-data {
  flex: 1;
  font-size: 9px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.id-data h3 {
  font-size: 13px;
  margin: 0 0 3px;
}
.id-data b {
  font-weight: 650;
}
.id-foot {
  padding: 0 11px 8px;
  font-size: 8px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 10px;
}
.signature {
  text-align: center;
  font-size: 7px;
}
.signature img {
  width: 65px;
  height: 23px;
  object-fit: contain;
  display: block;
}
.id-no {
  background: #edf4fc;
  color: var(--navy);
  font-size: 8px;
  text-align: center;
  padding: 4px;
}
.preview-badge {
  background: #fff1c7;
  color: #916400;
  font-size: 10px;
  text-align: center;
  padding: 3px;
}
.card-caption {
  font-size: 11px;
  color: var(--muted);
  margin: 6px 0 18px;
}
.step-list {
  padding-left: 20px;
  color: var(--muted);
  font-size: 13px;
}
.step-list li {
  padding: 7px 0;
}
.notice-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #2aad89;
  border-radius: 50%;
  margin-right: 6px;
}
@media (max-width: 1100px) {
  .main {
    padding: 0 24px 40px;
    margin: 0 auto;
  }

  .stats {
    gap: 10px;
  }
  .stat {
    padding: 15px;
  }
  .stat .icon-box {
    display: none;
  }
  .tiles {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-icon {
    display: none;
  }
  .login-story {
    padding: 40px;
  }
  .login-story h1 {
    font-size: 38px;
  }
  .two-col {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .main {
    margin: 0 auto;
    padding: 0 17px 95px;
  }
  .topbar {
    padding: 17px 0;
    margin-bottom: 22px;
  }
  .topbar .brand {
    display: flex;
  }
  .topbar > .school-heading {
    display: none;
  }
  .topbar .user-pill > div:not(.avatar) {
    display: none;
  }
  .brand-name {
    font-size: 19px;
  }
  .topbar .brand small {
    font-size: 9px;
  }
  .topbar .brand-mark {
    width: 39px;
    height: 42px;
  }
  .topbar .brand-mark img {
    height: 58px;
    width: 174px;
    transform: translate(-3px, -9px);
  }
  .topbar .brand-mark.fallback img {
    width: 39px;
    height: 42px;
    transform: none;
  }
  .page-head {
    align-items: flex-start;
    margin-bottom: 18px;
  }
  h1 {
    font-size: 25px;
  }
  .page-head p {
    font-size: 12px;
    margin-bottom: 0;
  }
  .page-head > button {
    padding: 10px 12px;
    font-size: 12px;
  }
  .hero {
    padding: 24px 22px;
    border-radius: 19px;
    margin-bottom: 20px;
  }
  .hero h2 {
    font-size: 23px;
  }
  .hero p {
    font-size: 12px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 23px;
  }
  .stat {
    padding: 16px;
  }
  .stat strong {
    font-size: 24px;
  }
  .stat .icon-box {
    display: grid;
    width: 36px;
    height: 36px;
    border-radius: 11px;
  }
  .stat .icon-box .icon {
    width: 19px;
    height: 19px;
  }
  .stat span {
    font-size: 10px;
  }
  .tiles {
    gap: 12px;
    margin-bottom: 23px;
  }
  .tile {
    padding: 19px 16px;
    border-radius: 15px;
  }
  .tile .icon-box {
    width: 44px;
    height: 44px;
  }
  .tile h3 {
    font-size: 14px;
  }
  .tile p {
    font-size: 11px;
  }
  .tile > .arrow {
    right: 13px;
    top: 21px;
  }
  .tile > .arrow .icon {
    width: 16px;
  }
  .panel {
    padding: 17px;
    border-radius: 15px;
  }
  .filters {
    gap: 10px;
  }
  .filters label {
    min-width: calc(50% - 10px);
  }
  .filters label.search {
    min-width: 100%;
  }
  .filters button {
    flex: 1;
  }
  .bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fffffff5;
    border-top: 1px solid var(--line);
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    z-index: 10;
    backdrop-filter: blur(10px);
    justify-content: space-around;
  }
  .bottom-nav button {
    background: transparent;
    color: #8592a8;
    font-size: 9px;
    font-weight: 600;
    flex-direction: column;
    gap: 3px;
    padding: 4px 10px;
    border-radius: 9px;
    min-width: 58px;
  }
  .bottom-nav button.active {
    color: var(--navy);
    background: #edf3ff;
  }
  .bottom-nav .icon {
    width: 21px;
    height: 21px;
  }
  .mobile-cards thead {
    display: none;
  }
  .mobile-cards tr {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    gap: 8px;
  }
  .mobile-cards td {
    padding: 0;
    border: 0;
  }
  .mobile-cards td:first-child {
    flex: 0 0 20px;
  }
  .mobile-cards td:nth-child(2) {
    flex: 1;
    min-width: 200px;
  }
  .mobile-cards td.meta {
    font-size: 12px;
    color: var(--muted);
    margin-left: 28px;
  }
  .mobile-cards td.status {
    margin-left: auto;
  }
  .mobile-cards td.action {
    margin-left: auto;
  }
  .mobile-cards td.hide-mobile {
    display: none;
  }
  .form-grid {
    gap: 14px;
  }
  .form-grid .mobile-full {
    grid-column: 1/-1;
  }
  .modal-head {
    padding: 17px 18px;
  }
  .modal-body {
    padding: 18px;
  }
  dialog {
    width: calc(100% - 18px);
    max-height: 94dvh;
    border-radius: 17px;
  }
  .modal-head h2 {
    font-size: 17px;
  }
  .form-actions button {
    flex: 1;
  }
  .photo-editor {
    gap: 14px;
  }
  .photo-editor input {
    max-width: 190px;
  }
  .school-grid {
    grid-template-columns: 1fr;
  }
  .idcard {
    max-width: 100%;
  }
  .login-layout {
    display: block;
  }
  .login-story {
    display: none;
  }
  .login-main {
    min-height: 100dvh;
    padding: 30px 24px;
  }
  .login-card .brand {
    display: flex;
    margin-bottom: 45px;
  }
  .login-card h1 {
    font-size: 31px;
  }
  .login-card .brand-name {
    font-size: 24px;
  }
  .login-card .brand-mark {
    width: 50px;
    height: 52px;
  }
  .login-card .brand-mark img {
    height: 73px;
    width: 219px;
    transform: translate(-4px, -11px);
  }
  .login-card .brand-mark.fallback img {
    width: 50px;
    height: 52px;
    transform: none;
  }
  #toast {
    bottom: 90px;
    width: calc(100% - 36px);
    text-align: center;
  }
  .flow {
    font-size: 10px;
    gap: 6px;
  }
  .flow span {
    padding: 7px;
  }
  .flow b {
    padding: 7px 0;
  }
  .user-pill {
    gap: 4px;
  }
  .check-grid {
    grid-template-columns: 1fr;
  }
  .detail-grid {
    gap: 12px;
  }
  .list-footer {
    align-items: flex-start;
  }
  .list-footer .actions {
    flex-wrap: nowrap;
  }
  .two-col {
    gap: 0;
  }
  .preview-banner {
    font-size: 10px;
  }
  .card-toolbar button {
    font-size: 12px;
  }
  .page-head .actions {
    justify-content: flex-end;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}


/* Full-width card navigation: the header scrolls naturally with the page. */
.topbar {
  display: grid;
  grid-template-columns: auto minmax(140px, 1fr) auto auto;
  gap: 22px;
}
.topbar .brand-name {
  white-space: nowrap;
}
.school-heading {
  min-width: 0;
}
.school-name {
  overflow-wrap: anywhere;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.header-actions button {
  white-space: nowrap;
  font-size: 13px;
}
.user-pill strong {
  max-width: 170px;
  overflow-wrap: anywhere;
}
@media (max-width: 1100px) {
  .topbar {
    grid-template-columns: 1fr auto;
    gap: 14px;
  }
  .topbar .school-heading {
    display: none;
  }
  .header-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }
}
@media (max-width: 760px) {
  .topbar {
    gap: 12px;
  }
  .header-actions {
    justify-content: stretch;
    gap: 5px;
  }
  .header-actions button {
    flex: 1;
    padding: 9px 8px;
    font-size: 11px;
    white-space: normal;
  }
  .header-actions .icon {
    width: 18px;
    height: 18px;
  }
  .page-head {
    margin-top: 4px;
  }
  .tiles {
    margin-bottom: 22px;
  }
}

/* Admin bulk setup: stacked controls on phones, two columns on wider screens. */
.bulk-class-list{display:grid;gap:12px;margin:16px 0;max-height:52vh;overflow:auto;padding:2px}
.bulk-class-row{display:grid;grid-template-columns:minmax(100px,1fr) minmax(0,2fr);align-items:center;gap:14px;padding:12px;border:1px solid var(--border,#e2e8f0);border-radius:12px}
.bulk-class-row label{min-width:0}.bulk-class-row input[type=text],.bulk-class-row input:not([type]){width:100%;box-sizing:border-box}
@media(max-width:480px){.bulk-class-row{grid-template-columns:1fr;gap:8px}.form-actions{flex-wrap:wrap}.school-card .actions{flex-wrap:wrap}}

.admin-shortcuts{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0 24px;align-items:center}.admin-sync-link{display:inline-flex;align-items:center;gap:8px;padding:10px 14px;color:var(--primary,#153985);text-decoration:none;font-weight:600}.admin-shortcuts .active{box-shadow:inset 0 -2px var(--primary,#153985)}
@media(max-width:767px){.admin-shortcuts{display:none}.bottom-nav button{min-width:0}.bottom-nav button span{overflow-wrap:anywhere}}

/* School workspace: mobile cards, no sidebar or fixed top header. */
.school-welcome{background:linear-gradient(135deg,#eaf1ff,#f4fbff);border:1px solid var(--line);border-radius:20px;padding:22px;margin:18px 0}.school-welcome h2{margin:6px 0}.school-welcome p{font-size:14px;color:var(--muted);margin:8px 0}.setup-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:18px}.setup-step{display:flex;align-items:center;text-align:left;background:white;color:var(--navy);border:1px solid var(--line);padding:14px;gap:10px;min-width:0}.setup-step small{display:block;font-size:12px;font-weight:400;color:var(--muted);margin-top:4px}.step-number{background:#e8efff;border-radius:50%;width:28px;height:28px;display:flex;align-items:center;justify-content:center;flex-shrink:0}.setup-step.done .step-number{background:#def4e8;color:#147749}.setup-step>.icon{margin-left:auto;flex-shrink:0}.account-search{display:grid;grid-template-columns:2fr 1fr auto;gap:14px;align-items:end}.account-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:16px}.account-card{background:white;border:1px solid var(--line);border-radius:18px;padding:20px;min-width:0;overflow-wrap:anywhere}.account-card h3{margin:14px 0 4px}.account-card p{margin:8px 0}.account-card .actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}.login-name{font-family:monospace;color:var(--navy);background:#edf3ff;border-radius:9px;padding:10px}.assignment-class{padding:14px;border:1px solid var(--line);border-radius:12px;margin:12px 0}.assignment-class .panel-head{gap:10px;flex-wrap:wrap}.camera-upload{margin-top:8px}.card-toolbar .actions{flex-wrap:wrap}
@media(max-width:760px){.setup-steps{grid-template-columns:1fr}.school-welcome{padding:16px}.account-search{grid-template-columns:1fr}.account-card{padding:16px}.panel-head{flex-wrap:wrap;gap:10px}.panel-head>.actions{flex-wrap:wrap}.main{padding-bottom:130px}.photo-editor{flex-wrap:wrap}.form-actions{flex-wrap:wrap}.bottom-nav button{padding-left:4px;padding-right:4px}}

@media screen and (max-width:760px){.idcard-wrapper{max-width:100%;width:100%}.idcard{max-width:100%;width:100%}.id-data{min-width:0;overflow-wrap:anywhere}.id-foot{overflow-wrap:anywhere}.id-top>div{min-width:0;overflow-wrap:anywhere}}

.pin-field{margin:10px 0;min-width:0}.pin-label{display:block;font-size:14px;font-weight:600;margin-bottom:8px}.pin-row{display:flex;gap:10px;align-items:center}.pin-row .pin-digit{width:48px;height:56px;min-width:0;text-align:center;font-size:25px;padding:6px;border-radius:12px;flex:0 1 48px;letter-spacing:0}.pin-row .pin-digit:focus{outline:3px solid #b9d9ff;outline-offset:2px}.pin-row button{padding:9px;flex-shrink:0}.pin-row button span{display:none}@media(max-width:380px){.pin-row{gap:7px}.pin-row .pin-digit{width:43px;flex-basis:43px}}
