/* SPDX-License-Identifier: LicenseRef-Proprietary
   Copyright (c) 2026 Griffith Software — https://griffith.software */

/* Bloom Journal styles.
   Colors come from the active theme in themes.css (loaded first); this file
   only uses the variables. Large touch targets (min 48px) throughout. */

:root {
  --radius: 18px;
  --tabbar-height: 64px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

/* The hidden attribute always wins, even over classes that set display. */
[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
}

.page {
  max-width: 40rem;
  margin: 0 auto;
  padding: max(20px, env(safe-area-inset-top)) 16px calc(var(--tabbar-height) + 32px + env(safe-area-inset-bottom));
}

h1,
h2 {
  line-height: 1.25;
  margin: 0 0 0.5em;
}

h1 {
  font-size: 1.75rem;
}

h2 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 0.75em;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--primary);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 6px;
}

.page-title:focus {
  outline: none;
}

.lead {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.muted {
  color: var(--text-muted);
}

.center {
  text-align: center;
}

.hint {
  display: block;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.35rem;
}

.error {
  color: var(--gentle-warning);
  font-weight: 600;
  margin-top: 0.5rem;
}

/* ---- Cards ---- */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin: 0 0 16px;
  box-shadow: var(--card-shadow);
}

.card.soft {
  background: var(--surface-soft);
  box-shadow: none;
}

.card.hero {
  text-align: center;
  padding: 28px 20px;
  border-color: var(--hero-border);
  box-shadow: var(--hero-shadow);
}

.card.notice {
  background: var(--surface-soft);
  border-color: var(--accent);
}

.eyebrow {
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.8rem;
}

.big-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0.1em 0 0.3em;
}

.estimate {
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.35;
}

.estimate-dates {
  color: var(--primary);
  font-weight: 600;
}

.reassure {
  background: var(--primary-soft);
  border-radius: 12px;
  padding: 12px 14px;
  margin: 1rem 0 0.5rem;
}

/* ---- Buttons ---- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 2px solid var(--primary);
  background: transparent;
  color: var(--primary);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  margin: 0 0 12px;
}

.button.primary {
  background: var(--primary-fill);
  background-origin: border-box; /* the gradient also fills a transparent border, with no repeated sliver at the edge */
  border-color: transparent;
  color: var(--primary-text);
}

.button.quiet,
.button.danger-quiet {
  border-color: var(--border);
  color: var(--text-muted);
}

.button.danger-quiet {
  color: var(--gentle-warning);
}

.button.wide {
  display: flex;
  width: 100%;
}

.button:active {
  transform: translateY(1px);
}

.card .button:last-child {
  margin-bottom: 0;
}

.text-link {
  display: inline-block;
  min-height: 48px;
  padding: 12px 0;
  font-weight: 600;
}

/* A button that looks like a link (a quiet, secondary action). */
button.text-link {
  border: 0;
  background: none;
  color: var(--primary);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 4px;
}

.stack {
  display: flex;
  flex-direction: column;
}

.stack .button {
  margin-bottom: 10px;
}

/* ---- Forms ---- */

.field {
  margin: 0 0 1.25rem;
  border: 0;
  padding: 0;
  min-width: 0;
}

label,
legend {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  padding: 0;
}

input[type="date"],
input[type="text"],
input[type="email"],
input[type="password"],
select,
textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

textarea {
  resize: vertical;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  border-color: var(--focus);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  position: relative;
  margin: 0;
  font-weight: 500;
}

.chip input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}

.chip > span {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 8px 16px;
  border: 2px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
}

.chip input:checked + span {
  border-color: var(--primary);
  background: var(--primary-soft);
  font-weight: 600;
}

.chip input:focus-visible + span {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

/* ---- Paid items while locked (see src/plan.js): listed, greyed out, marked Paid ---- */

.paid-tag {
  display: inline-block;
  margin-left: 8px;
  padding: 0 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-muted);
  vertical-align: middle;
}

.locked {
  opacity: 0.55;
}

.locked,
.locked input {
  cursor: not-allowed;
}

/* ---- Looks (Settings > Appearance): a small preview of each ---- */

.looks-label {
  margin: 16px 0 8px;
  font-weight: 600;
}

.looks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 10px;
}

.look {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
}

.look input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: inherit;
}

.look:has(input:checked) {
  border-color: var(--primary);
}

.look:has(input:focus-visible) {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

/* A palette look: its background, with a little card of its text and accent colors on it. */
.look-preview {
  display: flex;
  align-items: center;
  height: 64px;
  padding: 10px;
  background: var(--swatch-1);
}

.look-card {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  padding: 8px;
  border-radius: 5px;
  background: var(--swatch-2);
}

.look-card::before {
  content: "";
  width: 26px;
  height: 7px;
  border-radius: 3px;
  background: var(--swatch-3);
}

.look-card::after {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: var(--swatch-4);
}

/* A photo look: the photo itself. */
.look-preview.photo {
  padding: 0;
}

.look-preview.photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.look-name {
  padding: 6px 8px;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
}

.look:has(input:checked) .look-name {
  background: var(--primary-soft);
}

/* ---- Lists ---- */

.entries,
.topics,
.checklist {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}

.entries li,
.topics li {
  margin-bottom: 10px;
}

.entry,
.topic {
  display: flex;
  min-height: 56px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text);
  text-decoration: none;
  box-shadow: var(--card-shadow);
}

.entry {
  flex-direction: column;
}

.entry-dates {
  font-weight: 600;
}

.entry-details {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.topic {
  align-items: center;
  gap: 14px;
  font-weight: 600;
}

.topic-emoji {
  font-size: 1.5rem;
}

.empty {
  margin-top: 24px;
}

.checklist {
  padding: 4px 20px;
}

.checklist li + li {
  border-top: 1px solid var(--border);
}

.check {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 0;
  margin: 0;
  font-weight: 400;
  cursor: pointer;
}

.check input {
  flex: none;
  width: 26px;
  height: 26px;
  margin: 2px 0 0;
  accent-color: var(--primary);
}

.check-label {
  font-weight: 600;
}

.progress {
  font-weight: 600;
  color: var(--primary);
}

/* ---- Learn article ---- */

.article h1 {
  font-size: 1.5rem;
}

.article h2 {
  margin-top: 1.4em;
}

.article ul,
.article ol {
  padding-left: 1.25em;
  margin: 0 0 0.75em;
}

.article li {
  margin-bottom: 0.35em;
}

/* ---- Setup ---- */

.setup-mark {
  text-align: center;
  margin: 12px 0 8px;
}

/* ---- Home: logo above the greeting ---- */

.home-logo {
  display: block;
  width: 64px;
  height: 64px;
  margin: 4px 0 12px;
}

.setup h1 {
  text-align: center;
}

.setup .lead {
  text-align: center;
}

/* ---- Bottom navigation ---- */

.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding-bottom: env(safe-area-inset-bottom);
  z-index: 10;
}

.tabbar ul {
  display: flex;
  max-width: 40rem;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.tabbar li {
  flex: 1;
}

.tabbar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: var(--tabbar-height);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.75rem;
  white-space: nowrap;
  font-weight: 600;
}

.tabbar a[aria-current="page"] {
  color: var(--primary);
}

.icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---- Status toast ---- */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--tabbar-height) + 16px + env(safe-area-inset-bottom));
  transform: translate(-50%, 8px);
  margin: 0;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 20;
}

.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

/* ---- Tabs (My log: Periods / Symptoms / Calendar) ---- */

.tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  margin: 0 0 16px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.tabs a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  color: var(--text-muted);
  font-weight: 600;
  text-decoration: none;
}

.tabs a[aria-current="page"] {
  background: var(--primary-fill);
  background-origin: border-box;
  color: var(--primary-text);
}

/* ---- Check-in prompts ---- */

.card.checkin {
  border-color: var(--accent);
  border-left-width: 5px;
}

.card.checkin h2 {
  font-size: 1.1rem;
}

.card.checkin .button {
  min-height: 44px;
  margin-top: 4px;
}

/* ---- Checkbox row (inside forms) ---- */

.check.inline {
  padding: 4px 0 0;
}

/* ---- Patterns: horizontal bars ---- */

.bars {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}

.bar-row {
  display: grid;
  grid-template-columns: minmax(5.5rem, max-content) 1fr max-content;
  align-items: center;
  gap: 10px;
  min-height: 32px;
  font-size: 0.95rem;
}

.bar-row .bar-label {
  color: var(--text-muted);
  white-space: nowrap;
}

.bar-row .bar-value {
  white-space: nowrap;
  text-align: right;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.bar-track {
  position: relative;
  height: 14px;
}

.bar-band {
  position: absolute;
  top: -4px;
  bottom: -4px;
  background: var(--band);
}

.bar-fill {
  position: absolute;
  left: 0;
  top: 3px;
  height: 8px;
  border-radius: 0 4px 4px 0;
  background: var(--primary);
}

.legend {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.legend-swatch {
  width: 18px;
  height: 14px;
  background: var(--band);
  border: 1px solid var(--border);
}

.stat-line {
  font-weight: 600;
}

/* ---- Spacing fixes ---- */

/* Keep the button under the kit list from touching it. */
.checklist {
  margin-bottom: 24px;
}

.hint + .chips {
  margin-top: 12px;
}

/* ---- Settings: data section ---- */

.card h3 {
  font-size: 1.05rem;
  margin: 1.25rem 0 0.25rem;
}

.card h4 {
  font-size: 0.95rem;
  margin: 1rem 0 0.2rem;
}

.card .hint + .stack {
  margin-top: 12px;
}

.danger-zone {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* ---- Confirmation dialog ---- */

.dialog {
  width: min(22rem, calc(100vw - 32px));
  padding: 22px 20px 18px;
  border: 1px solid var(--hero-border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--hero-shadow), 0 12px 40px rgb(0 0 0 / 0.35);
}

.dialog::backdrop {
  background: rgb(0 0 0 / 0.6);
}

.dialog-message {
  margin: 0 0 18px;
  font-size: 1.05rem;
}

/* How-to steps (e.g. adding the app to the Home Screen). */
.dialog-steps {
  margin: -6px 0 16px;
  padding-left: 1.4em;
}

.dialog-steps li + li {
  margin-top: 8px;
}

.dialog-note {
  margin: 0 0 18px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* A code to read out or copy (a kid code). */
.dialog-code {
  margin: 0 0 18px;
  padding: 12px;
  border-radius: 12px;
  background: var(--surface-soft);
  font-family: ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: center;
  user-select: all;
  overflow-wrap: anywhere;
}

/* The password popup: fields above the buttons. */
.dialog-form input + label {
  margin-top: 12px;
}

.dialog-form .error {
  margin: 10px 0 0;
}

.dialog-form .dialog-actions {
  margin-top: 18px;
}

.dialog-actions {
  display: flex;
  flex-direction: column-reverse; /* confirm on top, cancel underneath */
  gap: 10px;
}

.dialog-actions .button {
  width: 100%;
  margin: 0;
}

.button.primary.danger {
  background: var(--gentle-warning);
  color: var(--bg);
}

/* ---- On/off switch (fertility tracking, partner/parent sharing) ---- */

.switch {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  margin: 8px 0 0;
  cursor: pointer;
}

.switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.switch-track {
  position: relative;
  flex: none;
  width: 52px;
  height: 30px;
  border-radius: 999px;
  background: var(--surface-soft);
  border: 2px solid var(--border);
  transition: background 0.2s;
}

.switch-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: transform 0.2s, background 0.2s;
}

.switch input:checked + .switch-track {
  background: var(--primary-fill);
  background-origin: border-box;
  border-color: transparent;
}

.switch input:checked + .switch-track::after {
  transform: translateX(22px);
  background: var(--primary-text);
}

.switch input:focus-visible + .switch-track {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.switch-label {
  font-weight: 600;
}

/* ---- Calendar ---- */

.calendar-card {
  padding: 14px 10px 16px;
}

.calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.calendar-title {
  margin: 0;
  font-size: 1.15rem;
  text-align: center;
}

.icon-button {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--primary);
  font: inherit;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.icon-button:hover {
  background: var(--surface-soft);
}

.calendar {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}

.calendar th {
  padding: 4px 0 6px;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.calendar abbr {
  text-decoration: none;
}

.calendar td {
  padding: 2px;
  text-align: center;
}

.cal-day {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 48px;
  aspect-ratio: 1;
  min-height: 44px;
  border: 2px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}

.cal-day.is-outside {
  color: var(--text-muted);
  opacity: 0.55;
}

/* Next-period window: dashed ring (a range, not a date). */
.cal-day.is-forecast {
  border: 2px dashed var(--primary);
}

/* Period day: filled. */
.cal-day.is-period {
  background: var(--primary-fill);
  background-origin: border-box;
  color: var(--primary-text);
  font-weight: 700;
  opacity: 1;
}

/* Today: bold, underlined number. */
.cal-day.is-today .cal-num {
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.cal-day.is-selected {
  box-shadow: 0 0 0 3px var(--accent);
}

/* Symptoms logged: small dot under the number. */
.cal-dot {
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: var(--accent);
}

.cal-day.is-period .cal-dot {
  background: var(--primary-text);
}

.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  list-style: none;
  margin: 14px 6px 12px;
  padding: 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.calendar-legend li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.swatch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
}

.swatch-period {
  background: var(--primary-fill);
  background-origin: border-box;
}

.swatch-forecast {
  border: 2px dashed var(--primary);
}

.swatch-symptoms {
  width: 8px;
  height: 8px;
  background: var(--accent);
}

.swatch-today {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.calendar-card .button {
  margin: 0 6px;
}

.day-detail h2 {
  font-size: 1.1rem;
}

.day-detail .stack {
  margin-top: 12px;
}

/* ---- Teen: cycle day ---- */

.cycle-day {
  margin-top: 12px;
  font-weight: 600;
}

.text-link.inline {
  display: inline;
  min-height: 0;
  padding: 0;
}

/* ---- Parent sharing ---- */

.share-preview {
  white-space: pre-wrap;
  padding: 14px 16px;
  margin-bottom: 8px;
  border-radius: 12px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  user-select: text;
}

.button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ---- Adult: fertility (opt-in) ---- */

/* Fertile window: rounded square with an inner solid ring. It uses an inset
   shadow, not the border, so a day in both windows still shows the dashed
   next-period border too. */
.cal-day.is-fertile {
  border-radius: 12px;
  box-shadow: inset 0 0 0 2px var(--accent);
}

.cal-day.is-fertile.is-selected {
  box-shadow: inset 0 0 0 2px var(--accent), 0 0 0 3px var(--accent);
}

.swatch-fertile {
  border-radius: 5px;
  box-shadow: inset 0 0 0 2px var(--accent);
}

.card.fertility .estimate-dates {
  font-size: 1.15rem;
}

.disclaimer {
  margin-top: 12px;
  padding: 10px 12px;
  border-left: 4px solid var(--gentle-warning);
  border-radius: 6px;
  background: var(--surface-soft);
  font-weight: 600;
}

/* ---- Account ---- */

.account-forms .tabs a {
  padding: 0 6px;
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.2;
}

.account-list {
  list-style: none;
  margin: 12px 0 16px;
  padding: 0;
}

.account-list > li {
  padding: 14px 16px;
  margin-bottom: 10px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}

.account-list .entry-dates {
  display: block;
}

.devices {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.devices li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 12px;
  padding: 6px 0;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.95rem;
}

.devices .button,
.account-actions .button {
  min-height: 44px;
  padding: 8px 16px;
  margin: 0;
}

.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.account-list details {
  margin-top: 12px;
}

.account-list summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
}

.account-list details form {
  margin-top: 8px;
}

.products .button {
  display: flex;
  width: 100%;
  text-align: center;
}

/* ---- Windows high contrast / forced colors ----
   Backgrounds and gradients are replaced by system colors in this mode, so
   anything that relied on a fill gets a border or system color instead. */

@media (forced-colors: active) {
  .button.primary,
  .tabs a[aria-current="page"],
  .chip input:checked + span {
    border: 3px solid Highlight;
  }

  .cal-day.is-period {
    forced-color-adjust: none;
    background: Highlight;
    color: HighlightText;
  }

  .cal-dot,
  .swatch-period,
  .swatch-symptoms,
  .bar-fill {
    forced-color-adjust: none;
    background: CanvasText;
  }

  .switch-track {
    border-color: CanvasText;
  }

  .switch input:checked + .switch-track {
    forced-color-adjust: none;
    background: Highlight;
  }

  .switch-track::after {
    forced-color-adjust: none;
    background: CanvasText;
  }

  .card.hero,
  .dialog {
    border: 2px solid CanvasText;
  }

  /* Shadows are dropped in this mode, so the selected and fertile days use outlines. */
  .cal-day.is-selected {
    outline: 3px solid Highlight;
    outline-offset: 1px;
  }

  .cal-day.is-fertile,
  .swatch-fertile {
    outline: 2px solid CanvasText;
    outline-offset: -5px;
  }

  .bar-band,
  .legend-swatch {
    forced-color-adjust: none;
    background: GrayText;
    opacity: 0.35;
  }

  .tabbar a[aria-current="page"] span {
    text-decoration: underline;
    text-decoration-thickness: 2px;
  }
}
