/* Lydia Champagne: inbox and DM controls, including room floating conversations. */
html body #messages { color: var(--theme-ink, #342b21); }
html body #messages > .title { color: var(--theme-ink, #342b21); margin-bottom: 18px; }
html body #messages [data-dm-user-search] {
  color: var(--theme-ink, #342b21) !important;
  background: var(--theme-panel, #fffdf8) !important;
  border: 1px solid var(--theme-line, #ded1ba) !important;
  box-shadow: 0 3px 12px var(--theme-shadow, #654a1708);
}
html body #messages [data-dm-user-search]::placeholder { color: var(--theme-muted-ink, #756750); }
html body #messages [data-dm-search-btn] {
  color: var(--ui-ink) !important;
  background: var(--ui-button) !important;
  border-color: var(--theme-line, #795626) !important;
}
html body #messages [data-dm-search] > div:last-child > button,
html body #messages .dm-inbox-nav button,
html body #messages .dm-list-tools button {
  color: var(--theme-accent-ink, #71511f) !important;
  background: var(--theme-panel, #fffaf0) !important;
  border: 1px solid var(--theme-line, #ddcfb3) !important;
  box-shadow: none;
}
html body #messages .dm-list-tools { color: var(--theme-ink, #342b21); background: var(--theme-panel, #f6ecd7); border-color: var(--theme-line, #ded1ba); }
html body #messages .list > .item {
  color: var(--theme-ink, #342b21);
  background: var(--theme-panel, #fffdf8);
  border-color: var(--theme-line, #e1d7c5);
  border-radius: 18px;
  box-shadow: 0 3px 12px var(--theme-shadow, #654a1709);
}
html body #messages .list > .item > .ava { border-color: var(--theme-line, #dfd0ae); }
html body #messages .dm-list-selected {
  border-color: var(--theme-line, #ad8847) !important;
  box-shadow: 0 0 0 1px var(--theme-carved-line, #ad8847) !important;
}
html body #messages .dm-list-selected::before {
  color: var(--ui-ink);
  background: var(--ui-button);
  border-color: var(--theme-line, #795626);
}
html body #messages .dm-list-tools [data-delete] { color: var(--theme-danger-ink, #9c334b) !important; border-color: var(--theme-danger-line, #dfb8bd) !important; }
html body #messages .dm-list-state { color: var(--theme-ink, #342b21); background: var(--theme-panel, #fffdf8); border-color: var(--theme-line, #ded1ba); }
html body #messages .dm-list-state p { color: var(--theme-muted-ink, #756750); }

/* Preserve the existing full-page/floating dimensions and scroll behavior. */
html body #chat:not(.eris-floating-dm) { background: var(--theme-panel, #f5f0e6); color: var(--theme-ink, #342b21); }
html body #chat:not(.eris-floating-dm) > .chatSheet,
html body #chat.eris-floating-dm .chatSheet {
  background: var(--theme-panel, #f5f0e6);
  color: var(--theme-ink, #342b21);
  border-color: var(--theme-line, #d4bf96);
}
html body #chat .chatHead {
  background: var(--theme-chrome, #fcf8ef) !important;
  color: var(--theme-ink, #342b21);
  border-bottom-color: var(--theme-line, #ded1ba);
}
html body #chat .chatHead small { color: var(--theme-muted-ink, #756750); }
html body #chat .chatHead > button.close,
html body #chat .dm-call-head button,
html body #chat .dm-select-tools button {
  color: var(--theme-accent-ink, #856229);
  background: var(--theme-chrome, #fffdf8);
  border-color: var(--theme-line, #ded1ba);
  box-shadow: none;
}
html body #chat .dm-select-tools { background: var(--theme-panel, #fcf8ef); color: var(--theme-ink, #342b21); border-color: var(--theme-line, #ded1ba); }
html body #chat .dm-select-tools [data-selected-count] { color: var(--theme-muted-ink, #756750) !important; }
html body #chat .dm-select-tools [data-delete-selected] { color: var(--theme-danger-ink, #9c334b); border-color: var(--theme-danger-line, #dfb8bd); }
html body #chat .chatBody { background-color: var(--theme-panel, #f5f0e6); color: var(--theme-ink, #342b21); }
html body #chat:not(.eris-floating-dm) .bubble:not(.dm-award-bubble):not(.dm-media-bubble),
html body #chat.eris-floating-dm .bubble:not(.dm-award-bubble):not(.dm-media-bubble) {
  color: var(--theme-ink, #342b21);
  background: var(--theme-panel, #fffdf8);
  border: 1px solid var(--theme-line, #e1d7c5);
  box-shadow: 0 2px 7px var(--theme-shadow, #654a1709);
}
html body #chat:not(.eris-floating-dm) .bubble.me:not(.dm-award-bubble):not(.dm-media-bubble),
html body #chat.eris-floating-dm .bubble.me:not(.dm-award-bubble):not(.dm-media-bubble) {
  color: var(--theme-ink, #342b21);
  background: linear-gradient(125deg, var(--theme-sent, #f4e6c6), var(--theme-sent, #eeddb7));
  border-color: var(--theme-line, #dbc28e);
}
html body #chat .bubble:not(.dm-award-bubble) > small { color: var(--theme-muted-ink, #756750) !important; font-size: 10px !important; line-height: 1.3 !important; }
html body #chat .bubble:not(.dm-award-bubble) > [data-pin-icon] { color: var(--theme-accent-ink, #856229) !important; }
html body #chat .dm-checks { color: var(--theme-accent-ink, #795a28); }
html body #chat .dm-award-bubble .dm-checks { color: inherit; }
html body #chat .dm-selected { outline-color: var(--theme-focus, #ad8847) !important; }
html body #chat.dm-selection-mode .chatBody .bubble[data-message-id]::before {
  background: var(--theme-panel, #fffdf8);
  border-color: var(--theme-line, #c8b382);
}
html body #chat.dm-selection-mode .chatBody .bubble.dm-selected::before { color: var(--ui-ink); background: var(--ui-button); border-color: var(--theme-line, #795626); }
html body #chat .dm-pinned { color: var(--theme-accent-ink, #71511f); background: var(--theme-panel, #f4e6c6); border-color: var(--theme-line, #dbc28e); }
html body #chat .compose { background: var(--theme-chrome, #fcf8ef) !important; border-top-color: var(--theme-line, #ded1ba); }
html body #chat .compose input {
  color: var(--theme-ink, #342b21) !important;
  background: var(--theme-chrome, #fffdf8) !important;
  border-color: var(--theme-line, #ded1ba) !important;
}
html body #chat .compose input::placeholder { color: var(--theme-muted-ink, #756750); }
html body #chat .compose > .primary {
  color: var(--ui-primary-ink);
  background: linear-gradient(125deg, var(--ui-primary), var(--ui-danger-bg)) !important;
  border: 1px solid var(--theme-line, #795626);
  box-shadow: 0 3px 8px var(--theme-shadow, #71511e16);
}
html body #chat .compose > .close {
  color: var(--theme-accent-ink, #856229) !important;
  background: var(--theme-chrome, #fffdf8) !important;
  border-color: var(--theme-line, #ded1ba) !important;
  box-shadow: none;
}
html body #chat .compose [data-dm-voice][title="Kaydı bitir ve gönder"] {
  color: var(--ui-ink) !important;
  background: var(--theme-danger-line, #a83b52) !important;
  border-color: var(--theme-danger-line, #8e3046) !important;
  box-shadow: 0 0 0 3px var(--theme-shadow, #a83b521a);
}
html body #chat .dm-media-loading { color: var(--theme-muted-ink, #756750); }
html body #chat .dm-voice-player { color: var(--theme-ink, #342b21); background: var(--theme-panel, #fffdf8); border-color: var(--theme-line, #ded1ba); }
html body #chat .dm-voice-toggle { color: var(--ui-ink); background: var(--ui-button); }
html body #chat .dm-voice-time { color: var(--theme-muted-ink, #756750); }
html body #chat .dm-voice-player .dm-wave { background: linear-gradient(90deg, var(--theme-panel-shadow, #d1b274) var(--played,0%), transparent var(--played,0%)); }
html body #chat .dm-wave i { background: var(--theme-grain, #a38a604d); }
html body #chat .dm-track { background: var(--theme-panel, #ded1ba); }
html body #chat .dm-track i { background: var(--ui-button); }
html body #chat .dm-temp-preview { color: var(--theme-ink, #342b21); background: linear-gradient(125deg, var(--theme-panel, #f4e6c6), var(--theme-panel-shadow, #e8cf9b)); border-color: var(--theme-line, #d8bf87); }
html body #chat .dm-temp-preview small { color: var(--theme-muted-ink, #5f4d2e); }
html body #chat .dm-temp-blur { background: linear-gradient(125deg, var(--theme-panel-shadow, #dcc08a), var(--ui-button)); }
html body #chat .dm-temp-preview .dm-temp-label,
html body #chat .dm-temp-preview > span:last-child { padding: 5px 7px; border-radius: 8px; background: var(--theme-overlay, #fffaf0e8); }
html body #chat .dm-temp-lock { color: var(--theme-accent-ink, #795a28); background: var(--theme-overlay, #fffaf0e8); border-color: var(--theme-line, #d8bf87); }
html body #chat .dm-temp-preview.expired { color: var(--theme-muted-ink, #756750); background: var(--theme-panel, #eee7d9); border-color: var(--theme-line, #ded1ba); }

/* DM-owned photo/gift pickers and locked-conversation dialogs. */
html body .dm-gift-sheet { background: var(--theme-overlay, #342b215c); }
html body .dm-gift-sheet > section,
html body .dm-vault-modal section { color: var(--theme-ink, #342b21); background: var(--theme-panel, #fffdf8); border-color: var(--theme-line, #d4bf96); box-shadow: 0 15px 45px var(--theme-shadow, #342b2120); }
html body .dm-gift-sheet p,
html body .dm-vault-modal p,
html body .dm-vault-modal label { color: var(--theme-muted-ink, #756750) !important; }
html body .dm-gift-sheet hr { border-color: var(--theme-line, #ded1ba) !important; }
html body .dm-gift-sheet button:not(.close),
html body .dm-gift-sheet .close,
html body .dm-vault-modal button { color: var(--theme-accent-ink, #71511f); background: var(--theme-panel, #fffaf0); border-color: var(--theme-line, #ddcfb3); box-shadow: none; }
html body .dm-gift-sheet [data-temp][aria-pressed=true] { color: var(--theme-accent-ink, #71511f); background: var(--theme-panel, #f3e8d0); border-color: var(--theme-line, #cbb17a); box-shadow: 0 0 0 2px var(--theme-shadow, #b49a6920); }
html body .dm-gift-sheet [data-temp-source] { outline-color: var(--theme-focus, #ad8847) !important; }
html body .dm-gift-sheet small { color: var(--theme-accent-ink, #856229); }
html body .dm-vault-modal { color: var(--theme-ink, #342b21); background: var(--theme-overlay, #342b215c); }
html body .dm-vault-modal input { color: var(--theme-ink, #342b21); background: var(--theme-panel, #fffaf0); border-color: var(--theme-line, #ded1ba); }
html body .dm-vault-modal .accept { color: var(--ui-ink); background: var(--ui-button); border-color: var(--theme-line, #795626); }
html body .dm-vault-modal .reject { color: var(--theme-danger-ink, #9c334b); background: var(--theme-danger-surface, #fff7f6); border-color: var(--theme-danger-line, #dfb8bd); }
html body .dm-vault-modal .warn,
html body .dm-vault-modal .error { color: var(--theme-danger-ink, #9c334b); }
html body #messages button:focus-visible,
html body #messages input:focus-visible,
html body #chat button:focus-visible,
html body #chat input:focus-visible,
html body .dm-gift-sheet button:focus-visible,
html body .dm-vault-modal input:focus-visible,
html body .dm-vault-modal button:focus-visible { outline: 2px solid var(--theme-focus, #866128); outline-offset: 2px; }
html body #chat .dm-voice-player input:focus-visible { outline-color: var(--theme-focus, #866128); }
html body #messages [data-dm-user-search]:focus-visible { outline: 2px solid var(--theme-focus, #866128) !important; outline-offset: 2px; }
html body .dm-photo-viewer-head button { color: var(--theme-accent-ink, #71511f); background: var(--theme-panel, #fffaf0); border-color: var(--theme-line, #d8bf87); }
