  width: 100%;
  border-collapse: collapse;
  background: var(--panel);
}

/* min-width nur fuer wirklich breite Tabellen (per Klasse), nicht global -
   schmale Tabellen (z.B. Blutmonde, 4 Spalten) wurden sonst kuenstlich
   auf 860px gestreckt und erzwangen mobiles Querscrollen. */
.table-wrap.wide table {
  min-width: 860px;
}

th,
td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  background: var(--panel-2);
}

tr:last-child td {
  border-bottom: 0;
}

.state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-weight: 650;
}

.state::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.state.online {
  color: var(--green);
}

.detail-list {
  display: grid;
  grid-template-columns: minmax(120px, 0.45fr) minmax(0, 1fr);
  gap: 10px 14px;
  margin: 0;
  margin-top: 10px;
  
}

.detail-list dd {
  margin: 0;
  min-width: 0;
  word-break: break-word;
}

.site-footer {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 0 16px 28px;
  color: var(--muted);
}

.footer-status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.footer-status-grid div {
  min-width: 0;
  min-height: 76px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
}

.footer-status-grid span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  text-transform: uppercase;
}

.footer-status-grid strong {
  display: block;
  margin-top: 7px;
  color: var(--text);
  font-size: 22px;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.footer-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0 0;
  font-size: 12px;
  font-weight: 750;
}

.footer-meta span:last-child {
  color: var(--gold);
}

.community-intro {
  grid-template-columns: 1fr;
}

.community-card.is-link {
  cursor: pointer;
  transition: border-color 160ms ease;
}

.community-card.is-link:hover,
.community-card.is-link:focus-visible {
  border-color: rgba(215, 168, 77, 0.55);
}

.community-more {
  justify-self: start;
  grid-column: 1 / -1;
}

.milestone-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.milestone-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.milestone-item {
  position: relative;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 10px;
  padding: 8px 0;
}

.milestone-item::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 12px;
  width: 2px;
  background: var(--line);
}

.milestone-item:first-child::before {
  top: 14px;
}

.milestone-item:last-child::before {
  bottom: auto;
  height: 14px;
}

.milestone-marker {
  z-index: 1;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: var(--panel);
  color: var(--bg);
  font-size: 13px;
  font-weight: 750;
}

.milestone-item strong {
  display: block;
  font-size: 15px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.milestone-item small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.milestone-item .progress-track {
  margin: 6px 0 4px;
}

.milestone-item.is-done .milestone-marker {
  border-color: var(--green);
  background: var(--green);
}

.milestone-item.is-active .milestone-marker {
  border-color: var(--gold);
  background: var(--panel-2);
}

.milestone-item.is-active .milestone-marker::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  animation: milestone-pulse 1.8s ease-in-out infinite;
}

.milestone-item.is-upcoming,
.milestone-item.is-note {
  opacity: 0.55;
}

.milestone-item.is-upcoming .milestone-marker {
  border-style: dashed;
}

.milestone-item.is-note .milestone-marker {
  color: var(--muted);
  background: var(--panel);
  font-size: 11px;
}

@keyframes milestone-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.72); opacity: 0.6; }
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 8px;
}

.recap-panel {
  margin-top: 14px;
}

.recap-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 14px;
}

.recap-metrics {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.recap-section h3 {
  margin-bottom: 8px;
}

.recap-milestone {
  display: grid;
  gap: 2px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.recap-milestone:last-child {
  border-bottom: 0;
}

.recap-milestone small {
  color: var(--muted);
  font-size: 12px;
}

.recap-text {
  margin-top: 14px;
}

.recap-text summary {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}

.recap-text pre {
  max-height: 320px;
  margin-top: 10px;
  padding: 12px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.24);
  font: 13px/1.5 ui-monospace, "Cascadia Mono", "Segoe UI Mono", monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.ghost-button.is-copied {
  color: var(--green);
  border-color: rgba(105, 209, 125, 0.5);
}

.world-hint {
  margin: -4px 0 14px;
}

.world-hint.is-warning {
  color: var(--gold);
  font-weight: 650;
}

.is-stale {
  opacity: 0.45;
}

.discovery-list {
  display: grid;
  gap: 8px;
}

.entity-catalog {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.entity-card {
  display: grid;
  align-content: start;
  gap: 6px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.018));
}

.entity-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.entity-card-head strong {
  min-width: 0;
  font-size: 15px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.entity-card-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
}

.entity-card-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 10px;
  margin-top: 2px;
}

.entity-card-stats span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  text-transform: uppercase;
}

.entity-card-stats strong {
  font-size: 15px;
}

.entity-presence-line {
  font-size: 12px;
}

.presence-badge {
  --presence-color: #9aa0a6;
  padding: 3px 8px;
  border: 1px solid color-mix(in srgb, var(--presence-color), #000 24%);
  border-radius: 999px;
  color: var(--text);
  background: color-mix(in srgb, var(--presence-color), transparent 78%);
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}

.presence-badge.presence-constant {
  --presence-color: #9aa0a6;
}

.presence-badge.presence-regular {
  --presence-color: #7fbf5b;
}

.presence-badge.presence-occasional {
  --presence-color: #5aa7d6;
}

.presence-badge.presence-rare {
  --presence-color: #b06fdb;
}

.presence-badge.presence-new {
  --presence-color: #d7a84d;
}

.presence-badge.presence-muted {
  border-color: var(--line);
  color: var(--muted);
  background: transparent;
}

@media (max-width: 900px) {
  .topbar {
    align-items: flex-start;
    padding: 14px 16px;
  }

  .status-pill {
    min-width: 78px;
    padding: 7px 10px;
    font-size: 13px;
  }

  /* Mobil: Primaer-Tabs ausblenden, Bottom-Nav einblenden */
  .primary-tabs {
    display: none;
  }

  body {
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  }

  .bottom-nav {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 6;
    display: flex;
    justify-content: space-around;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
    background: rgba(15, 18, 16, 0.96);
    border-top: 1px solid var(--line);
    backdrop-filter: blur(14px);
  }

  .bottom-nav .nav-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    height: auto;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 650;
  }

  .bottom-nav .nav-tab.is-active {
    color: var(--gold);
  }

  .hero,
  .metric-grid,
  .item-pool,
  .item-toolbar,
  .item-highlight-list,
  .community-panel,
  .community-grid,
  .content-grid,
  .entity-catalog,
  .timeline-grid,
  .milestone-grid,
  .fact-grid,
  .recap-grid {
    grid-template-columns: 1fr;
  }

      .community-more {
    width: 100%;
  }

  .hero-copy {
    min-height: auto;
    padding: 18px;
  }

  .hero-status {
    margin: 0 18px 18px;
  }

  .metric {
    min-height: 78px;
  }

  .history-chart {
    gap: 1px;
    height: 118px;
    padding: 9px;
  }

  .history-bar {
    border-radius: 3px 3px 0 0;
  }

  .line-chart {
    padding: 10px;
  }

  .chart-legend {
    gap: 8px;
    font-size: 11px;
  }

  .chart-tick {
    font-size: 10px;
  }

  .panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .input {
    width: 100%;
  }

  .toolbar label {
    width: 100%;
  }

  .detail-list {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .profile-grid,
  .profile-main,
  .profile-facts,
  .profile-stats,
  .session-metrics,
  .session-item {
    grid-template-columns: 1fr;
  }

  .avatar {
    min-height: 86px;
  }

  .activity-bars {
    grid-template-columns: repeat(7, minmax(36px, 1fr));
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .activity-day {
    min-height: 112px;
  }

  .session-deltas {
    text-align: left;
    white-space: normal;
  }

  .belt-grid {
    grid-template-columns: repeat(5, minmax(44px, 1fr));
  }

  .item-event,
  .item-card {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .item-card-stats,
  .item-event .value {
    grid-column: 2;
    text-align: left;
  }

  .footer-status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-meta {
    align-items: flex-start;
    flex-direction: column;
  }
}

