/* Keep the in-chat kennel in the same visual world as the main room. */
.kennel-view { background: #09080a; }

.kennel-topics-pane {
  border-right-color: #503641;
  background: #120e12;
}

.kennel-thread-pane { background: #0d0a0d; }

.kennel-pane-header {
  min-height: 110px;
  align-items: flex-end;
  border-bottom-color: #76515c;
  background-color: #171017;
  background-image:
    linear-gradient(0deg, rgba(8, 7, 10, .97), rgba(8, 7, 10, .75) 49%, rgba(8, 7, 10, .10)),
    url("assets/elitnyi-pryton-splash.webp");
  background-position: center, center 42%;
  background-size: cover;
}

.kennel-pane-header h2 { color: #f0c08c; text-shadow: 0 2px 7px #000; }
.kennel-pane-header p { color: #e6cfd6; text-shadow: 0 1px 5px #000; }

.kennel-topic-card {
  border-color: #503641;
  background: #1c151b;
  color: #f1e3e7;
  transition: filter .18s ease, transform .18s ease;
}

.kennel-topic-card:hover { border-color: #503641; background: #1c151b; filter: brightness(1.12); }
.kennel-topic-card:active { transform: translateY(1px); }
.kennel-topic-card:focus-visible { border-color: #b05b82; background: #1c151b; outline: 2px solid #df00ff; outline-offset: 2px; }
.kennel-topic-card.is-active,
.kennel-topic-card.is-active:hover {
  border-color: #b05b82;
  background: #34232d;
  box-shadow: inset 3px 0 0 #b05b82;
}

.kennel-topic-card__text,
.kennel-thread-topic__text,
.kennel-reply__text { color: #f0e4e6; }

.kennel-topic-card__meta,
.kennel-reply__meta,
.kennel-thread-topic__meta,
.kennel-thread-count,
.kennel-empty,
.kennel-thread-empty,
#kennel-reply-counter,
#kennel-topic-counter { color: #bba6ae; }

.kennel-topic-card__footer,
.kennel-thread-empty strong { color: #edbd89; }

.kennel-thread-header {
  border-bottom-color: #503641;
  background: #211820;
}

.kennel-thread-topic {
  border-bottom-color: #65434f;
  background: rgba(29, 20, 26, .96);
}

.kennel-replies,
.kennel-thread-empty {
  background-color: #09080a;
  background-image:
    linear-gradient(90deg, rgba(8, 7, 10, .97), rgba(8, 7, 10, .91) 45%, rgba(8, 7, 10, .70)),
    url("assets/elitnyi-pryton-splash.webp");
  background-position: center, right 48%;
  background-size: cover;
  background-repeat: no-repeat;
}

.kennel-reply { border-bottom-color: #392a33; }
.kennel-reply-form { border-top-color: #503641; background: #211820; }
.kennel-reply-form label { color: #cdb4bf; }
.kennel-feedback { color: #edbd89; }

#kennel-reply-text,
#kennel-topic-text {
  border-color: #785462;
  background: #100d12;
  color: #fff;
}

#kennel-reply-text:focus,
#kennel-topic-text:focus {
  border-color: #b05b82;
  outline: 2px solid #df00ff;
  outline-offset: 2px;
}

.kennel-back,
.kennel-share-button {
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid #393939;
  border-radius: 9px;
  background: #292929;
  color: #fff;
  font: 700 12px/1.3 system-ui, sans-serif;
  transition: filter .18s ease, transform .18s ease;
}

.kennel-back:hover,
.kennel-share-button:hover {
  border-color: #393939;
  background: #292929;
  color: #fff;
  filter: brightness(1.12);
}

.kennel-back:focus-visible,
.kennel-share-button:focus-visible { border-color: #393939; background: #292929; color: #fff; outline: 2px solid #df00ff; outline-offset: 2px; }
.kennel-back:active,
.kennel-share-button:active { transform: translateY(1px); }

.kennel-share-preview-wrap { background: #120e12; }
.kennel-share-preview { border-color: #65434f; }
.kennel-share-notice,
.kennel-share-status { color: #c5adb6 !important; }

:root[data-theme="light"] .kennel-pane-header {
  border-bottom-color: #d7c6cf;
  background-image:
    linear-gradient(0deg, rgba(250, 247, 249, .97), rgba(250, 247, 249, .81) 51%, rgba(250, 247, 249, .25)),
    url("assets/elitnyi-pryton-splash.webp");
}

:root[data-theme="light"] .kennel-pane-header h2 { color: #704c39; text-shadow: none; }
:root[data-theme="light"] .kennel-pane-header p { color: #5f4d54; text-shadow: none; }
:root[data-theme="light"] .kennel-topic-card:hover { background: #fffdf9; filter: brightness(.96); }
:root[data-theme="light"] .kennel-topic-card:focus-visible { background: #fffdf9; }
:root[data-theme="light"] .kennel-topic-card.is-active,
:root[data-theme="light"] .kennel-topic-card.is-active:hover { border-color: #a86984; background: #f0e1e8; }
:root[data-theme="light"] .kennel-topic-card__meta,
:root[data-theme="light"] .kennel-reply__meta,
:root[data-theme="light"] .kennel-thread-topic__meta,
:root[data-theme="light"] .kennel-thread-count,
:root[data-theme="light"] .kennel-empty,
:root[data-theme="light"] .kennel-thread-empty,
:root[data-theme="light"] #kennel-reply-counter,
:root[data-theme="light"] #kennel-topic-counter { color: #675a61; }
:root[data-theme="light"] .kennel-topic-card__footer,
:root[data-theme="light"] .kennel-thread-empty strong,
:root[data-theme="light"] .kennel-feedback { color: #76533d; }
:root[data-theme="light"] .kennel-reply-form label { color: #62515b; }
:root[data-theme="light"] .kennel-share-notice,
:root[data-theme="light"] .kennel-share-status { color: #675a61 !important; }
:root[data-theme="light"] .kennel-replies,
:root[data-theme="light"] .kennel-thread-empty {
  background-color: #fbf9fc;
  background-image:
    linear-gradient(90deg, rgba(251, 249, 252, .99), rgba(251, 249, 252, .96) 45%, rgba(251, 249, 252, .83)),
    url("assets/elitnyi-pryton-splash.webp");
}

:root[data-theme="light"] .kennel-back,
:root[data-theme="light"] .kennel-share-button {
  border-color: #d5ccd7;
  background: #f1edf2;
  color: #4d4650;
}

:root[data-theme="light"] .kennel-back:hover,
:root[data-theme="light"] .kennel-share-button:hover { border-color: #d5ccd7; background: #e8e2e9; color: #4d4650; filter: none; }
:root[data-theme="light"] .kennel-back:focus-visible,
:root[data-theme="light"] .kennel-share-button:focus-visible { border-color: #d5ccd7; background: #f1edf2; color: #4d4650; }

@media (max-width: 768px) {
  .kennel-pane-header { min-height: 88px; }
  .kennel-replies,
  .kennel-thread-empty {
    background-image:
      linear-gradient(rgba(8, 7, 10, .97), rgba(8, 7, 10, .87)),
      url("assets/elitnyi-pryton-splash.webp");
  }
  :root[data-theme="light"] .kennel-replies,
  :root[data-theme="light"] .kennel-thread-empty {
    background-image:
      linear-gradient(rgba(251, 249, 252, .98), rgba(251, 249, 252, .91)),
      url("assets/elitnyi-pryton-splash.webp");
  }
}

/* Recent kennel posts use the same five-minute edit cue as chat messages. */
.kennel-edit-button {
  display: inline-grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  margin-left: auto;
  padding: 0;
  border: 1px solid #8f6478;
  border-radius: 6px;
  background: #35232e;
  color: #ffcee3;
  font: 18px/1 Arial, sans-serif;
  cursor: pointer;
}
.kennel-edit-button:hover,
.kennel-edit-button:focus-visible {
  border-color: #df00ff;
  background: #4b2b3d;
  color: #fff;
  outline: 2px solid #df00ff;
  outline-offset: 1px;
}
.kennel-edit-button svg { display: block; }
.kennel-edited-label { color: #bba6ae; font: 11px/1.3 Arial, sans-serif; }
#kennel-edit-dialog textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 140px;
  max-height: 40dvh;
  padding: 10px;
  border: 1px solid #785462;
  border-radius: 8px;
  background: #100d12;
  color: #fff;
  font: 16px/1.5 Arial, sans-serif;
  resize: vertical;
}
#kennel-edit-dialog .rules-content { display: grid; gap: 8px; }
#kennel-edit-dialog .rules-dialog__footer { display: flex; gap: 10px; flex-wrap: wrap; }
#kennel-edit-counter { text-align: right; font-size: 12px; }
#kennel-edit-feedback { min-height: 1.4em; margin: 0; }
:root[data-theme="light"] .kennel-edit-button {
  border-color: #b88ea3;
  background: #f1e7ec;
  color: #683d53;
}
:root[data-theme="light"] #kennel-edit-dialog textarea {
  border-color: #b88ea3;
  background: #fff;
  color: #292029;
}
