/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

:root {
  --bg: #f7f5ef;
  --panel: #ffffff;
  --text: #1f2933;
  --muted: #667085;
  --line: #dedbd2;
  --accent: #2f6f5e;
  --accent-dark: #245548;
  --danger: #b42318;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body.has-environment-indicator {
  padding-bottom: 56px;
}

body.admin-body {
  background: #e7f1edc9;
}

body.trips-index-page {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgb(15 23 20 / 28%), rgb(15 23 20 / 64%)),
    url("/assets/backgrounds/half-dome-ledge-db9b08c4.jpg") center / cover fixed;
}

body.session-new-page {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgb(15 23 20 / 22%), rgb(15 23 20 / 62%)),
    url("/assets/backgrounds/indian-creek-super-crack-efb293c4.jpg") center / cover fixed;
}

body.password-reset-new-page {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgb(15 23 20 / 22%), rgb(15 23 20 / 62%)),
    url("/assets/backgrounds/castle-valley-the-rectory-b278bead.jpg") center / cover fixed;
}

body.password-reset-edit-page {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgb(15 23 20 / 22%), rgb(15 23 20 / 62%)),
    url("/assets/backgrounds/yosemite-valley-arrowhead-arete-91075e36.jpg") 72% center / cover fixed;
}

body.not-found-page {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgb(15 23 20 / 18%), rgb(15 23 20 / 58%)),
    url("/assets/backgrounds/indian-creek-falling-5fe1e2a0.png") center / cover fixed;
}

body.registration-new-page {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgb(15 23 20 / 24%), rgb(15 23 20 / 64%)),
    url("/assets/backgrounds/tuolumne-meadows-cathedral-peak-8e576622.jpg") center / cover fixed;
}

body.trip-show-page {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgb(15 23 20 / 24%), rgb(15 23 20 / 64%)),
    url("/assets/backgrounds/joshua-tree-irs-wall-396c5c87.jpg") center / cover fixed;
}

body.profile-show-page,
body.profile-edit-page {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgb(15 23 20 / 24%), rgb(15 23 20 / 64%)),
    url("/assets/backgrounds/castle-valley-castleton-tower-9a0c050f.jpg") center / cover fixed;
}

body.trips-index-page .site-name,
body.trips-index-page .site-name small,
body.session-new-page .site-name,
body.session-new-page .site-name small,
body.password-reset-new-page .site-name,
body.password-reset-new-page .site-name small,
body.password-reset-edit-page .site-name,
body.password-reset-edit-page .site-name small,
body.not-found-page .site-name,
body.not-found-page .site-name small,
body.registration-new-page .site-name,
body.registration-new-page .site-name small,
body.trip-show-page .site-name,
body.trip-show-page .site-name small,
body.profile-show-page .site-name,
body.profile-show-page .site-name small,
body.profile-edit-page .site-name,
body.profile-edit-page .site-name small {
  color: #fff;
  text-shadow: 0 2px 10px rgb(0 0 0 / 42%);
}

body.trips-index-page .public-nav a,
body.session-new-page .public-nav a,
body.password-reset-new-page .public-nav a,
body.password-reset-edit-page .public-nav a,
body.not-found-page .public-nav a,
body.registration-new-page .public-nav a,
body.trip-show-page .public-nav a,
body.profile-show-page .public-nav a,
body.profile-edit-page .public-nav a {
  border-color: rgb(255 255 255 / 72%);
  background: rgb(255 255 255 / 88%);
}

.background-image-caption {
  position: fixed;
  right: clamp(16px, 5vw, 48px);
  bottom: clamp(16px, 4vw, 36px);
  z-index: 1;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
  pointer-events: none;
}

.error-main {
  display: grid;
  min-height: calc(100svh - 160px);
  align-items: center;
}

.error-panel {
  width: fit-content;
  max-width: min(480px, 100%);
  margin-inline: 0 auto;
  background: rgb(255 255 255 / 90%);
  border-color: rgb(255 255 255 / 58%);
  box-shadow: 0 18px 48px rgb(0 0 0 / 24%);
  backdrop-filter: blur(2px);
}

.error-panel h1 {
  margin: 0;
  color: var(--accent-dark);
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 0.95;
}

.error-panel p {
  margin: 16px 0 0;
  font-size: clamp(1.25rem, 2.2vw, 2rem);
  font-weight: 750;
}

a {
  color: var(--accent);
  font-weight: 650;
}

button,
input,
select,
textarea {
  font: inherit;
}

.admin-header,
.panel,
.flash-messages {
  width: min(1280px, calc(100% - 32px));
  margin-inline: auto;
}

.public-header,
.public-main {
  width: min(1280px, calc(100% - 32px));
  margin-inline: auto;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  padding: 32px 0 20px;
}

.admin-header h1 {
  margin: 0;
  font-size: 2rem;
}

.admin-brand {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: flex-end;
}

.admin-body .admin-header h1,
.admin-body .admin-header .eyebrow {
  color: var(--accent-dark);
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: uppercase;
}

.admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.admin-nav form {
  margin: 0;
}

.public-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 24px 0 18px;
}

.public-brand {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.site-name {
  display: inline-grid;
  gap: 0;
  color: var(--text);
  line-height: 0.95;
  text-decoration: none;
}

.site-name span {
  font-size: 1.65rem;
  font-weight: 800;
}

.site-name small {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.public-beta-notice {
  display: flex;
  flex-wrap: wrap;
  flex: 1 1 280px;
  gap: 5px 10px;
  align-items: center;
  max-width: 620px;
  border: 1px solid color-mix(in srgb, var(--accent) 34%, #fff);
  border-radius: 6px;
  padding: 10px 13px;
  background: color-mix(in srgb, var(--accent) 8%, #fff);
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.25;
}

.public-beta-notice strong {
  border: 1px solid color-mix(in srgb, var(--accent) 38%, transparent);
  border-radius: 999px;
  padding: 3px 9px;
  color: var(--accent-dark);
  font-size: 0.83rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.public-beta-notice a {
  color: var(--accent-dark);
  font-weight: 800;
}

.panel-header .public-beta-notice {
  flex: 0 1 620px;
  margin-top: 4px;
}

body.trips-index-page .public-beta-notice,
body.trip-show-page .public-beta-notice {
  font-size: 0.9rem;
}

body.trips-index-page .public-beta-notice strong,
body.trip-show-page .public-beta-notice strong {
  font-size: 0.83rem;
}

body.trips-index-page .trips-index-panel .public-beta-notice,
body.trip-show-page .trip-summary-header .public-beta-notice {
  flex: 0 0 auto;
  justify-content: flex-end;
  justify-self: end;
  max-width: 620px;
  text-align: right;
}

.public-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.public-nav a,
.public-admin-link,
.nav-button {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: #fff;
  color: var(--accent-dark);
  font-weight: 700;
  text-decoration: none;
}

.public-nav span {
  color: var(--muted);
  font-weight: 700;
}

.nav-button {
  cursor: pointer;
}

.admin-nav a,
.admin-public-link,
.button,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
}

.button.secondary,
.admin-nav a,
.admin-public-link {
  background: #fff;
  color: var(--accent-dark);
}

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

.button.danger.secondary {
  background: #fff;
  color: var(--danger);
}

.button:disabled,
input[type="submit"]:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.public-main {
  padding-bottom: 32px;
}

.home-main {
  width: 100%;
  padding-bottom: 0;
}

.home-hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: calc(100svh - 104px);
  overflow: hidden;
  isolation: isolate;
  background: #1f2933;
}

.home-hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(12, 19, 25, 0.72), rgba(12, 19, 25, 0.28) 54%, rgba(12, 19, 25, 0.1)),
    linear-gradient(0deg, rgba(12, 19, 25, 0.6), rgba(12, 19, 25, 0) 48%);
  content: "";
}

.home-hero-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.home-hero-caption {
  position: absolute;
  right: clamp(16px, 5vw, 48px);
  bottom: clamp(16px, 4vw, 36px);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}

.home-hero-copy {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
  padding-block: clamp(32px, 7vw, 72px);
}

.home-hero h1 {
  max-width: 680px;
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 0.92;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.home-hero p:not(.eyebrow) {
  max-width: 58ch;
  margin: 24px 0 24px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.1rem;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}

.home-hero .button {
  border-color: #fff;
  background: #fff;
  color: var(--accent-dark);
}

.panel {
  margin-bottom: 24px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.public-main > .panel {
  width: 100%;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
  margin-bottom: 20px;
}

.panel h2,
.panel h3,
.panel p {
  margin-top: 0;
}

.panel-header p,
.muted {
  color: var(--muted);
}

.admin-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.help-request-filter-form,
.trip-filter-form {
  margin: 0 0 18px;
}

.help-request-status-filters,
.trip-status-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 0;
  padding: 0;
  border: 0;
}

.help-request-status-filters legend,
.trip-status-filters legend {
  margin-right: 4px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.help-status-filter,
.trip-status-filter {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid #d8e1dc;
  border-radius: 6px;
  background: #fff;
  color: var(--accent-dark);
  cursor: pointer;
  font-weight: 750;
}

.help-status-filter input[type="checkbox"],
.trip-status-filter input[type="checkbox"] {
  width: 18px;
  height: 18px;
  padding: 0;
  accent-color: var(--accent);
}

.trip-status-filter:has(input[type="checkbox"]:checked),
.help-status-filter:has(input[type="checkbox"]:checked) {
  border-color: var(--accent);
  background: #eaf6f1;
  box-shadow: inset 0 0 0 1px rgb(47 111 94 / 18%);
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 18px;
}

.pagination-summary {
  color: var(--muted);
  font-weight: 750;
}

.deleted-trip-banner {
  display: grid;
  gap: 4px;
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid #f0b36a;
  border-radius: 8px;
  background: #fff8ec;
  color: var(--text);
}

.deleted-trip-banner p {
  margin: 0;
  color: var(--muted);
}

.transactions-table {
  font-size: 0.95rem;
}

.transactions-table code {
  font-size: 0.86rem;
}

.transaction-status {
  width: fit-content;
}

.transaction-details-modal {
  width: min(1120px, calc(100% - 32px));
}

.transaction-details-modal .signup-modal-content {
  gap: 12px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.transaction-details-modal h2 {
  margin-bottom: 0;
}

.refund-modal .refund-amount-field {
  width: min(260px, 100%);
  min-width: 0;
  max-width: 100%;
}

.refund-modal label {
  display: inline-flex;
  gap: 2px;
  align-items: baseline;
}

.refund-modal label .required-marker {
  margin-left: 0;
}

.refund-modal .checkbox-field {
  display: inline-flex;
  gap: 14px;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  min-height: 58px;
  padding: 12px 16px;
  border: 1px solid #d8e1dc;
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  font-weight: 800;
  transition:
    border-color 120ms ease,
    background 120ms ease,
    box-shadow 120ms ease;
}

.refund-modal .checkbox-field input[type="checkbox"] {
  width: 28px;
  height: 28px;
  padding: 0;
  flex: 0 0 28px;
  accent-color: var(--accent);
  cursor: pointer;
}

.refund-modal .checkbox-field:hover {
  border-color: var(--accent);
  box-shadow: 0 6px 18px rgb(47 111 94 / 10%);
}

.refund-modal .checkbox-field:has(input[type="checkbox"]:checked) {
  border-color: var(--accent);
  background: #eaf6f1;
  box-shadow: inset 0 0 0 1px rgb(47 111 94 / 18%);
}

.refund-modal .checkbox-field:has(input[type="checkbox"]:focus-visible) {
  outline: 3px solid rgb(47 111 94 / 22%);
  outline-offset: 3px;
}

.transaction-details-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.details-list.transaction-details-list {
  gap: 0;
  align-content: start;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf7;
}

.details-list.transaction-details-list div {
  grid-template-columns: minmax(170px, 0.46fr) minmax(0, 1fr);
  gap: 18px;
  align-items: baseline;
  min-height: 44px;
  padding: 5px 0;
  border-bottom: 1px solid var(--line);
}

.details-list.transaction-details-list div:last-child {
  border-bottom: 0;
}

.details-list.transaction-details-list dt {
  white-space: normal;
}

.details-list.transaction-details-list dd {
  overflow-wrap: anywhere;
}

.details-list.transaction-details-list .refund-modal,
.refund-modal {
  width: min(640px, calc(100% - 32px));
}

.details-list.transaction-details-list .refund-modal .signup-modal-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.details-list.transaction-details-list .refund-modal .signup-modal-content > div,
.details-list.transaction-details-list .refund-modal form > div,
.details-list.transaction-details-list .refund-modal .currency-field,
.details-list.transaction-details-list .refund-modal .form-actions {
  display: block;
  grid-template-columns: none;
  gap: 0;
  min-height: 0;
  padding: 0;
  border-bottom: 0;
}

.details-list.transaction-details-list .refund-modal .currency-field {
  display: grid;
  grid-template-columns: auto 1fr;
}

.details-list.transaction-details-list .refund-modal .details-list.transaction-details-list > div {
  display: grid;
  grid-template-columns: minmax(170px, 0.46fr) minmax(0, 1fr);
  gap: 18px;
  align-items: baseline;
  min-height: 44px;
  padding: 5px 0;
  border-bottom: 1px solid var(--line);
}

.details-list.transaction-details-list .refund-modal .details-list.transaction-details-list > div:last-child {
  border-bottom: 0;
}

.details-list.transaction-details-list .refund-modal .checkbox-field {
  display: flex;
  grid-template-columns: none;
  gap: 8px;
  min-height: 0;
  padding: 0;
  border-bottom: 0;
}

.details-list.transaction-details-list .refund-modal .form-actions {
  display: flex;
  gap: 10px;
  padding-top: 0;
}

.details-list.transaction-details-list code,
.transaction-refund-details code {
  display: inline-block;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

.transaction-refund-details {
  display: grid;
  gap: 8px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.transaction-refund-details h3 {
  margin: 0;
}

.transaction-refund-details table {
  table-layout: fixed;
}

.transaction-refunds-table th,
.transaction-refunds-table td {
  padding: 7px 10px;
  overflow-wrap: anywhere;
  vertical-align: top;
}

.transaction-refunds-table tbody tr:last-child td {
  border-bottom: 0;
}

.transaction-refunds-table th:nth-child(1),
.transaction-refunds-table td:nth-child(1) {
  width: 12%;
}

.transaction-refunds-table th:nth-child(2),
.transaction-refunds-table td:nth-child(2) {
  width: 18%;
}

.transaction-refunds-table th:nth-child(3),
.transaction-refunds-table td:nth-child(3) {
  width: 20%;
}

.transaction-refunds-table th:nth-child(4),
.transaction-refunds-table td:nth-child(4) {
  width: 16%;
}

.transaction-refunds-table th:nth-child(5),
.transaction-refunds-table td:nth-child(5) {
  width: 34%;
}

.transaction-fee-details {
  display: grid;
  gap: 8px;
  padding: 10px 16px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.transaction-fee-details legend {
  padding: 0 8px;
  font-size: 1rem;
  font-weight: 800;
}

.transaction-fee-total {
  text-align: right;
}

.transaction-fee-table {
  table-layout: fixed;
}

.transaction-fee-table th,
.transaction-fee-table td {
  padding: 6px 10px;
}

.transaction-fee-table tfoot td {
  border-bottom: 0;
}

.transaction-fee-table tbody tr:last-child td {
  border-bottom: 0;
}

.transaction-fee-table th:not(:first-child),
.transaction-fee-table td:not(:first-child) {
  text-align: right;
}

.campsite-form-panel {
  padding-top: 18px;
}

.campsite-form-panel .panel-header {
  margin-bottom: 12px;
}

.campsite-form-panel .panel-header h2 {
  margin-bottom: 0;
}

.campsite-form-panel .trip-title-line p {
  margin-bottom: 0;
  font-size: 1.05rem;
}

.confirmed-signups-section {
  padding: 16px;
  border: 1px solid;
  border-radius: 8px;
  border-color: #91d8bd;
  background: #fff;
}

.waitlisted-signups-section {
  padding: 16px;
  border: 1px solid;
  border-radius: 8px;
  border-color: #f1c84d;
  background: #fff;
}

.confirmed-signups-section h4,
.waitlisted-signups-section h4,
.trip-waitlist-section h3 {
  margin: 0 0 10px;
}

.confirmed-signups-section h4 {
  color: #006b12;
}

.waitlisted-signups-section h4,
.trip-waitlist-section h3 {
  color: #b47a00;
}

.trip-waitlist-section {
  margin-top: 28px;
  margin-left: 16px;
}

.trip-waitlist-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: baseline;
  margin-bottom: 10px;
}

.trip-waitlist-heading h3,
.trip-waitlist-note {
  margin: 0;
}

.trip-waitlist-note {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.waitlist-table {
  margin-top: 12px;
}

.waitlist-priority-column {
  width: 96px;
  white-space: nowrap;
}

.waitlist-availability-column,
.waitlist-action-column {
  white-space: nowrap;
}

.trip-waitlist-section .waitlist-action-column > [data-controller~="modal"] > .button.danger {
  border-color: var(--danger);
  background: #fff;
  color: var(--danger);
}

.trip-overview {
  padding-bottom: 20px;
}

.trip-summary-header {
  margin-bottom: 12px;
}

.trip-summary-copy {
  display: grid;
  gap: 8px;
}

.trip-summary-copy h2,
.trip-summary-copy p {
  margin-bottom: 0;
}

.coordinator-summary {
  display: grid;
  gap: 4px;
  margin-top: 12px;
}

.coordinator-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
}

.trip-location-line {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: baseline;
}

.trip-title-line {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.trip-title-line h1 {
  margin: 0;
}

.trip-location-line .eyebrow {
  margin: 0;
}

.actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.form-actions .danger-form-action {
  margin-left: auto;
}

.hidden-delete-form {
  display: none;
}

.disabled-modal-trigger {
  display: inline-flex;
  cursor: not-allowed;
}

.disabled-modal-trigger .button:disabled {
  pointer-events: none;
}

.table-actions {
  white-space: nowrap;
}

.table-actions a,
.table-actions form {
  display: inline-block;
}

.table-actions form {
  margin-left: 10px;
}

.table-actions [data-controller="modal"] {
  display: inline-block;
  margin-left: 10px;
}

.admin-campsite-card-header .table-actions > [data-controller="modal"]:first-child {
  margin-right: 10px;
  margin-left: 0;
}

.table-actions .campsite-registration {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.35;
  text-align: left;
  white-space: normal;
}

.table-actions .campsite-registration p {
  margin: 0;
}

.table-actions .campsite-registration .small-link {
  font-size: 0.9rem;
}

.disabled-tooltip {
  position: relative;
  display: inline-block;
  margin-left: 10px;
  cursor: not-allowed;
}

.disabled-tooltip .button:disabled {
  pointer-events: none;
}

.disabled-tooltip::after {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  right: 0;
  width: min(340px, 70vw);
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--accent-dark);
  box-shadow: 0 10px 28px rgb(31 41 51 / 20%);
  color: #fff;
  content: attr(aria-label);
  font-size: 0.95rem;
  font-weight: 750;
  line-height: 1.35;
  opacity: 0;
  pointer-events: none;
  text-align: left;
  transform: translateY(4px);
  transition: opacity 140ms ease, transform 140ms ease;
  white-space: normal;
}

.disabled-tooltip:hover::after,
.disabled-tooltip:focus::after,
.disabled-tooltip:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.campsites-panel {
  padding-top: 16px;
}

.campsites-panel-header {
  margin-bottom: 16px;
}

.campsites-panel-header h2 {
  margin-bottom: 0;
  line-height: 1.05;
}

.campsites-panel table {
  margin-top: 10px;
}

.admin-self-signup-cell {
  min-width: 170px;
}

.admin-self-signup-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.admin-self-signup-control form {
  margin: 0;
}

.admin-self-signup-control .admin-self-signup-status {
  font-size: 75%;
  font-weight: 750;
  line-height: 1.25;
}

.admin-table-action-button {
  min-height: 30px;
  padding: 4px 9px;
  font-size: 0.82rem;
  line-height: 1.1;
}

.admin-confirmed-signup-action-button {
  min-height: 31px;
  padding: 7px 12px;
  font-size: 0.75rem;
  line-height: 1.05;
}

.admin-waitlist-campsite-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.admin-waitlist-campsite-name {
  color: var(--muted);
  font-size: 75%;
  font-weight: 750;
  line-height: 1.25;
}

.admin-payment-control {
  display: grid;
  grid-template-columns: max-content max-content;
  column-gap: 8px;
  gap: 6px;
  align-items: center;
  min-width: 150px;
}

.admin-payment-control > :not(.admin-payment-status, .admin-payment-amount-control, .admin-payment-covered-by) {
  grid-column: 1 / -1;
}

.admin-payment-status,
.admin-payment-amount {
  width: fit-content;
}

.admin-payment-amount-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.admin-payment-amount-link:hover,
.admin-payment-amount-link:focus {
  color: var(--accent-dark);
}

.admin-party-primary-row > td,
.admin-party-guest-row > td {
  background: #fcfffd;
}

.admin-party-primary-row > td {
  border-top: 2px solid #9bd0ba;
}

.admin-party-primary-row > td:first-child,
.admin-party-guest-row > td:first-child {
  border-left: 2px solid #9bd0ba;
}

.admin-party-primary-row > td:last-child,
.admin-party-guest-row > td:last-child {
  border-right: 2px solid #9bd0ba;
}

.admin-party-last-row > td {
  border-bottom: 2px solid #9bd0ba;
}

.admin-party-guest-row > td:first-child {
  padding-left: 28px;
}

.admin-party-guest-name {
  display: block;
  color: var(--text);
  font-size: inherit;
  font-weight: inherit;
}

.admin-party-empty-cell {
  display: block;
  min-height: 1.2em;
}

.trip-payment-requests-panel {
  display: grid;
  gap: 16px;
}

.trip-payment-requests-panel .panel-header {
  margin-bottom: 0;
}

.trip-payment-requests-table td {
  vertical-align: top;
}

.trip-payment-request-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.trip-payment-request-actions form,
.trip-payment-request-actions [data-controller="modal"] {
  margin: 0;
}

.trip-payment-request-actions .copy-link-button {
  gap: 5px;
}

.trip-revenue-table td:not(:first-child),
.trip-revenue-table th:not(:first-child) {
  text-align: right;
}

.trip-revenue-subtotal td,
.trip-revenue-total td,
.trip-revenue-final td {
  font-weight: 800;
}

.trip-revenue-total td {
  border-top: 2px solid var(--line);
}

.trip-revenue-expense td:last-child {
  color: var(--danger);
}

.trip-revenue-final td {
  border-top: 2px solid var(--accent);
  font-size: 1.05rem;
}

.campsite-card-list,
.admin-campsite-list {
  display: grid;
  gap: 22px;
  padding-left: 16px;
}

.campsite-card,
.admin-campsite-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 3px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background: #fff;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.admin-campsite-card {
  gap: 12px;
}

.campsite-card:hover,
.campsite-card:focus-within,
.admin-campsite-card:hover,
.admin-campsite-card:focus-within {
  border-color: #c7ddd4;
  border-left-color: var(--accent-dark);
  background: #fafafa;
  box-shadow: 0 8px 20px rgb(31 41 51 / 8%);
  transform: translateY(-1px);
}

.campsite-card-header,
.admin-campsite-card-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
}

.campsite-card-header h3,
.admin-campsite-card-header h4,
.campsite-card-header p,
.admin-campsite-card-header p,
.campground-group h3,
.campground-group p {
  margin: 0;
}

.campsite-card-header p,
.admin-campsite-card-header p,
.campground-group p,
.campsite-notes {
  color: var(--muted);
}

.campsite-card-summary,
.admin-campsite-card-header > div:first-child {
  display: grid;
  gap: 4px;
}

.campsite-heading-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: baseline;
}

.campsite-heading-line p {
  font-size: 0.95rem;
}

.campsite-card-summary .date-pair,
.admin-campsite-card-header .date-pair {
  margin-top: 16px;
}

.admin-campsite-card-header .date-pair {
  margin-top: 8px;
}

.admin-campsite-card .campsite-stats {
  margin-top: 2px;
}

.campsite-lock-notice {
  color: darkgoldenrod;
  font-size: 0.95rem;
  font-weight: 750;
  line-height: 1.3;
}

.campsite-signup-action {
  display: grid;
  gap: 10px;
  justify-items: end;
  min-width: 220px;
}

.waitlisted-campsite-action {
  min-width: min(100%, 560px);
}

.waitlist-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
  justify-content: flex-end;
}

.waitlist-direct-signup-control {
  max-width: 100%;
}

.waitlist-direct-signup-control > .button {
  justify-content: center;
  max-width: 100%;
  text-align: center;
}

.waitlist-confirm-action {
  display: grid;
  gap: 8px;
}

.spot-open-message {
  color: var(--accent);
  font-size: 1.25rem;
  font-weight: 850;
  line-height: 1.15;
  text-align: left;
}

.campsite-signup-action p {
  max-width: 28ch;
  margin: 0;
  text-align: right;
}

.campsite-signup-action .already-signed-up-note {
  text-align: left;
}

.waitlist-confirm-action .spot-open-message {
  max-width: none;
  text-align: left;
}

.campsite-card-details {
  display: grid;
  gap: 14px;
  padding-top: 2px;
}

.campsite-stats {
  margin-top: 0;
}

.campsite-card .stats > div,
.admin-campsite-card .stats > div {
  background: #fbfaf7;
}

.campsite-notes {
  margin: 0;
}

.campsite-notes strong {
  color: var(--text);
}

.campsite-participant-groups {
  display: grid;
  gap: 12px;
  padding-top: 2px;
}

.campground-group {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.campground-group:first-of-type {
  margin-top: 0;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.stats > div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf7;
}

.stats strong {
  display: block;
  font-size: 1.8rem;
}

.stats .parking-stat {
  display: grid;
  align-content: start;
  gap: 8px;
}

.parking-breakdown {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 18px;
}

.parking-breakdown-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.parking-breakdown-item strong {
  display: inline;
  flex: 0 0 auto;
  line-height: 1;
}

.parking-breakdown-item span {
  display: inline;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: inherit;
  line-height: 1.1;
}

.split-signup-stat {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: center;
}

.split-signup-stat .under-13-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #9fc4d1;
  font-weight: 750;
}

.split-signup-stat .under-minor-tooltip.info-tooltip {
  display: inline-flex;
  color: var(--muted);
}

.split-signup-stat .under-minor-tooltip.info-tooltip .info-tooltip-icon {
  display: inline-flex;
  flex: 0 0 18px;
  color: currentColor;
  font-size: 0.78rem;
  line-height: 1;
  text-align: center;
  vertical-align: middle;
  box-sizing: border-box;
}

.split-signup-stat .under-minor-tooltip.info-tooltip .info-tooltip-box {
  color: #fff;
  font-size: 1rem;
}

.stats .availability-stat strong,
.stats .availability-stat span {
  color: inherit;
}

.stats .success-stat {
  border-color: #9bd0ba;
  background: #ecf8f2;
  color: var(--accent);
}

.stats .warning-stat {
  border-color: #efd77a;
  background: #fff8db;
  color: #936100;
}

.stats .danger-stat {
  border-color: #f4b6ae;
  background: #fff1f0;
  color: var(--danger);
}

.stats span,
td span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.trip-cards {
  display: grid;
  gap: 14px;
}

.help-panel {
  max-width: 980px;
}

.help-layout,
.help-request-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 28px;
  align-items: start;
}

.help-copy {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid #d8e1dc;
  border-radius: 8px;
  background: #fbfdfc;
}

.help-copy p {
  margin: 0;
}

.help-screenshot-emphasis {
  font-size: 1.2em;
  font-weight: 800;
}

.help-request-form textarea {
  min-height: 170px;
}

.help-request-form input[type="file"] {
  padding: 14px;
  border-color: #a8b7ae;
  background: #fbfdfc;
  color: var(--text);
}

.help-request-form input[type="file"]::file-selector-button {
  min-height: 46px;
  margin-right: 14px;
  padding: 10px 18px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font-weight: 800;
}

.help-request-form input[type="file"]::file-selector-button:hover {
  background: var(--accent-dark);
}

.help-contact-label {
  color: var(--muted);
  font-weight: 800;
}

.help-contact-value {
  display: block;
  min-height: 46px;
  padding: 10px 0;
  color: var(--text);
  font-weight: 750;
}

.detail-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.detail-list div {
  display: grid;
  gap: 4px;
}

.detail-list dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.detail-list dd {
  margin: 0;
}

.help-request-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  align-items: flex-start;
  margin: 0;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.help-request-meta-row div {
  display: grid;
  gap: 4px;
}

.help-request-meta-row dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.help-request-meta-row dd {
  margin: 0;
}

.help-request-title-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.help-request-title-line h1,
.help-request-title-line h2 {
  margin: 0;
}

.help-message,
.help-conversation,
.help-replies,
.help-reply-form {
  display: grid;
  gap: 12px;
}

.help-message h3,
.help-replies h3,
.help-reply-form h3 {
  margin: 0;
}

.help-screenshot-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.help-screenshot-list img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.help-admin-detail {
  display: grid;
  gap: 24px;
}

.help-admin-detail > .panel-header {
  margin-bottom: 0;
}

body.help-request-show-page .help-admin-detail > .panel-header {
  margin-bottom: 0;
}

body.help-request-show-page .help-admin-detail {
  gap: 12px;
  padding-top: 16px;
}

body.help-request-show-page .help-admin-detail h1 {
  margin: 0;
}

.help-reply {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
}

.admin-help-reply {
  border-color: #9bd0ba;
  background: #ecf8f2;
}

.help-reply p {
  margin-top: 0;
}

.help-reply-heading {
  margin: 0;
  font-weight: 850;
}

.help-attachment-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.help-attachment-list a,
.help-attachment-button {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid #cfd8d3;
  border-radius: 8px;
  background: #fff;
  color: var(--accent-dark);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
}

.help-image-modal {
  width: min(1120px, calc(100% - 32px));
}

.help-image-modal-content {
  gap: 16px;
}

.help-image-modal img {
  max-width: 100%;
  max-height: calc(100vh - 190px);
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.help-subscriber-form {
  max-width: 520px;
  margin-bottom: 22px;
}

.status-pill {
  display: inline-flex;
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.open-status {
  background: #fff8db;
  color: #936100;
}

.replied-status {
  background: #ecf8f2;
  color: var(--accent-dark);
}

.resolved-status {
  background: #eef4ff;
  color: #1f5fbf;
}

body.trips-index-page .trips-index-panel {
  padding-block: 18px 20px;
  border-color: rgb(255 255 255 / 56%);
  background: rgb(255 255 255 / 88%);
  box-shadow: 0 24px 72px rgb(0 0 0 / 26%);
  backdrop-filter: blur(6px);
}

body.trips-index-page .trips-index-panel .panel-header {
  margin-bottom: 14px;
}

body.trips-index-page .trips-index-panel h1 {
  margin-block: 0 10px;
}

body.trips-index-page .trips-index-panel .muted {
  margin-bottom: 0;
}

.archived-trips-panel {
  padding-block: 18px 20px;
  background: rgb(255 255 255 / 82%);
}

.archived-trips-panel .panel-header {
  margin-bottom: 14px;
}

.archived-trips-panel h2 {
  margin-block: 0 8px;
}

.archived-trips-panel .panel-header .muted {
  margin-bottom: 0;
}

.archived-trip-list {
  display: grid;
  gap: 10px;
}

.archived-trip-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.75fr) auto;
  gap: 16px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf7;
}

.archived-trip-row h3,
.archived-trip-row p,
.archived-trip-row dl {
  margin: 0;
}

.archived-trip-row p,
.archived-trip-meta dt {
  color: var(--muted);
}

.archived-trip-meta {
  display: grid;
  gap: 4px;
}

.archived-trip-meta div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px;
}

.archived-trip-meta dt {
  font-weight: 750;
}

.archived-trip-meta dd {
  margin: 0;
}

body.session-new-page .auth-panel,
body.password-reset-new-page .auth-panel,
body.password-reset-edit-page .auth-panel {
  border-color: rgb(255 255 255 / 56%);
  background: rgb(255 255 255 / 88%);
  box-shadow: 0 24px 72px rgb(0 0 0 / 26%);
  backdrop-filter: blur(6px);
}

body.password-reset-edit-page .public-main {
  display: flex;
  justify-content: flex-end;
}

body.password-reset-edit-page .auth-panel {
  margin-inline: 0;
}

body.registration-new-page .panel {
  border-color: rgb(255 255 255 / 56%);
  background: rgb(255 255 255 / 90%);
  box-shadow: 0 24px 72px rgb(0 0 0 / 26%);
  backdrop-filter: blur(6px);
}

body.trip-show-page .panel {
  border-color: rgb(255 255 255 / 52%);
  background: rgb(255 255 255 / 90%);
  box-shadow: 0 20px 60px rgb(0 0 0 / 22%);
  backdrop-filter: blur(6px);
}

body.profile-show-page .panel,
body.profile-edit-page .panel {
  border-color: rgb(255 255 255 / 52%);
  background: rgb(255 255 255 / 90%);
  box-shadow: 0 20px 60px rgb(0 0 0 / 22%);
  backdrop-filter: blur(6px);
}

body.trips-index-page .trip-card {
  background: rgb(255 255 255 / 82%);
}

.trip-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.8fr) auto;
  gap: 20px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf7;
}

.trip-card h2,
.trip-card p,
.trip-card dl {
  margin: 0;
}

.trip-card p,
.trip-card-meta dt {
  color: var(--muted);
}

.trip-card-meta {
  display: grid;
  gap: 6px;
}

.trip-card-meta div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px;
}

.trip-card-meta dt {
  font-weight: 750;
}

.trip-card-meta dd {
  margin: 0;
}

.signup-panel {
  min-width: 240px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf7;
}

.signup-panel p {
  margin: 8px 0 0;
}

.signup-panel form {
  margin-top: 12px;
}

.signup-modal,
.confirmation-modal {
  width: min(960px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  box-shadow: 0 20px 60px rgb(31 41 51 / 20%);
  white-space: normal;
}

.signup-modal::backdrop,
.confirmation-modal::backdrop {
  background: rgb(31 41 51 / 45%);
}

.signup-modal-content {
  padding: 24px;
}

.signup-modal-content,
.confirmation-modal-content {
  display: grid;
  gap: 20px;
  padding: 24px;
  max-height: calc(100vh - 32px);
  overflow: auto;
  white-space: normal;
}

.signup-modal-content *,
.confirmation-modal-content * {
  min-width: 0;
}

.signup-modal h2,
.signup-modal p,
.confirmation-modal h2,
.confirmation-modal p {
  margin: 0;
}

.signup-modal-title-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: baseline;
}

.signup-modal-title-line p {
  font-weight: 700;
}

.waitlist-transition-note {
  color: var(--accent);
  font-size: 1.25rem;
}

.admin-refund-choice-spacer {
  min-height: 1rem;
}

.participant-details-campsite-summary {
  display: grid;
  gap: 2px;
  margin-top: 14px;
}

.signup-modal .participant-details-waiver-prompt {
  font-size: 1.5rem;
}

.participant-details-campsite-summary span {
  color: var(--muted);
}

.signup-modal p,
.confirmation-modal p {
  max-width: none;
  color: var(--muted);
  text-align: left;
}

dialog.signup-modal.refund-modal {
  width: min(640px, calc(100% - 32px));
}

dialog.signup-modal.refund-modal .signup-modal-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  padding: 24px;
}

dialog.signup-modal.refund-modal .signup-modal-content > div,
dialog.signup-modal.refund-modal form > div,
dialog.signup-modal.refund-modal .form-actions {
  display: block;
  grid-template-columns: none;
  gap: 0;
  min-height: 0;
  padding: 0;
  border-bottom: 0;
}

dialog.signup-modal.refund-modal .details-list.transaction-details-list {
  padding: 10px 16px;
}

dialog.signup-modal.refund-modal .details-list.transaction-details-list > div {
  display: grid;
  grid-template-columns: minmax(170px, 0.46fr) minmax(0, 1fr);
  gap: 18px;
  align-items: baseline;
  min-height: 44px;
  padding: 5px 0;
  border-bottom: 1px solid var(--line);
}

dialog.signup-modal.refund-modal .details-list.transaction-details-list > div:last-child {
  border-bottom: 0;
}

dialog.signup-modal.refund-modal .refund-amount-field {
  width: min(260px, 100%);
  min-width: 0;
  max-width: 100%;
}

dialog.signup-modal.refund-modal .currency-field {
  display: grid;
  grid-template-columns: auto 1fr;
  min-height: 56px;
  overflow: hidden;
  border: 1px solid #cfd8d3 !important;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 0 rgb(31 41 51 / 4%);
  transition:
    border-color 120ms ease,
    box-shadow 120ms ease,
    background-color 120ms ease;
}

dialog.signup-modal.refund-modal .currency-field span {
  display: inline-flex;
  align-self: stretch;
  align-items: center;
  padding: 0 14px;
  border-right: 1px solid #d8e1dc;
  background: #fbfdfc;
  color: var(--muted);
  font-weight: 850;
}

dialog.signup-modal.refund-modal .currency-field input:not([type="submit"]) {
  min-height: 54px;
  padding: 12px 14px;
  border: 0;
}

dialog.signup-modal.refund-modal .currency-field:hover {
  border-color: var(--accent) !important;
  background: #fbfdfc;
}

dialog.signup-modal.refund-modal .currency-field:focus-within {
  border-color: var(--accent) !important;
  outline: 3px solid rgb(47 111 94 / 18%);
  outline-offset: 2px;
  box-shadow: 0 0 0 1px rgb(47 111 94 / 18%);
}

dialog.signup-modal.refund-modal .form-actions {
  display: flex;
  gap: 10px;
  justify-content: end;
  padding-top: 0;
}

.signup-modal .form-actions,
.confirmation-modal .form-actions {
  justify-content: end;
}

.confirmation-modal .delete-account-actions {
  margin-top: 18px;
}

.admin-campsite-choice-list {
  display: grid;
  gap: 10px;
}

.admin-campsite-choice-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf7;
}

.admin-waitlist-campsite-add-form {
  display: grid;
  gap: 14px;
}

.admin-waitlist-campsite-choice-row {
  grid-template-columns: 42px minmax(220px, 1fr) minmax(160px, auto) minmax(320px, 0.9fr);
  align-items: center;
}

.admin-waitlist-campsite-choice-row.is-selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgb(45 129 105 / 20%);
}

.admin-campsite-choice-selector {
  display: flex;
  justify-content: center;
  align-items: center;
}

.admin-campsite-choice-selector input[type="radio"] {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 2px solid #a8b7ae;
  border-radius: 50%;
  appearance: none;
  background: #fff;
  cursor: pointer;
  transition:
    border-color 120ms ease,
    box-shadow 120ms ease,
    background 120ms ease;
}

.admin-campsite-choice-selector input[type="radio"]:checked {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: inset 0 0 0 7px #fff;
}

.admin-campsite-choice-selector input[type="radio"]:focus-visible {
  outline: 3px solid rgb(47 111 94 / 22%);
  outline-offset: 3px;
}

.admin-waitlist-waive-options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  padding: 10px;
}

.admin-waitlist-waive-options legend {
  font-size: 0.9rem;
}

.admin-waitlist-waive-options label {
  min-width: 0;
  min-height: 58px;
  padding: 10px 14px;
}

.admin-waitlist-waive-options input[type="radio"] {
  width: 26px;
  height: 26px;
  flex-basis: 26px;
}

.admin-waitlist-waive-fields {
  grid-column: 2 / -1;
  padding: 16px;
}

.admin-waitlist-waive-fields select {
  min-height: 54px;
  border-radius: 8px;
}

.admin-campsite-choice-copy,
.admin-campsite-choice-stats {
  display: grid;
  gap: 2px;
}

.admin-campsite-choice-stats {
  grid-template-columns: repeat(2, auto);
  gap: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.admin-campsite-choice-stats strong {
  color: var(--text);
}

.admin-add-participant-form {
  gap: 16px;
}

.admin-add-participant-options {
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 12px;
}

.admin-add-participant-options legend {
  grid-column: 1 / -1;
}

.admin-add-participant-options label {
  width: 100%;
  min-height: 66px;
}

.admin-add-participant-options input[type="radio"] {
  width: 28px;
  height: 28px;
  padding: 0;
  flex: 0 0 28px;
  accent-color: var(--accent);
  cursor: pointer;
}

.admin-add-participant-options label:has(input[type="radio"]:checked) {
  border-color: var(--accent);
  background: #eaf6f1;
  box-shadow: inset 0 0 0 1px rgb(47 111 94 / 18%);
}

.admin-add-participant-options label:has(input[type="radio"]:focus-visible) {
  outline: 3px solid rgb(47 111 94 / 22%);
  outline-offset: 3px;
}

.admin-add-participant-options.admin-waitlist-waive-options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-add-participant-options.admin-waitlist-waive-options label {
  min-height: 58px;
  padding: 10px 14px;
}

.admin-add-participant-options.admin-waitlist-waive-options input[type="radio"] {
  width: 26px;
  height: 26px;
  flex-basis: 26px;
}

.admin-add-participant-fields {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf7;
}

.admin-add-participant-fields[hidden] {
  display: none;
}

.admin-add-participant-fields h3 {
  margin: 0;
}

.participant-picker {
  position: relative;
}

.participant-picker-button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 54px;
  padding: 12px 16px;
  border: 1px solid #cfd8d3;
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-weight: 650;
  text-align: left;
  box-shadow: 0 1px 0 rgb(31 41 51 / 4%);
  transition:
    border-color 120ms ease,
    box-shadow 120ms ease,
    background-color 120ms ease;
}

.participant-picker-button:hover {
  border-color: var(--accent);
  background: #fbfdfc;
}

.participant-picker-button:focus-visible {
  border-color: var(--accent);
  outline: 3px solid rgb(47 111 94 / 18%);
  outline-offset: 2px;
  box-shadow: 0 0 0 1px rgb(47 111 94 / 18%);
}

.participant-picker-button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.participant-picker-chevron {
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--accent-dark);
  border-bottom: 2px solid var(--accent-dark);
  justify-self: center;
  transform: translateY(-2px) rotate(45deg);
}

.participant-picker-panel {
  position: absolute;
  z-index: 40;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  display: grid;
  gap: 8px;
  max-height: min(420px, 52vh);
  padding: 10px;
  border: 1px solid #cfd8d3;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 44px rgb(31 41 51 / 22%);
}

.participant-picker-panel[hidden] {
  display: none;
}

.participant-picker-search {
  min-height: 46px;
  padding: 10px 12px;
  border-color: #cfd8d3;
  border-radius: 8px;
}

.participant-picker-list {
  display: grid;
  gap: 4px;
  max-height: 330px;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  list-style: none;
}

.participant-picker-option {
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-weight: 650;
  text-align: left;
}

.participant-picker-option:hover,
.participant-picker-option:focus-visible {
  border-color: rgb(47 111 94 / 28%);
  background: #eaf6f1;
  outline: 0;
}

.participant-picker-option[aria-selected="true"] {
  border-color: var(--accent);
  background: #eaf6f1;
  color: var(--accent-dark);
}

.participant-picker-option:disabled {
  color: #8a9490;
  cursor: not-allowed;
  opacity: 0.72;
}

.participant-picker-option:disabled:hover {
  border-color: transparent;
  background: transparent;
}

.participant-picker-empty {
  padding: 12px;
  color: var(--muted);
  font-weight: 650;
}

.admin-add-participant-fields select {
  min-height: 54px;
  padding: 12px 48px 12px 16px;
  border-color: #cfd8d3;
  border-radius: 8px;
  appearance: none;
  background-color: #fff;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--accent-dark) 50%),
    linear-gradient(135deg, var(--accent-dark) 50%, transparent 50%);
  background-position:
    calc(100% - 24px) 50%,
    calc(100% - 17px) 50%;
  background-size:
    8px 8px,
    8px 8px;
  background-repeat: no-repeat;
  color: var(--text);
  cursor: pointer;
  font-weight: 650;
  box-shadow: 0 1px 0 rgb(31 41 51 / 4%);
  transition:
    border-color 120ms ease,
    box-shadow 120ms ease,
    background-color 120ms ease;
}

.admin-add-participant-fields select:hover {
  border-color: var(--accent);
  background-color: #fbfdfc;
}

.admin-add-participant-fields select:focus,
.admin-add-participant-fields select:focus-visible {
  border-color: var(--accent);
  outline: 3px solid rgb(47 111 94 / 18%);
  outline-offset: 2px;
  box-shadow: 0 0 0 1px rgb(47 111 94 / 18%);
}

.admin-add-participant-form .form-actions {
  margin-top: 12px;
}

.signup-modal form,
.confirmation-modal form {
  margin: 0;
}

.waiver-form {
  display: grid;
  gap: 18px;
}

.waitlist-form {
  display: grid;
  gap: 18px;
}

.signup-kind-step {
  display: grid;
  gap: 18px;
}

.capacity-warning {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid #f59e0b;
  border-radius: 8px;
  background: #fff7ed;
  color: #92400e;
  font-weight: 750;
}

.capacity-warning[hidden] {
  display: none;
}

.attendance-fields {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf7;
}

.attendance-fields h3,
.attendance-fields p {
  margin: 0;
}

.attendance-date-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.fee-fields {
  display: grid;
  gap: 10px;
  padding: 14px 16px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf7;
}

.fee-fields h3,
.fee-fields p {
  margin: 0;
}

.fee-fields-header {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: baseline;
}

.fee-section-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.fee-section {
  display: grid;
  align-content: start;
  gap: 4px;
  margin: 0;
  padding: 4px 12px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-inline-size: 0;
}

.fee-section legend {
  padding-inline: 6px;
  margin-bottom: 2px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}

.fee-rate {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-block: 2px;
  color: var(--muted);
}

.fee-rate strong {
  color: var(--ink);
  white-space: nowrap;
}

.fee-note {
  font-size: 0.75em;
}

.payment-line-items {
  display: grid;
  gap: 8px;
  width: 100%;
}

.payment-line-item {
  display: grid;
  gap: 2px;
  color: var(--muted);
}

.payment-line-item-label {
  color: var(--ink);
  font-weight: 700;
}

.payment-line-item-details {
  display: grid;
  gap: 2px;
}

.payment-line-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  padding-left: 14px;
  color: var(--muted);
}

.payment-line-detail strong {
  color: var(--ink);
  white-space: nowrap;
}

.fee-fields .payment-summary {
  margin-top: 10px;
  font-size: 1.5rem;
  font-weight: 700;
}

.refund-policy-section {
  color: var(--muted);
}

.refund-policy-section p + p {
  margin-top: 6px;
}

.signup-kind-options {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf7;
}

.signup-kind-options legend {
  padding: 0 4px;
  font-weight: 750;
}

.signup-kind-options label {
  display: inline-flex;
  gap: 14px;
  align-items: center;
  width: min(420px, 100%);
  min-height: 58px;
  padding: 12px 16px;
  border: 1px solid #d8e1dc;
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  font-weight: 700;
  transition:
    border-color 120ms ease,
    background 120ms ease,
    box-shadow 120ms ease;
}

.signup-kind-options input[type="checkbox"] {
  width: 28px;
  height: 28px;
  padding: 0;
  flex: 0 0 28px;
  accent-color: var(--accent);
  cursor: pointer;
}

.signup-kind-options label:hover {
  border-color: var(--accent);
  box-shadow: 0 6px 18px rgb(47 111 94 / 10%);
}

.signup-kind-options label:has(input[type="checkbox"]:checked) {
  border-color: var(--accent);
  background: #eaf6f1;
  box-shadow: inset 0 0 0 1px rgb(47 111 94 / 18%);
}

.signup-kind-options label:has(input[type="checkbox"]:focus-visible) {
  outline: 3px solid rgb(47 111 94 / 22%);
  outline-offset: 3px;
}

.signup-kind-options label span {
  font-size: 1.08rem;
  line-height: 1.2;
}

.minor-fields,
.guest-fields {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf7;
}

.minor-fields[hidden],
.guest-fields[hidden] {
  display: none;
}

.minor-fields h3,
.guest-fields h3 {
  margin: 0;
}

.section-limit {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.add-person-link {
  justify-self: start;
  width: fit-content;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent-dark);
  cursor: pointer;
  font: inherit;
  font-size: 0.625em;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
}

[data-party-row][hidden] {
  display: none;
}

.minor-field-row,
.guest-field-row {
  display: grid;
  grid-template-columns: 32px 1fr 1fr 88px 1fr;
  gap: 12px;
  align-items: end;
}

.guest-field-row {
  grid-template-columns: 32px repeat(4, minmax(0, 1fr));
}

.remove-person-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-bottom: 6px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--danger);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 850;
  line-height: 1;
}

.minor-field-row label,
.guest-field-row label {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 750;
}

.minor-field-row input,
.guest-field-row input {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.waiver-intro {
  display: grid;
  gap: 20px;
}

.signup-kind-step[hidden],
.waiver-intro[hidden],
[data-signature-target="waiverStep"][hidden] {
  display: none;
}

.waiver-intro-copy {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf7;
  
  font-size: 1.05rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

.waiver-intro-copy p {
  margin: 0;
  color: black;
}

.minor-responsibility-note {
  font-weight: 750;
}

.waiver-text {
  max-height: 520px;
  overflow: auto;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf7;
}

.waiver-document {
  display: grid;
  gap: 10px;
  width: 100%;
  color: #40512b;
  line-height: 1.42;
  overflow-wrap: break-word;
}

.waiver-document p {
  margin: 0;
  font-size: 1.3rem;
  color: black;
}

.waiver-title {
  margin: 0;
  text-align: center;
  font-size: 1.5rem;
}

.waiver-warning,
.waiver-summary-heading {
  margin: 0;
  text-align: center;
  font-weight: 750;
  line-height: 1.25;
}

.signup-modal .waiver-warning {
  justify-self: center;
  width: min(100%, 48rem);
  text-align: center;
}

.waiver-summary-heading {
  font-size: 1.1rem;
}

.signature-field {
  display: grid;
  gap: 10px;
}

.signature-label-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}

.signature-label-row label {
  font-weight: 750;
}

.signature-label-row span {
  color: var(--muted);
  font-size: 0.95rem;
}

.signature-pad {
  width: 100%;
  height: 120px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: crosshair;
  touch-action: none;
}

.signature-pad.disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.signup-modal .waiver-signature-actions {
  justify-content: space-between;
  margin-top: 8px;
}

.waiver-signature-submit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: end;
}

.waiver-form button[type="submit"]:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.participant-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  list-style: none;
}

.participant-list li {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fbfaf7;
  font-weight: 700;
}

.confirmed-participants-table {
  margin-top: 10px;
  table-layout: fixed;
}

.confirmed-participants-table th:nth-child(1),
.confirmed-participants-table td:nth-child(1) {
  width: 22%;
}

.confirmed-participants-table th:nth-child(2),
.confirmed-participants-table td:nth-child(2) {
  width: 17%;
}

.confirmed-participants-table th:nth-child(3),
.confirmed-participants-table td:nth-child(3) {
  width: 18%;
}

.confirmed-participants-table th:nth-child(4),
.confirmed-participants-table td:nth-child(4) {
  width: 13%;
}

.confirmed-participants-table th:nth-child(5),
.confirmed-participants-table td:nth-child(5) {
  width: 13%;
}

.confirmed-participants-table th:nth-child(6),
.confirmed-participants-table td:nth-child(6) {
  width: 17%;
}

.public-party-primary-row > td,
.public-party-guest-row > td {
  background: #fcfffd;
}

.public-party-primary-row > td {
  border-top: 2px solid #9bd0ba;
}

.public-party-primary-row > td:first-child,
.public-party-guest-row > td:first-child {
  border-left: 2px solid #9bd0ba;
}

.public-party-primary-row > td:last-child,
.public-party-guest-row > td:last-child {
  border-right: 2px solid #9bd0ba;
}

.public-party-last-row > td {
  border-bottom: 2px solid #9bd0ba;
}

.public-party-guest-row > td:first-child {
  padding-left: 28px;
}

.public-party-participant-name {
  display: inline;
  color: inherit;
  font-size: inherit;
}

.admin-parking-status-form {
  margin: 0;
}

.admin-parking-status-form select {
  width: auto;
  min-width: 0;
  max-width: 100%;
  padding: 5px 8px;
  font-size: 0.86rem;
}

.public-added-by {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
}

.admin-minor-list {
  display: grid;
  gap: 4px;
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.admin-minor-list .info-link-button {
  font-weight: inherit;
  white-space: nowrap;
}

.participant-info-control .info-link-button {
  font-weight: inherit;
}

.admin-linked-party-summary {
  display: block;
  margin-top: 4px;
}

.user-name-cell {
  display: inline-grid;
  grid-template-columns: 18px auto;
  gap: 6px;
  align-items: center;
}

.member-icon,
.member-icon-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
}

.member-icon {
  color: var(--accent-dark);
}

.member-icon svg {
  display: block;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.waiver-download {
  width: fit-content;
}

.waiver-download-link {
  display: inline-flex;
  gap: 5px;
  align-items: center;
}

.waiver-download-icon {
  flex: 0 0 auto;
}

.waitlist {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.waitlist h3 {
  margin: 0 0 10px;
}

.auth-panel {
  max-width: 520px;
}

.auth-primary-action {
  min-width: 130px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.tooltip-heading {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  white-space: nowrap;
}

.info-tooltip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-dark);
  cursor: help;
}

.info-tooltip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: #fff;
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1;
  text-transform: none;
}

.info-tooltip-box {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  left: 50%;
  width: min(300px, 70vw);
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--accent-dark);
  box-shadow: 0 10px 28px rgb(31 41 51 / 20%);
  color: #fff;
  font-size: 1rem;
  font-weight: 750;
  letter-spacing: 0;
  line-height: 1.35;
  opacity: 0;
  pointer-events: none;
  text-align: left;
  text-transform: none;
  transform: translate(-50%, 4px);
  transition: opacity 140ms ease, transform 140ms ease;
  white-space: normal;
}

.info-tooltip:hover .info-tooltip-box,
.info-tooltip:focus .info-tooltip-box,
.info-tooltip:focus-visible .info-tooltip-box {
  opacity: 1;
  transform: translate(-50%, 0);
}

.parking-tooltip.info-tooltip {
  color: var(--muted);
}

.parking-tooltip.info-tooltip .info-tooltip-box {
  white-space: pre-line;
}

.parking-status-with-tooltip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 1rem;
}

.parking-status-with-tooltip .parking-status-label {
  display: inline;
  color: inherit;
  font-size: inherit;
}

.stats .parking-tooltip.info-tooltip {
  display: inline-flex;
  justify-content: flex-start;
  font-size: 0.9rem;
}

.stats .parking-tooltip.info-tooltip .info-tooltip-box {
  color: #fff;
  font-size: 1rem;
}

.stats .parking-tooltip.info-tooltip .info-tooltip-icon {
  display: inline-flex;
  flex: 0 0 18px;
  color: currentColor;
  font-size: 0.78rem;
  line-height: 1;
  text-align: center;
  vertical-align: middle;
  box-sizing: border-box;
}

.status {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  background: #e7f1ed;
  color: var(--accent-dark);
  font-size: 0.85rem;
  font-weight: 750;
}

.missing-value {
  color: var(--danger);
  font-weight: 750;
}

.missing-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--danger);
  cursor: pointer;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.missing-details-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.admin-participant-link-share {
  display: grid;
  gap: 14px;
  justify-items: start;
}

.admin-participant-link-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.admin-participant-link-action-form {
  display: inline-flex;
  margin: 0;
}

.admin-participant-link-action,
.admin-participant-link-action.copy-link-button {
  justify-content: center;
  min-width: 210px;
  min-height: 40px;
  padding: 8px 14px;
  font-size: 1rem;
}

.missing-details-link {
  color: var(--accent-dark);
  font-weight: 750;
}

.copy-link-button {
  gap: 5px;
  min-height: 28px;
  padding: 4px 8px;
  font-size: 0.85rem;
  transition: box-shadow 120ms ease, transform 120ms ease;
}

.copy-link-button:active {
  box-shadow: inset 0 2px 5px rgb(31 41 51 / 16%);
  transform: translateY(1px);
}

.copy-link-icon {
  display: inline-flex;
  align-items: center;
}

.copy-link-button .check-icon {
  display: none;
}

.copy-link-button.is-copied .copy-icon {
  display: none;
}

.copy-link-button.is-copied .check-icon {
  display: inline-flex;
}

.payment-success-waiver-links {
  margin-top: 22px;
  font-size: 1rem;
}

.payment-success-waiver-links li {
  display: grid;
  gap: 14px;
  justify-items: start;
  margin-bottom: 34px;
  padding-left: 4px;
}

.payment-success-waiver-links li:last-child {
  margin-bottom: 0;
}

.payment-success-waiver-link-text {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
  margin-right: 12px;
  font-size: 1.125rem;
  line-height: 1.25;
}

.payment-success-waiver-links .copy-link-button {
  vertical-align: middle;
}

.danger-status {
  background: #fff1f0;
  color: var(--danger);
}

.warning-status {
  background: #fff8db;
  color: #936100;
}

.draft-status {
  background: #fff8db;
  color: #936100;
}

.waitlisted-status {
  background: #fff8db;
  color: #936100;
}

.archived-status {
  background: #eef4ff;
  color: #1f5fbf;
}

.deleted-status {
  background: #fff1f0;
  color: var(--danger);
}

.admin-form {
  display: grid;
  gap: 18px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.field {
  display: grid;
  gap: 6px;
}

.admin-form select {
  min-height: 54px;
  padding: 12px 48px 12px 16px;
  border-color: #cfd8d3;
  border-radius: 8px;
  appearance: none;
  background-color: #fff;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--accent-dark) 50%),
    linear-gradient(135deg, var(--accent-dark) 50%, transparent 50%);
  background-position:
    calc(100% - 24px) 50%,
    calc(100% - 17px) 50%;
  background-size:
    8px 8px,
    8px 8px;
  background-repeat: no-repeat;
  color: var(--text);
  cursor: pointer;
  font-weight: 650;
  box-shadow: 0 1px 0 rgb(31 41 51 / 4%);
  transition:
    border-color 120ms ease,
    box-shadow 120ms ease,
    background-color 120ms ease;
}

.admin-form select:hover {
  border-color: var(--accent);
  background-color: #fbfdfc;
}

.admin-form select:focus,
.admin-form select:focus-visible {
  border-color: var(--accent);
  outline: 3px solid rgb(47 111 94 / 18%);
  outline-offset: 2px;
  box-shadow: 0 0 0 1px rgb(47 111 94 / 18%);
}

.password-visibility-field {
  position: relative;
}

.password-visibility-field input {
  width: 100%;
  padding-right: 54px;
}

.password-visibility-toggle {
  position: absolute;
  top: 50%;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent-dark);
  cursor: pointer;
  transform: translateY(-50%);
}

.password-visibility-toggle:hover,
.password-visibility-toggle:focus-visible {
  color: var(--accent);
}

.password-visibility-icon {
  display: inline-flex;
}

label {
  font-weight: 700;
}

.required-marker {
  margin-left: 2px;
  color: var(--danger);
  font-weight: 850;
}

.required-inline-label {
  display: inline-flex;
  gap: 2px;
  align-items: baseline;
  width: fit-content;
}

.radio-field {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding: 0;
  border: 0;
}

.radio-field legend {
  width: 100%;
  margin-bottom: 2px;
  font-weight: 700;
}

.radio-field label {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.radio-field input {
  width: auto;
}

.user-form {
  gap: 22px;
}

.user-form-section {
  display: grid;
  gap: 18px;
  min-width: 0;
  margin: 0;
  padding: 22px;
  border: 1px solid #cfd8d3;
  border-radius: 8px;
  background: #fbfdfc;
}

.user-form-section > legend {
  padding: 0 8px;
  color: var(--accent-dark);
  font-size: 1.15rem;
  font-weight: 850;
  line-height: 1.2;
}

.user-form-section-compact.radio-field {
  display: flex;
  gap: 14px;
  align-items: center;
}

.user-form-section-compact.radio-field legend {
  width: auto;
  margin-bottom: 0;
}

.user-form-section-compact.radio-field label {
  font-size: 1rem;
}

.user-form-section-compact.radio-field input[type="radio"] {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  accent-color: var(--accent);
}

.user-form-roles-section {
  gap: 14px;
}

.user-role-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

.user-role-option {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #d8e1dc;
  border-radius: 8px;
  background: #fff;
}

.user-role-option span {
  line-height: 1.2;
}

.user-role-checkbox {
  accent-color: var(--accent);
}

input:not([type="submit"]),
select,
textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #b9c0c8;
  border-radius: 6px;
  background: #fff;
}

.user-role-checkbox {
  width: 22px;
  height: 22px;
  padding: 0;
  flex: 0 0 22px;
  border-radius: 5px;
}

.currency-field {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  border: 1px solid #b9c0c8;
  border-radius: 6px;
  background: #fff;
}

.currency-field span {
  padding-left: 12px;
  color: var(--muted);
  font-weight: 700;
}

.currency-field input:not([type="submit"]) {
  border: 0;
  padding-left: 6px;
}

.currency-field:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

textarea {
  resize: vertical;
}

.form-errors,
.empty-state,
.flash {
  padding: 14px 16px;
  border-radius: 8px;
}

.form-errors {
  border: 1px solid #f4b6ae;
  background: #fff4f2;
}

.empty-state {
  border: 1px dashed var(--line);
  background: #fbfaf7;
}

.flash-messages {
  margin-top: 16px;
}

.flash.notice {
  border: 1px solid #9bd0ba;
  background: #ecf8f2;
}

.flash.alert {
  border: 1px solid #f4b6ae;
  background: #fff4f2;
}

.environment-indicator {
  position: fixed;
  left: 16px;
  bottom: 14px;
  z-index: 30;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 7px 10px;
  border: 1px solid #9bd0ba;
  border-radius: 6px;
  background: rgb(255 255 255 / 92%);
  box-shadow: 0 8px 22px rgb(31 41 51 / 12%);
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 750;
}

.environment-indicator a {
  color: var(--accent);
  font-size: 0.75rem;
}

.link-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--danger);
  font-weight: 700;
  cursor: pointer;
}

.info-link-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-weight: 750;
  text-decoration: underline;
  cursor: pointer;
}

.campground-group {
  margin-top: 28px;
}

.campground-group h3 {
  margin-bottom: 4px;
}

.campground-group > p {
  margin-bottom: 10px;
}

.description {
  max-width: 72ch;
  margin-top: 12px;
}

.description p {
  margin: 0;
}

.details-list {
  display: grid;
  gap: 8px;
  margin: 0;
}

.details-list div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
}

.details-list dt {
  color: var(--muted);
  font-weight: 750;
  white-space: nowrap;
}

.details-list dd {
  margin: 0;
}

.campsite-notes-row td {
  padding-top: 0;
  color: var(--muted);
}

.campsite-row-with-notes td {
  border-bottom: 0;
}

.campsite-notes-row strong {
  color: var(--text);
}

.date-pair {
  display: grid;
  gap: 4px;
  margin: 0;
}

.date-pair div {
  display: grid;
  grid-template-columns: 84px max-content;
  gap: 10px;
  align-items: baseline;
}

.date-pair dt {
  color: var(--muted);
  font-weight: 750;
}

.date-pair dd {
  margin: 0;
}

@media (max-width: 760px) {
  .admin-header,
  .public-header,
  .panel-header,
  .campsite-card-header,
  .admin-campsite-card-header {
    align-items: stretch;
    flex-direction: column;
  }

  .public-beta-notice {
    flex-basis: auto;
    max-width: none;
  }

  .campsite-signup-action {
    justify-items: start;
    min-width: 0;
  }

  .waitlist-action-buttons {
    justify-content: flex-start;
  }

  .campsite-signup-action p {
    text-align: left;
  }

  .campsite-card-list,
  .admin-campsite-list {
    padding-left: 0;
  }

  .trip-waitlist-section {
    margin-left: 0;
  }

  .admin-campsite-choice-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .admin-campsite-choice-stats {
    grid-template-columns: 1fr;
  }

  .form-grid,
  .stats,
  .attendance-date-row,
  .fee-section-row,
  .minor-field-row,
  .guest-field-row,
  .help-layout,
  .help-request-detail-grid,
  .trip-card,
  .archived-trip-row {
    grid-template-columns: 1fr;
  }

  .payment-due-section {
    width: 100%;
  }

  .transaction-details-sections {
    grid-template-columns: 1fr;
  }

  body.password-reset-edit-page .public-main {
    display: block;
  }

  body.password-reset-edit-page .auth-panel {
    margin-inline: auto;
  }

  .details-list.transaction-details-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  table {
    display: block;
    overflow-x: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .campsite-card,
  .admin-campsite-card {
    transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
  }

  .campsite-card:hover,
  .campsite-card:focus-within,
  .admin-campsite-card:hover,
  .admin-campsite-card:focus-within {
    transform: none;
  }
}
