@font-face {
  font-family: Manrope;
  src: url('/manrope.woff2') format('woff2');
  font-weight: 400 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  font: 15px/1.55 Manrope, system-ui, sans-serif;
  color: #172c3c;
  background: #f4f7fa;
  --ink: #172c3c;
  --muted: #516777;
  --line: #dce5eb;
  --navy: #102839;
  --teal: #08776b;
  --teal-dark: #065c54;
  --mint: #e8f6f1;
  --surface: #fff;
  --radius: 14px;
  --shadow: 0 2px 4px #10283907;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 0; }
h1, h2, h3, p, dl { margin: 0; }
h1, h2, h3 { line-height: 1.2; }
h1 { font-size: clamp(1.95rem, 3.3vw, 2.65rem); letter-spacing: -.045em; font-weight: 800; }
h2 { font-size: 1.15rem; letter-spacing: -.02em; font-weight: 800; }
h3 { font-size: 1rem; }
a { color: var(--teal-dark); text-underline-offset: .2em; }
button, input, select, textarea { font: inherit; }
button, summary, select { cursor: pointer; }
button { color: inherit; }
button:disabled { cursor: default; opacity: .5; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #218bdf; outline-offset: 3px; }
svg { flex: none; vertical-align: middle; }
img { display: block; max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.muted { color: var(--muted); }
.stack { display: grid; gap: 13px; }
.field-pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.eyebrow { display: flex; align-items: center; gap: 7px; font-size: .72rem; font-weight: 800; letter-spacing: .12em; }
.loading { padding: 28px; color: var(--muted); }
.offline-card { max-width: 500px; padding: 32px; margin: 12vh auto; display: grid; gap: 17px; justify-items: start; }

label { display: grid; gap: 6px; font-size: .85rem; font-weight: 750; }
label small { color: var(--muted); font-weight: 500; }
input:not([type=checkbox],[type=file]), select, textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 43px;
  padding: 9px 11px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
}
input::placeholder { color: #657988; font-weight: 500; }
textarea { resize: vertical; }
select { padding-right: 27px; text-overflow: ellipsis; }
input[type=checkbox] { width: 17px; height: 17px; margin: .14em 0 0; accent-color: var(--teal); flex: none; }
.checkline { display: flex; align-items: flex-start; gap: 9px; cursor: pointer; font-weight: 650; }
.button, .icon-button, .text-button, .text-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.button {
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 800;
  font-size: .84rem;
  text-align: center;
  line-height: 1.3;
}
.button.primary { background: var(--teal); color: #fff; }
.button.primary:not(:disabled):hover { background: var(--teal-dark); }
.button.secondary, .outline { background: var(--surface); border-color: var(--line); color: var(--ink); }
.button.secondary:not(:disabled):hover, .outline:hover { background: #f0f7f6; border-color: #a9c9c4; }
.button.danger { background: #fff1f1; border-color: #f3c9ce; color: #a3263f; }
.button.danger:hover { background: #fce0e4; }
.button.full { width: 100%; }
.button-row { display: flex; flex-wrap: wrap; gap: 9px; }
.icon-button { min-width: 37px; min-height: 37px; padding: 7px; border: 1px solid transparent; border-radius: 8px; background: transparent; text-decoration: none; }
.icon-button:not(:disabled):hover { background: #b7cdd42a; }
.text-button, .text-link { border: 0; background: transparent; padding: 0; color: var(--teal-dark); text-decoration: none; font-size: .84rem; font-weight: 800; }
.text-button:hover, .text-link:hover { text-decoration: underline; }
.notice { display: flex; align-items: flex-start; gap: 9px; padding: 11px 13px; border: 1px solid transparent; border-radius: 8px; font-size: .84rem; font-weight: 650; }
.notice svg { margin-top: 1px; }
.notice.soft { color: #185768; background: #eef8fa; border-color: #d7e9ef; }
.notice.error { color: #92263b; background: #fdf0f1; border-color: #f3d4d8; }
.notice.success { color: #09644f; background: var(--mint); border-color: #c9e8dd; }

.admin-layout { display: grid; grid-template-columns: 226px minmax(0,1fr); min-height: 100dvh; }
.sidebar { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; padding: 24px 15px 18px; background: var(--navy); color: #d0dce5; z-index: 20; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; width: fit-content; line-height: 1.25; }
.brand-mark { display: grid; place-items: center; width: 41px; height: 41px; border-radius: 12px; background: #108576; color: #fff; }
.brand strong { display: block; font-size: 1.17rem; font-weight: 800; letter-spacing: -.03em; }
.brand small { display: block; font-size: .59rem; letter-spacing: .15em; font-weight: 800; margin-top: 3px; }
.sidebar > .brand { color: #fff; margin: 0 9px 31px; }
.sidebar > .brand small { color: #a8c1cd; }
.sidebar-workspace { display: flex; align-items: center; gap: 9px; padding: 10px; border: 1px solid #ffffff19; border-radius: 10px; background: #ffffff09; }
.workspace-icon { display: grid; place-items: center; border-radius: 8px; background: #1f4555; color: #a2dacc; width: 34px; height: 34px; flex: none; }
.sidebar-workspace strong, .sidebar-account strong { display: block; color: #fff; font-size: .81rem; }
.sidebar-workspace small, .sidebar-account small { display: block; font-size: .69rem; color: #b3c6d1; }
.nav-label { margin: 26px 11px 8px; color: #a8c1cd; font-size: .65rem; font-weight: 800; letter-spacing: .12em; }
.sidebar nav { display: grid; gap: 4px; }
.nav-link { min-height: 42px; display: flex; align-items: center; gap: 10px; padding: 8px 11px; border-radius: 8px; color: #d5e2e9; text-decoration: none; font-weight: 700; font-size: .88rem; }
.nav-link:hover { color: #fff; background: #ffffff12; }
.nav-link.current { color: #e5fff7; background: #20524f; }
.nav-link.current i { width: 6px; height: 6px; background: #79dbc2; border-radius: 50%; margin-left: auto; }
.sidebar-footer { margin-top: auto; }
.student-link svg:last-child { margin-left: auto; }
.sidebar-rule { height: 1px; background: #ffffff1d; margin: 12px 0; }
.sidebar-account { display: flex; gap: 9px; align-items: center; }
.sidebar-account > span:nth-child(2) { min-width: 0; overflow-wrap: anywhere; }
.sidebar-account button { margin-left: auto; }
.avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #d9f0e8; color: #0b5e56; font-size: .73rem; font-weight: 800; flex: none; }
.admin-body { display: flex; flex-direction: column; min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; min-height: 64px; padding: 0 clamp(16px,2.65vw,38px); background: #fff; border-bottom: 1px solid var(--line); }
.crumb, .top-actions { display: flex; align-items: center; gap: 11px; font-size: .82rem; }
.crumb span, .crumb svg { color: var(--muted); }
.menu { display: none; }
.demo-pill { padding: 4px 9px; border-radius: 20px; background: #edf7f2; color: #215f52; font-size: .72rem; font-weight: 800; white-space: nowrap; }
.demo-pill i, .hero-copy i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #259779; margin-right: 2px; }
.page { width: 100%; max-width: 1600px; padding: 26px clamp(16px,2.65vw,38px) 30px; margin: 0 auto; flex: 1; display: flex; flex-direction: column; gap: 20px; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 13px 24px; }
.page-heading p:not(.eyebrow) { color: var(--muted); margin-top: 6px; }
.page-eyebrow { color: var(--teal-dark); margin-bottom: 6px; }
.page-heading > .button { white-space: nowrap; }
.admin-footer { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); padding: 12px clamp(16px,2.65vw,38px); border-top: 1px solid var(--line); font-size: .75rem; }

.overview-hero { position: relative; isolation: isolate; overflow: hidden; display: flex; min-height: 156px; border-radius: var(--radius); background: linear-gradient(106deg,#0f3041,#145c60); color: #fff; }
.hero-copy { position: relative; z-index: 1; padding: 22px 27px; }
.hero-copy .eyebrow { color: #b5e5db; }
.hero-copy i { background: #71d6b8; }
.hero-copy h2 { font-size: clamp(1.45rem,3vw,2rem); letter-spacing: -.035em; margin: 7px 0; }
.hero-copy > p:last-child { max-width: 460px; color: #d9e9eb; font-size: .91rem; }
.hero-graphic { position: absolute; inset: 0 0 0 auto; width: 43%; min-width: 280px; overflow: hidden; background: repeating-linear-gradient(90deg,transparent 0 28px,#a4e4dd16 28px 29px), repeating-linear-gradient(0deg,transparent 0 28px,#a4e4dd16 28px 29px); mask-image: linear-gradient(90deg,transparent,#000 33%); }
.contour { position: absolute; top: 48%; left: 59%; width: var(--diameter); height: calc(var(--diameter) * .68); border: 1px solid #91e2d781; border-radius: 51% 39% 60% 36%; transform: translate(-50%,-50%) rotate(-19deg); }
.c1 { --diameter: 94px; }
.c2 { --diameter: 138px; }
.c3 { --diameter: 185px; }
.c4 { --diameter: 240px; }
.c5 { --diameter: 311px; }
.hero-pin { position: absolute; left: 59%; top: 48%; transform: translate(-50%,-50%); color: #ccfff0; }
.hero-coordinates { position: absolute; bottom: 12px; right: 16px; color: #c6eee6; font: 10px/1.3 ui-monospace, monospace; letter-spacing: .09em; }
.stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 13px; }
.stat-card { display: grid; min-width: 0; text-align: left; gap: 2px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); box-shadow: var(--shadow); }
.stat-card:hover { border-color: #a3c7bf; background: #fbfefd; }
.stat-top { display: flex; align-items: center; justify-content: space-between; color: #647b8d; margin-bottom: 5px; }
.stat-icon, .map-icon, .section-icon, .gps-icon { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; flex: none; background: var(--mint); color: var(--teal-dark); }
.stat-icon.pending, .status.pending { color: #81500b; background: #fff4d9; }
.stat-icon.location, .status.location { color: #245b96; background: #eaf2ff; }
.stat-icon.approved, .status.approved { color: #096851; background: #e7f6ed; }
.stat-icon.rejected, .status.rejected { color: #a12644; background: #fcecf0; }
.stat-value { font-size: 1.82rem; font-weight: 800; line-height: 1.05; letter-spacing: -.035em; }
.stat-card strong { font-size: .85rem; }
.stat-card small { color: var(--muted); font-size: .72rem; }
.status { display: inline-flex; align-items: center; gap: 5px; border-radius: 20px; font-size: .73rem; font-weight: 800; white-space: nowrap; padding: 4px 8px; }
.status i, .dot { display: inline-block; background: currentColor; border-radius: 50%; width: 6px; height: 6px; flex: none; }

.overview-grid, .full-map-grid, .review-grid { display: grid; align-items: start; gap: 16px; min-width: 0; }
.overview-grid { grid-template-columns: minmax(0,1.7fr) minmax(260px,1fr); }
.full-map-grid { grid-template-columns: minmax(0,1fr) minmax(240px,280px); }
.review-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.review-stack { display: grid; gap: 16px; min-width: 0; }
.panel { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 17px; }
.panel-head p { margin-top: 3px; color: var(--muted); font-size: .78rem; }
.filters { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 16px 13px; }
.filters .search { flex: 1 1 160px; min-width: 135px; position: relative; }
.search svg { position: absolute; top: 11px; left: 9px; color: #647b8d; pointer-events: none; }
.filters .search input { padding-left: 32px; }
.filters select, .filters input { min-height: 38px; font-size: .79rem; }
.select-filter { flex: 1 1 104px; min-width: 95px; max-width: 215px; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; text-align: left; font-size: .79rem; }
th { background: #f5f8fa; color: #4b6274; font-weight: 800; }
th, td { padding: 9px 9px; border-top: 1px solid #e8eef2; vertical-align: middle; }
th:first-child, td:first-child { padding-left: 16px; }
th:last-child, td:last-child { padding-right: 12px; }
tbody tr:hover { background: #fafcfd; }
.table-record { display: flex; gap: 8px; align-items: center; min-width: 106px; text-decoration: none; }
.table-record:hover strong { text-decoration: underline; }
.table-record strong, .table-record small, .table-muted { display: block; }
.table-record small, .table-muted { color: var(--muted); font-size: .72rem; line-height: 1.35; }
.table-record img { border-radius: 5px; object-fit: cover; flex: none; }
.school-cell { display: block; min-width: 80px; line-height: 1.3; font-weight: 700; }
.row-action { color: #4a687b; display: grid; place-items: center; width: 29px; height: 29px; border-radius: 6px; }
.row-action:hover { background: var(--mint); color: var(--teal-dark); }
.table-footer { display: flex; justify-content: space-between; align-items: center; gap: 7px; border-top: 1px solid var(--line); padding: 10px 16px; color: var(--muted); font-size: .76rem; }
.pagination { display: flex; align-items: center; gap: 5px; }
.pagination .icon-button { border-color: var(--line); min-height: 30px; min-width: 30px; padding: 3px; }
.empty { display: grid; justify-items: center; gap: 5px; padding: 34px 16px; color: var(--muted); text-align: center; }
.empty strong { color: var(--ink); }
.empty.compact { padding: 17px; }

.map { position: relative; z-index: 0; background: #cfe3e9; border-block: 1px solid var(--line); }
.preview-map { height: 257px; margin: 0 12px; border: 1px solid var(--line); border-radius: 8px; }
.full-map { min-height: 440px; height: 65vh; border-radius: 0 0 var(--radius) var(--radius); }
.review-map { height: 315px; }
.preview-legend, .zone-legend { display: flex; flex-wrap: wrap; gap: 7px 13px; color: var(--muted); font-size: .75rem; font-weight: 700; }
.preview-legend { padding: 12px 15px; }
.preview-legend span, .zone-legend span { display: inline-flex; align-items: center; gap: 5px; }
.dot { width: 9px; height: 9px; }
.dot.verified { background: #08776b; }
.dot.simulated, .dot.moderate { background: #ea8749; }
.dot.low { background: #ebbb49; }
.dot.high { background: #d8595d; }
.dot.original { background: #2563a6; }
.dot.reference-point { background: #7651aa; }
.verification-legend { padding: 0; }
.map-link { display: flex; align-items: center; justify-content: space-between; padding: 11px 16px; border-top: 1px solid var(--line); text-decoration: none; font-size: .84rem; font-weight: 800; }
.map-link:hover { text-decoration: underline; }
.fallback-town { color: #4f6570; font: 800 13px Manrope,sans-serif; text-shadow: 0 1px #fff; }
.geo-pin { display: grid; place-items: center; }
.geo-pin > span { display: grid; place-items: center; transform: rotate(-45deg); width: 22px; height: 22px; border: 2px solid #fff; border-radius: 55% 55% 55% 0; background: var(--pin); box-shadow: 0 1px 5px #10283955; }
.geo-pin i { width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.pin-popup { display: grid; gap: 3px; line-height: 1.35; color: var(--ink); }
.pin-popup img { width: 100%; object-fit: cover; border-radius: 5px; margin-bottom: 5px; }
.pin-popup a { color: var(--teal-dark); margin-top: 3px; font-weight: 800; }
.layer-controls { display: grid; gap: 11px; padding: 0 16px 16px; }
.zone-legend { padding-left: 26px; }
.map-observations { border-top: 1px solid var(--line); padding: 13px 16px; font-size: .84rem; }
.map-observations ul { padding: 0; list-style: none; margin: 7px 0 0; max-height: 345px; overflow: auto; }
.map-observations p { color: var(--muted); margin-top: 5px; }
.map-observations button { display: flex; align-items: center; gap: 7px; width: 100%; border: 0; padding: 8px 4px; border-radius: 6px; background: transparent; text-align: left; }
.map-observations button:hover { background: var(--mint); }
.map-observations button > span { flex: 1; }
.map-observations button small { display: block; color: var(--muted); }

.back-link { align-self: flex-start; }
.photo-frame { display: grid; place-items: center; background: #edf2f5; }
.photo-frame img { width: 100%; max-height: 515px; object-fit: contain; }
.metadata { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px 14px; padding: 15px 17px; }
.metadata dt { font-size: .73rem; font-weight: 750; color: var(--muted); }
.metadata dd { margin: 2px 0 0; overflow-wrap: anywhere; font-size: .85rem; font-weight: 750; }
.review-location, .decision, .audit-list { display: grid; gap: 12px; padding: 0 17px 17px; font-size: .84rem; }
.review-location { padding-top: 14px; }
.coordinate-details { padding: 0; }
.reference, .privacy { padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #f8fafc; color: var(--ink); font-size: .83rem; }
.reference { background: #f7f3fb; border-color: #e8dff2; }
.reference summary, .privacy summary { font-weight: 800; }
.reference p, .privacy p { margin-top: 7px; }
.correction { padding-top: 13px; border-top: 1px solid var(--line); justify-items: start; }
.correction label, .correction .field-pair { width: 100%; }
.decision-checks { display: grid; gap: 9px; }
.audit-list ol { margin: 0; padding-left: 18px; }
.audit-list li { padding: 6px 0 9px 3px; }
.audit-list li + li { border-top: 1px solid var(--line); }
.audit-list li span { display: block; color: var(--muted); }
.audit-list li p { margin-top: 4px; }
dialog { width: min(480px,calc(100% - 28px)); padding: 20px; color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 45px #10283930; }
dialog::backdrop { background: #10283980; }

.auth-layout {
  min-height: 100dvh;
  background: #fff;
  --auth-gutter: clamp(20px, 4vw, 60px);
}
.auth-header, .auth-main {
  width: min(100% - var(--auth-gutter) * 2, 1392px);
  margin-inline: auto;
}
.auth-header {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.auth-portal {
  color: var(--muted);
  font-size: .84rem;
  font-weight: 750;
  text-align: end;
}
.auth-main {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: start;
  padding-bottom: 28px;
}
.auth-card {
  grid-column: 2;
  grid-row: 1;
  width: min(100% - 64px, 400px);
  margin: auto;
  padding-block: 48px;
  display: grid;
  gap: 22px;
  align-self: center;
  min-width: 0;
}
.auth-layout.is-register .auth-card { padding-block: 24px; }
.auth-heading { display: grid; gap: 8px; }
.auth-heading h1 { font-size: clamp(2rem, 3.6vw, 3rem); }
.auth-heading h1:focus { outline: none; }
.auth-heading p { max-width: 38ch; }
.auth-card form { gap: 16px; }
.auth-card input:not([type=checkbox]), .auth-card select {
  min-height: 48px;
  font-size: 16px;
  border-color: #9baeb9;
}
.auth-password-field { display: grid; gap: 6px; }
.auth-password-field small { font-size: .8rem; color: var(--muted); }
.auth-password-control { position: relative; }
.auth-password-control input { padding-right: 74px; }
.auth-password-control button {
  position: absolute;
  inset: 2px 2px 2px auto;
  min-width: 62px;
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--teal-dark);
  font-size: .82rem;
  font-weight: 800;
}
.auth-password-control button:hover { background: #e8f6f1; }
.auth-password-control button:focus-visible { outline-offset: -3px; }
.auth-submit { min-height: 48px; font-size: .95rem; }
.auth-submit:active:not(:disabled) { background: #064942; }
.auth-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: .87rem;
  color: var(--muted);
}
.auth-bottom button { min-height: 44px; }
.auth-card .privacy summary { min-height: 30px; }
.auth-card .stack > div:empty, .decision > div:empty, .report-body > div:empty, .correction > div:empty { display: none; }
.auth-story {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: end;
  min-height: clamp(500px, calc(100dvh - 110px), 720px);
  margin: 0;
  overflow: hidden;
  border-radius: 14px;
  background: var(--navy);
  color: #fff;
}
.auth-story img, .auth-story::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.auth-story img { object-fit: cover; object-position: 54% center; }
.auth-story::after {
  content: '';
  background: linear-gradient(180deg, #10283900 22%, #1028399e 52%, #0b212ff7 100%);
}
.auth-story figcaption {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: clamp(28px,4.5vw,64px);
}
.auth-story h2 {
  max-width: 12em;
  font-size: clamp(2rem,4.2vw,3.9rem);
  line-height: 1.06;
  letter-spacing: -.05em;
}
.auth-story p { max-width: 43ch; color: #f2f7f9; margin-top: 14px; }
.auth-story figcaption span {
  display: inline-block;
  margin-top: 24px;
  padding-top: 12px;
  border-top: 1px solid #e3f6f488;
  color: #e6f1f5;
  font-size: .77rem;
}

.student-header { background: var(--navy); color: #fff; }
.student-head-inner { max-width: 700px; padding: 11px 16px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.student-head-actions { display: flex; align-items: center; gap: 9px; }
.student-head-actions .install { color: #d0f0e9; min-height: 42px; padding-inline: 4px; }
.student-main { display: grid; gap: 15px; max-width: 650px; padding: 24px 16px; margin: auto; }
.student-intro { display: grid; gap: 5px; }
.student-intro .eyebrow { color: var(--teal-dark); }
.student-intro > p, .student-footer { color: var(--muted); font-size: .84rem; }
.student-footer { text-align: center; }
.report-body { display: grid; gap: 12px; padding: 0 16px 16px; }
.photo-placeholder { display: grid; place-items: center; align-content: center; min-height: 155px; gap: 4px; padding: 13px; text-align: center; border: 1px dashed #a6beca; border-radius: 9px; background: #f5f9fb; color: var(--muted); font-size: .82rem; }
.photo-placeholder strong { color: var(--ink); }
.photo-placeholder svg { margin-bottom: 4px; color: var(--teal); }
.student-preview { overflow: hidden; border: 1px solid var(--line); border-radius: 9px; }
.student-preview img { width: 100%; max-height: 310px; object-fit: contain; background: #edf2f5; }
.student-preview div { display: flex; align-items: center; justify-content: space-between; gap: 9px; padding: 7px 10px; font-size: .78rem; }
.student-preview strong { overflow-wrap: anywhere; }
.student-preview span { flex: none; color: var(--muted); }
.file-label { position: relative; min-height: 46px; }
.file-label:focus-within { outline: 3px solid #218bdf; outline-offset: 3px; }
.file-label:has(:disabled) { opacity: .5; }
.file-input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.gps-row { display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 9px; padding: 9px; font-size: .84rem; }
.gps-row p { color: var(--muted); font-size: .78rem; }
.gps-row button { margin-left: auto; min-height: 34px; padding: 0 4px; flex: none; }
.photo-note, .upload-progress { font-size: .78rem; }
.upload-progress { display: flex; align-items: center; gap: 8px; }
.upload-progress progress { flex: 1; min-width: 40px; accent-color: var(--teal); }
.success-card { display: grid; gap: 12px; padding: 19px; }
.success-card .section-icon { width: 49px; height: 49px; }
.success-card h2 { font-size: 1.3rem; }
.receipt { display: flex; justify-content: space-between; gap: 10px; border: 1px solid var(--line); padding: 9px 12px; border-radius: 8px; overflow-wrap: anywhere; }

@media (max-width: 1170px) {
  .overview-grid { grid-template-columns: 1fr; }
  .preview-map { height: 295px; }
}
@media (max-width: 930px) {
  .admin-layout { grid-template-columns: minmax(0,1fr); }
  .sidebar { position: fixed; z-index: 20; width: 226px; left: 0; top: 59px; height: calc(100dvh - 59px); visibility: hidden; overflow-y: auto; }
  .menu-open .sidebar { visibility: visible; }
  .menu { display: inline-flex; }
  .topbar { min-height: 59px; position: sticky; top: 0; z-index: 21; }
}
@media (max-width: 660px) {
  .page { padding-top: 19px; gap: 14px; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .stats { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .hero-copy { padding: 16px; }
  .hero-graphic { opacity: .32; }
  .hero-coordinates { display: none; }
  .review-grid, .full-map-grid { grid-template-columns: minmax(0,1fr); }
  .full-map { height: 55vh; min-height: 310px; }
  .auth-header { min-height: 68px; }
  .auth-main { grid-template-columns: minmax(0,1fr); }
  .auth-story { grid-row: 1; min-height: 172px; border-radius: 10px; }
  .auth-story figcaption { padding: 16px; }
  .auth-story h2 { font-size: clamp(1.45rem,6vw,2rem); max-width: 16em; }
  .auth-story p { display: none; }
  .auth-story figcaption span { margin-top: 8px; padding-top: 0; border: 0; }
  .auth-card, .auth-layout.is-register .auth-card {
    grid-column: 1;
    grid-row: 2;
    width: min(100%,400px);
    padding-block: 28px 0;
    gap: 16px;
  }
  .auth-layout.is-register .auth-story { display: none; }
  .auth-layout.is-register .auth-card { grid-row: 1; padding-top: 16px; }
  .auth-card .checkline { padding-block: 6px; }
}
@media (max-width: 380px) {
  .crumb > span, .crumb > svg, .top-avatar { display: none; }
  .admin-footer { flex-wrap: wrap; }
  .gps-row { flex-wrap: wrap; }
  .photo-buttons { grid-template-columns: 1fr; }
}
