/* EllGab Modern v1.0.39 — CSS-only desktop BBC toolbar polish.
   No changes to icon files, Javascript, mobile controls, or SMF functionality. */
@media screen and (min-width: 701px) {
  /* Shared SMF BBC toolbar and smileys: dark surfaces, soft edges. */
  #bbcBox_message {
    padding: 8px 10px;
    margin: 10px 0 5px;
    background: #17283a;
    border: 1px solid #324d65;
    border-radius: 9px;
    box-sizing: border-box;
  }
  #bbcBox_message > div {
    margin: 3px 0;
    line-height: 1.6;
  }
  /* SMF's default GIFs are mostly rendered on very bright tiles.
     Reduce brightness slightly without hiding or replacing their symbols. */
  #bbcBox_message img {
    vertical-align: middle;
    border-radius: 3px;
    filter: brightness(.80) saturate(.82);
    box-shadow: 0 0 0 1px rgba(111, 141, 161, .25);
    transition: filter .14s ease, box-shadow .14s ease;
  }
  #bbcBox_message img:hover,
  #bbcBox_message a:hover img {
    filter: brightness(.98) saturate(.94);
    box-shadow: 0 0 0 1px #eabd76;
  }
  #bbcBox_message select {
    background: #0d1727;
    color: #f4efe7;
    border: 1px solid #45627a;
    border-radius: 6px;
    padding: 5px 7px;
    min-height: 29px;
    vertical-align: middle;
  }
  #bbcBox_message select:focus-visible,
  #bbcBox_message a:focus-visible {
    outline: 2px solid #eabd76;
    outline-offset: 2px;
  }
  #smileyBox_message {
    box-sizing: border-box;
    background: #17283a;
    border: 1px solid #324d65;
    border-radius: 8px;
    margin: 5px 0 9px;
    padding: 6px 10px;
    line-height: 1.7;
  }
  #smileyBox_message img {
    vertical-align: middle;
    border-radius: 3px;
    filter: saturate(.85) brightness(.93);
    transition: filter .14s ease;
  }
  #smileyBox_message img:hover { filter: none; }
  /* Keep editor's icon selector on the same slate/navy surface. */
  #postmodify select[name="icon"],
  form[action*="action=post"] select[name="icon"] {
    background-color: #0d1727;
    color: #f4efe7;
    border: 1px solid #45627a;
    border-radius: 6px;
    padding: 5px 8px;
  }
}
