:root {
  color-scheme: dark;
  --paper: #1a1925;
  --field: #11121c;
  --ink: #f5f1ff;
  --muted: #c1becf;
  --edge: #3b394b;
  --plum: #cab5ff;
  font: 100%/1.55 Inter, system-ui, sans-serif;
  background: #11121c;
  color: var(--ink);
}
* { box-sizing: border-box; }
body, h1, h2, p { margin: 0; }
a { color: var(--plum); text-underline-offset: .22em; }
:focus-visible { outline: 3px solid #e4cbff; outline-offset: 3px; }
[hidden] { display: none !important; }
.skip { position: absolute; top: -5rem; left: 1rem; z-index: 2; padding: .7rem; background: var(--field); }
.skip:focus { top: .5rem; }
.wrap { width: min(1080px,calc(100% - clamp(2rem,8vw,7rem))); margin-inline: auto; }
.mast { background: #11121c; color: var(--ink); border-bottom: 1px solid var(--edge); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1rem; flex-wrap: wrap; }
.mast a { color: white; }
.brand { display: inline-flex; gap: .7rem; align-items: center; font-weight: 800; letter-spacing: -.035em; font-size: 1.15rem; text-decoration: none; }
.brand img { border-radius: .4rem; image-rendering: pixelated; }
.desk { padding-block: clamp(2rem,5vw,4.5rem); }
.intro { padding: clamp(1.65rem, 6vw, 4rem); border-radius: .6rem;
  background: linear-gradient(90deg, #11121cf5 10%, #11121c8f 100%), url("/assets/facility.webp") center 62% / cover #1a1925;
  margin-bottom: clamp(1.5rem,3vw,2.6rem); }
.label { color: var(--plum); font: 650 .85rem/1.4 "IBM Plex Mono",ui-monospace,monospace; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .7rem; }
h1 { font-size: clamp(2.4rem,5.3vw,4.45rem); line-height: 1.04; letter-spacing: -.06em; font-weight: 760; }
.intro p:last-child { color: var(--ink); max-width: 55ch; font-size: 1.1rem; margin-top: 1rem; }
.layout { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(14rem, .95fr); align-items: start; gap: clamp(1.5rem,4vw,3.4rem); }
.sheet { background: var(--paper); border: 1px solid var(--edge); border-top: .35rem solid #81629d; border-radius: .6rem; padding: clamp(1.1rem,3vw,2.5rem); box-shadow: 0 .5rem 1.65rem #3225410a; }
h2, legend { font-size: 1.4rem; font-weight: 720; line-height: 1.2; letter-spacing: -.035em; }
.notice h2 { font-size: clamp(1.45rem,3vw,2.1rem); }
.notice p, .success-state p { color: var(--muted); margin-top: .55rem; }
.notice[data-state="open"] h2 { color: #cab5ff; }
aside { border-top: 1px solid var(--edge); padding: 1.25rem 0; }
aside h2 { font-size: 1.15rem; }
aside ul { padding-left: 1.25rem; color: var(--muted); }
aside li { margin: .7rem 0; }
aside a, footer a { font-weight: 620; }
form { margin-top: 1.5rem; border-top: 1px solid var(--edge); }
form h2 { margin: 1.8rem 0 1rem; }
.hint, .question-group p { color: var(--muted); font-size: .94rem; margin: 0 0 1rem; }
.form-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 1.15rem; }
.field { margin-bottom: 1.15rem; min-width: 0; }
.field label, legend { display: block; font-weight: 680; }
.field label { margin-bottom: .35rem; }
.label-opt, #mc-required-label, .field small, .form-footnote { font-size: .875rem; color: var(--muted); font-weight: 450; }
.field small { display: block; margin-top: .3rem; }
.field input, select, textarea { display: block; width: 100%; min-height: 2.85rem; border: 1px solid #69647a; border-radius: .35rem; background: var(--field); color: var(--ink); padding: .6rem .7rem; font: inherit; }
select { appearance: none; padding-right: 2rem; background-image: linear-gradient(45deg,transparent 50%,#cab5ff 50%),linear-gradient(135deg,#cab5ff 50%,transparent 50%); background-position: calc(100% - 18px) center,calc(100% - 13px) center; background-size: 5px 5px; background-repeat: no-repeat; }
textarea { resize: vertical; }
.question-group { margin: 1rem 0; border: 0; padding: 0; min-width: 0; }
legend { padding: 0; margin-bottom: .6rem; }
.day-options { display: grid; grid-template-columns: repeat(auto-fit,minmax(8rem,1fr)); gap: .35rem; }
.check-row { display: flex; align-items: baseline; gap: .5rem; margin-bottom: .7rem; }
.check-row input { flex: none; accent-color: var(--plum); }
.hidden-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.verification-wrap { padding: .75rem 0; }
.verification-wrap p, .form-footnote { color: var(--muted); margin: .25rem 0 .7rem; }
.form-alert { color: #ffc1cb; margin-block: .8rem; }
.submit-btn { display: block; font: inherit; font-weight: 720; padding: .8rem 1.3rem; background: #d2bbff; color: #231733; border: 0; border-radius: .4rem; cursor: pointer; }
.submit-btn:disabled { background: #2e293a; color: #a9a1b5; cursor: default; }
.form-footnote { margin-top: .8rem; }
footer { border-top: 1px solid var(--edge); color: var(--muted); font-size: .9rem; }
footer nav { display: flex; flex-wrap: wrap; gap: .6rem 1rem; }
body[data-application-embed] :is(.skip,.mast,.intro,aside,footer) { display: none; }
body[data-application-embed] .desk { width: 100%; padding: 0; }
body[data-application-embed] .layout { display: block; }
body[data-application-embed] .sheet { border: 0; border-radius: 0; box-shadow: none; }
@media (max-width: 760px) {
  .layout { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 540px) {
  .form-row { grid-template-columns: minmax(0,1fr); }
  .brand { font-size: 1rem; }
  .mast .bar { gap: .5rem; }
  .mast .bar > a:last-child { font-size: .9rem; }
}

.notice[data-state="open"] {
  padding: .9rem 1rem;
  border: 1px solid #428164;
  border-radius: .45rem;
  background: #142f26;
}
.notice[data-state="open"] h2 { color: #a7f3c7; }
.notice[data-state="open"] h2::before {
  content: "";
  display: inline-block;
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
  margin: 0 .55rem .15em 0;
  background: #6ee7a3;
}

.department-options { border: 0; padding: 0; margin-inline: 0; }
.department-options legend { padding: 0; font-size: inherit; }
.department-options .check-row { display: flex; align-items: center; }
.department-options input { width: 1rem; min-height: 1rem; padding: 0; }
