/* Sect leaf labels on the approved dark skin. Paint only: no geometry,
   material counts, rank data, timers, scene art or interaction changes. */
/* The legacy silk sheet assigns paragraph ink directly, so the dark dialog's
   inherited light text cannot recolor this confirmation message on its own. */
html[data-ui-theme="teal-cloud-a"] #game-root dialog.attribute-modal[data-role="sect-join-dialog"] > .sect-join-dialog__content > [data-role="sect-join-message"] {
  color: #eee3bd !important;
  -webkit-text-fill-color: currentColor !important;
  text-shadow: none !important;
}

/* These three fields sit on the dark product card. Leave its existing item
   name/rarity, icon, and purchase/cancel controls to their own rules. */
html[data-ui-theme="teal-cloud-a"] #game-root dialog.attribute-modal[data-role="sect-shop-purchase-dialog"] .sect-shop-purchase-product > :is(
  [data-role="sect-shop-purchase-description"],
  [data-role="sect-shop-purchase-price"],
  [data-role="sect-shop-purchase-balance"]
) {
  color: #eee3bd !important;
  -webkit-text-fill-color: currentColor !important;
  text-shadow: none !important;
}

/* Only the two direct confirmation lines use the dark shell. The nested
   ivory warning card deliberately keeps its existing dark text. */
html[data-ui-theme="teal-cloud-a"] #game-root dialog.attribute-modal[data-role="sect-leave-dialog"] > .sect-leave-dialog__content > :is(p, strong) {
  color: #eee3bd !important;
  -webkit-text-fill-color: currentColor !important;
  text-shadow: none !important;
}

html[data-ui-theme="teal-cloud-a"] #game-root .page-panel.sect-page[data-page="sect"] .sect-duty-card .sect-duty-card__info > strong {
  color: #e3c989 !important;
  -webkit-text-fill-color: currentColor !important;
  text-shadow: none !important;
}
html[data-ui-theme="teal-cloud-a"] #game-root .page-panel.sect-page[data-page="sect"] .sect-duty-card .sect-duty-card__info > :is(p, span),
html[data-ui-theme="teal-cloud-a"] #game-root .page-panel.sect-page[data-page="sect"] .sect-duty-card .sect-duty-card__countdown,
html[data-ui-theme="teal-cloud-a"] #game-root .page-panel.sect-page[data-page="sect"] .sect-duty-card .sect-duty-card__countdown > b {
  color: #bbcbbf !important;
  -webkit-text-fill-color: currentColor !important;
  text-shadow: none !important;
}

/* The construction view already supplies the outer panel. Keep its original
   border footprint and padding while removing the two redundant inner plates. */
html[data-ui-theme="teal-cloud-a"] #game-root .page-panel.sect-page[data-page="sect"] .sect-construction-view {
  background: linear-gradient(135deg, #255b56f0, #113c40f5) !important;
  border-color: #cab271a3 !important;
  color: #eee3bd !important;
}
html[data-ui-theme="teal-cloud-a"] #game-root .page-panel.sect-page[data-page="sect"] .sect-construction-view > .sect-task-section,
html[data-ui-theme="teal-cloud-a"] #game-root .page-panel.sect-page[data-page="sect"] .sect-construction-view > .sect-task-section::before,
html[data-ui-theme="teal-cloud-a"] #game-root .page-panel.sect-page[data-page="sect"] .sect-construction-view > .sect-task-section::after {
  background: none !important;
  border-color: transparent !important;
  box-shadow: none !important;
}
html[data-ui-theme="teal-cloud-a"] #game-root .page-panel.sect-page[data-page="sect"] .sect-construction-view > .sect-task-section > h3 {
  color: #e3c989 !important;
  -webkit-text-fill-color: currentColor !important;
  text-shadow: none !important;
}
html[data-ui-theme="teal-cloud-a"] #game-root .page-panel.sect-page[data-page="sect"] .sect-construction-view :is(
  .sect-task-section li, .sect-construction-remaining, .sect-construction-remaining > b
) {
  color: #eee3bd !important;
  -webkit-text-fill-color: currentColor !important;
  text-shadow: none !important;
}
html[data-ui-theme="teal-cloud-a"] #game-root .page-panel.sect-page[data-page="sect"] .sect-construction-view .sect-task-section li.is-insufficient {
  color: #f2a393 !important;
}

html[data-ui-theme="teal-cloud-a"] #game-root dialog.attribute-modal[data-role^="sect-"] :is(
  .sect-salary-position, .sect-salary-position > strong,
  .sect-members-summary > span, .sect-members-summary > span > strong,
  .sect-member-list__entry,
  .sect-retreat-summary > p, .sect-retreat-summary > p > strong,
  .sect-retreat-progress > span, .sect-retreat-progress > strong,
  .sect-kungfu-library__summary > span,
  .sect-arena-dialog__content > p,
  .sect-arena-final-result-row > div > span,
  .sect-arena-ranking-date, .sect-arena-ranking-header > span,
  .sect-arena-ranking-row > span
) {
  color: #eee3bd !important;
  -webkit-text-fill-color: currentColor !important;
  text-shadow: none !important;
}
html[data-ui-theme="teal-cloud-a"] #game-root dialog.attribute-modal[data-role^="sect-"] :is(
  .sect-kungfu-library__summary > strong,
  .sect-arena-final-result-row > strong,
  .sect-arena-final-result-row .sect-arena-player-name,
  .sect-arena-ranking-row > .sect-arena-ranking-rank,
  .sect-arena-ranking-row > .sect-arena-player-name
) {
  color: #e3c989 !important;
  -webkit-text-fill-color: currentColor !important;
  text-shadow: none !important;
}
html[data-ui-theme="teal-cloud-a"] #game-root dialog.attribute-modal[data-role^="sect-"] :is(
  .sect-arena-dialog__content > .sect-arena-dialog__hint,
  .sect-arena-ranking-date
) { color: #bbcbbf !important; }

html[data-ui-theme="teal-cloud-a"] #game-root .page-panel.sect-page[data-page="sect"] :is(
  [data-role="sect-arena-round-name"],
  .sect-arena-phase > strong, .sect-arena-phase > b,
  .sect-arena-match-card__result, .sect-arena-match-card__result > span,
  .sect-arena-match-card__result > small,
  .sect-arena-match-card__result > strong,
  .sect-arena-competitor, .sect-arena-advancement-name
) {
  color: #eee3bd !important;
  -webkit-text-fill-color: currentColor !important;
  text-shadow: none !important;
}
html[data-ui-theme="teal-cloud-a"] #game-root .page-panel.sect-page[data-page="sect"] :is(
  .sect-arena-match-card__result > strong,
  .sect-arena-phase > strong, .sect-arena-advancement > strong,
  .sect-arena-player-name
) {
  color: #e3c989 !important;
  -webkit-text-fill-color: currentColor !important;
  text-shadow: none !important;
}
/* Action children have their own legacy colors; follow the actual dark/disabled
   action plate instead of allowing the summary rule to recolor utility buttons. */
html[data-ui-theme="teal-cloud-a"] #game-root dialog.attribute-modal[data-role="sect-retreat-dialog"] .sect-retreat-action > :is(strong, small) {
  color: #fff0c4 !important;
  -webkit-text-fill-color: currentColor !important;
  text-shadow: none !important;
}
html[data-ui-theme="teal-cloud-a"] #game-root dialog.attribute-modal[data-role="sect-retreat-dialog"] .sect-retreat-action:disabled > :is(strong, small) {
  color: #c5cbbd !important;
}
html[data-ui-theme="teal-cloud-a"] #game-root dialog.attribute-modal[data-role^="sect-"] :is(.is-unmet, .is-insufficient, [data-state="error"]) {
  color: #f2a393 !important;
  -webkit-text-fill-color: currentColor !important;
}
