/* Interactive tools that also appear inside articles in the archive. */
html[data-phase-theme] .atlas-share__actions :is(a,button) {
  color: var(--reading-link) !important;
  background: var(--bg-paper) !important;
  border-color: var(--border-hairline) !important;
}
html[data-phase-theme] .atlas-share__actions :is(a,button):is(:hover,:focus-visible) {
  border-color: var(--reading-link) !important;
  text-decoration: underline;
}
html[data-phase-theme] .companion-current__art img { background-color: #18181d; }
html[data-phase-theme] .companion-current__art > span { background: #18181d; color: #ebc268; }
html[data-phase-theme] :is(.companion-actions,.companion-help,.companion-backup) button {
  background: var(--bg-paper);
  color: var(--reading-link);
  border: 1px solid var(--border-hairline);
}
html[data-phase-theme] :is(.companion-actions,.companion-help,.companion-backup) button:hover { border-color: var(--reading-link); }
html[data-phase-theme] .atlas-shell .forum.forum--community .forum-categories button {
  color: var(--text-primary) !important;
  background: var(--bg-paper);
  border-color: var(--border-hairline);
  box-shadow: none;
}
html[data-phase-theme] .forum.forum--community .forum-state { background-color: var(--bg-paper); }
html[data-phase-theme] .atlas-shell .forum.forum--community .forum-categories button:is(:hover,:focus-visible,.is-active) { border-color: var(--accent-ruby); }
html[data-phase-theme] .atlas-shell .forum.forum--community .forum-categories button.is-active {
  color: var(--ruby-ink) !important; background: var(--ruby-wash);
}
html[data-phase-theme] .atlas-shell .forum.forum--community .forum-button:not(.forum-button--secondary) {
  color: #fffafa !important;
  background: var(--world-cta);
  border-color: var(--accent-ruby);
  box-shadow: none;
}

/* Keep the controls on the ceramic instrument legible against the studio field. */
html[data-phase-theme] .ocarina-page-shell .atlas-shell .free-instrument.ocarina-atelier {
  --atlas-forest-ink: #141418; --atlas-honey: #ebc268; --atlas-moss: #29292f;
  --atlas-linen: #f3f1ec; --atlas-bark: #866526; --atlas-clay: #37373f; --atlas-leaf: #184898;
  --atelier-forest: #18181d; --atelier-surface: #29292f; --atelier-paper: #f3f1ec;
  --atelier-muted: #c7c5c1; --atelier-gold: #ebc268; --atelier-focus: #6ba3f7;
  --atelier-line: #66656c; background: var(--atelier-forest); color: var(--atelier-paper);
}
html[data-phase-theme] .ocarina-atelier .ocarina-atelier__visual { background: #18181d; }
html[data-phase-theme] .ocarina-page-shell .ocarina-atelier .free-note-buttons button {
  background: #29292f; color: #f3f1ec; border-color: #77767d;
}
html[data-phase-theme] .ocarina-page-shell .ocarina-atelier .free-note-buttons button[aria-pressed=true] {
  background: #ebc268; color: #141418; border-color: #ebc268;
}
html[data-phase-theme] .ocarina-atelier .free-note-buttons button :is(.ocarina-atelier__key,.ocarina-atelier__pitch) { color: inherit; }
html[data-phase-theme] .ocarina-atelier .ocarina-visual__markers .ocarina-tone-hole {
  color: #f3f1ec; background: #17171cda; border-color: #f3f1ec; box-shadow: 0 0 0 3px #14141870;
}
html[data-phase-theme] .ocarina-atelier .ocarina-tone-hole[data-state=closed] {
  background: #ebc268; color: #141418; border-color: #f6dc9e; box-shadow: 0 0 12px #ebc26855;
}
html[data-phase-theme] .ocarina-atelier .ocarina-tone-hole[data-state=rest] {
  background: #45454d; border-color: #b4b2ac;
}
html[data-phase-theme] .ocarina-page-shell .atlas-shell .ocarina-visual__views button,
html[data-phase-theme] .ocarina-atelier .ocarina-visual__retry {
  color: #f3f1ec; background: #29292f; border-color: #828087;
}
html[data-phase-theme] .ocarina-page-shell .atlas-shell .ocarina-visual__views button[aria-pressed=true] { background: #184898; border-color: #6ba3f7; }
html[data-phase-theme] .ocarina-atelier .ocarina-visual__details { border-color: #66656c; }
html[data-phase-theme] .archive-article-feature .official-trailer {
  background: #18181d; color: #f3f1ec; border-color: #49494f;
}
html[data-phase-theme] .official-trailer .official-trailer-poster { background-color: #141418; }
html[data-phase-theme] .official-trailer .official-trailer-poster::after { background-image: linear-gradient(transparent 50%,#141418b8); }
html[data-phase-theme] .official-trailer .official-trailer-copy > a { color: #141418; background: #ebc268; }
