body.ui-skin {
  --ui-ground: #100e0c;
  --ui-header-height: 2.5rem;
  --ui-panel: #1c1713;
  --ui-inset: #14110e;
  --ui-raised: #292019;
  --ui-text: #fff4e7;
  --ui-muted: #cbb298;
  --ui-dim: #a78e77;
  --ui-orange: #f7931a;
  --ui-bright: #ffa63e;
  --ui-line: #e3b47d26;
  --ui-edge: #f7931a55;
  --ui-glass: linear-gradient(145deg, #382619d9, #1c1713ed 65%);
  --ui-glass-quiet: linear-gradient(165deg, #2c231cdb, #171310f2);
  --ui-shadow: 0 14px 40px #0004, inset 0 1px #ffe4bd0d;
  --ui-pop-shadow: 0 18px 55px #0007, 0 0 0 1px #0002, inset 0 1px #ffd29d18;
  --ui-blur: blur(22px) saturate(1.2);
  --ui-button-edge: #f7931a29;
  --ui-button-glow: 0 0 2px #f7931a29, inset 0 0 2px #f7931a29;
  --ui-button-glow-hover: 0 0 3px #f7931a33, inset 0 0 2px #f7931a29;
  --ui-button-rest: linear-gradient(#f7931a12, #f7931a12);
  --ui-button-hover: linear-gradient(#f7931a24, #f7931a24);
  --ui-button-active: linear-gradient(#f7931a33, #f7931a33);
  background: radial-gradient(ellipse at 12% 0%, #bd581018, transparent 48%), var(--ui-ground);
}

body.ui-skin > header,
body.ui-skin #content > header {
  position: relative;
  background: linear-gradient(100deg, #2b2018e8, #171310eb 72%);
  border-bottom: 1px solid var(--ui-edge);
  box-shadow: 0 3px 18px #0002, inset 0 1px #ffe4bd08;
  backdrop-filter: var(--ui-blur);
  -webkit-backdrop-filter: var(--ui-blur);
}

body.ui-skin .logo {
  color: var(--ui-bright);
  font-weight: 800;
  letter-spacing: -.05em;
  text-shadow: 0 0 22px #f7931a26;
  text-decoration: none;
}

body.ui-skin > header nav,
body.ui-skin #content > header nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

body.ui-skin > header nav a,
body.ui-skin #content > header nav a {
  display: inline-flex;
  align-items: center;
  margin-right: 0;
  padding: 7px 11px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--ui-muted);
  font-weight: 550;
  text-decoration: none;
  transition: color .16s, background .16s, border-color .16s;
}

body.ui-skin > header nav a:hover,
body.ui-skin #content > header nav a:hover,
body.ui-skin nav a[aria-current="page"] {
  background: #f7931a10;
  border-color: var(--ui-line);
  color: var(--ui-bright);
}

body.ui-skin .logo:focus-visible,
body.ui-skin nav a:focus-visible {
  outline: 2px solid var(--ui-bright);
  outline-offset: 3px;
}

body.ui-stream #content > header,
body.ui-skin #chat-header {
  height: var(--ui-header-height);
  min-height: var(--ui-header-height);
  padding-block: 0;
}

body.ui-stream #content > header .logo {
  flex-shrink: 0;
  line-height: 1;
}

body.ui-stream #content > header nav {
  min-width: 0;
  flex-wrap: nowrap;
  overflow-x: auto;
}

body.ui-stream #content > header nav a {
  flex-shrink: 0;
  font-size: 13px;
  line-height: 1.25;
  white-space: nowrap;
}

body.ui-skin #main-area {
  background: radial-gradient(ellipse at top left, #f7931a08, transparent 52%);
}

.ui-stream .main-stream,
.ui-stream .featured {
  border-radius: 14px;
  background: linear-gradient(155deg, #2a201b8c, #171310e6);
  box-shadow: 0 0 0 1px var(--ui-line), 0 8px 25px #0002;
}

.ui-stream .main-stream > h2,
.ui-stream .featured > h2 {
  padding-top: 4px;
  color: var(--ui-muted);
  font-weight: 700;
  letter-spacing: .1em;
}

.ui-stream #main-section > h2 {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  min-height: 34px;
  margin: -4px -12px 10px;
  padding: 4px 18px;
  border-radius: 14px 14px 0 0;
  border-bottom: 1px solid #f7931a45;
  background: radial-gradient(ellipse at 15% 0%, #ffad4724, transparent 60%), linear-gradient(115deg, #42271585, #201811b8 60%, #f7931a12);
  box-shadow: inset 0 1px #ffdba32e, 0 4px 20px #0002;
  font-size: 18px;
  line-height: 1.4;
  letter-spacing: .035em;
}

.ui-stream #main-section > h2::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 18px;
  right: 18px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #ffb454aa 25%, #ffe5bcdd 50%, #f7931a88 75%, transparent);
  pointer-events: none;
}

.ui-stream #main-section .stream-head-name {
  flex: 1 1 440px;
  flex-wrap: wrap;
  gap: 5px 10px;
  overflow: visible;
  white-space: normal;
  line-height: 1.5;
}

.ui-stream #main-section .stream-head-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffd49a;
  font-weight: 850;
  letter-spacing: .09em;
  white-space: nowrap;
  text-shadow: 0 0 16px #f7931a30;
}

.ui-stream #main-section .stream-head-channel {
  color: #d8b9ff;
  text-decoration: none;
  text-transform: none;
  font-weight: 750;
  letter-spacing: -.02em;
  overflow-wrap: anywhere;
}

.ui-stream #main-section a.stream-head-channel:hover,
.ui-stream #main-section a.stream-head-channel:focus-visible {
  color: #eddfff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.ui-stream #main-section .stream-head-playing {
  color: var(--ui-muted);
  text-transform: none;
  font-weight: 500;
  letter-spacing: 0;
}

.ui-stream #main-section .stream-head-game {
  color: var(--ui-bright);
  text-transform: none;
  font-weight: 700;
  letter-spacing: -.02em;
  overflow-wrap: anywhere;
}

.ui-stream #main-section #stream-title {
  flex: 0 1 auto;
  max-width: 100%;
  padding: 0 0 0 16px;
  border-left: 2px solid #f7931a70;
  color: #ffe2b5;
  background: linear-gradient(110deg, #fff0d5, #ffbf6b 55%, #ffe7c1);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 21px;
  line-height: 1.35;
  font-weight: 800;
  font-style: italic;
  letter-spacing: -.025em;
  text-align: left;
  white-space: normal;
  overflow: visible;
  overflow-wrap: anywhere;
  text-shadow: 0 2px 15px #ff9c2128;
}

@keyframes stream-title-wave {
  from { background-position: 0% 50%; }
  to { background-position: 100% 50%; }
}

@media (prefers-reduced-motion: no-preference) {
  .ui-stream #main-section #stream-title {
    background-size: 220% 100%;
    background-repeat: no-repeat;
    animation: stream-title-wave 12s steps(180, end) infinite alternate paused;
  }

  .ui-stream #main-section #stream-title.title-gradient-active {
    animation-play-state: running;
  }
}

.ui-stream #main-section .stream-head-spacer {
  display: none;
}

@media (max-width: 700px) {
  .ui-stream #main-section > h2 {
    gap: 10px;
    padding: 8px 14px;
  }

  .ui-stream #main-section #stream-title {
    flex-basis: 100%;
    padding-left: 12px;
  }
}

.ui-stream .section-header {
  gap: 10px;
  margin-bottom: 13px;
}

.ui-stream .section-header::after {
  content: '';
  flex: 1;
  height: 1px;
  margin-left: 3px;
  background: linear-gradient(90deg, var(--ui-edge), transparent);
}

.ui-stream .section-title {
  color: var(--ui-bright);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.ui-stream .grid {
  gap: 14px;
}

.ui-stream .card,
.ui-stream .featured-card {
  padding: 16px;
  border: 1px solid var(--ui-line);
  border-radius: 12px;
  background: linear-gradient(135deg, #39271966, #1c1713d9 70%);
  box-shadow: inset 0 1px #ffe4bd0a, 0 5px 18px #0002;
  transition: border-color .18s, background .18s, box-shadow .18s;
}

.ui-stream .card:hover,
.ui-stream .featured-card:hover {
  border-color: var(--ui-edge);
  background: linear-gradient(135deg, #55351c66, #231a14ed 70%);
  box-shadow: 0 8px 25px #0004, inset 0 1px #ffe4bd14;
}

.ui-stream .card.offline {
  opacity: .72;
  background: linear-gradient(145deg, #231d1880, #171310b3);
}

.ui-stream .card.offline:hover {
  opacity: 1;
}

.ui-stream .card-name,
.ui-stream .featured-name {
  color: var(--ui-text);
  font-weight: 650;
  letter-spacing: -.015em;
}

.ui-stream .card-status,
.ui-stream .featured-status,
.ui-stream .featured-empty {
  color: var(--ui-dim);
}

body.ui-skin #chat {
  --fg: var(--ui-text);
  --dim: var(--ui-dim);
  --surface: var(--ui-inset);
  --raised: var(--ui-raised);
  --hairline: var(--ui-line);
  --text: var(--ui-text);
  --text-dim: var(--ui-muted);
  --text-muted: var(--ui-dim);
  --border: var(--ui-line);
  --input-bg: var(--ui-inset);
  --input-border: var(--ui-line);
  color: var(--ui-text);
  background: linear-gradient(180deg, #241c16c9, #15110ff5 180px);
  border-color: var(--ui-line);
}

body.ui-skin #chat-header {
  background: linear-gradient(100deg, #50301966, #251b14e6);
  border-bottom-color: var(--ui-edge);
  box-shadow: 0 2px 12px #0002;
}


body.ui-skin #chat-resize,
body.ui-skin #split-divider {
  background: var(--ui-line);
}

body.ui-skin #chat-resize:hover,
body.ui-skin #split-divider:hover {
  background: var(--ui-orange);
}

body.ui-skin #messages,
body.ui-skin #twitch-messages,
body.ui-skin #local-messages {
  scrollbar-color: #775335 transparent;
}

body.ui-skin .msg.alt {
  background: #f7931a08;
}

body.ui-skin #chat-input {
  padding: 5.5px 10px;
  background: linear-gradient(180deg, #2e22174d, #211810bf);
  border-top-color: var(--ui-line);
  box-shadow: 0 -5px 20px #0001;
}

body.ui-skin #msg-input {
  border-color: #e3b47d33;
  border-radius: 11px;
  background: #100d0ba6;
  box-shadow: inset 0 2px 6px #0003, 0 1px #ffe4bd08;
  transition: border-color .18s, box-shadow .18s;
}

body.ui-skin #msg-input:focus {
  border-color: #f7931a99;
  box-shadow: 0 0 0 3px #f7931a0d, inset 0 2px 6px #0002;
}

body.ui-skin #chat-pinned {
  margin: 8px 10px;
  padding: 10px 12px;
  border: 1px solid var(--ui-line);
  border-left: 3px solid var(--ui-orange);
  border-radius: 10px;
  background: linear-gradient(110deg, #f7931a12, #211a1499);
}

body.ui-skin #pending-reply {
  border-left-color: var(--ui-button-edge);
  box-shadow: var(--ui-button-glow);
  border-radius: 8px;
  background: #f7931a0d;
}

body.ui-skin :is(#viewer-list-popup, #stage-dropdown, #stage-invite-popup, #twitch-popup, #mention-popup, #ban-popup, .chat-context-popover, .info-tooltip) {
  background: var(--ui-glass-quiet);
  border: 1px solid var(--ui-edge);
  box-shadow: var(--ui-pop-shadow);
  backdrop-filter: var(--ui-blur);
  -webkit-backdrop-filter: var(--ui-blur);
  color: var(--ui-text);
}

body.ui-skin #viewer-list-popup {
  padding: 15px;
  border-radius: 16px;
  background: radial-gradient(ellipse at top left, #e8861914, transparent 65%), #1d1814eb;
}

body.ui-skin :is(.viewer-category-title, .emoji-category-title, #stage-dropdown .stage-title) {
  color: var(--ui-bright);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .1em;
}

body.ui-skin .viewer-name {
  padding: 6px 7px;
  border-radius: 7px;
  color: var(--ui-text);
}

body.ui-skin .viewer-name:hover {
  background: #f7931a0e;
}

body.ui-skin #stage-dropdown {
  min-width: 210px;
  padding: 15px;
  border-radius: 16px;
  border-top: 2px solid var(--ui-orange);
}

body.ui-skin #stage-invite-popup {
  border-radius: 13px;
  background: linear-gradient(125deg, #6a3a1acf, #241912f0);
}

body.ui-skin #twitch-popup {
  background: radial-gradient(ellipse at top right, #9147ff1c, transparent 70%), #211a18f0;
  border-color: #c09bdc55;
}

body.ui-skin #mention-popup {
  border-radius: 10px;
  padding: 4px;
}

body.ui-skin .chat-context-popover {
  border-radius: 14px;
  background: linear-gradient(160deg, #37271df2, #18130ff2);
}

body.ui-skin :is(.chat-context-actions, .chat-context-reaction-picker, .chat-inline-actions) {
  border-color: var(--ui-line);
}

body.ui-skin .chat-inline-actions {
  border-color: var(--ui-button-edge);
  border-radius: 9px;
  background: #2a1e16ed;
  box-shadow: var(--ui-button-glow), 0 4px 16px #0004;
}

body.ui-skin #settings-overlay {
  background: #100b0780;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

body.ui-skin :is(#settings-menu, #streamer-menu) {
  border: 1px solid #f7931a66;
  border-radius: 18px;
  background: radial-gradient(ellipse at top right, #f7931a1c, transparent 58%), var(--ui-glass);
  box-shadow: var(--ui-pop-shadow);
  backdrop-filter: var(--ui-blur);
  -webkit-backdrop-filter: var(--ui-blur);
  padding: 18px;
  scrollbar-color: #775335 transparent;
}

body.ui-skin:not(.ui-admin) :is(#settings-menu, #streamer-menu) {
  right: 10px;
  width: calc(100% - 20px);
  overscroll-behavior: contain;
}

body.ui-skin #streamer-menu {
  top: 48px;
  max-height: calc(100% - 64px);
  gap: 12px;
  background: radial-gradient(ellipse at top right, #f7931a26, transparent 48%), var(--ui-glass);
  border-color: var(--ui-button-edge);
}

body.ui-skin .streamer-panel-heading {
  position: sticky;
  top: -18px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: -18px -18px 0;
  padding: 18px;
  border-bottom: 1px solid var(--ui-line);
  background: #241b14eb;
  backdrop-filter: var(--ui-blur);
  -webkit-backdrop-filter: var(--ui-blur);
}

body.ui-skin .streamer-eyebrow {
  color: var(--ui-orange);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
}

body.ui-skin #streamer-panel-title {
  margin: 4px 0 0;
  color: var(--ui-text);
  font-size: 21px;
  font-weight: 750;
  letter-spacing: -.035em;
}

body.ui-skin #streamer-menu .streamer-panel-close {
  flex: 0 0 32px;
  width: 32px;
  padding: 0;
  font-size: 22px;
  line-height: 1;
}

body.ui-skin #streamer-menu .streamer-section {
  flex-shrink: 0;
  min-width: 0;
  margin: 0;
  padding: 13px;
  border: 1px solid var(--ui-button-edge);
  border-radius: 13px;
  background: linear-gradient(145deg, #ffe0b707, #120e0b45);
  box-shadow: inset 0 1px #ffe4bd08;
}

body.ui-skin #streamer-menu .streamer-section > * + * {
  margin-top: 10px;
}

body.ui-skin #streamer-menu .settings-title {
  display: block;
  margin: 0 0 10px;
  padding: 0;
  border: 0;
  line-height: 1.5;
}

body.ui-skin :is(.streamer-help, #streamer-menu .bobs-help, #streamer-menu .bobs-offer-meta, #earnings-recent) {
  color: var(--ui-muted);
  font-size: 12px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

body.ui-skin .streamer-help {
  margin: 0;
}

body.ui-skin .streamer-field-label {
  display: block;
  color: var(--ui-muted);
  font-size: 11px;
  font-weight: 650;
}

body.ui-skin #streamer-menu .setting-row {
  gap: 12px;
  min-width: 0;
  padding: 3px 0;
}

body.ui-skin #streamer-menu .setting-label {
  min-width: 0;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

body.ui-skin #streamer-menu :is(input[type="text"], input[type="search"]) {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 38px;
  padding: 9px 11px;
  font-size: 13px;
}

body.ui-skin #streamer-menu .streamer-credential {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
}

body.ui-skin .streamer-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

body.ui-skin :is(#streamer-menu, .streamer-confirm-card) .auth-btn {
  min-height: 32px;
  margin: 0;
  padding: 7px 11px;
  white-space: normal;
  line-height: 1.4;
}

body.ui-skin #streamer-menu .streamer-panel-close.auth-btn {
  height: 32px;
  min-height: 32px;
  padding: 0;
  line-height: 1;
}

body.ui-skin #streamer-menu .streamer-avatar:has(img[hidden]):has(#avatar-file-name:empty) {
  display: none;
}

body.ui-skin #streamer-menu [hidden] {
  display: none !important;
}

body.ui-skin #streamer-menu input[type="checkbox"] {
  color-scheme: dark;
}

body.ui-skin #streamer-menu .whitelist-chip {
  border: 1px solid var(--ui-button-edge);
  background: #21170f80;
  color: var(--ui-text);
}

body.ui-skin .streamer-key-actions {
  padding-top: 12px;
  border-top: 1px solid var(--ui-line);
}

body.ui-skin #streamer-menu .toggle-switch:focus-within .toggle-slider {
  outline: 2px solid var(--ui-orange);
  outline-offset: 3px;
}

body.ui-skin #streamer-menu :is(.mod-header, .mod-row) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px 46px 26px;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
}

body.ui-skin #streamer-menu :is(.mod-header, .mod-row) > span {
  width: auto;
  min-width: 0;
  padding: 0;
}

body.ui-skin #streamer-menu .mod-header {
  color: var(--ui-muted);
  font-size: 10px;
}

body.ui-skin #streamer-menu .mod-row {
  border-top: 1px solid var(--ui-line);
}

body.ui-skin #streamer-menu .mod-name {
  color: var(--ui-text);
  font-size: 12px;
  overflow-wrap: anywhere;
}

body.ui-skin #streamer-menu .mod-remove button {
  width: 26px;
  height: 28px;
  padding: 0;
}

body.ui-skin #streamer-menu :is(#mod-search-results, #whitelist-search-results) {
  display: grid;
  gap: 5px;
  background: transparent;
  border-radius: 8px;
}

body.ui-skin #streamer-menu :is(.mod-search-item, .whitelist-search-item) {
  width: 100%;
  text-align: left;
  overflow-wrap: anywhere;
}

body.ui-skin #streamer-menu :is(#mod-search-results, #whitelist-search-results, #avatar-status, #bobs-dashboard-status):empty {
  display: none;
}

body.ui-skin #avatar-preview {
  flex-shrink: 0;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--ui-button-edge);
}

body.ui-skin #streamer-menu #bobs-variant-form {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

body.ui-skin #streamer-menu #bobs-variant-form legend {
  padding: 0 0 8px;
  color: var(--ui-muted);
  font-size: 11px;
}

body.ui-skin #streamer-menu .bobs-offer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0;
  padding: 10px;
  border: 1px solid var(--ui-button-edge);
  border-radius: 10px;
  cursor: pointer;
}

body.ui-skin #streamer-menu .bobs-offer:has(input:checked) {
  border-color: #f7931a66;
  background: #f7931a12;
}

body.ui-skin #streamer-menu .bobs-offer input {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
}

body.ui-skin #earnings-total {
  color: var(--ui-bright);
  font-size: 24px;
  font-weight: 750;
  letter-spacing: -.025em;
}

body.ui-skin .streamer-confirm-card {
  box-sizing: border-box;
  width: min(420px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  overflow: auto;
  padding: 24px;
  border: 1px solid var(--ui-button-edge);
  border-radius: 18px;
  background: radial-gradient(ellipse at top right, #f7931a24, transparent 65%), var(--ui-glass);
  box-shadow: var(--ui-pop-shadow);
  backdrop-filter: var(--ui-blur);
  -webkit-backdrop-filter: var(--ui-blur);
}

body.ui-skin .streamer-confirm-card > * + * {
  margin-top: 16px;
}

body.ui-skin .streamer-confirm-card h3 {
  margin: 0;
  color: var(--ui-text);
  font-size: 20px;
  letter-spacing: -.025em;
}

body.ui-skin .streamer-confirm-note {
  color: var(--ui-bright);
  font-size: 12px;
  line-height: 1.5;
}

body.ui-admin #streamer-menu-close {
  display: none;
}

body.ui-admin #streamer-menu .streamer-panel-heading {
  position: static;
  margin: 0 0 14px;
  padding: 0 0 14px;
  background: transparent;
}

body.ui-admin #streamer-menu .streamer-section + .streamer-section {
  margin-top: 12px;
}

body.ui-skin .settings-title {
  padding-bottom: 8px;
  margin-bottom: 7px;
  border-bottom: 1px solid var(--ui-line);
  color: var(--ui-bright);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

body.ui-skin .setting-row {
  min-height: 31px;
}

body.ui-skin .setting-label {
  color: var(--ui-muted);
  font-size: 12px;
}

body.ui-skin :is(#settings-menu, #streamer-menu, .chat-report-dialog, .tip-modal-content, .admin-field, .form-group, .stream-key-controls, .invite-section) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]):not([type="hidden"]), select, textarea),
body.ui-skin :is(#emoji-search input, .emoji-picker-search) {
  border: 1px solid #e3b47d33;
  border-radius: 9px;
  background-color: #110e0baa;
  color: var(--ui-text);
  box-shadow: inset 0 2px 5px #0002, 0 1px #ffe4bd08;
  transition: border-color .16s, box-shadow .16s;
}

body.ui-skin :is(#settings-menu, #streamer-menu, .chat-report-dialog, .tip-modal-content, .admin-field, .form-group, .stream-key-controls, .invite-section) :is(input, select, textarea):focus-visible,
body.ui-skin :is(#emoji-search input, .emoji-picker-search):focus-visible {
  border-color: var(--ui-orange);
  outline: 2px solid #f7931a44;
  outline-offset: 2px;
}

body.ui-skin :is(#settings-menu, #streamer-menu, .chat-report-dialog, .tip-modal-content, .admin-field, .form-group) :is(input, textarea)::placeholder {
  color: #aa9179;
  opacity: .8;
}

body.ui-skin :is(#settings-menu, #streamer-menu) select option,
body.ui-skin :is(.admin-field, .form-group) select option {
  background: var(--ui-panel);
  color: var(--ui-text);
}

body.ui-skin :is(#settings-menu, #streamer-menu) input[type="checkbox"],
body.ui-skin .chat-report-categories input,
body.ui-admin input[type="checkbox"] {
  accent-color: var(--ui-orange);
}

body.ui-skin .toggle-slider {
  background: #35291f;
  box-shadow: inset 0 1px 3px #0004;
}

body.ui-skin .toggle-switch input:checked + .toggle-slider {
  background: linear-gradient(120deg, #cf6914, #ffad47);
}

body.ui-skin :is(
  button, [role="button"], .btn, .auth-btn, .info-icon, .msg-reply,
  .pending-reply-cancel, .stage-invite-btn, .stage-kick-btn,
  #streamer-menu-btn, #ban-popup .ban-btn, #viewer-count, #stage-header-btn, #twitch-indicator
):not(:where(
  .stream-chrome *, .main-video-wrap *, .featured-video-wrap *,
  .vod-video-wrap *, .stream-quality-picker *
)) {
  --btn-solid: transparent;
  --btn-rest: var(--ui-button-rest);
  --btn-hover: var(--ui-button-hover);
  --btn-active: var(--ui-button-active);
  --btn-border: var(--ui-button-edge);
  --btn-border-hover: #f7931a66;
  --btn-color: var(--ui-bright);
  --btn-color-hover: var(--ui-bright);
  --btn-role-shadow: var(--ui-button-glow);
  --btn-role-shadow-hover: var(--ui-button-glow-hover);
  --btn-shadow-active: var(--ui-button-glow), inset 0 1px 3px #0003;
  --btn-radius: 9px;
  --btn-focus: var(--ui-bright);
  background-color: transparent !important;
  background-image: var(--btn-rest) !important;
  border: 1px solid var(--btn-border) !important;
  border-radius: var(--btn-radius) !important;
  color: var(--btn-color) !important;
  box-shadow: var(--btn-role-shadow);
  transition: background-color .16s, border-color .16s, color .16s, opacity .16s;
}

body.ui-skin :is(
  button, [role="button"], .btn, .auth-btn, .info-icon, .msg-reply,
  .pending-reply-cancel, .stage-invite-btn, .stage-kick-btn,
  #streamer-menu-btn, #ban-popup .ban-btn, #viewer-count, #stage-header-btn, #twitch-indicator
):not(:where(
  .stream-chrome *, .main-video-wrap *, .featured-video-wrap *,
  .vod-video-wrap *, .stream-quality-picker *
)):not(:disabled):not([aria-disabled="true"]):hover {
  background-image: var(--btn-hover) !important;
  border-color: var(--btn-border-hover) !important;
  color: var(--btn-color-hover) !important;
  box-shadow: var(--btn-role-shadow-hover);
}

body.ui-skin :is(
  button, [role="button"], .btn, .auth-btn, .info-icon, .msg-reply,
  .pending-reply-cancel, .stage-invite-btn, .stage-kick-btn,
  #streamer-menu-btn, #ban-popup .ban-btn, #viewer-count, #stage-header-btn, #twitch-indicator
):not(:where(
  .stream-chrome *, .main-video-wrap *, .featured-video-wrap *,
  .vod-video-wrap *, .stream-quality-picker *
)):not(:disabled):not([aria-disabled="true"]):active {
  background-image: var(--btn-active) !important;
  box-shadow: var(--btn-shadow-active);
}

body.ui-skin :is(
  button, [role="button"], .btn, .auth-btn, .info-icon, .msg-reply,
  .pending-reply-cancel, .stage-invite-btn, .stage-kick-btn,
  #streamer-menu-btn, #ban-popup .ban-btn, #viewer-count, #stage-header-btn, #twitch-indicator
):not(:where(
  .stream-chrome *, .main-video-wrap *, .featured-video-wrap *,
  .vod-video-wrap *, .stream-quality-picker *
)):is(.active, .selected, .on, [aria-pressed="true"], [aria-selected="true"], [aria-current="page"]) {
  --btn-rest: var(--ui-button-active);
  --btn-hover: linear-gradient(#f7931a40, #f7931a40);
  --btn-border: #f7931a80;
  --btn-role-shadow: var(--ui-button-glow), inset 0 -2px 1px #ffa63e99;
}

body.ui-skin :is(
  button, [role="button"], .btn, .auth-btn, .info-icon, .msg-reply,
  .pending-reply-cancel, .stage-invite-btn, .stage-kick-btn,
  #streamer-menu-btn, #ban-popup .ban-btn, #viewer-count, #stage-header-btn, #twitch-indicator
):not(:where(
  .stream-chrome *, .main-video-wrap *, .featured-video-wrap *,
  .vod-video-wrap *, .stream-quality-picker *
)):focus-visible {
  outline: 2px solid var(--ui-bright) !important;
  outline-offset: 2px;
}

body.ui-skin :is(
  button, [role="button"], .btn, .auth-btn, .info-icon, .msg-reply,
  .pending-reply-cancel, .stage-invite-btn, .stage-kick-btn,
  #streamer-menu-btn, #ban-popup .ban-btn, #viewer-count, #stage-header-btn, #twitch-indicator
):not(:where(
  .stream-chrome *, .main-video-wrap *, .featured-video-wrap *,
  .vod-video-wrap *, .stream-quality-picker *
)):is(:disabled, [aria-disabled="true"]) {
  opacity: .45;
  cursor: not-allowed;
}

body.ui-skin #chat-header #viewer-count,
body.ui-skin #chat-header #stage-header-btn {
  background: none !important;
  border: 0 !important;
  box-shadow: none;
}

body.ui-skin #chat-header #stage-header-btn .stage-icon {
  display: block;
  width: 18px;
  height: 18px;
  color: #ffd4a0;
}

body.ui-skin #streamer-menu-btn {
  width: 30px;
  height: 30px;
  padding: 0;
  flex-shrink: 0;
}

body.ui-skin #streamer-menu-btn svg {
  width: 18px;
  height: 18px;
}

body.ui-skin #emoji-picker {
  border-color: var(--ui-edge);
  border-radius: 18px;
  background: radial-gradient(ellipse at top left, #f7931a14, transparent 65%), #1b1612ed;
  box-shadow: var(--ui-pop-shadow);
  backdrop-filter: var(--ui-blur);
  -webkit-backdrop-filter: var(--ui-blur);
}

body.ui-skin :is(#emoji-tabs, #gif-provider-tabs) {
  gap: 6px;
  border-color: var(--ui-line);
  background: #ffffff03;
}

body.ui-skin .emoji-item {
  border-color: #e3b47d14;
  background: #ffffff03;
  box-shadow: none;
}

body.ui-skin .emoji-item:hover {
  border-color: var(--ui-edge);
  background: #f7931a12;
}

body.ui-skin :is(.gif-item, .music-request, .bobs-panel, .bobs-offer, .bobs-runtime-row) {
  border-color: var(--ui-line);
  border-radius: 9px;
}

body.ui-skin #music-queue-panel {
  background: linear-gradient(120deg, #342515aa, #1c1713dd);
  border-color: var(--ui-edge);
}

body.ui-skin #music-queue-toggle {
  --btn-color: var(--ui-bright);
  --btn-color-hover: var(--ui-text);
  font-weight: 700;
  letter-spacing: .025em;
}

body.ui-skin :is(#mod-queue-popup, .chat-report-dialog) {
  border: 1px solid #d9925b66;
  border-radius: 16px;
  background: linear-gradient(155deg, #37251eed, #191411f5);
  color: var(--ui-text);
  box-shadow: var(--ui-pop-shadow);
  backdrop-filter: var(--ui-blur);
  -webkit-backdrop-filter: var(--ui-blur);
}

body.ui-skin :is(.mod-queue-heading, .mod-queue-pagination) {
  border-color: var(--ui-line);
}

body.ui-skin .mod-queue-entry {
  border-color: var(--ui-line);
  border-radius: 10px;
  background: #100d0b80;
}

body.ui-skin .chat-report-form h2 {
  color: var(--ui-text);
  letter-spacing: -.025em;
}

body.ui-skin .chat-report-categories span {
  border-color: var(--ui-line);
  border-radius: 9px;
  background: #100d0b66;
  color: var(--ui-muted);
}

body.ui-skin .chat-report-categories input:checked + span {
  border-color: var(--ui-orange);
  background: #f7931a18;
  color: var(--ui-bright);
}

body.ui-skin :is(.tip-modal-backdrop, .whats-new-backdrop),
body.ui-skin .chat-report-dialog::backdrop {
  background: #100b07b8;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

body.ui-skin .tip-modal-content {
  border: 1px solid #f7931a66;
  border-radius: 22px;
  background: radial-gradient(ellipse at top, #f7931a24, transparent 68%), #21170fed;
  box-shadow: 0 24px 80px #0008, inset 0 1px #ffdfb51a;
  backdrop-filter: var(--ui-blur);
  -webkit-backdrop-filter: var(--ui-blur);
  color: var(--ui-text);
}

body.ui-skin :is(.tip-modal-content, .overlay-content) {
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

body.ui-skin .tip-modal-header {
  color: var(--ui-bright);
  font-weight: 750;
  letter-spacing: -.02em;
}

body.ui-skin .tip-modal-amount {
  color: #ffd09a;
  font-size: 28px;
  font-variant-numeric: tabular-nums;
}

body.ui-skin .whats-new-card {
  border: 1px solid #f7931a55;
  border-radius: 24px;
  background: radial-gradient(ellipse at top right, #f7931a1f, transparent 55%), #211a14f2;
  color: var(--ui-text);
  box-shadow: 0 24px 80px #0008, inset 0 1px #ffdfb51a;
  backdrop-filter: var(--ui-blur);
  -webkit-backdrop-filter: var(--ui-blur);
}

body.ui-skin .whats-new-title {
  color: var(--ui-text);
  font-size: 24px;
  font-weight: 750;
  letter-spacing: -.035em;
}

body.ui-skin .whats-new-date {
  color: var(--ui-dim);
  letter-spacing: .12em;
}

body.ui-skin .whats-new-entry {
  border-color: var(--ui-line);
}

body.ui-skin .whats-new-entry-title {
  color: var(--ui-text);
  font-weight: 650;
}

body.ui-skin .whats-new-entry-body {
  color: var(--ui-muted);
  line-height: 1.65;
}

body.ui-skin :is(.whats-new-tag, .whats-new-count) {
  border: 1px solid #f7931a33;
  background: #f7931a12;
  color: var(--ui-bright);
}

body.ui-skin :is(.ui-empty, .empty-state, #auth-wall, .error-state, .vod-empty) {
  border: 1px solid var(--ui-line);
  border-radius: 18px;
  background: linear-gradient(145deg, #30221880, #1c1713a6);
  color: var(--ui-muted);
  box-shadow: inset 0 1px #ffe4bd0a;
}

body.ui-information,
body.ui-personas,
body.ui-agency {
  color: var(--ui-text);
}

.ui-information main,
.ui-personas main,
.ui-agency main {
  padding-top: 52px;
  padding-bottom: 64px;
}

.ui-information h1,
.ui-personas main > h1,
.ui-agency .agency-info h1 {
  color: var(--ui-text);
  font-weight: 780;
  letter-spacing: -.045em;
  line-height: 1.15;
}

.ui-information h1,
.ui-personas main > h1 {
  margin-bottom: 32px;
  font-size: clamp(30px, 4vw, 42px);
}

.ui-information h1::after,
.ui-personas main > h1::after {
  content: '';
  display: block;
  width: 46px;
  height: 3px;
  margin-top: 20px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--ui-orange), #ffc77e55);
  box-shadow: 0 0 15px #f7931a20;
}

.ui-faq .faq-item {
  margin-bottom: 18px;
  padding: 24px;
  border: 1px solid var(--ui-line);
  border-radius: 16px;
  background: linear-gradient(145deg, #2d221980, #1c1713b3);
  box-shadow: inset 0 1px #ffe4bd0a;
}

.ui-faq .faq-item:nth-of-type(even) {
  background: linear-gradient(165deg, #2a211980, #181410b3);
}

.ui-faq .faq-item h2 {
  color: var(--ui-bright);
  font-size: 18px;
  line-height: 1.4;
  letter-spacing: -.015em;
}

.ui-faq .faq-item :is(p, ul) {
  color: var(--ui-muted);
  line-height: 1.75;
}

.ui-faq .faq-item :is(strong, h3) {
  color: var(--ui-text);
}

.ui-about .placeholder {
  padding: 36px;
  border: 1px solid var(--ui-line);
  border-radius: 18px;
  background: var(--ui-glass-quiet);
  color: var(--ui-muted);
  box-shadow: var(--ui-shadow);
}

body.ui-skin :is(.persona-card, .create-form, .talent-card, .stat-card, .invite-section, .overlay-content) {
  border: 1px solid var(--ui-line);
  border-radius: 16px;
  background: linear-gradient(140deg, #3a291a99, #1c1713e6 65%);
  box-shadow: var(--ui-shadow);
  color: var(--ui-text);
}

body.ui-skin .persona-card {
  border-left: 2px solid #f7931a66;
  padding: 23px;
}

body.ui-skin :is(.persona-card:hover, .talent-card:hover) {
  border-color: var(--ui-edge);
  background: linear-gradient(140deg, #49301c99, #211912e6 65%);
}

body.ui-skin .create-form {
  background: radial-gradient(ellipse at top right, #f7931a1c, transparent 65%), #211912e6;
  border-color: #f7931a55;
  border-radius: 20px;
}

body.ui-skin .create-form h2 {
  color: var(--ui-bright);
  letter-spacing: -.025em;
}

body.ui-skin :is(.persona-name, .talent-name) {
  color: var(--ui-text);
}

body.ui-skin :is(.persona-bio, .persona-slug, .talent-status, .agency-desc, .stat-card-label, .stream-key-label, .form-group label) {
  color: var(--ui-muted);
}

body.ui-skin :is(.edit-form, .data-table th, .data-table td, .tabs) {
  border-color: var(--ui-line);
}

body.ui-skin .data-table td {
  color: var(--ui-text);
}

body.ui-skin .data-table th {
  padding-top: 13px;
  padding-bottom: 13px;
  background: #f7931a08;
  color: var(--ui-muted);
  letter-spacing: .075em;
}

body.ui-skin .data-table tr:hover td {
  background: #f7931a08;
}

.ui-agency .agency-header {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--ui-edge);
}

.ui-agency .agency-logo,
.ui-agency .talent-avatar {
  background: linear-gradient(140deg, #51341e, #2b2119);
  color: var(--ui-bright);
  box-shadow: 0 0 0 1px var(--ui-edge), inset 0 1px #ffe4bd14;
}

body.ui-skin :is(.btn, .period-btn, .tab) {
  border-radius: 9px;
  transition: border-color .16s, background .16s, color .16s, box-shadow .16s;
}

body.ui-skin .overlay {
  background: #100b07b8;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

body.ui-skin .overlay-content {
  padding: 28px;
  border-color: var(--ui-edge);
  border-radius: 20px;
}

body.ui-skin .overlay-content :is(h3, p) {
  color: var(--ui-text);
}

body.ui-skin .overlay-content p {
  color: var(--ui-muted);
}

body.ui-skin .toast {
  border: 1px solid #74d9a066;
  background: #1b342bed;
  color: #c9f7d8;
  box-shadow: var(--ui-pop-shadow);
  backdrop-filter: var(--ui-blur);
  -webkit-backdrop-filter: var(--ui-blur);
}

body.ui-skin .toast.error {
  border-color: #f0808066;
  background: #482623ed;
  color: #ffd6cf;
}

body.ui-admin,
body.ui-stats {
  --bg: #171310;
  --bg-dark: #100e0c;
  --bg-mid: #211a14;
  --surface: #1c1713;
  --raised: #2b2119;
  --fg: #fff4e7;
  --text: #fff4e7;
  --dim: #b59b80;
  --text-dim: #cbb298;
  --text-muted: #b59b80;
  --border: #e3b47d26;
  --hairline: #e3b47d26;
  --input-bg: #14110e;
  --input-border: #e3b47d33;
  --bg2: #1c1713;
  --grid: #e3b47d1c;
  --on: #f7931a18;
  --link: var(--ui-bright);
}

.ui-admin .admin-rail {
  background: linear-gradient(180deg, #302116bf, #171310f2 260px);
  border-color: var(--ui-edge);
}

.ui-admin .admin-brand {
  min-height: 58px;
  padding: 12px 16px;
  border-color: var(--ui-edge);
}

.ui-admin .admin-brand a {
  color: var(--ui-bright);
  font-size: 21px;
  letter-spacing: -.05em;
}

.ui-admin .admin-brand span {
  padding: 4px 7px;
  border: 1px solid var(--ui-edge);
  border-radius: 6px;
  color: var(--ui-muted);
  font-size: 9px;
}

.ui-admin .admin-main-header {
  background: linear-gradient(100deg, #2b2018eb, #191410eb);
  border-color: var(--ui-line);
}

.ui-admin .admin-main-header h1 {
  font-size: 21px;
  font-weight: 750;
  letter-spacing: -.035em;
}

.ui-admin .admin-card,
body.ui-admin #streamer-menu {
  background: linear-gradient(155deg, #30221980, #1c1713e6);
  border: 1px solid var(--ui-line);
  border-radius: 15px;
  box-shadow: inset 0 1px #ffe4bd0a, 0 8px 25px #0002;
}

body.ui-admin #streamer-menu {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.ui-admin .admin-action-submit {
  flex-wrap: wrap;
}

.ui-admin .admin-shell {
  height: 100dvh;
}

.ui-admin .admin-card-head {
  padding-bottom: 13px;
  border-bottom: 1px solid var(--ui-line);
}

.ui-admin :is(.admin-report, .admin-ban, .admin-report-reason, .rossi-decision) {
  background: #100d0b80;
  border-color: var(--ui-line);
  border-radius: 10px;
}

.ui-admin .admin-empty,
.ui-admin .admin-empty-row {
  border-style: solid;
  background: radial-gradient(ellipse at top, #f7931a0d, transparent 70%), #18130fb3;
  border-radius: 14px;
}

.ui-admin .admin-action-form {
  padding: 14px;
  border: 1px solid var(--ui-line);
  border-radius: 12px;
  background: #100d0b4d;
}

.ui-admin .admin-field {
  gap: 7px;
}

.ui-stats > .page-header {
  padding: 20px 22px;
  margin-bottom: 28px;
  border: 1px solid var(--ui-edge);
  border-radius: 16px;
}

.ui-stats .page-header h1 {
  color: var(--ui-text);
  font-size: 25px;
  font-weight: 750;
  letter-spacing: -.04em;
}

.ui-stats > section > h2 {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ui-line);
  color: var(--ui-bright);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .065em;
}

.ui-stats :is(.stat, .rank-card, .reco-card, .reco-cards .card, .oauth-card-sub, #oauth-card, #saturation-card) {
  border: 1px solid var(--ui-line);
  border-radius: 13px;
  background: linear-gradient(155deg, #35261999, #1a1511e6);
  box-shadow: inset 0 1px #ffe4bd0d, 0 6px 18px #0002;
}

.ui-stats .stat {
  padding: 18px 16px;
  border-top-color: #f7931a4d;
}

.ui-stats .stat .value {
  font-size: 27px;
  letter-spacing: -.035em;
}

.ui-stats .stat .label {
  margin-top: 8px;
  color: var(--ui-muted);
  letter-spacing: .065em;
}

.ui-stats .chart {
  padding: 5px;
  border: 1px solid var(--ui-line);
  border-radius: 12px;
  background: linear-gradient(180deg, #21181066, #110e0b);
}

.ui-stats :is(.insights-list, .event-feed, .leaderboard, .clip-card) {
  border-color: var(--ui-line);
  border-radius: 12px;
  background-color: #1c171399;
}

.ui-stats table th {
  background: #f7931a08;
  color: var(--ui-muted);
}

.ui-stats table td {
  border-color: var(--ui-line);
}

body.ui-skin .vod-section {
  background: linear-gradient(155deg, #2d211880, #171310cc);
  border: 1px solid var(--ui-line);
  border-radius: 15px;
}

body.ui-skin .vod-title {
  padding: 4px 4px 12px;
  color: var(--ui-text);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

body.ui-skin .vod-card {
  border: 1px solid var(--ui-line);
  border-radius: 13px;
  background: linear-gradient(145deg, #302218, #1c1713);
  box-shadow: inset 0 1px #ffe4bd0d, 0 7px 20px #0003;
}

body.ui-skin .vod-card:hover {
  border-color: #f7931a88;
  box-shadow: 0 12px 30px #0005, 0 0 16px #f7931a08;
}

body.ui-skin .vod-card :is(.thumb, .thumb-placeholder) {
  background: radial-gradient(ellipse at top left, #f7931a1a, transparent 75%), #211a14;
}

body.ui-skin .vod-card .meta {
  padding: 15px;
}

body.ui-skin .vod-card .title {
  color: var(--ui-text);
  font-weight: 650;
}

body.ui-skin .vod-card .sub {
  color: var(--ui-dim);
}

body.ui-banned {
  box-sizing: border-box;
  width: 100%;
  padding: 24px;
  background: radial-gradient(ellipse at center, #4d2b1855, #100e0c 75%);
}

.ui-banned > img {
  border: 1px solid #f7931a44;
  border-radius: 18px;
  box-shadow: 0 20px 70px #0008, 0 0 60px #f7931a08;
}

@media (max-width: 600px) {
  body.ui-skin > header,
  body.ui-skin #content > header {
    padding-left: 12px;
    padding-right: 12px;
    gap: 8px;
  }

  body.ui-skin > header nav a,
  body.ui-skin #content > header nav a {
    padding: 6px 8px;
    font-size: 12px;
  }

  body.ui-skin:not(.ui-admin) :is(#settings-menu, #streamer-menu) {
    position: fixed;
    inset: auto 12px 16px;
    width: auto;
    max-height: min(75dvh, 650px);
    padding: 18px;
    border-radius: 20px;
    z-index: 10020;
  }

  body.ui-skin:not(.ui-admin) #settings-overlay {
    position: fixed;
    z-index: 10010;
  }

  body.ui-skin #emoji-picker {
    max-width: min(320px, calc(100vw - 28px));
  }

  .ui-information main,
  .ui-personas main,
  .ui-agency main {
    padding: 30px 16px 40px;
  }

  .ui-faq .faq-item {
    padding: 20px 17px;
    border-radius: 13px;
  }

  .ui-agency .agency-header {
    gap: 14px;
  }

  body.ui-skin .persona-card {
    padding: 18px;
  }

  body.ui-stats {
    padding: 14px;
  }

  .ui-stats > .page-header {
    padding: 16px;
  }

  .ui-admin .admin-content {
    padding: 14px;
  }

  .ui-admin .admin-main-header {
    gap: 10px;
    padding: 12px 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.ui-skin :is(.card, .featured-card, .persona-card, .talent-card, .vod-card, .btn, .period-btn, .tab, #msg-input) {
    transition: none;
  }

  body.ui-skin .vod-card:hover {
    transform: none;
  }

  body.ui-skin :is(#settings-menu, #streamer-menu, #settings-overlay, .toast),
  body.ui-skin > header nav a,
  body.ui-skin #content > header nav a {
    transition: none;
  }

  body.ui-skin :is(
    button, [role="button"], .btn, .auth-btn, .info-icon, .msg-reply,
    .pending-reply-cancel, .stage-invite-btn, .stage-kick-btn,
    #streamer-menu-btn, #ban-popup .ban-btn, #viewer-count, #stage-header-btn, #twitch-indicator
  ):not(:where(
    .stream-chrome *, .main-video-wrap *, .featured-video-wrap *,
    .vod-video-wrap *, .stream-quality-picker *
  )) {
    transition: none;
  }

  body.ui-skin .talent-live-dot {
    animation: none;
  }
}

body.ui-stream,
body.ui-chat-popout {
  height: 100dvh;
}

body.ui-chat-popout #chat {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 100%;
  max-height: none;
  flex: none;
  border: 0;
}

body.ui-skin #chat[hidden] {
  display: none !important;
}

body.ui-skin #chat-resize {
  touch-action: none;
}

body.ui-skin.resizing {
  user-select: none;
}

body.ui-skin .site-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

body.ui-skin #chat-visibility-btn {
  flex-shrink: 0;
  padding: 5px 9px;
  font: 600 12px/1.25 system-ui, sans-serif;
  white-space: nowrap;
}

body.ui-skin #chat-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px minmax(0, 1fr);
  gap: 6px;
}

body.ui-skin :is(#chat-header-left, #chat-header-right) {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

body.ui-skin #chat-header-left {
  grid-column: 1;
  grid-row: 1;
  gap: 10px;
}

body.ui-skin #chat-header-right {
  grid-column: 3;
  grid-row: 1;
  justify-content: flex-end;
}

body.ui-skin #chat-header :is(#poll-create-button, #mod-queue-btn, #streamer-menu-btn) {
  width: 30px;
  min-width: 30px;
  height: 30px;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
}

body.ui-skin #chat-header #stage-header-btn {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  left: auto;
  transform: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
}

body.ui-skin #chat-status {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding-inline: 12px;
}

body.ui-skin #chat-status :is(#private-indicator, #twitch-indicator) {
  margin-left: 0;
}

body.ui-skin #chat-input {
  margin: 0;
}

body.ui-skin #chat-pinned {
  max-height: 40%;
  overflow-y: auto;
  overscroll-behavior: contain;
}

body.ui-skin .pinned-entry + .pinned-entry {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--ui-button-edge);
}

body.ui-skin .pinned-unpin[hidden] {
  display: none;
}
