/* Groepschat. Every rule hangs off .tdj-chat so theme/Elementor
   button resets (font-size:0, uppercase, white text) cannot win. */

.tdj-chat,
.tdj-chat * {
  box-sizing: border-box;
}

.tdj-chat {
  --tdj-cream: #fbf7ef;
  --tdj-ink: #2c261f;
  --tdj-muted: #6d6458;
  --tdj-line: #efe8dc;
  --tdj-gold: #b0893e;
  --tdj-gold-soft: #f3e6c8;
  --tdj-mint: #7dab9e;
  --tdj-mint-soft: #e5f2ee;
  --tdj-white: #fffdf8;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100dvh;
  min-height: 520px;
  overflow: hidden;
  background: var(--tdj-cream) !important;
  color: var(--tdj-ink) !important;
  font-family: "Segoe UI", system-ui, sans-serif !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  line-height: 1.4 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  border-radius: 0;
}

.tdj-chat,
.tdj-chat * {
  text-transform: none !important;
  letter-spacing: normal !important;
}

.tdj-chat button,
.tdj-chat input,
.tdj-chat textarea,
.tdj-chat select,
.tdj-chat a {
  font-family: inherit !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  opacity: 1 !important;
  box-shadow: none !important;
  text-decoration: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}

.tdj-chat [hidden] {
  display: none !important;
}

.tdj-chat .tdj-sr {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.tdj-chat svg {
  display: block !important;
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  min-height: 22px !important;
  flex: 0 0 auto;
  visibility: visible !important;
  overflow: visible !important;
  opacity: 1 !important;
}

.tdj-chat .tdj-icon {
  display: inline-grid !important;
  place-items: center !important;
  width: 40px !important;
  min-width: 40px !important;
  height: 40px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: var(--tdj-ink) !important;
  cursor: pointer !important;
  flex: 0 0 40px !important;
}

.tdj-chat .tdj-icon:hover,
.tdj-chat .tdj-icon:focus-visible {
  background: var(--tdj-gold-soft) !important;
}

/* Dentalist/Elementor sets `button { position:relative; z-index:0; background:transparent }`
   and paints the kit colour on `button:before` (z-index:-1, full size). That pseudo
   sits above the button background, so a white paper-plane vanishes on the cream overlay. */
.tdj-chat button.tdj-icon.tdj-send,
.tdj-chat button.tdj-icon.tdj-send:hover,
.tdj-chat button.tdj-icon.tdj-send:focus,
.tdj-chat button.tdj-icon.tdj-send:focus-visible,
.tdj-chat button.tdj-icon.tdj-send:disabled {
  appearance: none !important;
  -webkit-appearance: none !important;
  background: #b0893e !important;
  background-color: #b0893e !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #fffdf8 !important;
  filter: none !important;
  mix-blend-mode: normal !important;
  opacity: 1 !important;
  overflow: hidden !important;
  transition: none !important;
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
}

.tdj-chat button.tdj-icon.tdj-send.is-idle {
  opacity: 0.6 !important;
  cursor: default !important;
}

.tdj-chat button.tdj-icon.tdj-send:hover:not(.is-idle),
.tdj-chat button.tdj-icon.tdj-send:focus-visible:not(.is-idle) {
  background: #9a7634 !important;
  background-color: #9a7634 !important;
  background-image: none !important;
}

.tdj-chat button.tdj-icon.tdj-send::before,
.tdj-chat button.tdj-icon.tdj-send::after,
.tdj-chat button.tdj-icon.tdj-send:hover::before,
.tdj-chat button.tdj-icon.tdj-send:hover::after,
.tdj-chat button.tdj-icon.tdj-send:focus::before,
.tdj-chat button.tdj-icon.tdj-send:focus::after,
.tdj-chat button.tdj-icon.tdj-send:disabled::before,
.tdj-chat button.tdj-icon.tdj-send:disabled::after {
  content: none !important;
  display: none !important;
  background: none !important;
  background-image: none !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
}

.tdj-chat button.tdj-icon.tdj-send svg,
.tdj-chat button.tdj-icon.tdj-send svg path {
  fill: #fffdf8 !important;
  stroke: #7a5c26 !important;
  stroke-width: 1.5px !important;
  color: #fffdf8 !important;
  opacity: 1 !important;
  visibility: visible !important;
  filter: none !important;
}

.tdj-chat button.tdj-icon.tdj-send svg {
  display: block !important;
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  min-height: 20px !important;
}

.tdj-chat .tdj-btn-gold,
.tdj-chat .tdj-btn-quiet {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 46px !important;
  margin: 0 !important;
  padding: 0.7rem 1.2rem !important;
  border-radius: 999px !important;
  cursor: pointer !important;
  font-size: 16px !important;
  font-weight: 650 !important;
}

.tdj-chat .tdj-btn-gold {
  background: var(--tdj-gold) !important;
  color: var(--tdj-white) !important;
  border: 1px solid var(--tdj-gold) !important;
}

.tdj-chat .tdj-btn-gold:hover,
.tdj-chat .tdj-btn-gold:focus-visible {
  background: #9a7634 !important;
  color: var(--tdj-white) !important;
}

.tdj-chat .tdj-btn-quiet {
  background: var(--tdj-white) !important;
  color: var(--tdj-ink) !important;
  border: 1px solid var(--tdj-line) !important;
}

.tdj-chat .tdj-login {
  margin: 2rem auto;
  max-width: 28rem;
  text-align: center;
}

.tdj-chat .tdj-login a {
  color: var(--tdj-gold) !important;
  text-decoration: underline !important;
}

.tdj-consent {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  overflow: auto;
}

.tdj-consent-card {
  width: min(460px, 100%);
  background: var(--tdj-white);
  border-radius: 22px;
  padding: 22px 20px 18px;
  box-shadow: 0 10px 30px rgba(44, 38, 31, 0.08);
}

.tdj-consent-card h2,
.tdj-info h3,
.tdj-sheet-card h3,
.tdj-list-head h2,
.tdj-bar-text h2 {
  margin: 0;
  color: var(--tdj-ink) !important;
  font-weight: 680 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
}

.tdj-consent-card h2 {
  text-align: center;
  font-size: 1.25rem !important;
  margin-bottom: 12px;
}

.tdj-rules,
.tdj-pin-full {
  max-height: 42vh;
  overflow: auto;
  margin-bottom: 12px;
}

.tdj-rules h3,
.tdj-pin-full h3 {
  margin: 12px 0 4px;
  font-size: 15px !important;
  color: var(--tdj-ink) !important;
}

.tdj-rules p,
.tdj-pin-full p {
  margin: 0 0 8px;
  white-space: pre-wrap;
  color: var(--tdj-ink) !important;
  font-size: 14px !important;
}

.tdj-check {
  display: flex !important;
  gap: 8px;
  align-items: flex-start;
  margin: 8px 0 14px;
  font-size: 14px !important;
  color: var(--tdj-ink) !important;
}

.tdj-check input {
  width: 18px !important;
  height: 18px !important;
  margin-top: 2px !important;
  accent-color: var(--tdj-gold);
  flex: 0 0 auto;
}

.tdj-app {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr;
}

.tdj-list,
.tdj-main {
  min-width: 0;
  min-height: 0;
  height: 100%;
}

.tdj-list {
  display: flex;
  flex-direction: column;
  background: var(--tdj-cream);
  border-right: 1px solid var(--tdj-line);
}

.tdj-list-head {
  padding: 14px 14px 8px;
}

.tdj-list-head h2 {
  font-size: 1.2rem !important;
  margin-bottom: 8px;
}

.tdj-search input,
.tdj-chat input[type="search"] {
  width: 100% !important;
  background: var(--tdj-white) !important;
  color: var(--tdj-ink) !important;
  border: 0 !important;
  border-radius: 999px !important;
  padding: 8px 14px !important;
  margin: 0 !important;
}

.tdj-channels,
.tdj-results,
.tdj-log,
.tdj-panel,
.tdj-info {
  overflow: auto;
}

.tdj-channels,
.tdj-results {
  flex: 1;
}

.tdj-channel,
.tdj-results button,
.tdj-more button,
.tdj-add {
  display: flex !important;
  align-items: center !important;
  gap: 10px;
  width: 100% !important;
  height: auto !important;
  min-height: 58px !important;
  margin: 0 !important;
  padding: 8px 12px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--tdj-line) !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--tdj-ink) !important;
  text-align: left !important;
  cursor: pointer !important;
}

.tdj-channel.is-active,
.tdj-channel:hover,
.tdj-results button:hover,
.tdj-add:hover {
  background: var(--tdj-mint-soft) !important;
}

.tdj-channel-main {
  flex: 1;
  min-width: 0;
}

.tdj-channel-top,
.tdj-channel-bot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.tdj-channel-top strong {
  font-size: 15px !important;
  font-weight: 650 !important;
  color: var(--tdj-ink) !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tdj-channel time,
.tdj-preview,
.tdj-counts,
.tdj-hint,
.tdj-voice,
.tdj-file-name,
.tdj-member em {
  color: var(--tdj-muted) !important;
  font-size: 13px !important;
  font-style: normal !important;
  font-weight: 450 !important;
}

.tdj-preview {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.tdj-badge,
.tdj-jump-badge {
  display: inline-grid !important;
  place-items: center !important;
  min-width: 20px;
  height: 20px;
  padding: 0 6px !important;
  border-radius: 999px !important;
  background: var(--tdj-gold) !important;
  color: var(--tdj-white) !important;
  font-size: 11px !important;
  font-style: normal !important;
  font-weight: 700 !important;
  line-height: 1 !important;
}

.tdj-muted-flag {
  color: var(--tdj-gold) !important;
  font-size: 11px !important;
  font-style: normal !important;
}

.tdj-main {
  display: flex;
  flex-direction: column;
  position: relative;
  background: var(--tdj-cream);
}

.tdj-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 8px 6px;
  background: rgba(251, 247, 239, 0.94);
  position: sticky;
  top: 0;
  z-index: 2;
}

.tdj-bar-text {
  flex: 1;
  min-width: 0;
}

.tdj-bar-text h2 {
  font-size: 16px !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tdj-bar-text p {
  margin: 0;
  color: var(--tdj-muted) !important;
  font-size: 12px !important;
}

.tdj-avatar {
  display: inline-grid !important;
  place-items: center !important;
  width: 40px !important;
  height: 40px !important;
  min-width: 40px;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--tdj-gold-soft) !important;
  color: var(--tdj-white) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  padding: 0 !important;
  flex: 0 0 40px;
}

.tdj-avatar.is-tooth,
.tdj-hero {
  background: var(--tdj-gold-soft) !important;
  color: var(--tdj-gold) !important;
}

.tdj-avatar-spacer {
  background: transparent !important;
}

.tdj-hero {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  margin: 8px auto 10px;
  border-radius: 999px;
}

.tdj-hero svg {
  width: 56px;
  height: 56px;
}

.tdj-consent-card .tdj-hero {
  margin-top: 0;
}

.tdj-pin {
  display: flex !important;
  align-items: center !important;
  gap: 8px;
  width: calc(100% - 20px) !important;
  height: 40px !important;
  min-height: 40px !important;
  margin: 4px 10px 6px !important;
  padding: 0 12px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: var(--tdj-white) !important;
  color: var(--tdj-ink) !important;
  text-align: left !important;
  cursor: pointer !important;
  box-shadow: 0 1px 2px rgba(44, 38, 31, 0.06);
  overflow: hidden;
}

.tdj-pin svg {
  color: var(--tdj-gold);
  width: 16px;
  height: 16px;
}

.tdj-pin-label {
  flex: 0 0 auto;
  font-weight: 680 !important;
  font-size: 13px !important;
  color: var(--tdj-ink) !important;
}

.tdj-pin-preview {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--tdj-muted) !important;
  font-size: 13px !important;
  font-weight: 450 !important;
}

.tdj-log {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 12px 12px;
}

.tdj-day,
.tdj-unread {
  align-self: center;
  margin: 8px 0;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.9);
  color: var(--tdj-muted) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
}

.tdj-unread {
  background: var(--tdj-gold-soft);
  color: #7a6230 !important;
}

.tdj-msg {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  max-width: 75%;
  align-self: flex-start;
  animation: tdj-in 180ms ease;
}

.tdj-msg.is-mine {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.tdj-msg.is-system {
  align-self: center;
  max-width: 92%;
}

.tdj-msg.is-follow {
  margin-top: -2px;
}

.tdj-system {
  margin: 0;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--tdj-gold-soft);
  color: #6a5b45 !important;
  font-size: 13px !important;
  text-align: center;
}

.tdj-bubble {
  min-width: 0;
  background: var(--tdj-white);
  border-radius: 16px 16px 16px 6px;
  padding: 7px 10px 5px;
  box-shadow: 0 1px 1px rgba(44, 38, 31, 0.04);
}

.tdj-msg.is-mine .tdj-bubble {
  background: var(--tdj-mint-soft);
  border-radius: 16px 16px 6px 16px;
}

.tdj-name {
  margin: 0 0 2px;
  font-size: 13px !important;
  font-weight: 680 !important;
}

.tdj-big {
  display: inline-block;
  margin-left: 4px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--tdj-gold-soft);
  color: #8a6a32 !important;
  font-size: 10px !important;
  font-weight: 750 !important;
  letter-spacing: 0.03em !important;
  vertical-align: 1px;
}

.tdj-text,
.tdj-quote {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 15px !important;
  color: var(--tdj-ink) !important;
}

.tdj-quote {
  margin-bottom: 4px;
  padding-left: 8px;
  border-left: 3px solid var(--tdj-mint);
  color: var(--tdj-muted) !important;
  font-size: 13px !important;
}

.tdj-time,
.tdj-pending {
  margin: 2px 0 0;
  text-align: right;
  color: var(--tdj-muted) !important;
  font-size: 11px !important;
}

.tdj-pending {
  color: var(--tdj-gold) !important;
}

.tdj-tools {
  display: flex;
  gap: 8px;
  margin: 4px 0 0;
}

.tdj-tools button {
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--tdj-gold) !important;
  font-size: 12px !important;
  cursor: pointer !important;
}

.tdj-file img,
.tdj-file audio {
  display: block;
  max-width: 100%;
  margin-top: 6px;
  border-radius: 10px;
}

.tdj-file a {
  color: var(--tdj-gold) !important;
  text-decoration: underline !important;
}

.tdj-jump {
  position: absolute;
  right: 16px;
  bottom: 108px;
  z-index: 3;
  display: grid !important;
  place-items: center !important;
  width: 44px !important;
  height: 44px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--tdj-white) !important;
  color: var(--tdj-ink) !important;
  box-shadow: 0 4px 16px rgba(44, 38, 31, 0.16);
  cursor: pointer !important;
}

.tdj-jump-badge {
  position: absolute;
  top: -4px;
  right: -4px;
}

.tdj-compose {
  position: sticky;
  bottom: 0;
  z-index: 2;
  padding: 6px 10px 10px;
  background: linear-gradient(to top, var(--tdj-cream) 70%, rgba(251, 247, 239, 0));
}

.tdj-compose-row {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  background: var(--tdj-white);
  border-radius: 24px;
  padding: 4px;
  box-shadow: 0 1px 3px rgba(44, 38, 31, 0.06);
}

.tdj-compose-row textarea {
  flex: 1;
  min-width: 0;
  min-height: 40px;
  max-height: 128px;
  margin: 0 !important;
  padding: 9px 6px !important;
  border: 0 !important;
  border-radius: 16px !important;
  background: transparent !important;
  color: var(--tdj-ink) !important;
  resize: none;
  overflow: auto;
}

.tdj-file {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
}

.tdj-hint,
.tdj-voice,
.tdj-file-name,
.tdj-reply {
  margin: 6px 8px 0;
  text-align: center;
}

.tdj-reply {
  text-align: left;
  color: var(--tdj-ink) !important;
  font-size: 13px !important;
}

.tdj-info {
  position: absolute;
  inset: 0;
  z-index: 7;
  background: #f6f3ec;
  padding: 8px 16px 28px;
  animation: tdj-in 180ms ease;
}

.tdj-info-close {
  position: sticky;
  top: 0;
}

.tdj-info h3 {
  text-align: center;
  font-size: 1.35rem !important;
}

.tdj-counts {
  margin: 2px 0 14px;
  text-align: center;
}

.tdj-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.tdj-tile {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px;
  width: 100% !important;
  height: auto !important;
  min-height: 72px !important;
  margin: 0 !important;
  padding: 8px 4px !important;
  border: 0 !important;
  border-radius: 16px !important;
  background: var(--tdj-white) !important;
  color: var(--tdj-gold) !important;
  cursor: pointer !important;
}

.tdj-tile span {
  color: var(--tdj-muted) !important;
  font-size: 12px !important;
  font-weight: 500 !important;
}

.tdj-tile.is-on {
  background: var(--tdj-gold-soft) !important;
}

.tdj-card {
  background: var(--tdj-white);
  border-radius: 16px;
  padding: 12px 14px;
  margin-bottom: 14px;
}

.tdj-card p {
  margin: 0 0 8px;
  font-size: 14px !important;
}

.tdj-card p:last-child {
  margin-bottom: 0;
}

.tdj-share {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tdj-share span {
  font-weight: 650;
}

.tdj-share a {
  color: #2f6f9a !important;
  overflow-wrap: anywhere;
  font-size: 14px !important;
}

.tdj-tabs {
  display: flex;
  gap: 6px;
  margin: 4px 0 8px;
  overflow: auto;
}

.tdj-tabs button {
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 6px 12px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: var(--tdj-muted) !important;
  cursor: pointer !important;
  white-space: nowrap !important;
}

.tdj-tabs button[aria-selected="true"] {
  background: var(--tdj-white) !important;
  color: var(--tdj-ink) !important;
}

.tdj-add span:last-child {
  font-weight: 650 !important;
  color: var(--tdj-gold) !important;
}

.tdj-member {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 2px;
  border-bottom: 1px solid var(--tdj-line);
}

.tdj-member strong {
  display: block;
  font-size: 15px !important;
  color: var(--tdj-ink) !important;
}

.tdj-member em {
  display: block;
}

.tdj-empty {
  margin: 12px 0;
  color: var(--tdj-muted) !important;
  font-size: 14px !important;
}

.tdj-more {
  margin: -6px 0 12px;
}

.tdj-more button {
  min-height: 42px !important;
  border-radius: 12px !important;
  background: var(--tdj-white) !important;
  justify-content: flex-start !important;
}

.tdj-sheet {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: grid;
  align-items: end;
  padding: 16px;
  background: rgba(44, 38, 31, 0.35);
}

.tdj-sheet-card {
  background: var(--tdj-white);
  border-radius: 18px;
  padding: 16px;
  max-height: min(80dvh, 640px);
  overflow: auto;
  animation: tdj-up 180ms ease;
}

.tdj-sheet-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.tdj-sheet-card h3 {
  font-size: 1.05rem !important;
}

.tdj-sheet-card label {
  display: block;
  margin: 8px 0 12px;
  color: var(--tdj-ink) !important;
}

.tdj-sheet-card select {
  display: block;
  width: 100% !important;
  margin-top: 6px !important;
  padding: 8px 10px !important;
  border: 1px solid var(--tdj-line) !important;
  border-radius: 12px !important;
  background: var(--tdj-white) !important;
  color: var(--tdj-ink) !important;
}

.tdj-sheet-actions {
  display: grid;
  gap: 8px;
}

.tdj-status:empty {
  display: none !important;
}

.tdj-status {
  position: absolute;
  left: 50%;
  bottom: 84px;
  z-index: 9;
  transform: translateX(-50%);
  max-width: calc(100% - 32px);
  margin: 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--tdj-ink);
  color: var(--tdj-white) !important;
  font-size: 13px !important;
}

@keyframes tdj-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

@keyframes tdj-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 767px) {
  .tdj-chat {
    padding-bottom: 96px !important;
  }

  .tdj-chat:not(.is-open) .tdj-main {
    display: none !important;
  }

  .tdj-chat.is-open .tdj-list {
    display: none !important;
  }
}

@media (min-width: 768px) {
  .tdj-chat {
    height: min(100dvh, 860px);
    min-height: 640px;
    border-radius: 18px;
  }

  .tdj-app {
    grid-template-columns: 300px minmax(0, 1fr);
  }

  .tdj-chat.is-open .tdj-list {
    display: flex !important;
  }

  .tdj-back {
    display: none !important;
  }

  .tdj-info {
    left: auto;
    width: min(400px, 92%);
    box-shadow: -12px 0 30px rgba(44, 38, 31, 0.12);
  }

  .tdj-sheet {
    align-items: center;
    justify-content: center;
  }

  .tdj-sheet-card {
    width: min(440px, 100%);
  }
}

.tdj-chat.is-guest .tdj-back {
  display: none !important;
}

.tdj-guest-desc {
  margin: 0 16px 6px;
  color: var(--tdj-muted) !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
}

.tdj-chat details.tdj-pin {
  display: block !important;
  height: auto !important;
  min-height: 40px !important;
  padding: 8px 12px !important;
  overflow: hidden;
}

.tdj-chat details.tdj-pin summary {
  display: flex !important;
  align-items: center !important;
  gap: 8px;
  min-height: 24px;
  list-style: none;
  cursor: pointer;
}

.tdj-chat details.tdj-pin summary::-webkit-details-marker {
  display: none;
}

.tdj-chat details.tdj-pin .tdj-pin-full {
  margin-top: 8px;
  color: var(--tdj-ink) !important;
  font-size: 14px !important;
  white-space: pre-wrap;
}

.tdj-chat details.tdj-pin[open] {
  max-height: 42%;
  overflow: auto;
}

.tdj-stage {
  position: relative;
  flex: 1;
  min-height: 180px;
  display: flex;
  flex-direction: column;
}

.tdj-guest-log {
  filter: blur(7px);
  -webkit-filter: blur(7px);
  user-select: none;
  pointer-events: none;
}

.tdj-guest-card {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  width: min(340px, calc(100% - 32px));
  padding: 22px 18px 16px;
  border-radius: 22px;
  background: var(--tdj-white);
  text-align: center;
  box-shadow: 0 16px 40px rgba(44, 38, 31, 0.16);
}

.tdj-guest-card h2 {
  margin: 0 0 14px;
  font-size: 1.2rem !important;
  line-height: 1.3 !important;
}

.tdj-guest-card .tdj-btn-gold,
.tdj-guest-card .tdj-btn-quiet {
  margin-top: 8px !important;
}

.tdj-chat.is-guest textarea:disabled {
  color: var(--tdj-muted) !important;
  cursor: not-allowed !important;
  opacity: 1 !important;
}

@media (prefers-reduced-motion: reduce) {
  .tdj-chat,
  .tdj-chat * {
    animation: none !important;
    transition: none !important;
  }
}
