.dashboard-page-heading {
  align-items: center;
  margin-bottom: 1.75rem;
}

.dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(18rem, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.dashboard-layout .content-card {
  width: auto;
  min-width: 0;
  padding: clamp(1.5rem, 3vw, 2.25rem);
}

.profile-page-shell {
  width: min(100%, 60rem);
  margin-inline: auto;
}

.profile-layout {
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

.profile-layout .content-card {
  padding: 1.25rem;
}

.dashboard-season-card {
  width: 100%;
  padding-top: 1rem;
  border-top: 0.3rem solid var(--gold);
}

.dashboard-entry-list {
  display: grid;
  margin-top: 1.5rem;
  gap: 1.5rem;
}

.dashboard-entry-card,
.add-entry-card {
  width: 100%;
  margin: 0;
}

.dashboard-entry-card {
  padding-top: 1rem;
  border-top: 0.3rem solid var(--ink);
}

.dashboard-entry-card.is-entered {
  border-top-color: var(--green);
}

.dashboard-entry-heading,
.profile-entry-summary-heading,
.profile-entry-summary-badges {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.dashboard-entry-heading h2,
.dashboard-entry-heading .eyebrow {
  margin-bottom: 0;
}

.profile-entry-summary-badges {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.entry-select-form {
  margin-top: 1rem;
}

.entry-select-button {
  min-height: 2.5rem;
  padding: 0.45rem 1rem;
}

.add-entry-card {
  margin-top: 1.5rem;
  border-top: 0.3rem solid var(--gold);
}

.add-entry-form {
  margin-top: 1.25rem;
}

.add-entry-form > .button {
  justify-self: start;
}

.dashboard-season-heading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.dashboard-season-heading .eyebrow,
.dashboard-season-heading h2 {
  margin: 0;
}

.dashboard-season-heading h2 {
  padding-left: 0.75rem;
  color: var(--navy-light);
  font-size: 1rem;
  font-weight: 750;
  border-left: 1px solid var(--border);
}

.dashboard-season-heading .eyebrow {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
}

.profile-details-card {
  border-top: 0.3rem solid var(--green);
}

.profile-email-card {
  border-top: 0.3rem solid var(--green);
}

.profile-layout .profile-email-card {
  padding-block: 0.75rem;
}

.profile-entries-card {
  grid-column: 1 / -1;
  border-top: 0.3rem solid var(--ink);
}

.profile-entries-card.has-main-pool-entry {
  border-top-color: var(--green);
}

.profile-entry-list {
  display: grid;
  margin-top: 0.75rem;
  gap: 0.875rem;
}

.profile-entry-summary {
  padding: 0.7rem 0.85rem;
  background: var(--background);
  border: 1px solid var(--border);
  border-left: 0.3rem solid var(--ink);
  border-radius: 0.7rem;
  box-shadow: 0 0.25rem 0.7rem rgb(11 31 51 / 7%);
}

.profile-entry-summary.is-in-main-pool {
  border-left-color: var(--green);
}

.profile-entry-summary h3 {
  margin: 0;
  color: var(--navy);
}

.profile-entry-survivors {
  margin-top: 0.45rem;
  color: var(--muted);
}

.profile-entry-survivors .survivor-entry-list {
  min-height: 2.25rem;
  margin-top: 0.5rem;
  padding: 0.35rem 0.7rem;
}

.profile-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.profile-card-heading .eyebrow,
.profile-card-heading h2 {
  margin-bottom: 0;
}

.profile-detail-action-button {
  min-height: 2.35rem;
  padding: 0.35rem 0.8rem;
}

.profile-personal-details {
  margin: 0.75rem 0 0;
}

.details-list.profile-personal-details > div {
  grid-template-columns: 6.25rem minmax(0, 1fr);
  gap: 0.75rem;
  padding-block: 0.45rem;
}

.profile-personal-details dd {
  font-weight: 700;
}

.profile-personal-details dt,
.profile-email-details dt {
  white-space: nowrap;
}

.details-list.profile-email-details {
  margin: 0;
}

.details-list.profile-email-details > div {
  grid-template-columns: 6.25rem minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0;
  border-bottom: 0;
}

.profile-email-detail dd {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.profile-email-detail dt {
  align-self: center;
}

.profile-email-value {
  min-width: 0;
  overflow-wrap: anywhere;
}

.profile-form {
  margin-top: 1.25rem;
}

.profile-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.deadline-notice {
  display: flex;
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--background);
  border: 1px solid var(--border);
  border-left: 0.3rem solid var(--gold);
  border-radius: 0.65rem;
}

.deadline-label {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.deadline-notice strong {
  color: var(--navy);
}

.pool-sections {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.pool-section {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 1.25rem;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
}

.dashboard-pool-sections {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pool-section-heading {
  display: flex;
  margin-bottom: 0.85rem;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.survivor-section-heading {
  padding-bottom: 0.85rem;
  align-items: flex-start;
  border-bottom: 1px solid var(--border);
}

.survivor-section-title {
  min-width: 0;
}

.survivor-section-title p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.4;
}

.survivor-section-heading .status-badge {
  flex: 0 0 auto;
}

.pool-section h3 {
  margin: 0;
}

.pool-section > p:first-of-type {
  margin-top: 0;
}

.pool-section.is-entered {
  border-color: #9ed5b4;
  box-shadow: inset 0.2rem 0 0 var(--green);
}

.entry-identity {
  display: grid;
  margin: 0.25rem 0 1rem;
  padding: 0.75rem 0.85rem;
  gap: 0.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.55rem;
}

.entry-identity span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.entry-identity strong {
  color: var(--navy);
  overflow-wrap: anywhere;
}

.pool-action,
.pool-section .locked-note {
  margin-top: auto;
  padding-top: 1rem;
}

.pool-action .button,
.survivor-form .button {
  width: 100%;
  min-height: 3rem;
}

.pool-action .button.danger {
  margin-top: 0;
}

.form-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.75rem;
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field label {
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 2.8rem;
  padding: 0.65rem 0.75rem;
  color: var(--ink);
  font: inherit;
  background: var(--surface);
  border: 1px solid #98a2b3;
  border-radius: 0.45rem;
}

select:not([multiple]) {
  padding-right: 2.75rem;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%2317324d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 0.75rem 0.5rem;
}

input:not([type="checkbox"]):not([type="radio"]):focus,
select:focus,
textarea:focus {
  border-color: var(--green);
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--navy);
}

input[type="checkbox"]:focus,
input[type="radio"]:focus {
  outline: none;
  box-shadow: none;
}

textarea {
  min-height: 12rem;
  resize: vertical;
}

.field-label {
  font-weight: 700;
}

.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-weight: 700;
}

.checkbox-field input {
  width: 1.2rem;
  min-height: 1.2rem;
  margin-top: 0.15rem;
  flex: 0 0 auto;
}

.checkbox-field:has(input:focus-visible) {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--navy);
}

button:focus-visible,
a:focus-visible,
.nav-admin-menu summary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--navy);
}

.field-hint,
.small-text,
.muted {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.button-row,
.support-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.button-row {
  justify-content: center;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  width: auto;
  min-height: 2.75rem;
  padding: 0.65rem 1rem;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  font: inherit;
  font-weight: 750;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid #98a2b3;
  border-radius: 0.5rem;
  cursor: pointer;
}

.button.primary {
  color: #ffffff;
  background: var(--primary);
  border-color: var(--primary);
}

.button.primary:hover {
  color: #ffffff;
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}

.button.secondary {
  color: var(--green-dark);
  border-color: var(--green);
}

.button.secondary:hover {
  color: var(--green-dark);
  background: var(--green-soft);
}

.button.danger {
  margin-top: 1rem;
  color: var(--danger);
  border-color: var(--danger);
}

.button.danger:hover {
  color: var(--danger-dark);
  background: var(--danger-soft);
  border-color: var(--danger-dark);
}

.support-links {
  margin-top: 1.5rem;
  justify-content: space-between;
}

.support-links a {
  font-weight: 650;
  text-decoration: none;
}

.flash,
.error-summary,
.locked-note {
  margin: 0 0 1.5rem;
  padding: 1rem;
  border: 1px solid;
  border-radius: 0.5rem;
}

.flash.notice {
  color: var(--green-dark);
  background: var(--green-soft);
  border-color: #8fd2ab;
}

.flash.pick_sheet_success {
  display: flex;
  padding: 1rem 1.2rem;
  align-items: center;
  gap: 0.7rem;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 800;
  background: var(--green);
  border: 2px solid var(--green-dark);
  box-shadow: 0 0.45rem 1rem rgb(22 131 74 / 20%);
}

.flash.pick_sheet_success::before {
  display: inline-grid;
  width: 1.65rem;
  height: 1.65rem;
  flex: 0 0 1.65rem;
  place-items: center;
  color: var(--green-dark);
  content: "\2713";
  background: #ffffff;
  border-radius: 50%;
}

.flash.alert,
.error-summary {
  color: var(--danger-dark);
  background: var(--danger-soft);
  border-color: #f3aaaa;
}

.error-summary h2 {
  font-size: 1rem;
}

.error-summary ul {
  margin-bottom: 0;
}

.error-summary:focus {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--navy);
}

.locked-note {
  color: #6f4c06;
  background: var(--gold-soft);
  border-color: #e8c46f;
}

.status-badge {
  display: inline-flex;
  width: max-content;
  min-height: 1.65rem;
  padding: 0.25rem 0.65rem;
  align-items: center;
  justify-content: center;
  color: var(--navy-light);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  background: #e9eef3;
  border-radius: 999px;
}

.status-badge.active {
  color: var(--green-dark);
  background: var(--green-soft);
}

.status-badge.pending {
  color: #6f4c06;
  background: var(--gold-soft);
}

.status-badge.inactive,
.status-badge.closed {
  color: var(--danger-dark);
  background: var(--danger-soft);
}

.status-badge.broadcast-email-status.inactive {
  color: #6f4c06;
  background: var(--gold-soft);
}

.status-badge.main-entry-status.inactive {
  color: var(--navy-light);
  background: #e9eef3;
}

.status-badge.primary-username-status {
  color: #6f4c06;
  background: var(--gold-soft);
}

.status-cell {
  text-align: center;
}

.primary-username-cell {
  text-align: center;
}

.details-list {
  display: grid;
  gap: 0;
  margin-bottom: 1.5rem;
}

.details-list div {
  display: grid;
  grid-template-columns: minmax(8rem, 1fr) 2fr;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border);
}

.details-list dt {
  color: var(--muted);
  font-weight: 700;
}

.details-list dd {
  margin: 0;
}

.entry-list {
  padding-left: 1.25rem;
}

.entry-list li::marker {
  color: var(--green);
}

.survivor-entry-list {
  display: grid;
  margin: 0.25rem 0 0;
  padding: 0;
  gap: 0.5rem;
  list-style: none;
}

.survivor-entry-list li {
  display: flex;
  padding: 0.65rem 0.75rem;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
}

.survivor-entry-list li::before {
  width: 0.5rem;
  height: 0.5rem;
  flex: 0 0 auto;
  background: var(--green);
  border-radius: 50%;
  content: "";
}

.inline-form {
  display: flex;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  align-items: end;
  gap: 1rem;
}

.survivor-form {
  display: grid;
  margin-top: auto;
  padding-top: 1rem;
  align-items: stretch;
}

.survivor-form-controls {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr);
  gap: 0.75rem;
}

.survivor-count-picker {
  position: relative;
  width: 4rem;
  color: var(--navy);
  font-weight: 800;
}

.survivor-count-picker details {
  position: relative;
}

.survivor-count-trigger {
  position: relative;
  display: flex;
  min-height: 3rem;
  padding: 0.65rem 0.75rem;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 2px solid #98a2b3;
  border-radius: 0.45rem;
  cursor: pointer;
  list-style: none;
}

.survivor-count-trigger::-webkit-details-marker {
  display: none;
}

.survivor-count-trigger:focus-visible {
  border-color: var(--green);
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--navy);
}

.survivor-count-value,
.survivor-count-option span {
  transform: translateX(-0.375rem);
}

.survivor-count-caret {
  position: absolute;
  right: 0.75rem;
  width: 0.75rem;
  height: 0.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%2317324d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  transition: transform 120ms ease;
}

.survivor-count-picker details[open] .survivor-count-caret {
  transform: rotate(180deg);
}

.survivor-count-options {
  position: absolute;
  z-index: 20;
  top: calc(100% - 1px);
  right: 0;
  left: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid #98a2b3;
  border-radius: 0 0 0.45rem 0.45rem;
  box-shadow: 0 0.5rem 1rem rgb(11 31 51 / 16%);
}

.survivor-count-option {
  position: relative;
  display: flex;
  min-height: 2.35rem;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  cursor: pointer;
}

.survivor-count-option:hover,
.survivor-count-option:has(input:focus-visible) {
  background: var(--green-soft);
}

.survivor-count-option:has(input:checked) {
  color: #fff;
  background: var(--green);
}

.survivor-count-option input {
  width: 1.2rem;
  min-height: 1.2rem;
  margin: 0;
  flex: 0 0 auto;
}

@supports selector(.survivor-count-option:has(input:checked)) {
  .survivor-count-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    min-height: 1px;
    opacity: 0;
  }
}

.survivor-count-option:has(input:focus-visible) {
  outline: 3px solid var(--gold);
  outline-offset: -3px;
}

.account-details {
  margin-top: 1.25rem;
}

.account-details div {
  grid-template-columns: 1fr;
  gap: 0.2rem;
}

.account-details dd {
  font-weight: 650;
  overflow-wrap: anywhere;
}

.account-actions {
  display: grid;
  gap: 1rem;
}

.account-actions .button {
  width: 100%;
}

