/*
 * Waldemaster-Design-System (Petrol/Pergament, Georgia-Serife, harte
 * 1px-Konturen) - Kopie von wmg-shared.css aus waldemaster-generators,
 * damit der Battle Tracker als eigenstaendiges Plugin ohne Abhaengigkeit
 * laeuft. Klassennamen (.wmg-app, .wm-btn, ...) bleiben identisch: sind
 * mehrere Waldemaster-Plugins aktiv, laden alle dieselben Regeln -
 * harmlos, weil inhaltsgleich. Aenderungen am Design-System bitte in
 * ALLEN Kopien nachziehen.
 */
.wmg-app{
  --wm-teal: #0c857b;
  --wm-teal-light: #49a49c;
  --wm-teal-tint: #e7f3f2;
  --wm-gold: #c9a35c;
  --wm-gold-tint: #f7f0e2;
  --wm-parchment-dark: #e5e1d6;
  --wm-panel: #faf7f0;
  --wm-ink: #262421;
  --wm-on-teal: #ffffff;

  --wm-text: var(--wm-ink);
  --wm-muted: #6b6558;
  --wm-muted2: #8a8474;

  --wm-surface: #ffffff;
  --wm-surface-2: var(--wm-panel);
  --wm-divider: var(--wm-parchment-dark);

  --wm-radius: 8px;
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--wm-text);
}

/*
 * !important auf Hintergrund-/Textfarbe: viele WordPress-Themes bringen
 * eigene globale Regeln fuer button/.active/:hover/:focus mit (oft ein
 * Theme-Akzentton wie Magenta), die sonst unsere Farben ueberschreiben und
 * zu schlecht lesbaren Kombinationen fuehren (siehe waldemaster-magic-items
 * public.css fuer denselben, bereits bekannten Fall).
 */
.wm-btn{
  padding: 10px 18px;
  border-radius: 4px;
  border: 1px solid var(--wm-teal);
  background: #fff !important;
  color: var(--wm-teal) !important;
  font-weight: 700;
  letter-spacing: .2px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height: 40px;
  font-family: inherit;
}
.wm-btn:hover{ background: var(--wm-teal) !important; color: var(--wm-on-teal) !important; }
.wm-btn:disabled{ opacity: .55; cursor: not-allowed; }
.wm-btn:disabled:hover:not(.wm-btn-primary){ background: #fff !important; color: var(--wm-teal) !important; }

.wm-btn-primary{
  background: var(--wm-teal) !important;
  color: var(--wm-on-teal) !important;
  border-color: var(--wm-teal);
}
.wm-btn-primary:hover,
.wm-btn-primary:focus,
.wm-btn-primary:active{
  background: var(--wm-teal-light) !important;
  color: var(--wm-on-teal) !important;
  border-color: var(--wm-teal-light);
}
.wm-btn-primary:focus{ outline:none; box-shadow: 0 0 0 3px var(--wm-teal-tint); }

/* Kompakte Variante fuer Inline-Aktionen in Listen (z. B. ein Copy-Button
   pro Zeile in einer laengeren Ergebnisliste) - dieselbe Farblogik wie
   .wm-btn, nur kleinere Masse. */
.wm-btn-sm{
  padding: 4px 10px;
  min-height: 26px;
  font-size: 12px;
}

.wm-card{
  background: var(--wm-surface);
  border: 1px solid var(--wm-divider);
  box-shadow: none;
  border-radius: var(--wm-radius);
  padding: 14px;
}
.wm-card h3{
  margin: 0 0 8px;
  font-size: 11px;
  color: var(--wm-muted);
  text-transform: uppercase;
  letter-spacing: .35px;
  font-weight: 700;
}
.wm-card p{ margin: 0; color: var(--wm-text); line-height: 1.5; font-size: 13.5px; }
.wm-card-accent{ border-color: var(--wm-teal); }

.wm-tag{
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--wm-teal-tint);
  color: var(--wm-teal);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.wm-meta-item{
  background: var(--wm-panel);
  border: 1px solid var(--wm-divider);
  border-radius: 6px;
  padding: 8px 10px;
  display:flex;
  justify-content:space-between;
  gap: 12px;
}
.wm-meta-k{ font-size: 11px; color: var(--wm-muted2); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.wm-meta-v{ font-size: 12px; color: var(--wm-ink); font-weight: 700; }

.wm-toggle{ display:flex; align-items:center; gap: 10px; user-select:none; cursor:pointer; }
.wm-toggle input{ display:none; }
.wm-toggle-ui{
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: #dcdcd4;
  position: relative;
  transition: .2s ease;
}
.wm-toggle-ui::after{
  content:"";
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #fff;
  position:absolute;
  top: 50%;
  left: 3px;
  transform: translateY(-50%);
  transition: .2s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,.2);
}
.wm-toggle input:checked + .wm-toggle-ui{ background: var(--wm-teal); }
.wm-toggle input:checked + .wm-toggle-ui::after{ left: 20px; }
.wm-toggle-text{ font-size: 12.5px; color: var(--wm-ink); font-weight: 700; }

.wm-pill{
  flex: 1 1 110px;
  min-width: 110px;
  appearance:none;
  -webkit-appearance:none;
  border: 1px solid var(--wm-divider);
  background: #fff !important;
  color: var(--wm-muted) !important;
  padding: 10px 12px;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: .2px;
  line-height: 1.25;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
  display:flex;
  align-items:center;
  justify-content:center;
  white-space: normal;
  overflow-wrap: break-word;
  text-align:center;
  font-family: inherit;
}
.wm-pill:hover{ border-color: var(--wm-teal); color: var(--wm-teal) !important; }
.wm-pill.active{
  background: var(--wm-teal) !important;
  border-color: var(--wm-teal);
  color: var(--wm-on-teal) !important;
}

.wm-list{ margin: 0; padding-left: 16px; color: var(--wm-text); }
.wm-list li{ margin: 6px 0; line-height: 1.45; font-size: 13.5px; }
.wm-dim{ color: var(--wm-muted2); }

/*
 * EN/DE-Sprachumschalter (WBT_I18n::toggle_html() + WBT.i18n). Identisch zum
 * Generators-Baustein; !important gegen Theme-Regeln (Magenta) auf
 * button/.active.
 */
.wmg-lang-toggle{
  display:inline-flex;
  border: 1px solid var(--wm-divider);
  border-radius: 4px;
  overflow:hidden;
  align-self:flex-start;
}
.wmg-lang-btn{
  appearance:none;
  -webkit-appearance:none;
  border:0;
  background:#fff !important;
  color: var(--wm-muted) !important;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  padding: 4px 10px;
  min-height: 24px;
  cursor:pointer;
  transition: background .15s ease, color .15s ease;
}
.wmg-lang-btn + .wmg-lang-btn{ border-left: 1px solid var(--wm-divider); }
.wmg-lang-btn:hover{ color: var(--wm-teal) !important; }
.wmg-lang-btn.active{
  background: var(--wm-teal) !important;
  color: var(--wm-on-teal) !important;
}

/* ------------------------------------------------------------------
 * Aktions-Icons (gleiches Muster wie das Import-Icon: Mask ueber
 * currentColor per ::before; uebersteht den EN/DE-Sprachwechsel und
 * folgt der Textfarbe inkl. Hover). Basisregel + je Icon die Mask.
 * ------------------------------------------------------------------ */
#wbtAdd::before, #wbtPartyAdd::before,
#wbtEncLoad::before, #wbtPartyLoad::before, #wbtLoadPartyAcc::before,
#wbtEncDelete::before, #wbtSavePartyAcc::before,
#wbtRollInit::before, #wbtNext::before, #wbtEnd::before{
  content:""; display:inline-block; width:14px; height:14px;
  margin-right:7px; vertical-align:-2px; background:currentColor;
  -webkit-mask-position:center; -webkit-mask-size:contain; -webkit-mask-repeat:no-repeat;
  mask-position:center; mask-size:contain; mask-repeat:no-repeat;
}
#wbtAdd::before, #wbtPartyAdd::before{ -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14'/%3E%3Cpath d='M5 12h14'/%3E%3C/svg%3E"); mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14'/%3E%3Cpath d='M5 12h14'/%3E%3C/svg%3E"); }
#wbtEncLoad::before, #wbtPartyLoad::before, #wbtLoadPartyAcc::before{ -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12'/%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3Cpath d='M5 21h14'/%3E%3C/svg%3E"); mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12'/%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3Cpath d='M5 21h14'/%3E%3C/svg%3E"); }
#wbtEncDelete::before{ -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M8 6V4a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v2'/%3E%3Cpath d='m19 6-1 14a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2L5 6'/%3E%3C/svg%3E"); mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M8 6V4a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v2'/%3E%3Cpath d='m19 6-1 14a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2L5 6'/%3E%3C/svg%3E"); }
#wbtSavePartyAcc::before{ -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z'/%3E%3Cpath d='M17 21v-8H7v8'/%3E%3Cpath d='M7 3v5h8'/%3E%3C/svg%3E"); mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z'/%3E%3Cpath d='M17 21v-8H7v8'/%3E%3Cpath d='M7 3v5h8'/%3E%3C/svg%3E"); }
#wbtRollInit::before{ -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='3'/%3E%3Ccircle cx='8' cy='8' r='1.4' fill='%23000' stroke='none'/%3E%3Ccircle cx='12' cy='12' r='1.4' fill='%23000' stroke='none'/%3E%3Ccircle cx='16' cy='16' r='1.4' fill='%23000' stroke='none'/%3E%3C/svg%3E"); mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='3'/%3E%3Ccircle cx='8' cy='8' r='1.4' fill='%23000' stroke='none'/%3E%3Ccircle cx='12' cy='12' r='1.4' fill='%23000' stroke='none'/%3E%3Ccircle cx='16' cy='16' r='1.4' fill='%23000' stroke='none'/%3E%3C/svg%3E"); }
#wbtNext::before{ -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m13 6 6 6-6 6'/%3E%3C/svg%3E"); mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m13 6 6 6-6 6'/%3E%3C/svg%3E"); }
#wbtEnd::before{ -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6 6 18'/%3E%3Cpath d='m6 6 12 12'/%3E%3C/svg%3E"); mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6 6 18'/%3E%3Cpath d='m6 6 12 12'/%3E%3C/svg%3E"); }

/* Bestiary-Buttons (wbst*, gleiche Optik wie im SRD Compendium). */
#wbstEncSave::before, #wbstEncClear::before, #wbstFilterBtn::before, #wbstResetBtn::before{
  content:""; display:inline-block; width:14px; height:14px;
  margin-right:7px; vertical-align:-2px; background:currentColor;
  -webkit-mask-position:center; -webkit-mask-size:contain; -webkit-mask-repeat:no-repeat;
  mask-position:center; mask-size:contain; mask-repeat:no-repeat;
}
#wbstEncSave::before{ -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z'/%3E%3Cpath d='M17 21v-8H7v8'/%3E%3Cpath d='M7 3v5h8'/%3E%3C/svg%3E"); mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z'/%3E%3Cpath d='M17 21v-8H7v8'/%3E%3Cpath d='M7 3v5h8'/%3E%3C/svg%3E"); }
#wbstEncClear::before{ -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M8 6V4a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v2'/%3E%3Cpath d='m19 6-1 14a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2L5 6'/%3E%3C/svg%3E"); mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M8 6V4a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v2'/%3E%3Cpath d='m19 6-1 14a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2L5 6'/%3E%3C/svg%3E"); }
#wbstFilterBtn::before{ -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 3H2l8 9.5V19l4 2v-8.5z'/%3E%3C/svg%3E"); mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 3H2l8 9.5V19l4 2v-8.5z'/%3E%3C/svg%3E"); }
#wbstResetBtn::before{ -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4v6h6'/%3E%3Cpath d='M3.5 15a9 9 0 1 0 2.1-9.4L3 10'/%3E%3C/svg%3E"); mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4v6h6'/%3E%3Cpath d='M3.5 15a9 9 0 1 0 2.1-9.4L3 10'/%3E%3C/svg%3E"); }
