/* Näkymäkohtaiset tyylit: synapsi, aloitus, päivä, myytit. */

/* --- Synapsi --- */
.synapse-svg {
  display: block;
  width: 100%;
  max-height: 36vh;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.pre-bulb,
.post-membrane {
  fill: #cdd8ee;
  stroke: #8fa3c8;
  stroke-width: 1;
}

.dat-pump {
  fill: #475569;
}

.receptor {
  fill: var(--dopamine-faded);
  stroke: #64748b;
  stroke-width: 0.8;
}

.receptor.lit {
  fill: #f59e0b;
  stroke: #b45309;
}

.particle {
  fill: var(--dopamine);
}

.particle.reuptake {
  fill: var(--dopamine-faded);
}

.dat-label {
  font-size: 0.75rem;
  color: var(--ink-soft);
  margin: 4px 0;
}

.threshold-note {
  font-size: 0.8rem;
  color: var(--ink-soft);
}

/* --- Aloitus --- */
.initiation-svg {
  display: block;
  width: 100%;
  max-height: 36vh;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.initiation-svg .baseline {
  stroke: #8fa3c8;
  stroke-width: 1.5;
}

.initiation-svg .hill {
  stroke: var(--ink-soft);
  stroke-width: 1;
}

.side-nt .initiation-svg .hill {
  fill: var(--nt-soft);
}

.side-adhd .initiation-svg .hill {
  fill: var(--adhd-soft);
}

/* Pallo = aikomus: tarkoituksella sama molemmilla puolilla */
.initiation-svg .ball {
  fill: var(--accent);
  stroke: #fff;
  stroke-width: 1.2;
}

.initiation-svg .goal-flag {
  font-size: 8px;
}

.result-line {
  font-size: 0.85rem;
  font-weight: 600;
  min-height: 2.4em;
}

/* --- Päivä --- */
.day-controls {
  justify-content: space-between;
}

.masking-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: var(--touch);
  font-size: 0.9rem;
  font-weight: 600;
}

.masking-toggle input {
  width: 22px;
  height: 22px;
}

.speed-group {
  display: flex;
  gap: 4px;
}

.day-clock {
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  font-variant-numeric: tabular-nums;
  margin: 2px 0;
}

.face-line {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 2px 0;
}

.task-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 0;
  margin: 6px 0;
}

.task-chip {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 6px;
  border-radius: 6px;
  border: 1.5px solid var(--line);
  background: #eef0f6;
  color: var(--ink-soft);
}

.task-chip[data-status="done"] {
  background: var(--ok-soft);
  border-color: var(--ok);
  color: #14532d;
}

.task-chip[data-status="done"]::after {
  content: " ✓";
}

.task-chip[data-status="skipped"] {
  background: var(--danger-soft);
  border-color: var(--danger);
  color: #7f1d1d;
  text-decoration: line-through;
}

.task-chip[data-status="skipped"]::after {
  content: " ✗";
  text-decoration: none;
}

.day-summary {
  margin-top: 10px;
  background: var(--surface);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 10px 12px;
}

.day-summary h3 {
  font-size: 1rem;
}

.day-summary p {
  font-size: 0.9rem;
}

.summary-nt strong {
  color: var(--nt);
}

.summary-adhd strong {
  color: var(--adhd);
}

/* --- Myytit --- */
.myth-list {
  display: grid;
  gap: 8px;
}

.myth-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 12px;
}

.myth-card summary {
  cursor: pointer;
  min-height: var(--touch);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.myth-tag {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--danger);
  white-space: nowrap;
}

.myth-text {
  font-weight: 700;
}

.fact-tag {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--ok);
  margin-bottom: 0;
}

.fact-text {
  margin-top: 2px;
}

.source-text {
  font-size: 0.8rem;
  color: var(--ink-soft);
}

/* Tilannevalitsin */
.situation-picker {
  width: 100%;
}

.situation-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.situation-inputs {
  margin-top: 4px;
  font-size: 0.78rem;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
