/* v3 — eigenes Design (nicht Streamlit-Palette) */

:root,
html.theme-dark {
  --wos-bg: #0c1222;
  --wos-bg-accent: radial-gradient(ellipse 120% 80% at 50% -20%, rgba(99, 102, 241, 0.22), transparent 55%);
  --wos-surface: #151d33;
  --wos-surface-elevated: #1c2642;
  --wos-five-star-bg: rgba(148, 163, 184, 0.2);
  --wos-five-star-border: rgba(148, 163, 184, 0.38);
  --wos-text: #e8ecf4;
  --wos-muted: #94a3b8;
  --wos-border: rgba(148, 163, 184, 0.22);
  --wos-link: #a5b4fc;
  --wos-accent: #6366f1;
  --wos-accent-hover: #818cf8;
  --wos-topbar-bg: rgba(12, 18, 34, 0.92);
  --wos-tab-active: #6366f1;
  --wos-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  --wos-card-shadow: 0 1px 3px rgba(0, 0, 0, 0.25), 0 8px 28px rgba(0, 0, 0, 0.2);
}

html.theme-light {
  --wos-bg: #eef2f7;
  --wos-bg-accent: radial-gradient(ellipse 120% 70% at 50% -15%, rgba(99, 102, 241, 0.12), transparent 50%);
  --wos-surface: #ffffff;
  --wos-surface-elevated: #f8fafc;
  --wos-five-star-bg: #e2e8f0;
  --wos-five-star-border: #cbd5e1;
  --wos-text: #0f172a;
  --wos-muted: #64748b;
  --wos-border: rgba(15, 23, 42, 0.12);
  --wos-link: #4338ca;
  --wos-accent: #4f46e5;
  --wos-accent-hover: #6366f1;
  --wos-topbar-bg: rgba(255, 255, 255, 0.94);
  --wos-tab-active: #4f46e5;
  --wos-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
  --wos-card-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.06);
}

html {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

body {
  background: var(--wos-bg);
  background-image: var(--wos-bg-accent);
  color: var(--wos-text);
  min-height: 100vh;
}

.wos-shell {
  max-width: 96rem;
  margin: 0 auto;
  padding: 0 1rem 2rem;
}

.wos-topbar--shell {
  position: sticky;
  top: 0;
  z-index: 50;
  margin: 0 -1rem;
  padding: 0.75rem 1rem;
  background: var(--wos-topbar-bg);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--wos-border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
}

.wos-app-body {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-top: 1rem;
  position: relative;
}

.wos-sidebar {
  --wos-sidebar-width: 15.5rem;
  --wos-nav-pad-x: 0.65rem;
  --wos-nav-icon-w: 1.25rem;
  --wos-nav-gap: 0.5rem;
  --wos-nav-text-col: calc(var(--wos-nav-pad-x) + var(--wos-nav-icon-w) + var(--wos-nav-gap));
  --wos-nav-depth3: calc(var(--wos-nav-text-col) + 1.25rem);
  flex: 0 0 var(--wos-sidebar-width);
  width: var(--wos-sidebar-width);
  position: sticky;
  top: 4.5rem;
  align-self: flex-start;
  padding: 0.75rem 0;
  max-height: calc(100vh - 5rem);
  overflow-y: auto;
  z-index: 40;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.wos-sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  top: 3.5rem;
  background: rgba(0, 0, 0, 0.45);
  z-index: 35;
  border: none;
  padding: 0;
  margin: 0;
}

.wos-sidebar-edge-toggle {
  flex: 0 0 auto;
  align-self: flex-start;
  position: sticky;
  top: 5.5rem;
  z-index: 41;
  width: 1.35rem;
  height: 2.5rem;
  margin: 0.75rem 0 0 -0.35rem;
  padding: 0;
  border-radius: 0 0.375rem 0.375rem 0;
  border: 1px solid var(--wos-border);
  border-left: none;
  background: var(--wos-surface);
  color: var(--wos-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
  transition: background 0.15s, color 0.15s;
}

.wos-sidebar-edge-toggle:hover {
  background: var(--wos-surface-elevated);
  color: var(--wos-text);
}

.wos-sidebar-edge-icon--open {
  display: none;
}

.wos-shell[data-sidebar="closed"] .wos-sidebar-edge-icon--close {
  display: none;
}

.wos-shell[data-sidebar="closed"] .wos-sidebar-edge-icon--open {
  display: inline;
}

.wos-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.wos-sidebar-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.65rem;
  border-radius: 0.5rem;
  color: var(--wos-text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s;
}

.wos-sidebar-item:hover {
  background: var(--wos-surface);
  border-color: var(--wos-border);
}

.wos-sidebar-item.is-active {
  background: var(--wos-surface);
  border-color: var(--wos-accent);
  color: var(--wos-tab-active);
  font-weight: 600;
}

.wos-sidebar-item--disabled {
  opacity: 0.45;
  cursor: not-allowed;
  flex-wrap: wrap;
}

.wos-sidebar-album {
  margin: 0.15rem 0 0.5rem;
}

.wos-sidebar-album--separated {
  margin-top: 0.35rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--wos-border);
}

.wos-sidebar-album-title {
  display: flex;
  align-items: center;
  gap: var(--wos-nav-gap);
  padding: 0.45rem var(--wos-nav-pad-x);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--wos-text);
}

.wos-sidebar-item--depth2 {
  padding-left: var(--wos-nav-text-col);
  padding-right: var(--wos-nav-pad-x);
  font-size: 0.875rem;
}

.wos-sidebar-item--depth3 {
  padding-left: var(--wos-nav-depth3);
  padding-right: var(--wos-nav-pad-x);
  font-size: 0.8125rem;
}

.wos-sidebar-subgroup {
  margin: 0;
}

.wos-sidebar-subhead {
  cursor: default;
  pointer-events: none;
  border-color: transparent;
  font-weight: 600;
  color: var(--wos-muted);
}

.wos-sidebar-subhead:hover {
  background: transparent;
  border-color: transparent;
}

.wos-sidebar-soon-block {
  margin-top: 0.35rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--wos-border);
}

.wos-sidebar-icon {
  flex-shrink: 0;
  width: var(--wos-nav-icon-w);
  text-align: center;
}

.wos-sidebar-soon {
  margin-left: auto;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--wos-muted);
}

.wos-sidebar-admin {
  margin-top: 0.35rem;
}

.wos-workspace {
  flex: 1;
  min-width: 0;
  padding-left: 0.5rem;
}

.wos-workspace-location {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2rem 0.35rem;
  margin-bottom: 0.65rem;
  padding: 0.45rem 0.75rem;
  border-radius: 0.5rem;
  background: var(--wos-surface);
  border: 1px solid var(--wos-border);
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--wos-text);
}

.wos-topbar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  flex: 0 1 auto;
}

.wos-topbar-nav-toggle {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border-radius: 0.5rem;
  border: 1px solid var(--wos-border);
  background: var(--wos-surface);
  color: var(--wos-text);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  line-height: 1;
}

.wos-topbar-nav-toggle:hover {
  background: var(--wos-surface-elevated);
}

.wos-topbar-nav-icon--back {
  display: none;
}

.wos-topbar-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.35rem;
  font-size: 0.8125rem;
  color: var(--wos-muted);
  min-width: 0;
}

.wos-breadcrumb-sep {
  opacity: 0.55;
}

.wos-breadcrumb-current {
  color: var(--wos-text);
  font-weight: 600;
}

.wos-breadcrumb-link {
  color: var(--wos-link);
  text-decoration: none;
}

.wos-breadcrumb-link:hover {
  text-decoration: underline;
}

/* —— Shell layout modes —— */
.wos-shell[data-sidebar="closed"] .wos-sidebar {
  transform: translateX(calc(-1 * var(--wos-sidebar-width) - 1rem));
  opacity: 0;
  pointer-events: none;
  position: absolute;
}

.wos-shell[data-shell-mode="compact"] .wos-sidebar {
  position: fixed;
  left: 0;
  top: 3.75rem;
  bottom: 0;
  padding: 0.75rem 0.65rem 1.5rem;
  background: var(--wos-bg);
  border-right: 1px solid var(--wos-border);
  box-shadow: var(--wos-shadow);
}

.wos-shell[data-shell-mode="compact"][data-sidebar="open"] .wos-sidebar-backdrop {
  display: block;
}

.wos-shell[data-shell-mode="compact"][data-sidebar="closed"] .wos-sidebar {
  transform: translateX(-110%);
}

.wos-shell[data-shell-mode="compact"] .wos-topbar-nav-toggle {
  display: inline-flex;
}

.wos-shell[data-shell-mode="phone"] .wos-topbar-nav-toggle {
  display: inline-flex;
}

.wos-shell[data-shell-mode="phone"][data-pane="nav"] .wos-topbar-nav-icon--menu {
  display: none;
}

.wos-shell[data-shell-mode="phone"][data-pane="nav"] .wos-topbar-nav-icon--back {
  display: inline;
}

.wos-shell[data-shell-mode="phone"][data-pane="workspace"] .wos-topbar-nav-icon--back {
  display: none;
}

.wos-shell[data-shell-mode="phone"] .wos-sidebar {
  position: fixed;
  left: 0;
  top: 3.75rem;
  bottom: 0;
  width: min(18rem, 88vw);
  max-width: none;
  flex: none;
  padding: 0.75rem 0.65rem 1.5rem;
  background: var(--wos-bg);
  border-right: 1px solid var(--wos-border);
  transform: none;
  opacity: 1;
  pointer-events: auto;
}

.wos-shell[data-shell-mode="phone"][data-pane="workspace"] .wos-sidebar {
  display: none;
}

.wos-shell[data-shell-mode="phone"][data-pane="nav"] .wos-workspace {
  display: none;
}

.wos-shell[data-shell-mode="phone"][data-pane="nav"] .wos-sidebar-edge-toggle {
  display: none;
}

.wos-shell[data-shell-mode="compact"] .wos-sidebar-edge-toggle,
.wos-shell[data-shell-mode="phone"] .wos-sidebar-edge-toggle {
  display: none;
}

@media (min-width: 901px) {
  .wos-topbar-breadcrumb {
    display: none;
  }
}

@media (max-width: 900px) {
  .wos-topbar-title {
    display: none;
  }

  .wos-topbar-breadcrumb {
    display: flex;
  }
}

.wos-workspace-toolbar {
  margin-bottom: 0.75rem;
  padding: 0.55rem 0.85rem;
  border-radius: 0.5rem;
  background: var(--wos-surface);
  border: 1px solid var(--wos-border);
}

.wos-shell-account-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

.wos-shell-account-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--wos-muted);
}

.wos-shell-account-select {
  min-width: 8rem;
  padding: 0.3rem 0.5rem;
  border-radius: 0.375rem;
  border: 1px solid var(--wos-border);
  background: var(--wos-surface-elevated);
  color: var(--wos-text);
  font-size: 0.875rem;
}

.wos-shell-account-hint {
  font-size: 0.75rem;
  color: var(--wos-muted);
}

.wos-album-chrome {
  margin-bottom: 0.25rem;
}

.wos-workspace-main {
  margin-top: 0.75rem;
}

.wos-dashboard-heading {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.wos-dashboard-lead {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  color: var(--wos-muted);
}

.wos-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
  gap: 0.75rem;
}

.wos-dashboard-tile {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem;
  border-radius: 0.625rem;
  border: 1px solid var(--wos-border);
  background: var(--wos-surface-elevated);
  text-decoration: none;
  color: inherit;
  min-height: 6.5rem;
}

.wos-dashboard-tile--active {
  border-color: var(--wos-accent);
  box-shadow: var(--wos-card-shadow);
}

.wos-dashboard-tile--active:hover {
  border-color: var(--wos-accent-hover);
}

.wos-dashboard-tile--soon {
  opacity: 0.5;
}

.wos-dashboard-tile-icon {
  font-size: 1.35rem;
}

.wos-dashboard-tile-title {
  font-weight: 600;
  font-size: 0.95rem;
}

.wos-dashboard-tile-desc,
.wos-dashboard-tile-soon {
  font-size: 0.78rem;
  color: var(--wos-muted);
}

/* Legacy sticky chrome (Album-Tabs innerhalb Workspace) */
.wos-app-chrome {
  position: sticky;
  top: 0;
  z-index: 40;
  margin: 0 -1rem;
  padding: 0 1rem 0.75rem;
  background: var(--wos-bg);
  border-bottom: 1px solid var(--wos-border);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

html.theme-dark .wos-app-chrome {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

/* —— Zeile 1: Top-Leiste —— */
.wos-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 0.75rem 0;
  background: transparent;
  border-bottom: none;
  box-shadow: none;
  backdrop-filter: none;
}

.wos-topbar-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--wos-text);
}

.wos-topbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  font-size: 0.875rem;
}

.wos-lang-group {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.15rem;
  border-radius: 9999px;
  background: var(--wos-surface);
  border: 1px solid var(--wos-border);
}

.wos-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.55rem;
  border-radius: 9999px;
  color: var(--wos-muted);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}

.wos-lang-btn:hover {
  color: var(--wos-text);
  background: var(--wos-surface-elevated);
}

.wos-lang-btn.is-active {
  color: #fff;
  background: var(--wos-accent);
}

.wos-user-badge {
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  background: var(--wos-surface);
  border: 1px solid var(--wos-border);
  font-weight: 600;
  color: var(--wos-text);
}

.wos-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  border: 1px solid var(--wos-border);
  background: var(--wos-surface);
  color: var(--wos-accent);
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}

.wos-theme-toggle:hover {
  background: var(--wos-accent);
  color: #fff;
  border-color: var(--wos-accent);
}

html.theme-light .wos-theme-toggle {
  color: #d97706;
}

html.theme-light .wos-theme-toggle:hover {
  background: #f59e0b;
  border-color: #f59e0b;
  color: #fff;
}

.wos-topbar-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  border: 1px solid var(--wos-border);
  background: var(--wos-surface);
  color: var(--wos-text);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}

.wos-topbar-search-btn:hover {
  background: var(--wos-accent);
  color: #fff;
  border-color: var(--wos-accent);
}

.wos-global-search {
  z-index: 60;
}

.wos-global-search-dialog {
  max-width: 28rem;
}

.wos-global-search-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.wos-global-search-result {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--wos-border);
}

.wos-global-search-result-message {
  margin: 0 0 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.45;
}

.wos-global-search-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* —— Zeile 2: Tabs —— */
.wos-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin: 0.75rem 0 0;
  padding-bottom: 0;
  border-bottom: 2px solid var(--wos-border);
}

.wos-nav-tab {
  display: inline-block;
  padding: 0.5rem 1rem;
  margin-bottom: -2px;
  border-radius: 0.375rem 0.375rem 0 0;
  color: var(--wos-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  border: 2px solid transparent;
  border-bottom: none;
  transition: color 0.15s, background 0.15s;
}

.wos-nav-tab:hover {
  color: var(--wos-text);
  background: var(--wos-surface);
}

.wos-nav-tab.is-active {
  color: var(--wos-tab-active);
  background: var(--wos-surface);
  border-color: var(--wos-border);
  border-bottom: 2px solid var(--wos-surface);
  font-weight: 600;
  box-shadow: inset 0 -2px 0 var(--wos-tab-active);
}

/* —— Zeile 3: Hilfetext —— */
.wos-tab-hint {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--wos-muted);
  margin: 0.75rem 0 0;
  padding: 0.65rem 0.85rem;
  border-radius: 0.5rem;
  background: var(--wos-surface);
  border: 1px solid var(--wos-border);
}

/* —— Zeile 4: Inhalt —— */
.wos-content-card {
  background: var(--wos-surface);
  border: 1px solid var(--wos-border);
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
  box-shadow: var(--wos-card-shadow);
  margin-top: 0.75rem;
}

.wos-footer-meta {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.6875rem;
  color: var(--wos-muted);
  letter-spacing: 0.04em;
}

/* Legacy aliases */
.wos-header-link {
  color: var(--wos-link);
  text-decoration: none;
}

.wos-table-wrap {
  position: relative;
  max-height: 520px;
  overflow: auto;
  border: 1px solid var(--wos-border);
  border-radius: 0.5rem;
  background: var(--wos-surface-elevated);
}

.wos-table-wrap--status-overview {
  max-height: none;
}

.wos-table-wrap--status-detail {
  max-height: none;
}

.wos-table-wrap.is-overflowing::before {
  content: "";
  position: sticky;
  display: block;
  height: 1.2rem;
  margin-top: -1.2rem;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0), var(--wos-surface-elevated));
  pointer-events: none;
  z-index: 2;
}

.wos-table-wrap.is-overflowing::after {
  content: "↕";
  position: absolute;
  right: 0.45rem;
  bottom: 0.35rem;
  font-size: 0.72rem;
  color: var(--wos-muted);
  border: 1px solid var(--wos-border);
  border-radius: 999px;
  background: var(--wos-surface);
  line-height: 1;
  padding: 0.18rem 0.32rem;
  pointer-events: none;
  z-index: 3;
}

.wos-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.wos-table th,
.wos-table td {
  padding: 0.4rem 0.6rem;
  border-bottom: 1px solid var(--wos-border);
  text-align: left;
}

.wos-table th {
  position: sticky;
  top: 0;
  background: var(--wos-surface-elevated);
  z-index: 1;
  font-weight: 600;
  color: var(--wos-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.wos-table tbody tr:hover {
  background: rgba(99, 102, 241, 0.06);
}

.wos-table--stammdaten-overview .wos-stammdaten-overview-count {
  vertical-align: top;
  white-space: nowrap;
}

.wos-table--stammdaten-overview .wos-stammdaten-overview-orphans {
  vertical-align: top;
  min-width: 14rem;
}

.wos-table--stammdaten-overview .wos-stammdaten-overview-orphans ul {
  list-style: disc;
}

/* Allianz: Mitglieder-Roster */
.wos-table-wrap--alliance {
  margin-bottom: 0.75rem;
}

.wos-table--alliance {
  font-size: 0.8125rem;
  width: 100%;
  table-layout: auto;
}

.wos-table--members .wos-col-oven,
.wos-table--members .wos-col-rank,
.wos-table--members .wos-col-usage,
.wos-table--members .wos-col-power-pos {
  width: 1%;
  white-space: nowrap;
}

.wos-table--members .wos-col-power-pos {
  text-align: right;
  padding-right: 0.35rem;
  color: var(--wos-muted);
}

.wos-table--members .wos-col-id {
  width: 1%;
  white-space: nowrap;
}

.wos-table--members .js-member-power-input {
  width: 4.75rem;
  min-width: 4.75rem;
  text-align: right;
}

.wos-table--alliance-overview .wos-col-tag,
.wos-table--alliance-overview .wos-col-count {
  width: 1%;
  white-space: nowrap;
}

.wos-table--alliance-overview th.wos-col-count,
.wos-table--alliance-overview td.wos-col-count {
  text-align: left;
}

.wos-table--alliance-overview tbody tr.wos-alliance-overview-row--special-first td {
  border-top: 2px solid var(--wos-border);
}

.wos-alliance-overview-row--selected {
  background: color-mix(in srgb, var(--wos-accent) 12%, transparent);
}

.wos-msg-warning {
  background: color-mix(in srgb, var(--wos-warning, #ca8a04) 12%, var(--wos-surface));
  border: 1px solid color-mix(in srgb, var(--wos-warning, #ca8a04) 35%, var(--wos-border));
  color: var(--wos-text);
  padding: 0.65rem 0.85rem;
  border-radius: 0.5rem;
  margin-bottom: 0.75rem;
}

.wos-table--alliance th,
.wos-table--alliance td {
  padding: 0.25rem 0.45rem;
  vertical-align: middle;
}

.wos-table--alliance .wos-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.wos-alliance-row-actions {
  white-space: normal;
  min-width: 18rem;
}

.wos-alliance-action-groups {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.65rem;
}

/* UI library: Feld + Symbol-Aktion — kompaktes Feld (2.125rem), großes Symbol (1.3rem).
   Siehe docs/UI-ZIELBILD.md → Input-Action-Group. Aliase: wos-alliance-action-* */
.wos-input-action-group,
.wos-alliance-action-group {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--wos-border);
  border-radius: 0.375rem;
  overflow: hidden;
  background: var(--wos-surface-elevated);
}

.wos-alliance-action-group--buttons {
  border: none;
  background: transparent;
  gap: 0.35rem;
  overflow: visible;
}

.wos-alliance-action-pair {
  display: inline-flex;
  align-items: stretch;
  margin: 0;
}

.wos-input-action-group > * + *,
.wos-alliance-action-pair > * + * {
  border-left: 1px solid var(--wos-border);
}

.wos-input-action-group .wos-field,
.wos-alliance-action-group .wos-field {
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.wos-input-action-btn,
.wos-alliance-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.35rem;
  padding: 0.35rem 0.5rem;
  margin: 0;
  border: none;
  border-radius: 0;
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1;
  color: var(--wos-text);
  background: var(--wos-surface);
  text-decoration: none;
  cursor: pointer;
}

a.wos-input-action-btn:hover,
.wos-input-action-btn:hover,
.wos-alliance-action-btn:hover {
  background: rgba(124, 179, 255, 0.18);
  color: var(--wos-accent, #7cb3ff);
}

.theme-light .wos-input-action-btn,
.theme-light .wos-alliance-action-btn {
  color: #1e293b;
}

.theme-light a.wos-input-action-btn:hover,
.theme-light .wos-input-action-btn:hover,
.theme-light .wos-alliance-action-btn:hover {
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
}

.wos-input-action-btn.is-disabled {
  opacity: 0.35;
  pointer-events: none;
  cursor: default;
}

.wos-alliance-inline-form {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0 0.15rem 0.15rem 0;
}

.wos-field--tag {
  width: 3.1rem;
  min-width: 3.1rem;
  max-width: 3.1rem;
  padding-left: 0.35rem;
  padding-right: 0.35rem;
  text-align: center;
}

.wos-field--kingdom {
  width: 3.5rem;
  min-width: 3.5rem;
  max-width: 3.5rem;
  padding-left: 0.35rem;
  padding-right: 0.35rem;
  text-align: center;
}

.wos-sort-link {
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.wos-sort-link:hover {
  text-decoration: underline;
  color: var(--wos-accent, #7cb3ff);
}

.wos-sort-link--active {
  font-weight: 700;
  color: var(--wos-accent, #7cb3ff);
}

.wos-table--alliance th.wos-sortable {
  white-space: nowrap;
}

.wos-alliance-special-block {
  margin-top: 0.35rem;
  padding: 0.5rem 0.65rem;
  border: 1px dashed var(--wos-border);
  border-radius: 0.5rem;
  background: var(--wos-surface);
}

.wos-alliance-rank {
  display: inline-block;
  min-width: 2rem;
  padding: 0.05rem 0.35rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
}

.wos-alliance-rank--r1 {
  background: rgba(248, 113, 113, 0.22);
  color: #fecaca;
}

.wos-alliance-rank--r2 {
  background: rgba(250, 204, 21, 0.22);
  color: #fde68a;
}

.wos-alliance-rank--r3 {
  background: rgba(96, 165, 250, 0.22);
  color: #bfdbfe;
}

.wos-alliance-rank--r4 {
  background: rgba(167, 139, 250, 0.22);
  color: #ddd6fe;
}

.wos-alliance-rank--r5 {
  background: rgba(74, 222, 128, 0.22);
  color: #bbf7d0;
}

.theme-light .wos-alliance-rank--r1 { color: #991b1b; }
.theme-light .wos-alliance-rank--r2 { color: #854d0e; }
.theme-light .wos-alliance-rank--r3 { color: #1e40af; }
.theme-light .wos-alliance-rank--r4 { color: #5b21b6; }
.theme-light .wos-alliance-rank--r5 { color: #166534; }

.wos-form--alliance-member .wos-form-row,
.wos-form--alliance .wos-form-row {
  display: grid;
  grid-template-columns: var(--wos-island-label-width, 6.75rem) minmax(0, 14rem);
  gap: 0.35rem 0.75rem;
  align-items: center;
  margin-bottom: 0.45rem;
}

.wos-form--alliance {
  max-width: 28rem;
}

.wos-form--heroes-stammdaten {
  max-width: 42rem;
}

.wos-form--heroes-stammdaten .wos-field--compact {
  max-width: none;
}

.wos-heroes-stammdaten-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1.25rem 1.5rem;
}

.wos-heroes-stammdaten-fields {
  flex: 1 1 16rem;
  min-width: 0;
  max-width: 28rem;
}

.wos-heroes-stammdaten-image {
  flex: 0 0 auto;
  margin: 0;
}

.wos-form--heroes-stammdaten .wos-form-static.wos-field {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  min-height: 2.125rem;
  padding: 0.375rem 0.65rem;
  font-size: 0.875rem;
  line-height: 1.25;
  background: var(--wos-surface-2, rgba(0, 0, 0, 0.04));
  border: 1px solid var(--wos-border);
  border-radius: 0.375rem;
  color: var(--wos-muted);
}

.wos-alliance-giftcode-option {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--wos-border, rgba(128, 128, 128, 0.25));
}

.wos-alliance-giftcode-option__label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  cursor: pointer;
}

.wos-alliance-giftcode-option__hint {
  margin: 0.35rem 0 0 1.5rem;
}

.wos-form--alliance-member .wos-form-static--row {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  min-height: 2.125rem;
  font-size: 0.875rem;
  line-height: 1.25;
}

.wos-col-check {
  width: 2.75rem;
  text-align: center;
  white-space: nowrap;
}

.wos-form--alliance-member .wos-form-label,
.wos-form--alliance .wos-form-label {
  font-size: 0.8125rem;
  color: var(--wos-muted);
}

.wos-form--alliance-member .wos-field--compact,
.wos-form--alliance .wos-field--compact {
  width: 100%;
  max-width: 14rem;
}

.wos-form--inline .wos-field--compact {
  min-width: 12rem;
}

.wos-alliance-member-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
}

.wos-alliance-member-actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.wos-alliance-member-actions__form {
  display: inline-flex;
  margin: 0;
}

.wos-inline-form {
  display: inline-flex;
  margin: 0;
}

.wos-alliance-member-toolbar--kalender .wos-toolbar-field--toolbar-end {
  margin-left: auto;
}

.wos-toolbar-field {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.wos-toolbar-field > span,
.wos-toolbar-field > label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--wos-muted);
  white-space: nowrap;
  margin: 0;
}

.wos-toolbar-field .wos-field--compact {
  width: auto;
  min-width: 0;
}

/* Toolbar: Select und Textfeld gleiche Höhe — native Select ignoriert oft vertikales Padding. */
.wos-toolbar-field input.wos-field,
.wos-toolbar-field select.wos-field {
  box-sizing: border-box;
  height: 2.125rem;
  min-height: 2.125rem;
  padding: 0.375rem 0.65rem;
  font-size: 0.875rem;
  line-height: 1.25;
}

.wos-toolbar-field select.wos-field {
  padding-right: 1.75rem;
  min-width: 10rem;
}

.wos-toolbar-field--xs .wos-field {
  width: 4.5rem;
}

.wos-toolbar-field--sm .wos-field {
  width: 8.5rem;
}

.wos-toolbar-field--md .wos-field {
  width: 11rem;
}

.wos-field--search {
  min-width: 14rem;
}

.wos-form--alliance-member .wos-form-field-col,
.wos-form--alliance .wos-form-field-col {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.wos-field-hint {
  font-size: 0.75rem;
  color: var(--wos-muted);
  line-height: 1.35;
}

.wos-alliance-name-tag {
  font-size: 0.75rem;
  opacity: 0.85;
  margin-right: 0.1rem;
}

.wos-character-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 0.75rem;
}

.wos-panel-hint {
  font-size: 0.75rem;
  color: var(--wos-muted);
  line-height: 1.35;
  margin: 0 0 0.5rem;
}

/* Kompakt: Label über Feld; mehrere Felder pro Zeile — nicht pauschal Label|Inhalt nebeneinander */
.wos-field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr));
  gap: 0.55rem 0.85rem;
  max-width: 34rem;
}

.wos-field-grid--narrow {
  max-width: 28rem;
}

.wos-field-cell {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.wos-field-cell .wos-form-label {
  font-size: 0.75rem;
  color: var(--wos-muted);
  line-height: 1.25;
}

.wos-field-cell .wos-field {
  width: 100%;
  max-width: 100%;
}

/* Style guide: gleiche Höhe für Input und Select in Feld-Rastern (s. docs/UI-ZIELBILD.md). */
.wos-field-grid .wos-field-cell input.wos-field:not([type="checkbox"]):not([type="radio"]),
.wos-field-grid .wos-field-cell select.wos-field {
  box-sizing: border-box;
  height: 2.125rem;
  min-height: 2.125rem;
  padding: 0.375rem 0.65rem;
  font-size: 0.875rem;
  line-height: 1.25;
}

.wos-field-grid .wos-field-cell select.wos-field {
  padding-right: 1.75rem;
}

.wos-bilingual-primary {
  display: block;
  font-weight: 600;
  line-height: 1.25;
}

.wos-bilingual-secondary {
  display: block;
  margin-top: 0.05rem;
  font-size: 0.6875rem;
  color: var(--wos-muted);
  line-height: 1.2;
}

.wos-field-cell--xs {
  max-width: 5.5rem;
}

.wos-field-cell--sm {
  max-width: 9rem;
}

.wos-field-cell--md {
  max-width: 11rem;
}

.wos-field-cell--grow {
  grid-column: span 2;
  min-width: 10rem;
}

.wos-field-cell--full {
  grid-column: 1 / -1;
}

.wos-field-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.55rem 0.85rem;
  padding: 0.65rem 0.85rem;
  background: var(--wos-surface-elevated);
  border: 1px solid var(--wos-border);
  border-radius: 0.5rem;
  max-width: 34rem;
}

.wos-field-strip.wos-character-placement {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  max-width: none;
  width: 100%;
}

.wos-field-strip.wos-character-placement .wos-character-placement-readonly {
  width: 100%;
}

/* Style guide: Staat/Spiel-ID — type=text + wos-field--plain-num, keine Number-Spinner. */
input.wos-field.wos-field--plain-num,
.wos-form--character .wos-field--plain-num {
  -moz-appearance: textfield;
  appearance: textfield;
}

input.wos-field.wos-field--plain-num::-webkit-outer-spin-button,
input.wos-field.wos-field--plain-num::-webkit-inner-spin-button,
.wos-form--character .wos-field--plain-num::-webkit-outer-spin-button,
.wos-form--character .wos-field--plain-num::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.wos-form--character .wos-form-static {
  font-size: 0.875rem;
}

/* Charakter-Formular: Eingaben wie Placement-Zeile (2.125rem); Notiz bleibt mehrzeilig. */
.wos-form--character .wos-field-cell input.wos-field,
.wos-form--character .wos-field-cell select.wos-field {
  box-sizing: border-box;
  height: 2.125rem;
  min-height: 2.125rem;
  padding: 0.375rem 0.65rem;
  font-size: 0.875rem;
  line-height: 1.25;
}

.wos-form--character .wos-field-cell select.wos-field {
  padding-right: 1.75rem;
}

.wos-form--character .wos-field-cell textarea.wos-field {
  height: auto;
  min-height: 0;
  padding: 0.45rem 0.6rem;
  font-size: 0.875rem;
  line-height: 1.35;
  resize: vertical;
}

.wos-form--character .wos-field-cell .wos-form-static {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  min-height: 2.125rem;
  padding: 0 0.65rem;
  border: 1px solid transparent;
  border-radius: 0.375rem;
}

.wos-power-label-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
}

.wos-power-history-link {
  color: var(--wos-muted);
  text-decoration: none;
}

.wos-power-history-link:hover {
  text-decoration: underline;
}

.wos-form--character .wos-field-cell--furnace-compact {
  max-width: 7rem;
}

.wos-form--character .wos-field-cell--location-compact {
  max-width: 8rem;
}

.wos-character-power-history-table th,
.wos-character-power-history-table td {
  font-size: 0.75rem;
}

.wos-character-admin-block {
  grid-column: 1 / -1;
  padding-top: 0.35rem;
  border-top: 1px dashed var(--wos-border);
  margin-top: 0.15rem;
}

.wos-character-admin-subtitle {
  font-size: 0.8125rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
  color: var(--wos-text);
}

.wos-character-admin-block--planned {
  opacity: 0.72;
}

.wos-character-placement-readonly {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.875rem;
  color: var(--wos-muted);
}

.wos-character-module-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}

.wos-character-module-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  cursor: pointer;
  white-space: nowrap;
}

.wos-character-module-chip input[type="checkbox"] {
  margin: 0;
}

.wos-character-panel {
  padding: 0.75rem 1rem;
}

.wos-character-panel-title {
  font-size: 0.875rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.wos-character-meta div,
.wos-character-usage div {
  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: 0.35rem 0.75rem;
  margin-bottom: 0.35rem;
}

.wos-character-meta dt,
.wos-character-usage dt {
  color: var(--wos-muted);
}

.wos-character-alias {
  font-size: 0.8125rem;
}

.wos-alliance-delegation-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  font-size: 0.875rem;
  line-height: 1.4;
}

.wos-alliance-delegation-line__label {
  color: var(--wos-muted);
  font-weight: 500;
}

.wos-alliance-delegation-line__sep {
  color: var(--wos-muted);
  user-select: none;
}

.wos-alliance-delegation-chips {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  align-items: center;
}

.wos-alliance-delegation-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.1rem;
}

.wos-alliance-delegation-chip-form {
  display: inline-flex;
  margin: 0;
}

.wos-alliance-delegation-chip-remove {
  border: none;
  background: transparent;
  color: var(--wos-muted);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0 0.15rem;
}

.wos-alliance-delegation-chip-remove:hover {
  color: var(--wos-text);
}

.wos-alliance-delegation-add-inline {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
}

.wos-field--delegation-pick {
  width: auto;
  min-width: 7rem;
  max-width: 11rem;
}

.wos-alliance-delegation-add-details {
  display: inline-flex;
  align-items: center;
}

.wos-alliance-delegation-add-details > summary {
  list-style: none;
  cursor: pointer;
}

.wos-alliance-delegation-add-details > summary::-webkit-details-marker {
  display: none;
}

.wos-alliance-delegation-add-details[open] > .wos-alliance-delegation-add-inline {
  margin-left: 0.35rem;
}

.wos-alliance-role-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.25rem;
  padding: 0 0.3rem;
  font-size: 0.625rem;
  font-weight: 700;
  line-height: 1.25rem;
  border-radius: 0.25rem;
  vertical-align: middle;
  color: var(--wos-accent-contrast, #fff);
  background: var(--wos-accent);
}

.wos-alliance-role-badge--admin {
  background: var(--wos-muted);
  color: var(--wos-bg, #fff);
}

.wos-character-form-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding-top: 0.75rem;
  margin-top: 0.25rem;
  border-top: 1px solid var(--wos-border);
}

.wos-form-row--checkbox {
  margin-bottom: 0.5rem;
}

.wos-character-alias-form {
  max-width: 28rem;
}

.wos-field-disabled {
  opacity: 0.65;
}

.wos-field-disabled input[type="checkbox"]:disabled {
  cursor: not-allowed;
}

.wos-usage-badge {
  display: inline-block;
  font-size: 1.05rem;
  line-height: 1;
  margin-right: 0.15rem;
}

.wos-character-usage-badges {
  white-space: nowrap;
}

.wos-link {
  color: var(--wos-accent, #7cb3ff);
  text-decoration: none;
}

.wos-link:hover {
  text-decoration: underline;
}

/* Insel: kompakte Tabelle, Typ-Gruppierung wie in Numbers */
.wos-table-wrap--island {
  margin-bottom: 0.75rem;
}

.wos-table--island {
  font-size: 0.8125rem;
}

.wos-table--island th,
.wos-table--island td {
  padding: 0.22rem 0.4rem;
  vertical-align: middle;
}

.wos-table--island th {
  font-size: 0.6875rem;
  padding-top: 0.3rem;
  padding-bottom: 0.3rem;
}

.wos-table--island .wos-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.wos-table--island th.wos-num {
  text-align: right;
}

.wos-island-data-warn {
  margin-left: 0.25rem;
  color: var(--wos-danger, #c53030);
  font-size: 0.75rem;
}

.wos-table--island tr.wos-island-row--data-issue td {
  background: color-mix(in srgb, var(--wos-danger, #c53030) 6%, transparent);
}

.wos-table--island tr.wos-island-row--filtered-out {
  display: none;
}

.wos-stammdaten-issues-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
}

.wos-stammdaten-issues-filter {
  margin: 0;
  color: inherit;
}

.wos-island-boost-line + .wos-island-boost-line {
  margin-top: 0.2rem;
  padding-top: 0.2rem;
  border-top: 1px solid var(--wos-border);
}

.wos-building-boost-row {
  padding: 0;
  border: none;
  border-radius: 0;
}

.wos-form--island-building .wos-building-boosts-grid {
  width: 100%;
  max-width: 42rem;
}

.wos-form--island-building .wos-building-boosts-block {
  align-items: flex-start;
  margin-bottom: 0;
}

.wos-form--island-building .wos-building-boosts-section-label {
  padding-top: 0.15rem;
}

.wos-form--island-building .wos-building-boosts-panel {
  flex: 1 1 auto;
  min-width: 0;
}

.wos-form--island-building .wos-building-boosts-add {
  margin-top: 0.35rem;
}

.wos-form--island-building .wos-building-boosts-section {
  margin-bottom: 0.55rem;
}

.wos-form--island-building .wos-building-boosts-grid-head,
.wos-form--island-building .wos-building-boost-row {
  display: grid;
  grid-template-columns: minmax(11rem, 1.4fr) minmax(9rem, 1fr) 5.5rem 2rem;
  gap: 0.35rem 0.75rem;
  align-items: center;
}

.wos-form--island-building .wos-building-boosts-grid-head {
  margin-bottom: 0.15rem;
}

.wos-form--island-building .wos-building-boosts-grid-head > span:not(.wos-building-boosts-grid-actions) {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--wos-muted);
}

.wos-form--island-building .wos-building-boost-row {
  padding: 0.2rem 0;
  border-top: 1px solid var(--wos-border);
}

.wos-form--island-building .wos-building-boost-row:first-child {
  border-top: none;
  padding-top: 0;
}

.wos-form--island-building .wos-building-boost-row select,
.wos-form--island-building .wos-building-boost-row input[type="number"] {
  width: 100%;
  max-width: none;
  min-width: 0;
}

.wos-form--island-building .wos-building-boosts-grid-actions {
  display: flex;
  justify-content: center;
}

/* Insel Gebäude-Formular: Label links, kompaktes Feld rechts (kürzer, nicht breiter) */
.wos-form--island-building {
  --wos-island-label-width: 6.75rem; /* längstes Label: Bonus/Level */
}

.wos-form--island-building .wos-form-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.35rem 1rem;
  margin-bottom: 0.55rem;
}

.wos-form--island-building .wos-form-row label,
.wos-form--island-building .wos-building-boosts-section-label {
  flex: 0 0 var(--wos-island-label-width);
  margin-bottom: 0;
}

.wos-form--island-building .wos-form-row input[type="text"],
.wos-form--island-building .wos-form-row select {
  flex: 0 1 auto;
  width: auto;
  max-width: 28rem;
  min-width: 10rem;
}

.wos-form--island-building .wos-form-row input[type="number"] {
  flex: 0 0 auto;
  width: 5.5rem;
  max-width: 5.5rem;
  -moz-appearance: textfield;
}

.wos-form--island-building .wos-form-row input[type="number"]::-webkit-outer-spin-button,
.wos-form--island-building .wos-form-row input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.wos-table--island-pflegen .wos-island-coins-spent {
  font-weight: 600;
  min-width: 4.5rem;
}

.wos-table--island-pflegen tr.wos-island-row--maxed .wos-island-coins-spent {
  color: var(--wos-text);
}

.wos-table--island th.wos-island-col-boost-value {
  white-space: nowrap;
}

/* Insel pflegen: Gebäude + Level im Fokus, Referenzspalten dezent */
.wos-table--island-pflegen .wos-island-building-cell {
  min-width: 9rem;
  max-width: 14rem;
}

.wos-table--island-pflegen .wos-island-building-primary {
  display: block;
  font-weight: 600;
  line-height: 1.25;
}

.wos-table--island-pflegen .wos-island-building-secondary {
  display: block;
  margin-top: 0.05rem;
  font-size: 0.6875rem;
  color: var(--wos-muted);
  line-height: 1.2;
}

.wos-table--island-pflegen th {
  white-space: nowrap;
  z-index: 2;
}

.wos-table--island-pflegen .wos-island-edit-col {
  text-align: center;
  border-left: 2px solid rgba(99, 102, 241, 0.45);
  border-right: 2px solid rgba(99, 102, 241, 0.45);
  min-width: 6.75rem;
  max-width: 7.5rem;
}

.wos-table--island-pflegen tbody .wos-island-edit-col {
  background: rgba(99, 102, 241, 0.14);
  overflow: hidden;
}

.wos-table--island-pflegen .wos-island-coins-col {
  min-width: 4.5rem;
  padding-right: 0.55rem;
}

.wos-table--island-pflegen thead .wos-island-edit-col {
  color: var(--wos-accent);
  font-weight: 700;
  background: var(--wos-surface-elevated);
  overflow: visible;
}

.wos-table--island-pflegen tbody tr:hover .wos-island-edit-col {
  background: rgba(99, 102, 241, 0.2);
}

.wos-table--island-pflegen .wos-island-percent {
  font-weight: 600;
  min-width: 4rem;
}

.wos-table--island-pflegen .wos-island-ref,
.wos-table--island-pflegen th.wos-island-ref {
  color: var(--wos-muted);
  font-size: 0.75rem;
}

.wos-table--island-pflegen th.wos-island-ref {
  font-size: 0.625rem;
  font-weight: 500;
}

.wos-table--island-pflegen .wos-island-ref-start {
  border-left: 2px solid var(--wos-border);
  padding-left: 0.55rem;
}

.wos-table--island-pflegen th.wos-island-ref-start {
  padding-left: 0.55rem;
}

.wos-table--island-pflegen .wos-level-control {
  justify-content: center;
  gap: 0.25rem;
  max-width: 100%;
  margin: 0 auto;
}

.wos-table--island-pflegen .wos-level-arrows {
  flex-shrink: 0;
}

.wos-table--island-pflegen .wos-level-field {
  width: 2.75rem;
  padding: 0.3rem 0.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border: 2px solid var(--wos-accent);
  background: var(--wos-bg);
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.15);
}

.wos-table--island-pflegen .wos-level-field:focus {
  outline: none;
  border-color: var(--wos-accent);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

.wos-table--island-pflegen .wos-level-arrow {
  min-width: 1.6rem;
  min-height: 1.05rem;
  font-size: 0.7rem;
  color: var(--wos-accent);
}

/* Gebäude auf Max — dezent wie Numbers bedingte Formatierung */
.wos-table--island-pflegen tr.wos-island-row--maxed td {
  background: rgba(34, 197, 94, 0.1);
}

.wos-table--island-pflegen tr.wos-island-row--maxed .wos-island-building-primary,
.wos-table--island-pflegen tr.wos-island-row--maxed .wos-island-percent {
  color: var(--wos-text);
}

.wos-table--island-pflegen tr.wos-island-row--maxed .wos-island-building-secondary,
.wos-table--island-pflegen tr.wos-island-row--maxed .wos-island-ref {
  color: var(--wos-muted);
}

.wos-table--island-pflegen tr.wos-island-row--maxed .wos-island-edit-col {
  background: rgba(34, 197, 94, 0.14);
  border-left-color: rgba(34, 197, 94, 0.45);
  border-right-color: rgba(34, 197, 94, 0.45);
}

.wos-table--island-pflegen tr.wos-island-row--maxed .wos-level-field {
  border-color: rgba(34, 197, 94, 0.65);
  color: var(--wos-text);
  background: var(--wos-bg);
}

.wos-table--island-pflegen tr.wos-island-row--maxed:hover td {
  background: rgba(34, 197, 94, 0.14);
}

.wos-island-detail-lines {
  list-style: none;
  margin: 0;
  padding: 0;
}

.wos-island-detail-line {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.12rem 0;
  font-size: 0.8125rem;
  line-height: 1.3;
}

.wos-island-detail-label {
  color: var(--wos-muted);
  flex: 1 1 auto;
}

.wos-island-detail-value {
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
}

.wos-table--island-pflegen tr.wos-island-row--multi-detail .wos-island-percent {
  text-align: left;
}

.wos-island-points-sum {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem;
  border-radius: 0.45rem;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.28);
}

.wos-island-points-sum-label {
  font-size: 0.75rem;
  color: var(--wos-muted);
}

.wos-island-points-sum-value {
  font-size: 0.9375rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--wos-accent);
}

.wos-island-filter {
  color: var(--wos-muted);
}

.wos-island-type-row td {
  padding: 0.3rem 0.4rem 0.15rem;
  border-bottom: 1px solid var(--wos-border);
  background: rgba(99, 102, 241, 0.1);
  font-weight: 600;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--wos-accent);
}

.wos-island-type-row:hover td {
  background: rgba(99, 102, 241, 0.1);
}

.wos-island-anchor-mark {
  font-size: 0.6875rem;
  color: var(--wos-muted);
  margin-left: 0.15rem;
}

.wos-section-title--compact {
  margin-top: 0;
  margin-bottom: 0.35rem;
}

.wos-workspace-main > .wos-section-title:first-child {
  margin-top: 0;
}

.wos-table--island .wos-level-control {
  gap: 0.2rem;
}

.wos-table--island .wos-level-field {
  width: 2.35rem;
  padding: 0.18rem 0.2rem;
  font-size: 0.8125rem;
  border-radius: 0.35rem;
}

.wos-table--island .wos-level-arrow {
  min-width: 1.4rem;
  min-height: 0.95rem;
  font-size: 0.65rem;
}

.wos-msg {
  padding: 0.55rem 0.85rem;
  border-radius: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
}

.wos-msg-success {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
}

.wos-msg-error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.wos-msg-info {
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.wos-msg-warning {
  background: rgba(234, 179, 8, 0.12);
  border: 1px solid rgba(234, 179, 8, 0.35);
}

.wos-impersonation-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  padding: 0.65rem 0.9rem;
  border-radius: 0.5rem;
  background: rgba(168, 85, 247, 0.14);
  border: 1px solid rgba(168, 85, 247, 0.45);
  font-size: 0.875rem;
}

.wos-impersonation-banner-text {
  margin: 0;
}

.wos-impersonation-banner-form {
  margin: 0;
}

.wos-dialog-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  backdrop-filter: blur(4px);
}

.wos-dialog {
  background: var(--wos-surface);
  border: 1px solid var(--wos-border);
  border-radius: 0.75rem;
  max-width: 42rem;
  width: 95%;
  max-height: 90vh;
  overflow: auto;
  padding: 1.5rem;
  box-shadow: var(--wos-card-shadow);
}

.wos-form-row {
  margin-bottom: 0.75rem;
}

.wos-form-row label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
  color: var(--wos-muted);
}

.wos-form-row input[type="text"],
.wos-form-row input[type="password"],
.wos-form-row input[type="number"],
.wos-form-row input[type="file"],
.wos-form-row select,
.wos-form-row textarea {
  width: 100%;
  max-width: 28rem;
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--wos-border);
  border-radius: 0.375rem;
  background: var(--wos-surface-elevated);
  color: var(--wos-text);
}

.wos-form-row input:focus,
.wos-form-row select:focus,
.wos-form-row textarea:focus {
  outline: 2px solid var(--wos-accent);
  outline-offset: 1px;
}

input.wos-field,
select.wos-field,
textarea.wos-field {
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--wos-border);
  border-radius: 0.375rem;
  background: var(--wos-surface-elevated);
  color: var(--wos-text);
}

input.wos-field:focus,
select.wos-field:focus,
textarea.wos-field:focus {
  outline: 2px solid var(--wos-accent);
  outline-offset: 1px;
}

html.theme-light input.wos-field,
html.theme-light select.wos-field,
html.theme-light textarea.wos-field {
  border-color: var(--wos-five-star-border);
}

.wos-btn {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  border-radius: 0.375rem;
  border: 1px solid var(--wos-border);
  background: var(--wos-surface-elevated);
  color: var(--wos-text);
  cursor: pointer;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.15s, border-color 0.15s;
}

a.wos-btn,
a.wos-btn:visited {
  color: var(--wos-text);
}

.wos-btn:hover {
  border-color: var(--wos-accent);
  color: var(--wos-accent-hover);
}

a.wos-btn:hover {
  color: var(--wos-accent-hover);
}

.wos-btn-primary {
  background: var(--wos-accent);
  border-color: var(--wos-accent);
  color: #fff;
}

a.wos-btn-primary,
a.wos-btn-primary:visited {
  color: #fff;
}

.wos-btn-primary:hover {
  background: var(--wos-accent-hover);
  border-color: var(--wos-accent-hover);
  color: #fff;
}

.wos-btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--wos-muted);
}

.wos-btn-ghost:hover {
  background: var(--wos-surface);
  border-color: var(--wos-border);
  color: var(--wos-text);
}

.wos-btn-sm {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.125rem;
  padding: 0.3rem 0.6rem;
  font-size: 0.8125rem;
}

.wos-toolbar-field--scene .wos-input-action-group .wos-field {
  min-width: 10rem;
  max-width: 18rem;
}

.wos-toolbar-field--search .wos-input-action-group .wos-field--search {
  min-width: 12rem;
  max-width: 18rem;
}

.wos-input-action-btn--decor {
  cursor: default;
  pointer-events: none;
}

.wos-section-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0.75rem 0 0.5rem;
  color: var(--wos-text);
}

.wos-divider {
  border: none;
  border-top: 1px solid var(--wos-border);
  margin: 1.25rem 0;
}

.wos-inline-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin: 0.5rem 0;
}

.wos-inline-checks label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
}

.wos-trade-controls {
  align-items: center;
}

.wos-trade-account {
  gap: 0.5rem;
}

.wos-trade-account-select {
  min-width: 5.5rem;
  height: 2rem;
  padding: 0.2rem 1.6rem 0.2rem 0.55rem;
  border: 1px solid var(--wos-border);
  border-radius: 0.45rem;
  background-color: var(--wos-surface-elevated);
  color: var(--wos-text);
  line-height: 1.2;
  -webkit-appearance: menulist;
  appearance: auto;
}

/* Insel pflegen: Zahl im Rahmen, Pfeile daneben ohne Button-Deko */
.wos-level-control {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.wos-level-field {
  width: 3rem;
  margin: 0;
  padding: 0.35rem 0.4rem;
  border: 1px solid var(--wos-border);
  border-radius: 0.45rem;
  background-color: var(--wos-surface-elevated);
  color: var(--wos-text);
  text-align: center;
  font-size: 0.875rem;
  line-height: 1.2;
  box-sizing: border-box;
  -moz-appearance: textfield;
  appearance: textfield;
}

.wos-level-field::-webkit-outer-spin-button,
.wos-level-field::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.wos-level-field:focus {
  outline: 2px solid var(--wos-accent);
  outline-offset: 1px;
}

.wos-level-arrows {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  flex-shrink: 0;
}

.wos-level-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  min-height: 1.35rem;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--wos-muted);
  font-size: 0.75rem;
  line-height: 1;
  cursor: pointer;
}

.wos-level-arrow:hover,
.wos-level-arrow:focus-visible {
  color: var(--wos-text);
  outline: none;
}

.wos-level-arrow:active {
  color: var(--wos-accent);
}

@media (pointer: coarse) {
  .wos-level-arrow {
    min-width: 2.5rem;
    min-height: 1.6rem;
    font-size: 0.9rem;
  }
}

.wos-trade-mode {
  min-height: 2rem;
  gap: 0.85rem;
}

.wos-trade-mode-option {
  font-size: 1rem;
  line-height: 1.2;
}

.wos-trade-meta {
  font-size: 0.9rem;
  color: var(--wos-muted);
}

/* Status: Übersicht | Detail */
.wos-subnav {
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.2rem;
  border-radius: 0.5rem;
  background: var(--wos-surface-elevated);
  border: 1px solid var(--wos-border);
}

.wos-subnav-tab {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 0.375rem;
  color: var(--wos-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
}

.wos-subnav-tab:hover {
  color: var(--wos-text);
  background: var(--wos-surface);
}

.wos-subnav-tab.is-active {
  color: #fff;
  background: var(--wos-accent);
}

.wos-overview-table th.wos-overview-acc,
.wos-overview-table td.wos-overview-cell {
  text-align: center;
  vertical-align: middle;
}

.wos-overview-acc-name {
  display: block;
  font-weight: 600;
}

.wos-overview-acc-owned {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--wos-muted);
  font-variant-numeric: tabular-nums;
}

.wos-overview-table td.wos-overview-cell {
  padding: 0.3rem 0.45rem;
}

.wos-overview-album {
  font-weight: 500;
  white-space: nowrap;
  text-align: left;
}

.wos-overview-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 1.65rem;
  height: 1.65rem;
  margin: 0 auto;
  padding: 0;
  border-radius: 0.25rem;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  font-size: 0.95rem;
  line-height: 1;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.wos-overview-link:hover {
  border-color: var(--wos-accent);
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.25);
}

.wos-import-preview-table {
  max-height: min(70vh, 40rem);
  overflow: auto;
}

.wos-status-detail-table th.wos-status-detail-acc,
.wos-status-detail-table td.wos-status-detail-cell {
  text-align: center;
  vertical-align: middle;
}

.wos-status-detail-table td.wos-status-detail-cell {
  padding: 0.3rem 0.45rem;
}

.wos-status-cell-picker {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 1.65rem;
  height: 1.65rem;
  margin: 0 auto;
  border-radius: 0.25rem;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.wos-status-cell-display {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.wos-status-trade-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 1.5rem;
  height: 1.5rem;
  padding: 0 0.2rem;
  border-radius: 0.28rem;
  border: 1px solid #15803d;
  background: linear-gradient(180deg, #2dd46a 0%, #16a34a 55%, #15803d 100%);
  color: #ffffff;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.75rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.wos-status-trade-badge.wos-status--trade-many {
  font-size: 0.7rem;
  letter-spacing: -0.04em;
  padding: 0 0.14rem;
}

/* Bulk-Puzzle: breite weiße Leiste — Badge wie im Spiel chunkig, nicht Mini-Pill */
.wos-puzzle-status-picker.wos-status-cell-picker {
  height: 1.85rem;
}

.wos-puzzle-status-picker .wos-status-trade-badge {
  min-width: 2.65rem;
  height: 1.6rem;
  font-size: 0.875rem;
  border-radius: 0.32rem;
}

.wos-puzzle-status-picker .wos-status-trade-badge.wos-status--trade-many {
  font-size: 0.8125rem;
}

.wos-puzzle-status-picker .wos-status-cell-display {
  font-size: 1.25rem;
}

.wos-trade-status-readonly .wos-status-trade-badge {
  vertical-align: middle;
}

.wos-status-cell-select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
  border: none;
  background: transparent;
}

.wos-status-cell-picker:hover,
.wos-status-cell-picker:focus-within {
  border-color: var(--wos-accent);
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.25);
  outline: none;
}

.wos-status-cell-picker.wos-status-cell--saving {
  opacity: 0.65;
  pointer-events: none;
}

.wos-status-cell-picker.wos-status-cell--saved {
  border-color: #16a34a;
  box-shadow: 0 0 0 1px rgba(22, 163, 74, 0.35);
}

.wos-status-cell-picker.wos-status-cell--error {
  border-color: #dc2626;
  box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.35);
}

.wos-table-wrap--trade-abgleich {
  max-height: min(70vh, 42rem);
  overflow: auto;
}

.wos-trade-abgleich-table th.wos-trade-abgleich-acc,
.wos-trade-abgleich-table td.wos-status-detail-cell {
  text-align: center;
  vertical-align: middle;
}

.wos-abgleich-row--highlight {
  background: color-mix(in srgb, var(--wos-accent, #3b82f6) 18%, transparent);
  outline: 2px solid var(--wos-accent, #3b82f6);
  outline-offset: -2px;
}

.wos-trade-status-readonly {
  display: inline-block;
  min-width: 1.65rem;
  text-align: center;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.65rem;
}

.wos-login-orientation-tip {
  margin: 1rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--wos-muted);
  text-align: center;
}

/* Schmales Portrait (Handy): Hinweis statt Tabellen — 600px, siehe PORTRAIT_BLOCK_MAX_WIDTH_PX */
.wos-portrait-notice {
  display: none;
  margin-top: 0.75rem;
}

.wos-portrait-notice-card {
  text-align: center;
  padding: 1.5rem 1.25rem;
}

.wos-portrait-notice-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 0.65rem;
  color: var(--wos-text);
}

.wos-portrait-notice-body {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--wos-muted);
}

@media (orientation: portrait) and (max-width: 600px) {
  .wos-tab-hint {
    display: none;
  }

  .wos-app-main-area {
    display: none !important;
  }

  .wos-portrait-notice {
    display: block;
  }
}

/* Landscape-Phone: Tabelle mit Seite scrollen, nicht Mini-Kasten */
@media (orientation: landscape) and (max-height: 520px) {
  .wos-table-wrap,
  .wos-table-wrap--status-detail,
  .wos-table-wrap--trade-abgleich {
    max-height: none;
  }
}

/* Login */
.wos-login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.wos-login-card {
  width: 100%;
  max-width: 26rem;
  padding: 2rem;
  background: var(--wos-surface);
  border: 1px solid var(--wos-border);
  border-radius: 1rem;
  box-shadow: var(--wos-card-shadow);
}

/* Stammdaten — Puzzle-Matrix 3×N */
.wos-puzzle-grid-wrap {
  overflow-x: auto;
  max-width: 100%;
}

.wos-puzzle-grid {
  border-collapse: separate;
  border-spacing: 0.5rem;
}

.wos-puzzle-grid td {
  vertical-align: top;
  padding: 0;
}

.wos-puzzle-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  min-width: 5.5rem;
  padding: 0.5rem;
  background: var(--wos-surface);
  border: 1px solid var(--wos-border);
  border-radius: 0.5rem;
}

.wos-puzzle-cell-no {
  font-size: 0.75rem;
  color: var(--wos-muted);
  font-weight: 600;
}

.wos-puzzle-cell select {
  width: 100%;
  min-width: 4.5rem;
}

.wos-puzzle-cell.wos-puzzle-autofill {
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.35);
}

.wos-puzzle-grid--status .wos-puzzle-cell {
  min-width: 6rem;
}

/* 5★ — im Spiel andere Regeln (Recyclen, nicht tauschen); nur Darstellung */
.wos-puzzle-cell--five-star {
  background: var(--wos-five-star-bg);
  border-color: var(--wos-five-star-border);
}

.wos-status-detail-table tr.wos-status-row--five-star td {
  background: var(--wos-five-star-bg);
}

.wos-puzzle-cell-stars {
  font-size: 0.7rem;
  color: var(--wos-muted);
  line-height: 1;
}

.wos-puzzle-status-picker {
  width: 100%;
}

.wos-input-prefix {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.wos-input-prefix-label {
  color: var(--wos-muted);
  font-weight: 600;
}

.wos-input-prefix input {
  flex: 1;
  min-width: 0;
}

.wos-trade-realm-badge {
  margin-left: 0.35rem;
  padding: 0.1rem 0.45rem;
  border-radius: 0.35rem;
  background: var(--wos-surface);
  border: 1px solid var(--wos-border);
  font-size: 0.8rem;
  white-space: nowrap;
}

.wos-trade-partner-realm {
  font-size: 0.8rem;
  color: var(--wos-muted);
}

.wos-trade-partner-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.wos-trade-ignore-rules {
  font-weight: 500;
}

.wos-login-toolbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

/* —— Allianz-Kalender (Wochenraster) —— */
.wos-cal-page {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.wos-cal-chrome {
  flex-shrink: 0;
}

.wos-cal-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.wos-cal-nav-label {
  font-size: 0.875rem;
  color: var(--wos-muted);
}

.wos-cal-frame {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--wos-border);
  border-radius: 0.5rem;
  background: var(--wos-surface);
  overflow: hidden;
}

.wos-cal-hscroll {
  overflow-x: auto;
  min-width: 0;
}

.wos-cal-grid-wrap {
  min-width: 44rem;
}

.wos-cal-scroll {
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
}

.wos-cal-head,
.wos-cal-body {
  display: grid;
  grid-template-columns: 3.25rem repeat(7, minmax(5.5rem, 1fr));
}

.wos-cal-head {
  border-bottom: 1px solid var(--wos-border);
  background: var(--wos-surface-elevated, var(--wos-surface));
}

.wos-cal-allday-row {
  display: grid;
  grid-template-columns: 3.25rem repeat(7, minmax(5.5rem, 1fr));
  border-bottom: 1px solid var(--wos-border);
  background: var(--wos-surface);
  min-height: 1.75rem;
}

.wos-cal-gutter-allday {
  border-right: 1px solid var(--wos-border);
}

.wos-cal-allday-col {
  padding: 0.2rem 0.25rem;
  border-right: 1px solid var(--wos-border);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-height: 1.75rem;
}

.wos-cal-allday-col:last-child {
  border-right: none;
}

.wos-cal-allday-col--today {
  background: rgba(59, 130, 246, 0.08);
}

.wos-cal-allday-event {
  font-size: 0.65rem;
  line-height: 1.2;
  padding: 0.15rem 0.3rem;
  border-radius: 0.25rem;
  background: rgba(59, 130, 246, 0.18);
  border: 1px solid rgba(59, 130, 246, 0.35);
  color: var(--wos-text);
}

.wos-cal-allday-event-title {
  display: block;
  font-weight: 600;
}

.wos-cal-allday-event-sub {
  display: block;
  color: var(--wos-muted);
  font-size: 0.6rem;
}

.wos-cal-gutter-head,
.wos-cal-day-head {
  padding: 0.45rem 0.35rem;
  text-align: center;
  font-size: 0.75rem;
}

.wos-cal-day-name {
  display: block;
  font-weight: 600;
}

.wos-cal-day-date {
  display: block;
  color: var(--wos-muted);
}

.wos-cal-day-head--today {
  background: rgba(239, 68, 68, 0.08);
}

.wos-cal-day-head--today .wos-cal-day-name {
  color: #ef4444;
}

.wos-cal-gutter {
  position: relative;
  border-right: 1px solid var(--wos-border);
  background: var(--wos-surface);
}

.wos-cal-hour-label {
  height: 3.75rem;
  position: relative;
  border-top: 1px solid var(--wos-border);
  font-size: 0.7rem;
  color: var(--wos-muted);
}

.wos-cal-hour-label:first-child {
  border-top: none;
}

.wos-cal-hour-label span {
  position: absolute;
  top: 0;
  right: 0.35rem;
  transform: translateY(-50%);
}

.wos-cal-day-col {
  position: relative;
  min-height: calc(3.75rem * 24);
  border-right: 1px solid var(--wos-border);
}

.wos-cal-day-col:last-child {
  border-right: none;
}

.wos-cal-day-col--today {
  background: rgba(239, 68, 68, 0.04);
}

.wos-cal-now-line {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 5;
  height: 0;
  border-top: 2px solid #ef4444;
  pointer-events: none;
}

.wos-cal-now-line::before {
  content: "";
  position: absolute;
  left: 0;
  top: -5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ef4444;
}

.wos-cal-now-label {
  position: absolute;
  left: 0.35rem;
  top: -0.65rem;
  padding: 0.05rem 0.35rem;
  border-radius: 0.25rem;
  background: #ef4444;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  white-space: nowrap;
}

.wos-cal-day-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent calc(3.75rem - 1px),
    var(--wos-border) calc(3.75rem - 1px),
    var(--wos-border) 3.75rem
  );
  background-size: 100% 3.75rem;
}

.wos-cal-day-grid::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent calc(1.875rem - 1px),
    rgba(148, 163, 184, 0.22) calc(1.875rem - 1px),
    rgba(148, 163, 184, 0.22) 1.875rem
  );
  background-size: 100% 1.875rem;
}

.wos-cal-event {
  position: absolute;
  left: 0.15rem;
  right: 0.15rem;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.05rem;
  padding: 0.1rem 0.3rem;
  border-radius: 0.35rem;
  border: 1px solid rgba(99, 102, 241, 0.45);
  background: rgba(99, 102, 241, 0.18);
  color: var(--wos-text);
  font-size: 0.64rem;
  line-height: 1.08;
  text-decoration: none;
  overflow: hidden;
  min-height: 1.75rem;
  box-sizing: border-box;
}

.wos-cal-event:hover {
  border-color: rgba(99, 102, 241, 0.75);
  background: rgba(99, 102, 241, 0.28);
}

.wos-cal-event--override {
  border-color: rgba(234, 179, 8, 0.55);
  background: rgba(234, 179, 8, 0.16);
}

.wos-cal-event--collision {
  border-color: rgba(239, 68, 68, 0.65);
  background: rgba(239, 68, 68, 0.18);
}

.wos-cal-event--collision.wos-cal-event--override {
  border-color: rgba(239, 68, 68, 0.75);
  background: rgba(239, 68, 68, 0.22);
}

.wos-cal-event-title {
  flex-shrink: 0;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wos-cal-event-time {
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

form.inline {
  display: inline;
}

/* —— Events-Modul (Spiel-Wiki) —— */
.wos-event-hub-header,
.wos-event-doc-header {
  margin-bottom: 1.5rem;
}

.wos-event-hub-title,
.wos-event-doc-title {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  font-weight: 700;
}

.wos-event-hub-lead,
.wos-event-doc-sub {
  margin: 0;
  color: var(--wos-muted);
  font-size: 0.95rem;
}

.wos-event-hub-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1rem;
  max-width: 42rem;
}

.wos-event-hub-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.1rem 1.15rem;
  border-radius: 0.65rem;
  border: 1px solid var(--wos-border);
  background: var(--wos-surface);
  box-shadow: var(--wos-card-shadow);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, transform 0.15s;
}

.wos-event-hub-card:hover {
  border-color: rgba(99, 102, 241, 0.55);
  transform: translateY(-1px);
}

.wos-event-hub-card-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.wos-event-hub-card-title {
  font-weight: 700;
  font-size: 1.05rem;
}

.wos-event-hub-card-desc {
  font-size: 0.875rem;
  color: var(--wos-muted);
}

.wos-event-doc {
  max-width: 46rem;
}

.wos-event-section {
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--wos-border);
}

.wos-event-section:last-of-type {
  border-bottom: none;
}

.wos-event-section-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #4f8fd9;
}

.theme-light .wos-event-section-title {
  color: #2563eb;
}

.wos-event-section-star {
  font-size: 0.85rem;
  opacity: 0.85;
}

.wos-event-paragraph {
  margin: 0 0 0.65rem;
  line-height: 1.55;
}

.wos-event-paragraph:last-child {
  margin-bottom: 0;
}

.wos-event-highlight {
  color: #f59e0b;
  font-weight: 700;
}

.wos-event-doc-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

.wos-event-footnote {
  margin: 1rem 0 0;
  font-size: 0.875rem;
  color: var(--wos-muted);
}

.wos-event-hub-page {
  max-width: 52rem;
}

.wos-event-hub-page-header {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

.wos-event-hub-page-image {
  width: 7.5rem;
  height: auto;
  border-radius: 0.5rem;
  border: 1px solid var(--wos-border);
  flex-shrink: 0;
}

.wos-event-hub-page-intro {
  flex: 1 1 16rem;
  min-width: 0;
}

.wos-event-hub-meta {
  margin: 0.35rem 0 0;
  font-size: 0.875rem;
  color: var(--wos-muted);
}

.wos-event-hub-section {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--wos-border);
}

.wos-event-hub-section-title {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.wos-event-hub-section-body {
  line-height: 1.55;
}

.wos-knowledge-body {
  line-height: 1.55;
}

/* Tailwind-Preflight setzt h1–h6 auf font-size/weight inherit — explizit für Editor + Leser */
.wos-knowledge-body h1,
.wos-knowledge-body h2,
.wos-knowledge-body h3,
.wos-knowledge-body h4,
.wos-knowledge-editor-wrap .ck-editor__editable h1,
.wos-knowledge-editor-wrap .ck-editor__editable h2,
.wos-knowledge-editor-wrap .ck-editor__editable h3,
.wos-knowledge-editor-wrap .ck-editor__editable h4 {
  margin: 1.1rem 0 0.5rem;
  font-weight: 600;
  line-height: 1.3;
}

.wos-knowledge-body h1,
.wos-knowledge-editor-wrap .ck-editor__editable h1 {
  font-size: 1.75rem;
  font-weight: 700;
}

.wos-knowledge-body h2,
.wos-knowledge-editor-wrap .ck-editor__editable h2 {
  font-size: 1.45rem;
}

.wos-knowledge-body h3,
.wos-knowledge-editor-wrap .ck-editor__editable h3 {
  font-size: 1.2rem;
}

.wos-knowledge-body h4,
.wos-knowledge-editor-wrap .ck-editor__editable h4 {
  font-size: 1.05rem;
}

.wos-knowledge-body p,
.wos-knowledge-editor-wrap .ck-editor__editable p {
  margin: 0 0 0.65rem;
}

.wos-knowledge-body ul,
.wos-knowledge-body ol,
.wos-knowledge-editor-wrap .ck-editor__editable ul,
.wos-knowledge-editor-wrap .ck-editor__editable ol {
  margin: 0 0 0.65rem;
  padding-left: 1.35rem;
}

.wos-knowledge-body a,
.wos-knowledge-editor-wrap .ck-editor__editable a {
  color: var(--wos-accent);
  text-decoration: underline;
}

.wos-knowledge-body strong,
.wos-knowledge-body b,
.wos-knowledge-editor-wrap .ck-editor__editable strong,
.wos-knowledge-editor-wrap .ck-editor__editable b {
  font-weight: 700;
}

.wos-knowledge-body em,
.wos-knowledge-body i,
.wos-knowledge-editor-wrap .ck-editor__editable em,
.wos-knowledge-editor-wrap .ck-editor__editable i {
  font-style: italic;
}

.wos-knowledge-body blockquote,
.wos-knowledge-editor-wrap .ck-editor__editable blockquote {
  margin: 0.65rem 0;
  padding: 0.35rem 0 0.35rem 1rem;
  border-left: 3px solid var(--wos-border);
  color: var(--wos-muted);
}

.wos-knowledge-article {
  max-width: 52rem;
}

.wos-knowledge-article-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
}

.wos-knowledge-article-meta {
  margin: 0.35rem 0 1rem;
  font-size: 0.875rem;
  color: var(--wos-muted);
}

.wos-knowledge-draft-badge {
  color: #f59e0b;
  font-weight: 600;
}

.wos-form--knowledge {
  max-width: none;
  width: 100%;
}

.wos-field-grid--knowledge-meta {
  max-width: 42rem;
}

.wos-knowledge-editor-wrap {
  width: 100%;
}

.wos-knowledge-editor-wrap .ck.ck-editor {
  width: 100%;
}

.wos-knowledge-editor-wrap .ck-editor__editable {
  min-height: 18rem;
}

.wos-reward-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--wos-border);
  border-radius: 0.5rem;
  background: var(--wos-surface);
}

.wos-reward-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.wos-reward-table th,
.wos-reward-table td {
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid var(--wos-border);
  text-align: center;
  vertical-align: middle;
}

.wos-reward-table thead th {
  background: var(--wos-surface-elevated, var(--wos-surface));
  font-weight: 600;
  font-size: 0.8rem;
}

.wos-reward-table tbody tr:last-child th,
.wos-reward-table tbody tr:last-child td {
  border-bottom: none;
}

.wos-reward-table-icon-col {
  min-width: 5.5rem;
}

.wos-reward-table-icon-col span {
  display: block;
  margin-top: 0.2rem;
}

.wos-reward-col-hint {
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--wos-muted);
}

.wos-reward-icon {
  display: block;
  margin: 0 auto;
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
}

.wos-reward-rank {
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
}

.wos-reward-diamonds {
  font-variant-numeric: tabular-nums;
}

.wos-reward-diamond-unit {
  display: block;
  font-size: 0.75rem;
  color: var(--wos-muted);
}

.wos-reward-diamond-qty {
  font-weight: 600;
}

.hidden {
  display: none !important;
}

.wos-resource-thumb {
  display: block;
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
}

.wos-col-thumb {
  width: 3rem;
  vertical-align: middle;
}

.wos-thumb-placeholder {
  display: block;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px dashed var(--wos-border);
  border-radius: 0.25rem;
  background: var(--wos-surface-2, rgba(0, 0, 0, 0.04));
}

.wos-image-drop {
  position: relative;
  max-width: 28rem;
  padding: 1rem 1.1rem;
  border: 2px dashed var(--wos-border);
  border-radius: 0.75rem;
  background: var(--wos-surface-elevated, var(--wos-surface));
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.wos-image-drop:hover {
  border-color: rgba(99, 102, 241, 0.55);
}

.wos-image-drop:focus-visible {
  outline: 2px solid rgba(99, 102, 241, 0.75);
  outline-offset: 2px;
}

.wos-image-drop.is-dragover {
  border-color: rgba(99, 102, 241, 0.75);
  background: rgba(99, 102, 241, 0.08);
}

.wos-image-drop--hero-card {
  max-width: 11rem;
}

.wos-image-drop-current--hero-card,
.wos-image-drop-preview--hero-card {
  display: block;
  width: 8rem;
  height: 12rem;
  margin: 0 auto 0.5rem;
  object-fit: cover;
  object-position: 50% 16%;
  border-radius: 0.4rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.16);
}

.wos-image-drop--hero-card.has-image .wos-image-drop-hint {
  font-size: 0.8125rem;
}

.wos-image-drop-hint {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--wos-muted);
}

.wos-image-drop-sub {
  font-size: 0.8125rem;
}

.wos-image-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.wos-heroes-layout {
  --wos-hero-grid-gap: 0.4rem;
  /* Feste Kartenbreite wie Power (128px) — nicht viewport-relative */
  --wos-hero-card-width: 8rem;
}

.wos-heroes-matrix-gen {
  white-space: nowrap;
  width: 2.5rem;
  font-size: 0.7rem;
  padding: 0.12rem 0.25rem;
  vertical-align: middle;
}

.wos-table.wos-heroes-matrix {
  table-layout: fixed;
  width: max-content;
  max-width: 100%;
}

.wos-table.wos-heroes-matrix > thead > tr > th,
.wos-table.wos-heroes-matrix > tbody > tr > th.wos-heroes-matrix-gen,
.wos-table.wos-heroes-matrix > tbody > tr > td.wos-heroes-matrix-cell {
  padding: calc(var(--wos-hero-grid-gap, 0.4rem) / 2);
  vertical-align: top;
}

.wos-table.wos-heroes-matrix > thead > tr > th:not(.wos-heroes-matrix-gen) {
  width: var(--wos-hero-card-width);
  text-align: center;
}

.wos-heroes-matrix-cell {
  width: var(--wos-hero-card-width);
  min-width: var(--wos-hero-card-width);
  max-width: var(--wos-hero-card-width);
  text-align: center;
  line-height: normal;
}

.wos-heroes-matrix-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(var(--wos-hero-grid-gap, 0.4rem) / 2);
}

.wos-heroes-section {
  margin-bottom: 1.25rem;
}

.wos-heroes-section:last-child {
  margin-bottom: 0;
}

.wos-heroes-section-title {
  margin: 0 0 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
}

.wos-hero-stammdaten-thumb {
  display: block;
  width: 2.5rem;
  height: 3.75rem;
  object-fit: cover;
  object-position: 50% 16%;
  border-radius: 0.25rem;
  background: var(--wos-surface-2, rgba(0, 0, 0, 0.06));
}

.wos-hero-rarity {
  display: inline-block;
  min-width: 2.25rem;
  padding: 0.1rem 0.45rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.3;
  color: #fff;
}

.wos-hero-rarity--ssr {
  background: linear-gradient(135deg, #f0c14b 0%, #c8862a 100%);
  color: #2a1a05;
}

.wos-hero-rarity--sr {
  background: linear-gradient(135deg, #b06cff 0%, #7b3fd6 100%);
}

.wos-hero-rarity--r {
  background: linear-gradient(135deg, #5eb0ff 0%, #2a6fd6 100%);
}

/* Helden — Spielkarte: Portrait-Zuschnitt + eigene UI (Sterne segmentiert) */
.wos-hero-game-card {
  display: inline-block;
  width: 100%;
  border-radius: 0.4rem;
  overflow: hidden;
  background: linear-gradient(165deg, #e8a86a 0%, #c97a3a 48%, #8b4f22 100%);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.16);
  line-height: normal;
  vertical-align: top;
}

.wos-hero-game-card--no-img {
  background: var(--wos-surface-2, rgba(0, 0, 0, 0.06));
  box-shadow: none;
  border: 1px solid var(--wos-border);
}

.wos-hero-game-card__portrait {
  position: relative;
  height: 6.5rem;
  overflow: hidden;
}

.wos-hero-game-card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 16%;
  transform: scale(1.18);
}

.wos-hero-game-card__img--placeholder {
  background: var(--wos-surface-2, rgba(0, 0, 0, 0.08));
}

.wos-hero-game-card__class {
  position: absolute;
  top: 0.22rem;
  left: 0.22rem;
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 0.18rem;
  background: rgba(20, 48, 110, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.35);
  z-index: 1;
}

.wos-hero-game-card__class::after {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.52rem;
  line-height: 1;
  color: #fff;
}

.wos-hero-game-card__class--marksman::after {
  content: "⌃";
  transform: rotate(-35deg) translateY(-1px);
}

.wos-hero-game-card__class--lancer::after {
  content: "†";
}

.wos-hero-game-card__class--infantry::after {
  content: "⛨";
  font-size: 0.58rem;
}

.wos-hero-game-card__season {
  position: absolute;
  top: 0.22rem;
  right: 0.22rem;
  z-index: 1;
  padding: 0 0.2rem;
  border-radius: 0.12rem;
  font-size: 0.5rem;
  font-weight: 700;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  line-height: 1.35;
}

.wos-hero-game-card__footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.1rem;
  padding: 0.1rem 0.18rem 0.14rem;
  background: rgba(12, 20, 36, 0.9);
}

.wos-hero-game-card__level {
  font-size: 0.5rem;
  font-weight: 700;
  color: #f4f7ff;
  white-space: nowrap;
}

.wos-hero-game-card__power {
  font-size: 0.46rem;
  font-weight: 600;
  color: var(--wos-muted);
  white-space: nowrap;
}

.wos-hero-seg-stars {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.08rem;
  min-width: 0;
}

.wos-hero-seg-star {
  position: relative;
  width: 0.72rem;
  height: 0.72rem;
  flex: 0 0 auto;
}

.wos-hero-seg-star__wedge {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 44%;
  height: 48%;
  transform: translate(-50%, -96%) rotate(calc(var(--wedge-i) * 72deg));
  transform-origin: 50% 100%;
  background: rgba(255, 255, 255, 0.14);
  clip-path: polygon(50% 6%, 90% 100%, 10% 100%);
}

.wos-hero-seg-star__wedge--on {
  background: #5ecfff;
}

.wos-hero-seg-star__wedge--elite {
  background: #4fd6ff;
  filter: drop-shadow(0 0 1px rgba(79, 214, 255, 0.55));
}

/* Helden — Power-Grid: 4 feste Karten pro Reihe (Vergleich mit Spiel) */
.wos-heroes-power-grid {
  display: grid;
  grid-template-columns: repeat(4, var(--wos-hero-card-width));
  gap: var(--wos-hero-grid-gap, 0.4rem);
  width: max-content;
  max-width: 100%;
}

@media (max-width: 640px) {
  .wos-heroes-power-grid {
    grid-template-columns: repeat(2, var(--wos-hero-card-width));
  }
}

