:root {
  color-scheme: light;
  --navy: #092238;
  --ink: #112c40;
  --muted: #456173;
  --line: #d7e3ea;
  --teal: #45e1df;
  --dark-teal: #0c6572;
  --paper: #f3f8fa;
  font-family: Aptos, 'Segoe UI', system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  font-synthesis: none;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: var(--dark-teal); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid #07899e; outline-offset: 3px; }
.topbar {
  min-height: 72px; display: flex; align-items: center; justify-content: space-between;
  gap: 18px; padding: 12px max(5vw, calc((100vw - 1240px) / 2)); color: white;
  background: #081d31; border-bottom: 1px solid #ffffff22;
}
.brand { display: flex; align-items: center; gap: 8px; color: white; font-size: .98rem; font-weight: 750; text-decoration: none; }
.brand img { margin-right: 4px; }
.brand span { color: #b0c5d6; font-weight: 500; }
.top-link { text-decoration: none; color: white; font-weight: 650; white-space: nowrap; }
.top-link span { margin-left: 8px; color: var(--teal); }
.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 430px); align-items: center;
  column-gap: clamp(32px, 7vw, 124px); padding: clamp(42px, 6vw, 90px) max(5vw, calc((100vw - 1240px) / 2));
  background: radial-gradient(ellipse at 96% 100%, #10708c 0%, transparent 52%), linear-gradient(126deg, #092238 18%, #153956 100%);
  color: white;
}
.eyebrow { display: flex; gap: 10px; align-items: center; text-transform: uppercase; font-size: .77rem; letter-spacing: .17em; font-weight: 800; color: var(--dark-teal); }
.eyebrow span { width: 9px; height: 9px; border-radius: 100%; background: currentColor; }
.eyebrow b { opacity: .65; }
.hero .eyebrow { color: var(--teal); }
h1 { margin: 23px 0 18px; font-weight: 750; letter-spacing: -.068em; font-size: clamp(3rem, 6.5vw, 6.4rem); line-height: .99; }
h1 span { display: block; margin-bottom: 13px; letter-spacing: -.02em; font-size: clamp(1rem, 2.45vw, 1.75rem); font-weight: 550; line-height: 1.2; color: #d4e5ef; }
h1 em { display: block; color: #8df4ee; font-style: normal; }
p { line-height: 1.55; }
.hero p { max-width: 36ch; color: #d2e5f1; font-size: clamp(1rem, 1.6vw, 1.22rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 20px 26px; align-items: center; margin-top: 28px; }
.date { display: flex; align-items: center; gap: 10px; font-size: .73rem; letter-spacing: .11em; font-weight: 800; }
.date strong { font-size: 2.8rem; line-height: 1; letter-spacing: -.065em; }
.poster { width: 100%; margin: 0; border: 1px solid #ffffff55; border-radius: 23px; overflow: hidden; box-shadow: 0 20px 52px #030e2290; }
.poster img { width: 100%; height: auto; display: block; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 12px; min-height: 46px; padding: 11px 17px; border: 1px solid transparent; border-radius: 8px; font: inherit; font-weight: 750; cursor: pointer; text-decoration: none; text-align: center; }
.button:disabled { cursor: wait; opacity: .6; }
.primary { background: var(--navy); color: white; }
.primary:hover { background: #174461; }
.hero .primary { color: var(--navy); background: var(--teal); }
.hero .primary:hover { background: #a3f3f0; }
.secondary { background: white; border-color: var(--line); color: var(--ink); }
.secondary:hover { background: #edf7fa; }
.registration, .privacy, .admin-shell { width: min(90vw, 1240px); margin: auto; }
.registration { display: grid; grid-template-columns: minmax(230px, .68fr) minmax(0, 1.32fr); gap: clamp(26px, 6vw, 105px); padding: clamp(45px, 6vw, 86px) 0; }
h2 { margin: 16px 0 10px; font-size: clamp(1.85rem, 3vw, 3.1rem); letter-spacing: -.055em; line-height: 1.06; }
h3 { margin: 0 0 6px; }
.registration-intro p, .privacy p, .hint, .panel p, .muted { color: var(--muted); }
.price { display: grid; margin: 26px 0 0; padding: 0 0 0 15px; border-left: 3px solid #14a0a9; }
.price strong { font-size: 1.65rem; }
.price span { font-size: .82rem; color: var(--muted); }
.panel { padding: clamp(18px, 3vw, 32px); background: white; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 12px 38px #1e4f6810; min-width: 0; }
.notice { padding: 13px 16px; background: #e8f7fa; border: 1px solid #b9e0ea; color: #17495b; border-radius: 8px; margin-bottom: 18px; line-height: 1.45; }
.notice.error { background: #fff1ed; border-color: #ffd6cb; color: #83291c; }
form, fieldset { margin: 0; }
fieldset { border: 0; padding: 0; margin-bottom: 18px; }
legend, label { font-size: .93rem; font-weight: 700; }
legend { margin-bottom: 8px; }
label { display: grid; gap: 6px; min-width: 0; }
input:not([type=radio], [type=checkbox]), select { font: inherit; font-weight: 450; width: 100%; min-height: 44px; border: 1px solid #a9bcc9; border-radius: 7px; padding: 8px 10px; background: white; color: var(--ink); }
input[type=radio], input[type=checkbox] { accent-color: #096a77; width: 17px; height: 17px; flex: none; }
.fields, .choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.wide { grid-column: 1 / -1; }
.choices label { display: flex; align-items: center; gap: 7px; padding: 9px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.choices label:has(:checked) { background: #e9f8f8; border-color: #418b9b; }
.choices label:has(:disabled) { color: var(--muted); background: #f6f7f9; cursor: default; }
.choices small { display: block; color: var(--muted); font-size: .77rem; font-weight: 500; }
#staff-field { margin-bottom: 13px; }
.check { display: flex; align-items: center; gap: 7px; margin: 16px 0; font-weight: 450; }
.hint { margin: 12px 0 0; font-size: .86rem; }
details { margin-top: 17px; padding-top: 14px; border-top: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 650; color: var(--dark-teal); }
details form { display: grid; align-items: end; grid-template-columns: 1fr auto; gap: 10px; margin-top: 10px; }
.button-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.protocol { overflow-wrap: anywhere; font-size: .88rem; }
.privacy { border-top: 1px solid var(--line); padding: 25px 0 40px; }
.privacy h2 { font-size: 1.35rem; }
.privacy p { max-width: 82ch; }
footer { display: flex; justify-content: space-between; gap: 15px; padding: 20px max(5vw, calc((100vw - 1240px) / 2)); background: var(--navy); color: #daebf6; font-size: .83rem; }
footer a { color: white; }
.admin-shell { padding: 35px 0 55px; }
.admin-shell h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
.admin-shell h2 { font-size: 1.55rem; margin: 0 0 14px; }
.admin-shell .panel + .panel { margin-top: 18px; }
.admin-login { max-width: 450px; }
.admin-login label + label, .admin-login button { margin-top: 12px; }
.admin-top, .table-tools { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.admin-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; margin-bottom: 18px; }
.admin-grid .panel + .panel { margin-top: 0; }
.admin-grid .button { margin-top: 12px; }
.stats { display: flex; gap: 12px; flex-wrap: wrap; margin: 0 0 15px; }
.stat { flex: 1 1 130px; padding: 12px; border-radius: 8px; background: #eaf6f8; }
.stat strong { display: block; font-size: 1.5rem; }
.table-scroll { overflow: auto; margin-top: 15px; }
table { border-collapse: collapse; width: 100%; text-align: left; }
th, td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
th { font-size: .87rem; background: var(--paper); }
td { font-size: .92rem; }
td small { display: block; color: var(--muted); }
code { overflow-wrap: anywhere; }
@media (max-width: 810px) {
  .hero { column-gap: 26px; grid-template-columns: minmax(0, 1fr) minmax(220px, .8fr); }
  .registration { grid-template-columns: 1fr; }
}
@media (max-width: 580px) {
  .brand { gap: 5px; }
  .brand span { display: none; }
  .hero { grid-template-columns: 1fr; row-gap: 29px; }
  .poster { max-width: 380px; }
  .fields, .admin-grid, details form { grid-template-columns: 1fr; }
  footer { flex-direction: column; }
}
