/* Iris identifies the product. Charcoal is the canvas; assessment hues stay semantic. */
:root {
  --iris: #6c5bd4;
  --iris-hover: #5947b7;
  --iris-soft: #a99cec;
  --iris-soft-hover: #c0b5f5;
  --iris-text: #d4cbff;
  --iris-border: #a99cec66;
  --canvas-dark: #171a1d;
  --surface-dark: #202428;
  --text-on-dark: #f6f3fb;
  --text-on-light: #25282d;
  --muted-on-dark: #c2c5ca;
  --muted-on-light: #59616b;
  --danger-soft: #f0b8a5;
  --paper: #f6f3fb;
  --focus-ring: var(--iris);
  --entry-background: linear-gradient(#171a1da8, #171a1da8), url('/backgrounds/entry.jpg');
}

body.neutral, body:not(.access-live), body.global-logging:not(.action-assessed) {
  background-color: var(--canvas-dark);
  --page-image: var(--entry-background);
  --focus-ring: var(--iris-soft-hover);
}
/* Preserve full-scroll image coverage and the original light goal-page artwork. */
body.access-live.viewing:not(.action-assessed) { background-color: var(--paper); }
/* Pending/offline/unconsented drafts are not negative assessments. */
body.neutral .smart-check { color:var(--text-on-dark); }
body.neutral .smart-check .quiet { color:var(--muted-on-dark); }
body.neutral .smart-check .text-button { color:var(--iris-text); }
body.neutral .smart-check .assessment-summary { border-color:#c2c5ca29; }
.goal-compose, #signal-dialog, #data-dialog, #welcome-dialog, #account-dialog, #activity-dialog {
  --focus-ring: var(--iris-soft-hover);
  color-scheme: dark;
}
.goal-bubbles { color: var(--text-on-dark); }
.goal-carousel-nav button { color: var(--iris-text); }
.text-button { color: var(--iris-hover); }
.text-button:hover { color: var(--iris); }
.detail-nav .text-button, .goal-story .rename-goal-form button { color: var(--iris-hover); }
#public-preview button[data-open-welcome]:hover,
#welcome-dialog button:not(.text-button):hover,
#signal-dialog button:not(.text-button):hover { background: var(--iris-soft-hover); }
/* Same keyboard treatment in the journal, forms and legal page. */
a:focus-visible, summary:focus-visible, select:focus-visible, input:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}
/* Identity is stable. --smart-hue, --score-hue and chart-series colours are not overridden here. */
