/*
 * Friendscamp at /friendscamp. The palette comes from css/app.css and the parts
 * (page head, sections, buttons, fields, the toast) from css/ui.css, so the page
 * follows light and dark mode and the festival theme by itself. This file styles
 * the start screen in friendscamp.html and the camp app that
 * js/friendscamp-page.js renders: panels, rows, choice cards, the organizer
 * forms, the timetable embed and the dialogs.
 */

.friendscamp-page {
  /* Warning text: the warn colour pulled towards the text colour, so it stays
     readable on panels in light and dark mode. */
  --fc-warn-ink: color-mix(in srgb, var(--warn) 70%, var(--ink));
  /* Secondary text on a --chip background, which is a shade darker than a panel. */
  --fc-muted-on-chip: color-mix(in srgb, var(--muted) 70%, var(--ink));
}

.fc-wrap > section { margin-bottom: 14px; }

/* ---------- page head ---------- */
.fc-head .actions { margin-top: 16px; }
/* With a camp open the camp bar says where you are; the title stays for screen readers. */
.fc-camp-open .fc-head { margin: 0; }
.fc-camp-open .fc-head > :not(h1) { display: none; }
.fc-camp-open .fc-head h1 {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- panels ---------- */
.fc-notice, .fc-gate, .fc-card {
  border-radius: 14px;
  background: var(--panel-2);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  min-width: 0;
}
.fc-card { padding: 16px; }
.fc-panel > :first-child { margin-top: 0; }
.fc-panel h3, .fc-form-head h3 {
  margin: 0;
  font-family: var(--display); font-weight: 800; font-size: 21px; line-height: 1.05;
  text-transform: uppercase; overflow-wrap: anywhere;
}
.fc-panel > p, .fc-panel > div > p { margin: 6px 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.5; max-width: 70ch; }
.fc-panel > p + p { margin-top: 8px; }
.fc-kicker {
  display: block; margin: 0 0 6px;
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.fc-sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.fc-muted-text { color: var(--muted); }
.fc-empty {
  padding: 22px 16px; border-radius: 12px; border: 1px dashed var(--line-strong);
  color: var(--muted); text-align: center; font-size: 13px; line-height: 1.5;
}
.fc-empty--compact { padding: 12px 14px; text-align: left; }

/* Loading and signed out stay a compact block; everything else uses the width. */
.fc-notice, .fc-gate { max-width: 640px; }
.fc-notice { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.fc-notice strong { display: block; font-size: 14px; }
.fc-notice span:not(.fc-spinner) { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; }
.fc-spinner {
  flex: none; width: 22px; height: 22px; border-radius: 50%;
  border: 2.5px solid var(--line-strong); border-top-color: var(--accent);
  animation: fc-spin .8s linear infinite;
}
@keyframes fc-spin { to { transform: rotate(360deg); } }

/* Signed out */
.fc-gate { padding: 18px 16px; }
.fc-gate p { margin: 6px 0 16px; max-width: 62ch; color: var(--muted); font-size: 14px; line-height: 1.55; }

/* ---------- buttons the script renders ---------- */
.fc-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 40px; padding: 0 16px; border-radius: 12px;
  background: var(--chip); color: var(--ink);
  font-size: 14px; font-weight: 700; line-height: 1.2; text-align: center; text-decoration: none;
  cursor: pointer;
}
.fc-button:hover { background: color-mix(in srgb, var(--ink) 12%, transparent); }
.fc-button--primary { background: var(--accent); color: var(--accent-ink); }
.fc-button--primary:hover { background: color-mix(in srgb, var(--accent) 86%, var(--ink)); }
.fc-button--danger { background: transparent; color: var(--fc-warn-ink); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--warn) 50%, transparent); }
.fc-button--danger:hover { background: var(--warn-soft); }
.fc-button--handout { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--accent); }
.fc-button--handout:hover { background: var(--chip); }
.fc-button--small { min-height: 34px; padding: 0 14px; border-radius: 17px; font-size: 13px; font-weight: 600; }
.fc-button:disabled, .fc-button[aria-disabled="true"] { opacity: .5; cursor: default; }
.fc-button:disabled:hover { background: var(--chip); }
.fc-button--primary:disabled:hover { background: var(--accent); }
.fc-button--danger:disabled:hover, .fc-button--handout:disabled:hover { background: transparent; }
.primary:disabled { cursor: default; }

/* ---------- fields ---------- */
.fc-form { display: flex; flex-direction: column; gap: 14px; }
.fc-form label, .fc-field {
  display: flex; flex-direction: column; gap: 5px; min-width: 0;
  font-size: 13px; font-weight: 600;
}
.fc-form input, .fc-form select, .fc-form textarea,
.fc-field input, .fc-field select, .fc-field textarea,
.fc-search input {
  width: 100%; min-height: 46px; padding: 0 12px;
  border-radius: 12px; border: 1px solid var(--line-strong);
  background: var(--panel); color: var(--ink);
  font: inherit; font-size: 16px; font-weight: 500;
}
.fc-form textarea, .fc-field textarea { min-height: 96px; padding: 10px 12px; line-height: 1.45; resize: vertical; }
.fc-field input[readonly] { background: var(--chip); color: var(--fc-muted-on-chip); }
.fc-field--wide { grid-column: 1 / -1; }
.fc-field--compact input, .fc-field--compact select { min-height: 40px; border-radius: 10px; }
.fc-detail-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.fc-distribution-import-note { grid-column: 1 / -1; display: block; color: var(--muted); font-size: 12.5px; font-weight: 400; line-height: 1.45; }
.fc-search { margin: 0 0 12px; }
.fc-search input { max-width: 420px; }

/* Checkbox and radio choices shown as chips */
.fc-member-source { display: flex; flex-wrap: wrap; gap: 6px; }
.fc-member-source label {
  display: inline-flex; flex-direction: row; align-items: center; gap: 8px;
  min-height: 36px; padding: 0 14px 0 10px; border-radius: 18px;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  font-size: 13px; font-weight: 600; cursor: pointer;
}
.fc-member-source label:hover { background: var(--chip); }
.fc-member-source label:has(input:checked) { box-shadow: inset 0 0 0 2px var(--accent); }
.fc-member-source input { width: 18px; height: 18px; min-height: 0; margin: 0; accent-color: var(--accent); }

/* ---------- start screen ---------- */
.fc-entry-tool { display: flex; flex-direction: column; gap: 14px; }
.fc-entry-tool__intro .section-lede { margin-bottom: 0; }
.fc-entry-mode { display: grid; grid-template-columns: 1fr 1fr; }
.fc-entry-mode button { padding: 9px 10px; font-size: 13.5px; }
.fc-form-head p { margin: 4px 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.fc-create-steps { display: flex; flex-direction: column; gap: 16px; }
.fc-create-step { display: flex; flex-direction: column; gap: 6px; }
.fc-create-step h4 { margin: 0; font-size: 14.5px; font-weight: 700; }
.fc-create-step label { color: var(--muted); font-size: 12px; }
.fc-create-camp-fields { display: flex; flex-direction: column; gap: 10px; }
.fc-create-camp-fields:empty { display: none; }
.fc-create-step-progress { margin: 0; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.fc-create-step-progress:empty { display: none; }
.fc-create-step-hint {
  margin: 0; padding: 9px 12px; border-radius: 10px;
  background: var(--warn-soft); color: var(--ink); font-size: 13px; line-height: 1.45;
}
.fc-create-step-hint a { color: inherit; font-weight: 700; }
.fc-create-camp-box__summary { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.fc-create-step-actions:not(:has(:not([hidden]))) { display: none; }
.fc-inline-status {
  margin: 0; padding: 9px 12px; border-radius: 10px;
  background: var(--chip); color: var(--ink); font-size: 13px; line-height: 1.4;
}
.fc-inline-status:empty { display: none; }
.fc-inline-status[data-tone="error"] { background: var(--warn-soft); }

/* "Your camps": the account's camps, before the join form */
.fc-saved-rooms h3 { margin: 0 0 8px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.fc-saved-rooms__list {
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: 14px; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line-strong);
}
.fc-saved-rooms__list button {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; align-items: center;
  width: 100%; padding: 12px 14px; text-align: left;
}
.fc-saved-rooms__list button + button { border-top: 1px solid var(--line-strong); }
.fc-saved-rooms__list button:hover { background: var(--chip); }
.fc-saved-rooms__list button:focus-visible { outline-offset: -2px; }
.fc-saved-rooms__list button:disabled { cursor: wait; }
.fc-saved-rooms__list span {
  font-family: var(--display); font-weight: 700; font-size: 19px; line-height: 1.1;
  text-transform: uppercase; overflow-wrap: anywhere;
}
.fc-saved-rooms__list small { grid-column: 1; margin-top: 2px; color: var(--muted); font-size: 12.5px; }
.fc-saved-rooms__list b {
  grid-column: 2; grid-row: 1 / span 2;
  padding: 7px 14px; border-radius: 16px;
  background: var(--accent); color: var(--accent-ink); font-size: 13px; font-weight: 600;
}

/* Wider screens: the camps side by side, the join form on one row and the
   questions for a new camp next to each other. */
@media (min-width: 760px) {
  .fc-saved-rooms__list {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px;
    overflow: visible; border-radius: 0; background: none; box-shadow: none;
  }
  .fc-saved-rooms__list button { border-radius: 14px; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line-strong); }
  .fc-saved-rooms__list button + button { border-top: 0; }
  .fc-saved-rooms__list button:hover { background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--accent); }
  .fc-entry-mode { width: min(100%, 440px); }
  #fc-join-room-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; align-items: end; gap: 14px; }
  #fc-join-room-form .fc-form-head { grid-column: 1 / -1; }
  .fc-entry-panel .primary { width: auto; height: 46px; padding: 0 28px; }
  .fc-create-steps { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px 20px; align-items: start; }
  .fc-create-step-progress, .fc-create-step-hint { grid-column: 1 / -1; }
}

/* ---------- the camp ---------- */
.fc-appbar { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; margin: 0 0 14px; }
.fc-room-identity { min-width: 0; flex: 1 1 18rem; }
.fc-room-identity h2 {
  margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(28px, 5vw, 40px); line-height: .95;
  text-transform: uppercase; overflow-wrap: anywhere;
}
.fc-room-identity p { margin: 6px 0 0; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.fc-appbar__actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* The section switch, like the day switch on a timetable. */
.fc-tabs {
  display: flex; flex-wrap: wrap; gap: 4px;
  padding: 4px; border-radius: 14px; background: var(--chip);
}
.fc-tabs button {
  flex: 1 1 calc(33.333% - 4px); min-width: 0;
  padding: 9px 6px; border-radius: 10px;
  color: var(--ink); font-size: 13.5px; font-weight: 600; white-space: nowrap; text-align: center;
}
.fc-tabs button:hover:not(.is-active) { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.fc-tabs button.is-active { background: var(--ink); color: var(--app); }
.fc-tabs button:focus-visible { outline-offset: -2px; }
@media (min-width: 700px) {
  .fc-tabs { display: inline-flex; flex-wrap: nowrap; max-width: 100%; }
  .fc-tabs button { flex: none; padding: 8px 16px; }
}
.fc-subtabs { display: inline-flex; gap: 2px; margin: 0 0 4px; padding: 3px; border-radius: 10px; background: var(--chip); }
.fc-subtabs button { padding: 6px 12px; border-radius: 8px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.fc-subtabs button.is-active { background: var(--ink); color: var(--app); }

.fc-view { padding: 22px 0 8px; min-height: 360px; }
.fc-view-heading { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; margin: 14px 0 16px; }
.fc-view > .fc-view-heading:first-child { margin-top: 0; }
.fc-view-heading > div { min-width: 0; flex: 1 1 20rem; }
.fc-view-heading h2 {
  margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(26px, 4.4vw, 32px); line-height: 1;
  text-transform: uppercase; overflow-wrap: anywhere;
}
.fc-view-heading p { margin: 6px 0 0; max-width: 64ch; color: var(--muted); font-size: 13.5px; line-height: 1.5; }

.fc-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-items: start; }
@media (min-width: 560px) { .fc-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 760px) {
  .fc-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fc-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 980px) { .fc-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.fc-grid:has(> .fc-metric) { align-items: stretch; }
/* A plain .fc-grid inside a panel is a row of buttons. */
.fc-panel > .fc-grid:not(.fc-grid--2):not(.fc-grid--3):not(.fc-grid--4) { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

/* Numbers */
.fc-metric { display: flex; flex-direction: column; gap: 2px; }
.fc-metric span { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.fc-metric strong { font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1.05; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.fc-metric small { color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.fc-metric--flat { padding: 12px 14px; border-radius: 12px; background: var(--chip); }
.fc-metric--flat span, .fc-metric--flat small { color: var(--fc-muted-on-chip); }
.fc-metric--flat strong { font-size: 24px; }
/* On a phone a number sits next to its label, so a row of them stays short. */
@media (max-width: 559px) {
  .fc-metric { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; align-items: center; }
  .fc-metric span, .fc-metric small { grid-column: 1; }
  .fc-metric strong { grid-column: 2; grid-row: 1 / span 2; font-size: 26px; text-align: right; }
  .fc-card.fc-metric { padding: 12px 14px; }
}

/* Labelled rows: camp summary, payment details */
.fc-payment-info-list { display: flex; flex-direction: column; margin-top: 10px; }
.fc-payment-info-row {
  display: grid; grid-template-columns: minmax(92px, min(34%, 180px)) minmax(0, 1fr); gap: 12px; align-items: baseline;
  padding: 9px 0; border-top: 1px solid var(--line-strong);
}
.fc-payment-info-row:first-child { border-top: 0; }
.fc-payment-info-row span { color: var(--muted); font-size: 12.5px; }
.fc-payment-info-row strong { font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.fc-payment-info-row a { color: var(--accent); }
.fc-payment-info-note, .fc-hint {
  margin-top: 12px; padding: 10px 12px; border-radius: 12px;
  background: var(--chip); font-size: 13px; line-height: 1.5; overflow-wrap: anywhere;
}
.fc-hint { margin: 0 0 18px; }
.fc-warning {
  margin-top: 12px; padding: 10px 12px; border-radius: 12px;
  background: var(--warn-soft); color: var(--ink); font-size: 13px; line-height: 1.5;
}
.fc-warning .fc-payment-info-actions { margin-top: 10px; }
.fc-payment-info-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.fc-payment-info-updated { display: block; margin-top: 10px; color: var(--muted); font-size: 12px; }
/* Several ways to pay: a block each, then what they share. */
.fc-payment-methods-intro { margin: 12px 0 0; color: var(--muted); font-size: 13px; }
.fc-payment-methods { display: grid; gap: 10px; margin-top: 8px; }
@media (min-width: 760px) { .fc-payment-methods { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); } }
.fc-payment-method { padding: 12px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line-strong); }
.fc-payment-method h4 { margin: 0; font-size: 14px; font-weight: 700; }
.fc-payment-method .fc-payment-info-list { margin-top: 4px; }
.fc-payment-method > .fc-button { margin-top: 10px; }
.fc-payment-methods-editor { display: flex; flex-direction: column; gap: 12px; }
.fc-payment-method-fields { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 12px; border: 0; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line-strong); }
.fc-payment-method-fields legend { padding: 0 4px; font-size: 13px; font-weight: 700; }
.fc-payment-method-fields > .fc-button, .fc-payment-method-add { align-self: flex-start; }
.fc-payment-method-fields [hidden], .fc-payment-method-add[hidden] { display: none; }

/* People and pills */
.fc-person { display: flex; align-items: center; gap: 10px; min-width: 0; }
.fc-person > div { display: flex; flex-direction: column; min-width: 0; }
.fc-person strong { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fc-person small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fc-avatar {
  flex: none; width: 36px; height: 36px; border-radius: 50%; overflow: hidden;
  display: inline-grid; place-items: center;
  background: var(--accent); color: #fff;
  font-size: 12.5px; font-weight: 800; letter-spacing: .02em; line-height: 1;
}
.fc-avatar img { width: 100%; height: 100%; display: block; object-fit: cover; }
.fc-avatar.has-image { color: transparent; }
.fc-status-pill {
  display: inline-flex; align-items: center; width: fit-content; justify-self: start;
  padding: 3px 9px; border-radius: 999px;
  background: var(--chip); color: var(--ink); font-size: 12px; font-weight: 600; white-space: nowrap;
}
:is(.fc-member-row, .fc-payment-row, .fc-cost-status) .fc-status-pill:not(.is-paid) { background: var(--warn-soft); }
.fc-status-pill.is-paid { background: var(--accent); color: var(--accent-ink); }
.fc-check-mark {
  flex: none; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: inset 0 0 0 2px var(--line-strong);
  font-size: 12px; font-weight: 800;
}
.fc-check-mark.is-done { background: var(--accent); color: var(--accent-ink); box-shadow: none; }
.fc-row-label { display: none; }

/* ---------- Home ---------- */
@media (min-width: 980px) { .fc-home-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); gap: 12px; align-items: start; } }
.fc-home-grid { display: grid; gap: 12px; }
.fc-home-metrics { margin-top: 12px; }
.fc-todo-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.fc-todo-head span { flex: none; color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.fc-todo-progress { height: 6px; margin: 12px 0 2px; border-radius: 3px; background: var(--chip); overflow: hidden; }
.fc-todo-progress i { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.fc-todo-list, .fc-step-list { margin: 0; padding: 0; list-style: none; }
.fc-todo, .fc-step-list li {
  display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 12px; align-items: center;
  padding: 12px 0; border-top: 1px solid var(--line-strong);
}
.fc-todo:first-child, .fc-step-list li:first-child { border-top: 0; }
.fc-todo > div, .fc-step-list li > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fc-todo strong, .fc-step-list strong { font-size: 14px; font-weight: 600; line-height: 1.35; }
.fc-todo small, .fc-step-list small { color: var(--muted); font-size: 12.5px; line-height: 1.4; overflow-wrap: anywhere; }
.fc-todo .fc-button, .fc-step-list .fc-button { white-space: nowrap; }
.fc-step-list li:not(:has(.fc-button)) { grid-template-columns: 24px minmax(0, 1fr); }
@media (max-width: 379px) {
  .fc-todo, .fc-step-list li { grid-template-columns: 24px minmax(0, 1fr); }
  .fc-todo .fc-button, .fc-step-list .fc-button { grid-column: 2; justify-self: start; }
}

/* ---------- My tickets ---------- */
.fc-plan-status { margin-bottom: 24px; }
.fc-plan-section + .fc-plan-section { margin-top: 26px; }
.fc-plan-section > h3 {
  margin: 0; font-family: var(--display); font-weight: 800; font-size: 22px; line-height: 1.05; text-transform: uppercase;
}
.fc-plan-section > p { margin: 4px 0 12px; max-width: 70ch; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.fc-ticket-grid, .fc-parking-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); gap: 8px; }
.fc-extras-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 8px; }
.fc-choice {
  position: relative; display: flex; flex-direction: column; gap: 4px; min-width: 0;
  padding: 14px; border-radius: 14px;
  background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line-strong);
  cursor: pointer;
}
.fc-choice:hover { box-shadow: inset 0 0 0 1px var(--accent); }
.fc-choice.is-selected { box-shadow: inset 0 0 0 2px var(--accent); }
.fc-choice:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.fc-choice:has(input:disabled) { cursor: default; }
.fc-choice input { position: absolute; top: 0; left: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.fc-choice small { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.fc-choice strong { font-size: 15px; font-weight: 700; line-height: 1.3; }
.fc-choice p { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.fc-choice b { margin-top: auto; padding-top: 6px; font-family: var(--display); font-weight: 800; font-size: 20px; font-variant-numeric: tabular-nums; }
.fc-choice .fc-price-parts { font-size: 11.5px; font-weight: 400; letter-spacing: 0; text-transform: none; }
.fc-choice.is-sold-out { opacity: .6; }
.fc-choice.is-sold-out.is-selected { opacity: 1; }
.fc-price-parts { display: block; color: var(--muted); font-size: 11.5px; line-height: 1.4; }
.fc-sold-out-badge {
  align-self: flex-start; padding: 2px 8px; border-radius: 6px;
  background: var(--warn-soft); color: var(--ink);
  font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.fc-plan-actions {
  position: sticky; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 5;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
  margin-top: 22px; padding: 12px 14px; border-radius: 14px;
  background: var(--panel-2);
  box-shadow: inset 0 0 0 1px var(--line-strong), 0 6px 20px color-mix(in srgb, var(--ink) 12%, transparent);
}
.fc-plan-total { display: flex; flex-direction: column; margin-right: auto; }
.fc-plan-total span { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.fc-plan-total strong { font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1.05; font-variant-numeric: tabular-nums; }
.fc-plan-total small { color: var(--muted); font-size: 12px; }
.fc-save-state { color: var(--fc-warn-ink); font-size: 13px; font-weight: 600; }
.fc-save-state.is-saved { color: var(--ink); }
@media (max-width: 559px) {
  .fc-plan-actions { position: static; }
  .fc-plan-actions .fc-button { width: 100%; }
}

/* Tickets someone was given, and ticket rows in general */
.fc-synced-ticket-list {
  display: flex; flex-direction: column; margin-top: 12px;
  border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line-strong); overflow: hidden;
}
.fc-synced-ticket-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 12px; align-items: center;
  padding: 12px 14px;
}
.fc-synced-ticket-row + .fc-synced-ticket-row { border-top: 1px solid var(--line-strong); }
.fc-synced-ticket-row > div:first-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fc-synced-ticket-row strong { font-size: 14px; font-weight: 600; }
.fc-synced-ticket-row small { color: var(--muted); font-size: 12.5px; line-height: 1.4; overflow-wrap: anywhere; }
.fc-ticket-claim-status { font-weight: 600; }
.fc-synced-ticket-row.is-claimed .fc-ticket-claim-status { color: var(--ink); }
.fc-synced-ticket-list > .fc-empty { border: 0; border-radius: 0; }

/* ---------- Crew ---------- */
.fc-member-row, .fc-ticket-status-row {
  display: grid; gap: 8px 14px; align-items: center;
  padding: 12px 0; border-top: 1px solid var(--line-strong);
}
.fc-member-row { grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, .8fr)); }
.fc-member-row--one-ticket-column { grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, .8fr)); }
.fc-member-row--no-ticket-columns { grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr); }
.fc-ticket-status-row { grid-template-columns: minmax(0, 1.3fr) repeat(4, minmax(0, .8fr)); }
.fc-member-row > span, .fc-ticket-status-row > span { min-width: 0; font-size: 13.5px; overflow-wrap: anywhere; }
.fc-member-row--head, .fc-ticket-status-row--head {
  padding: 4px 0 8px; border-top: 0;
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.fc-member-row--head > span, .fc-ticket-status-row--head > span { font-size: inherit; }
.fc-panel > .fc-search + .fc-member-row--head, .fc-panel > .fc-member-row--head:first-child { margin-top: 0; }
@media (max-width: 759px) {
  .fc-member-row--head, .fc-ticket-status-row--head { display: none; }
  .fc-member-row, .fc-member-row--one-ticket-column, .fc-member-row--no-ticket-columns, .fc-ticket-status-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .fc-member-row .fc-person, .fc-ticket-status-row .fc-person { grid-column: 1 / -1; }
  .fc-member-row--head + .fc-member-row, .fc-ticket-status-row--head + .fc-ticket-status-row { border-top: 0; }
  .fc-row-label { display: block; margin-bottom: 1px; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
}

/* ---------- Payment ---------- */
.fc-payment-tracker__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 6px; }
.fc-payment-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 8px 14px; align-items: center;
  padding: 12px 0; border-top: 1px solid var(--line-strong);
}
.fc-payment-row > strong { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.fc-panel > p + .fc-payment-row, .fc-payment-tracker__head + .fc-payment-row { margin-top: 6px; }
.fc-payment-row:not(:has(> strong)) { grid-template-columns: minmax(0, 1fr) auto; }
@media (max-width: 599px) {
  .fc-payment-row { grid-template-columns: auto auto minmax(0, 1fr); }
  .fc-payment-row .fc-person { grid-column: 1 / -1; }
  .fc-payment-row > .fc-button { justify-self: end; }
  .fc-payment-row:not(:has(> strong)) { grid-template-columns: minmax(0, 1fr) auto; }
  .fc-payment-row:not(:has(> strong)) .fc-person { grid-column: auto; }
}
.fc-cost-list { display: flex; flex-direction: column; margin-top: 10px; }
.fc-cost-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 9px 0; border-top: 1px solid var(--line-strong); font-size: 14px;
}
.fc-cost-row:first-child { border-top: 0; }
.fc-cost-row span { min-width: 0; overflow-wrap: anywhere; }
.fc-cost-row strong { flex: none; font-weight: 600; font-variant-numeric: tabular-nums; }
.fc-cost-row .fc-price-parts { margin-top: 2px; }
.fc-cost-row--total { border-top: 1px solid var(--ink); font-weight: 800; font-size: 16px; }
.fc-cost-row--total strong { font-weight: 800; }
.fc-cost-status { margin-top: 10px; }

/* ---------- Organizer: what to buy, the shop and the ticket pool ---------- */
.fc-buy-counter__head, .fc-checkout-panel__head {
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px 14px;
}
.fc-buy-counter__head > div, .fc-checkout-panel__head > div { flex: 1 1 18rem; min-width: 0; }
.fc-buy-counter__head p, .fc-checkout-panel__head p { margin: 6px 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.5; max-width: 70ch; }
.fc-buy-counter__head > span, .fc-checkout-panel__head > span {
  flex: none; padding: 5px 10px; border-radius: 999px;
  background: var(--chip); color: var(--fc-muted-on-chip); font-size: 12.5px; font-variant-numeric: tabular-nums;
}
.fc-buy-counter__groups { display: grid; gap: 16px; margin-top: 16px; }
@media (min-width: 760px) { .fc-buy-counter__groups { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px 24px; } }
.fc-buy-counter__groups section { min-width: 0; }
.fc-buy-counter__groups h4, .fc-checkout-panel__head h4 { margin: 0; font-size: 14.5px; font-weight: 700; }
.fc-buy-counter__groups h4 { margin-bottom: 4px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.fc-buy-counter__row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center;
  padding: 8px 0; border-top: 1px solid var(--line-strong);
}
.fc-buy-counter__groups h4 + .fc-buy-counter__row { border-top: 0; }
.fc-buy-counter__row div { display: flex; flex-direction: column; min-width: 0; }
.fc-buy-counter__row strong { font-size: 14px; font-weight: 600; }
.fc-buy-counter__row small { color: var(--muted); font-size: 12px; }
.fc-buy-counter__row b { font-family: var(--display); font-weight: 800; font-size: 22px; font-variant-numeric: tabular-nums; }
.fc-buy-counter__row.is-empty strong, .fc-buy-counter__row.is-empty b { color: var(--muted); }
.fc-buy-counter__groups section > small { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; }

.fc-checkout-panel, .fc-bleep-import-form, .fc-column-settings, .fc-bulk-status-form, .fc-planned-member-form, .fc-local-token {
  margin-top: 16px; padding: 14px; border-radius: 12px;
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.fc-checkout-list { display: flex; flex-direction: column; margin-top: 10px; }
.fc-checkout-row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(80px, auto) auto minmax(80px, auto) auto; gap: 8px 14px; align-items: center;
  padding: 10px 0; border-top: 1px solid var(--line-strong);
}
.fc-checkout-row:first-child { border-top: 0; }
.fc-checkout-row > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fc-checkout-row strong { font-size: 14px; font-weight: 600; }
.fc-checkout-row small, .fc-checkout-row > span { color: var(--muted); font-size: 12.5px; }
.fc-checkout-row b { font-variant-numeric: tabular-nums; }
.fc-checkout-row em { font-style: normal; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.fc-checkout-row.is-sold-out strong { text-decoration: line-through; }
.fc-checkout-row__link {
  display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 14px;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  color: inherit; font-size: 12.5px; font-weight: 600; text-decoration: none; white-space: nowrap;
}
a.fc-checkout-row__link:hover { background: var(--chip); }
.fc-checkout-row__link.is-muted { box-shadow: none; color: var(--muted); padding: 0; }
.fc-checkout-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-strong); }
.fc-checkout-total { display: flex; flex-direction: column; margin-right: auto; }
.fc-checkout-total span { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.fc-checkout-total strong { font-family: var(--display); font-weight: 800; font-size: 24px; font-variant-numeric: tabular-nums; }
@media (max-width: 759px) {
  .fc-checkout-row { grid-template-columns: minmax(0, 1fr) auto auto; }
  .fc-checkout-row > span { display: none; }
  .fc-checkout-row__link { grid-column: 1 / -1; justify-self: start; }
}

.fc-bleep-import-form { display: flex; flex-direction: column; gap: 12px; }
.fc-bleep-import-form > .fc-button { align-self: flex-start; }
.fc-provider-import-head strong { display: block; font-size: 14.5px; font-weight: 700; }
.fc-provider-import-head small { display: block; margin-top: 2px; color: var(--muted); font-size: 12.5px; }
@media (min-width: 760px) {
  .fc-detail-grid--bleep, .fc-detail-grid--payment-info, .fc-detail-grid--camp-info { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fc-detail-grid--distribution { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.fc-grid--2 .fc-detail-grid--payment-info, .fc-grid--2 .fc-detail-grid--camp-info { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1100px) {
  .fc-grid--2 .fc-detail-grid--payment-info, .fc-grid--2 .fc-detail-grid--camp-info { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.fc-synced-ticket-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.fc-synced-ticket-metrics span { display: flex; flex-direction: column; min-width: 0; padding: 10px 12px; border-radius: 12px; background: var(--chip); }
.fc-synced-ticket-metrics small { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--fc-muted-on-chip); }
.fc-synced-ticket-metrics strong { font-family: var(--display); font-weight: 800; font-size: 24px; font-variant-numeric: tabular-nums; }
.fc-synced-order-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.fc-synced-order-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 12px; align-items: center;
  padding: 12px 14px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line-strong);
}
.fc-synced-order-row > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fc-synced-order-row strong { font-size: 14px; font-weight: 600; }
.fc-synced-order-row small { color: var(--muted); font-size: 12.5px; overflow-wrap: anywhere; }
.fc-ticket-distribution-form { display: block; }
.fc-synced-ticket-row--editable { grid-template-columns: minmax(0, 1fr) minmax(150px, 220px) auto; }
.fc-synced-ticket-row.is-dirty { box-shadow: inset 3px 0 0 var(--warn); }
.fc-synced-ticket-row.is-last-copied { box-shadow: inset 3px 0 0 var(--accent); }
.fc-synced-ticket-row.is-dirty.is-last-copied { box-shadow: inset 3px 0 0 var(--warn); }
.fc-synced-ticket-row [data-fc-ticket-assignment-pending] { color: var(--fc-warn-ink); font-weight: 600; }
.fc-copied-tag {
  align-self: flex-start; padding: 1px 6px; border-radius: 6px;
  background: var(--accent); color: var(--accent-ink); font-size: 10.5px; font-weight: 700;
}
.fc-synced-ticket-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.fc-ticket-distribution-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.fc-ticket-distribution-actions small { margin-right: auto; color: var(--muted); font-size: 12.5px; }
@media (max-width: 759px) {
  .fc-synced-ticket-row--editable { grid-template-columns: minmax(0, 1fr); }
  .fc-synced-ticket-actions { justify-content: flex-start; }
}
@media (max-width: 479px) {
  .fc-synced-order-row, .fc-synced-ticket-row { grid-template-columns: minmax(0, 1fr); }
  .fc-synced-order-row .fc-button, .fc-synced-ticket-row > .fc-button { justify-self: start; }
}
.fc-crew-ticket-metrics { margin: 14px 0 10px; }

/* ---------- Organizer: camp settings and the crew list ---------- */
.fc-camp-info-form { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.fc-camp-info-form .fc-payment-info-actions, .fc-payment-info-form .fc-payment-info-actions { margin-top: 0; }
.fc-payment-info-form { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; }
.fc-camp-price-preview { margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--chip); font-size: 13px; line-height: 1.5; }
.fc-camp-price-preview > span { display: block; }
.fc-camp-price-warning { margin-top: 8px; padding: 8px 10px; border-radius: 8px; background: var(--warn-soft); }
.fc-room-tools .fc-payment-info-list { margin-top: 12px; }

.fc-column-settings { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.fc-column-settings h4, .fc-bulk-status-form h4 { margin: 0; font-size: 14.5px; font-weight: 700; }
.fc-column-settings p, .fc-bulk-status-form p { margin: 4px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.fc-bulk-status-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-items: end; }
.fc-bulk-status-form .fc-button { justify-self: start; }
@media (min-width: 760px) {
  .fc-bulk-status-form { grid-template-columns: minmax(0, 1fr) minmax(180px, 240px) auto; }
}

.fc-planned-member-form {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(160px, 100%), 1fr)); gap: 12px; align-items: end;
}
.fc-planned-member-form .fc-member-source,
.fc-planned-member-form__hint,
.fc-field--account-search { grid-column: 1 / -1; }
.fc-planned-member-form__hint { color: var(--muted); font-size: 12.5px; }
/* The search hint only matters when adding an account. */
.fc-planned-member-form:has(input[name="memberSource"][value="placeholder"]:checked) .fc-planned-member-form__hint { display: none; }
.fc-account-suggestions {
  display: flex; flex-direction: column; max-height: 280px; overflow: auto;
  border-radius: 12px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line-strong);
  font-weight: 400;
}
.fc-account-suggestion {
  display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 10px; align-items: center;
  width: 100%; padding: 8px 12px; text-align: left;
}
.fc-account-suggestion + .fc-account-suggestion { border-top: 1px solid var(--line-strong); }
button.fc-account-suggestion:hover:not(:disabled) { background: var(--chip); }
button.fc-account-suggestion:disabled { opacity: .6; cursor: not-allowed; }
.fc-account-suggestion--selected { background: var(--chip); }
.fc-account-suggestion--selected small { color: var(--fc-muted-on-chip); }
.fc-account-suggestion .fc-avatar { width: 32px; height: 32px; font-size: 11px; }
.fc-account-suggestion > span:nth-child(2) { display: flex; flex-direction: column; min-width: 0; }
.fc-account-suggestion strong { font-weight: 600; overflow-wrap: anywhere; }
.fc-account-suggestion small { color: var(--muted); font-size: 12px; }
.fc-account-suggestion > span:last-child { color: var(--accent); font-size: 12px; font-weight: 700; white-space: nowrap; }
.fc-account-suggestions__message { padding: 10px 12px; color: var(--muted); font-size: 13px; line-height: 1.4; }

.fc-organizer-member-list { display: flex; flex-direction: column; margin-top: 8px; }
.fc-organizer-member-form {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; align-items: end;
  padding: 14px 0; border-top: 1px solid var(--line-strong);
}
.fc-organizer-member-form:first-child { border-top: 0; }
.fc-organizer-member-form .fc-person { grid-column: 1 / -1; }
.fc-organizer-member-form__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
@media (min-width: 760px) {
  .fc-organizer-member-form { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .fc-organizer-member-form .fc-person { grid-column: 1 / 5; grid-row: 1; }
  .fc-organizer-member-form__actions { grid-column: 5 / -1; grid-row: 1; justify-content: flex-end; }
}
.fc-member-link-actions { display: flex; flex-wrap: wrap; gap: 6px; }
/* "Link account" under a crew member added by name. */
.fc-link-account-form { display: grid; gap: 8px; padding: 0 0 14px; }
.fc-link-account-form[hidden] { display: none; }
.fc-link-account-form__hint { color: var(--muted); font-size: 12.5px; }
.fc-link-account-form__actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* Local order references (kept for older camps) */
.fc-local-token { display: flex; flex-direction: column; gap: 12px; }
.fc-local-token > small { color: var(--muted); font-size: 12.5px; }
.fc-order-list, .fc-order-distribution-links { display: flex; flex-direction: column; gap: 8px; }
.fc-order-card { padding: 12px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line-strong); }
.fc-order-row, .fc-order-distribution-link { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; }
.fc-order-row > div, .fc-order-distribution-link > div { display: flex; flex-direction: column; flex: 1 1 14rem; min-width: 0; }
.fc-order-row small, .fc-order-distribution-link small, .fc-order-distribution-links > small { color: var(--muted); font-size: 12.5px; overflow-wrap: anywhere; }
.fc-order-distribution-links { margin-top: 10px; }

/* ---------- Timetable ---------- */
.fc-schedule-embed-card { padding: 0; overflow: hidden; }
.fc-schedule-frame-shell { position: relative; width: 100%; height: min(78vh, 860px); min-height: 560px; background: var(--app); }
.fc-schedule-frame-shell::before {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%;
  border: 3px solid var(--line-strong); border-top-color: var(--accent);
  animation: fc-spin .8s linear infinite;
}
.fc-schedule-embed-card.is-field-ready .fc-schedule-frame-shell::before { display: none; }
.fc-schedule-frame { display: block; width: 100%; height: 100%; border: 0; background: transparent; opacity: 0; transition: opacity .16s ease; }
.fc-schedule-embed-card.is-field-ready .fc-schedule-frame { opacity: 1; }
@media (max-width: 599px) {
  .fc-schedule-frame-shell { height: calc(100vh - 190px); min-height: 460px; }
}
.fc-member-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.fc-member-chip {
  display: inline-flex; align-items: center; gap: 6px; max-width: 100%;
  height: 28px; padding: 0 10px; border-radius: 14px;
  background: var(--chip); font-size: 12.5px; font-weight: 600;
}
.fc-member-chip i { flex: none; width: 10px; height: 10px; border-radius: 50%; }

/* ---------- dialogs and the toast ---------- */
.fc-confirm-open body { overflow: hidden; }
.fc-confirm-backdrop {
  position: fixed; inset: 0; z-index: 10020;
  display: grid; place-items: center;
  padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  background: var(--scrim);
}
.fc-confirm-dialog {
  display: flex; flex-direction: column; gap: 16px;
  width: min(480px, 100%); max-height: calc(100dvh - 32px); overflow: auto;
  padding: 18px; border-radius: 16px;
  background: var(--panel-2); color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-strong), var(--shadow);
}
.fc-confirm-dialog__copy .fc-kicker { margin-bottom: 4px; }
.fc-confirm-dialog h2 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1; text-transform: uppercase; }
.fc-confirm-dialog p { margin: 8px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.fc-confirm-dialog p:empty { display: none; }
.fc-confirm-dialog__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.fc-confirm-dialog .fc-button { min-height: 44px; }
.fc-confirm-backdrop:not([data-tone="primary"]) [data-fc-confirm-ok] { background: var(--fc-warn-ink); color: var(--app); box-shadow: none; }
.fc-confirm-backdrop[data-tone="primary"] .fc-button--danger { background: var(--accent); color: var(--accent-ink); box-shadow: none; }
.fc-first-join-form { display: flex; flex-direction: column; gap: 16px; }
.fc-first-join-fields { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 480px) { .fc-first-join-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 479px) {
  .fc-confirm-dialog__actions { display: grid; grid-template-columns: minmax(0, 1fr); }
}
.fc-footer { margin: 26px 0 0; color: var(--muted); font-size: 12.5px; }

@media (max-width: 559px) {
  .fc-payment-info-actions .fc-button, .fc-checkout-actions .fc-button { flex: 1 1 auto; }
}
