/* Mentale + Percezione & Neuro */
.mv-module-head {
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:20px;
  margin-bottom:14px;
}
.mv-module-head h2,
.mv-subhead h2 {
  margin:4px 0 5px;
  font-size:clamp(1.5rem,3vw,2.15rem);
  letter-spacing:-.03em;
}
.mv-module-head p,
.mv-subhead p {
  margin:0;
  color:var(--muted);
  max-width:850px;
  line-height:1.5;
}
.mv-readonly { margin-bottom:14px; }

.mv-section-switch {
  display:flex;
  gap:4px;
  width:max-content;
  max-width:100%;
  padding:4px;
  margin-bottom:20px;
  overflow-x:auto;
  border-radius:13px;
  background:#e9eef5;
}
.mv-section-button {
  border:0;
  background:transparent;
  color:#637187;
  border-radius:10px;
  padding:10px 14px;
  font-weight:850;
  font-size:.82rem;
  white-space:nowrap;
}
.mv-section-button.active {
  background:#fff;
  color:var(--navy-900);
  box-shadow:0 2px 9px rgba(11,31,58,.09);
}

.mv-subhead {
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:18px;
  margin-bottom:16px;
}

.mv-kpis {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  margin-bottom:16px;
}
.mv-kpi {
  display:grid;
  gap:5px;
  padding:14px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:14px;
}
.mv-kpi span {
  color:var(--muted);
  font-size:.67rem;
  font-weight:850;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.mv-kpi strong {
  font-size:1.15rem;
  color:var(--navy-900);
}

.mv-grid-2 {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
  margin-bottom:14px;
}
.mv-goals-grid {
  display:grid;
  gap:10px;
}
.mv-goals-grid label {
  display:grid;
  gap:6px;
}
.mv-goals-grid label span,
.mv-goals-readonly span {
  color:#5d6b7e;
  font-size:.68rem;
  font-weight:850;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.mv-goals-grid textarea {
  min-height:68px;
  resize:vertical;
  border:1px solid #d7dfeb;
  border-radius:10px;
  padding:10px 11px;
  background:#fbfcfe;
}
.mv-goals-grid .button { justify-self:start; }
.mv-goals-readonly { display:grid; gap:10px; }
.mv-goals-readonly > div {
  display:grid;
  gap:4px;
  padding:10px 0;
  border-bottom:1px solid var(--line);
}

.mv-peak-list { display:grid; gap:0; }
.mv-peak-row {
  display:grid;
  gap:4px;
  padding:11px 0;
  border-bottom:1px solid var(--line);
}
.mv-peak-row:last-child { border-bottom:0; }
.mv-peak-row strong { font-size:.84rem; }
.mv-peak-row span {
  color:var(--muted);
  font-size:.73rem;
  line-height:1.45;
}

.mv-simple-list { display:grid; }
.mv-simple-row {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  padding:10px 0;
  border-bottom:1px solid var(--line);
}
.mv-simple-row:last-child { border-bottom:0; }
.mv-simple-row > div { display:grid; gap:3px; min-width:0; }
.mv-simple-row strong { font-size:.8rem; }
.mv-simple-row span { color:var(--muted); font-size:.68rem; }

.mv-skill-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}
.mv-skill-card .panel-body {
  display:grid;
  gap:12px;
  height:100%;
}
.mv-skill-card-head {
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
}
.mv-skill-card h3,
.mv-tool-card h3,
.mv-domain-card h3,
.mv-protocol-card h3,
.mv-measure-card h3 {
  margin:4px 0 0;
  font-size:1rem;
}
.mv-skill-card p,
.mv-domain-card p,
.mv-protocol-card p {
  margin:0;
  color:var(--muted);
  font-size:.76rem;
  line-height:1.5;
}
.mv-level-badge {
  min-width:46px;
  padding:6px 8px;
  border:1px solid var(--line);
  border-radius:999px;
  text-align:center;
  font-size:.76rem;
  background:#f7f9fc;
}
.mv-tags {
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}
.mv-tags span {
  padding:5px 8px;
  border-radius:999px;
  background:#f0f3f7;
  color:#647187;
  font-size:.63rem;
  font-weight:800;
}
.mv-skill-form {
  display:grid;
  gap:9px;
  padding-top:10px;
  border-top:1px solid var(--line);
}
.mv-skill-form label { display:grid; gap:5px; }
.mv-skill-form label > span {
  color:#627086;
  font-size:.68rem;
  font-weight:800;
}
.mv-skill-form select,
.mv-skill-form textarea {
  width:100%;
  border:1px solid #d7dfeb;
  border-radius:9px;
  background:#fbfcfe;
  padding:9px 10px;
}
.mv-skill-form textarea { min-height:70px; resize:vertical; }
.mv-skill-form .button { justify-self:start; }
.mv-note {
  padding:9px 10px;
  border-radius:9px;
  background:#f7f9fc;
  color:#667489;
  font-size:.72rem;
  white-space:pre-wrap;
}

.mv-tool-grid,
.mv-protocol-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  margin-bottom:16px;
}
.mv-tool-card .panel-body,
.mv-protocol-card .panel-body {
  display:grid;
  gap:10px;
  height:100%;
}
.mv-protocol-card .button { justify-self:start; margin-top:auto; }
.mv-frustration-panel { margin-top:16px; }
.mv-three-columns {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}
.mv-three-columns > div {
  display:grid;
  gap:5px;
  padding:12px;
  border:1px solid var(--line);
  border-radius:11px;
  background:#fafbfd;
}
.mv-three-columns strong { font-size:.82rem; }
.mv-three-columns span {
  color:var(--muted);
  font-size:.72rem;
  line-height:1.45;
}

.mv-table-wrap { overflow-x:auto; }
.mv-table {
  width:100%;
  border-collapse:collapse;
  min-width:720px;
}
.mv-table th,
.mv-table td {
  padding:10px 9px;
  border-bottom:1px solid var(--line);
  text-align:left;
  vertical-align:top;
  font-size:.73rem;
}
.mv-table th {
  color:#657287;
  font-size:.64rem;
  text-transform:uppercase;
  letter-spacing:.05em;
}
.mv-table td strong { font-size:.79rem; }

.mv-review-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
.mv-review-card .panel-body { display:grid; gap:12px; }
.mv-card-top {
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
}
.mv-card-top > div { display:grid; gap:3px; }
.mv-card-top span { color:var(--muted); font-size:.7rem; }
.mv-review-scores {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:7px;
}
.mv-review-scores > div,
.mv-measure-stats > div {
  display:grid;
  gap:3px;
  padding:8px;
  border:1px solid var(--line);
  border-radius:9px;
  background:#fafbfd;
}
.mv-review-scores span,
.mv-measure-stats span {
  color:var(--muted);
  font-size:.6rem;
  text-transform:uppercase;
  letter-spacing:.035em;
  font-weight:800;
}
.mv-review-scores strong,
.mv-measure-stats strong {
  font-size:.86rem;
  color:var(--navy-900);
}

.mv-domain-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  margin-bottom:16px;
}
.mv-domain-card .panel-body { display:grid; gap:8px; height:100%; }

.mv-reflexion-overview { margin-bottom:16px; }
.mv-reflexion-latest-grid {
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:8px;
}
.mv-reflexion-latest {
  display:grid;
  gap:4px;
  padding:10px;
  border:1px solid var(--line);
  border-radius:10px;
  background:#fafbfd;
}
.mv-reflexion-latest span {
  font-size:.65rem;
  color:#617086;
  font-weight:800;
}
.mv-reflexion-latest strong {
  font-size:1.05rem;
  color:var(--navy-900);
}
.mv-reflexion-latest small {
  color:var(--muted);
  font-size:.62rem;
}

.mv-measure-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
  margin-bottom:16px;
}
.mv-measure-card .panel-body {
  display:grid;
  gap:12px;
}
.mv-measure-head {
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
}
.mv-small-button { padding:7px 10px; font-size:.7rem; }
.mv-measure-stats {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:7px;
}
.mv-sparkline {
  width:100%;
  height:auto;
  max-height:110px;
  overflow:visible;
}
.mv-spark-grid {
  stroke:#e6eaf0;
  stroke-width:1;
}
.mv-spark-line {
  fill:none;
  stroke:currentColor;
  stroke-width:3;
  stroke-linecap:round;
  stroke-linejoin:round;
  color:#637aa0;
}
.mv-sparkline-empty {
  min-height:88px;
  display:grid;
  place-items:center;
  text-align:center;
  color:#98a3b3;
  font-size:.7rem;
  border:1px dashed #dfe5ed;
  border-radius:10px;
}
.mv-measure-foot {
  display:flex;
  justify-content:space-between;
  gap:10px;
  color:var(--muted);
  font-size:.68rem;
}
.mv-measure-foot strong { color:#526177; }
.mv-measure-history { margin-top:4px; }

.mv-empty {
  padding:20px;
  text-align:center;
  color:var(--muted);
  font-size:.77rem;
}
.mv-empty-panel { padding:10px; }

@media (max-width:1100px) {
  .mv-domain-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .mv-reflexion-latest-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .mv-tool-grid,
  .mv-protocol-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

@media (max-width:850px) {
  .mv-kpis,
  .mv-grid-2,
  .mv-skill-grid,
  .mv-review-grid,
  .mv-measure-grid {
    grid-template-columns:1fr;
  }

  .mv-three-columns { grid-template-columns:1fr; }
  .mv-review-scores,
  .mv-measure-stats { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

@media (max-width:620px) {
  .mv-module-head,
  .mv-subhead {
    align-items:flex-start;
    flex-direction:column;
  }

  .mv-section-switch { width:100%; }
  .mv-domain-grid,
  .mv-tool-grid,
  .mv-protocol-grid,
  .mv-reflexion-latest-grid {
    grid-template-columns:1fr;
  }

  .mv-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

/* v0.30.2 · configurable Perception & Neuro protocols */
.mv-domain-card-top {
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:10px;
}
.mv-domain-card-top h3 { margin:0; }
.mv-domain-card-top span {
  color:var(--muted);
  font-size:.62rem;
  white-space:nowrap;
}

.mv-measured-overview { margin-bottom:16px; }
.mv-measured-protocol-list { display:grid; gap:12px; }
.mv-measured-protocol {
  display:grid;
  gap:10px;
  padding:12px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#fafbfd;
}
.mv-measured-protocol-head > div {
  display:grid;
  gap:3px;
}
.mv-measured-protocol-head strong { font-size:.86rem; }
.mv-measured-protocol-head span {
  color:var(--muted);
  font-size:.66rem;
}
.mv-measured-protocol-metrics {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(130px,1fr));
  gap:7px;
}
.mv-measured-protocol-metrics > div {
  display:grid;
  gap:3px;
  padding:8px;
  border:1px solid #e6eaf0;
  border-radius:9px;
  background:white;
}
.mv-measured-protocol-metrics span {
  color:#667489;
  font-size:.63rem;
  font-weight:800;
}
.mv-measured-protocol-metrics strong {
  color:var(--navy-900);
  font-size:.88rem;
}
.mv-measured-protocol-metrics small {
  color:var(--muted);
  font-size:.6rem;
}

.mv-empty-state-actions {
  display:grid;
  justify-items:center;
  gap:0;
}

.mv-subhead-actions {
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.mv-protocol-card-head {
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:10px;
}
.mv-protocol-card-head > div {
  display:grid;
  gap:4px;
}
.mv-protocol-card-head h3 { margin:0; }
.mv-protocol-card-head span {
  color:var(--muted);
  font-size:.65rem;
}
.mv-edit-button {
  width:34px;
  height:34px;
  flex:0 0 auto;
}

.mv-protocol-metrics {
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  padding-top:2px;
}
.mv-protocol-metrics > span {
  display:inline-flex;
  align-items:center;
  gap:5px;
  padding:6px 8px;
  border:1px solid #dfe5ed;
  border-radius:9px;
  background:#fafbfd;
  color:#5e6d81;
  font-size:.65rem;
}
.mv-protocol-metrics b {
  color:#8490a1;
  font-size:.58rem;
}

.mv-protocol-foot {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  margin-top:auto;
  padding-top:3px;
}
.mv-protocol-foot > span {
  color:var(--muted);
  font-size:.64rem;
}

.mv-protocol-dialog {
  width:min(860px,calc(100% - 24px));
}

.mv-domain-fieldset {
  margin:16px 0 0;
  padding:12px;
  border:1px solid var(--line);
  border-radius:12px;
}
.mv-domain-fieldset legend {
  padding:0 6px;
  color:#5c6a7e;
  font-size:.72rem;
  font-weight:850;
}
.mv-domain-checks {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
}
.mv-domain-checks label {
  display:flex;
  align-items:center;
  gap:8px;
  padding:8px 9px;
  border:1px solid #e4e9f0;
  border-radius:9px;
  background:#fafbfd;
  font-size:.72rem;
  font-weight:750;
}
.mv-domain-checks input {
  width:16px;
  height:16px;
}

.mv-metric-definition {
  margin-top:16px;
  padding:12px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#f8fafc;
}
.mv-metric-definition-head {
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
  margin-bottom:10px;
}
.mv-metric-definition-head > div {
  display:grid;
  gap:3px;
}
.mv-metric-definition-head strong { font-size:.8rem; }
.mv-metric-definition-head span {
  color:var(--muted);
  font-size:.67rem;
}
.mv-metric-definition-list {
  display:grid;
  gap:8px;
}
.mv-metric-definition-row {
  display:grid;
  grid-template-columns:minmax(0,1.6fr) minmax(100px,.6fr) auto;
  gap:8px;
  align-items:end;
}
.mv-metric-definition-row label {
  display:grid;
  gap:5px;
}
.mv-metric-definition-row label span {
  color:#647187;
  font-size:.65rem;
  font-weight:800;
}
.mv-metric-definition-row input:not([type="hidden"]) {
  width:100%;
  border:1px solid #d7dfeb;
  border-radius:9px;
  padding:9px 10px;
  background:white;
}
.mv-remove-metric {
  width:38px;
  height:38px;
  color:#9b4f58;
}

@media (max-width:700px) {
  .mv-domain-checks,
  .mv-metric-definition-row {
    grid-template-columns:1fr;
  }

  .mv-metric-definition-head,
  .mv-protocol-foot {
    align-items:stretch;
    flex-direction:column;
  }

  .mv-remove-metric {
    width:100%;
  }
}

/* v0.30.3 · explicit axes on measurement charts */
.mv-axis-chart {
  min-height: 132px;
}
.mv-spark-axis {
  stroke:#cfd7e2;
  stroke-width:1;
}
.mv-spark-axis-label {
  fill:#7b8798;
  font-size:9px;
  font-weight:700;
}
.mv-spark-point {
  fill:currentColor;
  color:#637aa0;
  stroke:white;
  stroke-width:1.4;
}


/* v1.2.9 · Mental exercise library */
.mv-linked-exercises {
  display:grid;
  gap:8px;
  padding:10px;
  border:1px solid #e2e7ee;
  border-radius:10px;
  background:#fafbfd;
}
.mv-linked-head {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
}
.mv-linked-head strong {
  font-size:.7rem;
  color:#56657a;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.mv-linked-head span {
  min-width:24px;
  padding:3px 7px;
  border-radius:999px;
  background:#edf1f6;
  color:#5f6e82;
  font-size:.62rem;
  font-weight:850;
  text-align:center;
}
.mv-linked-list,
.mv-session-exercises {
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}
.mv-link-chip {
  appearance:none;
  border:1px solid #dce3ec;
  border-radius:999px;
  background:white;
  color:#40536d;
  padding:6px 9px;
  font-size:.66rem;
  font-weight:800;
  line-height:1.2;
  cursor:pointer;
}
.mv-link-chip:hover {
  border-color:#bfcbd9;
  background:#f7f9fc;
}
.mv-linked-empty {
  color:#8a96a7;
  font-size:.68rem;
}

.mv-exercise-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}
.mv-exercise-card {
  transition:box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.mv-exercise-highlight {
  border-color:#8ea4c0;
  box-shadow:0 0 0 3px rgba(99,122,160,.14), 0 12px 28px rgba(11,31,58,.10);
  transform:translateY(-1px);
}
.mv-exercise-card .panel-body {
  display:grid;
  gap:12px;
}
.mv-exercise-card-head {
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
}
.mv-exercise-card-head h3 {
  margin:4px 0 0;
  font-size:1.02rem;
}
.mv-exercise-actions {
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.mv-exercise-objective {
  margin:0;
  color:#5f6c7e;
  font-size:.76rem;
  line-height:1.5;
}
.mv-exercise-meta {
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}
.mv-exercise-meta span {
  padding:5px 8px;
  border-radius:999px;
  background:#f0f3f7;
  color:#617086;
  font-size:.64rem;
  font-weight:800;
}
.mv-exercise-links {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.mv-exercise-links > div {
  display:grid;
  gap:6px;
  min-width:0;
}
.mv-exercise-links > div > strong,
.mv-exercise-section > strong {
  color:#59687c;
  font-size:.66rem;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.mv-exercise-section {
  display:grid;
  gap:5px;
  padding-top:9px;
  border-top:1px solid #edf0f4;
}
.mv-exercise-section p {
  margin:0;
  color:#657287;
  font-size:.72rem;
  line-height:1.5;
  white-space:pre-wrap;
}
.mv-exercise-notes {
  background:#fafbfd;
  border:1px solid #edf0f4;
  border-radius:9px;
  padding:9px 10px;
}

.mv-exercise-dialog {
  width:min(900px,calc(100% - 24px));
}
.mv-link-fieldset {
  margin:0;
  padding:12px;
  border:1px solid #dfe5ed;
  border-radius:12px;
  min-width:0;
}
.mv-link-fieldset legend {
  padding:0 6px;
  color:#5d6b7e;
  font-size:.72rem;
  font-weight:850;
}
.mv-check-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
}
.mv-check-grid label,
.mv-favorite-check {
  display:flex;
  align-items:flex-start;
  gap:8px;
  padding:9px 10px;
  border:1px solid #e4e9f0;
  border-radius:9px;
  background:#fafbfd;
  color:#526176;
  font-size:.72rem;
  font-weight:750;
}
.mv-check-grid input,
.mv-favorite-check input {
  width:16px;
  height:16px;
  flex:0 0 auto;
  margin-top:1px;
}
.mv-session-exercise-checks label > span {
  display:grid;
  gap:2px;
}
.mv-session-exercise-checks label strong {
  font-size:.73rem;
  color:#42526a;
}
.mv-session-exercise-checks label small,
.field label small {
  color:#8a96a7;
  font-size:.62rem;
  font-weight:700;
}
.mv-favorite-check {
  width:max-content;
  max-width:100%;
  align-items:center;
}
.mv-session-focus {
  display:grid;
  gap:3px;
  min-width:150px;
}
.mv-session-focus strong {
  color:#46566d;
  font-size:.72rem;
}
.mv-session-focus span {
  color:#7b8798;
  font-size:.65rem;
}
.mv-mental-session-table {
  min-width:980px;
}

@media (max-width:850px) {
  .mv-exercise-grid,
  .mv-exercise-links {
    grid-template-columns:1fr;
  }
}

@media (max-width:620px) {
  .mv-check-grid {
    grid-template-columns:1fr;
  }
  .mv-exercise-card-head {
    flex-direction:column;
  }
  .mv-exercise-actions {
    justify-content:flex-start;
  }
}


/* v1.2.10 · Mental profile, toolbox and library links */
.mv-skill-meter {
  width:100%;
  height:12px;
  overflow:hidden;
  border-radius:999px;
  background:#e9edf3;
  box-shadow:inset 0 0 0 1px rgba(61,78,101,.06);
}
.mv-skill-meter-fill {
  height:100%;
  width:0;
  border-radius:inherit;
  background:var(--mv-skill-color,#637aa0);
  transition:width .18s ease;
}
.mv-skill-card .mv-level-badge {
  color:#526177;
  border-color:#dfe5ed;
  background:#f4f6f9;
}
.mv-score-control > div {
  display:grid;
  grid-template-columns:minmax(0,1fr) 52px;
  align-items:center;
  gap:10px;
}
.mv-score-control input[type="range"] {
  width:100%;
  accent-color:#7d8795;
}
.mv-score-control output {
  min-width:52px;
  padding:5px 7px;
  border-radius:999px;
  background:#f2f5f8;
  color:#526177;
  font-size:.7rem;
  font-weight:900;
  text-align:center;
}

.mv-tool-card-head {
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
}
.mv-tool-card-head > div:first-child {
  display:grid;
  gap:6px;
  min-width:0;
}
.mv-tool-card-head h3 {
  margin:0;
}
.mv-tool-card-head p {
  margin:0;
  color:var(--muted);
  font-size:.72rem;
  line-height:1.45;
}

.mv-exercise-resources {
  background:#f8fafc;
  border:1px solid #e8edf3;
  border-radius:10px;
  padding:10px;
}
.mv-resource-chip {
  background:#fff;
}
.mv-resource-check-grid label > span {
  display:grid;
  gap:2px;
  min-width:0;
}
.mv-resource-check-grid label strong {
  color:#43536a;
  font-size:.72rem;
  overflow-wrap:anywhere;
}
.mv-resource-check-grid label small {
  color:#8a96a7;
  font-size:.62rem;
  font-weight:700;
}

@media (max-width:620px) {
  .mv-tool-card-head {
    flex-direction:column;
  }
  .mv-score-control > div {
    grid-template-columns:minmax(0,1fr) 48px;
  }
}


/* v1.2.11 · Mental Overview + custom areas */
.mv-subhead-actions {
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  flex-wrap:wrap;
}
.mv-skill-head-actions {
  display:flex;
  align-items:flex-start;
  justify-content:flex-end;
  gap:8px;
  flex-wrap:wrap;
}
.mv-skill-head-actions .mv-exercise-actions {
  margin-top:0;
}
.mv-resilience-framework {
  margin-top:14px;
}
.mv-resilience-framework .panel-header .eyebrow {
  margin-bottom:5px;
}

.mv-mental-window-panel .panel-body {
  display:grid;
  gap:16px;
}
.mv-window-kpis {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
}
.mv-window-kpis > div {
  display:grid;
  gap:4px;
  padding:10px 11px;
  border:1px solid #e5eaf0;
  border-radius:10px;
  background:#fafbfd;
}
.mv-window-kpis span,
.mv-summary-label {
  color:#7b8798;
  font-size:.64rem;
  font-weight:850;
  letter-spacing:.035em;
  text-transform:uppercase;
}
.mv-window-kpis strong {
  color:#34445c;
  font-size:.9rem;
}
.mv-focus-summary,
.mv-window-recent {
  display:grid;
  gap:9px;
}
.mv-focus-row {
  display:grid;
  gap:5px;
}
.mv-focus-row-head {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  color:#536177;
  font-size:.69rem;
}
.mv-focus-row-head strong {
  color:#43526a;
  font-size:.67rem;
}
.mv-focus-track {
  height:8px;
  overflow:hidden;
  border-radius:999px;
  background:#edf1f5;
}
.mv-focus-fill {
  height:100%;
  border-radius:inherit;
  background:var(--mv-focus-color,#637aa0);
}
.mv-window-recent {
  padding-top:2px;
}
.mv-window-session-row {
  display:grid;
  grid-template-columns:86px minmax(0,1fr) auto;
  gap:10px;
  align-items:center;
  padding:8px 0;
  border-top:1px solid #edf0f4;
}
.mv-window-session-row span {
  color:#788597;
  font-size:.66rem;
}
.mv-window-session-row strong {
  min-width:0;
  color:#46556c;
  font-size:.7rem;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.mv-window-session-row em {
  color:#758194;
  font-size:.65rem;
  font-style:normal;
  font-weight:800;
}
.mv-window-empty {
  padding:11px;
  border:1px dashed #dce3eb;
  border-radius:10px;
  color:#8793a3;
  font-size:.7rem;
  text-align:center;
}

.mv-score-control input[type="range"]::-webkit-slider-runnable-track {
  background:#dfe4ea;
}
.mv-score-control input[type="range"]::-webkit-slider-thumb {
  color:#7d8795;
}
.mv-score-control input[type="range"]::-moz-range-track {
  background:#dfe4ea;
}
.mv-score-control input[type="range"]::-moz-range-progress {
  background:#aeb7c3;
}
.mv-score-control input[type="range"]::-moz-range-thumb {
  border-color:#7d8795;
  background:#7d8795;
}

@media (max-width:760px) {
  .mv-window-kpis {
    grid-template-columns:1fr;
  }
  .mv-window-session-row {
    grid-template-columns:78px minmax(0,1fr);
  }
  .mv-window-session-row em {
    grid-column:2;
  }
}
@media (max-width:620px) {
  .mv-subhead-actions,
  .mv-skill-head-actions {
    justify-content:flex-start;
  }
}


/* v1.2.12 · Mental cosmetic polish */

/* Overview: richer dashboard cards */
.mv-overview-kpis {
  grid-template-columns:.9fr 1.35fr 1fr 1fr;
  gap:12px;
}
.mv-kpi-card {
  --mv-kpi-accent:#637aa0;
  position:relative;
  isolation:isolate;
  display:flex;
  align-items:center;
  gap:12px;
  min-height:102px;
  padding:15px 16px;
  overflow:hidden;
  border-color:color-mix(in srgb,var(--mv-kpi-accent) 20%,#dde4ec);
  background:
    linear-gradient(135deg,
      color-mix(in srgb,var(--mv-kpi-accent) 9%,white),
      #fff 68%);
  box-shadow:0 8px 24px rgba(22,40,66,.055);
}
.mv-kpi-card::after {
  content:"";
  position:absolute;
  z-index:-1;
  width:88px;
  height:88px;
  right:-32px;
  bottom:-42px;
  border-radius:50%;
  background:color-mix(in srgb,var(--mv-kpi-accent) 12%,transparent);
}
.mv-kpi-card:hover {
  border-color:color-mix(in srgb,var(--mv-kpi-accent) 32%,#d8e0e9);
  box-shadow:0 10px 28px rgba(22,40,66,.075);
}
.mv-kpi-areas { --mv-kpi-accent:#4f78d4; }
.mv-kpi-average { --mv-kpi-accent:#7c5bc7; }
.mv-kpi-sessions { --mv-kpi-accent:#279a87; }
.mv-kpi-reviews { --mv-kpi-accent:#d28c36; }

.mv-kpi-icon {
  display:grid;
  place-items:center;
  width:40px;
  height:40px;
  flex:0 0 40px;
  border-radius:12px;
  color:var(--mv-kpi-accent);
  background:color-mix(in srgb,var(--mv-kpi-accent) 12%,white);
  border:1px solid color-mix(in srgb,var(--mv-kpi-accent) 18%,#e1e7ee);
  font-size:1rem;
  font-weight:900;
}
.mv-kpi-copy {
  display:grid;
  min-width:0;
  gap:2px;
}
.mv-kpi-copy > span {
  color:#6d798c;
  font-size:.63rem;
}
.mv-kpi-copy > strong {
  color:#24364f;
  font-size:1.38rem;
  line-height:1.05;
}
.mv-kpi-copy > small {
  color:#8a95a5;
  font-size:.62rem;
  line-height:1.3;
}
.mv-kpi-average {
  gap:14px;
}
.mv-kpi-average .mv-kpi-average-label {
  font-size:.78rem;
  line-height:1.2;
}
.mv-average-gauge {
  display:grid;
  place-items:center;
  width:78px;
  height:78px;
  flex:0 0 78px;
  border-radius:50%;
  background:
    conic-gradient(
      var(--mv-kpi-accent) 0deg,
      var(--mv-kpi-accent) var(--mv-gauge-angle),
      #e8eaf1 var(--mv-gauge-angle),
      #e8eaf1 360deg
    );
  box-shadow:
    0 5px 14px color-mix(in srgb,var(--mv-kpi-accent) 18%,transparent),
    inset 0 0 0 1px rgba(255,255,255,.45);
}
.mv-average-gauge-inner {
  display:grid;
  place-items:center;
  align-content:center;
  gap:0;
  width:58px;
  height:58px;
  border-radius:50%;
  background:#fff;
  box-shadow:inset 0 0 0 1px #edf0f5;
}
.mv-average-gauge-inner strong {
  color:#403166;
  font-size:1rem;
  line-height:1;
}
.mv-average-gauge-inner span {
  margin-top:3px;
  color:#8a829c;
  font-size:.53rem;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.035em;
}

/* Overview panels */
.mv-overview-goals-panel,
.mv-mental-window-panel {
  overflow:hidden;
}
.mv-overview-goals-panel .panel-header {
  background:linear-gradient(135deg,#fbf8ff,#fff 68%);
  border-bottom-color:#eee8f8;
}
.mv-mental-window-panel .panel-header {
  background:linear-gradient(135deg,#f3fbf9,#fff 72%);
  border-bottom-color:#e1f0eb;
}
.mv-panel-title-with-icon {
  display:flex;
  align-items:flex-start;
  gap:10px;
}
.mv-panel-title-with-icon > div {
  display:grid;
  gap:3px;
}
.mv-panel-title-with-icon h3,
.mv-panel-title-with-icon p {
  margin:0;
}
.mv-panel-icon {
  display:grid;
  place-items:center;
  width:34px;
  height:34px;
  flex:0 0 34px;
  border-radius:10px;
  color:#7657c8;
  background:#f0ebfb;
  border:1px solid #e5daf8;
  font-size:.9rem;
  font-weight:900;
}
.mv-panel-icon-activity {
  color:#238c7a;
  background:#e9f7f3;
  border-color:#d6eee7;
}
.mv-window-kpis > div:nth-child(1) {
  background:linear-gradient(135deg,#eef8f5,#fbfdfc);
  border-color:#dceee8;
}
.mv-window-kpis > div:nth-child(2) {
  background:linear-gradient(135deg,#f3f1fb,#fcfbfe);
  border-color:#e7e2f5;
}
.mv-window-kpis > div:nth-child(3) {
  background:linear-gradient(135deg,#fff8ed,#fffdfa);
  border-color:#f4e8d5;
}

/* Goal levels */
.mv-goal-field {
  position:relative;
  padding-left:10px;
}
.mv-goal-field::before {
  content:"";
  position:absolute;
  left:0;
  top:22px;
  bottom:0;
  width:4px;
  border-radius:999px;
}
.mv-goal-bronze::before { background:#b87843; }
.mv-goal-silver::before { background:#9aa6b4; }
.mv-goal-gold::before { background:#d6a72b; }

.mv-goal-bronze textarea { background:#fffaf6; }
.mv-goal-silver textarea { background:#fafbfc; }
.mv-goal-gold textarea { background:#fffdf5; }

.mv-goal-readonly {
  position:relative;
  padding-left:12px !important;
}
.mv-goal-readonly::before {
  content:"";
  position:absolute;
  left:0;
  top:8px;
  bottom:8px;
  width:4px;
  border-radius:999px;
}
.mv-goal-readonly.mv-goal-bronze::before { background:#b87843; }
.mv-goal-readonly.mv-goal-silver::before { background:#9aa6b4; }
.mv-goal-readonly.mv-goal-gold::before { background:#d6a72b; }

/* Toolbox: more visual identity without adding new persisted data */
.mv-tool-card-polished {
  position:relative;
  overflow:hidden;
  border-top:3px solid var(--mv-tool-color);
  background:
    linear-gradient(180deg,
      color-mix(in srgb,var(--mv-tool-color) 5%,white) 0,
      white 92px);
  box-shadow:0 7px 21px rgba(26,42,64,.045);
  transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.mv-tool-card-polished::after {
  content:"";
  position:absolute;
  pointer-events:none;
  width:110px;
  height:110px;
  right:-58px;
  top:-64px;
  border-radius:50%;
  background:color-mix(in srgb,var(--mv-tool-color) 9%,transparent);
}
.mv-tool-card-polished:hover {
  transform:translateY(-2px);
  box-shadow:0 12px 26px rgba(26,42,64,.075);
}
.mv-tool-card-polished .panel-body {
  position:relative;
  z-index:1;
}
.mv-tool-identity {
  display:flex !important;
  align-items:flex-start;
  gap:10px !important;
}
.mv-tool-identity > div {
  display:grid;
  gap:5px;
  min-width:0;
}
.mv-tool-monogram {
  display:grid;
  place-items:center;
  width:38px;
  height:38px;
  flex:0 0 38px;
  border-radius:12px;
  color:var(--mv-tool-color);
  background:color-mix(in srgb,var(--mv-tool-color) 11%,white);
  border:1px solid color-mix(in srgb,var(--mv-tool-color) 20%,#e1e6ed);
  font-size:.72rem;
  font-weight:950;
  letter-spacing:.02em;
}
.mv-tool-card-polished h3 {
  color:#2f4057;
  font-size:.91rem;
}
.mv-tool-meta-row {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
}
.mv-tool-skill-tags {
  flex:1;
  min-width:0;
}
.mv-tool-skill-chip {
  color:color-mix(in srgb,var(--mv-tool-skill-color) 80%,#263548) !important;
  background:color-mix(in srgb,var(--mv-tool-skill-color) 9%,white) !important;
  border-color:color-mix(in srgb,var(--mv-tool-skill-color) 18%,#e2e7ed) !important;
}
.mv-tool-count {
  display:grid;
  place-items:center;
  min-width:52px;
  padding:6px 8px;
  border-radius:10px;
  background:color-mix(in srgb,var(--mv-tool-color) 8%,white);
  border:1px solid color-mix(in srgb,var(--mv-tool-color) 17%,#e3e8ee);
}
.mv-tool-count strong {
  color:var(--mv-tool-color);
  font-size:.88rem;
  line-height:1;
}
.mv-tool-count span {
  margin-top:2px;
  color:#8a95a4;
  font-size:.52rem;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.035em;
}
.mv-tool-linked-exercises {
  background:color-mix(in srgb,var(--mv-tool-color) 3.5%,#fafbfd);
  border-color:color-mix(in srgb,var(--mv-tool-color) 13%,#e4e9ef);
}
.mv-tool-linked-exercises .mv-link-chip {
  border-color:color-mix(in srgb,var(--mv-tool-color) 15%,#dce3ec);
}
.mv-tool-linked-exercises .mv-link-chip:hover {
  color:var(--mv-tool-color);
  border-color:color-mix(in srgb,var(--mv-tool-color) 35%,#cbd4df);
  background:color-mix(in srgb,var(--mv-tool-color) 6%,white);
}

@media (max-width:1040px) {
  .mv-overview-kpis {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media (max-width:620px) {
  .mv-overview-kpis {
    grid-template-columns:1fr;
  }
  .mv-kpi-card {
    min-height:88px;
  }
  .mv-kpi-average {
    min-height:104px;
  }
  .mv-tool-meta-row {
    align-items:stretch;
  }
}


/* v1.2.17 · Perception & Neuro color polish */
.mv-visual-module-head {
  position:relative;
  isolation:isolate;
  overflow:hidden;
  padding:18px 20px;
  border:1px solid #dfe6f0;
  border-radius:17px;
  background:
    radial-gradient(circle at 88% 18%,rgba(138,99,199,.14),transparent 24%),
    radial-gradient(circle at 72% 92%,rgba(62,155,130,.12),transparent 25%),
    linear-gradient(135deg,#f8fbff 0%,#f8f6fd 52%,#f7fcfa 100%);
}
.mv-visual-module-head::after {
  content:"";
  position:absolute;
  z-index:-1;
  width:170px;
  height:170px;
  right:-70px;
  bottom:-100px;
  border-radius:50%;
  background:rgba(79,127,206,.08);
}
.mv-visual-module-head h2 {
  color:#2f3d57;
}
.mv-visual-module-head .eyebrow {
  color:#6f5aa4;
}
.mv-visual-module-head p {
  color:#6f7b8d;
}

.mv-visual-module-head ~ .mv-section-switch {
  background:linear-gradient(135deg,#e9eef8,#eeeaf7,#e8f2ef);
}
.mv-visual-module-head ~ .mv-section-switch .mv-section-button.active {
  color:#4d4472;
  box-shadow:0 3px 12px rgba(78,70,115,.10);
}

.mv-visual-subhead .eyebrow {
  color:#6b5ca0;
}
.mv-visual-subhead h2 {
  color:#304058;
}

.mv-visual-domain-card {
  position:relative;
  overflow:hidden;
  border-top:3px solid var(--mv-visual-color);
  background:
    linear-gradient(
      155deg,
      color-mix(in srgb,var(--mv-visual-color) 8%,white),
      #fff 62%
    );
  box-shadow:0 7px 20px rgba(30,47,73,.045);
  transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease;
}
.mv-visual-domain-card::after {
  content:"";
  position:absolute;
  width:90px;
  height:90px;
  right:-48px;
  top:-52px;
  border-radius:50%;
  background:color-mix(in srgb,var(--mv-visual-color) 9%,transparent);
  pointer-events:none;
}
.mv-visual-domain-card:hover {
  transform:translateY(-2px);
  box-shadow:0 11px 25px rgba(30,47,73,.075);
}
.mv-visual-domain-title {
  display:flex;
  align-items:center;
  gap:9px;
  min-width:0;
}
.mv-visual-domain-icon {
  display:grid;
  place-items:center;
  width:34px;
  height:34px;
  flex:0 0 34px;
  border-radius:11px;
  color:var(--mv-visual-color);
  background:color-mix(in srgb,var(--mv-visual-color) 10%,white);
  border:1px solid color-mix(in srgb,var(--mv-visual-color) 20%,#e1e6ee);
  font-weight:950;
}
.mv-visual-domain-card .mv-domain-card-top > span {
  color:var(--mv-visual-color);
  background:color-mix(in srgb,var(--mv-visual-color) 8%,white);
  border:1px solid color-mix(in srgb,var(--mv-visual-color) 17%,#e2e7ee);
  border-radius:999px;
  padding:4px 7px;
  font-weight:850;
}

.mv-visual-measured-overview,
.mv-visual-recent-panel {
  overflow:hidden;
}
.mv-visual-measured-overview .panel-header {
  background:linear-gradient(135deg,#f7f4fc,#fff);
  border-bottom-color:#e9e3f4;
}
.mv-visual-recent-panel .panel-header {
  background:linear-gradient(135deg,#f3faf8,#fff);
  border-bottom-color:#deeee8;
}
.mv-visual-measured-overview .panel-header h3 {
  color:#51446e;
}
.mv-visual-recent-panel .panel-header h3 {
  color:#356254;
}

.mv-visual-measured-protocol {
  position:relative;
  overflow:hidden;
  border-left:4px solid var(--mv-visual-color);
  background:
    linear-gradient(135deg,color-mix(in srgb,var(--mv-visual-color) 5%,white),#fff 72%);
}
.mv-visual-measured-protocol .mv-measured-protocol-head strong {
  color:color-mix(in srgb,var(--mv-visual-color) 75%,#26364d);
}
.mv-visual-measured-protocol .mv-measured-protocol-metrics > div {
  border-color:color-mix(in srgb,var(--mv-visual-color) 12%,#e6eaf0);
  background:color-mix(in srgb,var(--mv-visual-color) 3.5%,white);
}
.mv-visual-measured-protocol .mv-measured-protocol-metrics strong {
  color:color-mix(in srgb,var(--mv-visual-color) 68%,#26364d);
}

.mv-visual-protocol-card {
  position:relative;
  overflow:hidden;
  border-top:3px solid var(--mv-visual-color);
  background:
    linear-gradient(180deg,color-mix(in srgb,var(--mv-visual-color) 5%,white),#fff 105px);
  box-shadow:0 6px 20px rgba(28,43,66,.045);
  transition:transform .16s ease,box-shadow .16s ease;
}
.mv-visual-protocol-card:hover {
  transform:translateY(-2px);
  box-shadow:0 11px 25px rgba(28,43,66,.07);
}
.mv-visual-protocol-identity {
  display:flex !important;
  align-items:flex-start;
  gap:9px !important;
}
.mv-visual-protocol-identity > div {
  display:grid;
  gap:3px;
  min-width:0;
}
.mv-visual-protocol-icon {
  display:grid;
  place-items:center;
  width:34px;
  height:34px;
  flex:0 0 34px;
  border-radius:10px;
  color:var(--mv-visual-color);
  background:color-mix(in srgb,var(--mv-visual-color) 10%,white);
  border:1px solid color-mix(in srgb,var(--mv-visual-color) 19%,#e1e7ee);
  font-weight:950;
}
.mv-visual-protocol-card .mv-tags span[style*="--mv-domain-chip"] {
  color:color-mix(in srgb,var(--mv-domain-chip) 78%,#2f4057);
  background:color-mix(in srgb,var(--mv-domain-chip) 9%,white);
  border:1px solid color-mix(in srgb,var(--mv-domain-chip) 18%,#e1e6ed);
}
.mv-visual-protocol-card .mv-protocol-metrics > span {
  border-color:color-mix(in srgb,var(--mv-visual-color) 14%,#dfe5ed);
  background:color-mix(in srgb,var(--mv-visual-color) 4%,#fafbfd);
}
.mv-visual-protocol-card .mv-protocol-foot .button {
  color:var(--mv-visual-color);
  border-color:color-mix(in srgb,var(--mv-visual-color) 25%,#d7dfe8);
}
.mv-visual-protocol-card .mv-protocol-foot .button:hover {
  background:color-mix(in srgb,var(--mv-visual-color) 6%,white);
}

.mv-visual-measure-card {
  position:relative;
  overflow:hidden;
  border-top:3px solid var(--mv-visual-color);
  background:
    linear-gradient(180deg,color-mix(in srgb,var(--mv-visual-color) 4.5%,white),#fff 110px);
  box-shadow:0 6px 20px rgba(28,43,66,.04);
}
.mv-visual-measure-card .eyebrow {
  color:var(--mv-visual-color);
}
.mv-visual-measure-card .mv-measure-stats > div {
  border-color:color-mix(in srgb,var(--mv-visual-color) 12%,#e1e7ed);
  background:color-mix(in srgb,var(--mv-visual-color) 3.5%,#fafbfd);
}
.mv-visual-measure-card .mv-measure-stats strong {
  color:color-mix(in srgb,var(--mv-visual-color) 70%,#25364e);
}
.mv-visual-measure-card .mv-spark-line,
.mv-visual-measure-card .mv-spark-point {
  color:var(--mv-visual-color);
}
.mv-visual-measure-card .mv-spark-line {
  stroke:var(--mv-visual-color);
}
.mv-visual-measure-card .mv-spark-point {
  fill:var(--mv-visual-color);
}
.mv-visual-measure-card .mv-small-button {
  color:var(--mv-visual-color);
  border-color:color-mix(in srgb,var(--mv-visual-color) 24%,#d9e0e8);
}
.mv-visual-measure-card .mv-small-button:hover {
  background:color-mix(in srgb,var(--mv-visual-color) 6%,white);
}

.mv-visual-recent-panel .mv-simple-row {
  position:relative;
  padding-left:12px;
}
.mv-visual-recent-panel .mv-simple-row::before {
  content:"";
  position:absolute;
  left:0;
  top:14px;
  bottom:14px;
  width:3px;
  border-radius:999px;
  background:linear-gradient(180deg,#4f7fce,#3e9b82);
}

@media (max-width:700px) {
  .mv-visual-module-head {
    padding:16px;
  }
  .mv-visual-domain-card .mv-domain-card-top {
    align-items:flex-start;
    flex-direction:column;
  }
}
