/* Workshop supports, readable confirmation copy and the requested sect chooser
   order. Existing furnace images, effects, item art and scene sizes stay intact. */
html[data-ui-theme="teal-cloud-a"] #game-root .page-panel.cave-panel[data-page] :is(
  .alchemy-visual-stage, .forging-visual-stage
) {
  background: linear-gradient(135deg, #245956ba, #0e383ddd),
    var(--tc-cloth) center / 480px auto repeat, #17494c !important;
  border-color: var(--tc-dark-line, #b6a16d) !important;
  color: var(--tc-dark-ink, #eee3bd) !important;
  box-shadow: inset 0 0 0 1px #d4bb7126 !important;
}
html[data-ui-theme="teal-cloud-a"] #game-root .page-panel.cave-panel[data-page] :is(
  .alchemy-furnace-zone, .forging-furnace-zone, .alchemy-furnace-art, .forging-furnace-art
) {
  background: transparent !important;
  box-shadow: none !important;
  border-color: var(--tc-dark-line, #b6a16d) !important;
}
html[data-ui-theme="teal-cloud-a"] #game-root .page-panel.cave-panel[data-page] :is(
  .alchemy-product-slot, .forging-product-slot,
  .alchemy-material-slot__art, .forging-material-slot__art, .forging-core-slot__art
) {
  background: linear-gradient(135deg, #2d625b, #164549) !important;
  color: #eee3bd !important;
  border-color: var(--tc-dark-line, #b6a16d) !important;
  box-shadow: inset 0 0 0 1px #d4bb7126 !important;
}
html[data-ui-theme="teal-cloud-a"] #game-root .page-panel.cave-panel[data-page] :is(
  .alchemy-product-slot, .forging-product-slot,
  .alchemy-material-slot__art, .forging-material-slot__art, .forging-core-slot__art
) > span {
  color: #eee3bd !important;
  -webkit-text-fill-color: currentColor !important;
}
html[data-ui-theme="teal-cloud-a"] #game-root dialog.battle-flee-dialog[data-role] .battle-flee-dialog__content > p {
  color: #eee3bd !important;
  -webkit-text-fill-color: currentColor !important;
  text-shadow: none !important;
}

/* Titles precede the illustration in the document, so visual and reading order
   agree. Keep the existing 16:9 image dimensions and navigation controls. */
html[data-ui-theme="teal-cloud-a"] #game-root .sect-page .sect-selection-view {
  align-content: start;
  row-gap: 10px;
}
html[data-ui-theme="teal-cloud-a"] #game-root .sect-page .sect-selection-view > [data-role="sect-selection-name"] {
  color: #e3c989 !important;
  -webkit-text-fill-color: currentColor !important;
  text-shadow: none !important;
}
html[data-ui-theme="teal-cloud-a"] #game-root .sect-page .sect-selection-view > [data-role="sect-selection-description"] {
  color: #eee3bd !important;
  -webkit-text-fill-color: currentColor !important;
  text-shadow: none !important;
  margin: 0 auto !important;
  max-width: 90%;
}
html[data-ui-theme="teal-cloud-a"] #game-root .sect-page .sect-selection-counter {
  display: none !important;
}

/* Match the character sheet's inner frame around the entire home content.
   The fixed canvas already reserves 46px for the masthead and 65px for the
   navigation; an overlay keeps all existing home positions and hit areas. */
html[data-ui-theme="teal-cloud-a"] #game-root[data-active-page="cultivate"] #app.game-shell::after {
  content: "";
  display: block;
  position: absolute;
  inset: 46px 5px 70px;
  z-index: 10;
  box-sizing: border-box;
  border: 22px solid transparent;
  border-image: var(--tc-frame-art) 72 / 22px / 0 stretch;
  border-radius: 0;
  background: none;
  box-shadow: none;
  opacity: 1;
  pointer-events: none;
  /* Extract only warm gold strokes; no paper backing or rectangular patches. */
  filter: url(#home-frame-gold-lines);
}
