.fc-module{display:grid;gap:1.2rem;color:inherit}.fc-module h2,.fc-module h3,.fc-module h4{margin:0 0 .65rem}.fc-muted{opacity:.7}.fc-panel{background:rgba(128,145,170,.08);border:1px solid rgba(128,145,170,.2);border-radius:14px;padding:1rem}.fc-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:.8rem}.fc-kpis strong{display:block;font-size:1.7rem;margin-top:.3rem}.fc-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:.85rem}.fc-field{display:grid;gap:.35rem;font-weight:600}.fc-field small{font-weight:400;opacity:.75}.fc-field input,.fc-field select,.fc-field textarea{box-sizing:border-box;min-width:0;width:100%;padding:.65rem;border-radius:8px;border:1px solid #7b8798;background:var(--surface,#17212f);color:var(--text-color,inherit);font:inherit}.fc-wide{grid-column:1/-1}.fc-primary{background:#0284c7;color:white;border:0;border-radius:8px;padding:.75rem 1rem;cursor:pointer}.fc-primary:disabled{opacity:.55}.fc-chart svg{display:block;width:100%;height:auto;max-height:230px}.fc-scroll{overflow-x:auto}.fc-table{width:100%;border-collapse:collapse;min-width:520px}.fc-table th,.fc-table td{text-align:left;padding:.65rem;border-bottom:1px solid rgba(128,145,170,.2)}.fc-warning{border-left:3px solid #f59e0b;padding:.7rem}.fc-result-summary{padding:.8rem 0;border-bottom:1px solid rgba(128,145,170,.2)}.fc-table button{cursor:pointer;margin:.15rem;padding:.3rem .55rem}

/* Step 258: Diary details and reflection */
.fc-diary-list{display:grid;gap:.8rem}.fc-diary-entry{margin:0}.fc-diary-entry summary{cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:1rem;list-style:revert;padding:.2rem}.fc-diary-entry summary span:first-child{display:grid;gap:.3rem}.fc-diary-entry summary small{font-weight:400;opacity:.75}.fc-diary-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(125px,1fr));gap:.65rem;margin:1.1rem 0}.fc-diary-grid>div{border:1px solid rgba(128,145,170,.2);border-radius:8px;padding:.75rem;display:grid;gap:.3rem}.fc-diary-grid small{opacity:.75}.fc-diary-grid strong{font-size:1.2rem}.fc-diary-note{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6}.fc-diary-entry .fc-primary{margin-top:.5rem}.fc-module h4{margin-top:1rem}

/* Step 259 coach mini charts */
.fc-coach-mini{min-width:0}.fc-coach-mini strong{display:block;font-size:1.45rem;margin:.3rem 0}.fc-coach-mini svg{display:block;width:100%;height:48px;max-width:210px}.fc-coach-mini small{opacity:.75}#fc-coach-detail{display:grid;gap:1rem}#fc-coach-detail .fc-module{margin-top:1rem}

/* STEP 298 TESTING CENTRE DESIGN */
/* Scoped to Testing Centre; preserves diary and coach mini charts. */

.fc-module {
  --fc-blue: #38bdf8;
  --fc-purple: #c4b5fd;
  --fc-amber: #fbbf24;
  --fc-green: #4ade80;
  --fc-cyan: #22d3ee;
  gap: 1rem;
}

.fc-module > header > h2 {
  display: none;
}

.fc-module > header > .fc-muted {
  display: block;
  margin: 0;
  font-size: .875rem;
  line-height: 1.5;
}

.fc-module > .fc-kpis .fc-panel {
  border-top: 3px solid #60a5fa;
  background: rgba(37, 99, 235, .10);
}

.fc-module > .fc-kpis .fc-panel:nth-child(2) {
  border-top-color: var(--fc-green);
  background: rgba(34, 197, 94, .08);
}

.fc-module > .fc-kpis strong {
  font-size: 2rem;
  font-weight: 750;
}

.fc-module > section.fc-panel,
.fc-module > details.fc-panel {
  position: relative;
  border-left: 4px solid transparent;
  background: rgba(128, 145, 170, .055);
  padding: 1.15rem;
  transition: border-color .2s, background-color .2s;
}

.fc-module > section.fc-panel:has(#fc-test-result) {
  border-left-color: var(--fc-blue);
  background: linear-gradient(100deg, rgba(14, 165, 233, .095), rgba(128, 145, 170, .035));
}

.fc-module > details.fc-panel:has(#fc-create-test) {
  border-left-color: var(--fc-purple);
}

.fc-module > details.fc-panel:has(#fc-create-test)[open] {
  background: rgba(139, 92, 246, .075);
}

.fc-module > details.fc-panel:has(#fc-archive-test) {
  border-left-color: var(--fc-amber);
}

.fc-module > details.fc-panel:has(#fc-archive-test)[open] {
  background: rgba(245, 158, 11, .065);
}

.fc-module > section.fc-panel:has(.fc-chart) {
  border-left-color: var(--fc-cyan);
}

.fc-module > section.fc-panel:has(.fc-table) {
  border-left-color: var(--fc-green);
}

.fc-module > details.fc-panel > summary {
  cursor: pointer;
  padding: .25rem 0;
  font-weight: 700;
}

.fc-module > details.fc-panel > summary:hover {
  color: #e0e7ff;
}

.fc-module > section.fc-panel h3 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.fc-module .fc-result-summary {
  padding: 1rem .2rem;
}

.fc-module .fc-result-summary h4 {
  color: #7dd3fc;
}

.fc-module .fc-table th {
  color: #86efac;
  font-weight: 700;
}

.fc-module .fc-table tbody tr:hover {
  background: rgba(148, 163, 184, .065);
}

.fc-module .fc-field input:focus,
.fc-module .fc-field select:focus,
.fc-module .fc-field textarea:focus {
  outline: 2px solid #38bdf8;
  outline-offset: 2px;
}

.fc-module .fc-primary:focus-visible,
.fc-module summary:focus-visible {
  outline: 3px solid #f8fafc;
  outline-offset: 3px;
}

@media (max-width: 680px) {
  .fc-module > section.fc-panel,
  .fc-module > details.fc-panel {
    padding: .9rem;
  }

  .fc-module .fc-form {
    grid-template-columns: 1fr;
  }

  .fc-module .fc-primary {
    width: 100%;
  }
}


/* STEP 298 GRAPH LEGEND */
.fc-module .fc-graph-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem 1.1rem;
  margin: .8rem 0;
  font-size: .8rem;
}

.fc-module .fc-graph-legend span {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}

.fc-module .fc-graph-legend i {
  display: inline-block;
  width: 18px;
  height: 4px;
  border-radius: 3px;
  flex-shrink: 0;
}

/* FashCoach V2: Mobile wellness KPI overflow fix */
@media (max-width: 600px) {
  .fc-module > .fc-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fc-module > .fc-kpis .fc-panel {
    min-width: 0;
  }

  .fc-module > .fc-kpis strong {
    font-size: clamp(1rem, 4.5vw, 1.5rem);
    line-height: 1.25;
    overflow-wrap: anywhere;
  }
}
