.filter-help {
  color: #71717b;
  font-size: 11px;
  line-height: 1.4;
  margin: -4px 0 9px;
}

.anti-spam-settings {
  margin-top: 10px;
  padding: 11px;
  border: 1px solid #2d2d32;
  border-radius: 10px;
  background: #0d0d10;
}

.toggles .gift-toggle-row { display: grid; grid-template-columns: minmax(110px,1fr) auto auto; gap: 10px; align-items: center; min-height: 51px; padding: 7px 13px; border-bottom: 1px solid #29292e; font-size: 13px; }
.toggles .gift-toggle-row > span { display: flex; align-items: center; gap: 10px; }
.toggles .gift-min-inline { display: flex; align-items: center; gap: 7px; height: auto; padding: 0; border: 0; color: #777782; font-size: 8px; white-space: nowrap; text-transform: uppercase; }
.toggles .gift-min-inline input { display: block; width: 82px; height: 30px; padding: 0 7px; border: 1px solid #303036; border-radius: 6px; color: #fff; background: #09090c; font: 600 11px "DM Mono", monospace; }
.toggles .gift-switch { display: grid; place-items: center; width: 33px; height: 30px; padding: 0; border: 0; cursor: pointer; }
.toggles .gift-switch input { display: none; }

@media (max-width: 480px) {
  .toggles .gift-toggle-row { grid-template-columns: minmax(80px,1fr) auto auto; gap: 7px; padding-inline: 10px; }
  .toggles .gift-min-inline small { display: none; }
  .toggles .gift-min-inline input { width: 68px; }
}

.voice-equalizer { margin-top: 14px; padding: 13px; border: 1px solid #2d2d32; border-radius: 10px; background: #0d0d10; }
.equalizer-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 13px; }
.equalizer-heading > span { display: flex; align-items: center; gap: 9px; color: #ddd; font-size: 12px; font-weight: 700; }
.event-icon.equalizer { width: 29px; color: #d7a2ff; background: #865cff18; font: 600 8px "DM Mono", monospace; }
.equalizer-heading button { padding: 5px 8px; border: 1px solid #303036; border-radius: 6px; background: #1c1c21; color: #8e8e98; font: 600 9px Manrope, sans-serif; cursor: pointer; }
.voice-equalizer > label { display: flex; align-items: center; justify-content: space-between; margin: 11px 0 7px; color: #c8c8cf; font-size: 11px; font-weight: 700; }
.voice-equalizer > label span { display: grid; gap: 2px; }
.voice-equalizer > label small { color: #696973; font-size: 8px; font-weight: 500; }
.voice-equalizer output { color: var(--cyan); }
.voice-equalizer input[type=range] { display: block; margin: 0; }
.equalizer-scale { display: flex; justify-content: space-between; margin-top: 4px; color: #55555f; font: 500 7px "DM Mono", monospace; }

.anti-spam-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #ddd;
  font-size: 12px;
  font-weight: 700;
}

.anti-spam-heading > span { display: flex; align-items: center; gap: 9px; }
.event-icon.shield { color: #67e0b1; background: #54dca614; font: 700 10px "DM Mono", monospace; }
.anti-spam-heading label { display: grid; place-items: center; cursor: pointer; }
.anti-spam-heading input { position: absolute; opacity: 0; pointer-events: none; }
.anti-spam-heading b { width: 33px; height: 18px; border-radius: 20px; background: #36363c; position: relative; }
.anti-spam-heading b::after { content: ""; position: absolute; width: 12px; height: 12px; left: 3px; top: 3px; border-radius: 50%; background: #aaa; transition: .2s; }
.anti-spam-heading input:checked + b { background: var(--pink); }
.anti-spam-heading input:checked + b::after { left: 18px; background: #fff; }

.anti-spam-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 10px;
}

.anti-spam-fields label { color: #85858f; font-size: 8px; font-weight: 700; text-transform: uppercase; }
.anti-spam-fields input { width: 100%; height: 32px; margin-top: 5px; padding: 0 7px; }
.anti-spam-fields small { display: block; margin-top: 4px; color: #62626b; font-size: 7px; text-transform: none; }

.voice-selectors {
  display: grid;
  grid-template-columns: minmax(105px, .7fr) minmax(0, 1.3fr);
  gap: 10px;
}

.voice-selectors label {
  display: flex;
  flex-direction: column;
  gap: 9px;
  color: #aaaab3;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}

@media (max-width: 390px) {
  .voice-selectors { grid-template-columns: 1fr; }
}

.audience-permissions {
  background: #0d0d10;
  border: 1px solid #2d2d32;
  border-radius: 10px;
  overflow: hidden;
}

.permission-head,
.permission-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px 48px;
  align-items: center;
  padding: 0 10px 0 13px;
}

.permission-head {
  height: 29px;
  color: #71717b;
  font: 500 9px "DM Mono", monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.permission-head span:not(:first-child) {
  text-align: center;
}

.permission-row {
  height: 45px;
  border-top: 1px solid #29292e;
  font-size: 13px;
}

.permission-row > span {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.event-icon.everyone {
  color: #fff;
  background: linear-gradient(135deg, #fe2c5530, #25f4ee25);
  font-size: 15px;
}

.everyone-row {
  background: linear-gradient(90deg, #fe2c5508, #25f4ee05);
}

.event-icon.selected {
  color: var(--cyan);
  background: #25f4ee14;
  font: 700 12px "DM Mono", monospace;
}

.selected-row {
  background: #25f4ee05;
}

.permission-row label {
  display: grid;
  place-items: center;
  cursor: pointer;
}

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

.permission-row b {
  width: 33px;
  height: 18px;
  border-radius: 20px;
  background: #36363c;
  position: relative;
  transition: .2s;
}

.permission-row b::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  background: #aaa;
  border-radius: 50%;
  left: 3px;
  top: 3px;
  transition: .2s;
}

.permission-row input:checked + b {
  background: var(--pink);
}

.permission-row input:checked + b::after {
  left: 18px;
  background: #fff;
}

.permission-row input:focus-visible + b {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.selected-user-manager {
  margin-top: 8px;
  padding: 10px;
  border: 1px solid #2d2d32;
  border-radius: 9px;
  background: #0d0d10;
}

.selected-user-manager form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
}

.selected-user-manager input {
  min-width: 0;
  height: 36px;
}

.selected-user-manager form button {
  padding: 0 12px;
  border: 0;
  border-radius: 7px;
  background: var(--cyan);
  color: #071211;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.selected-user-manager > small {
  display: block;
  margin: 8px 1px 0;
  color: #777781;
  font-size: 9px;
  line-height: 1.4;
}

#selectedUsersEmpty {
  margin: 9px 1px 0;
  color: #686872;
  font-size: 10px;
}

#selectedUsersEmpty[hidden] { display: none; }

#selectedUsersList {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

#selectedUsersList:empty { display: none; }

.selected-user-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 5px 5px 8px;
  border: 1px solid #34343a;
  border-radius: 99px;
  background: #18181c;
  color: #d8d8df;
  font: 500 9px "DM Mono", monospace;
}

.selected-user-chip button {
  display: grid;
  width: 18px;
  height: 18px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #2d2d33;
  color: #aaa;
  cursor: pointer;
}

.feed-identity {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

.feed-identity small {
  color: #73737d;
  font: 500 9px "DM Mono", monospace;
}

.feed-identity .tag { margin-left: 2px; }

.viewer-role-badges { display: inline-flex; align-items: center; gap: 3px; }
.viewer-role-badge { display: inline-grid; place-items: center; width: 16px; height: 16px; border: 1px solid currentColor; border-radius: 50%; font: 800 8px/1 "DM Mono",monospace; box-shadow: inset 0 0 7px currentColor,0 0 6px color-mix(in srgb,currentColor 35%,transparent); }
.viewer-role-badge.subscriber { color: #ff6fae; background: rgba(255,45,128,.13); }
.viewer-role-badge.moderator { color: #41e8ff; background: rgba(0,210,255,.13); }
.viewer-role-badge.team { color: #b58aff; background: rgba(134,92,255,.15); }
.viewer-role-badge.top-gifter { color: #ffd166; background: rgba(255,180,35,.14); }
.viewer-role-badge.follower { color: #70e7b5; background: rgba(44,211,145,.13); }

.feed-actions {
  display: flex;
  min-width: 58px;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
}

.feed-actions button {
  padding: 4px 6px;
  border: 1px solid #3a3a41;
  border-radius: 5px;
  background: #1b1b20;
  color: #8d8d98;
  font: 500 8px "DM Mono", monospace;
  cursor: pointer;
}

.feed-actions button.selected {
  border-color: #25f4ee55;
  background: #25f4ee12;
  color: var(--cyan);
}

.filter-help code {
  color: var(--cyan);
  font-family: "DM Mono", monospace;
}

.voice-directory {
  margin-top: 12px;
  border: 1px solid #2d2d32;
  border-radius: 9px;
  padding: 11px 13px;
  color: #aaaab3;
  font-size: 11px;
}

.voice-directory summary {
  color: #ddd;
  cursor: pointer;
  font-weight: 700;
}

.voice-directory p {
  line-height: 1.5;
}

.voice-directory code {
  color: var(--cyan);
  font-family: "DM Mono", monospace;
}

.voice-directory ol {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 14px;
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
}

.voice-directory li {
  display: flex;
  gap: 7px;
  align-items: center;
}

.voice-directory li b {
  color: var(--pink);
  font-family: "DM Mono", monospace;
  min-width: 17px;
}

.voice-lock-settings,
.assigned-voices {
  margin-top: 12px;
  border: 1px solid #2d2d32;
  border-radius: 9px;
  padding: 12px;
  background: #0d0d10;
}

.voice-lock-settings > label,
.assigned-heading label {
  display: block;
  color: #ddd;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.gift-picker { position: relative; margin-top: 9px; }

.gift-picker-button {
  width: 100%;
  min-height: 50px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid #34343a;
  border-radius: 9px;
  background: #111115;
  color: #eee;
  padding: 6px 11px 6px 7px;
  text-align: left;
  cursor: pointer;
}

.gift-picker-button:hover,
.gift-picker-button[aria-expanded="true"] { border-color: #55555d; }
.gift-picker-button > span:nth-child(2) { min-width: 0; }
.gift-picker-button strong,.gift-picker-button small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.gift-picker-button strong { font-size: 12px; }
.gift-picker-button small { color: #85858f; font: 500 9px "DM Mono", monospace; margin-top: 3px; }
.gift-picker-button > b { color: #777; font-size: 18px; }

.selected-gift-media,
.gift-result-media,
.gift-result-media > img,
.gift-placeholder {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #202026;
  object-fit: contain;
}

.selected-gift-media { display: grid; place-items: center; overflow: hidden; }
.selected-gift-media img { width: 100%; height: 100%; object-fit: contain; }
.selected-gift-media i { color: #ffca5b; font-style: normal; }
.selected-gift-media img:not([hidden]) + i { display: none; }

.gift-picker-panel {
  position: absolute;
  z-index: 20;
  top: calc(100% + 7px);
  left: 0;
  right: 0;
  border: 1px solid #3a3a42;
  border-radius: 11px;
  background: #151519;
  padding: 9px;
  box-shadow: 0 18px 45px #000b;
}

.gift-picker-panel[hidden] { display: none; }
.gift-picker-panel > input { width: 100%; height: 39px; font-size: 11px; }
.gift-picker-panel > p { color: #70707a; font: 500 8px "DM Mono", monospace; margin: 8px 3px; }

.gift-results { max-height: 310px; overflow-y: auto; display: grid; gap: 4px; }
.gift-result-media { display: grid; place-items: center; overflow: hidden; }
.gift-result-media > * { grid-area: 1 / 1; }
.gift-result-media > img { width: 100%; height: 100%; object-fit: contain; position: relative; z-index: 1; }
.gift-result-media > img:not([hidden]) + .gift-placeholder { visibility: hidden; }
.gift-result {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #ddd;
  padding: 5px;
  text-align: left;
  cursor: pointer;
}
.gift-result:hover,.gift-result:focus-visible { background: #24242a; outline: 0; }
.gift-placeholder { display: grid; place-items: center; color: #ffca5b; }
.gift-result strong,.gift-result small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.gift-result strong { font-size: 11px; }
.gift-result small { color: #84848e; font: 500 9px "DM Mono", monospace; margin-top: 3px; }
.gift-result small i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #ffca5b; margin-right: 5px; box-shadow: inset 0 0 0 2px #e89f24; }

.voice-lock-settings p {
  color: #777781;
  font-size: 10px;
  line-height: 1.5;
  margin: 9px 1px 0;
}

.voice-lock-settings code {
  color: var(--cyan);
  font-family: "DM Mono", monospace;
}

.assigned-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.assigned-heading span {
  color: #666670;
  font: 500 8px "DM Mono", monospace;
  letter-spacing: .08em;
}

.assigned-empty {
  color: #686872;
  font-size: 10px;
  line-height: 1.5;
  margin: 11px 0 0;
}

.assigned-empty[hidden] { display: none; }

.assigned-user {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 28px;
  gap: 7px;
  align-items: center;
  padding-top: 11px;
  margin-top: 11px;
  border-top: 1px solid #29292e;
}

.assigned-user > div:first-child {
  min-width: 0;
}

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

.assigned-user strong { font-size: 11px; }
.assigned-user small { color: #71717b; font-size: 9px; margin-top: 2px; }

.assigned-user .assigned-user-name {
  display: flex;
  align-items: center;
  gap: 5px;
  overflow: visible;
}

.assigned-user-name > span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.assigned-lock-icon {
  display: inline-grid;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  place-items: center;
  border: 1px solid #fe2c5570;
  border-radius: 5px;
  color: #ff708b;
  background: #fe2c5518;
  box-shadow: 0 0 9px #fe2c5530;
}

.assigned-lock-icon svg {
  width: 11px;
  height: 11px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.assigned-lock-icon circle { fill: currentColor; stroke: none; }

.assigned-user select {
  grid-column: 1 / 3;
  height: 39px;
  font-size: 11px;
}

.assigned-user button {
  grid-column: 3;
  grid-row: 2;
  width: 28px;
  height: 28px;
  border: 1px solid #393940;
  border-radius: 7px;
  background: #1b1b20;
  color: #999;
  cursor: pointer;
  font-size: 17px;
}

.command-result {
  display: block;
  width: fit-content;
  margin-top: 7px;
  padding: 4px 7px;
  border: 1px solid #25f4ee55;
  border-radius: 5px;
  background: #25f4ee12;
  color: var(--cyan);
  font: 500 9px "DM Mono", monospace;
}

.command-result.denied {
  border-color: #fe2c5555;
  background: #fe2c5512;
  color: #ff758f;
}

.speech-result {
  display: block;
  width: fit-content;
  margin-top: 7px;
  color: #92929d;
  font: 500 9px "DM Mono", monospace;
}

.speech-result.queued { color: #a9a9b3; }
.speech-result.speaking { color: var(--cyan); }
.speech-result.read { color: #54dca6; }
.speech-result.filtered { color: #7b7b85; }
.speech-result.failed { color: #ff758f; }
.speech-result.spam { color: #ffb35c; }

@media (max-width: 390px) {
  .anti-spam-fields { grid-template-columns: 1fr; }
}

.workspace {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 18px;
  margin-bottom: 70px;
}

.workspace .dashboard { margin-bottom: 0; }

.tool-sidebar {
  align-self: start;
  position: sticky;
  top: 18px;
  padding: 8px;
  border: 1px solid #29292f;
  border-radius: 14px;
  background: linear-gradient(145deg, #151519dd, #101013ee);
}

.tool-sidebar button {
  display: grid;
  width: 100%;
  gap: 6px;
  place-items: center;
  padding: 10px 4px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #85858f;
  font: 600 9px "DM Mono", monospace;
  cursor: pointer;
}

.tool-sidebar button i {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 8px;
  background: #25252b;
  color: #aaa;
  font-style: normal;
}

.tool-sidebar button.active {
  border-color: #25f4ee33;
  background: #25f4ee0b;
  color: var(--cyan);
}

.tool-sidebar button.active i { background: #25f4ee18; color: var(--cyan); }

.tts-tabs {
  display: grid;
  grid-template-columns: .75fr .8fr 1fr 1.25fr;
  gap: 4px;
  margin: -2px 0 17px;
  padding: 4px;
  border: 1px solid #2d2d32;
  border-radius: 9px;
  background: #0d0d10;
}

.tts-tabs button {
  min-width: 0;
  padding: 8px 5px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #74747e;
  font: 600 9px "DM Mono", monospace;
  cursor: pointer;
}

.tts-tabs button.active {
  background: #25252b;
  color: #fff;
  box-shadow: inset 0 0 0 1px #35353c;
}

.tts-tabs button span {
  display: inline-grid;
  min-width: 16px;
  height: 16px;
  margin-left: 3px;
  padding: 0 4px;
  place-items: center;
  border-radius: 99px;
  background: #36363d;
  color: #a7a7b0;
  font-size: 8px;
}

.tts-tabs button span.active { background: #fe2c5530; color: #ff718d; }

.queue-panel { display: grid; gap: 12px; }
.queue-status { display: flex; align-items: center; justify-content: space-between; padding: 14px; border: 1px solid #2d2d32; border-radius: 10px; background: #0d0d10; }
.queue-status div { display: grid; gap: 3px; }
.queue-status small, .queue-current small { color: #73737d; font: 500 8px "DM Mono", monospace; letter-spacing: .12em; }
.queue-status strong { font-size: 14px; }
.queue-status strong.paused { color: #ff718d; }
.queue-status > span { color: #92929d; font: 500 10px "DM Mono", monospace; }
.queue-actions { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 7px; }
.queue-actions button { min-height: 39px; padding: 7px; border: 1px solid #303036; border-radius: 8px; background: #1c1c21; color: #d1d1d7; font: 700 10px Manrope, sans-serif; cursor: pointer; }
.queue-actions button.queue-primary { border-color: #25f4ee38; color: var(--cyan); }
.queue-actions button.queue-primary.paused { border-color: #fe2c5555; background: #fe2c5511; color: #ff718d; }
.queue-actions button:disabled { cursor: default; opacity: .35; }
.queue-current { min-width: 0; padding: 13px; border: 1px solid #38232a; border-radius: 10px; background: #1a1418; }
.queue-current.empty { border-color: #29292f; background: #121216; }
.queue-current p { margin: 5px 0 3px; overflow: hidden; color: #ddd; font-size: 12px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.queue-current span { color: #8c8c96; font-size: 10px; }
.queue-heading { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.queue-heading label { color: #aaaab3; font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.queue-heading small { color: #686872; font: 500 8px "DM Mono", monospace; }
.queue-empty { margin: 0; padding: 22px 12px; border: 1px dashed #303036; border-radius: 9px; color: #73737d; font-size: 11px; text-align: center; }
.tts-queue-list { display: grid; max-height: 390px; gap: 7px; overflow-y: auto; }
.tts-queue-item { display: grid; grid-template-columns: 22px minmax(0,1fr) 28px; gap: 9px; align-items: center; padding: 10px; border: 1px solid #29292f; border-radius: 9px; background: #111114; }
.tts-queue-item > b { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 6px; background: #25f4ee10; color: var(--cyan); font: 500 9px "DM Mono", monospace; }
.tts-queue-item div { min-width: 0; }
.tts-queue-item p { margin: 0 0 3px; overflow: hidden; color: #d5d5da; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.tts-queue-item small { color: #74747e; font-size: 9px; }
.tts-queue-item button { width: 28px; height: 28px; border: 0; border-radius: 6px; background: #27272d; color: #888892; cursor: pointer; font-size: 16px; }
.tts-queue-item button:hover { background: #fe2c5518; color: #ff718d; }

[data-tts-section][hidden] { display: none !important; }

@media (max-width: 800px) {
  .workspace { grid-template-columns: 1fr; gap: 12px; }
  .tool-sidebar { position: static; padding: 5px; }
  .tool-sidebar button { display: inline-grid; width: 62px; }
}

.voice-lock {
  border: 1px solid #3a3a40;
  border-radius: 99px;
  color: #777;
  font: 500 7px "DM Mono", monospace;
  padding: 4px 6px;
}

.voice-lock.active {
  color: #ffb8c5;
  border-color: #fe2c5566;
  background: #fe2c5515;
}
