.portal-offline-banner {
  position: sticky;
  top: 0;
  z-index: 1040;
  padding: 0.45rem 0.75rem;
  background: rgba(251, 191, 36, 0.16);
  border-bottom: 1px solid rgba(251, 191, 36, 0.35);
  color: #fde68a;
  font-size: 0.85rem;
  text-align: center;
}

.portal-offline-banner[hidden] {
  display: none !important;
}

.suite-topbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(12, 14, 16, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--suite-glass-border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.75rem;
}

.player-dashboard-page .suite-topbar .navbar-brand {
  flex-shrink: 0;
}

.suite-topbar-status {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.78rem;
  overflow: hidden;
}

.suite-topbar-status[hidden] {
  display: none !important;
}

@media (max-width: 991.98px) {
  .suite-topbar-status {
    order: 3;
    flex: 1 1 100%;
    padding-bottom: 0.15rem;
  }
}

/* Höhe der Estel-Nav - Vollbild-Transkript beginnt darunter (kein Overlap mit Abmelden). */
/* Max. ~20 % Transparenz auf dem Spieler-Dashboard (min. 80 % Deckkraft). */
.player-dashboard-page {
  --suite-glass-panel: rgba(12, 14, 16, 0.88);
  --suite-glass-card: rgba(16, 18, 20, 0.88);
  --portal-surface-solid: rgba(12, 14, 16, 0.92);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* Dashboard-Tab: Seite fix auf Viewport, Scroll nur in den Kacheln */
.player-dashboard-page:has(.portal-panel[data-panel="welcome"].active) {
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
}

.player-dashboard-page:has(.portal-panel[data-panel="welcome"].active) .portal-shell {
  overflow: hidden;
}

.player-dashboard-page .suite-topbar {
  flex-shrink: 0;
}

.player-dashboard-page .portal-shell {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  padding-bottom: 0.5rem !important;
}

.player-dashboard-page .portal-tabs {
  flex-shrink: 0;
}

.player-dashboard-page #portal-panels {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.player-dashboard-page .portal-panel[data-panel="welcome"].active {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.welcome-root {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.welcome-layout {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 0;
  overflow: hidden;
}

.welcome-intro {
  flex-shrink: 0;
}

.welcome-status-line {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.65rem;
  color: var(--bs-secondary-color);
}

.welcome-status-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.35);
}

.welcome-status-dot--online {
  background: #3ecf6e;
  box-shadow: 0 0 6px rgba(62, 207, 110, 0.65);
}

.welcome-status-dot--offline {
  background: #e85d5d;
  box-shadow: 0 0 6px rgba(232, 93, 93, 0.45);
}

.welcome-status-dot--unknown {
  background: rgba(255, 255, 255, 0.35);
}

.welcome-status-label {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
}

.welcome-status-players {
  color: rgba(255, 255, 255, 0.72);
}

.welcome-weather-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-top: 0.5rem;
}

.welcome-weather-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: 0.15rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(25, 135, 84, 0.35);
  background: rgba(25, 135, 84, 0.08);
  vertical-align: middle;
}

.welcome-weather-icon {
  color: #75b798;
  font-size: 1rem;
  line-height: 1;
}

.welcome-weather-label {
  font-weight: 600;
  color: #dee2e6;
}

.welcome-weather-hint {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.55);
}

.welcome-weather-forecast-body {
  display: grid;
  gap: 0.75rem;
}

.welcome-forecast-detail {
  display: grid;
  gap: 0.75rem;
  max-width: 100%;
}

@media (min-width: 768px) {
  .welcome-forecast-detail {
    grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr));
  }
}

.welcome-detail-body .welcome-forecast-day {
  background: rgba(12, 14, 16, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
}

.welcome-forecast-day-title {
  color: #75b798 !important;
  font-weight: 600;
}

.welcome-forecast-day-subtitle {
  margin-top: -0.1rem;
  color: rgba(255, 255, 255, 0.62);
}

.welcome-forecast-periods {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.welcome-forecast-period {
  display: grid;
  grid-template-columns: minmax(6.5rem, 1fr) minmax(0, 1.4fr);
  gap: 0.5rem 0.65rem;
  align-items: center;
  padding: 0.35rem 0.45rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
}

.welcome-forecast-period-name {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.8125rem;
  line-height: 1.25;
}

.welcome-forecast-period-weather {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.4rem;
  font-size: 0.8125rem;
  color: #e4e8ee;
  line-height: 1.25;
}

.welcome-forecast-period-weather .bi {
  color: #75b798;
  font-size: 1rem;
  flex-shrink: 0;
}

.welcome-columns {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  align-items: stretch;
}

.player-dashboard-page .welcome-columns > [class*="col-"] {
  min-height: 0;
}

.welcome-sidebar {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-radius: 0.65rem;
  overflow: hidden;
}

.welcome-sidebar-panel {
  flex: 1 1 auto;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
  overflow: visible;
  padding: 0.42rem 0.46rem 0.5rem;
  background: rgba(8, 10, 12, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0.65rem;
}

.welcome-sidebar-feeds {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
  overflow: visible;
}

.welcome-sidebar-section {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0.42rem 0.48rem 0.38rem;
  border: 1px solid rgba(117, 183, 152, 0.24);
  border-radius: 0.58rem;
  background: var(--suite-glass-card);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 2px 10px rgba(0, 0, 0, 0.16);
  overflow: hidden;
}

.welcome-sidebar-section--ann {
  flex: 3 1 0;
  min-height: calc(3 * 4.25rem + 2.85rem);
}

.welcome-sidebar-section--news {
  flex: 2 1 0;
}

.welcome-sidebar-section--news-empty {
  flex: 0 0 auto;
}

.welcome-sidebar-section--events {
  flex: 3 1 0;
}

.welcome-sidebar-section--forecast {
  flex: 0 0 auto;
  padding: 0.38rem 0.48rem;
}

.welcome-sidebar-section--forecast.d-none {
  display: none !important;
}

.welcome-sidebar-section--forecast .welcome-forecast-tile {
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0.1rem 0.06rem;
  margin: 0;
}

.welcome-sidebar-section--events.d-none {
  display: none !important;
}

.welcome-sidebar-panel:not(:has(.welcome-sidebar-section--events:not(.d-none))) .welcome-sidebar-section--ann {
  flex: 3 1 0;
}

.welcome-sidebar-panel:not(:has(.welcome-sidebar-section--events:not(.d-none))) .welcome-sidebar-section--news:not(.welcome-sidebar-section--news-empty) {
  flex: 2 1 0;
}

.welcome-sidebar-section__head {
  flex-shrink: 0;
  margin-bottom: 0.22rem;
  padding-bottom: 0.28rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.welcome-sidebar-section__head .h6 {
  font-size: 0.9rem;
  font-weight: 600;
}

.welcome-sidebar-section--ann .welcome-feed-list,
.welcome-events-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.welcome-sidebar-section--ann .welcome-feed-list.welcome-feed-list--scroll {
  overflow-y: hidden;
}

.welcome-sidebar-section--news:not(.welcome-sidebar-section--news-empty) .welcome-feed-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.welcome-sidebar-section--news:not(.welcome-sidebar-section--news-empty) .welcome-feed-list.welcome-feed-list--scroll {
  overflow-y: auto;
}

.welcome-sidebar-section--news-empty .welcome-feed-list {
  flex: 0 0 auto;
  overflow: visible;
}

.welcome-sidebar .welcome-feed-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0 0.06rem;
  overflow-x: hidden;
  overflow-y: hidden;
  scrollbar-gutter: auto;
  background: rgba(0, 0, 0, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 0.4rem;
}

.welcome-sidebar-section--ann .welcome-feed-row--compact {
  flex: 0 0 auto;
  min-height: 4.25rem;
  height: 4.25rem;
  max-height: 4.25rem;
}

.welcome-sidebar-section--ann .welcome-sidebar-thumb {
  width: 4.25rem;
  height: 4.25rem;
  min-width: 4.25rem;
  min-height: 4.25rem;
  align-self: center;
}

.welcome-sidebar-section--ann .welcome-feed-preview {
  -webkit-line-clamp: 1;
  line-clamp: 1;
}

.welcome-sidebar-section--news:not(.welcome-sidebar-section--news-empty) .welcome-feed-row--compact {
  flex: 1 1 0;
  min-height: 0;
}

.welcome-events-list {
  display: flex;
  flex-direction: column;
}

.welcome-events-list .welcome-event-row {
  flex: 1 1 0;
  min-height: 0;
}

.welcome-sidebar .welcome-feed-row--compact {
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
  padding: 0.12rem 0.2rem;
  border: none;
  border-radius: 0;
  border-bottom: none;
  box-shadow: inset 0 -1px rgba(255, 255, 255, 0.06);
  background: transparent;
  overflow: hidden;
}

.welcome-sidebar .welcome-feed-list > .welcome-feed-row--compact:last-child {
  box-shadow: none;
}

.welcome-sidebar .welcome-feed-row--compact:hover {
  background: rgba(34, 197, 94, 0.06);
}

.welcome-sidebar .welcome-feed-row--compact.active {
  background: rgba(34, 197, 94, 0.11);
  box-shadow: inset 3px 0 0 rgba(117, 183, 152, 0.85);
}

.welcome-sidebar .welcome-feed-row-inner {
  display: flex;
  flex: 1 1 auto;
  align-items: stretch;
  gap: 0.45rem;
  min-height: 0;
  height: 100%;
  width: 100%;
  container-type: size;
}

.welcome-sidebar .welcome-sidebar-thumb {
  flex: 0 0 auto;
  align-self: center;
  width: min(100cqh, 52cqw, 7.35rem);
  height: min(100cqh, 52cqw, 7.35rem);
  overflow: hidden;
  border-radius: 0.38rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.welcome-sidebar .welcome-sidebar-thumb img,
.welcome-sidebar .welcome-sidebar-thumb > .welcome-event-thumb--placeholder {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
  border-radius: 0;
  max-width: none;
  max-height: none;
  min-width: 0;
  aspect-ratio: auto;
}

.welcome-sidebar .welcome-event-thumb--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(117, 183, 152, 0.85);
  font-size: clamp(0.85rem, 2.2vh, 1.15rem);
}

.welcome-sidebar .welcome-feed-row-text {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  align-content: stretch;
  align-self: stretch;
  gap: 0.08rem;
  min-width: 0;
  min-height: 0;
  flex: 1 1 auto;
  height: 100%;
  padding: 0.05rem 0;
}

.welcome-sidebar .welcome-feed-row-title {
  grid-row: 1;
  min-width: 0;
}

.welcome-sidebar .welcome-feed-row strong {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  font-size: clamp(0.86rem, 1.85vh, 1.08rem);
  line-height: 1.24;
  font-weight: 600;
  white-space: normal;
  text-overflow: ellipsis;
}

.welcome-sidebar .welcome-feed-preview {
  grid-row: 2;
  align-self: stretch;
  min-height: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 20;
  line-clamp: 20;
  text-overflow: ellipsis;
  white-space: normal;
  font-size: clamp(0.72rem, 1.48vh, 0.88rem);
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.5);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.welcome-sidebar .welcome-feed-meta {
  grid-row: 3;
  display: block;
  font-size: clamp(0.72rem, 1.52vh, 0.88rem);
  line-height: 1.22;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.welcome-sidebar .welcome-badge-new {
  float: right;
  margin-left: 0.25rem;
  font-size: 0.58rem;
  padding: 0.06rem 0.32rem;
}

.welcome-sidebar .welcome-feed-row-title .welcome-badge-new {
  float: right;
}

.welcome-sidebar .welcome-feed-list > .small {
  margin: 0;
  padding: 0.35rem 0.25rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.52);
}

.welcome-event-detail-img {
  max-width: min(100%, 420px);
  border-radius: 0.5rem;
}

.welcome-event-thumb {
  object-fit: cover;
  flex-shrink: 0;
}

.welcome-event-thumb--placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(117, 183, 152, 0.85);
  font-size: 0.95rem;
}

.welcome-forecast-tile {
  flex: 0 0 auto;
  margin-top: 0;
  padding: 0.48rem 0.55rem;
  border: 1px solid rgba(117, 183, 152, 0.24);
  border-radius: 0.58rem;
  background: var(--suite-glass-card);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 2px 10px rgba(0, 0, 0, 0.16);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  overflow: hidden;
  appearance: none;
  -webkit-appearance: none;
  color: inherit;
  font: inherit;
}

.welcome-sidebar-panel:not(:has(.welcome-sidebar-section--forecast:not(.d-none))) .welcome-sidebar-feeds > :last-child:not(.d-none) {
  border-bottom-left-radius: 0.58rem;
  border-bottom-right-radius: 0.58rem;
}

@media (max-height: 860px) {
  .welcome-sidebar .welcome-sidebar-thumb {
    width: min(100cqh, 48cqw, 6.25rem);
    height: min(100cqh, 48cqw, 6.25rem);
  }
}

.welcome-sidebar-section--forecast .welcome-forecast-tile:hover,
.welcome-sidebar-section--forecast .welcome-forecast-tile.active {
  background: rgba(34, 197, 94, 0.1);
}

.welcome-forecast-tile-label {
  display: inline;
  font-size: 0.95rem;
}

.welcome-feed-help {
  line-height: 1;
  text-decoration: none;
}

.welcome-feed-help:hover,
.welcome-feed-help:focus-visible {
  color: var(--bs-success) !important;
}

.welcome-feed-help .bi {
  font-size: 0.95rem;
}

.tooltip.welcome-feed-help-tooltip .tooltip-inner {
  max-width: min(20rem, 90vw);
  text-align: left;
}

.welcome-detail-col {
  min-height: 0;
  overflow: hidden;
}

@media (min-width: 992px) {
  .player-dashboard-page .welcome-columns {
    flex-wrap: nowrap;
  }
}

@media (max-width: 991.98px) {
  .welcome-sidebar {
    flex: 1 1 auto;
    max-height: 42%;
    min-height: 0;
  }

  .welcome-detail-col {
    flex: 1 1.1 auto;
    min-height: 38%;
  }

  .welcome-detail-card {
    scroll-margin-top: 0.75rem;
  }
}

.player-dashboard-page .portal-card {
  background: var(--suite-glass-panel);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.player-dashboard-page .portal-card.welcome-sidebar-panel {
  padding: 0.42rem 0.46rem 0.5rem;
  border-radius: 0.65rem;
  overflow: visible;
  background: rgba(8, 10, 12, 0.35);
  border-color: rgba(255, 255, 255, 0.06);
}

.player-dashboard-page .portal-tabs .nav-link {
  background: rgba(12, 14, 16, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.player-dashboard-page .portal-tabs .nav-link.active {
  color: #e6f2ea;
  background: rgba(20, 36, 28, 0.96);
  border-color: rgba(117, 183, 152, 0.55);
  border-bottom: 2px solid rgba(117, 183, 152, 0.65);
  box-shadow: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.player-dashboard-page .suite-footer {
  margin-top: 0.35rem !important;
  margin-bottom: 0.35rem !important;
  flex-shrink: 0;
}

.player-dashboard-page .ticket-row {
  background: rgba(255, 255, 255, 0.06);
}

.player-dashboard-page #ticket-type-filter,
.player-dashboard-page #ticket-search-input {
  background: var(--portal-surface-solid);
}


.player-dashboard-page .char-card,
.player-dashboard-page .char-detail-card {
  background: var(--portal-surface-solid);
}

.player-dashboard-page .media-item-card {
  background: rgba(16, 18, 20, 0.85);
  border: 1px solid var(--suite-glass-border);
  border-radius: 0.5rem;
  padding: 0.75rem;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.media-filter-details {
  border: none;
}

.media-filter-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.media-filter-summary::-webkit-details-marker {
  display: none;
}

.media-filter-summary::marker {
  content: '';
}

.media-filter-chevron {
  transition: transform 0.2s ease;
  opacity: 0.75;
  flex-shrink: 0;
}

.media-filter-details[open] .media-filter-chevron,
.ticket-section-details[open] .media-filter-chevron {
  transform: rotate(180deg);
}

.ticket-section-details {
  border: none;
}

.ticket-sidebar-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ticket-sidebar-stack > .portal-card {
  margin: 0 !important;
}

.ticket-sidebar-stack .media-filter-body .ticket-list {
  max-height: none;
}

.portal-media-intro__uses {
  margin: 0 0 0.75rem;
  padding-left: 1.1rem;
  line-height: 1.45;
}

.portal-media-intro__uses li + li {
  margin-top: 0.35rem;
}

#media-detail-empty .portal-media-intro {
  max-width: 42rem;
}

.player-dashboard-page .media-item-card:hover,
.player-dashboard-page .media-item-card.active {
  border-color: rgba(34, 197, 94, 0.55);
}

.player-dashboard-page .media-preview-box {
  background: var(--portal-surface-solid);
  border-radius: 0.5rem;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.player-dashboard-page .media-preview-box img {
  max-width: 100%;
  max-height: 280px;
  object-fit: contain;
}

.player-dashboard-page .media-preview-box audio {
  width: 100%;
}

.player-dashboard-page #transcript-panel:not(.transcript-maximized) {
  background: var(--portal-surface-solid);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.landing-wrap {
  max-width: 1100px;
}

.landing-wrap .col-lg-8,
.landing-wrap .col-lg-4 {
  width: 100% !important;
  flex: 0 0 100%;
  max-width: 100%;
}

.landing-hero .estelglin-title {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  color: #c4a8e8;
  letter-spacing: 0.04em;
}

.landing-hero {
  position: relative;
  overflow: hidden;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
}

.landing-hero-logo {
  width: min(760px, 94vw);
  max-height: 180px;
  object-fit: contain;
}

.landing-hero .estelglin-subtitle {
  font-size: 1.05rem;
  font-style: normal;
  font-weight: 600;
  color: #e8e8e8;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.95);
  display: block;
  margin-top: 0.25rem;
  background: rgba(0, 0, 0, 0.68);
  padding: 0.25rem 0.85rem;
  border-radius: 8px;
}

.landing-panel {
  background: rgba(8, 10, 12, 0.96);
  border: 1px solid var(--suite-glass-border);
  border-radius: 12px;
  padding: 1.5rem;
  backdrop-filter: blur(var(--suite-glass-blur));
}

.landing-login-panel {
  text-align: center;
}

.landing-login-panel .d-flex {
  justify-content: center;
}

.landing-login-panel form {
  max-width: 22rem;
  margin-inline: auto;
  text-align: start;
}

.landing-features li {
  margin-bottom: 0.75rem;
}

.conan-banner {
  border-radius: 8px;
  max-width: 100%;
}

.collage-banner {
  border-radius: 8px;
  max-width: 100%;
  width: 100%;
}

/* Welcome dashboard feed - scroll only with .welcome-feed-list--scroll (news 4+) */
.welcome-feed-list {
  display: flex;
  flex-direction: column;
  gap: clamp(0.35rem, 0.8vh, 0.65rem);
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.welcome-feed-row {
  display: block;
  width: 100%;
  text-align: left;
  border: 1px solid transparent;
  border-radius: clamp(8px, 1vh, 12px);
  padding: clamp(0.55rem, 1.2vh, 1rem) clamp(0.65rem, 1.4vw, 1.15rem);
  background: var(--bg-tertiary);
  color: inherit;
  cursor: pointer;
  flex-shrink: 0;
}

.welcome-feed-row:hover {
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.08);
}

.welcome-feed-row.active {
  border-color: var(--accent-success);
  background: rgba(34, 197, 94, 0.14);
}

.welcome-feed-row-inner {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.welcome-feed-thumb {
  width: clamp(52px, 7vh, 96px);
  height: clamp(52px, 7vh, 96px);
  object-fit: cover;
  border-radius: clamp(8px, 1vh, 12px);
  flex-shrink: 0;
  border: 1px solid var(--bg-tertiary);
}

.welcome-feed-row-text {
  flex: 1;
  min-width: 0;
}

.welcome-feed-row strong {
  display: block;
  font-size: clamp(0.92rem, 0.85rem + 0.35vh, 1.12rem);
}

.welcome-detail-hero .welcome-feed-thumb {
  width: 100%;
  max-width: 420px;
  height: auto;
  max-height: 240px;
}

.welcome-attachments-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.welcome-att-img {
  max-width: 100%;
  max-height: 280px;
  border-radius: 8px;
  border: 1px solid var(--bg-tertiary);
}

.welcome-att-audio {
  width: 100%;
  max-width: 420px;
}

.welcome-att-file {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.55rem;
  border-radius: 6px;
  background: var(--bg-tertiary);
  color: var(--accent-info);
  text-decoration: none;
}

.welcome-att-file:hover {
  color: #7dd3fc;
}

.welcome-feed-preview,
.welcome-feed-meta {
  display: block;
  font-size: clamp(0.75rem, 0.7rem + 0.2vh, 0.9rem);
  color: var(--text-secondary);
}

.welcome-badge-new {
  float: right;
  font-size: 0.65rem;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  background: rgba(234, 179, 8, 0.25);
  color: #fde047;
}

@keyframes welcome-feed-row-pulse {
  0%,
  100% {
    border-color: var(--suite-glass-border);
    background: rgba(16, 18, 20, 0.85);
    box-shadow: none;
  }
  50% {
    border-color: rgba(234, 179, 8, 0.55);
    background: rgba(234, 179, 8, 0.1);
    box-shadow: 0 0 12px rgba(234, 179, 8, 0.2);
  }
}

.welcome-feed-row--pulse {
  animation: welcome-feed-row-pulse 1.4s ease-in-out 2;
}

.welcome-feed-row--hold {
  border-color: rgba(234, 179, 8, 0.55) !important;
  background: rgba(234, 179, 8, 0.12) !important;
  box-shadow: 0 0 14px rgba(234, 179, 8, 0.22);
}

.welcome-feed-row--hold.welcome-feed-row--hold-fade {
  border-color: var(--suite-glass-border) !important;
  background: rgba(16, 18, 20, 0.85) !important;
  box-shadow: none;
  transition:
    border-color 0.9s ease-out,
    background-color 0.9s ease-out,
    box-shadow 0.9s ease-out;
}

@media (prefers-reduced-motion: reduce) {
  .welcome-feed-row--pulse {
    animation: none;
  }

  .welcome-feed-row--hold.welcome-feed-row--hold-fade {
    transition-duration: 0.35s;
  }
}

.welcome-detail-card {
  min-height: 0;
  overflow: hidden;
  padding: clamp(0.85rem, 1.5vh, 1.35rem);
}

.welcome-detail-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
}

.welcome-detail-content {
  font-size: clamp(0.9rem, 0.85rem + 0.25vh, 1.05rem);
  line-height: 1.5;
}

.welcome-detail-content strong {
  color: #86efac;
}

/* Discord message formatting (welcome feed) */
.welcome-detail-content .discord-quote {
  margin: 0.35rem 0 0.5rem;
  padding: 0.45rem 0.65rem;
  border-left: 3px solid var(--accent-success);
  background: rgba(34, 197, 94, 0.08);
  border-radius: 0 6px 6px 0;
  color: var(--text-secondary);
}

.welcome-detail-content .discord-h {
  font-weight: 600;
  color: #86efac;
  margin: 0.35rem 0;
}

.welcome-detail-content .discord-link {
  color: #7dd3fc;
  text-decoration: underline;
}

.welcome-detail-content .discord-link:hover {
  color: #bae6fd;
}

.welcome-detail-content .discord-code {
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.35);
  font-size: 0.88em;
}

.welcome-detail-content .discord-pre {
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.4);
  overflow-x: auto;
  font-size: 0.85em;
}

.welcome-detail-content .discord-spoiler {
  background: #3f3f46;
  color: #3f3f46;
  border-radius: 4px;
  padding: 0 0.2rem;
  cursor: pointer;
}

.welcome-detail-content .discord-spoiler:hover,
.welcome-detail-content .discord-spoiler:focus {
  color: inherit;
  background: #52525b;
}

.welcome-detail-content .discord-emoji {
  width: 1.35em;
  height: 1.35em;
  vertical-align: -0.25em;
  object-fit: contain;
}

.welcome-detail-content .discord-emoji-animated {
  width: 1.5em;
  height: 1.5em;
}

.landing-wrap .col-lg-4 .landing-panel .h6 {
  font-size: 1.15rem;
}

.landing-wrap .col-lg-4 .landing-panel .btn {
  font-size: 1.05rem;
  padding: 0.65rem 0.9rem;
}

.landing-wrap .col-lg-4 .conan-banner {
  width: 100%;
  max-width: 100%;
  height: auto;
  min-height: 0;
  object-fit: contain;
  transform: none;
}

.landing-wrap .col-lg-4 .landing-panel {
  min-height: 260px;
}

/* Dashboard loading overlay */
.portal-loading,
html.portal-page-loading::before {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 10, 12, 0.82);
  backdrop-filter: blur(4px);
}

html.portal-page-loading::before {
  content: '';
  pointer-events: all;
}

.portal-loading.is-hidden {
  display: none;
}

.portal-loading-card {
  text-align: center;
  padding: 1.5rem 2rem;
  border-radius: 12px;
  border: 1px solid var(--bg-tertiary);
  background: var(--bg-secondary);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  min-width: min(92vw, 280px);
}

.portal-loading-title {
  color: var(--accent-success);
  font-weight: 600;
}

.portal-loading-spinner {
  width: 2.5rem;
  height: 2.5rem;
  margin: 0 auto 1rem;
  border: 3px solid rgba(34, 197, 94, 0.2);
  border-top-color: var(--accent-success);
  border-radius: 50%;
  animation: portal-spin 0.75s linear infinite;
}

@keyframes portal-spin {
  to {
    transform: rotate(360deg);
  }
}

.portal-shell-pending {
  opacity: 0.35;
  pointer-events: none;
  filter: blur(1px);
  transition: opacity 0.2s ease, filter 0.2s ease;
}

.portal-shell:not(.portal-shell-pending) {
  transition: opacity 0.25s ease;
}

.portal-tabs {
  border-bottom: none;
  gap: 0.25rem;
}

.portal-tabs .nav-item {
  margin-bottom: 0;
}

.portal-tabs .nav-link {
  color: var(--text-secondary);
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(12, 14, 16, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  margin-bottom: 0;
  border-bottom-width: 1px;
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.portal-tabs .nav-link.active {
  color: #e6f2ea;
  background: rgba(20, 36, 28, 0.96);
  border-color: rgba(117, 183, 152, 0.55);
  border-bottom: 2px solid rgba(117, 183, 152, 0.65);
  box-shadow: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-weight: 600;
}

.portal-panel {
  display: none;
}

.portal-panel.active {
  display: block;
}

.portal-card {
  background: var(--suite-glass-panel);
  border: 1px solid var(--suite-glass-border);
  border-radius: 12px;
  padding: 1rem;
}

.portal-card.welcome-sidebar-panel {
  padding: 0.42rem 0.46rem 0.5rem;
  border-radius: 0.65rem;
  overflow: visible;
  background: rgba(8, 10, 12, 0.35);
  border-color: rgba(255, 255, 255, 0.06);
}

.ticket-list {
  max-height: calc(100vh - 250px);
  overflow-y: auto;
}

.ticket-list:not(:empty) {
  min-height: 3rem;
}

.ticket-row {
  display: block;
  width: 100%;
  text-align: left;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
  margin-bottom: 0.5rem;
  color: inherit;
  cursor: pointer;
}

#ticket-type-filter,
#ticket-search-input {
  background: rgba(12, 14, 16, 0.85);
  border-color: rgba(255, 255, 255, 0.15);
  color: #f1f4f6;
}

.ticket-row:hover,
.ticket-row.selected {
  border-color: var(--accent-success);
  background: rgba(34, 197, 94, 0.06);
}

#transcript-frame {
  background: #fff;
  min-height: 12rem;
  border: 0;
  border-radius: 8px;
}

.transcript-panel-body {
  min-height: 0;
}

#transcript-panel:not(.transcript-maximized) {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

#transcript-panel:not(.transcript-maximized) .transcript-panel-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

#transcript-panel:not(.transcript-maximized) #transcript-frame:not(.d-none) {
  flex: 1 1 auto;
  min-height: 12rem;
  height: auto !important;
}

.ticket-layout > .col-lg-8 {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.ticket-detail-root {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

.ticket-detail-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

.ticket-detail-card {
  flex-shrink: 0;
}

.transcript-placeholder {
  padding: 0.75rem 0;
}

body.transcript-maximized .suite-topbar {
  position: relative;
  z-index: 1050;
}

#transcript-panel.transcript-maximized {
  position: fixed;
  top: var(--suite-topbar-height, 3.25rem);
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1040;
  margin: 0 !important;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  max-width: none;
  width: 100%;
  /* Deckend - kein Glass-Effekt, Tabs nicht durchscheinen */
  background-color: rgb(12, 14, 16);
  border-color: rgb(12, 14, 16);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.45);
  transform-origin: center top;
  animation: transcript-fullscreen-in 0.34s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

#transcript-panel.transcript-maximized.transcript-maximize-out {
  animation: transcript-fullscreen-out 0.26s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes transcript-fullscreen-in {
  from {
    background-color: rgba(12, 14, 16, 0.82);
    opacity: 0.94;
    transform: scale(0.97);
  }
  to {
    background-color: rgb(12, 14, 16);
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes transcript-fullscreen-out {
  from {
    background-color: rgb(12, 14, 16);
    opacity: 1;
    transform: scale(1);
  }
  to {
    background-color: rgba(12, 14, 16, 0.82);
    opacity: 0.94;
    transform: scale(0.98);
  }
}

#transcript-panel.transcript-maximized .transcript-panel-header {
  flex-shrink: 0;
  padding: 0.5rem 1rem 0.25rem;
  background: rgb(12, 14, 16);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

#transcript-panel.transcript-maximized .transcript-panel-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

#transcript-panel.transcript-maximized #transcript-frame {
  flex: 1;
  height: auto !important;
  min-height: 0;
  border-radius: 0;
}

body.transcript-maximized {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  #transcript-panel.transcript-maximized,
  #transcript-panel.transcript-maximized.transcript-maximize-out {
    animation: none;
    transform: none;
    opacity: 1;
    background-color: rgb(12, 14, 16);
  }
}

.ticket-layout {
  min-height: calc(100vh - 210px);
}

@media (max-width: 991.98px) {
  .ticket-layout {
    min-height: 0;
  }
}

/* -- Lieferhamster Explorer -- */
.lh-shell {
  padding: 0 !important;
  overflow: hidden;
  min-height: min(72vh, 760px);
  display: flex;
  flex-direction: column;
}

.lh-header {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.65rem;
  padding: 1rem 1.1rem 0.85rem;
  border-bottom: 1px solid var(--suite-glass-border);
  background: rgba(12, 14, 16, 0.55);
}

.lh-header-top {
  min-width: 0;
}

.lh-header h3 {
  margin: 0;
  font-size: 1.15rem;
  color: var(--accent-success);
}

.lh-breadcrumb {
  margin: 0.2rem 0 0;
  font-size: 0.8rem;
  color: var(--text-secondary, #9ca3af);
  min-height: 1.1em;
}

.lh-search-wrap {
  width: 100%;
  max-width: none;
  min-width: 0;
}

.lh-search-wrap .form-label {
  color: var(--accent-success);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.lh-search-wrap .form-control {
  background: var(--portal-surface-solid);
  border-color: var(--suite-glass-border);
}

.lh-explorer[data-layout='search'][data-cols='1'] {
  grid-template-columns: minmax(0, 1fr);
}

.lh-explorer[data-layout='search'][data-cols='2'] {
  grid-template-columns: minmax(260px, 36%) minmax(0, 1fr);
}

.lh-explorer[data-layout='search'][data-cols='2'][data-has-detail='true'] {
  grid-template-columns: minmax(260px, 36%) minmax(360px, 1fr);
}

.lh-explorer {
  flex: 1;
  display: grid;
  min-height: 0;
  overflow: hidden;
}

.lh-explorer[data-cols='1'] {
  grid-template-columns: 1fr;
}

.lh-explorer[data-cols='2'] {
  grid-template-columns: minmax(148px, 200px) minmax(0, 1fr);
}

.lh-explorer[data-cols='2'][data-has-detail='true'] {
  grid-template-columns: minmax(148px, 200px) minmax(360px, 1fr);
}

.lh-explorer[data-cols='3'] {
  grid-template-columns: minmax(132px, 168px) minmax(148px, 200px) minmax(0, 1fr);
}

.lh-explorer[data-cols='3'][data-has-detail='true'] {
  grid-template-columns:
    minmax(128px, 14%)
    minmax(220px, 34%)
    minmax(360px, 1fr);
}

.lh-explorer[data-cols='4'] {
  /* Feste Nav/List, Items mittig, Detail füllt den Rest ohne Lücke */
  grid-template-columns:
    minmax(120px, 12%)
    minmax(150px, 14%)
    minmax(220px, 28%)
    minmax(380px, 1fr);
}

.lh-pane {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  border-right: 1px solid var(--suite-glass-border);
  background: rgba(12, 14, 16, 0.35);
}

.lh-pane:last-child {
  border-right: none;
}

.lh-pane-detail {
  background: rgba(16, 18, 20, 0.72);
}

.lh-pane.is-hidden {
  display: none;
}

.lh-pane-head {
  padding: 0.65rem 0.85rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-success);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.lh-pane-body {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem;
  scrollbar-gutter: auto;
}

.lh-pane-nav .lh-pane-body {
  overflow-y: hidden;
}

.lh-nav-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  text-align: left;
  border: none;
  border-radius: 8px;
  padding: 0.55rem 0.65rem;
  margin-bottom: 0.25rem;
  background: transparent;
  color: inherit;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.lh-nav-btn:hover {
  background: rgba(255, 255, 255, 0.06);
}

.lh-nav-btn.active {
  background: rgba(34, 197, 94, 0.22);
  color: #86efac;
}

.lh-nav-btn i {
  opacity: 0.85;
  width: 1.1rem;
  text-align: center;
}

.lh-list-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  text-align: left;
  border: none;
  border-radius: 8px;
  padding: 0.5rem 0.6rem;
  margin-bottom: 0.2rem;
  background: transparent;
  color: inherit;
  font-size: 0.86rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.lh-list-btn:hover {
  background: rgba(255, 255, 255, 0.05);
}

.lh-list-btn.active {
  background: rgba(34, 197, 94, 0.18);
  box-shadow: inset 2px 0 0 var(--accent-success);
}

.lh-list-btn .lh-count {
  font-size: 0.72rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #9ca3af;
  flex-shrink: 0;
}

.lh-items-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.lh-item-row {
  display: block;
  width: 100%;
  text-align: left;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0.55rem 0.65rem;
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.lh-item-row:hover {
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.08);
}

.lh-item-row.active {
  border-color: var(--accent-success);
  background: rgba(34, 197, 94, 0.14);
}

.lh-item-row strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.15rem;
}

.lh-item-row .lh-item-meta {
  font-size: 0.75rem;
  color: #9ca3af;
}

.lh-empty {
  padding: 1.5rem 0.75rem;
  text-align: center;
  color: #9ca3af;
  font-size: 0.85rem;
}

.portal-empty-hint {
  padding: 0.75rem 0.25rem 0.5rem;
}

.portal-empty-hint__text {
  font-size: 0.85rem;
  line-height: 1.45;
  color: #b8c0cc;
  margin-bottom: 0.65rem;
}

.portal-empty-hint__cta {
  white-space: normal;
}

.ticket-list .portal-empty-hint {
  padding-top: 0.35rem;
}

.lh-detail-empty {
  padding: 2rem 1rem;
  text-align: center;
  color: #9ca3af;
  font-size: 0.9rem;
}

.lh-detail-card {
  padding: 1rem 1.1rem;
  max-width: 100%;
}

.lh-pane-detail .lh-pane-body {
  padding: 0.65rem 0.85rem;
}

.lh-pane-detail .form-control,
.lh-pane-detail .form-select {
  font-size: 0.9rem;
}

.lh-detail-card h4 {
  color: var(--accent-success);
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.lh-detail-meta {
  font-size: 0.82rem;
  color: #9ca3af;
  margin-bottom: 1rem;
}

.lh-detail-meta span {
  display: inline-block;
  margin-right: 0.5rem;
  margin-bottom: 0.25rem;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
}

.lh-order-row {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
  margin-bottom: 0.75rem;
}

.lh-order-row input {
  max-width: 5rem;
  background: var(--portal-surface-solid);
}

.lh-feedback {
  font-size: 0.82rem;
  margin-top: 0.5rem;
  min-height: 1.2em;
}

.lh-feedback.ok {
  color: #86efac;
}

.lh-feedback.err {
  color: #fca5a5;
}

.lh-mobile-bar {
  display: none;
  padding: 0.45rem 0.75rem;
  border-top: 1px solid var(--suite-glass-border);
  background: rgba(12, 14, 16, 0.9);
}

.lh-mobile-bar .btn {
  font-size: 0.82rem;
}

@media (max-width: 991.98px) {
  .lh-explorer[data-cols='3'],
  .lh-explorer[data-cols='4'] {
    grid-template-columns: minmax(140px, 42vw) minmax(0, 1fr);
  }

  .lh-explorer[data-cols='4'] .lh-pane-detail {
    position: absolute;
    inset: 0;
    z-index: 4;
    border-right: none;
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.45);
  }

  .lh-explorer[data-cols='4'] {
    position: relative;
  }

  .lh-explorer[data-cols='4'] .lh-pane-nav,
  .lh-explorer[data-cols='4'] .lh-pane-list,
  .lh-explorer[data-cols='4'] .lh-pane-items {
    opacity: 0.35;
    pointer-events: none;
  }

  .lh-explorer[data-cols='4'] .lh-pane-detail {
    opacity: 1;
    pointer-events: auto;
  }
}

@media (max-width: 767.98px) {
  .lh-explorer {
    position: relative;
  }

  .lh-explorer .lh-pane {
    display: none;
    border-right: none;
  }

  .lh-explorer .lh-pane.lh-pane-active {
    display: flex;
  }

  .lh-mobile-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
  }

  .lh-shell {
    min-height: min(68vh, 640px);
  }
}

.player-dashboard-page .lh-item-row {
  background: rgba(16, 18, 20, 0.85);
}

.chars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.char-card h4 {
  color: var(--accent-success);
  font-size: 1.1rem;
}

.char-card,
.char-detail-card {
  background: rgba(10, 12, 14, 0.9);
}

.char-card {
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
}

.char-card:hover {
  border-color: var(--accent-success);
  transform: translateY(-1px);
}

.inkro-sidebar-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.inkro-sidebar-stack > .portal-card {
  margin: 0;
}

.inkro-search-results .inkro-search-hit.active {
  border-color: var(--accent-success);
  color: var(--accent-success);
}

.inkro-thread {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: min(52vh, 520px);
  overflow-y: auto;
  padding-right: 0.25rem;
}

.inkro-msg {
  max-width: 92%;
  padding: 0.55rem 0.75rem;
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--suite-glass-border);
}

.inkro-msg-mine {
  align-self: flex-end;
  background: rgba(25, 135, 84, 0.12);
  border-color: rgba(25, 135, 84, 0.35);
}

.inkro-msg-text {
  white-space: pre-wrap;
  word-break: break-word;
}

.inkro-sidebar-stack .ticket-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: min(22rem, 38vh);
}

.inkro-dm-tabs,
.inkro-ch-tabs {
  display: none;
  flex-shrink: 0;
  gap: 0.35rem;
  padding: 0.45rem;
  margin-bottom: 0.25rem;
  background: var(--portal-surface-solid);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.65rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.inkro-dm-tabs .welcome-feed-tab,
.inkro-ch-tabs .welcome-feed-tab {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #e8ecef;
  font-weight: 500;
}

.inkro-dm-tabs .welcome-feed-tab.active,
.inkro-ch-tabs .welcome-feed-tab.active {
  color: #e6f2ea;
  background: rgba(20, 36, 28, 0.98);
  border-color: rgba(117, 183, 152, 0.55);
  font-weight: 600;
}

.inkro-dm-layout .inkro-detail-body,
.inkro-ch-layout .inkro-detail-body {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.inkro-dm-layout .inkro-detail-footer,
.inkro-ch-layout .inkro-detail-footer {
  flex-shrink: 0;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--suite-glass-border);
}

.inkro-dm-layout .inkro-detail-root:not(:empty):not(:has(.inkro-detail-placeholder)),
.inkro-ch-layout .inkro-detail-root:not(:empty):not(:has(.inkro-detail-placeholder)) {
  display: flex;
  flex-direction: column;
}

.inkro-sidebar-stack .ticket-list .ticket-row {
  width: 100%;
  margin-bottom: 0;
}

.inkro-session-preview {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  word-break: break-word;
  line-height: 1.35;
  margin-top: 0.15rem;
}

.inkro-subnav {
  flex-wrap: wrap;
  padding: 0.45rem;
  background: var(--portal-surface-solid);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.65rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.inkro-subnav .nav-link {
  color: #e8ecef;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-weight: 500;
}

.inkro-subnav .nav-link.active {
  color: #e6f2ea;
  background: rgba(20, 36, 28, 0.98);
  border-color: rgba(117, 183, 152, 0.55);
  font-weight: 600;
}

@media (max-width: 991.98px) {
  .inkro-layout > .col-lg-8 {
    margin-top: 0.5rem;
  }
}

/* ----- Unsere Dienste (list + detail) ----- */
.services-layout > .col-lg-8 {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.services-detail-root:not(:has(.services-detail-placeholder)) {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

.services-detail-body {
  flex: 1 1 auto;
  min-height: 0;
}

.services-detail-body--with-action {
  display: flex;
  flex-direction: column;
}

.services-detail-body--with-action .services-detail-card {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom: none;
  flex: 1 1 auto;
  min-height: 0;
}

.services-detail-footer {
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  border: 1px solid var(--suite-glass-border);
  border-top: none;
  border-radius: 0 0 12px 12px;
  background: var(--suite-glass-panel);
  overflow: hidden;
}

.services-detail-footer .service-tab-link {
  margin: 0;
  border: none;
  border-radius: 0;
}

.services-guide-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: min(70vh, 640px);
  overflow-y: auto;
  overflow-anchor: none;
}

.services-guide-list .ticket-row {
  width: 100%;
  margin-bottom: 0;
}

.services-list-icon,
.services-detail-icon {
  font-size: 1.2rem;
  color: var(--accent-success);
  flex-shrink: 0;
}

.services-list-teaser {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  line-height: 1.35;
  margin-top: 0.15rem;
}

.services-list-intro,
.services-detail-card {
  background: var(--portal-surface-solid);
}

.service-guide-section + .service-guide-section {
  margin-top: 1rem;
}

.service-guide-items {
  padding-left: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.service-guide-item {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.45;
}

.service-command {
  display: inline-block;
  margin-right: 0.25rem;
  padding: 0.05rem 0.35rem;
  border-radius: 0.25rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85em;
  color: #b8f0d0;
}
