:root, html[data-theme] {
  --ink: #292929;
  --muted: #686868;
  --paper: #ffffff;
  --panel: #f9f8f6;
  --line: #efeeeb;
  --blue: #087bbf;
  --action: #202020;
  --on-action: #ffffff;
  --control: #f3f2ee;
  --body-copy: #464646;
  --feeding-caption: #277232;
  --sleep-caption: #7252bc;
  --solids-caption: #ae6121;
  --selection: #ffe8a3;
  --check: #8f6509;
}
html[data-theme="dark"] {
  color-scheme: dark !important;
  --ink: #f4f3ef;
  --muted: #b4b2ac;
  --paper: #171717;
  --panel: #222221;
  --line: #383836;
  --blue: #83c6f2;
  --action: #f4f3ef;
  --on-action: #202020;
  --control: #30302e;
  --body-copy: #c7c5be;
  --feeding-caption: #a6d5a8;
  --sleep-caption: #c9b0f3;
  --solids-caption: #efbe92;
  --selection: #574e30;
  --check: #e3c87a;
  --background: var(--paper);
  --background-end: var(--paper);
  --surface: var(--panel);
  --surface-raised: var(--control);
  --text: var(--ink);
  --quiet: var(--muted);
  --green: #a6d5a8;
  --cyan: var(--blue);
  --pink: #efa9c3;
  --yellow: #e3c87a;
  --leaf: #a6d5a8;
  --bg: var(--paper);
  --panel-2: var(--control);
}
/* Shared language/appearance disclosures, across every public surface. */
.website-preference { position: relative; flex-shrink: 0; font-family: "Biberon Sans", sans-serif; }
.preference-trigger {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 36px; padding: 6px 12px; border: 0; border-radius: 100px;
  background: var(--control); color: var(--ink); font: inherit; font-size: 13px;
  line-height: 20px; font-weight: 550; cursor: pointer; white-space: nowrap;
}
.preference-trigger::after { content: ""; position: absolute; inset: -4px 0; }
.website-preference svg { width: 19px; height: 19px; flex-shrink: 0; fill: none; }
.preference-panel {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 50;
  min-width: 176px; padding: 8px; background: var(--panel); color: var(--ink);
  border-radius: 16px;
}
.preference-panel[hidden] { display: none; }
.website-preference .preference-option {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px;
  padding: 10px 12px; border: 0; border-radius: 10px; background: transparent;
  color: var(--ink); font: inherit; font-size: 14px; text-decoration: none; cursor: pointer;
}
.website-preference .preference-option[aria-pressed="true"],
.website-preference .preference-option[aria-current="page"] { background: var(--control); color: var(--ink); }
.preference-check { display: flex; margin-left: auto; visibility: hidden; }
[aria-pressed="true"] > .preference-check, [aria-current="page"] > .preference-check { visibility: visible; }
.preference-trigger:focus-visible, .preference-option:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.legal-theme-control { display: flex; justify-content: flex-end; margin-bottom: 16px; }
@media (hover: hover) and (pointer: fine) { .preference-trigger:hover, .website-preference .preference-option:hover { background: var(--control); } }
@media (max-width: 600px) {
  .preference-appearance .preference-current { display: none; }
  .preference-appearance .preference-trigger { width: 36px; padding: 6px; }
  .preference-appearance .preference-trigger::after { inset: -4px; }
  .preference-language .preference-trigger { padding-inline: 10px; gap: 5px; }
  .nav-actions { gap: 8px !important; }
}

/* Real app media follows the resolved website appearance before first paint. */
.app-screen { display: contents; overflow-anchor: none; }
[data-screen-theme="dark"] { display: none !important; }
html[data-theme="dark"] [data-screen-theme="light"] { display: none !important; }
html[data-theme="dark"] [data-screen-theme="dark"] { display: block !important; }
@media (prefers-color-scheme: dark) {
  html:not([data-theme]) [data-screen-theme="light"] { display: none !important; }
  html:not([data-theme]) [data-screen-theme="dark"] { display: block !important; }
}
