:root {
  color-scheme: dark;
  --cyan: #00cfff;
  --blue: #2b6bff;
  --purple: #6e39ff;
  --magenta: #ff2da6;
  --coral: #ff5b8a;
  --ink: #0b0f17;
  --navy: #111827;
  --brand-gradient: linear-gradient(90deg, #00cfff 0%, #2b6bff 36%, #6e39ff 68%, #ff2da6 100%);
  --brand-cta: linear-gradient(90deg, #2b6bff 0%, #6e39ff 52%, #ff2da6 100%);
  --bg: #0b0f17;
  --bg-elevated: #111827;
  --sidebar: #0b0f17;
  --panel: #111827;
  --panel-2: #171e2e;
  --border: rgba(148, 163, 184, 0.14);
  --text: #ffffff;
  --muted: #94a3b8;
  --cyan-dim: rgba(0, 207, 255, 0.14);
  --lime: #7cff4a;
  --orange: #ff8a3d;
  --warn: #c45a3a;
  --yellow: #ffe14a;
  --radius: 16px;
  --font: Poppins, "Segoe UI", system-ui, sans-serif;
  --topbar-bg: rgba(11, 15, 23, 0.88);
  --input-bg: #0e1420;
  --feed-bg: #0e1420;
  --menu-bg: #151c2c;
  --account-bg: rgba(17, 24, 39, 0.92);
  --account-border: rgba(148, 163, 184, 0.22);
  --account-hover: rgba(23, 30, 46, 0.96);
  --item-text: #e2e8f0;
  --nav-text: #cbd5e1;
  --icon-muted: #94a3b8;
  --avatar-bg: #1e293b;
  --avatar-fg: #e2e8f0;
  --switch-track: #1e293b;
  --switch-knob: #e2e8f0;
  --icon-btn-border: rgba(148, 163, 184, 0.32);
  --icon-btn-bg: transparent;
  --ghost-text: #e2e8f0;
  --danger-text: #ffb199;
  --sep: rgba(255, 255, 255, 0.08);
  --row-line: rgba(148, 163, 184, 0.1);
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  --menu-shadow: 0 18px 44px rgba(0, 0, 0, 0.48);
  --page-glow:
    radial-gradient(920px 480px at 88% -12%, rgba(0, 207, 255, 0.1), transparent 58%),
    radial-gradient(720px 420px at 6% 0%, rgba(110, 57, 255, 0.1), transparent 52%),
    radial-gradient(640px 380px at 72% 108%, rgba(255, 45, 166, 0.06), transparent 58%);
  --pick-mix: #0e1420;
  --error: #ef4444;
  --success: #34d399;
  --ov-canvas: #070a12;
  --ov-canvas-check: #1a2233;
  --ov-frame-edge: rgba(226, 232, 240, 0.32);
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #eef1f6;
  --bg-elevated: #ffffff;
  --sidebar: #f7f8fc;
  --panel: #ffffff;
  --panel-2: #f3f5f9;
  --border: rgba(28, 46, 74, 0.12);
  --text: #102038;
  --muted: #5c6d84;
  --cyan-dim: rgba(0, 184, 216, 0.12);
  --topbar-bg: rgba(255, 255, 255, 0.9);
  --input-bg: #ffffff;
  --feed-bg: #f4f6fa;
  --menu-bg: #ffffff;
  --account-bg: #ffffff;
  --account-border: rgba(28, 46, 74, 0.16);
  --account-hover: #f3f6fb;
  --item-text: #102038;
  --nav-text: #24344c;
  --icon-muted: #617388;
  --avatar-bg: #d9e1ee;
  --avatar-fg: #102038;
  --switch-track: #d5dce8;
  --switch-knob: #ffffff;
  --icon-btn-border: rgba(28, 46, 74, 0.16);
  --icon-btn-bg: #ffffff;
  --ghost-text: #24344c;
  --danger-text: #c4472a;
  --sep: rgba(16, 32, 56, 0.08);
  --row-line: rgba(28, 46, 74, 0.1);
  --shadow: 0 10px 28px rgba(16, 32, 56, 0.08);
  --menu-shadow: 0 16px 40px rgba(16, 32, 56, 0.12);
  --page-glow:
    radial-gradient(920px 480px at 88% -12%, rgba(0, 207, 255, 0.14), transparent 58%),
    radial-gradient(720px 420px at 6% 0%, rgba(110, 57, 255, 0.08), transparent 52%);
  --pick-mix: #ffffff;
  --ov-canvas: #dfe4ee;
  --ov-canvas-check: #c5cedc;
  --ov-frame-edge: rgba(16, 32, 56, 0.5);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  width: 100%;
  min-height: 100%;
  background:
    var(--page-glow),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--cyan);
  text-decoration: none;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.03em;
}

h1 {
  font-size: 1.72rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

h1 i {
  color: var(--cyan);
}

h2 {
  font-size: 1.08rem;
}

.lede {
  color: var(--muted);
  line-height: 1.55;
  font-weight: 400;
}

.lede--flush {
  margin: 0;
}

.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.page-head h1 {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.view[hidden] {
  display: none;
}

.view {
  width: 100%;
  min-width: 0;
}

.view > .connections,
.view > .feeds,
.view > .ops-card,
.view > .profile-tabs,
.view > .profile-preview {
  margin-top: 0;
}

code {
  color: var(--cyan);
}

.topbar {
  height: 58px;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0 1rem 0 1.1rem;
  background: var(--topbar-bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
}

.topbar__brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  line-height: 1;
  flex-shrink: 0;
}

.topbar__brand:focus-visible {
  color: var(--text);
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
  border-radius: 10px;
}

.topbar__wordmark {
  display: inline-flex;
  align-items: baseline;
}

.topbar__litr {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}

.topbar__mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: block;
  object-fit: cover;
  background: #000;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 18px rgba(0, 207, 255, 0.28);
}

.topbar__spacer {
  flex: 1;
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.icon-btn {
  width: 38px;
  height: 38px;
  min-width: 38px;
  padding: 0;
  border-radius: 50%;
  border: 1.5px solid var(--icon-btn-border);
  background: var(--icon-btn-bg);
  color: var(--icon-muted);
  box-shadow: none;
  font-size: 1.15rem;
}

.icon-btn:hover {
  color: var(--text);
  border-color: var(--icon-muted);
  background: var(--bg-elevated);
}

.icon-btn i {
  line-height: 1;
}

.topbar__user {
  color: var(--muted);
  font-size: 0.82rem;
  padding: 0 0.35rem 0 0.55rem;
}

.shell {
  display: grid;
  grid-template-columns: 256px minmax(0, 1fr);
  width: 100%;
  min-height: calc(100vh - 58px);
}

.sidebar {
  position: sticky;
  top: 58px;
  height: calc(100vh - 58px);
  display: flex;
  flex-direction: column;
  background: var(--sidebar);
  border-right: 1px solid var(--border);
  padding: 0.85rem 0.7rem 0.7rem;
}

.sidebar__nav {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 0.15rem 0.15rem 0.85rem;
}

.sidebar__label {
  margin: 1.15rem 0.65rem 0.4rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.sidebar__nav > .sidebar__label:first-child {
  margin-top: 0.35rem;
}

.sidebar__item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.5rem 0.7rem;
  border-radius: 10px;
  color: var(--nav-text);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.08rem;
}

.sidebar__item:hover {
  color: var(--text);
  background: color-mix(in srgb, var(--text) 6%, transparent);
}

.sidebar__item i {
  width: 1.2rem;
  font-size: 1.12rem;
  color: var(--icon-muted);
}

.sidebar__item--active {
  color: var(--cyan);
  background: var(--cyan-dim);
  box-shadow: none;
}

.sidebar__item--active i {
  color: var(--cyan);
}

.sidebar__discord {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-shrink: 0;
  margin: 0.15rem 0.15rem 0.55rem;
  padding: 0.5rem 0.7rem;
  border-radius: 10px;
  color: #fff;
  background: #5865f2;
  font-size: 0.9rem;
  font-weight: 600;
}

.sidebar__discord:hover,
.sidebar__discord:focus-visible {
  color: #fff;
  filter: brightness(1.08);
}

.sidebar__discord i {
  width: 1.2rem;
  font-size: 1.12rem;
}

.account {
  position: relative;
  flex-shrink: 0;
  margin-top: auto;
  padding-top: 0.55rem;
}

.account__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-align: left;
  padding: 0.52rem 0.58rem;
  border-radius: 12px;
  border: 1px solid var(--account-border);
  background: var(--account-bg);
  color: var(--text);
  box-shadow: none;
}

.account__trigger:hover,
.account__trigger[aria-expanded="true"] {
  border-color: var(--account-border);
  background: var(--account-hover);
}

.account__avatar {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--avatar-bg), var(--bg-elevated));
  border: 1px solid var(--account-border);
  font-weight: 700;
  font-size: 0.72rem;
  color: var(--avatar-fg);
}

.account__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account__meta {
  min-width: 0;
  flex: 1;
}

.account__name {
  font-weight: 650;
  font-size: 0.88rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account__status {
  color: var(--muted);
  font-size: 0.74rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.account__chevron {
  color: var(--icon-muted);
  font-size: 1.15rem;
  transition: transform 0.15s ease;
}

.account__trigger[aria-expanded="true"] .account__chevron {
  transform: rotate(180deg);
}

.account__menu {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 8px);
  z-index: 40;
  padding: 0.35rem;
  border-radius: 12px;
  border: 1px solid var(--account-border);
  background: var(--menu-bg);
  box-shadow: var(--menu-shadow);
}

.account__item {
  width: 100%;
  justify-content: flex-start;
  gap: 0.55rem;
  padding: 0.48rem 0.55rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--item-text);
  font-weight: 600;
  font-size: 0.86rem;
  box-shadow: none;
}

.account__item i {
  width: 1.05rem;
  color: var(--icon-muted);
}

.account__item:hover {
  background: rgba(0, 207, 255, 0.08);
  color: var(--text);
}

.account__item--active {
  color: var(--cyan);
}

.account__item--active i {
  color: var(--cyan);
}

.account__item--danger {
  color: var(--danger-text);
}

.account__sep {
  height: 1px;
  margin: 0.28rem 0.3rem;
  background: var(--sep);
}

.account__theme {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  padding: 0.42rem 0.55rem;
  border-radius: 8px;
  color: var(--item-text);
  font-weight: 600;
  font-size: 0.86rem;
  cursor: pointer;
}

.account__theme:hover {
  background: rgba(0, 207, 255, 0.08);
}

.account__theme-label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  flex: 1;
}

.account__theme-label i {
  width: 1.05rem;
  color: var(--icon-muted);
}

.account__theme .switch {
  flex-shrink: 0;
  gap: 0;
}

.account__signed-out .account__status .dot {
  background: var(--muted);
  box-shadow: none;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 8px var(--lime);
}

.main {
  width: 100%;
  min-width: 0;
  max-width: none;
  padding: 1.15rem 1.35rem 2.4rem;
}

.main.main--flush {
  max-width: none;
  padding: 0;
  min-height: calc(100vh - 58px);
  height: calc(100vh - 58px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hero-card,
.ops-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem 1.05rem;
  box-shadow: var(--shadow);
}

.hero-card {
  margin-bottom: 1rem;
}

.hero-card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.hero-stat {
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.5rem 0.75rem;
  color: var(--muted);
  font-size: 0.8rem;
  background: var(--bg-elevated);
}

.tabs {
  display: flex;
  gap: 1.35rem;
  margin-top: 1rem;
  border-bottom: 1px solid var(--border);
}

.tabs__item {
  color: var(--muted);
  padding: 0.62rem 0 0.7rem;
  font-weight: 600;
  font-size: 0.92rem;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.tabs__item--active {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.tabs__count {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 700;
}

#connect,
#platforms,
#feeds,
#rotator {
  scroll-margin-top: 74px;
}

.ops-card + .section-head,
.section-head {
  margin-top: 1rem;
}

#platforms,
#feeds,
#rotator {
  margin-top: 1rem;
}

.ops-card--glow {
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--cyan) 28%, transparent),
    0 18px 40px rgba(0, 0, 0, 0.28),
    0 0 36px color-mix(in srgb, var(--purple) 14%, transparent);
}

.ops-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.95rem;
}

.ops-card__head > .btn {
  flex-shrink: 0;
}

.ops-card__identity {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.ops-card__identity small,
.ops-card__head small {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 0.18rem;
  line-height: 1.4;
}

.ops-card__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin-top: 1rem;
}

.ops-card__actions--3 {
  grid-template-columns: 1fr 1fr 1fr;
}

.ops-card__actions .btn {
  width: 100%;
}

.section-head .lede {
  margin-bottom: 0.85rem;
}

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

.connections__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.connections__head .lede {
  margin-top: 0.35rem;
}

.connections__head .btn {
  flex-shrink: 0;
}

.connections__label {
  margin: 0 0 0.9rem;
  font-size: 0.98rem;
}

#your-connections {
  margin-top: 1rem;
}

.profile-link {
  margin-bottom: 0.35rem;
}

.profile-link .connections__label {
  margin-bottom: 1.55rem;
}

.profile-link .link-form {
  margin-top: 1.4rem;
}

.profile-connections-block {
  margin-top: 1.25rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--border);
}

.platform-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.platform-pick {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--pick-color, #9aa8bd);
  background: color-mix(in srgb, var(--pick-color, #9aa8bd) 16%, var(--pick-mix));
  color: var(--pick-color, #fff);
  position: relative;
  padding: 0;
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.platform-pick i,
.platform-pick svg {
  font-size: 1.35rem;
  width: 1.4rem;
  height: 1.4rem;
  color: inherit;
  display: block;
  overflow: visible;
}

.platform-pick--tiktok,
.platform-pick--x,
.platform-pick--threads {
  color: #f4f7fb;
}

html[data-theme="light"] .platform-pick--tiktok,
html[data-theme="light"] .platform-pick--x,
html[data-theme="light"] .platform-pick--threads {
  color: #ffffff;
  background: #111111;
  border-color: #111111;
}

.platform-pick--kick {
  color: #0d0d0d;
  background: color-mix(in srgb, #53fc18 55%, var(--pick-mix));
}

.platform-pick--selected {
  box-shadow:
    0 0 0 3px var(--bg),
    0 0 0 5px var(--pick-color, var(--cyan));
}

.platform-pick__check {
  position: absolute;
  right: 6px;
  bottom: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #15733a;
  color: #fff;
  font-size: 0.68rem;
  line-height: 1;
  box-shadow: 0 0 0 2px var(--panel);
  pointer-events: none;
}

.platform-pick__check i {
  color: #fff;
  font-size: 0.7rem;
  line-height: 1;
  transform: translate(-0.5px, 0.5px);
}

.link-form {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.7rem;
  margin-top: 2rem;
  align-items: stretch;
}

.link-form input {
  flex: 1 1 0%;
  width: 0;
  min-width: 0;
  margin: 0;
  min-height: 2.85rem;
  padding: 0.72rem 0.95rem;
  border-radius: 12px;
}

.link-form .btn {
  flex: 0 0 auto;
  min-width: 8.75rem;
  padding: 0.72rem 1.45rem;
  border-radius: 12px;
}

.link-hint {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  min-height: 1.2em;
}

.connection-list {
  display: flex;
  flex-direction: column;
}

.connection-empty {
  color: var(--muted);
  margin: 0.35rem 0 0.15rem;
  font-size: 0.9rem;
}

.connection-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 0.15rem;
  border-bottom: 1px solid var(--row-line);
  position: relative;
}

.connection-row:last-child {
  border-bottom: 0;
  padding-bottom: 0.15rem;
}

.connection-row__avatar-wrap {
  position: relative;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.connection-row__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--avatar-bg);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--avatar-fg);
}

.connection-row__avatar img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.connection-row__badge {
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.68rem;
  color: #fff;
  border: 2px solid var(--panel);
}

.connection-row__badge i,
.connection-row__badge svg {
  width: 10px;
  height: 10px;
  display: block;
  overflow: visible;
}

.connection-row__meta {
  min-width: 0;
  flex: 1;
}

.connection-row__meta h3 {
  font-size: 0.95rem;
}

.connection-row__meta small {
  display: block;
  color: var(--muted);
  margin-top: 0.12rem;
}

.connection-row__actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.connection-row__actions .btn {
  padding: 0.38rem 0.7rem;
}

.kebab {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  color: var(--muted);
  box-shadow: none;
}

.kebab:hover {
  color: var(--text);
  background: rgba(0, 207, 255, 0.08);
}

.connection-menu {
  position: absolute;
  right: 0;
  top: calc(100% - 0.35rem);
  z-index: 8;
  min-width: 10rem;
  padding: 0.3rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--menu-bg);
  box-shadow: var(--menu-shadow);
}

.connection-menu button {
  width: 100%;
  justify-content: flex-start;
  border: 0;
  box-shadow: none;
  padding: 0.42rem 0.55rem;
}

.feeds {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 1100px) {
  .card-grid,
  .feeds,
  .ops-card__actions--3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 30;
    height: auto;
    flex-direction: row;
    align-items: center;
    gap: 0.45rem;
    border-right: 0;
    border-top: 1px solid var(--border);
    padding: 0.4rem 0.55rem calc(0.4rem + env(safe-area-inset-bottom));
  }
  .sidebar__nav {
    display: flex;
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0;
    gap: 0.15rem;
  }
  .sidebar__item {
    flex: 0 0 auto;
    flex-direction: column;
    gap: 0.12rem;
    font-size: 0.62rem;
    line-height: 1.1;
    padding: 0.35rem 0.45rem;
    white-space: nowrap;
  }
  .sidebar__item i {
    font-size: 1.05rem;
  }
  .sidebar__discord {
    display: none;
  }
  .account {
    flex: 0 0 auto;
    min-width: 0;
  }
  .account__meta {
    display: none;
  }
  .main {
    padding-bottom: 6.5rem;
  }
  .view--overlays:not([hidden]) {
    min-height: calc(100dvh - 58px - 6.5rem);
  }
  #ov-app.ov-app--edit {
    max-height: calc(100dvh - 58px - 6.5rem);
  }
  #ov-app.ov-app--edit .ov-inspector {
    padding-bottom: 5.5rem;
  }
}

label,
button,
input,
select,
.btn {
  font: inherit;
}

.field {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]),
select,
textarea {
  width: 100%;
  padding: 0.55rem 0.75rem;
  margin-top: 0.3rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--input-bg);
  color: var(--text);
}

input[type="checkbox"],
input[type="radio"] {
  width: 1.1rem;
  height: 1.1rem;
  min-width: 1.1rem;
  min-height: 1.1rem;
  margin: 0;
  padding: 0;
  flex: 0 0 auto;
  justify-self: start;
  accent-color: var(--cyan);
}

label:has(> input[type="checkbox"]),
label:has(> input[type="radio"]) {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
}

label:has(> input[type="checkbox"]) > input[type="checkbox"],
label:has(> input[type="radio"]) > input[type="radio"] {
  order: -1;
}

textarea {
  resize: vertical;
  min-height: 6.5rem;
  line-height: 1.45;
}

.field small {
  display: block;
  margin-top: 0.28rem;
  color: var(--muted);
  font-size: 0.75rem;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--cyan) 55%, transparent);
  box-shadow: 0 0 0 3px var(--cyan-dim);
}

.row {
  display: flex;
  gap: 0.6rem;
  align-items: end;
  flex-wrap: wrap;
}

.row > * {
  flex: 1 1 8rem;
}

.btn,
button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.88rem;
  transition: filter 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

button::-moz-focus-inner {
  border: 0;
  padding: 0;
}

button[hidden],
[hidden] {
  display: none !important;
}

.btn--cyan,
button.primary {
  background: var(--brand-cta);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 22px rgba(110, 57, 255, 0.28);
}

.btn--cyan:hover:not(:disabled),
button.primary:hover:not(:disabled) {
  filter: brightness(1.07);
}

.btn--cyan-outline {
  color: var(--cyan);
  border-color: color-mix(in srgb, var(--cyan) 55%, transparent);
  background: var(--cyan-dim);
  box-shadow: none;
}

.btn--cyan-outline[aria-current="page"] {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--cyan) 35%, transparent);
}

.btn--ghost {
  color: var(--ghost-text);
}

.btn--reset {
  color: var(--orange);
  border-color: rgba(255, 138, 61, 0.55);
}

.btn--discord {
  background: #5865f2;
  border-color: transparent;
  color: #fff;
}

button:disabled,
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.meter {
  position: relative;
  height: 40px;
  border-radius: 10px;
  background: var(--input-bg);
  overflow: hidden;
  margin: 1rem 0 0.35rem;
}

.meter__fill {
  height: 100%;
  width: 0;
  background: var(--lime);
  box-shadow: 0 0 22px rgba(124, 255, 74, 0.55);
  transition: width 0.35s ease;
}

.meter--live .meter__fill {
  width: 100%;
}

.meter--kick .meter__fill {
  width: 52%;
  background: var(--yellow);
  box-shadow: 0 0 22px rgba(255, 225, 74, 0.45);
}

.meter__label {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.84rem;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
  word-break: break-word;
  padding: 0 0.6rem;
  text-align: center;
}

html[data-theme="light"] .meter__label {
  text-shadow: none;
}

.live-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  margin-top: 0.65rem;
}

.live-row--live {
  box-shadow: 0 0 0 1px rgba(0, 207, 255, 0.4), 0 0 18px rgba(0, 207, 255, 0.12);
}

.live-row__main {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.platform-row__avatar {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.08);
}

.platform-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  line-height: 1;
  color: #fff;
}

.platform-icon--tiktok,
.platform-icon--x,
.platform-icon--threads {
  background: #000;
}

.platform-icon--twitch {
  background: #9146ff;
}

.platform-icon--youtube {
  background: #ff0000;
}

.platform-icon--kick {
  background: #53fc18;
  color: #0d0d0d;
}

.platform-icon--facebook {
  background: #1877f2;
}

.platform-icon--instagram {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.platform-icon--trovo {
  background: #19d66f;
  color: #0d0d0d;
}

.platform-icon--discord {
  background: #5865f2;
}

.platform-icon--snapchat {
  background: #fffc00;
  color: #111;
}

.platform-icon--linkedin {
  background: #0a66c2;
}

.ops-card h3,
.live-row h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.live-row small {
  display: block;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-pill,
.badge {
  flex-shrink: 0;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.16rem 0.45rem;
  border-radius: 999px;
  text-transform: uppercase;
  border: 1px solid currentColor;
  background: transparent;
}

.status-pill--connected,
.status-pill--enabled {
  color: var(--lime);
  background: rgba(124, 255, 74, 0.08);
}

.status-pill--disconnected {
  color: var(--orange);
  background: rgba(255, 138, 61, 0.1);
}

.status-pill--disabled,
.badge.display,
.badge.later {
  color: #c9a07a;
  background: rgba(196, 90, 58, 0.12);
}

.feed {
  height: 28rem;
  overflow: auto;
  background: var(--feed-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.5rem 0.65rem;
}

.feed-empty {
  color: var(--muted);
  text-align: center;
  margin: 6rem 0 0;
}

.feed-item,
.feed-chat-row,
.event-row {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  padding: 0.5rem 0.2rem;
  border-bottom: 1px solid var(--row-line);
  font-size: 0.9rem;
}

.feed-chat-platform-icon {
  width: 16px;
  height: 16px;
  min-width: 16px;
  margin-top: 0.2rem;
  color: var(--cyan);
}

.feed-glyph {
  min-width: 16px;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  margin-top: 0.15rem;
  color: var(--cyan);
}

.feed-who {
  color: var(--text);
  font-weight: 650;
}

.feed-meta {
  color: var(--muted);
}

.feed-chat-avatar {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--avatar-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--avatar-fg);
}

.feed-chat-avatar img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.pill {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.08rem 0.4rem;
  border-radius: 999px;
  margin-left: 0.25rem;
  vertical-align: middle;
}

.pill-mod {
  background: var(--yellow);
  color: #1a1404;
}

.pill-sub {
  background: var(--magenta);
  color: #fff;
}

.pill-fan {
  background: var(--panel-2);
  color: var(--item-text);
}

.gift-thumb {
  width: 28px;
  height: 28px;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 0.3rem;
}

.warnings {
  color: var(--yellow);
  font-size: 0.85rem;
  white-space: pre-wrap;
}

.rotator-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr));
  gap: 0.7rem;
}

.rotator-field label {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.switch {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}

.switch input {
  appearance: none;
  width: 36px;
  height: 20px;
  margin: 0;
  border-radius: 999px;
  background: var(--switch-track);
  border: 1px solid var(--border);
  position: relative;
  cursor: pointer;
}

.switch input::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--switch-knob);
  transition: transform 0.15s ease, background 0.15s ease;
}

.switch input:checked {
  background: var(--cyan);
  border-color: transparent;
  box-shadow: 0 0 12px color-mix(in srgb, var(--cyan) 35%, transparent);
}

.switch input:checked::after {
  transform: translateX(16px);
  background: var(--ink);
}

.overlay-page {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0.5rem;
  background: transparent;
}

.overlay-page--canvas {
  padding: 0;
  overflow: hidden;
  width: 100vw;
  height: 100vh;
}

html:has(.overlay-page) {
  background: transparent;
}

html:has(.overlay-page),
html:has(.overlay-page) body {
  background: transparent;
}

.social-rotator {
  min-width: 280px;
  max-width: min(96vw, 640px);
  display: inline-block;
  padding: 2px;
  border-radius: 17px;
  color: #fff;
  background: var(--rotator-border, #14d9e1);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--rotator-border, #14d9e1) 80%, #000 20%),
    0 0 calc(12px * var(--rotator-glow-opacity, 1)) color-mix(in srgb, var(--rotator-border, #14d9e1) 55%, transparent 45%);
  overflow: hidden;
}

.social-rotator--empty {
  background: rgba(0, 0, 0, 0.45);
  border: 1px dashed #666;
  padding: 0.85rem 1rem;
  border-radius: 12px;
}

.social-rotator__core {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.68rem;
  width: 100%;
  padding: 0.46rem 0.58rem;
  border-radius: 15px;
  background: color-mix(in srgb, var(--rotator-bg, #040507) 88%, #000 12%);
}

.social-rotator__lead {
  display: contents;
}

.social-rotator__channel {
  color: var(--rotator-text, #fff);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.02;
  white-space: nowrap;
}

.social-rotator__icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--rotator-icon, #fff);
  font-size: 1.8rem;
}

.social-rotator__follow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border-radius: 9px;
  font-weight: 700;
  font-size: 0.96rem;
  color: #111;
  background: var(--rotator-button, #fff);
  padding: 0.5rem 0.84rem;
}

.nav-links {
  display: none;
}

.profile-preview {
  margin-bottom: 1.15rem;
}

.profile-preview__bar {
  position: relative;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.1rem;
  margin-bottom: 0.55rem;
}

.profile-preview__label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.profile-preview__menu {
  position: relative;
}

.profile-preview__menu summary {
  list-style: none;
  cursor: pointer;
}

.profile-preview__menu summary::-webkit-details-marker {
  display: none;
}

.profile-preview__menu-list {
  position: absolute;
  z-index: 12;
  top: calc(100% + 0.35rem);
  left: 0;
  min-width: 10.5rem;
  padding: 0.3rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--menu-bg);
  box-shadow: var(--menu-shadow);
}

.profile-preview__menu-list button {
  display: flex;
  width: 100%;
  justify-content: flex-start;
  border: 0;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  padding: 0.42rem 0.55rem;
  color: var(--item-text);
  font-weight: 600;
  font-size: 0.86rem;
}

.profile-preview__menu-list button:hover:not(:disabled) {
  background: rgba(0, 207, 255, 0.08);
  color: var(--text);
}

.profile-preview__menu-list button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.profile-preview__banner {
  --preview-fg: #ffffff;
  --preview-muted: rgba(255, 255, 255, 0.86);
  --preview-faint: rgba(255, 255, 255, 0.62);
  --preview-line: rgba(255, 255, 255, 0.1);
  --preview-overlay: linear-gradient(180deg, rgba(11, 15, 23, 0.12) 18%, rgba(11, 15, 23, 0.72) 100%);
  --preview-stats-bg: rgba(6, 4, 12, 0.42);
  --preview-btn-bg: rgba(8, 6, 14, 0.55);
  --preview-btn-bg-hover: rgba(8, 6, 14, 0.78);
  --preview-btn-border: rgba(255, 255, 255, 0.18);
  --preview-btn-fg: #fff;
  --preview-card-border: rgba(255, 255, 255, 0.08);
  --preview-fill: #0b0f17;
  --preview-wash:
    radial-gradient(90% 140% at 82% 38%, rgba(0, 207, 255, 0.22), transparent 58%),
    radial-gradient(70% 120% at 10% 82%, rgba(110, 57, 255, 0.42), transparent 55%),
    linear-gradient(105deg, #0b0f17 0%, #111827 48%, #1a1033 100%);
  position: relative;
  overflow: hidden;
  min-height: 286px;
  border-radius: var(--radius);
  border: 1px solid var(--preview-card-border);
  color: var(--preview-fg);
  --banner-image: none;
  background-color: var(--preview-fill);
  background-image:
    var(--banner-image),
    var(--preview-wash);
  background-size: cover, cover, cover, cover;
  background-position: center;
}

html[data-theme="light"] .profile-preview__banner {
  --preview-fg: var(--text);
  --preview-muted: color-mix(in srgb, var(--text) 78%, transparent);
  --preview-faint: var(--muted);
  --preview-line: var(--border);
  --preview-overlay: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 18%, rgba(238, 241, 246, 0.88) 100%);
  --preview-stats-bg: color-mix(in srgb, var(--panel) 78%, transparent);
  --preview-btn-bg: rgba(255, 255, 255, 0.82);
  --preview-btn-bg-hover: #ffffff;
  --preview-btn-border: var(--border);
  --preview-btn-fg: var(--text);
  --preview-card-border: var(--border);
  --preview-fill: #e8edf6;
  --preview-wash:
    radial-gradient(90% 140% at 82% 38%, rgba(0, 207, 255, 0.26), transparent 58%),
    radial-gradient(70% 120% at 10% 82%, rgba(110, 57, 255, 0.18), transparent 55%),
    linear-gradient(105deg, #eef1f6 0%, #ffffff 48%, #ece4ff 100%);
}

.profile-preview__banner.has-image {
  --preview-fg: #ffffff;
  --preview-muted: rgba(255, 255, 255, 0.86);
  --preview-faint: rgba(255, 255, 255, 0.62);
  --preview-line: rgba(255, 255, 255, 0.12);
  --preview-overlay: linear-gradient(180deg, rgba(11, 15, 23, 0.18) 18%, rgba(11, 15, 23, 0.78) 100%);
  --preview-stats-bg: rgba(6, 4, 12, 0.5);
  --preview-btn-bg: rgba(8, 6, 14, 0.55);
  --preview-btn-bg-hover: rgba(8, 6, 14, 0.78);
  --preview-btn-border: rgba(255, 255, 255, 0.18);
  --preview-btn-fg: #fff;
}

.profile-preview__banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--preview-overlay);
  pointer-events: none;
}

.profile-preview__menu--banner {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 2;
}

.profile-preview__menu--banner .profile-preview__menu-list {
  left: auto;
  right: 0;
}

.profile-preview__banner-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.38rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--preview-btn-border);
  background: var(--preview-btn-bg);
  color: var(--preview-btn-fg);
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: none;
  backdrop-filter: blur(8px);
}

.profile-preview__banner-btn:hover {
  background: var(--preview-btn-bg-hover);
}

.profile-preview__identity {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 1.45rem;
  padding: 1.35rem 1.35rem 1.2rem;
  min-height: 196px;
}

.profile-preview__avatar-wrap {
  position: relative;
  flex-shrink: 0;
  width: 118px;
}

.profile-preview__avatar {
  width: 118px;
  height: 118px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--avatar-bg);
  border: 3px solid var(--magenta);
  box-shadow: 0 0 0 4px rgba(110, 57, 255, 0.28), 0 10px 28px rgba(0, 0, 0, 0.28);
  font-weight: 700;
  font-size: 1.55rem;
  color: var(--avatar-fg);
}

.profile-preview__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-preview__menu--photo {
  position: absolute;
  left: 50%;
  bottom: -0.15rem;
  z-index: 2;
  transform: translateX(-50%);
}

.profile-preview__menu--photo .profile-preview__menu-list {
  left: 50%;
  right: auto;
  top: auto;
  bottom: calc(100% + 0.4rem);
  transform: translateX(-50%);
}

.profile-preview__edit-photo {
  display: inline-flex;
  align-items: center;
  padding: 0.32rem 0.72rem;
  border: 0;
  border-radius: 999px;
  background: var(--brand-cta);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(110, 57, 255, 0.35);
  white-space: nowrap;
}

.profile-preview__copy {
  min-width: 0;
  padding-top: 0.2rem;
}

.profile-preview__name {
  display: block;
  margin: 0;
  color: var(--preview-fg);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.18);
}

html[data-theme="dark"] .profile-preview__name,
.profile-preview__banner.has-image .profile-preview__name {
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}

.profile-preview__name i {
  display: none;
}

.profile-preview__bio {
  max-width: 28rem;
  margin: 0.4rem 0 0;
  color: var(--preview-muted);
  font-size: 0.92rem;
  line-height: 1.4;
  white-space: pre-wrap;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.profile-preview__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.7rem;
}

.profile-preview__pill {
  padding: 0.22rem 0.7rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--purple) 42%, transparent);
  color: var(--preview-fg);
  font-size: 0.78rem;
  font-weight: 600;
}

html[data-theme="light"] .profile-preview__banner:not(.has-image) .profile-preview__pill {
  background: color-mix(in srgb, var(--purple) 16%, var(--panel));
  color: var(--text);
}

.profile-preview__stats {
  position: relative;
  z-index: 1;
  display: flex;
  border-top: 1px solid var(--preview-line);
  background: var(--preview-stats-bg);
}

.profile-preview__stats > div {
  flex: 1;
  padding: 0.85rem 1rem 1rem;
  text-align: center;
}

.profile-preview__stats > div + div {
  border-left: 1px solid var(--preview-line);
}

.profile-preview__stats strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--preview-fg);
}

.profile-preview__stats span {
  color: var(--preview-faint);
  font-size: 0.8rem;
}

@media (max-width: 720px) {
  .profile-preview__identity {
    flex-direction: column;
    align-items: flex-start;
    min-height: 0;
  }

  .profile-preview__menu--banner {
    top: 0.65rem;
    right: 0.65rem;
  }
}

.profile-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin: 0.15rem 0 1.1rem;
  padding: 0;
  border-bottom: 1px solid var(--border);
  background: transparent;
}

.profile-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: -1px;
  padding: 0 0.25rem 0.75rem;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 500;
  box-shadow: none;
}

.profile-tab i {
  font-size: 1.05rem;
  color: inherit;
}

.profile-tab:hover {
  color: var(--text);
  background: transparent;
  border-bottom-color: color-mix(in srgb, var(--muted) 45%, transparent);
}

.profile-tab--active,
.profile-tab--active:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
  background: transparent;
}

.profile-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 1rem;
}

.profile-form .field--full {
  grid-column: 1 / -1;
}

.profile-form .field--toggle {
  align-items: flex-start;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--input-bg);
  color: var(--text);
  font-size: 0.9rem;
}

.profile-form .field--toggle span {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.profile-form .field--toggle small {
  margin: 0;
}

@media (max-width: 720px) {
  .profile-form {
    grid-template-columns: 1fr;
  }
}

.view--control-room:not([hidden]) {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.control-room {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
  min-height: 0;
  height: 100%;
  padding: 1.25rem 1.4rem 1.5rem;
  overflow: hidden;
  --feed-font-size: 0.92rem;
  --feed-font-family: Poppins, "Segoe UI", system-ui, sans-serif;
}

.cr-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-end;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.cr-eyebrow {
  margin: 0;
  color: var(--cyan);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.cr-header h1 {
  margin: 0.2rem 0 0;
  font-size: 1.7rem;
  display: block;
}

.cr-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.85rem;
}

.cr-status--offline {
  color: var(--orange);
}

.cr-status--online {
  color: var(--success);
  font-weight: 600;
}

.cr-btn,
.cr-btn--kill {
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  border-radius: 10px;
  padding: 0.45rem 0.75rem;
  cursor: pointer;
}

.cr-btn:hover,
.cr-chip:hover,
.cr-chip--active:hover,
.cr-btn--kill:hover {
  border-color: var(--purple);
}

.cr-btn--active {
  border-color: color-mix(in srgb, var(--purple) 55%, transparent);
  background: color-mix(in srgb, var(--purple) 18%, transparent);
}

.cr-btn--kill {
  border-color: color-mix(in srgb, var(--error) 55%, transparent);
  background: color-mix(in srgb, var(--error) 16%, transparent);
  color: #fecaca;
  font-weight: 600;
}

.cr-qa-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

html[data-theme="light"] .cr-btn--kill {
  color: #9f1239;
}

.cr-banner {
  margin: 0;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: color-mix(in srgb, var(--error) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--error) 40%, transparent);
  color: #fecaca;
  flex-shrink: 0;
}

.cr-banner a {
  color: var(--cyan);
  font-weight: 600;
  text-decoration: underline;
}

html[data-theme="light"] .cr-banner {
  color: #9f1239;
}

.cr-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.8fr);
  grid-template-rows: minmax(0, 1fr);
  gap: 1rem;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  align-items: stretch;
}

.cr-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
  position: relative;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.cr-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.cr-panel__title-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.cr-panel__title {
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.cr-live-pill {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  color: var(--success);
  border: 1px solid color-mix(in srgb, var(--success) 45%, transparent);
  background: color-mix(in srgb, var(--success) 14%, transparent);
}

.cr-viewer-pill {
  font-size: 0.78rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.cr-panel__foot {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--panel) 94%, var(--bg) 6%);
  flex-shrink: 0;
}

.cr-chat-input {
  flex: 1;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--muted);
  border-radius: 10px;
  padding: 0.5rem 0.75rem;
  font-size: 0.88rem;
  opacity: 0.75;
  margin: 0;
}

.cr-foot-btn {
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--muted);
  border-radius: 10px;
  padding: 0.45rem 0.75rem;
  font-size: 0.82rem;
  opacity: 0.75;
  cursor: not-allowed;
}

.cr-load-more {
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  border-radius: 10px;
  padding: 0.45rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  text-align: center;
}

.cr-load-more:hover {
  border-color: var(--purple);
  background: var(--panel-2);
}

.cr-load-more--active {
  border-color: color-mix(in srgb, var(--purple) 55%, transparent);
  background: color-mix(in srgb, var(--purple) 18%, transparent);
}

.cr-panel__body {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.cr-jump[hidden] {
  display: none !important;
}

.cr-jump {
  position: absolute;
  left: 50%;
  bottom: 0.65rem;
  transform: translateX(-50%);
  z-index: 2;
  border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  background: color-mix(in srgb, var(--bg) 55%, var(--panel) 45%);
  color: var(--text);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
}

.cr-jump--new {
  background: color-mix(in srgb, var(--bg) 40%, var(--panel) 60%);
  border-color: color-mix(in srgb, var(--muted) 35%, transparent);
}

.cr-jump:hover {
  background: color-mix(in srgb, var(--panel) 70%, var(--muted) 30%);
}

.cr-feed-scroll {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.cr-feed {
  list-style: none;
  margin: 0;
  padding: 0.5rem;
  padding-bottom: 2.75rem;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  gap: 0.35rem;
}

.cr-feed::before {
  content: "";
  flex: 1 1 auto;
}

.cr-paused {
  padding: 0.75rem;
  color: var(--orange);
  list-style: none;
  flex-shrink: 0;
}

.cr-avatar {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.8rem;
  background: #1d2740;
  border: 2px solid var(--cyan);
  flex-shrink: 0;
  overflow: hidden;
}

html[data-theme="light"] .cr-avatar {
  background: var(--avatar-bg);
}

.cr-avatar__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cr-avatar__fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.cr-avatar__img[hidden],
.cr-avatar__fallback[hidden] {
  display: none !important;
}

.cr-avatar[data-platform="Twitch"] {
  border-color: #9146ff;
}

.cr-avatar[data-platform="YouTube"] {
  border-color: #ff4d4d;
}

.cr-avatar[data-platform="Kick"] {
  border-color: #53fc18;
}

.cr-chat-row,
.cr-event-row {
  display: grid;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  font-family: var(--feed-font-family);
  font-size: var(--feed-font-size);
  flex-shrink: 0;
}

.cr-chat-row {
  grid-template-columns: auto minmax(0, 1fr) auto auto;
}

.cr-chat-row:hover,
.cr-event-row:hover {
  background: var(--panel-2);
}

.cr-chat-main,
.cr-event-main {
  min-width: 0;
}

.cr-chat-top,
.cr-event-action {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  margin: 0;
}

.cr-username {
  font-weight: 700;
}

.cr-role {
  font-size: 0.68rem;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  border: 1px solid var(--border);
}

.cr-role[data-role="moderator"] {
  color: #c4b5fd;
  border-color: color-mix(in srgb, #8b5cf6 45%, transparent);
  background: color-mix(in srgb, #8b5cf6 16%, transparent);
}

.cr-role[data-role="subscriber"] {
  color: #f9a8d4;
  border-color: color-mix(in srgb, #d946ef 45%, transparent);
  background: color-mix(in srgb, #d946ef 16%, transparent);
}

.cr-role[data-role="fan"] {
  color: #86efac;
  border-color: color-mix(in srgb, #22c55e 45%, transparent);
  background: color-mix(in srgb, #22c55e 16%, transparent);
}

.cr-role[data-role="default"] {
  color: var(--muted);
}

.cr-mod {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  color: var(--text);
}

.cr-mod svg {
  width: 100%;
  height: 100%;
  display: block;
}

.cr-message {
  margin: 0.25rem 0 0;
  color: var(--muted);
  word-break: break-word;
}

.cr-emote {
  width: 1.5rem;
  height: 1.5rem;
  object-fit: contain;
  vertical-align: -0.35rem;
  display: inline-block;
  margin: 0 0.08rem;
}

.cr-time {
  color: var(--muted);
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.cr-platform-slot {
  display: flex;
  align-items: center;
}

.cr-platform-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  padding: 0.1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.cr-platform-icon svg {
  display: block;
  width: 0.85rem;
  height: 0.85rem;
  overflow: visible;
}

.cr-tiktok-cyan,
.cr-tiktok-red,
.cr-tiktok-note {
  transform-box: fill-box;
  transform-origin: center;
}

html[data-theme="dark"] .cr-tiktok-cyan {
  fill: #25f4ee;
  transform: translate(-0.45px, -0.45px);
}

html[data-theme="dark"] .cr-tiktok-red {
  fill: #fe2c55;
  transform: translate(0.45px, 0.45px);
}

html[data-theme="dark"] .cr-tiktok-note {
  fill: #ffffff;
}

html[data-theme="light"] .cr-platform-icon .cr-tiktok-cyan,
html[data-theme="light"] .cr-platform-icon .cr-tiktok-red {
  display: none;
}

html[data-theme="light"] .cr-platform-icon .cr-tiktok-note {
  fill: #000000;
}

html[data-theme="light"] .platform-pick .cr-tiktok-cyan {
  fill: #25f4ee;
  transform: translate(-0.45px, -0.45px);
}

html[data-theme="light"] .platform-pick .cr-tiktok-red {
  fill: #fe2c55;
  transform: translate(0.45px, 0.45px);
}

html[data-theme="light"] .platform-pick .cr-tiktok-note,
html[data-theme="light"] .connection-row__badge .cr-tiktok-note {
  fill: #ffffff;
}

html[data-theme="light"] .connection-row__badge .cr-tiktok-cyan {
  fill: #25f4ee;
  transform: translate(-0.45px, -0.45px);
}

html[data-theme="light"] .connection-row__badge .cr-tiktok-red {
  fill: #fe2c55;
  transform: translate(0.45px, 0.45px);
}

html[data-theme="dark"] .cr-twitch-body,
html[data-theme="dark"] .cr-twitch-eye {
  fill: #9146ff;
}

html[data-theme="dark"] .cr-twitch-face {
  fill: #ffffff;
}

html[data-theme="light"] .cr-twitch-body,
html[data-theme="light"] .cr-twitch-eye {
  fill: #0e0e10;
}

html[data-theme="light"] .cr-twitch-face {
  fill: #ffffff;
}

.cr-kick-glyph {
  fill: #53fc18;
}

html[data-theme="light"] .cr-kick-glyph {
  fill: #0a0a0a;
}

.cr-event-row {
  grid-template-columns: auto minmax(0, 1fr) auto auto auto;
}

.cr-event-row[data-kind="gift"] {
  grid-template-columns: auto minmax(0, 1fr) auto auto;
}

.cr-event-action {
  color: var(--muted);
}

.cr-event-action .cr-username {
  color: var(--text);
}

.cr-event-action-text {
  margin-left: 0.15rem;
  font-weight: 400;
}

.cr-event-platform {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  opacity: 0.85;
}

.cr-event-pill-slot {
  display: flex;
  justify-content: center;
}

.cr-value-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--panel-2);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.cr-value-pill[data-kind="like"] {
  color: #ff5b8a;
  border-color: color-mix(in srgb, #ff5b8a 35%, transparent);
  background: color-mix(in srgb, #ff5b8a 12%, transparent);
}

.cr-value-pill[data-kind="gift"] {
  color: #f59e0b;
  border-color: color-mix(in srgb, #f59e0b 35%, transparent);
  background: color-mix(in srgb, #f59e0b 12%, transparent);
}

.cr-value-pill[data-kind="sub"] {
  color: #d946ef;
  border-color: color-mix(in srgb, #d946ef 35%, transparent);
  background: color-mix(in srgb, #d946ef 12%, transparent);
}

.cr-gift-img {
  width: 1.35rem;
  height: 1.35rem;
  object-fit: contain;
  display: inline-block;
  vertical-align: -0.28rem;
  margin-right: 0.3rem;
}

.cr-kind-icon {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 10px;
  flex-shrink: 0;
}

.cr-kind-icon svg {
  width: 1.15rem;
  height: 1.15rem;
}

.cr-kind-icon[data-kind="like"] {
  background: color-mix(in srgb, #ff5b8a 22%, transparent);
  color: #ff5b8a;
}

.cr-kind-icon[data-kind="gift"] {
  background: color-mix(in srgb, #f59e0b 22%, transparent);
  color: #f59e0b;
}

.cr-kind-icon[data-kind="follow"] {
  background: color-mix(in srgb, var(--purple) 22%, transparent);
  color: var(--purple);
}

.cr-kind-icon[data-kind="member"] {
  background: color-mix(in srgb, var(--cyan) 22%, transparent);
  color: var(--cyan);
}

.cr-kind-icon[data-kind="share"] {
  background: color-mix(in srgb, #34d399 22%, transparent);
  color: #34d399;
}

.cr-kind-icon[data-kind="sub"] {
  background: color-mix(in srgb, #d946ef 22%, transparent);
  color: #d946ef;
}

.cr-kind-icon[data-kind="super_fan"] {
  background: color-mix(in srgb, #fbbf24 22%, transparent);
  color: #fbbf24;
}

.cr-kind-icon[data-kind="envelope"] {
  background: color-mix(in srgb, #f59e0b 22%, transparent);
  color: #f59e0b;
}

.cr-kind-icon[data-kind="question"] {
  background: color-mix(in srgb, #60a5fa 22%, transparent);
  color: #60a5fa;
}

.cr-kind-icon[data-kind="reward"] {
  background: color-mix(in srgb, #fbbf24 22%, transparent);
  color: #fbbf24;
}

.cr-kind-icon[data-kind="connector"] {
  background: color-mix(in srgb, var(--muted) 22%, transparent);
  color: var(--muted);
}

.cr-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(4, 8, 18, 0.72);
  backdrop-filter: blur(4px);
}

.cr-modal-backdrop[hidden] {
  display: none !important;
}

.cr-modal {
  width: min(100%, 32rem);
  max-height: min(90vh, 36rem);
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.cr-modal--filters {
  width: min(100%, 56rem);
  max-height: min(94vh, 58rem);
}

.cr-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--border);
}

.cr-modal__head h2 {
  margin: 0;
  font-size: 1rem;
}

.cr-modal__body {
  overflow: auto;
  padding: 1rem;
  display: grid;
  gap: 0.85rem;
}

.cr-filter-section h3 {
  margin: 0 0 0.55rem;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.cr-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.cr-chip,
.cr-chip--active {
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  border-radius: 10px;
  padding: 0.45rem 0.75rem;
  cursor: pointer;
}

.cr-chip--active {
  background: color-mix(in srgb, var(--purple) 22%, transparent);
  border-color: var(--purple);
}

.cr-check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.cr-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  cursor: pointer;
}

.cr-check input {
  width: auto;
  margin: 0;
}

.cr-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.65rem;
}

.cr-filter-hint {
  margin: 0.45rem 0 0;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--muted);
}

.cr-textarea,
.cr-select {
  border: 1px solid var(--border);
  background: var(--input-bg);
  color: var(--text);
  border-radius: 10px;
  padding: 0.45rem 0.65rem;
  font-size: 0.9rem;
  font-family: inherit;
  margin: 0;
}

.cr-textarea {
  resize: vertical;
  min-height: 4.5rem;
}

.cr-textarea:disabled {
  opacity: 0.55;
}

.cr-card {
  padding: 1rem 1.1rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.cr-card h3 {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
}

.cr-health {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.cr-health li {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.88rem;
}

.cr-muted {
  color: var(--muted);
  margin: 0;
  font-size: 0.88rem;
}

.cr-preview {
  height: 8.5rem;
  border-radius: 12px;
  background: linear-gradient(160deg, #0b0f17, #15102a 55%, #111827);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.cr-preview-bar {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  width: 42%;
  height: 0.55rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
}

.cr-preview-chat {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  width: 38%;
  height: 45%;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--cyan) 35%, transparent);
  background: rgba(17, 24, 43, 0.7);
}

@media (max-width: 960px) {
  .cr-grid {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  }
}

@media (max-width: 980px) {
  .main.main--flush {
    height: auto;
    min-height: calc(100vh - 58px);
    overflow: visible;
    padding-bottom: 6rem;
  }

  .control-room {
    height: auto;
    min-height: calc(100vh - 7.5rem);
  }

  .cr-grid {
    min-height: 36rem;
  }
}

/* —— Actions builder —— */
.actions-hero,
.actions-panel,
.actions-editor,
.wf-shell {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.actions-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  margin-bottom: 1rem;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--cyan) 12%, transparent), color-mix(in srgb, var(--purple) 8%, transparent)),
    var(--panel);
}

.actions-hero h1 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.3rem;
}

.actions-hero p {
  margin: 0;
  color: var(--muted);
}

.actions-hero__count {
  flex-shrink: 0;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.actions-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin-bottom: 1rem;
}

.actions-toolbar input:not([type="checkbox"]):not([type="radio"]),
.actions-toolbar select,
.actions-field input:not([type="checkbox"]):not([type="radio"]),
.actions-field select,
.actions-field textarea,
.wf-inspector input:not([type="checkbox"]):not([type="radio"]),
.wf-inspector textarea,
.wf-inspector select {
  width: 100%;
  min-height: 2.45rem;
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--input-bg);
  color: var(--text);
  font: inherit;
}

.actions-toolbar input {
  flex: 1 1 12rem;
}

.actions-toolbar select,
.actions-sort {
  flex: 0 0 auto;
  width: auto;
  min-width: 8rem;
}

.actions-panel {
  padding: 1rem 1.1rem 1.15rem;
}

.actions-panel h2 {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.2rem;
}

.actions-panel > header p {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.actions-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.actions-row {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel-2);
  overflow: hidden;
}

.actions-row__main {
  display: grid;
  grid-template-columns: 6px minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: center;
  padding: 0.7rem 0.75rem;
  cursor: pointer;
}

.actions-row__main.is-disabled {
  opacity: 0.55;
}

.actions-accent {
  align-self: stretch;
  border-radius: 999px;
  background: var(--cyan);
}

.actions-accent[data-kind="gift"],
.actions-accent[data-kind="reward"] { background: #f2a928; }
.actions-accent[data-kind="comment"],
.actions-accent[data-kind="chat"] { background: #4c8dff; }
.actions-accent[data-kind="join"],
.actions-accent[data-kind="follow"] { background: #32c978; }
.actions-accent[data-kind="share"] { background: #995eea; }
.actions-accent[data-kind="subscribe"] { background: var(--purple); }
.actions-accent[data-kind="like"],
.actions-accent[data-kind="super_fan"] { background: #e5539f; }
.actions-accent[data-kind="gift_value"],
.actions-accent[data-kind="treasure_chest"],
.actions-accent[data-kind="super_fan_box"] { background: #f2a928; }
.actions-accent[data-kind="shop_product"],
.actions-accent[data-kind="shop_flash_sale"] { background: #ff8a3d; }
.actions-accent[data-kind="battle_started"],
.actions-accent[data-kind="battle_won"],
.actions-accent[data-kind="battle_lost"] { background: var(--purple); }
.actions-accent[data-kind="manual"] { background: #64748b; }

.actions-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.2rem;
}

.actions-platform-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--cyan) 10%, transparent);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* —— When trigger picker —— */
.when-picker {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 1.15rem 1.2rem 1.4rem;
}

.when-picker__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.when-picker__title {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.when-picker__bolt {
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--cyan) 40%, var(--border));
  background: color-mix(in srgb, var(--cyan) 14%, transparent);
  color: var(--cyan);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.when-picker__title h1 {
  margin: 0;
  font-size: 1.35rem;
}

.when-picker__title p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.when-picker__close {
  width: 2.2rem;
  height: 2.2rem;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  text-decoration: none;
  font-size: 1.15rem;
}

.when-picker__close:hover {
  color: var(--text);
  border-color: color-mix(in srgb, var(--cyan) 40%, var(--border));
}

.when-picker__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin-bottom: 1.1rem;
}

.when-picker__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.when-chip {
  border: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--text);
  border-radius: 999px;
  padding: 0.42rem 0.85rem;
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
}

.when-chip.is-active {
  background: color-mix(in srgb, var(--cyan) 18%, transparent);
  border-color: color-mix(in srgb, var(--cyan) 55%, var(--border));
  color: var(--text);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--cyan) 25%, transparent);
}

span.when-chip {
  cursor: default;
}

.when-picker__search {
  flex: 1 1 12rem;
  min-height: 2.35rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--input-bg);
  color: var(--text);
  font: inherit;
}

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

.when-tile {
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 7.2rem;
  padding: 0.9rem 0.6rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--panel-2) 88%, #000);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  text-align: center;
  transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

.when-tile:hover,
.when-tile:focus-visible {
  border-color: color-mix(in srgb, var(--tile-accent, var(--cyan)) 55%, var(--border));
  background: color-mix(in srgb, var(--tile-accent, var(--cyan)) 10%, var(--panel-2));
  transform: translateY(-1px);
  outline: none;
}

.when-tile i {
  font-size: 1.55rem;
  color: var(--tile-accent, var(--cyan));
  filter: drop-shadow(0 0 8px color-mix(in srgb, var(--tile-accent, var(--cyan)) 35%, transparent));
}

.when-tile strong {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.25;
}

.when-tile__platforms {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.2rem;
}

.when-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 2rem 1rem;
  text-align: center;
  color: var(--muted);
}

.when-picked {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel-2);
}

.when-picked__icon {
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: color-mix(in srgb, var(--tile-accent, var(--cyan)) 16%, transparent);
  color: var(--tile-accent, var(--cyan));
  font-size: 1.25rem;
  flex-shrink: 0;
}

.when-picked strong {
  display: block;
}

.when-picked small {
  color: var(--muted);
}

.when-picked__change {
  margin-left: auto;
}

@media (max-width: 640px) {
  .when-grid {
    grid-template-columns: repeat(auto-fill, minmax(8.2rem, 1fr));
  }
}

.actions-cell {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.actions-cell i {
  color: var(--icon-muted);
  font-size: 1.05rem;
}

.actions-cell small {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.actions-cell strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.actions-row__btns {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.actions-icon-btn,
.mode-toggle button,
.actions-sort {
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  border-radius: 9px;
  min-height: 2.1rem;
  min-width: 2.1rem;
  padding: 0 0.45rem;
  cursor: pointer;
}

.actions-icon-btn.is-on {
  color: var(--cyan);
  border-color: color-mix(in srgb, var(--cyan) 50%, transparent);
}

.actions-icon-btn.is-danger {
  color: var(--danger-text);
}

.mode-toggle {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.mode-toggle button {
  border: 0;
  border-radius: 0;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.6rem;
  color: var(--muted);
}

.mode-toggle button.is-active {
  background: var(--cyan-dim);
  color: var(--cyan);
}

.actions-expanded {
  padding: 0 0.85rem 0.9rem 1.1rem;
  border-top: 1px solid var(--row-line);
}

.actions-expanded__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 0;
}

.actions-then {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.actions-then-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: start;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
}

.actions-then-card.is-disabled {
  opacity: 0.55;
}

.actions-then-card p {
  margin: 0.2rem 0 0.55rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.actions-empty {
  margin: 0;
  color: var(--muted);
}

.actions-crumb {
  margin: 0 0 0.35rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.actions-crumb a {
  color: var(--cyan);
}

.actions-editor {
  padding: 1.1rem 1.2rem 1.3rem;
}

.actions-editor__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.actions-editor__head h1 {
  margin: 0;
}

.actions-editor__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 20rem);
  gap: 1rem;
  align-items: start;
}

.actions-card {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel-2);
  margin-bottom: 0.85rem;
}

.actions-card h2 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.actions-hint {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.actions-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.actions-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.8rem;
  color: var(--muted);
}

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

.actions-toggle {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text);
  font-size: 0.9rem;
  margin: 0.4rem 0 0.7rem;
}

.actions-toggle input {
  width: 1.1rem;
  min-width: 1.1rem;
  min-height: 1.1rem;
  padding: 0;
}

.actions-preview {
  position: sticky;
  top: 1rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel-2);
}

.actions-preview h2 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.actions-preview-card {
  margin: 0.75rem 0;
  padding: 0.75rem 0.85rem;
  border-left: 3px solid var(--cyan);
  background: var(--panel);
  border-radius: 0 10px 10px 0;
}

.actions-preview-card small {
  display: block;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.7rem;
  margin-top: 0.45rem;
}

.actions-preview-card small:first-child {
  margin-top: 0;
}

.actions-log {
  margin-top: 0.75rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.actions-log ul {
  margin: 0.35rem 0 0;
  padding-left: 1.1rem;
  color: var(--text);
}

.actions-error {
  color: var(--danger-text);
  margin: 0 0 0.75rem;
}

.wf-shell {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: calc(100vh - 7.5rem);
  overflow: hidden;
}

.main.main--flush .wf-shell {
  min-height: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.wf-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid var(--border);
}

.wf-toolbar .btn {
  padding: 0.4rem 0.65rem;
  min-height: 2.1rem;
}

.wf-toolbar__title {
  flex: 1 1 12rem;
  min-width: 10rem;
}

.wf-status {
  font-size: 0.8rem;
  color: var(--lime);
  font-weight: 600;
}

.wf-status.is-dirty {
  color: var(--orange);
}

.wf-body {
  display: grid;
  grid-template-columns: 13.5rem minmax(0, 1fr) 17rem;
  width: 100%;
  min-width: 0;
  min-height: 0;
  flex: 1;
}

.wf-palette,
.wf-inspector {
  background: var(--panel-2);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  min-height: 28rem;
}

.wf-inspector {
  border-right: 0;
  border-left: 1px solid var(--border);
  padding: 0.9rem;
  overflow: auto;
}

.wf-palette__tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
}

.wf-palette__tabs button {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0.75rem 0.4rem;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}

.wf-palette__tabs button.is-active {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.wf-palette__list {
  padding: 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  overflow: auto;
}

.wf-palette__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  text-align: left;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  border-radius: 10px;
  padding: 0.5rem 0.6rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
}

.wf-palette__icon {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.wf-palette__hint {
  margin: auto 0 0;
  padding: 0.65rem 0.75rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.75rem;
}

.wf-canvas {
  position: relative;
  overflow: hidden;
  background-image: radial-gradient(var(--border) 1px, transparent 1px);
  background-size: 16px 16px;
  cursor: grab;
}

.wf-canvas.is-panning {
  cursor: grabbing;
}

.wf-world {
  position: absolute;
  inset: 0;
  transform-origin: 0 0;
}

.wf-edges {
  position: absolute;
  inset: 0;
  width: 3000px;
  height: 2000px;
  pointer-events: none;
  overflow: visible;
}

.wf-edges path {
  fill: none;
  stroke: #9aa8bd;
  stroke-width: 2;
}

.wf-node {
  position: absolute;
  min-width: 168px;
  max-width: 200px;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: var(--shadow);
  cursor: grab;
  user-select: none;
}

.wf-node.is-selected {
  border-color: var(--cyan);
  box-shadow: 0 0 0 1px var(--cyan), 0 0 16px var(--cyan-dim);
}

.wf-node__row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.wf-node__meta {
  min-width: 0;
}

.wf-node__meta strong,
.wf-node__meta small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wf-node__meta small {
  color: var(--muted);
  font-weight: 400;
}

.wf-handle {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border);
  top: 50%;
  transform: translateY(-50%);
  cursor: crosshair;
}

.wf-handle--source { right: -6px; }
.wf-handle--target { left: -6px; }

.wf-zoom {
  position: absolute;
  left: 0.65rem;
  bottom: 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.wf-zoom button {
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
}

.wf-inspector h2 {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.wf-inspector .actions-field {
  margin-bottom: 0.7rem;
}

.wf-stub {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.1rem 0.4rem;
  border-radius: 6px;
  background: var(--cyan-dim);
  color: var(--orange);
  font-size: 0.7rem;
  font-weight: 700;
}

.alert-stage {
  position: relative;
  width: min(720px, 92vw);
  min-height: 72px;
}

.alert-card {
  position: absolute;
  left: 0;
  top: 0;
  min-width: 280px;
  max-width: 100%;
  padding: 0.9rem 1.1rem;
  border-radius: 14px;
  background: rgba(10, 16, 28, 0.88);
  color: #fff;
  border: 1px solid rgba(0, 207, 255, 0.45);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  animation: alert-in 0.25s ease;
}

.alert-toast {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 100%;
  padding: 0.4rem 1.2rem 0.4rem 0.4rem;
  border-radius: 999px;
  background: #0a0a0a;
  color: #fff;
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.2;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  animation: alert-in 0.25s ease;
}

.alert-toast p {
  margin: 0;
  white-space: nowrap;
}

.alert-toast__avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  background: #1f2937;
  flex-shrink: 0;
}

.alert-toast__avatar--fallback {
  display: grid;
  place-items: center;
  font-size: 1rem;
}

.alert-toast__gift {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}
  font-weight: 700;
  background: #ec4899;
}

.alert-media {
  display: grid;
  justify-items: start;
  gap: 0.5rem;
  animation: alert-in 0.25s ease;
}

.alert-media img,
.alert-media video {
  display: block;
  max-width: min(480px, 90vw);
  max-height: 360px;
  border-radius: 16px;
  background: #000;
}

.alert-media p {
  margin: 0;
  color: #fff;
  font-weight: 600;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.actions-then-preview,
.actions-live-preview {
  margin-top: 0.75rem;
}

.actions-then-preview .alert-toast,
.actions-live-preview .alert-toast {
  transform: scale(0.92);
  transform-origin: left center;
}

.alert-card strong {
  display: block;
  margin-bottom: 0.2rem;
}

.alert-card img,
.alert-card video {
  display: block;
  max-width: 320px;
  max-height: 220px;
  margin-top: 0.5rem;
  border-radius: 8px;
}

@keyframes alert-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 980px) {
  .actions-row__main,
  .actions-editor__grid,
  .actions-fields,
  .wf-body {
    grid-template-columns: 1fr;
  }

  .actions-row__main {
    grid-template-columns: 6px 1fr;
  }

  .actions-row__btns {
    grid-column: 2;
    justify-content: flex-end;
  }
}

.billing-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin: 0 0 1rem;
  padding: 0;
  border-bottom: 1px solid var(--border);
}

.billing-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: -1px;
  padding: 0 0.1rem 0.75rem;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  box-shadow: none;
}

.billing-tab:hover {
  color: var(--text);
  background: transparent;
  border-bottom-color: color-mix(in srgb, var(--muted) 45%, transparent);
}

.billing-tab--active,
.billing-tab--active:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.billing-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.billing-plan-card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

.billing-plan-card__identity {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  min-width: 0;
}

.billing-plan-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: var(--brand-cta);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
}

.billing-plan-card__title-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.billing-plan-card__title-row h2 {
  margin: 0;
}

.billing-plan-card__price {
  margin: 0.35rem 0 0.15rem;
  font-size: 1.45rem;
  font-weight: 700;
}

.billing-plan-card__price span {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
}

.billing-manage {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.billing-manage-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel-2);
}

.billing-manage-row span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 0.12rem;
}

.billing-includes {
  margin-top: 1.1rem;
}

.billing-includes h3,
.billing-body .ops-card h3 {
  margin-bottom: 0.7rem;
}

.billing-includes__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.billing-includes__grid li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--item-text);
  font-size: 0.9rem;
}

.billing-includes__grid i {
  color: var(--cyan);
}

.billing-upgrade {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.billing-upgrade i {
  color: var(--magenta);
  font-size: 1.3rem;
}

.billing-upgrade p {
  margin: 0;
  flex: 1 1 16rem;
  color: var(--muted);
}

.billing-usage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem 1.25rem;
}

.billing-usage-item__head {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.billing-usage-track {
  height: 8px;
  border-radius: 999px;
  background: var(--input-bg);
  overflow: hidden;
}

.billing-usage-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--cyan);
}

.billing-usage-fill--accent {
  background: var(--brand-cta);
}

.billing-payment-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 0.85rem;
}

.billing-payment-row__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--cyan-dim);
  color: var(--cyan);
  font-size: 1.25rem;
}

.billing-empty {
  text-align: center;
  padding: 2rem 1.2rem;
}

.billing-empty i {
  font-size: 2rem;
  color: var(--cyan);
}

.billing-empty h2 {
  margin: 0.55rem 0 0.35rem;
}

.billing-empty .btn {
  margin-top: 0.85rem;
}

.billing-table-wrap {
  overflow: auto;
  margin-top: 0.75rem;
}

.billing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.billing-table th,
.billing-table td {
  text-align: left;
  padding: 0.7rem 0.55rem;
  border-bottom: 1px solid var(--row-line);
}

.billing-table th {
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.billing-referral__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.billing-referral__code {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.billing-referral-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.billing-referral-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

@media (max-width: 720px) {
  .billing-includes__grid,
  .billing-usage-grid {
    grid-template-columns: 1fr;
  }
}

.view--overlays:not([hidden]) {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

#ov-app {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

#ov-app.ov-app--edit {
  overflow: hidden;
}

.ov-list-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.ov-toolbar {
  margin: 0 0 1rem;
}

.ov-toolbar input[type="search"] {
  width: min(100%, 22rem);
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--input-bg);
  color: var(--text);
}

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

.ov-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.ov-card__thumb {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(45deg, var(--ov-canvas-check) 25%, transparent 25%) 0 0 / 16px 16px,
    linear-gradient(-45deg, var(--ov-canvas-check) 25%, transparent 25%) 0 8px / 16px 16px,
    var(--ov-canvas);
}

.ov-card__thumb span {
  position: absolute;
  border-radius: 4px;
  opacity: 0.85;
}

.ov-card__thumb--template {
  color: var(--cyan);
  font-size: 2rem;
}

.ov-card__preview {
  position: relative;
  overflow: hidden;
  pointer-events: none;
  border-radius: 6px;
  box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.22);
}

.ov-card__preview--landscape {
  width: 100%;
  height: 100%;
  border-radius: 0;
  box-shadow: none;
}

.ov-card__preview--portrait {
  height: 88%;
  aspect-ratio: 9 / 16;
  max-width: 42%;
}

.ov-card__stage {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: top left;
  overflow: hidden;
}

.ov-card__body {
  flex: 1;
  padding: 0.85rem 0.95rem 0.5rem;
}

.ov-card__body h3 {
  font-size: 1rem;
}

.ov-card__body p {
  margin: 0.3rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.ov-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.ov-badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.ov-badge--published {
  color: var(--success);
}

.ov-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: auto;
  padding: 0.5rem 0.75rem 0.85rem;
}

.ov-card__danger {
  color: var(--danger-text);
}

.ov-empty {
  color: var(--muted);
  grid-column: 1 / -1;
  padding: 2rem 0;
}

.ov-editor__bar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.65rem 0.85rem;
  padding: 0.55rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--panel);
}

.ov-editor__crumb {
  margin: 0 0 0.2rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.ov-editor__crumb a {
  color: var(--muted);
}

.ov-editor__title-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.ov-editor__tools {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.4rem;
  margin-left: auto;
  flex-shrink: 0;
}

.ov-name {
  flex: 1;
  min-width: 8rem;
  max-width: 28rem;
  padding: 0.15rem 0.2rem;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 700;
}

.ov-editor__body {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 300px;
  flex: 1;
  min-height: 0;
}

.ov-layers,
.ov-inspector {
  position: relative;
  z-index: 2;
  overflow: auto;
  padding: 0.85rem;
  background: color-mix(in srgb, var(--panel) 96%, transparent);
}

.ov-layers {
  border-right: 1px solid var(--border);
  min-width: 0;
  overflow-x: hidden;
}

.ov-add-widget {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--purple) 55%, var(--border));
  background: transparent;
  color: var(--text);
  font-weight: 600;
}

.ov-layer-list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.ov-layer {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  min-width: 0;
}

.ov-layer.is-dragging {
  opacity: 0.45;
}

.ov-layer__grip {
  flex-shrink: 0;
  width: 1.55rem;
  height: 2.1rem;
  margin-top: 0.35rem;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: grab;
  touch-action: none;
}

.ov-layer__grip:active,
.ov-layer.is-dragging .ov-layer__grip {
  cursor: grabbing;
}

.ov-layer__name {
  flex: 1;
  min-width: 0;
  text-align: left;
  padding: 0.45rem 0.6rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
}

.ov-layer__title {
  width: 100%;
  line-height: 1.3;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}

.ov-layer__hint {
  flex-shrink: 0;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.ov-layer.is-on .ov-layer__name {
  border-color: color-mix(in srgb, var(--cyan) 55%, var(--border));
  color: var(--cyan);
}

.ov-layer.is-hidden .ov-layer__name {
  opacity: 0.55;
}

.ov-layer__eye {
  flex-shrink: 0;
  width: 2.1rem;
  height: 2.1rem;
  margin-top: 0.35rem;
  padding: 0;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
}

.ov-layer-empty {
  color: var(--muted);
  font-size: 0.82rem;
  padding: 0.35rem 0.15rem;
}

.ov-canvas-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  position: relative;
  z-index: 0;
  background: var(--ov-canvas);
}

.ov-stage-wrap {
  display: grid;
  place-items: center;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background:
    linear-gradient(45deg, var(--ov-canvas-check) 25%, transparent 25%) 0 0 / 20px 16px,
    linear-gradient(-45deg, var(--ov-canvas-check) 25%, transparent 25%) 0 8px / 20px 16px,
    var(--ov-canvas);
}

.ov-stage-frame {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 0 0 2px var(--ov-frame-edge), var(--shadow);
}

.ov-stage {
  position: relative;
  transform-origin: top left;
  overflow: hidden;
}

.ov-stage-wrap .ov-stage-frame {
  overflow: visible;
  isolation: isolate;
  box-shadow: var(--shadow);
}

.ov-stage-wrap .ov-stage-edge {
  position: absolute;
  inset: 0;
  z-index: 4;
  border: 2px solid var(--ov-frame-edge);
  border-radius: inherit;
  pointer-events: none;
  transform: translateZ(0);
}

.ov-stage--edit {
  position: relative;
  z-index: 0;
  overflow: visible;
  background: transparent;
}

.ov-canvas-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 0.85rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.78rem;
  background: var(--panel);
}

.ov-aspect-toggle {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
}

.ov-aspect-toggle button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0.28rem 0.65rem;
  font-weight: 600;
}

.ov-aspect-toggle button.is-on {
  background: var(--cyan-dim);
  color: var(--cyan);
}

.ov-widget {
  position: absolute;
  overflow: hidden;
}

.ov-widget-inner,
.ov-widget-inner-host {
  width: 100%;
  height: 100%;
}

.ov-widget-inner--chat {
  overflow: hidden;
  overscroll-behavior: none;
  padding: 0.55rem 0.65rem;
  display: flex;
  pointer-events: none;
}

.ov-widget--edit {
  overflow: visible;
  outline: 1px dashed rgba(148, 163, 184, 0.45);
  cursor: move;
  touch-action: none;
}

.ov-widget--edit .ov-widget-inner-host,
.ov-widget--edit .ov-widget-inner {
  overflow: hidden;
  border-radius: 4px;
  pointer-events: none;
  user-select: none;
}

.ov-widget--edit img,
.ov-widget--edit video {
  -webkit-user-drag: none;
  user-drag: none;
  pointer-events: none;
}

.ov-widget--edit.is-selected {
  outline: 2px solid #3b82f6;
}

.ov-widget--edit.is-locked {
  cursor: default;
}

.ov-handle {
  position: absolute;
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: #3b82f6;
  z-index: 3;
}

.ov-handle--n { top: -5px; left: 50%; margin-left: -5px; cursor: ns-resize; }
.ov-handle--s { bottom: -5px; left: 50%; margin-left: -5px; cursor: ns-resize; }
.ov-handle--e { right: -5px; top: 50%; margin-top: -5px; cursor: ew-resize; }
.ov-handle--w { left: -5px; top: 50%; margin-top: -5px; cursor: ew-resize; }
.ov-handle--ne { top: -5px; right: -5px; cursor: nesw-resize; }
.ov-handle--nw { top: -5px; left: -5px; cursor: nwse-resize; }
.ov-handle--se { right: -5px; bottom: -5px; cursor: nwse-resize; }
.ov-handle--sw { left: -5px; bottom: -5px; cursor: nesw-resize; }

.ov-widget--edit:not(.is-selected) .ov-handle {
  display: none;
}

.ov-inspector {
  border-left: 1px solid var(--border);
}

.ov-inspector__head {
  margin-bottom: 0.65rem;
}

.ov-inspector__tabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}

.ov-inspector__tabs button {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  padding: 0.28rem 0.7rem;
  font-weight: 600;
}

.ov-inspector__tabs button.is-on {
  background: var(--cyan-dim);
  color: var(--cyan);
}

.ov-inspector__body textarea.ov-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  line-height: 1.45;
  min-height: 7rem;
  resize: vertical;
  white-space: pre;
  tab-size: 2;
}

.ov-inspector__body label {
  display: grid;
  gap: 0.3rem;
  margin-bottom: 0.75rem;
  font-size: 0.82rem;
  color: var(--muted);
  pointer-events: none;
}

.ov-inspector__body label.ov-check,
.ov-inspector__body label:has(> input[type="checkbox"]),
.ov-inspector__body label:has(> input[type="radio"]) {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  pointer-events: auto;
}

.ov-inspector__body label :is(input, select, textarea, button),
.ov-inspector__body .ov-color__row {
  pointer-events: auto;
}

.ov-insp-group {
  margin-bottom: 0.85rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--border);
}

.ov-insp-group h4 {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.ov-theme-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.ov-theme {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  padding: 0.28rem 0.7rem;
  font-weight: 600;
  font-size: 0.78rem;
}

.ov-theme:hover {
  border-color: color-mix(in srgb, var(--cyan) 45%, var(--border));
  color: var(--cyan);
}

.ov-color__row {
  display: grid;
  grid-template-columns: 2.1rem minmax(0, 1fr);
  gap: 0.4rem;
  align-items: center;
}

.ov-inspector input[type="color"] {
  width: 2.1rem;
  height: 2.1rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}

.ov-inspector input:not([type="checkbox"]):not([type="range"]),
.ov-inspector select {
  padding: 0.4rem 0.5rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--input-bg);
  color: var(--text);
}

.ov-layout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.ov-check {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
}

.ov-inspector__empty {
  color: var(--muted);
}

.ov-rotator-row {
  display: grid;
  gap: 0.25rem;
  margin-bottom: 0.55rem;
}

.ov-dialog {
  width: min(32rem, 94vw);
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--panel);
  color: var(--text);
  padding: 0;
}

.ov-dialog::backdrop {
  background: rgba(6, 8, 14, 0.62);
}

.ov-dialog__form {
  display: grid;
  gap: 0.85rem;
  padding: 1.15rem 1.2rem 1.1rem;
}

.ov-dialog__form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.ov-dialog__form input:not([type="radio"]) {
  padding: 0.5rem 0.6rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--input-bg);
  color: var(--text);
}

.ov-aspect-pick {
  border: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.ov-dialog__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.45rem;
}

.ov-dialog__error {
  margin: 0;
  color: var(--error);
  font-size: 0.85rem;
}

.ov-lib {
  display: grid;
  gap: 0.55rem;
}

.ov-lib-card {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.7rem;
  text-align: left;
  padding: 0.75rem 0.8rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--text);
}

.ov-lib-card i {
  grid-row: 1 / span 2;
  color: var(--cyan);
  font-size: 1.35rem;
}

.ov-lib-card span {
  grid-column: 2;
  color: var(--muted);
  font-size: 0.8rem;
}

.ov-chat {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  color: var(--ov-chat-msg, #fff);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
  pointer-events: none;
}

.ov-chat--newest-bottom {
  justify-content: flex-end;
}

.ov-chat--newest-top {
  justify-content: flex-start;
}

.ov-chat--empty,
.ov-alerts--idle {
  color: rgba(255, 255, 255, 0.55);
  padding: 0.6rem;
}

.ov-chat__row {
  display: flex;
  gap: 0.45rem;
  align-items: flex-start;
  flex-shrink: 0;
}

.ov-chat__body {
  min-width: 0;
  flex: 1;
}

.ov-chat__meta {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  margin-right: 0.35rem;
}

.ov-chat__platform {
  width: 1.05em;
  height: 1.05em;
  min-width: 1.05em;
  border-radius: 0.22em;
  display: inline-grid;
  place-items: center;
  background: var(--ov-chat-platform, #334155);
  color: var(--ov-chat-platform-fg, #fff);
  font-size: 0.72em;
  line-height: 1;
  text-shadow: none;
}

.ov-chat__avatar {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  object-fit: cover;
  background: #1e293b;
}

.ov-chat__avatar--fallback {
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 700;
}

.ov-chat__name {
  font-weight: 700;
  margin-right: 0.35rem;
  color: var(--ov-chat-name, #7dd3fc);
}

.ov-chat__msg {
  color: var(--ov-chat-msg, #ffffff);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.ov-chat__emote {
  width: 1.35em;
  height: 1.35em;
  object-fit: contain;
  vertical-align: -0.28em;
  display: inline-block;
  margin: 0 0.08em;
}

.ov-goal {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  font-family: var(--goal-font, Poppins, system-ui, sans-serif);
}

.ov-goal--card {
  display: flex;
  align-items: center;
  padding: 16px 18px;
  background: color-mix(in srgb, var(--goal-bg) var(--goal-bg-mix, 94%), transparent);
  border: 2px solid color-mix(in srgb, var(--goal-border) var(--goal-bg-mix, 94%), transparent);
  border-radius: var(--goal-radius);
}

.ov-goal--card.ov-goal--glow {
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--goal-border) calc(var(--goal-bg-mix, 94%) * 0.35), transparent),
    0 0 28px color-mix(in srgb, var(--goal-border) calc(var(--goal-bg-mix, 94%) * 0.22), transparent);
}

.ov-goal__bar {
  position: relative;
  flex: 1;
  display: flex;
  align-items: stretch;
  min-width: 0;
  height: var(--goal-bar-height);
  border-radius: calc(var(--goal-radius) - 4px);
  overflow: hidden;
  background: var(--goal-empty);
}

.ov-goal--card .ov-goal__bar {
  width: 100%;
}

.ov-goal__fill {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 0 14px;
  background-color: var(--goal-fill);
  background-image: var(--goal-fill-image, none);
  color: var(--goal-fill-text);
  overflow: hidden;
}

.ov-goal--glow .ov-goal__fill {
  box-shadow: 0 0 22px color-mix(in srgb, var(--goal-fill) 70%, transparent);
}

.ov-goal__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: var(--goal-title-size);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  color: var(--goal-title, var(--goal-fill-text));
}

.ov-goal__chip i {
  font-size: var(--goal-icon-size, 1.15em);
  color: var(--goal-icon, var(--goal-title, var(--goal-fill-text)));
}

.ov-goal__icon {
  width: var(--goal-icon-size, 1.15em);
  height: var(--goal-icon-size, 1.15em);
  object-fit: contain;
  flex-shrink: 0;
}

.ov-icon-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.ov-icon-grid button {
  width: 2.15rem;
  height: 2.15rem;
  padding: 0;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font-size: 1.05rem;
}

.ov-icon-grid button.is-on {
  border-color: var(--cyan);
  color: var(--cyan);
  background: var(--cyan-dim);
}

.ov-goal__rest {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 16px;
  color: var(--goal-text);
  font-size: var(--goal-value-size);
  font-weight: 700;
  white-space: nowrap;
}

.ov-goal--classic {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
  padding: 10px 14px;
  background: color-mix(in srgb, var(--goal-bg) var(--goal-bg-mix, 94%), transparent);
  border: 1px solid color-mix(in srgb, var(--goal-border) var(--goal-bg-mix, 94%), transparent);
  border-radius: 8px;
}

.ov-goal__head,
.ov-goal__foot {
  font-size: var(--goal-title-size);
  font-weight: 700;
  color: var(--goal-title);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.ov-goal__foot {
  font-weight: 600;
}

.ov-goal--classic .ov-goal__bar {
  flex: 0 0 var(--goal-bar-height);
  border-radius: 6px;
}

.ov-goal--classic .ov-goal__fill {
  position: relative;
  height: 100%;
  padding: 0 10px;
}

.ov-goal--gauge {
  position: relative;
  display: grid;
  place-items: center;
  padding: 16px;
  background: color-mix(in srgb, var(--goal-bg) var(--goal-bg-mix, 94%), transparent);
  border: 2px solid color-mix(in srgb, var(--goal-border) var(--goal-bg-mix, 94%), transparent);
  border-radius: var(--goal-radius);
}

.ov-goal--gauge.ov-goal--glow {
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--goal-border) calc(var(--goal-bg-mix, 94%) * 0.35), transparent),
    0 0 28px color-mix(in srgb, var(--goal-border) calc(var(--goal-bg-mix, 94%) * 0.22), transparent);
}

.ov-goal__gauge-ring {
  width: min(100%, 220px);
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 0 22px color-mix(in srgb, var(--goal-fill) 45%, transparent);
}

.ov-goal__gauge-inner {
  width: 72%;
  height: 72%;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  text-align: center;
  background: color-mix(in srgb, var(--goal-bg) var(--goal-bg-mix, 94%), transparent);
  color: var(--goal-text);
}

.ov-goal__gauge-inner i,
.ov-goal__gauge-inner .ov-goal__icon {
  font-size: calc(var(--goal-icon-size) * 1.6);
  color: var(--goal-icon, var(--goal-fill));
  width: calc(var(--goal-icon-size) * 1.6);
  height: calc(var(--goal-icon-size) * 1.6);
}

.ov-goal__gauge-title {
  font-size: var(--goal-title-size);
  font-weight: 700;
  color: var(--goal-title);
}

.ov-goal__gauge-stats {
  font-size: calc(var(--goal-value-size) * 0.72);
  font-weight: 700;
  color: var(--goal-text);
}

.ov-goal__gauge-pct {
  position: absolute;
  top: 12px;
  right: 12px;
  min-width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--goal-border);
  color: var(--cyan, #22d3ee);
  font-size: 0.78rem;
  font-weight: 700;
}

.ov-goal--text {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 14px 18px;
  background: color-mix(in srgb, var(--goal-bg) var(--goal-bg-mix, 94%), transparent);
  border: 2px solid color-mix(in srgb, var(--goal-border) var(--goal-bg-mix, 94%), transparent);
  border-radius: var(--goal-radius);
  color: var(--goal-text);
  font-size: var(--goal-value-size);
  font-weight: 700;
}

.ov-goal--text.ov-goal--glow {
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--goal-border) calc(var(--goal-bg-mix, 94%) * 0.35), transparent),
    0 0 22px color-mix(in srgb, var(--goal-border) calc(var(--goal-bg-mix, 94%) * 0.22), transparent);
}

.ov-goal--clear {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  filter: none !important;
}

.ov-goal--clear.ov-goal--glow {
  box-shadow: none !important;
}

.ov-goal--clear .ov-goal__gauge-inner {
  background: transparent;
}

.ov-goal--text i,
.ov-goal--text .ov-goal__icon {
  color: var(--goal-icon, var(--goal-fill));
  font-size: var(--goal-icon-size);
}

.ov-goal__start,
.ov-goal__current,
.ov-goal__end {
  font-size: var(--goal-value-size);
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.ov-goal__start {
  color: var(--goal-fill-text);
}

.ov-goal__current {
  margin-left: auto;
  color: var(--goal-fill-text);
}

.ov-goal__end {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--goal-text);
}

.ov-widget-inner--followers {
  background: transparent;
}

.ov-donation-toast {
  position: absolute;
  left: 50%;
  top: 11%;
  transform: translateX(-50%);
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.35rem 1.25rem 0.35rem 0.35rem;
  border-radius: 999px;
  background: rgba(8, 12, 22, 0.82);
  color: #ffffff;
  font-family: Poppins, system-ui, sans-serif;
  font-size: 1.35rem;
  font-weight: 500;
  pointer-events: none;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  white-space: nowrap;
}

.ov-donation-toast__icon {
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 50%;
  background: #ffffff;
  color: #0b1224;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
}

.ov-donation-toast__copy {
  display: flex;
  gap: 0.35em;
  align-items: baseline;
}

.ov-donation-toast__name {
  color: #facc15;
  font-weight: 700;
}

#justgiving-body {
  display: grid;
  gap: 0.85rem;
}

#justgiving-body label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.86rem;
  color: var(--muted);
}

#justgiving-body input:not([type="checkbox"]):not([type="radio"]),
#justgiving-body select {
  width: 100%;
  max-width: 28rem;
}

.ig-card__thumb {
  background: #fff;
}

.ig-card__thumb i {
  font-size: 2.4rem;
}

.ig-card__logo {
  width: min(78%, 12.5rem);
  max-height: 44%;
  height: auto;
  object-fit: contain;
}

.ig-detail {
  max-width: 40rem;
}

.ig-detail__title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.ig-detail__logo {
  height: 1.35rem;
  width: auto;
  max-width: 9rem;
  object-fit: contain;
}

.ov-widget-inner--rotator,
.ov-widget-inner--alerts {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ov-widget .social-rotator {
  min-width: 0;
  max-width: 100%;
  width: 100%;
  height: 100%;
}

.ov-widget .social-rotator__core {
  height: 100%;
}

.ov-alerts {
  width: 100%;
  display: flex;
  justify-content: center;
}

@media (max-width: 1100px) {
  .ov-editor__body {
    grid-template-columns: 180px minmax(0, 1fr) 260px;
  }
}

@media (max-width: 900px) {
  .ov-editor__body {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(16rem, 1fr) auto;
  }

  .ov-layers {
    border-right: 0;
    border-bottom: 1px solid var(--border);
    max-height: 28vh;
  }

  .ov-inspector {
    border-left: 0;
    border-top: 1px solid var(--border);
    max-height: 40vh;
  }

  .ov-list-head {
    flex-direction: column;
  }
}

.ov-lib-dialog {
  width: min(920px, 96vw);
  max-width: 96vw;
}

.ov-lib-form h2 {
  margin-bottom: 0.4rem;
}

.ov-lib-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 0.75rem;
  min-height: 360px;
}

.ov-lib-cats,
.ov-lib-col {
  display: grid;
  align-content: start;
  gap: 0.35rem;
}

.ov-lib-cols {
  display: flex;
  gap: 0.5rem;
  overflow: auto;
  min-height: 320px;
}

.ov-lib-col {
  min-width: 220px;
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.4rem;
  background: var(--panel-2);
}

.ov-lib-cat,
.ov-lib-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.55rem;
  width: 100%;
  text-align: left;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.ov-lib-cat.is-on,
.ov-lib-item:hover,
.ov-lib-cat:hover {
  border-color: color-mix(in srgb, var(--cyan) 45%, var(--border));
  background: color-mix(in srgb, var(--cyan) 14%, var(--panel));
  color: var(--text);
}

.ov-lib-item--leaf {
  align-items: center;
}

.ov-lib-cat > i:first-child,
.ov-lib-item > i:first-child {
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.ov-lib-item--leaf span {
  display: grid;
  gap: 0.1rem;
  color: var(--text);
  text-align: left;
  min-width: 0;
}

.ov-lib-item--leaf strong {
  color: var(--text);
}

.ov-lib-item--leaf em {
  color: var(--muted);
  font-style: normal;
  font-size: 0.78rem;
}

.ov-lib-cat i:last-child,
.ov-lib-item:not(.ov-lib-item--leaf) i:last-child {
  margin-left: auto;
  color: var(--muted);
}

.ov-lib-search-results {
  display: grid;
  gap: 0.35rem;
  align-content: start;
}

.ov-panel {
  height: 100%;
  box-sizing: border-box;
  padding: 0.7rem 0.85rem;
  border-radius: var(--ov-panel-radius, 14px);
  color: #fff;
  background: color-mix(in srgb, var(--ov-panel-bg, #07111f) calc(var(--ov-panel-opacity, 0.86) * 100%), transparent);
  overflow: hidden;
}

.ov-panel--bar {
  display: flex;
  align-items: center;
}

.ov-panel--chrome {
  padding: 0.45rem 0.7rem;
  border: 1px solid color-mix(in srgb, #ffffff 14%, transparent);
  background: color-mix(in srgb, var(--ov-panel-bg, #0a0e17) calc(var(--ov-panel-opacity, 0.72) * 100%), transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: var(--ov-panel-glow, none), inset 0 1px 0 color-mix(in srgb, #ffffff 10%, transparent);
}

.ov-panel--stack {
  align-items: stretch;
  padding: 0.4rem 0.55rem;
}

.ov-panel--crawler {
  padding: 0;
  overflow: hidden;
}

.ov-stack {
  display: grid;
  gap: 0.35rem;
  width: 100%;
  min-width: 0;
}

.ov-chrome {
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
  min-width: 0;
  overflow: hidden;
}

.ov-chrome--single {
  justify-content: center;
}

.ov-chrome--empty {
  justify-content: center;
  min-height: 2rem;
}

.ov-chrome__sep {
  flex: 0 0 auto;
  width: 1px;
  height: 1.6rem;
  margin: 0 0.55rem;
  background: color-mix(in srgb, #ffffff 18%, transparent);
  align-self: center;
}

.ov-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  white-space: nowrap;
  --ov-chip-accent: var(--ov-accent, #25f4ee);
}

.ov-chip__icon {
  flex: 0 0 auto;
  font-size: 1.15rem;
  line-height: 1;
  color: var(--ov-chip-accent);
  filter: drop-shadow(0 0 8px color-mix(in srgb, var(--ov-chip-accent) 55%, transparent));
}

.ov-chip__copy {
  display: grid;
  gap: 0.05rem;
  min-width: 0;
  line-height: 1.1;
}

.ov-chip__value {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #fff;
}

.ov-chip__label {
  font-style: normal;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in srgb, #ffffff 62%, transparent);
}

.ov-chip--muted .ov-chip__value {
  font-weight: 500;
  opacity: 0.75;
}

.ov-chip--event .ov-mini-avatar {
  width: 24px;
  height: 24px;
}

.ov-chip--rank .ov-chip__value {
  font-size: 0.95rem;
}

.ov-crawler {
  display: flex;
  align-items: stretch;
  width: 100%;
  min-height: 2.4rem;
  overflow: hidden;
  border-radius: inherit;
}

.ov-panel--chrome > .ov-crawler {
  border-radius: calc(var(--ov-panel-radius, 20px) - 2px);
}

.ov-stack .ov-crawler {
  border-radius: calc(var(--ov-panel-radius, 20px) * 0.55);
  background: color-mix(in srgb, #000 35%, transparent);
  border: 1px solid color-mix(in srgb, #ffffff 10%, transparent);
}

.ov-crawler__tab {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex: 0 0 auto;
  padding: 0 0.75rem;
  background: color-mix(in srgb, var(--ov-accent, #25f4ee) 88%, #000);
  color: #041016;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ov-crawler__tab i {
  font-size: 0.95rem;
}

.ov-crawler .ov-marquee {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 0 0.75rem;
}

.ov-label,
.ov-label--latest,
.ov-timer,
.ov-throne,
.ov-challenge,
.ov-game,
.ov-rank {
  display: grid;
  gap: 0.25rem;
  height: 100%;
}

.ov-label--latest {
  grid-template-columns: auto 1fr auto;
  align-items: center;
}

.ov-label__kicker,
.ov-muted {
  opacity: 0.72;
  font-size: 0.85rem;
}

.ov-label__list,
.ov-lb ol,
.ov-game ol,
.ov-rank ol,
.ov-feed {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.ov-label__list li,
.ov-lb li,
.ov-game li,
.ov-feed__row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.ov-mini-avatar,
.ov-feed__gift {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.18);
  display: grid;
  place-items: center;
  font-size: 0.75rem;
}

.ov-latest-bar,
.ov-stats-bar,
.ov-rank--banner,
.ov-campaign--horizontal {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  overflow: hidden;
}

.ov-latest-bar__item,
.ov-stats-bar__item,
.ov-campaign__item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.ov-marquee {
  overflow: hidden;
  width: 100%;
}

.ov-marquee span {
  display: inline-block;
  white-space: nowrap;
  animation: ov-marquee var(--ov-marquee-seconds, 18s) linear infinite;
}

.ov-marquee--crawler span {
  font-weight: 600;
  letter-spacing: 0.02em;
}

.ov-marquee--vert {
  height: 100%;
}

.ov-marquee--vert span {
  animation-name: ov-marquee-vert;
}

@keyframes ov-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes ov-marquee-vert {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}

.ov-gallery {
  display: grid;
  grid-template-columns: repeat(var(--ov-gallery-cols, 6), minmax(0, 1fr));
  gap: 0.4rem;
}

.ov-gallery__item {
  display: grid;
  justify-items: center;
  gap: 0.15rem;
  font-size: 0.75rem;
}

.ov-gallery__item img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.ov-challenge__bar {
  height: 10px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.15);
  overflow: hidden;
}

.ov-challenge__bar i {
  display: block;
  height: 100%;
  background: #39ff14;
}

.ov-fillable {
  height: 100%;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 0.15rem;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
  --fill: 0%;
  --fill-color: #c41e3a;
}

.ov-fillable__well {
  position: relative;
  width: min(100%, 280px);
  aspect-ratio: 1;
}

.ov-fillable__well--gg {
  width: min(100%, 560px);
  aspect-ratio: 3 / 2;
}

.ov-fillable__clip {
  position: absolute;
  width: 0;
  height: 0;
}

.ov-fillable__liquid,
.ov-fillable__sprite {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.ov-fillable__sprite {
  object-fit: contain;
  z-index: 0;
  pointer-events: none;
}

.ov-fillable__sprite--vector {
  width: 100%;
  height: 100%;
}

.ov-fillable__liquid {
  z-index: 1;
  overflow: hidden;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-mode: alpha;
  mask-mode: alpha;
}

.ov-fillable__liquid--shape {
  clip-path: ellipse(38% 34% at 50% 54%);
}

.ov-fillable__fill {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--fill);
  overflow: hidden;
  color: var(--fill-color);
  background: var(--fill-color);
  transition: height 0.55s cubic-bezier(0.22, 0.82, 0.2, 1);
}

.ov-fillable__body {
  position: absolute;
  inset: 0;
  background: var(--fill-color);
}

.ov-fillable__wave {
  display: none;
}

.ov-fillable__bubbles {
  display: none;
}

.ov-fillable__bubbles i {
  position: absolute;
  bottom: 8%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.42);
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.25);
  animation: ov-fillable-bubble 3.8s ease-in infinite;
}

.ov-fillable__bubbles i:nth-child(1) {
  left: 30%;
}

.ov-fillable__bubbles i:nth-child(2) {
  left: 52%;
  width: 5px;
  height: 5px;
  animation-delay: 1.15s;
  animation-duration: 4.5s;
}

.ov-fillable__bubbles i:nth-child(3) {
  left: 69%;
  animation-delay: 2.1s;
  animation-duration: 3.3s;
}

.ov-fillable__counts {
  display: grid;
  justify-items: center;
  gap: 0.05rem;
}

.ov-fillable--empty .ov-fillable__fill {
  height: 0;
}

.ov-fillable--empty .ov-fillable__wave {
  display: none;
}

.ov-fillable--full .ov-fillable__wave {
  top: -4px;
}

@keyframes ov-fillable-wave {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes ov-fillable-bubble {
  0% {
    bottom: 6%;
    opacity: 0;
    transform: scale(0.7);
  }
  18% {
    opacity: 0.7;
  }
  100% {
    bottom: 88%;
    opacity: 0;
    transform: scale(0.45);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ov-fillable__wave {
    animation: none;
  }
}

.ov-jar,
.ov-wheel {
  height: 100%;
  position: relative;
  color: #fff;
}

.ov-jar__stage,
.ov-jar canvas {
  width: 100%;
  height: 100%;
}

.ov-jar__count {
  position: absolute;
  left: 50%;
  bottom: 8%;
  transform: translateX(-50%);
  font-weight: 700;
}

.ov-wheel {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 0.4rem;
}

.ov-wheel__disc {
  width: min(100%, 280px);
  aspect-ratio: 1;
  border-radius: 50%;
  position: relative;
  transition: transform 2.4s cubic-bezier(0.12, 0.75, 0.12, 1);
}

.ov-wheel__pointer {
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 16px solid #fff;
  z-index: 2;
}

.ov-static-text,
.ov-static-media,
.ov-custom-frame,
.ov-static-empty,
.ov-placeholder {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border: 0;
}

.ov-placeholder {
  overflow: hidden;
}

.ov-game-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.6rem;
}

.ov-insp-group textarea,
textarea[data-ov-prop],
textarea[data-ov-json],
textarea[data-ov-list] {
  min-height: 5.5rem;
  width: 100%;
}

body.is-signed-out .shell {
  display: none;
}

body.is-signed-out .topbar .btn {
  display: none;
}

.auth-gate {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 64px);
  padding: 2rem 1rem 4rem;
}

.auth-card {
  width: min(28rem, 100%);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem 1.5rem;
  box-shadow: 0 0 0 1px rgba(0, 207, 255, 0.08);
}

.auth-card__mark {
  display: block;
  margin-bottom: 0.75rem;
}

.auth-card h1 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
}

.auth-card__tabs {
  display: flex;
  gap: 0.5rem;
  margin: 1rem 0;
}

.auth-tab {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  font: inherit;
}

.auth-tab--active {
  color: var(--text);
  border-bottom-color: var(--cyan);
}

.auth-form {
  display: grid;
  gap: 0.75rem;
}

.workspace-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(0, 207, 255, 0.08);
}

.ag-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.4rem 1.5rem;
  border-radius: 18px;
  border: 1px solid rgba(0, 207, 255, 0.35);
  background: linear-gradient(180deg, rgba(0, 207, 255, 0.12), rgba(17, 24, 39, 0.4));
  margin-bottom: 1rem;
}

.ag-hero h1 {
  margin: 0 0 0.4rem;
  font-size: 1.45rem;
}

.ag-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.ag-steps li {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.9rem 1rem;
}

.ag-steps strong {
  display: block;
  margin-bottom: 0.25rem;
}

.ag-steps span {
  color: var(--muted);
  font-size: 0.9rem;
}

.ag-list-head {
  align-items: flex-end;
}

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

.ag-card {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 100%;
}

.ag-card__banner {
  position: relative;
  min-height: 110px;
  background-color: var(--panel);
  background-image:
    var(--banner-image, none),
    linear-gradient(120deg, rgba(0, 207, 255, 0.35), rgba(110, 57, 255, 0.4) 50%, rgba(255, 45, 166, 0.35));
  background-size: cover, cover;
  background-position: center;
}

.ag-card__rank {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  background: rgba(11, 15, 23, 0.75);
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  font-size: 0.8rem;
}

.ag-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 0.9rem 1rem 1rem;
  flex: 1;
}

.ag-card__identity {
  display: flex;
  gap: 0.7rem;
  align-items: center;
}

.ag-card__logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #0b0f17;
  border: 1px solid var(--border);
  flex: 0 0 auto;
}

.ag-card__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ag-card__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
  margin: 0;
}

.ag-card__meta dt {
  color: var(--muted);
  font-size: 0.72rem;
}

.ag-card__meta dd {
  margin: 0.1rem 0 0;
  font-weight: 600;
}

.ag-card__bio {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0;
  flex: 1;
  white-space: pre-wrap;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ag-card__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.ag-card__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

.ag-website {
  color: var(--cyan);
  font-size: 0.85rem;
  word-break: break-all;
}

.ag-bio {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.55;
}

.ag-chip {
  display: inline-grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  font-size: 0.7rem;
}

.ag-detail-hero {
  min-height: 160px;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.ag-detail-identity {
  display: flex;
  gap: 0.9rem;
  align-items: center;
}

.ag-detail-identity .ag-card__logo {
  width: 4rem;
  height: 4rem;
  border-radius: 16px;
}

.ag-settings-preview .profile-preview__bar {
  justify-content: space-between;
}

.ag-settings-preview #ag-media-status {
  margin: 0;
}

.ag-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ag-roster,
.ag-manage-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
}

.ag-roster-item,
.ag-manage-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border);
}

.ag-manage-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.ag-formula {
  margin: 0.5rem 0 1rem;
}

.ag-dialog {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem 1.2rem 1.2rem;
  max-width: 28rem;
}

.ag-dialog__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.admin-table-wrap {
  overflow: auto;
}

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

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 0.7rem 0.5rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.admin-table select {
  background: var(--input-bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.35rem 0.5rem;
}

.ag-v2 {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.ag-v2-welcome {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1.6rem 1.8rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  background:
    linear-gradient(120deg, rgba(0, 207, 255, 0.16) 0%, rgba(110, 57, 255, 0.08) 45%, transparent 70%),
    var(--panel);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.ag-v2-welcome::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 207, 255, 0.18), transparent 70%);
  pointer-events: none;
}

.ag-v2-welcome__eyebrow {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0 0 0.35rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}

.ag-v2-welcome h1 {
  margin: 0;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.ag-v2-welcome__name {
  background: linear-gradient(135deg, var(--cyan), #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ag-v2-welcome__meta {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.ag-v2-welcome__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  position: relative;
  z-index: 1;
}

.ag-v2-tabs {
  display: flex;
  gap: 0.4rem;
  padding: 0.3rem;
  width: fit-content;
  border-radius: 12px;
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid var(--border);
}

.ag-v2-tabs a {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: 9px;
}

.ag-v2-tabs a.is-active {
  background: var(--panel);
  color: var(--text);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.ag-tab-count {
  margin-left: 0.4rem;
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
  background: rgba(0, 207, 255, 0.12);
  color: var(--cyan);
  font-size: 0.75rem;
}

.ag-v2-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.ag-v2-stats--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ag-v2-stat {
  padding: 1.2rem 1.1rem;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  min-height: 9.2rem;
}

.ag-v2-stat__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.6rem;
}

.ag-v2-stat__icon {
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.15rem;
}

.ag-v2-stat__icon--purple {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
}

.ag-v2-stat__icon--blue {
  background: linear-gradient(135deg, #2563eb, #60a5fa);
}

.ag-v2-stat__icon--pink {
  background: linear-gradient(135deg, #db2777, #ff0050);
}

.ag-v2-stat__icon--green {
  background: linear-gradient(135deg, #16a34a, #4ade80);
}

.ag-v2-stat__icon--cyan {
  background: linear-gradient(135deg, #0891b2, #00cfff);
}

.ag-v2-stat__badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  white-space: nowrap;
}

.ag-v2-stat__badge--live {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.15);
}

.ag-v2-stat__badge--neutral {
  color: var(--muted);
  background: rgba(148, 163, 184, 0.12);
}

.ag-v2-stat strong {
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.ag-v2-stat span {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 500;
}

.ag-v2-stat em {
  font-size: 0.75rem;
  color: var(--muted);
  font-style: normal;
  margin-top: auto;
}

.ag-v2-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 1rem;
  align-items: stretch;
}

.ag-v2-side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ag-v2-bottom {
  display: grid;
  grid-template-columns: 1.1fr 1.2fr;
  gap: 1rem;
}

.ag-v2-card {
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--panel);
  padding: 1.25rem 1.3rem;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
}

.ag-v2-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.ag-v2-card__head h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.ag-v2-card__head h2 i {
  color: var(--cyan);
}

.ag-v2-card__sub {
  margin: 0.25rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.ag-v2-empty {
  margin: 0;
  color: var(--muted);
}

.ag-v2-rank {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.ag-v2-rank__item {
  padding: 1.05rem 0.85rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background:
    linear-gradient(160deg, rgba(0, 207, 255, 0.12), rgba(110, 57, 255, 0.06)),
    rgba(148, 163, 184, 0.04);
  text-align: center;
}

.ag-v2-rank__item b {
  display: block;
  font-size: clamp(1.6rem, 2.4vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.ag-v2-rank__item span {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.ag-v2-rank__foot {
  margin: 0.85rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.ag-v2-minis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.ag-v2-mini {
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(148, 163, 184, 0.04);
}

.ag-v2-mini span {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.ag-v2-mini strong {
  font-size: 1.2rem;
}

.ag-v2-table-wrap {
  overflow: auto;
}

.ag-v2-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.ag-v2-table th {
  text-align: left;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 700;
  padding: 0 0.7rem 0.7rem;
  border-bottom: 1px solid var(--border);
}

.ag-v2-table td {
  padding: 0.8rem 0.7rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.ag-v2-table tr:last-child td {
  border-bottom: 0;
}

.ag-v2-creator {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.ag-v2-creator strong,
.ag-v2-creator small {
  display: block;
}

.ag-v2-creator small {
  color: var(--muted);
  font-size: 0.78rem;
}

.ag-v2-creator__avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #0b0f17;
  border: 1px solid var(--border);
  flex: 0 0 auto;
  font-size: 0.8rem;
}

.ag-v2-creator__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ag-v2-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
}

.ag-v2-pill--live {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
}

.ag-v2-pill--muted {
  background: rgba(148, 163, 184, 0.12);
  color: var(--muted);
}

.ag-v2-card .ag-board {
  background: rgba(148, 163, 184, 0.04);
  min-height: 10rem;
  box-shadow: none;
}

.ag-feed-card h2,
.ag-board h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.ag-feed {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 28rem;
  overflow: auto;
}

.ag-feed li {
  display: flex;
  gap: 0.7rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
}

.ag-feed__avatar,
.ag-board__avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #0b0f17;
  border: 1px solid var(--border);
  flex: 0 0 auto;
  font-size: 0.8rem;
}

.ag-feed__avatar img,
.ag-board__avatar img,
.ag-gallery__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ag-feed__line {
  display: flex;
  gap: 0.45rem;
  align-items: baseline;
  margin: 0;
}

.ag-feed__line span,
.ag-feed__creator {
  color: var(--muted);
  font-size: 0.8rem;
}

.ag-feed__display,
.ag-feed__creator {
  margin: 0.15rem 0 0;
}

.ag-boards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.ag-boards--rankings {
  margin-bottom: 1rem;
}

.ag-board {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 1rem 0.7rem;
  min-height: 12rem;
}

.ag-board ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ag-board li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--border);
}

.ag-board li:last-child {
  border-bottom: 0;
}

.ag-board__rank {
  width: 1.1rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.ag-board__who {
  flex: 1;
  min-width: 0;
}

.ag-board__who strong,
.ag-board__who span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ag-board__who span {
  color: var(--muted);
  font-size: 0.78rem;
}

.ag-board__empty {
  color: var(--muted);
}

.ag-board__empty strong {
  display: block;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.ag-board__empty p {
  margin: 0;
  font-size: 0.88rem;
}

.ag-live {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
}

.ag-live li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border);
}

.ag-live__who {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.ag-live__dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18);
}

.ag-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.75rem;
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
}

.ag-gallery li {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  background: rgba(11, 15, 23, 0.45);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem 0.7rem;
}

.ag-gallery__art {
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #0b0f17;
  margin-bottom: 0.2rem;
}

.ag-gallery em {
  color: var(--muted);
  font-style: normal;
  font-size: 0.78rem;
}

.ag-gallery-empty {
  min-height: 12rem;
}

.ag-status {
  color: var(--muted);
  font-size: 0.88rem;
  align-self: center;
}

.ag-contact {
  display: grid;
  gap: 0.85rem;
  margin: 0 0 1rem;
}

.ag-contact dt {
  color: var(--muted);
  font-size: 0.78rem;
  margin-bottom: 0.2rem;
}

.ag-contact dd {
  margin: 0;
}

.ag-dialog--apply {
  max-width: 32rem;
  width: min(32rem, 92vw);
}

.ag-manage-list li span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

.notify {
  position: relative;
}

.notify .icon-btn {
  position: relative;
}

.notify__badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 1rem;
  height: 1rem;
  padding: 0 0.22rem;
  border-radius: 999px;
  background: var(--cyan, #00cfff);
  color: #041018;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1;
  display: grid;
  place-items: center;
}

.notify__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.45rem);
  width: min(22rem, calc(100vw - 2rem));
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  z-index: 40;
  padding: 0.7rem;
}

.notify__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

.notify__empty {
  color: var(--muted);
  margin: 0.4rem 0 0;
  font-size: 0.88rem;
}

.notify__item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 10px;
  color: var(--text);
  padding: 0.55rem 0.45rem;
  cursor: pointer;
}

.notify__item span {
  color: var(--muted);
  font-size: 0.82rem;
}

.notify__item--unread {
  background: rgba(0, 207, 255, 0.08);
}

.notify__item:hover {
  background: var(--bg-elevated);
}

body.is-signed-out .notify {
  display: none;
}

@media (max-width: 1100px) {
  .ag-v2-welcome,
  .ag-v2-stats,
  .ag-v2-stats--three,
  .ag-v2-grid,
  .ag-v2-bottom,
  .ag-boards {
    grid-template-columns: 1fr;
  }
}

.gl-banner {
  margin: 0 0 1rem;
  color: var(--cyan);
}

.gl-list {
  display: grid;
  gap: 0.75rem;
}

.gl-row {
  display: grid;
  grid-template-columns: minmax(8rem, 14rem) minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 0.85rem 1rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.gl-row__name {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.gl-row__icon {
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: color-mix(in srgb, var(--cyan) 16%, var(--panel));
  color: var(--cyan);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.gl-row__name strong,
.gl-row__name small {
  display: block;
}

.gl-row__name small {
  color: var(--muted);
  font-size: 0.8rem;
}

.gl-row__bar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  background: #07111f;
}

.gl-row__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: var(--gl-fill, #39ff14);
  color: #06210a;
  font-weight: 700;
  font-size: 0.86rem;
  white-space: nowrap;
}

.gl-row__track {
  height: 0.7rem;
  border-radius: 999px;
  background: #10182b;
  overflow: hidden;
  min-width: 0;
}

.gl-row__fill {
  height: 100%;
  background: var(--gl-fill, #39ff14);
}

.gl-row__stats {
  color: #fff;
  font-weight: 700;
  font-size: 0.86rem;
  white-space: nowrap;
}

.gl-row__actions {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.gl-dialog {
  width: min(720px, 96vw);
}

.gl-form .ov-dialog__actions [data-gl-form-delete] {
  margin-right: auto;
}

.gl-form__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.gl-preview {
  width: 100%;
  max-height: 220px;
  margin: 0.4rem 0 0.8rem;
  background:
    linear-gradient(45deg, var(--ov-canvas-check, #132033) 25%, transparent 25%) 0 0 / 16px 16px,
    linear-gradient(-45deg, var(--ov-canvas-check, #132033) 25%, transparent 25%) 0 8px / 16px 16px,
    var(--ov-canvas, #0b1220);
  border-radius: 12px;
  overflow: hidden;
}

.gl-preview .ov-widget-inner {
  width: 100%;
  height: 100%;
}

.gl-form__grid {
  display: grid;
  gap: 0.7rem;
}

.gl-increment .feed-meta {
  margin: 0.35rem 0 0;
}

.gl-overlay-list {
  display: grid;
  gap: 0.4rem;
  max-height: 14rem;
  overflow: auto;
  margin: 0 0 0.8rem;
}

.gl-overlay-pick {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.gl-overlay-pick em {
  display: block;
  color: var(--muted);
  font-style: normal;
  font-size: 0.78rem;
}

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

  .gl-row__bar {
    grid-template-columns: 1fr;
  }

  .gl-row__actions {
    justify-content: flex-start;
  }
}



