/* GENERATED copy of club/design-system/src/fc-components.css. Do not edit here. */
/* FC design system components. Source: club/design-system/src/fc-components.css.
   Rules: only var(--fc-*) tokens, no raw colours, no off-scale sizes. Every class starts with fc- so it never
   collides with older page CSS. Load order: fc-tokens.css, fc-components.css, then page CSS (page CSS must not
   restyle fc- classes). Spec and examples: club/design-system/DESIGN.md. */

/* ---------- Base (opt in with class="fc-page" on <body>) ---------- */
.fc-page {
  margin: 0;
  background: var(--fc-bg-app);
  color: var(--fc-text-primary);
  font-family: var(--fc-font-body);
  font-size: var(--fc-text-base);
  line-height: var(--fc-leading-normal);
  -webkit-font-smoothing: antialiased;
}
.fc-page *, .fc-page *::before, .fc-page *::after { box-sizing: border-box; }
.fc-page :focus-visible { outline: 2px solid var(--fc-border-focus); outline-offset: 2px; }
.fc-num { font-variant-numeric: tabular-nums; }
.fc-muted { color: var(--fc-text-muted); }
.fc-secondary { color: var(--fc-text-secondary); }
.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; }

/* ---------- Layout ---------- */
.fc-content { padding: var(--fc-page-pad-y) var(--fc-page-pad-x); max-width: var(--fc-content-max); }
.fc-stack { display: flex; flex-direction: column; gap: var(--fc-space-4); }
.fc-stack-lg { display: flex; flex-direction: column; gap: var(--fc-space-6); }
.fc-row { display: flex; align-items: center; gap: var(--fc-space-3); flex-wrap: wrap; }
.fc-spacer { flex: 1 1 auto; }
.fc-grid { display: grid; gap: var(--fc-space-4); grid-template-columns: repeat(12, minmax(0, 1fr)); }
.fc-grid-2 { display: grid; gap: var(--fc-space-4); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fc-grid-3 { display: grid; gap: var(--fc-space-4); grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1024px) { .fc-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 768px) { .fc-grid-2, .fc-grid-3 { grid-template-columns: 1fr; } }

/* ---------- Page header, section header ---------- */
.fc-page-head { display: flex; align-items: center; justify-content: space-between; gap: var(--fc-space-4); margin-bottom: var(--fc-space-5); flex-wrap: wrap; }
.fc-page-title { margin: 0; font-size: var(--fc-text-2xl); font-weight: var(--fc-weight-semibold); line-height: var(--fc-leading-tight); letter-spacing: var(--fc-tracking-tight); color: var(--fc-text-primary); }
.fc-page-sub { margin: var(--fc-space-1) 0 0; font-size: var(--fc-text-sm); color: var(--fc-text-secondary); }
.fc-section-title { margin: 0 0 var(--fc-space-3); font-size: var(--fc-text-md); font-weight: var(--fc-weight-medium); line-height: var(--fc-leading-snug); color: var(--fc-text-primary); }
.fc-overline { font-size: var(--fc-text-xs); font-weight: var(--fc-weight-medium); color: var(--fc-text-muted); letter-spacing: var(--fc-tracking-wide); }

/* ---------- Tabs (top level) and subtabs ---------- */
.fc-tabs { display: flex; gap: var(--fc-space-1); border-bottom: 1px solid var(--fc-border); margin-bottom: var(--fc-space-4); overflow-x: auto; }
.fc-tab { appearance: none; border: 0; background: none; padding: var(--fc-space-3) var(--fc-space-3); margin-bottom: -1px; font: inherit; font-size: var(--fc-text-base); font-weight: var(--fc-weight-medium); color: var(--fc-text-secondary); border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; transition: color var(--fc-motion-fast) var(--fc-motion-ease); }
.fc-tab:hover { color: var(--fc-text-primary); }
.fc-tab[aria-selected="true"], .fc-tab.is-active { color: var(--fc-text-primary); border-bottom-color: var(--fc-text-primary); }
.fc-subtabs { display: inline-flex; flex-wrap: wrap; gap: var(--fc-space-0-5); padding: var(--fc-space-0-5); background: var(--fc-bg-hover); border-radius: var(--fc-radius-md); margin-bottom: var(--fc-space-4); }
.fc-subtab { appearance: none; border: 0; background: transparent; padding: var(--fc-space-1-5) var(--fc-space-3); font: inherit; font-size: var(--fc-text-base); font-weight: var(--fc-weight-medium); color: var(--fc-text-secondary); border-radius: var(--fc-radius-sm); cursor: pointer; white-space: nowrap; }
.fc-subtab:hover { color: var(--fc-text-primary); }
.fc-subtab[aria-selected="true"], .fc-subtab.is-active { background: var(--fc-bg-surface); color: var(--fc-text-primary); box-shadow: var(--fc-shadow-sm); }

/* ---------- Toolbar: search + filters, one row, outside the table frame ---------- */
.fc-toolbar { display: flex; align-items: center; gap: var(--fc-space-2); flex-wrap: wrap; margin-bottom: var(--fc-space-3); }
.fc-toolbar > .fc-spacer { flex: 1 1 auto; }
.fc-filter-bar { display: flex; align-items: center; gap: var(--fc-space-2); flex-wrap: wrap; margin-bottom: var(--fc-space-4); }

/* ---------- Card ---------- */
.fc-card { background: var(--fc-bg-surface); border: 1px solid var(--fc-border); border-radius: var(--fc-radius-xl); box-shadow: var(--fc-shadow-md); padding: var(--fc-space-5); min-width: 0; }
.fc-card-head { display: flex; align-items: center; justify-content: space-between; gap: var(--fc-space-3); margin-bottom: var(--fc-space-4); }
.fc-card-title { margin: 0; font-size: var(--fc-text-md); font-weight: var(--fc-weight-medium); line-height: var(--fc-leading-snug); color: var(--fc-text-primary); }
.fc-card-sub { margin: var(--fc-space-0-5) 0 0; font-size: var(--fc-text-sm); color: var(--fc-text-secondary); }
.fc-card-flush { padding: 0; overflow: hidden; }

/* ---------- KPI tiles ---------- */
.fc-kpi-grid { display: grid; gap: var(--fc-space-3); grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: var(--fc-space-5); }
@media (max-width: 1280px) { .fc-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* R6c (Austin t717u): KPI cards stay two across on phones */
@media (max-width: 768px) { .fc-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--fc-space-2); } }
@media (max-width: 480px) { .fc-kpi-value { font-size: var(--fc-text-xl); overflow-wrap: anywhere; } }
.fc-kpi { background: var(--fc-bg-surface); border: 1px solid var(--fc-border); border-radius: var(--fc-radius-xl); box-shadow: var(--fc-shadow-md); padding: var(--fc-space-4) var(--fc-space-5); min-width: 0; }
.fc-kpi-label { display: flex; align-items: center; gap: var(--fc-space-1-5); font-size: var(--fc-text-sm); font-weight: var(--fc-weight-medium); color: var(--fc-text-secondary); }
.fc-kpi-value { margin-top: var(--fc-space-1-5); font-size: var(--fc-text-3xl); font-weight: var(--fc-weight-semibold); line-height: var(--fc-leading-tight); letter-spacing: var(--fc-tracking-tight); color: var(--fc-text-primary); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.fc-kpi-foot { display: flex; align-items: center; gap: var(--fc-space-1-5); margin-top: var(--fc-space-1-5); font-size: var(--fc-text-xs); color: var(--fc-text-muted); }
.fc-delta { display: inline-flex; align-items: center; gap: var(--fc-space-0-5); font-size: var(--fc-text-xs); font-weight: var(--fc-weight-medium); font-variant-numeric: tabular-nums; }
.fc-delta.is-up { color: var(--fc-success-fg); }
.fc-delta.is-down { color: var(--fc-danger-fg); }
.fc-delta.is-flat { color: var(--fc-text-muted); }

/* ---------- Table (the only table style) ---------- */
.fc-table-frame { background: var(--fc-bg-surface); border: 1px solid var(--fc-border); border-radius: var(--fc-radius-lg); overflow: auto; max-width: 100%; -webkit-overflow-scrolling: touch; }
.fc-table { width: 100%; border-collapse: separate; border-spacing: 0; font-family: var(--fc-font-sans); font-size: var(--fc-text-table); color: var(--fc-table-cell-fg); }
.fc-table thead th { position: sticky; top: 0; z-index: 1; background: var(--fc-table-head-bg); color: var(--fc-table-head-fg); font-size: var(--fc-text-table); font-weight: var(--fc-weight-medium); text-align: left; padding: var(--fc-space-1-5) var(--fc-space-4); border-bottom: 1px solid var(--fc-border); white-space: nowrap; }
.fc-table tbody td { padding: var(--fc-space-3) var(--fc-space-4); border-bottom: 1px solid var(--fc-table-row-border); vertical-align: middle; background: var(--fc-bg-surface); transition: background var(--fc-motion-fast) var(--fc-motion-ease); }
.fc-table tbody tr:last-child td { border-bottom: 0; }
.fc-table tbody tr:hover td { background: var(--fc-table-row-hover); }
.fc-table .is-num, .fc-table th.is-num { text-align: right; font-variant-numeric: tabular-nums; }
.fc-table .is-sticky { position: sticky; left: 0; z-index: 2; box-shadow: inset -1px 0 0 0 var(--fc-border); }
.fc-table thead th.is-sticky { z-index: 3; }
.fc-table th[data-sort] { cursor: pointer; user-select: none; }
.fc-table th[aria-sort="ascending"]::after { content: " \2191"; color: var(--fc-text-muted); }
.fc-table th[aria-sort="descending"]::after { content: " \2193"; color: var(--fc-text-muted); }
.fc-table a { color: var(--fc-text-link); text-decoration: none; font-weight: var(--fc-weight-medium); }
.fc-table a:hover { text-decoration: underline; }
/* Compact leaderboard tables in half-width cards: tighter cells, numbers never wrap or clip, the name cell truncates first. */
.fc-table-compact thead th, .fc-table-compact tbody td { padding-left: var(--fc-space-3); padding-right: var(--fc-space-3); }
.fc-table-compact .is-num { white-space: nowrap; width: 1%; }
.fc-table-compact td.is-truncate { max-width: 0; width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 7rem; }
.fc-table-compact td.is-truncate > * { max-width: 100%; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }
.fc-table .fc-cell-sub { display: block; font-size: var(--fc-text-xs); color: var(--fc-text-muted); }
.fc-table-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--fc-space-3); padding: var(--fc-space-2) var(--fc-space-4); border-top: 1px solid var(--fc-border); font-size: var(--fc-text-sm); color: var(--fc-text-secondary); background: var(--fc-bg-surface); }
.fc-thumb { width: 32px; height: 32px; border-radius: var(--fc-radius-sm); object-fit: cover; background: var(--fc-bg-hover); border: 1px solid var(--fc-border-subtle); vertical-align: middle; }
.fc-logo { width: 28px; height: 28px; border-radius: var(--fc-radius-pill); object-fit: cover; background: var(--fc-bg-hover); border: 1px solid var(--fc-border-subtle); }

/* ---------- Buttons ---------- */
.fc-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--fc-space-1-5); min-height: var(--fc-control-h); padding: 0 var(--fc-space-4); border-radius: var(--fc-radius-pill); border: 1px solid var(--fc-action-secondary-border); background: var(--fc-action-secondary-bg); color: var(--fc-action-secondary-fg); font: inherit; font-size: var(--fc-text-sm); font-weight: var(--fc-weight-medium); line-height: 1; white-space: nowrap; cursor: pointer; text-decoration: none; transition: background var(--fc-motion-fast) var(--fc-motion-ease), border-color var(--fc-motion-fast) var(--fc-motion-ease); }
.fc-btn:hover { background: var(--fc-action-secondary-hover); border-color: var(--fc-border-strong); }
.fc-btn:disabled, .fc-btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }
.fc-btn-primary { background: var(--fc-action-primary-bg); border-color: var(--fc-action-primary-bg); color: var(--fc-action-primary-fg); }
.fc-btn-primary:hover { background: var(--fc-action-primary-hover); border-color: var(--fc-action-primary-hover); }
.fc-btn-ghost { background: transparent; border-color: transparent; color: var(--fc-text-secondary); }
.fc-btn-ghost:hover { background: var(--fc-bg-hover); border-color: transparent; color: var(--fc-text-primary); }
.fc-btn-danger { background: var(--fc-bg-surface); border-color: var(--fc-danger-border); color: var(--fc-danger-fg); }
.fc-btn-danger:hover { background: var(--fc-danger-bg); border-color: var(--fc-danger-border); }
.fc-btn-accent { background: var(--fc-action-accent-bg, var(--fc-action-primary-bg)); border-color: var(--fc-action-accent-bg, var(--fc-action-primary-bg)); color: var(--fc-action-accent-fg, var(--fc-action-primary-fg)); }
.fc-btn-sm { min-height: var(--fc-control-h-sm); padding: 0 var(--fc-space-3); font-size: var(--fc-text-xs); }
.fc-btn-lg { min-height: var(--fc-control-h-lg); padding: 0 var(--fc-space-6); font-size: var(--fc-text-base); }
.fc-btn-icon { width: var(--fc-control-h); padding: 0; }
[data-fc-surface="site"] .fc-btn { border-radius: var(--fc-radius-pill); }

/* ---------- Forms ---------- */
.fc-field { display: flex; flex-direction: column; gap: var(--fc-space-1-5); min-width: 0; }
.fc-label { font-size: var(--fc-text-sm); font-weight: var(--fc-weight-medium); color: var(--fc-text-primary); }
.fc-help { font-size: var(--fc-text-xs); color: var(--fc-text-muted); }
.fc-error { font-size: var(--fc-text-xs); color: var(--fc-danger-fg); }
.fc-input, .fc-select, .fc-textarea { width: 100%; min-height: var(--fc-control-h); padding: 0 var(--fc-space-3); border: 1px solid var(--fc-border); border-radius: var(--fc-radius-sm); background: var(--fc-bg-surface); color: var(--fc-text-primary); font: inherit; font-size: var(--fc-text-sm); transition: border-color var(--fc-motion-fast) var(--fc-motion-ease), box-shadow var(--fc-motion-fast) var(--fc-motion-ease); }
.fc-textarea { min-height: 96px; padding: var(--fc-space-2) var(--fc-space-3); line-height: var(--fc-leading-normal); resize: vertical; }
.fc-input::placeholder, .fc-textarea::placeholder { color: var(--fc-text-muted); }
.fc-input:focus, .fc-select:focus, .fc-textarea:focus { outline: none; border-color: var(--fc-border-focus); box-shadow: 0 0 0 var(--fc-stroke-focus) var(--fc-focus-ring); }
.fc-input[aria-invalid="true"], .fc-select[aria-invalid="true"], .fc-textarea[aria-invalid="true"] { border-color: var(--fc-danger-solid); }
.fc-select { appearance: none; -webkit-appearance: none; width: auto; min-width: 160px; padding-right: var(--fc-space-10); cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 16px) 50%; background-size: 4px 4px, 4px 4px; background-repeat: no-repeat; }
.fc-search { position: relative; display: inline-flex; align-items: center; min-width: 240px; flex: 0 1 320px; }
.fc-search .fc-input { padding-left: var(--fc-space-8); }
.fc-search .fc-icon { position: absolute; left: var(--fc-space-3); color: var(--fc-text-muted); pointer-events: none; }
.fc-check { display: inline-flex; align-items: center; gap: var(--fc-space-2); font-size: var(--fc-text-sm); color: var(--fc-text-primary); cursor: pointer; }
.fc-check input { width: 16px; height: 16px; margin: 0; accent-color: var(--fc-action-primary-bg); }
.fc-switch { position: relative; display: inline-block; width: 36px; height: 20px; }
.fc-switch input { opacity: 0; width: 0; height: 0; }
.fc-switch span { position: absolute; inset: 0; background: var(--fc-border-strong); border-radius: var(--fc-radius-pill); transition: background var(--fc-motion-fast) var(--fc-motion-ease); cursor: pointer; }
.fc-switch span::before { content: ""; position: absolute; width: 16px; height: 16px; left: 2px; top: 2px; background: var(--fc-bg-surface); border-radius: var(--fc-radius-pill); transition: transform var(--fc-motion-fast) var(--fc-motion-ease); box-shadow: var(--fc-shadow-sm); }
.fc-switch input:checked + span { background: var(--fc-action-primary-bg); }
.fc-switch input:checked + span::before { transform: translateX(16px); }

/* ---------- Badges (status pills, sentence case) ---------- */
.fc-badge { display: inline-flex; align-items: center; gap: var(--fc-space-1); padding: var(--fc-space-0-5) var(--fc-space-2); border-radius: var(--fc-radius-pill); font-size: var(--fc-text-2xs); font-weight: var(--fc-weight-semibold); line-height: var(--fc-leading-normal); white-space: nowrap; background: var(--fc-neutral-bg); color: var(--fc-neutral-fg); }
.fc-badge-success { background: var(--fc-success-bg); color: var(--fc-success-fg); }
.fc-badge-warning { background: var(--fc-warning-bg); color: var(--fc-warning-fg); }
.fc-badge-danger { background: var(--fc-danger-bg); color: var(--fc-danger-fg); }
.fc-badge-info { background: var(--fc-info-bg); color: var(--fc-info-fg); }
.fc-dot { width: 6px; height: 6px; border-radius: var(--fc-radius-pill); background: currentColor; flex: 0 0 6px; }

/* ---------- Alerts (collapsed stack by default) ---------- */
.fc-alert { display: flex; align-items: flex-start; gap: var(--fc-space-3); padding: var(--fc-space-3) var(--fc-space-4); border: 1px solid var(--fc-info-border); border-radius: var(--fc-radius-md); background: var(--fc-info-bg); color: var(--fc-info-fg); font-size: var(--fc-text-sm); line-height: var(--fc-leading-normal); }
.fc-alert-title { font-weight: var(--fc-weight-semibold); }
.fc-alert-body { flex: 1 1 auto; min-width: 0; }
.fc-alert .fc-icon { margin-top: var(--fc-space-0-5); flex: 0 0 auto; }
.fc-alert-success { border-color: var(--fc-success-border); background: var(--fc-success-bg); color: var(--fc-success-fg); }
.fc-alert-warning { border-color: var(--fc-warning-border); background: var(--fc-warning-bg); color: var(--fc-warning-fg); }
.fc-alert-danger { border-color: var(--fc-danger-border); background: var(--fc-danger-bg); color: var(--fc-danger-fg); }
.fc-alert-stack { display: flex; flex-direction: column; gap: var(--fc-space-2); margin-bottom: var(--fc-space-4); }
.fc-alert-stack.is-collapsed > .fc-alert:nth-of-type(n+2) { display: none; }
.fc-alert-toggle { align-self: flex-start; appearance: none; border: 0; background: none; padding: 0; font: inherit; font-size: var(--fc-text-xs); font-weight: var(--fc-weight-medium); color: var(--fc-text-secondary); cursor: pointer; }
.fc-alert-toggle:hover { color: var(--fc-text-primary); text-decoration: underline; }

/* ---------- Empty and loading states ---------- */
.fc-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--fc-space-2); padding: var(--fc-space-12) var(--fc-space-6); text-align: center; color: var(--fc-text-secondary); font-size: var(--fc-text-sm); }
.fc-empty-title { font-size: var(--fc-text-base); font-weight: var(--fc-weight-medium); color: var(--fc-text-primary); }
.fc-empty .fc-icon { width: 24px; height: 24px; color: var(--fc-text-muted); }
.fc-skeleton { display: block; height: 12px; border-radius: var(--fc-radius-xs); background: linear-gradient(90deg, var(--fc-bg-hover), var(--fc-bg-subtle), var(--fc-bg-hover)); background-size: 200% 100%; animation: fc-shimmer 1.2s linear infinite; }
@keyframes fc-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .fc-skeleton { animation: none; } }

/* ---------- Modal, popup, lightbox (one style for every popup) ---------- */
.fc-modal-backdrop { position: fixed; inset: 0; z-index: var(--fc-z-modal); display: none; align-items: center; justify-content: center; padding: var(--fc-space-4); background: var(--fc-bg-overlay); }
.fc-modal-backdrop.is-open { display: flex; }
.fc-modal { display: flex; flex-direction: column; width: 100%; max-width: var(--fc-modal-md); max-height: calc(100vh - 32px); background: var(--fc-bg-surface); color: var(--fc-text-primary); border: 1px solid var(--fc-border); border-radius: var(--fc-radius-xl); box-shadow: var(--fc-shadow-overlay); overflow: hidden; }
.fc-modal-sm { max-width: var(--fc-modal-sm); }
.fc-modal-lg { max-width: var(--fc-modal-lg); }
.fc-modal-head { display: flex; align-items: center; justify-content: space-between; gap: var(--fc-space-3); padding: var(--fc-space-4) var(--fc-space-5); border-bottom: 1px solid var(--fc-border); }
.fc-modal-title { margin: 0; font-size: var(--fc-text-md); font-weight: var(--fc-weight-medium); line-height: var(--fc-leading-snug); }
.fc-modal-body { padding: var(--fc-space-5); overflow: auto; font-size: var(--fc-text-sm); line-height: var(--fc-leading-normal); }
.fc-modal-foot { display: flex; justify-content: flex-end; gap: var(--fc-space-2); padding: var(--fc-space-3) var(--fc-space-5); border-top: 1px solid var(--fc-border); background: var(--fc-bg-subtle); }
.fc-lightbox-media { display: block; width: 100%; max-height: 70vh; object-fit: contain; background: var(--fc-bg-subtle); border-radius: var(--fc-radius-md); }

/* ---------- Popover and menu (dropdowns, filters) ---------- */
.fc-popover { position: absolute; z-index: var(--fc-z-popover); min-width: 200px; background: var(--fc-bg-surface); color: var(--fc-text-primary); border: 1px solid var(--fc-border); border-radius: var(--fc-radius-md); box-shadow: var(--fc-shadow-overlay); padding: var(--fc-space-1); }
.fc-menu-item { display: flex; align-items: center; justify-content: space-between; gap: var(--fc-space-2); width: 100%; appearance: none; border: 0; background: none; padding: var(--fc-space-2) var(--fc-space-3); border-radius: var(--fc-radius-sm); font: inherit; font-size: var(--fc-text-sm); color: var(--fc-text-primary); text-align: left; cursor: pointer; }
.fc-menu-item:hover { background: var(--fc-bg-hover); }
.fc-menu-item[aria-checked="true"] { background: var(--fc-bg-selected); font-weight: var(--fc-weight-medium); }

/* ---------- Date range picker (one picker everywhere, under the subtab header) ---------- */
.fc-daterange { position: relative; display: inline-flex; align-items: center; gap: var(--fc-space-2); margin-bottom: var(--fc-space-4); }
.fc-daterange-trigger { display: inline-flex; align-items: center; gap: var(--fc-space-2); min-height: var(--fc-control-h); padding: 0 var(--fc-space-3); border: 1px solid var(--fc-border); border-radius: var(--fc-radius-pill); background: var(--fc-bg-surface); color: var(--fc-text-primary); font: inherit; font-size: var(--fc-text-sm); font-weight: var(--fc-weight-medium); cursor: pointer; transition: border-color var(--fc-motion-fast) var(--fc-motion-ease); }
.fc-daterange-trigger:hover, .fc-daterange-trigger[aria-expanded="true"] { border-color: var(--fc-border-focus); }
.fc-daterange-trigger .fc-icon { color: var(--fc-text-muted); }
.fc-daterange-dates { font-size: var(--fc-text-xs); color: var(--fc-text-muted); font-variant-numeric: tabular-nums; }
.fc-daterange-panel { position: absolute; top: calc(100% + 6px); left: 0; z-index: var(--fc-z-popover); display: none; background: var(--fc-bg-surface); color: var(--fc-text-primary); border: 1px solid var(--fc-border); border-radius: var(--fc-radius-md); box-shadow: var(--fc-shadow-overlay); overflow: hidden; }
.fc-daterange-panel.is-open { display: block; }
.fc-daterange-body { display: flex; }
.fc-daterange-presets { width: 180px; padding: var(--fc-space-2) 0; border-right: 1px solid var(--fc-border); }
.fc-daterange-preset { display: flex; align-items: center; justify-content: space-between; width: 100%; appearance: none; border: 0; background: none; padding: var(--fc-space-2) var(--fc-space-4); font: inherit; font-size: var(--fc-text-sm); color: var(--fc-text-primary); text-align: left; cursor: pointer; }
.fc-daterange-preset:hover { background: var(--fc-bg-hover); }
.fc-daterange-preset[aria-checked="true"] { background: var(--fc-bg-selected); font-weight: var(--fc-weight-medium); }
.fc-daterange-preset[aria-checked="true"]::after { content: "\2713"; }
.fc-daterange-cal { width: 300px; padding: var(--fc-space-4); }
.fc-daterange-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--fc-space-3); font-size: var(--fc-text-base); font-weight: var(--fc-weight-medium); }
.fc-daterange-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: var(--fc-space-0-5); }
.fc-daterange-dow { padding: var(--fc-space-1) 0; text-align: center; font-size: var(--fc-text-xs); color: var(--fc-text-muted); }
.fc-daterange-day { appearance: none; border: 0; background: none; padding: var(--fc-space-2) 0; border-radius: var(--fc-radius-sm); font: inherit; font-size: var(--fc-text-sm); color: var(--fc-text-primary); text-align: center; cursor: pointer; font-variant-numeric: tabular-nums; }
.fc-daterange-day:hover { background: var(--fc-bg-hover); }
.fc-daterange-day:disabled { color: var(--fc-text-muted); opacity: 0.5; cursor: not-allowed; background: none; }
.fc-daterange-day.is-in-range { background: var(--fc-bg-selected); border-radius: 0; }
.fc-daterange-day.is-edge { background: var(--fc-action-primary-bg); color: var(--fc-action-primary-fg); font-weight: var(--fc-weight-semibold); border-radius: var(--fc-radius-sm); }
.fc-daterange-tz { padding: 0 var(--fc-space-4) var(--fc-space-3); font-size: var(--fc-text-xs); color: var(--fc-text-muted); }
.fc-daterange-foot { display: flex; justify-content: flex-end; gap: var(--fc-space-2); padding: var(--fc-space-3) var(--fc-space-4); border-top: 1px solid var(--fc-border); background: var(--fc-bg-subtle); }
@media (max-width: 768px) {
  .fc-daterange-panel { position: fixed; left: var(--fc-space-4); right: var(--fc-space-4); top: auto; bottom: var(--fc-space-4); }
  .fc-daterange-body { flex-direction: column; }
  .fc-daterange-presets { width: auto; border-right: 0; border-bottom: 1px solid var(--fc-border); display: flex; flex-wrap: wrap; gap: var(--fc-space-1); padding: var(--fc-space-2); }
  .fc-daterange-preset { width: auto; border-radius: var(--fc-radius-pill); border: 1px solid var(--fc-border); padding: var(--fc-space-1-5) var(--fc-space-3); }
  .fc-daterange-preset[aria-checked="true"]::after { content: none; }
  .fc-daterange-cal { width: auto; }
}

/* ---------- Charts (Chart.js styled by FCDS.chartTheme) ---------- */
.fc-chart { position: relative; min-height: 240px; }
.fc-chart canvas { display: block; width: 100%; }
.fc-chart-caption { margin-top: var(--fc-space-2); font-size: var(--fc-text-xs); line-height: var(--fc-leading-normal); color: var(--fc-text-muted); }
.fc-legend { display: flex; flex-wrap: wrap; gap: var(--fc-space-3); margin-top: var(--fc-space-3); font-size: var(--fc-text-xs); color: var(--fc-text-secondary); }
.fc-legend-item { display: inline-flex; align-items: center; gap: var(--fc-space-1-5); }
.fc-legend-swatch { width: 10px; height: 10px; border-radius: var(--fc-radius-xs); }

/* ---------- Tooltip and toast ---------- */
.fc-tooltip { position: fixed; z-index: var(--fc-z-tooltip); pointer-events: none; padding: var(--fc-space-1-5) var(--fc-space-2); border-radius: var(--fc-radius-md); background: var(--fc-chart-tooltip-bg); color: var(--fc-chart-tooltip-fg); font-size: var(--fc-text-xs); line-height: var(--fc-leading-snug); box-shadow: var(--fc-shadow-lg); max-width: 260px; }
.fc-toast-region { position: fixed; right: var(--fc-space-4); bottom: var(--fc-space-4); z-index: var(--fc-z-toast); display: flex; flex-direction: column; gap: var(--fc-space-2); }
.fc-toast { padding: var(--fc-space-3) var(--fc-space-4); border-radius: var(--fc-radius-md); background: var(--fc-bg-inverse); color: var(--fc-text-inverse); font-size: var(--fc-text-sm); box-shadow: var(--fc-shadow-lg); }

/* ---------- Upload (cloud dropzone, shows a file count, not a receipt list) ---------- */
.fc-upload { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--fc-space-2); padding: var(--fc-space-8) var(--fc-space-6); border: 1px dashed var(--fc-border-strong); border-radius: var(--fc-radius-xl); background: var(--fc-bg-subtle); color: var(--fc-text-secondary); text-align: center; font-size: var(--fc-text-sm); cursor: pointer; transition: border-color var(--fc-motion-fast) var(--fc-motion-ease), background var(--fc-motion-fast) var(--fc-motion-ease); }
.fc-upload:hover, .fc-upload.is-dragover { border-color: var(--fc-border-focus); background: var(--fc-bg-hover); }
.fc-upload .fc-icon { width: 28px; height: 28px; color: var(--fc-text-muted); }
.fc-upload-title { font-size: var(--fc-text-base); font-weight: var(--fc-weight-medium); color: var(--fc-text-primary); }
.fc-upload-count { font-size: var(--fc-text-xs); color: var(--fc-text-muted); font-variant-numeric: tabular-nums; }
.fc-progress { width: 100%; height: 6px; border-radius: var(--fc-radius-pill); background: var(--fc-bg-hover); overflow: hidden; }
.fc-progress > span { display: block; height: 100%; background: var(--fc-action-primary-bg); transition: width var(--fc-motion-base) var(--fc-motion-ease); }

/* ---------- Icons (inline SVG, stroke 2, currentColor) ---------- */
.fc-icon { display: inline-block; width: 16px; height: 16px; flex: 0 0 auto; vertical-align: middle; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fc-icon-sm { width: 14px; height: 14px; }
.fc-icon-lg { width: 20px; height: 20px; }

/* ---------- Media cards (brand job cards, creator job board) ---------- */
.fc-media-card { display: flex; flex-direction: column; background: var(--fc-bg-surface); border: 1px solid var(--fc-border); border-radius: var(--fc-radius-xl); box-shadow: var(--fc-shadow-md); overflow: hidden; transition: box-shadow var(--fc-motion-base) var(--fc-motion-ease), transform var(--fc-motion-base) var(--fc-motion-ease); }
.fc-media-card:hover { box-shadow: var(--fc-shadow-lg); transform: translateY(-1px); }
.fc-media-card-img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--fc-bg-subtle); }
.fc-media-card-body { display: flex; flex-direction: column; gap: var(--fc-space-2); padding: var(--fc-space-4); }
.fc-media-card-head { display: flex; align-items: center; gap: var(--fc-space-2); }
.fc-media-card-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--fc-space-2); padding: var(--fc-space-3) var(--fc-space-4); border-top: 1px solid var(--fc-border-subtle); }

/* ---------- Sidebar footer (keep on every app shell) ---------- */
.fc-sidebar-foot { padding: var(--fc-space-2) var(--fc-space-5) var(--fc-space-3); font-size: var(--fc-text-2xs); color: var(--fc-text-muted); }
