/* WarDrix 1.11.0 scoped community UI */
.wd111-stack{display:flex;flex-direction:column;gap:10px}.wd111-card-head,.wd111-thread-head,.wd111-actions,.wd111-checks,.wd111-inbox-filter{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.wd111-card-head{justify-content:space-between}.wd111-checks label{display:flex;gap:7px;align-items:center}.wd111-rule-row{gap:8px}.wd111-app-question{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:8px;align-items:center}.wd111-prompt-card,.wd111-application{border:1px solid var(--border,#30343b);border-radius:12px;padding:12px;background:rgba(255,255,255,.025)}.wd111-option-card{display:grid;grid-template-columns:minmax(150px,1fr) minmax(180px,1.2fr) minmax(130px,.8fr) minmax(130px,.8fr) auto;gap:8px;align-items:end}.wd111-option-card select{min-height:72px}.wd111-answer-list p{display:flex;flex-direction:column;gap:3px;margin:8px 0}.wd111-preview{display:flex;flex-direction:column;gap:7px;padding:12px 0;border-bottom:1px solid var(--border,#30343b)}.wd111-thread-create{display:grid;grid-template-columns:minmax(160px,1fr) auto auto auto;gap:8px;align-items:center;margin-bottom:12px}.wd111-thread-row,.wd111-inbox-row{width:100%;display:flex;align-items:center;gap:10px;text-align:left;padding:10px 12px;border-radius:10px}.wd111-thread-row .grow,.wd111-inbox-row{min-width:0}.wd111-thread-row small,.wd111-inbox-row small,.wd111-inbox-row span{display:block;opacity:.72}.wd111-unread{min-width:24px;height:24px;border-radius:12px;display:grid;place-items:center;background:#f97316;color:#111}.wd111-thread-messages{display:flex;flex-direction:column;gap:8px;min-height:220px;max-height:50vh;overflow:auto;margin:10px 0}.wd111-thread-messages .wd-thread-message{display:grid;grid-template-columns:auto 1fr auto;gap:8px}.wd111-event-row img{width:84px;height:52px;object-fit:cover;border-radius:8px}.wd111-mod-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.wd111-wide{grid-column:1/-1}.wd111-inbox-filter{margin-bottom:10px}.wd111-inbox-filter button.active{border-color:#f97316;color:#f97316}.wd111-dialog{width:min(900px,94vw)}.wd111-dialog-body{max-height:75vh;overflow:auto}@media(max-width:900px){.wd111-option-card{grid-template-columns:1fr}.wd111-mod-grid{grid-template-columns:1fr}.wd111-wide{grid-column:auto}.wd111-thread-create{grid-template-columns:1fr}.wd111-app-question{grid-template-columns:1fr auto}.wd111-event-row{align-items:flex-start}}

.wd111-event-cover{width:112px;height:76px;object-fit:cover;border-radius:10px;flex:0 0 auto;background:rgba(255,255,255,.04)}
@media(max-width:720px){.wd-event-card .wd111-event-cover{width:100%;height:150px;flex-basis:auto}}


/* WarDrix 1.11.1 - AutoMod Editor */
.wd111-am-editor{
  display:flex;
  flex-direction:column;
  gap:16px;
}

.wd111-am-section{
  border:1px solid var(--border,#30343b);
  border-radius:12px;
  padding:14px;
  background:rgba(255,255,255,.025);
}

.wd111-am-section>header{
  margin-bottom:12px;
}

.wd111-am-section>header strong{
  display:block;
  font-size:15px;
}

.wd111-am-section>header small{
  display:block;
  margin-top:4px;
  opacity:.68;
  line-height:1.45;
}

.wd111-am-config{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}

.wd111-am-config .full{
  grid-column:1/-1;
}

.wd111-am-type-help,
.wd111-am-info{
  border-radius:9px;
  padding:9px 11px;
  background:rgba(249,115,22,.08);
  border:1px solid rgba(249,115,22,.22);
  font-size:12px;
  line-height:1.45;
}

.wd111-am-choice-list{
  display:flex;
  flex-direction:column;
  gap:5px;
  max-height:240px;
  overflow:auto;
  margin-top:8px;
  padding:7px;
  border:1px solid var(--border,#30343b);
  border-radius:10px;
  background:rgba(0,0,0,.12);
}

.wd111-am-choice{
  display:flex;
  gap:9px;
  align-items:center;
  padding:7px 9px;
  border-radius:8px;
  cursor:pointer;
}

.wd111-am-choice:hover{
  background:rgba(255,255,255,.05);
}

.wd111-am-choice input{
  margin:0;
}

.wd111-am-chips{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-top:8px;
}

.wd111-am-chips>small{
  opacity:.55;
}

.wd111-am-chip{
  display:inline-flex;
  align-items:center;
  border:1px solid rgba(249,115,22,.38);
  background:rgba(249,115,22,.09);
  border-radius:999px;
  padding:4px 9px;
  font-size:12px;
}

.wd111-am-help{
  display:block;
  margin-top:5px;
  opacity:.65;
  line-height:1.4;
}

.wd111-am-actions{
  display:flex;
  flex-direction:column;
  gap:11px;
}

.wd111-am-action-row{
  display:grid;
  grid-template-columns:minmax(200px,.8fr) minmax(220px,1.2fr);
  gap:12px;
  align-items:center;
}

.wd111-am-rule{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:12px;
  align-items:center;
  border:1px solid var(--border,#30343b);
  border-radius:12px;
  padding:12px 14px;
  background:rgba(255,255,255,.025);
}

.wd111-am-rule-summary{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-top:8px;
}

.wd111-am-rule-summary span{
  display:inline-flex;
  border-radius:999px;
  padding:4px 8px;
  font-size:11px;
  background:rgba(255,255,255,.06);
}

.wd111-am-rule-summary span.active{
  color:#fb923c;
  border:1px solid rgba(249,115,22,.25);
}

.wd111-am-rule-buttons{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  justify-content:flex-end;
}

@media(max-width:800px){
  .wd111-am-config,
  .wd111-am-action-row{
    grid-template-columns:1fr;
  }

  .wd111-am-config .full{
    grid-column:auto;
  }

  .wd111-am-rule{
    grid-template-columns:1fr;
  }

  .wd111-am-rule-buttons{
    justify-content:flex-start;
  }
}

/* WarDrix 1.11.1 AutoMod UI Cleanup */

#wd111NewAutomodEditor,
#wd111AutomodEditHost{
  width:100%;
  max-width:1180px;
}

.wd111-am-editor{
  gap:14px;
}

.wd111-am-section{
  padding:16px 18px;
  border-radius:12px;
}

.wd111-am-section>header{
  margin-bottom:14px;
}

.wd111-am-section>header strong{
  font-size:15px;
}

.wd111-am-section>header small{
  margin-top:3px;
  font-size:12px;
}

/* Grundlage + Erkennung */
.wd111-am-config{
  grid-template-columns:repeat(2,minmax(240px,1fr));
  gap:12px 16px;
}

.wd111-am-config>label{
  min-width:0;
}

.wd111-am-config input,
.wd111-am-config select,
.wd111-am-config textarea{
  width:100%;
  box-sizing:border-box;
}

/* Erklärung unter Regeltyp kompakter */
.wd111-am-type-help{
  padding:9px 12px;
  margin-top:0;
}

/* Ausnahmeboxen */
.wd111-am-choice-list{
  padding:6px;
  margin-top:8px;
  max-height:210px;
  min-height:0;
}

/* Wichtig: globale Label-Regeln von WarDrix hier überschreiben */
.wd111-am-choice{
  width:100%;
  min-height:34px;
  box-sizing:border-box;
  display:grid !important;
  grid-template-columns:18px minmax(0,1fr);
  align-items:center;
  justify-content:start;
  gap:9px;
  padding:6px 8px !important;
  margin:0 !important;
  text-align:left !important;
}

.wd111-am-choice input[type="checkbox"]{
  width:15px !important;
  height:15px !important;
  margin:0 !important;
  justify-self:start;
}

.wd111-am-choice span{
  display:block;
  min-width:0;
  text-align:left;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* Chips */
.wd111-am-chips{
  min-height:24px;
  margin-top:7px;
}

.wd111-am-chip{
  padding:3px 8px;
}

/* Aktionen deutlich kompakter */
.wd111-am-actions{
  gap:8px;
  max-width:720px;
}

.wd111-am-actions>.setting-toggle{
  min-height:38px;
  width:100%;
  box-sizing:border-box;
  padding:8px 10px;
  margin:0;
}

.wd111-am-action-row{
  grid-template-columns:minmax(220px,280px) minmax(220px,360px);
  gap:10px 14px;
  width:100%;
}

.wd111-am-action-row>.setting-toggle{
  min-height:38px;
  padding:8px 10px;
  margin:0;
}

.wd111-am-action-row>label:not(.setting-toggle){
  margin:0;
}

/* Speichern nicht über komplette Breite */
.wd111-am-editor>.dialog-actions{
  justify-content:flex-end;
  padding-top:2px;
}

.wd111-am-editor>.dialog-actions .primary{
  min-width:160px;
}

/* Vorhandene Regeln ebenfalls kompakter */
.wd111-am-rule{
  padding:12px 14px;
}

.wd111-am-rule-summary{
  margin-top:6px;
}

/* Große Bildschirme: Inhalt nicht über 1500px zerziehen */
#settingsBody{
  --wd111-automod-max:1180px;
}

#settingsBody #wd111NewAutomodEditor{
  max-width:var(--wd111-automod-max);
}

/* Tablet */
@media(max-width:900px){
  .wd111-am-config{
    grid-template-columns:1fr;
  }

  .wd111-am-action-row{
    grid-template-columns:1fr;
  }

  .wd111-am-actions{
    max-width:none;
  }
}

/* Handy */
@media(max-width:600px){
  .wd111-am-section{
    padding:13px;
  }

  .wd111-am-choice-list{
    max-height:180px;
  }

  .wd111-am-editor>.dialog-actions .primary{
    width:100%;
  }
}



/* WarDrix 1.11.1 Mod Center V2 */

.wd111-mod-dashboard{
  display:flex;
  flex-direction:column;
  gap:14px;
  width:100%;
  max-width:1240px;
}

.wd111-mod-stats{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
}

.wd111-mod-stat{
  display:flex;
  align-items:center;
  gap:12px;
  min-height:74px;
  padding:12px 14px;
  border:1px solid var(--border,#30343b);
  border-radius:12px;
  background:rgba(255,255,255,.025);
}

.wd111-mod-stat>.material-symbols-rounded{
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  flex:0 0 auto;
  border-radius:10px;
  background:rgba(249,115,22,.10);
  color:#fb923c;
}

.wd111-mod-stat strong{
  display:block;
  font-size:22px;
  line-height:1;
}

.wd111-mod-stat small{
  display:block;
  margin-top:5px;
  opacity:.65;
}

.wd111-mod-columns{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}

.wd111-mod-card{
  min-width:0;
}

.wd111-mod-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}

.wd111-mod-head h4{
  margin:0;
}

.wd111-mod-head small{
  display:block;
  margin-top:4px;
  opacity:.65;
}

.wd111-mod-count{
  min-width:26px;
  height:26px;
  display:grid;
  place-items:center;
  border-radius:999px;
  background:rgba(249,115,22,.12);
  color:#fb923c;
  font-weight:700;
  font-size:12px;
}

.wd111-mod-list{
  display:flex;
  flex-direction:column;
  gap:7px;
}

.wd111-mod-item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 11px;
  border:1px solid rgba(255,255,255,.07);
  border-radius:10px;
  background:rgba(0,0,0,.10);
}

.wd111-mod-item-main{
  min-width:0;
  flex:1;
}

.wd111-mod-item-main>strong{
  display:block;
}

.wd111-mod-item-main>p{
  margin:4px 0;
  line-height:1.4;
  word-break:break-word;
}

.wd111-mod-item-main>small{
  display:block;
  opacity:.62;
  line-height:1.4;
}

.wd111-mod-item-title{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:7px;
}

.wd111-mod-item-title span{
  padding:3px 7px;
  border-radius:999px;
  background:rgba(255,255,255,.06);
  font-size:11px;
}

.wd111-mod-status-active{
  color:#fb923c;
}

.wd111-mod-status-done{
  opacity:.65;
}

.wd111-mod-actions{
  display:flex;
  gap:7px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.wd111-mod-empty{
  min-height:70px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:6px;
  border:1px dashed rgba(255,255,255,.09);
  border-radius:10px;
  opacity:.65;
}

.wd111-mod-empty .material-symbols-rounded{
  font-size:22px;
}

.wd111-mod-note-create{
  display:flex;
  flex-direction:column;
  gap:9px;
  padding:11px;
  margin-bottom:10px;
  border:1px solid rgba(249,115,22,.18);
  border-radius:10px;
  background:rgba(249,115,22,.035);
}

.wd111-mod-note-create button{
  align-self:flex-end;
}

.wd111-mod-audit-head{
  align-items:center;
}

.wd111-mod-search{
  display:flex !important;
  align-items:center;
  gap:7px;
  min-width:260px;
  max-width:380px;
  padding:0 10px !important;
  border:1px solid var(--border,#30343b);
  border-radius:9px;
  background:rgba(0,0,0,.16);
}

.wd111-mod-search .material-symbols-rounded{
  opacity:.6;
}

.wd111-mod-search input{
  width:100%;
  border:0 !important;
  background:transparent !important;
  padding-left:0 !important;
}

.wd111-mod-hit-list{
  max-height:420px;
  overflow:auto;
  padding-right:3px;
}

.wd111-mod-audit-row{
  min-height:46px;
}

@media(max-width:1000px){
  .wd111-mod-stats{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .wd111-mod-columns{
    grid-template-columns:1fr;
  }
}

@media(max-width:620px){
  .wd111-mod-stats{
    grid-template-columns:1fr;
  }

  .wd111-mod-item{
    align-items:flex-start;
    flex-direction:column;
  }

  .wd111-mod-actions{
    width:100%;
    justify-content:flex-start;
  }

  .wd111-mod-audit-head{
    align-items:stretch;
    flex-direction:column;
  }

  .wd111-mod-search{
    min-width:0;
    max-width:none;
    width:100%;
  }

  .wd111-mod-note-create button{
    align-self:stretch;
  }
}
