/**
 * Absolute last, demo chrome color lock for ALL Ready themes (T1–T1000).
 * Theme contrast / type-solid / nuke sheets paint global `p, span, h*` with
 * dark `--ink` + `-webkit-text-fill-color`. That bleeds into the toolbar
 * picker and makes hint/meta text fade into the dark green panel.
 * This file re-asserts chrome ink so we never chase per-theme typos again.
 */

body.atelier .an-toolbar {
  --ink: #ffffff;
  --muted: #c5e6d8;
  --moss: #95bf47;
  --picker-text: #ffffff;
  --picker-muted: #d7f0e6;
  --lab-lime: #95bf47;
  --tb-ink: #ffffff;
  --tb-muted: rgba(255, 255, 255, 0.78);
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* Everything inside the sticky toolbar bar */
body.atelier .an-toolbar :is(
  p, span, em, strong, small, a, button, label, div, i, b, cite
) {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  opacity: 1 !important;
  visibility: visible !important;
  text-shadow: none !important;
}

body.atelier .an-toolbar :is(
  .an-toolbar__badge,
  .an-picker__meta,
  .an-toolbar__link--ghost
) {
  color: rgba(255, 255, 255, 0.78) !important;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.78) !important;
}

body.atelier .an-toolbar .an-toolbar__wordmark strong,
body.atelier .an-toolbar .an-toolbar__wordmark em + strong,
body.atelier .an-toolbar a.an-toolbar__link:hover {
  color: #95bf47 !important;
  -webkit-text-fill-color: #95bf47 !important;
}

/* Panel is portaled under .an-picker inside the toolbar, lock it hard */
body.atelier .an-picker__panel {
  --ink: #ffffff;
  --muted: #d7f0e6;
  --picker-text: #ffffff;
  --picker-muted: #d7f0e6;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  background: #0b1f1a !important;
}

body.atelier .an-picker__panel :is(
  p, span, em, strong, small, a, button, label, div, h1, h2, h3, h4, li, cite
) {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  opacity: 1 !important;
  visibility: visible !important;
  text-shadow: none !important;
}

/* Muted chrome copy (hint, meta, empty, card dir), light mint, never theme ink */
body.atelier .an-picker__panel :is(
  .an-picker__hint,
  .an-picker__page-meta,
  .an-picker__empty,
  .an-picker__card-dir,
  .an-picker__detail p,
  .an-picker__detail-meta,
  .an-picker__detail-meta span,
  .an-picker__filter:not(.is-on)
) {
  color: #d7f0e6 !important;
  -webkit-text-fill-color: #d7f0e6 !important;
}

body.atelier .an-picker__panel :is(
  .an-picker__card-id,
  .an-picker__detail-kicker,
  .an-picker__filter.is-on
) {
  color: #95bf47 !important;
  -webkit-text-fill-color: #95bf47 !important;
}

body.atelier .an-picker__panel .an-picker__input {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  background: #07140f !important;
  caret-color: #95bf47;
}

body.atelier .an-picker__panel .an-picker__input::placeholder {
  color: #9fc9b8 !important;
  -webkit-text-fill-color: #9fc9b8 !important;
  opacity: 1 !important;
}

body.atelier .an-picker__panel[hidden] {
  display: none !important;
}
