:root {
  --panel-radius: 5px;
  --primary: #0d61f3;
  --primary-2: #4d8af7;
  --primary-rgb: 13, 97, 243;
  --primary-glow: 0 4px 14px rgba(var(--primary-rgb), 0.35);
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --bg: #151821;
  --bg-chrome: #1d2128;
  --bg-content: #1d2128;
  --bg-panel: #242934;
  --bg-panel-2: #2c313d;
}

html.dashboard-html,
html.dashboard-html body {
  margin: 0;
  padding: 0;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
  background: #151821;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-weight: 300;
  font-size: 13px;
  line-height: 1.45;
}

html.dashboard-html *,
html.dashboard-html *::before,
html.dashboard-html *::after {
  box-sizing: border-box;
}

html.dashboard-html.themeLight,
html.dashboard-html.themeLight body {
  background: #e8eaee;
}

.page {
  --panel-radius: 5px;
  min-height: 100vh;
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  box-sizing: border-box;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-weight: 300;
  font-size: 13px;
  line-height: 1.45;
  background: #151821;
  color: #eceff3;
  padding: 0;
  overflow: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(13, 97, 243, 0.55) rgba(255, 255, 255, 0.04);
}

.page *,
.page *::before,
.page *::after {
  box-sizing: border-box;
}

.page *,
.page {
  scrollbar-width: thin;
  scrollbar-color: rgba(13, 97, 243, 0.55) rgba(255, 255, 255, 0.04);
}

.page *::-webkit-scrollbar,
.page::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.page *::-webkit-scrollbar-track,
.page::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
}

.page *::-webkit-scrollbar-thumb,
.page::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(13, 97, 243, 0.72), rgba(13, 97, 243, 0.78));
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.page *::-webkit-scrollbar-thumb:hover,
.page::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(165, 184, 232, 0.9), rgba(13, 97, 243, 0.95));
  background-clip: padding-box;
  border: 2px solid transparent;
}

.page *::-webkit-scrollbar-corner,
.page::-webkit-scrollbar-corner {
  background: transparent;
}

button,
input,
select,
textarea,
kbd {
  font-family: inherit;
}

.adminLayout {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
  margin: 0;
  background: #151821;
}

.adminBody {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: stretch;
  overflow: hidden;
}

.adminSidebar {
  width: 232px;
  flex: 0 0 232px;
  align-self: stretch;
  background: #151821;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
}

.adminSidebarScroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.adminNavSection {
  margin-bottom: 4px;
}

.adminNavSectionLabel {
  padding: 8px 16px 6px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #7c7c7c;
}

.adminNavItems {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 8px;
}

.adminNavItem {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 6px;
  border: 0;
  border-left: 2px solid transparent;
  background: transparent;
  color: #bdbdbd;
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.adminNavItem svg,
.welcomeQuickIcon svg,
.metricIcon svg,
.adminTopbarLink svg,
.adminTopbarTheme svg,
.adminTopbarSignOut svg,
.adminTopbarSearch svg,
.adminMobileNavBtn svg,
.secondaryButton svg,
.welcomeQuickArrow,
.searchInlineInputIcon,
.searchInlineClose svg {
  display: block;
  flex-shrink: 0;
}

.adminNavItem svg {
  color: #7c7c7c;
}

.adminNavItem:has(.adminNavNewBadge) {
  position: relative;
  padding-right: 64px;
}

.adminNavNewBadge {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 8px 0 5px;
  border-radius: var(--panel-radius);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
  color: #f3f3f3;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  pointer-events: none;
}

.adminNavNewBadgeIcon {
  width: 14px;
  height: 14px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.adminNavItemActive .adminNavNewBadge {
  background: rgba(0, 0, 0, 0.28);
  border-color: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.adminNavItem:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
}

.adminNavItemActive {
  color: #ffffff;
  font-weight: 500;
  background: rgba(13, 97, 243, 0.16);
  border-left: 2px solid #0d61f3;
}

.adminNavItemActive:hover {
  color: #ffffff;
  background: rgba(13, 97, 243, 0.16);
}

.adminNavItemActive svg {
  color: #0d61f3;
}

.adminNavItemLabel {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.adminSidebarFooter {
  margin-top: auto;
  padding: 12px;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebarUserStack {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.sidebarUserCard {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 8px 10px;
  border-radius: var(--panel-radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  min-width: 0;
}

.sidebarUserAvatar,
.sidebarUserAvatarFallback {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
}

.sidebarUserAvatarFallback {
  display: grid;
  place-items: center;
  background: rgba(13, 97, 243, 0.18);
  color: #7eabff;
}

.sidebarUserMeta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.sidebarUserName {
  margin: 0;
  color: #f3f4f6;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebarUserBalance {
  margin: 0;
  color: #8b929c;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.25;
}

.sidebarUserLogout {
  flex-shrink: 0;
}

.adminMain {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.adminTopbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 58px;
  padding: 0 20px;
  background: rgba(29, 33, 40, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.adminMobileNavBtn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: #f3f4f6;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.adminMobileNavBtn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.adminMobileNavBtn[aria-expanded="true"] {
  background: rgba(13, 97, 243, 0.18);
  border-color: rgba(13, 97, 243, 0.45);
  color: #7eabff;
}

.adminNavBackdrop {
  display: none;
}

.adminTopbarLinkLabel {
  display: inline;
}

.adminTopbarBrand {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  text-decoration: none;
}

.adminTopbarBrand img {
  height: 38px;
  width: auto;
}

.adminTopbarBrand span {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.adminTopbarSearchWrap {
  flex: 1;
  display: flex;
  justify-content: center;
}

.adminTopbarSearchWrapOpen {
  position: relative;
  z-index: 121;
}

.adminTopbarSearch {
  width: 100%;
  max-width: 480px;
  height: 34px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border-radius: 8px;
  background: #242934;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #bdbdbd;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.adminTopbarSearch:hover {
  border-color: rgba(255, 255, 255, 0.16);
}

.adminTopbarSearch span {
  flex: 1;
  text-align: left;
  font-size: 13px;
  color: #7c7c7c;
}

.adminTopbarSearch kbd {
  font-size: 11px;
  font-weight: 500;
  padding: 1px 6px;
  border-radius: 4px;
  background: #2c313d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #7c7c7c;
  font-family: var(--font-mono);
}

.adminTopbarNav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.adminTopbarLink {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 13px;
  color: #bdbdbd;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.adminTopbarLink:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
}

.adminTopbarBtnReset {
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
  margin: 0;
}

.adminTopbarTheme,
.adminTopbarSignOut {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: 0;
  background: transparent;
  color: #bdbdbd;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.adminTopbarTheme:hover,
.adminTopbarThemeActive {
  background: rgba(255, 255, 255, 0.08);
  color: #f2f2f2;
}

.adminTopbarSignOut:hover {
  background: rgba(255, 80, 80, 0.12);
  color: #b5cef0;
}

.adminContent {
  flex: 1;
  min-width: 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 20px 22px 40px;
  background: #1d2128;
}

.dashboard {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.welcomeHub {
  width: min(920px, 100%);
  margin: 24px auto 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.welcomeHero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 28px 24px 8px;
}

.welcomeLogo {
  height: 56px;
  width: auto;
  object-fit: contain;
}

.welcomeTitle {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.welcomeSubtitle {
  margin: 0;
  max-width: 460px;
  font-size: 13px;
  line-height: 1.55;
  color: #bdbdbd;
}

.welcomeAccount {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--panel-radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #242934;
}

.settingsProfileAvatar {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  object-fit: cover;
  background: #1d2128;
  flex-shrink: 0;
}

.welcomeAccountIcon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: transparent;
  color: #c5cad1;
  flex: 0 0 auto;
  overflow: hidden;
}

.welcomeAccountCopy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.welcomeAccountLabel {
  font-size: 11px;
  font-weight: 500;
  color: #7c7c7c;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.welcomeAccountEmail {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.secondaryButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: #d5d7db;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: none;
  transition: background 0.15s ease, opacity 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.secondaryButton:hover:not(:disabled) {
  background: rgba(var(--primary-rgb), 0.1);
  border-color: rgba(var(--primary-rgb), 0.28);
  color: #fff;
}

.welcomeQuickLinks {
  border-radius: var(--panel-radius);
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: #242934;
  overflow: hidden;
}

.welcomeQuickLinksHead {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: #2c313d;
}

.welcomeQuickLinksHead h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
}

.welcomeQuickLinksHead p {
  margin: 4px 0 0;
  font-size: 12px;
  color: #8b929c;
}

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

.welcomeQuickCard {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.18);
  color: #c5cad1;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease;
  font: inherit;
}

.welcomeQuickCard:nth-child(2n) {
  border-right: 0;
}

.welcomeQuickCard:hover {
  background: rgba(0, 0, 0, 0.28);
}

.welcomeQuickIcon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: rgba(13, 97, 243, 0.14);
  color: #7eabff;
  flex: 0 0 auto;
}

.welcomeQuickCopy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.welcomeQuickCopy strong {
  font-size: 13px;
  font-weight: 600;
  color: #eceff3;
}

.welcomeQuickCopy span {
  font-size: 11.5px;
  color: #8b929c;
  line-height: 1.35;
}

.welcomeQuickArrow {
  color: #7c7c7c;
  flex-shrink: 0;
}

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

.metricCard {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  border-radius: var(--panel-radius);
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: #242934;
}

.metricCard:hover {
  background: rgba(255, 255, 255, 0.035);
}

.metricIcon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 9px;
  background: rgba(13, 97, 243, 0.12);
  color: #7eabff;
  flex: 0 0 auto;
}

.metricIcon svg {
  width: 20px;
  height: 20px;
}

.metricContent {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.metricLabel {
  color: #8b929c;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
}

.metricValue {
  margin: 0;
  color: #f3f4f6;
  font-size: 20px;
  line-height: 1;
  font-weight: 600;
}

.searchInlineWrap {
  position: relative;
  width: 100%;
  max-width: 480px;
}

.searchInlineInputRow {
  width: 100%;
  height: 34px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px 0 12px;
  border-radius: var(--panel-radius);
  background: #242934;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #f5f5f5;
  box-shadow: 0 0 0 3px rgba(120, 180, 255, 0.12);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.searchInlineInputIcon {
  color: #9a9a9a;
  flex: 0 0 auto;
}

.searchInlineInput {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: none;
  color: #f5f5f5;
  font-size: 13px;
  font-family: inherit;
}

.searchInlineInput::placeholder {
  color: #7c7c7c;
}

.searchInlineInput::-webkit-search-cancel-button {
  display: none;
}

.searchInlineClose {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--panel-radius);
  border: 0;
  background: rgba(255, 255, 255, 0.06);
  color: #9a9a9a;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}

.searchInlineClose:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #f5f5f5;
}

.searchDropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 122;
  max-height: min(60vh, 460px);
  display: flex;
  flex-direction: column;
  border-radius: var(--panel-radius);
  overflow: hidden;
  background: #2c313d;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  transform-origin: top center;
  animation: searchDropdownIn 0.16s ease;
}

@keyframes searchDropdownIn {
  from {
    opacity: 0;
    transform: translateY(-6px) scaleY(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scaleY(1);
  }
}

.searchResults {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
  padding: 8px;
}

.searchEmptyState {
  padding: 24px 18px;
  text-align: center;
  color: #7c7c7c;
  font-size: 13px;
  line-height: 1.6;
}

.searchGroup {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.searchGroup + .searchGroup {
  margin-top: 6px;
}

.searchGroupLabel {
  padding: 8px 10px 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6f6f6f;
}

.searchResultItem {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 9px 12px;
  border-radius: var(--panel-radius);
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.searchResultItem:hover {
  background: rgba(255, 255, 255, 0.06);
}

.searchResultIconWrap {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

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

.searchResultAppPlaceholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #b0b0b0;
}

.searchResultKeyWrap {
  background: rgba(217, 169, 58, 0.12);
}

.searchResultKeyIcon {
  color: #d9a93a;
}

.searchResultBody {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.searchResultTitle {
  font-size: 13px;
  font-weight: 600;
  color: #f0f0f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.searchResultMeta {
  font-size: 11.5px;
  color: #8a8a8a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.themeLight .searchResultItem:hover {
  background: rgba(0, 0, 0, 0.05);
}

.themeLight .searchGroupLabel {
  color: #8a8a8a;
}

.themeLight .searchResultIconWrap {
  background: rgba(0, 0, 0, 0.05);
}

.themeLight .searchResultKeyWrap {
  background: rgba(196, 146, 32, 0.12);
}

.themeLight .searchResultAppPlaceholder {
  color: #6a6a6a;
}

.themeLight .searchResultTitle {
  color: #1a1a1a;
}

.themeLight .searchResultMeta {
  color: #7a7a7a;
}

.searchFooter {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.searchFooterHint {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #7c7c7c;
}

.searchFooterHint kbd {
  font-size: 10px;
  font-weight: 500;
  padding: 1px 5px;
  border-radius: 4px;
  background: #2c313d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #8a8a8a;
  font-family: var(--font-mono);
}

.themeLight,
html.themeLight .page {
  background: #e8eaee;
  color: #1a1d21;
}

.themeLight .adminLayout,
.themeLight .adminSidebar,
.themeLight .adminMain,
.themeLight .adminContent {
  background: #f4f5f7;
}

.themeLight .adminTopbar {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: rgba(15, 18, 22, 0.1);
}

.themeLight .adminSidebar {
  border-right-color: rgba(15, 18, 22, 0.1);
}

.themeLight .adminMobileNavBtn {
  background: rgba(15, 18, 22, 0.04);
  border-color: rgba(15, 18, 22, 0.12);
  color: #1a1d21;
}

.themeLight .adminMobileNavBtn:hover {
  background: rgba(15, 18, 22, 0.08);
  border-color: rgba(15, 18, 22, 0.2);
  color: #121417;
}

.themeLight .adminMobileNavBtn[aria-expanded="true"] {
  background: rgba(13, 97, 243, 0.12);
  border-color: rgba(13, 97, 243, 0.4);
  color: #0d61f3;
}

.themeLight .adminNavBackdrop {
  background: rgba(15, 18, 22, 0.42);
}

.themeLight .adminTopbarBrand span,
.themeLight .adminTopbarLink:hover,
.themeLight .welcomeTitle,
.themeLight .welcomeAccountEmail,
.themeLight .welcomeQuickCopy strong,
.themeLight .metricValue,
.themeLight .adminNavItemActive {
  color: #121417;
}

.themeLight .adminTopbarSearch {
  background: #eceef1;
  border-color: rgba(15, 18, 22, 0.12);
  color: #5c6570;
}

.themeLight .adminTopbarSearch span,
.themeLight .adminTopbarSearch kbd,
.themeLight .adminTopbarLink,
.themeLight .adminNavSectionLabel,
.themeLight .adminNavItem,
.themeLight .adminNavItem svg,
.themeLight .welcomeSubtitle,
.themeLight .welcomeAccountLabel,
.themeLight .welcomeQuickCopy span,
.themeLight .metricLabel {
  color: #5f6875;
}

.themeLight .adminTopbarTheme,
.themeLight .adminTopbarSignOut {
  color: #5c6570;
}

.themeLight .adminTopbarTheme:hover {
  background: rgba(15, 18, 22, 0.06);
  color: #121417;
}

.themeLight .adminNavItem:hover {
  color: #121417;
  background: rgba(15, 18, 22, 0.05);
}

.themeLight .adminNavItemActive,
.themeLight .adminNavItemActive:hover {
  background: rgba(13, 97, 243, 0.12);
  color: #121417;
}

.themeLight .adminNavItemActive svg {
  color: #0d61f3;
}

.themeLight .adminNavNewBadge {
  color: #1a1a1a;
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.12);
}

.themeLight .adminNavItemActive .adminNavNewBadge {
  background: rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.14);
  color: #111;
}

.themeLight .welcomeAccount,
.themeLight .welcomeQuickLinks,
.themeLight .metricCard {
  background: #ffffff;
  border-color: rgba(15, 18, 22, 0.1);
}

.themeLight .welcomeQuickLinksHead {
  background: #f7f8fa;
  border-bottom-color: rgba(15, 18, 22, 0.08);
}

.themeLight .welcomeQuickLinksHead h2 {
  color: #121417;
}

.themeLight .welcomeQuickLinksHead p {
  color: #5f6875;
}

.themeLight .welcomeQuickCard {
  background: #ffffff;
  color: #1a1d21;
  border-right-color: rgba(15, 18, 22, 0.08);
  border-bottom-color: rgba(15, 18, 22, 0.08);
}

.themeLight .welcomeQuickCard:hover {
  background: #f7f8fa;
}

.themeLight .welcomeQuickCopy strong {
  color: #121417;
}

.themeLight .welcomeQuickCopy span,
.themeLight .welcomeQuickArrow {
  color: #5f6875;
}

.themeLight .adminTopbarSearch:hover {
  border-color: rgba(15, 18, 22, 0.2);
}

.themeLight .secondaryButton {
  background: #eceef1;
  color: #121417;
}

.themeLight .secondaryButton:hover {
  background: rgba(var(--primary-rgb), 0.08);
  border-color: rgba(var(--primary-rgb), 0.22);
  color: #121417;
}

.themeLight .adminSidebarFooter {
  border-top-color: rgba(15, 18, 22, 0.08);
}

.themeLight .sidebarUserCard {
  background: #ffffff;
  border-color: rgba(15, 18, 22, 0.1);
}

.themeLight .sidebarUserName {
  color: #121417;
}

.themeLight .sidebarUserBalance {
  color: #5f6875;
}

.themeLight .sidebarUserAvatarFallback {
  background: rgba(13, 97, 243, 0.12);
  color: #0d61f3;
}

.themeLight .searchInlineInputRow {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.18);
  box-shadow: 0 0 0 3px rgba(56, 132, 255, 0.12);
}

.themeLight .searchInlineInput {
  color: #1a1a1a;
}

.themeLight .searchInlineInput::placeholder {
  color: #9a9a9a;
}

.themeLight .searchInlineInputIcon {
  color: #8a8a8a;
}

.themeLight .searchInlineClose {
  background: rgba(0, 0, 0, 0.05);
  color: #6a6a6a;
}

.themeLight .searchInlineClose:hover {
  background: rgba(0, 0, 0, 0.1);
  color: #1a1a1a;
}

.themeLight .searchDropdown {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}

.themeLight .searchFooterHint kbd {
  background: #f1f1f1;
  border-color: rgba(0, 0, 0, 0.1);
  color: #6a6a6a;
}

.themeLight .searchEmptyState {
  color: #8a8a8a;
}

.themeLight .searchFooter {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.08);
}

.themeLight .searchFooterHint {
  color: #8a8a8a;
}

.themeLight .adminLayout,
.themeLight .adminSidebar,
.themeLight .adminMain,
.themeLight .adminContent,
.themeLight .adminTopbar,
.adminLayout,
.adminSidebar,
.adminMain,
.adminContent,
.adminTopbar {
  transition: background-color 0.28s ease, border-color 0.28s ease, color 0.28s ease;
}

@media (max-width: 820px) {
  .welcomeQuickGrid {
    grid-template-columns: 1fr;
  }

  .welcomeQuickCard,
  .welcomeQuickCard:nth-child(2n) {
    border-right: 0;
  }

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

  .welcomeAccount {
    flex-wrap: wrap;
  }
}

@media (max-width: 900px) {
  .adminMobileNavBtn {
    display: inline-flex;
    position: relative;
    z-index: 221;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  .adminTopbar {
    position: relative;
    z-index: 220;
    gap: 8px;
    padding: 0 12px;
    height: 48px;
  }

  .adminTopbarBrand span {
    display: none;
  }

  .adminTopbarBrand img {
    height: 32px;
  }

  .adminTopbarNav {
    gap: 0;
  }

  .adminTopbarLink {
    padding: 8px;
    gap: 0;
  }

  .adminTopbarLinkLabel {
    display: none;
  }

  .adminTopbarSearchWrap:not(.adminTopbarSearchWrapOpen) {
    display: none;
  }

  .adminTopbarSearchWrapOpen {
    position: absolute;
    left: 8px;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 130;
    flex: none;
    width: auto;
    max-width: none;
    justify-content: stretch;
  }

  .adminTopbarSearchWrapOpen .searchInlineWrap {
    max-width: none;
    width: 100%;
  }

  .adminBody {
    position: relative;
    width: 100%;
    min-width: 0;
  }

  .adminMain {
    width: 100%;
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
  }

  .adminNavBackdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 180;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    border: 0;
    flex: none;
    background: rgba(0, 0, 0, 0.58);
    -webkit-tap-highlight-color: transparent;
  }

  .adminNavBackdropVisible {
    display: block;
  }

  .adminSidebar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 200;
    width: min(300px, 88vw);
    flex: none;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    box-shadow: 18px 0 48px rgba(0, 0, 0, 0.45);
  }

  .adminSidebarOpen {
    display: flex;
  }

  .adminContent {
    padding: 10px 10px 28px;
    width: 100%;
    min-width: 0;
    font-size: 12.5px;
  }

  .adminLayoutMobileNavOpen {
    overflow: hidden;
  }

  .welcomeTitle {
    font-size: 20px;
  }

  .welcomeHero {
    padding: 16px 10px 4px;
  }

  .overviewGrid {
    grid-template-columns: 1fr;
  }

  .responseStatsRow {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .adminTopbarLink[data-topbar="website"] {
    display: none;
  }

  .welcomeMetrics {
    grid-template-columns: 1fr;
  }

  .overviewGrid {
    grid-template-columns: 1fr;
  }
}

[data-pane][hidden],
[hidden] {
  display: none !important;
}

.panelView {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tableHeaderHint {
  margin: 4px 0 0;
  color: #8b929c;
  font-size: 12px;
}

.tableHeader h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
}

.tableHeaderMain {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.tableHeaderIcon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(13, 97, 243, 0.12);
  color: #7eabff;
  flex: 0 0 auto;
}

.tableHeaderIcon svg {
  display: block;
  width: 20px;
  height: 20px;
}

.tableModule {
  border-radius: var(--panel-radius);
  border: 1px solid rgba(255, 255, 255, 0.07);
  overflow: hidden;
  background: #242934;
}

.tableHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: #2c313d;
  gap: 12px;
}

.tableList {
  width: 100%;
  overflow-x: auto;
}

.tableHeaders,
.tableRow {
  display: grid;
  width: 100%;
  min-width: 100%;
  box-sizing: border-box;
  justify-content: stretch;
  column-gap: 16px;
  align-items: center;
  padding: 11px 16px;
  font-size: 12px;
}

.tableHeaders > *,
.tableRow > * {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tableHeaders > :last-child,
.tableRow > :last-child {
  text-align: right;
  justify-self: stretch;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  overflow: visible;
}

.tableHeaders > .tableColHead {
  overflow: visible;
}

.tableColHead {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.colFilterBtn {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #7c7c7c;
  cursor: pointer;
  flex: 0 0 auto;
}

.colFilterBtn:hover,
.colFilterBtn[aria-expanded="true"] {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.colFilterMenu {
  position: fixed;
  z-index: 120;
  width: min(240px, calc(100vw - 24px));
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #242934;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.colFilterMenu[hidden] {
  display: none !important;
}

.colFilterMenuHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  padding: 0 4px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.colFilterMenuHead strong {
  font-size: 12px;
  font-weight: 600;
  color: #eceff3;
}

.colFilterMenuActions {
  display: flex;
  gap: 8px;
}

.colFilterMenuActions button {
  border: 0;
  padding: 0;
  background: transparent;
  color: #7eabff;
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.colFilterMenuActions button:hover {
  color: #fff;
}

.colFilterMenuList {
  display: grid;
  gap: 2px;
  max-height: 260px;
  overflow: auto;
}

.colFilterMenuList .stockCheck {
  width: 100%;
  margin: 0;
  padding: 6px 6px;
  border-radius: 8px;
}

.colFilterMenuList .stockCheck:hover {
  background: rgba(255, 255, 255, 0.04);
}

.themeLight .colFilterBtn:hover,
.themeLight .colFilterBtn[aria-expanded="true"] {
  color: #121417;
  background: rgba(15, 18, 22, 0.06);
}

.themeLight .colFilterMenu {
  background: #ffffff;
  border-color: rgba(15, 18, 22, 0.1);
  box-shadow: 0 12px 32px rgba(15, 18, 22, 0.12);
}

.themeLight .colFilterMenuHead {
  border-bottom-color: rgba(15, 18, 22, 0.08);
}

.themeLight .colFilterMenuHead strong {
  color: #121417;
}

.themeLight .colFilterMenuActions button:hover {
  color: #0d61f3;
}

.tableRow {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #c5cad1;
  background: rgba(0, 0, 0, 0.18);
}

.tableRow:hover {
  background: rgba(0, 0, 0, 0.28);
}

.productTableHeaders,
.productTableRow {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.productTableHeadersFull,
.productTableRowFull {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  cursor: pointer;
}

.tableTitle {
  font-weight: 600;
  color: #eceff3;
}

.priceIdCell,
.priceCell {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #7eabff;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
}

.priceCell {
  font-family: inherit;
  font-size: 13px;
  color: #eceff3;
  font-variant-numeric: tabular-nums;
}

.priceIdText,
.priceText {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stockCell,
.stockLow {
  color: #fff;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.emptyState {
  padding: 28px 16px;
  text-align: center;
  color: #8b929c;
  font-size: 13px;
}

.sourceChip {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #7eabff;
  background: rgba(13, 97, 243, 0.14);
  border: 1px solid rgba(13, 97, 243, 0.28);
}

.tableSearch {
  height: 32px;
  min-width: 220px;
  padding: 0 10px;
  border-radius: var(--panel-radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  font: inherit;
  font-size: 12px;
}

.overviewGrid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px;
}

.chartBody {
  padding: 12px 16px 16px;
  min-height: 220px;
}

.chartBarRow {
  display: grid;
  grid-template-columns: 128px 1fr 42px;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
  padding: 4px 6px;
  margin-left: -6px;
  margin-right: -6px;
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
}

a.chartBarRow:hover {
  background: transparent;
}

a.chartBarRow:hover .chartBarLabel {
  color: #7eabff;
  text-decoration: underline;
}

a.tableRow {
  display: grid;
  width: 100%;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.chartBarLabel {
  font-size: 11px;
  color: #c5cad1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chartBarTrack {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.chartBarFill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #0d61f3 0%, #4d8af7 100%);
}

.chartBarValue {
  font-size: 11px;
  font-weight: 600;
  color: #eceff3;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.adminModal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.55);
  padding: 16px;
}

.adminModal[hidden] {
  display: none !important;
}

.adminModalPanel {
  width: min(720px, 96vw);
  border-radius: var(--panel-radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #242934;
  color: #fff;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.adminResponsePanel {
  width: min(100%, 620px);
}

.editStockPanel {
  width: min(760px, calc(100vw - 32px));
  max-width: 100%;
}

.editPricePanel {
  width: min(520px, calc(100vw - 32px));
  max-width: 100%;
}

.editStockForm {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.editStockForm .stockField {
  min-width: 0;
}

.editStockForm .stockField select,
.editStockForm .stockField textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.editStockForm .stockField textarea {
  min-height: 280px;
  resize: vertical;
}

.editPriceForm {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.editPriceForm .stockField input {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

#editPriceId,
#editPriceAmount {
  font-family: var(--font-mono);
  font-size: 13px;
}

.editStockHint {
  margin: 0;
  color: #8b929c;
  font-size: 12px;
}

.redeem-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.redeem-panel-kicker {
  font-size: 13px;
  font-weight: 600;
  color: #8b929c;
}

.redeem-panel-header h3 {
  margin: 4px 0 0;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 700;
  color: #fff;
}

.redeem-panel-body {
  padding: 16px 20px 20px;
}

.redeem-close {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #bdbdbd;
  cursor: pointer;
}

.redeem-close:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.responseStatsRow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.responseStat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  border-radius: var(--panel-radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.responseStatLabel {
  font-size: 11px;
  font-weight: 500;
  color: #7c7c7c;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.responseStatValue {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}

.responseChartWrap {
  width: 100%;
  border-radius: var(--panel-radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.2);
  padding: 10px;
  margin-bottom: 16px;
}

.responseChart {
  width: 100%;
  height: auto;
  display: block;
}

.responseChartEmpty {
  display: grid;
  place-items: center;
  height: 120px;
  color: #7c7c7c;
  font-size: 12px;
}

.responseFootnote {
  margin: 0;
  color: #7c7c7c;
  font-size: 11px;
  line-height: 1.5;
}

.themeLight .tableModule,
.themeLight .responseStat,
.themeLight .adminModalPanel {
  background: #ffffff;
  border-color: rgba(15, 18, 22, 0.1);
}

.themeLight .tableHeaderIcon {
  background: rgba(13, 97, 243, 0.1);
  color: #0d61f3;
}

.themeLight .tableHeader {
  background: #f7f8fa;
  border-bottom-color: rgba(15, 18, 22, 0.08);
}

.themeLight .tableHeader h2,
.themeLight .tableTitle,
.themeLight .chartBarValue,
.themeLight .responseStatValue,
.themeLight .redeem-panel-header h3 {
  color: #121417;
}

.themeLight .tableHeaderHint,
.themeLight .emptyState,
.themeLight .responseStatLabel,
.themeLight .responseFootnote,
.themeLight .redeem-panel-kicker {
  color: #5f6875;
}

.themeLight .tableHeaders {
  background: #f0f2f5;
  color: #5f6875;
  border-bottom-color: rgba(15, 18, 22, 0.1);
}

.themeLight .tableRow {
  background: #ffffff;
  color: #1a1d21;
  border-bottom-color: rgba(15, 18, 22, 0.08);
}

.themeLight .tableRow:hover {
  background: #f7f8fa;
}

.themeLight a.chartBarRow:hover {
  background: transparent;
}

.themeLight a.chartBarRow:hover .chartBarLabel {
  color: #0d61f3;
}

.themeLight .tableSearch {
  background: #f4f5f7;
  border-color: rgba(15, 18, 22, 0.12);
  color: #121417;
}

.themeLight .chartBarTrack {
  background: rgba(15, 18, 22, 0.08);
}

.themeLight .adminModal {
  background: rgba(15, 18, 22, 0.35);
}

.themeLight .responseChartWrap {
  background: #f7f8fa;
  border-color: rgba(15, 18, 22, 0.08);
}

.themeLight .priceIdCell,
.themeLight .priceCell {
  color: #0d61f3;
}

.themeLight .priceCell {
  color: #1b1f24;
}

.themeLight .stockCell,
.themeLight .stockLow {
  color: #121417;
}

.browseCrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  font-size: 12px;
  color: #8b929c;
}

.browseCrumbBtn {
  border: 0;
  background: transparent;
  color: #7eabff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
}

.browseCrumbBtn:hover {
  color: #fff;
}

.browseCrumbSep {
  color: #6f6f6f;
}

.tableModule:has(.browseGrid) {
  container-type: inline-size;
  container-name: product-browse;
}

.browseGrid {
  --browse-body-h: 64px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  justify-content: stretch;
  align-content: start;
  gap: 12px;
  width: 100%;
  padding: 14px;
  box-sizing: border-box;
}

.browseGrid .emptyState {
  grid-column: 1 / -1;
}

@container product-browse (max-width: 900px) {
  .browseGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@container product-browse (max-width: 520px) {
  .browseGrid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  .browseGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

.browseCard {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  min-width: 0;
  height: auto;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--panel-radius);
  background: #242934;
  color: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.browseCard:hover {
  background: #2c313d;
  border-color: rgba(13, 97, 243, 0.4);
  transform: translateY(-1px);
}

.browseCardImg {
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
  object-fit: cover;
  object-position: center;
  background: rgba(255, 255, 255, 0.04);
  display: block;
}

.browseCardCategory .browseCardImg {
  object-fit: cover;
  object-position: center;
  padding: 0;
  aspect-ratio: 2.2 / 1;
}

.browseCardBody {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 100%;
  height: var(--browse-body-h);
  padding: 8px 12px;
  min-width: 0;
  box-sizing: border-box;
}

.browseCardBody strong {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.browseCardBody span {
  font-size: 12px;
  color: #8b929c;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.themeLight .browseCard {
  background: #ffffff;
  border-color: rgba(15, 18, 22, 0.1);
}

.themeLight .browseCard:hover {
  background: #f7f8fa;
  border-color: rgba(13, 97, 243, 0.4);
}

.themeLight .browseCardBody strong {
  color: #121417;
}

.themeLight .browseCrumbBtn:hover {
  color: #121417;
}

.themeLight .browseCardCategory .browseCardImg {
  background: #eef0f4;
}

.stockSwitchers {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: #2c313d;
}

.stockPane {
  background: rgba(0, 0, 0, 0.18);
}

.stockPane .tableHeaders,
.stockPane .tableRow {
  background: transparent;
}

.stockPane .tableRow:hover {
  background: rgba(0, 0, 0, 0.12);
}

.stockSwitch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 10px 0 6px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: #8b929c;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}

.stockSwitch .tableHeaderIcon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.stockSwitch .tableHeaderIcon svg {
  width: 14px;
  height: 14px;
}

.stockSwitch:hover {
  color: #eceff3;
  background: rgba(255, 255, 255, 0.05);
}

.stockSwitchActive,
.stockSwitch[aria-selected="true"] {
  color: #fff;
  background: rgba(13, 97, 243, 0.16);
  border-color: rgba(13, 97, 243, 0.35);
}

.stockPane[hidden] {
  display: none !important;
}

button.tableRow {
  width: 100%;
  margin: 0;
  text-align: left;
  font: inherit;
  color: inherit;
  appearance: none;
  box-shadow: none;
  cursor: pointer;
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.productTableRowFull.isSelected {
  background: rgba(13, 97, 243, 0.12);
  box-shadow: inset 3px 0 0 #0d61f3;
}

.licenseTableRow.isHighlighted {
  background: rgba(13, 97, 243, 0.12);
  box-shadow: inset 3px 0 0 #0d61f3;
}

.licenseTableHeaders,
.licenseTableRow {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.changelogTableHeaders,
.changelogTableRow {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.logsTableHeaders,
.logsTableRow {
  grid-template-columns: 1.1fr 1.2fr 0.8fr 1fr 1.6fr;
}

.ordersTableHeaders,
.ordersTableRow {
  grid-template-columns: minmax(92px, 0.8fr) minmax(120px, 1.3fr) minmax(90px, 1fr) minmax(160px, 1.6fr) minmax(140px, 1.1fr);
}

.ordersTableRow > div {
  color: inherit;
}

.licenseKeyCell {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.licenseKeyCopyButton {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  color: #eceff3;
  font: inherit;
  font-family: var(--font-mono);
  font-size: 12px;
  text-align: left;
  cursor: pointer;
}

.licenseKeyCopyButton:hover {
  color: #fff;
}

.licenseKeyCopyButton:hover .licenseKeyCopyIcon {
  color: #fff;
}

.licenseKeyCopyText {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.licenseKeyCopyIcon {
  flex-shrink: 0;
  color: #7c7c7c;
  transition: color 0.15s ease;
}

.licenseKeyCopyIconCopied,
.licenseKeyCopyButton:hover .licenseKeyCopyIconCopied {
  color: #23a55a;
}

.statusChip,
.actionChip {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.statusNotSold {
  color: #8fd4a2;
  background: rgba(46, 160, 90, 0.16);
}

.statusSold {
  color: #f0b4b4;
  background: rgba(180, 35, 24, 0.16);
}

.action-added {
  color: #8fd4a2;
  background: rgba(46, 160, 90, 0.16);
}

.action-removed {
  color: #f0b4b4;
  background: rgba(180, 35, 24, 0.16);
}

.action-delivered,
.action-edited,
.action-sold {
  color: #7eabff;
  background: rgba(13, 97, 243, 0.16);
}

.changelogDetails {
  color: #c5cad1;
}

.stockStats {
  padding: 16px;
  display: grid;
  gap: 14px;
}

.stockMetricGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.stockMetric {
  padding: 12px 14px;
  border-radius: var(--panel-radius);
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(0, 0, 0, 0.18);
}

.stockMetric span {
  display: block;
  color: #8b929c;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.stockMetric strong {
  display: block;
  margin-top: 4px;
  color: #eceff3;
  font-size: 22px;
  font-variant-numeric: tabular-nums;
}

.stockVariantHeaders,
.stockVariantRow {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stockForm {
  display: grid;
  gap: 14px;
  padding: 0 16px 18px;
  width: 100%;
}

.stockField {
  display: grid;
  gap: 6px;
}

.stockField span {
  color: #8b929c;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.stockField select,
.stockField textarea,
.stockField input,
.tableSearch {
  width: 100%;
}

.stockField select,
.stockField textarea,
.stockField input {
  border-radius: var(--panel-radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  font: inherit;
  font-size: 13px;
}

.stockField select,
.stockField input {
  height: 38px;
  padding: 0 10px;
}

.stockField input[readonly] {
  color: #c5cad1;
  cursor: default;
}

.stockField textarea {
  min-height: 180px;
  padding: 10px 12px;
  resize: vertical;
  font-family: var(--font-mono);
  line-height: 1.45;
}

.stockCheck {
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  margin: 2px 0 0;
  cursor: pointer;
  user-select: none;
}

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

.stockCheckBox {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.stockCheckBox svg {
  display: block;
  opacity: 0;
}

.stockCheck.is-checked .stockCheckBox,
.stockCheck:has(input:checked) .stockCheckBox {
  border-color: var(--primary);
  background: linear-gradient(135deg, #0d61f3 0%, #4d8af7 100%);
}

.stockCheck.is-checked .stockCheckBox svg,
.stockCheck:has(input:checked) .stockCheckBox svg {
  opacity: 1;
}

.stockCheckText {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 500;
}

.stockFormActions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: 12px;
  width: 100%;
}

.stockFormActions .primaryButton,
.stockFormActions .secondaryButton {
  width: 100%;
  min-width: 0;
}

.stockFormActions .stockFormMsg {
  grid-column: 1 / -1;
}

.primaryButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 16px;
  border: none;
  border-radius: 8px;
  background: #0d61f3;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.primaryButton:hover:not(:disabled) {
  background: #1a6dff;
}

.primaryButton:disabled,
.secondaryButton:disabled,
.ghostButton:disabled {
  opacity: 0.55;
  cursor: default;
}

.secondaryButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: #d5d7db;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.secondaryButton:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.ghostButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  color: #d5d7db;
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.ghostButton:hover:not(:disabled) {
  border-color: rgba(240, 180, 180, 0.4);
  color: #f0b4b4;
}

.stockFormMsg {
  margin: 0;
  font-size: 12px;
  color: #8b929c;
}

.stockFormMsg.isOk {
  color: #8fd4a2;
}

.stockFormMsg.isError {
  color: #f0b4b4;
}

.themeLight .stockSwitchers {
  background: #f7f8fa;
  border-bottom-color: rgba(15, 18, 22, 0.08);
}

.themeLight .stockPane {
  background: #ffffff;
}

.themeLight .stockPane .tableHeaders {
  background: #f0f2f5;
}

.themeLight .stockPane .tableRow {
  background: transparent;
}

.themeLight .stockPane .tableRow:hover {
  background: #f7f8fa;
}

.themeLight .stockSwitch {
  color: #5f6875;
}

.themeLight .stockSwitch:hover {
  color: #121417;
  background: rgba(15, 18, 22, 0.05);
}

.themeLight .stockSwitchActive,
.themeLight .stockSwitch[aria-selected="true"] {
  color: #0d61f3;
  background: rgba(13, 97, 243, 0.1);
  border-color: rgba(13, 97, 243, 0.28);
}

.themeLight .productTableRowFull.isSelected,
.themeLight .licenseTableRow.isHighlighted {
  background: rgba(13, 97, 243, 0.08);
}

.themeLight .licenseKeyCopyButton,
.themeLight .licenseKeyCopyText,
.themeLight .stockMetric strong {
  color: #121417;
}

.themeLight .licenseKeyCopyButton:hover,
.themeLight .licenseKeyCopyButton:hover .licenseKeyCopyIcon {
  color: #121417;
}

.themeLight .licenseKeyCopyIconCopied {
  color: #1a7f4a;
}

.themeLight .stockMetric,
.themeLight .stockField select,
.themeLight .stockField textarea,
.themeLight .stockField input {
  background: #f4f5f7;
  border-color: rgba(15, 18, 22, 0.12);
  color: #121417;
}

.themeLight .changelogDetails {
  color: #3a424c;
}

.themeLight .stockCheckBox {
  border: 1.5px solid rgba(15, 18, 22, 0.35);
  background: #ffffff;
  color: #15191f;
}

.themeLight .stockCheck.is-checked .stockCheckBox,
.themeLight .stockCheck:has(input:checked) .stockCheckBox {
  border-color: var(--primary);
  background: linear-gradient(135deg, #0d61f3 0%, #4d8af7 100%);
  color: #fff;
}

.themeLight .stockCheckText {
  color: #3a424c;
}

.themeLight .ghostButton {
  border-color: rgba(15, 18, 22, 0.12);
  color: #3a424c;
}

.themeLight .secondaryButton {
  background: #eceef1;
  border-color: rgba(15, 18, 22, 0.08);
  color: #121417;
}

.themeLight .secondaryButton:hover:not(:disabled) {
  background: #e2e5ea;
  color: #121417;
}

.themeLight .editStockHint {
  color: #3a424c;
}

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

.settingsPanel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.settingsCard {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--panel-radius);
  overflow: hidden;
}

.settingsCardHeader {
  padding: 14px 16px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.settingsCardHeader h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.settingsCardHeader p {
  margin: 4px 0 0;
  font-size: 12px;
  color: #8b929c;
}

.settingsCardHeaderRow {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.settingsCardBody {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 16px 16px;
}

.settingsProfileRow {
  display: flex;
  align-items: center;
  gap: 12px;
}

.settingsProfileAvatarFallback {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(13, 97, 243, 0.18);
  color: #7eabff;
  flex-shrink: 0;
}

.settingsProfileMeta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.settingsProfileMeta strong {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.settingsProfileMeta span {
  font-size: 12px;
  color: #8b929c;
}

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

.settingsField {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 10px 12px;
  border-radius: var(--panel-radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.18);
}

.settingsFieldLabel {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #7c7c7c;
}

.settingsFieldValue {
  font-size: 13px;
  color: #eceff3;
  word-break: break-all;
}

.settingsOptionRow {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.themeSwitchBlock {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border-radius: var(--panel-radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.18);
}

.themeSwitchCopy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.themeSwitchCopy strong {
  font-size: 13px;
  font-weight: 600;
  color: #eceff3;
}

.themeSwitchCopy span {
  font-size: 12px;
  color: #8b929c;
}

.themeSwitch {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  height: 42px;
  padding: 4px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.themeSwitchThumb {
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(50% - 4px);
  height: calc(100% - 8px);
  border-radius: 8px;
  background: linear-gradient(135deg, #0d61f3 0%, #4d8af7 100%);
  box-shadow: var(--primary-glow);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.themeSwitch.isLight .themeSwitchThumb,
.themeSwitch.themeSwitchLight .themeSwitchThumb {
  transform: translateX(100%);
  background: #d9dee6;
  box-shadow: 0 4px 14px rgba(15, 18, 22, 0.12);
}

.themeSwitchOption {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 100%;
  border: 0;
  background: transparent;
  color: #8b929c;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.themeSwitchOption.isActive,
.themeSwitchOption.themeSwitchOptionActive {
  color: #fff;
}

.themeSwitch.isLight .themeSwitchOption.isActive,
.themeSwitch.themeSwitchLight .themeSwitchOption.isActive,
.themeSwitch.themeSwitchLight .themeSwitchOptionActive {
  color: #121417;
}

.licenseFormatTitleRow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.settingsHelpTip {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #8b929c;
  cursor: pointer;
}

.settingsHelpTip:hover,
.settingsHelpTip[aria-expanded="true"] {
  color: #7eabff;
}

.settingsHelpTipBubble {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  width: min(280px, 70vw);
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #242934;
  color: #c5cad1;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  text-align: left;
  text-transform: none;
  letter-spacing: 0;
  transform: translateX(-20%);
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.settingsHelpTip:hover .settingsHelpTipBubble,
.settingsHelpTip[aria-expanded="true"] .settingsHelpTipBubble {
  opacity: 1;
}

.licenseFormatHint {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 12px;
  border-radius: var(--panel-radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: #8b929c;
}

.licenseFormatHint svg {
  flex-shrink: 0;
  margin-top: 1px;
  color: #7eabff;
}

.licenseFormatHint p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
}

.licenseFormatHint code {
  color: #e6e8ec;
}

.licenseFormatStudio {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
  border-radius: var(--panel-radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.18);
}

.licenseFormatFieldsRow {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 10px;
  align-items: end;
}

.licenseFormatField {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.licenseFormatFieldLabel {
  font-size: 12px;
  font-weight: 600;
  color: #bdbdbd;
}

.loaderFieldRequired {
  color: #7eabff;
}

.licenseFormatLiveTop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 18px;
}

.licenseFormatRegenBtn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #8b929c;
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}

.licenseFormatRegenBtn:hover {
  color: #d7dde5;
}

.licenseFormatInputShell,
.licenseFormatLiveShell {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 0 11px;
  border-radius: var(--panel-radius);
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(0, 0, 0, 0.28);
}

.licenseFormatInputShell svg {
  flex-shrink: 0;
  color: #7c7c7c;
}

.licenseFormatInputShell:focus-within {
  border-color: rgba(13, 97, 243, 0.7);
}

.licenseFormatInputShell input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #eceff3;
  font: inherit;
  outline: none;
}

.licenseFormatLiveShell code {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #eceff3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.licenseFormatOptionCard {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 64px;
  padding: 11px 12px;
  border-radius: var(--panel-radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
  cursor: pointer;
}

.licenseFormatOptionCard.isOn {
  border-color: rgba(13, 97, 243, 0.55);
  background: rgba(13, 97, 243, 0.1);
}

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

.licenseFormatOptionCheck {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border-radius: var(--panel-radius);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.25);
  color: transparent;
  flex-shrink: 0;
}

.licenseFormatOptionCard.isOn .licenseFormatOptionCheck {
  border-color: rgba(13, 97, 243, 0.8);
  background: linear-gradient(135deg, #0d61f3 0%, #4d8af7 100%);
  color: #fff;
}

.licenseFormatOptionCopy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.licenseFormatOptionCopy strong {
  font-size: 13px;
  font-weight: 600;
  color: #f0f0f0;
}

.licenseFormatOptionCopy span {
  font-size: 11.5px;
  line-height: 1.4;
  color: #8b929c;
}

.licenseFormatMeta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
}

.licenseFormatMetaStatus {
  font-size: 12px;
  color: #8b929c;
}

.licenseFormatMsg.isOk {
  color: #8fd4a2;
}

.licenseFormatMsg.isError {
  color: #f0b4b4;
}

.notificationWebhookCardToggle {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 76px;
  padding: 16px 18px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.notificationWebhookCardToggleCopy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.notificationWebhookCardToggleCopy h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.notificationWebhookCardToggleCopy p {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: #8b929c;
}

.notificationWebhookCardPanel {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.notificationWebhookCard.isOpen .notificationWebhookCardPanel {
  display: block;
}

.notificationWebhookChevron {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-top: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #8b929c;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.notificationWebhookCard.isOpen .notificationWebhookChevron {
  transform: rotate(180deg);
}

.webhookActions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.webhookEvents {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 4px 0 2px;
}

.webhookEvents .licenseFormatFieldLabel {
  margin-bottom: 2px;
}

.webhookEvents .stockGateCheck {
  width: fit-content;
}

.webhookEvents .stockGateCheck.is-checked .stockGateFakeCheck,
.webhookEvents .stockGateCheck:has(input:checked) .stockGateFakeCheck {
  background: linear-gradient(135deg, #0d61f3 0%, #4d8af7 100%);
  border-color: #0d61f3;
  box-shadow: 0 4px 14px rgba(13, 97, 243, 0.35);
}

.webhookEvents .stockGateCheck.is-checked .stockGateFakeCheck svg,
.webhookEvents .stockGateCheck:has(input:checked) .stockGateFakeCheck svg {
  opacity: 1;
  transform: scale(1);
}

.stockGateTree {
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: visible;
}

.stockGateCategory {
  background: transparent;
  border: 0;
}

.stockGateCategoryToggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 10px 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.stockGateCategoryToggleCopy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.stockGateCategoryToggleCopy strong {
  font-size: 13px;
  font-weight: 600;
  color: #f0f0f0;
}

.stockGateCategoryToggleCopy span {
  font-size: 11.5px;
  color: #8b929c;
}

.stockGateCategoryChevron {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  color: #8b929c;
  flex-shrink: 0;
  transition: transform 0.22s ease;
}

.stockGateCategory.isOpen .stockGateCategoryChevron {
  transform: rotate(180deg);
}

.stockGateReveal {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.32s ease, opacity 0.22s ease;
}

.stockGateCategory.isOpen > .stockGateReveal {
  grid-template-rows: 1fr;
  opacity: 1;
}

.stockGateRevealInner {
  overflow: hidden;
  min-height: 0;
}

.stockGateProducts {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 2px 0 16px 2px;
}

.stockGateProduct {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: transparent;
}

.stockGateCheck {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  padding: 4px 0;
  color: #d7dbe2;
  font-size: 13px;
  cursor: pointer;
  user-select: none;
}

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

.stockGateFakeCheck {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 2px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  display: grid;
  place-items: center;
  color: #fff;
  flex-shrink: 0;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.stockGateFakeCheck svg {
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.stockGateCheck input:checked + .stockGateFakeCheck {
  background: linear-gradient(135deg, #0d61f3 0%, #4d8af7 100%);
  border-color: #0d61f3;
  box-shadow: 0 4px 14px rgba(13, 97, 243, 0.35);
}

.stockGateCheck input:checked + .stockGateFakeCheck svg {
  opacity: 1;
  transform: scale(1);
}

.stockGateProductName {
  font-size: 13px;
  font-weight: 600;
  color: #f0f0f0;
}

.stockGateBranch {
  display: flex;
  align-items: stretch;
  gap: 14px;
  margin: 2px 0 0 11px;
  min-height: 0;
}

.stockGateBranchLine {
  width: 2px;
  background: #0d61f3;
  border-radius: 2px;
  flex-shrink: 0;
  transform-origin: top;
}

.stockGateCategory.isOpen .stockGateBranchLine {
  animation: stockGateLineIn 0.36s ease;
}

.stockGateBranchItems {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.stockGateVariantLink {
  display: inline-block;
  width: fit-content;
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: #7d8fb0;
  font-size: 13px;
  line-height: 1.35;
  text-decoration: none;
  cursor: default;
  opacity: 0;
  transform: translateX(-8px);
}

.stockGateCategory.isOpen .stockGateVariantLink {
  animation: stockGateLinkIn 0.28s ease forwards;
}

.stockGateVariantLink:hover {
  color: #4d8af7;
}

@keyframes stockGateLineIn {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

@keyframes stockGateLinkIn {
  from {
    opacity: 0;
    transform: translateX(-8px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.themeLight .stockGateCategoryToggleCopy strong,
.themeLight .stockGateProductName {
  color: #121417;
}

.themeLight .stockGateCategoryToggleCopy span {
  color: #5f6875;
}

.themeLight .stockGateFakeCheck {
  border-color: rgba(15, 18, 22, 0.16);
  background: #f4f5f7;
  color: #fff;
}

.themeLight .stockGateVariantLink {
  color: #5f6875;
}

.themeLight .stockGateVariantLink:hover {
  color: #0d61f3;
}

.sessionList {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sessionItem {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--panel-radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.18);
}

.sessionItem.isCurrent {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
}

.sessionDeviceIcon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: #bdbdbd;
  flex-shrink: 0;
}

.sessionMeta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.sessionTitleRow {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sessionTitleRow strong {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

.sessionCurrentBadge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #d7dbe1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.sessionDetails {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #8b929c;
}

.sessionIp {
  font-variant-numeric: tabular-nums;
  color: #c5cad1;
}

.themeLight .sessionItem {
  background: #f4f5f7;
  border-color: rgba(15, 18, 22, 0.08);
}

.themeLight .sessionItem.isCurrent {
  background: #ffffff;
  border-color: rgba(15, 18, 22, 0.14);
}

.themeLight .sessionTitleRow strong {
  color: #121417;
}

.themeLight .sessionDeviceIcon {
  background: rgba(15, 18, 22, 0.06);
  color: #5f6875;
}

.themeLight .sessionCurrentBadge {
  color: #3a424c;
  background: rgba(15, 18, 22, 0.06);
  border-color: rgba(15, 18, 22, 0.1);
}

.themeLight .sessionIp {
  color: #3a424c;
}

.themeLight .settingsCard,
.themeLight .settingsField,
.themeLight .themeSwitchBlock,
.themeLight .licenseFormatStudio,
.themeLight .licenseFormatHint,
.themeLight .licenseFormatOptionCard,
.themeLight .settingsHelpTipBubble {
  background: #ffffff;
  border-color: rgba(15, 18, 22, 0.08);
}

.themeLight .settingsCardHeader,
.themeLight .settingsProfileMeta strong,
.themeLight .settingsFieldValue,
.themeLight .themeSwitchCopy strong,
.themeLight .licenseFormatOptionCopy strong,
.themeLight .notificationWebhookCardToggleCopy h2 {
  color: #121417;
}

.themeLight .settingsCardHeader p,
.themeLight .settingsProfileMeta span,
.themeLight .settingsFieldLabel,
.themeLight .themeSwitchCopy span,
.themeLight .licenseFormatFieldLabel,
.themeLight .licenseFormatMetaStatus,
.themeLight .notificationWebhookCardToggleCopy p {
  color: #5f6875;
}

.themeLight .themeSwitch {
  background: #eceef1;
  border-color: rgba(15, 18, 22, 0.1);
}

.themeLight .themeSwitchOption {
  color: #6a7380;
}

.themeLight .licenseFormatInputShell,
.themeLight .licenseFormatLiveShell {
  background: #f4f5f7;
  border-color: rgba(15, 18, 22, 0.1);
}

.themeLight .licenseFormatInputShell input,
.themeLight .licenseFormatLiveShell code,
.themeLight .licenseFormatHint code {
  color: #121417;
}

.themeLight .licenseFormatOptionCard.isOn {
  border-color: rgba(13, 97, 243, 0.35);
  background: rgba(13, 97, 243, 0.08);
}

@media (max-width: 720px) {
  .settingsFieldGrid,
  .licenseFormatFieldsRow,
  .licenseFormatOptionGrid,
  .themeSwitchBlock {
    grid-template-columns: 1fr;
  }

  .themeSwitchBlock {
    flex-direction: column;
    align-items: stretch;
  }

  .settingsCardHeaderRow {
    flex-direction: column;
  }
}

.faqView {
  width: min(860px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.faqHero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 22px 22px 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(13, 97, 243, 0.22), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(0, 0, 0, 0.18));
}

.faqHeroBadge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(77, 138, 247, 0.4);
  background: rgba(13, 97, 243, 0.18);
  color: #c5dbf5;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.faqHeroTitle {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.faqHeroSubtitle {
  margin: 0;
  max-width: 520px;
  font-size: 13.5px;
  line-height: 1.55;
  color: #9ea5af;
}

.faqList {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faqItem {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(0, 0, 0, 0.22);
  overflow: hidden;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.faqItem:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.28);
}

.faqItem.isOpen,
.faqItem.isOpen:hover {
  border-color: rgba(77, 138, 247, 0.45);
  background: rgba(13, 97, 243, 0.1);
  box-shadow: 0 0 0 1px rgba(13, 97, 243, 0.12);
}

.faqQuestion {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 14px 14px 12px;
  border: 0;
  background: transparent;
  color: #f3f4f6;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.faqQuestionMain {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.faqIconWrap {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(13, 97, 243, 0.16);
  color: #8eb6ff;
  flex: 0 0 auto;
}

.faqItem.isOpen .faqIconWrap {
  background: rgba(13, 97, 243, 0.28);
  color: #c5dbf5;
}

.faqQuestionCopy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.faqTag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8b939e;
}

.faqItem.isOpen .faqTag {
  color: #8eb6ff;
}

.faqQuestionText {
  font-size: 14px;
  font-weight: 650;
  color: #f3f4f6;
  line-height: 1.35;
}

.faqChevronWrap {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  flex: 0 0 auto;
}

.faqChevron {
  color: #9ea5af;
  transition: transform 0.2s ease, color 0.2s ease;
}

.faqItem.isOpen .faqChevron {
  transform: rotate(180deg);
  color: #8eb6ff;
}

.faqAnswerPanel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.22s ease;
}

.faqItem.isOpen .faqAnswerPanel {
  grid-template-rows: 1fr;
}

.faqAnswer {
  overflow: hidden;
  min-height: 0;
  padding: 0 16px 0 60px;
  color: #9ea5af;
  font-size: 13.5px;
  line-height: 1.65;
}

.faqItem.isOpen .faqAnswer {
  padding-bottom: 16px;
}

.faqAnswer strong {
  color: #e8eaed;
  font-weight: 700;
}

.faqInlineLink {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: #9ec0ff;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.faqInlineLink:hover {
  color: #ffffff;
}

.faqSupportCard {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid rgba(77, 138, 247, 0.32);
  background: linear-gradient(135deg, rgba(13, 97, 243, 0.2), rgba(0, 0, 0, 0.2));
}

.faqSupportCopy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.faqSupportCopy strong {
  font-size: 14px;
  color: #ffffff;
}

.faqSupportCopy span {
  font-size: 12.5px;
  line-height: 1.5;
  color: #9ea5af;
}

.faqSupportButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(77, 138, 247, 0.5);
  background: #0d61f3;
  color: #fff;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.faqSupportButton:hover {
  background: #4d8af7;
}

.themeLight .faqHero {
  border-color: rgba(15, 18, 22, 0.1);
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(13, 97, 243, 0.1), transparent 55%),
    linear-gradient(180deg, #ffffff, #f7f8fa);
}

.themeLight .faqHeroTitle,
.themeLight .faqSupportCopy strong,
.themeLight .faqQuestionText,
.themeLight .faqAnswer strong {
  color: #15191f;
}

.themeLight .faqHeroSubtitle,
.themeLight .faqSupportCopy span,
.themeLight .faqAnswer,
.themeLight .faqTag {
  color: #5f6875;
}

.themeLight .faqItem {
  background: #ffffff;
  border-color: rgba(15, 18, 22, 0.1);
}

.themeLight .faqItem:hover {
  background: #fafbfc;
}

.themeLight .faqItem.isOpen,
.themeLight .faqItem.isOpen:hover {
  background: rgba(13, 97, 243, 0.05);
  border-color: rgba(13, 97, 243, 0.28);
}

.themeLight .faqSupportCard {
  background: linear-gradient(135deg, rgba(13, 97, 243, 0.08), #ffffff);
  border-color: rgba(13, 97, 243, 0.2);
}

@media (max-width: 720px) {
  .faqSupportCard {
    flex-direction: column;
    align-items: stretch;
  }

  .faqAnswer {
    padding-left: 16px;
  }
}

.panelBootLoading {
  min-height: calc(100vh - 24px);
  display: none;
  align-items: center;
  justify-content: center;
}

.page.isBooting .panelBootLoading:not([hidden]) {
  display: flex;
}

.panelLoadingSpinner {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 3px solid rgba(255, 255, 255, 0.12);
  border-top-color: #0d61f3;
  animation: dashboardSpin 0.7s linear infinite;
}

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

.page.isLogin,
html.dashboard-html.isLogin,
html.dashboard-html.isLogin body {
  overflow: auto;
  height: auto;
  max-height: none;
}

.page.isLogin {
  min-height: 100vh;
}

.loginGate {
  display: none;
  width: min(980px, 100%);
  margin: 0 auto;
  padding: 12px 8px 28px;
  min-height: calc(100vh - 48px);
  flex-direction: column;
  justify-content: center;
  gap: 28px;
}

.page.isLogin .loginGate:not([hidden]) {
  display: flex;
}

.loginGateHero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.loginGateLogo {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.loginGateBrand {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.loginGateDesc {
  margin: 0;
  max-width: 460px;
  font-size: 13.5px;
  line-height: 1.55;
  color: #bdbdbd;
}

.loginGateLayout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
  gap: 0 26px;
  align-items: stretch;
}

.loginGateSeparator {
  width: 1px;
  min-height: 100%;
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(255, 255, 255, 0.04) 14%,
    rgba(13, 97, 243, 0.5) 50%,
    rgba(255, 255, 255, 0.04) 86%,
    transparent 100%
  );
  box-shadow: 0 0 16px rgba(13, 97, 243, 0.18);
}

.loginGateFaqCard,
.loginAuthPanel {
  height: 100%;
  border-radius: var(--panel-radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #242934;
  overflow: hidden;
}

.loginGateFaqHead {
  padding: 18px 18px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: #2c313d;
}

.loginGateFaqHead h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 650;
  color: #ffffff;
}

.loginGateFaqHead p {
  margin: 6px 0 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: #8b929c;
}

.loginGateFaqList {
  display: flex;
  flex-direction: column;
  padding: 4px 0;
}

.loginGateFaqItem {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: transparent;
}

.loginGateFaqItem:first-child {
  border-top: 0;
}

.loginGateFaqQuestion {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border: 0;
  background: transparent;
  color: #f3f4f6;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.loginGateFaqQuestion:hover {
  background: rgba(255, 255, 255, 0.03);
}

.loginGateFaqChevron {
  flex: 0 0 auto;
  color: #9ea5af;
  transition: transform 0.18s ease;
}

.loginGateFaqItem.isOpen .loginGateFaqChevron {
  transform: rotate(180deg);
}

.loginGateFaqAnswerPanel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.2s ease;
}

.loginGateFaqItem.isOpen .loginGateFaqAnswerPanel {
  grid-template-rows: 1fr;
}

.loginGateFaqAnswer {
  overflow: hidden;
  min-height: 0;
  margin: 0;
  padding: 0 18px;
  color: #bdbdbd;
  font-size: 13px;
  line-height: 1.6;
}

.loginGateFaqItem.isOpen .loginGateFaqAnswer {
  padding-bottom: 14px;
}

.loginAuthBody {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px;
}

.loginThemeRow {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.loginDiscordBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 14px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #0d61f3 0%, #4d8af7 100%);
  box-shadow: var(--primary-glow);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.loginDiscordBtn:hover:not(:disabled) {
  background: linear-gradient(135deg, #4d8af7 0%, #0d61f3 100%);
}

.loginDiscordBtn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.cf-turnstile-widget {
  width: 100%;
  min-height: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: #1d2128;
  box-shadow: none;
  box-sizing: border-box;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: inherit;
  text-align: left;
  cursor: default;
}

button.cf-turnstile-widget {
  cursor: pointer;
}

button.cf-turnstile-widget:hover:not(:disabled) {
  border-color: rgba(255, 255, 255, 0.22);
  background: #222733;
}

button.cf-turnstile-widget:disabled,
.cf-turnstile-widget.isSuccess,
.cf-turnstile-widget.isVerifying {
  cursor: default;
}

.cf-turnstile-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.cf-turnstile-box {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.04);
  box-sizing: border-box;
}

.cf-turnstile-status {
  color: #fff;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.2;
  white-space: nowrap;
}

.cf-turnstile-check,
.cf-turnstile-spinner {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.cf-turnstile-check[hidden],
.cf-turnstile-spinner[hidden],
.cf-turnstile-box[hidden] {
  display: none !important;
}

.cf-turnstile-spinner {
  position: relative;
}

.cf-turnstile-spinner span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 4px;
  margin: -2px 0 0 -2px;
  border-radius: 50%;
  background: #22c55e;
  transform: rotate(calc(var(--i) * 45deg)) translateY(-8px);
  animation: cf-turnstile-dot 0.9s linear infinite;
  animation-delay: calc(var(--i) * -0.1125s);
}

.cf-turnstile-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  flex-shrink: 0;
  line-height: 1.1;
}

.cf-turnstile-logo {
  width: 34px;
  height: 14px;
  display: block;
}

.cf-turnstile-brand strong {
  color: #fff;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.cf-turnstile-links {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #9ec1ff;
  font-size: 7px;
}

.cf-turnstile-links a {
  color: #9ec1ff;
  text-decoration: underline;
  text-underline-offset: 1px;
}

.cf-turnstile-links a:hover {
  color: #bfd4ff;
}

@keyframes cf-turnstile-dot {
  0%,
  100% { opacity: 1; }
  50% { opacity: 0.2; }
}

.themeLight .cf-turnstile-widget {
  background: #eef0f3;
  border: 1px solid rgba(15, 18, 22, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
  color: #15191f;
}

.themeLight button.cf-turnstile-widget:hover:not(:disabled) {
  border-color: rgba(15, 18, 22, 0.28);
  background: #e7eaee;
}

.themeLight .cf-turnstile-status,
.themeLight .cf-turnstile-brand strong {
  color: #15191f;
}

.themeLight .cf-turnstile-box {
  border: 2px solid rgba(15, 18, 22, 0.45);
  background: #ffffff;
}

.themeLight .cf-turnstile-links,
.themeLight .cf-turnstile-links a {
  color: #0d61f3;
}

.themeLight .cf-turnstile-links a:hover {
  color: #0a4cc4;
}

.loginAuthMsg {
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.4;
  background: rgba(197, 48, 48, 0.16);
  border: 1px solid rgba(197, 48, 48, 0.4);
  color: #fecaca;
}

.loginAuthMsg[hidden] {
  display: none !important;
}

.loginAuthCheck {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #d5d7db;
  font-size: 13px;
  line-height: 1.45;
  cursor: pointer;
}

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

.loginAuthBox {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #1d2128;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #fff;
}

.loginAuthBox svg {
  opacity: 0;
}

.loginAuthCheck.is-checked .loginAuthBox,
.loginAuthCheck:has(input:checked) .loginAuthBox {
  background: #0d61f3;
  border-color: #0d61f3;
}

.loginAuthCheck.is-checked .loginAuthBox svg,
.loginAuthCheck:has(input:checked) .loginAuthBox svg {
  opacity: 1;
}

.loginAuthCheck a {
  color: #9ec0ff;
  font-weight: 700;
}

.loginSignOutBtn {
  border: 0;
  background: transparent;
  color: #9ea5af;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  align-self: flex-start;
}

.loginSignOutBtn:hover {
  color: #ffffff;
}

.themeLight .loginGateBrand,
.themeLight .loginGateFaqHead h2,
.themeLight .loginGateFaqQuestion {
  color: #15191f;
}

.themeLight .loginGateDesc,
.themeLight .loginGateFaqHead p,
.themeLight .loginGateFaqAnswer,
.themeLight .loginAuthCheck {
  color: #5f6875;
}

.themeLight .loginGateFaqCard,
.themeLight .loginAuthPanel {
  background: #ffffff;
  border: 1px solid rgba(15, 18, 22, 0.08);
  box-shadow: none;
}

.themeLight .loginGateFaqHead {
  background: #f4f6f8;
  border-bottom-color: rgba(15, 18, 22, 0.08);
}

.themeLight .loginGateFaqQuestion:hover {
  background: rgba(15, 18, 22, 0.03);
}

.themeLight .loginGateFaqItem {
  border-top-color: rgba(15, 18, 22, 0.08);
}

.themeLight .loginAuthBox {
  border-color: rgba(15, 18, 22, 0.35);
  background: #ffffff;
}

.themeLight .loginAuthCheck.is-checked .loginAuthBox,
.themeLight .loginAuthCheck:has(input:checked) .loginAuthBox {
  background: #0d61f3;
  border-color: #0d61f3;
  color: #ffffff;
}

.themeLight .loginAuthCheck a {
  color: #0d61f3;
}

.themeLight .loginSignOutBtn:hover {
  color: #15191f;
}

@media (max-width: 860px) {
  .loginGateLayout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .loginGateSeparator {
    display: none;
  }

  .loginThemeRow {
    flex-direction: column;
    align-items: stretch;
  }
}
