/* Chat and announcements share the approved textile. Keep the original
   dialog dimensions, scrolling, content, input behavior and message actions. */
html[data-ui-theme="teal-cloud-a"] #game-root dialog.attribute-modal.world-chat-dialog[data-role="world-chat-dialog"] {
  --tc-chat-ink: #eee4c4;
  --tc-chat-gold: #ead094;
  --tc-chat-muted: #bbcbbf;
  --tc-chat-line: #b8a16b9e;
  background: linear-gradient(140deg, #245b5633, #082f3555),
    var(--tc-cloth) center / 480px auto repeat, #103f42 !important;
  color: var(--tc-chat-ink) !important;
}
html[data-ui-theme="teal-cloud-a"] #game-root dialog.attribute-modal.world-chat-dialog[data-role="world-chat-dialog"] :is(
  .world-chat-dialog__content, .world-chat-dialog__heading, .world-chat-tabs, .world-chat-view
) {
  background: transparent !important;
  color: var(--tc-chat-ink) !important;
  box-shadow: none !important;
}
html[data-ui-theme="teal-cloud-a"] #game-root dialog.attribute-modal.world-chat-dialog[data-role="world-chat-dialog"] :is(
  .world-chat-announcement-list, .world-chat-log
) {
  background: linear-gradient(#123d40b8, #0d3438d6),
    var(--tc-cloth) center / 480px auto repeat, #123c40 !important;
  color: var(--tc-chat-ink) !important;
  border-color: var(--tc-chat-line) !important;
  box-shadow: inset 0 0 0 1px #eee0af0d !important;
}
html[data-ui-theme="teal-cloud-a"] #game-root dialog.attribute-modal.world-chat-dialog[data-role="world-chat-dialog"] :is(
  .world-chat-announcement, .world-chat-message
) {
  background: linear-gradient(135deg, #245751, #123e43) !important;
  color: var(--tc-chat-ink) !important;
  border-color: var(--tc-chat-line) !important;
  box-shadow: inset 0 1px #eee0af12 !important;
}
html[data-ui-theme="teal-cloud-a"] #game-root dialog.attribute-modal.world-chat-dialog[data-role="world-chat-dialog"] .world-chat-message.is-current-player {
  background: linear-gradient(135deg, #2c6258, #1b4d4c) !important;
  border-color: #ddc17f !important;
  box-shadow: inset 3px 0 #d7bd7666 !important;
}
html[data-ui-theme="teal-cloud-a"] #game-root dialog.attribute-modal.world-chat-dialog[data-role="world-chat-dialog"] .world-chat-message.is-arena-defeat {
  background: linear-gradient(135deg, #304f4a, #153e42) !important;
  border-color: #d2ae74 !important;
}
html[data-ui-theme="teal-cloud-a"] #game-root dialog.attribute-modal.world-chat-dialog[data-role="world-chat-dialog"] :is(
  .world-chat-announcement p, .world-chat-message__content, .world-chat-dialog__heading h2
) {
  color: var(--tc-chat-ink) !important;
  -webkit-text-fill-color: currentColor !important;
  text-shadow: none !important;
}
html[data-ui-theme="teal-cloud-a"] #game-root dialog.attribute-modal.world-chat-dialog[data-role="world-chat-dialog"] .world-chat-announcement p {
  overflow-wrap: anywhere;
}
html[data-ui-theme="teal-cloud-a"] #game-root dialog.attribute-modal.world-chat-dialog[data-role="world-chat-dialog"] :is(
  .world-chat-announcement__heading strong, .world-chat-message__heading strong,
  .world-chat-message__player, .world-chat-message__arena-badge
) {
  color: var(--tc-chat-gold) !important;
  -webkit-text-fill-color: currentColor !important;
  text-shadow: none !important;
}
html[data-ui-theme="teal-cloud-a"] #game-root dialog.attribute-modal.world-chat-dialog[data-role="world-chat-dialog"] button.world-chat-message__player {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}
html[data-ui-theme="teal-cloud-a"] #game-root dialog.attribute-modal.world-chat-dialog[data-role="world-chat-dialog"] button.world-chat-message__player:is(:hover, :focus-visible) {
  color: #ffe4a3 !important;
}
html[data-ui-theme="teal-cloud-a"] #game-root dialog.attribute-modal.world-chat-dialog[data-role="world-chat-dialog"] :is(
  .world-chat-announcement__heading time, .world-chat-message__heading time,
  .world-chat-message__heading span, .world-chat-composer__footer span,
  .world-chat-empty, .world-chat-announcement-empty, .world-chat-status
) {
  color: var(--tc-chat-muted) !important;
  -webkit-text-fill-color: currentColor !important;
  text-shadow: none !important;
}
html[data-ui-theme="teal-cloud-a"] #game-root dialog.attribute-modal.world-chat-dialog[data-role="world-chat-dialog"] :is(
  .world-chat-announcement p a, .world-chat-message__content a
) {
  color: #f3d68b !important;
  -webkit-text-fill-color: currentColor !important;
  text-decoration-color: #d4bc7b;
}
html[data-ui-theme="teal-cloud-a"] #game-root dialog.attribute-modal.world-chat-dialog[data-role="world-chat-dialog"] .world-chat-tabs button {
  background: var(--tc-button-art) center / 100% 100% no-repeat,
    linear-gradient(#e9e7ce, #cdd6ba) !important;
  color: #1b4644 !important;
  -webkit-text-fill-color: currentColor !important;
  border-color: #b8a16b !important;
  box-shadow: inset 0 0 0 1px #f9edcb55 !important;
  text-shadow: none !important;
}
html[data-ui-theme="teal-cloud-a"] #game-root dialog.attribute-modal.world-chat-dialog[data-role="world-chat-dialog"] .world-chat-tabs button.is-active {
  background: linear-gradient(135deg, #2a6259, #15464b) !important;
  color: #fff0c6 !important;
  border-color: #ddc17f !important;
  box-shadow: inset 0 0 0 1px #d9be7633 !important;
}
html[data-ui-theme="teal-cloud-a"] #game-root dialog.attribute-modal.world-chat-dialog[data-role="world-chat-dialog"] .coop-chat-join {
  background: var(--tc-button-art) center / 100% 100% no-repeat,
    linear-gradient(#e9e7ce, #cdd6ba) !important;
  color: #1b4644 !important;
  -webkit-text-fill-color: currentColor !important;
  border-color: #b8a16b !important;
  text-shadow: none !important;
}
html[data-ui-theme="teal-cloud-a"] #game-root dialog.attribute-modal.world-chat-dialog[data-role="world-chat-dialog"] .world-chat-composer {
  background: linear-gradient(135deg, #1a4848, #103b40) !important;
  border-color: var(--tc-chat-line) !important;
  color: var(--tc-chat-ink) !important;
  box-shadow: inset 0 1px #eee0af12 !important;
}
html[data-ui-theme="teal-cloud-a"] #game-root dialog.attribute-modal.world-chat-dialog[data-role="world-chat-dialog"] .world-chat-composer textarea {
  background: #0d343a !important;
  color: var(--tc-chat-ink) !important;
  -webkit-text-fill-color: currentColor !important;
  caret-color: var(--tc-chat-gold) !important;
  border-color: #b8a16b99 !important;
  box-shadow: inset 0 1px 3px #021d2355 !important;
}
html[data-ui-theme="teal-cloud-a"] #game-root dialog.attribute-modal.world-chat-dialog[data-role="world-chat-dialog"] .world-chat-composer textarea::placeholder {
  color: #b5c5b9 !important;
  -webkit-text-fill-color: currentColor !important;
  opacity: 1 !important;
}
html[data-ui-theme="teal-cloud-a"] #game-root dialog.attribute-modal.world-chat-dialog[data-role="world-chat-dialog"] .world-chat-composer textarea:focus {
  border-color: #e0c581 !important;
  outline-color: #e0c581 !important;
  box-shadow: 0 0 0 2px #d3b66c26, inset 0 1px 3px #021d2355 !important;
}
html[data-ui-theme="teal-cloud-a"] #game-root dialog.attribute-modal.world-chat-dialog[data-role="world-chat-dialog"] .world-chat-composer button[type="submit"] {
  background: linear-gradient(135deg, #2a6259, #15464b) !important;
  color: #fff0c6 !important;
  -webkit-text-fill-color: currentColor !important;
  border-color: #ddc17f !important;
  text-shadow: none !important;
}
html[data-ui-theme="teal-cloud-a"] #game-root dialog.attribute-modal.world-chat-dialog[data-role="world-chat-dialog"] .world-chat-composer button[type="submit"]:disabled {
  background: #385858 !important;
  color: #c6d0bf !important;
  -webkit-text-fill-color: currentColor !important;
  border-color: #91a38a !important;
  opacity: 1 !important;
  box-shadow: none !important;
}
html[data-ui-theme="teal-cloud-a"] #game-root dialog.attribute-modal.world-chat-dialog[data-role="world-chat-dialog"] .world-chat-status[data-state="error"] {
  color: #ffb6a6 !important;
}
html[data-ui-theme="teal-cloud-a"] #game-root dialog.attribute-modal.world-chat-dialog[data-role="world-chat-dialog"] .world-chat-status[data-state="warning"] {
  color: #ecd092 !important;
}

/* The login update notice uses a separate dialog from world chat. */
html[data-ui-theme="teal-cloud-a"] #game-root dialog.network-announcement-dialog .network-announcement-dialog__body {
  background: linear-gradient(135deg, #1a4848, #103b40) !important;
  border-color: #b8a16b9e !important;
  color: #eee4c4 !important;
  box-shadow: inset 0 1px #eee0af12 !important;
  overflow-wrap: anywhere;
}
html[data-ui-theme="teal-cloud-a"] #game-root dialog.network-announcement-dialog .network-announcement-dialog__body p {
  color: #eee4c4 !important;
  -webkit-text-fill-color: currentColor !important;
}
html[data-ui-theme="teal-cloud-a"] #game-root dialog.network-announcement-dialog .network-announcement-dialog__time {
  color: #bbcbbf !important;
  -webkit-text-fill-color: currentColor !important;
}
