:root {
  color-scheme: dark;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  color: #f0faf6;
  background: #0b1516;
  line-height: 1.5;
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
.portal-bar, #portal, .platform-console { width: min(72rem, 100% - 2.5rem); margin-inline: auto; }
#portal-header { border-bottom: 1px solid #293e39; background: #101d1b; }
.portal-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1rem; }
#portal, .platform-console { padding-block: 1.5rem 3rem; }
.portal-hero {
  margin-bottom: 1.35rem;
  padding: clamp(1.3rem, 4vw, 2.55rem);
  border: 1px solid #2b4940;
  border-radius: 1.5rem;
  overflow-wrap: anywhere;
  background:
    radial-gradient(ellipse at 94% 8%, #225b48a0, transparent 65%),
    repeating-linear-gradient(90deg, #8df9c111 0 1px, transparent 1px 2.5rem),
    repeating-linear-gradient(#8df9c110 0 1px, transparent 1px 2.5rem),
    linear-gradient(130deg, #172c28, #101c1a);
}
.portal-hero h1 { margin: 0; line-height: 1.08; font-size: clamp(2rem, 5vw, 3.6rem); letter-spacing: -.06em; }
.portal-shortcuts { display: flex; flex-wrap: wrap; gap: .45rem 1.25rem; margin-top: .8rem; }
.portal-shortcut { display: inline-flex; font-weight: 700; }
#portal :is(h1, h2)[tabindex="-1"]:focus { outline: none; }
.portal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 1rem; }
.platform-console form, #platform-invitation { margin-bottom: 1rem; }
.panel { background: #142220; border: 1px solid #2b423d; padding: clamp(1.15rem, 3vw, 1.85rem); border-radius: 1.3rem; overflow-wrap: anywhere; }
.panel h2 { margin: 0 0 1rem; font-size: 1.35rem; letter-spacing: -.035em; line-height: 1.16; }
.section-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .65rem; margin-bottom: 1rem; }
.section-heading h2 { margin: 0; }
.muted { color: #bed4ca; }
.form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem 1rem; }
#add-unit { padding: .9rem; margin-bottom: 1rem; border-radius: .8rem; background: #192e28; border: 1px solid #385a50; }
.unit-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.unit-list li { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .6rem; background: #101a19; border: 1px solid #344a43; border-radius: .75rem; padding: .6rem .75rem; }
.unit-list strong, .unit-list code { display: block; }
.unit-list code { color: #bce3d3; font-size: .83rem; }
.copy-code { font-size: .8rem; padding: .4rem .7rem; }
label { display: grid; gap: .35rem; margin-bottom: 1rem; font-weight: 600; }
input, button { font: inherit; padding: .65rem .85rem; border-radius: .55rem; }
input { width: 100%; min-width: 0; border: 1px solid #58706a; color: inherit; background: #101a19; }
input::file-selector-button { background: #253e36; border: 0; padding: .45rem .65rem; margin-right: .65rem; border-radius: .35rem; color: inherit; font: inherit; cursor: pointer; }
#homonyms label { display: flex; align-items: baseline; }
#homonyms input { width: auto; }
button { border: 1px solid transparent; background: #a5ffd0; color: #0c241a; font-weight: 700; cursor: pointer; }
button:hover:not(:disabled) { filter: brightness(1.12); }
button:disabled { opacity: .55; cursor: default; }
.secondary { background: #172925; border-color: #58706a; color: #f0faf6; }
a { color: #a5ffd0; }
:is(input, button, summary, a):focus-visible { outline: 2px solid #a5ffd0; outline-offset: 3px; }
.feedback { color: #a5ffd0; overflow-wrap: anywhere; }
.feedback:empty { display: none; }
.feedback[data-error="true"], #issues { color: #ffb7ad; }
#preview { margin-top: 1rem; }
dl { display: flex; flex-wrap: wrap; gap: .65rem; }
dl div { background: #213831; border-radius: .55rem; padding: .55rem .8rem; }
dd { margin: 0; font-size: 1.35rem; font-weight: 700; }
details { margin: 1rem 0; }
summary { cursor: pointer; font-weight: 650; }
.table-scroll { overflow: auto; max-height: 28rem; }
table { width: 100%; border-collapse: collapse; margin-block: .5rem; }
th, td { text-align: left; padding: .6rem .8rem; border-bottom: 1px solid #34534a; }
th { background: #213831; }
#calls { margin-top: 1rem; scroll-margin-top: 1rem; }
.call-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; margin-bottom: .8rem; }
.call-filters label { margin-bottom: .35rem; }
.call-filters select { width: 100%; min-width: 0; padding: .65rem .85rem; border: 1px solid #58706a; border-radius: .55rem; background: #101a19; color: inherit; font: inherit; }
.call-filters select:focus-visible { outline: 2px solid #a5ffd0; outline-offset: 3px; }
.calls-list { display: grid; gap: .6rem; }
.call-row { margin: 0; border: 1px solid #344a43; border-radius: .75rem; background: #101a19; }
.call-summary { display: flex; align-items: center; gap: .65rem; padding: .8rem 1rem; flex-wrap: wrap; }
.call-summary::before { content: ""; width: .46rem; height: .46rem; border: solid #a5ffd0; border-width: 0 2px 2px 0; transform: rotate(-45deg); margin: .1rem .2rem .1rem 0; }
.call-row[open] .call-summary::before { transform: rotate(45deg); }
.call-heading { flex: 1 1 15rem; min-width: 0; }
.call-heading > span { display: block; font-size: .85rem; }
.call-counts { display: flex; gap: .35rem; flex-wrap: wrap; }
.call-count { display: inline-block; padding: .16rem .52rem; border-radius: .5rem; font-size: .82rem; font-weight: 650; }
.call-present { background: #23453a; color: #a5ffd0; }
.call-absent { background: #4a2e2b; color: #ffc5bb; }
.call-pending { background: #333931; color: #e0e7d2; }
.call-marks { padding: 0 1rem .7rem; }
.call-students { list-style: none; padding: 0; margin: 0; }
.call-students li { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .48rem 0; border-top: 1px solid #344a43; }
.call-students code { display: block; }
#calls-more { margin-top: .8rem; }
#students, #groups { margin-top: 1rem; scroll-margin-top: 1rem; }
#student-search > label { margin-bottom: .35rem; }
.student-search-row { display: flex; gap: .65rem; }
.student-search-row input { flex: 1; }
.student-search-row button { flex: none; }
.student-results { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .55rem; }
.student-results:empty { margin: 0; }
.student-results li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .65rem 1.5rem;
  border: 1px solid #344a43;
  border-radius: .75rem;
  padding: .75rem;
  background: #101a19;
}
.student-results small { display: block; color: #bed4ca; }
.student-results button { padding-block: .45rem; }
#student-dialog, #group-dialog {
  width: min(35rem, 100% - 1.5rem);
  max-height: calc(100dvh - 1.5rem);
  padding: clamp(1rem, 4vw, 1.65rem);
  overflow: auto;
  border: 1px solid #466259;
  border-radius: 1.15rem;
  background: #142220;
  color: inherit;
  box-shadow: 0 1.25rem 4rem #0009;
}
#student-dialog::backdrop, #group-dialog::backdrop { background: #050e0de0; }
.group-slot {
  border: 1px solid #466259;
  border-radius: .65rem;
  padding: .7rem;
  margin-bottom: .65rem;
}
.group-days { min-width: 0; padding: 0; border: 0; margin: 0 0 .7rem; }
.group-days legend { margin-bottom: .35rem; font-weight: 600; }
.group-day-options { display: flex; flex-wrap: wrap; gap: .35rem; }
.group-day-options label {
  display: flex;
  align-items: center;
  gap: .35rem;
  margin: 0;
  padding: .2rem .5rem;
  border-radius: .45rem;
  border: 1px solid #466259;
  cursor: pointer;
}
.group-day-options label:has(input:checked) { background: #182f2a; border-color: #85c6b6; }
.group-day-options input { width: auto; margin: 0; accent-color: #a5ffd0; }
.group-slot .call-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.group-slot .form-actions { gap: .55rem; }
.group-slot button { padding: .5rem .65rem; font-size: .88rem; }
.group-form-actions { margin-top: 1rem; }
#student-link-name { margin-top: 0; font-weight: 650; }
#student-mode {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1rem;
  min-width: 0;
  margin: 0 0 .8rem;
  padding: .45rem .75rem .65rem;
  border: 1px solid #466259;
  border-radius: .55rem;
}
#student-mode legend { padding-inline: .25rem; font-weight: 600; }
#student-mode label { display: flex; align-items: center; gap: .45rem; margin-bottom: 0; padding: .2rem 0; }
#student-mode input { width: auto; margin: 0; accent-color: #a5ffd0; }
.student-extra { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 .7rem; }
.student-guardian-phone { margin-bottom: 1rem; }
.student-guardian-phone > label { margin-bottom: .2rem; }
.student-minor-option { display: flex; align-items: center; gap: .55rem; }
.student-minor-option input { width: auto; margin: 0; accent-color: #a5ffd0; }

.access {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  width: auto;
  min-height: 100vh;
  min-height: 100svh;
  padding: 0;
  background: #0b1516;
  color: #f0faf6;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
}
.access-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 42rem;
  padding: clamp(2rem, 6vw, 6rem);
  border-right: 1px solid #294039;
  background:
    radial-gradient(ellipse at 68% 38%, #13513f 0%, transparent 57%),
    linear-gradient(145deg, #15302c, #0b1516 78%);
}
.access-hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background-image: linear-gradient(#93ffd01a 1px, transparent 1px), linear-gradient(90deg, #93ffd01a 1px, transparent 1px);
  background-size: 2.5rem 2.5rem;
  mask-image: radial-gradient(ellipse at 65% 38%, black, transparent 75%);
}
.wordmark { display: flex; align-items: center; gap: .65rem; font-size: 1.5rem; font-weight: 750; letter-spacing: -.05em; }
.brand-mark, .signal-core {
  display: grid;
  place-items: center;
  background: #a5ffd0;
  color: #0b2a1e;
  border-radius: .6rem;
}
.brand-mark::before, .signal-core::before {
  width: 34%;
  height: 18%;
  border: solid currentColor;
  border-width: 0 0 .19em .19em;
  transform: translateY(-14%) rotate(-45deg);
  content: "";
}
.brand-mark { width: 2.1rem; aspect-ratio: 1; font-size: 1.15rem; }
.signal {
  position: absolute;
  z-index: -1;
  width: min(82%, 33rem);
  aspect-ratio: 1;
  top: 42%;
  left: 57%;
  transform: translate(-50%, -50%);
}
.ring, .track, .point, .signal-core { position: absolute; }
.ring { border: 1px solid #91f7be45; border-radius: 50%; }
.ring-outer { inset: 6%; }
.ring-inner { inset: 19%; border-style: dashed; }
.track { inset: 27% 4%; border: 1px solid #91f7be58; border-radius: 50%; transform: rotate(-34deg); }
.track-two { transform: rotate(34deg); }
.point { width: 3%; aspect-ratio: 1; border-radius: 50%; background: #b7ffda; box-shadow: 0 0 22px #84ffc3ad; }
.point-one { top: 22%; right: 19%; }
.point-two { bottom: 23%; left: 18%; }
.point-three { top: 34%; left: 12%; width: 1.6%; }
.signal-core {
  inset: 36%;
  transform: rotate(-12deg);
  border-radius: 23%;
  font-size: clamp(1.5rem, 4vw, 3rem);
  background: linear-gradient(130deg, #baffdb, #67dba1);
  box-shadow: 0 0 3.5rem #70f1ae50, 0 .65rem 1.4rem #00180e70;
}
.hero-copy { max-width: 30rem; }
.eyebrow { color: #a5ffd0; text-transform: uppercase; font-size: .73rem; font-weight: 750; letter-spacing: .16em; margin: 0 0 .8rem; }
.hero-copy h1 { font-size: clamp(2.7rem, 5.3vw, 5rem); line-height: .98; letter-spacing: -.075em; margin: 0; }
.hero-copy h1 span { color: #a5ffd0; }
.hero-copy > p:last-child { color: #bed4ca; font-size: 1.08rem; max-width: 23rem; margin-bottom: 0; }
.access-entry { display: grid; place-items: center; padding: clamp(1.25rem, 4vw, 4rem); }
.access-card {
  width: min(100%, 26rem);
  border: 1px solid #2b423d;
  border-radius: 1.5rem;
  padding: clamp(1.4rem, 3.4vw, 2.65rem);
  background: #142220;
  box-shadow: 0 1.5rem 4rem #0004;
  overflow-wrap: anywhere;
}
.access h2 { margin: 0; font-size: clamp(1.65rem, 4vw, 2.35rem); line-height: 1.1; letter-spacing: -.045em; }
#select-title:focus { outline: none; }
.access .intro { color: #bed4ca; margin: .8rem 0 1.7rem; }
.access label { font-size: .9rem; gap: .45rem; }
.access input {
  min-height: 3rem;
  border: 1px solid #58706a;
  background: #101a19;
  color: #f0faf6;
  font-size: 1rem;
  color-scheme: dark;
}
.access :is(input, button):focus-visible { outline: 2px solid #a5ffd0; outline-offset: 3px; }
.password-field { position: relative; display: block; }
.password-control > label { margin-bottom: .45rem; }
.password-field input { padding-right: 5.3rem; }
#toggle-password { position: absolute; inset: .2rem .2rem .2rem auto; padding-inline: .7rem; background: transparent; color: #bce3d3; font-size: .83rem; }
.access-primary { display: flex; gap: .65rem; justify-content: space-between; align-items: center; width: 100%; min-height: 3rem; margin-top: 1.4rem; background: #a5ffd0; color: #0c241a; font-weight: 750; }
.access-primary:hover:not(:disabled) { background: #c2ffe0; }
.access-error { color: #ffb7ad; margin: 1rem 0 0; font-size: .92rem; }
.access-error:empty { display: none; }
.schools { display: grid; gap: .65rem; }
.school-choice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  gap: .65rem;
  padding: .8rem 1rem;
  background: #101a19;
  color: #effbf6;
  border-color: #466259;
}
.school-choice:hover:not(:disabled) { border-color: #a5ffd0; }
.school-choice small { display: block; color: #bed4ca; }
.text-action { margin-top: 1rem; padding-inline: .2rem; background: transparent; color: #a5ffd0; }
@media (max-width: 720px) {
  .portal-grid { grid-template-columns: minmax(0, 1fr); }
  .access { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .access-hero { min-height: 12rem; padding: 1.4rem 1.5rem; border-right: 0; border-bottom: 1px solid #294039; }
  .hero-copy { max-width: 62%; margin-top: 1.15rem; }
  .hero-copy .eyebrow, .hero-copy > p:last-child { display: none; }
  .hero-copy h1 { font-size: clamp(1.9rem, 7vw, 3rem); }
  .signal { width: min(42%, 12rem); top: 52%; left: 80%; }
  .access-entry { align-items: start; }
}
@media (max-width: 420px) {
  .call-filters, .student-extra { grid-template-columns: minmax(0, 1fr); }
  #student-fields > label, .student-extra label { margin-bottom: .7rem; }
  .student-guardian-phone > label { margin-bottom: .2rem; }
}
