/* GENERATED by theme-kit from the colour classes the templates use; do not edit by hand.
   Regenerate: python -m libs.theme_kit.cli --config config/theme_kit/config.json
   Ship it with media="not all"; the theme-kit runtime switches it on only in dark. */
html[data-theme="dark"] { color-scheme: dark; }
html[data-theme="dark"] body { background-color: #0f1c2f; color: #c7d3e5; }
html[data-theme="dark"] .bg-amber-100 { background-color: #362b16; }
html[data-theme="dark"] .bg-amber-50 { background-color: #271f11; }
html[data-theme="dark"] .bg-blue-100 { background-color: #162336; }
html[data-theme="dark"] .bg-blue-50 { background-color: #111927; }
html[data-theme="dark"] .bg-c-gold-lt { background-color: #2a2315; }
html[data-theme="dark"] .bg-green-100 { background-color: #163622; }
html[data-theme="dark"] .bg-green-200 { background-color: #1d492d; }
html[data-theme="dark"] .bg-green-50 { background-color: #112719; }
html[data-theme="dark"] .bg-indigo-50 { background-color: #111127; }
html[data-theme="dark"] .bg-purple-100 { background-color: #261636; }
html[data-theme="dark"] .bg-purple-200 { background-color: #331d49; }
html[data-theme="dark"] .bg-purple-50 { background-color: #1c1127; }
html[data-theme="dark"] .bg-red-100 { background-color: #361616; }
html[data-theme="dark"] .bg-red-50 { background-color: #271111; }
html[data-theme="dark"] .bg-slate-100 { background-color: #162843; }
html[data-theme="dark"] .bg-slate-200 { background-color: #1e3352; }
html[data-theme="dark"] .bg-slate-50 { background-color: #0a1423; }
html[data-theme="dark"] .bg-slate-900 { background-color: #1a2d4a; }
html[data-theme="dark"] .bg-teal-100 { background-color: #163633; }
html[data-theme="dark"] .bg-teal-50 { background-color: #112725; }
html[data-theme="dark"] .bg-white { background-color: #0f1c2f; }
html[data-theme="dark"] .border-amber-200 { border-color: #5d4928; }
html[data-theme="dark"] .border-amber-300 { border-color: #725a31; }
html[data-theme="dark"] .border-blue-200 { border-color: #283c5d; }
html[data-theme="dark"] .border-green-200 { border-color: #285d3b; }
html[data-theme="dark"] .border-green-300 { border-color: #317249; }
html[data-theme="dark"] .border-indigo-200 { border-color: #28295d; }
html[data-theme="dark"] .border-red-100 { border-color: #4b2020; }
html[data-theme="dark"] .border-red-200 { border-color: #5d2828; }
html[data-theme="dark"] .border-slate-100 { border-color: #1a2b45; }
html[data-theme="dark"] .border-slate-200 { border-color: #223652; }
html[data-theme="dark"] .border-slate-300 { border-color: #2f4666; }
html[data-theme="dark"] .border-slate-600 { border-color: #4a6290; }
html[data-theme="dark"] .border-slate-700 { border-color: #3d5580; }
html[data-theme="dark"] .border-slate-800 { border-color: #2f4666; }
html[data-theme="dark"] .border-slate-900 { border-color: #223652; }
html[data-theme="dark"] .divide-slate-50 > :not([hidden]) ~ :not([hidden]) { border-color: #152640; }
html[data-theme="dark"] .placeholder-slate-400::placeholder { color: #8394b0; }
html[data-theme="dark"] .text-amber-300 { color: #f2bc5f; }
html[data-theme="dark"] .text-amber-600 { color: #f4c87b; }
html[data-theme="dark"] .text-amber-700 { color: #f5cc84; }
html[data-theme="dark"] .text-amber-800 { color: #f7d8a1; }
html[data-theme="dark"] .text-amber-900 { color: #fae3bd; }
html[data-theme="dark"] .text-blue-600 { color: #7ba9f4; }
html[data-theme="dark"] .text-blue-700 { color: #84b0f5; }
html[data-theme="dark"] .text-blue-900 { color: #bdd4fa; }
html[data-theme="dark"] .text-c-gold-dk { color: #e8b656; }
html[data-theme="dark"] .text-c-gold-label { color: #e8b656; }
html[data-theme="dark"] .text-c-navy { color: #eef3fa; }
html[data-theme="dark"] .text-c-sky-dk { color: #7dd3fc; }
html[data-theme="dark"] .text-green-300 { color: #5ff295; }
html[data-theme="dark"] .text-green-600 { color: #7bf4a7; }
html[data-theme="dark"] .text-green-700 { color: #84f5ae; }
html[data-theme="dark"] .text-green-800 { color: #a1f7c0; }
html[data-theme="dark"] .text-green-900 { color: #bdfad3; }
html[data-theme="dark"] .text-indigo-900 { color: #bdbefa; }
html[data-theme="dark"] .text-purple-700 { color: #bd84f5; }
html[data-theme="dark"] .text-red-600 { color: #f47b7b; }
html[data-theme="dark"] .text-red-700 { color: #f58484; }
html[data-theme="dark"] .text-red-900 { color: #fabdbd; }
html[data-theme="dark"] .text-slate-300 { color: #b4c1d6; }
html[data-theme="dark"] .text-slate-400 { color: #8394b0; }
html[data-theme="dark"] .text-slate-500 { color: #96a6c0; }
html[data-theme="dark"] .text-slate-600 { color: #adbbd2; }
html[data-theme="dark"] .text-slate-700 { color: #c7d3e5; }
html[data-theme="dark"] .text-slate-800 { color: #dde6f2; }
html[data-theme="dark"] .text-slate-900 { color: #eef3fa; }
html[data-theme="dark"] .text-teal-700 { color: #84f5e8; }
html[data-theme="dark"] .hover\:bg-amber-100:hover { background-color: #362b16; }
html[data-theme="dark"] .hover\:bg-amber-50\/40:hover { background-color: rgba(39, 31, 17, 0.4); }
html[data-theme="dark"] .hover\:bg-c-gold-lt:hover { background-color: #2a2315; }
html[data-theme="dark"] .hover\:bg-slate-100:hover { background-color: #162843; }
html[data-theme="dark"] .hover\:bg-slate-50:hover { background-color: #0a1423; }
html[data-theme="dark"] .hover\:bg-slate-800:hover { background-color: #223a5e; }
html[data-theme="dark"] .hover\:border-amber-300:hover { border-color: #725a31; }
html[data-theme="dark"] .hover\:border-slate-400:hover { border-color: #3d5580; }
html[data-theme="dark"] .hover\:text-amber-300:hover { color: #f2bc5f; }
html[data-theme="dark"] .hover\:text-amber-700:hover { color: #f5cc84; }
html[data-theme="dark"] .hover\:text-amber-800:hover { color: #f7d8a1; }
html[data-theme="dark"] .hover\:text-blue-800:hover { color: #a1c2f7; }
html[data-theme="dark"] .hover\:text-green-300:hover { color: #5ff295; }
html[data-theme="dark"] .hover\:text-green-800:hover { color: #a1f7c0; }
html[data-theme="dark"] .hover\:text-green-900:hover { color: #bdfad3; }
html[data-theme="dark"] .hover\:text-red-700:hover { color: #f58484; }
html[data-theme="dark"] .hover\:text-red-800:hover { color: #f7a1a1; }
html[data-theme="dark"] .hover\:text-slate-300:hover { color: #b4c1d6; }
html[data-theme="dark"] .hover\:text-slate-600:hover { color: #adbbd2; }
html[data-theme="dark"] .hover\:text-slate-700:hover { color: #c7d3e5; }
html[data-theme="dark"] .hover\:text-slate-800:hover { color: #dde6f2; }
html[data-theme="dark"] .hover\:text-slate-900:hover { color: #eef3fa; }
html[data-theme="dark"] .focus\:ring-indigo-300:focus { --tw-ring-color: #313272; }

/* Hand-written dark rules for the custom classes in styles.css and app-extras.css that
   hard-code light colours (the Tailwind utilities are generated above). Appended verbatim
   by libs/theme_kit (config: config/theme_kit/config.json). Paper objects (.passport, .stamp,
   .ltr) stay paper. */
html[data-theme="dark"] {
  --d-surface: #0f1c2f;
  --d-recessed: #0a1423;
  --d-raised: #162843;
  --d-line: #223652;
  --d-line-strong: #2f4666;
  --d-ink: #eef3fa;
  --d-body: #adbbd2;
  --d-muted: #96a6c0;
  --d-accent: #e8b656; /* gold text on the dark surfaces, 9:1 and up */
  --d-amber-wash: #362b16; /* a dark amber chip: file buttons, "paused" badges */
  --d-amber-wash-hover: #4a3a1e;
  /* Small gold text sits on dark now, so it takes the bright gold; paper keeps the old one. */
  --c-gold-label: var(--c-gold);
}

/* Form controls: the generated classes colour most; this covers the ones with none. */
html[data-theme="dark"] :where(input, select, textarea) {
  background-color: var(--d-recessed);
  color: var(--d-ink);
  border-color: var(--d-line-strong);
}
html[data-theme="dark"] ::placeholder {
  color: #7d8ca6;
}
html[data-theme="dark"] input[type="file"]::file-selector-button {
  background-color: var(--d-amber-wash);
  color: #f5cc84;
}
html[data-theme="dark"] input[type="file"]:hover::file-selector-button {
  background-color: var(--d-amber-wash-hover);
}

/* Variants the generator does not recolour (`group-hover:`, `peer-*`, `after:`, `file:`): the
   toggle knob (`after:bg-white`) and ring (`peer-focus:ring-amber-300`) already read on dark,
   and the file buttons are the rules above; this one is `group-hover:text-amber-700`, which
   would be dark amber (3.4:1) on the dark card. */
html[data-theme="dark"] .group:hover .group-hover\:text-amber-700 {
  color: var(--d-accent);
}

/* Navy text on a gold button stays navy (`text-c-navy` flips to light everywhere else). */
html[data-theme="dark"] :is(.bg-amber-500, .bg-c-gold).text-c-navy {
  color: var(--c-navy);
}

/* Amber links in running text are as light as the text around them: underline them. */
html[data-theme="dark"] :is(p, li) a[class*="text-amber-"] {
  text-decoration: underline;
}

/* The logo is dark navy on white: give it a light chip on a dark surface. */
html[data-theme="dark"] img[src$="logo-header.png"] {
  padding: 0.15rem;
  background: #fff;
  border-radius: 0.5rem;
}

/* Article text: the sanitised prose carries arbitrary-variant colour classes. */
html[data-theme="dark"] .prose :is(h2, h3, strong) {
  color: var(--d-ink);
}
html[data-theme="dark"] .prose :is(p, li) {
  color: var(--d-body);
}

/* App UI */
html[data-theme="dark"] .chat-bubble-ai {
  background: var(--d-raised);
  color: var(--d-ink);
}
html[data-theme="dark"] .status-active {
  background: #163622;
  color: #a1f7c0;
}
html[data-theme="dark"] .status-paused {
  background: var(--d-amber-wash);
  color: #f7d8a1;
}
html[data-theme="dark"] .status-completed {
  background: #162336;
  color: #a1c2f7;
}
html[data-theme="dark"] .status-cancelled {
  background: #361616;
  color: #f7a1a1;
}
html[data-theme="dark"] .cookie-toggle-slider {
  background: var(--d-line-strong);
}
html[data-theme="dark"] .btn-gold:hover,
html[data-theme="dark"] .btn-gold-outline:hover {
  background: #f3c872;
  color: var(--c-navy);
}
/* Disabled gold buttons: navy text on the dimmed gold fill is about 2.9:1; light text reads as
   "off" and stays legible. */
html[data-theme="dark"] .btn-gold:disabled,
html[data-theme="dark"] button[disabled].bg-c-gold {
  color: #f5e6c4;
}
/* A navy button on a navy modal needs an edge to read as a button. */
html[data-theme="dark"] [data-action="saveCustomCookies"] {
  border: 1px solid var(--d-line-strong);
}
/* Only the steps still to come go dark: the done and current ones keep their gold, or the
   step bar would show no progress at all. */
html[data-theme="dark"] .chat-step:not(.chat-step--done):not(.chat-step--now) {
  background: var(--d-line);
}
/* The choice already in force ("Your choice"): the generated .bg-white rule would win over the
   plain class, so it is restated here, with an edge and a wash that read on the dark panel. */
html[data-theme="dark"] .chat-tile--current {
  background-color: var(--d-amber-wash);
  border-color: var(--d-accent);
  color: var(--d-ink);
}
html[data-theme="dark"] .bp::before,
html[data-theme="dark"] .bp::after {
  background: var(--d-surface);
}

/* Side rails: the light cards become raised dark cards. */
html[data-theme="dark"] .rail-card:not(.rail-card--dark) {
  background: var(--d-raised);
  border-color: var(--d-line);
  box-shadow: none;
}
html[data-theme="dark"] .tag {
  background: var(--d-recessed);
  border-color: var(--d-line);
}
html[data-theme="dark"] .tag-hole {
  border-color: var(--d-line-strong);
}
html[data-theme="dark"] .tag-name,
html[data-theme="dark"] .pf li {
  color: var(--d-ink);
}
html[data-theme="dark"] .tag-state {
  color: var(--d-muted);
}
html[data-theme="dark"] .tag--on .tag-state {
  color: #4ade80;
}
html[data-theme="dark"] .tag-bar {
  filter: invert(1);
}
html[data-theme="dark"] .pf-tick {
  background: var(--d-line-strong);
}
html[data-theme="dark"] .passport {
  --c-gold-label: #8f630f;
}
