:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #f7f9ff;
  background: #070b14;
  --bg: #070b14;
  --bg-elevated: #0d1320;
  --surface: #111a2a;
  --surface-hover: #172338;
  --surface-soft: rgba(19, 29, 46, 0.74);
  --line: rgba(255, 255, 255, 0.11);
  --line-strong: rgba(255, 255, 255, 0.2);
  --text: #f7f9ff;
  --text-soft: #aab5c8;
  --text-muted: #7f8ba0;
  --blue: #1677ff;
  --blue-bright: #54a1ff;
  --blue-soft: rgba(22, 119, 255, 0.16);
  --green: #49d69a;
  --red: #ff6d78;
  --yellow: #ffd166;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-lg: 0 30px 90px rgba(0, 0, 0, 0.36);
  --content-width: 1480px;
  --interactive-height: 40px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 20% -10%, rgba(22, 119, 255, 0.13), transparent 34rem),
    var(--bg);
  color: var(--text);
}

body,
button,
input,
select {
  font: inherit;
}

button,
input,
select,
summary,
a {
  -webkit-tap-highlight-color: transparent;
}

button,
summary {
  cursor: pointer;
}

button,
input,
select {
  border: 0;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(84, 161, 255, 0.72);
  outline-offset: 3px;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

button[aria-busy="true"]::before {
  width: 0.85em;
  height: 0.85em;
  margin-right: 0.55em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  content: "";
  animation: button-spin 700ms linear infinite;
}

@keyframes button-spin {
  to { transform: rotate(360deg); }
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.app-header {
  position: sticky;
  z-index: 50;
  top: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  min-height: 76px;
  padding: 0 clamp(20px, 3vw, 52px);
  border-bottom: 1px solid var(--line);
  background: rgba(7, 11, 20, 0.82);
  backdrop-filter: blur(24px) saturate(145%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(145deg, #0b8cff, #0048bc);
  box-shadow: 0 8px 28px rgba(22, 119, 255, 0.32);
  color: white;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.08em;
}

.brand-copy {
  display: grid;
  gap: 1px;
  line-height: 1;
}

.brand-copy small {
  color: var(--text-soft);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.brand-copy strong {
  font-size: 18px;
  letter-spacing: 0.06em;
}

.store-tabs {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  padding: 0 24px;
  transform: translate(-50%, -50%);
}

.store-tab,
.header-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--interactive-height);
  min-height: var(--interactive-height);
  max-height: var(--interactive-height);
  border-radius: 999px;
  background: transparent;
  color: var(--text-soft);
  padding: 0 16px;
  font-size: 13px;
  font-weight: 650;
  transition: color 160ms ease, background 160ms ease;
}

.store-tab:hover,
.header-button:hover {
  background: rgba(255, 255, 255, 0.07);
  color: white;
}

.store-tab.active {
  background: white;
  color: #08101d;
}

.header-button {
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.header-button.active {
  background: rgba(255, 255, 255, 0.12);
  color: white;
}

.header-button.auth-action.is-login {
  background: var(--blue);
  box-shadow: 0 8px 24px rgba(22, 119, 255, 0.24);
  color: white;
}

.header-button.auth-action.is-login:hover {
  background: var(--blue-bright);
}

.header-button.auth-action.is-logout {
  background: rgba(255, 109, 120, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 109, 120, 0.18);
  color: #ffb6bc;
}

.header-button.auth-action.is-logout:hover {
  background: rgba(255, 109, 120, 0.28);
  color: white;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.header-actions > [hidden] {
  display: none !important;
}

.user-identity {
  display: inline-flex;
  align-items: center;
  height: var(--interactive-height);
  min-height: var(--interactive-height);
  max-height: var(--interactive-height);
  padding: 0 16px;
  border-radius: 999px;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 650;
}

.login-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { width: min(100%, 390px); display: grid; gap: 16px; padding: 32px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); box-shadow: 0 24px 80px rgb(0 0 0 / 28%); }
.login-card h1 { margin: 8px 0 0; }.login-help { color: var(--text-muted); margin: 0; }.login-error { color: #ff7c87; margin: 0; }

.connection-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-right: 4px;
  color: var(--text-muted);
  font-size: 12px;
}

.connection-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 4px rgba(255, 209, 102, 0.12);
}

.connection-state.is-online .connection-dot {
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(73, 214, 154, 0.12);
}

.connection-state.is-error .connection-dot {
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(255, 109, 120, 0.12);
}

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

.button-primary,
.button-quiet,
.button-danger,
.pagination-button,
.filter-submit,
.card-actions button,
.card-actions a,
.table-action,
.all-games-subtabs button,
.publisher-action,
.menu-option,
.menu-reset,
.config-region-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--interactive-height);
  min-height: var(--interactive-height);
  max-height: var(--interactive-height);
  overflow: hidden;
  border-radius: 999px;
  padding: 0 18px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.button-primary,
.filter-submit {
  background: white;
  color: #08101d;
}

.button-primary:hover,
.filter-submit:hover {
  background: #ddecff;
  transform: translateY(-1px);
}

.button-quiet,
.pagination-button {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.06);
  color: white;
}

.button-quiet:hover,
.pagination-button:hover {
  border-color: rgba(84, 161, 255, 0.7);
  background: var(--blue-soft);
}

.button-quiet.is-active {
  border-color: var(--blue);
  background: var(--blue);
  color: white;
}

.button-danger {
  border: 1px solid rgba(255, 109, 120, 0.5);
  background: rgba(255, 109, 120, 0.12);
  color: #ffb6bc;
}

.button-danger:hover {
  border-color: rgba(255, 109, 120, 0.8);
  background: rgba(255, 109, 120, 0.2);
}

.store-hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(540px, 68vh, 730px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #090f1b;
}

.hero-backdrop {
  position: absolute;
  z-index: -4;
  inset: -8%;
  width: 116%;
  height: 116%;
  object-fit: cover;
  opacity: 0.42;
  filter: blur(18px) saturate(1.22);
  transform: scale(1.04);
  transition: opacity 320ms ease;
}

.hero-backdrop:not([src]),
.hero-artwork:not([src]) {
  opacity: 0;
}

.store-hero::before,
.store-hero::after {
  position: absolute;
  z-index: -3;
  inset: 0;
  content: "";
  pointer-events: none;
}

.store-hero::before {
  background:
    linear-gradient(90deg, rgba(5, 9, 17, 0.98) 0%, rgba(5, 9, 17, 0.78) 42%, rgba(5, 9, 17, 0.28) 76%, rgba(5, 9, 17, 0.62) 100%),
    linear-gradient(0deg, #070b14 0%, transparent 38%, rgba(7, 11, 20, 0.26) 100%);
}

.store-hero::after {
  opacity: 0.72;
  background:
    radial-gradient(circle at 82% 28%, rgba(40, 126, 255, 0.2), transparent 26rem),
    linear-gradient(120deg, transparent 56%, rgba(21, 91, 210, 0.12));
}

.hero-glow {
  position: absolute;
  z-index: -2;
  top: -260px;
  right: -120px;
  width: 720px;
  height: 720px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 48% 52% 70% 30% / 35% 40% 60% 65%;
  transform: rotate(24deg);
}

.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  align-items: center;
  width: min(100%, var(--content-width));
  min-height: clamp(540px, 68vh, 730px);
  margin: 0 auto;
  padding: 58px clamp(24px, 4vw, 68px) 120px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.eyebrow,
.section-kicker {
  color: var(--blue-bright);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.hero-copy h1 {
  max-width: 760px;
  margin-top: 16px;
  font-size: clamp(38px, 5.5vw, 80px);
  font-weight: 760;
  letter-spacing: -0.045em;
  line-height: 0.98;
  text-wrap: balance;
  text-shadow: 0 8px 36px rgba(0, 0, 0, 0.35);
}

.hero-meta {
  max-width: 620px;
  margin-top: 20px;
  color: #c3ccda;
  font-size: clamp(14px, 1.4vw, 17px);
  line-height: 1.6;
}

.hero-pricing {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  min-height: 48px;
  margin-top: 24px;
}

.hero-pricing strong {
  font-size: clamp(28px, 3vw, 42px);
  letter-spacing: -0.03em;
}

.hero-pricing s {
  color: var(--text-muted);
  font-size: 15px;
}

.hero-discount {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 999px;
  background: var(--blue);
  color: white;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 800;
}

.hero-discount:empty,
.hero-pricing s:empty {
  display: none;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-actions > button,
.operations-actions > button,
.config-actions-inline > button,
.config-actions > button,
.config-actions > a,
.publisher-actions button,
.pagination button {
  width: fit-content;
  flex: 0 0 auto;
}

.hero-artwork-wrap {
  display: grid;
  justify-content: end;
  padding-right: clamp(0px, 3vw, 44px);
  perspective: 1200px;
}

.hero-artwork-frame {
  position: relative;
  width: clamp(250px, 25vw, 390px);
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: clamp(20px, 2vw, 30px);
  background: linear-gradient(145deg, #17253e, #0b111e);
  box-shadow: 0 38px 80px rgba(0, 0, 0, 0.5);
  transform: rotateY(-5deg) rotateX(1deg);
}

.hero-artwork-frame::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), transparent 28%, transparent 70%, rgba(0, 0, 0, 0.2));
  content: "";
  pointer-events: none;
}

.hero-artwork {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 260ms ease, transform 500ms ease;
}

.hero-artwork-frame:hover .hero-artwork {
  transform: scale(1.025);
}

.hero-metrics {
  position: absolute;
  right: clamp(24px, 4vw, 68px);
  bottom: 28px;
  left: clamp(24px, 4vw, 68px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(7, 12, 21, 0.62);
  backdrop-filter: blur(20px) saturate(130%);
}

.hero-metrics article {
  min-width: 0;
  padding: 15px 18px;
  border-right: 1px solid var(--line);
}

.hero-metrics article:last-child {
  border-right: 0;
}

.hero-metrics span,
.hero-metrics strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-metrics span {
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hero-metrics strong {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 680;
}

.store-main {
  width: min(100%, var(--content-width));
  margin: 0 auto;
  padding: clamp(48px, 6vw, 88px) clamp(20px, 4vw, 68px) 80px;
}

.settings-view {
  max-width: 920px;
  margin: 0 auto;
}

.settings-page-heading h2 {
  margin-top: 8px;
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: -0.035em;
}

.settings-page-heading > p:last-child {
  max-width: 680px;
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

.settings-panel-card {
  margin-top: 28px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.025);
}

.settings-preferences-form {
  margin-top: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.settings-preferences-heading,
.settings-regions,
.settings-actions {
  grid-column: 1 / -1;
}

.settings-preferences-heading {
  padding: 0 0 8px;
}

.settings-regions > .config-help {
  max-width: 720px;
  margin: 8px 0 0;
}

.settings-preferences-form .settings-regions-group,
.settings-preferences-form .settings-interface-group,
.settings-preferences-form .settings-actions {
  grid-column: 1 / -1;
}

.settings-interface-group .config-help {
  grid-column: 1 / -1;
}

.settings-interface-group .config-field {
  grid-column: span 1;
}

.catalog-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.catalog-heading h2 {
  margin-top: 8px;
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: -0.035em;
}

.catalog-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 11px;
}

.catalog-status[hidden] {
  display: none;
}

.catalog-status strong {
  color: var(--text-soft);
  font-weight: 700;
}

.result-summary {
  color: var(--text-soft);
  font-size: 13px;
}

.filters {
  display: grid;
  grid-template-columns: minmax(230px, 1.8fr) repeat(3, minmax(130px, 0.75fr)) repeat(2, minmax(112px, 0.72fr)) auto;
  align-items: end;
  gap: 12px;
  margin-top: 28px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-md);
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.035), transparent 46%),
    rgba(5, 11, 20, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.filters > * {
  min-width: 0;
}

.field {
  display: grid;
  min-width: 0;
  gap: 7px;
}

.field > span {
  color: #96a2b5;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.1em;
}

.field input,
.field select,
.select-button {
  width: 100%;
  height: var(--interactive-height);
  min-height: var(--interactive-height);
  max-height: var(--interactive-height);
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background-color: rgba(255, 255, 255, 0.045);
  color: white;
  padding: 0 14px;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.select-button.is-locked {
  border-color: rgba(84, 161, 255, 0.38);
  background: rgba(22, 119, 255, 0.1);
  cursor: not-allowed;
  opacity: 1;
}

.select-button.is-locked::after {
  display: none;
}

.field select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 38px;
  background-image:
    linear-gradient(45deg, transparent 50%, #8f9bae 50%),
    linear-gradient(135deg, #8f9bae 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 19px,
    calc(100% - 13px) 19px;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
}

.field select option {
  background: #111a29;
  color: #f7f9ff;
}

.field input::placeholder {
  color: #748198;
}

.field input:hover,
.field select:hover,
.select-button:hover {
  border-color: rgba(255, 255, 255, 0.19);
  background-color: rgba(255, 255, 255, 0.075);
}

.field input:focus-visible,
.field select:focus-visible,
.dropdown.open .select-button {
  border-color: rgba(96, 167, 255, 0.78);
  background-color: rgba(22, 119, 255, 0.1);
  outline: none;
}

.search-field input {
  padding-left: 16px;
}

.mobile-view-field {
  display: none;
}

.dropdown {
  position: relative;
  min-width: 0;
}

.select-button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  overflow: hidden;
  padding-right: 38px;
  text-align: left;
}

.native-select {
  width: 100%;
}

.native-select-source {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  margin: -1px;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
}

.native-select .select-button {
  width: 100%;
}

.select-value {
  flex: 1 1 0;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  color: #edf3ff;
  font-size: 13px;
  font-weight: 620;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.select-count {
  display: inline-grid;
  flex: 0 0 auto;
  min-width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  background: rgba(62, 145, 255, 0.16);
  color: #8fc1ff;
  padding: 0 6px;
  font-size: 11px;
  font-weight: 800;
}

.select-button::after {
  position: absolute;
  top: 50%;
  right: 14px;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--text-soft);
  border-bottom: 1.5px solid var(--text-soft);
  content: "";
  transform: translateY(-70%) rotate(45deg);
  transition: border-color 160ms ease, transform 160ms ease;
}

.dropdown.open .select-button::after {
  border-color: var(--blue-bright);
  transform: translateY(-20%) rotate(225deg);
}

.dropdown-menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 8px);
  left: 0;
  display: grid;
  width: max(100%, 252px);
  max-width: min(280px, calc(100vw - 36px));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 80px),
    rgba(9, 15, 26, 0.985);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.48), 0 4px 16px rgba(0, 0, 0, 0.28);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px) scale(0.99);
  transform-origin: top left;
  visibility: hidden;
  backdrop-filter: blur(28px) saturate(130%);
  transition: opacity 150ms ease, transform 150ms ease, visibility 150ms ease;
}

.dropdown.open .dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  visibility: visible;
}

.menu-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0 13px;
}

.menu-title {
  color: #f5f8ff;
  font-size: 12px;
  font-weight: 760;
}

.menu-selection {
  flex: 0 0 auto;
  color: #8794a9;
  font-size: 10px;
  font-weight: 700;
}

.menu-locked {
  margin: 0;
  color: var(--text-muted);
  padding: 14px;
  font-size: 12px;
  line-height: 1.5;
}

.menu-options {
  max-height: 220px;
  overflow: auto;
  padding: 5px 0;
  overscroll-behavior: contain;
  scrollbar-color: rgba(143, 155, 174, 0.38) transparent;
  scrollbar-width: thin;
}

.menu-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  height: var(--interactive-height);
  min-height: var(--interactive-height);
  max-height: var(--interactive-height);
  padding: 6px 13px;
  color: #bec8d7;
  cursor: pointer;
  font-size: 13px;
  transition: background 140ms ease, color 140ms ease;
}

.menu-row:hover {
  background: rgba(255, 255, 255, 0.055);
  color: white;
}

.menu-row input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.check-indicator {
  position: relative;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(255, 255, 255, 0.27);
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.14);
  transition: border-color 140ms ease, background 140ms ease;
}

.check-indicator::after {
  position: absolute;
  top: 3px;
  left: 6px;
  width: 4px;
  height: 8px;
  border-right: 2px solid white;
  border-bottom: 2px solid white;
  content: "";
  opacity: 0;
  transform: rotate(42deg) scale(0.5);
  transition: opacity 120ms ease, transform 120ms ease;
}

.menu-row input:checked + .check-indicator {
  border-color: #2d8cff;
  background: var(--blue);
}

.menu-row input:checked + .check-indicator::after {
  opacity: 1;
  transform: rotate(42deg) scale(1);
}

.menu-row:has(input:checked) {
  color: #f4f8ff;
}

.menu-row:has(input:focus-visible) {
  background: rgba(22, 119, 255, 0.13);
}

.menu-option {
  display: flex;
  align-items: center;
  width: 100%;
  height: var(--interactive-height);
  min-height: var(--interactive-height);
  max-height: var(--interactive-height);
  gap: 10px;
  border: 0;
  background: transparent;
  color: #bec8d7;
  padding: 6px 13px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  text-align: left;
  transition: background 140ms ease, color 140ms ease;
  border-radius: 0;
}

.menu-option:hover,
.menu-option:focus-visible {
  background: rgba(255, 255, 255, 0.055);
  color: white;
  outline: none;
}

.menu-option.is-selected {
  color: #f4f8ff;
}

.menu-option-indicator {
  position: relative;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(255, 255, 255, 0.27);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.14);
}

.menu-option.is-selected .menu-option-indicator {
  border-color: #2d8cff;
  background: var(--blue);
  box-shadow: inset 0 0 0 4px rgba(9, 15, 26, 0.78);
}

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

.menu-empty {
  margin: 0;
  color: var(--text-muted);
  padding: 22px 15px;
  font-size: 12px;
  text-align: center;
}

.menu-reset {
  height: var(--interactive-height);
  min-height: var(--interactive-height);
  max-height: var(--interactive-height);
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
  color: #83b8ff;
  font-size: 11px;
  font-weight: 760;
  text-align: center;
  transition: background 140ms ease, color 140ms ease;
  border-radius: 0;
}

.menu-reset:hover {
  background: rgba(22, 119, 255, 0.1);
  color: #b6d5ff;
}

.filter-submit {
  height: var(--interactive-height);
  min-height: var(--interactive-height);
  max-height: var(--interactive-height);
  width: max-content;
  max-width: 100%;
  justify-self: end;
  white-space: nowrap;
}

.filter-submit.is-dirty {
  box-shadow: 0 0 0 3px rgba(84, 161, 255, 0.17);
}

.filters > #searchProducts {
  grid-column: -2 / -1;
  width: fit-content;
  min-width: 0;
  max-width: 100%;
  justify-self: end;
  align-self: center;
}

.catalog-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 18px 0 22px;
}

.catalog-tools-bottom {
  justify-content: space-between;
  margin: 22px 0 0;
}

.catalog-tools-bottom .pagination {
  flex: 0 0 auto;
}

.publisher-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  flex: 1 1 auto;
  gap: 8px;
  min-width: 0;
}

.catalog-tools > .shortcut-bar,
.catalog-tools-bottom > .publisher-actions {
  justify-content: flex-start;
  margin-left: 0;
  padding-left: 0;
}

.catalog-tools > .shortcut-bar > #refreshPage,
.catalog-tools-bottom > .publisher-actions #batchHideAction {
  margin-left: 0;
}

.publisher-action-group {
  display: flex;
  align-items: center;
  min-width: 0;
  flex-wrap: wrap;
  gap: 8px;
}

.all-games-subtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.all-games-subtabs button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  padding: 0 13px;
  font-size: 11px;
  font-weight: 750;
}

.all-games-subtabs button:hover,
.all-games-subtabs button.active {
  border-color: rgba(84, 161, 255, 0.72);
  background: var(--blue-soft);
  color: #c9e2ff;
}

.all-games-subtabs button[hidden] {
  display: none;
}

.all-games-subtabs[hidden] {
  display: none !important;
}

.publisher-action {
  max-width: min(100%, 300px);
  overflow: hidden;
  padding: 0 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

.catalog-batch-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.batch-action,
.publisher-action {
  flex: 0 0 auto;
  height: var(--interactive-height);
  min-height: var(--interactive-height);
  max-height: var(--interactive-height);
}

.batch-action {
  padding: 0 15px;
  font-size: 12px;
}

.batch-action:hover:not(:disabled),
.batch-action:active:not(:disabled) {
  border-color: rgba(84, 161, 255, 0.7);
  background: var(--blue-soft);
  color: white;
}

.publisher-action.is-active {
  border-color: rgba(255, 109, 120, 0.62);
  background: rgba(255, 109, 120, 0.15);
  color: #ffb6bc;
}

.publisher-action.is-active:hover:not(:disabled),
.publisher-action.is-active:active:not(:disabled) {
  border-color: rgba(255, 109, 120, 0.92);
  background: rgba(255, 109, 120, 0.25);
  color: white;
}

.batch-action:disabled,
.publisher-action:not(.is-active):disabled,
.publisher-action.is-active:disabled {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
}

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

.publisher-rule-sources {
  display: grid;
  flex: 1 1 100%;
  gap: 3px;
  min-width: min(100%, 280px);
  max-width: 520px;
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1.35;
}

.publisher-rule-scope-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: var(--interactive-height);
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text-soft);
  font-size: 11px;
  cursor: pointer;
}

.publisher-rule-scope-option input {
  accent-color: var(--blue);
}

.publisher-rule-regions {
  display: flex;
  flex: 1 1 100%;
  flex-wrap: wrap;
  gap: 5px;
  min-width: min(100%, 280px);
}

.publisher-rule-region-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid rgba(84, 161, 255, 0.35);
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--text-soft);
  font-size: 10px;
}

.publisher-rule-region-chip.is-empty {
  border-color: var(--line);
  background: transparent;
  color: var(--text-muted);
}

.publisher-rule-regions[hidden],
.publisher-rule-scope-option[hidden] {
  display: none;
}

.publisher-rule-source {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 5px 8px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.publisher-rule-source strong {
  color: var(--text-soft);
  font-size: 10px;
}

.publisher-rule-source span,
.publisher-rule-source small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.publisher-rule-source small {
  grid-column: 1 / -1;
  color: var(--text-muted);
}

.publisher-rule-sources[hidden] {
  display: none;
}

.card-meta-row {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 6px;
}

.card-meta-row .card-expiry {
  min-width: 0;
  flex: 1 1 auto;
}

.visibility-cycle {
  display: inline-flex;
  flex: 0 0 28px;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-height: 28px;
  max-height: 28px;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: var(--text-muted);
  padding: 0;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.visibility-cycle:hover:not(:disabled),
.visibility-cycle:focus-visible {
  border-color: transparent;
  background: transparent;
  color: var(--blue-bright);
}

.visibility-cycle:focus-visible {
  outline: none;
  box-shadow: none;
  filter: drop-shadow(0 0 3px rgba(84, 161, 255, 0.9));
}

.visibility-cycle:disabled {
  cursor: wait;
  opacity: 0.46;
}

.shortcut-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-start;
  color: var(--text-muted);
  font-size: 11px;
}

.shortcut-bar span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.page-refresh {
  margin-left: 0;
  padding: 0 13px;
  font-size: 11px;
}

kbd {
  display: inline-grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.055);
  color: #d8e0ed;
  padding: 0 6px;
  font: inherit;
  font-weight: 700;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pagination-button {
  padding: 0 15px;
  font-size: 12px;
}

.page-number {
  min-width: 70px;
  color: var(--text-muted);
  text-align: center;
  font-size: 11px;
}

.page-number strong {
  color: white;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(214px, 1fr));
  gap: clamp(14px, 1.4vw, 22px);
  outline: none;
  transition: opacity 180ms ease;
}

.product-grid.is-loading {
  opacity: 0.52;
  pointer-events: none;
}

.empty-products {
  grid-column: 1 / -1;
  display: grid;
  min-height: 280px;
  place-items: center;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text-muted);
}

.product-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-width: 0;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  background: var(--surface);
  content-visibility: auto;
  contain-intrinsic-size: 420px;
  cursor: pointer;
  transition: transform 190ms ease, border-color 190ms ease, box-shadow 190ms ease, background 190ms ease;
}

.product-card:hover {
  z-index: 2;
  border-color: var(--line-strong);
  background: var(--surface-hover);
  transform: translateY(-5px);
}

.product-card.selected {
  z-index: 3;
  border-color: rgba(84, 161, 255, 0.92);
  box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.2), 0 24px 60px rgba(0, 0, 0, 0.34);
  transform: translateY(-5px);
}

.product-card.row-blocked {
  opacity: 0.72;
}

.product-card.row-blocked .cover img {
  filter: grayscale(0.72) brightness(0.72);
}

.product-card.row-blocked .cover::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: rgba(7, 11, 20, 0.2);
  content: "";
  pointer-events: none;
}

.cover {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: linear-gradient(145deg, #1b2a43, #0b111d);
}

.cover::after {
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  background: linear-gradient(transparent, rgba(4, 7, 13, 0.78));
  content: "";
  pointer-events: none;
}

.cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}

.cover img:not(.is-loaded) {
  visibility: hidden;
}

.cover-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  background:
    radial-gradient(circle at 70% 18%, rgba(84, 161, 255, 0.3), transparent 36%),
    linear-gradient(145deg, #172943, #09111f);
  color: rgba(255, 255, 255, 0.38);
  font-size: 32px;
  font-weight: 850;
  letter-spacing: -0.08em;
}

.product-card:hover .cover img,
.product-card.selected .cover img {
  transform: scale(1.035);
}

.discount-pill,
.region-pill {
  position: absolute;
  z-index: 2;
  top: 12px;
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  border-radius: 999px;
  padding: 0 9px;
  font-size: 11px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.discount-pill {
  left: 12px;
  background: var(--blue);
  color: white;
}

.region-pill {
  right: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(5, 9, 17, 0.7);
  color: #eef4ff;
}

.card-body {
  display: grid;
  align-content: start;
  gap: 7px;
  padding: 16px 16px 12px;
}

.card-kicker,
.muted,
.card-publisher,
.card-expiry {
  color: var(--text-muted);
  font-size: 11px;
}

.card-kicker {
  overflow: hidden;
  color: var(--blue-bright);
  font-weight: 750;
  letter-spacing: 0.06em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.card-title {
  display: -webkit-box;
  min-height: 44px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: white;
  font-size: 15px;
  font-weight: 720;
  line-height: 1.42;
}

.card-publisher {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-publisher.publisher-link {
  display: block;
  width: 100%;
  overflow: hidden;
  background: transparent;
  color: var(--text-muted);
  padding: 0;
  text-align: left;
  white-space: normal;
}

.card-publisher.publisher-link > span:first-child {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.publisher-group-name {
  display: block;
  overflow: hidden;
  margin-top: 2px;
  color: var(--blue-bright);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-publisher.publisher-link:hover {
  color: var(--blue-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.card-pricing {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 5px;
}

.card-price {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.card-base-price {
  color: var(--text-muted);
  font-size: 11px;
}

.card-status-tags {
  position: absolute;
  z-index: 3;
  right: 12px;
  bottom: 12px;
  left: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  pointer-events: none;
}

.card-status-tags-left,
.card-status-tags-right {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.card-status-tags-left {
  justify-content: flex-start;
}

.card-status-tags-right {
  justify-content: flex-end;
  margin-left: auto;
}

.card-status-tags-left:empty,
.card-status-tags-right:empty,
.card-status-tags-left[hidden],
.card-status-tags-right[hidden] {
  display: none;
}

.card-status-tags .badge {
  flex: 0 1 auto;
}

.badge {
  display: inline-flex;
  flex: 0 1 auto;
  align-items: center;
  min-height: 22px;
  min-width: 0;
  overflow: hidden;
  border-radius: 999px;
  padding: 0 7px;
  background: rgba(5, 9, 17, 0.76);
  color: var(--text-soft);
  font-size: 10px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
  backdrop-filter: blur(10px);
}

.badge.wishlist {
  background: var(--blue-soft);
  color: #8dc1ff;
}

.badge.blocked {
  background: rgba(255, 109, 120, 0.12);
  color: #ff9da5;
}

.badge.publisher-blocked {
  border: 1px solid rgba(255, 109, 120, 0.5);
  background: rgba(255, 109, 120, 0.16);
  color: #ffb6bc;
}

.badge.individually-shown {
  border: 1px solid rgba(105, 201, 145, 0.28);
  background: rgba(105, 201, 145, 0.14);
  color: #a7e9c1;
}

.card-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 0 12px 13px;
}

.card-actions button,
.card-actions a {
  min-width: 0;
  height: var(--interactive-height);
  min-height: var(--interactive-height);
  max-height: var(--interactive-height);
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.045);
  color: #dce5f2;
  padding: 0 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
}

.card-actions button:disabled,
.card-actions a:disabled {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
}

.card-actions button:hover:not(:disabled),
.card-actions a:hover:not(:disabled),
.card-actions button:active:not(:disabled),
.card-actions a:active:not(:disabled) {
  border-color: rgba(84, 161, 255, 0.55);
  background: var(--blue-soft);
  color: white;
}

.card-actions .btn-wishlist.active,
.card-actions .btn-wishlist[data-active="1"] {
  border-color: var(--blue);
  background: var(--blue);
  color: white;
}

.card-actions .btn-wishlist.active:hover:not(:disabled),
.card-actions .btn-wishlist.active:active:not(:disabled),
.card-actions .btn-wishlist[data-active="1"]:hover:not(:disabled),
.card-actions .btn-wishlist[data-active="1"]:active:not(:disabled) {
  border-color: var(--blue-bright);
  background: var(--blue-bright);
  color: white;
}

.card-actions .btn-block.is-auto-choice {
  border-color: rgba(255, 109, 120, 0.62);
  background: rgba(255, 109, 120, 0.15);
  color: #ffb6bc;
}

.card-actions .btn-block.is-auto-choice:hover:not(:disabled),
.card-actions .btn-block.is-auto-choice:active:not(:disabled) {
  border-color: rgba(255, 109, 120, 0.92);
  background: rgba(255, 109, 120, 0.25);
  color: white;
}

.control-page-heading {
  display: block;
}

.control-page-heading h2 {
  margin-top: 8px;
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: -0.035em;
}

.control-page-heading .config-help {
  max-width: 690px;
  margin-top: 8px;
}

.operations-panel {
  margin-top: 28px;
  overflow: visible;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.025);
}

.operations-panel[hidden] {
  display: none;
}

.operations-content {
  padding: 0 24px 24px;
}

.operations-heading {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0 20px;
}

.operations-heading h2 {
  font-size: 24px;
}

.operations-heading p {
  margin-top: 7px;
  color: var(--text-muted);
  font-size: 13px;
}

.operations-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: auto;
}

.config-heading > button {
  margin-left: auto;
}

.danger-button {
  border-color: rgba(255, 109, 120, 0.35);
  color: #ffabb2;
}

.danger-button:hover {
  border-color: rgba(255, 109, 120, 0.65);
  background: rgba(255, 109, 120, 0.12);
}

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

.control-stat,
.progress-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(8, 13, 23, 0.58);
}

.control-stat {
  min-width: 0;
  padding: 14px 15px;
}

.control-stat span {
  display: block;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.control-stat strong {
  display: block;
  margin-top: 7px;
  overflow: hidden;
  color: #eef4ff;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.progress-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 32px;
}

.progress-card {
  min-width: 0;
  padding: 14px 15px;
}

.progress-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.progress-card-heading strong {
  overflow: hidden;
  color: #dce7f7;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.progress-track {
  position: relative;
  height: 6px;
  overflow: hidden;
  margin-top: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2d8cff, #83c2ff);
  transition: width 240ms ease;
}

.progress-track.is-indeterminate span {
  width: 38% !important;
  animation: progress-slide 1.6s ease-in-out infinite;
}

.progress-card p,
.panel-empty {
  margin: 9px 0 0;
  color: var(--text-muted);
  font-size: 11px;
}

@keyframes progress-slide {
  from { transform: translateX(-110%); }
  to { transform: translateX(285%); }
}

.config-section {
  margin: 8px 0 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.config-heading {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}

.config-heading h2 {
  font-size: 22px;
}

.config-heading p {
  max-width: 690px;
  margin-top: 7px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.55;
}

.config-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: 12px;
  margin-top: 18px;
}

.config-group {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
}

.config-group h3 {
  grid-column: 1 / -1;
  margin: 0;
  color: #dce5f2;
  font-size: 13px;
}

.config-group .config-regions {
  grid-column: 1 / -1;
}

.config-regions {
  grid-column: 1 / -1;
  min-width: 0;
  margin: 0;
  border: 0;
  padding: 0;
}

.config-regions legend,
.config-field span {
  color: #96a2b5;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.1em;
}

.config-region-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.config-region-option {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--text-soft);
  padding: 0 12px;
  cursor: pointer;
  font-size: 12px;
}

.config-region-option:has(input:checked) {
  border-color: rgba(84, 161, 255, 0.7);
  background: var(--blue-soft);
  color: white;
}

.config-region-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.config-region-option input:checked + .check-indicator {
  border-color: #2d8cff;
  background: var(--blue);
}

.config-region-option input:checked + .check-indicator::after {
  opacity: 1;
  transform: rotate(42deg) scale(1);
}

.config-region-option:has(input:focus-visible) {
  background: rgba(22, 119, 255, 0.13);
}

.config-field {
  display: grid;
  min-width: 0;
  gap: 7px;
}

.config-field input,
.config-field select {
  width: 100%;
  height: var(--interactive-height);
  min-height: var(--interactive-height);
  max-height: var(--interactive-height);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  color: white;
  padding: 0 14px;
}

.config-field select {
  appearance: none;
  padding-right: 38px;
  background-image:
    linear-gradient(45deg, transparent 50%, #8f9bae 50%),
    linear-gradient(135deg, #8f9bae 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 19px,
    calc(100% - 13px) 19px;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
}

.config-field input:hover,
.config-field select:hover {
  border-color: rgba(255, 255, 255, 0.19);
  background-color: rgba(255, 255, 255, 0.075);
}

.config-field input:focus-visible,
.config-field select:focus-visible {
  border-color: rgba(96, 167, 255, 0.78);
  background-color: rgba(22, 119, 255, 0.1);
  outline: none;
}

.config-help {
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.45;
}

.schedule-section {
  margin: 8px 0 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.region-schedules {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.region-schedule {
  display: grid;
  gap: 6px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(8, 13, 23, 0.58);
  padding: 13px;
}

.region-schedule strong {
  overflow: hidden;
  color: #eef4ff;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.region-schedule span {
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1.4;
}

.price-history-dialog {
  width: min(620px, calc(100vw - 28px));
  max-height: min(760px, calc(100vh - 28px));
  margin: auto;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: #0d1320;
  color: var(--text);
  padding: 0;
  box-shadow: var(--shadow-lg);
}

.price-history-dialog::backdrop {
  background: rgba(2, 5, 11, 0.74);
  backdrop-filter: blur(6px);
}

.price-history-shell {
  max-height: min(760px, calc(100vh - 28px));
  overflow: auto;
  padding: 24px;
}

.price-history-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.price-history-heading h2 {
  margin-top: 8px;
  font-size: 24px;
}

.price-history-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 20px;
}

.price-history-summary > div {
  display: grid;
  gap: 6px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.035);
  padding: 12px;
}

.price-history-summary span {
  color: var(--text-muted);
  font-size: 10px;
}

.price-history-summary strong {
  overflow: hidden;
  color: #eef4ff;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.price-history-content {
  margin-top: 18px;
}

.price-history-list {
  display: grid;
  gap: 8px;
}

.price-history-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 14px;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}

.price-history-row > div {
  display: flex;
  align-items: baseline;
  gap: 9px;
}

.price-history-row strong {
  font-size: 15px;
}

.price-history-row span,
.price-history-row time {
  color: var(--text-muted);
  font-size: 11px;
}

.price-history-row > span {
  grid-column: 1 / -1;
}

.config-backoff-field {
  grid-column: span 2;
}

.config-rate-policy {
  grid-column: 1 / -1;
  min-width: 0;
  margin: 4px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px;
}

.config-rate-policy legend {
  padding: 0 6px;
  color: #96a2b5;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.config-rate-policy-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.config-actions {
  display: flex;
  align-self: stretch;
  align-items: center;
  justify-content: flex-end;
  grid-column: 1 / -1;
  width: 100%;
  margin-top: 4px;
  gap: 12px;
}

.config-actions-inline {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-left: auto;
  gap: 8px;
}

.page-status-sync-section {
  margin-top: 18px;
}

.page-status-sync-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.config-feedback {
  min-width: 0;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.config-feedback.is-error {
  color: #ffabb2;
}

.publisher-grouping-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.feature-state {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text-muted);
  padding: 0 11px;
  font-size: 11px;
  font-weight: 750;
}

.feature-state.is-enabled {
  border-color: rgba(73, 214, 154, 0.45);
  background: rgba(73, 214, 154, 0.1);
  color: #81e7b9;
}

.publisher-grouping-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.publisher-grouping-section .config-feedback {
  min-height: 18px;
  margin: 13px 0 8px;
}

.publisher-candidate-table {
  min-width: 1040px;
}

.publisher-candidate-table td strong,
.publisher-candidate-table td small {
  display: block;
}

.publisher-candidate-table td small {
  margin-top: 4px;
  color: var(--text-muted);
}

.publisher-group-name-input {
  width: min(100%, 260px);
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
  color: white;
  padding: 0 11px;
}

.publisher-group-name-input:focus-visible {
  border-color: rgba(96, 167, 255, 0.78);
  outline: none;
}

.publisher-candidate-actions {
  display: flex;
  gap: 7px;
  white-space: nowrap;
}

.recent-heading {
  margin-top: 4px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.table-subtle {
  color: var(--text-muted);
  font-size: 11px;
}

.task-info {
  max-width: 260px;
  overflow-wrap: anywhere;
}

.table-wrap {
  width: 100%;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
  background: rgba(8, 13, 23, 0.58);
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 12px;
}

th {
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

td {
  color: #c6cfdd;
}

tr:last-child td {
  border-bottom: 0;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-soft);
  padding: 0 9px;
  font-size: 10px;
  font-weight: 750;
}

.status.succeeded {
  background: rgba(73, 214, 154, 0.12);
  color: #7ceab9;
}

.status.running,
.status.queued {
  background: rgba(255, 209, 102, 0.12);
  color: #ffe29a;
}

.status.failed,
.status.partial_failed,
.status.interrupted {
  background: rgba(255, 109, 120, 0.12);
  color: #ff9ca5;
}

.notice-stack {
  position: fixed;
  z-index: 80;
  right: 24px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  max-width: min(430px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  pointer-events: none;
}

.notice {
  position: relative;
  max-width: min(430px, calc(100vw - 32px));
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(15, 23, 38, 0.96);
  box-shadow: var(--shadow-lg);
  color: #dce5f2;
  padding: 12px 17px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
  font-size: 12px;
}

.notice.visible {
  opacity: 1;
  transform: translateY(0);
}

.notice.is-error {
  border-color: rgba(255, 109, 120, 0.4);
  color: #ffb6bc;
}

.app-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 86px;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  padding: 20px max(24px, calc((100vw - var(--content-width)) / 2 + 68px));
  font-size: 11px;
}

@media (max-width: 1180px) {
  .app-header {
    grid-template-columns: auto 1fr;
  }

  .store-tabs {
    position: static;
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: center;
    overflow-x: auto;
    padding: 0 0 10px;
    transform: none;
  }

  .header-actions {
    grid-column: 2;
    grid-row: 1;
  }

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

  .search-field {
    grid-column: span 2;
  }

  .dropdown[data-menu="types"] .dropdown-menu {
    right: 0;
    left: auto;
    transform-origin: top right;
  }

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

@media (max-width: 820px) {
  .app-header {
    min-height: 66px;
    padding: 10px 18px 0;
  }

  .header-actions {
    gap: 2px;
  }

  .header-button {
    display: inline-flex;
    padding: 0 9px;
    font-size: 11px;
  }

  .connection-state {
    display: none;
  }

  .user-identity {
    padding: 0 9px;
    max-width: 82px;
    font-size: 11px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .store-tabs {
    display: none;
  }

  .brand-copy small {
    display: none;
  }

  .brand-copy strong {
    font-size: 15px;
  }

  .store-hero,
  .hero-content {
    min-height: 650px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    align-items: end;
    padding: 60px 22px 174px;
  }

  .hero-artwork-wrap {
    position: absolute;
    z-index: -1;
    top: 40px;
    right: -44px;
    opacity: 0.6;
  }

  .hero-artwork-frame {
    width: 270px;
  }

  .hero-copy h1 {
    font-size: clamp(38px, 11vw, 58px);
  }

  .hero-metrics {
    right: 22px;
    bottom: 22px;
    left: 22px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-metrics article:nth-child(2) {
    border-right: 0;
  }

  .hero-metrics article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .store-main {
    padding: 52px 18px 60px;
  }

  .catalog-heading,
  .operations-heading,
  .config-heading {
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .operations-heading > div:first-child,
  .config-heading > div:first-child {
    min-width: min(100%, 280px);
    flex: 1 1 280px;
  }

  .operations-actions,
  .config-actions-inline {
    margin-left: auto;
  }

  .filters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 12px;
  }

  .mobile-view-field {
    display: grid;
  }

  .search-field {
    grid-column: 1 / -1;
  }

  .dropdown[data-menu="regions"] .dropdown-menu,
  .dropdown[data-menu="price-ranges"] .dropdown-menu {
    right: auto;
    left: 0;
    transform-origin: top left;
  }

  .catalog-tools {
    align-items: flex-start;
    flex-direction: column-reverse;
  }

  .catalog-tools-bottom {
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .shortcut-bar {
    width: 100%;
    justify-content: flex-start;
  }

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

  .card-body {
    padding: 13px 12px 10px;
  }

  .card-actions {
    padding: 0 8px 10px;
  }

  .card-actions button,
  .card-actions a {
    padding: 0 5px;
  }

  .operations-panel {
    margin-top: 28px;
  }

  .control-overview,
  .progress-list,
  .region-schedules,
  .publisher-grouping-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .config-backoff-field,
  .config-rate-policy,
  .config-actions {
    grid-column: 1 / -1;
  }

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

  .operations-content {
    padding-right: 18px;
    padding-left: 18px;
  }

  .app-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 24px 18px;
  }
}

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

  .search-field {
    grid-column: 1 / -1;
  }

  .control-overview,
  .progress-list,
  .config-form,
  .publisher-grouping-stats {
    grid-template-columns: 1fr;
  }

  .region-schedules {
    grid-template-columns: 1fr;
  }

  .settings-preferences-form {
    grid-template-columns: 1fr;
  }

  .settings-interface-group .config-field {
    grid-column: 1 / -1;
  }

  .config-group {
    grid-template-columns: 1fr;
  }

  .config-rate-policy-grid {
    grid-template-columns: 1fr;
  }

  .price-history-summary {
    grid-template-columns: 1fr;
  }

  .config-actions {
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .dropdown[data-menu="types"] .dropdown-menu {
    right: auto;
    left: 0;
    transform-origin: top left;
  }

  .dropdown[data-menu="regions"] .dropdown-menu,
  .dropdown[data-menu="price-ranges"] .dropdown-menu {
    right: 0;
    left: auto;
    transform-origin: top right;
  }
}

@media (max-width: 480px) {
  .hero-artwork-wrap {
    right: -95px;
  }

  .hero-copy h1 {
    max-width: 92%;
  }

  .hero-meta {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

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

  .field:not(.search-field) > span {
    font-size: 9px;
  }

  .product-grid {
    gap: 9px;
  }

  .product-card {
    border-radius: 13px;
  }

  .card-title {
    min-height: 40px;
    font-size: 13px;
  }

  .card-publisher {
    display: none;
  }

  .card-price {
    font-size: 16px;
  }

  .card-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .notice-stack {
    right: 16px;
    bottom: 16px;
    max-width: calc(100vw - 32px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
