/* MoLife v4.21 — Office of Mandatory Alignment */

.daily-challenge-section {
  padding-bottom: 12px;
}

.daily-challenge-section > h3 {
  margin-bottom: 9px;
}

.daily-challenge-section .field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 116px;
  align-items: start;
  gap: 22px;
  min-width: 0;
  padding: 11px 0;
}

.daily-challenge-section .field-row + .field-row {
  border-top: 1px solid rgba(255,255,255,.045);
}

.daily-challenge-section .field-row > span:first-child {
  min-width: 0;
  padding-top: 1px;
}

.daily-challenge-section .field-row strong {
  line-height: 1.2;
}

.daily-challenge-section .field-row small {
  max-width: 720px;
  margin-top: 4px;
  line-height: 1.38;
}

.daily-challenge-section #goalInput,
.daily-challenge-section #focusFactorInput,
.daily-challenge-section #chillMultiplierInput {
  width: 116px;
  min-width: 116px;
  justify-self: end;
  align-self: start;
  text-align: right;
}

.daily-challenge-section .chill-mode-row .chill-toggle {
  width: 116px;
  min-width: 116px;
  justify-self: end;
  align-self: start;
  justify-content: center;
  padding-inline: 10px;
}

.daily-challenge-section .chill-multiplier-row {
  transition: none;
}

.daily-challenge-section .chill-multiplier-row.is-disabled {
  opacity: 1;
}

.daily-challenge-section .chill-multiplier-row.is-disabled > span:first-child {
  opacity: .62;
}

.daily-challenge-section .chill-multiplier-row.is-disabled > input {
  opacity: .48;
}

.track-o-tron-zone {
  margin-top: 0;
}

.track-o-tron-zone .track-mood-panel {
  margin: 16px 0 18px;
  border-top-color: rgba(122,108,255,.24);
}

.track-o-tron-zone .track-mood-panel .eyebrow {
  color: #9299bf;
}

@media (max-width: 620px) {
  .daily-challenge-section .field-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px 0;
  }

  .daily-challenge-section #goalInput,
  .daily-challenge-section #focusFactorInput,
  .daily-challenge-section #chillMultiplierInput,
  .daily-challenge-section .chill-mode-row .chill-toggle {
    width: 100%;
    min-width: 0;
    justify-self: stretch;
  }

  .daily-challenge-section .chill-mode-row .chill-toggle {
    justify-content: flex-start;
  }

  .track-o-tron-zone .track-mood-panel {
    margin-top: 14px;
  }
}


/* MoLife v4.27 — Office of Retroactive Productivity */
.profile-settings-section {
  padding-bottom: 22px;
}

.profiles-editor {
  display: grid;
  gap: 14px;
}

.profile-editor-row {
  display: grid;
  grid-template-columns: 110px minmax(180px, 1fr) auto;
  align-items: end;
  gap: 18px;
  padding: 16px 14px;
  border: 1px solid rgba(255,255,255,.055);
  border-radius: 14px;
  background: rgba(255,255,255,.025);
}

.profile-editor-row.is-active {
  border-color: rgba(122,108,255,.28);
  background: rgba(122,108,255,.055);
}

.profile-editor-identity {
  display: grid;
  gap: 5px;
  align-self: center;
  padding-block: 3px;
}

.profile-editor-identity strong {
  font-size: .72rem;
  letter-spacing: .08em;
}

.profile-editor-identity span {
  color: var(--muted);
  font-size: .64rem;
  font-weight: 800;
}

.profile-editor-row.is-active .profile-editor-identity span {
  color: #a99fff;
}

.profile-name-field {
  display: grid;
  gap: 8px;
}

.profile-name-field > span {
  color: var(--muted);
  font-size: .72rem;
}

.profile-name-field input {
  width: 100%;
}

.profile-settings-section .settings-section-head {
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 18px;
}

.profile-settings-section .settings-section-head > .secondary-button {
  flex: 0 0 auto;
  white-space: nowrap;
  margin-top: 8px;
}

.profile-editor-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  min-height: 44px;
}

.profile-editor-actions .danger-button {
  min-height: 38px;
}

.profile-active-label {
  color: #a99fff;
  font-size: .72rem;
  font-weight: 800;
  white-space: nowrap;
  padding-inline: 2px;
}

#profileCountNote {
  margin-top: 14px;
  line-height: 1.45;
}

.configuration-cleanup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.danger-button-quiet {
  background: rgba(255,109,122,.07);
  border-color: rgba(255,109,122,.25);
  color: #ffb0b8;
}

@media (max-width: 760px) {
  .profile-editor-row {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 14px;
    padding: 15px 14px;
  }

  .profile-editor-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .profile-settings-section .settings-section-head {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 16px;
  }

  .profile-settings-section .settings-section-head > div {
    width: 100%;
    min-width: 0;
  }

  .profile-settings-section .settings-section-head > .secondary-button {
    width: 100%;
    min-height: 44px;
    margin-top: 0;
    align-self: stretch;
  }

  .profile-editor-actions .secondary-button,
  .profile-editor-actions .danger-button {
    flex: 1 1 150px;
  }

  .configuration-cleanup-actions {
    display: grid;
  }

  .configuration-cleanup-actions button {
    width: 100%;
  }
}

/* v4.30 — Collapsible configuration editors */
.settings-accordion { margin-top: 12px; border: 1px solid rgba(119,202,184,.20); border-radius: 12px; background: rgba(21,53,57,.10); }
.settings-accordion[open] { padding-bottom: 12px; }
.settings-accordion-summary { display:flex; align-items:center; justify-content:space-between; gap:14px; min-height:48px; padding:12px 14px; color:#b5f0d9; font-size:.85rem; font-weight:850; cursor:pointer; }
.settings-accordion-summary span { color:#99aaa9; font-size:.69rem; font-weight:600; }
.settings-accordion[open] > .settings-accordion-summary { margin-bottom:8px; border-bottom:1px solid rgba(119,202,184,.15); }
.settings-accordion .actions-editor,.settings-accordion .medications-editor { padding:0 10px; }
.settings-accordion .add-action-card { margin:12px 10px 0; }
.medications-editor { display:grid; gap:8px; }
.medication-editor-row { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto; align-items:end; gap:12px; padding:12px; border:1px solid rgba(80,178,161,.18); border-radius:12px; background:rgba(27,94,88,.08); }
.medication-editor-row label,.add-medication-grid label { display:grid; gap:6px; min-width:0; }
.medication-editor-row label span,.add-medication-grid label span { color:var(--muted); font-size:.70rem; }
.medication-editor-row input,.add-medication-grid input { width:100%; min-width:0; }
.add-medication-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.meds-settings-section .settings-section-head h3 { color:#98e5cd; }
@media (max-width:760px) {
  .medication-editor-row,.add-medication-grid { grid-template-columns:1fr; }
  .medication-editor-row .delete-action { justify-self:end; min-height:40px; }
  .settings-accordion-summary { flex-wrap:wrap; }
  .settings-accordion .actions-editor,.settings-accordion .medications-editor { padding:0 4px; }
  .settings-accordion .add-action-card { margin:10px 4px 0; }
}
