/* Cax Cozy Campfire theme — visual-only extension. */
/* Place the supplied artwork at /assets/images/cax-cozy-campfire.png. */
html[data-cax-theme="dark"]{
  --cax-accent:#efa96e;
  --cax-line:#544039;
  --cax-muted:#c5b5ad;
  --cosmic-edge:rgba(232,170,119,.19);
  --cosmic-glow:rgba(240,143,73,.14);
  color-scheme:dark;
}
html[data-cax-theme="dark"] body{
  background:#0c1221!important;
  color:#f7eae0!important;
}
html[data-cax-theme="dark"] .layout{
  position:relative;
  isolation:isolate;
  background:#0c1221!important;
}
html[data-cax-theme="dark"] .layout::after{
  content:"";
  position:absolute;
  inset:24px 0 0;
  z-index:-1;
  pointer-events:none;
  background:linear-gradient(90deg,rgba(9,14,26,.91) 0%,rgba(11,16,29,.77) 34%,rgba(10,15,27,.62) 72%,rgba(10,15,27,.76)),url("/assets/images/cax-cozy-campfire.png") center center / cover no-repeat;
}
html[data-cax-theme="dark"] .layout:before{
  background:linear-gradient(90deg,#101829,#302234,#101829)!important;
  color:#f6d8b9!important;
  border-bottom:1px solid rgba(239,172,114,.18);
}
html[data-cax-theme="dark"] .rail,
html[data-cax-theme="dark"] .sidebar,
html[data-cax-theme="dark"] .memberlist,
html[data-cax-theme="dark"] .ss-nav{
  background:rgba(15,21,34,.88)!important;
  border-color:rgba(240,181,123,.17)!important;
  backdrop-filter:blur(14px);
}
html[data-cax-theme="dark"] .main,
html[data-cax-theme="dark"] .workspace,
html[data-cax-theme="dark"] .chat,
html[data-cax-theme="dark"] .messages{
  background:transparent!important;
}
html[data-cax-theme="dark"] .sidebar .header,
html[data-cax-theme="dark"] .main .header{
  background:rgba(20,25,40,.78)!important;
  border-color:rgba(240,181,123,.18)!important;
  backdrop-filter:blur(12px);
}
html[data-cax-theme="dark"] .rail button{
  background:rgba(55,44,48,.9)!important;
  color:#ffd5a6!important;
  border:1px solid rgba(242,181,124,.2)!important;
}
html[data-cax-theme="dark"] .rail button.active,
html[data-cax-theme="dark"] .rail button:hover{
  background:linear-gradient(135deg,#a96242,#db985e)!important;
  color:#fffaf2!important;
  box-shadow:0 0 16px rgba(227,126,67,.21)!important;
}
html[data-cax-theme="dark"] .pane,
html[data-cax-theme="dark"] .modal,
html[data-cax-theme="dark"] .profile,
html[data-cax-theme="dark"] .cax-profile,
html[data-cax-theme="dark"] .ss-modal,
html[data-cax-theme="dark"] .toast,
html[data-cax-theme="dark"] .cax-voice-panel,
html[data-cax-theme="dark"] #cax-ext-panel{
  background:linear-gradient(145deg,rgba(29,32,43,.96),rgba(19,23,37,.97))!important;
  color:#f8e9dc!important;
  border:1px solid rgba(239,180,125,.23)!important;
  box-shadow:0 15px 45px rgba(4,8,18,.42)!important;
}
html[data-cax-theme="dark"] .item{color:#d5c4b8!important}
html[data-cax-theme="dark"] .item:hover,
html[data-cax-theme="dark"] .item.active,
html[data-cax-theme="dark"] .message:hover{
  background:rgba(216,143,90,.15)!important;
  color:#fff4e7!important;
}
html[data-cax-theme="dark"] .composer{
  background:rgba(15,20,34,.75)!important;
  backdrop-filter:blur(10px);
}
html[data-cax-theme="dark"] input:not([type="checkbox"]),
html[data-cax-theme="dark"] textarea,
html[data-cax-theme="dark"] select{
  background:rgba(31,34,47,.95)!important;
  border:1px solid rgba(229,175,132,.25)!important;
  color:#fff0e4!important;
}
html[data-cax-theme="dark"] input:focus-visible,
html[data-cax-theme="dark"] textarea:focus-visible,
html[data-cax-theme="dark"] select:focus-visible,
html[data-cax-theme="dark"] button:focus-visible{
  outline:2px solid #ffc28d;
  outline-offset:2px;
}
html[data-cax-theme="dark"] button.primary,
html[data-cax-theme="dark"] .tabs button.active{
  background:linear-gradient(135deg,#b46c49,#e5a66d)!important;
  color:#1c1520!important;
}
html[data-cax-theme="dark"] button.outline,
html[data-cax-theme="dark"] .tabs button{
  background:rgba(70,54,51,.76)!important;
  border-color:rgba(229,175,132,.27)!important;
  color:#f9e6d7!important;
}
html[data-cax-theme="dark"] .account{background:rgba(30,32,42,.93)!important;border-color:rgba(229,175,132,.22)!important}
html[data-cax-theme="dark"] .avatar{border-radius:50%!important;background:linear-gradient(135deg,#8b5d53,#343b55)!important}
html[data-cax-theme="dark"] .pill{background:rgba(176,105,70,.22)!important;border-color:rgba(229,175,132,.23)!important;color:#f9e4d2!important}
html[data-cax-theme="dark"] .muted,
html[data-cax-theme="dark"] .label,
html[data-cax-theme="dark"] small{color:#c4b4aa!important}
html[data-cax-theme="dark"] .divider{border-color:rgba(229,175,132,.18)!important}
@media(max-width:700px){
  html[data-cax-theme="dark"] .layout::after{
    background:linear-gradient(90deg,rgba(9,14,26,.92),rgba(10,15,27,.77)),url("/assets/images/cax-cozy-campfire.png") 52% center / cover no-repeat;
  }
  html[data-cax-theme="dark"] .rail,
  html[data-cax-theme="dark"] .sidebar{backdrop-filter:none}
}
@media(prefers-reduced-motion:reduce){
  html[data-cax-theme="dark"] .rail button,
  html[data-cax-theme="dark"] .message{transition:none!important}
}
