/* style-dashboard.css - Sidebar */

:root {
  --gs-scrollbar-track: #F5F7FB;
  --gs-scrollbar-thumb: #94A3B8;
  --gs-scrollbar-thumb-strong: #7A3CFF;
  --gs-font-regular: 400;
  --gs-font-medium: 500;
  --gs-font-semibold: 600;
  --gs-font-bold: 700;
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--gs-scrollbar-thumb) var(--gs-scrollbar-track);
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-track {
  background: var(--gs-scrollbar-track);
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb {
  background: var(--gs-scrollbar-thumb);
  border-radius: 999px;
}

body {
  font-weight: var(--gs-font-regular);
}

html,
body {
  height: 100%;
  overflow: hidden;
}

.layout {
  height: 100vh;
  overflow: hidden;
}

.main {
  min-height: 0;
  max-height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
}

h1,
.page-header h1,
.welcome h1,
.sound-alerts-page-header h1 {
  font-weight: var(--gs-font-bold);
}

h2,
h3,
.actions-panel-header h2,
.overlay-gallery-card__head h3,
.settings-card h2,
.tts-chat-card h2,
.tts-chat-intro h2,
.sound-alerts-hero h2 {
  font-weight: var(--gs-font-semibold);
}

button,
label,
select,
input,
textarea,
.menu li a,
.gs-topbar__page-main strong,
.sound-alerts-table th {
  font-weight: var(--gs-font-semibold);
}

p,
td,
small,
.page-header p,
.overlay-gallery-card__copy,
.tts-chat-intro p {
  font-weight: var(--gs-font-regular);
}

strong,
b,
.username,
.sidebar-brand-label {
  font-weight: var(--gs-font-bold);
}

.sidebar {
  background: linear-gradient(180deg, #FFFFFF, #F5F7FB);
  padding: 20px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #EEF1F6;
  position: relative;
  overflow: hidden;
}

/* LOGO */
.logo {
  padding-bottom: 8px;
  text-align: center;
}
.logo img {
  max-width: 150px;
  height: auto;
}

.sidebar-brand-label {
  margin-top: -36px;
  color: #0F172A;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* TIKTOK PROFILE BOX */
.tiktok-profile-box {
  background-color: #F5F7FB;
  border-radius: 8px;
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.profile-pic {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #FF2D8D;
}
.profile-info {
  flex-grow: 1;
}
.username {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #0F172A;
  margin-bottom: 4px;
}
.profile-connect-btn {
  background: linear-gradient(135deg, #FF2D8D, #7A3CFF);
  color: white;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
}
.profile-connect-btn:hover {
  opacity: 0.9;
}

/* PRESET BOX */
.preset-box {
  background-color: #F5F7FB;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
}
.preset-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-weight: 600;
  font-size: 14px;
  color: #0F172A;
}
.preset-actions button {
  background: none;
  color: #64748B;
  padding: 5px;
  font-size: 16px;
  margin-left: 5px;
  border-radius: 4px;
}
.preset-actions button:hover {
  background-color: #EEF1F6;
}
.preset-select-wrapper select {
  width: 100%;
}

/* MENU */
.menu {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}
.menu li {
  padding: 10px 15px;
  margin-bottom: 8px;
  border-radius: 6px;
  font-size: 15px;
  position: relative;
  transition: background-color 0.24s ease, transform 0.24s ease, box-shadow 0.24s ease;
  cursor: pointer;
}
.menu li:hover {
  background-color: #EEF1F6;
  transform: translateX(3px);
}
.menu li.active {
  background: linear-gradient(135deg, #FF2D8D, #7A3CFF, #00C2FF);
  font-weight: 700;
  box-shadow:
    0 10px 22px rgba(255, 45, 141, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.menu li.active:hover {
  opacity: 0.95;
  transform: translateX(0);
}

.menu li a {
  display: flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.24s ease, opacity 0.24s ease;
}

.menu li a i {
  width: 16px;
  height: 16px;
  stroke-width: 2.1;
  opacity: 0.88;
  flex-shrink: 0;
}

/* --- MAIN CONTENT & RIGHT PANEL --- */

.main {
  padding: 0 60px 60px;
  overflow-y: auto;
}

/* BANNER */
.banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  background: linear-gradient(135deg, #7A3CFF, #00C2FF);
  color: white;
  padding: 10px;
  text-align: center;
  border-radius: 8px;
  margin-bottom: 20px;
  font-weight: 500;
}

.banner-download-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.58) !important;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.16)) !important;
  color: #ffffff !important;
  font-weight: 800;
  font-size: 13px;
  text-decoration: none !important;
  text-shadow: 0 1px 0 rgba(77, 29, 112, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 10px 24px rgba(128, 62, 196, 0.22);
  backdrop-filter: blur(10px);
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.banner-download-link:hover {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.22)) !important;
  border-color: rgba(255, 255, 255, 0.82) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.62),
    0 12px 28px rgba(128, 62, 196, 0.3);
  transform: translateY(-1px);
}

/* TOPBAR */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid #EEF1F6;
  margin-bottom: 20px;
}
.topbar .icons button {
  background: none;
  color: #64748B;
  font-size: 20px;
  padding: 8px;
}
.topbar .icons button:hover {
  background-color: #EEF1F6;
  border-radius: 50%;
}

/* SECTION UTAMA (Kartu/Box) */
section {
  margin-bottom: 30px;
  padding: 20px;
  background-color: #FFFFFF;
  border-radius: 10px;
  border: 1px solid #EEF1F6;
}

.welcome h1 {
  font-size: 32px;
  margin-bottom: 10px;
  color: #0F172A;
}
.welcome p {
  color: #64748B;
  line-height: 1.6;
}

/* TIKTOK CONNECTION BOX */
.connect-box h2 {
  margin-bottom: 10px;
}
.connect-box p {
  margin-bottom: 15px;
  color: #64748B;

}

/* Gaya Form Input BARU */
.connection-form {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  align-items: center;
}

#tiktok-username {
  flex-grow: 1;
  padding: 15px 15px;
  border: 1px solid #EEF1F6;
  border-radius: 6px;
  background-color: #FFFFFF;
  color: #0F172A;
  font-size: 16px;
}

#tiktok-username::placeholder {
  color: #94A3B8;
}

.connect-btn {
  background: linear-gradient(135deg, #FF2D8D, #7A3CFF, #00C2FF);
  color: white;
  /* REVISI: Padding disesuaikan agar sama tinggi dengan input */
  padding: 15px 25px;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}
.connect-btn:hover {
  background-color: #e03c00;
}

.news h2 {
  margin-bottom: 15px;
}
.news ul {
  list-style: none;
  padding: 0;
}
.news li {
  padding: 8px 0;
  border-bottom: 1px dashed #EEF1F6;
  color:#94A3B8;
}
.news li:last-child {
  border-bottom: none;
}

/* RIGHT PANEL */
.right-panel {
  background-color: #FFFFFF;
  padding: 20px;
  border-left: 1px solid #EEF1F6;
}

.pro-box {
  background-color: #EEF1F6;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
}
.pro-box h3 {
  color: #ffdd57;
  margin-bottom: 10px;
  font-size: 20px;
}
.pro-box p {
  color: #64748B;
  margin-bottom: 20px;
}
.pro-box button {
  background-color: #ffdd57;
  color: #FFFFFF;
  font-weight: 700;
  padding: 10px 20px;
}
.pro-box button:hover {
  background-color: #ffd43b;
}

/* --- OBS CONNECTION BOX --- */

.obs-connection-box p {
  margin-bottom: 15px;
  color: #64748B;
}

.obs-instructions {
  background-color: #FFFFFF;
  border-left: 3px solid #ff4500;
  padding: 15px;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 20px;
}

.obs-form-grid {
  display: grid;
  /* Dua kolom: 100px untuk label, 1fr untuk input */
  grid-template-columns: 100px 1fr;
  gap: 15px 10px; /* Jarak vertikal dan horizontal */
  margin-bottom: 20px;
  align-items: center;
}

.obs-form-grid label {
  font-weight: 600;
  color: #64748B;
}

.obs-form-grid input[type="text"],
.obs-form-grid input[type="password"] {
  padding: 12px;
  border: 1px solid #EEF1F6;
  border-radius: 6px;
  background-color: #EEF1F6;
  color: #f0f0f0;
  font-size: 16px;
  width: 100%; /* Memastikan input mengisi kolom grid */
}

.obs-test-btn {
  background-color: #EEF1F6;
  color: #f0f0f0;
  padding: 12px 25px;
  font-size: 16px;
  font-weight: 600;
  margin-left: 110px;
}

.obs-test-btn:hover {
  background-color: #EEF1F6;
}

/* style-dashboard.css - Tambahan untuk Streamer.bot Connection */

.streamerbot-connection-box h2 {
  color: #f0f0f0;
}

.streamerbot-intro {
  margin-bottom: 10px;
  color: #64748B;
}

.streamerbot-setup {
  margin-bottom: 20px;
}

/* Gaya untuk link (misalnya Streamer.bot dan Setup Instructions) */
.streamerbot-link,
.streamerbot-setup a {
  color: #1da1f2; /* Warna biru muda untuk link, agar kontras */
  text-decoration: none;
  font-weight: 500;
}

.streamerbot-setup a {
  display: inline-block;
  margin-top: 5px;
  font-size: 14px;
}

.streamerbot-link:hover,
.streamerbot-setup a:hover {
  text-decoration: underline;
}

/* Menggunakan grid layout yang sama dengan OBS Connection */
.streamerbot-form-grid {
  display: grid;
  /* Dua kolom: 100px untuk label, 1fr untuk input */
  grid-template-columns: 100px 1fr;
  gap: 15px 10px;
  margin-bottom: 20px;
  align-items: center;
}

.streamerbot-form-grid label {
  font-weight: 600;
  color: #64748B;
}

.streamerbot-form-grid input[type="text"] {
  padding: 12px;
  border: 1px solid #EEF1F6;
  border-radius: 6px;
  background-color: #EEF1F6;
  color: #f0f0f0;
  font-size: 16px;
  width: 100%;
}

.streamerbot-test-btn {
  background-color: #EEF1F6;
  color: #f0f0f0;
  padding: 12px 25px;
  font-size: 16px;
  font-weight: 600;
  margin-left: 110px;
}

.streamerbot-test-btn:hover {
  background-color: #EEF1F6;
}

/* style-dashboard.css - Tambahan untuk Minecraft Connection */

.minecraft-connection-box h2 {
  color: #f0f0f0;
}

.minecraft-connection-box p {
  margin-bottom: 10px;
  line-height: 1.5;
}

.minecraft-connection-box a {
  color: #1da1f2; /* Warna link */
  text-decoration: none;
}

.minecraft-connection-box a:hover {
  text-decoration: underline;
}

/* --- Kotak Promosi RealisticNode --- */
.minecraft-promo-box {
  display: flex;
  align-items: center;
  gap: 15px;
  background-color: #EEF1F6; /* Latar belakang gelap untuk kotak promo */
  border: 1px solid #EEF1F6;
  padding: 15px;
  border-radius: 8px;
  margin: 20px 0;
}

.minecraft-promo-box .promo-logo {
  width: 60px; /* Ukuran logo disesuaikan */
  height: auto;
  flex-shrink: 0;
}

/* --- Tutorial Header --- */
.minecraft-tutorial-header {
  color: #1da1f2; /* Warna aksen untuk header tutorial */
  font-weight: 600;
  margin: 18px 0 12px 0;
  cursor: pointer;
}

/* --- Download Links --- */
.download-links {
  margin: 15px 0;
}

.download-item {
  padding: 5px 0;
}

/* --- Kotak Peringatan Player Name --- */
.minecraft-warning {
  padding: 16px 18px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 22px;
  color: #64748B;
  max-width: 920px;
}

/* --- Input Player Name --- */
.player-name-input {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 12px 18px;
  align-items: center;
  margin-bottom: 20px;
  max-width: 920px;
}

.player-name-input label {
  font-weight: 600;
  color: #64748B;
  margin: 0;
}

.player-name-input input[type="text"] {
  padding: 12px;
  border: 1px solid #EEF1F6;
  border-radius: 10px;
  background-color: #EEF1F6;
  color: #f0f0f0;
  font-size: 16px;
  min-width: 0;
}

/* --- Info Koneksi --- */
.connection-info {
  margin-bottom: 20px;
  color: #64748B;
}

/* --- Form Grid Koneksi (IP, Port, Password) --- */
.minecraft-form-grid {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 14px 18px;
  margin-bottom: 20px;
  align-items: center;
  max-width: 920px;
}

.minecraft-form-grid label {
  font-weight: 600;
  color: #64748B;
  margin: 0;
}

.minecraft-form-grid input {
  padding: 12px;
  border: 1px solid #EEF1F6;
  border-radius: 10px;
  background-color: #EEF1F6;
  color: #f0f0f0;
  font-size: 16px;
  width: 100%;
  min-width: 0;
}

.minecraft-test-btn {
  background-color: #EEF1F6;
  color: #f0f0f0;
  padding: 12px 25px;
  font-size: 16px;
  font-weight: 600;
  margin-top: 4px;
  margin-left: 158px;
}

.minecraft-test-btn:hover {
  background-color: #EEF1F6;
}

/* style-dashboard.css - Tambahan untuk Pro Comparison Box */

.pro-comparison-box {
  /* Gunakan gaya section yang sudah ada, tapi tambahkan sedikit penyesuaian */
  padding: 0; /* Hapus padding agar konten tabel bisa menyentuh tepi box */
  overflow: hidden; /* Pastikan semua konten tabel tetap di dalam box */
}

/* --- HEADER PERBANDINGAN (StreamRush Pro, Free, Pro) --- */
.comparison-header {
  display: grid;
  /* Tata letak: (1) Judul (2) Free (3) Pro */
  grid-template-columns: 1fr 100px 100px;
  align-items: center;
  padding: 20px 20px 10px 20px;
  background-color: #FFFFFF; /* Sama seperti section, tapi mungkin ingin dibedakan */
  border-bottom: 1px solid #EEF1F6;
}

.header-title {
  font-size: 20px;
  font-weight: 700;
  color: #ff4500; /* Warna aksen untuk judul utama */
}

.header-plan {
  text-align: center;
  font-weight: 600;
}

.pro-plan {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pro-icon {
  font-weight: 700;
  color: #f77070; /* Warna pink/merah muda untuk 'Pro' */
  margin-bottom: 5px;
}

.current-plan-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  margin-bottom: 8px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #8f4f72;
  font-size: 11px;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(236, 114, 182, 0.24);
}

.current-plan-badge.is-pro {
  background: linear-gradient(135deg, #ff68b2 0%, #d86dff 52%, #8f7cff 100%);
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    0 10px 22px rgba(216, 109, 255, 0.24);
}

.upgrade-btn {
  background: linear-gradient(
    145deg,
    #ff4500,
    #ff7f50
  ); /* Gradient untuk tombol upgrade */
  color: white;
  font-weight: 700;
  padding: 8px 12px;
  font-size: 13px;
  border-radius: 4px;
}

.upgrade-btn:hover {
  background: linear-gradient(145deg, #e03c00, #e67347);
}

.live-stats-card {
  display: grid;
  grid-template-columns: minmax(150px, 1.35fr) repeat(4, minmax(110px, 1fr));
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(244, 114, 182, 0.28);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.86);
  color: #251b38;
  box-shadow: 0 22px 58px rgba(236, 72, 153, 0.12);
  backdrop-filter: blur(14px);
}

.live-stats-summary,
.live-stats-metric {
  min-height: 172px;
  padding: 26px 24px;
  border-right: 1px solid rgba(244, 114, 182, 0.2);
}

.live-stats-summary h2 {
  margin: 0 0 10px;
  color: #df3f84;
  font-size: 24px;
  line-height: 0.95;
  font-weight: 700;
}

.live-stats-summary p {
  margin: 0;
  color: #5f506d;
  font-size: 14px;
  line-height: 1.45;
}

.live-stats-user {
  display: inline-flex;
  max-width: 100%;
  margin-top: 16px;
  color: #8b5cf6;
  font-size: 13px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.live-stats-metric {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.live-stats-metric span {
  color: #6b5a78;
  font-size: 13px;
  line-height: 1.18;
}

.live-stats-metric strong {
  color: #251b38;
  font-size: 34px;
  line-height: 1;
  font-weight: 700;
}

.live-stats-chart {
  grid-column: 1 / -1;
  position: relative;
  min-height: 300px;
  padding: 24px 36px 26px;
  border-top: 1px solid rgba(244, 114, 182, 0.2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 247, 252, 0.76));
}

.live-stats-chart svg {
  display: block;
  width: 100%;
  height: 250px;
}

.live-stats-grid line {
  stroke: rgba(236, 72, 153, 0.12);
  stroke-width: 1;
}

.live-stats-area {
  fill: url(#liveStatsArea);
}

.live-stats-line {
  fill: none;
  stroke: #ec4899;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.live-stats-hover-line {
  stroke: rgba(139, 92, 246, 0.28);
  stroke-width: 1;
}

.live-stats-hover-dot {
  fill: #8b5cf6;
  stroke: #ffffff;
  stroke-width: 2;
}

.live-stats-tooltip {
  position: absolute;
  z-index: 4;
  min-width: 150px;
  padding: 11px 12px;
  border: 1px solid rgba(244, 114, 182, 0.24);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 34px rgba(80, 29, 80, 0.18);
  color: #251b38;
  pointer-events: none;
  transform: translate(-50%, -110%);
}

.live-stats-tooltip strong {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  color: #251b38;
}

.live-stats-tooltip span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #6b5a78;
  font-size: 12px;
}

.live-stats-tooltip i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: #ec4899;
}

.live-stats-tooltip b {
  color: #251b38;
  font-size: 13px;
}

.live-stats-labels {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-top: 4px;
  color: #7b6b86;
  font-size: 12px;
}

.live-stats-labels span:last-child {
  text-align: right;
}

@media (max-width: 980px) {
  .live-stats-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .live-stats-summary {
    grid-column: 1 / -1;
  }

  .live-stats-metric:nth-of-type(2n + 1) {
    border-right: 0;
  }
}

@media (max-width: 640px) {
  .live-stats-card {
    grid-template-columns: 1fr;
  }

  .live-stats-summary,
  .live-stats-metric {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(244, 114, 182, 0.2);
  }

  .live-stats-chart {
    padding: 20px 18px 22px;
  }
}

/* --- TABEL PERBANDINGAN --- */
.comparison-table {
  width: 100%;
  border-collapse: collapse; /* Menghilangkan spasi antar border sel */
}

.comparison-table td {
  padding: 12px 20px;
  border-bottom: 1px solid #EEF1F6;
  font-size: 14px;
  color: #64748B;
  height: 50px; /* Tinggi minimum untuk baris */
}

/* Styling kolom feature name */
.comparison-table .feature-name {
  text-align: left;
  font-weight: 500;
  color: #64748B;
}

/* Styling kolom nilai (Free & Pro) */
.comparison-table .plan-value {
  width: 100px; /* Lebar kolom nilai */
  text-align: center;
  padding-left: 0;
  padding-right: 0;
}

/* Baris centang memiliki latar belakang yang lebih gelap/terang */
.comparison-table tbody tr {
  transition: background-color 0.1s;
}

.comparison-table tbody tr:nth-child(even) {
  background-color: #FFFFFF; /* Warna latar belakang selang-seling */
}

.comparison-table tbody tr:hover {
  background-color: #2e2e2e; /* Efek hover ringan */
}

/* Nilai Spesial */
.plan-value.infinity {
  font-weight: 700;
  color: #ff4500; /* Warna aksen untuk tak terhingga */
  font-size: 16px;
}

.plan-value.highlighted {
  font-weight: 700;
  color: #ffdd57; /* Warna emas untuk Prioritized */
}

/* Simbol Centang */
.plan-value.checkmark {
  font-weight: 700;
  color: #1a7a00; /* Warna hijau untuk centang */
  font-size: 16px;
}

.plan-value--locked {
  color: #d94589 !important;
}

.plan-value--locked svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.4;
  vertical-align: middle;
}

/* style-dashboard.css - Tambahan untuk Halaman Settings */

.settings-page {
  /* Halaman pengaturan menggunakan layout grid untuk tata letak yang fleksibel
       atau hanya menggunakan margin bottom untuk pemisah antar kartu */
  display: block;
}

.settings-card {
  /* Menggunakan kembali gaya section dasar (background, radius, padding) */
  margin-bottom: 30px;
  padding: 22px 24px;
  background:
    linear-gradient(180deg, rgba(15, 23, 38, 0.98), rgba(12, 20, 33, 0.98));
  border-radius: 16px;
  border: 1px solid rgba(255, 69, 0, 0.2);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.2);
}

.settings-card h2 {
  font-size: 18px;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 69, 0, 0.12);
  color: #f0f0f0;
}

/* --- 1. Account Settings --- */
.account-info p {
  margin-bottom: 5px;
  color: #64748B;
}

.logout-btn {
  background-color: #ff4500;
  color: white;
  padding: 10px 20px;
  font-weight: 700;
  margin-top: 15px;
}
.logout-btn:hover {
  background-color: #e03c00;
}

/* --- 2. Import/Export Settings --- */
.import-export-card p {
  margin-bottom: 20px;
  line-height: 1.5;
  color: #64748B;
}
.export-actions button {
  background-color: #EEF1F6;
  color: #64748B;
  font-weight: 500;
  margin-right: 10px;
}
.export-actions button:hover {
  background-color: #EEF1F6;
}

.settings-page,
.import-export-card,
.export-actions {
  pointer-events: auto;
}

.export-actions .export-btn,
.export-actions .import-btn {
  position: relative;
  z-index: 2;
  pointer-events: auto;
}

/* --- 3. Advanced Settings --- */
.checkbox-options label {
  display: block;
  margin-bottom: 10px;
  color: #64748B;
  cursor: pointer;
  font-size: 15px;
}
.checkbox-options input[type="checkbox"] {
  margin-right: 10px;
  /* Ubah ukuran checkbox jika diperlukan */
  transform: scale(1.2);
  vertical-align: middle;
}

.language-setting {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #EEF1F6;
}
.language-setting label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #f0f0f0;
}
#tiktok-lang {
  padding: 10px;
  border: 1px solid #EEF1F6;
  border-radius: 4px;
  background-color: #EEF1F6;
  color: #f0f0f0;
  width: 200px; /* Lebar tetap seperti di gambar */
  margin-bottom: 5px;
}
.language-hint {
  font-size: 12px;
  color:#94A3B8;
  line-height: 1.4;
}

.settings-module-list {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #EEF1F6;
}

.settings-module-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  color: #f0f0f0;
  font-size: 14px;
}

.module-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.module-chip {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0)),
    rgba(16, 27, 45, 0.92);
  border: 1px solid rgba(255, 116, 62, 0.18);
  color: #dbe4ef;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  transition: border-color 0.2s, background-color 0.2s, transform 0.2s;
}

.module-chip:hover {
  border-color: rgba(255, 116, 62, 0.34);
  background: rgba(255, 116, 62, 0.08);
  transform: translateY(-1px);
}

.module-chip.is-active {
  background: linear-gradient(180deg, #ff7a42 0%, #ff5a1f 100%);
  border-color: rgba(255, 159, 117, 0.28);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(255, 90, 31, 0.18);
}

/* --- 4. Debug Options --- */
.debug-options-card p {
  margin-bottom: 20px;
  color: #64748B;
}
.debug-actions button {
  font-weight: 700;
  margin-right: 10px;
}
.enable-debug-btn {
  background-color: #7b0000; /* Warna merah untuk peringatan/debug */
  color: white;
}
.enable-debug-btn:hover {
  background-color: #5c0000;
}
.open-tiktok-live-btn {
  background-color: #007bff;
  color: white;
}
.open-tiktok-live-btn:hover {
  background-color: #0056b3;
}

.page-header {
  margin-bottom: 20px;
  padding: 24px 26px;
  border-radius: 16px;
  background:
    radial-gradient(circle at top left, rgba(255, 109, 44, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(10, 18, 31, 0.98), rgba(9, 16, 28, 0.98));
  border: 1px solid rgba(255, 69, 0, 0.22);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.22);
}

.page-header h1 {
  color: #ff4500;
  margin-bottom: 10px;
}

.page-header p {
  color: #64748B;
  line-height: 1.6;
}

.stack-form {
  display: grid;
  gap: 12px;
}

.stack-form label {
  font-weight: 600;
  color: #64748B;
}

.stack-form input,
.stack-form select {
  width: 100%;
  padding: 12px;
  border: 1px solid #EEF1F6;
  border-radius: 6px;
  background-color: #EEF1F6;
  color: #64748B;
}

.rule-list,
.log-list {
  display: grid;
  gap: 16px;
}

.rule-card,
.log-entry {
  border: 1px solid #EEF1F6;
  border-radius: 10px;
  padding: 16px;
  background-color: #FFFFFF;
}

.rule-card-header,
.log-entry-header,
.section-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.rule-delete-btn {
  background-color: #5c0000;
  color: white;
  font-size: 12px;
}

.rule-delete-btn:hover {
  background-color: #7b0000;
}

.log-level {
  color: #ffdd57;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.log-entry pre {
  margin-top: 10px;
  padding: 12px;
  border-radius: 8px;
  background-color: #111827;
  overflow-x: auto;
  color: #d1d5db;
}

.actions-main {
  padding: 0 60px 60px;
  background: transparent;
}

.actions-shell {
  padding: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 242, 248, 0.98));
  border: 1px solid rgba(236, 122, 176, 0.22);
  border-radius: 24px;
  box-shadow: 0 22px 48px rgba(225, 96, 154, 0.1);
  overflow: hidden;
}

.actions-toolbar {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 20px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(236, 122, 176, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 248, 252, 0.96), rgba(255, 239, 246, 0.92));
}

.actions-toolbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.actions-add-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ff69b4 0%, #d97dff 58%, #8ca4ff 100%);
  border: 1px solid rgba(255, 255, 255, 0.26);
  box-shadow:
    0 14px 28px rgba(221, 117, 190, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
}

.actions-add-trigger:hover {
  background: linear-gradient(135deg, #ff5cab 0%, #cf70f4 58%, #7d96f8 100%);
}

.actions-add-plus {
  font-size: 22px;
  line-height: 1;
}

.actions-tabs {
  display: flex;
  gap: 8px;
}

.actions-tab {
  background: #fff7fb;
  color: #7d305b;
  border: 1px solid rgba(236, 122, 176, 0.2);
  padding: 8px 14px;
  font-size: 12px;
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(225, 96, 154, 0.06);
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.actions-tab:hover {
  background: linear-gradient(180deg, #fff1f7, #ffe3ee);
  color: #a84779;
  border-color: rgba(236, 122, 176, 0.32);
  box-shadow: 0 10px 20px rgba(225, 96, 154, 0.1);
  transform: translateY(-1px);
}

.actions-tab.is-active {
  background: linear-gradient(180deg, #f37bb2, #d9488f);
  color: #ffffff;
  border-color: rgba(217, 72, 143, 0.28);
  box-shadow: 0 12px 22px rgba(225, 96, 154, 0.16);
}

.actions-search {
  min-width: 280px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(255, 245, 250, 0.98));
  border: 1px solid rgba(236, 198, 221, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 8px 18px rgba(218, 140, 186, 0.05);
}

.actions-search span {
  display: none;
}

.actions-search i {
  width: 16px;
  height: 16px;
  color: #b45b82;
  flex-shrink: 0;
}

.actions-search input {
  width: 100%;
  background: transparent;
  border: 0;
  color: #111111;
  padding: 0;
}

.actions-search input:focus {
  outline: none;
}

.actions-search input::placeholder {
  color: #b27a97;
}

.actions-panel {
  padding: 10px 18px 18px;
}

.actions-panel-card {
  padding: 20px 22px 22px;
  border-radius: 22px;
  background:
    radial-gradient(circle at top left, rgba(255, 217, 235, 0.28), transparent 30%),
    linear-gradient(180deg, rgba(255, 253, 254, 0.99), rgba(255, 243, 248, 0.98));
  border: 1px solid rgba(236, 198, 221, 0.84);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 18px 36px rgba(225, 96, 154, 0.08);
}

.actions-panel-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.actions-panel-header {
  padding: 4px 0 16px;
}

.actions-panel-header h1 {
  color: var(--gs-accent-strong);
  font-size: 28px;
  margin-bottom: 6px;
}

.actions-panel-header--compact {
  padding: 0;
}

.actions-panel-header--compact h2 {
  color: var(--gs-accent-strong);
  font-size: 28px;
  margin-bottom: 6px;
}

.actions-panel-header p {
  color: var(--gs-text-soft);
  font-size: 13px;
  line-height: 1.5;
  max-width: 680px;
}

.actions-template-bar,
.action-template-inline {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.actions-template-bar > span,
.action-template-inline > span {
  color: #9fb0c4;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.module-template-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.module-template-chip {
  padding: 10px 14px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0)),
    rgba(16, 27, 45, 0.92);
  border: 1px solid rgba(255, 116, 62, 0.18);
  color: #e3ebf5;
  font-size: 12px;
  font-weight: 700;
  transition: border-color 0.2s, background-color 0.2s, transform 0.2s;
}

.module-template-chip:hover {
  border-color: rgba(255, 116, 62, 0.34);
  background: rgba(255, 116, 62, 0.1);
  transform: translateY(-1px);
}

.actions-table-wrap {
  min-height: 540px;
  border: 1px solid rgba(236, 198, 221, 0.72);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 246, 250, 0.97));
  border-radius: 16px;
  overflow: auto;
}

.actions-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.actions-table th,
.actions-table td {
  border-right: 1px solid rgba(236, 198, 221, 0.54);
  border-bottom: 1px solid rgba(236, 198, 221, 0.42);
  padding: 10px 12px;
  color: #4d3645;
  font-size: 13px;
  vertical-align: middle;
  line-height: 1.4;
}

.actions-table th:last-child,
.actions-table td:last-child {
  border-right: 0;
}

.actions-table th {
  text-align: left;
  color: #8f6178;
  background: linear-gradient(180deg, rgba(255, 243, 249, 0.98), rgba(255, 236, 244, 0.96));
  font-weight: 700;
}

.actions-table tbody tr:hover {
  background: rgba(244, 127, 179, 0.06);
}

.table-icon,
.table-checkbox,
.table-actions {
  text-align: center;
}

.actions-table th:nth-child(1),
.actions-table td:nth-child(1) {
  width: 22%;
}

.actions-table th:nth-child(2),
.actions-table td:nth-child(2) {
  width: 14%;
}

.actions-table th:nth-child(3),
.actions-table td:nth-child(3) {
  width: 10%;
}

.actions-table th:nth-child(4),
.actions-table td:nth-child(4) {
  width: auto;
}

.table-action-bar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0;
}

.table-icon {
  color: #ff8f5e;
}

.table-link {
  color: #91d86f;
  font-weight: 600;
}

.table-description {
  color: #4d3645;
  padding-top: 10px !important;
  padding-bottom: 10px !important;
  line-height: 1.45;
}

.table-description-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
}

.table-description-text {
  min-width: 0;
  flex: 1 1 auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.table-description .table-action-bar {
  padding-left: 14px;
  border-left: 1px solid rgba(236, 198, 221, 0.58);
  align-self: stretch;
}

.rule-toggle {
  accent-color: #ff5a1f;
}

.table-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(234, 201, 221, 0.88);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(255, 243, 249, 0.98));
  color: #714661;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 10px 20px rgba(218, 140, 186, 0.08);
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.table-icon-btn:hover {
  background: linear-gradient(180deg, rgba(255, 242, 248, 0.99), rgba(255, 231, 241, 0.98));
  border-color: rgba(221, 126, 180, 0.54);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 14px 24px rgba(218, 140, 186, 0.12);
  transform: translateY(-1px);
}

.table-icon-btn:disabled {
  opacity: 0.62;
  cursor: wait;
  transform: none;
}

.table-icon-btn svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.2;
}

.table-icon-btn--play {
  border-color: rgba(183, 172, 240, 0.72);
  color: #7662c9;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 243, 255, 0.98)),
    linear-gradient(135deg, rgba(141, 164, 255, 0.18), rgba(217, 125, 255, 0.14));
}

.table-icon-btn--play:hover {
  color: #6a55bf;
  background:
    linear-gradient(180deg, rgba(255, 246, 251, 0.99), rgba(242, 237, 255, 0.98)),
    linear-gradient(135deg, rgba(141, 164, 255, 0.24), rgba(217, 125, 255, 0.18));
}

.table-icon-btn--edit {
  border-color: rgba(183, 172, 240, 0.72);
  color: #7662c9;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 243, 255, 0.98)),
    linear-gradient(135deg, rgba(141, 164, 255, 0.18), rgba(217, 125, 255, 0.14));
}

.table-icon-btn--edit:hover {
  color: #6a55bf;
  background:
    linear-gradient(180deg, rgba(255, 246, 251, 0.99), rgba(242, 237, 255, 0.98)),
    linear-gradient(135deg, rgba(141, 164, 255, 0.24), rgba(217, 125, 255, 0.18));
}

.table-icon-btn--duplicate {
  border-color: rgba(214, 184, 233, 0.76);
  color: #9a5ea7;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(255, 243, 251, 0.98)),
    linear-gradient(135deg, rgba(255, 105, 180, 0.1), rgba(217, 125, 255, 0.12));
}

.table-icon-btn--duplicate:hover {
  color: #874e95;
  background:
    linear-gradient(180deg, rgba(255, 245, 250, 0.99), rgba(255, 236, 247, 0.98)),
    linear-gradient(135deg, rgba(255, 105, 180, 0.16), rgba(217, 125, 255, 0.18));
}

.table-icon-btn--delete {
  border-color: rgba(242, 178, 203, 0.78);
  color: #d15f91;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(255, 244, 247, 0.98)),
    linear-gradient(135deg, rgba(255, 105, 180, 0.12), rgba(255, 141, 173, 0.12));
}

.table-icon-btn--delete:hover {
  color: #bc4d7c;
  background:
    linear-gradient(180deg, rgba(255, 245, 249, 0.99), rgba(255, 236, 242, 0.98)),
    linear-gradient(135deg, rgba(255, 105, 180, 0.18), rgba(255, 141, 173, 0.18));
}

.table-delete-btn {
  background: transparent;
  border: 1px solid rgba(255, 69, 0, 0.45);
  color: #f1f5f9;
  padding: 6px 10px;
  font-size: 11px;
}

.table-delete-btn:hover {
  background: rgba(255, 69, 0, 0.14);
}

.actions-empty {
  margin-top: 12px;
  color: #9fadbf;
  font-size: 13px;
}

.actions-table-wrap--events {
  min-height: 0;
  margin-top: 12px;
  border-radius: 0;
  box-shadow: none;
}

.actions-table-wrap--actions {
  min-height: 0;
  margin-top: 12px;
  border-radius: 0;
  box-shadow: none;
}

.events-panel-card {
  padding: 20px 22px 22px;
  border-radius: 22px;
  background:
    radial-gradient(circle at top left, rgba(255, 217, 235, 0.28), transparent 30%),
    linear-gradient(180deg, rgba(255, 253, 254, 0.99), rgba(255, 243, 248, 0.98));
  border: 1px solid rgba(236, 198, 221, 0.84);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 18px 36px rgba(225, 96, 154, 0.08);
}

.events-panel-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.events-create-btn {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ff69b4 0%, #d97dff 58%, #8ca4ff 100%);
  border: 1px solid rgba(255, 255, 255, 0.26);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  box-shadow:
    0 14px 28px rgba(221, 117, 190, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.events-create-btn__plus {
  font-size: 24px;
  line-height: 1;
  margin-top: -2px;
}

.events-search {
  min-width: 280px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(255, 245, 250, 0.98));
  border: 1px solid rgba(236, 198, 221, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 8px 18px rgba(218, 140, 186, 0.05);
}

.events-search i {
  width: 16px;
  height: 16px;
  color: #b45b82;
}

.events-search input {
  width: 100%;
  border: 0;
  background: transparent;
  color: #222222;
  font-size: 13px;
}

.events-search input:focus {
  outline: none;
}

.events-search input::placeholder {
  color: #b27a97;
}

.events-table th,
.events-table td {
  color: #4d3645;
}

.events-table th:nth-child(1),
.events-table td:nth-child(1) {
  width: 18%;
}

.events-table th:nth-child(2),
.events-table td:nth-child(2) {
  width: 36%;
}

.events-table th:nth-child(3),
.events-table td:nth-child(3) {
  width: auto;
}

.events-table th {
  background: linear-gradient(180deg, rgba(255, 243, 249, 0.98), rgba(255, 236, 244, 0.96));
  color: #8f6178;
  font-weight: 700;
}

.events-table td {
  vertical-align: top;
  padding-top: 10px;
  padding-bottom: 10px;
}

.events-table tbody tr:hover {
  background: rgba(244, 127, 179, 0.06);
}

.table-event-actions-cell {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.table-event-actions-text {
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.45;
}

.table-events-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  white-space: nowrap;
}

.table-event-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
}

.table-event-trigger__copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.table-event-trigger__title {
  color: #4d3645;
  font-weight: 600;
  line-height: 1.4;
}

.table-event-trigger__meta {
  color: #9c7287;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
}

.table-event-trigger__media {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 246, 251, 0.99), rgba(255, 233, 244, 0.98));
  border: 1px solid rgba(236, 198, 221, 0.68);
  overflow: hidden;
  flex-shrink: 0;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 8px 18px rgba(218, 140, 186, 0.06);
}

.event-trigger-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  font-size: 18px;
}

.table-events-actions .table-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 14px;
  border: 1px solid rgba(234, 201, 221, 0.88);
  color: #714661;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(255, 243, 249, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 10px 20px rgba(218, 140, 186, 0.08);
}

.table-events-actions .table-icon-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(221, 126, 180, 0.54);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 14px 24px rgba(218, 140, 186, 0.12);
}

.table-icon-btn--edit {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 243, 255, 0.98)),
    linear-gradient(135deg, rgba(141, 164, 255, 0.18), rgba(217, 125, 255, 0.14));
  border-color: rgba(183, 172, 240, 0.72);
  color: #7662c9;
}

.table-icon-btn--edit:hover {
  background:
    linear-gradient(180deg, rgba(255, 246, 251, 0.99), rgba(242, 237, 255, 0.98)),
    linear-gradient(135deg, rgba(141, 164, 255, 0.24), rgba(217, 125, 255, 0.18));
  color: #6a55bf;
}

.table-icon-btn--delete {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(255, 244, 247, 0.98)),
    linear-gradient(135deg, rgba(255, 105, 180, 0.12), rgba(255, 141, 173, 0.12));
  border-color: rgba(242, 178, 203, 0.78);
  color: #d15f91;
}

.table-icon-btn--delete:hover {
  background:
    linear-gradient(180deg, rgba(255, 245, 249, 0.99), rgba(255, 236, 242, 0.98)),
    linear-gradient(135deg, rgba(255, 105, 180, 0.18), rgba(255, 141, 173, 0.18));
  color: #bc4d7c;
}

.events-simulator {
  margin-top: 18px;
  padding: 22px;
  border-radius: 22px;
  background:
    radial-gradient(circle at top left, rgba(255, 217, 235, 0.24), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(255, 243, 248, 0.98));
  border: 1px solid rgba(236, 198, 221, 0.82);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 18px 36px rgba(225, 96, 154, 0.08);
}

.events-simulator-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.events-sim-button,
.events-simulator-gift select {
  min-height: 44px;
  padding: 0 14px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(255, 245, 250, 0.98));
  border: 1px solid rgba(236, 198, 221, 0.78);
  color: #4b3950;
  font-size: 13px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 8px 18px rgba(218, 140, 186, 0.05);
}

.events-sim-button--primary {
  background: linear-gradient(135deg, #ff69b4 0%, #d97dff 58%, #8ca4ff 100%);
  border-color: rgba(255, 255, 255, 0.24);
  color: #ffffff;
  box-shadow:
    0 14px 28px rgba(221, 117, 190, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.events-simulator-gift {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 10px;
  margin-top: 10px;
}

.gift-overlay-panel {
  display: grid;
  gap: 18px;
}

.gift-overlay-toolbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 22px 24px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 242, 248, 0.98));
  border: 1px solid rgba(236, 122, 176, 0.2);
  box-shadow: 0 18px 42px rgba(225, 96, 154, 0.08);
}

.gift-overlay-toolbar__hint {
  margin: 0;
  color: #7b5065;
  font-size: 13px;
  line-height: 1.5;
}

.gift-overlay-empty {
  padding: 20px 24px;
  border-radius: 20px;
  background: rgba(255, 247, 251, 0.92);
  border: 1px dashed rgba(236, 122, 176, 0.28);
  color: #7d305b;
  font-size: 14px;
  font-weight: 600;
}

.gift-overlay-empty--warn {
  background: rgba(255, 245, 236, 0.92);
  border-color: rgba(225, 152, 67, 0.28);
  color: #8d5b24;
}

.gift-overlay-composer {
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.gift-overlay-settings-card,
.gift-overlay-board-card {
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 242, 248, 0.98));
  border: 1px solid rgba(236, 122, 176, 0.2);
  box-shadow: 0 18px 42px rgba(225, 96, 154, 0.08);
}

.gift-overlay-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.gift-overlay-setting {
  display: grid;
  gap: 8px;
}

.gift-overlay-setting span {
  color: #111111;
  font-size: 12px;
  font-weight: 700;
}

.gift-overlay-setting input,
.gift-overlay-setting select {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 14px;
  background: #fffafb;
  border: 1px solid rgba(236, 122, 176, 0.24);
  color: #111111;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 8px 18px rgba(225, 96, 154, 0.05);
}

.gift-overlay-setting input[type="color"] {
  padding: 6px;
  min-height: 44px;
}

.gift-overlay-board-card__head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.gift-overlay-board-card__head h2 {
  margin: 0 0 6px;
  color: #21131a;
  font-size: 22px;
}

.gift-overlay-board-card__head p {
  margin: 0;
  color: #7b5065;
  font-size: 13px;
  line-height: 1.5;
}

.gift-overlay-download-all {
  min-height: 46px;
  padding: 0 18px;
  border-radius: 14px;
  background: linear-gradient(180deg, #f37bb2, #d9488f);
  border: 1px solid rgba(217, 72, 143, 0.28);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 12px 22px rgba(225, 96, 154, 0.14);
}

.gift-overlay-board-frame {
  padding: 18px;
  border-radius: 26px;
  background:
    radial-gradient(circle at top center, rgba(255, 219, 235, 0.44), transparent 54%),
    linear-gradient(180deg, rgba(255, 250, 253, 0.92), rgba(255, 242, 248, 0.92));
  border: 1px dashed rgba(236, 122, 176, 0.24);
  overflow: auto;
}

.gift-overlay-board {
  display: grid;
  grid-template-columns: repeat(var(--gift-board-columns, 1), minmax(0, var(--gift-board-tile-size, 170px)));
  gap: var(--gift-board-gap, 20px);
  width: max-content;
  min-width: 100%;
  min-height: var(--gift-board-height, 240px);
  padding: var(--gift-board-padding, 28px);
  border-radius: 28px;
  background: transparent;
  box-sizing: border-box;
}

.gift-overlay-board__tile {
  display: grid;
  gap: 12px;
  justify-items: start;
  align-items: start;
}

.gift-overlay-board__card {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 10px;
  width: fit-content;
  height: fit-content;
  min-width: 100px;
  min-height: 100px;
  padding: 24px;
  border-radius: 28px;
  background: var(--gift-board-bg, rgba(255, 255, 255, 0.98));
  border: var(--gift-board-border-width, 1px) solid var(--gift-board-border-color, rgba(236, 122, 176, 0.2));
  box-shadow: 0 18px 34px rgba(225, 96, 154, 0.12);
  box-sizing: border-box;
  overflow: hidden;
}

.gift-overlay-board__card[data-text-position="top"] {
  align-content: start;
}

.gift-overlay-board__card[data-text-position="bottom"] {
  align-content: space-between;
}

.gift-overlay-board__media {
  width: auto;
  height: auto;
  min-width: 64px;
  min-height: 64px;
  display: grid;
  place-items: center;
  transform: translate(var(--gift-board-image-offset-x, 0px), var(--gift-board-image-offset-y, 0px));
}

.gift-overlay-board__media img {
  max-width: 100%;
  max-height: 100%;
}

.gift-overlay-board__label {
  width: auto;
  max-width: 100%;
  color: var(--gift-board-text, #5b3347);
  font-size: var(--gift-board-font-size, 18px);
  font-weight: 700;
  font-family: var(--gift-board-font-family, "Segoe UI", sans-serif);
  line-height: 1.3;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  transform: translate(var(--gift-board-text-offset-x, 0px), var(--gift-board-text-offset-y, 0px));
}

.gift-overlay-board__empty {
  display: grid;
  place-items: center;
  min-height: 220px;
  color: #7d305b;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

.gift-overlay-list {
  display: grid;
  gap: 18px;
}

.gift-overlay-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 360px);
  gap: 18px;
  align-items: center;
  padding: 22px;
  border-radius: 26px;
  background:
    radial-gradient(circle at top left, rgba(255, 217, 235, 0.26), transparent 30%),
    linear-gradient(180deg, rgba(255, 253, 254, 0.99), rgba(255, 243, 248, 0.98));
  border: 1px solid rgba(236, 198, 221, 0.82);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 18px 36px rgba(225, 96, 154, 0.08);
}

.gift-overlay-card__fields {
  display: grid;
  gap: 14px;
}

.gift-overlay-card__field {
  display: grid;
  gap: 8px;
}

.gift-overlay-card__field span {
  color: #4b3950;
  font-size: 12px;
  font-weight: 700;
}

.gift-overlay-card__field input,
.gift-overlay-card__field select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(255, 245, 250, 0.98));
  border: 1px solid rgba(236, 198, 221, 0.78);
  color: #4b3950;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 8px 18px rgba(218, 140, 186, 0.05);
}

.gift-overlay-card__field select {
  appearance: none;
  padding-right: 42px;
  background-image:
    linear-gradient(45deg, transparent 50%, #c36a9a 50%),
    linear-gradient(135deg, #c36a9a 50%, transparent 50%);
  background-position:
    calc(100% - 20px) 19px,
    calc(100% - 14px) 19px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.gift-overlay-card__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
}

.gift-overlay-card__offsets {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.gift-overlay-card__offset-field {
  display: grid;
  gap: 8px;
}

.gift-overlay-card__offset-field span {
  color: #4b3950;
  font-size: 11px;
  font-weight: 700;
}

.gift-overlay-card__offset-field input {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(255, 245, 250, 0.98));
  border: 1px solid rgba(236, 198, 221, 0.78);
  color: #4b3950;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 8px 18px rgba(218, 140, 186, 0.05);
}

.gift-overlay-card__button {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(255, 241, 248, 0.98));
  border: 1px solid rgba(233, 188, 215, 0.88);
  color: #7d3f68;
  font-size: 13px;
  font-weight: 700;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 10px 22px rgba(218, 140, 186, 0.08);
}

.gift-overlay-card__button--primary {
  background: linear-gradient(135deg, #ff69b4 0%, #d97dff 58%, #8ca4ff 100%);
  border-color: rgba(255, 255, 255, 0.24);
  color: #ffffff;
  box-shadow:
    0 14px 28px rgba(221, 117, 190, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.gift-overlay-card__button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.gift-overlay-card__preview {
  display: grid;
  place-items: center;
}

.gift-overlay-preview {
  display: grid;
  justify-items: center;
  gap: 14px;
  width: 100%;
  padding: 18px;
  border-radius: 26px;
  background:
    radial-gradient(circle at top center, rgba(255, 223, 238, 0.42), transparent 54%),
    linear-gradient(180deg, rgba(255, 251, 253, 0.96), rgba(255, 243, 248, 0.94));
  border: 1px dashed rgba(236, 198, 221, 0.7);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 12px 24px rgba(218, 140, 186, 0.05);
}

.gift-overlay-preview__box {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 10px;
  width: fit-content;
  height: fit-content;
  min-width: 100px;
  min-height: 100px;
  max-width: 100%;
  padding: 26px;
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(255, 251, 253, 0.98));
  border: 1px solid rgba(236, 198, 221, 0.68);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 18px 34px rgba(218, 140, 186, 0.12);
  box-sizing: border-box;
  overflow: hidden;
}

.gift-overlay-preview__box[data-text-position="top"] {
  align-content: start;
}

.gift-overlay-preview__box[data-text-position="bottom"] {
  align-content: space-between;
}

.gift-overlay-preview__box.is-missing {
  background: rgba(255, 248, 250, 0.98);
  border-style: dashed;
}

.gift-overlay-preview__media {
  width: auto;
  height: auto;
  min-width: 64px;
  min-height: 64px;
  display: grid;
  place-items: center;
}

.gift-overlay-preview__media img {
  max-width: 100%;
  max-height: 100%;
}

.gift-overlay-preview__label {
  width: auto;
  max-width: 100%;
  color: #4b3950;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}

.event-create-modal-open {
  overflow: hidden;
}

.event-create-modal {
  position: fixed;
  inset: 0;
  z-index: 2700;
  display: grid;
  place-items: center;
  padding: 20px;
}

.event-create-modal[hidden] {
  display: none;
}

.event-create-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background:
    radial-gradient(circle at top right, rgba(255, 185, 220, 0.2), transparent 34%),
    rgba(90, 42, 66, 0.34);
  backdrop-filter: blur(8px);
}

.event-create-modal__dialog {
  position: relative;
  width: min(700px, calc(100vw - 40px));
  display: grid;
  gap: 24px;
  padding: 20px 24px 24px;
  border-radius: 16px;
  border: 1px solid rgba(236, 122, 176, 0.28);
  background:
    radial-gradient(circle at top right, rgba(255, 221, 237, 0.7), transparent 32%),
    linear-gradient(180deg, rgba(255, 253, 254, 0.99), rgba(255, 239, 247, 0.99));
  color: #321b27;
  box-shadow: 0 28px 70px rgba(153, 52, 101, 0.24);
}

.event-create-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.event-create-modal__header h2 {
  margin: 0;
  color: #331b27;
  font-size: 18px;
  font-weight: 700;
}

.event-create-modal__close {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #b1467f;
  font-size: 24px;
  line-height: 1;
}

.event-create-modal__close:hover {
  background: rgba(236, 122, 176, 0.12);
  color: #9f2f68;
}

.event-create-field {
  display: grid;
  gap: 10px;
}

.event-create-field > span {
  color: #3d2430;
  font-size: 16px;
  font-weight: 600;
}

.event-create-field > input[type="number"] {
  width: 100%;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(236, 198, 221, 0.88);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(255, 245, 250, 0.98));
  color: #4b3950;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 10px 22px rgba(218, 140, 186, 0.06);
}

.event-create-field > input[type="number"]:focus {
  outline: none;
  border-color: rgba(214, 161, 234, 0.96);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 0 0 4px rgba(234, 188, 247, 0.2),
    0 10px 22px rgba(216, 153, 200, 0.1);
}

.event-combo {
  position: relative;
}

.event-combo__button {
  position: relative;
  width: 100%;
  min-height: 40px;
  padding: 0 42px 0 16px;
  border-radius: 8px;
  border: 1px solid rgba(236, 122, 176, 0.28);
  background: linear-gradient(180deg, #ffffff 0%, #fff7fb 100%);
  color: #3f2031;
  font-size: 14px;
  font-weight: 400;
  text-align: left;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 8px 18px rgba(225, 96, 154, 0.05);
}

.event-combo__button::after {
  content: "?";
  position: absolute;
  right: 16px;
  top: 50%;
  color: #a84779;
  transform: translateY(-50%);
}

.event-combo__button:hover,
.event-combo__button:focus {
  outline: none;
  border-color: rgba(217, 72, 143, 0.52);
  box-shadow:
    0 0 0 4px rgba(234, 95, 155, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.event-combo__menu {
  position: absolute;
  left: 0;
  top: calc(100% + 4px);
  z-index: 3;
  width: min(100%, 256px);
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(236, 122, 176, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 253, 254, 0.99), rgba(255, 242, 248, 0.99));
  box-shadow: 0 22px 50px rgba(153, 52, 101, 0.18);
}

.event-combo--wide-menu .event-combo__menu {
  width: min(375px, 100%);
}

.event-combo__search {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 12px;
  border-bottom: 1px solid rgba(236, 122, 176, 0.16);
  color: #c45487;
}

.event-combo__search i {
  width: 16px;
  height: 16px;
}

.event-combo__search input {
  width: 100%;
  border: 0;
  background: transparent;
  color: #3f2031;
  font-size: 14px;
  font-weight: 400;
}

.event-combo__search input:focus {
  outline: none;
}

.event-combo__search input::placeholder {
  color: #a77b91;
}

.event-combo__options {
  max-height: 268px;
  overflow-y: auto;
  padding: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--gs-scrollbar-thumb) var(--gs-scrollbar-track);
}

.event-combo__options::-webkit-scrollbar {
  width: 8px;
}

.event-combo__options::-webkit-scrollbar-track {
  background: var(--gs-scrollbar-track);
}

.event-combo__options::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: var(--gs-scrollbar-thumb);
}

.event-combo__option {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: center;
  width: 100%;
  min-height: 32px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #442635;
  font-size: 14px;
  font-weight: 400;
  text-align: left;
}

.event-combo__gift {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.event-combo__gift-media {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 243, 248, 0.98), rgba(255, 230, 241, 0.96));
  border: 1px solid rgba(236, 122, 176, 0.2);
  overflow: hidden;
  flex-shrink: 0;
}

.event-combo__gift-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-combo__gift-fallback {
  color: #bf5a8a;
  font-size: 13px;
  font-weight: 700;
}

.event-combo__gift-copy {
  display: grid;
  min-width: 0;
}

.event-combo__gift-title {
  color: #442635;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.event-combo__gift-meta {
  color: #926277;
  font-size: 11px;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.event-combo__gift--button {
  padding-right: 18px;
}

.event-combo__gift--button .event-combo__gift-title {
  font-size: 14px;
}

.event-combo__gift--button .event-combo__gift-meta {
  font-size: 11px;
}

.event-combo__option:hover,
.event-combo__option.is-selected {
  background: linear-gradient(180deg, rgba(255, 240, 247, 0.96), rgba(255, 230, 241, 0.96));
}

.event-combo__option.is-selected {
  color: #9f2f68;
}

.event-combo__check {
  color: #f37bb2;
  font-weight: 700;
}

.event-combo__empty {
  padding: 12px;
  color: #8b5a73;
  font-size: 13px;
  font-weight: 700;
}

.event-create-modal__save {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 40px;
  width: 100%;
  border-radius: 8px;
  border: 1px solid rgba(217, 72, 143, 0.3);
  background: linear-gradient(180deg, #f37bb2, #d9488f);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 12px 22px rgba(225, 96, 154, 0.16);
}

.event-create-modal__save:hover {
  background: linear-gradient(180deg, #f68abc, #df4d92);
  color: #ffffff;
}

.event-create-modal__save i {
  width: 16px;
  height: 16px;
}

.screen-panel-shell {
  display: grid;
  gap: 18px;
}

.screen-panel-note {
  padding: 28px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 252, 254, 0.98), rgba(255, 242, 248, 0.96));
  border: 1px solid rgba(231, 209, 240, 0.92);
  box-shadow:
    0 18px 36px rgba(205, 145, 187, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.screen-panel-note strong {
  display: block;
  margin-bottom: 10px;
  color: var(--gs-accent-strong);
  font-size: 18px;
}

.screen-panel-note p {
  max-width: 760px;
  color: #6d5870;
}

.screen-panel-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
}

.screen-base-url-field {
  display: grid;
  gap: 8px;
}

.screen-base-url-field span {
  color: #c05f9a;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.screen-base-url-field input {
  width: 100%;
  min-height: 48px;
  padding: 13px 16px;
  border-radius: 14px;
  border: 1px solid rgba(210, 189, 223, 0.98);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(250, 242, 252, 0.98));
  color: #4b3950;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 10px 22px rgba(206, 145, 185, 0.08);
}

.screen-base-url-field input[readonly] {
  cursor: default;
  pointer-events: none;
  user-select: text;
}

.screen-base-url-field input::placeholder {
  color: #b1849a;
}

.screen-base-url-field input:focus {
  outline: none;
  border-color: rgba(214, 161, 234, 0.96);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 0 0 4px rgba(234, 188, 247, 0.26),
    0 12px 24px rgba(216, 153, 200, 0.12);
}

.screen-panel-save-btn {
  min-height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: linear-gradient(135deg, #f06fb0 0%, #da84ff 58%, #96a6ff 100%);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 16px 28px rgba(214, 118, 196, 0.22);
}

.screen-panel-save-btn:hover {
  filter: brightness(1.07);
  transform: translateY(-1px);
}

.screen-table-wrap {
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(231, 209, 240, 0.98);
  background:
    radial-gradient(circle at top left, rgba(255, 196, 225, 0.32), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(255, 244, 250, 0.97));
  box-shadow: 0 22px 40px rgba(205, 145, 187, 0.12);
}

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

.screen-table thead th {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(231, 209, 240, 0.92);
  color: #8b5a7a;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: left;
  background: rgba(255, 248, 252, 0.9);
}

.screen-table tbody td {
  padding: 14px 18px;
  border-top: 1px solid rgba(236, 219, 229, 0.8);
  color: #4b3950;
  vertical-align: middle;
}

.screen-table tbody tr:hover {
  background: rgba(255, 239, 247, 0.76);
}

.screen-table input[type="text"],
.screen-table input[type="url"],
.screen-table input[type="number"] {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(210, 189, 223, 0.98);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(250, 242, 252, 0.98));
  color: #4b3950;
}

.screen-table input[readonly] {
  cursor: default;
  pointer-events: none;
  user-select: none;
}

.screen-table input:focus {
  outline: none;
  border-color: rgba(214, 161, 234, 0.96);
  box-shadow: 0 0 0 3px rgba(234, 188, 247, 0.24);
}

.screen-url-cell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.screen-copy-btn {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(223, 191, 234, 0.92);
  background: linear-gradient(180deg, rgba(255, 251, 253, 0.98), rgba(248, 241, 252, 0.98));
  color: #8b456f;
  font-weight: 700;
  white-space: nowrap;
}

.screen-copy-btn:hover {
  background: linear-gradient(180deg, rgba(255, 245, 250, 1), rgba(244, 236, 252, 1));
}

.screen-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.screen-status-pill__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  flex: 0 0 auto;
}

.screen-status-pill.is-online {
  background: rgba(236, 255, 245, 0.92);
  border: 1px solid rgba(126, 205, 157, 0.4);
  color: #27714b;
}

.screen-status-pill.is-online .screen-status-pill__dot {
  background: #4dd68f;
  box-shadow: 0 0 0 4px rgba(77, 214, 143, 0.14);
}

.screen-status-pill.is-offline {
  background: rgba(255, 242, 244, 0.94);
  border: 1px solid rgba(232, 153, 165, 0.4);
  color: #9a3f56;
}

.screen-status-pill.is-offline .screen-status-pill__dot {
  background: #ff6767;
  box-shadow: 0 0 0 4px rgba(255, 103, 103, 0.14);
}

.actions-add-row {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(255, 69, 0, 0.35);
  background: rgba(15, 23, 38, 0.95);
}

.add-row-title {
  color: #ff6b2c;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.add-row-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.add-row-grid label {
  display: grid;
  gap: 6px;
}

.add-row-grid label span {
  color: #cbd5e1;
  font-size: 12px;
}

.add-row-grid input,
.add-row-grid select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(255, 69, 0, 0.24);
  border-radius: 4px;
  background: #0f1829;
  color: #eef2f7;
}

.add-row-grid .wide {
  grid-column: span 2;
}

.actions-save-btn {
  margin-top: 16px;
  min-height: 46px;
  background: linear-gradient(180deg, #ff7a42 0%, #ff5a1f 100%);
  color: #fff;
  padding: 0 22px;
  border-radius: 12px;
  font-weight: 700;
  border: 1px solid rgba(255, 159, 117, 0.22);
  box-shadow:
    0 12px 24px rgba(255, 90, 31, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}

.actions-save-btn:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
  box-shadow:
    0 16px 28px rgba(255, 90, 31, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.actions-cancel-btn {
  margin-top: 16px;
  min-height: 46px;
  background: rgba(16, 27, 45, 0.94);
  color: #f4f7fb;
  border: 1px solid rgba(255, 116, 62, 0.24);
  padding: 0 22px;
  border-radius: 12px;
  font-weight: 700;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 8px 18px rgba(0, 0, 0, 0.16);
  transition: transform 0.2s, border-color 0.2s, background-color 0.2s;
}

.actions-cancel-btn:hover {
  background: rgba(255, 90, 31, 0.12);
  border-color: rgba(255, 116, 62, 0.34);
  transform: translateY(-1px);
}

.action-modal-backdrop {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 0 24px 24px;
  background:
    radial-gradient(circle at top, rgba(255, 182, 221, 0.18), transparent 28%),
    rgba(112, 74, 99, 0.28);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  z-index: 1000;
}

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

.action-modal {
  width: min(100%, 860px);
  max-height: calc(100vh - 24px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(255, 213, 235, 0.42), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(255, 244, 249, 0.98) 100%);
  border: 1px solid rgba(231, 209, 240, 0.98);
  border-radius: 18px;
  box-shadow:
    0 30px 80px rgba(178, 120, 161, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
  padding: 0;
}

.action-modal-form::-webkit-scrollbar,
.library-results::-webkit-scrollbar {
  width: 10px;
}

.action-modal-form::-webkit-scrollbar-track,
.library-results::-webkit-scrollbar-track {
  background: var(--gs-scrollbar-track);
  border-radius: 999px;
}

.action-modal-form::-webkit-scrollbar-thumb,
.library-results::-webkit-scrollbar-thumb {
  background: var(--gs-scrollbar-thumb-strong);
  border: 2px solid transparent;
  background-clip: padding-box;
  border-radius: 999px;
}

.action-modal-header {
  position: sticky;
  top: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  margin: 0;
  padding: 24px 24px 16px;
  background:
    linear-gradient(180deg, rgba(255, 248, 252, 0.98), rgba(255, 240, 247, 0.96));
  border-bottom: 1px solid rgba(231, 209, 240, 0.92);
  backdrop-filter: none;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
}

.action-modal-header h2 {
  color: #d84d8f;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 6px;
}

.action-modal-header p {
  color: #7e5567;
  font-size: 12px;
  line-height: 1.5;
}

.action-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  background: rgba(255, 250, 252, 0.94);
  border: 1px solid rgba(236, 122, 176, 0.22);
  border-radius: 999px;
  color: #d84d8f;
  font-size: 18px;
  line-height: 1;
  font-family: inherit;
  cursor: pointer;
  flex-shrink: 0;
}

.action-modal-close:hover {
  background: rgba(255, 234, 243, 0.98);
  border-color: rgba(236, 122, 176, 0.4);
}

.action-modal-form {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 18px 24px 24px;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(236, 122, 176, 0.56) rgba(236, 122, 176, 0.1);
}

.action-name-field {
  display: block;
  margin-bottom: 10px;
}

.action-name-field span {
  display: inline-block;
  color: #d84d8f;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.action-modal-form > input,
.action-modal-form > label input,
.action-modal-form > label select,
.action-option-body input,
.action-option-body select,
.action-modal-grid input,
.action-modal-grid select,
.action-rule-grid input,
.action-rule-grid select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(210, 189, 223, 0.98);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(250, 242, 252, 0.98));
  color: #4b3950;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 8px 18px rgba(206, 145, 185, 0.06);
}

.action-modal-form > input:focus,
.action-modal-form > label input:focus,
.action-modal-form > label select:focus,
.action-modal-grid input:focus,
.action-modal-grid select:focus,
.action-rule-grid input:focus,
.action-rule-grid select:focus,
.action-check-note textarea:focus {
  outline: none;
  border-color: rgba(214, 161, 234, 0.96);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 0 0 4px rgba(234, 188, 247, 0.24),
    0 10px 22px rgba(216, 153, 200, 0.12);
}

.action-option-list {
  display: grid;
  gap: 12px;
  padding: 20px 0 18px;
}

.action-option {
  display: block;
  color: #5d4a5d;
  font-size: 13px;
}

.action-option-head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
}

.action-option-head span {
  color: #4b3950;
  font-size: 14px;
  font-weight: 600;
}

.action-option input {
  accent-color: #d84d8f;
}

.action-block {
  padding: 12px 14px;
  border: 1px solid rgba(231, 209, 240, 0.92);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 245, 250, 0.96));
  transition: border-color 0.2s, background-color 0.2s, transform 0.2s;
}

.action-block:hover {
  border-color: rgba(223, 191, 234, 0.98);
  background: linear-gradient(180deg, rgba(255, 251, 253, 1), rgba(250, 241, 251, 0.98));
  transform: translateY(-1px);
}

.action-block.is-action-invalid {
  border-color: rgba(239, 71, 111, 0.42);
  box-shadow:
    0 0 0 1px rgba(239, 71, 111, 0.08),
    0 14px 28px rgba(239, 71, 111, 0.08);
}

.action-option-body {
  margin-left: 30px;
  margin-top: 10px;
  padding: 16px;
  border: 1px solid rgba(231, 209, 240, 0.92);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 252, 254, 0.98), rgba(255, 244, 249, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 10px 22px rgba(206, 145, 185, 0.06);
}

.action-option-body.is-action-invalid,
.file-picker-card.is-action-invalid,
.show-alert-layout.is-action-invalid,
.read-tts-layout.is-action-invalid,
.inline-action-fields.is-action-invalid,
.keystroke-launcher.is-action-invalid,
.play-audio-template.is-action-invalid {
  border-color: rgba(239, 71, 111, 0.36);
  box-shadow:
    0 0 0 3px rgba(239, 71, 111, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.action-inline-warning {
  position: relative;
  display: inline-flex;
  align-items: center;
  max-width: min(100%, 420px);
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(239, 71, 111, 0.26);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 248, 250, 0.98), rgba(255, 236, 241, 0.98));
  color: #b63558;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
  box-shadow: 0 12px 22px rgba(239, 71, 111, 0.12);
}

.action-inline-warning::before {
  content: "";
  position: absolute;
  left: 18px;
  top: -7px;
  width: 12px;
  height: 12px;
  background: inherit;
  border-top: 1px solid rgba(239, 71, 111, 0.26);
  border-left: 1px solid rgba(239, 71, 111, 0.26);
  transform: rotate(45deg);
}

.inline-action-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.action-option-body input,
.action-option-body select {
  min-height: 44px;
}

.action-option-body input::placeholder {
  color: #8fa0b6;
}

.action-option-body .inline-action-fields > input,
.action-option-body .inline-action-fields > select {
  background: linear-gradient(180deg, rgba(18, 30, 49, 0.98), rgba(14, 24, 40, 0.98));
}

.action-inline-wide {
  grid-column: 1 / -1;
}

.file-picker-card {
  padding: 16px;
  border: 1px solid rgba(255, 116, 62, 0.16);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)),
    rgba(9, 18, 33, 0.9);
  min-width: 0;
}

.action-option-body .file-picker-card {
  border-color: rgba(255, 116, 62, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.015), rgba(255, 255, 255, 0)),
    rgba(11, 19, 32, 0.94);
}

.file-picker-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.file-picker-title {
  color: #f8fafc;
  font-size: 13px;
  font-weight: 700;
}

.file-picker-meta {
  color: #8fa2ba;
  font-size: 11px;
}

.file-picker-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(255, 116, 62, 0.12);
  border-radius: 12px;
  background: rgba(15, 24, 41, 0.92);
}

.dual-file-picker-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(255, 116, 62, 0.12);
  border-radius: 12px;
  background: rgba(15, 24, 41, 0.92);
}

.audio-source-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  min-width: 0;
}

.play-audio-template {
  display: grid;
  gap: 10px;
  max-width: 420px;
}

.play-audio-template-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
  min-width: 0;
}

.play-audio-template-row .file-picker-name {
  flex: 1 1 auto;
}

.myinstants-selected-chip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin-top: 2px;
  padding: 8px 10px;
  border: 1px solid rgba(236, 122, 176, 0.28);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 249, 252, 0.96), rgba(255, 238, 246, 0.96));
}

.myinstants-selected-remove {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid rgba(236, 122, 176, 0.34);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.92);
  color: #8d4a6e;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.myinstants-selected-remove:hover {
  background: rgba(255, 238, 246, 0.98);
  border-color: rgba(236, 122, 176, 0.52);
  color: #7b325b;
  transform: translateY(-1px);
}

.myinstants-selected-content {
  min-width: 0;
}

.myinstants-selected-content strong {
  display: block;
  font-size: 18px;
  line-height: 1.2;
  color: #232323;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.myinstants-selected-content span {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: #6f6f6f;
}

.show-alert-layout {
  display: grid;
  gap: 8px;
}

.show-alert-controls-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
}

.show-alert-color-edge {
  display: grid;
  grid-template-columns: 44px 32px;
  gap: 0;
  align-items: stretch;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(236, 122, 176, 0.34);
  background: rgba(255, 255, 255, 0.95);
}

.show-alert-color-preview,
.show-alert-color-arrow {
  min-height: 44px;
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: #5d2f47;
}

.show-alert-color-preview {
  border-right: 1px solid rgba(236, 122, 176, 0.28);
}

.show-alert-color-swatch {
  width: 18px;
  height: 18px;
  border-radius: 2px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: #ffffff;
}

.show-alert-color-arrow i {
  width: 14px;
  height: 14px;
}

.show-alert-color-preview:hover,
.show-alert-color-arrow:hover {
  background: rgba(255, 231, 243, 0.94);
}

.show-alert-sticker-compact {
  text-align: center;
}

.show-alert-global-btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid rgba(236, 122, 176, 0.28);
  background: rgba(255, 255, 255, 0.92);
  color: #2f2f2f;
  font-weight: 600;
}

.show-alert-global-btn i {
  width: 14px;
  height: 14px;
}

.show-alert-placeholders {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: #6a6a6a;
}

.read-tts-layout {
  display: grid;
  gap: 8px;
}

.read-tts-placeholders {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: #6a6a6a;
}

.read-tts-grid {
  display: grid;
  gap: 10px;
}

.read-tts-row {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.read-tts-row > span {
  font-size: 13px;
  font-weight: 600;
  color: #333333;
}

.read-tts-row input[type="range"] {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  min-height: 10px !important;
  height: 10px !important;
  padding: 0 !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, #f06ba8 0%, #f06ba8 50%, #2f2f34 50%, #2f2f34 100%) !important;
  border: 1px solid rgba(236, 122, 176, 0.18) !important;
  outline: none;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.22) !important;
}

.read-tts-row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffffff, #f06ba8);
  border: 2px solid #f8d6e6;
  box-shadow: 0 8px 18px rgba(225, 96, 154, 0.18);
  cursor: pointer;
}

.read-tts-row input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffffff, #f06ba8);
  border: 2px solid #f8d6e6;
  box-shadow: 0 8px 18px rgba(225, 96, 154, 0.18);
  cursor: pointer;
}

.read-tts-row input[type="range"]::-moz-range-track {
  height: 10px;
  border-radius: 999px;
  background: #2f2f34;
}

.keystroke-configurator {
  display: grid;
  gap: 18px;
  padding: 20px;
  border-radius: 16px;
  border: 1px solid rgba(236, 122, 176, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 253, 254, 0.98), rgba(255, 241, 248, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 18px 36px rgba(225, 96, 154, 0.1);
}

.keystroke-launcher {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.keystroke-launcher__button {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid rgba(236, 122, 176, 0.28);
  background: linear-gradient(180deg, #fffefe 0%, #fff4f9 100%);
  color: #3b2b34;
  font-weight: 700;
  box-shadow: 0 10px 20px rgba(225, 96, 154, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.keystroke-launcher__button:hover {
  transform: translateY(-1px);
  border-color: rgba(227, 84, 152, 0.42);
  box-shadow: 0 14px 24px rgba(225, 96, 154, 0.12);
}

.keystroke-launcher__summary {
  min-width: 0;
  color: #8b5a73;
  font-size: 13px;
  line-height: 1.5;
}

.keystroke-config-modal__dialog {
  width: min(760px, calc(100vw - 32px));
  display: flex;
  flex-direction: column;
  max-height: min(84vh, 860px);
  overflow: hidden;
}

#keystroke-config-modal .overlay-settings-modal__body {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow: auto;
}

.keystroke-config-modal__footer {
  flex: 0 0 auto;
  margin-top: 0;
  padding: 16px 22px 20px;
  border-top: 1px solid rgba(236, 122, 176, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 249, 252, 0.94), rgba(255, 238, 246, 0.98));
  box-shadow: 0 -16px 32px rgba(225, 96, 154, 0.06);
  justify-content: center !important;
}

.keystroke-config-modal__save {
  min-width: 168px;
}

.keystroke-configurator__header {
  display: grid;
  gap: 4px;
}

.keystroke-configurator__header strong {
  color: var(--gs-accent-strong);
  font-size: 20px;
  line-height: 1.2;
}

.keystroke-configurator__header span {
  color: #8b5a73;
  font-size: 13px;
}

.keystroke-modifiers {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.keystroke-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid rgba(236, 122, 176, 0.24);
  background: linear-gradient(180deg, #ffffff 0%, #fff5fa 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 10px 20px rgba(225, 96, 154, 0.06);
  color: #3b2b34;
  font-weight: 700;
}

.keystroke-check input {
  width: 18px !important;
  min-width: 18px;
  height: 18px !important;
  min-height: 18px !important;
  margin: 0;
  accent-color: var(--gs-accent-strong);
}

.keystroke-check:has(input:checked) {
  border-color: rgba(217, 72, 143, 0.46);
  background: linear-gradient(180deg, #fff0f7 0%, #ffe3ef 100%);
  color: #9f2f68;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 12px 24px rgba(225, 96, 154, 0.12);
}

.keystroke-check--wide {
  justify-content: flex-start;
}

.keystroke-field {
  display: grid;
  gap: 8px;
}

.keystroke-field > span,
.keystroke-duration > span {
  color: #3b2b34;
  font-size: 14px;
  font-weight: 600;
}

textarea.keystroke-textarea {
  width: 100%;
  min-height: 118px;
  padding: 14px 16px;
  resize: vertical;
  border-radius: 12px;
  border: 1px solid rgba(236, 122, 176, 0.24) !important;
  background: linear-gradient(180deg, #ffffff 0%, #fff8fb 100%) !important;
  color: var(--gs-text) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 12px 24px rgba(225, 96, 154, 0.06) !important;
}

textarea.keystroke-textarea:focus {
  outline: none;
  border-color: rgba(227, 84, 152, 0.46) !important;
  box-shadow:
    0 0 0 4px rgba(234, 95, 155, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.88) !important;
}

.keystroke-repeat {
  display: inline-grid;
  grid-template-columns: auto minmax(78px, 96px);
  gap: 10px;
  align-items: center;
  justify-content: start;
  margin-top: -4px;
  color: #3b2b34;
  font-size: 15px;
  font-weight: 700;
}

.keystroke-repeat input {
  width: 96px;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(236, 122, 176, 0.28);
  background: linear-gradient(180deg, #ffffff 0%, #fff6fa 100%);
  color: #3f2031;
  font-size: 15px;
  font-weight: 700;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 10px 20px rgba(225, 96, 154, 0.06);
}

.keystroke-repeat input:focus {
  outline: none;
  border-color: rgba(227, 84, 152, 0.52);
  box-shadow:
    0 0 0 4px rgba(234, 95, 155, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.keystroke-placeholder-note,
.keystroke-note {
  margin: 0;
  color: #8b5a73;
  font-size: 12px;
  line-height: 1.6;
}

.keystroke-shortcuts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, max-content));
  gap: 10px;
}

.keystroke-token {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid rgba(236, 122, 176, 0.26);
  background: linear-gradient(180deg, #fffefe 0%, #fff3f8 100%);
  color: #3b2b34;
  font-weight: 600;
  box-shadow: 0 12px 22px rgba(225, 96, 154, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.keystroke-token:hover {
  transform: translateY(-1px);
  border-color: rgba(227, 84, 152, 0.4);
  background: linear-gradient(180deg, #fff2f8 0%, #ffe7f1 100%);
  box-shadow: 0 14px 24px rgba(225, 96, 154, 0.1);
}

.keystroke-options {
  display: grid;
  grid-template-columns: minmax(180px, 240px);
  gap: 14px;
  justify-content: start;
  align-items: end;
}

.keystroke-duration {
  display: grid;
  gap: 8px;
}

.keystroke-duration-input {
  display: inline-grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 46px;
  width: min(190px, 100%);
  padding-right: 14px;
  border-radius: 12px;
  border: 1px solid rgba(236, 122, 176, 0.28);
  background: #fffafb;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 8px 18px rgba(225, 96, 154, 0.06);
}

.keystroke-duration-input input {
  min-height: 44px !important;
  height: 44px !important;
  padding: 0 14px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.keystroke-duration-input span {
  color: #8b5a73;
  font-size: 14px;
  font-weight: 600;
}

@media (max-width: 760px) {
  .keystroke-launcher {
    grid-template-columns: 1fr;
  }

  .keystroke-options {
    grid-template-columns: 1fr;
  }

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

/* ===== FOOTER UPDATE ===== */
.read-tts-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end; /* pindahin ke kanan semua */
  gap: 10px;
}

/* checkbox + text */
.read-tts-random {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #333333;
  font-size: 12px;
  font-weight: 600;
}

/* kecilin checkbox */
.read-tts-random input[type="checkbox"] {
  width: 16px;
  height: 16px;
  border: 1px solid #64748B;
  transform: scale(0.9);
  cursor: pointer;
}

/* tombol test */
.read-tts-test-btn {
  min-height: 36px;
  min-width: 100px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(236, 122, 176, 0.3);
  background: linear-gradient(180deg, rgba(255, 245, 250, 0.98), rgba(255, 229, 241, 0.98));
  color: #6f2d52;
  font-weight: 700;
}

.read-tts-test-btn i {
  width: 14px;
  height: 14px;
}

.read-tts-test-btn:hover {
  background: linear-gradient(180deg, rgba(255, 236, 246, 0.98), rgba(255, 219, 236, 0.98));
  border-color: rgba(227, 84, 152, 0.52);
}

.file-picker-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  background: linear-gradient(180deg, #ff7a42 0%, #ff5a1f 100%);
  color: #ffffff;
  padding: 0 16px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  border: 1px solid rgba(255, 159, 117, 0.22);
  box-shadow:
    0 10px 22px rgba(255, 90, 31, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s, background 0.2s;
}

.file-picker-button:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
  box-shadow:
    0 14px 26px rgba(255, 90, 31, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.file-picker-name {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  border: 1px dashed rgba(255, 116, 62, 0.18);
  border-radius: 10px;
  background: rgba(10, 18, 31, 0.88);
  color: #d7e0eb;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.file-drop-hint {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid rgba(255, 116, 62, 0.18);
  border-radius: 12px;
  background: rgba(16, 27, 45, 0.9);
  color: #d3dbe7;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  cursor: default;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s, transform 0.2s;
}

.file-drop-hint:hover {
  border-color: rgba(255, 116, 62, 0.18);
  background: rgba(16, 27, 45, 0.9);
  color: #d3dbe7;
  transform: none;
}

.file-picker-row.is-dragover,
.dual-file-picker-row.is-dragover,
.play-audio-template-row.is-dragover {
  border-color: rgba(236, 122, 176, 0.46);
  background: rgba(244, 127, 179, 0.14);
  box-shadow: 0 12px 24px rgba(225, 96, 154, 0.12);
}

.file-picker-row.is-dragover .file-drop-hint,
.dual-file-picker-row.is-dragover .file-drop-hint,
.play-audio-template-row.is-dragover .file-drop-hint {
  border-color: rgba(236, 122, 176, 0.46);
  background: rgba(255, 245, 250, 0.92);
  color: #b1467f;
}

.library-browser {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(92vw, 760px);
  max-height: min(86vh, 760px);
  margin-top: 14px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: #2f2f2f;
  z-index: 3401;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.library-browser-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 236, 246, 0.58);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  z-index: 3400;
}

.library-browser-open {
  overflow: hidden;
}

.library-browser-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.library-browser-head strong {
  display: block;
  color: #ffffff;
  font-size: 18px;
  line-height: 1.1;
}

.library-browser-head p {
  margin: 6px 0 0;
  color: #9eb0c6;
  font-size: 12px;
}

.library-close-btn {
  width: 32px;
  height: 32px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: transparent;
  border: 0;
  color: #ededed;
  font-size: 24px;
  line-height: 1;
}

.library-close-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.library-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
}

.library-search-input-wrap {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 4px;
  border: 1px solid #1997d4;
  background: #2f2f2f;
}

.library-search-input-wrap i {
  width: 16px;
  height: 16px;
  color: #8f8f8f;
}

.library-search-input-wrap input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #f4f4f4;
}

.library-search-input-wrap input:focus {
  outline: none;
}

.library-provider-note {
  margin: 0;
  color: #d7d7d7;
  font-size: 12px;
  white-space: nowrap;
}

.library-provider-note a {
  color: #2d9cdb;
  text-decoration: none;
}

.library-status {
  margin-top: 12px;
  color: #b5b5b5;
  font-size: 12px;
}

.library-results {
  display: grid;
  gap: 4px;
  margin-top: 12px;
  max-height: 520px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 10px 0 10px;
}

.library-result-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  text-align: left;
  padding: 6px 6px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #e5ebf3;
  box-shadow: none;
  transition: none;
}

.library-result-item.is-selected {
  background: rgba(255, 255, 255, 0.04);
}

.library-result-main {
  min-width: 0;
  padding-left: 4px;
}

.library-result-item strong {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #f2f2f2;
  line-height: 1.35;
}

.library-result-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: end;
}

.library-result-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 92px;
  min-height: 36px;
  padding: 0 16px;
  border-radius: 4px;
  border: 1px solid #575757;
  background: #343434;
  color: #efefef;
  font-size: 12px;
  font-weight: 500;
  box-shadow: none;
  transition: none;
}

.library-result-action i {
  width: 16px;
  height: 16px;
}

.library-result-action:hover {
  background: #3c3c3c;
  border-color: #676767;
  color: #ffffff;
}

.library-result-action.is-primary {
  background: #343434;
  color: #efefef;
  border-color: #575757;
}

.library-result-action.is-primary:hover {
  background: #3c3c3c;
  border-color: #767676;
  color: #ffffff;
}

.library-result-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

.sr-only-file {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.action-check-note {
  padding: 18px 0 10px;
}

.action-check-note strong {
  display: block;
  color: #8fdd72;
  margin-bottom: 10px;
  font-size: 12px;
  letter-spacing: 0.03em;
}

.action-summary-list {
  display: grid;
  gap: 10px;
  min-height: 92px;
  padding: 14px;
  border: 1px solid rgba(255, 116, 62, 0.22);
  border-radius: 12px;
  background: rgba(16, 27, 45, 0.96);
  color: #eef2f7;
}

.action-summary-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.action-summary-item::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #8fdd72;
  flex-shrink: 0;
}

.action-summary-empty {
  color: rgba(238, 242, 247, 0.7);
  font-size: 14px;
}

.action-modal-section {
  margin-top: 10px;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 116, 62, 0.14);
}

.action-modal-section label {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.action-modal-section label span {
  color: #c6d0de;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.action-modal-section > label {
  padding: 14px 16px;
  border: 1px solid rgba(255, 116, 62, 0.12);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), rgba(255, 255, 255, 0)),
    rgba(255, 255, 255, 0.012);
}

.action-modal-section > label > span {
  color: #d7dee9;
  font-size: 13px;
}

.action-modal-grid,
.action-rule-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.action-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 8px;
  justify-content: center;
}

.action-flags label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 600;
  padding: 10px 14px;
  border: 1px solid rgba(255, 116, 62, 0.16);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0)),
    rgba(255, 255, 255, 0.015);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: border-color 0.2s, background-color 0.2s, transform 0.2s;
}

.action-flags label:hover {
  border-color: rgba(255, 116, 62, 0.28);
  background: rgba(255, 116, 62, 0.08);
  transform: translateY(-1px);
}

.action-flags input {
  accent-color: #ff5a1f;
}

#action-seconds,
#action-screen,
#action-cooldown,
#event-type,
#event-value,
#action-points {
  background: #fffafb !important;
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid rgba(236, 122, 176, 0.28) !important;
  color: #111111 !important;
  font-size: 14px;
  padding: 0 14px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 8px 18px rgba(225, 96, 154, 0.06) !important;
}

#action-seconds::placeholder,
#action-screen::placeholder,
#action-cooldown::placeholder,
#event-value::placeholder,
#action-points::placeholder {
  color: #9c5d7e !important;
}

#action-seconds:focus,
#action-screen:focus,
#action-cooldown:focus,
#event-type:focus,
#event-value:focus,
#action-points:focus {
  border-color: rgba(227, 84, 152, 0.46) !important;
  box-shadow:
    0 0 0 4px rgba(234, 95, 155, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.88) !important;
}

#action-volume {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 90, 31, 0.9), rgba(255, 176, 120, 0.8));
  outline: none;
  border: 1px solid rgba(255, 116, 62, 0.18);
  box-shadow:
    inset 0 1px 2px rgba(0, 0, 0, 0.28),
    0 6px 18px rgba(0, 0, 0, 0.12);
}

#action-volume::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffd0ba, #ff7a42);
  border: 2px solid #0d1422;
  box-shadow: 0 6px 14px rgba(255, 90, 31, 0.28);
  cursor: pointer;
}

#action-volume::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffd0ba, #ff7a42);
  border: 2px solid #0d1422;
  box-shadow: 0 6px 14px rgba(255, 90, 31, 0.28);
  cursor: pointer;
}

#action-volume::-moz-range-track {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 90, 31, 0.9), rgba(255, 176, 120, 0.8));
}

.action-modal-footer {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 116, 62, 0.14);
}

.modal-open {
  overflow: hidden;
}

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

  .actions-search {
    min-width: 0;
  }

  .actions-toolbar-right {
    width: 100%;
  }

  .actions-search {
    flex: 1;
  }

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

  .add-row-grid .wide {
    grid-column: span 2;
  }
}

@media (max-width: 720px) {
  .actions-main {
    padding: 0 16px 24px;
  }

  .action-modal {
    width: min(100%, 720px);
  }

  .add-row-grid {
    grid-template-columns: 1fr;
  }

  .add-row-grid .wide {
    grid-column: span 1;
  }

  .action-modal-grid,
  .action-rule-grid {
    grid-template-columns: 1fr;
  }

  .inline-action-fields {
    grid-template-columns: 1fr;
  }

  .file-picker-row {
    grid-template-columns: 1fr;
  }

  .dual-file-picker-row {
    grid-template-columns: 1fr;
  }

  .audio-source-grid {
    grid-template-columns: 1fr;
  }

  .library-search-row {
    grid-template-columns: 1fr;
  }

  .action-modal-footer {
    flex-direction: column;
  }
}

.overlay-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.overlay-card {
  background: #111827;
  border-radius: 12px;
  padding: 16px;
}

.overlay-preview {
  height: 120px;
  background: #1f2937;
  border-radius: 8px;
  margin-bottom: 10px;
}

.no-right-panel .right-panel {
  display: none;
}

.no-right-panel .layout {
  grid-template-columns: 300px 1fr;
}

.no-right-panel .main-content {
  margin-right: 0;
  padding-right: 0;
  width: 100%;
}

/* Pink White Theme Override */
:root {
  --gs-bg: #fff6fb;
  --gs-bg-soft: #fffafe;
  --gs-surface: #ffffff;
  --gs-surface-2: #fff1f7;
  --gs-surface-3: #ffe6f1;
  --gs-border: rgba(236, 122, 176, 0.28);
  --gs-border-strong: rgba(227, 84, 152, 0.42);
  --gs-text: #111111;
  --gs-text-soft: #2b2b2b;
  --gs-accent: #ea5f9b;
  --gs-accent-strong: #d94589;
  --gs-accent-soft: #ffd2e6;
  --gs-shadow: 0 22px 50px rgba(225, 96, 154, 0.12);
}

body,
.actions-main {
  background:
    radial-gradient(circle at top left, rgba(255, 147, 202, 0.28), transparent 26%),
    radial-gradient(circle at bottom right, rgba(255, 205, 230, 0.42), transparent 24%),
    linear-gradient(180deg, var(--gs-bg-soft) 0%, var(--gs-bg) 100%);
  color: var(--gs-text);
}

.sidebar {
  background:
    linear-gradient(180deg, #fff8fc 0%, #ffeef7 100%);
  padding: 26px 18px 24px;
  border-right: 1px solid var(--gs-border);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.6);
}

.logo {
  padding: 6px 8px 18px;
  text-align: center;
}

.sidebar-brand-label {
  margin-top: -26px;
  font-size: 17px;
  letter-spacing: 0.12em;
}

.preset-header {
  align-items: center;
  margin-bottom: 14px;
  color: #111111;
  gap: 12px;
}

.preset-header > span {
  flex: 1;
  color: #241821;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.01em;
  min-width: 0;
}

.preset-actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.preset-actions button {
  min-width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  margin-left: 0;
  border-radius: 12px;
  border: 1px solid rgba(236, 122, 176, 0.16);
  background: linear-gradient(180deg, rgba(255, 251, 253, 0.98), rgba(255, 238, 246, 0.98));
  color: #b95485;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 8px 18px rgba(225, 96, 154, 0.06);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease;
}

.preset-actions button:hover {
  transform: translateY(-1px);
  background: linear-gradient(180deg, rgba(255, 247, 251, 1), rgba(255, 232, 242, 1));
  border-color: rgba(236, 122, 176, 0.24);
  color: #8f3566;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 12px 22px rgba(225, 96, 154, 0.08);
}

.preset-add {
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
}

.preset-settings {
  min-width: 42px;
  width: 42px;
  padding: 0;
  font-size: 0;
  font-weight: 700;
  line-height: 0;
  color: transparent;
  text-shadow: none;
  overflow: hidden;
}

.preset-settings--icon {
  min-width: 42px;
  width: 42px;
  padding: 0;
}

.preset-settings--icon i {
  width: 21px;
  height: 21px;
  stroke-width: 2.2;
}

.preset-settings i {
  width: 21px;
  height: 21px;
  stroke-width: 2.2;
  color: currentColor;
  pointer-events: none;
}

.preset-select-wrapper select,
.preset-select {
  appearance: none;
  width: 100%;
  min-height: 52px;
  padding: 0 48px 0 16px;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 254, 255, 0.98), rgba(255, 244, 249, 0.98));
  border: 1px solid rgba(45, 32, 40, 0.22);
  color: #1d1419;
  font-size: 16px;
  font-weight: 700;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 10px 20px rgba(225, 96, 154, 0.06);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.preset-select-wrapper {
  position: relative;
}

.preset-select-wrapper::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 18px;
  width: 10px;
  height: 10px;
  border-right: 2px solid #2b1b23;
  border-bottom: 2px solid #2b1b23;
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}

.preset-select-wrapper select:focus,
.preset-select:focus {
  outline: none;
  border-color: rgba(236, 122, 176, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 0 0 4px rgba(243, 123, 178, 0.12),
    0 12px 24px rgba(225, 96, 154, 0.08);
}

.preset-box {
  position: relative;
  border-radius: 18px;
  padding: 18px 16px 16px;
  overflow: visible;
  z-index: 5;
}

.preset-box::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at top right, rgba(255, 213, 232, 0.44), transparent 36%),
    linear-gradient(180deg, rgba(255, 251, 253, 0.55), rgba(255, 241, 247, 0));
  pointer-events: none;
}

.preset-box > * {
  position: relative;
  z-index: 1;
}

.tiktok-profile-box {
  padding: 16px 14px;
  gap: 12px;
  border-radius: 16px;
  margin-bottom: 22px;
  justify-content: center;
}

.profile-pic {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.profile-info {
  min-width: 0;
  display: grid;
  justify-items: center;
  text-align: center;
}

.username {
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}

.profile-connect-btn {
  min-height: 30px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 12px;
}

.tiktok-profile-box,
.preset-box,
section,
.settings-card,
.actions-shell,
.page-header,
.rule-card,
.log-entry,
.overlay-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 244, 249, 0.98));
  border: 1px solid var(--gs-border);
  box-shadow: var(--gs-shadow);
}

.banner,
.obs-instructions,
.minecraft-warning,
.minecraft-promo-box,
.pro-box,
.actions-table-wrap,
.action-modal,
.comparison-header {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 240, 247, 0.98));
  border-color: var(--gs-border);
}

.banner {
  background: linear-gradient(90deg, #ef6aa8 0%, #d94589 100%);
  color: #ffffff;
  border: 1px solid rgba(217, 69, 137, 0.42);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.14);
}

.logo img,
.profile-pic {
  filter: saturate(0.92) hue-rotate(-10deg);
}

.username,
.page-header h1,
.welcome h1,
.actions-panel-header h1,
.settings-card h2,
.comparison-header .header-title,
.action-modal-header h2,
.file-picker-title,
.actions-template-bar > span,
.action-template-inline > span {
  color: var(--gs-accent-strong);
}

.page-header p,
.welcome p,
.settings-card p,
.actions-panel-header p,
.actions-empty,
.language-hint,
.file-picker-meta,
.library-status,
.news li,
.connect-box p,
.obs-connection-box p,
.streamerbot-intro,
.minecraft-connection-box p {
  color: var(--gs-text-soft);
}

.menu li {
  margin-bottom: 10px;
  padding: 0;
  border-radius: 14px;
  color: var(--gs-text);
}

.menu li:hover {
  background: rgba(234, 95, 155, 0.08);
}

.menu li.active {
  background: linear-gradient(90deg, var(--gs-accent) 0%, #f48ebb 100%);
  box-shadow: 0 14px 28px rgba(228, 86, 147, 0.18);
}

.menu li.active a,
.menu li.active a:link,
.menu li.active a:visited,
.menu li.active i {
  color: #ffffff;
}

.menu li a i {
  color: #c4558f;
}

.menu li a {
  gap: 12px;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 14px;
}

.menu li a span {
  font-size: 15px;
  font-weight: 600;
}

.menu li a,
.menu li a:link,
.menu li a:visited,
.settings-card,
.settings-card p,
.page-header,
.page-header p,
.welcome p,
.connect-box p,
.obs-connection-box p,
.streamerbot-intro,
.minecraft-connection-box p,
.actions-panel-header p,
.actions-empty,
.language-hint,
.file-picker-meta,
.library-status,
.news li,
.actions-table th,
.actions-table td,
.comparison-table td,
.action-option-body,
.file-picker-name,
.stack-form label,
.stack-form input,
.stack-form select,
.action-modal-form > input,
.action-modal-header p,
.action-option-head span,
.action-option-body span,
.action-modal-section label span,
.action-flags label,
.action-check-note strong,
.action-option-body input,
.action-option-body select,
.action-modal-grid input,
.action-modal-grid select,
.action-rule-grid input,
.action-rule-grid select,
.action-check-note textarea {
  color: var(--gs-text);
}

.action-option-head span,
.action-option-body span,
.action-modal-section label span,
.action-flags label,
.action-modal-header p {
  color: #111111 !important;
}

.action-check-note strong {
  color: var(--gs-accent-strong) !important;
}

.action-option input[type="checkbox"],
.action-flags input[type="checkbox"] {
  accent-color: var(--gs-accent-strong);
}

.profile-connect-btn,
.connect-btn,
.upgrade-btn,
.actions-add-trigger,
.actions-save-btn,
.file-picker-button,
.module-chip.is-active {
  background: linear-gradient(180deg, #f47fb3 0%, var(--gs-accent-strong) 100%);
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(228, 86, 147, 0.18);
}

.profile-connect-btn:hover,
.connect-btn:hover,
.upgrade-btn:hover,
.actions-add-trigger:hover,
.actions-save-btn:hover,
.file-picker-button:hover {
  background: linear-gradient(180deg, #ef73aa 0%, #cf3f81 100%);
}

.tiktok-profile-box.is-connected {
  border-color: rgba(72, 173, 117, 0.34);
  box-shadow:
    0 22px 44px rgba(72, 173, 117, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.tiktok-profile-box.is-disconnected {
  border-color: rgba(214, 92, 114, 0.26);
  box-shadow:
    0 18px 36px rgba(214, 92, 114, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.tiktok-profile-box.is-connected .profile-pic {
  border-color: rgba(72, 173, 117, 0.9);
  box-shadow: 0 0 0 4px rgba(72, 173, 117, 0.12);
}

.tiktok-profile-box.is-disconnected .profile-pic {
  border-color: rgba(214, 92, 114, 0.88);
  box-shadow: 0 0 0 4px rgba(214, 92, 114, 0.08);
}

.tiktok-profile-box.is-connecting {
  border-color: rgba(217, 130, 0, 0.34);
  box-shadow:
    0 20px 42px rgba(217, 130, 0, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
  animation: gsConnectionPulse 1.25s ease-in-out infinite;
}

.tiktok-profile-box.is-connecting .profile-pic {
  border-color: rgba(217, 130, 0, 0.9);
  box-shadow: 0 0 0 4px rgba(217, 130, 0, 0.12);
}

.profile-connect-btn.is-connected {
  background: linear-gradient(180deg, #62c98b 0%, #2e9f62 100%);
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(72, 173, 117, 0.2);
}

.profile-connect-btn.is-connected:hover {
  background: linear-gradient(180deg, #58bf81 0%, #288a55 100%);
}

.profile-connect-btn.is-disconnected {
  background: linear-gradient(180deg, #ef7d96 0%, #cf4f72 100%);
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(214, 92, 114, 0.18);
}

.profile-connect-btn.is-disconnected:hover {
  background: linear-gradient(180deg, #e86d88 0%, #bd4365 100%);
}

.profile-connect-btn.is-connecting,
.gs-topbar__connect.is-connecting {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(180deg, #f3b24f 0%, #d98200 100%);
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(217, 130, 0, 0.2);
}

.profile-connect-btn.is-connecting::before,
.gs-topbar__connect.is-connecting::before {
  content: "";
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.42);
  border-top-color: #ffffff;
  animation: gsConnectionSpin 0.8s linear infinite;
}

.profile-connect-btn.is-connecting:hover,
.gs-topbar__connect.is-connecting:hover {
  background: linear-gradient(180deg, #efa83e 0%, #c87400 100%);
}

@keyframes gsConnectionSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes gsConnectionPulse {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-1px);
  }
}

.actions-cancel-btn,
.obs-test-btn,
.streamerbot-test-btn,
.minecraft-test-btn,
.export-actions button,
.table-delete-btn,
.module-template-chip,
.file-picker-button.secondary,
.file-drop-hint {
  background: #fff7fb;
  color: var(--gs-text);
  border: 1px solid var(--gs-border);
  box-shadow: 0 10px 22px rgba(225, 96, 154, 0.08);
}

.actions-cancel-btn:hover,
.obs-test-btn:hover,
.streamerbot-test-btn:hover,
.minecraft-test-btn:hover,
.export-actions button:hover,
.table-delete-btn:hover,
.module-template-chip:hover,
.file-picker-button.secondary:hover,
.file-drop-hint:hover {
  background: var(--gs-accent-soft);
  border-color: var(--gs-border-strong);
}

.stack-form input,
.stack-form select,
#tiktok-username,
.obs-form-grid input[type="text"],
.obs-form-grid input[type="password"],
.streamerbot-form-grid input[type="text"],
.minecraft-form-grid input,
.player-name-input input[type="text"],
.action-modal-form > input,
.action-modal-form > label input,
.action-modal-form > label select,
.action-option-body input,
.action-option-body select,
.action-modal-grid input,
.action-modal-grid select,
.action-rule-grid input,
.action-rule-grid select,
.action-summary-list {
  background: #ffffff;
  color: var(--gs-text);
  border: 1px solid var(--gs-border);
}

.stack-form input::placeholder,
#tiktok-username::placeholder,
.action-option-body input::placeholder,
#action-seconds::placeholder,
#action-screen::placeholder,
#action-cooldown::placeholder,
#event-value::placeholder,
#action-points::placeholder {
  color: #b27a97;
}

.stack-form input:focus,
.stack-form select:focus,
#tiktok-username:focus,
.obs-form-grid input:focus,
.streamerbot-form-grid input:focus,
.minecraft-form-grid input:focus,
.player-name-input input:focus,
.action-modal-form > input:focus,
.action-option-body input:focus,
.action-option-body select:focus,
.action-modal-grid input:focus,
.action-modal-grid select:focus,
.action-rule-grid input:focus,
.action-rule-grid select:focus {
  outline: none;
  border-color: var(--gs-border-strong);
  box-shadow: 0 0 0 4px rgba(234, 95, 155, 0.12);
}

.actions-toolbar,
.actions-table th,
.action-modal-header {
  background:
    linear-gradient(180deg, #fff2f8 0%, #ffe8f2 100%);
  border-color: var(--gs-border);
}

.actions-table th,
.actions-table td,
.comparison-table td {
  border-color: rgba(236, 122, 176, 0.2);
  color: var(--gs-text);
}

.actions-table tbody tr:hover,
.comparison-table tbody tr:hover {
  background: rgba(234, 95, 155, 0.06);
}

.table-link,
.log-level,
.plan-value.infinity,
.plan-value.highlighted,
.streamerbot-link,
.streamerbot-setup a,
.minecraft-connection-box a {
  color: var(--gs-accent-strong);
}

.comparison-table .feature-name,
.comparison-table .plan-value,
.comparison-header .header-plan,
.comparison-header .pro-icon {
  color: #111111 !important;
}

.comparison-table .plan-value.infinity {
  color: var(--gs-accent-strong) !important;
}

.minecraft-connection-box h2,
.minecraft-connection-box .minecraft-tutorial-header,
.minecraft-connection-box .player-name-input label,
.minecraft-connection-box .minecraft-form-grid label,
.minecraft-connection-box .minecraft-warning,
.minecraft-connection-box .minecraft-promo-box p {
  color: #111111 !important;
}

.minecraft-connection-box .minecraft-tutorial-header {
  color: var(--gs-accent-strong) !important;
}

.minecraft-connection-box .minecraft-warning {
  background: rgba(255, 247, 251, 0.92) !important;
  border-left-color: rgba(227, 84, 152, 0.42) !important;
}

.minecraft-connection-box .minecraft-lead,
.minecraft-connection-box .minecraft-detail-text {
  color: #1f1f1f !important;
  line-height: 1.52;
}

.minecraft-connection-box .minecraft-promo-box {
  background:
    linear-gradient(130deg, rgba(241, 97, 159, 0.96), rgba(217, 73, 137, 0.94)) !important;
  border: 1px solid rgba(217, 73, 137, 0.55) !important;
}

.minecraft-connection-box .minecraft-promo-box p,
.minecraft-connection-box .minecraft-promo-box a {
  color: #ffffff !important;
}

.minecraft-connection-box .minecraft-play-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-right: 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f37bb2, #d9488f);
  color: #ffffff;
  font-size: 11px;
}

.minecraft-connection-box .minecraft-resource-list {
  display: grid;
  gap: 9px;
  margin: 10px 0 16px;
}

.minecraft-connection-box .minecraft-resource-list .download-item {
  color: #2b2b2b;
  font-size: 16px;
}

.minecraft-connection-box .minecraft-resource-list .download-item a {
  color: var(--gs-accent-strong) !important;
  font-weight: 600;
}

.minecraft-connection-box .minecraft-resource-list .download-item span {
  color: #4e4e4e;
}

.obs-connection-box h2,
.obs-connection-box p,
.obs-form-grid label,
.obs-instructions,
.streamerbot-connection-box h2,
.streamerbot-connection-box p,
.streamerbot-form-grid label,
.streamerbot-intro,
.streamerbot-link,
.streamerbot-setup,
.streamerbot-setup a {
  color: #111111 !important;
}

.obs-instructions {
  background: rgba(255, 247, 251, 0.92) !important;
  border-left-color: rgba(227, 84, 152, 0.42) !important;
}

.action-block,
.action-modal-section > label,
.action-flags label,
.module-chip,
.library-result-item,
.file-picker-name {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 243, 248, 0.98));
  border-color: var(--gs-border);
  color: var(--gs-text);
}

.action-option-body,
.file-picker-card,
.library-browser,
.file-picker-row,
.dual-file-picker-row,
.audio-source-grid > .file-picker-card {
  background:
    linear-gradient(180deg, rgba(255, 246, 251, 0.98), rgba(255, 233, 244, 0.98));
  border-color: rgba(236, 122, 176, 0.24);
  color: var(--gs-text);
  box-shadow: 0 14px 30px rgba(225, 96, 154, 0.08);
}

.file-picker-row,
.dual-file-picker-row {
  background:
    linear-gradient(180deg, rgba(255, 251, 253, 0.98), rgba(255, 242, 248, 0.98));
}

.library-result-item:hover {
  background: linear-gradient(180deg, rgba(255, 231, 243, 0.98), rgba(255, 219, 236, 0.98));
  border-color: var(--gs-border-strong);
}

.action-option-body .file-picker-card,
.action-option-body .file-picker-card *,
.action-option-body .file-picker-row,
.action-option-body .dual-file-picker-row,
.action-option-body .library-browser,
.action-option-body .audio-source-grid,
.action-option-body .audio-source-grid > .file-picker-card {
  color: var(--gs-text);
}

.action-option-body .file-picker-card,
.action-option-body .audio-source-grid > .file-picker-card {
  background:
    linear-gradient(180deg, rgba(255, 242, 248, 0.99), rgba(255, 228, 240, 0.99)) !important;
  border: 1px solid rgba(236, 122, 176, 0.24) !important;
  box-shadow: 0 14px 30px rgba(225, 96, 154, 0.08) !important;
}

.action-option-body .file-picker-row,
.action-option-body .dual-file-picker-row,
.action-option-body .library-browser {
  background:
    linear-gradient(180deg, rgba(255, 248, 252, 0.98), rgba(255, 236, 245, 0.98)) !important;
  border: 1px solid rgba(236, 122, 176, 0.26) !important;
}

.action-option-body .file-picker-name {
  background: rgba(255, 255, 255, 0.9) !important;
  border: 1px dashed rgba(236, 122, 176, 0.28) !important;
  color: var(--gs-text) !important;
}

.action-option-body .file-picker-title,
.action-option-body .file-picker-meta,
.action-option-body .library-status,
.action-option-body .library-browser-head strong,
.action-option-body .library-browser-head p,
.action-option-body .library-result-item strong,
.action-option-body .library-provider-note {
  color: var(--gs-text) !important;
}

.action-option-body .library-search-input-wrap {
  background: rgba(255, 255, 255, 0.94) !important;
  border: 1px solid rgba(236, 122, 176, 0.36) !important;
  box-shadow: 0 8px 18px rgba(225, 96, 154, 0.1) !important;
}

.action-option-body .library-search-input-wrap i,
.action-option-body .library-search-input-wrap input,
.action-option-body .library-close-btn,
.action-option-body .library-result-action {
  color: var(--gs-text) !important;
}

.action-option-body .library-close-btn,
.action-option-body .library-result-action {
  background:
    linear-gradient(180deg, rgba(255, 245, 250, 0.98), rgba(255, 229, 241, 0.98)) !important;
  border: 1px solid rgba(236, 122, 176, 0.32) !important;
}

.action-option-body .library-result-action.is-primary {
  background: linear-gradient(135deg, #ff5ca8, #e04695) !important;
  color: #ffffff !important;
  border-color: rgba(220, 52, 130, 0.9) !important;
}

.action-option-body .library-result-action:hover,
.action-option-body .library-result-action:focus-visible {
  background: linear-gradient(180deg, rgba(255, 232, 244, 0.99), rgba(255, 217, 235, 0.99)) !important;
  border-color: rgba(227, 84, 152, 0.54) !important;
  color: #7f2d5a !important;
  transform: translateY(-1px);
}

.action-option-body .library-result-action.is-primary:hover,
.action-option-body .library-result-action.is-primary:focus-visible {
  background: linear-gradient(135deg, #ff4fa2, #d93f8b) !important;
  border-color: rgba(210, 50, 124, 0.95) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

.action-option-body .library-close-btn:hover,
.action-option-body .library-close-btn:focus-visible {
  background: linear-gradient(180deg, rgba(255, 238, 247, 0.98), rgba(255, 223, 238, 0.98)) !important;
  border-color: rgba(227, 84, 152, 0.52) !important;
  color: #7f2d5a !important;
}

#myinstants-browser .library-result-action {
  background: linear-gradient(180deg, rgba(255, 245, 250, 0.98), rgba(255, 229, 241, 0.98)) !important;
  border: 1px solid rgba(236, 122, 176, 0.32) !important;
  color: #7f2d5a !important;
}

#myinstants-browser {
  background: linear-gradient(180deg, rgba(255, 248, 252, 0.99), rgba(255, 236, 245, 0.99)) !important;
  border-color: rgba(236, 122, 176, 0.32) !important;
}

#myinstants-browser .library-browser-head strong,
#myinstants-browser .library-status {
  color: #111111 !important;
}

#myinstants-browser .library-provider-note {
  color: #5a5a5a !important;
}

#myinstants-browser .library-provider-note a {
  color: #d23a89 !important;
}

#myinstants-browser .library-search-input-wrap {
  background: rgba(255, 255, 255, 0.96) !important;
  border: 1px solid rgba(236, 122, 176, 0.42) !important;
}

#myinstants-browser .library-search-input-wrap i {
  color: #a34777 !important;
}

#myinstants-browser .library-search-input-wrap input {
  color: #111111 !important;
}

#myinstants-browser .library-search-input-wrap input::placeholder {
  color: #9b6885 !important;
}

#myinstants-browser .library-result-action.is-primary {
  background: linear-gradient(135deg, #ff5ca8, #e04695) !important;
  border-color: rgba(220, 52, 130, 0.9) !important;
  color: #ffffff !important;
}

#myinstants-browser .library-result-action:hover,
#myinstants-browser .library-result-action:focus-visible {
  background: linear-gradient(180deg, rgba(255, 232, 244, 0.99), rgba(255, 217, 235, 0.99)) !important;
  border-color: rgba(227, 84, 152, 0.54) !important;
  color: #7f2d5a !important;
}

#myinstants-browser .library-result-action.is-primary:hover,
#myinstants-browser .library-result-action.is-primary:focus-visible {
  background: linear-gradient(135deg, #ff4fa2, #d93f8b) !important;
  border-color: rgba(210, 50, 124, 0.95) !important;
  color: #ffffff !important;
}

#myinstants-browser .library-close-btn {
  background: linear-gradient(180deg, rgba(255, 245, 250, 0.98), rgba(255, 229, 241, 0.98)) !important;
  border: 1px solid rgba(236, 122, 176, 0.32) !important;
  color: #7f2d5a !important;
}

#myinstants-browser .library-close-btn:hover,
#myinstants-browser .library-close-btn:focus-visible {
  background: linear-gradient(180deg, rgba(255, 238, 247, 0.98), rgba(255, 223, 238, 0.98)) !important;
  border-color: rgba(227, 84, 152, 0.52) !important;
  color: #7f2d5a !important;
}

#sound-alerts-library {
  width: min(92vw, 760px);
  padding: 22px;
  border: 1px solid rgba(236, 122, 176, 0.32) !important;
  border-radius: 16px;
  background:
    radial-gradient(circle at top left, rgba(255, 221, 238, 0.5), transparent 32%),
    linear-gradient(180deg, rgba(255, 248, 252, 0.99), rgba(255, 236, 245, 0.99)) !important;
  box-shadow:
    0 28px 70px rgba(211, 112, 171, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

#sound-alerts-library .library-browser-head strong,
#sound-alerts-library .library-status {
  color: #281f3b !important;
}

#sound-alerts-library .library-provider-note {
  color: #6b5a78 !important;
}

#sound-alerts-library .library-provider-note a {
  color: #d23a89 !important;
}

#sound-alerts-library .library-search-input-wrap {
  background: rgba(255, 255, 255, 0.96) !important;
  border: 1px solid rgba(236, 122, 176, 0.42) !important;
  border-radius: 12px;
}

#sound-alerts-library .library-search-input-wrap i {
  color: #a34777 !important;
}

#sound-alerts-library .library-search-input-wrap input {
  color: #281f3b !important;
}

#sound-alerts-library .library-search-input-wrap input::placeholder {
  color: #9b6885 !important;
}

#sound-alerts-library .library-result-item,
#sound-alerts-library .library-result-item:hover,
#sound-alerts-library .library-result-item.is-selected {
  padding: 10px 12px;
  border: 1px solid rgba(236, 122, 176, 0.18) !important;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 248, 252, 0.96), rgba(255, 239, 247, 0.92)) !important;
  box-shadow: none !important;
}

#sound-alerts-library .library-result-item:hover,
#sound-alerts-library .library-result-item.is-selected {
  border-color: rgba(227, 84, 152, 0.38) !important;
  background: linear-gradient(180deg, rgba(255, 240, 248, 0.98), rgba(255, 229, 241, 0.96)) !important;
}

#sound-alerts-library .library-result-item strong {
  color: #d94589 !important;
  font-weight: 600;
}

#sound-alerts-library .library-result-action,
#sound-alerts-library .file-picker-button,
#sound-alerts-library .library-close-btn {
  background: linear-gradient(180deg, rgba(255, 245, 250, 0.98), rgba(255, 229, 241, 0.98)) !important;
  border: 1px solid rgba(236, 122, 176, 0.32) !important;
  border-radius: 10px;
  color: #7f2d5a !important;
  box-shadow: 0 10px 22px rgba(236, 72, 153, 0.08) !important;
}

#sound-alerts-library .library-result-action.is-primary {
  background: linear-gradient(135deg, #ff5ca8, #e04695) !important;
  border-color: rgba(220, 52, 130, 0.9) !important;
  color: #ffffff !important;
}

#sound-alerts-library .library-result-action:hover,
#sound-alerts-library .library-result-action:focus-visible,
#sound-alerts-library .file-picker-button:hover,
#sound-alerts-library .file-picker-button:focus-visible,
#sound-alerts-library .library-close-btn:hover,
#sound-alerts-library .library-close-btn:focus-visible {
  background: linear-gradient(180deg, rgba(255, 238, 247, 0.98), rgba(255, 223, 238, 0.98)) !important;
  border-color: rgba(227, 84, 152, 0.52) !important;
  color: #7f2d5a !important;
}

#sound-alerts-library .library-result-action.is-primary:hover,
#sound-alerts-library .library-result-action.is-primary:focus-visible {
  background: linear-gradient(135deg, #ff4fa2, #d93f8b) !important;
  border-color: rgba(210, 50, 124, 0.95) !important;
  color: #ffffff !important;
}

#sound-alerts-library .library-results {
  max-height: min(52vh, 430px);
  padding: 0 8px 0 0;
  gap: 8px;
}

.action-option-body .library-provider-note a {
  color: #d23a89 !important;
}

.action-option-body .library-result-item,
.action-option-body .library-result-item:hover,
.action-option-body .library-result-item.is-selected {
  background: linear-gradient(180deg, rgba(255, 240, 248, 0.88), rgba(255, 229, 241, 0.88)) !important;
  border: 1px solid rgba(236, 122, 176, 0.2) !important;
  box-shadow: none !important;
  transform: none !important;
}

.action-option-body input,
.action-option-body select,
.action-option-body .inline-action-fields > input,
.action-option-body .inline-action-fields > select,
.action-option-body input[type="text"],
.action-option-body input[type="number"],
.action-option-body input[type="url"],
.action-option-body select,
#show-alert-sticker,
#tts-voice-select {
  background: #fffafb !important;
  background-image: none !important;
  color: var(--gs-text) !important;
  border: 1px solid rgba(236, 122, 176, 0.28) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 8px 18px rgba(225, 96, 154, 0.06) !important;
}

.action-option-body input::placeholder,
.action-option-body select,
#show-alert-sticker,
#tts-voice-select {
  color: #9c5d7e !important;
}

.action-option-body input:focus,
.action-option-body select:focus,
#show-alert-sticker:focus,
#tts-voice-select:focus {
  border-color: rgba(227, 84, 152, 0.46) !important;
  box-shadow:
    0 0 0 4px rgba(234, 95, 155, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.88) !important;
}

.library-result-item strong {
  color: var(--gs-accent-strong);
}

.action-modal-backdrop {
  background:
    radial-gradient(circle at top, rgba(244, 127, 179, 0.18), transparent 28%),
    rgba(255, 245, 251, 0.55);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

#action-volume {
  min-height: 10px !important;
  height: 10px !important;
  padding: 0 !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, #f06ba8 0%, #f06ba8 70%, #2f2f34 70%, #2f2f34 100%) !important;
  border: 1px solid var(--gs-border) !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.22) !important;
}

#action-volume::-webkit-slider-thumb,
#action-volume::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: linear-gradient(180deg, #ffb38d, #ff8b57);
  border: 2px solid #202126;
  box-shadow: 0 6px 14px rgba(225, 96, 154, 0.14);
}

.action-modal-form > label input[type="range"],
.action-option-body input[type="range"],
.read-tts-row input[type="range"],
#action-volume {
  -webkit-appearance: none !important;
  appearance: none !important;
  display: block;
  width: 100%;
  min-height: 10px !important;
  height: 10px !important;
  max-height: 10px !important;
  margin: 0;
  padding: 0 !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, #f06ba8 0%, #f06ba8 50%, #2f2f34 50%, #2f2f34 100%) !important;
  background-image: linear-gradient(90deg, #f06ba8 0%, #f06ba8 50%, #2f2f34 50%, #2f2f34 100%) !important;
  border: 1px solid rgba(34, 34, 39, 0.78) !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.24) !important;
  outline: none;
  cursor: pointer;
}

.action-modal-form > label input[type="range"]::-webkit-slider-runnable-track,
.action-option-body input[type="range"]::-webkit-slider-runnable-track,
.read-tts-row input[type="range"]::-webkit-slider-runnable-track,
#action-volume::-webkit-slider-runnable-track {
  height: 10px;
  border-radius: 999px;
  background: transparent;
}

.action-modal-form > label input[type="range"]::-moz-range-track,
.action-option-body input[type="range"]::-moz-range-track,
.read-tts-row input[type="range"]::-moz-range-track,
#action-volume::-moz-range-track {
  height: 10px;
  border-radius: 999px;
  background: #2f2f34 !important;
  border: none;
}

.action-modal-form > label input[type="range"]::-webkit-slider-thumb,
.action-option-body input[type="range"]::-webkit-slider-thumb,
.read-tts-row input[type="range"]::-webkit-slider-thumb,
#action-volume::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  margin-top: -5px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffc5a6 0%, #ff9165 100%);
  border: 2px solid #202126;
  box-shadow: 0 6px 14px rgba(225, 96, 154, 0.18);
  cursor: pointer;
}

.action-modal-form > label input[type="range"]::-moz-range-thumb,
.action-option-body input[type="range"]::-moz-range-thumb,
.read-tts-row input[type="range"]::-moz-range-thumb,
#action-volume::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffc5a6 0%, #ff9165 100%);
  border: 2px solid #202126;
  box-shadow: 0 6px 14px rgba(225, 96, 154, 0.18);
  cursor: pointer;
}

.news ul,
.comparison-table tbody tr:nth-child(even) {
  background: transparent;
}

/* New Actions modal - align with the light pink/lilac app theme */
.action-modal {
  background:
    radial-gradient(circle at top left, rgba(255, 214, 234, 0.42), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(255, 245, 250, 0.98) 100%) !important;
  border: 1px solid rgba(236, 198, 221, 0.92) !important;
  box-shadow:
    0 30px 70px rgba(218, 140, 186, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.86) !important;
}

.action-modal-header {
  background:
    linear-gradient(180deg, rgba(255, 246, 250, 0.99), rgba(255, 237, 245, 0.97)) !important;
  border-bottom: 1px solid rgba(236, 198, 221, 0.82) !important;
}

.action-modal-close {
  background: linear-gradient(180deg, rgba(255, 253, 254, 0.98), rgba(255, 241, 247, 0.98)) !important;
  border-color: rgba(230, 165, 202, 0.42) !important;
  color: #b85689 !important;
  box-shadow: 0 10px 20px rgba(223, 132, 182, 0.08) !important;
}

.action-modal-close:hover {
  background: linear-gradient(180deg, rgba(255, 241, 247, 1), rgba(255, 229, 239, 0.99)) !important;
  border-color: rgba(221, 126, 180, 0.5) !important;
}

.action-option-list {
  gap: 14px;
}

.action-option {
  padding: 0;
  border-radius: 16px;
  color: #4b3950;
}

.action-option-head {
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid rgba(238, 201, 222, 0.9);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(255, 245, 250, 0.98)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 10px 24px rgba(218, 140, 186, 0.06);
}

.action-option-head span {
  color: #4b3950 !important;
  font-weight: 700;
}

.action-option input[type="checkbox"],
.action-flags input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: #dc5897;
}

.action-option-body {
  margin-top: 12px;
  border: 1px solid rgba(236, 198, 221, 0.86) !important;
  border-radius: 16px !important;
  background:
    linear-gradient(180deg, rgba(255, 252, 254, 0.99), rgba(255, 241, 247, 0.98)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 12px 28px rgba(218, 140, 186, 0.08) !important;
}

.action-check-note {
  padding: 18px 0 12px;
}

.action-check-note strong {
  color: #d84d8f !important;
}

.action-summary-list {
  min-height: 92px;
  border: 1px solid rgba(236, 198, 221, 0.9) !important;
  border-radius: 16px !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(255, 244, 249, 0.98)) !important;
  color: #4b3950 !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 10px 24px rgba(218, 140, 186, 0.06) !important;
}

.action-summary-item::before {
  background: linear-gradient(180deg, #f06dab, #cf62dd) !important;
  box-shadow: 0 0 0 4px rgba(240, 109, 171, 0.12);
}

.action-summary-empty {
  color: #ae7b96 !important;
}

.action-modal-section {
  border-top: 1px solid rgba(236, 198, 221, 0.78) !important;
}

.action-modal-section label span,
.action-modal-section > label > span {
  color: #5d4658 !important;
}

.action-modal-section > label {
  border: 1px solid rgba(236, 198, 221, 0.84) !important;
  border-radius: 16px !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(255, 244, 249, 0.97)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 10px 24px rgba(218, 140, 186, 0.05) !important;
}

.action-flags {
  justify-content: flex-start;
  gap: 14px;
}

.action-flags label {
  color: #5d4658 !important;
  border: 1px solid rgba(232, 186, 214, 0.82) !important;
  background:
    linear-gradient(180deg, rgba(255, 254, 255, 0.99), rgba(255, 243, 249, 0.98)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 8px 20px rgba(218, 140, 186, 0.05) !important;
}

.action-flags label:hover {
  background:
    linear-gradient(180deg, rgba(255, 241, 247, 0.99), rgba(255, 231, 241, 0.98)) !important;
  border-color: rgba(220, 126, 181, 0.56) !important;
  transform: none;
}

.action-modal-form > label input[type="range"],
.action-option-body input[type="range"],
.read-tts-row input[type="range"],
#action-volume {
  background: linear-gradient(90deg, #f06bab 0%, #f06bab 68%, #eadce7 68%, #eadce7 100%) !important;
  background-image: linear-gradient(90deg, #f06bab 0%, #f06bab 68%, #eadce7 68%, #eadce7 100%) !important;
  border: 1px solid rgba(231, 195, 218, 0.9) !important;
  box-shadow:
    inset 0 1px 2px rgba(165, 110, 142, 0.12),
    0 6px 16px rgba(218, 140, 186, 0.05) !important;
}

.action-modal-form > label input[type="range"]::-moz-range-track,
.action-option-body input[type="range"]::-moz-range-track,
.read-tts-row input[type="range"]::-moz-range-track,
#action-volume::-moz-range-track {
  background: #eadce7 !important;
}

.action-modal-form > label input[type="range"]::-webkit-slider-thumb,
.action-option-body input[type="range"]::-webkit-slider-thumb,
.read-tts-row input[type="range"]::-webkit-slider-thumb,
#action-volume::-webkit-slider-thumb,
.action-modal-form > label input[type="range"]::-moz-range-thumb,
.action-option-body input[type="range"]::-moz-range-thumb,
.read-tts-row input[type="range"]::-moz-range-thumb,
#action-volume::-moz-range-thumb {
  background: linear-gradient(180deg, #ffb6d3 0%, #f06bab 100%) !important;
  border: 2px solid #ffffff !important;
  box-shadow: 0 8px 18px rgba(220, 102, 163, 0.2) !important;
}

.action-modal-footer {
  border-top: 1px solid rgba(236, 198, 221, 0.78) !important;
}

.action-modal .file-picker-button,
.action-modal .actions-save-btn {
  background: linear-gradient(135deg, #ff69b4 0%, #d97dff 58%, #8ca4ff 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.24) !important;
  box-shadow:
    0 14px 28px rgba(221, 117, 190, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

.action-modal .file-picker-button:hover,
.action-modal .actions-save-btn:hover {
  background: linear-gradient(135deg, #ff5cab 0%, #cf70f4 58%, #7d96f8 100%) !important;
  color: #ffffff !important;
  box-shadow:
    0 16px 30px rgba(221, 117, 190, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
  filter: none;
}

.action-modal .file-picker-button.secondary,
.action-modal .actions-cancel-btn,
.action-modal .library-close-btn,
.action-modal .myinstants-selected-remove,
.action-modal .library-result-action {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(255, 241, 248, 0.98)) !important;
  color: #7d3f68 !important;
  border: 1px solid rgba(233, 188, 215, 0.88) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 10px 22px rgba(218, 140, 186, 0.08) !important;
}

.action-modal .file-picker-button.secondary:hover,
.action-modal .actions-cancel-btn:hover,
.action-modal .library-close-btn:hover,
.action-modal .myinstants-selected-remove:hover,
.action-modal .library-result-action:hover,
.action-modal .library-result-action:focus-visible {
  background: linear-gradient(180deg, rgba(255, 242, 248, 0.99), rgba(255, 231, 241, 0.98)) !important;
  color: #6f2f57 !important;
  border-color: rgba(221, 126, 180, 0.58) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 12px 24px rgba(218, 140, 186, 0.12) !important;
}

.action-modal .library-result-action.is-primary {
  background: linear-gradient(135deg, #ff69b4 0%, #d97dff 58%, #8ca4ff 100%) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.24) !important;
  box-shadow:
    0 14px 28px rgba(221, 117, 190, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

.action-modal .library-result-action.is-primary:hover,
.action-modal .library-result-action.is-primary:focus-visible {
  background: linear-gradient(135deg, #ff5cab 0%, #cf70f4 58%, #7d96f8 100%) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.26) !important;
}

/* Keystroke configurator - match the light pink/lilac modal family */
#keystroke-config-modal.overlay-settings-modal--pink .overlay-settings-modal__backdrop {
  background:
    radial-gradient(circle at top, rgba(244, 127, 179, 0.18), transparent 28%),
    rgba(255, 244, 250, 0.58) !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

#keystroke-config-modal.overlay-settings-modal--pink .overlay-settings-modal__dialog {
  background:
    radial-gradient(circle at top left, rgba(255, 214, 234, 0.42), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(255, 245, 250, 0.98) 100%) !important;
  border: 1px solid rgba(236, 198, 221, 0.92) !important;
  box-shadow:
    0 30px 70px rgba(218, 140, 186, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.86) !important;
}

#keystroke-config-modal.overlay-settings-modal--pink .overlay-settings-modal__header {
  background:
    linear-gradient(180deg, rgba(255, 246, 250, 0.99), rgba(255, 237, 245, 0.97)) !important;
  border-bottom: 1px solid rgba(236, 198, 221, 0.82) !important;
}

#keystroke-config-modal.overlay-settings-modal--pink .overlay-settings-modal__header h2 {
  color: #4b3950 !important;
}

#keystroke-config-modal.overlay-settings-modal--pink .overlay-settings-modal__header p,
#keystroke-config-modal .keystroke-placeholder-note,
#keystroke-config-modal .keystroke-note,
#keystroke-config-modal .keystroke-launcher__summary {
  color: #8b6278 !important;
}

#keystroke-config-modal.overlay-settings-modal--pink .overlay-settings-modal__close {
  background: linear-gradient(180deg, rgba(255, 253, 254, 0.98), rgba(255, 241, 247, 0.98)) !important;
  border-color: rgba(230, 165, 202, 0.42) !important;
  color: #b85689 !important;
  box-shadow: 0 10px 20px rgba(223, 132, 182, 0.08) !important;
}

#keystroke-config-modal.overlay-settings-modal--pink .overlay-settings-modal__close:hover {
  background: linear-gradient(180deg, rgba(255, 241, 247, 1), rgba(255, 229, 239, 0.99)) !important;
  border-color: rgba(221, 126, 180, 0.5) !important;
}

#keystroke-config-modal .keystroke-configurator {
  border: 1px solid rgba(236, 198, 221, 0.9) !important;
  background:
    linear-gradient(180deg, rgba(255, 253, 254, 0.99), rgba(255, 242, 248, 0.98)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 16px 32px rgba(218, 140, 186, 0.08) !important;
}

#keystroke-config-modal .keystroke-check,
#keystroke-config-modal .keystroke-token {
  border: 1px solid rgba(232, 186, 214, 0.82) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(255, 243, 249, 0.98)) !important;
  color: #5d4658 !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 8px 20px rgba(218, 140, 186, 0.05) !important;
}

#keystroke-config-modal .keystroke-check:hover,
#keystroke-config-modal .keystroke-token:hover {
  background:
    linear-gradient(180deg, rgba(255, 241, 247, 0.99), rgba(255, 231, 241, 0.98)) !important;
  border-color: rgba(220, 126, 181, 0.56) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 12px 24px rgba(218, 140, 186, 0.1) !important;
}

#keystroke-config-modal .keystroke-check:has(input:checked) {
  background:
    linear-gradient(135deg, rgba(255, 105, 180, 0.18), rgba(217, 125, 255, 0.14), rgba(140, 164, 255, 0.14)),
    linear-gradient(180deg, rgba(255, 249, 252, 0.99), rgba(255, 239, 247, 0.98)) !important;
  border-color: rgba(220, 126, 181, 0.62) !important;
  color: #9f2f68 !important;
}

#keystroke-config-modal .keystroke-field > span,
#keystroke-config-modal .keystroke-duration > span,
#keystroke-config-modal .keystroke-repeat,
#keystroke-config-modal .keystroke-check span {
  color: #4b3950 !important;
}

#keystroke-config-modal textarea.keystroke-textarea,
#keystroke-config-modal .keystroke-repeat input,
#keystroke-config-modal .keystroke-duration-input {
  border: 1px solid rgba(236, 198, 221, 0.88) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(255, 245, 250, 0.98)) !important;
  color: #4b3950 !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 10px 22px rgba(218, 140, 186, 0.06) !important;
}

#keystroke-config-modal textarea.keystroke-textarea:focus,
#keystroke-config-modal .keystroke-repeat input:focus,
#keystroke-config-modal .keystroke-duration-input:focus-within {
  border-color: rgba(214, 161, 234, 0.96) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 0 0 4px rgba(234, 188, 247, 0.24),
    0 10px 22px rgba(216, 153, 200, 0.12) !important;
}

#keystroke-config-modal .keystroke-duration-input span {
  color: #8b6278 !important;
}

#keystroke-config-modal .keystroke-config-modal__footer {
  border-top: 1px solid rgba(236, 198, 221, 0.78) !important;
  background:
    linear-gradient(180deg, rgba(255, 249, 252, 0.96), rgba(255, 238, 246, 0.98)) !important;
  box-shadow: 0 -16px 32px rgba(218, 140, 186, 0.06) !important;
}

#keystroke-config-modal .overlay-settings-modal__action--primary,
#keystroke-config-modal .keystroke-config-modal__save {
  background: linear-gradient(135deg, #ff69b4 0%, #d97dff 58%, #8ca4ff 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.24) !important;
  box-shadow:
    0 14px 28px rgba(221, 117, 190, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

#keystroke-config-modal .overlay-settings-modal__action--primary:hover,
#keystroke-config-modal .keystroke-config-modal__save:hover {
  background: linear-gradient(135deg, #ff5cab 0%, #cf70f4 58%, #7d96f8 100%) !important;
  color: #ffffff !important;
}

.games-collection-shell {
  display: grid;
  gap: 24px;
}

.games-collection-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 20px;
  padding: 26px 28px;
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(244, 134, 186, 0.22), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 239, 247, 0.98));
  border: 1px solid rgba(236, 122, 176, 0.24);
  box-shadow: 0 24px 54px rgba(225, 96, 154, 0.1);
}

.games-kicker {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--gs-accent-strong);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.games-collection-hero h2,
.games-section-head h2,
.games-roadmap-card h3,
.game-showcase-card h3 {
  color: #111111;
}

.games-collection-hero h2 {
  font-size: 34px;
  line-height: 1.1;
  margin-bottom: 12px;
}

.games-collection-hero p,
.games-section-head p,
.games-roadmap-card p,
.game-showcase-card p {
  color: #2b2b2b;
  line-height: 1.7;
}

.games-hero-stats {
  display: grid;
  gap: 14px;
}

.games-stat-card {
  display: grid;
  gap: 6px;
  padding: 18px 18px 16px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 250, 253, 0.98), rgba(255, 236, 245, 0.98));
  border: 1px solid rgba(236, 122, 176, 0.2);
}

.games-stat-card strong {
  color: var(--gs-accent-strong);
  font-size: 24px;
  font-weight: 700;
}

.games-stat-card span {
  color: #2b2b2b;
  font-size: 13px;
}

.games-section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
}

.games-subnav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.games-subnav-chip {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 251, 253, 0.98), rgba(248, 241, 252, 0.98));
  border: 1px solid rgba(223, 191, 234, 0.9);
  color: #8b456f;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 10px 22px rgba(206, 145, 185, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.games-subnav-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(205, 160, 226, 0.88);
  color: #74335c;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 14px 26px rgba(216, 153, 200, 0.12);
}

.games-subnav-chip.is-active {
  background: linear-gradient(135deg, #f06fb0 0%, #da84ff 58%, #96a6ff 100%);
  border-color: rgba(255, 255, 255, 0.36);
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(214, 118, 196, 0.22);
}

.games-tab-panel[hidden] {
  display: none !important;
}

.games-tab-panel {
  display: grid;
  gap: 18px;
}

.games-section-head p {
  max-width: 420px;
  margin: 0;
}

.games-section-head--split {
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(236, 122, 176, 0.16);
}

.games-showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.game-showcase-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 244, 250, 0.97));
  border: 1px solid rgba(236, 198, 223, 0.84);
  box-shadow: 0 20px 44px rgba(205, 145, 187, 0.1);
  min-height: 488px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.game-showcase-card:hover {
  transform: translateY(-2px);
  border-color: rgba(224, 170, 209, 0.94);
  box-shadow: 0 24px 52px rgba(205, 145, 187, 0.14);
}

.game-showcase-card.is-featured {
  grid-column: span 1;
}

.game-card-visual {
  position: relative;
  min-height: 212px;
  padding: 18px;
  display: flex;
  align-items: start;
  justify-content: space-between;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.36), transparent 24%),
    linear-gradient(180deg, #ef77ac 0%, #f2a2c8 58%, #f8cfe1 100%);
}

.game-lock-badge {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #d94589;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(153, 52, 101, 0.14);
}

.game-lock-badge svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.6;
}

.game-showcase-card:not(.is-locked) .game-lock-badge {
  display: none;
}

.game-showcase-card.is-locked .game-card-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(45, 27, 45, 0.2);
  pointer-events: none;
}

.game-showcase-card.is-locked .game-card-footer-action,
.game-showcase-card.is-locked .game-card-footer-secondary {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(255, 241, 248, 0.98));
  border: 1px solid rgba(233, 188, 215, 0.88);
  color: #7d3f68;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 10px 22px rgba(218, 140, 186, 0.08);
}

.game-card-visual.minecraft {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.3), transparent 22%),
    linear-gradient(135deg, #ff6fa8 0%, #ff91bd 38%, #ffd8e8 100%);
}

.game-card-visual.spacejump {
  background-image:
    linear-gradient(180deg, rgba(22, 16, 42, 0.08) 0%, rgba(22, 16, 42, 0.3) 100%),
    url("images/SpaceJumpCover.png");
  background-position: center 58%;
  background-repeat: no-repeat;
  background-size: cover;
}

.game-card-visual.horror {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.26), transparent 22%),
    linear-gradient(135deg, #ca4f86 0%, #f189b3 48%, #ffd7e6 100%);
}

.game-card-visual.racing {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.24), transparent 22%),
    linear-gradient(180deg, #ef77ac 0%, #f2a2c8 58%, #f8cfe1 100%);
}

.game-card-visual.quiz {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.24), transparent 22%),
    linear-gradient(180deg, #e875ab 0%, #f1a0c6 58%, #f8d4e4 100%);
}

.game-card-visual.wheel {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.24), transparent 22%),
    linear-gradient(180deg, #f07bae 0%, #f3abd0 58%, #fad9e8 100%);
}

.game-card-visual.battle {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.24), transparent 22%),
    linear-gradient(180deg, #e873a8 0%, #f0a2c7 58%, #f8d9e7 100%);
}

.game-card-badge,
.game-card-genre,
.game-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.game-card-badge {
  background: rgba(255, 255, 255, 0.88);
  color: var(--gs-accent-strong);
}

.game-card-genre {
  margin-left: auto;
  background: rgba(173, 92, 138, 0.2);
  color: #ffffff;
}

.game-card-body {
  padding: 18px 20px 12px;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.game-showcase-card.is-featured .game-card-body {
  min-height: 0;
}

.game-card-title-row {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
  margin-bottom: 10px;
}

.game-card-title-row h3 {
  font-size: 22px;
  line-height: 1.1;
}

.game-status {
  background: rgba(236, 122, 176, 0.14);
  color: var(--gs-accent-strong);
  white-space: nowrap;
}

.game-status.live-soon {
  background: rgba(217, 69, 137, 0.14);
}

.game-card-tags {
  display: none;
}

.game-card-footer-action {
  margin-top: auto;
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #f06fb0 0%, #da84ff 58%, #96a6ff 100%);
  box-shadow: 0 14px 28px rgba(214, 118, 196, 0.22);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.game-card-footer-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(214, 118, 196, 0.26);
  filter: saturate(1.05);
}

.game-card-footer-action:active {
  transform: translateY(0);
}

.game-card-footer-action:focus-visible {
  outline: 2px solid rgba(244, 90, 153, 0.3);
  outline-offset: 3px;
}

.game-card-footer-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: auto;
  padding-top: 10px;
}

.game-card-footer-secondary {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid rgba(223, 191, 234, 0.92);
  background: linear-gradient(180deg, rgba(255, 251, 253, 0.98), rgba(248, 241, 252, 0.98));
  color: #8b456f;
  font-size: 13px;
  font-weight: 700;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 10px 22px rgba(206, 145, 185, 0.08);
}

.game-card-footer-secondary:hover {
  transform: translateY(-1px);
  border-color: rgba(205, 160, 226, 0.88);
  color: #74335c;
}

.games-roadmap-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.games-roadmap-card {
  padding: 20px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 240, 247, 0.98));
  border: 1px solid rgba(236, 122, 176, 0.2);
  box-shadow: 0 18px 36px rgba(225, 96, 154, 0.08);
}

@media (max-width: 1100px) {
  .games-collection-hero,
  .games-showcase-grid,
  .games-roadmap-strip {
    grid-template-columns: 1fr;
  }

  .game-showcase-card.is-featured {
    grid-column: span 1;
  }

  .games-section-head {
    flex-direction: column;
    align-items: start;
  }

  .player-name-input,
  .minecraft-form-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .obs-test-btn,
  .streamerbot-test-btn,
  .minecraft-test-btn {
    margin-left: 0;
  }

  .game-card-footer-actions {
    grid-template-columns: 1fr;
  }
}

.games-details-modal-open {
  overflow: hidden;
}

.games-details-modal {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: grid;
  place-items: center;
  padding: 20px;
}

.games-details-modal[hidden] {
  display: none;
}

.games-details-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(97, 55, 81, 0.24);
  backdrop-filter: blur(10px);
}

.games-details-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(255, 223, 238, 0.82), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(255, 243, 249, 0.98));
  border: 1px solid rgba(231, 209, 240, 0.98);
  box-shadow: 0 28px 60px rgba(178, 120, 161, 0.22);
  overflow: hidden;
}

.games-details-modal__header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 22px 14px;
}

.games-details-modal__header h2 {
  margin: 0;
  color: #34253a;
  font-size: 30px;
  line-height: 1.05;
}

.games-details-modal__close {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 12px;
  border: 1px solid rgba(223, 191, 234, 0.92);
  background: rgba(255, 250, 253, 0.96);
  color: #8b456f;
  font-size: 24px;
  line-height: 1;
}

.games-details-modal__copy {
  margin: 0;
  padding: 0 22px 18px;
  color: #645463;
  line-height: 1.65;
}

.games-details-modal__actions {
  display: grid;
  gap: 12px;
  padding: 0 22px 22px;
}

.games-details-modal__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid rgba(223, 191, 234, 0.92);
  background: linear-gradient(180deg, rgba(255, 251, 253, 0.98), rgba(248, 241, 252, 0.98));
  color: #8b456f;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 12px 24px rgba(206, 145, 185, 0.08);
}

.games-details-modal__action--primary {
  background: linear-gradient(135deg, #f06fb0 0%, #da84ff 58%, #96a6ff 100%);
  border-color: rgba(255, 255, 255, 0.36);
  color: #ffffff;
}

.overlay-gallery-shell {
  display: grid;
  gap: 22px;
}

.overlay-gallery-hero {
  padding: 24px 26px;
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(244, 134, 186, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 241, 248, 0.98));
  border: 1px solid rgba(236, 122, 176, 0.22);
  box-shadow: 0 22px 48px rgba(225, 96, 154, 0.08);
}

.overlay-gallery-hero h2 {
  margin-bottom: 12px;
  font-size: 30px;
  line-height: 1.1;
}

.live-gifts-panel {
  padding: 22px;
  border: 1px solid rgba(236, 122, 176, 0.28);
  border-radius: 20px;
  background:
    radial-gradient(circle at top left, rgba(255, 92, 171, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(255, 243, 250, 0.98));
  box-shadow:
    0 22px 48px rgba(225, 96, 154, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.live-gifts-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(236, 122, 176, 0.18);
}

.live-gifts-header h2 {
  margin: 0 0 10px;
  color: #d9488f;
  font-size: 32px;
  line-height: 1.05;
  font-weight: 800;
}

.live-gifts-header p,
.live-gifts-card p {
  margin: 0;
  color: #5d4a5d;
  font-size: 14px;
  line-height: 1.65;
}

.live-gifts-reset {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 36px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #4b3950;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.live-gifts-reset input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.live-gifts-reset__switch {
  position: relative;
  width: 42px;
  height: 24px;
  flex: 0 0 auto;
  border: 1px solid rgba(216, 137, 232, 0.46);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 8px 18px rgba(205, 145, 187, 0.12);
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.live-gifts-reset__switch::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 4px 10px rgba(139, 76, 128, 0.2);
  transition: transform 0.18s ease;
}

.live-gifts-reset input:checked + .live-gifts-reset__switch {
  border-color: rgba(219, 106, 235, 0.46);
  background: linear-gradient(135deg, #f05bb7 0%, #b66cff 55%, #7c91ff 100%);
  box-shadow: 0 10px 22px rgba(186, 108, 255, 0.2);
}

.live-gifts-reset input:checked + .live-gifts-reset__switch::before {
  transform: translateX(18px);
}

.live-gifts-reset input:focus-visible + .live-gifts-reset__switch {
  outline: 3px solid rgba(216, 137, 232, 0.28);
  outline-offset: 2px;
}

.live-gifts-reset__text {
  color: #4b3950;
  font-weight: 700;
}

.live-gifts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.live-gifts-card {
  min-width: 0;
}

.live-gifts-card__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.live-gifts-card__head h3 {
  margin: 0;
  color: #b14f93;
  font-size: 22px;
  line-height: 1.1;
}

.live-gifts-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 18px;
}

.live-gifts-link input {
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(216, 137, 232, 0.34);
  background: rgba(255, 255, 255, 0.92);
  color: #4b3950;
  font-weight: 600;
}

.live-gifts-link button {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(219, 106, 235, 0.42);
  border-radius: 10px;
  background: linear-gradient(135deg, #f05bb7 0%, #b66cff 55%, #7c91ff 100%);
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(186, 108, 255, 0.2);
}

.live-gifts-preview {
  position: relative;
  min-height: 232px;
  margin-top: 10px;
  overflow: hidden;
  border: 1px solid rgba(216, 137, 232, 0.32);
  border-radius: 8px;
}

.live-gifts-preview iframe {
  width: 100%;
  min-height: 232px;
  border: 0;
  background: transparent;
}

.overlay-preset-list {
  display: grid;
  gap: 20px;
}

.overlay-gallery-card {
  padding: 18px 20px 22px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 242, 248, 0.98));
  border: 1px solid rgba(236, 122, 176, 0.26);
  box-shadow: 0 18px 42px rgba(225, 96, 154, 0.08);
}

.overlay-gallery-card__head {
  margin-bottom: 10px;
}

.overlay-gallery-card__head h3 {
  margin: 0;
  color: var(--gs-accent-strong);
  font-size: 30px;
  line-height: 1.05;
}

.overlay-gallery-card__copy {
  margin-bottom: 16px;
  color: #2b2b2b;
  line-height: 1.7;
}

.overlay-gallery-link-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto auto;
  gap: 10px;
  align-items: center;
}

.overlay-gallery-link-row span {
  color: #111111;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.overlay-gallery-link-row input {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  background: #fffafb;
  border: 1px solid rgba(236, 122, 176, 0.24);
  color: #111111;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 8px 18px rgba(225, 96, 154, 0.05);
}

.overlay-gallery-link-row button {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  background: #fff7fb;
  border: 1px solid rgba(236, 122, 176, 0.22);
  color: #111111;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(225, 96, 154, 0.06);
}

.overlay-gallery-link-row button:hover {
  background: rgba(255, 228, 240, 0.98);
  border-color: rgba(227, 84, 152, 0.34);
}

.overlay-gallery-card--timer {
  overflow: hidden;
  background:
    radial-gradient(circle at 16% 12%, rgba(33, 212, 255, 0.12), transparent 28%),
    radial-gradient(circle at 84% 20%, rgba(255, 94, 188, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(255, 242, 249, 0.99));
}

.overlay-gallery-link-row--compact {
  grid-template-columns: auto minmax(0, 1fr) auto auto;
}

.overlay-preview-frame--timer {
  position: relative;
  min-height: 230px;
  border-radius: 18px;
  background:
    linear-gradient(45deg, rgba(210, 213, 220, 0.52) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(210, 213, 220, 0.52) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(210, 213, 220, 0.52) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(210, 213, 220, 0.52) 75%),
    linear-gradient(135deg, #ffffff, #fff5fb);
  background-position: 0 0, 0 13px, 13px -13px, -13px 0;
  background-size: 26px 26px;
  border-color: rgba(216, 137, 232, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.74),
    0 18px 42px rgba(186, 108, 255, 0.1);
}

.overlay-preview-frame--timer::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 16px;
  pointer-events: none;
  background:
    radial-gradient(circle at 22% 30%, rgba(255, 94, 188, 0.12), transparent 32%),
    radial-gradient(circle at 78% 36%, rgba(33, 212, 255, 0.12), transparent 34%);
}

.overlay-preview-frame--timer iframe {
  position: relative;
  z-index: 1;
  min-height: 230px;
  background: transparent !important;
}

.overlay-gallery-card--gifter-winner {
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 18%, rgba(255, 139, 77, 0.13), transparent 30%),
    radial-gradient(circle at 84% 18%, rgba(105, 244, 173, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(255, 242, 249, 0.99));
}

.overlay-preview-frame--gifter-winner {
  position: relative;
  min-height: 610px;
  border-radius: 18px;
  background:
    linear-gradient(45deg, rgba(210, 213, 220, 0.52) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(210, 213, 220, 0.52) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(210, 213, 220, 0.52) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(210, 213, 220, 0.52) 75%),
    linear-gradient(135deg, #fff, #fff5fb);
  background-position: 0 0, 0 13px, 13px -13px, -13px 0;
  background-size: 26px 26px;
  border-color: rgba(236, 137, 184, 0.34);
}

.overlay-preview-frame--gifter-winner iframe {
  display: block;
  width: 100%;
  height: 610px;
  min-height: 610px;
  background: transparent !important;
  background-color: transparent !important;
}

.overlay-gallery-card--chat-overlay {
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 18%, rgba(33, 212, 255, 0.12), transparent 30%),
    radial-gradient(circle at 84% 20%, rgba(255, 94, 188, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(255, 242, 249, 0.99));
}

.overlay-preview-frame--chat-overlay {
  position: relative;
  min-height: 380px;
  border-radius: 18px;
  background:
    linear-gradient(45deg, rgba(210, 213, 220, 0.52) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(210, 213, 220, 0.52) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(210, 213, 220, 0.52) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(210, 213, 220, 0.52) 75%),
    linear-gradient(135deg, #fff, #fff5fb);
  background-position: 0 0, 0 13px, 13px -13px, -13px 0;
  background-size: 26px 26px;
  border-color: rgba(216, 137, 232, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.74),
    0 18px 42px rgba(186, 108, 255, 0.1);
}

.overlay-preview-frame--chat-overlay iframe {
  display: block;
  width: 100%;
  height: 380px;
  min-height: 380px;
  background: transparent !important;
  background-color: transparent !important;
}

.overlay-settings-modal[hidden] {
  display: none !important;
}

.overlay-settings-modal {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: grid;
  place-items: center;
  padding: 28px;
}

.overlay-settings-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 20, 0.6);
  backdrop-filter: blur(8px);
}

.overlay-settings-modal__dialog {
  position: relative;
  width: min(980px, calc(100vw - 56px));
  max-height: min(86vh, 920px);
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 250, 253, 0.99), rgba(255, 241, 247, 0.99));
  border: 1px solid rgba(236, 122, 176, 0.26);
  box-shadow: 0 30px 70px rgba(170, 68, 123, 0.18);
}

.overlay-settings-modal__header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.overlay-settings-modal__header h2 {
  margin: 0 0 4px;
  color: #f5f5f5;
  font-size: 22px;
}

.overlay-settings-modal__header p {
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
}

.overlay-settings-modal__close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: rgba(255, 255, 255, 0.84);
  font-size: 26px;
  line-height: 1;
}

.overlay-settings-modal__body {
  padding: 20px;
  max-height: calc(86vh - 84px);
  overflow: auto;
}

.overlay-settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.overlay-settings-grid[hidden] {
  display: none !important;
}

.overlay-settings-section-title {
  padding-top: 8px;
  color: #50aee9;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}

.overlay-settings-field,
.overlay-settings-toggle {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.overlay-settings-field span,
.overlay-settings-toggle span {
  color: #2b2b2b;
  font-size: 14px;
}

.overlay-settings-field input,
.overlay-settings-field select {
  width: 100%;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 6px;
  background: #fffafb;
  border: 1px solid rgba(236, 122, 176, 0.24);
  color: #111111;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 8px 18px rgba(225, 96, 154, 0.05);
}

.overlay-color-trigger {
  display: inline-grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 6px;
  background: #fffafb;
  border: 1px solid rgba(236, 122, 176, 0.24);
  color: #111111;
  text-align: left;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 8px 18px rgba(225, 96, 154, 0.05);
}

.overlay-color-trigger__swatch {
  width: 16px;
  height: 16px;
  border: 1px solid rgba(236, 122, 176, 0.28);
}

.overlay-color-trigger__label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.overlay-settings-field select {
  appearance: none;
  padding-right: 40px;
  background-image:
    linear-gradient(45deg, transparent 50%, #a84779 50%),
    linear-gradient(135deg, #a84779 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 15px,
    calc(100% - 12px) 15px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.overlay-settings-toggle input[type="checkbox"] {
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: #ff5fa7;
  justify-self: start;
}

.overlay-settings-modal__body::-webkit-scrollbar {
  width: 10px;
}

.overlay-settings-modal__body::-webkit-scrollbar-track {
  background: var(--gs-scrollbar-track);
}

.overlay-settings-modal__body::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: var(--gs-scrollbar-thumb);
}

.overlay-settings-modal__footer {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 22px;
  padding-top: 8px;
}

.overlay-settings-modal__action {
  min-width: 100px;
  min-height: 36px;
  padding: 0 18px;
  border-radius: 6px;
  background: #fff7fb;
  border: 1px solid rgba(236, 122, 176, 0.24);
  color: #7d305b;
  font-size: 13px;
}

.overlay-settings-modal__action--primary {
  background: linear-gradient(135deg, #f45a99 0%, #df4a8f 100%);
  border-color: rgba(223, 74, 143, 0.34);
  box-shadow: 0 14px 28px rgba(223, 74, 143, 0.2);
  color: #ffffff;
}

.overlay-settings-modal--pink .overlay-settings-modal__backdrop {
  background: rgba(82, 32, 58, 0.42);
  backdrop-filter: blur(10px);
}

.overlay-settings-modal--pink .overlay-settings-modal__dialog {
  width: min(760px, calc(100vw - 56px));
  max-height: min(84vh, 860px);
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(255, 222, 236, 0.94), transparent 26%),
    linear-gradient(180deg, rgba(255, 252, 254, 0.99), rgba(255, 241, 247, 0.98));
  border: 1px solid rgba(236, 122, 176, 0.28);
  box-shadow: 0 34px 80px rgba(153, 52, 101, 0.24);
}

.overlay-settings-modal--pink .overlay-settings-modal__header {
  padding: 20px 22px 16px;
  border-bottom: 1px solid rgba(236, 122, 176, 0.16);
}

.overlay-settings-modal--pink .overlay-settings-modal__header h2 {
  color: #371929;
}

.overlay-settings-modal--pink .overlay-settings-modal__header p {
  color: #8c5470;
}

.overlay-settings-modal--pink .overlay-settings-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(236, 122, 176, 0.18);
  background: rgba(255, 248, 251, 0.9);
  color: #b1467f;
  cursor: pointer;
}

.overlay-settings-modal--pink .overlay-settings-modal__body {
  padding: 20px 22px 22px;
}

.overlay-settings-modal--pink .overlay-settings-section-title {
  padding-top: 14px;
  color: #d84d8f;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.overlay-settings-modal--pink .overlay-settings-field span,
.overlay-settings-modal--pink .overlay-settings-toggle span {
  color: #5b3347;
  font-weight: 600;
}

.overlay-settings-modal--pink .overlay-settings-field input,
.overlay-settings-modal--pink .overlay-settings-field select,
.overlay-settings-modal--pink .overlay-color-trigger {
  min-height: 42px;
  border-radius: 10px;
  background: rgba(255, 252, 254, 0.98);
  border: 1px solid rgba(236, 122, 176, 0.2);
  color: #3f2031;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.overlay-settings-modal--pink .overlay-settings-toggle input[type="checkbox"] {
  accent-color: #f45a99;
}

.overlay-settings-modal--pink .overlay-settings-modal__footer {
  margin-top: 24px;
  padding-top: 14px;
  border-top: 1px solid rgba(236, 122, 176, 0.12);
}

.song-request-settings {
  display: grid;
  gap: 14px;
  padding: 2px 0 4px;
}

.song-request-settings[hidden] {
  display: none !important;
}

.song-request-settings__row {
  display: grid;
  grid-template-columns: minmax(180px, 0.64fr) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  min-height: 36px;
  color: #5b3347;
  font-size: 14px;
  font-weight: 600;
}

.song-request-settings__row > span b {
  color: #00c88d;
  font-weight: 700;
}

.song-request-settings__state {
  color: #ff394f;
  font-size: 14px;
  font-weight: 700;
}

.song-request-settings input[type="checkbox"] {
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: #4db9ec;
  justify-self: start;
}

.song-request-settings__number {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(236, 122, 176, 0.2);
  background: rgba(255, 252, 254, 0.98);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  overflow: hidden;
}

.song-request-settings__number input {
  min-width: 0;
  width: 100%;
  height: 40px;
  border: 0;
  background: transparent;
  color: #3f2031;
  padding: 0 12px;
  font-size: 14px;
  outline: 0;
}

.song-request-settings__number span {
  padding-right: 12px;
  color: #8c5470;
  font-size: 13px;
  font-weight: 700;
}

.song-request-settings__checks {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 22px;
}

.song-request-settings__checks label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #5b3347;
  font-size: 14px;
  font-weight: 600;
}

.overlay-settings-modal--song-request .overlay-settings-modal__backdrop {
  background:
    radial-gradient(circle at top, rgba(244, 127, 179, 0.2), transparent 28%),
    rgba(255, 244, 250, 0.58);
  backdrop-filter: blur(8px);
}

.overlay-settings-modal--song-request .overlay-settings-modal__dialog {
  width: min(860px, calc(100vw - 56px));
  max-height: min(92vh, 900px);
  border-radius: 18px;
  border: 1px solid rgba(236, 198, 221, 0.92) !important;
  background:
    radial-gradient(circle at top left, rgba(255, 214, 234, 0.42), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(255, 245, 250, 0.98) 100%) !important;
  box-shadow:
    0 30px 70px rgba(218, 140, 186, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.86) !important;
}

.overlay-settings-modal--song-request .overlay-settings-modal__header {
  padding: 20px 24px 16px;
  background: linear-gradient(180deg, rgba(255, 246, 250, 0.99), rgba(255, 237, 245, 0.97));
  border-bottom: 1px solid rgba(236, 198, 221, 0.82);
}

.overlay-settings-modal--song-request .overlay-settings-modal__header h2 {
  color: #d84d8f;
  font-size: 24px;
  font-weight: 700;
}

.overlay-settings-modal--song-request .overlay-settings-modal__header p {
  color: #5d4658;
}

.overlay-settings-modal--song-request .overlay-settings-modal__close {
  width: 36px;
  height: 36px;
  border-radius: 18px;
  border-color: rgba(230, 165, 202, 0.42);
  background: linear-gradient(180deg, rgba(255, 253, 254, 0.98), rgba(255, 241, 247, 0.98));
  color: #b85689;
  box-shadow: 0 10px 20px rgba(223, 132, 182, 0.08);
}

.overlay-settings-modal--song-request .overlay-settings-modal__close:hover {
  background: linear-gradient(180deg, rgba(255, 241, 247, 1), rgba(255, 229, 239, 0.99));
  border-color: rgba(221, 126, 180, 0.5);
}

.overlay-settings-modal--song-request .overlay-settings-modal__body {
  max-height: calc(92vh - 78px);
  padding: 24px 24px 34px;
}

.overlay-settings-modal--song-request .song-request-settings {
  gap: 14px;
}

.overlay-settings-modal--song-request .song-request-settings__row {
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid rgba(238, 201, 222, 0.9);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(255, 245, 250, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 10px 24px rgba(218, 140, 186, 0.06);
}

.overlay-settings-modal--song-request .song-request-settings__row > span {
  color: #4b3950;
  font-weight: 700;
}

.overlay-settings-modal--song-request .song-request-settings__row > span b {
  color: #d84d8f;
  letter-spacing: 0;
}

.overlay-settings-modal--song-request .song-request-settings__state {
  color: #ff394f;
}

.overlay-settings-modal--song-request .song-request-settings__state.is-connected {
  color: #16b978;
}

.overlay-settings-modal--song-request .song-request-settings input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: #dc5897;
}

.overlay-settings-modal--song-request .song-request-settings__number {
  border: 1px solid rgba(236, 198, 221, 0.84);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 254, 255, 0.99), rgba(255, 243, 249, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 8px 20px rgba(218, 140, 186, 0.05);
}

.overlay-settings-modal--song-request .song-request-settings__number input {
  color: #4b3950;
  font-weight: 700;
}

.overlay-settings-modal--song-request .song-request-settings__number span {
  color: #7d3f68;
}

.overlay-settings-modal--song-request .song-request-settings__checks label {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(232, 186, 214, 0.82);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 254, 255, 0.99), rgba(255, 243, 249, 0.98));
  color: #5d4658;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 8px 20px rgba(218, 140, 186, 0.05);
}

.overlay-settings-modal--song-request .overlay-settings-modal__footer {
  justify-content: flex-end;
  margin-top: 18px;
  padding: 18px 0 8px;
  border-top: 1px solid rgba(236, 198, 221, 0.78);
}

.overlay-settings-modal--song-request .overlay-settings-modal__action {
  min-width: 96px;
  min-height: 40px;
  border-radius: 14px;
  border: 1px solid rgba(233, 188, 215, 0.88);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(255, 241, 248, 0.98));
  color: #7d3f68;
  font-weight: 700;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 10px 22px rgba(218, 140, 186, 0.08);
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.overlay-settings-modal--song-request .overlay-settings-modal__action:hover {
  background: linear-gradient(180deg, rgba(255, 242, 248, 0.99), rgba(255, 231, 241, 0.98));
  border-color: rgba(221, 126, 180, 0.58);
  transform: translateY(-1px);
}

.overlay-settings-modal--song-request .overlay-settings-modal__action--primary {
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: linear-gradient(135deg, #ff69b4 0%, #d97dff 58%, #8ca4ff 100%);
  color: #ffffff;
  box-shadow:
    0 14px 28px rgba(221, 117, 190, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.overlay-settings-modal--song-request .overlay-settings-modal__action--primary:hover {
  background: linear-gradient(135deg, #ff5cab 0%, #cf70f4 58%, #7d96f8 100%);
  box-shadow:
    0 16px 30px rgba(221, 117, 190, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.timer-settings {
  display: grid;
  gap: 18px;
}

.timer-settings[hidden] {
  display: none !important;
}

.timer-settings__panel {
  padding: 24px;
  border: 1px solid rgba(236, 198, 221, 0.86);
  border-radius: 18px;
  background:
    radial-gradient(circle at top left, rgba(255, 216, 236, 0.36), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(255, 245, 250, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 16px 34px rgba(218, 140, 186, 0.08);
}

.timer-settings__panel h3,
.timer-settings__head h3 {
  margin: 0;
  color: #34253a;
  font-size: 24px;
  line-height: 1.1;
  font-weight: 800;
}

.timer-settings__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.timer-settings__display {
  color: #d84d8f;
  font-size: 28px;
  line-height: 1;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.timer-settings__control-row {
  display: grid;
  grid-template-columns: repeat(3, auto) minmax(90px, 0.5fr) minmax(280px, 1fr);
  gap: 10px;
  align-items: center;
}

.timer-settings__button,
.timer-settings__pick,
.timer-settings__stepper button {
  min-height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(220, 191, 233, 0.84);
  background: linear-gradient(180deg, rgba(255, 251, 253, 0.98), rgba(248, 241, 252, 0.98));
  color: #5a4162;
  font-weight: 800;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 10px 22px rgba(206, 145, 185, 0.08);
}

.timer-settings__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
}

.timer-settings__button svg,
.timer-settings__pick svg {
  width: 16px;
  height: 16px;
}

.timer-settings__button:hover,
.timer-settings__button.is-active {
  background: linear-gradient(135deg, #ff69b3 0%, #d86dff 52%, #8f7cff 100%);
  border-color: rgba(255, 255, 255, 0.48);
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(221, 117, 190, 0.2);
}

.timer-settings__button:hover svg,
.timer-settings__button.is-active svg {
  color: #ffffff;
}

.timer-settings__label {
  color: #5d4658;
  font-weight: 800;
  line-height: 1.35;
}

.timer-settings__stepper {
  display: grid;
  grid-template-columns: minmax(80px, 1fr) auto 48px 48px;
  gap: 8px;
  align-items: center;
}

.timer-settings__stepper input,
.timer-settings__number input {
  width: 100%;
  min-height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(210, 189, 223, 0.98);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(250, 242, 252, 0.98));
  color: #4b3950;
  font-weight: 800;
  padding: 0 12px;
  outline: 0;
}

.timer-settings__stepper span,
.timer-settings__number span {
  color: #7d3f68;
  font-size: 13px;
  font-weight: 800;
}

.timer-settings__rows {
  display: grid;
  margin-top: 26px;
}

.timer-settings__row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(220px, 0.9fr);
  gap: 18px;
  align-items: center;
  min-height: 72px;
  padding: 12px 16px;
  border-top: 1px solid rgba(236, 198, 221, 0.76);
}

.timer-settings__row > span {
  color: #4b3950;
  font-weight: 800;
  line-height: 1.35;
}

.timer-settings__number {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.timer-settings__number:has(input[type="text"]) {
  grid-template-columns: minmax(0, 1fr);
}

.timer-settings__pick {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
}

.timer-settings__action-value {
  grid-column: 2;
  width: 100%;
  min-height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(210, 189, 223, 0.98);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(250, 242, 252, 0.98));
  color: #4b3950;
  font-weight: 800;
  padding: 0 12px;
  cursor: pointer;
}

.timer-settings__note {
  margin: 0;
  padding: 18px 16px;
  border-top: 1px solid rgba(236, 198, 221, 0.76);
  color: #5d4658;
  line-height: 1.55;
  font-weight: 650;
}

.overlay-settings-modal--timer .overlay-settings-modal__dialog {
  width: min(1080px, calc(100vw - 48px));
  max-height: min(94vh, 940px);
  border-radius: 18px;
}

.overlay-settings-modal--timer .overlay-settings-modal__body {
  max-height: calc(94vh - 78px);
  padding: 24px 30px 28px;
}

.overlay-settings-modal--timer .timer-settings__panel {
  padding: 24px 30px;
}

.overlay-settings-modal--timer .timer-settings__control-row {
  grid-template-columns: repeat(3, minmax(96px, auto)) minmax(120px, 0.42fr) minmax(360px, 1fr);
  gap: 12px;
}

.overlay-settings-modal--timer .timer-settings__row {
  grid-template-columns: minmax(260px, 0.72fr) minmax(300px, 1fr);
  padding-inline: 16px;
}

.overlay-settings-modal--timer .overlay-settings-modal__footer {
  position: sticky;
  bottom: -28px;
  z-index: 4;
  justify-content: flex-end;
  margin: 22px -30px -28px;
  padding: 16px 30px 18px;
  border-top: 1px solid rgba(236, 198, 221, 0.82);
  background:
    linear-gradient(180deg, rgba(255, 246, 251, 0.76), rgba(255, 246, 251, 0.99) 34%),
    rgba(255, 246, 251, 0.98);
  backdrop-filter: blur(10px);
}

.overlay-settings-modal--timer .overlay-settings-modal__action {
  min-width: 112px;
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(220, 191, 233, 0.84);
  background: linear-gradient(180deg, rgba(255, 251, 253, 0.98), rgba(248, 241, 252, 0.98));
  color: #94417a;
  font-weight: 800;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 10px 22px rgba(206, 145, 185, 0.08);
}

.overlay-settings-modal--timer .overlay-settings-modal__action--primary {
  border-color: rgba(255, 255, 255, 0.42);
  background: linear-gradient(135deg, #ff69b3 0%, #d86dff 52%, #8f7cff 100%);
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(221, 117, 190, 0.22);
}

.gifter-winner-settings {
  display: grid;
  gap: 18px;
}

.gifter-winner-settings[hidden] {
  display: none !important;
}

.gifter-winner-settings__panel {
  padding: 24px;
  border: 1px solid rgba(236, 198, 221, 0.86);
  border-radius: 18px;
  background:
    radial-gradient(circle at top left, rgba(255, 216, 236, 0.36), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(255, 245, 250, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 16px 34px rgba(218, 140, 186, 0.08);
}

.gifter-winner-settings__head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.gifter-winner-settings__head h3 {
  margin: 0 0 6px;
  color: #34253a;
  font-size: 26px;
  font-weight: 850;
}

.gifter-winner-settings__head p {
  margin: 0;
  color: #876377;
  font-weight: 650;
}

.gifter-winner-settings__status {
  min-width: 92px;
  padding: 10px 14px;
  border-radius: 999px;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, #ff69b3, #8f7cff);
  box-shadow: 0 14px 26px rgba(221, 117, 190, 0.22);
}

.gifter-winner-settings__grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(360px, 1.1fr);
  gap: 24px;
  align-items: start;
}

.gifter-winner-settings__form,
.gifter-winner-settings__preview-panel {
  padding: 18px;
  border: 1px solid rgba(220, 191, 233, 0.84);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.68);
}

.gifter-winner-settings__row {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.gifter-winner-settings__row span {
  color: #4b3950;
  font-weight: 850;
}

.gifter-winner-settings__row input,
.gifter-winner-settings__row select {
  width: 100%;
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(210, 189, 223, 0.98);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(250, 242, 252, 0.98));
  color: #4b3950;
  font-weight: 800;
  padding: 0 12px;
  outline: 0;
}

.gifter-winner-settings__adjust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.gifter-winner-settings__adjust button,
.gifter-winner-settings__button {
  min-height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(220, 191, 233, 0.84);
  background: linear-gradient(180deg, rgba(255, 251, 253, 0.98), rgba(248, 241, 252, 0.98));
  color: #5a4162;
  font-weight: 850;
  padding: 0 14px;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 10px 22px rgba(206, 145, 185, 0.08);
}

.gifter-winner-settings__adjust button:hover,
.gifter-winner-settings__button:hover,
.gifter-winner-settings__button.is-active {
  border-color: rgba(255, 255, 255, 0.48);
  background: linear-gradient(135deg, #ff69b3 0%, #d86dff 52%, #8f7cff 100%);
  color: #ffffff;
}

.gifter-winner-settings__adjust .is-danger,
.gifter-winner-settings__button--danger {
  background: linear-gradient(135deg, #ff4f6a, #d9293d);
  border-color: rgba(255, 255, 255, 0.38);
  color: #fff;
}

.gifter-winner-settings__note {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(230, 154, 23, 0.42);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 247, 206, 0.78), rgba(255, 235, 170, 0.62));
  color: #6a4a08;
  font-weight: 750;
}

.gifter-winner-settings__note strong {
  display: block;
  margin-bottom: 10px;
  font-size: 18px;
}

.gifter-winner-settings__note ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.gifter-winner-settings__preview-panel {
  display: grid;
  justify-items: center;
  gap: 20px;
}

.gifter-winner-settings__controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.gifter-winner-settings__button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 104px;
  justify-content: center;
}

.gifter-winner-settings__button svg {
  width: 16px;
  height: 16px;
}

.gifter-winner-settings__mock {
  position: relative;
  width: min(320px, 100%);
  min-height: 380px;
  padding: 28px 24px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 13px;
  text-align: center;
  border-radius: 12px;
  border: 6px solid transparent;
  background:
    linear-gradient(#111015, #111015) padding-box,
    linear-gradient(135deg, #ff8b4d, #ff4faf 38%, #65f4ad 72%, #d9f85b) border-box;
  box-shadow:
    0 28px 64px rgba(0, 0, 0, 0.28),
    0 0 30px rgba(255, 92, 167, 0.28);
  overflow: hidden;
  animation: gifterWinnerCardFloat 4200ms ease-in-out infinite;
}

.gifter-winner-settings__mock::before {
  content: "";
  position: absolute;
  inset: -45%;
  z-index: 0;
  background:
    conic-gradient(from 0deg, transparent, rgba(255, 79, 175, 0.18), transparent 34%, rgba(101, 244, 173, 0.16), transparent 68%, rgba(255, 139, 77, 0.16), transparent);
  animation: gifterWinnerAuraSpin 7200ms linear infinite;
}

.gifter-winner-settings__mock > * {
  position: relative;
  z-index: 1;
}

.gifter-winner-settings__avatar {
  width: 116px;
  height: 116px;
  border-radius: 50%;
  border: 5px solid #101014;
  background:
    radial-gradient(circle at 50% 42%, #b8b8b8 0 26px, transparent 27px),
    radial-gradient(circle at 50% 106%, #d6d6d6 0 54px, transparent 55px),
    linear-gradient(45deg, #fff 25%, #ececf0 25% 50%, #fff 50% 75%, #ececf0 75%);
  background-size: auto, auto, 28px 28px;
  box-shadow:
    0 0 0 0 rgba(255, 104, 158, 0.32),
    0 0 26px rgba(255, 104, 158, 0.56);
  animation: gifterWinnerAvatarPulse 2200ms ease-in-out infinite;
  overflow: hidden;
}

.gifter-winner-settings__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gifter-winner-settings__mock strong {
  color: #fff;
  font-size: 28px;
  line-height: 1.05;
  font-weight: 950;
  animation: gifterWinnerTextGlow 2800ms ease-in-out infinite;
}

.gifter-winner-settings__mock > span {
  color: #ff9845;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.gifter-winner-settings__mock p {
  width: 100%;
  margin: 0;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(3, 3, 8, 0.82);
  color: #ff4f6a;
  font-weight: 900;
}

.gifter-winner-settings__gift-card {
  width: 100%;
  min-height: 150px;
  padding: 18px;
  display: grid;
  place-items: center;
  gap: 10px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 91, 174, 0.16), transparent 42%),
    rgba(3, 3, 8, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.gifter-winner-settings__gift-card[hidden] {
  display: none !important;
}

.gifter-winner-settings__gift-media {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  color: #ff8ab8;
  font-size: 28px;
  font-weight: 950;
}

.gifter-winner-settings__gift-media img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(255, 105, 179, 0.28));
  animation: gifterWinnerGiftFloat 1800ms ease-in-out infinite;
}

.gifter-winner-settings__gift-card strong {
  color: #ffffff;
  font-size: 18px;
  line-height: 1.15;
  font-weight: 950;
}

.gifter-winner-settings__mock small {
  color: #93a1b5;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: gifterWinnerStateBlink 1800ms ease-in-out infinite;
}

@keyframes gifterWinnerAuraSpin {
  to { transform: rotate(360deg); }
}

@keyframes gifterWinnerCardFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes gifterWinnerAvatarPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 104, 158, 0.28), 0 0 26px rgba(255, 104, 158, 0.56); }
  50% { box-shadow: 0 0 0 12px rgba(255, 104, 158, 0), 0 0 34px rgba(101, 244, 173, 0.38); }
}

@keyframes gifterWinnerGiftFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-7px) scale(1.04); }
}

@keyframes gifterWinnerTextGlow {
  0%, 100% { text-shadow: 0 10px 28px rgba(0, 0, 0, 0.52); }
  50% { text-shadow: 0 10px 28px rgba(0, 0, 0, 0.52), 0 0 22px rgba(255, 104, 158, 0.34); }
}

@keyframes gifterWinnerStateBlink {
  0%, 100% { opacity: 0.76; }
  50% { opacity: 1; }
}

.overlay-settings-modal--gifter-winner .overlay-settings-modal__dialog {
  width: min(1120px, calc(100vw - 48px));
  max-height: min(94vh, 940px);
}

.overlay-settings-modal--gifter-winner .overlay-settings-modal__body {
  max-height: calc(94vh - 78px);
  padding: 24px 30px 28px;
}

.overlay-settings-modal--gifter-winner .overlay-settings-modal__footer {
  position: sticky;
  bottom: -28px;
  z-index: 4;
  justify-content: flex-end;
  margin: 22px -30px -28px;
  padding: 16px 30px 18px;
  border-top: 1px solid rgba(236, 198, 221, 0.82);
  background: rgba(255, 246, 251, 0.98);
  backdrop-filter: blur(10px);
}

@media (max-width: 940px) {
  .gifter-winner-settings__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 920px) {
  .overlay-settings-modal--timer .timer-settings__control-row,
  .overlay-settings-modal--timer .timer-settings__row {
    grid-template-columns: 1fr;
  }

  .overlay-settings-modal--timer .timer-settings__stepper {
    grid-template-columns: minmax(0, 1fr) auto 44px 44px;
  }
}

.overlay-settings-modal--cardbox .overlay-settings-modal__backdrop {
  background: rgba(10, 8, 12, 0.42);
}

.overlay-settings-modal--cardbox .overlay-settings-modal__dialog {
  width: min(780px, calc(100vw - 36px));
  max-height: min(92vh, 820px);
  border-radius: 4px;
  background: #282828;
  border: 1px solid #4b4b4b;
  color: #e7e7e7;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
}

.overlay-settings-modal--cardbox .overlay-settings-modal__header {
  min-height: 48px;
  padding: 12px 20px;
  background: #282828;
  border-bottom: 1px solid #444;
}

.overlay-settings-modal--cardbox .overlay-settings-modal__header h2 {
  color: #e7e7e7;
  font-size: 20px;
  font-weight: 700;
}

.overlay-settings-modal--cardbox .overlay-settings-modal__header p {
  display: none;
}

.overlay-settings-modal--cardbox .overlay-settings-modal__close {
  color: #e7e7e7;
}

.overlay-settings-modal--cardbox .overlay-settings-modal__body {
  max-height: calc(92vh - 50px);
  overflow: auto;
  padding: 24px 48px 26px 40px;
  background: #282828;
}

.cardbox-settings[hidden] {
  display: none !important;
}

.cardbox-settings {
  display: grid;
  gap: 20px;
}

.cardbox-settings__grid {
  display: grid;
  gap: 10px;
  max-width: 540px;
  margin-inline: auto;
}

.cardbox-settings__row {
  display: grid;
  grid-template-columns: 170px minmax(0, 250px);
  gap: 10px;
  align-items: center;
}

.cardbox-settings__row span {
  color: #e3e3e3;
  font-size: 14px;
  text-align: right;
}

.cardbox-settings__row input,
.cardbox-settings__row select,
.cardbox-add-row select,
.cardbox-table input {
  width: 100%;
  min-height: 36px;
  padding: 0 10px;
  border-radius: 4px;
  border: 1px solid #505050;
  background: #2b2b2b;
  color: #e9e9e9;
}

.cardbox-settings__row--check input {
  width: 22px;
  height: 22px;
  min-height: 0;
  accent-color: #26b8ef;
}

.cardbox-add-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.cardbox-add-row select {
  max-width: 320px;
}

.cardbox-add-row button,
.cardbox-table button {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 4px;
  border: 1px solid #555;
  background: #2b2b2b;
  color: #f0f0f0;
  font-weight: 700;
}

.cardbox-add-row button:hover,
.cardbox-table button:hover {
  border-color: #777;
  background: #333;
}

.cardbox-table-wrap {
  overflow: auto;
  border: 1px solid #505050;
}

.cardbox-table {
  width: 100%;
  border-collapse: collapse;
  color: #e3e3e3;
}

.cardbox-table th,
.cardbox-table td {
  height: 34px;
  padding: 7px 10px;
  border-right: 1px solid #454545;
  border-bottom: 1px solid #454545;
  color: #d8d8d8;
  font-size: 13px;
  text-align: left;
}

.cardbox-table th {
  color: #8f8f8f;
  font-weight: 500;
}

.cardbox-table td:first-child,
.cardbox-table th:first-child,
.cardbox-table td:last-child,
.cardbox-table th:last-child {
  width: 78px;
  text-align: center;
}

.cardbox-table input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-height: 0;
  accent-color: #26b8ef;
}

.cardbox-table__empty {
  height: 98px !important;
  color: #8c8c8c !important;
  text-align: center !important;
  font-size: 18px !important;
}

/* Cardbox of Actions customize modal - light pink/lilac app theme */
.overlay-settings-modal--cardbox .overlay-settings-modal__backdrop {
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 92, 171, 0.24), transparent 34%),
    radial-gradient(circle at 82% 18%, rgba(125, 150, 248, 0.22), transparent 32%),
    rgba(31, 23, 37, 0.34);
  backdrop-filter: blur(10px);
}

.overlay-settings-modal--cardbox .overlay-settings-modal__dialog {
  width: min(820px, calc(100vw - 36px));
  max-height: min(92vh, 840px);
  border: 1px solid rgba(244, 114, 182, 0.36);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 247, 252, 0.94));
  color: #2d2140;
  box-shadow:
    0 28px 70px rgba(142, 66, 140, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.84);
  overflow: hidden;
}

.overlay-settings-modal--cardbox .overlay-settings-modal__header {
  min-height: 66px;
  padding: 18px 22px;
  background:
    linear-gradient(135deg, rgba(255, 245, 251, 0.95), rgba(246, 240, 255, 0.95));
  border-bottom: 1px solid rgba(244, 114, 182, 0.24);
}

.overlay-settings-modal--cardbox .overlay-settings-modal__header h2 {
  color: #df3f84;
  font-size: 22px;
  font-weight: 700;
}

.overlay-settings-modal--cardbox .overlay-settings-modal__close {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(236, 72, 153, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  color: #5a4166;
  box-shadow: 0 10px 24px rgba(236, 72, 153, 0.13);
}

.overlay-settings-modal--cardbox .overlay-settings-modal__close:hover {
  background: linear-gradient(135deg, #ff5cab 0%, #cf70f4 58%, #7d96f8 100%);
  color: #ffffff;
}

.overlay-settings-modal--cardbox .overlay-settings-modal__body {
  max-height: calc(92vh - 66px);
  padding: 24px 34px 26px;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 92, 171, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 247, 252, 0.84));
}

.overlay-settings-modal--cardbox .overlay-settings-modal__body::-webkit-scrollbar-track {
  background: rgba(255, 214, 235, 0.42);
}

.overlay-settings-modal--cardbox .overlay-settings-modal__body::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #ff5cab, #b988ff);
  border-radius: 999px;
}

.overlay-settings-modal--cardbox .cardbox-settings {
  gap: 22px;
}

.overlay-settings-modal--cardbox .cardbox-settings__grid {
  max-width: 590px;
  gap: 12px;
}

.overlay-settings-modal--cardbox .cardbox-settings__row {
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 14px;
}

.overlay-settings-modal--cardbox .cardbox-settings__row span {
  color: #4d3c5a;
  font-weight: 700;
}

.overlay-settings-modal--cardbox .cardbox-settings__row input,
.overlay-settings-modal--cardbox .cardbox-settings__row select,
.overlay-settings-modal--cardbox .cardbox-add-row select,
.overlay-settings-modal--cardbox .cardbox-table input {
  min-height: 40px;
  border: 1px solid rgba(216, 137, 232, 0.34);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.82);
  color: #2d2140;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.overlay-settings-modal--cardbox .cardbox-settings__row input:focus,
.overlay-settings-modal--cardbox .cardbox-settings__row select:focus,
.overlay-settings-modal--cardbox .cardbox-add-row select:focus,
.overlay-settings-modal--cardbox .cardbox-table input:focus {
  border-color: rgba(236, 72, 153, 0.72);
  box-shadow:
    0 0 0 3px rgba(236, 72, 153, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  outline: none;
}

.overlay-settings-modal--cardbox .cardbox-settings__row--check input,
.overlay-settings-modal--cardbox .cardbox-table input[type="checkbox"] {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  accent-color: #ec4899;
}

.overlay-settings-modal--cardbox .cardbox-add-row {
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(244, 114, 182, 0.22);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.64);
}

.overlay-settings-modal--cardbox .cardbox-add-row select {
  max-width: none;
  flex: 1;
}

.overlay-settings-modal--cardbox .cardbox-add-row button,
.overlay-settings-modal--cardbox .cardbox-table button {
  min-height: 40px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #ff5cab 0%, #cf70f4 58%, #7d96f8 100%);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(221, 117, 190, 0.22);
}

.overlay-settings-modal--cardbox .cardbox-table button {
  min-height: 36px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(236, 72, 153, 0.26);
  color: #df3f84;
  box-shadow: none;
}

.overlay-settings-modal--cardbox .cardbox-add-row button:hover,
.overlay-settings-modal--cardbox .cardbox-table button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(221, 117, 190, 0.28);
}

.overlay-settings-modal--cardbox .cardbox-table-wrap {
  border: 1px solid rgba(244, 114, 182, 0.24);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 18px 38px rgba(236, 72, 153, 0.08);
}

.overlay-settings-modal--cardbox .cardbox-table {
  color: #2d2140;
}

.overlay-settings-modal--cardbox .cardbox-table th,
.overlay-settings-modal--cardbox .cardbox-table td {
  height: 46px;
  border-color: rgba(244, 114, 182, 0.18);
  color: #4d3c5a;
}

.overlay-settings-modal--cardbox .cardbox-table th {
  background: rgba(255, 232, 244, 0.6);
  color: #7a4c84;
  font-weight: 700;
}

.overlay-settings-modal--cardbox .cardbox-table tbody tr:hover {
  background: rgba(255, 232, 244, 0.52);
}

.overlay-settings-modal--cardbox .cardbox-table__empty {
  color: #8f719e !important;
  font-size: 15px !important;
}

.overlay-settings-modal--cardbox .overlay-settings-modal__footer {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(244, 114, 182, 0.22);
}

.overlay-settings-modal--cardbox .overlay-settings-modal__action {
  min-width: 100px;
  border: 1px solid rgba(236, 72, 153, 0.24);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.88);
  color: #4d3c5a;
}

.overlay-settings-modal--cardbox .overlay-settings-modal__action--primary {
  border: 0;
  background: linear-gradient(135deg, #ff5cab 0%, #cf70f4 58%, #7d96f8 100%);
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(221, 117, 190, 0.24);
}

.overlay-color-modal[hidden] {
  display: none !important;
}

.overlay-color-modal {
  position: fixed;
  inset: 0;
  z-index: 2200;
  display: grid;
  place-items: center;
  padding: 24px;
}

.overlay-color-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(118, 59, 92, 0.22);
}

.overlay-color-modal__dialog {
  position: relative;
  width: min(520px, calc(100vw - 40px));
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 250, 253, 0.99), rgba(255, 241, 247, 0.99));
  border: 1px solid rgba(236, 122, 176, 0.26);
  box-shadow: 0 24px 60px rgba(170, 68, 123, 0.18);
}

.overlay-color-modal__header {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(236, 122, 176, 0.16);
}

.overlay-color-modal__header h2 {
  margin: 0;
  color: #111111;
  font-size: 18px;
}

.overlay-color-modal__body {
  padding: 18px 16px 16px;
}

.overlay-color-picker {
  display: grid;
  grid-template-columns: 1fr 22px 120px;
  gap: 18px;
  align-items: start;
}

.overlay-color-spectrum {
  position: relative;
  aspect-ratio: 1 / 1;
  min-height: 300px;
  border: 1px solid rgba(236, 122, 176, 0.24);
  background:
    linear-gradient(to top, #000, transparent),
    linear-gradient(to right, #fff, hsl(205 100% 50%));
  cursor: crosshair;
}

.overlay-color-spectrum__pointer {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 5px solid #a84779;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.95);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.overlay-color-hue-wrap {
  position: relative;
  width: 22px;
  min-height: 300px;
  border: 1px solid rgba(236, 122, 176, 0.24);
  background: linear-gradient(
    to top,
    #ff0000 0%,
    #ffff00 17%,
    #00ff00 33%,
    #00ffff 50%,
    #0000ff 67%,
    #ff00ff 83%,
    #ff0000 100%
  );
}

.overlay-color-hue {
  position: absolute;
  inset: 0;
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 100%;
  min-height: 300px;
  writing-mode: vertical-lr;
  direction: rtl;
  border: 0;
  background: transparent;
  cursor: ns-resize;
  touch-action: none;
  user-select: none;
  opacity: 0;
  z-index: 2;
}

.overlay-color-hue::-webkit-slider-runnable-track {
  width: 22px;
  height: 300px;
  background: transparent;
  border: 0;
}

.overlay-color-hue::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 12px;
  border: 0;
  background: transparent;
  cursor: ns-resize;
}

.overlay-color-hue-marker {
  position: absolute;
  left: 50%;
  top: 43%;
  z-index: 1;
  width: 28px;
  height: 12px;
  border: 1px solid rgba(255, 255, 255, 0.94);
  background: rgba(168, 71, 121, 0.92);
  box-shadow: 0 0 0 1px rgba(132, 52, 91, 0.18);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.overlay-color-side {
  display: grid;
  gap: 10px;
}

.overlay-color-preview {
  width: 100%;
  height: 84px;
  border: 1px solid rgba(236, 122, 176, 0.24);
  background: #3e9bde;
}

.overlay-color-input-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.overlay-color-input-row span {
  color: #2b2b2b;
}

.overlay-color-input-row input {
  width: 100%;
  min-height: 36px;
  padding: 0 10px;
  border-radius: 4px;
  background: #fffafb;
  border: 1px solid rgba(236, 122, 176, 0.24);
  color: #111111;
}

.overlay-color-modal__footer {
  display: flex;
  justify-content: end;
  gap: 12px;
  margin-top: 18px;
}

.overlay-preset-card {
  padding: 24px 24px 26px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 242, 248, 0.98));
  border: 1px solid rgba(236, 122, 176, 0.2);
  box-shadow: 0 18px 42px rgba(225, 96, 154, 0.08);
}

.overlay-preset-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.overlay-preset-head h3 {
  margin: 0;
  color: #111111;
  font-size: 24px;
  line-height: 1.1;
}

.overlay-preset-copy {
  margin-bottom: 16px;
  color: #4d3242;
}

.overlay-control-grid--gallery {
  margin-bottom: 16px;
}

.overlay-goal-list {
  display: grid;
  gap: 18px;
}

.overlay-goal-card {
  padding: 28px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 242, 248, 0.98));
  border: 1px solid rgba(236, 122, 176, 0.22);
  box-shadow: 0 18px 42px rgba(225, 96, 154, 0.08);
}

.overlay-goal-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 14px;
  margin-bottom: 18px;
}

.overlay-goal-head h3 {
  color: #111111;
  font-size: 24px;
  line-height: 1.1;
}

.overlay-goal-controls {
  display: grid;
  gap: 14px;
}

.overlay-control {
  display: grid;
  gap: 8px;
}

.overlay-control span {
  color: #111111;
  font-size: 12px;
  font-weight: 700;
}

.overlay-control.wide {
  width: 100%;
}

.overlay-inline-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(3, auto);
  gap: 10px;
}

.overlay-inline-actions input,
.overlay-control input,
.overlay-control select {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  background: #fffafb;
  border: 1px solid rgba(236, 122, 176, 0.24);
  color: #111111;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 8px 18px rgba(225, 96, 154, 0.05);
}

.overlay-control select {
  appearance: none;
  padding-right: 42px;
  background-image:
    linear-gradient(45deg, transparent 50%, #111111 50%),
    linear-gradient(135deg, #111111 50%, transparent 50%);
  background-position:
    calc(100% - 20px) 18px,
    calc(100% - 14px) 18px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.overlay-inline-actions button {
  min-height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  background: #fff7fb;
  border: 1px solid rgba(236, 122, 176, 0.22);
  color: #111111;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(225, 96, 154, 0.06);
}

.overlay-inline-actions button:hover {
  background: rgba(255, 228, 240, 0.98);
  border-color: rgba(227, 84, 152, 0.34);
}

.overlay-action-picker {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.overlay-action-picker button {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  background: linear-gradient(180deg, #f37bb2, #d9488f);
  border: 1px solid rgba(217, 72, 143, 0.28);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 12px 22px rgba(225, 96, 154, 0.14);
}

.overlay-action-picker button:hover,
.overlay-action-modal__create:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(225, 96, 154, 0.18);
}

.overlay-control-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.overlay-preview-frame {
  margin-top: 20px;
  min-height: 420px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 250, 253, 0.98), rgba(255, 241, 247, 0.98));
  border: 1px solid rgba(236, 122, 176, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    0 22px 44px rgba(225, 96, 154, 0.1);
}

.overlay-preview-frame--compact {
  min-height: 240px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.overlay-preview-frame--empty {
  min-height: 320px;
  margin-top: 16px;
}

.overlay-preview-frame--embed {
  overflow: hidden;
  padding: 0;
}

.overlay-preview-frame--embed iframe {
  width: 100%;
  min-height: 320px;
  border: 0;
  background: linear-gradient(180deg, rgba(255, 247, 251, 0.98), rgba(255, 239, 247, 0.98));
}

.overlay-preview-frame--cardbox iframe {
  height: 540px;
  min-height: 540px;
  background: transparent;
}

.overlay-preview-frame--cardbox {
  min-height: 540px;
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

.overlay-preview-frame--goal {
  position: relative;
  width: min(100%, 860px);
  height: 520px;
  min-height: 520px;
  margin-inline: auto;
  padding: 0 64px 34px;
  overflow: hidden;
  display: grid;
  align-items: center;
  background: transparent;
  box-shadow: none;
}

.overlay-preview-frame--goal.is-vertical {
  width: min(100%, 860px);
  height: 520px;
  min-height: 520px;
  padding: 0 64px 34px;
  align-items: center;
}

.overlay-preview-frame--goal iframe {
  width: 100%;
  height: 460px;
  min-height: 460px;
  border: 0;
  background: transparent;
  display: block;
}

.overlay-preview-frame--goal.is-vertical iframe {
  height: 460px;
  min-height: 460px;
}

.overlay-goal-preset-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 40px;
  height: 40px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
  background: linear-gradient(135deg, #FF2D8D, #7A3CFF);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 24px rgba(225, 96, 154, 0.22);
  transform: translateY(-50%);
}

.overlay-goal-preset-nav:hover {
  background: linear-gradient(135deg, #ff4fa0, #8b55ff);
  transform: translateY(-50%) scale(1.04);
  box-shadow: 0 16px 30px rgba(122, 60, 255, 0.24);
}

.overlay-goal-preset-nav svg {
  width: 22px;
  height: 22px;
}

.overlay-goal-preset-nav--prev {
  left: 18px;
}

.overlay-goal-preset-nav--next {
  right: 18px;
}

.overlay-goal-preset-count {
  position: absolute;
  left: 50%;
  bottom: 13px;
  transform: translateX(-50%);
  color: #4d3242;
  font-size: 12px;
  font-weight: 700;
}

.goal-settings-modal .overlay-settings-modal__dialog {
  width: min(620px, calc(100vw - 42px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.goal-settings-form {
  display: grid;
  gap: 14px;
  min-height: 0;
  overflow-y: auto;
}

.goal-settings-form .overlay-settings-field {
  grid-template-columns: minmax(150px, 0.42fr) minmax(0, 1fr);
}

.goal-settings-form input[type="range"] {
  accent-color: #FF2D8D;
  box-shadow: none;
}

.goal-color-field input[type="color"] {
  min-height: 42px;
  padding: 5px;
  cursor: pointer;
}

.goal-settings-modal .overlay-settings-modal__footer {
  position: sticky;
  bottom: 0;
  z-index: 2;
  flex-shrink: 0;
  margin-top: 0;
  padding: 16px 22px 18px;
  background: linear-gradient(180deg, rgba(255, 246, 251, 0.94), rgba(255, 238, 247, 0.99));
  border-top: 1px solid rgba(236, 122, 176, 0.18);
}

.goal-reached-select {
  position: relative;
  min-width: 0;
}

.goal-reached-select__button {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 12px;
  background: #fffafb;
  border: 1px solid rgba(236, 122, 176, 0.24);
  color: #321528;
  font-size: 13px;
  text-align: left;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 8px 18px rgba(225, 96, 154, 0.05);
}

.goal-reached-select__button svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.goal-reached-select__menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  padding: 6px;
  border-radius: 14px;
  background:
    radial-gradient(circle at top right, rgba(255, 222, 236, 0.96), transparent 36%),
    linear-gradient(180deg, rgba(255, 252, 254, 0.99), rgba(255, 241, 247, 0.99));
  border: 1px solid rgba(236, 122, 176, 0.28);
  box-shadow: 0 20px 44px rgba(153, 52, 101, 0.2);
}

.goal-reached-select__menu button {
  width: 100%;
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #4d253a;
  font-size: 13px;
  text-align: left;
}

.goal-reached-select__menu button:hover,
.goal-reached-select__menu button.is-selected {
  background: linear-gradient(135deg, #FF2D8D, #7A3CFF);
  color: #ffffff;
}

.overlay-preview-leaderboard {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  padding: 28px;
}

.overlay-bars {
  display: grid;
  gap: 12px;
  width: 100%;
}

.overlay-bars span {
  display: block;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(244, 123, 178, 0.9), rgba(255, 203, 225, 0.66));
}

.overlay-bars span:nth-child(1) { width: 88%; }
.overlay-bars span:nth-child(2) { width: 76%; }
.overlay-bars span:nth-child(3) { width: 68%; }
.overlay-bars span:nth-child(4) { width: 54%; }
.overlay-bars span:nth-child(5) { width: 44%; }

.overlay-bars--alt span {
  background: linear-gradient(90deg, rgba(142, 195, 255, 0.9), rgba(213, 236, 255, 0.75));
}

.overlay-preview-bubbles {
  position: relative;
}

.overlay-preview-bubbles span {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #ffffff, #f37bb2 68%);
  box-shadow: 0 10px 18px rgba(225, 96, 154, 0.14);
}

.overlay-preview-bubbles span:nth-child(1) { top: 24%; left: 26%; }
.overlay-preview-bubbles span:nth-child(2) { top: 40%; left: 48%; width: 22px; height: 22px; }
.overlay-preview-bubbles span:nth-child(3) { top: 32%; left: 62%; width: 14px; height: 14px; }
.overlay-preview-bubbles span:nth-child(4) { top: 56%; left: 34%; width: 16px; height: 16px; }
.overlay-preview-bubbles span:nth-child(5) { top: 60%; left: 58%; width: 20px; height: 20px; }
.overlay-preview-bubbles span:nth-child(6) { top: 70%; left: 45%; width: 12px; height: 12px; }

.overlay-preview-feed {
  align-content: center;
  justify-items: center;
  gap: 16px;
  padding: 28px;
}

.overlay-feed-line {
  width: min(100%, 560px);
  height: 24px;
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(244, 123, 178, 0.92), rgba(255, 225, 238, 0.88));
}

.overlay-feed-line.short {
  width: min(70%, 360px);
}

.overlay-preview-progress {
  gap: 20px;
  padding: 34px;
}

.overlay-progress-track {
  width: min(100%, 620px);
  height: 24px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 226, 239, 0.9);
  border: 1px solid rgba(236, 122, 176, 0.18);
}

.overlay-progress-track span {
  display: block;
  height: 100%;
  width: 72%;
  border-radius: 999px;
  background: linear-gradient(90deg, #f37bb2, #d9488f);
}

.overlay-progress-track.alt span {
  width: 46%;
  background: linear-gradient(90deg, #7dbef8, #acd8ff);
}

.overlay-preview-chat {
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  padding: 28px;
}

.overlay-chat-avatar {
  width: 62px;
  height: 62px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f37bb2, #d9488f);
  box-shadow: 0 14px 24px rgba(225, 96, 154, 0.2);
}

.overlay-chat-card {
  width: min(100%, 520px);
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 251, 253, 0.96);
  border: 1px solid rgba(236, 122, 176, 0.18);
}

.overlay-chat-line {
  height: 14px;
  border-radius: 999px;
  background: rgba(241, 168, 205, 0.72);
  margin-top: 12px;
}

.overlay-chat-line.short {
  width: 42%;
  margin-top: 0;
}

.overlay-preview-lowerthird {
  gap: 14px;
  align-content: end;
  justify-items: start;
  padding: 30px;
}

.overlay-lowerthird-main,
.overlay-lowerthird-sub {
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(244, 123, 178, 0.95), rgba(255, 226, 239, 0.9));
}

.overlay-lowerthird-main {
  width: min(100%, 420px);
  height: 34px;
}

.overlay-lowerthird-sub {
  width: min(100%, 260px);
  height: 18px;
}

.overlay-action-modal[hidden] {
  display: none !important;
}

.overlay-action-modal {
  position: fixed;
  inset: 0;
  z-index: 2300;
  display: grid;
  place-items: center;
  padding: 28px;
}

.overlay-action-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(35, 16, 28, 0.42);
  backdrop-filter: blur(8px);
}

.overlay-action-modal__dialog {
  position: relative;
  width: min(1120px, calc(100vw - 56px));
  max-height: min(82vh, 860px);
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 250, 253, 0.99), rgba(255, 242, 248, 0.99));
  border: 1px solid rgba(236, 122, 176, 0.26);
  box-shadow: 0 34px 80px rgba(77, 24, 50, 0.22);
}

.overlay-action-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px 16px;
  border-bottom: 1px solid rgba(236, 122, 176, 0.18);
}

.overlay-action-modal__header h2 {
  margin: 0;
  color: #111111;
  font-size: 20px;
}

.overlay-action-modal__close {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(236, 122, 176, 0.24);
  background: #fff7fb;
  color: #6b3152;
  font-size: 22px;
  line-height: 1;
}

.overlay-action-modal__toolbar {
  padding: 18px 24px 14px;
}

.overlay-action-modal__create {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  background: linear-gradient(180deg, #f37bb2, #d9488f);
  border: 1px solid rgba(217, 72, 143, 0.28);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 12px 22px rgba(225, 96, 154, 0.14);
}

.overlay-action-table-wrap {
  padding: 0 24px 24px;
  max-height: calc(82vh - 110px);
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--gs-scrollbar-thumb) var(--gs-scrollbar-track);
}

.overlay-action-table-wrap::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.overlay-action-table-wrap::-webkit-scrollbar-track {
  background: var(--gs-scrollbar-track);
  border-radius: 999px;
}

.overlay-action-table-wrap::-webkit-scrollbar-thumb {
  background: var(--gs-scrollbar-thumb);
  border-radius: 999px;
}

.overlay-action-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(236, 122, 176, 0.22);
}

.overlay-action-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 14px 12px;
  background: #fff4f9;
  border-bottom: 1px solid rgba(236, 122, 176, 0.2);
  color: #6b3152;
  font-size: 12px;
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
}

.overlay-action-table tbody td {
  padding: 13px 12px;
  border-top: 1px solid rgba(236, 122, 176, 0.14);
  color: #111111;
  font-size: 13px;
  vertical-align: middle;
}

.overlay-action-table tbody tr {
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}

.overlay-action-table tbody tr:hover {
  background: rgba(255, 236, 245, 0.78);
}

.overlay-action-table tbody tr.is-selected {
  background: rgba(246, 185, 214, 0.32);
}

.overlay-action-cell--center {
  text-align: center;
}

.overlay-action-flag {
  display: inline-flex;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: 1px solid rgba(236, 122, 176, 0.22);
  background: #fffafb;
  color: #d9488f;
  font-size: 12px;
  font-weight: 700;
}

.overlay-action-flag.is-off {
  color: rgba(107, 49, 82, 0.28);
}

.overlay-action-desc {
  max-width: 360px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.overlay-action-empty {
  padding: 30px 18px;
  text-align: center;
  color: #6b3152;
  font-weight: 600;
}

@media (max-width: 900px) {
  .overlay-inline-actions,
  .overlay-control-grid,
  .overlay-action-picker,
  .overlay-gallery-link-row,
  .screen-panel-toolbar,
  .gift-overlay-composer,
  .gift-overlay-toolbar,
  .gift-overlay-card {
    grid-template-columns: 1fr;
  }

  .gift-overlay-settings-grid {
    grid-template-columns: 1fr;
  }

  .gift-overlay-card__offsets {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gift-overlay-board-card__head {
    flex-direction: column;
  }

  .screen-url-cell {
    grid-template-columns: 1fr;
  }

  .screen-table-wrap {
    overflow-x: auto;
  }

  .overlay-settings-modal {
    padding: 16px;
  }

  .overlay-settings-modal__dialog {
    width: calc(100vw - 32px);
  }

  .overlay-settings-field,
  .overlay-settings-toggle,
  .song-request-settings__row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .song-request-settings__checks {
    align-items: flex-start;
    flex-direction: column;
  }

  .overlay-color-picker {
    grid-template-columns: 1fr;
  }

  .overlay-color-hue-wrap,
  .overlay-color-hue {
    width: 100%;
    min-height: 22px;
    height: 22px;
  }

  .overlay-color-hue-wrap {
    background: linear-gradient(
      to right,
      #ff0000 0%,
      #ffff00 17%,
      #00ff00 33%,
      #00ffff 50%,
      #0000ff 67%,
      #ff00ff 83%,
      #ff0000 100%
    );
  }

  .overlay-color-hue {
    writing-mode: horizontal-tb;
    direction: ltr;
  }

  .overlay-color-hue-marker {
    top: 50%;
  }

  .overlay-preview-frame {
    min-height: 300px;
  }

  .overlay-preview-frame--compact {
    min-height: 220px;
  }

  .overlay-preview-leaderboard,
  .overlay-preview-chat {
    grid-template-columns: 1fr;
  }

  .attendance-notice-controls {
    grid-template-columns: 1fr;
  }

  .overlay-action-modal {
    padding: 16px;
  }

  .overlay-action-modal__dialog {
    width: calc(100vw - 32px);
  }
}

.gs-topbar {
  display: grid;
  grid-template-columns: minmax(250px, 340px) minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 120;
  margin: 0 -60px 24px;
  padding: 18px 60px 16px;
  border-radius: 0 0 24px 24px;
  border-top: 0;
  margin-bottom: 24px;
  background:
    radial-gradient(circle at top center, rgba(255, 209, 229, 0.18), transparent 42%),
    linear-gradient(180deg, rgba(255, 250, 253, 0.84), rgba(255, 242, 248, 0.8));
  border: 1px solid rgba(236, 122, 176, 0.14);
  box-shadow: 0 12px 28px rgba(225, 96, 154, 0.06);
  backdrop-filter: blur(12px);
}

.gs-topbar__left {
  display: flex;
  align-items: center;
}

.gs-topbar__search {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 16px;
  background: #fffafb;
  border: 1px solid rgba(236, 122, 176, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 8px 18px rgba(225, 96, 154, 0.05);
  text-align: left;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.gs-topbar__search:hover {
  transform: translateY(-1px);
  border-color: rgba(236, 122, 176, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 10px 22px rgba(225, 96, 154, 0.08);
}

.gs-topbar__search:focus-visible {
  outline: 2px solid rgba(217, 72, 143, 0.3);
  outline-offset: 2px;
}

.gs-topbar__search i,
.gs-topbar__page-main i,
.gs-topbar__icon i {
  width: 16px;
  height: 16px;
  color: #a84779;
}

.gs-topbar__search-copy {
  min-width: 0;
  color: #7d305b;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gs-topbar__shortcut {
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(243, 123, 178, 0.12);
  color: #7d305b;
  font-size: 11px;
  font-weight: 700;
}

.gs-topbar__center {
  display: flex;
  justify-content: center;
  min-width: 0;
}

.gs-topbar__page {
  display: grid;
  justify-items: center;
  gap: 4px;
  width: 100%;
  max-width: 480px;
  min-width: 0;
  padding: 10px 22px;
  border-radius: 18px;
  background: rgba(255, 248, 252, 0.84);
  border: 1px solid rgba(236, 122, 176, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 10px 22px rgba(225, 96, 154, 0.05);
}

.gs-topbar__page-kicker {
  color: #b76691;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.gs-topbar__page-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
  color: #7d305b;
  font-size: 14px;
}

.gs-topbar__page-main strong {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #111111;
  font-size: 18px;
  line-height: 1.1;
}

.gs-topbar__actions {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 10px;
  min-width: 0;
}

.gs-topbar__auth {
  max-width: 220px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff6fb, #ffe9f3);
  border: 1px solid rgba(236, 122, 176, 0.26);
  color: #a04473;
  font-size: 13px;
  font-weight: 700;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 8px 18px rgba(225, 96, 154, 0.08);
  transition: transform 160ms ease, box-shadow 200ms ease, opacity 200ms ease;
}

.gs-topbar__auth.is-authenticated {
  background: linear-gradient(180deg, #ffedf5, #ffdce9);
  color: #7d305b;
  border-color: rgba(236, 122, 176, 0.3);
}

.gs-topbar__auth.is-logging-out {
  pointer-events: none;
  opacity: 0.92;
}

.gs-topbar__auth.is-logging-out::after {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-left: 8px;
  border-radius: 999px;
  border: 2px solid rgba(192, 76, 126, 0.28);
  border-top-color: #c04c7e;
  animation: gs-auth-spinner 0.75s linear infinite;
  vertical-align: -2px;
}

@keyframes gs-auth-spinner {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

body.gs-logout-pending::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2400;
  background: radial-gradient(circle at 20% 10%, rgba(250, 146, 191, 0.2), rgba(53, 15, 35, 0.62));
  backdrop-filter: blur(2px);
  animation: gs-logout-fade 240ms ease-out;
}

body.gs-logout-pending::after {
  content: "";
  position: fixed;
  top: 50%;
  left: 50%;
  width: 34px;
  height: 34px;
  margin-top: -17px;
  margin-left: -17px;
  border-radius: 999px;
  border: 3px solid rgba(255, 204, 227, 0.5);
  border-top-color: #f04d97;
  z-index: 2401;
  animation: gs-auth-spinner 0.8s linear infinite;
}

@keyframes gs-logout-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.gs-topbar__connect {
  max-width: 260px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 16px;
  background: linear-gradient(180deg, #f37bb2, #d9488f);
  border: 1px solid rgba(217, 72, 143, 0.28);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(225, 96, 154, 0.16);
}

.gs-topbar__connect.is-connected {
  background: linear-gradient(180deg, #ffedf5, #ffdce9);
  color: #a84779;
  border-color: rgba(236, 122, 176, 0.24);
  box-shadow: 0 10px 20px rgba(225, 96, 154, 0.08);
}

.gs-topbar__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: #fffafb;
  border: 1px solid rgba(236, 122, 176, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 8px 18px rgba(225, 96, 154, 0.05);
}

body.gs-search-open {
  overflow: hidden;
}

.gs-search-palette {
  position: fixed;
  inset: 0;
  z-index: 2000;
}

.gs-search-palette__backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top, rgba(243, 123, 178, 0.1), transparent 28%),
    rgba(116, 85, 102, 0.24);
  backdrop-filter: blur(10px);
}

.gs-search-palette__dialog {
  position: relative;
  width: min(680px, calc(100vw - 24px));
  max-height: min(78vh, 720px);
  margin: clamp(28px, 7vh, 64px) auto 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border-radius: 18px;
  background:
    radial-gradient(circle at top left, rgba(255, 215, 232, 0.48), transparent 22%),
    linear-gradient(180deg, rgba(255, 251, 253, 0.99), rgba(255, 243, 248, 0.99));
  border: 1px solid rgba(243, 123, 178, 0.24);
  box-shadow:
    0 30px 70px rgba(170, 68, 123, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
  scrollbar-width: thin;
  scrollbar-color: var(--gs-scrollbar-thumb) var(--gs-scrollbar-track);
}

.gs-search-palette__input-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 20px 22px 18px;
  background: linear-gradient(180deg, rgba(255, 236, 245, 0.9), rgba(255, 231, 241, 0.76));
  border-bottom: 1px solid rgba(243, 123, 178, 0.16);
}

.gs-search-palette__input-row i,
.gs-search-palette__section-label i,
.gs-search-result__icon i {
  width: 18px;
  height: 18px;
  color: #d9488f;
}

.gs-search-palette__input-row input {
  width: 100%;
  border: 0;
  background: transparent;
  color: #3b2430;
  font-size: 16px;
  font-weight: 600;
}

.gs-search-palette__input-row input::placeholder {
  color: #9d7187;
}

.gs-search-palette__input-row input:focus {
  outline: none;
}

.gs-search-palette__content {
  overflow-y: auto;
  background: transparent;
  padding: 10px 0 0;
}

.gs-search-palette__content::-webkit-scrollbar {
  width: 10px;
}

.gs-search-palette__content::-webkit-scrollbar-track {
  background: var(--gs-scrollbar-track);
  border-radius: 999px;
}

.gs-search-palette__content::-webkit-scrollbar-thumb {
  background: var(--gs-scrollbar-thumb-strong);
  border: 2px solid transparent;
  background-clip: padding-box;
  border-radius: 999px;
}

.gs-search-palette__section {
  padding: 0 14px 12px;
}

.gs-search-palette__section + .gs-search-palette__section {
  border-top: 1px solid rgba(243, 123, 178, 0.12);
  padding-top: 14px;
}

.gs-search-palette__section-label {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 4px 10px 10px;
  color: #c45487;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.gs-search-palette__results {
  display: grid;
  gap: 4px;
}

.gs-search-result {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  width: 100%;
  padding: 12px 12px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.34);
  color: #2f1e28;
  text-align: left;
  cursor: pointer;
  transition:
    background 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.gs-search-result:hover,
.gs-search-result.is-active {
  background: linear-gradient(180deg, rgba(255, 238, 246, 0.96), rgba(255, 245, 249, 0.96));
  transform: translateY(-1px);
  border-color: rgba(243, 123, 178, 0.24);
  box-shadow:
    0 10px 24px rgba(225, 96, 154, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.gs-search-result__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 244, 249, 0.98), rgba(255, 234, 243, 0.98));
  border: 1px solid rgba(243, 123, 178, 0.16);
}

.gs-search-result__body {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.gs-search-result__section {
  color: #cf6b96;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.gs-search-result__title {
  color: #d9488f;
  font-size: 15px;
  font-weight: 700;
}

.gs-search-result__description {
  color: #6d4d5d;
  font-size: 12px;
  line-height: 1.45;
}

.gs-search-result__type {
  padding: 7px 10px;
  border-radius: 10px;
  background: rgba(255, 240, 246, 0.98);
  border: 1px solid rgba(243, 123, 178, 0.18);
  color: #bf5d88;
  font-size: 11px;
  font-weight: 700;
}

.gs-search-palette__empty {
  margin: 0;
  padding: 6px 10px 14px;
  color: #9d7187;
  font-size: 13px;
}

.gs-search-palette__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-top: 1px solid rgba(243, 123, 178, 0.16);
  background: linear-gradient(180deg, rgba(255, 248, 251, 0.96), rgba(255, 238, 246, 0.96));
}

.gs-search-palette__hint-group {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #7a5769;
  font-size: 12px;
  font-weight: 600;
}

.gs-search-palette__hint-key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 24px;
  padding: 0 8px;
  border-radius: 8px;
  background: rgba(255, 244, 249, 0.98);
  border: 1px solid rgba(243, 123, 178, 0.18);
  color: #b45b82;
  font-size: 11px;
  font-weight: 700;
}

@media (max-width: 1100px) {
  .gs-topbar {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .gs-topbar__center {
    justify-content: start;
  }

  .gs-topbar__actions {
    justify-content: start;
    flex-wrap: wrap;
  }

  .gs-topbar__page {
    justify-items: start;
  }

  .gs-topbar__page-main {
    justify-content: start;
  }
}

@media (max-width: 720px) {
  .gs-search-palette__dialog {
    width: calc(100vw - 12px);
    margin-top: 10px;
    max-height: calc(100vh - 20px);
    border-radius: 20px;
  }

  .gs-search-result {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .gs-search-result__type {
    grid-column: 2;
    justify-self: start;
  }

  .gs-search-palette__footer {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}


/* Responsive window behavior improvements */
.layout,
.main,
.no-right-panel .layout,
.no-right-panel .main-content {
  min-width: 0;
}

.sidebar {
  overflow-y: auto;
}

@media (max-width: 1280px) {
  .no-right-panel .layout {
    grid-template-columns: 260px minmax(0, 1fr);
  }

  .main {
    padding: 0 28px 30px;
  }

  .gs-topbar {
    margin: 0 -28px 22px;
    padding: 14px 28px;
    gap: 14px;
  }
}

@media (max-width: 1024px) {
  .no-right-panel .layout {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .sidebar {
    padding: 16px 10px 18px;
  }

  .logo {
    padding: 4px 2px 10px;
  }

  .logo img {
    max-width: 50px;
  }

  .sidebar-brand-label,
  .tiktok-profile-box .profile-info,
  .preset-header > span,
  .preset-select-wrapper,
  .preset-actions .preset-settings {
    display: none;
  }

  .tiktok-profile-box,
  .preset-box {
    padding: 10px 8px;
    justify-content: center;
  }

  .preset-actions {
    margin-left: 0;
    justify-content: center;
    width: 100%;
  }

  .menu {
    margin-top: 10px;
  }

  .menu li {
    padding: 0;
  }

  .menu li a {
    justify-content: center;
    padding: 0;
    min-height: 44px;
  }

  .menu li a span {
    display: none;
  }

  .main {
    padding: 0 16px 24px;
  }

  .gs-topbar {
    margin: 0 -16px 16px;
    padding: 12px 16px;
    border-radius: 0 0 18px 18px;
  }

  .connection-form {
    flex-direction: column;
    align-items: stretch;
  }

  .connect-btn {
    width: 100%;
  }

  .obs-form-grid,
  .streamerbot-form-grid,
  .minecraft-form-grid,
  .player-name-input {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .obs-test-btn,
  .streamerbot-test-btn,
  .minecraft-test-btn {
    margin-left: 0;
  }
}

@media (max-width: 860px) {
  .no-right-panel .layout {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .tiktok-profile-box,
  .preset-box {
    display: none;
  }

  .sidebar {
    padding: 12px 8px;
  }

  .menu li a {
    min-height: 40px;
  }

  .connect-box,
  .welcome,
  .actions-shell,
  .overlay-gallery-shell,
  .games-collection-shell,
  .goals-overlays-shell {
    border-radius: 14px;
  }
}

/* Preset block clipping fix */
.preset-box {
  overflow: visible;
  padding-bottom: 22px;
}

.preset-select-wrapper {
  margin-top: 6px;
}

.menu {
  margin-top: 24px;
}

/* Elegant page transition for sidebar navigation */
body.gs-page-enter .sidebar,
body.gs-page-enter .main {
  opacity: 1;
  transform: none;
}

body.gs-page-enter.gs-page-enter-active .sidebar,
body.gs-page-enter.gs-page-enter-active .main {
  opacity: 1;
  transform: none;
  transition: none;
}

body.gs-page-leaving .layout {
  pointer-events: auto;
}

body.gs-page-leaving .sidebar,
body.gs-page-leaving .main {
  opacity: 1;
  transform: none;
  transition: none;
}

@media (prefers-reduced-motion: reduce) {
  body.gs-page-enter .sidebar,
  body.gs-page-enter .main,
  body.gs-page-enter.gs-page-enter-active .sidebar,
  body.gs-page-enter.gs-page-enter-active .main,
  body.gs-page-leaving .sidebar,
  body.gs-page-leaving .main {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Preset create modal */
.gs-preset-modal-open {
  overflow: hidden;
}

.gs-preset-modal {
  position: fixed;
  inset: 0;
  z-index: 2400;
  display: grid;
  place-items: center;
  padding: 20px;
}

.gs-preset-modal[hidden] {
  display: none;
}

.gs-preset-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(20, 12, 18, 0.48);
  cursor: default;
}

.gs-preset-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(255, 223, 238, 0.82), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(255, 243, 249, 0.98));
  border: 1px solid rgba(231, 209, 240, 0.98);
  box-shadow: 0 28px 60px rgba(178, 120, 161, 0.22);
  overflow: hidden;
}

.gs-preset-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 22px 14px;
  border-bottom: 1px solid rgba(231, 209, 240, 0.92);
}

.gs-preset-modal__header h2 {
  margin: 0;
  font-size: 30px;
  font-weight: 700;
  color: #34253a;
}

.gs-preset-modal__close {
  min-width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 12px;
  border: 1px solid rgba(223, 191, 234, 0.92);
  background: rgba(255, 250, 253, 0.96);
  color: #8b456f;
  font-size: 21px;
  font-weight: 700;
  line-height: 1;
}

.gs-preset-modal__form {
  display: grid;
  gap: 12px;
  padding: 18px 22px 22px;
}

.gs-preset-modal__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.gs-preset-modal__form label {
  font-size: 14px;
  font-weight: 700;
  color: #5d4658;
}

.gs-preset-modal__form input {
  min-height: 46px;
  width: 100%;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid rgba(210, 189, 223, 0.98);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(250, 242, 252, 0.98));
  color: #4b3950;
  font-size: 15px;
  font-weight: 600;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 10px 22px rgba(206, 145, 185, 0.08);
}

.gs-preset-modal__form input:focus {
  outline: none;
  border-color: rgba(214, 161, 234, 0.96);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 0 0 4px rgba(234, 188, 247, 0.26),
    0 12px 24px rgba(216, 153, 200, 0.12);
}

.gs-preset-modal__save {
  min-height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: linear-gradient(135deg, #f06fb0 0%, #da84ff 58%, #96a6ff 100%);
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 16px 28px rgba(214, 118, 196, 0.22);
}

.gs-preset-modal__footer {
  display: grid;
  grid-template-columns: minmax(120px, 0.45fr) minmax(0, 1fr);
  gap: 12px;
}

.gs-preset-modal__footer:has(.gs-preset-modal__delete[hidden]) {
  grid-template-columns: minmax(220px, 1fr);
  justify-items: center;
}

.gs-preset-modal__footer:has(.gs-preset-modal__delete[hidden]) .gs-preset-modal__save {
  width: min(100%, 340px);
}

.gs-preset-modal__delete {
  min-height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(226, 102, 128, 0.42);
  background: linear-gradient(180deg, rgba(255, 249, 251, 0.99), rgba(255, 235, 241, 0.98));
  color: #b94664;
  font-size: 15px;
  font-weight: 700;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 12px 24px rgba(214, 92, 114, 0.1);
}

.gs-preset-modal__delete:hover {
  background: linear-gradient(180deg, #ffedf2 0%, #ffd7e2 100%);
  border-color: rgba(203, 69, 96, 0.58);
  color: #982c48;
}

.gs-preset-modal__delete[hidden] {
  display: none;
}

.gs-preset-modal__action-btn {
  min-height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(233, 188, 215, 0.88);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(255, 241, 248, 0.98));
  color: #7d3f68;
  font-size: 14px;
  font-weight: 700;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 10px 22px rgba(218, 140, 186, 0.08);
}

.gs-preset-modal__action-btn:hover {
  background: linear-gradient(180deg, rgba(255, 242, 248, 0.99), rgba(255, 231, 241, 0.98));
  color: #6f2f57;
  border-color: rgba(221, 126, 180, 0.58);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 12px 24px rgba(218, 140, 186, 0.12);
}

.gs-preset-modal__action-btn:disabled,
.gs-preset-modal__delete:disabled,
.gs-preset-modal__save:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.gs-preset-modal__save:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Global pink popup (dashboard messages) */
.gs-app-popup-open {
  overflow: hidden;
}

.gs-app-popup {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: grid;
  place-items: center;
  padding: 20px;
}

.gs-app-popup[hidden] {
  display: none;
}

.gs-app-popup__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background:
    radial-gradient(circle at top, rgba(244, 127, 179, 0.18), transparent 28%),
    rgba(255, 244, 250, 0.58);
}

.gs-app-popup__dialog {
  position: relative;
  width: min(100%, 460px);
  border-radius: 22px;
  border: 1px solid rgba(236, 198, 221, 0.92);
  background:
    radial-gradient(circle at top left, rgba(255, 214, 234, 0.42), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(255, 245, 250, 0.98) 100%);
  box-shadow:
    0 30px 70px rgba(218, 140, 186, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
  overflow: hidden;
}

.gs-app-popup__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px 16px;
  border-bottom: 1px solid rgba(236, 198, 221, 0.82);
}

.gs-app-popup__header h3 {
  margin: 0;
  color: #4b3950;
  font-size: 18px;
  font-weight: 700;
}

.gs-app-popup__close {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid rgba(230, 165, 202, 0.42);
  background: linear-gradient(180deg, rgba(255, 253, 254, 0.98), rgba(255, 241, 247, 0.98));
  color: #b85689;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  padding: 0;
  box-shadow: 0 10px 20px rgba(223, 132, 182, 0.08);
}

.gs-app-popup__close:hover {
  background: linear-gradient(180deg, rgba(255, 241, 247, 1), rgba(255, 229, 239, 0.99));
  border-color: rgba(221, 126, 180, 0.5);
}

.gs-app-popup__message {
  margin: 0;
  padding: 18px 22px 10px;
  color: #6f5566;
  font-size: 14px;
  line-height: 1.6;
  white-space: pre-wrap;
}

.gs-app-popup__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 0 22px 20px;
  flex-wrap: wrap;
}

.gs-app-popup__btn {
  min-width: 96px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 700;
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.gs-app-popup__btn--primary {
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: linear-gradient(135deg, #ff69b4 0%, #d97dff 58%, #8ca4ff 100%);
  color: #ffffff;
  box-shadow:
    0 14px 28px rgba(221, 117, 190, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.gs-app-popup__btn--secondary {
  border: 1px solid rgba(233, 188, 215, 0.88);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(255, 241, 248, 0.98));
  color: #7d3f68;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 10px 22px rgba(218, 140, 186, 0.08);
}

.gs-app-popup__btn--ghost {
  border: 1px solid rgba(233, 188, 215, 0.78);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(255, 245, 250, 0.98));
  color: #6f5566;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 8px 18px rgba(218, 140, 186, 0.06);
}

.gs-app-popup__btn--primary:hover {
  background: linear-gradient(135deg, #ff5cab 0%, #cf70f4 58%, #7d96f8 100%);
  color: #ffffff;
  box-shadow:
    0 16px 30px rgba(221, 117, 190, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.gs-app-popup__btn--secondary:hover,
.gs-app-popup__btn--ghost:hover {
  background: linear-gradient(180deg, rgba(255, 242, 248, 0.99), rgba(255, 231, 241, 0.98));
  color: #6f2f57;
  border-color: rgba(221, 126, 180, 0.58);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 12px 24px rgba(218, 140, 186, 0.12);
}

.gs-app-popup__btn:hover {
  transform: translateY(-1px);
}

/* Add Activity modal - align with the light pink/lilac modal family */
.event-create-modal__backdrop {
  background:
    radial-gradient(circle at top, rgba(244, 127, 179, 0.18), transparent 28%),
    rgba(255, 244, 250, 0.58) !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.event-create-modal__dialog {
  gap: 22px;
  padding: 20px 24px 24px;
  border-radius: 22px !important;
  border: 1px solid rgba(236, 198, 221, 0.92) !important;
  background:
    radial-gradient(circle at top left, rgba(255, 214, 234, 0.42), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(255, 245, 250, 0.98) 100%) !important;
  color: #4b3950 !important;
  box-shadow:
    0 30px 70px rgba(218, 140, 186, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.86) !important;
}

.event-create-modal__header {
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(236, 198, 221, 0.82);
}

.event-create-modal__header h2 {
  color: #4b3950 !important;
  font-size: 18px;
}

.event-create-modal__close {
  width: 34px;
  height: 34px;
  border-radius: 12px !important;
  border: 1px solid rgba(230, 165, 202, 0.42) !important;
  background: linear-gradient(180deg, rgba(255, 253, 254, 0.98), rgba(255, 241, 247, 0.98)) !important;
  color: #b85689 !important;
  box-shadow: 0 10px 20px rgba(223, 132, 182, 0.08) !important;
}

.event-create-modal__close:hover {
  background: linear-gradient(180deg, rgba(255, 241, 247, 1), rgba(255, 229, 239, 0.99)) !important;
  border-color: rgba(221, 126, 180, 0.5) !important;
  color: #a4477b !important;
}

.event-create-field {
  gap: 12px;
}

.event-create-field > span {
  color: #4b3950 !important;
  font-size: 15px !important;
  font-weight: 700 !important;
}

.event-combo__button {
  min-height: 42px;
  border-radius: 12px !important;
  border: 1px solid rgba(236, 198, 221, 0.88) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(255, 245, 250, 0.98)) !important;
  color: #5d4658 !important;
  font-weight: 500;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 10px 22px rgba(218, 140, 186, 0.06) !important;
}

.event-combo__button::after {
  color: #c36a9a !important;
}

.event-combo__button:hover,
.event-combo__button:focus {
  border-color: rgba(214, 161, 234, 0.96) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 0 0 4px rgba(234, 188, 247, 0.2),
    0 10px 22px rgba(216, 153, 200, 0.1) !important;
}

.event-combo__menu {
  top: calc(100% + 8px);
  border-radius: 16px !important;
  border: 1px solid rgba(236, 198, 221, 0.9) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(255, 244, 249, 0.98)) !important;
  box-shadow:
    0 22px 40px rgba(205, 145, 187, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.92) !important;
}

.event-combo__search {
  border-bottom: 1px solid rgba(236, 198, 221, 0.78) !important;
  color: #c36a9a !important;
}

.event-combo__search input {
  color: #4b3950 !important;
}

.event-combo__search input::placeholder {
  color: #b27a97 !important;
}

.event-combo__option {
  min-height: 40px;
  border-radius: 12px;
  color: #5d4658 !important;
}

.event-combo__option:hover,
.event-combo__option.is-selected {
  background: linear-gradient(180deg, rgba(255, 241, 247, 0.99), rgba(255, 231, 241, 0.98)) !important;
}

.event-combo__option.is-selected {
  color: #9f2f68 !important;
}

.event-combo__gift-media {
  border-radius: 12px !important;
  border: 1px solid rgba(236, 198, 221, 0.7) !important;
  background: linear-gradient(180deg, rgba(255, 247, 251, 0.99), rgba(255, 235, 244, 0.98)) !important;
}

.event-combo__gift-title {
  color: #4b3950 !important;
}

.event-combo__gift-meta,
.event-combo__empty {
  color: #8b6278 !important;
}

.event-create-modal__save {
  min-height: 46px;
  border-radius: 14px !important;
  border: 1px solid rgba(255, 255, 255, 0.24) !important;
  background: linear-gradient(135deg, #ff69b4 0%, #d97dff 58%, #8ca4ff 100%) !important;
  color: #ffffff !important;
  box-shadow:
    0 14px 28px rgba(221, 117, 190, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

.event-create-modal__save:hover {
  background: linear-gradient(135deg, #ff5cab 0%, #cf70f4 58%, #7d96f8 100%) !important;
  color: #ffffff !important;
  box-shadow:
    0 16px 30px rgba(221, 117, 190, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
}

.gs-app-popup[data-tone="success"] .gs-app-popup__dialog {
  border-color: rgba(94, 201, 156, 0.44);
}

.gs-app-popup[data-tone="error"] .gs-app-popup__dialog {
  border-color: rgba(231, 86, 134, 0.48);
}

.gs-app-popup[data-tone="warn"] .gs-app-popup__dialog {
  border-color: rgba(241, 165, 83, 0.5);
}

.keystroke-test-toast {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 2800;
  width: min(340px, calc(100vw - 36px));
  padding: 14px 16px 15px;
  border-radius: 12px;
  border: 1px solid rgba(236, 122, 176, 0.32);
  background:
    radial-gradient(circle at top right, rgba(255, 220, 236, 0.78), transparent 42%),
    linear-gradient(180deg, rgba(255, 253, 254, 0.99), rgba(255, 238, 247, 0.99));
  box-shadow:
    0 18px 42px rgba(118, 39, 79, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  color: #2e1a24;
  animation: keystrokeToastIn 180ms ease-out both;
}

.keystroke-test-toast.is-hiding {
  animation: keystrokeToastOut 200ms ease-in both;
}

.keystroke-test-toast__eyebrow {
  margin-bottom: 5px;
  color: #d9488f;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.keystroke-test-toast__title {
  color: #321b27;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.keystroke-test-toast__title strong {
  color: #d9488f;
  font-size: 18px;
  font-weight: 700;
}

.keystroke-test-toast__bar {
  height: 5px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(236, 122, 176, 0.16);
}

.keystroke-test-toast__bar span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f37bb2, #d9488f);
  transform-origin: left center;
  animation: keystrokeToastBar linear forwards;
}

.gs-live-toast {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 2790;
  width: min(360px, calc(100vw - 36px));
  padding: 14px 16px 15px;
  border-radius: 14px;
  border: 1px solid rgba(236, 122, 176, 0.36);
  background:
    radial-gradient(circle at top right, rgba(255, 220, 236, 0.2), transparent 42%),
    linear-gradient(180deg, rgba(59, 18, 40, 0.98), rgba(28, 9, 20, 0.98));
  box-shadow:
    0 18px 42px rgba(24, 7, 17, 0.32),
    inset 0 1px 0 rgba(255, 210, 232, 0.08);
  color: #ffedf6;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
}

.gs-live-toast[hidden] {
  display: none;
}

.gs-live-toast.is-visible {
  animation: gsLiveToastIn 180ms ease-out both;
}

.gs-live-toast.is-hiding {
  animation: gsLiveToastOut 200ms ease-in both;
}

.gs-live-toast__eyebrow {
  margin-bottom: 5px;
  color: rgba(255, 198, 225, 0.74);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gs-live-toast__title {
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.gs-live-toast__message {
  margin-top: 4px;
  color: rgba(255, 237, 246, 0.92);
  font-size: 13px;
  line-height: 1.45;
}

.gs-live-toast[data-tone="gift"] {
  border-color: rgba(243, 123, 178, 0.44);
}

@keyframes keystrokeToastIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes keystrokeToastOut {
  to {
    opacity: 0;
    transform: translateY(-8px);
  }
}

@keyframes keystrokeToastBar {
  to {
    transform: scaleX(0);
  }
}

@keyframes gsLiveToastIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes gsLiveToastOut {
  to {
    opacity: 0;
    transform: translateY(-8px);
  }
}

/* Export settings modal */
.gs-export-modal-open {
  overflow: hidden;
}

.gs-export-modal {
  position: fixed;
  inset: 0;
  z-index: 2600;
  display: grid;
  place-items: center;
  padding: 20px;
}

.gs-export-modal[hidden] {
  display: none;
}

.gs-export-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(38, 13, 28, 0.58);
  backdrop-filter: blur(2px);
}

.gs-export-modal__dialog {
  position: relative;
  width: min(560px, calc(100vw - 28px));
  border-radius: 14px;
  border: 1px solid rgba(236, 122, 176, 0.34);
  background:
    linear-gradient(180deg, rgba(255, 251, 253, 0.98), rgba(255, 239, 247, 0.98));
  box-shadow: 0 34px 76px rgba(40, 14, 29, 0.28);
  padding: 18px 18px 16px;
  color: #23141b;
}

.gs-export-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(236, 122, 176, 0.28);
}

.gs-export-modal__header h2 {
  margin: 0;
  font-size: 31px;
  font-weight: 700;
  color: #2a1821;
}

.gs-export-modal__close {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 10px;
  border: 1px solid rgba(236, 122, 176, 0.4);
  background: rgba(255, 251, 253, 0.9);
  color: #8d3b67;
  font-size: 21px;
  font-weight: 700;
  line-height: 1;
}

.gs-export-modal__copy {
  margin: 14px 0 10px;
  color: #3b2530;
  font-size: 14px;
  line-height: 1.55;
}

.gs-export-modal__subhead {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
  color: #8d3b67;
}

.gs-export-modal__row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 2px;
  color: #2a1821;
  font-size: 16px;
  font-weight: 600;
}

.gs-export-modal__row input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: #d9488f;
}

.gs-export-modal__footer {
  display: flex;
  justify-content: center;
  padding-top: 14px;
}

.gs-export-modal__download {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 10px;
  border: 1px solid rgba(217, 72, 143, 0.52);
  background: linear-gradient(180deg, #f37bb2, #d9488f);
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
}

/* First-launch login gate */
.gs-auth-required {
  overflow: hidden;
}

.gs-auth-gate {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  padding: 24px;
}

.gs-auth-gate[hidden] {
  display: none;
}

.gs-auth-gate__backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 47, 159, 0.28), transparent 34%),
    radial-gradient(circle at 82% 28%, rgba(33, 190, 255, 0.22), transparent 30%),
    linear-gradient(135deg, rgba(8, 8, 24, 0.9), rgba(22, 8, 30, 0.88));
  backdrop-filter: blur(12px);
}

.gs-auth-gate__dialog {
  position: relative;
  width: min(100%, 920px);
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(300px, 1.05fr) minmax(320px, 0.95fr);
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #120d22;
  box-shadow: 0 34px 90px rgba(3, 4, 18, 0.58);
}

.gs-auth-gate__media {
  position: relative;
  min-height: 560px;
  background:
    linear-gradient(180deg, rgba(5, 6, 18, 0.02), rgba(5, 6, 18, 0.62)),
    url("images/LoginPage.png") center / cover no-repeat;
}

.gs-auth-gate__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 28%, rgba(255, 54, 170, 0.2), transparent 32%),
    radial-gradient(circle at 78% 28%, rgba(24, 204, 255, 0.16), transparent 34%),
    linear-gradient(90deg, transparent 0%, rgba(18, 13, 34, 0.42) 100%);
}

.gs-auth-gate__brand {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  z-index: 1;
  color: #ffffff;
}

.gs-auth-gate__brand span {
  display: block;
  margin-bottom: 8px;
  color: #ffffff;
  font-size: 30px;
  line-height: 1;
  font-weight: 800;
  text-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

.gs-auth-gate__brand strong {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1.4;
}

.gs-auth-gate__panel {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 52px;
  background:
    radial-gradient(circle at top right, rgba(56, 199, 255, 0.12), transparent 32%),
    radial-gradient(circle at bottom left, rgba(255, 72, 178, 0.12), transparent 32%),
    linear-gradient(180deg, #151024, #100c1d);
}

.gs-auth-gate__eyebrow {
  margin: 0 0 12px;
  color: #21d4ff;
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.gs-auth-gate__dialog h2 {
  margin: 0;
  color: #ffffff;
  font-size: 30px;
  line-height: 1.12;
  font-weight: 800;
}

.gs-auth-gate__copy {
  margin: 12px 0 24px;
  color: rgba(238, 232, 250, 0.72);
  font-size: 14px;
  line-height: 1.55;
}

.gs-auth-gate__actions {
  display: grid;
  gap: 12px;
}

.gs-auth-gate__btn {
  width: 100%;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.gs-auth-gate__btn:hover {
  transform: translateY(-1px);
  border-color: rgba(34, 211, 238, 0.38);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
}

.gs-auth-gate__btn-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.gs-auth-gate__btn-icon svg {
  width: 20px;
  height: 20px;
}

.gs-auth-gate__btn.is-google .gs-auth-gate__btn-icon {
  color: inherit;
}

.gs-auth-gate__btn.is-discord {
  background: rgba(88, 101, 242, 0.18);
  border-color: rgba(88, 101, 242, 0.36);
  color: #ffffff;
}

.gs-auth-gate__btn.is-token {
  background: linear-gradient(135deg, #ff5ebc 0%, #b66cff 54%, #21c8ff 100%);
  border-color: rgba(255, 255, 255, 0.24);
  color: #ffffff;
  justify-content: center;
  box-shadow: 0 18px 34px rgba(186, 108, 255, 0.24);
}

.gs-auth-gate__token-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 18px;
}

.gs-auth-gate__token-row[hidden],
.gs-auth-gate__email-row[hidden] {
  display: none !important;
}

.gs-auth-gate__email-row {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.gs-auth-gate__email-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.gs-auth-gate__token-row input,
.gs-auth-gate__email-row input {
  min-height: 46px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 14px;
  padding: 0 12px;
}

.gs-auth-gate__token-row input::placeholder,
.gs-auth-gate__email-row input::placeholder {
  color: rgba(238, 232, 250, 0.48);
}

.gs-auth-gate__token-row input:focus,
.gs-auth-gate__email-row input:focus {
  outline: none;
  border-color: rgba(34, 211, 238, 0.58);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.14);
}

.gs-auth-gate__token-submit {
  min-width: 110px;
  min-height: 46px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(135deg, #ff5ebc 0%, #b66cff 54%, #21c8ff 100%);
  color: #fff;
  font-weight: 800;
}

.gs-auth-gate__token-submit.is-secondary {
  background: rgba(255, 255, 255, 0.1);
}

.gs-auth-gate__hint {
  margin: 14px 0 0;
  color: rgba(238, 232, 250, 0.72);
  font-size: 13px;
  font-weight: 600;
  text-align: left;
}

@media (max-width: 820px) {
  .gs-auth-gate__dialog {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .gs-auth-gate__media {
    min-height: 220px;
  }

  .gs-auth-gate__brand {
    left: 22px;
    right: 22px;
    bottom: 20px;
  }

  .gs-auth-gate__panel {
    padding: 30px 22px 26px;
  }

  .gs-auth-gate__dialog h2 {
    font-size: 24px;
  }

  .gs-auth-gate__token-row {
    grid-template-columns: 1fr;
  }
}

/* StreamRush targeted color theme */
:root {
  --gs-scrollbar-track: rgba(250, 240, 247, 0.96);
  --gs-scrollbar-thumb: rgba(211, 170, 226, 0.88);
  --gs-scrollbar-thumb-strong: rgba(255, 111, 181, 0.92);
  --sr-border: rgba(93, 137, 255, 0.22);
  --sr-text: #EAEAF0;
  --sr-pink: #ff4da6;
  --sr-blue: #4ea1ff;
}

.layout {
  background:
    radial-gradient(circle at top left, rgba(255, 182, 221, 0.18), transparent 26%),
    radial-gradient(circle at top right, rgba(197, 166, 255, 0.16), transparent 24%),
    linear-gradient(180deg, #fffafb 0%, #fff5fa 52%, #fdf7ff 100%) !important;
}
.sidebar {
  background:
    radial-gradient(circle at top left, rgba(255, 158, 213, 0.22), transparent 28%),
    radial-gradient(circle at bottom right, rgba(188, 155, 255, 0.16), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 245, 251, 0.98) 54%, rgba(250, 242, 255, 0.98) 100%) !important;
  border-right: 1px solid rgba(220, 198, 232, 0.92) !important;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-gutter: stable;
  box-shadow:
    inset -1px 0 0 rgba(255, 255, 255, 0.78),
    18px 0 42px rgba(198, 134, 183, 0.08) !important;
}

.banner,
.menu li.active,
.profile-connect-btn,
.connect-btn,
.obs-test-btn,
.streamerbot-test-btn,
.upgrade-btn,
.export-btn,
.import-btn,
.actions-add-trigger,
.events-create-btn,
.actions-tab.is-active {
  background: linear-gradient(135deg, #ff68b2 0%, #d86dff 52%, #8f7cff 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.46) !important;
  box-shadow: 0 14px 28px rgba(219, 108, 193, 0.22) !important;
}

body,
.sidebar,
.main,
.page-header p,
.welcome p,
.connect-box p,
.settings-card p,
.logs-empty,
.actions-empty,
.overlay-gallery-card,
.overlay-gallery-card__copy,
.overlay-gallery-link-row,
.overlay-gallery-link-row span,
.overlay-gallery-link-row input,
.tiktok-profile-box,
.username,
.preset-header,
.preset-header > span,
.preset-select,
.preset-select-wrapper select,
.menu li a,
.menu li a span,
.menu li a i,
.gs-topbar__search-copy,
.gs-topbar__shortcut,
.gs-topbar__page-kicker,
.gs-topbar__page-main strong,
.gs-topbar__auth,
.gs-topbar__icon,
.gs-topbar__connect,
.overlay-gallery-hero p,
.connect-box h2,
.settings-card h2,
.news li,
label,
input,
select,
textarea,
button {
  color: #4b3950 !important;
}

.gs-auth-gate,
.gs-auth-gate__dialog,
.gs-auth-gate__panel,
.gs-auth-gate__dialog h2,
.gs-auth-gate__btn,
.gs-auth-gate__token-submit {
  color: #ffffff !important;
}

.gs-auth-gate__copy,
.gs-auth-gate__hint {
  color: rgba(238, 232, 250, 0.72) !important;
}

.gs-auth-gate__eyebrow {
  color: #21d4ff !important;
}

.gs-auth-gate__token-row input {
  color: #ffffff !important;
}

.tiktok-profile-box,
.preset-box,
.overlay-gallery-card,
.log-card {
  border-color: rgba(231, 209, 240, 0.96) !important;
}

.welcome,
.connect-box,
.settings-card,
.pro-comparison-box,
.page-header,
.overlay-gallery-card,
.overlay-gallery-hero,
.game-card,
.games-tab-panel,
.goals-grid > *,
.logs-card,
.actions-shell,
.actions-panel,
.events-panel-card,
.actions-table-wrap,
.obs-instructions,
.tiktok-profile-box,
.preset-box {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 244, 250, 0.94) 100%) !important;
  box-shadow:
    0 16px 36px rgba(203, 146, 188, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.88) !important;
}

.profile-pic {
  border-color: #f05ab0 !important;
  box-shadow: 0 0 0 5px rgba(240, 90, 176, 0.12), 0 10px 24px rgba(175, 111, 219, 0.16) !important;
}

.sidebar .logo {
  margin-bottom: 6px;
}

.sidebar .sidebar-brand-label {
  color: #34253a !important;
  letter-spacing: 0.16em;
}

.sidebar .tiktok-profile-box,
.sidebar .preset-box {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 243, 249, 0.96) 100%) !important;
  border: 1px solid rgba(231, 209, 240, 0.98) !important;
  background-clip: padding-box !important;
  isolation: isolate;
  box-shadow:
    0 16px 28px rgba(207, 145, 185, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.92) !important;
}

.sidebar {
  contain: paint;
  isolation: isolate;
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

.sidebar .tiktok-profile-box::before,
.sidebar .preset-box::before {
  opacity: 0.78;
}

.sidebar .username {
  color: #3f2f45 !important;
  font-weight: 700;
}

.sidebar .preset-actions button {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 251, 253, 0.98), rgba(250, 241, 251, 0.98)) !important;
  color: #b14f93 !important;
  border: 1px solid rgba(220, 191, 233, 0.78) !important;
  overflow: hidden;
  white-space: nowrap;
  text-shadow: none !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 10px 22px rgba(206, 145, 185, 0.09) !important;
}

.sidebar .preset-actions button:hover {
  transform: none !important;
  background: linear-gradient(180deg, rgba(255, 247, 251, 1), rgba(246, 236, 252, 1)) !important;
  color: #94417a !important;
  border-color: rgba(205, 160, 226, 0.88) !important;
}

.sidebar .preset-add {
  font-size: 24px !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  text-shadow: none !important;
}

.sidebar .preset-settings--icon {
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
  text-indent: 0 !important;
  text-shadow: none !important;
  letter-spacing: 0 !important;
}

.sidebar .preset-settings--icon::before,
.sidebar .preset-settings--icon::after {
  content: none !important;
}

.sidebar .preset-select-wrapper select,
.sidebar .preset-select {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(250, 242, 252, 0.98)) !important;
  border: 1px solid rgba(210, 189, 223, 0.98) !important;
  color: #3d3142 !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 12px 24px rgba(206, 145, 185, 0.08) !important;
}

.sidebar .preset-select-wrapper::after {
  border-right-color: #9f67c7;
  border-bottom-color: #9f67c7;
}

.sidebar .preset-settings--icon i,
.sidebar .preset-settings--icon svg {
  display: block;
  width: 20px;
  height: 20px;
  margin: auto;
  color: #b14f93 !important;
  stroke: currentColor !important;
  pointer-events: none;
}

.sidebar .menu li {
  margin-bottom: 12px;
}

.sidebar .menu li:hover {
  background: linear-gradient(90deg, rgba(255, 233, 244, 0.94), rgba(246, 236, 255, 0.92)) !important;
  box-shadow: 0 12px 24px rgba(212, 157, 197, 0.08) !important;
  transform: none !important;
}

.sidebar .menu li.active {
  background: linear-gradient(90deg, #ff6cb5 0%, #d983ff 58%, #8da0ff 100%) !important;
  box-shadow:
    0 18px 30px rgba(213, 120, 201, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.34) !important;
}

.sidebar .menu li a,
.sidebar .menu li a:link,
.sidebar .menu li a:visited {
  color: #4b3950 !important;
}

.sidebar .menu li a i {
  color: #bb5ea0 !important;
}

.sidebar .menu li,
.sidebar .menu li a,
.sidebar .profile-connect-btn,
.sidebar .preset-actions button,
.sidebar .preset-select-trigger {
  transform: none !important;
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
}

.sidebar .menu li,
.sidebar .menu li a,
.sidebar .profile-connect-btn,
.sidebar .preset-actions button,
.sidebar .preset-select-trigger,
.sidebar .preset-select-option {
  transition-property: background-color, background, border-color, box-shadow, color, opacity !important;
}

.sidebar .menu,
.sidebar .menu li,
.sidebar .menu li a,
.sidebar .menu li a span {
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
  text-shadow: none !important;
}

.sidebar .menu li a span {
  display: block;
  position: relative;
  z-index: 1;
}

.overlay-gallery-hero {
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 154, 214, 0.22), transparent 24%),
    radial-gradient(circle at 88% 24%, rgba(188, 158, 255, 0.18), transparent 24%),
    linear-gradient(180deg, rgba(255, 252, 254, 0.98) 0%, rgba(255, 244, 249, 0.96) 58%, rgba(249, 243, 255, 0.96) 100%) !important;
  border: 1px solid rgba(225, 203, 238, 0.92) !important;
  box-shadow:
    0 22px 42px rgba(205, 145, 187, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.86) !important;
}

.overlay-gallery-hero .games-kicker {
  color: #c05f9a !important;
  letter-spacing: 0.18em;
  font-weight: 700;
}

.overlay-gallery-hero h2 {
  display: block;
  width: auto;
  max-width: 100%;
  background: none !important;
  -webkit-text-fill-color: initial;
  background-clip: border-box;
  color: #34253a !important;
}

.overlay-gallery-hero p {
  color: #6f596d !important;
}

#tiktok-username,
#tiktok-username::placeholder,
#obs-ip,
#obs-ip::placeholder,
#obs-port,
#obs-port::placeholder,
#obs-password,
#obs-password::placeholder,
#streamerbot-address,
#streamerbot-address::placeholder,
#streamerbot-port,
#streamerbot-port::placeholder,
#streamerbot-endpoint,
#streamerbot-endpoint::placeholder,
.obs-form-grid label,
.streamerbot-form-grid label {
  color: #C98AA9 !important;
}

.gs-topbar {
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 149, 212, 0.22), transparent 22%),
    radial-gradient(circle at 88% 20%, rgba(186, 160, 255, 0.18), transparent 24%),
    linear-gradient(180deg, rgba(255, 252, 254, 0.94) 0%, rgba(255, 244, 249, 0.92) 58%, rgba(250, 244, 255, 0.92) 100%) !important;
  border: 1px solid rgba(225, 203, 238, 0.92) !important;
  box-shadow:
    0 18px 38px rgba(205, 145, 187, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.82) !important;
  backdrop-filter: none !important;
  contain: paint;
  isolation: isolate;
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

.gs-topbar__search,
.gs-topbar__page,
.gs-topbar__auth,
.gs-topbar__icon {
  background:
    linear-gradient(135deg, rgba(255, 237, 246, 0.98), rgba(246, 239, 255, 0.98)),
    rgba(255, 255, 255, 0.92) !important;
  border: 1px solid rgba(226, 202, 237, 0.92) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 10px 24px rgba(208, 151, 190, 0.09) !important;
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
}

.gs-topbar__search:hover,
.gs-topbar__page:hover,
.gs-topbar__auth:hover,
.gs-topbar__icon:hover {
  border-color: rgba(214, 161, 234, 0.94) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 14px 28px rgba(216, 153, 200, 0.14) !important;
}

.gs-topbar,
.gs-topbar * {
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
  text-shadow: none !important;
}

.gs-topbar__search-copy,
.gs-topbar__shortcut,
.gs-topbar__page-kicker,
.gs-topbar__page-main strong {
  color: #4b3950 !important;
}

.gs-topbar__page-kicker {
  letter-spacing: 0.18em;
  color: #c05f9a !important;
}

.gs-topbar__shortcut {
  background: linear-gradient(135deg, rgba(255, 226, 241, 0.98), rgba(238, 230, 255, 0.98)) !important;
  border: 1px solid rgba(220, 191, 233, 0.86) !important;
  color: #8b5aa8 !important;
}

.gs-topbar__search i,
.gs-topbar__page-main i,
.gs-topbar__icon i {
  color: #bb5ea0 !important;
}

.gs-topbar__connect {
  background: linear-gradient(135deg, #ff69b3 0%, #d86dff 52%, #8f7cff 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.48) !important;
  box-shadow:
    0 16px 30px rgba(219, 108, 193, 0.24) !important;
}

.gs-topbar__connect:hover {
  transform: translateY(-1px);
  box-shadow:
    0 20px 34px rgba(219, 108, 193, 0.28) !important;
}

.gs-topbar__search {
  border-radius: 18px !important;
}

.gs-topbar__page {
  background:
    linear-gradient(180deg, rgba(255, 252, 254, 0.98), rgba(250, 243, 255, 0.96)) !important;
  border-radius: 20px !important;
}

.gs-topbar__page-main strong {
  color: #34253a !important;
}

.gs-topbar__auth,
.gs-topbar__icon {
  background:
    linear-gradient(180deg, rgba(255, 251, 253, 0.98), rgba(248, 241, 252, 0.98)) !important;
}

.gs-topbar__icon {
  border-radius: 18px !important;
}

.gs-topbar__icon:hover i,
.gs-topbar__search:hover i,
.gs-topbar__page:hover i {
  color: #a64fb4 !important;
}

.overlay-gallery-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 244, 250, 0.96)) !important;
  border: 1px solid rgba(231, 209, 240, 0.98) !important;
  box-shadow:
    0 18px 38px rgba(205, 145, 187, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

.overlay-gallery-card__head h3 {
  color: #b14f93 !important;
}

.overlay-gallery-card__copy {
  color: #5d4a5d !important;
}

.overlay-gallery-link-row span {
  color: #4b3950 !important;
}

.overlay-gallery-link-row input {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(250, 242, 252, 0.98)) !important;
  border: 1px solid rgba(210, 189, 223, 0.98) !important;
  color: #4b3950 !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 10px 22px rgba(206, 145, 185, 0.08) !important;
}

.overlay-gallery-link-row button {
  background: linear-gradient(180deg, rgba(255, 251, 253, 0.98), rgba(248, 241, 252, 0.98)) !important;
  border: 1px solid rgba(220, 191, 233, 0.84) !important;
  color: #94417a !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 10px 22px rgba(206, 145, 185, 0.08) !important;
}

.overlay-gallery-link-row button:hover {
  background: linear-gradient(180deg, rgba(255, 245, 250, 1), rgba(244, 236, 252, 1)) !important;
  border-color: rgba(205, 160, 226, 0.88) !important;
  color: #7f3467 !important;
}

.overlay-preview-frame {
  background:
    radial-gradient(circle at top left, rgba(255, 221, 238, 0.52), transparent 28%),
    linear-gradient(180deg, rgba(255, 253, 254, 0.98), rgba(255, 244, 249, 0.96)) !important;
  border: 1px solid rgba(231, 209, 240, 0.98) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 18px 36px rgba(205, 145, 187, 0.1) !important;
}

.overlay-preview-frame--embed iframe {
  color-scheme: light;
  background-color: #fff8fc !important;
  background: linear-gradient(180deg, rgba(255, 249, 252, 0.99), rgba(252, 243, 255, 0.98)) !important;
}

.overlay-preview-frame--cardbox,
.overlay-preview-frame--cardbox iframe {
  background: transparent !important;
  background-color: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

.overlay-preview-frame--cardbox {
  overflow: visible !important;
  border-radius: 0 !important;
}

.overlay-preview-frame--cardbox iframe {
  display: block;
  color-scheme: light;
  border-radius: 0 !important;
}

.overlay-preview-frame--timer {
  min-height: 230px !important;
  border-radius: 18px !important;
  background:
    linear-gradient(45deg, rgba(210, 213, 220, 0.52) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(210, 213, 220, 0.52) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(210, 213, 220, 0.52) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(210, 213, 220, 0.52) 75%),
    linear-gradient(135deg, #ffffff, #fff5fb) !important;
  background-position: 0 0, 0 13px, 13px -13px, -13px 0 !important;
  background-size: 26px 26px !important;
  border-color: rgba(216, 137, 232, 0.34) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.74),
    0 18px 42px rgba(186, 108, 255, 0.1) !important;
}

.overlay-preview-frame--timer iframe {
  min-height: 230px !important;
  background: transparent !important;
  background-color: transparent !important;
}

.overlay-preview-frame--gifter-winner {
  min-height: 610px !important;
  overflow: visible !important;
}

.overlay-preview-frame--gifter-winner iframe {
  display: block;
  height: 610px !important;
  min-height: 610px !important;
  background: transparent !important;
  background-color: transparent !important;
}

.overlay-preview-frame--chat-overlay {
  min-height: 380px !important;
}

.overlay-preview-frame--chat-overlay iframe {
  display: block;
  height: 380px !important;
  min-height: 380px !important;
  background: transparent !important;
  background-color: transparent !important;
}

.attendance-notice-controls {
  display: grid;
  grid-template-columns: minmax(210px, 1fr) minmax(180px, 0.85fr) minmax(220px, 1fr) minmax(96px, 0.36fr);
  gap: 12px;
  margin: 16px 0 0;
  align-items: start;
}

.attendance-notice-field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.attendance-notice-field--file {
  grid-column: 1;
  grid-row: 1;
}

.attendance-notice-field--audio {
  grid-column: 1;
  grid-row: 2;
}

.attendance-notice-field span {
  color: #4b3950;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.attendance-notice-field input {
  width: 100%;
  height: 56px;
  min-height: 56px;
  border-radius: 14px;
  border: 1px solid rgba(210, 189, 223, 0.98);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(250, 242, 252, 0.98));
  color: #3d3142;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  padding: 0 12px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 10px 22px rgba(206, 145, 185, 0.08);
}

.attendance-notice-file-btn,
.attendance-notice-audio-btn {
  width: 100%;
  height: 42px;
  min-height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(220, 191, 233, 0.84);
  background: linear-gradient(180deg, rgba(255, 251, 253, 0.98), rgba(248, 241, 252, 0.98));
  color: #94417a;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 10px 22px rgba(206, 145, 185, 0.08);
}

.attendance-notice-file-btn:hover,
.attendance-notice-audio-btn:hover {
  border-color: rgba(205, 160, 226, 0.88);
  color: #7f3467;
}

.attendance-gift-picker {
  min-width: 210px;
  margin-top: 0;
}

.attendance-gift-picker .sound-trigger-picker__button {
  height: 38px;
  min-height: 38px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  border-radius: 12px;
  border: 1px solid rgba(220, 191, 233, 0.84);
  background: linear-gradient(180deg, rgba(255, 251, 253, 0.98), rgba(248, 241, 252, 0.98));
  color: #94417a;
  font-weight: 800;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 10px 22px rgba(206, 145, 185, 0.08);
}

.attendance-gift-picker__media {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255, 104, 178, 0.95), rgba(143, 124, 255, 0.92));
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  overflow: hidden;
}

.attendance-gift-picker__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.attendance-gift-picker [data-attendance-gift-label] {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.overlay-gallery-link-row [data-open-overlay-settings][data-overlay-name="Notif Absen"] {
  height: 38px;
  min-height: 38px;
}

.attendance-gift-picker.is-open .sound-trigger-picker__button,
.attendance-gift-picker .sound-trigger-picker__button:hover {
  border-color: rgba(205, 160, 226, 0.88);
  color: #7f3467;
}

.attendance-gift-picker .sound-trigger-picker__menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 2400;
  width: min(420px, 86vw);
}

#attendance-audio-library .library-result-action,
#attendance-audio-library .file-picker-button,
#attendance-audio-library .library-close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(220, 191, 233, 0.86);
  background: linear-gradient(180deg, rgba(255, 251, 253, 0.98), rgba(248, 241, 252, 0.98));
  color: #94417a;
  font-weight: 800;
  cursor: pointer;
}

#attendance-audio-library .library-result-action.is-primary {
  border-color: transparent;
  background: linear-gradient(135deg, #ff69b3 0%, #d86dff 52%, #8f7cff 100%);
  color: #ffffff;
}

#attendance-audio-library .library-result-action:hover,
#attendance-audio-library .file-picker-button:hover,
#attendance-audio-library .library-close-btn:hover {
  border-color: rgba(205, 160, 226, 0.88);
  color: #7f3467;
}

#attendance-audio-library .library-result-action.is-primary:hover {
  color: #ffffff;
}

.attendance-notice-field small {
  min-width: 0;
  color: #8b708c;
  font-size: 12px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attendance-notice-field input:focus {
  outline: none;
  border-color: rgba(214, 161, 234, 0.96);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 0 0 4px rgba(234, 188, 247, 0.32),
    0 14px 28px rgba(216, 153, 200, 0.14);
}

.overlay-preview-frame--attendance-notice {
  min-height: 520px !important;
  overflow: hidden !important;
  background:
    linear-gradient(45deg, rgba(210, 213, 220, 0.48) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(210, 213, 220, 0.48) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(210, 213, 220, 0.48) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(210, 213, 220, 0.48) 75%),
    linear-gradient(135deg, #ffffff, #fff5fb) !important;
  background-position: 0 0, 0 13px, 13px -13px, -13px 0 !important;
  background-size: 26px 26px !important;
}

.overlay-preview-frame--attendance-notice iframe {
  display: block;
  height: 520px !important;
  min-height: 520px !important;
  background: transparent !important;
  background-color: transparent !important;
}

.overlay-gallery-card--gift-bomb-slots {
  border-color: rgba(210, 78, 171, 0.26) !important;
  background:
    radial-gradient(circle at 14% 0%, rgba(255, 86, 184, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 244, 251, 0.96)) !important;
}

.overlay-preview-frame--gift-bomb-slots {
  min-height: 330px !important;
  overflow: hidden !important;
  background: transparent !important;
  border-color: rgba(222, 77, 182, 0.42) !important;
}

.overlay-preview-frame--gift-bomb-slots iframe {
  display: block;
  height: 330px !important;
  min-height: 330px !important;
  background: transparent !important;
  background-color: transparent !important;
}

@media (max-width: 900px) {
  .attendance-notice-controls {
    grid-template-columns: 1fr;
  }

  .attendance-notice-field--file,
  .attendance-notice-field--audio {
    grid-column: auto;
    grid-row: auto;
  }
}

.attendance-notice-settings {
  display: grid;
  gap: 16px;
}

.attendance-notice-settings[hidden] {
  display: none;
}

.attendance-notice-settings__panel {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(231, 209, 240, 0.92);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 245, 251, 0.94));
}

.attendance-notice-settings__panel h3 {
  margin: 0;
  color: #34253a;
  font-size: 18px;
}

.attendance-notice-settings__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.attendance-notice-settings__row {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.attendance-notice-settings__row > span {
  color: #4b3950;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.attendance-notice-settings__row select {
  min-height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(210, 189, 223, 0.98);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(250, 242, 252, 0.98));
  color: #3d3142;
  font: inherit;
  font-weight: 750;
  padding: 0 12px;
}

.attendance-notice-settings__row input[type="number"] {
  min-height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(210, 189, 223, 0.98);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(250, 242, 252, 0.98));
  color: #3d3142;
  font: inherit;
  font-weight: 750;
  padding: 0 12px;
}

@media (max-width: 720px) {
  .attendance-notice-settings__grid {
    grid-template-columns: 1fr;
  }
}

.overlay-settings-modal--pink .overlay-settings-modal__dialog {
  border-color: rgba(231, 209, 240, 0.98) !important;
  box-shadow: 0 34px 80px rgba(172, 114, 155, 0.22) !important;
}

.preset-box {
  background:
    radial-gradient(circle at top right, rgba(255, 77, 166, 0.18), transparent 34%),
    radial-gradient(circle at bottom left, rgba(78, 161, 255, 0.18), transparent 38%),
    linear-gradient(135deg, rgba(22, 14, 37, 0.96) 0%, rgba(15, 24, 48, 0.96) 52%, rgba(9, 16, 31, 0.98) 100%) !important;
  border: 1px solid rgba(130, 157, 255, 0.18) !important;
  box-shadow:
    0 18px 36px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

.preset-box::before {
  background:
    linear-gradient(135deg, rgba(255, 151, 211, 0.18), transparent 44%),
    linear-gradient(315deg, rgba(186, 160, 255, 0.14), transparent 48%) !important;
}

.preset-header > span {
  color: #4b3950 !important;
}

.preset-select-wrapper select,
.preset-select {
  color-scheme: light;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(250, 242, 252, 0.98)) !important;
  border: 1px solid rgba(210, 189, 223, 0.98) !important;
  color: #3d3142 !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 12px 24px rgba(206, 145, 185, 0.08) !important;
}

.preset-select-wrapper::after {
  border-right-color: #9f67c7 !important;
  border-bottom-color: #9f67c7 !important;
  transition: transform 0.18s ease;
}

.preset-select-wrapper select:focus,
.preset-select:focus {
  border-color: rgba(214, 161, 234, 0.96) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 0 0 4px rgba(234, 188, 247, 0.32),
    0 14px 28px rgba(216, 153, 200, 0.14) !important;
}

.preset-select option,
.preset-select-wrapper select option {
  background: #fff9fc;
  color: #4b3950;
}

.preset-select-wrapper {
  position: relative;
}

.preset-select-wrapper.is-open {
  z-index: 1200;
}

.preset-select-wrapper select,
.preset-select {
  position: absolute !important;
  inset: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.preset-select-trigger {
  width: 100%;
  min-height: 52px;
  padding: 0 48px 0 16px;
  border-radius: 16px;
  border: 1px solid rgba(210, 189, 223, 0.98);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(250, 242, 252, 0.98));
  color: #3d3142;
  font-size: 16px;
  font-weight: 700;
  text-align: left;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 12px 24px rgba(206, 145, 185, 0.08);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.preset-select-trigger:hover {
  border-color: rgba(214, 161, 234, 0.96);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 14px 28px rgba(216, 153, 200, 0.14);
}

.preset-select-trigger:focus-visible {
  outline: none;
  border-color: rgba(214, 161, 234, 0.96);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 0 0 4px rgba(234, 188, 247, 0.32),
    0 14px 28px rgba(216, 153, 200, 0.14);
}

.preset-select-trigger__label {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preset-select-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  z-index: 1300;
  display: grid;
  gap: 4px;
  padding: 8px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(252, 244, 255, 0.98));
  border: 1px solid rgba(225, 203, 238, 0.96);
  box-shadow:
    0 22px 40px rgba(205, 145, 187, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  isolation: isolate;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  pointer-events: none;
  transition:
    opacity 0.18s ease,
    transform 0.18s ease,
    visibility 0.18s ease;
}

.preset-select-wrapper.is-open .preset-select-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.preset-select-wrapper.is-open::after {
  transform: translateY(-35%) rotate(225deg);
}

.preset-select-option {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: #4b3950;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  box-shadow: none;
}

.preset-select-option:hover,
.preset-select-option:focus-visible {
  outline: none;
  background: linear-gradient(90deg, rgba(255, 233, 244, 0.94), rgba(246, 236, 255, 0.92));
  color: #8f3d80;
  border-color: rgba(220, 191, 233, 0.86);
  transform: none;
}

.preset-select-option.is-active {
  background: linear-gradient(90deg, #ff6cb5 0%, #d983ff 58%, #8da0ff 100%);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.26);
  box-shadow: 0 10px 22px rgba(213, 120, 201, 0.22);
}

.sound-alerts-main {
  padding: 0 60px 60px;
  background: transparent;
}

.sound-alerts-shell {
  display: grid;
  gap: 20px;
  min-width: 0;
  padding: 26px 30px 34px;
  border: 1px solid rgba(231, 209, 240, 0.98);
  border-radius: 24px;
  background:
    radial-gradient(circle at top left, rgba(255, 221, 238, 0.5), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 244, 250, 0.96));
  box-shadow:
    0 24px 58px rgba(202, 134, 187, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.sound-alerts-page-header {
  margin-bottom: 20px;
}

.sound-alerts-page-header h1 {
  font-weight: 700;
}

.sound-alerts-hero {
  padding: 28px;
}

.sound-alerts-hero h2 {
  margin: 8px 0 8px;
  color: #281f3b !important;
  font-size: 24px;
  line-height: 1.25;
  font-weight: var(--gs-font-semibold);
}

.tts-chat-shell {
  display: grid;
  gap: 18px;
  margin-top: 22px;
  padding: 20px;
  border: 1px solid rgba(244, 114, 182, 0.34);
  border-radius: 18px;
  background:
    radial-gradient(circle at top left, rgba(255, 221, 238, 0.42), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 244, 250, 0.96));
  box-shadow:
    0 20px 48px rgba(202, 134, 187, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.sound-alerts-header {
  max-width: 880px;
}

.sound-alerts-header h1 {
  margin: 4px 0 8px;
  color: #b14f93;
  font-size: 34px;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: 0;
}

.sound-alerts-header p {
  color: #5d4a5d;
  font-size: 15px;
  line-height: 1.55;
}

.sound-alerts-panel,
.sound-alerts-settings {
  border: 1px solid rgba(231, 209, 240, 0.98);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 244, 250, 0.95));
  box-shadow:
    0 18px 42px rgba(205, 145, 187, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.sound-alerts-panel {
  min-width: 0;
  padding: 20px;
}

.sound-alerts-toolbar {
  display: grid;
  grid-template-columns: auto auto minmax(220px, 1fr);
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
}

.sound-alerts-create,
.sound-alerts-select-sound,
.sound-alerts-row-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(220, 191, 233, 0.86);
  background: linear-gradient(180deg, rgba(255, 251, 253, 0.98), rgba(248, 241, 252, 0.98));
  color: #94417a;
  font-weight: 700;
  cursor: pointer;
}

.sound-alerts-create {
  padding: 0 16px;
}

.sound-alerts-create:hover,
.sound-alerts-select-sound:hover,
.sound-alerts-row-actions button:hover {
  background: linear-gradient(180deg, rgba(255, 245, 250, 1), rgba(244, 236, 252, 1));
  border-color: rgba(205, 160, 226, 0.88);
  color: #7f3467;
}

.sound-alerts-create svg,
.sound-alerts-row-actions svg {
  width: 17px;
  height: 17px;
}

.sound-alerts-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #4b3950;
  font-size: 14px;
  font-weight: 700;
}

.sound-alerts-toggle input,
.sound-alerts-table input[type="checkbox"],
.sound-alerts-setting--check input {
  width: 20px;
  height: 20px;
  accent-color: #d9488f;
}

.sound-alerts-search {
  justify-self: end;
  width: min(320px, 100%);
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  border: 1px solid rgba(210, 189, 223, 0.98);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(250, 242, 252, 0.98));
}

.sound-alerts-search svg {
  width: 16px;
  height: 16px;
  color: #b45b82;
}

.sound-alerts-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #4b3950;
  font-weight: 700;
}

.sound-alerts-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  border: 1px solid rgba(236, 198, 221, 0.72);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 246, 250, 0.97));
}

.sound-alerts-table {
  width: max(100%, 960px);
  border-collapse: collapse;
  table-layout: fixed;
}

.sound-alerts-table th,
.sound-alerts-table td {
  height: 46px;
  padding: 8px 10px;
  border-right: 1px solid rgba(236, 198, 221, 0.54);
  border-bottom: 1px solid rgba(236, 198, 221, 0.42);
  color: #5a495d;
  font-size: 13px;
}

.sound-alerts-table th {
  text-align: left;
  color: #8f6178;
  background: linear-gradient(180deg, rgba(255, 243, 249, 0.98), rgba(255, 236, 244, 0.96));
  font-weight: 700;
}

.sound-alerts-table th:first-child,
.sound-alerts-table td:first-child {
  width: 108px;
}

.sound-alerts-table th:nth-child(2),
.sound-alerts-table td:nth-child(2) {
  width: 90px;
  text-align: center;
}

.sound-alerts-table th:nth-child(4),
.sound-alerts-table td:nth-child(4) {
  width: 26%;
}

.sound-alerts-row-actions {
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
}

.sound-alerts-row-actions button {
  width: 32px;
  min-height: 32px;
  margin: 0 3px;
  padding: 0;
  border-radius: 10px;
  vertical-align: middle;
}

.sound-alerts-table select,
.sound-alerts-table input[type="number"],
.sound-alerts-setting input[type="number"] {
  width: 100%;
  min-height: 36px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid rgba(210, 189, 223, 0.98);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(250, 242, 252, 0.98));
  color: #4b3950;
  font-weight: 600;
}

.sound-trigger-picker {
  position: relative;
}

.sound-shortcut-picker {
  position: relative;
}

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

.sound-gift-picker[hidden] {
  display: none !important;
}

.sound-trigger-picker__button {
  width: 100%;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 10px 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(210, 189, 223, 0.98);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(250, 242, 252, 0.98));
  color: #4b3950;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.sound-trigger-picker__button svg {
  width: 16px;
  height: 16px;
  color: #a362c2;
  flex: 0 0 auto;
}

.sound-trigger-picker.is-open .sound-trigger-picker__button,
.sound-shortcut-picker.is-open .sound-trigger-picker__button {
  border-color: rgba(205, 160, 226, 0.98);
  box-shadow: 0 0 0 3px rgba(216, 109, 255, 0.12);
}

.sound-trigger-picker__menu {
  position: fixed;
  z-index: 2200;
  width: min(320px, 80vw);
  max-height: 330px;
  overflow: auto;
  padding: 8px;
  border-radius: 16px;
  border: 1px solid rgba(220, 191, 233, 0.96);
  background:
    radial-gradient(circle at top left, rgba(255, 221, 238, 0.52), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(252, 244, 255, 0.98));
  box-shadow:
    0 24px 46px rgba(174, 108, 176, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.sound-gift-picker__menu {
  width: min(420px, 80vw);
  max-height: 390px;
}

.sound-shortcut-picker__menu {
  position: fixed;
  z-index: 2200;
  width: min(300px, 80vw);
  max-height: 330px;
}

.sound-gift-picker__search {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  padding: 0 12px;
  border: 1px solid rgba(210, 189, 223, 0.98);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(250, 242, 252, 0.98));
}

.sound-gift-picker__search svg {
  width: 15px;
  height: 15px;
  color: #b45b82;
}

.sound-gift-picker__search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #4b3950;
  font-size: 13px;
  font-weight: 600;
}

.sound-trigger-picker__menu[hidden] {
  display: none !important;
}

.sound-trigger-picker__loading {
  padding: 14px;
  color: #8f6178;
  font-size: 13px;
  font-weight: 700;
}

.sound-trigger-option {
  width: 100%;
  min-height: 54px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 13px;
  background: transparent;
  color: #4b3950;
  text-align: left;
  cursor: pointer;
}

.sound-trigger-option:hover,
.sound-trigger-option:focus-visible {
  outline: none;
  background: linear-gradient(90deg, rgba(255, 233, 244, 0.94), rgba(246, 236, 255, 0.92));
  border-color: rgba(220, 191, 233, 0.86);
}

.sound-trigger-option__icon,
.sound-trigger-option__gift {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.82), transparent 28%),
    linear-gradient(135deg, rgba(255, 104, 178, 0.95), rgba(143, 124, 255, 0.92));
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 10px 18px rgba(213, 120, 201, 0.16);
  overflow: hidden;
}

.sound-trigger-option__icon svg {
  width: 22px;
  height: 22px;
}

.sound-trigger-option__gift img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sound-trigger-option__copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.sound-trigger-option__title {
  color: #3f2f45;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sound-trigger-option__meta {
  color: #8f6178;
  font-size: 11px;
  font-weight: 700;
}

.sound-alerts-select-sound {
  display: inline-block;
  width: 100%;
  min-width: 0;
  padding: 0 14px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.sound-alerts-library-actions {
  display: flex;
  justify-content: flex-start;
  margin: 8px 0 10px;
}

#sound-alerts-library .file-picker-button {
  min-height: 38px;
  border-radius: 12px;
}

.sound-alerts-table input[type="range"] {
  width: 100%;
  accent-color: #d9488f;
}

.sound-alerts-settings {
  width: min(640px, 100%);
  padding: 22px 24px 28px;
}

@media (max-width: 1280px) {
  .sound-alerts-main {
    padding: 0 28px 30px;
  }

  .sound-alerts-shell {
    padding: 22px;
  }
}

.sound-alerts-settings-grid {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.sound-alerts-setting {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  color: #4b3950;
  font-size: 14px;
  font-weight: 700;
}

.sound-alerts-setting--check {
  grid-template-columns: 210px auto;
  justify-content: start;
}

.tts-chat-settings {
  display: grid;
  gap: 18px;
}

.tts-chat-intro {
  padding: 24px;
  border: 1px solid rgba(244, 114, 182, 0.26);
  border-radius: 14px;
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 92, 171, 0.08), transparent 32%),
    rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 42px rgba(236, 72, 153, 0.1);
}

.tts-chat-intro h2 {
  margin: 0 0 8px;
  color: #281f3b;
  font-size: 24px;
  font-weight: 700;
}

.tts-chat-intro p {
  margin: 0;
  color: #6b5a78;
  font-size: 14px;
  line-height: 1.55;
}

.tts-chat-card {
  padding: 24px;
  border: 1px solid rgba(244, 114, 182, 0.26);
  border-radius: 14px;
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 92, 171, 0.08), transparent 32%),
    rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 42px rgba(236, 72, 153, 0.1);
}

.tts-chat-card h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 24px;
  color: #281f3b;
  font-size: 19px;
  font-weight: 700;
}

.tts-chat-card h2 svg {
  width: 18px;
  height: 18px;
  color: #df3f84;
}

.tts-chat-field {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  color: #281f3b;
  font-size: 14px;
  font-weight: 700;
}

.tts-chat-field input,
.tts-chat-field select,
.tts-chat-prefix {
  width: 100%;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(216, 137, 232, 0.34);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  color: #281f3b;
  font: inherit;
}

.tts-chat-field select[data-tts-chat-voice] {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.tts-voice-picker {
  position: relative;
  width: 100%;
}

.tts-voice-picker__button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(216, 137, 232, 0.46);
  border-radius: 10px;
  background:
    radial-gradient(circle at top left, rgba(255, 92, 171, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 247, 252, 0.96));
  color: #281f3b;
  font: inherit;
  font-weight: 700;
  text-align: left;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 10px 22px rgba(206, 145, 185, 0.08);
}

.tts-voice-picker__button span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tts-voice-picker__button svg {
  width: 16px;
  height: 16px;
  color: #b96ad8;
  transition: transform 160ms ease;
}

.tts-voice-picker.is-open .tts-voice-picker__button {
  border-color: rgba(236, 72, 153, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 0 0 3px rgba(236, 72, 153, 0.14);
}

.tts-voice-picker.is-open .tts-voice-picker__button svg {
  transform: rotate(180deg);
}

.tts-voice-picker__menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 3200;
  display: grid;
  gap: 6px;
  overflow-y: auto;
  max-height: 330px;
  padding: 8px;
  border: 1px solid rgba(216, 137, 232, 0.5);
  border-radius: 14px;
  background:
    radial-gradient(circle at top left, rgba(255, 92, 171, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(255, 253, 254, 0.99), rgba(255, 246, 252, 0.99));
  box-shadow:
    0 22px 52px rgba(118, 39, 79, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  scrollbar-width: thin;
  scrollbar-color: rgba(203, 129, 219, 0.72) rgba(236, 122, 176, 0.12);
}

.tts-voice-picker__menu[hidden] {
  display: none !important;
}

.tts-chat-field input:focus,
.tts-chat-field select:focus,
.tts-chat-prefix:focus {
  border-color: rgba(236, 72, 153, 0.72);
  box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.14);
  outline: none;
}

.tts-chat-field small {
  color: #6b5a78;
  font-size: 13px;
}

.tts-chat-switch {
  position: relative;
  display: inline-grid;
  grid-template-columns: 44px auto;
  align-items: center;
  gap: 10px;
  margin: 4px 0 6px;
  color: #281f3b;
  font-size: 14px;
  width: max-content;
  cursor: pointer;
}

.tts-chat-switch input {
  position: absolute;
  inset: 0 auto auto 0;
  width: 44px;
  height: 24px;
  opacity: 0;
  margin: 0;
  cursor: pointer;
  z-index: 2;
}

.tts-chat-switch span {
  position: relative;
  display: block;
  width: 44px;
  min-width: 44px;
  height: 24px;
  border-radius: 999px;
  background: rgba(92, 74, 103, 0.22);
  transition: background 160ms ease;
  pointer-events: none;
}

.tts-chat-switch span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(45, 33, 64, 0.22);
  transition: transform 160ms ease;
}

.tts-chat-switch input:checked + span {
  background: linear-gradient(135deg, #ff5cab, #b988ff);
}

.tts-chat-switch input:checked + span::after {
  transform: translateX(20px);
}

.tts-chat-field--range > div {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
}

.tts-chat-field--range input[type="range"] {
  padding: 0;
  accent-color: #ec4899;
}

.tts-chat-field--range strong {
  color: #281f3b;
}

.tts-chat-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 22px;
}

.tts-chat-save {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  margin-top: 22px;
  padding: 0 16px;
  border: 1px solid rgba(236, 72, 153, 0.22);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.94);
  color: #281f3b;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(236, 72, 153, 0.1);
}

.tts-chat-actions .tts-chat-save {
  margin-top: 0;
}

.tts-chat-save:hover,
.tts-chat-chip-list button:hover {
  transform: translateY(-1px);
  border-color: rgba(236, 72, 153, 0.5);
}

.tts-chat-save svg,
.tts-chat-chip-list svg {
  width: 16px;
  height: 16px;
}

.tts-chat-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tts-chat-chip-list button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(216, 137, 232, 0.34);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.8);
  color: #281f3b;
  font-weight: 700;
}

.tts-chat-chip-list button.is-active {
  border-color: rgba(219, 106, 235, 0.56);
  background: linear-gradient(135deg, #f05bb7 0%, #b66cff 55%, #7c91ff 100%);
  color: #ffffff;
  box-shadow:
    0 14px 30px rgba(186, 108, 255, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.tts-chat-divider {
  height: 1px;
  margin: 18px 0 0;
  background: rgba(244, 114, 182, 0.22);
}

.tts-chat-radio-list {
  display: grid;
  gap: 12px;
}

.tts-chat-radio-list label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #281f3b;
  font-weight: 700;
}

.tts-chat-radio-list input[type="radio"] {
  accent-color: #ec4899;
}

.tts-chat-prefix {
  max-width: 280px;
  margin-left: 24px;
}

.tts-chat-prefix:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

@media (max-width: 900px) {
  .live-gifts-header,
  .live-gifts-grid {
    grid-template-columns: 1fr;
  }

  .live-gifts-reset {
    justify-self: start;
  }

  .sound-alerts-main {
    padding: 0 18px 30px;
  }

  .sound-alerts-shell {
    padding: 18px;
    border-radius: 18px;
  }

  .sound-alerts-toolbar {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .sound-alerts-search {
    justify-self: stretch;
    width: 100%;
  }

  .sound-alerts-setting,
  .sound-alerts-setting--check {
    grid-template-columns: 1fr;
  }

  .tts-chat-prefix {
    margin-left: 0;
    max-width: 100%;
  }
}
