:root {
  --bg: #090b10;
  --surface: #11141c;
  --surface-2: #171b25;
  --surface-3: #1d2230;
  --line: #2a3040;
  --text: #f6f7fb;
  --muted: #9299aa;
  --primary: #9147ff;
  --primary-2: #772ce8;
  --success: #28c76f;
  --danger: #ff5c6c;
  --warning: #f5b942;
  --shadow: 0 24px 80px rgba(0, 0, 0, .35);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: dark
}

* {
  box-sizing: border-box
}

body {
  margin: 0;
  background: radial-gradient(circle at 75% 0%, rgba(145, 71, 255, .12), transparent 30%), var(--bg);
  color: var(--text);
  min-height: 100vh
}

button,
input,
select,
textarea {
  font: inherit
}

a {
  color: inherit;
  text-decoration: none
}

.landing-shell {
  min-height: 100vh;
  max-width: 1160px;
  margin: auto;
  padding: 30px 28px;
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 48px;
  align-items: center
}
main.landing-shell:after {
  content: "";
  display: block;
  background-image: url(/assets/logo.svg);
  background-repeat: no-repeat;
  background-position: bottom -15vw right -13vw;
  background-size: 45vw;
  width: 100%;
  height: 100%;
  position: fixed;
  bottom: 0;
  right: 0;
  z-index: -1;
  opacity: 50%;
}

.landing-card {
  padding: 56px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(23, 27, 37, .98), rgba(13, 15, 22, .98));
  box-shadow: var(--shadow)
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -.03em
}

.brand-large {
  font-size: 22px;
  margin-bottom: 58px
}

.brand-mark {
  width: 36px;
  height: 36px;
}

.landing-shell .brand-mark {
  width: 65px;
  height: 65px;
  margin-right: 0.5em;
}

.landing-card h1 {
  font-size: clamp(44px, 7vw, 78px);
  line-height: .98;
  letter-spacing: -.065em;
  margin: 14px 0 24px
}

.landing-card h1 span {
  color: #a970ff
}

.lead {
  font-size: 19px;
  line-height: 1.65;
  color: #bbc0cd;
  max-width: 680px;
  margin-bottom: 32px
}

.privacy-note {
  font-size: 13px;
  color: var(--muted);
  margin-top: 20px
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px
}

.feature-grid article {
  min-height: 150px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(17, 20, 28, .9);
  display: flex;
  flex-direction: column;
  justify-content: flex-start
}

.feature-grid strong {
  font-size: 18px
}

.feature-grid span {
  font-size: 14px;
  color: var(--muted);
  margin-top: 6px
}

.eyebrow {
  margin: 0;
  color: #a970ff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 10px 15px;
  font-weight: 700;
  cursor: pointer;
  transition: .18s ease
}

.button:hover {
  transform: translateY(-1px)
}

.button-primary {
  background: var(--primary);
  color: #fff
}

.button-primary:hover {
  background: var(--primary-2)
}

.button-secondary {
  background: var(--surface-3);
  border-color: var(--line);
  color: var(--text)
}

.button-success {
  background: rgba(40, 199, 111, .14);
  border-color: rgba(40, 199, 111, .35);
  color: #7beaab
}

.button-danger {
  background: rgba(255, 92, 108, .13);
  border-color: rgba(255, 92, 108, .35);
  color: #ff8d98
}

.button-large {
  padding: 14px 22px;
  font-size: 16px
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr)
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px 18px;
  border-right: 1px solid var(--line);
  background: rgba(12, 14, 20, .96);
  display: flex;
  flex-direction: column
}

.sidebar>.brand {
  padding: 4px 10px 26px;
  font-size: 12px
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #aeb4c2;
  text-align: left;
  cursor: pointer
}

.nav-item span {
  display: inline-grid;
  place-items: center;
  width: 20px;
  color: #858b9a
}

.nav-item:hover,
.nav-item.active {
  background: var(--surface-2);
  color: #fff
}

.nav-item.active {
  box-shadow: inset 3px 0 var(--primary)
}

.sidebar-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 18px 8px 0
}

.user-card {
  display: flex;
  gap: 11px;
  align-items: center
}

.user-card img,
.avatar-fallback {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover
}

.avatar-fallback {
  display: grid;
  place-items: center;
  background: var(--primary);
  font-weight: 800
}

.user-card div {
  min-width: 0;
  display: flex;
  flex-direction: column
}

.user-card strong,
.user-card span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}

.user-card span {
  font-size: 12px;
  color: var(--muted)
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 12px 0 0;
  cursor: pointer
}

.sidebar-logout-button {
  color: #db6767;
  transition: color .18s ease, text-shadow .18s ease
}

.sidebar-logout-button:hover,
.sidebar-logout-button:focus-visible {
  color: #f08a8a;
  text-shadow: 0 0 14px rgba(219, 103, 103, .3)
}

.workspace {
  min-width: 0
}

.topbar {
  min-height: 100px;
  padding: 22px 32px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: rgba(9, 11, 16, .84);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 20
}

.topbar h1 {
  margin: 5px 0 0;
  font-size: 27px;
  letter-spacing: -.035em
}

.topbar-actions {
  display: flex;
  align-items: end;
  gap: 10px
}

.channel-picker {
  display: flex;
  flex-direction: column;
  gap: 5px
}

.channel-picker span {
  font-size: 11px;
  color: var(--muted);
  font-weight: 700
}

.channel-picker select {
  min-width: 180px
}

.content {
  padding: 28px 32px 64px;
  max-width: 1540px
}

.view {
  display: none
}

.view.active {
  display: block
}

.metric-card,
.panel,
.subpanel {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, var(--surface), #0e1118);
  border-radius: 16px
}

.metric-card {
  padding: 20px
}

.metric-card span {
  font-size: 12px;
  color: var(--muted)
}

.metric-card strong {
  display: block;
  font-size: 26px;
  margin: 9px 0 3px;
  letter-spacing: -.04em
}

.metric-card small {
  color: var(--muted)
}

.panel {
  padding: 22px;
  margin-bottom: 20px;
  box-shadow: 0 10px 45px rgba(0, 0, 0, .12)
}

.panel h2 {
  margin: 4px 0 0;
  font-size: 20px
}

.panel p {
  color: #aeb4c2;
  line-height: 1.55
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px
}

.badge {
  display: inline-flex;
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--surface-3);
  font-size: 12px;
  color: #c4c8d3
}

.badge.success {
  color: #78e7a1;
  background: rgba(40, 199, 111, .12)
}

.badge.danger {
  color: #ff919b;
  background: rgba(255, 92, 108, .12)
}

.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px
}

.button-row {
  display: flex;
  gap: 10px;
  margin-top: 18px
}

.button-row.wrap {
  flex-wrap: wrap
}

.quick-settings {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px
}

.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0
}

.switch-row+.switch-row {
  border-top: 1px solid var(--line)
}

.switch-row.compact {
  padding: 10px 0;
  border: 0
}

.switch-row>span {
  display: flex;
  flex-direction: column;
  gap: 3px
}

.switch-row small {
  color: var(--muted)
}

.switch-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none
}

.switch-row i {
  position: relative;
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: #333947;
  flex: 0 0 auto;
  transition: .2s
}

.switch-row i:after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: white;
  transition: .2s
}

.switch-row input:checked+i {
  background: var(--primary)
}

.switch-row input:checked+i:after {
  transform: translateX(20px)
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px
}

.field.full {
  grid-column: 1/-1
}

.field>span {
  font-size: 12px;
  color: #bcc1cd;
  font-weight: 700
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #0d1017;
  color: var(--text);
  padding: 10px 12px;
  outline: none
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(145, 71, 255, .12)
}

textarea {
  resize: vertical;
  line-height: 1.5
}

.field small {
  color: var(--muted)
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: #222737;
  border-radius: 5px;
  padding: 2px 5px
}

.stack-list {
  display: flex;
  flex-direction: column;
  gap: 12px
}

.item-card {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #0d1017;
  padding: 16px
}

.item-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px
}

.item-card-header strong {
  font-size: 15px
}

.icon-button {
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: #ff8d98;
  border-radius: 8px;
  padding: 7px 10px;
  cursor: pointer
}

.item-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px
}

.item-grid .wide {
  grid-column: span 2
}

.item-grid .full {
  grid-column: 1/-1
}

.rule-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px
}

.subpanel {
  padding: 18px;
  background: #0d1017
}

.checkbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin: 10px 0 16px;
  color: #c1c5d0
}

.checkbox-grid input {
  width: auto
}

.queue-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 500px;
  overflow: auto
}

.queue-entry {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  background: #0d1017
}

.queue-entry b {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--surface-3);
  color: #a970ff
}

.queue-entry span {
  color: var(--muted);
  font-size: 13px;
  margin-left: auto
}

.table-wrap {
  overflow: auto
}

.data-table {
  width: 100%;
  border-collapse: collapse
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 11px;
  border-bottom: 1px solid var(--line);
  font-size: 13px
}

.data-table th {
  color: var(--muted)
}

.json-editor {
  min-height: 620px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px
}

.code-output {
  white-space: pre-wrap;
  word-break: break-all;
  background: #090b10;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  color: #cdd1dc
}

.hidden {
  display: none
}

.muted {
  color: var(--muted) !important
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  max-width: 420px;
  padding: 13px 16px;
  border-radius: 11px;
  background: #202532;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: .22s;
  z-index: 100
}

.toast.visible {
  opacity: 1;
  transform: none
}

.toast.error {
  border-color: rgba(255, 92, 108, .5);
  color: #ffadb5
}

.toast.success {
  border-color: rgba(40, 199, 111, .5);
  color: #92efb2
}

@media(max-width:1100px) {
  .status-grid {
    grid-template-columns: 1fr 1fr
  }

  .item-grid {
    grid-template-columns: 1fr 1fr
  }

  .two-column,
  .rule-grid {
    grid-template-columns: 1fr
  }

  .landing-shell {
    grid-template-columns: 1fr
  }

  .feature-grid {
    grid-template-columns: repeat(4, 1fr)
  }
}

@media(max-width:780px) {
  .app-shell {
    display: block
  }

  .sidebar {
    position: static;
    width: auto;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line)
  }

  .nav-list {
    display: grid;
    grid-template-columns: 1fr 1fr
  }

  .sidebar-footer {
    display: flex;
    justify-content: space-between;
    align-items: end
  }

  .topbar {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    padding: 20px
  }

  .topbar-actions {
    width: 100%;
    flex-wrap: wrap
  }

  .channel-picker {
    flex: 1
  }

  .channel-picker select {
    min-width: 0
  }

  .content {
    padding: 20px
  }

  .status-grid,
  .quick-settings,
  .form-grid,
  .item-grid,
  .feature-grid {
    grid-template-columns: 1fr
  }

  .item-grid .wide {
    grid-column: auto
  }

  .landing-shell {
    padding: 22px
  }

  .landing-card {
    padding: 30px
  }

  .brand-large {
    margin-bottom: 38px
  }

  .landing-card h1 {
    font-size: 48px
  }
}

/* v1.2 - dirty state, channel access and OBS sources */
.button:disabled,
.icon-button:disabled {
  opacity: .45;
  cursor: not-allowed;
  transform: none !important;
  filter: saturate(.55)
}

.button[aria-busy="true"] {
  cursor: wait
}

.save-state {
  align-self: center;
  min-width: 175px;
  text-align: right;
  font-size: 12px;
  color: var(--muted);
  font-weight: 750;
  white-space: nowrap
}

.save-state.dirty {
  color: var(--warning)
}

.badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap
}

.inline-form {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap
}

.inline-form.compact-inline {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line)
}

.grow {
  flex: 1 1 260px
}

.small-text {
  font-size: 12px
}

.member-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 16px
}

.member-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #0d1017
}

.member-row .member-main {
  min-width: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px
}

.member-row .member-main strong,
.member-row .member-main span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}

.member-row .member-main span {
  font-size: 12px;
  color: var(--muted)
}

.member-row .member-role {
  font-size: 12px;
  color: #c9a8ff;
  background: rgba(145, 71, 255, .14);
  padding: 5px 8px;
  border-radius: 999px
}

.overlay-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start
}

.overlay-grid>.panel {
  margin-bottom: 0
}

.source-box {
  margin-top: 20px;
  padding: 16px;
  border: 1px dashed #3b4254;
  border-radius: 13px;
  background: rgba(9, 11, 16, .55)
}

.source-box input[readonly] {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  color: #d8dbe4
}

.overlay-event-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px
}

.disabled-link {
  opacity: .45;
  pointer-events: none;
  cursor: not-allowed
}

.toast.warning {
  border-color: rgba(245, 185, 66, .55);
  color: #ffd980
}

.content input:disabled,
.content select:disabled,
.content textarea:disabled {
  opacity: .62;
  cursor: not-allowed;
  background: #11141b;
  color: #a9afbc
}

.read-only-note {
  padding: 12px 14px;
  border: 1px solid rgba(245, 185, 66, .35);
  border-radius: 11px;
  background: rgba(245, 185, 66, .08);
  color: #ffd980;
  font-size: 13px;
  margin-bottom: 20px
}

.form-panel {
  min-width: 0
}

@media(max-width:1180px) {
  .overlay-grid {
    grid-template-columns: 1fr
  }

  .save-state {
    min-width: 0;
    text-align: left;
    order: 3;
    width: 100%
  }
}

@media(max-width:780px) {
  .topbar-actions {
    align-items: stretch
  }

  .topbar-actions>.button {
    flex: 1
  }

  .save-state {
    width: 100%;
    text-align: left
  }

  .overlay-event-grid {
    grid-template-columns: 1fr 1fr
  }

  .member-row {
    align-items: flex-start;
    flex-wrap: wrap
  }

  .member-row .icon-button {
    margin-left: auto
  }
}

.landing-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap
}

@media(max-width:620px) {
  .landing-actions {
    flex-direction: column;
    align-items: stretch
  }

  .landing-actions .button {
    width: 100%
  }
}

/* v1.3 - stabiler Header, Read-only-Darstellung und Queue-Aktionen */
.topbar-title {
  min-width: 180px
}

.topbar-controls {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 18px;
  min-width: 0
}

.save-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-height: 43px;
  padding-left: 18px;
  border-left: 1px solid var(--line)
}

.save-state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: auto;
  text-align: left;
  padding: 7px 10px;
  border: 1px solid rgba(40, 199, 111, .22);
  border-radius: 999px;
  background: rgba(40, 199, 111, .08);
  color: #8cecad;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap
}

.save-state-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(40, 199, 111, .12)
}

.save-state.dirty {
  border-color: rgba(245, 185, 66, .3);
  background: rgba(245, 185, 66, .09);
  color: #ffd064
}

.save-state.dirty .save-state-dot {
  background: var(--warning);
  box-shadow: 0 0 0 3px rgba(245, 185, 66, .13)
}

.save-state.read-only {
  border-color: var(--line);
  background: var(--surface-2);
  color: var(--muted)
}

.save-state.read-only .save-state-dot {
  background: #72798a;
  box-shadow: none
}

#save-button {
  min-width: 185px
}

.queue-actions {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line)
}

.queue-actions .button-row {
  margin-top: 0
}

.queue-pick-actions {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(145, 71, 255, .22);
  border-radius: 12px;
  background: rgba(145, 71, 255, .055)
}

.queue-pick-actions p {
  margin: 0 0 12px
}

.read-only-mode .content .panel {
  border-color: #242938
}

.read-only-mode .content input:disabled,
.read-only-mode .content select:disabled,
.read-only-mode .content textarea:disabled {
  opacity: .68;
  background: #0d0f15;
  color: #8f96a6;
  border-color: #222735
}

.switch-row input:disabled {
  opacity: 0 !important;
  visibility: hidden
}

.switch-row input:disabled+i {
  opacity: .42;
  filter: grayscale(.4);
  cursor: not-allowed
}

.switch-row input:disabled:checked+i {
  background: #665083
}

.switch-row input:disabled+i:after {
  background: #d6d7dc
}

.read-only-mode .switch-row>span,
.read-only-mode .field>span {
  opacity: .72
}

.read-only-mode .checkbox-grid {
  opacity: .62
}

.read-only-mode .checkbox-grid input:disabled {
  opacity: .55
}

.read-only-note {
  position: sticky;
  top: 105px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .2)
}

@media(max-width:1180px) {
  .topbar {
    align-items: flex-start
  }

  .topbar-controls {
    flex-wrap: wrap
  }

  .save-controls {
    width: 100%;
    padding-left: 0;
    padding-top: 12px;
    border-left: 0;
    border-top: 1px solid var(--line)
  }

  .save-state {
    margin-right: auto
  }

  .read-only-note {
    top: 0
  }
}

@media(max-width:780px) {
  .topbar-controls {
    width: 100%;
    align-items: stretch
  }

  .channel-picker {
    width: 100%
  }

  .save-controls {
    align-items: stretch;
    flex-wrap: wrap
  }

  .save-state {
    width: auto
  }

  .save-controls>.button {
    flex: 1 1 auto
  }

  #save-button {
    min-width: 0
  }

  .queue-pick-actions .button {
    width: 100%
  }
}

#save-button:disabled {
  opacity: 1;
  background: var(--surface-3);
  border-color: var(--line);
  color: #777f91;
  box-shadow: none
}

/* v1.4 - OAuth-Zustände, Kanalwahl und aufgeräumte Verwaltungsoberfläche */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important
}

.oauth-button.is-loading {
  pointer-events: none;
  opacity: .72;
  cursor: wait;
  transform: none
}

.oauth-button.is-loading:before {
  content: "";
  width: 15px;
  height: 15px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: oauth-spin .7s linear infinite
}

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

.topbar-controls {
  position: relative
}

.save-controls {
  border-left: 0;
  padding-left: 0
}

#save-button {
  min-width: 180px
}

.channel-picker {
  position: relative;
  min-width: 245px;
  display: flex;
  flex-direction: column;
  gap: 6px
}

.channel-picker-label {
  font-size: 11px;
  color: var(--muted);
  font-weight: 700
}

.channel-picker-button {
  width: 100%;
  min-height: 48px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #0d1017;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: .18s ease
}

.channel-picker-button:not(:disabled):hover,
.channel-picker-button[aria-expanded="true"] {
  border-color: #4a5268;
  background: #121620
}

.channel-picker-button:focus-visible {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(145, 71, 255, .12)
}

.channel-picker-button:disabled {
  cursor: default;
  opacity: 1
}

.channel-picker-avatar,
.channel-picker-avatar-image,
.channel-option-avatar,
.channel-avatar-fallback {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  display: grid;
  place-items: center;
  overflow: hidden
}

.channel-picker-avatar-image,
.channel-option-avatar {
  display: block
}

.channel-avatar-fallback {
  background: linear-gradient(135deg, var(--primary), #b26cff);
  color: #fff;
  font-weight: 800
}

.channel-picker-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px
}

.channel-picker-copy strong,
.channel-picker-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}

.channel-picker-copy strong {
  font-size: 14px
}

.channel-picker-copy small {
  font-size: 11px;
  color: var(--muted)
}

.channel-picker-chevron {
  font-size: 19px;
  color: var(--muted);
  transition: transform .18s ease
}

.channel-picker-button[aria-expanded="true"] .channel-picker-chevron {
  transform: rotate(180deg)
}

.channel-picker-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  z-index: 50;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #11151e;
  box-shadow: 0 18px 55px rgba(0, 0, 0, .48)
}

.channel-picker-option {
  width: 100%;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 10px;
  padding: 9px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer
}

.channel-picker-option:hover,
.channel-picker-option.selected {
  background: var(--surface-3)
}

.channel-picker-option>span:nth-child(2) {
  min-width: 0;
  display: flex;
  flex-direction: column
}

.channel-picker-option strong,
.channel-picker-option small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}

.channel-picker-option small {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px
}

.channel-option-check {
  color: #a970ff;
  text-align: center
}

.single-channel .channel-picker-button {
  grid-template-columns: 34px minmax(0, 1fr);
  padding-right: 12px
}

.member-role-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 145px
}

.member-role-field>span {
  font-size: 11px;
  color: var(--muted);
  font-weight: 700
}

.member-role-field select {
  padding: 8px 32px 8px 10px
}

.member-role-save {
  min-width: 92px
}

.moderation-preview {
  display: flex;
  flex-direction: column
}

.moderation-preview-row {
  display: grid;
  grid-template-columns: minmax(120px, .8fr) minmax(140px, 1fr) auto minmax(150px, .8fr);
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px
}

.moderation-preview-row:last-child {
  border-bottom: 0
}

.moderation-preview-user {
  font-weight: 750
}

.moderation-preview-row time {
  color: var(--muted);
  text-align: right;
  font-size: 12px
}

.log-preview-list {
  display: flex;
  flex-direction: column
}

.log-preview-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px 12px;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid var(--line)
}

.log-preview-row:last-child {
  border-bottom: 0
}

.log-preview-row>div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px
}

.log-preview-row strong,
.log-preview-row small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}

.log-preview-row small,
.log-preview-row time {
  color: var(--muted);
  font-size: 12px
}

.log-preview-row time {
  grid-column: 1/-1
}

.log-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px
}

.log-tab {
  min-width: 145px
}

.log-filter-panel {
  padding-top: 18px;
  border-top: 1px solid var(--line)
}

.log-filter-grid {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(190px, 1fr) minmax(190px, 1fr) auto;
  gap: 14px;
  align-items: end
}

.log-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px
}

.log-more-row {
  display: flex;
  justify-content: center;
  padding-top: 18px
}

.log-content-panel .data-table {
  min-width: 760px
}

.copy-input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  align-items: stretch
}

.copy-input input {
  border-radius: 9px 0 0 9px;
  border-right: 0
}

.copy-input-button {
  border: 1px solid var(--line);
  border-radius: 0 9px 9px 0;
  background: var(--surface-3);
  color: #d8dbe4;
  cursor: pointer;
  font-size: 18px
}

.copy-input-button:hover:not(:disabled) {
  background: #282e3d;
  color: #fff
}

.copy-input-button:disabled {
  opacity: .45;
  cursor: not-allowed
}

.source-help {
  margin: 13px 0 0 !important
}

.source-help strong {
  color: #d8dbe4
}

.queue-entry small {
  color: #aeb4c2
}

.queue-entry span {
  white-space: nowrap
}

#queue-toggle-button {
  min-width: 190px
}

@media(max-width:1180px) {

  .channel-picker {
    min-width: 220px
  }

  .moderation-preview-row {
    grid-template-columns: 1fr auto
  }

  .moderation-preview-row>span:nth-child(2),
  .moderation-preview-row time {
    grid-column: auto
  }

  .moderation-preview-row time {
    text-align: left
  }
}

@media(max-width:780px) {
  .status-grid {
    grid-template-columns: 1fr
  }

  .channel-picker {
    min-width: 0;
    width: 100%
  }

  .save-controls {
    width: 100%
  }

  .save-controls>.button {
    flex: 1
  }

  .member-row {
    align-items: stretch
  }

  .member-role-field {
    flex: 1 1 150px
  }

  .moderation-preview-row {
    grid-template-columns: 1fr auto
  }

  .moderation-preview-row time {
    grid-column: 1/-1
  }

  .copy-input {
    grid-template-columns: minmax(0, 1fr) 44px
  }
}

/* v1.5 - Account-Menü, stabile Layoutbreiten und routenfähige Oberfläche */
html,
body {
  max-width: 100%;
  overflow-x: hidden
}

.app-shell,
.workspace,
.topbar,
.content,
.view,
.panel,
.subpanel {
  min-width: 0;
  max-width: 100%
}

.workspace {
  width: 100%;
  overflow-x: hidden
}

.content {
  width: 100%
}

.save-controls {
  align-self: flex-end
}

.save-controls>.button {
  height: 48px;
  min-height: 48px;
  padding-top: 0;
  padding-bottom: 0;
  white-space: nowrap
}

.status-grid,
.overview-main-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}
.overview-main-grid > :first-child {
    grid-column: span 1;
}
.overview-main-grid > :last-child {
    grid-column: span 1;
}
.overview-main-grid>.panel {
  margin-bottom: 20px;
  height: calc(100% - 20px)
}
.status-grid {
  margin-bottom: 20px;
}
@media (max-width: 1180px) {
  .overview-main-grid {
    gap: 0;
  }

  .log-filter-grid {
    grid-template-columns: 1fr 1fr
  }

  .log-filter-actions {
    align-self: end
  }
}

@media (max-width: 980px) {
  .overview-main-grid {
    gap: 0;
  }
}

@media(max-width:700px) {
  .log-filter-grid {
    grid-template-columns: 1fr
  }

  .log-filter-actions .button {
    flex: 1
  }
}

.overview-quick-settings {
  grid-template-columns: 1fr
}

.sidebar-user-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0
}

.sidebar-user-row .user-card {
  flex: 1;
  min-width: 0
}

.account-menu {
  position: relative;
  flex: 0 0 auto
}

.account-menu-button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
  color: #c9ced9;
  cursor: pointer;
  transition: .18s ease
}

.account-menu-button:hover,
.account-menu-button[aria-expanded="true"] {
  background: var(--surface-3);
  border-color: #495168;
  color: #fff
}

.account-menu-button:focus-visible {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(145, 71, 255, .12)
}

.account-menu-popover {
  position: absolute;
  right: 0;
  bottom: calc(100% + 9px);
  z-index: 80;
  width: 250px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #11151e;
  box-shadow: 0 18px 55px rgba(0, 0, 0, .5)
}

.account-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 11px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #d7dbe5;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  cursor: pointer
}

.account-menu-item-icon {
  display: grid;
  place-items: center;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: var(--surface-3);
  color: #b995ff;
  font-size: 11px;
  font-weight: 850
}

.account-menu-divider {
  display: block;
  height: 1px;
  margin: 6px 4px;
  background: var(--line)
}

.account-menu-item:hover {
  background: var(--surface-3);
  color: #fff
}

.member-row>.member-role-select {
  width: auto;
  min-width: 145px;
  align-self: center;
  padding: 9px 34px 9px 11px
}

.member-row>.button {
  align-self: center;
  min-height: 40px
}

#blocked-words,
#allowed-words {
  min-height: 176px
}

@media(max-width:1180px) {
  .overview-main-grid {
    grid-template-columns: 1fr
  }

  .overview-main-grid>.panel {
    height: auto
  }

  .topbar-controls {
    align-items: flex-end
  }

  .save-controls {
    align-self: flex-end
  }
}

@media(max-width:780px) {
  .save-controls {
    align-self: stretch
  }

  .save-controls>.button {
    height: 46px;
    min-height: 46px
  }

  .account-menu-popover {
    right: 0
  }

  .member-row>.member-role-select {
    flex: 1 1 145px;
    width: 100%
  }
}

/* v1.6 - scrollbare Sidebar, vollständiges Account-Menü und Bot-Moderatorprüfung */
.sidebar {
  z-index: 40;
  height: 100dvh;
  max-height: 100dvh
}

.sidebar>.brand {
  flex: 0 0 auto
}

.nav-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: #3a4050 transparent
}

.nav-list::-webkit-scrollbar {
  width: 7px
}

.nav-list::-webkit-scrollbar-thumb {
  background: #3a4050;
  border-radius: 999px
}

.nav-list::-webkit-scrollbar-track {
  background: transparent
}

.sidebar-footer {
  flex: 0 0 auto;
  margin-top: 12px;
  position: relative;
  z-index: 90;
  background: rgba(12, 14, 20, .98)
}

.account-menu-popover {
  left: 0;
  right: auto;
  bottom: calc(100% + 9px);
  width: min(280px, calc(100vw - 32px));
  max-width: none
}

.account-menu-item {
  white-space: normal;
  line-height: 1.35
}

.bot-moderator-warning {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 92, 108, .48);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 92, 108, .13), rgba(38, 14, 20, .94));
  box-shadow: 0 12px 42px rgba(0, 0, 0, .18)
}

.bot-moderator-warning.hidden {
  display: none
}

.bot-moderator-warning.is-unverified {
  border-color: rgba(245, 185, 66, .45);
  background: linear-gradient(135deg, rgba(245, 185, 66, .12), rgba(34, 27, 13, .94))
}

.bot-moderator-warning-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 92, 108, .19);
  color: #ff9ca6;
  font-size: 23px;
  font-weight: 900
}

.bot-moderator-warning.is-unverified .bot-moderator-warning-icon {
  background: rgba(245, 185, 66, .17);
  color: #ffd477
}

.bot-moderator-warning-copy {
  min-width: 0
}

.bot-moderator-warning-copy strong {
  display: block;
  margin-bottom: 4px;
  font-size: 15px
}

.bot-moderator-warning-copy p {
  margin: 0 0 8px;
  color: #d3c9cf;
  line-height: 1.45
}

.bot-moderator-warning-copy code {
  display: inline-block;
  padding: 5px 9px;
  background: rgba(0, 0, 0, .28);
  color: #fff;
  user-select: all
}

@media(max-width:780px) {
  .sidebar {
    height: auto;
    max-height: none
  }

  .nav-list {
    overflow: visible
  }

  .account-menu-popover {
    left: auto;
    right: 0
  }

  .bot-moderator-warning {
    grid-template-columns: 38px minmax(0, 1fr)
  }

  .bot-moderator-warning>.button {
    grid-column: 1/-1;
    width: 100%
  }
}

/* v1.7 - feste, intern scrollbare Sidebar und vereinfachte Overlay-Einstellungen */
@media(min-width:781px) {
  .app-shell {
    display: block;
    min-height: 100vh
  }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 250px;
    height: 100dvh;
    max-height: 100dvh;
    overflow: visible;
  }

  .workspace {
    width: calc(100% - 250px);
    min-height: 100vh;
    margin-left: 250px;
  }

  .nav-list {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-gutter: stable;
  }

  .sidebar-footer {
    margin-top: 12px
  }
}

@media(max-width:780px) {
  .app-shell {
    display: block
  }

  .sidebar {
    position: static;
    inset: auto;
    width: auto;
    height: auto;
    max-height: none;
    overflow: visible
  }

  .workspace {
    width: 100%;
    margin-left: 0
  }
}

/* v1.8 - Giveaways, Overlay-Themes und steuerbare Automod-Aktionen */
.command-reference {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px
}

.command-reference>div {
  display: grid;
  grid-template-columns: minmax(120px, .45fr) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #0d1017
}

.command-reference code {
  justify-self: start;
  color: #cdaeff
}

.command-reference span {
  color: #b7bdca;
  font-size: 13px;
  line-height: 1.45
}

.giveaway-create-form .field:not(.grow) {
  min-width: 190px
}

.giveaway-list {
  display: flex;
  flex-direction: column;
  gap: 14px
}

.giveaway-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #0d1017
}

.giveaway-card-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px
}

.giveaway-card h3 {
  margin: 10px 0 4px;
  font-size: 19px
}

.giveaway-card p {
  margin: 0;
  font-size: 13px
}

.giveaway-winner {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  padding: 10px 13px;
  border: 1px solid rgba(40, 199, 111, .3);
  border-radius: 11px;
  background: rgba(40, 199, 111, .08)
}

.giveaway-winner span,
.giveaway-winner small {
  font-size: 11px;
  color: var(--muted)
}

.giveaway-winner strong {
  color: #8cecad
}

.giveaway-entries {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line)
}

.giveaway-entry-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px
}

.giveaway-entry-grid>span {
  display: flex;
  flex-direction: column;
  padding: 9px 11px;
  border-radius: 9px;
  background: var(--surface-2)
}

.giveaway-entry-grid small {
  color: var(--muted)
}

.enforcement-box {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid rgba(145, 71, 255, .22);
  border-radius: 11px;
  background: rgba(145, 71, 255, .055);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, .8fr);
  gap: 10px 14px;
  align-items: end
}

.enforcement-box>strong {
  grid-column: 1/-1
}

.enforcement-box>small {
  grid-column: 1/-1;
  color: var(--muted);
  line-height: 1.45
}

.enforcement-box .field {
  margin: 0
}

.case-error {
  display: block;
  margin-top: 5px;
  color: #ff919b
}

.overlay-design-panel {
  margin-bottom: 20px
}

.overlay-design-grid {
  display: grid;
  grid-template-columns: minmax(180px, .55fr) minmax(230px, .7fr) minmax(280px, 1.2fr);
  gap: 18px;
  align-items: stretch
}

.color-input {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 8px
}

.color-input input[type=color] {
  height: 43px;
  padding: 3px;
  cursor: pointer
}

.overlay-style-preview {
  --preview-accent: #9146ff;
  min-height: 112px;
  padding: 18px;
  border: 1px solid color-mix(in srgb, var(--preview-accent) 48%, #303747);
  border-radius: 16px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--preview-accent) 20%, #10131a), #0b0e14);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  box-shadow: 0 12px 35px color-mix(in srgb, var(--preview-accent) 14%, transparent)
}

.overlay-style-preview>span {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .2em;
  color: var(--preview-accent)
}

.overlay-style-preview>strong {
  font-size: 20px
}

.overlay-style-preview>small {
  color: #bcc1cd
}

.overlay-style-preview[data-style=flat] {
  border-radius: 5px;
  box-shadow: none;
  background: color-mix(in srgb, var(--preview-accent) 13%, #10131a)
}

.overlay-style-preview[data-style=c64] {
  border-radius: 0;
  border-width: 4px;
  box-shadow: 8px 8px 0 color-mix(in srgb, var(--preview-accent) 55%, #000);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  text-transform: uppercase;
  image-rendering: pixelated
}

.overlay-style-preview[data-style=c64]>strong {
  letter-spacing: .08em
}

@media(max-width:1100px) {
  .overlay-design-grid {
    grid-template-columns: 1fr 1fr
  }

  .overlay-style-preview {
    grid-column: 1/-1
  }

  .giveaway-entry-grid {
    grid-template-columns: 1fr 1fr
  }
}

@media(max-width:780px) {

  .command-reference,
  .overlay-design-grid,
  .giveaway-entry-grid {
    grid-template-columns: 1fr
  }

  .command-reference>div {
    grid-template-columns: 1fr
  }

  .giveaway-card-main {
    flex-direction: column
  }

  .giveaway-winner {
    align-items: flex-start
  }

  .enforcement-box {
    grid-template-columns: 1fr
  }
}

/* v1.9 - konsistente Overlay-Vorschau, klare Schalter und Giveaway-Gewinnerhistorie */
.badge.warning {
  color: #ffd477;
  background: rgba(245, 185, 66, .13)
}

.button-compact {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 12px
}

/* Schalter werden als klar abgegrenzte Einstellungszeilen dargestellt. */
.switch-row,
.switch-row.compact {
  min-height: 56px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #0d1017;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, opacity .18s ease;
}

.switch-row+.switch-row {
  border-top: 1px solid var(--line)
}

.switch-row:hover {
  border-color: #41495d;
  background: #111621
}

.switch-row>span {
  flex: 1 1 auto;
  min-width: 0
}

.switch-row i {
  margin-left: auto
}

.switch-row input:focus-visible+i {
  outline: 3px solid rgba(145, 71, 255, .22);
  outline-offset: 3px
}

.switch-row:has(input:disabled) {
  cursor: not-allowed;
  opacity: .55
}

/* Native Checkboxen werden zu eindeutig beschrifteten Auswahlkarten. */
.checkbox-grid {
  gap: 10px
}

.checkbox-grid label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0d1017;
  color: #d2d6df;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease;
}

.checkbox-grid label:hover {
  border-color: #41495d;
  background: #111621
}

.checkbox-grid input[type=checkbox] {
  appearance: none;
  -webkit-appearance: none;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 0;
  padding: 0;
  border: 1px solid #50586c;
  border-radius: 6px;
  background: #080b11;
  cursor: pointer;
}

.checkbox-grid input[type=checkbox]::after {
  content: "";
  width: 9px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) scale(0);
  transition: transform .12s ease;
}

.checkbox-grid input[type=checkbox]:checked {
  border-color: var(--primary);
  background: var(--primary)
}

.checkbox-grid input[type=checkbox]:checked::after {
  transform: rotate(-45deg) scale(1)
}

.checkbox-grid input[type=checkbox]:focus-visible {
  outline: 3px solid rgba(145, 71, 255, .22);
  outline-offset: 2px
}

.checkbox-grid label:has(input:disabled) {
  cursor: not-allowed;
  opacity: .55
}

.giveaway-winner-count-field {
  min-width: 145px !important;
  max-width: 170px
}

.giveaway-winners {
  margin-top: 16px;
  border: 1px solid rgba(40, 199, 111, .25);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(40, 199, 111, .045)
}

.giveaway-winners-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 13px;
  border-bottom: 1px solid rgba(40, 199, 111, .18);
  color: #8cecad;
  font-weight: 800
}

.giveaway-winners-heading small {
  color: var(--muted);
  font-weight: 600
}

.giveaway-winner-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 11px 13px
}

.giveaway-winner-row+.giveaway-winner-row {
  border-top: 1px solid rgba(255, 255, 255, .07)
}

.giveaway-winner-number {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(40, 199, 111, .14);
  color: #8cecad;
  font-weight: 900
}

.giveaway-winner-copy {
  display: flex;
  flex-direction: column;
  min-width: 0
}

.giveaway-winner-copy strong,
.giveaway-winner-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}

.giveaway-winner-copy small {
  color: var(--muted)
}

.giveaway-history {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0a0d13;
  color: #bdc2ce
}

.giveaway-history summary {
  cursor: pointer;
  font-weight: 700
}

.giveaway-history>div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px
}

.giveaway-history>div>span {
  display: flex;
  flex-direction: column;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--surface-2)
}

.giveaway-history small {
  color: var(--muted)
}

/* Der UI-Vorschau liegen exakt dieselben Gestaltungswerte wie den Browserquellen zugrunde. */
.overlay-style-preview {
  border: 1px solid color-mix(in srgb, var(--preview-accent) 48%, #303747);
  border-radius: 16px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--preview-accent) 20%, #10131a), #0b0e14);
  box-shadow: 0 12px 35px color-mix(in srgb, var(--preview-accent) 14%, transparent)
}

.overlay-style-preview[data-style=flat] {
  border-radius: 5px;
  border: 1px solid color-mix(in srgb, var(--preview-accent) 48%, #303747);
  background: color-mix(in srgb, var(--preview-accent) 13%, #10131a);
  box-shadow: none
}

.overlay-style-preview[data-style=c64] {
  border: 4px solid var(--preview-accent);
  border-radius: 0;
  background: color-mix(in srgb, var(--preview-accent) 14%, #10131a);
  box-shadow: 8px 8px 0 color-mix(in srgb, var(--preview-accent) 55%, #000);
  font-family: ui-monospace, "Courier New", monospace;
  text-transform: uppercase
}

@media(max-width:780px) {
  .giveaway-winner-row {
    grid-template-columns: 34px minmax(0, 1fr)
  }

  .giveaway-winner-row>.button {
    grid-column: 1/-1;
    width: 100%
  }

  .giveaway-history>div {
    grid-template-columns: 1fr
  }

  .giveaway-winner-count-field {
    max-width: none
  }
}

.overlay-style-preview>strong {
  color: var(--preview-accent)
}

/* v1.9.1 - Luft zwischen Einstellungs-Karten und designkonforme Trenner */
.panel>.switch-row+*,
.form-panel>.switch-row+*,
.subpanel>.switch-row+*,
.item-card>.switch-row+* {
  margin-top: 12px;
}

.switch-row+.switch-row {
  margin-top: 10px;
}

.item-grid>.switch-row+.switch-row,
.form-grid>.switch-row+.switch-row,
.quick-settings>.switch-row+.switch-row {
  margin-top: 0;
}

.subpanel hr {
  height: 1px;
  margin: 18px 0;
  border: 0;
  background: var(--line);
  opacity: 1;
}

/* v1.10 - rechtliche Seiten, verschleierte Kontaktadresse und globale Legal-Links */
.landing-legal-links {
  grid-column: 1/-1;
  display: flex;
  justify-content: center;
  gap: 18px;
  color: var(--muted);
  font-size: 13px;
}

.landing-legal-links a:hover,
.sidebar-legal-links a:hover,
.legal-footer a:hover {
  color: #fff
}

.sidebar-legal-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
  color: #737b8d;
  font-size: 11px;
}

.sidebar-legal-links span {
  color: #444b5c
}

.legal-body {
  min-height: 100vh;
  background: radial-gradient(circle at 72% 0%, rgba(145, 71, 255, .13), transparent 32%), var(--bg)
}

.legal-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 78px;
  padding: 18px clamp(20px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
  background: rgba(9, 11, 16, .9);
  backdrop-filter: blur(18px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.legal-header-nav {
  display: flex;
  align-items: center;
  gap: 8px
}

.legal-header-nav a {
  padding: 9px 12px;
  border-radius: 9px;
  color: #aeb4c2;
  font-size: 14px;
  font-weight: 700
}

.legal-header-nav a:hover,
.legal-header-nav a[aria-current=page] {
  background: var(--surface-2);
  color: #fff
}

.legal-shell {
  width: min(980px, calc(100% - 32px));
  margin: 44px auto 56px
}

.legal-document {
  padding: clamp(24px, 5vw, 54px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(17, 20, 28, .98), rgba(12, 15, 21, .98));
  box-shadow: var(--shadow);
}

.legal-document>h1 {
  margin: 9px 0 34px;
  font-size: clamp(34px, 5vw, 52px);
  letter-spacing: -.045em
}

.legal-document section {
  scroll-margin-top: 100px;
  padding: 24px 0;
  border-top: 1px solid var(--line)
}

.legal-document section:first-of-type {
  border-top: 0;
  padding-top: 0
}

.legal-document h2 {
  margin: 0 0 13px;
  font-size: 21px;
  letter-spacing: -.02em
}

.legal-document h3 {
  margin: 20px 0 9px;
  font-size: 16px
}

.legal-document p,
.legal-document li,
.legal-document address {
  color: #bcc2cf;
  line-height: 1.72
}

.legal-document p {
  margin: 10px 0
}

.legal-document ul {
  margin: 11px 0;
  padding-left: 23px
}

.legal-document li+li {
  margin-top: 6px
}

.legal-document address {
  font-style: normal
}

.legal-document a {
  color: #cbaaff;
  text-decoration: underline;
  text-decoration-color: rgba(203, 170, 255, .42);
  text-underline-offset: 3px
}

.legal-document a:hover {
  color: #fff;
  text-decoration-color: #fff
}

.legal-intro {
  max-width: 780px;
  margin: -12px 0 28px !important;
  font-size: 17px
}

.legal-toc {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  margin: 0 0 32px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #0d1017;
}

.legal-toc a {
  padding: 7px 9px;
  border-radius: 7px;
  color: #adb4c2;
  text-decoration: none;
  font-size: 13px
}

.legal-toc a:hover {
  background: var(--surface-3);
  color: #fff
}

.legal-updated {
  margin-top: 28px !important;
  color: var(--muted) !important;
  font-size: 13px
}

.legal-footer {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: var(--muted);
  font-size: 12px;
}

.protected-email {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  font-weight: 750;
  word-break: break-word
}

.mail-protection {
  text-decoration: none
}

@media(max-width:680px) {
  .legal-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px
  }

  .legal-header-nav {
    width: 100%
  }

  .legal-header-nav a {
    flex: 1;
    text-align: center
  }

  .legal-shell {
    margin-top: 24px
  }

  .legal-document {
    padding: 24px 19px;
    border-radius: 17px
  }

  .legal-toc {
    grid-template-columns: 1fr
  }

  .landing-legal-links {
    margin-top: -18px
  }
}
/* Analytics dashboard and workspace */
.dashboard-analytics-panel,
.analytics-page-panel {
  padding: 0;
  overflow: hidden
}

.dashboard-analytics-panel>.panel-heading {
  padding: 20px 22px;
  margin: 0;
  border-bottom: 1px solid var(--line)
}

#dashboard-analytics-content {
  padding: 18px 22px 22px
}

.dashboard-stream-summary {
  display: grid;
  gap: 14px
}

.dashboard-stream-context {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0
}

.dashboard-stream-context>div {
  min-width: 0
}

.dashboard-stream-context strong,
.dashboard-stream-context small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}

.dashboard-stream-context strong {
  margin-top: 8px;
  font-size: 15px
}

.dashboard-stream-context small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px
}

.dashboard-stream-state {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(148, 155, 173, .1);
  color: #b9c0ce;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .06em
}

.dashboard-stream-summary.is-live .dashboard-stream-state {
  background: rgba(255, 80, 108, .13);
  color: #ff91a2
}

.dashboard-stream-summary.is-live .dashboard-stream-state:before {
  content: '';
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(255, 80, 108, .08)
}

.dashboard-stream-metric-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px
}

.dashboard-stream-metric {
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .022), rgba(255, 255, 255, .006))
}

.dashboard-stream-metric span,
.dashboard-stream-metric strong,
.dashboard-stream-metric small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}

.dashboard-stream-metric span {
  color: #c7cbd5;
  font-size: 10px;
  font-weight: 800
}

.dashboard-stream-metric strong {
  margin: 7px 0 3px;
  font-size: clamp(20px, 1.75vw, 28px);
  letter-spacing: -.035em
}

.dashboard-stream-metric small {
  color: var(--muted);
  font-size: 10px
}

.dashboard-stream-empty {
  display: grid;
  place-items: center;
  min-height: 112px;
  padding: 20px;
  color: var(--muted);
  text-align: center
}

.dashboard-stream-empty strong {
  color: #eef0f5;
  font-size: 14px
}

.dashboard-stream-empty span {
  margin-top: 6px;
  font-size: 11px
}

.analytics-page-panel>.panel-heading {
  padding: 22px;
  margin: 0;
  border-bottom: 1px solid var(--line)
}

.analytics-panel-heading {
  align-items: center
}

.analytics-heading-description {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px
}

.analytics-toolbar {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end
}

.analytics-period-control {
  display: flex;
  flex-direction: column;
  gap: 5px
}

.analytics-period-control>span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700
}

.analytics-period-control select {
  min-width: 112px;
  height: 42px;
  padding-top: 0;
  padding-bottom: 0
}

#analytics-content {
  padding: 0 22px 24px
}

.analytics-tabs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 7px;
  margin: 0 -22px 22px;
  padding: 10px 22px;
  overflow: visible;
  border-top: 1px solid rgba(255, 255, 255, .025);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(18, 22, 31, .96), rgba(11, 14, 21, .96));
  box-shadow: 0 10px 24px rgba(0, 0, 0, .14)
}

.analytics-tab {
  position: relative;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, .045);
  border-radius: 9px;
  padding: 10px 12px;
  background: #11151d;
  color: #8f97a8;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, color .16s ease, transform .16s ease
}

.analytics-tab:hover {
  border-color: rgba(169, 112, 255, .35);
  background: #151a24;
  color: #fff;
  transform: translateY(-1px)
}

.analytics-tab.active {
  border-color: rgba(169, 112, 255, .58);
  background: linear-gradient(135deg, rgba(145, 71, 255, .23), rgba(145, 71, 255, .09));
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(169, 112, 255, .08), 0 6px 18px rgba(74, 34, 142, .16)
}

.analytics-tab-content {
  display: grid;
  gap: 18px
}

.analytics-stat-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line)
}

.analytics-primary-stat-grid,
.analytics-secondary-stat-grid,
.analytics-focus-stat-grid {
  display: grid;
  gap: 12px
}

.analytics-primary-stat-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr))
}

.analytics-secondary-stat-grid,
.analytics-focus-stat-grid-five {
  grid-template-columns: repeat(5, minmax(0, 1fr))
}

.analytics-focus-stat-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr))
}

.analytics-focus-stat-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr))
}

.analytics-focus-stat-grid.analytics-focus-stat-grid-five {
  grid-template-columns: repeat(5, minmax(0, 1fr))
}

.analytics-stat-card {
  min-width: 0;
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .025), rgba(255, 255, 255, .008))
}

.analytics-stat-grid .analytics-stat-card {
  padding: 18px 20px;
  border: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, .012)
}

.analytics-stat-grid .analytics-stat-card+.analytics-stat-card {
  border-left: 1px solid var(--line)
}

.analytics-stat-card-primary {
  min-height: 118px;
  border-color: rgba(145, 71, 255, .2);
  background: radial-gradient(circle at 85% 10%, rgba(145, 71, 255, .11), transparent 48%), #0f121a
}

.analytics-stat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px
}

.analytics-stat-header>span {
  min-width: 0;
  overflow: hidden;
  color: #c7cbd5;
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap
}

.analytics-stat-card>strong {
  display: block;
  margin: 9px 0 4px;
  overflow: hidden;
  font-size: clamp(22px, 2vw, 32px);
  letter-spacing: -.045em;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap
}

.analytics-stat-card-primary>strong {
  font-size: clamp(25px, 2.25vw, 36px)
}

.analytics-stat-card>small {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap
}

.analytics-trend {
  flex: 0 0 auto;
  padding: 3px 6px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 850
}

.analytics-trend.positive {
  color: #7beaab;
  background: rgba(40, 199, 111, .12)
}

.analytics-trend.negative {
  color: #ff919b;
  background: rgba(255, 92, 108, .12)
}

.analytics-trend.neutral {
  color: #b1b7c5;
  background: rgba(177, 183, 197, .1)
}

.analytics-surface {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #0d1017
}

.analytics-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 15px
}

.analytics-section-heading h3,
.analytics-insights-heading h3 {
  margin: 3px 0 0;
  font-size: 16px;
  letter-spacing: -.02em
}

.analytics-section-heading p:not(.eyebrow) {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45
}

.analytics-text-button {
  flex: 0 0 auto;
  border: 0;
  padding: 4px 0;
  background: transparent;
  color: #b995ff;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer
}

.analytics-text-button:hover {
  color: #fff
}

.analytics-chart-section {
  padding: 20px 22px 8px
}

.analytics-main-chart-card {
  padding: 16px 16px 4px
}

.analytics-chart-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px
}

.analytics-chart-heading>div:first-child {
  display: flex;
  flex-direction: column;
  gap: 3px
}

.analytics-chart-heading strong {
  font-size: 15px
}

.analytics-chart-heading small {
  color: var(--muted)
}

.analytics-chart-heading-large>div:first-child {
  max-width: 430px
}

.analytics-chart-heading-large strong {
  font-size: 17px
}

.analytics-metric-switcher {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  justify-content: flex-end
}

.analytics-metric-switcher-large {
  max-width: 650px
}

.analytics-metric-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 9px;
  background: #0d1017;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, color .16s ease, box-shadow .16s ease
}

.analytics-metric-button:hover {
  border-color: rgba(var(--metric-color-rgb), .45);
  color: #fff
}

.analytics-metric-button.active {
  border-color: rgba(var(--metric-color-rgb), .78);
  background: rgba(var(--metric-color-rgb), .14);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(var(--metric-color-rgb), .08)
}

.analytics-metric-symbol {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  width: 10px;
  height: 8px
}

.analytics-metric-symbol.type-line:before,
.analytics-metric-symbol.type-area:before {
  content: '';
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--metric-color);
  transform: rotate(-18deg)
}

.analytics-metric-symbol.type-area:after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 6px;
  clip-path: polygon(0 65%, 100% 0, 100% 100%, 0 100%);
  background: rgba(var(--metric-color-rgb), .28)
}

.analytics-metric-symbol.type-bar {
  border-radius: 2px 2px 1px 1px;
  background: linear-gradient(90deg, var(--metric-color) 0 26%, transparent 26% 36%, var(--metric-color) 36% 64%, transparent 64% 74%, var(--metric-color) 74% 100%);
  opacity: .9
}

.analytics-chart-wrap {
  width: 100%;
  min-height: 180px;
  overflow: hidden
}

.analytics-chart-wrap-large {
  min-height: 200px
}

.analytics-chart {
  display: block;
  width: 100%;
  min-width: 620px;
  height: auto
}

.analytics-chart-grid-line {
  stroke: #222837;
  stroke-width: .65
}

.analytics-chart-axis-label {
  fill: #747c8f;
  font-size: 11px
}

.analytics-chart-axis-secondary {
  opacity: .8
}

.analytics-chart-line {
  fill: none;
  stroke: var(--metric-color);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round
}

.analytics-chart-area {
  fill: var(--metric-color);
  opacity: .07
}

.analytics-chart-bar {
  fill: var(--metric-color);
  opacity: .27
}

.analytics-chart-dot {
  fill: var(--metric-color);
  stroke: var(--metric-color);
  stroke-width: 1
}

.analytics-chart-empty {
  display: grid;
  place-items: center;
  min-height: 190px;
  padding: 30px;
  color: var(--muted);
  text-align: center
}

.analytics-chart-empty strong {
  color: #fff
}

.analytics-chart-empty span {
  margin-top: 5px;
  font-size: 11px
}

.analytics-insights {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch
}

.analytics-insights-heading {
  padding: 5px 2px
}

.analytics-insight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px
}

.analytics-insight-grid article {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 11px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgb(255 192 71 / 18%);
  border-radius: 12px;
  background: linear-gradient(145deg, rgb(255 224 71 / 7%), rgb(123 97 63 / 12%));
}

.analytics-insight-grid article>span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: rgb(255 186 71 / 26%);
  color: #ffd895;
  font-weight: 900
}

.analytics-insight-grid strong {
  display: block;
  font-size: 12px;
  line-height: 1.4
}

.analytics-insight-grid p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45
}

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

.analytics-two-column-wide {
  grid-template-columns: minmax(0, 1.3fr) minmax(360px, .7fr)
}

.analytics-stream-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px
}

.analytics-stream-grid.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr))
}

.analytics-stream-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #11151d
}

.analytics-stream-card.live {
  border-color: rgba(255, 80, 108, .38)
}

.analytics-stream-card header,
.analytics-stream-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 11px
}

.analytics-stream-card header {
  border-bottom: 1px solid var(--line)
}

.analytics-stream-date {
  display: flex;
  align-items: baseline;
  gap: 7px
}

.analytics-stream-date strong {
  font-size: 12px
}

.analytics-stream-date span,
.analytics-stream-status {
  color: var(--muted);
  font-size: 10px;
  font-weight: 750
}

.analytics-stream-card.live .analytics-stream-status {
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(255, 80, 108, .12);
  color: #ff8b9d
}

.analytics-stream-title {
  padding: 11px
}

.analytics-stream-title>strong {
  display: block;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap
}

.analytics-stream-title>span {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap
}

.analytics-stream-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line)
}

.analytics-stream-metrics>span {
  min-width: 0;
  padding: 9px 7px;
  text-align: center
}

.analytics-stream-metrics>span+span {
  border-left: 1px solid var(--line)
}

.analytics-stream-metrics small,
.analytics-stream-card footer span {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap
}

.analytics-stream-metrics strong {
  display: block;
  margin-top: 3px;
  font-size: 12px
}

.analytics-stream-card footer {
  font-size: 10px
}

.analytics-day-list {
  display: grid;
  gap: 7px
}

.analytics-day-row {
  display: grid;
  grid-template-columns: 76px minmax(70px, 1fr) 72px 64px 98px;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 7px 0
}

.analytics-day-row>strong {
  font-size: 10px
}

.analytics-day-row>span:not(.analytics-day-bar) {
  min-width: 0;
  text-align: right
}

.analytics-day-row b,
.analytics-day-row small {
  display: block
}

.analytics-day-row b {
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap
}

.analytics-day-row small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px
}

.analytics-day-bar,
.analytics-category-name>span,
.analytics-command-share,
.analytics-moderation-bar {
  display: block;
  overflow: hidden;
  height: 3px;
  border-radius: 999px;
  background: #242a35
}

.analytics-day-bar i,
.analytics-category-name i,
.analytics-command-share i,
.analytics-moderation-bar i {
  display: block;
  width: var(--analytics-bar, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7340d5, #a970ff)
}

.analytics-heatmap {
  display: grid;
  grid-template-columns: 48px repeat(7, minmax(30px, 1fr));
  gap: 4px;
  min-width: 380px
}

.analytics-heatmap-card {
  overflow-x: auto
}

.analytics-heatmap>strong,
.analytics-heatmap-time {
  display: grid;
  place-items: center;
  min-height: 25px;
  color: var(--muted);
  font-size: 10px
}

.analytics-heatmap-time {
  justify-content: end;
  padding-right: 5px
}

.analytics-heatmap-cell {
  display: grid;
  place-items: center;
  min-height: 27px;
  border: 1px solid rgba(255, 255, 255, .035);
  border-radius: 6px;
  color: #aeb5c3;
  background: #131720;
  font-size: 10px;
  font-weight: 800
}

.analytics-heatmap-cell.heat-1 { background: rgba(145, 71, 255, .1) }
.analytics-heatmap-cell.heat-2 { background: rgba(145, 71, 255, .18) }
.analytics-heatmap-cell.heat-3 { background: rgba(145, 71, 255, .28); color: #eee5ff }
.analytics-heatmap-cell.heat-4 { background: rgba(145, 71, 255, .42); color: #fff }
.analytics-heatmap-cell.heat-5 { background: rgba(145, 71, 255, .62); color: #fff }

.analytics-category-list {
  min-width: 0;
  overflow-x: auto
}

.analytics-category-row {
  display: grid;
  grid-template-columns: 25px minmax(190px, 1fr) 102px 82px 65px 55px;
  align-items: center;
  gap: 10px;
  min-width: 640px;
  padding: 10px 0
}

.analytics-category-row+.analytics-category-row {
  border-top: 1px solid rgba(42, 48, 64, .7)
}

.analytics-category-rank {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 7px;
  background: var(--surface-3);
  color: #a970ff;
  font-size: 10px
}

.analytics-category-name {
  min-width: 0
}

.analytics-category-name strong {
  display: block;
  overflow: hidden;
  margin-bottom: 7px;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap
}

.analytics-category-row>div:not(.analytics-category-name) {
  min-width: 0;
  text-align: right
}

.analytics-category-row>div>strong,
.analytics-category-row>div>small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}

.analytics-category-row>div>strong {
  font-size: 10px
}

.analytics-category-row>div>small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px
}

.analytics-ranking-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 12px 22px 22px
}

.analytics-ranking-grid-overview {
  padding: 0
}

.analytics-ranking-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0d1017
}

.analytics-ranking-header,
.analytics-ranking-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 11px 13px
}

.analytics-ranking-header {
  grid-template-columns: minmax(0, 1fr) auto;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px
}

.analytics-ranking-header strong {
  color: #d8dce5;
  font-size: 11px
}

.analytics-ranking-row+.analytics-ranking-row {
  border-top: 1px solid rgba(42, 48, 64, .72)
}

.analytics-ranking-row b,
.analytics-table-rank {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: var(--surface-3);
  color: #a970ff;
  font-size: 10px
}

.analytics-ranking-row>span {
  min-width: 0;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap
}

.analytics-ranking-row>strong {
  font-size: 11px
}

.analytics-ranking-row-rich>span strong,
.analytics-ranking-row-rich>span small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}

.analytics-ranking-row-rich>span strong {
  font-size: 11px
}

.analytics-ranking-row-rich>span small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px
}

.analytics-community-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px
}

.analytics-empty {
  margin: 0;
  padding: 22px 14px !important
}

.analytics-empty-state {
  grid-column: 1 / -1;
  margin: 0;
  padding: 26px 10px;
  text-align: center
}

.analytics-table th,
.analytics-table td {
  white-space: nowrap
}

.analytics-table td:first-child,
.analytics-table th:first-child {
  padding-left: 0
}

.analytics-table code {
  color: #d9c8ff
}

.analytics-cell-trend {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  font-weight: 800
}

.analytics-cell-trend.positive { color: #7beaab }
.analytics-cell-trend.negative { color: #ff919b }

.analytics-command-share {
  display: inline-block;
  width: 72px;
  margin-right: 8px;
  vertical-align: middle
}

.analytics-moderation-list {
  display: grid;
  gap: 5px
}

.analytics-moderation-row {
  display: grid;
  grid-template-columns: 170px minmax(100px, 1fr) 45px;
  align-items: center;
  gap: 12px;
  padding: 10px 0
}

.analytics-moderation-row+.analytics-moderation-row {
  border-top: 1px solid rgba(42, 48, 64, .72)
}

.analytics-moderation-row>div strong,
.analytics-moderation-row>div span {
  display: block
}

.analytics-moderation-row>div strong {
  font-size: 11px
}

.analytics-moderation-row>div span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px
}

.analytics-moderation-row>strong {
  text-align: right;
  font-size: 11px
}

.analytics-moderation-bar i {
  background: linear-gradient(90deg, #b94759, #ff6475)
}

.analytics-data-note {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(95, 143, 255, .16);
  border-radius: 10px;
  background: rgba(95, 143, 255, .05);
  color: #9ca8bd;
  font-size: 10px;
  line-height: 1.5
}

@media(max-width:1450px) {
  .analytics-primary-stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr))
  }

  .analytics-secondary-stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr))
  }

  .analytics-stream-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }
}

@media(max-width:1380px) {
  .analytics-stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr))
  }

  .analytics-stat-grid .analytics-stat-card:nth-child(4) {
    border-left: 0
  }

  .analytics-stat-grid .analytics-stat-card:nth-child(n+4) {
    border-top: 1px solid var(--line)
  }

  .analytics-insights {
    grid-template-columns: 1fr
  }
}

@media(max-width:1180px) {
  .analytics-focus-stat-grid.analytics-focus-stat-grid-five {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .analytics-two-column,
  .analytics-two-column-wide {
    grid-template-columns: 1fr
  }

  .analytics-ranking-grid,
  .analytics-community-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .analytics-focus-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }
}

@media(max-width:900px) {
  .analytics-tabs {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none
  }

  .analytics-tabs::-webkit-scrollbar {
    display: none
  }

  .analytics-tab {
    flex: 0 0 auto;
    min-width: 118px;
    scroll-snap-align: start
  }

  .analytics-panel-heading,
  .analytics-chart-heading,
  .analytics-section-heading {
    align-items: stretch;
    flex-direction: column
  }

  .analytics-toolbar,
  .analytics-metric-switcher {
    justify-content: flex-start
  }

  .analytics-chart-wrap {
    overflow-x: auto
  }

  .analytics-insight-grid,
  .analytics-ranking-grid,
  .analytics-community-grid {
    grid-template-columns: 1fr
  }

  .analytics-stream-grid,
  .analytics-stream-grid.compact {
    grid-template-columns: 1fr
  }
}

@media(max-width:680px) {
  .analytics-page-panel>.panel-heading {
    padding: 18px
  }

  #analytics-content {
    padding: 0 14px 18px
  }

  .analytics-tabs {
    margin-right: -14px;
    margin-left: -14px;
    padding-right: 14px;
    padding-left: 14px
  }

  .analytics-primary-stat-grid,
  .analytics-secondary-stat-grid,
  .analytics-focus-stat-grid,
  .analytics-focus-stat-grid-three,
  .analytics-focus-stat-grid-five {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .analytics-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .analytics-stat-grid .analytics-stat-card:nth-child(3),
  .analytics-stat-grid .analytics-stat-card:nth-child(5) {
    border-left: 0
  }

  .analytics-stat-grid .analytics-stat-card:nth-child(n+3) {
    border-top: 1px solid var(--line)
  }

  .analytics-stat-grid .analytics-stat-card:nth-child(4) {
    border-left: 1px solid var(--line)
  }

  .analytics-toolbar {
    display: grid;
    grid-template-columns: 1fr auto;
    width: 100%
  }

  .analytics-period-control select {
    width: 100%
  }

  .analytics-surface {
    padding: 14px
  }

  .analytics-insight-grid {
    grid-template-columns: 1fr
  }

  .analytics-day-row {
    grid-template-columns: 68px minmax(55px, 1fr) 62px 52px
  }

  .analytics-day-row>span:last-child {
    display: none
  }

  .analytics-stream-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .analytics-stream-metrics>span:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line)
  }

  .analytics-stream-metrics>span:nth-child(4) {
    border-top: 1px solid var(--line)
  }
}

@media(max-width:440px) {
  .analytics-focus-stat-grid.analytics-focus-stat-grid-five {
    grid-template-columns: 1fr
  }

  .analytics-primary-stat-grid,
  .analytics-secondary-stat-grid,
  .analytics-focus-stat-grid,
  .analytics-focus-stat-grid-three,
  .analytics-focus-stat-grid-five {
    grid-template-columns: 1fr
  }
}

@media(max-width:1280px) {
  .dashboard-stream-metric-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr))
  }
}

@media(max-width:760px) {
  .dashboard-stream-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }
}

@media(max-width:440px) {
  .dashboard-stream-metric-grid {
    grid-template-columns: 1fr
  }
}

/* v1.12.1 - kompaktere Dashboard-Anordnung */
.status-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.status-text.status-active {
  color: #78e7a1;
}

.status-text.status-inactive {
  color: #ff919b;
}

.overview-settings-panel .panel-heading {
  margin-bottom: 12px;
}

.overview-quick-settings {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.overview-quick-settings .switch-row {
  min-width: 0;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .012);
}

.overview-quick-settings .switch-row + .switch-row {
  border-top: 1px solid var(--line);
}

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

.overview-main-grid > :first-child,
.overview-main-grid > :last-child {
  grid-column: span 1;
}

@media(max-width:900px) {
  .overview-quick-settings {
    grid-template-columns: 1fr;
  }
}

@media(max-width:780px) {
  .status-grid,
  .overview-main-grid {
    grid-template-columns: 1fr;
  }
}

/* v1.12.2 - kompakter Statusbereich und gleich hohe Schnellstart-Karten */
.status-grid .metric-card {
  display: grid;
  grid-template-columns: minmax(120px, auto) minmax(0, 1fr);
  grid-template-areas:
    "label detail"
    "value detail";
  align-items: center;
  column-gap: 24px;
  row-gap: 2px;
  min-height: 0;
  padding: 14px 20px;
}

.status-grid .metric-card > span {
  grid-area: label;
}

.status-grid .metric-card > strong {
  grid-area: value;
  margin: 0;
  font-size: 23px;
}

.status-grid .metric-card > small {
  grid-area: detail;
  justify-self: end;
  max-width: 320px;
  text-align: right;
}

.overview-quick-settings > .switch-row {
  align-self: stretch;
  height: 100%;
  box-sizing: border-box;
}

@media(max-width:520px) {
  .status-grid .metric-card {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "label value"
      "detail detail";
    column-gap: 14px;
    row-gap: 5px;
  }

  .status-grid .metric-card > strong {
    justify-self: end;
  }

  .status-grid .metric-card > small {
    justify-self: start;
    max-width: none;
    text-align: left;
  }
}



/* v1.12.4 - Debugmode-Sichtbarkeit und korrigierte SVG-Diagramme */
.debug-mode-indicator {
  position: absolute;
  top: 0px;
  left: 50%;
  z-index: 3;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 16px 7px;
  border: 1px solid rgba(245, 185, 66, .28);
  border-top: 0;
  border-radius: 0 0 14px 14px;
  background: #05060a;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .38);
  color: #ffd77f;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .14em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.debug-mode-indicator.hidden,
.debug-mode-indicator[hidden] {
  display: none
}

.debug-mode-indicator > span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--warning);
  box-shadow: 0 0 12px rgba(245, 185, 66, .8);
}

.debug-mode-panel .panel-heading {
  margin-bottom: 12px;
}

.debug-mode-switch {
  border: 1px solid rgba(245, 185, 66, .22);
  background: rgba(245, 185, 66, .035);
}

.debug-mode-switch small {
  max-width: 760px;
}

@media(max-width:780px) {
  .debug-mode-indicator {
    top: 8px;
    right: 18px;
    left: auto;
    transform: none;
    border-top: 1px solid rgba(245, 185, 66, .28);
    border-radius: 999px;
    padding: 6px 11px;
  }
}

/* v1.12.6 - Nutzungsbedingungen und nachvollziehbare Zustimmung */
.login-consent-form {
  display: grid;
  gap: 14px;
}

.terms-consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 720px;
  color: #b8bfcc;
  font-size: 13px;
  line-height: 1.55;
  cursor: pointer;
}

.terms-consent input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--primary);
}

.terms-consent a {
  color: #cbaaff;
  text-decoration: underline;
  text-decoration-color: rgba(203, 170, 255, .45);
  text-underline-offset: 2px;
}

.terms-consent a:hover {
  color: #fff;
  text-decoration-color: #fff;
}

.form-error {
  margin: -3px 0 0;
  color: #ff9aa5;
  font-size: 13px;
  font-weight: 700;
}

.terms-gate-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
}

.terms-gate-card {
  width: min(720px, 100%);
  padding: clamp(28px, 6vw, 56px);
  border: 1px solid var(--line);
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(23, 27, 37, .98), rgba(13, 15, 22, .98));
  box-shadow: var(--shadow);
}

.terms-gate-card .brand-large {
  margin-bottom: 42px;
}

.terms-gate-card h1 {
  margin: 12px 0 18px;
  font-size: clamp(34px, 6vw, 52px);
  letter-spacing: -.045em;
}

.terms-gate-card .lead {
  margin-bottom: 24px;
}

.terms-gate-form {
  display: grid;
  gap: 18px;
  margin-bottom: 18px;
}

.terms-gate-form .button {
  justify-self: start;
}

.terms-gate-card>.landing-legal-links {
  margin-top: 28px;
}

@media(max-width:680px) {
  .legal-header-nav {
    flex-wrap: wrap;
  }

  .legal-header-nav a {
    flex: 1 1 30%;
  }

  .terms-gate-shell {
    padding: 14px;
  }

  .terms-gate-card {
    padding: 28px 20px;
    border-radius: 18px;
  }

  .terms-gate-form .button {
    width: 100%;
  }
}

/* v1.13.0 - geschützte OBS-Livepanel */
.livepanel-source-panel {
  grid-column: 1 / -1;
}

.livepanel-info-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr);
  gap: 24px;
  align-items: start;
}

.livepanel-source-box {
  margin-top: 0;
}

@media(max-width: 900px) {
  .livepanel-info-grid {
    grid-template-columns: 1fr;
  }
}

/* Öffentliche Funktionsübersicht und Landingpage-Verlinkung */
.landing-feature-column {
  display: grid;
  gap: 18px;
}

.landing-learn-more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
  border: 1px solid rgba(145, 71, 255, .28);
  border-radius: 14px;
  background: rgba(145, 71, 255, .7);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  transition: .18s ease;
}

.landing-learn-more:hover {
  transform: translateY(-1px);
  border-color: rgba(169, 112, 255, .58);
  background: rgba(145, 71, 255, .13);
  color: #fff;
}

.landing-learn-more span:last-child {
  font-size: 20px;
  line-height: 1;
}

.features-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 82% 4%, rgba(145, 71, 255, .16), transparent 24%),
    radial-gradient(circle at 12% 32%, rgba(88, 101, 242, .08), transparent 28%),
    var(--bg);
}

.features-header {
  position: sticky;
  top: 0;
  z-index: 20;
  width: min(1240px, calc(100% - 40px));
  margin: 18px auto 0;
  padding: 12px 14px 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 16px;
  background: rgba(12, 14, 20, .84);
  box-shadow: 0 14px 50px rgba(0, 0, 0, .24);
  backdrop-filter: blur(18px);
}

.features-header .brand-mark {
  width: 34px;
  height: 34px;
}

.features-header-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #aeb4c2;
  font-size: 13px;
  font-weight: 700;
}

.features-header-nav > a:not(.button):hover {
  color: #fff;
}

.features-header-nav .button {
  padding: 9px 13px;
  font-size: 13px;
}

.features-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 92px 0 80px;
}

.features-hero {
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(440px, .95fr);
  gap: clamp(44px, 7vw, 92px);
  align-items: center;
}

.features-hero-copy h1 {
  max-width: 720px;
  margin: 15px 0 28px;
  font-size: clamp(54px, 7vw, 92px);
  line-height: .94;
  letter-spacing: -.07em;
}

.features-hero-copy h1 span {
  color: #a970ff;
}

.features-hero-lead {
  max-width: 690px;
  margin: 0;
  color: #bbc0cd;
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.65;
}

.features-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  color: #9299aa;
  font-size: 13px;
  font-weight: 700;
}

.features-facts li {
  position: relative;
  padding-left: 18px;
}

.features-facts li:before {
  content: "";
  position: absolute;
  left: 0;
  top: .42em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9147ff;
  box-shadow: 0 0 14px rgba(145, 71, 255, .75);
}

.features-preview {
  overflow: hidden;
  border: 1px solid rgba(169, 112, 255, .24);
  border-radius: 26px;
  background: #0d1017;
  box-shadow: 0 40px 100px rgba(0, 0, 0, .45), 0 0 80px rgba(145, 71, 255, .08);
  transform: perspective(1200px) rotateY(-3deg) rotateX(1deg);
}

.features-preview-topbar {
  height: 52px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 7px;
  border-bottom: 1px solid #242a38;
  background: #131722;
}

.features-preview-topbar > span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #42495a;
}

.features-preview-topbar strong {
  margin-left: auto;
  color: #7f8798;
  font-size: 10px;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.features-preview-layout {
  min-height: 430px;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
}

.features-preview-sidebar {
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 19px;
  border-right: 1px solid #222735;
  background: #0b0d13;
}

.features-preview-sidebar i {
  width: 28px;
  height: 8px;
  border-radius: 999px;
  background: #252b39;
}

.features-preview-sidebar i:first-child {
  background: #9147ff;
  box-shadow: 0 0 18px rgba(145, 71, 255, .45);
}

.features-preview-main {
  padding: 24px;
}

.features-preview-status {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.features-preview-status article {
  min-width: 0;
  padding: 14px;
  border: 1px solid #272d3c;
  border-radius: 12px;
  background: #151923;
}

.features-preview-status small,
.features-preview-status strong {
  display: block;
}

.features-preview-status small {
  margin-bottom: 8px;
  color: #747c8e;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
}

.features-preview-status strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
}

.features-preview-status article:first-child strong,
.features-preview-status article:nth-child(2) strong {
  color: #78e5a0;
}

.features-preview-chart {
  position: relative;
  height: 142px;
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid #272d3c;
  border-radius: 14px;
  background:
    linear-gradient(to right, transparent 24%, #202634 25%, transparent 26%, transparent 49%, #202634 50%, transparent 51%, transparent 74%, #202634 75%, transparent 76%),
    linear-gradient(to bottom, transparent 32%, #202634 33%, transparent 34%, transparent 65%, #202634 66%, transparent 67%),
    #121620;
}

.features-preview-chart:after {
  content: "";
  position: absolute;
  inset: 26px 18px 18px;
  border-bottom: 3px solid #9147ff;
  border-radius: 50%;
  transform: rotate(-8deg) skewX(-18deg);
  filter: drop-shadow(0 0 8px rgba(145, 71, 255, .65));
}

.features-preview-chart span {
  position: absolute;
  left: 28%;
  bottom: 38px;
  width: 9px;
  height: 9px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #9147ff;
  box-shadow: 0 0 16px rgba(145, 71, 255, .9);
}

.features-preview-feed {
  margin-top: 12px;
  padding: 6px 14px;
  border: 1px solid #272d3c;
  border-radius: 14px;
  background: #121620;
}

.features-preview-feed p {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 11px 0;
  border-bottom: 1px solid #252b38;
}

.features-preview-feed p:last-child {
  border-bottom: 0;
}

.features-preview-feed b {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(145, 71, 255, .12);
  color: #b98cff;
  font-size: 12px;
}

.features-preview-feed span,
.features-preview-feed strong,
.features-preview-feed small {
  display: block;
}

.features-preview-feed strong {
  font-size: 11px;
}

.features-preview-feed small {
  margin-top: 2px;
  color: #747c8e;
  font-size: 10px;
}

.features-intro {
  margin: 70px 0 130px;
  padding: 40px 0;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 8vw, 120px);
  align-items: end;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.features-intro h2,
.features-section-heading h2,
.features-highlight h2,
.features-security h2,
.features-final-cta h2 {
  margin: 12px 0 0;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.06;
  letter-spacing: -.05em;
}

.features-intro > p {
  margin: 0;
  color: #aeb4c2;
  font-size: 18px;
  line-height: 1.75;
}

.features-section {
  margin: 0 0 130px;
  scroll-margin-top: 110px;
}

.features-section-heading {
  max-width: 760px;
  margin-bottom: 38px;
}

.features-section-heading > p:last-child {
  max-width: 680px;
  margin: 18px 0 0;
  color: #9299aa;
  font-size: 17px;
  line-height: 1.7;
}

.features-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.features-card {
  min-height: 350px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(23, 27, 37, .92), rgba(13, 15, 22, .92));
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.features-card:hover {
  transform: translateY(-3px);
  border-color: rgba(145, 71, 255, .42);
  background: linear-gradient(145deg, rgba(27, 31, 43, .96), rgba(14, 16, 24, .96));
}

.features-card-wide {
  min-height: 300px;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 24px;
}

.features-card-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 38px;
  border: 1px solid rgba(145, 71, 255, .32);
  border-radius: 15px;
  background: rgba(145, 71, 255, .1);
  color: #bf97ff;
  font-size: 23px;
  font-weight: 800;
}

.features-card-wide .features-card-icon {
  width: 64px;
  height: 64px;
  margin: 0;
  font-size: 28px;
}

.features-card h3,
.features-role-grid h3 {
  margin: 0 0 12px;
  font-size: 25px;
  letter-spacing: -.035em;
}

.features-card > p,
.features-card > div > p {
  margin: 0;
  color: #aeb4c2;
  line-height: 1.65;
}

.features-card ul {
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 11px;
  list-style: none;
  color: #c5cad5;
  font-size: 14px;
  line-height: 1.5;
}

.features-card li {
  position: relative;
  padding-left: 20px;
}

.features-card li:before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: #9147ff;
}

.features-card code {
  padding: 2px 5px;
  border-radius: 5px;
  background: #242a38;
  color: #d7c2f8;
  font-size: .92em;
}

.features-highlight {
  margin: 0 0 130px;
  padding: clamp(32px, 6vw, 68px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, .95fr);
  gap: clamp(42px, 7vw, 86px);
  align-items: center;
  scroll-margin-top: 110px;
  overflow: hidden;
  border: 1px solid rgba(145, 71, 255, .25);
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(145, 71, 255, .12), rgba(17, 20, 28, .92) 38%, rgba(13, 15, 22, .98));
}

.features-highlight-copy > p:not(.eyebrow):not(.features-note) {
  margin: 22px 0 0;
  color: #b7bdca;
  font-size: 17px;
  line-height: 1.7;
}

.features-check-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.features-check-grid span {
  position: relative;
  padding: 13px 14px 13px 39px;
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 11px;
  background: rgba(255, 255, 255, .025);
  color: #d1d5df;
  font-size: 13px;
  line-height: 1.45;
}

.features-check-grid span:before {
  content: "✓";
  position: absolute;
  left: 14px;
  top: 12px;
  color: #a970ff;
  font-weight: 900;
}

.features-note {
  margin: 24px 0 0;
  padding-left: 14px;
  border-left: 2px solid #9147ff;
  color: #858d9e;
  font-size: 12px;
  line-height: 1.65;
}

.features-livepanel-visual {
  overflow: hidden;
  border: 1px solid #303748;
  border-radius: 20px;
  background: #0c0f16;
  box-shadow: 0 32px 80px rgba(0, 0, 0, .38);
}

.features-livepanel-stream {
  position: relative;
  min-height: 154px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    linear-gradient(to top, rgba(5, 7, 11, .96), rgba(5, 7, 11, .12)),
    radial-gradient(circle at 72% 20%, rgba(145, 71, 255, .48), transparent 34%),
    linear-gradient(135deg, #232a3c, #111620);
}

.features-live-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  padding: 5px 8px;
  border-radius: 5px;
  background: #e91916;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
}

.features-livepanel-stream strong {
  font-size: 19px;
}

.features-livepanel-stream small {
  margin-top: 5px;
  color: #9ca4b5;
}

.features-livepanel-chat {
  padding: 12px 18px;
}

.features-livepanel-chat p {
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr);
  gap: 10px;
  margin: 0;
  padding: 9px 0;
  border-bottom: 1px solid #232937;
  font-size: 11px;
  line-height: 1.45;
}

.features-livepanel-chat p:last-child {
  border-bottom: 0;
}

.features-livepanel-chat b {
  overflow: hidden;
  color: #b68aff;
  text-overflow: ellipsis;
}

.features-livepanel-chat span {
  color: #c6cbd5;
}

.features-livepanel-actions {
  padding: 12px 18px 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.features-livepanel-actions span {
  padding: 9px 5px;
  border: 1px solid #343b4d;
  border-radius: 8px;
  background: #181d28;
  color: #aeb4c2;
  font-size: 10px;
  font-weight: 800;
  text-align: center;
}

.features-three-column,
.features-role-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.features-three-column article,
.features-role-grid article {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(17, 20, 28, .78);
}

.features-three-column strong {
  display: block;
  margin-bottom: 12px;
  font-size: 20px;
}

.features-three-column p,
.features-role-grid p {
  margin: 0;
  color: #949cad;
  line-height: 1.65;
}

.features-team-section {
  padding-top: 10px;
}

.features-role-grid article > span {
  display: block;
  margin-bottom: 40px;
  color: #7941ca;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .12em;
}

.features-security {
  margin: 0 0 130px;
  padding: clamp(34px, 6vw, 66px);
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(44px, 8vw, 110px);
  align-items: start;
  scroll-margin-top: 110px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(12, 15, 22, .82);
}

.features-security-heading > p:last-child {
  margin: 22px 0 0;
  color: #9ba2b2;
  line-height: 1.7;
}

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

.features-security-grid article {
  min-height: 170px;
  padding: 22px;
  border: 1px solid #292f3e;
  border-radius: 16px;
  background: #131720;
}

.features-security-grid strong,
.features-security-grid span {
  display: block;
}

.features-security-grid strong {
  margin-bottom: 10px;
  font-size: 17px;
}

.features-security-grid span {
  color: #8f97a8;
  font-size: 13px;
  line-height: 1.6;
}

.features-steps {
  margin-bottom: 130px;
}

.features-steps ol {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  list-style: none;
}

.features-steps li {
  min-height: 230px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-top: 1px solid #3a4152;
  background: linear-gradient(to bottom, rgba(255, 255, 255, .025), transparent 68%);
}

.features-steps li > span {
  color: #a970ff;
  font-size: 14px;
  font-weight: 900;
}

.features-steps strong {
  display: block;
  margin-bottom: 10px;
  font-size: 20px;
}

.features-steps p {
  margin: 0;
  color: #9299aa;
  line-height: 1.65;
}

.features-final-cta {
  margin-bottom: 80px;
  padding: clamp(44px, 9vw, 100px) clamp(28px, 8vw, 90px);
  border: 1px solid rgba(145, 71, 255, .34);
  border-radius: 30px;
  background:
    radial-gradient(circle at 85% 18%, rgba(145, 71, 255, .28), transparent 29%),
    linear-gradient(145deg, #171323, #10131b 60%);
  text-align: center;
}

.features-final-cta h2 {
  max-width: 800px;
  margin-right: auto;
  margin-left: auto;
}

.features-final-cta > p:not(.eyebrow) {
  max-width: 660px;
  margin: 22px auto 30px;
  color: #aeb4c2;
  font-size: 17px;
  line-height: 1.7;
}

.features-footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 42px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px 36px;
  align-items: center;
  border-top: 1px solid var(--line);
  color: #81899a;
  font-size: 12px;
}

.features-footer > div p {
  margin: 9px 0 0;
}

.features-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
}

.features-footer nav a:hover {
  color: #fff;
}

.features-footer-note {
  grid-column: 1 / -1;
  margin: 0;
  color: #5f6778;
}

@media(max-width: 1000px) {
  .features-header-nav > a:not(.button) {
    display: none;
  }

  .features-hero {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .features-preview {
    width: min(640px, 100%);
    transform: none;
  }

  .features-intro,
  .features-security {
    grid-template-columns: 1fr;
  }

  .features-highlight {
    grid-template-columns: 1fr;
  }

  .features-livepanel-visual {
    width: min(620px, 100%);
  }
}

@media(max-width: 780px) {
  .features-header {
    width: calc(100% - 24px);
    margin-top: 12px;
  }

  .features-header .brand span {
    display: none;
  }

  .features-header-nav {
    gap: 0;
  }

  .features-shell {
    width: min(100% - 28px, 1180px);
    padding-top: 66px;
  }

  .features-hero-copy h1 {
    font-size: clamp(48px, 14vw, 68px);
  }

  .features-preview-layout {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .features-preview-sidebar {
    padding: 22px 10px;
  }

  .features-preview-sidebar i {
    width: 22px;
  }

  .features-preview-main {
    padding: 14px;
  }

  .features-preview-status {
    grid-template-columns: 1fr;
  }

  .features-preview-status article:nth-child(2),
  .features-preview-status article:nth-child(3) {
    display: none;
  }

  .features-intro {
    margin: 60px 0 90px;
  }

  .features-section,
  .features-highlight,
  .features-security,
  .features-steps {
    margin-bottom: 90px;
  }

  .features-card-grid,
  .features-three-column,
  .features-role-grid,
  .features-security-grid,
  .features-steps ol {
    grid-template-columns: 1fr;
  }

  .features-card-wide {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .features-card-wide .features-card-icon {
    width: 52px;
    height: 52px;
    margin-bottom: 12px;
  }

  .features-card {
    min-height: 0;
    padding: 24px;
  }

  .features-check-grid {
    grid-template-columns: 1fr;
  }

  .features-highlight,
  .features-security {
    padding: 28px 22px;
    border-radius: 22px;
  }

  .features-livepanel-chat p {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .features-footer {
    grid-template-columns: 1fr;
  }

  .features-footer nav {
    justify-content: flex-start;
  }
}

@media(max-width: 440px) {
  .features-header-nav .button {
    padding: 9px 11px;
    font-size: 11px;
  }

  .features-preview {
    border-radius: 18px;
  }

  .features-preview-feed {
    padding: 4px 10px;
  }

  .features-preview-feed b {
    display: none;
  }

  .features-livepanel-actions {
    grid-template-columns: 1fr;
  }
}


/* v1.13.1 - zweizeilige Produktmarke auf Landingpage und öffentlichen Footern */
.brand-stacked {
  align-items: center;
}

.brand-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  line-height: 1.05;
}

.brand-copy strong {
  overflow: hidden;
  max-width: 100%;
  color: var(--text);
  font: inherit;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-copy small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .08em;
  line-height: 1.2;
}

.brand-large.brand-stacked {
  align-items: center;
}

.brand-large.brand-stacked .brand-copy {
  gap: 5px;
}

.brand-large.brand-stacked .brand-copy small {
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.features-footer .brand-stacked .brand-copy small {
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.oauth-status-banner {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 1000;
  width: min(680px, calc(100vw - 32px));
  transform: translateX(-50%);
  border: 1px solid rgba(255, 154, 165, .42);
  border-radius: 12px;
  padding: 11px 14px;
  background: rgba(39, 18, 25, .96);
  color: #ffd8dd;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.45;
  text-align: center;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .38);
}


/* Shared placeholder catalogue */
.placeholder-help,
.placeholder-details {
  margin-top: .65rem;
}
.placeholder-details > summary {
  cursor: pointer;
  color: var(--muted, #9aa3b2);
  font-size: .82rem;
  font-weight: 700;
}
.placeholder-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: .55rem;
}
.placeholder-chip {
  appearance: none;
  border: 1px solid color-mix(in srgb, var(--accent, #7c5cff) 45%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent, #7c5cff) 12%, transparent);
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-size: .78rem;
  line-height: 1;
  padding: .42rem .62rem;
}
.placeholder-chip:hover,
.placeholder-chip:focus-visible {
  border-color: var(--accent, #7c5cff);
  outline: none;
}
.placeholder-description {
  color: var(--muted, #9aa3b2);
  font-size: .78rem;
  margin: .45rem 0 0;
}

.giveaway-opening-preview { padding: .8rem 1rem; border: 1px dashed var(--border, #34394a); border-radius: .8rem; background: rgba(255,255,255,.025); }
.giveaway-command { display: flex; align-items: center; gap: .55rem; margin-top: .65rem; }
.giveaway-command code { font-size: .92rem; }
.giveaway-command-field { min-width: 190px; }

.alert-sound-settings { margin-top: 1rem; }
.panel-subheading { display:flex; flex-direction:column; gap:.2rem; margin-bottom:.7rem; }
.panel-subheading small { color:var(--muted, #9aa3b2); }
.alert-sound-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.75rem; }
.alert-sound-control { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:.45rem; }
@media (max-width:700px){.alert-sound-grid{grid-template-columns:1fr}}


/* Responsive application drawer */
.mobile-app-header,
.mobile-nav-backdrop { display:none; }
@media (max-width:780px) {
  body.mobile-nav-open { overflow:hidden; }
  .mobile-app-header {
    position:sticky; top:0; z-index:180; display:grid; grid-template-columns:44px minmax(0,1fr) 44px;
    align-items:center; min-height:62px; padding:8px 12px; border-bottom:1px solid var(--line);
    background:rgba(12,14,20,.97); backdrop-filter:blur(16px);
  }
  .mobile-menu-button {
    display:grid; place-content:center; gap:4px; width:42px; height:42px; border:1px solid var(--line);
    border-radius:10px; background:var(--surface-2); color:#fff; cursor:pointer;
  }
  .mobile-menu-button span { display:block; width:18px; height:2px; border-radius:2px; background:currentColor; }
  .mobile-app-brand { grid-column:2; display:flex; align-items:center; justify-content:center; gap:9px; min-width:0; color:#fff; font-size:14px; font-weight:800; text-decoration:none; }
  .mobile-app-brand img { width:28px; height:28px; }
  .mobile-app-brand span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .mobile-nav-backdrop {
    display:block; position:fixed; inset:0; z-index:195; border:0; padding:0; background:rgba(0,0,0,.58);
    opacity:0; visibility:hidden; pointer-events:none; transition:opacity .2s ease,visibility .2s ease;
  }
  .sidebar {
    position:fixed!important; inset:0 auto 0 0!important; z-index:200!important; width:min(310px,88vw)!important;
    height:100dvh!important; max-height:100dvh!important; padding:20px 18px!important; overflow:hidden!important;
    border-right:1px solid var(--line)!important; border-bottom:0!important; transform:translateX(-105%);
    transition:transform .24s cubic-bezier(.2,.8,.2,1); box-shadow:24px 0 60px rgba(0,0,0,.35);
  }
  .sidebar .nav-list { display:flex!important; grid-template-columns:none!important; overflow-y:auto!important; }
  .sidebar-footer { display:block!important; }
  body.mobile-nav-open .sidebar { transform:translateX(0); }
  body.mobile-nav-open .mobile-nav-backdrop { opacity:1; visibility:visible; pointer-events:auto; }
  .workspace { width:100%!important; margin-left:0!important; }
  .topbar { position:static; min-height:auto; padding:14px 16px 16px; }
  .topbar-title { display:none; }
  .topbar-controls { width:100%; align-items:stretch; }
  .content { padding-right:14px; padding-left:14px; }
  .analytics-tabs {
    display:grid!important; grid-template-columns:repeat(3,minmax(0,1fr))!important; overflow:visible!important;
    scroll-snap-type:none!important;
  }
  .analytics-tab { min-width:0!important; width:100%; white-space:normal; }
}
@media (max-width:599px) {
  .analytics-tabs { grid-template-columns:repeat(2,minmax(0,1fr))!important; }
}
@media (max-width:379px) {
  .analytics-tabs { grid-template-columns:repeat(auto-fit,minmax(118px,1fr))!important; }
}
@media (min-width:781px) {
  .sidebar { transform:none!important; }
}
@media (prefers-reduced-motion:reduce) {
  .sidebar,.mobile-nav-backdrop { transition:none!important; }
}

/* Public support page */
.support-shell{display:grid;gap:26px}.support-hero{padding-top:48px}.support-contact-grid,.support-information-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.support-contact-link{font-size:1.05rem;font-weight:800}.support-diagnostic{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:18px 0;padding:14px 16px;border:1px solid rgba(184,121,255,.35);border-radius:14px;background:rgba(145,70,255,.08)}.support-diagnostic code{padding:5px 8px;border-radius:7px;background:rgba(0,0,0,.32)}.support-diagnostic span{color:var(--muted)}.support-checklist{display:grid;gap:10px;margin:0;padding:20px 20px 20px 40px;border:1px solid var(--line);border-radius:16px;background:var(--surface)}.support-security{margin-top:18px;padding:16px 18px;border:1px solid rgba(255,176,70,.32);border-radius:14px;background:rgba(255,176,70,.07)}.support-security strong{color:#ffd196}.support-security p{margin:7px 0 0}.support-topic-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.support-topic-grid span{padding:13px;border:1px solid var(--line);border-radius:12px;background:var(--surface);font-weight:750}.support-body .features-card h2{margin:14px 0 8px;font-size:1.25rem}@media(max-width:780px){.support-contact-grid,.support-information-grid{grid-template-columns:1fr}.support-topic-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:430px){.support-topic-grid{grid-template-columns:1fr}.support-hero{padding-top:24px}}

/* Streamer onboarding */
.landing-actions-single{grid-template-columns:1fr}.landing-action-note,.moderator-login-link{text-align:center}.landing-action-note{margin:10px 0 0;color:var(--muted);font-size:.88rem}.moderator-login-link{margin:18px 0 0}.onboarding-body{min-height:100vh;display:grid;place-items:center;padding:24px}.onboarding-shell{width:min(100%,610px)}.onboarding-card{padding:clamp(24px,5vw,46px);border:1px solid var(--line);border-radius:24px;background:linear-gradient(155deg,rgba(31,27,35,.98),rgba(18,16,21,.98));box-shadow:0 28px 80px rgba(0,0,0,.38)}.onboarding-card h1{margin:8px 0 14px;font-size:clamp(2rem,6vw,3rem)}.onboarding-channel{display:flex;align-items:center;gap:14px;margin:24px 0;padding:14px;border:1px solid var(--line);border-radius:14px;background:var(--surface)}.onboarding-channel img,.onboarding-channel>span{width:54px;height:54px;border-radius:14px;object-fit:cover}.onboarding-channel>span{display:grid;place-items:center;background:rgba(145,70,255,.2);font-weight:900}.onboarding-channel strong,.onboarding-channel small{display:block}.onboarding-channel small{margin-top:3px;color:var(--muted)}.onboarding-links{display:flex;justify-content:center;gap:16px;margin-top:20px;font-size:.85rem}

/* Account deletion */
.danger-zone{border-color:rgba(255,83,104,.35);background:linear-gradient(145deg,rgba(255,62,87,.065),var(--surface))}.danger-zone .eyebrow{color:#ff8b9b}.button-danger{border:1px solid rgba(255,93,113,.55);background:#b7283d;color:#fff}.button-danger:hover:not(:disabled){background:#cf3047}.button-danger:disabled{opacity:.45;cursor:not-allowed}.account-delete-card{width:min(92vw,610px);border-color:rgba(255,83,104,.4)}.account-delete-card code{color:#ff9ba9}.account-delete-card .field{margin-top:20px}

/* Technical support action */
.oauth-status-banner{display:grid;gap:5px}.oauth-status-banner code{color:#fff}.oauth-status-banner a{color:#fff;font-weight:800}.technical-error-panel{position:fixed;right:20px;bottom:20px;z-index:500;display:flex;align-items:center;justify-content:space-between;gap:18px;width:min(92vw,620px);padding:16px 18px;border:1px solid rgba(255,108,126,.45);border-radius:16px;background:rgba(39,15,21,.97);box-shadow:0 20px 60px rgba(0,0,0,.45)}.technical-error-panel p{margin:5px 0;color:#f5dadd}.technical-error-panel small{color:#ffb5c0}.technical-error-panel .button-row{flex-wrap:nowrap}.technical-error-panel .button-ghost{font-size:1.4rem}@media(max-width:620px){.technical-error-panel{right:10px;bottom:10px;left:10px;width:auto;align-items:flex-start;flex-direction:column}.technical-error-panel .button-row{width:100%;justify-content:space-between}}

/* Public analytics example and controlled preview motion */
.features-analytics-showcase{position:relative}.features-analytics-demo{position:relative;display:grid;gap:16px;padding:clamp(18px,3vw,30px);border:1px solid var(--line);border-radius:22px;background:linear-gradient(145deg,rgba(28,25,32,.96),rgba(15,14,18,.96));overflow:hidden}.features-demo-label{justify-self:start;padding:6px 10px;border:1px solid rgba(184,121,255,.35);border-radius:999px;color:#d9bcff;background:rgba(145,70,255,.1);font-size:.7rem;font-weight:850;letter-spacing:.07em;text-transform:uppercase}.features-analytics-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.features-analytics-kpis article{padding:15px;border:1px solid var(--line);border-radius:14px;background:rgba(255,255,255,.025)}.features-analytics-kpis small,.features-analytics-kpis span{display:block;color:var(--muted)}.features-analytics-kpis strong{display:block;margin:7px 0 4px;font-size:clamp(1.35rem,3vw,2rem)}.features-analytics-kpis span{font-size:.75rem}.features-analytics-chart-card{padding:17px;border:1px solid var(--line);border-radius:16px;background:rgba(7,8,11,.38)}.features-analytics-chart-card>div:first-child{display:flex;justify-content:space-between;gap:12px}.features-analytics-chart-card small{color:var(--muted)}.features-analytics-chart-card svg{display:block;width:100%;height:auto;margin-top:10px}.analytics-grid-line{fill:none;stroke:rgba(255,255,255,.08);stroke-width:1}.analytics-demo-line{fill:none;stroke:currentColor;stroke-width:4;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:900;stroke-dashoffset:900;animation:features-line-draw 2.4s .3s ease-out forwards}.analytics-demo-line-one{color:#b879ff}.analytics-demo-line-two{color:#70d7d0;animation-delay:.65s}.features-analytics-legend{display:flex;gap:18px;color:var(--muted);font-size:.78rem}.features-analytics-legend span:before{content:"";display:inline-block;width:9px;height:9px;margin-right:6px;border-radius:50%;background:currentColor}.features-analytics-legend span:first-child{color:#b879ff}.features-analytics-legend span:last-child{color:#70d7d0}.features-analytics-capabilities{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:16px}.features-analytics-capabilities article{padding:20px;border:1px solid var(--line);border-radius:16px;background:var(--surface)}.features-analytics-capabilities h3{margin:0 0 10px}.features-analytics-capabilities ul{margin:0;padding-left:19px;color:var(--muted)}.features-analytics-capabilities li+li{margin-top:7px}
.features-preview-chart span{transform-origin:left center;animation:features-chart-reveal 2.2s .35s ease-out both}.features-preview-feed p{animation:features-insight-in .55s ease-out both}.features-preview-feed p:nth-child(1){animation-delay:1.3s}.features-preview-feed p:nth-child(2){animation-delay:1.6s}.features-preview-feed p:nth-child(3){animation-delay:1.9s}
@keyframes features-line-draw{to{stroke-dashoffset:0}}@keyframes features-chart-reveal{from{transform:scaleX(0);opacity:.25}to{transform:scaleX(1);opacity:1}}@keyframes features-insight-in{from{opacity:0;transform:translateY(9px)}to{opacity:1;transform:none}}@keyframes features-nav-active{0%,100%{opacity:.45;transform:none}35%,65%{opacity:1;transform:translateX(3px)}}@keyframes features-live-pulse{0%,100%{box-shadow:0 0 0 0 rgba(255,57,83,0)}50%{box-shadow:0 0 0 7px rgba(255,57,83,.13)}}@keyframes features-chat-in{from{opacity:0;transform:translateX(18px)}to{opacity:1;transform:none}}@keyframes features-demo-status{0%,100%{transform:none}45%,65%{transform:translateY(-2px);box-shadow:0 0 0 3px rgba(184,121,255,.14)}}
@media(max-width:780px){.features-analytics-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.features-analytics-capabilities{grid-template-columns:1fr}}@media(max-width:430px){.features-analytics-kpis{grid-template-columns:1fr}.features-analytics-chart-card>div:first-child{display:grid}.features-analytics-demo{padding:14px}}
@media(prefers-reduced-motion:reduce){.analytics-demo-line,.features-preview-chart span,.features-preview-feed p,.features-preview-sidebar i,.features-livepanel-stream .features-live-badge,.features-livepanel-chat p,.features-livepanel-actions span{animation:none!important;stroke-dashoffset:0!important;transform:none!important;opacity:1!important}}

/* v1.20.4 - moderator flows, catalog cleanup and layout refinements */
.technical-error-panel.hidden,
.technical-error-panel[hidden],
.modal-backdrop.hidden,
.modal-backdrop[hidden] {
  display: none !important;
}

body.modal-open {
  overflow: hidden;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 650;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow-y: auto;
  background: rgba(3, 5, 9, .76);
  backdrop-filter: blur(5px);
}

.modal-card {
  width: min(100%, 610px);
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(155deg, #17141d, #0f1118);
  box-shadow: 0 30px 100px rgba(0, 0, 0, .62);
}

.modal-card h2 {
  margin: 8px 0 16px;
  font-size: clamp(1.65rem, 4vw, 2.2rem);
}

.modal-card > p:not(.eyebrow) {
  margin: 0;
  color: #b8bfcc;
  line-height: 1.65;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}

.field-inline-note {
  margin-left: .35rem;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 500;
  white-space: nowrap;
}

.field-inline-note code {
  padding: 1px 4px;
  font-size: .95em;
}

.placeholder-help {
  margin-top: -8px;
}

.placeholder-details {
  margin-top: 0;
}

.placeholder-details > summary {
  line-height: 1.25;
}

.landing-action-note {
  display: none;
}

.moderator-login-link {
  max-width: 100%;
  margin: 18px 0 0;
  text-align: left;
}

.onboarding-card > .brand {
  margin-bottom: 30px;
}

.onboarding-card > .eyebrow {
  margin-top: 0;
}

.account-deleted-card .landing-actions {
  margin-top: 28px;
}

.features-analytics-showcase {
  position: relative;
}

.features-analytics-showcase .features-highlight-copy {
  min-width: 0;
}

.features-analytics-checks span {
  min-height: 96px;
}

.features-analytics-checks strong {
  display: block;
  margin-bottom: 4px;
  color: #f3f4f8;
  font-size: .94rem;
}

.features-analytics-demo {
  width: 100%;
  max-width: 560px;
  justify-self: end;
  gap: 13px;
  padding: clamp(16px, 2.4vw, 24px);
}

.features-analytics-kpis {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.features-analytics-kpis article {
  padding: 13px;
}

.features-analytics-kpis strong {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

.features-analytics-chart-card {
  padding: 14px;
}

/* Motion starts only when the preview enters the viewport. */
.analytics-demo-line,
.features-preview-chart span,
.features-preview-feed p,
.features-preview-sidebar i,
.features-livepanel-stream .features-live-badge,
.features-livepanel-chat p,
.features-livepanel-actions span {
  animation: none;
}

.analytics-demo-line {
  stroke-dashoffset: 900;
}

.features-motion-scene.is-visible .analytics-demo-line {
  animation: features-line-draw 2.4s .3s ease-out forwards;
}

.features-motion-scene.is-visible .analytics-demo-line-two {
  animation-delay: .65s;
}

.features-motion-scene.is-visible .features-preview-chart span {
  animation: features-chart-reveal 2.2s .35s ease-out both;
}

.features-motion-scene.is-visible .features-preview-feed p {
  animation: features-insight-in .55s ease-out both;
}

.features-motion-scene.is-visible .features-preview-feed p:nth-child(1) {
  animation-delay: 1.3s;
}

.features-motion-scene.is-visible .features-preview-feed p:nth-child(2) {
  animation-delay: 1.6s;
}

.features-motion-scene.is-visible .features-preview-feed p:nth-child(3) {
  animation-delay: 1.9s;
}





@media (max-width: 780px) {
  .modal-backdrop {
    padding: 14px;
  }

  .modal-actions {
    flex-direction: column-reverse;
  }

  .modal-actions .button {
    width: 100%;
  }

  .features-analytics-demo {
    max-width: none;
    justify-self: stretch;
  }

  .features-analytics-checks span {
    min-height: 0;
  }
}

@media (max-width: 430px) {
  .field-inline-note {
    display: block;
    margin: 3px 0 0;
    white-space: normal;
  }

  .features-analytics-kpis {
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .features-motion-scene.is-visible .analytics-demo-line,
  .features-motion-scene.is-visible .features-preview-chart span,
  .features-motion-scene.is-visible .features-preview-feed p,
  .features-motion-scene.is-visible .features-preview-sidebar i,
  .features-motion-scene.is-visible .features-livepanel-stream .features-live-badge,
  .features-motion-scene.is-visible .features-livepanel-chat p,
  .features-motion-scene.is-visible .features-livepanel-actions span {
    animation: none !important;
    stroke-dashoffset: 0 !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

@keyframes features-line-draw-on-view {
  from { stroke-dashoffset: 900; }
  to { stroke-dashoffset: 0; }
}

.features-motion-scene.is-visible .analytics-demo-line {
  animation-name: features-line-draw-on-view;
}

.giveaway-command-field {
  min-width: 245px;
}

.giveaway-command-field > span {
  white-space: nowrap;
}


/* v1.20.4 refinements */
.moderator-login-form {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 5px;
  max-width: 100%;
  margin: 18px 0 0;
  color: var(--muted);
  text-align: left;
}
.moderator-login-button {
  border: 0;
  padding: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-weight: 850;
  text-decoration: underline;
  text-decoration-color: rgba(184,121,255,.65);
  text-underline-offset: 3px;
  cursor: pointer;
}
.moderator-login-button:hover,
.moderator-login-button:focus-visible { color: #cba9ff; }
.field-with-placeholder { display: grid; gap: 5px; min-width: 0; }
.field-with-placeholder > .field { margin: 0; }
.welcome-placeholder-help { margin-top: 0; }
.support-contact-grid-inline { margin-top: 20px; }
.support-contact-grid-inline .features-card { min-height: 0; }
.features-card-grid > .features-card:first-child { grid-column: auto; }
@media (max-width: 430px) {
  .moderator-login-form { display: grid; gap: 3px; }
}

/* v1.20.5 moderator onboarding and viewport motion refinements */
.moderator-onboarding-shell { width: min(100%, 720px); }
.moderator-onboarding-card h1 { max-width: 620px; }
.moderator-account-summary { margin-bottom: 20px; }
.moderator-onboarding-empty {
  display: grid;
  gap: 14px;
  margin-top: 22px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.moderator-onboarding-empty h2,
.moderator-onboarding-empty p { margin: 0; }
.moderator-onboarding-empty p { color: var(--muted); line-height: 1.65; }
.moderator-onboarding-empty .button { justify-self: start; }
.moderator-onboarding-form { gap: 18px; }
.moderator-channel-selection {
  display: grid;
  gap: 10px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.moderator-channel-selection legend {
  margin-bottom: 10px;
  color: #f3f4f8;
  font-weight: 850;
}
.moderator-channel-option {
  position: relative;
  display: grid;
  grid-template-columns: auto 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
.moderator-channel-option:hover { border-color: rgba(184,121,255,.55); }
.moderator-channel-option:has(input:checked) {
  border-color: #9b4dff;
  background: rgba(145,70,255,.1);
}
.moderator-channel-option input { margin: 0; accent-color: #9b4dff; }
.moderator-channel-option img,
.moderator-channel-avatar {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
}
.moderator-channel-avatar {
  display: grid;
  place-items: center;
  background: rgba(145,70,255,.2);
  font-weight: 900;
}
.moderator-channel-copy { min-width: 0; }
.moderator-channel-copy strong,
.moderator-channel-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.moderator-channel-copy small { margin-top: 3px; color: var(--muted); }
.moderator-channel-check { color: #c99cff; font-weight: 900; opacity: 0; }
.moderator-channel-option:has(input:checked) .moderator-channel-check { opacity: 1; }
.moderator-access-note { margin: -2px 0 0; line-height: 1.55; }

/* Animated elements start in their first frame before the observer delay. */
.features-motion-scene:not(.is-visible) .features-preview-chart span {
  opacity: .25;
  transform: scaleX(0);
}
.features-motion-scene:not(.is-visible) .features-preview-feed p {
  opacity: 0;
  transform: translateY(9px);
}
.features-motion-scene:not(.is-visible) .features-livepanel-chat p {
  opacity: 0;
  transform: translateX(18px);
}
.features-preview-sidebar i,
.features-livepanel-stream .features-live-badge,
.features-livepanel-actions span {
  animation: none !important;
}
.features-motion-scene.is-visible .features-livepanel-chat p {
  animation: features-chat-in .55s ease-out both;
}
.features-motion-scene.is-visible .features-livepanel-chat p:nth-child(1) { animation-delay: .15s; }
.features-motion-scene.is-visible .features-livepanel-chat p:nth-child(2) { animation-delay: .45s; }
.features-motion-scene.is-visible .features-livepanel-chat p:nth-child(3) { animation-delay: .75s; }
.features-motion-scene.is-visible .features-livepanel-chat p:nth-child(4) { animation-delay: 1.05s; }

@media (max-width: 520px) {
  .moderator-channel-option { grid-template-columns: auto 42px minmax(0, 1fr); padding: 12px; }
  .moderator-channel-option img,
  .moderator-channel-avatar { width: 42px; height: 42px; }
  .moderator-channel-check { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .features-motion-scene:not(.is-visible) .features-preview-chart span,
  .features-motion-scene:not(.is-visible) .features-preview-feed p,
  .features-motion-scene:not(.is-visible) .features-livepanel-chat p {
    opacity: 1 !important;
    transform: none !important;
  }
  .features-motion-scene.is-visible .features-livepanel-chat p {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* v1.20.6: explicit moderator grants and static onboarding channel lists */
.moderator-channel-group {
  display: grid;
  gap: 14px;
}
.moderator-channel-group + .moderator-channel-group {
  margin-top: 24px;
}
.moderator-channel-group-heading {
  display: grid;
  gap: 6px;
}
.moderator-channel-group-heading h2,
.moderator-channel-group-heading p {
  margin: 0;
}
.moderator-channel-group-heading p {
  color: var(--muted);
  line-height: 1.6;
}
.moderator-channel-list {
  display: grid;
  gap: 10px;
}
.moderator-channel-option-static {
  grid-template-columns: 48px minmax(0, 1fr) auto;
  cursor: default;
}
.moderator-channel-option-static:hover {
  transform: none;
}
.moderator-channel-option-static.is-authorized {
  border-color: rgba(145, 70, 255, .55);
  background: rgba(145, 70, 255, .09);
}
.moderator-channel-option-static.is-locked {
  background: rgba(255, 255, 255, .018);
}
.moderator-channel-role {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid rgba(184, 121, 255, .35);
  border-radius: 999px;
  color: #d9bcff;
  background: rgba(145, 70, 255, .1);
  font-size: .76rem;
  font-weight: 800;
  white-space: nowrap;
}
.moderator-channel-role-locked {
  border-color: var(--line);
  color: var(--muted);
  background: rgba(255, 255, 255, .025);
}
.moderator-onboarding-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.moderator-channel-group-locked {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

@media (max-width: 520px) {
  .moderator-channel-option-static {
    grid-template-columns: 42px minmax(0, 1fr);
  }
  .moderator-channel-role {
    grid-column: 2;
    justify-self: start;
  }
}
