/* ============================================================
   Attune - program-hyperacusis.css
   Net-new components for the Hyperacusis (Guided) program.
   Loads AFTER tokens.css, base.css, and program.css - it only
   adds what the hyperacusis modules need and never restyles the
   shared program furniture (.doc, .tool, .diary, .checklist,
   .week-done, .goals …), which program.css already owns.
   ============================================================ */

/* --- a quiet in-prose list (enrichment pointers) ----------- */
ul.plain {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  max-width: var(--measure);
}
ul.plain li {
  position: relative;
  padding-left: 1.2rem;
  margin: 0.55rem 0;
  color: var(--ink-soft);
  line-height: 1.6;
}
ul.plain li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-soft);
}

/* --- the kinds of sound sensitivity ------------------------ */
.subtypes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 0.9rem;
  margin: 1.4rem 0 0.4rem;
}

.subtype {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 1.1rem 1.15rem 1.2rem;
}

.subtype .sub-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.subtype .sub-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 0.85rem;
}

.subtype .sub-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
  font-size: 1.02rem;
}

.subtype .sub-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.subtype .sub-what {
  display: block;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* --- commitment cards ("what it asks of you, plainly") ------ */
.commitment-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
  margin: 1rem 0 1.6rem;
}

.commitment-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  padding: 1.1rem 1.2rem 1.2rem;
}

.commitment-card .stat {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--accent);
  font-size: 1.35rem;
  margin-bottom: 0.3rem;
}

.commitment-card .title {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.98rem;
  margin-bottom: 0.35rem;
}

.commitment-card .desc {
  display: block;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.55;
}

@media (max-width: 34rem) {
  .commitment-cards { grid-template-columns: 1fr; }
}

/* --- numbered readiness cards (unused as of the Getting Ready reframe) ---- */
.readiness-cards {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin: 1rem 0 1.4rem;
}

.readiness-card {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  padding: 1rem 1.1rem;
}

.readiness-card .readiness-num {
  flex: 0 0 auto;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: var(--sage);
  color: var(--accent-deep);
  font-family: var(--font-display);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.readiness-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.6;
}

/* --- questionnaire cards ("the questionnaires that shape...") */
.questionnaire-cards {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 1rem 0 1.4rem;
}

.questionnaire-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  padding: 0.9rem 1.1rem;
}

.questionnaire-card .title {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.98rem;
  margin-bottom: 0.3rem;
}

.questionnaire-card .desc {
  display: block;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* the gentle pain flag under the subtype grid */
.pain-note {
  margin-top: 1.15rem;
  padding: 0.95rem 1.1rem;
  border-left: 3px solid var(--accent-soft);
  background: var(--paper-2);
  border-radius: 0 8px 8px 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --- sound-diary yes / no fields --------------------------- */
.yn-field { margin: 1.15rem 0; }

.yn-field > .yn-q {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.yn-group {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--paper);
}

.yn-btn {
  appearance: none;
  border: 0;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink-soft);
  padding: 0.5rem 1.4rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.yn-btn + .yn-btn { border-left: 1px solid var(--line); }
.yn-btn:hover { background: var(--paper-2); }

.yn-btn[aria-pressed="true"] {
  background: var(--accent);
  color: #fff;
}

.yn-btn:focus-visible {
  outline: 2px solid var(--accent-deep);
  outline-offset: -2px;
}

/* the small clarifier that appears when "Yes, pain" is chosen */
.yn-followup {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
  max-width: 30rem;
}
.yn-followup[hidden] { display: none; }

/* diary entries built by hyperacusis.js - chips for pain/avoidance */
.entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
}
.chip {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.01em;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: var(--paper);
}
.chip.on {
  border-color: var(--accent-soft);
  color: var(--accent-deep);
  background: var(--sage);
}

/* --- the Guided model note in the done panel --------------- */
.guided-note {
  margin-top: 1.4rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
}
.guided-note h4 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 0.4rem;
  font-size: 1.02rem;
}
.guided-note p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0.4rem 0 0;
}

/* --- richer diary entries (built by hyperacusis.js) --------- */
.entries .entry {
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 0.85rem 1rem 0.95rem;
  margin: 0 0 0.6rem;
}
.entry-head { margin: 0; color: var(--ink); font-size: 0.98rem; }
.entry-head strong { font-family: var(--font-display); font-weight: 500; }
.entry-context { margin: 0.35rem 0 0; }
.entry-thought {
  margin: 0.4rem 0 0;
  font-family: var(--font-body);
  font-style: italic;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* ============================================================
   MODULE 2 - the CBT model for sound sensitivity
   ============================================================ */

/* --- arrival check-in (Beckian opener, success first) ------- */
.checkin { border-left: 3px solid var(--accent-soft); }
.checkin .tool-head h3 { margin-right: 0.5rem; }
.checkin-lead {
  color: var(--ink-soft);
  font-size: 0.96rem;
  line-height: 1.6;
  margin: 0 0 0.4rem;
}
.diary-field label .hint {
  display: block;
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.15rem;
}
.checkin .ci-continue { margin-top: 0.4rem; }

/* --- the trigger → thought → feeling → behavior chain ------- */
.chain {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.5rem;
  margin: 1.4rem 0 0.5rem;
}
.chain-node {
  flex: 1 1 8rem;
  min-width: 7.5rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 0.85rem 0.9rem 0.95rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.25rem;
}
.chain-node .cn-role {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.76rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.chain-node .cn-label {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
  font-size: 1.02rem;
}
.chain-node .cn-eg {
  font-size: 0.86rem;
  color: var(--ink-soft);
  line-height: 1.4;
}
.chain-node.is-lever { background: var(--sage); border-color: var(--accent-soft); }
.chain-arrow {
  align-self: center;
  color: var(--accent-soft);
  font-size: 1.15rem;
  flex: 0 0 auto;
  line-height: 1;
}
@media (max-width: 34rem) {
  .chain { flex-direction: column; }
  .chain-arrow { transform: rotate(90deg); }
}

/* --- same sound, two thoughts (the contrast cards) --------- */
.paths {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
  margin: 1.3rem 0 0.4rem;
}
@media (max-width: 36rem) { .paths { grid-template-columns: 1fr; } }
.path {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.05rem 1.15rem 1.2rem;
}
.path.alarm   { background: var(--paper-2); }
.path.settled { background: var(--sage); }
.path .path-tag {
  display: block;
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.path .path-thought {
  font-family: var(--font-display);
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.45;
  margin-bottom: 0.75rem;
}
.path .path-step {
  display: block;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.5;
  margin: 0.25rem 0;
}
.path .path-step b {
  font-family: var(--font-body);
  font-weight: 500;
  font-style: normal;
  color: var(--muted);
}

/* --- the SUDS hierarchy ladder ----------------------------- */
.suds-ladder {
  margin: 1.3rem 0 0.6rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.suds-tier {
  display: grid;
  grid-template-columns: 6rem 1fr;
  border-top: 1px solid var(--line);
}
.suds-tier:first-child { border-top: 0; }
.suds-band {
  padding: 0.75rem 0.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.1rem;
  border-right: 1px solid var(--line);
}
.suds-band b {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--ink);
}
.suds-band span {
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.suds-tier.calm   .suds-band { background: var(--sage); }
.suds-tier.off    .suds-band { background: var(--paper-2); }
.suds-tier.off    .suds-body .suds-what { color: var(--muted); }
.suds-body {
  padding: 0.7rem 0.85rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.4rem;
}
.suds-what { font-size: 0.92rem; color: var(--ink-soft); line-height: 1.45; }
.suds-body input[type="text"] {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--ink-soft);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.4rem 0.55rem;
}
.suds-body input[type="text"]:focus-visible {
  outline: 2px solid var(--accent-deep);
  outline-offset: 1px;
}

/* --- map-5-moments worksheet ------------------------------- */
.map-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1rem;
}
@media (max-width: 32rem) { .map-fields { grid-template-columns: 1fr; } }

.map-entry {
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 0.85rem 1rem 0.9rem;
  margin: 0 0 0.6rem;
}
.map-entry .me-line {
  display: block;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0.1rem 0;
}
.map-entry .me-line b {
  font-family: var(--font-body);
  font-weight: 500;
  font-style: italic;
  color: var(--muted);
  margin-right: 0.3rem;
}
.map-entry .me-line.me-trigger b { color: var(--accent-deep); font-style: normal; }

/* ============================================================
   MODULE 3 - relaxation and physiological regulation
   ============================================================ */

/* --- self-paced stepper (PMR) ------------------------------ */
.stepper .step-count {
  font-family: var(--font-body);
  font-style: italic;
  color: var(--muted);
  font-size: 0.85rem;
}
.stepper .step-title {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
  font-size: 1.18rem;
  margin: 0.35rem 0 0.55rem;
}
.stepper .step-body {
  color: var(--ink-soft);
  line-height: 1.65;
  font-size: 1rem;
  min-height: 5.5em;
}
.step-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.2rem;
}
.step-dots { display: flex; gap: 0.4rem; }
.step-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line);
  transition: background 0.2s ease;
}
.step-dot.on { background: var(--accent); }
.step-prev[disabled] { opacity: 0.4; cursor: default; }

/* --- breath pacer ------------------------------------------ */
.breath {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  padding: 1.4rem 0 0.4rem;
}
.breath-stage-wrap {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.breath-stage {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: var(--sage);
  border: 1.5px solid var(--accent-soft);
  transform: scale(0.62);
  will-change: transform;
}
.breath-label {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--accent-deep);
  font-size: 1.1rem;
  min-height: 1.5em;
  text-align: center;
}
.breath-controls { display: flex; justify-content: center; }

@media (prefers-reduced-motion: reduce) {
  .breath-stage { transition: none !important; }
  .step-dot { transition: none; }
}

/* ============================================================
   MODULE 4 - cognitive restructuring I (thought records)
   Reuses .subtypes/.subtype for the thinking-trap cards and
   .pain-note for the noxacusis caveat, so only the thought-record
   worksheet needs new rules here.
   ============================================================ */
.tr-block { margin: 1.35rem 0 0; }
.tr-block + .tr-block {
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}
.tr-cap {
  display: block;
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.02em;
  margin-bottom: 0.7rem;
}

/* the belief / distress before-and-after shift on a saved record */
.tr-shift {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.3rem;
  margin-top: 0.6rem;
  padding-top: 0.55rem;
  border-top: 1px dashed var(--line);
}
.tr-metric {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.tr-metric b {
  font-weight: 500;
  font-style: italic;
  color: var(--muted);
  margin-right: 0.35rem;
}
.tr-metric .to { color: var(--muted); margin: 0 0.25rem; }
.tr-metric.better .now { color: var(--accent-deep); font-family: var(--font-display); }

/* ============================================================
   MODULE 5 - beginning graded exposure
   Reuses .stepper (session walkthrough), .pain-note (safety and
   pain-track callouts), .suds-ladder (working-range reminder),
   and .map-entry (log entries). New here: the SUDS triple input
   and the settle-curve on saved sessions.
   ============================================================ */

/* --- the safety-referral card ------------------------------- */
.safety-card {
  margin: 1.4rem 0 0.4rem;
  border: 1px solid var(--accent-soft);
  border-radius: 10px;
  overflow: hidden;
}
.safety-stage {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  border-top: 1px solid var(--line);
}
.safety-stage:first-child { border-top: 0; }
.safety-when {
  background: var(--sage);
  padding: 0.9rem 0.8rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.15rem;
  border-right: 1px solid var(--line);
}
.safety-when b {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--accent-deep);
}
.safety-when span {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.safety-do {
  padding: 0.85rem 1rem;
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.55;
  display: flex;
  align-items: center;
}
@media (max-width: 30rem) {
  .safety-stage { grid-template-columns: 1fr; }
  .safety-when { border-right: 0; border-bottom: 1px solid var(--line); }
}

/* --- SUDS before / peak / after inputs ---------------------- */
.suds-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin: 0.4rem 0 0.6rem;
}
@media (max-width: 32rem) { .suds-trio { grid-template-columns: 1fr; } }
.suds-cell label {
  display: block;
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-bottom: 0.35rem;
}
.suds-cell .scale-row { display: flex; align-items: center; gap: 0.55rem; }
.suds-cell input[type="range"] { flex: 1; min-width: 0; }
.suds-cell output {
  font-family: var(--font-display);
  color: var(--accent-deep);
  min-width: 2ch;
  text-align: right;
}

/* --- session companion (partials/session-companion.html.j2) --- */
.suds-trio--single { grid-template-columns: 1fr; }
.suds-trio--pair { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 32rem) { .suds-trio--pair { grid-template-columns: 1fr; } }
.sess-phase { margin: 1.3rem 0 0; padding-top: 1.1rem; border-top: 1px dashed var(--line); }
.sess-phase:first-of-type { border-top: 0; padding-top: 0; }
.sess-phase > .tr-cap { color: var(--accent-deep); font-style: normal; letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.74rem; }
.sess-timer-row { display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap; margin: 0.3rem 0 0.4rem; }
.sess-elapsed {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--accent-deep);
  min-width: 5ch;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.sess-marker { font-style: italic; min-height: 1.4em; margin: 0.2rem 0 0; }
.sess-summary {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink-soft);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.9rem 1rem;
  margin: 0 0 0.9rem;
}
.sess-actions { display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap; }
.yn-followup.diary-field { margin: 0.8rem 0 0; }

/* --- the settle curve on a saved session -------------------- */
.settle {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.55rem;
  padding-top: 0.55rem;
  border-top: 1px dashed var(--line);
  flex-wrap: wrap;
}
.settle .s-num {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.settle .s-num b {
  font-weight: 500;
  font-style: italic;
  color: var(--muted);
  margin-right: 0.25rem;
}
.settle .s-num.s-after b { color: var(--accent-deep); font-style: normal; }
.settle .s-arrow { color: var(--muted); font-size: 0.9rem; }
.settle .s-verdict {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--accent-deep);
  margin-left: auto;
}

/* ============================================================
   MODULE 7 - the beliefs underneath (downward arrow, experiments)
   Reuses .map-entry, .tr-shift/.tr-metric, .tr-block/.tr-cap,
   .pain-note. New here: the arrow chain.
   ============================================================ */

/* --- the downward-arrow chain ------------------------------- */
.arrow-chain { margin: 0.6rem 0 0.2rem; }
.arrow-row { margin: 0; }
.arrow-row + .arrow-row { margin-top: 0.55rem; }
.arrow-row .ar-q {
  display: block;
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.86rem;
  color: var(--muted);
  margin: 0 0 0.3rem 0.1rem;
}
.arrow-row .ar-link {
  display: inline-block;
  color: var(--accent-soft);
  margin: 0.15rem 0 0.15rem 1.1rem;
  font-size: 1.05rem;
  line-height: 1;
}
.arrow-row input[type="text"], .arrow-row textarea {
  width: 100%;
}
.arrow-row.ar-core input[type="text"] {
  background: var(--sage);
  border-color: var(--accent-soft);
  font-family: var(--font-display);
  color: var(--accent-deep);
}
.arrow-actions {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  margin-top: 0.8rem;
  flex-wrap: wrap;
}

/* saved arrow chains render as map-entries; the found belief line */
.me-line.me-core {
  font-family: var(--font-display);
  color: var(--accent-deep);
}
.me-line.me-core b { color: var(--accent-deep); font-style: normal; }

/* ============================================================
   PAIN PATHWAY - pain neuroscience education
   The sensitization curve. Reuses .subtypes/.pain-note/.callout
   and the enrichment .player elsewhere on the page.
   ============================================================ */
.painchart { margin: 1.5rem 0 0.6rem; }
.painchart svg {
  width: 100%;
  height: auto;
  max-width: 34rem;
  display: block;
  margin: 0 auto;
}
.painchart .pc-axis { stroke: var(--line); stroke-width: 1.5; }
.painchart .pc-threshold {
  stroke: var(--muted);
  stroke-width: 1.5;
  stroke-dasharray: 4 5;
  fill: none;
}
.painchart .pc-now { stroke: var(--accent); stroke-width: 2.5; fill: none; }
.painchart .pc-settled {
  stroke: var(--accent-soft);
  stroke-width: 2;
  stroke-dasharray: 5 5;
  fill: none;
}
.painchart .pc-arrow { stroke: var(--accent-soft); stroke-width: 1.5; fill: none; }
.painchart .pc-arrow-head { fill: var(--accent-soft); }
.painchart .pc-curve-label {
  font-family: var(--font-body);
  font-size: 0.82rem;
}
.painchart .pc-curve-label.now { fill: var(--accent-deep); }
.painchart .pc-curve-label.settled { fill: var(--accent-soft); }
.painchart .pc-thresh-label,
.painchart .pc-dir-label,
.painchart .pc-axis-label {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.8rem;
  fill: var(--muted);
}

/* ============================================================
   ACT & MINDFULNESS LAYER (companion)
   Reuses .stepper (guided practices), .subtypes, .map-entry,
   .me-core, .pain-note, .callout. New: the defusion output.
   ============================================================ */
.defused {
  list-style: none;
  margin: 1.1rem 0 0.4rem;
  padding: 0;
}
.defused li {
  border-left: 3px solid var(--accent-soft);
  background: var(--paper);
  padding: 0.7rem 1rem;
  border-radius: 0 8px 8px 0;
  margin: 0 0 0.55rem;
  color: var(--ink);
  line-height: 1.55;
  font-size: 0.98rem;
}
.defused li .df-frame { font-style: italic; color: var(--muted); }
.defused-empty { color: var(--muted); font-style: italic; }

/* --- own the done-panel reveal by id (specificity beats the
       shared .week-done rule, so this page never depends on
       program.js's toggle mechanism) ------------------------- */
#week-done { display: none; }
#week-done.is-open { display: block; }

@media (prefers-reduced-motion: reduce) {
  .yn-btn { transition: none; }
}
