/*
 * 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-hint { color: var(--muted); font-size: 12px; font-weight: 400; line-height: 1.4; }
.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; }
}
/* On a phone the tabs are one row that scrolls sideways and stays at the top of
   the screen, so another section is one tap away from anywhere on a long page.
   A shadow at an edge says more tabs are that way: the two covers scroll with
   the tabs and hide the shadows once the row is at its start or end. The bar is
   solid (a panel, not the see-through chip) because the page scrolls under it. */
@media (max-width: 699px) {
  .fc-tabs {
    position: sticky; top: max(8px, env(safe-area-inset-top, 0px)); z-index: 8;
    flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
    background:
      linear-gradient(to right, var(--panel-2) 40%, transparent) left center / 32px 100% no-repeat local,
      linear-gradient(to left, var(--panel-2) 40%, transparent) right center / 32px 100% no-repeat local,
      radial-gradient(farthest-side at 0 50%, color-mix(in srgb, var(--ink) 26%, transparent), transparent) left center / 14px 100% no-repeat scroll,
      radial-gradient(farthest-side at 100% 50%, color-mix(in srgb, var(--ink) 26%, transparent), transparent) right center / 14px 100% no-repeat scroll,
      var(--panel-2);
    box-shadow: inset 0 0 0 1px var(--line-strong), 0 4px 14px color-mix(in srgb, var(--ink) 10%, transparent);
  }
  .fc-tabs::-webkit-scrollbar { display: none; }
  .fc-tabs button { flex: 1 0 auto; min-height: 40px; padding: 0 14px; }
}
.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; scroll-margin-top: 12px; }
/* A section opened from further down starts just under the tabs that stay on a phone's screen. */
@media (max-width: 699px) { .fc-view { scroll-margin-top: 64px; } }
.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; }
/* Under Find the camp, two by two at every width. */
.fc-home-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.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); }
/* On a phone the bar stays a short strip at the bottom of the screen: the total
   and whether it is saved on the left, the button on the right. */
@media (max-width: 559px) {
  .fc-plan-actions {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 12px;
    bottom: calc(8px + env(safe-area-inset-bottom, 0px)); padding: 10px 12px;
  }
  .fc-plan-total { grid-column: 1; grid-row: 1; margin: 0; min-width: 0; }
  .fc-plan-total strong { font-size: 22px; }
  .fc-plan-total small { font-size: 11.5px; }
  .fc-plan-actions .fc-save-state { grid-column: 1; grid-row: 2; font-size: 12px; }
  .fc-plan-actions .fc-button { grid-column: 2; grid-row: 1 / span 2; min-height: 44px; padding: 0 14px; }
}

/* 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; }
/* The ticket an assignment email's "claim in Friendscamp" link opened on. */
.fc-synced-ticket-row.is-highlighted { box-shadow: inset 3px 0 0 var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }

/* ---------- 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; }
/* Nicknames are set in the crew row itself. */
.fc-person-with-action { display: flex; align-items: center; gap: 8px; min-width: 0; }
.fc-person-with-action > .fc-person { flex: 1 1 auto; }
.fc-nickname-edit {
  flex: none; padding: 4px 9px; border-radius: 999px; background: var(--chip);
  color: var(--muted); font-size: 12px; font-weight: 600; white-space: nowrap;
}
.fc-nickname-edit:hover, .fc-nickname-edit:focus-visible { color: var(--ink); background: color-mix(in srgb, var(--ink) 12%, transparent); }
.fc-nickname-inline { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px 10px; }
.fc-nickname-inline .fc-field { flex: 1 1 16rem; margin: 0; }
.fc-nickname-inline__actions { display: flex; gap: 8px; padding-top: 22px; }
@media (max-width: 559px) {
  .fc-nickname-inline__actions { padding-top: 0; }
}
/* Under the crew: the spots that are booked but kept free. */
.fc-kept-free-note {
  margin: 0; padding: 12px 0 0; border-top: 1px dashed var(--line-strong);
  color: var(--muted); font-size: 13px; line-height: 1.45;
}
.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-member-row .fc-person-with-action, .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; }

/* Ticket orders folds away part by part; folded, a part keeps its title and count. */
.fc-fold > summary { cursor: pointer; list-style: none; }
.fc-fold > summary::-webkit-details-marker { display: none; }
.fc-fold > summary::after {
  content: "›"; flex: none; align-self: center; color: var(--muted); font-size: 20px; line-height: 1;
  transition: transform .15s;
}
.fc-fold[open] > summary::after { transform: rotate(90deg); }
.fc-fold:not([open]) > summary p { display: none; }
.fc-fold--sub { margin-top: 16px; }
.fc-fold--sub > summary { display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 700; }
.fc-fold--sub > summary small { color: var(--muted); font-size: 12.5px; font-weight: 400; }
.fc-fold--sub > summary small:empty { display: none; }
.fc-fold--sub > summary::after { margin-left: auto; }
.fc-fold--sub > .fc-fold__body > :first-child { margin-top: 10px; }

.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; }
/* Bleep import: the "Send to camp" bookmark, the paste field, then the order check. */
.fc-bleep-bookmark { display: flex; flex-direction: column; gap: 10px; }
.fc-bleep-bookmark__steps { margin: 0; padding-left: 20px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.fc-bleep-bookmark__actions, .fc-bleep-check__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.fc-bookmarklet { cursor: grab; }
.fc-bleep-bookmark__phone summary { width: fit-content; font-size: 13px; font-weight: 600; cursor: pointer; }
.fc-bleep-bookmark__phone p { margin: 6px 0 0; max-width: 70ch; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.fc-bleep-paste { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8px; }
.fc-bleep-bookmark + .fc-bleep-paste { padding-top: 12px; border-top: 1px solid var(--line-strong); }
.fc-bleep-paste .fc-button { min-height: 46px; }
@media (max-width: 559px) {
  .fc-bleep-paste { grid-template-columns: minmax(0, 1fr); }
  .fc-bleep-paste .fc-button { justify-self: start; }
}
.fc-ticket-note { padding: 10px 12px; border-radius: 10px; background: var(--chip); color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.fc-ticket-note strong { display: block; color: var(--ink); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.fc-ticket-note p { margin: 4px 0 0; max-width: 70ch; }
.fc-bleep-check__status { display: flex; align-items: center; gap: 12px; }
.fc-bleep-check__status strong { display: block; font-size: 14px; }
.fc-bleep-check__status small { display: block; margin-top: 2px; color: var(--muted); font-size: 12.5px; }
.fc-bleep-check__items { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.fc-bleep-check__items li { display: flex; align-items: baseline; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line-strong); font-size: 14px; }
.fc-bleep-check__items li:first-child { border-top: 0; }
.fc-bleep-check__items b { min-width: 3ch; font-variant-numeric: tabular-nums; }
.fc-bleep-check__items span { min-width: 0; overflow-wrap: anywhere; }
.fc-bleep-check__warning { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--warn-soft); color: var(--fc-warn-ink); font-size: 13px; line-height: 1.45; }
@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-synced-order-row small.fc-order-check-line { margin-top: 4px; }
.fc-synced-order-row > .fc-synced-order-actions { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px 10px; }
.fc-link-button { padding: 4px 2px; color: var(--muted); font-size: 12.5px; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.fc-link-button:hover, .fc-link-button:focus-visible { color: var(--ink); }
.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-synced-order-row > .fc-synced-order-actions { justify-content: flex-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; }

/* ---------- Crew, as the organizers see it ----------
   One row per person. Wide screens line the fields up under one header row;
   narrower ones show each person as a small card with labelled fields; on a
   phone the fields wait behind Edit. Every field saves itself. */
.fc-crew-note { margin: 0 0 10px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.fc-crew-note .fc-link-button { font-size: inherit; }
.fc-crew-list { display: flex; flex-direction: column; }
.fc-crew-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "person paid menu" "fields fields fields";
  gap: 10px 10px; align-items: center;
  padding: 12px 0; border-top: 1px solid var(--line-strong);
}
.fc-crew-row--head { display: none; }
.fc-crew-list > .fc-crew-row--head + .fc-crew-row, .fc-crew-list > .fc-crew-row:first-child { border-top: 0; }
.fc-crew-person { grid-area: person; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; }
.fc-crew-person > .fc-person { flex: 1 1 12rem; min-width: 0; }
.fc-crew-fields { grid-area: fields; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px 12px; min-width: 0; }
.fc-crew-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; font-size: 13px; font-weight: 600; }
.fc-crew-field--paid { grid-area: paid; }
.fc-crew-field--menu { grid-area: menu; }
.fc-crew-field select, .fc-crew-field input {
  width: 100%; min-width: 0; height: 40px; padding: 0 10px;
  border-radius: 10px; border: 1px solid var(--line-strong);
  background: var(--panel); color: var(--ink);
  font: inherit; font-size: 14px; font-weight: 500; text-overflow: ellipsis;
}
.fc-crew-field .fc-row-label { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
/* Paid and ⋯ sit next to the name, so they need no label of their own. */
.fc-crew-field.fc-crew-field--paid > .fc-row-label, .fc-crew-field.fc-crew-field--menu > .fc-row-label { display: none; }
.fc-crew-field--handout { gap: 6px; }
.fc-handout { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fc-handout small { color: var(--muted); font-size: 11.5px; font-weight: 500; }
.fc-handout.is-unsent select { border-color: var(--accent); }
.fc-handout.is-unsent small { color: var(--accent); font-weight: 700; }
.fc-crew-none { color: var(--muted); font-size: 13px; font-weight: 500; }
.fc-crew-row__extra { padding: 0 0 12px; }
/* The Edit button and the one-line summary are for phones only. */
.fc-crew-row__toggle, .fc-crew-row__summary { display: none; }
.fc-crew-row__summary { min-width: 0; color: var(--muted); font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
@media (max-width: 559px) {
  .fc-crew-person > .fc-person { flex-basis: 100%; }
  .fc-crew-row__summary { display: block; flex: 1 1 0; order: 2; }
  .fc-crew-row__toggle { display: inline-flex; order: 3; margin-left: auto; }
  .fc-crew-fields { grid-template-columns: minmax(0, 1fr); }
  .fc-crew-row:not(.is-open) > .fc-crew-fields, .fc-crew-row.is-open .fc-crew-row__summary { display: none; }
  .fc-crew-field select, .fc-crew-field input { height: 44px; font-size: 16px; }
}
/* Wide: a table. The fields become the row's own columns, under one header. */
@media (min-width: 1200px) {
  .fc-crew-row, .fc-crew-row--head { grid-template-columns: var(--fc-crew-columns); grid-template-areas: none; gap: 8px 10px; }
  .fc-crew-row--head {
    display: grid; padding: 2px 0 8px; border-top: 0;
    font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  }
  .fc-crew-fields { display: contents; }
  .fc-crew-person, .fc-crew-field--paid, .fc-crew-field--menu { grid-area: auto; }
  .fc-crew-field .fc-row-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .fc-crew-field--handout { align-self: center; }
}
/* Hand-outs wait here until they are sent: each one emails that person. */
.fc-handout-bar {
  position: sticky; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 5;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
  margin-top: 14px; padding: 12px 14px; border-radius: 14px;
  background: var(--panel-2);
  box-shadow: inset 0 0 0 1px var(--accent), 0 6px 20px color-mix(in srgb, var(--ink) 12%, transparent);
}
.fc-handout-bar > span { display: flex; flex-direction: column; margin-right: auto; min-width: 0; }
.fc-handout-bar strong { font-size: 14.5px; }
.fc-handout-bar small { color: var(--muted); font-size: 12.5px; }
/* ⋯ menus: rare actions for one person. */
.fc-menu { position: relative; }
.fc-menu > summary {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
  list-style: none; cursor: pointer; color: var(--muted); font-size: 20px; line-height: 1; letter-spacing: 1px;
}
.fc-menu > summary::-webkit-details-marker { display: none; }
.fc-menu > summary:hover, .fc-menu[open] > summary { background: var(--chip); color: var(--ink); }
.fc-menu__list {
  position: absolute; right: 0; top: calc(100% + 4px); z-index: 30; min-width: 220px; max-width: min(320px, 86vw);
  padding: 6px; border-radius: 14px; background: var(--panel); box-shadow: 0 12px 32px rgba(0, 0, 0, .18), inset 0 0 0 1px var(--line-strong);
}
.fc-menu__list > button {
  display: block; width: 100%; padding: 10px 12px; border-radius: 10px; text-align: left;
  color: var(--ink); font-size: 14px; font-weight: 600;
}
.fc-menu__list > button:hover, .fc-menu__list > button:focus-visible { background: var(--chip); }
.fc-menu__list > .is-danger { color: var(--fc-warn-ink); }
.fc-ticket-note--owner { margin: 12px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.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; }
}

/* ---------- camp location on the camping map ---------- */
/* The side column on Home and on the organizer page: cards stacked. */
.fc-home-side { display: grid; gap: 12px; align-content: start; min-width: 0; }
/* Home's main column: the to-do list, your tickets and your ticket choice. */
.fc-home-main { display: grid; gap: 12px; align-content: start; min-width: 0; }
.fc-home-main > .fc-card { scroll-margin-top: 12px; }
@media (max-width: 699px) { .fc-home-main > .fc-card { scroll-margin-top: 64px; } }
.fc-plan-card #fc-plan-form { margin-top: 18px; }
/* The total and Save: a strip under the choices on a phone, a box at the
   bottom of Home's right column on a wider screen, in view while the
   choices scroll past. */
.fc-plan-actions--side { display: none; }
@media (min-width: 980px) {
  .fc-home-grid > .fc-home-side { display: flex; flex-direction: column; align-self: stretch; }
  .fc-plan-actions--in-form { display: none; }
  .fc-plan-actions--side {
    display: flex; flex-direction: column; align-items: stretch; gap: 10px;
    position: sticky; top: 96px; bottom: auto; margin-top: 0; padding: 16px;
  }
  .fc-plan-actions--side .fc-plan-total { margin-right: 0; }
  .fc-plan-actions--side .fc-button { width: 100%; justify-content: center; }
}
.fc-camp-location .fc-camp-location__note { margin: 8px 0 0; color: var(--ink); font-size: 15px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.fc-camp-location .fc-camp-location__meta { margin: 8px 0 0; color: var(--muted); font-size: 12.5px; }
.fc-ticket-sales .fc-payment-info-row small { display: block; margin-top: 2px; color: var(--muted); font-size: 12.5px; font-weight: 400; }
.fc-ticket-sales .fc-ticket-sales__zone { margin: 8px 0 0; color: var(--muted); font-size: 12.5px; }
.fc-camp-location-form { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.fc-camp-location-form .fc-payment-info-actions { margin-top: 0; }
.fc-camp-location__status { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }


/* The Map tab: the map beside sharing and friends' camps. */
.fc-map-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: start; }
@media (min-width: 960px) {
  .fc-map-layout { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
}
.fc-share-friends__row { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.fc-share-friends__row input { flex: none; width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--accent); }
.fc-share-friends__row strong { display: block; font-size: 14.5px; }
.fc-share-friends__row small { display: block; margin-top: 3px; color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.fc-friend-camp-list { margin: 8px 0 0; padding: 0; list-style: none; }
.fc-friend-camp-list li { padding: 9px 0; border-top: 1px solid var(--line-strong); }
.fc-friend-camp-list li:first-child { border-top: 0; }
.fc-friend-camp-list strong, .fc-friend-camp__name { font-size: 14px; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.fc-friend-camp-list small { display: block; margin-top: 2px; color: var(--muted); font-size: 12.5px; }
.fc-friend-camp__name { display: inline-flex; align-items: center; padding: 0; text-align: left; cursor: pointer; }
.fc-friend-camp__name i { display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 50%; background: #e11d2e; box-shadow: 0 0 0 1.5px #111, 0 0 0 3px #fff; }
.fc-friend-camp__name:hover, .fc-friend-camp__name:focus-visible { text-decoration: underline; }
.fc-friend-camps h4 { margin: 14px 0 0; color: var(--muted); font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.fc-friend-camps-start { margin: 0 0 16px; }

/* ---------- phones and touch screens ---------- */
/* Everything you tap is at least 40px high, so a thumb hits the right one. */
@media (max-width: 699px), (pointer: coarse) {
  .fc-button--small, .fc-appbar .button.small, .fc-head .button.small { min-height: 40px; }
  .fc-entry-mode button { min-height: 44px; }
  .fc-subtabs button { min-height: 40px; padding: 0 14px; }
  .fc-nickname-edit { min-height: 40px; padding: 0 12px; }
  .fc-member-source label { min-height: 40px; }
  .fc-checkout-row__link { height: 40px; padding: 0 14px; border-radius: 20px; }
  .fc-checkout-row__link.is-muted { height: auto; padding: 0; }
  .fc-bleep-bookmark__phone summary { padding: 10px 0; }
  .fc-camp-map__tool { height: 40px; }
  .fc-row-label, .fc-synced-ticket-metrics small { font-size: 11px; }
}

