/* =========================================================================
 * NodexaBot × Nodexa Hosting (V3 "Ember").
 * Mirrors the Nodexa storefront, server panel and Android app:
 * near-black zinc surfaces, one orange accent, 18–22px cards with a soft
 * corner glow, pill navigation and numbered sections.
 * Loaded last. Structure rules apply to every appearance and read the
 * active --nx-* palette; Ember values are the fallback and the default.
 * ===================================================================== */
:root {
  --h-bg: var(--nx-bg, #09090b);
  --h-side: var(--nx-sidebar, #0c0c0f);
  --h-card: var(--nx-card, #111114);
  --h-card2: color-mix(in srgb, var(--h-card) 88%, #ffffff 3%);
  --h-line: var(--nx-border, #23232a);
  --h-line2: color-mix(in srgb, var(--h-line) 80%, #ffffff 8%);
  --h-text: var(--nx-text, #fafafa);
  --h-muted: var(--nx-muted, #a1a1aa);
  --h-dim: color-mix(in srgb, var(--h-muted) 70%, var(--h-bg));
  --h-accent: var(--nx-button, #f97316);
  --h-accent-text: var(--nx-accent, #fb923c);
  --h-on-accent: #0b0b0d;
  --h-accent-soft: color-mix(in srgb, var(--h-accent) 14%, var(--h-card));
  --h-good: #4ade80;
  --h-glow: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--h-accent) 12%, transparent), transparent 55%);
  --h-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
html[data-nodexa-theme="clean-light"] { --h-on-accent: #ffffff; --h-good: #15803d; }
html[data-nodexa-appearance="nodexa"] ::selection { background: #f97316; color: #0b0b0d; }

/* ------------------------------- Header -------------------------------- */
.site-header.nxh-header {
  height: 64px; padding: 0 max(20px, calc((100vw - 1180px) / 2)); gap: 24px;
  background: color-mix(in srgb, var(--h-bg) 88%, transparent); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--h-line); box-shadow: none; font-family: var(--h-font);
}
.nxh-brand { gap: 10px; font-family: var(--h-font) !important; font-size: 20px; font-weight: 800; letter-spacing: -.03em; color: var(--h-text); }
.nxh-brand em { font-style: normal; color: var(--h-accent-text); }
.nxh-header .nxh-nav {
  margin: 0 auto; gap: 4px; padding: 4px; border: 1px solid var(--h-line); border-radius: 999px; background: var(--h-card);
}
.nxh-header .nxh-nav a { padding: 8px 14px; border-radius: 999px; color: var(--h-muted); font-size: 13px; font-weight: 600; white-space: nowrap; }
.nxh-header .nxh-nav a:hover { color: var(--h-text); background: color-mix(in srgb, var(--h-text) 6%, transparent); }
.nxh-header .nxh-nav a.active { color: var(--h-text); background: var(--h-line); }
.nxh-header .nxh-actions { margin-left: 0; gap: 8px; }
.nxh-header .nxh-actions :is(.button, .theme-switch-btn) { min-height: 40px; padding: 0 14px; border-radius: 10px; font-size: 13px; font-weight: 600; }
.nxh-header .nxh-actions :is(.button-ghost, .theme-switch-btn) { background: var(--h-card); border: 1px solid var(--h-line); color: var(--h-text); }
.nxh-header .nxh-actions :is(.button-ghost, .theme-switch-btn):hover { border-color: var(--h-line2); }
.nxh-header .nxh-menu { display: none; width: 42px; height: 42px; margin-left: auto; border: 1px solid var(--h-line); border-radius: 10px; background: var(--h-card); color: var(--h-text); font-size: 18px; }

/* Primary buttons: solid orange, dark label (Nodexa V3). */
:is(.nxh-header, .nxh-home, .nxh-footer) .button { font-family: var(--h-font); }
:is(.nxh-header, .nxh-home) .button-primary {
  background: var(--h-accent) !important; border-color: var(--h-accent) !important; color: var(--h-on-accent) !important;
  box-shadow: 0 10px 30px color-mix(in srgb, var(--h-accent) 22%, transparent); transform: none;
}
:is(.nxh-header, .nxh-home) .button-primary:hover { filter: brightness(1.06); transform: translateY(-1px); }
.nxh-home .button-secondary { background: var(--h-card); border: 1px solid var(--h-line2); color: var(--h-text); }
.nxh-home .button-secondary:hover { background: var(--h-card2); border-color: color-mix(in srgb, var(--h-text) 22%, var(--h-line)); }
.nxh-btn { min-height: 46px; padding: 0 18px !important; border-radius: 10px !important; font-size: 14px !important; font-weight: 700 !important; }

/* -------------------------------- Home --------------------------------- */
.nxh-home { padding-top: 64px; background: var(--h-bg); color: var(--h-text); font-family: var(--h-font); }
.nxh-home :is(h1, h2, h3) { font-family: var(--h-font); color: var(--h-text); letter-spacing: -.03em; margin: 0; }
.nxh-home p { color: var(--h-muted); }
.nxh-home .wrap { width: min(1180px, calc(100% - 40px)); }
.nxh-muted { color: var(--h-muted); font-size: 15px; line-height: 1.65; }

.nxh-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--h-line2); background: var(--h-card); font-size: 12px; font-weight: 600; color: color-mix(in srgb, var(--h-text) 85%, var(--h-muted)); }
.nxh-chip--live i { width: 7px; height: 7px; border-radius: 50%; background: var(--h-good); box-shadow: 0 0 0 3px color-mix(in srgb, var(--h-good) 18%, transparent); }
.nxh-kicker { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .14em; color: var(--h-accent-text); }
.nxh-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 7px; font-size: 12px; font-weight: 600; }
.nxh-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.nxh-pill--good { color: var(--h-good); background: color-mix(in srgb, var(--h-good) 12%, transparent); }

/* Hero */
.nxh-hero { position: relative; overflow: hidden; padding: 84px 0 76px; background: radial-gradient(700px 380px at 85% 10%, color-mix(in srgb, var(--h-accent) 12%, transparent), transparent 70%); }
.nxh-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(color-mix(in srgb, var(--h-text) 3%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--h-text) 3%, transparent) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: linear-gradient(to bottom, #000, transparent 85%); mask-image: linear-gradient(to bottom, #000, transparent 85%); }
.nxh-hero .wrap { position: relative; z-index: 1; }
.nxh-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.nxh-hero h1 { margin-top: 22px; font-size: clamp(44px, 5.2vw, 72px); line-height: 1; letter-spacing: -.045em; font-weight: 800; }
.nxh-hero h1 span, .nxh-section h2 span { background: linear-gradient(90deg, var(--h-accent), #fbbf24); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nxh-lead { margin: 22px 0 0; max-width: 560px; font-size: clamp(16px, 1.6vw, 18px); line-height: 1.65; }
.nxh-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.nxh-checks { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 26px 0 0; padding: 0; list-style: none; font-size: 13px; color: color-mix(in srgb, var(--h-text) 82%, var(--h-muted)); }
.nxh-checks li::before { content: "✓"; margin-right: 8px; color: var(--h-accent-text); font-weight: 800; }

/* Panel preview (mirrors the Nodexa server panel preview) */
.nxh-preview { display: grid; grid-template-columns: 56px 1fr; min-height: 360px; border-radius: 22px; overflow: hidden; border: 1px solid var(--h-line2); background: var(--h-side); box-shadow: 0 40px 100px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.02) inset; }
.nxh-preview-side { display: flex; flex-direction: column; gap: 10px; align-items: center; padding: 16px 0; border-right: 1px solid var(--h-line); }
.nxh-preview-logo { width: 28px; height: 28px; border-radius: 8px; margin-bottom: 8px; background: var(--h-accent); }
.nxh-preview-side i { width: 28px; height: 28px; border-radius: 8px; background: var(--h-card2); }
.nxh-preview-side i.is-active { background: color-mix(in srgb, var(--h-accent) 22%, var(--h-card2)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--h-accent) 45%, transparent); }
.nxh-preview-main { padding: 20px; display: flex; flex-direction: column; gap: 14px; background: var(--h-glow), var(--h-bg); min-width: 0; }
.nxh-preview-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.nxh-preview-head b { display: block; font-size: 16px; color: var(--h-text); }
.nxh-preview-head small { display: block; font-size: 12px; color: var(--h-muted); }
.nxh-preview-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.nxh-preview-stats div { padding: 12px; border-radius: 12px; border: 1px solid var(--h-line); background: var(--h-card); min-width: 0; }
.nxh-preview-stats small { display: block; font-size: 11px; color: var(--h-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nxh-preview-stats b { display: block; margin: 4px 0 8px; font-size: 17px; color: var(--h-text); font-variant-numeric: tabular-nums; }
.nxh-preview-stats i { display: block; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--h-accent) var(--w), var(--h-line) var(--w)); }
.nxh-preview-console { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 12px; border: 1px solid var(--h-line); background: color-mix(in srgb, var(--h-bg) 70%, #000); font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }
.nxh-preview-console .ok { color: var(--h-good); }
.nxh-preview-console .info { color: color-mix(in srgb, var(--h-text) 82%, var(--h-muted)); }
.nxh-preview-console .dim { margin-top: auto; color: var(--h-dim); }

/* Feature strip */
.nxh-strip { border-block: 1px solid var(--h-line); background: var(--h-side); }
.nxh-strip .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.nxh-strip .wrap > div { padding: 22px 24px; border-left: 1px solid var(--h-line); }
.nxh-strip .wrap > div:first-child { border-left: 0; padding-left: 0; }
.nxh-strip b { display: block; font-size: 14px; color: var(--h-text); }
.nxh-strip span { display: block; margin-top: 2px; font-size: 12px; color: var(--h-muted); }

/* Sections */
.nxh-section { padding: 84px 0; scroll-margin-top: 64px; }
.nxh-alt { background: var(--h-side); border-block: 1px solid var(--h-line); }
.nxh-heading { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 28px; }
.nxh-heading h2, .nxh-split h2, .nxh-faq-wrap h2 { margin-top: 10px; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.1; font-weight: 800; }
.nxh-heading > p { margin: 0; max-width: 380px; font-size: 14px; line-height: 1.6; }

/* Platform cards */
.nxh-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 16px; }
.nxh-card { display: flex; flex-direction: column; gap: 10px; min-height: 240px; padding: 26px; border-radius: 22px; border: 1px solid var(--h-line); background: var(--h-glow), var(--h-card); color: var(--h-text); transition: border-color .15s, transform .15s; }
.nxh-card[hidden] { display: none !important; }
.nxh-card:hover, .nxh-card:focus-visible { border-color: color-mix(in srgb, var(--h-accent) 55%, transparent); transform: translateY(-2px); }
.nxh-card-mark { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; border-radius: 13px; font-size: 13px; font-weight: 800; color: var(--h-accent-text); background: var(--h-accent-soft); }
.nxh-card h3 { font-size: 24px; }
.nxh-card p { margin: 0; font-size: 14px; line-height: 1.6; }
.nxh-card-foot { margin-top: auto; display: flex; align-items: center; gap: 4px; padding-top: 16px; border-top: 1px solid var(--h-line); font-size: 13px; font-weight: 600; color: var(--h-text); }
.nxh-card-foot i { margin-left: auto; font-style: normal; color: var(--h-accent-text); font-size: 18px; }

/* Bento */
.nxh-bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.nxh-tile { padding: 26px; border-radius: 22px; border: 1px solid var(--h-line); background: var(--h-card); }
.nxh-tile--wide { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; background: var(--h-glow), var(--h-card); }
.nxh-tile h3 { margin-top: 18px; font-size: 20px; }
.nxh-tile p { margin: 8px 0 0; font-size: 14px; line-height: 1.6; }
.nxh-icon { width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; border-radius: 11px; color: var(--h-accent-text); background: var(--h-accent-soft); }
.nxh-icon svg { width: 20px; height: 20px; }
.nxh-mini-console { margin-top: auto; padding: 16px; border-radius: 14px; display: grid; gap: 6px; border: 1px solid var(--h-line); background: color-mix(in srgb, var(--h-bg) 70%, #000); font: 12.5px ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--h-good); }
.nxh-tile--wide p { margin-bottom: 24px; }

/* Protection */
.nxh-split { display: grid; grid-template-columns: .85fr 1.15fr; gap: 48px; align-items: center; }
.nxh-split .nxh-muted { margin: 14px 0 0; max-width: 460px; }
.nxh-included { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.nxh-included div { padding: 22px; border-radius: 18px; border: 1px solid var(--h-line); background: var(--h-card); }
.nxh-included div:first-child { background: var(--h-glow), var(--h-card); }
.nxh-included b { display: block; color: var(--h-text); }
.nxh-included span { display: block; margin-top: 6px; font-size: 13px; line-height: 1.55; color: var(--h-muted); }

/* Steps */
.nxh-how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
.nxh-how li { padding: 26px; border-radius: 22px; border: 1px solid var(--h-line); background: var(--h-card); }
.nxh-how b { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--h-accent); color: var(--h-on-accent); font-weight: 800; }
.nxh-how h3 { margin-top: 18px; font-size: 20px; }
.nxh-how p { margin: 8px 0 0; font-size: 14px; line-height: 1.6; }

/* FAQ */
.nxh-faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
.nxh-faq-wrap .nxh-muted { margin-top: 12px; }
.nxh-faq { display: grid; gap: 10px; }
.nxh-faq details { border: 1px solid var(--h-line); border-radius: 16px; background: var(--h-card); padding: 0 20px; }
.nxh-faq details[open] { border-color: var(--h-line2); background: var(--h-glow), var(--h-card); }
.nxh-faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 0; font-weight: 600; color: var(--h-text); }
.nxh-faq summary::-webkit-details-marker { display: none; }
.nxh-faq summary::after { content: "+"; font-size: 20px; color: var(--h-accent-text); }
.nxh-faq details[open] summary::after { content: "−"; }
.nxh-faq details p { margin: 0 0 18px; font-size: 14px; line-height: 1.6; }

/* CTA */
.nxh-cta-section { padding-top: 0; }
.nxh-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: 36px 40px; border-radius: 24px; border: 1px solid var(--h-line2); background: radial-gradient(80% 140% at 100% 0%, color-mix(in srgb, var(--h-accent) 18%, transparent), transparent 60%), var(--h-card); }
.nxh-cta h2 { margin: 8px 0 6px; font-size: clamp(24px, 3vw, 34px); line-height: 1.15; max-width: 620px; }
.nxh-cta p { margin: 0; max-width: 560px; }
.nxh-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Footer */
.footer.nxh-footer { background: var(--h-side); border-top: 1px solid var(--h-line); font-family: var(--h-font); }
.nxh-footer .nxh-footer-main { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; padding: 52px 0 40px; }
.nxh-footer .footer-brand p { color: var(--h-muted); font-size: 13px; max-width: 320px; line-height: 1.6; margin: 12px 0 14px; }
.nxh-footer .nxh-footer-main > div:not(.footer-brand) { display: flex; flex-direction: column; gap: 8px; }
.nxh-footer .nxh-footer-main > div:not(.footer-brand) b { margin-bottom: 4px; font-size: 13px; color: var(--h-text); }
.nxh-footer .nxh-footer-main > div:not(.footer-brand) a { font-size: 13px; color: var(--h-muted); }
.nxh-footer .nxh-footer-main > div:not(.footer-brand) a:hover { color: var(--h-text); }
.nxh-footer .footer-bottom { padding: 20px 0 28px; border-top: 1px solid var(--h-line); font-size: 12px; color: var(--h-dim); }

/* Responsive */
@media (max-width: 1100px) { .nxh-header .nxh-nav a { padding: 8px 10px; font-size: 12px; } .nxh-header .theme-switch-home > span:last-child { display: none; } }
@media (max-width: 980px) {
  .site-header.nxh-header { height: 64px; }
  .nxh-header .nxh-menu { display: inline-grid; place-items: center; }
  .nxh-header .nxh-nav, .nxh-header .nxh-actions { display: none; }
  .nxh-header.nxh-open { height: auto; flex-wrap: wrap; padding-bottom: 16px; background: var(--h-bg); }
  .nxh-header.nxh-open .nxh-nav { order: 3; display: grid; width: 100%; margin: 6px 0 0; padding: 6px; border-radius: 16px; }
  .nxh-header.nxh-open .nxh-nav a { padding: 12px 14px; border-radius: 10px; font-size: 15px; }
  .nxh-header.nxh-open .nxh-actions { order: 4; display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .nxh-header.nxh-open .nxh-actions .button-primary { grid-column: 1 / -1; }
  .nxh-header.nxh-open .nxh-actions :is(.button, .theme-switch-btn) { display: inline-flex; justify-content: center; min-height: 46px; }
  .nxh-home { padding-top: 64px; }
  .nxh-hero-grid, .nxh-split, .nxh-faq-wrap { grid-template-columns: 1fr; gap: 40px; }
  .nxh-preview { max-width: 620px; }
  .nxh-how { grid-template-columns: 1fr 1fr; }
  .nxh-bento { grid-template-columns: 1fr 1fr; }
  .nxh-strip .wrap { grid-template-columns: 1fr 1fr; }
  .nxh-strip .wrap > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .nxh-strip .wrap > div:nth-child(-n+2) { border-bottom: 1px solid var(--h-line); }
  .nxh-footer .nxh-footer-main { grid-template-columns: 1fr 1fr; }
  .nxh-footer .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .nxh-home .wrap { width: calc(100% - 28px); }
  .nxh-hero { padding: 52px 0 56px; }
  .nxh-hero h1 { font-size: clamp(40px, 12vw, 52px); }
  .nxh-ctas .nxh-btn { flex: 1 1 100%; }
  .nxh-preview { grid-template-columns: 1fr; min-height: 0; }
  .nxh-preview-side { display: none; }
  .nxh-preview-main { padding: 14px; }
  .nxh-preview-stats { gap: 6px; }
  .nxh-preview-stats div { padding: 9px; }
  .nxh-preview-stats b { font-size: 15px; }
  .nxh-section { padding: 60px 0; }
  .nxh-how, .nxh-bento, .nxh-included { grid-template-columns: 1fr; }
  .nxh-tile--wide { grid-column: auto; grid-row: auto; }
  .nxh-cta { padding: 26px; }
  .nxh-cta-actions, .nxh-cta-actions .nxh-btn { width: 100%; }
  .nxh-footer .footer-bottom { flex-direction: column; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) { .nxh-card, .nxh-home .button-primary { transition: none; transform: none !important; } }

/* =========================================================================
 * Logged-in workspaces in the Nodexa server-panel style (Nodexa appearance).
 * Pure presentation; every id, data attribute and control is unchanged.
 * ===================================================================== */
html[data-nodexa-appearance="nodexa"] :is(#dashboard, #twitchDashboard) {
  --pro-radius: 16px;
  --pro-accent: #fb923c;
  --pro-hover: #18181d;
  font-family: var(--h-font);
}
html[data-nodexa-appearance="nodexa"] :is(.page-dashboard, .page-twitch-dashboard) { background: #09090b; }

/* Sidebar like the Nodexa panel: soft orange selection, no hard inset bar. */
html[data-nodexa-appearance="nodexa"] :is(#dashboard, #twitchDashboard) :is(.dashboard-sidebar, .twitch-dashboard-sidebar) { background: #0c0c0f; border-right-color: #1c1c22; }
html[data-nodexa-appearance="nodexa"] :is(#dashboard, #twitchDashboard) :is(.side-item, .twitch-sidebar-nav button) { border-radius: 10px; color: #a1a1aa; }
html[data-nodexa-appearance="nodexa"] :is(#dashboard, #twitchDashboard) :is(.side-item, .twitch-sidebar-nav button):hover { background: #16161a; color: #fafafa; }
html[data-nodexa-appearance="nodexa"] :is(#dashboard, #twitchDashboard) :is(.side-item.active, .twitch-sidebar-nav button.active) {
  background: color-mix(in srgb, #f97316 14%, #111114) !important; color: #fdba74 !important; box-shadow: inset 0 0 0 1px color-mix(in srgb, #f97316 30%, transparent) !important; border-color: transparent;
}
html[data-nodexa-appearance="nodexa"] :is(#dashboard, #twitchDashboard) :is(.side-item.active, .twitch-sidebar-nav button.active) > span:first-child { color: #f97316; }
html[data-nodexa-appearance="nodexa"] :is(#dashboard, #twitchDashboard) :is(.side-item, .twitch-sidebar-nav button) > em { background: #18181d; color: #a1a1aa; border: 1px solid #23232a; }
html[data-nodexa-appearance="nodexa"] :is(#dashboard, #twitchDashboard) :is(.dashboard-product-switcher, .twitch-product-switcher) { border-radius: 999px; background: #111114; border-color: #23232a; }
html[data-nodexa-appearance="nodexa"] :is(#dashboard, #twitchDashboard) :is(.dashboard-product-switcher, .twitch-product-switcher) a { border-radius: 999px; }
html[data-nodexa-appearance="nodexa"] :is(#dashboard, #twitchDashboard) :is(.dashboard-product-switcher, .twitch-product-switcher) a.active { background: #23232a; color: #fafafa; }
html[data-nodexa-appearance="nodexa"] :is(#dashboard, #twitchDashboard) :is(.server-picker, .twitch-channel-card) { border-radius: 12px; background: #111114; border-color: #23232a; }
html[data-nodexa-appearance="nodexa"] :is(#dashboard, #twitchDashboard) :is(.dash-brand b, .twitch-dash-brand b) { letter-spacing: -.02em; }

/* Topbar: blurred near-black like the Nodexa header. */
html[data-nodexa-appearance="nodexa"] :is(#dashboard, #twitchDashboard) :is(.dashboard-topbar, .twitch-topbar) { background: color-mix(in srgb, #09090b 88%, transparent); backdrop-filter: blur(16px); border-bottom-color: #23232a; }
html[data-nodexa-appearance="nodexa"] :is(#dashboard, #twitchDashboard) :is(.square-btn, .theme-switch-btn, .button-secondary, .button-ghost) { background: #111114; border-color: #27272f; color: #fafafa; border-radius: 10px; }
html[data-nodexa-appearance="nodexa"] :is(#dashboard, #twitchDashboard) :is(.square-btn, .theme-switch-btn, .button-secondary, .button-ghost):hover { background: #16161a; border-color: #3f3f46; }

/* Page headings: Nodexa page head with corner glow instead of a left rule. */
html[data-nodexa-appearance="nodexa"] :is(#dashboard, #twitchDashboard) .nx-pro-page > :is(.ticket-page-heading, .module-page-heading, .server-page-heading, .premium-page-heading, .admin-page-heading, .am-heading, .music-topline, .dash-heading, .twitch-page-head, .twitch-section-heading, .ait-hero, .nts-hero) {
  padding: 22px 24px; border: 1px solid #23232a; border-left-width: 1px; border-radius: 20px;
  background: radial-gradient(600px 220px at 100% 0%, color-mix(in srgb, #f97316 13%, transparent), transparent 70%), #111114;
}
html[data-nodexa-appearance="nodexa"] :is(#dashboard, #twitchDashboard) .nx-pro-page :is(.section-tag, .twitch-eyebrow, .module-category) { color: #fb923c; letter-spacing: .14em; }

/* Cards, stat tiles and panels. */
html[data-nodexa-appearance="nodexa"] :is(#dashboard, #twitchDashboard) :is(.panel, .twitch-card, .music-card, .am-card, .nts-panel, .ai-template-panel, .admin-category-group, .dash-stat, .twitch-kpi-grid article, .twitch-engagement-card, .module-library-card) { border-radius: 16px; border-color: #23232a; background-color: #111114; }
html[data-nodexa-appearance="nodexa"] :is(#dashboard, #twitchDashboard) :is(.panel, .twitch-card, .module-library-card):hover { border-color: #2e2e36; }
html[data-nodexa-appearance="nodexa"] #dashboardOverview .dash-stat,
html[data-nodexa-appearance="nodexa"] #dashboard .nx-pro-page > :is(.ticket-stat-grid, .server-page-stats, .admin-stat-grid, .games-stat-grid, .xenon-stat-grid, .automation-stat-grid, .application-stat-grid, .am-summary) > article,
html[data-nodexa-appearance="nodexa"] #twitchDashboard .nx-pro-page :is(.tcp-summary, .twitch-owner-summary, .twitch-readiness-grid) > article {
  border-top: 1px solid #23232a !important; border-radius: 16px !important;
  background: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, #f97316 9%, transparent), transparent 55%), #111114 !important;
}
html[data-nodexa-appearance="nodexa"] :is(#dashboard, #twitchDashboard) :is(.stat-icon, .kpi-icon, .feature-icon, .module-card-icon) { background: color-mix(in srgb, #f97316 14%, #16161a) !important; color: #fb923c !important; border-color: color-mix(in srgb, #f97316 25%, transparent) !important; border-radius: 11px; }
html[data-nodexa-appearance="nodexa"] #dashboardOverview .dash-stat .stat-icon { background: transparent !important; border: 0 !important; }

/* Buttons, tabs, inputs, toggles. */
html[data-nodexa-appearance="nodexa"] :is(#dashboard, #twitchDashboard, .nodexa-theme-dialog) :is(.button-primary, .music-btn-primary, .nts-primary, .theme-dialog-done) { background: #f97316 !important; border-color: #f97316 !important; color: #0b0b0d !important; font-weight: 700; border-radius: 10px; }
html[data-nodexa-appearance="nodexa"] :is(#dashboard, #twitchDashboard) :is(.button-primary, .music-btn-primary, .nts-primary):hover { filter: brightness(1.06); }
html[data-nodexa-appearance="nodexa"] :is(#dashboard, #twitchDashboard) .nx-pro-page :is(.ticket-tabs, .ticket-workspace-tabs, .settings-subnav, .am-tabs, .twitch-owner-tabs, .segmented) { border-radius: 12px; background: #111114; border-color: #23232a; }
html[data-nodexa-appearance="nodexa"] :is(#dashboard, #twitchDashboard) .nx-pro-page :is(.ticket-tabs, .ticket-workspace-tabs, .am-tabs, .twitch-owner-tabs) button.active,
html[data-nodexa-appearance="nodexa"] :is(#dashboard, #twitchDashboard) .segmented button.active { background: #23232a !important; color: #fafafa !important; box-shadow: none !important; border-radius: 9px; }
html[data-nodexa-appearance="nodexa"] :is(#dashboard, #twitchDashboard) :is(input:not([type]), input[type="text"], input[type="search"], input[type="number"], input[type="url"], input[type="email"], input[type="password"], textarea, select) { background: #0c0c0f; border-color: #27272f; color: #fafafa; border-radius: 10px; }
html[data-nodexa-appearance="nodexa"] :is(#dashboard, #twitchDashboard) :is(input, textarea, select):focus { border-color: #f97316 !important; box-shadow: 0 0 0 3px color-mix(in srgb, #f97316 18%, transparent) !important; outline: none; }
html[data-nodexa-appearance="nodexa"] :is(#dashboard, #twitchDashboard) :is(input[type="checkbox"], input[type="radio"], input[type="range"]) { accent-color: #f97316; }
html[data-nodexa-appearance="nodexa"] :is(#dashboard, #twitchDashboard) :is(.online-badge, .server-status:not(.maintenance):not(.not-installed)) { color: #4ade80; }
html[data-nodexa-appearance="nodexa"] :is(#dashboard, #twitchDashboard) :is(.score-ring) { background: conic-gradient(#f97316 0 99.7%, #23232a 99.7%); }
html[data-nodexa-appearance="nodexa"] :is(#dashboard, #twitchDashboard) .score-ring::after { background: #111114; }
html[data-nodexa-appearance="nodexa"] :is(#dashboard, #twitchDashboard) .text-button { color: #fb923c; }
html[data-nodexa-appearance="nodexa"] :is(#dashboard, #twitchDashboard) .nx-pro-page table th { background: #0c0c0f; color: #a1a1aa; }
html[data-nodexa-appearance="nodexa"] :is(#dashboard, #twitchDashboard) ::-webkit-scrollbar-thumb { background: #27272f; border-radius: 8px; }
html[data-nodexa-appearance="nodexa"] :is(#dashboard, #twitchDashboard) { scrollbar-color: #27272f transparent; }

/* Theme dialog in the same language. */
html[data-nodexa-appearance="nodexa"] .nodexa-theme-dialog { background: #111114; border: 1px solid #2e2e36; border-radius: 22px; color: #fafafa; }
html[data-nodexa-appearance="nodexa"] .nodexa-theme-dialog .theme-dialog-kicker { color: #fb923c; }
html[data-nodexa-appearance="nodexa"] .nodexa-theme-dialog .theme-choice { background: #0c0c0f; border-color: #23232a; border-radius: 14px; }
html[data-nodexa-appearance="nodexa"] .nodexa-theme-dialog .theme-choice[aria-pressed="true"] { border-color: color-mix(in srgb, #f97316 60%, transparent); background: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, #f97316 12%, transparent), transparent 55%), #0c0c0f; }
.nd-theme-swatch { background: linear-gradient(145deg, #111114 52%, #f97316 52%) !important; border-color: #3f2a1a !important; }

/* Brand mark: orange tile with the Nodexa "N". */
html[data-nodexa-appearance="nodexa"] :is(.brand-mark, .docs-brand-mark) { background: #f97316 !important; border-radius: 9px; box-shadow: none; }
html[data-nodexa-appearance="nodexa"] :is(.brand-mark, .docs-brand-mark) > span { background: #0b0b0d !important; }

/* ------------------- Templates gallery (shared site header) ------------------- */
.template-gallery-body { --bg: #09090b; --surface: #111114; --surface-2: #0c0c0f; --border: #23232a; --text: #fafafa; --muted: #a1a1aa; --purple: #f97316; --purple-2: #fb923c; background: #09090b; font-family: var(--h-font); }
.template-gallery-body::before, .template-gallery-body .noise { display: none; }
.template-gallery-body .site-header { background: color-mix(in srgb, #09090b 88%, transparent); border-bottom: 1px solid #23232a; }
.template-gallery-body .site-header .main-nav { gap: 4px; padding: 4px; border: 1px solid #23232a; border-radius: 999px; background: #111114; }
.template-gallery-body .site-header .main-nav a { padding: 8px 14px; border-radius: 999px; color: #a1a1aa; font-size: 13px; font-weight: 600; }
.template-gallery-body .site-header .main-nav a.active { background: #23232a; color: #fafafa; }
.template-gallery-body .brand-mark { background: #f97316; border-radius: 9px; box-shadow: none; }
.template-gallery-body .brand-mark > span { border-color: #0b0b0d; }
.template-gallery-body .button-primary { background: #f97316 !important; color: #0b0b0d !important; box-shadow: 0 10px 30px rgba(249,115,22,.2); border-radius: 10px; }
.template-gallery-body :is(.button-secondary, .button-ghost) { background: #111114; border-color: #27272f; border-radius: 10px; }
@media (max-width: 980px) { .template-gallery-body .site-header .main-nav { border-radius: 16px; } }

/* Small identity details shared by both dashboards. */
:is(#dashboard, #twitchDashboard) :is(.dash-brand, .twitch-dash-brand), :is(#dashboard, #twitchDashboard) :is(.dash-brand, .twitch-dash-brand) * { font-family: var(--h-font) !important; }
html[data-nodexa-appearance="nodexa"] :is(#dashboard, #twitchDashboard) :is(.dash-brand, .twitch-dash-brand) small { color: #fb923c; letter-spacing: .12em; }
html[data-nodexa-appearance="nodexa"] :is(#dashboard, #twitchDashboard) :is(.server-logo, .server-icon, .server-avatar, .twitch-brand-mark, .twitch-title-icon) { background: color-mix(in srgb, #f97316 16%, #16161a); color: #fb923c; box-shadow: none; }
html[data-nodexa-appearance="nodexa"] :is(#dashboard, #twitchDashboard) .notification i { background: #f97316; }
html[data-nodexa-appearance="nodexa"] :is(#dashboard, #twitchDashboard) .mini-profile .avatar { background: color-mix(in srgb, #f97316 22%, #16161a); color: #fdba74; }
html[data-nodexa-appearance="nodexa"] #twitchDashboard :is(.twitch-broadcaster-connect, .twitch-system-command-strip, .twitch-chat-preview) { background: #0c0c0f; border-color: #23232a; }
html[data-nodexa-appearance="nodexa"] #twitchDashboard .twitch-score-ring { background: conic-gradient(#f97316 calc(var(--score) * 1%), #23232a 0); box-shadow: none; }
html[data-nodexa-appearance="nodexa"] #twitchDashboard .twitch-score-ring::after { background: #111114; }

/* Module cards: one quiet action per card, like the Nodexa client area. */
html[data-nodexa-appearance="nodexa"] #dashboardModules .module-library-card :is(.button-primary, .button) {
  background: #16161a !important; border: 1px solid #2e2e36 !important; color: #fafafa !important; box-shadow: none !important; font-weight: 600;
}
html[data-nodexa-appearance="nodexa"] #dashboardModules .module-library-card :is(.button-primary, .button):hover {
  background: color-mix(in srgb, #f97316 14%, #16161a) !important; border-color: color-mix(in srgb, #f97316 45%, transparent) !important; color: #fdba74 !important; filter: none;
}

/* ---------- Owner Panel → Give Premium: searchable server picker ---------- */
.nxp-field { display: grid; gap: 6px; }
.nxp-label { font-size: 12px; font-weight: 600; color: var(--h-muted); }
.nxp-native { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none !important; overflow: hidden; clip: rect(0 0 0 0); }
.nxp { position: relative; }
.nxp-trigger { width: 100%; display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--h-line2); background: var(--h-side); color: var(--h-text); font: inherit; text-align: left; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.nxp-trigger:hover { border-color: color-mix(in srgb, var(--h-text) 20%, var(--h-line)); }
.nxp-trigger:focus-visible, .nxp.is-open .nxp-trigger { outline: none; border-color: var(--h-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--h-accent) 18%, transparent); }
.nxp-value { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; }
.nxp-text { flex: 1; min-width: 0; display: grid; gap: 1px; }
.nxp-text b { font-size: 14px; font-weight: 650; color: var(--h-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nxp-text small { font: 11.5px ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--h-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nxp-placeholder { color: var(--h-muted) !important; font-weight: 600 !important; }
.nxp-chevron { flex: none; font-size: 18px; line-height: 1; color: var(--h-muted); transition: transform .15s; margin-top: -6px; }
.nxp.is-open .nxp-chevron { transform: rotate(180deg); margin-top: 6px; }
.nxp-avatar { flex: none; width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; letter-spacing: -.02em; color: hsl(var(--h) 90% 78%); background: hsl(var(--h) 45% 16%); border: 1px solid hsl(var(--h) 45% 26%); }
.nxp-avatar--empty { color: var(--h-muted); background: var(--h-card); border: 1px dashed var(--h-line2); font-weight: 400; }
.nxp-badge { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; white-space: nowrap; color: var(--h-muted); background: color-mix(in srgb, var(--h-muted) 12%, transparent); }
.nxp-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.nxp-badge--premium { color: var(--h-good); background: color-mix(in srgb, var(--h-good) 12%, transparent); }
.nxp-badge--unlimited { color: var(--h-accent-text); background: color-mix(in srgb, var(--h-accent) 15%, transparent); }
.nxp-badge--expired { color: #fbbf24; background: rgba(251, 191, 36, .1); }

.nxp-panel { position: absolute; z-index: 60; left: 0; right: 0; top: calc(100% + 8px); display: flex; flex-direction: column; max-height: min(460px, 70vh); border-radius: 16px; border: 1px solid var(--h-line2); background: var(--h-card); box-shadow: 0 30px 80px rgba(0, 0, 0, .55); overflow: hidden; outline: none; }
.nxp-panel[hidden], .nxp-backdrop[hidden] { display: none !important; }
.nxp-sheet-head { display: none; }
.nxp-search { display: flex !important; flex-direction: row !important; align-items: center; gap: 10px; margin: 12px 12px 0; padding: 0 12px; height: 44px; border-radius: 11px; border: 1px solid var(--h-line); background: var(--h-side); }
.nxp-search:focus-within { border-color: var(--h-accent); }
.nxp-search-icon { color: var(--h-muted); font-size: 18px; }
.nxp-search input { flex: 1; min-width: 0; width: auto !important; height: 100% !important; min-height: 0 !important; padding: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; color: var(--h-text); font: inherit; font-size: 14px; outline: none; }
.nxp-chips { display: flex; gap: 6px; padding: 10px 12px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--h-line); }
.nxp-chip { flex: none; display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--h-line); background: transparent; color: var(--h-muted); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.nxp-chip em { font-style: normal; font-size: 11px; color: var(--h-dim); font-variant-numeric: tabular-nums; }
.nxp-chip[aria-pressed="true"] { background: var(--h-accent-soft); border-color: color-mix(in srgb, var(--h-accent) 45%, transparent); color: var(--h-accent-text); }
.nxp-chip[aria-pressed="true"] em { color: var(--h-accent-text); }
.nxp-list { flex: 1; margin: 0; padding: 6px; list-style: none; overflow-y: auto; overscroll-behavior: contain; }
.nxp-option { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 12px; cursor: pointer; }
.nxp-option.is-active { background: color-mix(in srgb, var(--h-text) 5%, transparent); }
.nxp-option[aria-selected="true"] { background: var(--h-accent-soft); }
.nxp-option.is-inactive .nxp-avatar { filter: grayscale(.8); opacity: .6; }
.nxp-check { flex: none; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; background: var(--h-accent); color: var(--h-on-accent); }
.nxp-empty { padding: 28px 12px; text-align: center; color: var(--h-muted); font-size: 13px; }
.nxp-foot { padding: 9px 14px; border-top: 1px solid var(--h-line); font-size: 11.5px; color: var(--h-dim); }

/* Phones: bottom sheet */
@media (max-width: 640px) {
  html.nxp-lock, html.nxp-lock body { overflow: hidden; }
  .nxp-backdrop { position: fixed; inset: 0; z-index: 1000; background: rgba(0, 0, 0, .6); backdrop-filter: blur(2px); animation: nxp-fade .15s ease-out; }
  .nxp-panel { position: fixed; z-index: 1001; left: 0; right: 0; top: auto; bottom: 0; max-height: 86vh; border-radius: 22px 22px 0 0; border-bottom: 0; padding-bottom: env(safe-area-inset-bottom); animation: nxp-up .2s ease-out; }
  .nxp-sheet-head { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; padding: 10px 12px 2px; position: relative; }
  .nxp-sheet-head b { grid-column: 2; text-align: center; font-size: 16px; color: var(--h-text); }
  .nxp-grabber { position: absolute; top: 6px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 2px; background: var(--h-line2); }
  .nxp-close { grid-column: 3; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--h-side); color: var(--h-muted); font-size: 14px; cursor: pointer; }
  .nxp-option { padding: 11px 10px; }
  .nxp-option .nxp-badge { max-width: 46%; overflow: hidden; text-overflow: ellipsis; }
  .nxp-trigger .nxp-badge { display: none; }
}
@keyframes nxp-up { from { transform: translateY(24px); opacity: .6; } }
@keyframes nxp-fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .nxp-panel, .nxp-backdrop { animation: none; } }
html[data-nodexa-appearance] #dashboard #ownerPremiumPicker .nxp-search input[type="search"], html #dashboard #ownerPremiumPicker .nxp-search input[type="search"]:focus, #ownerPremiumPicker .nxp-search input { border: 0 !important; box-shadow: none !important; outline: none !important; background: transparent !important; }
/* Let the dropdown escape the card it sits in. */
:is(.panel, .owner-shortcuts-card, .admin-settings-form):has(.nxp.is-open) { overflow: visible !important; position: relative; z-index: 20; }

/* Hero preview of the V5 dashboard: server rail · module column · content */
.nxh-preview--v5 { grid-template-columns: 58px 168px minmax(0, 1fr); }
.nxh-pv-rail { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 0; background: #060607; border-right: 1px solid var(--h-line); }
.nxh-pv-rail span { position: relative; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--h-card); color: var(--h-muted); font-size: 11px; font-weight: 700; }
.nxh-pv-rail .nxh-pv-home { border-radius: 12px; background: var(--h-accent); color: #0b0b0d; font-size: 16px; font-weight: 900; }
.nxh-pv-rail .is-active { border-radius: 12px; background: var(--h-accent); color: #0b0b0d; }
.nxh-pv-rail .is-active::before { content: ""; position: absolute; left: -11px; top: 6px; bottom: 6px; width: 4px; border-radius: 0 3px 3px 0; background: var(--h-accent); }
.nxh-pv-rail .add { color: var(--h-accent); font-size: 18px; font-weight: 400; }
.nxh-pv-rail .sep { width: 22px; height: 2px; border-radius: 1px; background: var(--h-line); }
.nxh-pv-col { display: flex; flex-direction: column; gap: 3px; padding: 0 8px 12px; background: #0c0c0f; border-right: 1px solid var(--h-line); min-width: 0; }
.nxh-pv-head { margin: 0 -8px 6px; padding: 12px 12px 10px; border-bottom: 1px solid var(--h-line); }
.nxh-pv-head b { display: block; font-size: 13px; color: var(--h-text); }
.nxh-pv-head small { font-size: 10px; color: #71717a; }
.nxh-pv-label { margin: 8px 6px 2px; font-size: 9px; font-weight: 700; letter-spacing: .06em; color: #71717a; }
.nxh-pv-col > span { display: flex; align-items: center; gap: 7px; padding: 6px; border-radius: 7px; font-size: 11.5px; color: var(--h-muted); white-space: nowrap; overflow: hidden; }
.nxh-pv-col > span i { width: 12px; height: 12px; flex: none; border-radius: 3px; border: 1.5px solid currentColor; opacity: .7; }
.nxh-pv-col > span em { margin-left: auto; font-style: normal; font-size: 8.5px; font-weight: 700; color: #52525b; }
.nxh-pv-col > span em.on { color: var(--h-good); }
.nxh-pv-col > span.is-active { background: color-mix(in srgb, var(--h-accent) 14%, transparent); color: var(--h-text); }
.nxh-pv-col > span.is-active i { color: var(--h-accent); opacity: 1; }
.nxh-preview--v5 .nxh-preview-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 620px) {
  .nxh-preview--v5 { grid-template-columns: 50px minmax(0, 1fr); }
  .nxh-preview--v5 .nxh-pv-col { display: none; }
  .nxh-preview--v5 .nxh-pv-rail { display: flex; }
}

/* v5.40.0 — Twitch editor access (Channel Points) */
#twitchChannelPointsView .tcp-channel-switch{display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding:12px 14px;margin:0 0 14px;border:1px solid rgba(249,115,22,.28);border-radius:12px;background:rgba(249,115,22,.06)}
#twitchChannelPointsView .tcp-channel-switch[hidden]{display:none}
#twitchChannelPointsView .tcp-channel-switch label{display:flex;align-items:center;gap:10px;margin:0;flex:0 1 340px;min-width:0}
#twitchChannelPointsView .tcp-channel-switch label span{font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--muted,#a1a1a5)}
#twitchChannelPointsView .tcp-channel-switch select{flex:1;min-width:0}
#twitchChannelPointsView .tcp-editor-note{margin:0;flex:1 1 260px;font-size:12px;line-height:1.45;color:#fdba74}
#twitchChannelPointsView.tcp-editor-mode :is(.tcp-first-card,.tcp-rank-card,#tcpEditorAccessCard){display:none!important}
#twitchChannelPointsView .tcp-editors-card[hidden]{display:none}
#twitchChannelPointsView .tcp-editors-card{display:grid;gap:12px}
#twitchChannelPointsView .tcp-editor-list{display:flex;flex-wrap:wrap;gap:8px}
#twitchChannelPointsView .tcp-editor-chip{padding:5px 10px;border-radius:999px;font-size:12px;font-weight:600;background:rgba(249,115,22,.12);color:#fb923c;border:1px solid rgba(249,115,22,.3)}
#twitchChannelPointsView .tcp-editor-log-title{margin:6px 0 0;font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted,#a1a1a5)}
#twitchChannelPointsView .tcp-editor-log{display:grid;gap:6px;max-height:320px;overflow:auto}
#twitchChannelPointsView .tcp-editor-log-item{display:flex;justify-content:space-between;gap:12px;padding:9px 12px;border-radius:10px;font-size:12.5px;background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.06)}
#twitchChannelPointsView .tcp-editor-log-item time{flex:none;color:var(--muted,#a1a1a5);font-size:11.5px}
html[data-nodexa-theme="clean-light"] #twitchChannelPointsView .tcp-editor-note{color:#c2410c}
html[data-nodexa-theme="clean-light"] #twitchChannelPointsView .tcp-editor-chip{color:#c2410c}
html[data-nodexa-theme="clean-light"] #twitchChannelPointsView .tcp-editor-log-item{background:#fff;border-color:rgba(28,25,23,.08)}
@media (max-width:640px){#twitchChannelPointsView .tcp-channel-switch label{flex:1 1 100%}#twitchChannelPointsView .tcp-editor-log-item{flex-direction:column;gap:2px}}

/* v5.41.0 — Giveaway role limits */
.giveawaybot-roles-field{display:grid;gap:8px}
.giveawaybot-roles-label{font-size:12px;font-weight:700;color:var(--text,#f4f4f5)}
.giveawaybot-roles-field>small{color:var(--muted,#a1a1a5);font-size:12px;line-height:1.45}
.giveawaybot-roles-search{max-width:320px}
.giveawaybot-role-picker{display:flex;flex-wrap:wrap;gap:8px;max-height:216px;overflow:auto;padding:2px}
.giveawaybot-role-chip{position:relative;cursor:pointer;margin:0}
.giveawaybot-role-chip input{position:absolute;opacity:0;pointer-events:none}
.giveawaybot-role-chip span{display:inline-flex;align-items:center;gap:8px;padding:7px 12px;border-radius:999px;font-size:12.5px;font-weight:600;border:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.03);color:var(--text,#e4e4e7);transition:background .15s,border-color .15s,transform .1s}
.giveawaybot-role-chip span i{width:9px;height:9px;border-radius:50%;flex:none}
.giveawaybot-role-chip:hover span{border-color:rgba(249,115,22,.45)}
.giveawaybot-role-chip input:focus-visible+span{outline:2px solid #f97316;outline-offset:2px}
.giveawaybot-role-chip input:checked+span{background:rgba(249,115,22,.16);border-color:#f97316;color:#fdba74}
.giveawaybot-role-chip input:checked+span::after{content:"✓";font-weight:800;margin-left:2px}
.giveawaybot-role-chip:active span{transform:scale(.97)}
.giveawaybot-roles-summary{font-weight:600;color:var(--muted,#a1a1a5)}
.giveawaybot-roles-summary.is-limited{color:#fb923c}
.giveawaybot-role-badge{color:#fb923c}
html[data-nodexa-theme="clean-light"] .giveawaybot-role-chip span{background:#fff;border-color:rgba(28,25,23,.12);color:#1c1917}
html[data-nodexa-theme="clean-light"] .giveawaybot-role-chip input:checked+span{background:#fff7ed;color:#c2410c}
html[data-nodexa-theme="clean-light"] :is(.giveawaybot-roles-summary.is-limited,.giveawaybot-role-badge){color:#c2410c}
/* v5.45.0: role chips keep the role's own spelling inside settings forms. */
.ticket-settings-form .giveawaybot-role-chip span { text-transform: none !important; letter-spacing: normal !important; font-size: 12.5px !important; }
