/* Azure Mono component adaptation: shadcn/ui controls, HeroUI notification anatomy.
 * Source pins and licenses: docs/plans/UI_COMPONENT_SOURCES.md and vendor notices.
 * Shared palette/type is loaded first from azure-mono.css. */
:root {
  color-scheme: dark;
  font-family: var(--nuca-font, "NUCA Open Sans", Arial, sans-serif);
  font-size: 16px;
  line-height: 1.55;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  isolation: isolate;
}

a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  color: var(--accent-text, #8baaff);
}
button,
input {
  font: inherit;
}
button,
a,
input,
summary {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a,
button {
  transition:
    background-color 0.16s ease,
    color 0.16s ease,
    transform 0.16s ease;
}
button:active,
.button:active {
  transform: translateY(1px);
}
:focus-visible {
  outline: 2px solid var(--focus, #2e6aff);
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: clamp(2.7rem, 4.9vw, 4.7rem);
  font-weight: 500;
  line-height: 1.07;
  letter-spacing: -0.035em;
  text-wrap: balance;
  margin-bottom: 1.5rem;
}
h2 {
  font-size: 1.45rem;
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: -0.02em;
}
h3 {
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.015em;
}
small {
  display: block;
  font-size: 0.83rem;
  color: var(--muted);
  margin-top: 0.3rem;
}
.muted {
  color: var(--muted);
}
.numeric {
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.eyebrow {
  color: var(--accent-text, #8baaff);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.025em;
  margin-bottom: 1.8rem;
}
.site-header,
main,
.site-footer {
  max-width: 1280px;
  margin: auto;
  padding-left: 3rem;
  padding-right: 3rem;
}
.site-header {
  height: 102px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  column-gap: 40px;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  min-width: 0;
}
.brand-emblem {
  display: block;
  position: relative;
  width: 88px;
  height: 66px;
  overflow: hidden;
}
.brand-emblem img {
  position: absolute;
  width: 124.55px;
  height: 124.55px;
  max-width: none;
  left: -17.88px;
  top: -21.85px;
  filter: contrast(1.2);
  mix-blend-mode: screen;
}
.site-header nav {
  display: flex;
  align-items: center;
  justify-self: center;
  gap: 28px;
}
.site-header nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 450;
  line-height: 20px;
  white-space: nowrap;
}
.site-header nav a:hover,
.site-header nav a[aria-current] {
  color: var(--text);
}
.site-header nav a[aria-current] { font-weight: 650; }
.site-header nav a[aria-current]::after {
  content: "";
  position: absolute;
  height: 2px;
  left: 6px;
  right: 6px;
  bottom: 0;
  background: var(--accent);
}
.site-header nav a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
  border-radius: 4px;
}
.account-nav {
  justify-self: end;
  min-width: 0;
  text-align: right;
}
.account-nav details {
  position: relative;
}
.account-nav summary {
  cursor: pointer;
  list-style: none;
  font-size: 0.9rem;
}
.account-nav summary span {
  margin-left: 0.6rem;
  color: var(--muted);
}
.account-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.6rem);
  z-index: 10;
  width: 220px;
  padding: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius, 1.3rem) - 4px);
  box-shadow: 0 12px 30px #0008;
  text-align: left;
}
.account-menu a,
.text-button {
  display: block;
  padding: 0.6rem 0.7rem;
  font-size: 0.875rem;
}
.text-button {
  border: 0;
  background: none;
  color: var(--muted);
  width: 100%;
  text-align: left;
}
.account-menu a:hover,
.text-button:hover {
  background: var(--line);
  border-radius: 5px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  background: var(--accent);
  color: var(--accent-ink);
  border: 1px solid transparent;
  border-radius: calc(var(--radius, 1.3rem) - 8px);
  min-height: 44px;
  padding: 0.72rem 1.15rem;
  font-size: 0.875rem;
  font-weight: 550;
  line-height: 1.4;
}
.button:hover {
  background: color-mix(in srgb, var(--accent) 88%, white);
  color: var(--accent-ink);
}
.button-secondary {
  background: transparent;
  border-color: var(--input-border, #414452);
  color: var(--text);
}
.button-secondary:hover {
  background: var(--raised);
  color: var(--text);
}
.button-small {
  padding: 0.55rem 0.85rem;
  font-size: 0.8rem;
  gap: 1rem;
}
.button-full {
  display: flex;
  width: 100%;
}
.button:disabled {
  opacity: 0.65;
  cursor: wait;
}
.page-intro {
  padding: 3.2rem 0 2.5rem;
}
.intro-bottom {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
}
.intro-bottom p {
  color: var(--muted);
  margin: 0;
  font-size: 1.03rem;
}
.quiet-label {
  font-size: 0.8rem;
  color: var(--muted);
}
.event-section {
  margin-bottom: 4rem;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1.35rem;
  gap: 2rem;
}
.section-heading h2 {
  margin: 0;
}
.section-heading > span {
  font-size: 0.8rem;
}
.event-feature {
  display: grid;
  grid-template-columns: 1fr 270px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius, 1.3rem);
  margin-bottom: 1rem;
  overflow: hidden;
}
.event-info {
  padding: 1.7rem 2.5rem 1.8rem;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--accent-text, #8baaff);
  font-size: 0.77rem;
  font-weight: 500;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.event-info h3 {
  font-size: 2.1rem;
  margin: 1.3rem 0 0.9rem;
  letter-spacing: -0.025em;
}
.event-info p {
  max-width: 56ch;
  color: var(--muted);
  font-size: 0.93rem;
  margin-bottom: 1.75rem;
}
.event-date {
  padding: 2.3rem 2rem;
  border-left: 1px solid var(--line);
  background: var(--raised);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: start;
  font-size: 0.84rem;
}
.date-month {
  color: var(--muted);
}
.date-day {
  font-size: 5rem;
  line-height: 1.2;
  letter-spacing: -0.04em;
  font-weight: 350;
  margin: 0.5rem 0;
}
.date-tba {
  font-size: 3.5rem;
}
.event-format {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 1.3rem;
  margin-top: 1.5rem;
  width: 100%;
  font-size: 0.74rem;
  color: var(--muted);
}
.event-compact .event-info h3 {
  font-size: 1.6rem;
}
.row-action {
  font-size: 0.8rem;
  color: var(--muted);
}
.event-history-wrap {
  border-radius: calc(var(--radius, 1.3rem) - 4px);
}
.event-history-table {
  min-width: 700px;
}
.event-history-table th {
  padding-block: 0.85rem;
}
.event-history-table td {
  padding-block: 1.25rem;
}
.event-history-table th:first-child,
.event-history-table td:first-child {
  width: 145px;
}
.event-history-table td:nth-child(2) {
  width: 38%;
}
.event-history-name {
  font-size: 1rem;
  font-weight: 550;
}
.event-history-status {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--muted);
  font-size: 0.82rem;
  white-space: nowrap;
}
.event-history-status > span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #71808a;
}
.event-history-actions {
  text-align: right;
  white-space: nowrap;
}
.event-history-actions .row-action + .row-action {
  margin-left: 1.5rem;
}
.event-history-actions .row-action-primary {
  color: var(--accent-text, #8baaff);
}
.event-history-actions .row-action span {
  margin-left: 0.35rem;
}
.site-footer {
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--muted);
  padding-top: 3rem;
  padding-bottom: 1.5rem;
  margin-top: 5rem;
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(220px, 1.8fr) repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}
.footer-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.65rem;
  color: var(--text);
  font-size: 1.4rem;
  font-weight: 650;
  letter-spacing: -0.025em;
}
.footer-brand span {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0;
}
.footer-identity p {
  margin: 0.75rem 0 0;
  max-width: 24ch;
  line-height: 1.6;
}
.footer-group h2 {
  margin: 0 0 0.8rem;
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0;
}
.footer-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-group a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 36px;
}
.footer-group a span {
  font-size: 0.8rem;
}
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  font-size: 0.75rem;
}
.footer-bottom p {
  margin: 0;
}
.demo-strip {
  text-align: center;
  background: var(--accent-soft, #000e39);
  color: var(--accent-text, #8baaff);
  padding: 0.45rem 1rem;
  font-size: 0.72rem;
}
.back-link {
  display: inline-block;
  margin: 2.2rem 0;
  color: var(--muted);
  font-size: 0.85rem;
}
.detail-heading {
  max-width: 900px;
  margin: 1.25rem 0 3.2rem;
}
.detail-heading .status {
  margin-bottom: 1.4rem;
}
.detail-heading h1 {
  font-size: 3.4rem;
}
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 5rem;
  align-items: start;
}
.detail-layout > * {
  min-width: 0;
}
.event-main > .content-section:first-child {
  margin-top: 0;
}
.event-layout > .event-main { grid-column: 1; grid-row: 1; }
.event-layout > .event-aside { grid-column: 2; grid-row: 1; }
.lead {
  font-size: 1.18rem;
  color: var(--secondary-text, #d9d9d9);
  line-height: 1.65;
}
.prose {
  max-width: 70ch;
  color: var(--secondary-text, #d9d9d9);
}
.prose p {
  margin-bottom: 1.5rem;
}
.prose h2 {
  margin-top: 2.8rem;
  color: var(--text);
}
.content-section {
  margin-top: 3.5rem;
}
.steps {
  padding: 0;
  list-style: none;
  counter-reset: steps;
}
.steps li {
  position: relative;
  padding: 0 0 1.3rem 2.4rem;
  counter-increment: steps;
}
.steps li:before {
  content: counter(steps);
  position: absolute;
  left: 0;
  top: 0.1rem;
  color: var(--accent-text, #8baaff);
  font-size: 0.8rem;
}
.steps strong {
  font-weight: 500;
}
.steps p {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0.4rem 0;
}
.event-aside {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius, 1.3rem);
  padding: 1.7rem;
}
.facts {
  margin: 0 0 2rem;
}
.facts div {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}
.facts dt {
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}
.facts dd {
  margin: 0;
  font-size: 0.9rem;
}
.fine-print {
  font-size: 0.78rem;
  line-height: 1.65;
  color: var(--muted);
  margin: 1rem 0;
}
.aside-note {
  font-size: 0.73rem;
  text-align: center;
  color: var(--muted);
  margin: 1.2rem 0 0;
}
.checkbox-label {
  display: flex;
  align-items: start;
  gap: 0.7rem;
  font-size: 0.78rem;
  color: var(--secondary-text, #d9d9d9);
  margin-bottom: 1.4rem;
  cursor: pointer;
}
.checkbox-label input {
  margin-top: 0.25rem;
  accent-color: var(--accent);
}
.notice {
  background: var(--raised);
  padding: 1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius, 1.3rem) - 6px);
  font-size: 0.88rem;
  line-height: 1.6;
}
.error {
  color: var(--error);
}
.messages {
  margin-top: 1.5rem;
}
.registered-label {
  font-size: 0.85rem;
  color: var(--accent-text, #8baaff);
  margin: 1.5rem 0 .75rem;
}
.event-aside > .button + .button {
  margin-top: .75rem;
}
.narrow-page {
  margin: 5rem 0 6rem;
}
.narrow-page h1 {
  font-size: 3.7rem;
}
.about-row {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
  gap: 4rem;
  padding: 2.2rem 0;
  border-top: 1px solid var(--line);
}
.about-row h3,
.about-row p {
  margin: 0;
}
.about-row h3 {
  font-size: 1.2rem;
}
.about-row p {
  max-width: 68ch;
  color: var(--secondary-text, #d9d9d9);
}
.about-row p + p {
  margin-top: 1.25rem;
}
.about-action {
  display: flex;
  justify-content: flex-end;
  margin-top: 2rem;
}
.settings-form {
  margin-top: 2.8rem;
}
.settings-form label {
  display: block;
  margin-bottom: 0.6rem;
  font-size: 0.85rem;
}
.settings-form input[type="text"],
input[type="email"],
input[type="password"] {
  display: block;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--input-border, #414452);
  border-radius: calc(var(--radius, 1.3rem) - 8px);
  padding: 0.9rem 1rem;
  color: var(--text);
}
input::placeholder {
  color: var(--muted);
}
.settings-form .button {
  margin-top: 1rem;
}
.errorlist {
  padding: 0;
  list-style: none;
  font-size: 0.85rem;
  color: var(--error);
}
.auth-page main {
  max-width: 1560px;
  padding: 40px clamp(16px, 4vw, 64px);
}

.login-shell {
  display: grid;
  grid-template-columns: 54% 46%;
  min-height: calc(100svh - 80px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
}
.auth-page:has(.demo-strip) .login-shell { min-height: calc(100svh - 112px); }
.login-art {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  overflow: hidden;
  min-height: 540px;
  padding: 32px;
  background-color: var(--bg);
  background-image: linear-gradient(35deg, transparent 27%, #145bb230 27.08%, transparent 27.25%), linear-gradient(145deg, transparent 31%, #145bb21c 31.08%, transparent 31.25%), linear-gradient(35deg, transparent 74%, #145bb21c 74.08%, transparent 74.25%);
}
.login-back { position: absolute; top: 32px; left: clamp(28px, 4vw, 64px); color: var(--muted); font-size: .9rem; white-space: nowrap; }
.login-back span { margin-right: 8px; }
.login-logo { position: absolute; inset: 7%; width: 86%; height: 86%; object-fit: contain; mix-blend-mode: lighten; }
.login-content { position: relative; display: flex; align-items: center; justify-content: center; padding: 100px clamp(28px, 4vw, 64px) 56px; }
.login-form-wrap { width: 100%; max-width: 430px; }
.login-form-wrap h1 { font-size: clamp(2.5rem, 4vw, 3.6rem); letter-spacing: -.035em; line-height: 1.1; margin: 0 0 24px; }
.login-description { color: var(--muted); font-size: 1rem; line-height: 1.65; margin: 0 0 36px; }
.onboarding-signout { position: absolute; top: 32px; left: clamp(28px, 4vw, 64px); }
.onboarding-signout .text-button { padding: 0; color: var(--muted); }
.login-field label { display: block; margin-bottom: 10px; font-size: .9rem; font-weight: 500; }
.login-field input { width: 100%; height: 58px; padding: 0 18px; border: 1px solid var(--input-border, #414452); border-radius: calc(var(--radius, 1.3rem) - 6px); background: var(--raised); }
.login-field input[aria-invalid="true"] { border-color: var(--error); }
.login-field .fine-print { margin: 10px 0 0; font-size: .78rem; }
.username-status { min-height: 1.6em; margin: 7px 0 24px; color: var(--muted); font-size: .82rem; }
.username-status[data-state="available"] { color: #9ed6bc; }
.username-status[data-state="invalid"] { color: var(--error); }
.login-google { position: relative; min-height: 58px; padding: 12px 48px; border: 1px solid #8e918f; gap: 14px; border-radius: calc(var(--radius, 1.3rem) - 6px); background: #131314; color: #e3e3e3; font-weight: 500; }
.login-google:hover { background: #202124; color: #fff; }
.login-google img { position: absolute; left: 18px; width: 20px; height: 20px; object-fit: contain; }
.login-google:disabled { opacity: .6; cursor: not-allowed; }
.login-unavailable { position: relative; padding: 16px 18px 16px 48px; border: 1px solid var(--line); border-radius: calc(var(--radius, 1.3rem) - 6px); color: var(--muted); font-size: .85rem; background: var(--raised); margin: 24px 0 0; }
.login-unavailable span { position: absolute; left: 18px; top: 20px; font-size: 1.15rem; }
.login-privacy { margin-top: 24px; font-size: .8rem; line-height: 1.7; }
.login-form-wrap .demo-login { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.login-form-wrap .demo-login .fine-print { margin: 6px 0 0; }
/* HeroUI Toast content/indicator/close anatomy, adapted to server-rendered messages. */
.nuca-toast-region {
  position: fixed;
  z-index: 1000;
  bottom: max(24px, env(safe-area-inset-bottom));
  right: max(24px, env(safe-area-inset-right));
  width: min(410px, calc(100vw - 32px));
  display: grid;
  gap: 12px;
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  padding: 4px;
  pointer-events: none;
}
.nuca-toast {
  --toast-status: var(--accent-text, #8baaff);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 12px 16px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius, 1.3rem) - 4px);
  box-shadow: 0 12px 32px #0008;
  pointer-events: auto;
  animation: toast-arrive 180ms cubic-bezier(.2,.8,.2,1);
}
.nuca-toast--success { --toast-status: #7edbb5; }
.nuca-toast--warning { --toast-status: #f2c478; }
.nuca-toast--error { --toast-status: var(--error, #ffb4a1); }
.nuca-toast__indicator {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 50%;
  color: var(--toast-status);
  background: color-mix(in srgb, var(--toast-status) 12%, transparent);
}
.nuca-toast__indicator svg { width: 18px; height: 18px; }
.nuca-toast__content { flex: 1; min-width: 0; padding-top: 2px; }
.nuca-toast__title { display: block; margin-bottom: 4px; color: var(--text); font-size: .875rem; font-weight: 600; line-height: 1.4; }
.nuca-toast__description { margin: 0; color: var(--secondary-text, #d9d9d9); font-size: .8125rem; line-height: 1.6; overflow-wrap: anywhere; }
.nuca-toast__close {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  margin: -3px -3px 0 0;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 1.4rem;
  line-height: 1;
}
.nuca-toast__close:hover { background: var(--raised); color: var(--text); }
@keyframes toast-arrive {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 900px) {
  .login-art { padding: 24px; }
  .login-content { padding: 88px 28px 40px; }
}
@media (max-width: 650px) {
  .auth-page main { padding: 12px; }
  .login-shell { grid-template-columns: 1fr; min-height: calc(100svh - 24px); border-radius: 18px; }
  .login-art { min-height: 260px; height: 260px; padding: 16px; }
  .login-content { padding: 80px 24px 36px; }
  .login-back, .onboarding-signout { top: 24px; left: 24px; }
  .nuca-toast-region { bottom: max(16px, env(safe-area-inset-bottom)); right: 16px; }
}
.empty-state {
  padding: 3rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.empty-state h3 {
  font-size: 1.45rem;
}
.empty-state p {
  color: var(--muted);
  max-width: 65ch;
}
.empty-line {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}
.profile-heading {
  display: flex;
  gap: 1.8rem;
  align-items: center;
  padding: 4.5rem 0 1rem;
}
.profile-heading h1 {
  font-size: 3.5rem;
  margin: 0 0 0.65rem;
  overflow-wrap: anywhere;
}
.profile-heading .eyebrow {
  margin-bottom: 0.7rem;
}
.profile-heading p {
  margin-bottom: 0;
}
.profile-heading > .button {
  margin-left: auto;
}
.avatar-profile {
  display: grid;
  place-items: center;
  width: 100px;
  height: 100px;
  border-radius: 18px;
  background: var(--accent-soft, #000e39);
  color: var(--accent-text, #8baaff);
  font-size: 2.6rem;
  font-weight: 350;
  flex-shrink: 0;
}
.badges {
  display: flex;
  gap: 1rem;
  margin-top: 1.4rem;
}
.badge {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  padding: 1rem 1.5rem 1rem 1rem;
  background: var(--surface);
  border-radius: 9px;
  font-size: 0.85rem;
}
.badge-symbol {
  color: var(--accent-text, #8baaff);
  font-size: 1.6rem;
}
.profile-heading ~ .event-section {
  margin-top: 4rem;
}
.table-wrap {
  position: relative;
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius, 1.3rem) - 6px);
  background: var(--surface);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
th {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 400;
  text-align: left;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--line);
  background: var(--raised);
}
td {
  padding: 1.5rem 1.2rem;
  border-bottom: 1px solid var(--line);
}
td:first-child,
th:first-child {
  padding-left: 1.5rem;
}
td:last-child,
th:last-child {
  padding-right: 1.5rem;
}
.results-table .place {
  width: 100px;
  padding-right: 2.5rem;
  font-size: 1.3rem;
  color: var(--muted);
}
.results-table .winner .place,
.results-table .winner .score {
  color: var(--text);
}
.results-table strong {
  font-weight: 500;
  font-size: 1.08rem;
}
.score {
  font-size: 1.2rem;
}
.roster {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 0.4rem;
}
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.7rem;
  z-index: 100;
}
.skip-link:focus {
  top: 1rem;
}
@media (max-width: 1000px) {
  .site-header,
  main,
  .site-footer {
    padding-left: 2rem;
    padding-right: 2rem;
  }
  .detail-layout {
    gap: 2rem;
    grid-template-columns: minmax(0, 1fr) 320px;
  }
  .quiet-label {
    display: none;
  }
  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
  }
  .footer-identity {
    grid-column: 1 / -1;
  }
}
@media (max-width: 700px) {
  .site-header,
  main,
  .site-footer {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
  .page-intro {
    padding-top: 3rem;
  }
  .intro-bottom br {
    display: none;
  }
  .event-feature {
    grid-template-columns: 1fr;
  }
  .event-info {
    padding: 1.7rem;
  }
  .event-date {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 1.3rem 1.7rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.3rem 1rem;
  }
  .date-day {
    grid-row: 1/4;
    grid-column: 2;
    text-align: right;
    margin: 0;
    font-size: 3rem;
  }
  .event-format {
    grid-column: 1/3;
  }
  .section-heading > span {
    display: none;
  }
  .detail-layout {
    grid-template-columns: 1fr;
  }
  .about-row {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
  .detail-heading h1,
  .narrow-page h1 {
    font-size: 2.6rem;
  }
  .detail-layout .event-aside {
    grid-row: 1;
  }
  .site-footer {
    margin-top: 3rem;
  }
  .footer-group a {
    min-height: 44px;
  }
  .profile-heading {
    flex-wrap: wrap;
    padding-top: 3rem;
  }
  .profile-heading h1 {
    font-size: 2.4rem;
  }
  .avatar-profile {
    width: 64px;
    height: 64px;
    font-size: 2rem;
  }
  .profile-heading > .button {
    margin-left: 0;
  }
  .badges {
    flex-wrap: wrap;
  }
  .narrow-page {
    margin-top: 3rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

.own-team-label {
  display: inline-block;
  margin-left: 0.8rem;
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--accent-text, #8baaff);
}
#your-team {
  scroll-margin-top: 2rem;
}
.contact-link {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (min-width: 701px) and (max-height: 850px) {
  .site-header {
    height: 86px;
  }
  .page-intro {
    padding: 2.2rem 0 1.7rem;
  }
  .page-intro .eyebrow {
    margin-bottom: 1.2rem;
  }
  .page-intro h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
  }
  .event-info h3 {
    margin: 1rem 0 0.7rem;
  }
  .event-info p {
    margin-bottom: 1.25rem;
  }
}

h1,
h3 {
  overflow-wrap: anywhere;
}
.account-nav summary {
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 700px) {
  .account-nav summary {
    max-width: 110px;
  }
}

.avatar {
  object-fit: cover;
  background: var(--raised);
  border-radius: 50%;
  flex-shrink: 0;
}
.avatar-nav {
  width: 36px;
  height: 36px;
}
.account-nav summary {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.6rem;
  min-height: 44px;
}
.account-nav summary::-webkit-details-marker {
  display: none;
}
.account-nav summary span {
  margin-left: 0;
}
.account-nav summary .account-nickname {
  color: var(--text);
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-heading h1 {
  margin-bottom: 0;
}
.event-history-actions .row-action {
  display: inline-block;
  padding: 0.6rem 0;
}
.event-history-actions .row-action:hover {
  color: var(--accent-text, #8baaff);
}
/* Reviewed activity: shared table, rank, profile and leaderboard components. */
.icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  vertical-align: middle;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.table-wrap:focus-visible {
  outline-offset: 4px;
}
tbody tr {
  transition: background-color 160ms ease;
}
tbody tr:hover,
tbody tr:focus-within {
  background: var(--raised);
}
tbody tr:last-child td {
  border-bottom: 0;
}
tbody tr.is-own,
#your-team {
  background: var(--accent-soft, #000e39);
}
table a:focus-visible {
  outline-offset: 3px;
}
.rank {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 52px;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.rank-gold {
  color: #f3c56a;
}
.rank-silver {
  color: #ccd5e2;
}
.rank-bronze {
  color: #dfa07c;
}
.rank-gold,
.rank-silver,
.rank-bronze {
  font-weight: 600;
}
.rank:not(.rank-gold):not(.rank-silver):not(.rank-bronze) {
  color: var(--text);
  font-weight: 500;
}
.results-table .place {
  width: 112px;
  padding-right: 1.2rem;
}
.results-table .place .rank {
  justify-content: flex-end;
}
.leaderboard-heading {
  padding: 3rem 0 1.8rem;
}
.leaderboard-heading h1 {
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  font-weight: 600;
  margin-bottom: 0.7rem;
}
.leaderboard-heading p {
  margin: 0;
}
.leaderboard-search {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 0 0 20px;
}
.search-field {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 18px;
  color: var(--muted);
}
.search-field:focus-within {
  border-color: var(--accent);
  outline: 2px solid var(--focus, #2e6aff);
  outline-offset: 2px;
}
.search-field input {
  min-width: 0;
  width: 100%;
  border: 0;
  border-radius: 0;
  padding: 14px 0;
  background: transparent;
  color: var(--text);
  font: inherit;
}
.search-field input:focus {
  outline: none;
}
.clear-search {
  padding: 12px 4px;
  color: var(--accent-text, #8baaff);
  font-size: 0.875rem;
}
.leaderboard-table {
  min-width: 740px;
}
.leaderboard-table th {
  padding-block: 15px;
  font-size: 0.8rem;
  white-space: nowrap;
}
.leaderboard-table th .icon {
  width: 17px;
  height: 17px;
  margin-left: 5px;
}
.leaderboard-table td {
  padding-top: 11px;
  padding-bottom: 11px;
}
.leaderboard-table td:nth-child(2) {
  width: 36%;
}
.leaderboard-table .score {
  font-size: 1rem;
  font-weight: 600;
}
.player-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-height: 40px;
  overflow-wrap: anywhere;
}
.player-link small {
  display: inline;
  margin-left: 10px;
  color: var(--accent-text, #8baaff);
  font-size: 0.72rem;
}
.table-empty {
  text-align: center;
  height: 260px;
}
.table-empty h2 {
  margin-bottom: 10px;
}
.table-empty p {
  color: var(--muted);
  margin: 0;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
  font-variant-numeric: tabular-nums;
}
.pagination a,
.pagination > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  border-radius: 6px;
}
.pagination a:hover {
  background: var(--raised);
}
.pagination .current {
  border: 1px solid var(--accent);
  color: var(--accent-text, #8baaff);
  background: var(--surface);
}
.leaderboard-note {
  max-width: 90ch;
  margin-top: 24px;
}
.profile-heading {
  padding: 3.25rem 0 0;
  gap: 28px;
}
.profile-heading .avatar-profile {
  width: 112px;
  height: 112px;
}
.profile-identity {
  min-width: 0;
}
.profile-identity h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 600;
  margin-bottom: 8px;
}
.profile-heading > .button {
  flex-shrink: 0;
}
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 13px;
}
.social-links a {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 0.85rem;
  min-height: 32px;
}
.social-links .icon {
  width: 18px;
  height: 18px;
  color: var(--accent-text, #8baaff);
}
.profile-ranking {
  display: flex;
  gap: 28px;
  margin: 24px 0 28px 140px;
  font-size: 0.84rem;
  color: var(--muted);
}
.profile-ranking a,
.profile-ranking > span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.profile-ranking strong {
  color: var(--text);
  font-size: 1.06rem;
  font-weight: 550;
  font-variant-numeric: tabular-nums;
}
.profile-ranking .icon {
  width: 16px;
  height: 16px;
  color: var(--accent-text, #8baaff);
}
.profile-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
}
.profile-stats > div {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 18px;
  align-items: center;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius, 1.3rem) - 6px);
}
.profile-stats .icon {
  grid-row: 1 / 3;
  width: 27px;
  height: 27px;
  color: var(--accent-text, #8baaff);
}
.profile-stat--wins .icon { color: #ddbd78; }
.profile-stat--podiums .icon { color: #b9c8dd; }
.profile-stat--solves .icon { color: #8fcaad; }
.profile-stat--first-bloods .icon { color: var(--nuca-first-blood); }
.profile-stats dt {
  grid-column: 2;
  grid-row: 2;
  font-size: 0.78rem;
  color: var(--muted);
}
.profile-stats dd {
  grid-column: 2;
  grid-row: 1;
  margin: 0 0 2px;
  font-size: 1.65rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.profile-section {
  margin-top: 40px;
}
.profile-section h2 {
  font-size: 1.5rem;
  font-weight: 550;
  margin-bottom: 18px;
}
.activity-panel {
  display: flex;
  align-items: center;
  gap: 52px;
  padding: 24px 48px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius, 1.3rem) - 6px);
}
.category-radar {
  display: block;
  width: min(42%, 360px);
  height: auto;
  flex-shrink: 0;
  overflow: visible;
}
.radar-ring {
  fill: none;
  stroke: var(--input-border, #414452);
  stroke-width: 1;
}
.radar-axis {
  stroke: var(--input-border, #414452);
  stroke-width: 1;
}
.radar-shape {
  fill: color-mix(in srgb, var(--accent) 15%, transparent);
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linejoin: round;
}
.category-radar text {
  fill: var(--muted);
  font-size: 12px;
}
.category-breakdown {
  flex: 1;
  min-width: 0;
}
.category-breakdown > p {
  font-size: 0.85rem;
  max-width: 45ch;
}
.category-list {
  margin: 20px 0 0;
}
.category-list > div {
  display: grid;
  grid-template-columns: minmax(100px, 1fr) 1fr;
  align-items: center;
  gap: 18px;
  margin-top: 12px;
}
.category-list dt {
  font-size: 0.85rem;
  overflow-wrap: anywhere;
}
.category-list dd {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0;
  font-variant-numeric: tabular-nums;
  font-size: 0.85rem;
}
.category-track {
  display: block;
  height: 4px;
  width: 100%;
  background: var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.category-track > span {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: inherit;
}
.category-details {
  margin-top: 20px;
  font-size: 0.85rem;
}
.category-details summary {
  cursor: pointer;
  color: var(--accent-text, #8baaff);
}
.category-details dl > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-block: 4px;
}
.category-details dt {
  overflow-wrap: anywhere;
}
.activity-empty {
  justify-content: center;
  padding-block: 38px;
  gap: 14px;
}
.activity-empty > .icon {
  color: var(--accent-text, #8baaff);
}
.activity-empty p {
  margin: 0;
  font-size: 0.9rem;
}
.history-table {
  min-width: 730px;
}
.history-table th {
  padding-block: 13px;
}
.history-table td {
  padding-top: 20px;
  padding-bottom: 20px;
}
.history-table td:first-child {
  width: 36%;
}
.history-table td:first-child > a {
  font-weight: 550;
}
.history-table .score {
  font-size: 1rem;
}
.team-name {
  display: inline-flex;
  gap: 12px;
  align-items: center;
}
.team-name .icon {
  color: var(--muted);
  width: 18px;
  height: 18px;
}
.row-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 40px;
}
.social-settings {
  border: 0;
  padding: 0;
  margin: 32px 0 16px;
}
.social-settings legend {
  font-size: 1.2rem;
  font-weight: 550;
  margin-bottom: 8px;
}
.social-settings > p {
  font-size: 0.85rem;
}
@media (max-width: 1050px) {
  .profile-stats {
    gap: 10px;
  }
  .profile-stats > div {
    padding: 18px 14px;
    column-gap: 12px;
  }
  .activity-panel {
    padding: 24px;
    gap: 32px;
  }
}
@media (max-width: 900px) {
  .site-header {
    height: 138px;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: 60px 54px;
    column-gap: 16px;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .brand {
    grid-column: 1;
    grid-row: 1;
  }
  .brand-emblem {
    width: 76px;
    height: 57px;
  }
  .brand-emblem img {
    width: 107.57px;
    height: 107.57px;
    left: -15.44px;
    top: -18.82px;
  }
  .site-header nav {
    grid-column: 1 / -1;
    grid-row: 2;
    gap: 25px;
  }
  .account-nav {
    grid-column: 2;
    grid-row: 1;
  }
  .site-header .account-nickname {
    display: none;
  }
}
@media (max-width: 700px) {
  .leaderboard-heading {
    padding-top: 32px;
  }
  .leaderboard-heading .lead {
    font-size: 1rem;
  }
  .leaderboard-search {
    flex-wrap: wrap;
  }
  .search-field {
    flex-basis: 65%;
    padding-inline: 12px;
  }
  .leaderboard-search .button {
    padding-inline: 12px;
  }
  .profile-heading {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    padding-top: 32px;
    gap: 18px;
  }
  .profile-heading .avatar-profile {
    width: 72px;
    height: 72px;
  }
  .profile-identity {
    flex: 1;
  }
  .profile-identity h1 {
    font-size: 1.9rem;
  }
  .profile-heading > .button {
    margin-left: 0;
    grid-column: 2;
    justify-self: start;
  }
  .profile-ranking {
    margin: 24px 0;
    flex-wrap: wrap;
    gap: 12px 24px;
  }
  .profile-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .profile-stats > div:last-child {
    grid-column: 1 / -1;
  }
  .profile-stats dd {
    font-size: 1.5rem;
  }
  .profile-section {
    margin-top: 32px;
  }
  .activity-panel {
    flex-direction: column;
    gap: 8px;
    padding: 20px;
    align-items: stretch;
  }
  .category-radar {
    width: 100%;
    max-width: 360px;
    margin: auto;
  }
  .activity-empty {
    align-items: center;
    text-align: center;
    gap: 16px;
  }
  .table-empty {
    text-align: left;
  }
}
@media (max-width: 700px) {
  .account-nav summary .account-nickname,
  .account-nav summary > span:last-child {
    display: none;
  }
}

/* Privacy and document tasks extend the existing flat account surfaces. */
.legal-copy { width: 100%; margin: 3rem 0; }
.legal-copy > h2 { margin-top: 2.5rem; }
.legal-copy p { line-height: 1.7; }
.consent-fields { display: grid; gap: 1rem; }
.consent-fields > .button, .certificate-name-form > .button { justify-self: start; }
.consent-fields .checkbox-label, .certificate-name-form .checkbox-label { align-items: flex-start; }
.checkbox-label input[type="checkbox"] { flex: 0 0 auto; width: 1.1rem; min-height: 1.1rem; margin-top: .25rem; }
.login-form .consent-fields { margin-bottom: 1.25rem; font-size: .875rem; }
.certificate-name-form { display: grid; gap: 1rem; }
.certificate-row { display: flex; justify-content: space-between; gap: 2rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.certificate-row h3 { margin: 0; }
.certificate-row small, .verification-facts dd { overflow-wrap: anywhere; }
.certificate-actions { display: grid; align-content: center; gap: .75rem; }
.certificate-check-form { display: grid; gap: 1rem; justify-items: start; margin-top: 1.5rem; }
.certificate-check-form input[type="file"] { max-width: 100%; }
.certificate-check-form > .button { margin-top: .5rem; }
.certificate-check-form [data-check-result]:empty { display: none; }
.verification-facts { display: grid; grid-template-columns: 11rem 1fr; gap: .75rem 1.5rem; }
.verification-facts dt { color: var(--muted); }
.verification-facts dd { margin: 0; }
.challenge-access code { overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .certificate-row { flex-direction: column; gap: 1rem; }
  .verification-facts { grid-template-columns: 1fr; gap: .35rem; }
  .verification-facts dd { margin-bottom: .75rem; }
}
.certificate-name-form input[type="text"] { width: 100%; min-height: 48px; padding: .7rem .9rem; border: 1px solid var(--input-border, #414452); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; }
.certificate-name-form input[type="text"]:focus-visible { outline: 2px solid var(--focus, #2e6aff); outline-offset: 2px; }
/* Reviewed result exports and recognition follow the shared page width. */
.share-result { padding: 3rem; border: 1px solid var(--line); background: var(--surface); margin-block: 2rem; }
.share-result h2 { font-size: clamp(2rem, 5vw, 4rem); margin-block: 1.5rem; overflow-wrap: anywhere; }
.share-placement { font-size: clamp(1.75rem, 4vw, 3rem); font-variant-numeric: tabular-nums; color: var(--accent-text, #8baaff); }
.share-placement span { display: block; font-size: 1rem; color: var(--muted); }
@media (max-width: 700px) { .share-result { padding: 1.25rem; } }
@media print { body:has(.share-result) .site-header, body:has(.share-result) .site-footer, body:has(.share-result) .back-link, body:has(.share-result) .detail-heading { display: none; } .share-result { break-inside: avoid; print-color-adjust: exact; } }
.event-aside form input[type="text"] { display: block; width: 100%; min-height: 44px; padding: .65rem .8rem; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: .375rem; margin-top: .5rem; }
.event-aside form input[type="text"]:focus-visible { outline: 2px solid var(--focus, #2e6aff); outline-offset: 2px; }
.event-aside form p > label { display: block; margin-top: 1rem; }

/* Reviewed event results and awards share a single scannable table. */
.profile-history-table { min-width: 1120px; table-layout: fixed; }
.profile-history-table th, .profile-history-table td { padding: 1.25rem; vertical-align: top; }
.profile-history-table thead th { color: var(--muted); font-size: .75rem; font-weight: 500; background: var(--surface); }
.profile-history-table thead th:first-child { width: 22%; }
.profile-history-table thead th:nth-child(2) { width: 17%; }
.profile-history-table thead th:nth-child(3) { width: 39%; }
.profile-history-table thead th:nth-child(4), .profile-history-table thead th:nth-child(5) { width: 11%; }
.profile-history-table tbody th { text-align: left; font-weight: 550; font-size: .9rem; }
.profile-history-event a { display: block; overflow-wrap: anywhere; }
.profile-history-event .icon { width: 14px; height: 14px; color: var(--muted); }
.profile-history-event time { display: block; margin-top: .5rem; color: var(--muted); font-size: .75rem; font-weight: 400; }
.profile-history-team { font-size: .85rem; overflow-wrap: anywhere; }
.profile-history-table .rank { justify-content: flex-end; }
.profile-history-table .score { font-weight: 550; }
.recognition-badges { display: flex; flex-wrap: nowrap; gap: .35rem; list-style: none; padding: 0; margin: 0; }
.recognition-badges li { min-width: 0; }
.recognition-badge { --award-color: var(--muted); display: inline-flex; align-items: center; gap: .45rem; min-height: 32px; padding: .35rem .5rem; border: 1px solid var(--line); border-radius: .5rem; color: var(--secondary-text); font-size: .7rem; white-space: nowrap; line-height: 1.4; }
.recognition-badge .icon { width: 16px; height: 16px; color: var(--award-color); flex-shrink: 0; }
.recognition-badge--participation { --award-color: #88b5ed; }
.recognition-badge--best_solo { --award-color: #b69cff; }
.recognition-badge--full_clear { --award-color: var(--nuca-full-clear); }
.recognition-badge--first_solve { --award-color: #8fcaad; }
.recognition-badge--first_blood { --award-color: var(--nuca-first-blood); }
.recognition-badge--category_sweep { --award-color: #9cb9d5; }

/* Prepare is a checklist followed by an optional form, in the same reading order at every width. */
.preparation-heading { margin-bottom: 2.5rem; }
.preparation-heading .preparation-event-name { margin-bottom: .5rem; color: var(--secondary-text); font-size: 1rem; font-weight: 550; }
.preparation-heading > p:last-child { margin-bottom: 0; color: var(--muted); }
.preparation-layout { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 3rem; }
.preparation-layout h2 { margin: 0 0 1.25rem; font-size: 1.45rem; }
.preparation-layout .preparation-aside { background: none; border: 0; padding: 0; border-radius: 0; }
.preparation-aside > p { color: var(--muted); font-size: .9rem; margin-bottom: 1.5rem; }
.preparation-checklist { display: grid; gap: 1.5rem; margin: 1.5rem 0 2rem; }
.preparation-checklist li { padding-bottom: 0; }
.preparation-checklist p { margin-bottom: 0; }
.preparation-form { display: grid; gap: 1.5rem; }
.preparation-form .team-preference-fieldset { min-width: 0; border: 0; padding: 0; margin: 0; }
.team-preference-fieldset legend { font-size: .85rem; font-weight: 550; padding: 0; margin-bottom: .75rem; }
.team-preference-options { display: grid; gap: .5rem; }
.team-preference-option { display: flex; align-items: center; gap: .75rem; min-height: 44px; padding: .5rem .75rem; border: 1px solid var(--line); border-radius: .5rem; color: var(--secondary-text); font-size: .85rem; cursor: pointer; }
.team-preference-option:has(input:checked) { border-color: var(--focus); background: var(--accent-soft); color: var(--text); }
.team-preference-option:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 3px; }
.team-preference-option input[type="radio"] { flex: 0 0 auto; width: 18px; height: 18px; min-height: 0; margin: 0; accent-color: var(--accent); }
.preparation-field { display: grid; gap: .5rem; }
.preparation-field > label { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; font-size: .85rem; font-weight: 550; }
.preparation-field > label > span { color: var(--muted); font-size: .75rem; font-weight: 400; }
.preparation-aside .preparation-form input[type="text"] { margin-top: 0; border-color: var(--input-border); }
.preparation-form > .button { justify-self: start; }
.preparation-form .errorlist { margin: 0; padding-left: 1.2rem; color: var(--error); font-size: .8rem; }
.results-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-top: 1.5rem; }
@media (max-width: 900px) {
  .event-layout { grid-template-columns: minmax(0, 1fr); }
  .event-layout > .event-aside, .event-layout > .event-main { grid-column: auto; grid-row: auto; }
  .preparation-layout { grid-template-columns: minmax(0, 1fr); gap: 3rem; }
  .detail-layout.preparation-layout > .preparation-aside { grid-row: auto; border-top: 1px solid var(--line); padding-top: 2rem; }
}

.icon.social-brand { width: 16px; height: 16px; vertical-align: -.15em; margin-right: .3rem; }

.recognition-count { color: var(--award-color); font-weight: 650; font-variant-numeric: tabular-nums; }
