/* Registration and sign-in views share the application shell and brand tokens. */
.team-entries-page { display: grid; max-width: 70rem; margin-inline: auto; gap: 1.5rem; }
.registration-heading { min-width: 0; }
.registration-heading h1, .entry-profile-heading h1 { margin: .25rem 0 .65rem; font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1.18; }
.registration-heading > p:last-child, .entry-profile-heading > p:last-child { max-width: 70ch; margin-bottom: 0; color: var(--muted); }
.registration-heading .eyebrow, .entry-profile-heading .eyebrow, .new-team-panel .eyebrow, .registration-auth-card .eyebrow { margin: 0 0 .6rem; color: var(--accent); font-size: .75rem; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.registration-title-row { display: flex; min-width: 0; align-items: center; flex-wrap: wrap; gap: .6rem 1rem; }
.registration-title-row h1 { margin-block: .25rem; overflow-wrap: anywhere; }
.registration-back-link { width: fit-content; color: var(--accent); font-size: .9rem; font-weight: 650; text-decoration: none; }
.registration-back-link:hover { text-decoration: underline; text-underline-offset: .2em; }
.registration-notice { display: flex; min-width: 0; margin: 0; padding: 1.1rem 1.25rem; align-items: flex-start; gap: .9rem; border: 1px solid var(--border); border-radius: .8rem; background: var(--accent-soft); color: var(--text); }
.registration-notice > svg { width: 1.5rem; height: 1.5rem; flex: 0 0 auto; margin-top: .1rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.registration-notice h2 { margin: 0 0 .2rem; font-size: 1rem; }
.registration-notice p { margin: 0; font-size: .95rem; }
.registration-notice-closed { border-color: #e6d7b9; background: #fff7e7; color: #624b24; }
.registration-notice-success { border-color: #bdd4bf; color: var(--accent-hover); font-weight: 650; }
.team-entry-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.team-entry-card { display: flex; min-width: 0; padding: 1.5rem; flex-direction: column; border: 1px solid var(--border); border-radius: 1rem; background: var(--surface); box-shadow: 0 4px 18px rgb(28 48 39 / 3%); }
.team-entry-card-heading { display: flex; min-width: 0; align-items: flex-start; justify-content: space-between; gap: .85rem; flex-wrap: wrap; }
.team-entry-card-heading > div { min-width: 0; flex: 1 1 14rem; }
.team-entry-card h2 { margin: .3rem 0 0; font-size: 1.3rem; overflow-wrap: anywhere; }
.team-entry-edition { margin: 0; color: var(--muted); font-size: .85rem; overflow-wrap: anywhere; }
.entry-status { display: inline-flex; width: fit-content; flex: 0 0 auto; padding: .3rem .65rem; align-items: center; gap: .4rem; border-radius: 2rem; background: #edf0e9; color: #465347; font-size: .75rem; font-weight: 750; line-height: 1.4; white-space: nowrap; }
.entry-status::before { width: .38rem; height: .38rem; border-radius: 50%; background: currentColor; content: ""; }
.entry-status-draft { background: #fff2d8; color: #725516; }
.entry-status-accepted { background: var(--accent-soft); color: var(--accent-hover); }
.entry-status-withdrawn { background: #efecea; color: #655f59; }
.team-entry-metadata { margin-block: 1.5rem; }
.team-entry-metadata dt { margin-bottom: .3rem; color: var(--muted); font-size: .8rem; }
.team-entry-metadata dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.team-entry-metadata dd span { display: block; margin-top: .2rem; color: var(--muted); font-size: .9rem; font-weight: 400; }
.team-entry-card-actions { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--border); }
.team-entry-card-actions .button { width: 100%; justify-content: space-between; }
.team-entry-empty { display: grid; min-width: 0; grid-column: 1 / -1; justify-items: center; padding: clamp(2rem, 6vw, 4rem) 1.5rem; border: 1px solid var(--border); border-radius: 1rem; background: var(--surface); text-align: center; }
.empty-state-icon { display: grid; width: 5rem; height: 5rem; margin-bottom: 1.25rem; place-items: center; border-radius: 1.5rem; background: var(--accent-soft); color: var(--accent); }
.empty-state-icon svg { width: 2.8rem; height: 2.8rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.team-entry-empty h2 { margin: 0 0 .6rem; font-size: 1.35rem; }
.team-entry-empty p { max-width: 49ch; margin: 0 0 1.4rem; color: var(--muted); }
.new-team-panel { display: grid; min-width: 0; padding: 1.5rem; grid-template-columns: minmax(0, 1fr) minmax(16rem, 1fr); gap: 1.5rem 2rem; border: 1px solid #c3d6bf; border-radius: 1rem; background: var(--accent-soft); scroll-margin-top: 1.5rem; }
.new-team-panel h2 { margin: 0 0 .5rem; font-size: 1.35rem; }
.new-team-panel p:last-child { margin: 0; color: var(--muted); }
.new-team-panel form { display: grid; gap: .85rem; }
.new-team-panel .entry-field { margin: 0; }
.new-team-panel button { justify-content: space-between; }

/* A single, sectioned form; team size and editable fields come from the server. */
.team-form-page { display: grid; width: 100%; max-width: 60rem; margin-inline: auto; gap: 1.5rem; }
.entry-form-surface { min-width: 0; margin: 0; padding: clamp(1.25rem, 4vw, 2rem); border: 1px solid var(--border); border-radius: 1rem; background: var(--surface); box-shadow: 0 4px 18px rgb(28 48 39 / 3%); }
.entry-editable-fields { min-width: 0; margin: 0; padding: 0; border: 0; }
.entry-editable-fields > section + section, .entry-members-section, .entry-members-section + section, .entry-members-section ~ section { margin-top: 1.75rem; padding-top: 1.75rem; border-top: 1px solid var(--border); }
.entry-form-surface > section + section { margin-top: 1.75rem; padding-top: 1.75rem; border-top: 1px solid var(--border); }
.entry-form-surface h2 { margin: 0 0 1rem; font-size: 1.2rem; }
.entry-form-surface h3 { font-size: 1rem; }
.entry-form-surface section > p { color: var(--muted); }
.entry-section-heading { display: flex; align-items: flex-start; gap: .8rem; margin-bottom: 1.25rem; }
.entry-section-heading > span { display: grid; width: 2rem; height: 2rem; flex: 0 0 auto; margin-top: -.2rem; place-items: center; border-radius: .6rem; background: var(--accent-soft); color: var(--accent); font-size: .75rem; font-weight: 750; }
.entry-section-heading h2 { margin: 0 0 .35rem; font-size: 1.2rem; }
.entry-section-heading p { max-width: 65ch; margin: 0; color: var(--muted); font-size: .9rem; }
.entry-field { display: grid; min-width: 0; margin-bottom: 1rem; gap: .4rem; }
.entry-field label { margin: 0; font-size: .9rem; font-weight: 650; }
.entry-field input, .entry-field select { width: 100%; min-width: 0; min-height: 2.9rem; box-sizing: border-box; margin: 0; padding: .7rem .85rem; border: 1px solid #849681; border-radius: .5rem; background: var(--surface); color: var(--text); font: inherit; }
.entry-field :is(input, select):hover:not(:disabled) { border-color: var(--accent); }
.entry-field :is(input, select):disabled, .entry-field input[readonly] { background: var(--bg); color: var(--muted); opacity: 1; }
.entry-field :is(input, select)[aria-invalid=true] { border: 2px solid #a63f33; background: #fff9f6; }
.entry-fields-two, .entry-fields-three { display: grid; min-width: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.entry-fields-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.entry-members-section { min-width: 0; margin-inline: 0; padding-inline: 0; padding-bottom: 0; border-inline: 0; border-bottom: 0; }
.entry-members-section legend { max-width: 100%; padding: 0 .75rem 0 0; color: var(--text); font-size: 1.1rem; font-weight: 700; line-height: 1.5; }
.entry-members-section legend > span { margin-right: .5rem; color: var(--accent); font-size: .8rem; }
.entry-member-grid { display: grid; min-width: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.entry-member-card { min-width: 0; padding: 1.1rem; border: 1px solid var(--border); border-radius: .75rem; background: var(--bg); }
.entry-member-card h3 { display: flex; align-items: center; gap: .5rem; margin: 0 0 1rem; }
.entry-member-card h3 span { display: grid; width: 1.5rem; height: 1.5rem; place-items: center; border: 1px solid #c3d6bf; border-radius: 50%; color: var(--accent); font-size: .7rem; }
.entry-member-card .entry-field:last-child { margin-bottom: 0; }
.entry-consent-group { padding-block: .2rem .9rem; }
.entry-consent-group + .entry-consent-group { padding-top: 1rem; border-top: 1px solid var(--border); }
.entry-consent-statement { margin: 0 0 .75rem; font-size: .95rem; line-height: 1.6; }
.entry-consent { display: flex; align-items: flex-start; gap: .65rem; margin-block: .75rem; }
.entry-consent input[type=checkbox], .entry-withdraw-confirmation input[type=checkbox] { width: 1.15rem; height: 1.15rem; flex: 0 0 auto; margin: .15rem 0 0; accent-color: var(--accent); }
.entry-consent label { display: inline; min-width: 0; margin: 0; font-size: .95rem; font-weight: 650; }
.entry-form-help { font-size: .85rem; }
.entry-form-actions { display: flex; margin-top: 1.75rem; padding-top: 1.5rem; flex-wrap: wrap; justify-content: flex-end; gap: .75rem; border-top: 1px solid var(--border); }
.entry-error-summary { margin: 0; padding: 1.1rem 1.25rem; border: 1px solid #dcb5a9; border-inline-start: 4px solid #a63f33; border-radius: .65rem; background: #fff4f0; color: #87372c; }
.entry-error-summary h2 { margin: 0 0 .5rem; font-size: 1rem; }
.entry-error-summary ul { margin: .5rem 0 0; padding-left: 1.25rem; }
.entry-error-summary a { color: inherit; }
.entry-field-error { margin: 0; color: #963b30; font-size: .85rem; font-weight: 650; }
.entry-online-panel { min-width: 0; padding: 1.5rem; border: 1px solid var(--border); border-radius: 1rem; background: var(--surface); }
.entry-online-panel > p { color: var(--muted); }
.entry-online-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; }
.entry-withdraw-panel { padding: 1.1rem 1.25rem; border: 1px solid var(--border); border-radius: .8rem; background: var(--surface); }
.entry-withdraw-panel summary { width: fit-content; cursor: pointer; color: var(--muted); font-size: .9rem; font-weight: 650; }
.entry-withdraw-panel form { display: grid; margin-top: 1.25rem; justify-items: start; gap: 1rem; }
.entry-withdraw-confirmation { display: flex; align-items: flex-start; gap: .65rem; font-size: .9rem; }
.entry-withdraw-panel button { color: #963b30; border-color: #dcb5a9; }
.team-form-page .visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* Overview for registrations managed through the earlier entry workflow. */
.entry-profile-page { display: grid; max-width: 68rem; margin-inline: auto; gap: 1.5rem; }
.entry-profile-sections { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.entry-profile-sections > section { min-width: 0; padding: 1.5rem; border: 1px solid var(--border); border-radius: .8rem; background: var(--surface); }
.entry-profile-sections h2 { margin: 0 0 1.25rem; font-size: 1.15rem; }
.entry-profile-sections .profile-fields { display: grid; margin: 0; gap: 1.25rem; }
.entry-profile-sections .profile-field { min-width: 0; }
.entry-profile-sections dt { color: var(--muted); font-size: .85rem; }
.entry-profile-sections dd { max-width: 100%; margin: .3rem 0 0; font-weight: 650; overflow-wrap: anywhere; }
.entry-profile-empty { color: var(--muted); font-weight: 400; }
.entry-profile-actions { margin: 0; }
.entry-profile-readonly, .entry-profile-status, .entry-profile-no-entry { margin: 0; padding: 1.25rem; border: 1px solid var(--border); border-radius: .8rem; background: var(--accent-soft); }
.entry-profile-readonly p, .entry-profile-no-entry h2 { margin: 0; }
.entry-profile-no-entry h2 { font-size: 1.2rem; }
.entry-profile-no-entry form { margin-top: 1rem; }

/* The same sign-in card is used for Google and local administrator accounts. */
.registration-auth-card { max-width: 33rem; margin: clamp(1rem, 6vh, 4rem) auto; padding: clamp(1.5rem, 5vw, 2.5rem); border-radius: 1rem; box-shadow: 0 10px 35px rgb(28 48 39 / 5%); }
.auth-visual { display: grid; width: 3.5rem; height: 3.5rem; margin-bottom: 1.75rem; place-items: center; border-radius: 1rem; background: var(--accent-soft); color: var(--accent); }
.auth-visual svg { width: 2rem; height: 2rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.registration-auth-card h1 { margin: 0 0 1rem; font-size: clamp(1.65rem, 4vw, 2.1rem); line-height: 1.2; }
.registration-auth-card > p:not(.eyebrow) { color: var(--muted); }
.auth-features { display: grid; margin: 1.5rem 0; padding: 0; gap: .7rem; list-style: none; color: var(--text); font-size: .9rem; }
.auth-features li { display: flex; align-items: baseline; gap: .65rem; }
.auth-features li::before { color: var(--accent); content: "✓"; font-weight: 750; }
.auth-primary-action { width: 100%; justify-content: center; }
.auth-primary-action svg { width: 1.2rem; height: 1.2rem; flex: 0 0 auto; fill: currentColor; }
.registration-auth-card .auth-footnote { margin: 1.5rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--border); font-size: .8rem; }
.auth-request-id { padding: .75rem; border-radius: .5rem; background: var(--bg); font-size: .8rem; overflow-wrap: anywhere; }
.registration-auth-card form { margin-top: 1.5rem; }
.registration-auth-card form label { font-size: .9rem; font-weight: 650; }
.registration-auth-card input { margin-top: .4rem; }

@media (max-width: 900px) {
  .new-team-panel { grid-template-columns: minmax(0, 1fr); }
  .entry-fields-three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .entry-profile-sections { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 650px) {
  .team-entry-list, .entry-fields-two, .entry-fields-three, .entry-member-grid { grid-template-columns: minmax(0, 1fr); }
  .entry-fields-two, .entry-fields-three { gap: 0; }
  .team-entry-card { padding: 1.25rem; }
  .team-entry-empty { padding-inline: 1.25rem; }
  .new-team-panel { padding: 1.25rem; }
  .registration-notice { padding: 1rem; gap: .65rem; }
  .registration-notice > svg { width: 1.25rem; height: 1.25rem; }
  .entry-form-actions { flex-direction: column; }
  .entry-form-actions button, .entry-online-actions .button { width: 100%; justify-content: center; }
  .entry-profile-actions .button, .entry-profile-no-entry .button { width: 100%; justify-content: center; }
}
