.fcpf-app {
  --fcpf-green: #1f6b3a;
  --fcpf-green-dark: #164d2b;
  --fcpf-green-soft: #edf6f0;
  --fcpf-peach: #f6dcc9;
  --fcpf-orange: #ee7d2c;
  --fcpf-text: #1d2a21;
  --fcpf-muted: #68746c;
  --fcpf-border: #dce5df;
  --fcpf-surface: #ffffff;
  --fcpf-background: #f7faf8;
  color: var(--fcpf-text);
  font: inherit;
  width: 100%;
}

.fcpf-app *,
.fcpf-app *::before,
.fcpf-app *::after {
  box-sizing: border-box;
}

.fcpf-shell {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(16px, 3vw, 30px);
  border: 1px solid var(--fcpf-border);
  border-radius: 26px;
  background: var(--fcpf-background);
}

.fcpf-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--fcpf-border);
}

.fcpf-eyebrow {
  margin: 0 0 4px;
  color: var(--fcpf-green);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.fcpf-title {
  margin: 0;
  font-size: clamp(23px, 4vw, 36px);
  line-height: 1.15;
  color: var(--fcpf-green-dark);
}

.fcpf-count-button,
.fcpf-results-button,
.fcpf-primary,
.fcpf-secondary,
.fcpf-option,
.fcpf-link-button,
.fcpf-back,
.fcpf-reset {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-radius: 14px;
  font: inherit;
  cursor: pointer;
}

.fcpf-count-button {
  flex: 0 0 auto;
  padding: 11px 15px;
  border: 1px solid var(--fcpf-green);
  background: var(--fcpf-green-soft);
  color: var(--fcpf-green-dark);
  font-size: 14px;
  font-weight: 700;
}

.fcpf-progress-wrap {
  margin-top: 18px;
}

.fcpf-progress-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: var(--fcpf-muted);
  font-size: 14px;
}

.fcpf-progress {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5ece7;
}

.fcpf-progress > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--fcpf-green);
  transition: width .2s ease;
}

.fcpf-path {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
}

.fcpf-chip,
.fcpf-trait {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--fcpf-border);
  border-radius: 999px;
  background: var(--fcpf-surface);
  color: var(--fcpf-green-dark);
  font-size: 13px;
}

.fcpf-chip { padding: 5px 9px; }
.fcpf-trait { padding: 4px 8px; }

.fcpf-question {
  margin-top: 26px;
}

.fcpf-question h3,
.fcpf-results-head h3,
.fcpf-final-callout h3 {
  margin: 0;
  color: var(--fcpf-green-dark);
  font-size: clamp(22px, 3.4vw, 31px);
  line-height: 1.2;
}

.fcpf-help {
  margin: 8px 0 0;
  color: var(--fcpf-muted);
  font-size: 16px;
}

.fcpf-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.fcpf-option {
  min-height: 116px;
  padding: 16px;
  border: 1px solid var(--fcpf-border);
  background: var(--fcpf-surface);
  color: var(--fcpf-text);
  text-align: left;
  transition: transform .15s ease, border-color .15s ease, background-color .15s ease;
}

.fcpf-option:hover:not(:disabled),
.fcpf-option:focus-visible {
  border-color: var(--fcpf-green);
  background: var(--fcpf-green-soft);
  transform: translateY(-1px);
}

.fcpf-option:disabled {
  cursor: not-allowed;
  opacity: .35;
}

.fcpf-option-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.fcpf-option-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 42px;
  width: auto;
  height: 42px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--fcpf-peach);
  font-size: 20px;
  line-height: 1;
  white-space: nowrap;
}

.fcpf-option-icon--water {
  font-size: 16px;
  letter-spacing: -0.08em;
}

.fcpf-option-copy { min-width: 0; flex: 1; }

.fcpf-option-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.fcpf-option-title {
  color: var(--fcpf-green-dark);
  font-weight: 700;
}

.fcpf-option-count {
  flex: 0 0 auto;
  min-width: 30px;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--fcpf-green-soft);
  color: var(--fcpf-green-dark);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.fcpf-option-description {
  margin-top: 5px;
  color: var(--fcpf-muted);
  font-size: 14px;
  line-height: 1.4;
}

.fcpf-results-button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
  padding: 15px 17px;
  border: 1px solid var(--fcpf-green);
  background: var(--fcpf-green-soft);
  color: var(--fcpf-green-dark);
  font-weight: 700;
  text-align: left;
}

.fcpf-results-button-count {
  flex: 0 0 auto;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--fcpf-green);
  color: #fff;
  font-size: 13px;
}

.fcpf-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid var(--fcpf-border);
}

.fcpf-back,
.fcpf-reset {
  padding: 8px 4px;
  background: transparent;
  color: var(--fcpf-muted);
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.fcpf-back[hidden],
.fcpf-reset[hidden] { display: none; }

.fcpf-live-count {
  color: var(--fcpf-muted);
  font-size: 14px;
  text-align: right;
}

.fcpf-results-view,
.fcpf-final-view {
  margin-top: 24px;
}

.fcpf-results-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.fcpf-results-description {
  margin: 6px 0 0;
  color: var(--fcpf-muted);
}

.fcpf-primary,
.fcpf-secondary {
  padding: 12px 16px;
  font-weight: 700;
}

.fcpf-primary {
  background: var(--fcpf-green);
  color: #fff;
}

.fcpf-primary:hover,
.fcpf-primary:focus-visible {
  background: var(--fcpf-green-dark);
}

.fcpf-secondary {
  border: 1px solid var(--fcpf-border);
  background: var(--fcpf-surface);
  color: var(--fcpf-green-dark);
}

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

.fcpf-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--fcpf-border);
  border-radius: 18px;
  background: var(--fcpf-surface);
}

.fcpf-card-image-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  padding: clamp(12px, 2vw, 22px);
  background: var(--fcpf-green-soft);
}

.fcpf-card-image,
.fcpf-card-image-wrap > img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  margin: 0 auto !important;
  object-fit: contain !important;
  object-position: center center !important;
}

.fcpf-image-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: var(--fcpf-green);
  font-size: 44px;
}

.fcpf-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 15px;
}

.fcpf-card h4 {
  margin: 0;
  color: var(--fcpf-green-dark);
  font-size: 19px;
  line-height: 1.25;
}

.fcpf-card-description {
  margin: 7px 0 0;
  color: var(--fcpf-muted);
  font-size: 14px;
  line-height: 1.45;
}

.fcpf-traits {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.fcpf-link-button {
  display: block;
  margin-top: auto;
  padding: 11px 13px;
  border: 1px solid var(--fcpf-green);
  background: var(--fcpf-green-soft);
  color: var(--fcpf-green-dark) !important;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  text-decoration: none !important;
}

.fcpf-link-button:hover,
.fcpf-link-button:focus-visible {
  background: var(--fcpf-green);
  color: #fff !important;
}

.fcpf-continue-bottom {
  width: 100%;
  margin-top: 16px;
}

.fcpf-final-callout {
  padding: 18px;
  border: 1px solid var(--fcpf-green);
  border-radius: 18px;
  background: var(--fcpf-green-soft);
}

.fcpf-final-callout p {
  margin: 8px 0 0;
  color: var(--fcpf-muted);
}

.fcpf-staff {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--fcpf-border);
  border-radius: 18px;
  background: var(--fcpf-surface);
}

.fcpf-staff h4 { margin: 0; color: var(--fcpf-green-dark); font-size: 20px; }
.fcpf-staff p { margin: 7px 0 14px; color: var(--fcpf-muted); }

.fcpf-staff-list {
  margin-top: 12px;
  padding: 14px;
  border-radius: 14px;
  background: var(--fcpf-green-soft);
  color: var(--fcpf-text);
  font-size: 14px;
  line-height: 1.55;
}

.fcpf-empty {
  grid-column: 1 / -1;
  padding: 18px;
  border: 1px solid var(--fcpf-border);
  border-radius: 16px;
  background: var(--fcpf-surface);
  color: var(--fcpf-muted);
}

.fcpf-admin-warning {
  padding: 14px;
  border: 1px solid #d63638;
  background: #fff5f5;
}

.fcpf-hidden { display: none !important; }

.fcpf-app button:focus-visible,
.fcpf-app a:focus-visible {
  outline: 3px solid rgba(31, 107, 58, .32);
  outline-offset: 2px;
}

@media (max-width: 720px) {
  .fcpf-shell {
    padding: 16px;
    border-radius: 20px;
  }

  .fcpf-header,
  .fcpf-results-head {
    align-items: stretch;
    flex-direction: column;
  }

  .fcpf-count-button,
  .fcpf-results-head .fcpf-primary {
    width: 100%;
  }

  .fcpf-options,
  .fcpf-grid {
    grid-template-columns: 1fr;
  }

  .fcpf-option { min-height: 0; }

  .fcpf-nav { align-items: flex-end; }
}

@media (prefers-reduced-motion: reduce) {
  .fcpf-app * { scroll-behavior: auto !important; transition: none !important; }
}
