/* Dashboard-only FLL surfaces. Public FLL pages and semantic route/status colors stay intact. */
.app-shell .main-content .social-projects--fll.social-fll-hub {
  --hub-bg: #000;
  --hub-card: #202125;
  --hub-text: #f5f5f4;
  --hub-muted: #c5c6ca;
  --hub-border: #55565d;
  --hub-teal: #ffdc45;
  --hub-lime: #ffdc45;
  --fll-dashboard-panel: #202125;
  --fll-dashboard-soft: #292a2f;
  --fll-dashboard-deep: #191a1e;
  --fll-dashboard-line: #55565d;
  color: var(--hub-text);
  background: #000;
}
.app-shell .main-content .social-fll-hub-hero,
.app-shell .main-content .social-fll-hub :is(.social-fll-hub-overview article, .social-fll-hub-archive-link, .social-fll-hub-panel > .social-fll-hub-heading, .social-fll-hub-archive-panel > [data-fll-archive-content], .social-fll-hub-about, .social-members, .social-mentors, .social-member-legacy, .social-event-card, .social-member-card) {
  background: var(--fll-dashboard-panel);
  border-color: var(--fll-dashboard-line);
  color: var(--hub-text);
}
.app-shell .main-content .social-fll-hub-empty {
  background: var(--fll-dashboard-deep);
  border-color: var(--fll-dashboard-line);
}
.app-shell .main-content .social-fll-hub-project-select select,
.app-shell .main-content .social-fll-hub :is(input, select, textarea) {
  background: var(--fll-dashboard-deep);
  border-color: #6a6b71;
  color: var(--hub-text);
}

.app-shell .main-content .social-fll-lab {
  --fll-bg: #141518;
  --fll-card: #202125;
  --fll-card-soft: #292a2f;
  --fll-ink: #f5f5f4;
  --fll-muted: #c5c6ca;
  --fll-line: #55565d;
  --fll-teal: #ffdc45;
  --fll-lime: #ffdc45;
  color: var(--fll-ink);
}
.app-shell .main-content .social-fll-lab :is(.social-fll-lab-team, .social-fll-lab-summary > div, .social-fll-lab-routes li, .social-fll-lab-tests button, .social-fll-lab-test-detail, .social-fll-innovation-field, .social-fll-lab-empty) {
  background: var(--fll-dashboard-deep, #191a1e);
  border-color: var(--fll-line);
  color: var(--fll-ink);
}
.app-shell .main-content .social-fll-lab :is(.social-fll-lab-team-mark, .social-fll-lab-route-index, .social-fll-lab-count) {
  background: #353127;
  border-color: #8c7838;
  color: #ffe269;
}
.app-shell .main-content .social-fll-lab-tests button:hover,
.app-shell .main-content .social-fll-lab-tests button:focus-visible {
  background: #383224;
  border-color: #d0ac38;
}
.app-shell .main-content .social-fll-lab [data-social-candidate-list] {
  background: #292a2f;
  border-color: var(--fll-line);
}
.app-shell .main-content .social-fll-lab :is(.social-fll-legacy, .social-fll-lab-card) {
  border-color: var(--fll-line);
}

.app-shell .main-content .fll-workspace {
  --fll-black: #141518;
  --fll-panel: #202125;
  --fll-panel-2: #292a2f;
  --fll-border: #55565d;
  --fll-cream: #f5f5f4;
  --fll-lime: #ffe269;
  --fll-green: #d7b53b;
  --fll-yellow: #ffe269;
  --fll-teal: #ffdc45;
  color: var(--fll-cream);
}
.app-shell .main-content .fll-workspace :is(.fll-hero, .fll-statebar, .fll-launch-card, .fll-reference, .fll-score-field, .fll-history-item, .fll-anchor-choice, .fll-plan-layout, .fll-plan-step:not(.is-error), .fll-score-mission, .fll-identity, .fll-plan-summary) {
  background: #202125;
  border-color: var(--fll-border);
  color: var(--fll-cream);
}
.app-shell .main-content .fll-workspace :is(.fll-launch-card.is-active, .fll-attempt-list button[aria-pressed=true]) {
  background: #3a3324;
  border-color: #c9a840;
}
.app-shell .main-content .fll-workspace :is(.fll-map-scroll, .fll-map, .fll-missions, .fll-mission-check, .fll-position, .fll-plan-field, .fll-score-summary, .fll-score-form fieldset, .fll-launch-editor, .fll-history, .fll-base-picker > summary) {
  border-color: var(--fll-border);
}
.app-shell .main-content .fll-workspace .fll-map-scroll {
  background: #15161a;
  scrollbar-color: #77787e #202125;
}
.app-shell .main-content .fll-workspace :is(.fll-mission-check, .fll-plan-field) {
  background: #292a2f;
}
.app-shell .main-content .fll-workspace :is(.fll-empty, .fll-reference:hover, .fll-anchor-choice, .fll-plan-summary) {
  background: #292a2f;
  border-color: var(--fll-border);
}
.app-shell .main-content .fll-workspace :is(small, .fll-hero p, .fll-statebar > span, .fll-surface-head p, .fll-map-caption, .fll-launch-editor label, .fll-score-field, .fll-score-summary > p, .fll-guide-note, .fll-history-intro, .fll-plan-layout p, .fll-plan-layout label, .fll-identity label, .fll-plan-step label, .fll-plan-projection, .fll-plan-target, .fll-identity p, .fll-empty) {
  color: #d1d2d6;
}
.app-shell .main-content .fll-workspace :is(.fll-hero h2, .fll-reference, .fll-launch-card, .fll-identity, .fll-plan-step) {
  color: #f5f5f4;
}
.app-shell .main-content .fll-workspace :is(.fll-plan-mission-photo, .fll-score-mission-photo, .fll-plan-photo img) {
  border-color: var(--fll-border);
}
.app-shell .main-content .fll-workspace :is(.fll-statebar button, .fll-map-tools button, .fll-waypoint-tools button, .fll-attempt-list button, .fll-history-actions button, .fll-anchor-choice button, .fll-plan-step-head button, .fll-score-stepper button, .fll-score-mission-photo button) {
  background: #33343a;
  border-color: #73747b;
  color: #f5f5f4;
}
.app-shell .main-content .fll-workspace :is(.fll-statebar button, .fll-map-tools button, .fll-waypoint-tools button, .fll-attempt-list button, .fll-history-actions button, .fll-anchor-choice button, .fll-plan-step-head button, .fll-score-stepper button, .fll-score-mission-photo button):hover {
  background: #494133;
  border-color: #e1be4c;
}
.app-shell .main-content .fll-workspace :is(.fll-waypoint-tools input, .fll-launch-editor input, .fll-launch-editor select, .fll-launch-editor textarea, .fll-score-form input, .fll-score-form select, .fll-score-form textarea, .fll-planner input:not([type=checkbox]), .fll-planner select, .fll-identity input:not([type=file])) {
  background: #191a1e;
  border-color: #74757b;
  color: #f5f5f4;
}
.app-shell .main-content .fll-workspace :is(.fll-tabs, .fll-score-summary [data-fll-score-lines] > div) {
  border-color: var(--fll-border);
}
.app-shell .main-content .fll-workspace .fll-tabs button {
  color: #d1d2d6;
}
.app-shell .main-content .fll-workspace .fll-tabs button[aria-selected=true] {
  background: #292a2f;
  border-color: #77787e;
  color: #ffe269;
  box-shadow: inset 0 3px 0 #ffdc45;
}
/* The floating reference belongs to the dashboard route, but is mounted outside main-content. */
body:has(.app-shell .main-content .fll-workspace) .fll-mission-preview,
body:has(.app-shell .main-content .fll-workspace) .fll-mission-lightbox {
  background: #202125;
  border-color: #77787e;
  color: #f5f5f4;
}

/* Frame the original logo's transparent margins; keep the mark beside the figures. */
.app-shell .main-content .social-projects.social-fll-hub .social-fll-hub-hero {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  align-items: center;
}
.app-shell .main-content .social-projects.social-fll-hub .social-fll-hub-intro {
  flex: 1 1 22rem;
}
.app-shell .main-content .social-projects.social-fll-hub .social-fll-hub-identity {
  display: grid;
  grid-template-columns: minmax(9rem, 12rem) minmax(0, 1fr);
  flex: 1 1 38rem;
  max-width: 44rem;
  width: 100%;
  min-width: 0;
  align-items: center;
  justify-items: stretch;
  gap: 1.5rem;
}
.app-shell .main-content .social-projects.social-fll-hub .social-fll-hub-logo {
  display: block;
  width: 100%;
  max-width: 12rem;
  height: auto;
  aspect-ratio: 1730 / 986;
  overflow: hidden;
}
@media (max-width: 760px) {
  .app-shell .main-content .social-projects.social-fll-hub .social-fll-hub-intro {
    flex: none;
    width: 100%;
  }
  .app-shell .main-content .social-projects.social-fll-hub .social-fll-hub-identity {
    flex: none;
    max-width: none;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr);
    gap: .875rem;
  }
}
html.av-phone-layout .app-shell .main-content .social-projects.social-fll-hub .social-fll-hub-intro {
  flex: none;
  width: 100%;
}
html.av-phone-layout .app-shell .main-content .social-projects.social-fll-hub .social-fll-hub-identity {
  flex: none;
  max-width: none;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr);
  gap: .875rem;
}

.social-fll-child-form { display: grid; gap: 1rem; min-width: 0; }
.social-fll-child-fields { display: grid; grid-template-columns: minmax(6rem, .4fr) minmax(0, 1fr); gap: 1rem; }
.social-fll-child-form .field { min-width: 0; }
.social-fll-child-form textarea { min-height: 6rem; resize: vertical; }
.social-fll-child-extra > summary { cursor: pointer; padding: .75rem 0; }
.social-fll-child-details { display: grid; gap: .65rem; margin: .75rem 0; }
.social-fll-child-details > div { min-width: 0; }
.social-fll-child-details dt { color: var(--hub-muted, #c5c6ca); font-size: .875rem; }
.social-fll-child-details dd { margin: .125rem 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .social-fll-child-fields { grid-template-columns: minmax(0, 1fr); }
}
html.av-phone-layout .social-fll-child-fields { grid-template-columns: minmax(0, 1fr); }
