/* ==========================================================================
   Calendoor — Menus Pro
   Single authoritative design system for the nav drawer, search, settings and
   profile sheets. Loaded last so it wins the cascade over every earlier layer.
   Principles: one neutral surface language, dense deliberate spacing, hairline
   separators, monochrome line icons, restrained motion. No colored tiles, no
   animated glass rims, no decorative eyebrows.
   ========================================================================== */

:root {
  --m-scrim: rgba(6, 7, 10, 0.6);
  --m-surface: #0e0f12;
  --m-surface-raise: #16181d;
  --m-surface-hover: rgba(255, 255, 255, 0.05);
  --m-surface-active: rgba(255, 255, 255, 0.08);
  --m-hairline: rgba(255, 255, 255, 0.08);
  --m-hairline-soft: rgba(255, 255, 255, 0.06);
  --m-border: rgba(255, 255, 255, 0.1);
  --m-text: rgba(255, 255, 255, 0.96);
  --m-text-2: rgba(255, 255, 255, 0.62);
  --m-text-3: rgba(255, 255, 255, 0.42);
  --m-accent: #3f8cff;
  --m-radius-sheet: 28px;
  --m-radius-card: 20px;
  --m-radius-control: 11px;
  --m-shadow: 0 28px 80px -24px rgba(0, 0, 0, 0.8), 0 2px 10px rgba(0, 0, 0, 0.3);
  --m-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html[data-theme="light"] {
  --m-scrim: rgba(28, 34, 46, 0.42);
  --m-surface: #eef3f9;
  --m-surface-raise: #f4f8fc;
  --m-surface-hover: rgba(0, 0, 0, 0.04);
  --m-surface-active: rgba(0, 0, 0, 0.06);
  --m-hairline: rgba(0, 0, 0, 0.09);
  --m-hairline-soft: rgba(0, 0, 0, 0.06);
  --m-border: rgba(0, 0, 0, 0.1);
  --m-text: #0b0c0f;
  --m-text-2: rgba(0, 0, 0, 0.6);
  --m-text-3: rgba(0, 0, 0, 0.42);
  --m-accent: #0a84ff;
  --m-shadow: 0 28px 70px -26px rgba(20, 28, 44, 0.3), 0 2px 10px rgba(20, 28, 44, 0.08);
}

/* Kill every decorative glass rim / sheen on these surfaces ------------------ */
#nav-drawer.glass::before,
#nav-drawer.glass::after,
#nav-drawer .glass::before,
#nav-drawer .glass::after,
#gc-settings.glass::before,
#gc-settings.glass::after,
#gc-settings .glass::before,
#gc-settings .glass::after,
#gc-profile-sheet.glass::before,
#gc-profile-sheet.glass::after,
#gc-profile-sheet .glass::before,
#gc-profile-sheet .glass::after {
  display: none !important;
  animation: none !important;
}

/* Shared primitives --------------------------------------------------------- */
.m-sheet-scrim {
  background: var(--m-scrim);
  backdrop-filter: blur(8px) saturate(115%);
  -webkit-backdrop-filter: blur(8px) saturate(115%);
}

/* =========================================================================
   NAV DRAWER V7 — same liquid-glass language as Settings / Search
   ========================================================================= */
.nav-drawer__backdrop {
  position: fixed !important;
  inset: 0 !important;
  z-index: 940 !important;
  background: rgba(2, 6, 14, 0.62) !important;
  backdrop-filter: blur(18px) saturate(130%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(130%) !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity var(--mo-dur-base, 0.28s) var(--mo-ease-standard, ease),
    visibility var(--mo-dur-base, 0.28s) var(--mo-ease-standard, ease) !important;
}

.nav-drawer-open .nav-drawer__backdrop,
.nav-drawer-open .nav-drawer__backdrop:not([hidden]) {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.nav-drawer__backdrop[hidden] {
  display: block !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.nav-drawer {
  position: fixed !important;
  z-index: 950 !important;
  top: max(0.55rem, var(--app-safe-top)) !important;
  right: max(0.55rem, env(safe-area-inset-right, 0px)) !important;
  bottom: max(0.55rem, env(safe-area-inset-bottom, 0px)) !important;
  left: auto !important;
  width: min(24rem, calc(100vw - 1.1rem)) !important;
  max-height: none !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  border-radius: 28px !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  background:
    radial-gradient(ellipse 90% 50% at 10% -8%, rgba(90, 190, 255, 0.2), transparent 50%),
    radial-gradient(ellipse 70% 40% at 100% 0%, rgba(120, 90, 255, 0.12), transparent 46%),
    linear-gradient(165deg, rgba(28, 32, 44, 0.97), rgba(8, 10, 16, 0.99)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 28px 90px rgba(0, 0, 0, 0.55) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transform: translate3d(calc(100% + 1.5rem), 0, 0) scale(0.975) !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transition:
    transform var(--mo-dur-sheet, 0.42s) var(--mo-ease-emphasized, cubic-bezier(0.2, 0, 0, 1)),
    opacity var(--mo-dur-base, 0.28s) var(--mo-ease-standard, ease) !important;
}

.nav-drawer-open .nav-drawer {
  transform: translate3d(0, 0, 0) scale(1) !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.nav-drawer.glass::before,
.nav-drawer.glass::after,
.nav-drawer .glass::before,
.nav-drawer .glass::after {
  content: none !important;
  display: none !important;
}

.nav-drawer__shell {
  display: flex !important;
  flex-direction: column !important;
  min-height: 0 !important;
  height: 100% !important;
  background: transparent !important;
}

.nav-drawer__topbar,
.nav-drawer__head {
  position: relative !important;
  flex-shrink: 0 !important;
  padding: 0.85rem 1rem 0.35rem !important;
  border-bottom: 0 !important;
  background: transparent !important;
}

.nav-drawer__grab,
.nav-drawer__handle {
  display: none !important;
}

.nav-drawer__topbar-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 0.75rem !important;
  min-height: 2.6rem !important;
}

.nav-drawer__title {
  margin: 0 !important;
  font-size: 1.35rem !important;
  font-weight: 760 !important;
  letter-spacing: -0.04em !important;
  color: rgba(255, 255, 255, 0.97) !important;
}

.nav-drawer__title::before {
  content: none !important;
  display: none !important;
}

.nav-drawer__close {
  position: static !important;
  transform: none !important;
  width: 2.45rem !important;
  height: 2.45rem !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: rgba(255, 255, 255, 0.88) !important;
  background: rgba(255, 255, 255, 0.07) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
  cursor: pointer !important;
  transition:
    background 0.2s ease,
    transform 0.2s ease,
    border-color 0.2s ease !important;
}

.nav-drawer__close:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  color: rgba(255, 255, 255, 0.96) !important;
}

.nav-drawer__close:active {
  transform: scale(0.94) !important;
}

.nav-drawer__body {
  display: flex !important;
  flex-direction: column !important;
  gap: 1.05rem !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  padding: 0.55rem 1rem calc(1.05rem + env(safe-area-inset-bottom, 0px)) !important;
  overflow: auto !important;
  overscroll-behavior: contain !important;
  -webkit-overflow-scrolling: touch;
}

.nav-drawer__group {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.4rem !important;
  margin: 0 !important;
}

.nav-drawer__label,
.nav-drawer__group-title {
  margin: 0 0 0 0.55rem !important;
  font-size: 0.62rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  color: rgba(255, 255, 255, 0.42) !important;
}

.nav-drawer__card,
.nav-drawer__group-card,
.nav-drawer__group-card.glass {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  overflow: hidden !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, 0.045) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.nav-drawer__row {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.75rem !important;
  width: 100% !important;
  min-height: 3.05rem !important;
  margin: 0 !important;
  padding: 0.55rem 0.85rem !important;
  border: 0 !important;
  background: transparent !important;
  color: rgba(255, 255, 255, 0.94) !important;
  font: inherit !important;
  font-size: 0.92rem !important;
  font-weight: 600 !important;
  letter-spacing: -0.015em !important;
  text-align: left !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: background 0.15s ease !important;
}

.nav-drawer__row + .nav-drawer__row::before {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  left: 3.15rem !important;
  right: 0.85rem !important;
  height: 1px !important;
  background: rgba(255, 255, 255, 0.07) !important;
}

.nav-drawer__row:hover,
.nav-drawer__row:focus-visible {
  background: rgba(100, 210, 255, 0.08) !important;
  outline: none !important;
}

.nav-drawer__row:active {
  background: rgba(100, 210, 255, 0.12) !important;
}

.nav-drawer__row-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 1.5rem !important;
  height: 1.5rem !important;
  flex: 0 0 1.5rem !important;
  border-radius: 0 !important;
  color: rgba(180, 220, 255, 0.92) !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.nav-drawer__row-icon svg {
  width: 1.05rem !important;
  height: 1.05rem !important;
}

.nav-drawer__row-label {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.nav-drawer__chev {
  flex-shrink: 0 !important;
  color: rgba(255, 255, 255, 0.28) !important;
}

.nav-drawer__row--cta {
  color: rgb(110, 210, 255) !important;
}

.nav-drawer__row--cta .nav-drawer__row-icon {
  color: rgb(110, 210, 255) !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.nav-drawer__row--cta .nav-drawer__chev {
  color: rgba(110, 210, 255, 0.7) !important;
}

.nav-drawer__prefs {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.55rem !important;
  padding: 0.65rem !important;
}

.nav-drawer__segment,
.nav-drawer .theme-toggle-row,
.nav-drawer .locale-toggle {
  display: flex !important;
  gap: 0.18rem !important;
  width: 100% !important;
  padding: 0.2rem !important;
  border-radius: 999px !important;
  background: rgba(0, 0, 0, 0.22) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-sizing: border-box !important;
}

.nav-drawer__segment button,
.nav-drawer .theme-toggle-row button,
.nav-drawer .locale-toggle button {
  flex: 1 1 0 !important;
  min-height: 2.15rem !important;
  margin: 0 !important;
  padding: 0.3rem 0.45rem !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: rgba(255, 255, 255, 0.5) !important;
  font-size: 0.74rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
  cursor: pointer !important;
  transition: background 0.18s ease, color 0.18s ease !important;
}

.nav-drawer__segment button.is-active,
.nav-drawer .theme-toggle-row button.is-active,
.nav-drawer .locale-toggle button.is-active {
  background:
    linear-gradient(168deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06)) !important;
  color: rgba(255, 255, 255, 0.96) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
}

.nav-drawer__signin {
  margin-top: auto !important;
  padding-top: 0.15rem !important;
}

.nav-drawer__version {
  margin: 0.85rem 0 0.15rem !important;
  padding: 0 0.15rem !important;
  text-align: center !important;
  font-size: 0.72rem !important;
  font-weight: 650 !important;
  font-variant-numeric: tabular-nums !important;
  letter-spacing: 0.06em !important;
  color: rgba(160, 180, 220, 0.55) !important;
  user-select: all !important;
  cursor: default !important;
}

html[data-theme="light"] .nav-drawer__version {
  color: rgba(40, 55, 90, 0.45) !important;
}

@media (max-width: 768px) {
  .nav-drawer {
    top: auto !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    /* Use the screen — no artificial 680px cap */
    max-height: min(96dvh, 100%) !important;
    height: auto !important;
    min-height: min(72dvh, 100%) !important;
    border-radius: 28px 28px 0 0 !important;
    border-bottom: 0 !important;
    transform: translate3d(0, 101%, 0) !important;
    opacity: 1 !important;
  }

  .nav-drawer-open .nav-drawer {
    transform: translate3d(0, 0, 0) !important;
    opacity: 1 !important;
  }

  .nav-drawer__topbar,
  .nav-drawer__head {
    padding-top: 0.55rem !important;
  }

  .nav-drawer__grab,
  .nav-drawer__handle {
    display: none !important;
  }

  .nav-drawer__topbar-row {
    position: relative !important;
    justify-content: center !important;
  }

  .nav-drawer__title {
    text-align: center !important;
  }

  .nav-drawer__close {
    position: absolute !important;
    right: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
  }

  .nav-drawer__close:active {
    transform: translateY(-50%) scale(0.94) !important;
  }
}

html[data-theme="light"] .nav-drawer {
  background:
    radial-gradient(ellipse 90% 50% at 10% -8%, rgba(70, 160, 255, 0.16), transparent 50%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.98), rgba(236, 242, 250, 0.99)) !important;
  border-color: rgba(30, 60, 110, 0.1) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 28px 80px rgba(30, 50, 90, 0.18) !important;
}

html[data-theme="light"] .nav-drawer__title {
  color: rgba(10, 24, 48, 0.94) !important;
}

html[data-theme="light"] .nav-drawer__close {
  color: rgba(10, 24, 48, 0.7) !important;
  background: rgba(255, 255, 255, 0.7) !important;
  border-color: rgba(20, 40, 80, 0.1) !important;
}

html[data-theme="light"] .nav-drawer__label,
html[data-theme="light"] .nav-drawer__group-title {
  color: rgba(10, 24, 48, 0.42) !important;
}

html[data-theme="light"] .nav-drawer__card,
html[data-theme="light"] .nav-drawer__group-card {
  background: rgba(255, 255, 255, 0.72) !important;
  border-color: rgba(20, 40, 80, 0.08) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

html[data-theme="light"] .nav-drawer__row {
  color: rgba(10, 24, 48, 0.92) !important;
}

html[data-theme="light"] .nav-drawer__row + .nav-drawer__row::before {
  background: rgba(20, 40, 80, 0.08) !important;
}

html[data-theme="light"] .nav-drawer__row-icon {
  color: rgba(20, 90, 150, 0.9) !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

html[data-theme="light"] .nav-drawer__chev {
  color: rgba(10, 24, 48, 0.28) !important;
}

html[data-theme="light"] .nav-drawer__segment,
html[data-theme="light"] .nav-drawer .theme-toggle-row,
html[data-theme="light"] .nav-drawer .locale-toggle {
  background: rgba(15, 30, 60, 0.05) !important;
  border-color: rgba(20, 40, 80, 0.08) !important;
}

html[data-theme="light"] .nav-drawer__segment button,
html[data-theme="light"] .nav-drawer .theme-toggle-row button,
html[data-theme="light"] .nav-drawer .locale-toggle button {
  color: rgba(10, 24, 48, 0.45) !important;
}

html[data-theme="light"] .nav-drawer__segment button.is-active,
html[data-theme="light"] .nav-drawer .theme-toggle-row button.is-active,
html[data-theme="light"] .nav-drawer .locale-toggle button.is-active {
  background: #fff !important;
  color: rgba(10, 24, 48, 0.94) !important;
  box-shadow: 0 4px 12px rgba(30, 50, 90, 0.08) !important;
}

/* =========================================================================
   SETTINGS SHEET — base structure (visuals in SETTINGS V6 below)
   ========================================================================= */
.gc-set-heading__icon,
.gc-set-eyebrow {
  display: none !important;
}

.gc-settings-open .gc-settings-v3 .gc-set-group {
  animation: none !important;
}

/* Alerts tab — oval glass language --------------------------------------- */
.gc-settings-v3 .gc-alert-status {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 0 0 1.05rem;
  padding: 0.95rem 1.15rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 10px 28px rgba(0, 0, 0, 0.22);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

html[data-theme="light"] .gc-settings-v3 .gc-alert-status {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(20, 40, 80, 0.08);
  box-shadow:
    inset 0 1px 0 #fff,
    0 8px 22px rgba(20, 28, 44, 0.08);
}

.gc-settings-v3 .gc-alert-status__dot {
  flex-shrink: 0;
  width: 0.58rem;
  height: 0.58rem;
  margin-top: 0.42rem;
  border-radius: var(--radius-pill);
  background: var(--color-text-subtle, rgba(255, 255, 255, 0.36));
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.05);
}

.gc-settings-v3 .gc-alert-status--ok .gc-alert-status__dot {
  background: #30d158;
  box-shadow: 0 0 0 4px color-mix(in srgb, #30d158 18%, transparent);
}

.gc-settings-v3 .gc-alert-status--warn .gc-alert-status__dot {
  background: var(--color-accent-warm, #ff9f0a);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--color-accent-warm, #ff9f0a) 18%, transparent);
}

.gc-settings-v3 .gc-alert-status--danger .gc-alert-status__dot {
  background: #ff6482;
  box-shadow: 0 0 0 4px color-mix(in srgb, #ff6482 18%, transparent);
}

.gc-settings-v3 .gc-alert-status--ok {
  border-color: color-mix(in srgb, #30d158 28%, var(--glass-border, rgba(255, 255, 255, 0.14)));
}

.gc-settings-v3 .gc-alert-status--warn {
  border-color: color-mix(in srgb, var(--color-accent-warm, #ff9f0a) 28%, var(--glass-border, rgba(255, 255, 255, 0.14)));
}

.gc-settings-v3 .gc-alert-status--danger {
  border-color: color-mix(in srgb, #ff6482 28%, var(--glass-border, rgba(255, 255, 255, 0.14)));
}

.gc-settings-v3 .gc-alert-status__title {
  margin: 0 0 0.2rem;
  font-family: var(--font-display, inherit);
  font-size: 0.9375rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--color-text, var(--m-text));
}

.gc-settings-v3 .gc-alert-status__detail {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--color-text-secondary, var(--m-text-2));
}

.gc-settings-v3 .gc-alert-section {
  padding: 0.9rem 1rem 1.05rem;
}

.gc-settings-v3 .gc-alert-section--flush {
  padding-bottom: 0.3rem;
}

.gc-settings-v3 .gc-alert-section__head {
  margin-bottom: 0.7rem;
}

.gc-settings-v3 .gc-alert-section__title {
  margin: 0 0 0.2rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--color-text, var(--m-text));
}

.gc-settings-v3 .gc-alert-section__hint,
.gc-settings-v3 .gc-alert-section__sub {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--color-text-subtle, var(--m-text-3));
}

.gc-settings-v3 .gc-alert-section__sub {
  margin: 0.9rem 0 0.5rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.6875rem;
  color: var(--color-accent, #64d2ff);
  opacity: 0.85;
}

.gc-settings-v3 .gc-alert-chips {
  margin: 0;
}

.gc-settings-v3 .gc-alert-chip {
  border-radius: var(--radius-pill) !important;
  min-height: 2.15rem !important;
  padding: 0.4rem 0.9rem !important;
}

.gc-settings-v3 .gc-alert-chip.is-on {
  background: color-mix(in srgb, var(--color-accent, #64d2ff) 16%, transparent) !important;
  border-color: color-mix(in srgb, var(--color-accent, #64d2ff) 34%, transparent) !important;
  color: var(--color-accent, #64d2ff) !important;
}

.gc-settings-v3 .gc-alert-section .gc-set-row {
  margin: 0 -1rem;
  width: calc(100% + 2rem);
}

.gc-settings-v3 .gc-set-inset > .gc-alert-section::after {
  left: 1rem;
}

/* =========================================================================
   PROFILE SHEET
   ========================================================================= */
.gc-profile-backdrop {
  background: var(--m-scrim) !important;
}

#gc-profile-root.is-open .gc-profile-backdrop {
  backdrop-filter: blur(8px) saturate(115%) !important;
  -webkit-backdrop-filter: blur(8px) saturate(115%) !important;
}

.gc-profile-sheet {
  border-radius: var(--m-radius-sheet) var(--m-radius-sheet) 0 0 !important;
  border: 1px solid var(--m-border) !important;
  border-bottom: 0 !important;
  background: var(--m-surface) !important;
  box-shadow: var(--m-shadow) !important;
  --glass-blur: 0px;
}

.gc-profile-shell {
  background: transparent !important;
}

.gc-profile-topbar {
  min-height: 3.5rem !important;
  padding: 0.75rem 0.85rem 0.6rem 1.1rem !important;
  border-bottom: 1px solid var(--m-hairline) !important;
  background: transparent !important;
}

.gc-profile-topbar__title {
  font-size: 1.06rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.025em !important;
  color: var(--m-text) !important;
}

.gc-profile-topbar__title::before {
  content: none !important;
}

.gc-profile-close {
  width: 2rem !important;
  height: 2rem !important;
  color: var(--m-text-2) !important;
  background: var(--m-surface-hover) !important;
  border: 0 !important;
  box-shadow: none !important;
}

.gc-profile-hero {
  padding: 0.9rem 1.1rem !important;
}

.gc-profile-hero__avatar {
  border: 1px solid var(--m-border) !important;
  box-shadow: none !important;
}

.gc-profile-hero__name {
  color: var(--m-text) !important;
}

.gc-profile-hero__email {
  color: var(--m-text-2) !important;
}

.gc-profile-body {
  gap: 1.1rem !important;
  padding: 0.65rem 0.85rem calc(1.2rem + env(safe-area-inset-bottom, 0px)) !important;
}

.gc-profile-section__label {
  font-size: 0.6rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
  color: var(--m-text-3) !important;
}

.gc-profile-glass-card,
.gc-profile-glass-card.glass,
.gc-profile-accordion,
.gc-profile-accordion.glass {
  border-radius: var(--m-radius-card) !important;
  background: var(--m-surface-raise) !important;
  border: 1px solid var(--m-hairline-soft) !important;
  box-shadow: none !important;
  --glass-blur: 0px;
}

.gc-profile-row,
.gc-profile-acc__summary,
.gc-profile-acc-link {
  min-height: 3rem !important;
  color: var(--m-text) !important;
}

.gc-profile-row__icon {
  color: var(--m-text-2) !important;
  background: none !important;
  border-radius: 0 !important;
}

.gc-profile-row:hover,
.gc-profile-acc__summary:hover,
.gc-profile-acc-link:hover {
  background: var(--m-surface-hover) !important;
}

.gc-profile-acc__icon {
  color: var(--m-text-2) !important;
  background: var(--m-surface-active) !important;
}

.gc-profile-row--cta {
  color: var(--m-accent) !important;
  background: transparent !important;
}

.gc-profile-row--cta:hover {
  background: var(--m-surface-hover) !important;
}

.gc-profile-row--danger .gc-profile-row__text,
.gc-profile-row--danger .gc-profile-row__icon {
  color: #ff6b8a !important;
}

@media (min-width: 901px) {
  .gc-profile-sheet {
    border-radius: var(--m-radius-sheet) !important;
    border-bottom: 1px solid var(--m-border) !important;
  }
}

/* =========================================================================
   MOBILE SEARCH SHEET V6 — command palette / discovery
   ========================================================================= */
@media (max-width: 900px) {
  /* Match Search/Settings to the same liquid glass as the Today nav cluster */
  body.category-page--games:has(.gc-app) .gc-util-bubble {
    --glass-blur: 36px;
    background: rgba(255, 255, 255, 0.045) !important;
    background-image: linear-gradient(
      168deg,
      rgba(255, 255, 255, 0.1) 0%,
      rgba(255, 255, 255, 0.02) 42%,
      rgba(255, 255, 255, 0.05) 100%
    ) !important;
    border: 1px solid rgba(255, 255, 255, 0.11) !important;
    border-top-color: rgba(255, 255, 255, 0.2) !important;
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.1) inset,
      0 14px 40px -16px rgba(0, 0, 0, 0.55) !important;
    backdrop-filter: blur(36px) saturate(185%) brightness(1.05) !important;
    -webkit-backdrop-filter: blur(36px) saturate(185%) brightness(1.05) !important;
    color: rgba(255, 255, 255, 0.9) !important;
  }

  body.category-page--games:has(.gc-app) .gc-util-bubble.glass::before,
  body.category-page--games:has(.gc-app) .gc-util-bubble.glass::after {
    display: block !important;
    opacity: 0.85 !important;
  }

  body.category-page--games:has(.gc-app) .gc-util-bubble--active {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.18) !important;
    color: rgba(255, 255, 255, 0.96) !important;
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.14) inset,
      0 14px 40px -16px rgba(0, 0, 0, 0.5) !important;
  }

  html[data-theme="light"] body.category-page--games:has(.gc-app) .gc-util-bubble {
    background: rgba(255, 255, 255, 0.72) !important;
    background-image: linear-gradient(
      168deg,
      rgba(255, 255, 255, 0.95) 0%,
      rgba(255, 255, 255, 0.7) 100%
    ) !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
    border-top-color: rgba(255, 255, 255, 0.9) !important;
    color: rgba(0, 0, 0, 0.72) !important;
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.9) inset,
      0 10px 28px -14px rgba(20, 28, 44, 0.22) !important;
  }

  body.category-page--games:has(.gc-app) .gc-app--search-mode::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 11;
    background: rgba(2, 6, 14, 0.62) !important;
    backdrop-filter: blur(18px) saturate(130%) !important;
    -webkit-backdrop-filter: blur(18px) saturate(130%) !important;
    animation: m-fade-in 0.28s var(--m-ease) both;
    pointer-events: none !important;
  }

  @keyframes m-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  body.category-page--games:has(.gc-app) .gc-chrome--mobile.gc-chrome--search-open {
    position: fixed !important;
    top: calc(var(--app-safe-top) + var(--header-height, 52px) + 0.35rem) !important;
    left: max(0.5rem, env(safe-area-inset-left, 0px)) !important;
    right: max(0.5rem, env(safe-area-inset-right, 0px)) !important;
    bottom: max(0.5rem, env(safe-area-inset-bottom, 0px)) !important;
    z-index: 13 !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 28px !important;
    overflow: hidden !important;
    background:
      radial-gradient(ellipse 90% 55% at 12% -10%, rgba(90, 190, 255, 0.22), transparent 52%),
      radial-gradient(ellipse 70% 45% at 100% 0%, rgba(120, 90, 255, 0.14), transparent 48%),
      linear-gradient(165deg, rgba(28, 32, 44, 0.97), rgba(8, 10, 16, 0.99)) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.16),
      0 28px 90px rgba(0, 0, 0, 0.55) !important;
    animation: m-sheet-in 0.42s cubic-bezier(0.22, 1, 0.36, 1) both !important;
  }

  @keyframes m-sheet-in {
    from {
      opacity: 0;
      transform: translate3d(0, 18px, 0) scale(0.97);
    }
    to {
      opacity: 1;
      transform: translate3d(0, 0, 0) scale(1);
    }
  }

  body.category-page--games:has(.gc-app) .gc-toolbar--mobile.gc-toolbar--search-open {
    display: flex !important;
    height: 100% !important;
    min-height: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  body.category-page--games:has(.gc-app) .gc-search-panel--mobile {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    gap: 0.85rem !important;
    padding: 1rem 0.95rem calc(1rem + env(safe-area-inset-bottom, 0px)) !important;
    animation: none !important;
  }

  body.category-page--games:has(.gc-app) .gc-search-panel__header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.75rem !important;
  }

  body.category-page--games:has(.gc-app) .gc-search-panel__title {
    margin: 0 !important;
    color: rgba(255, 255, 255, 0.97) !important;
    font-size: 1.28rem !important;
    font-weight: 760 !important;
    letter-spacing: -0.04em !important;
    line-height: 1.05 !important;
  }

  body.category-page--games:has(.gc-app) .gc-search-panel__close {
    width: 2.55rem !important;
    height: 2.55rem !important;
    min-width: 2.55rem !important;
    min-height: 2.55rem !important;
    border-radius: 50% !important;
    color: rgba(255, 255, 255, 0.88) !important;
    background: rgba(255, 255, 255, 0.07) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
  }

  body.category-page--games:has(.gc-app) .gc-search-panel__field {
    width: 100% !important;
  }

  body.category-page--games:has(.gc-app) .gc-search-panel__field .gc-search-wrap {
    width: 100% !important;
  }

  body.category-page--games:has(.gc-app) .gc-search--panel {
    min-height: 3.15rem !important;
    max-width: none !important;
    width: 100% !important;
    padding: 0 0.55rem 0 0.85rem !important;
    border-radius: 999px !important;
    gap: 0.55rem !important;
    background: rgba(255, 255, 255, 0.07) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-top-color: rgba(255, 255, 255, 0.24) !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.16),
      0 14px 36px -18px rgba(0, 0, 0, 0.55) !important;
    transition:
      border-color 0.22s ease,
      background 0.22s ease,
      box-shadow 0.22s ease !important;
  }

  body.category-page--games:has(.gc-app) .gc-search--panel:focus-within {
    border-color: rgba(120, 220, 255, 0.55) !important;
    background: rgba(100, 210, 255, 0.1) !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.2),
      0 0 0 3px rgba(100, 210, 255, 0.16),
      0 16px 40px -16px rgba(40, 160, 255, 0.35) !important;
  }

  body.category-page--games:has(.gc-app) .gc-search__icon {
    color: rgba(255, 255, 255, 0.5) !important;
  }

  body.category-page--games:has(.gc-app) .gc-search--panel:focus-within .gc-search__icon {
    color: #9fe4ff !important;
  }

  body.category-page--games:has(.gc-app) .gc-search--panel .gc-search__input {
    color: rgba(255, 255, 255, 0.96) !important;
    font-size: 1.05rem !important;
    font-weight: 560 !important;
    letter-spacing: -0.025em !important;
    min-height: 2.7rem !important;
  }

  body.category-page--games:has(.gc-app) .gc-search--panel .gc-search__input::placeholder {
    color: rgba(255, 255, 255, 0.38) !important;
  }

  body.category-page--games:has(.gc-app) .gc-search__clear {
    width: 1.85rem !important;
    height: 1.85rem !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.12) !important;
    color: rgba(255, 255, 255, 0.9) !important;
  }

  body.category-page--games:has(.gc-app) .gc-search-panel__status {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.18rem !important;
    padding: 0 0.2rem !important;
  }

  body.category-page--games:has(.gc-app) .gc-search-panel__hint {
    margin: 0 !important;
    color: rgba(255, 255, 255, 0.62) !important;
    font-size: 0.82rem !important;
    font-weight: 560 !important;
    letter-spacing: -0.015em !important;
    line-height: 1.35 !important;
  }

  body.category-page--games:has(.gc-app) .gc-search-panel__subhint {
    margin: 0 !important;
    color: rgba(255, 255, 255, 0.36) !important;
    font-size: 0.7rem !important;
    line-height: 1.35 !important;
  }

  body.category-page--games:has(.gc-app) .gc-search-panel__meta {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.6rem !important;
  }

  body.category-page--games:has(.gc-app) .gc-search-panel__meta-count {
    color: #8fdfff !important;
    font-size: 0.72rem !important;
    font-weight: 760 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
  }

  body.category-page--games:has(.gc-app) .gc-search-panel__clear-link {
    border: 0 !important;
    background: rgba(255, 255, 255, 0.08) !important;
    color: rgba(255, 255, 255, 0.78) !important;
    font-size: 0.72rem !important;
    font-weight: 650 !important;
    padding: 0.32rem 0.7rem !important;
    border-radius: 999px !important;
    cursor: pointer !important;
  }

  body.category-page--games:has(.gc-app) .gc-search-panel__list {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    border-radius: 22px !important;
    padding: 0.45rem !important;
    background: rgba(255, 255, 255, 0.035) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  body.category-page--games:has(.gc-app) .gc-search-panel__section {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.35rem !important;
  }

  body.category-page--games:has(.gc-app) .gc-search-panel__section-label {
    padding: 0.28rem 0.5rem 0.15rem !important;
    color: rgba(255, 255, 255, 0.4) !important;
    font-size: 0.62rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.14em !important;
    text-transform: uppercase !important;
  }

  body.category-page--games:has(.gc-app) .gc-search-panel__items {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.28rem !important;
  }

  body.category-page--games:has(.gc-app) .gc-search-suggest__item--rich {
    display: flex !important;
    align-items: center !important;
    gap: 0.7rem !important;
    width: 100% !important;
    min-height: 4.85rem !important;
    padding: 0.5rem 0.55rem !important;
    border-radius: 16px !important;
    border: 1px solid transparent !important;
    background: rgba(255, 255, 255, 0.03) !important;
    text-align: left !important;
    cursor: pointer !important;
    transition:
      background 0.2s ease,
      border-color 0.2s ease,
      transform 0.2s ease !important;
  }

  body.category-page--games:has(.gc-app) .gc-search-suggest__item--rich:active {
    transform: scale(0.985) !important;
    background: rgba(100, 210, 255, 0.1) !important;
    border-color: rgba(120, 220, 255, 0.22) !important;
  }

  body.category-page--games:has(.gc-app) .gc-search-suggest__cover {
    flex-shrink: 0 !important;
    width: 3.05rem !important;
    height: 4.05rem !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    background: rgba(255, 255, 255, 0.06) !important;
    box-shadow: 0 8px 20px -10px rgba(0, 0, 0, 0.65) !important;
  }

  body.category-page--games:has(.gc-app) .gc-search-suggest__cover .gc-cover,
  body.category-page--games:has(.gc-app) .gc-search-suggest__cover img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  body.category-page--games:has(.gc-app) .gc-search-suggest__body {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.18rem !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
  }

  body.category-page--games:has(.gc-app) .gc-search-suggest__title {
    color: rgba(255, 255, 255, 0.96) !important;
    font-size: 0.92rem !important;
    font-weight: 680 !important;
    line-height: 1.25 !important;
    letter-spacing: -0.02em !important;
    min-width: 0 !important;
  }

  body.category-page--games:has(.gc-app) .gc-search-suggest__title .gc-highlight {
    color: #9fe4ff !important;
    background: rgba(100, 210, 255, 0.16) !important;
    border-radius: 4px !important;
    padding: 0 0.12em !important;
  }

  body.category-page--games:has(.gc-app) .gc-search-suggest__meta {
    color: rgba(255, 255, 255, 0.48) !important;
    font-size: 0.72rem !important;
    line-height: 1.3 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  body.category-page--games:has(.gc-app) .gc-search-suggest__trail {
    display: inline-flex !important;
    align-items: center !important;
    align-self: center !important;
    gap: 0.35rem !important;
    flex-shrink: 0 !important;
  }

  body.category-page--games:has(.gc-app) .gc-search-suggest__date {
    color: rgba(160, 225, 255, 0.88) !important;
    font-size: 0.62rem !important;
    font-weight: 760 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
    line-height: 1 !important;
  }

  body.category-page--games:has(.gc-app) .gc-search-suggest__platforms {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.2rem !important;
    margin-top: 0.1rem !important;
  }

  body.category-page--games:has(.gc-app) .gc-search-suggest__chev {
    display: inline-flex !important;
    align-items: center !important;
    color: rgba(255, 255, 255, 0.28) !important;
  }

  body.category-page--games:has(.gc-app) .gc-search-panel__empty {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.7rem !important;
    padding: 2.2rem 1rem !important;
    text-align: center !important;
  }

  body.category-page--games:has(.gc-app) .gc-search-panel__empty-icon {
    width: 3.4rem !important;
    height: 3.4rem !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(100, 210, 255, 0.1) !important;
    border: 1px solid rgba(120, 220, 255, 0.16) !important;
    color: rgba(180, 230, 255, 0.75) !important;
  }

  body.category-page--games:has(.gc-app) .gc-search-panel__empty p {
    margin: 0 !important;
    max-width: 16rem !important;
    color: rgba(255, 255, 255, 0.55) !important;
    font-size: 0.84rem !important;
    line-height: 1.45 !important;
  }

  html[data-theme="light"] body.category-page--games:has(.gc-app) .gc-app--search-mode::before {
    background: rgba(220, 230, 245, 0.55) !important;
  }

  html[data-theme="light"] body.category-page--games:has(.gc-app) .gc-chrome--mobile.gc-chrome--search-open {
    background:
      radial-gradient(ellipse 90% 55% at 12% -10%, rgba(70, 160, 255, 0.2), transparent 52%),
      linear-gradient(165deg, rgba(255, 255, 255, 0.98), rgba(236, 242, 250, 0.99)) !important;
    border-color: rgba(30, 60, 110, 0.1) !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.95),
      0 28px 80px rgba(30, 50, 90, 0.18) !important;
  }

  html[data-theme="light"] body.category-page--games:has(.gc-app) .gc-search-panel__title {
    color: rgba(10, 24, 48, 0.94) !important;
  }

  html[data-theme="light"] body.category-page--games:has(.gc-app) .gc-search-panel__close {
    color: rgba(10, 24, 48, 0.72) !important;
    background: rgba(255, 255, 255, 0.7) !important;
    border-color: rgba(20, 40, 80, 0.1) !important;
  }

  html[data-theme="light"] body.category-page--games:has(.gc-app) .gc-search--panel,
  html[data-theme="light"] body.category-page--games:has(.gc-app) .gc-search--panel:focus-within {
    background: rgba(255, 255, 255, 0.92) !important;
    border-color: rgba(20, 40, 80, 0.1) !important;
  }

  html[data-theme="light"] body.category-page--games:has(.gc-app) .gc-search--panel .gc-search__input {
    color: rgba(10, 24, 48, 0.94) !important;
  }

  html[data-theme="light"] body.category-page--games:has(.gc-app) .gc-search--panel .gc-search__input::placeholder {
    color: rgba(10, 24, 48, 0.38) !important;
  }

  html[data-theme="light"] body.category-page--games:has(.gc-app) .gc-search-panel__hint {
    color: rgba(10, 24, 48, 0.58) !important;
  }

  html[data-theme="light"] body.category-page--games:has(.gc-app) .gc-search-panel__subhint,
  html[data-theme="light"] body.category-page--games:has(.gc-app) .gc-search-panel__empty p,
  html[data-theme="light"] body.category-page--games:has(.gc-app) .gc-search-suggest__meta {
    color: rgba(10, 24, 48, 0.45) !important;
  }

  html[data-theme="light"] body.category-page--games:has(.gc-app) .gc-search-panel__list {
    background: rgba(255, 255, 255, 0.55) !important;
    border-color: rgba(20, 40, 80, 0.08) !important;
  }

  html[data-theme="light"] body.category-page--games:has(.gc-app) .gc-search-suggest__item--rich {
    background: rgba(255, 255, 255, 0.55) !important;
  }

  html[data-theme="light"] body.category-page--games:has(.gc-app) .gc-search-suggest__title {
    color: rgba(10, 24, 48, 0.94) !important;
  }

  html[data-theme="light"] body.category-page--games:has(.gc-app) .gc-search-panel__meta-count,
  html[data-theme="light"] body.category-page--games:has(.gc-app) .gc-search-suggest__date {
    color: #1a7ab8 !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-drawer,
  .gc-settings.gc-settings-v3,
  .gc-profile-sheet {
    transition: none !important;
  }

  body.category-page--games:has(.gc-app) .gc-app--search-mode::before,
  body.category-page--games:has(.gc-app) .gc-chrome--mobile.gc-chrome--search-open {
    animation: none !important;
  }
}

/* =========================================================================
   SETTINGS V6 — same liquid glass language as Search
   ========================================================================= */
.gc-settings-backdrop {
  background: rgba(2, 6, 14, 0.62) !important;
  backdrop-filter: blur(18px) saturate(130%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(130%) !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

.gc-settings-open .gc-settings-backdrop,
.gc-settings-open .gc-settings-backdrop:not([hidden]) {
  pointer-events: auto !important;
  visibility: visible !important;
}

.gc-settings-backdrop[hidden] {
  display: block !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.gc-settings.gc-settings-v3 {
  display: flex !important;
  flex-direction: column !important;
  border-radius: 28px !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  background:
    radial-gradient(ellipse 90% 50% at 10% -8%, rgba(90, 190, 255, 0.2), transparent 50%),
    radial-gradient(ellipse 70% 40% at 100% 0%, rgba(120, 90, 255, 0.12), transparent 46%),
    linear-gradient(165deg, rgba(28, 32, 44, 0.97), rgba(8, 10, 16, 0.99)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 28px 90px rgba(0, 0, 0, 0.55) !important;
  /* Closed: off-screen + no hit-testing (opacity alone still receives taps) */
  transform: translate3d(0, 105%, 0) scale(0.975) !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition:
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.28s ease,
    visibility 0.28s ease !important;
}

.gc-settings-open .gc-settings.gc-settings-v3 {
  transform: translate3d(0, 0, 0) scale(1) !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

@media (min-width: 901px) {
  .gc-settings.gc-settings-v3 {
    transform: translate3d(0, 16px, 0) scale(0.975) !important;
  }

  .gc-settings-open .gc-settings.gc-settings-v3 {
    transform: translate3d(0, 0, 0) scale(1) !important;
  }
}

.gc-settings-v3 .gc-set-shell {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  min-height: 0 !important;
  background: transparent !important;
}

.gc-settings-v3 .gc-set-topbar {
  min-height: 3.6rem !important;
  padding: 1.05rem 1rem 0.55rem 1.15rem !important;
  border-bottom: 0 !important;
  background: transparent !important;
}

.gc-settings-v3 .gc-set-title {
  margin: 0 !important;
  font-size: 1.35rem !important;
  font-weight: 760 !important;
  letter-spacing: -0.04em !important;
  color: rgba(255, 255, 255, 0.97) !important;
}

.gc-settings-v3 .gc-set-close {
  width: 2.45rem !important;
  height: 2.45rem !important;
  border-radius: 50% !important;
  color: rgba(255, 255, 255, 0.88) !important;
  background: rgba(255, 255, 255, 0.07) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
  transition:
    background 0.2s ease,
    transform 0.2s ease,
    border-color 0.2s ease !important;
}

.gc-settings-v3 .gc-set-close:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  color: rgba(255, 255, 255, 0.96) !important;
}

.gc-settings-v3 .gc-set-close:active {
  transform: scale(0.94);
}

.gc-settings-v3 .gc-set-close svg {
  width: 17px !important;
  height: 17px !important;
}

.gc-settings-v3 .gc-set-tabs {
  display: flex !important;
  gap: 0.2rem !important;
  margin: 0.35rem 1rem 1rem !important;
  padding: 0.22rem !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

.gc-settings-v3 .gc-set-tabs__item {
  position: relative;
  flex: 1 1 0 !important;
  min-height: 2.3rem !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: rgba(255, 255, 255, 0.55) !important;
  font-size: 0.78rem !important;
  font-weight: 650 !important;
  letter-spacing: -0.015em !important;
  box-shadow: none !important;
  transition:
    background 0.22s ease,
    color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.16s ease !important;
}

.gc-settings-v3 .gc-set-tabs__item + .gc-set-tabs__item::before {
  content: none !important;
  display: none !important;
}

.gc-settings-v3 .gc-set-tabs__item.is-active {
  background:
    linear-gradient(168deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06)) !important;
  color: rgba(255, 255, 255, 0.96) !important;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 8px 20px -12px rgba(0, 0, 0, 0.45) !important;
}

.gc-settings-v3 .gc-set-tabs__item:active {
  transform: scale(0.97);
}

.gc-settings-v3 .gc-set-panel {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  overscroll-behavior: contain !important;
  padding: 0 1rem calc(1.35rem + env(safe-area-inset-bottom, 0px)) !important;
  background: transparent !important;
  transition:
    opacity 0.16s ease,
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.gc-settings-v3 .gc-set-panel--exit {
  opacity: 0;
  transform: translateY(8px);
}

.gc-settings-v3 .gc-set-panel--enter {
  animation: gc-set-panel-in 0.34s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes gc-set-panel-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gc-settings-v3 .gc-set-group {
  margin-bottom: 1.25rem !important;
}

.gc-settings-v3 .gc-set-group__label {
  margin: 0 0 0.45rem 0.55rem !important;
  font-size: 0.62rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  color: rgba(255, 255, 255, 0.4) !important;
}

.gc-settings-v3 .gc-set-foot {
  margin: 0.5rem 0 0 0.55rem !important;
  padding: 0 0.4rem 0 0;
  font-size: 0.74rem !important;
  line-height: 1.4 !important;
  color: rgba(255, 255, 255, 0.4) !important;
}

.gc-settings-v3 .gc-set-inset,
.gc-settings-v3 .gc-set-inset.glass {
  border-radius: 20px !important;
  background: rgba(255, 255, 255, 0.035) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
  overflow: hidden !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.gc-settings-v3 .gc-set-inset.glass::before,
.gc-settings-v3 .gc-set-inset.glass::after {
  display: none !important;
}

.gc-settings-v3 .gc-set-inset > *:not(:first-child)::after {
  content: none !important;
  display: none !important;
}

.gc-settings-v3 .gc-set-inset > .gc-set-row + .gc-set-row,
.gc-settings-v3 .gc-set-inset > .gc-set-row + .gc-set-chips-wrap,
.gc-settings-v3 .gc-set-inset > .gc-set-chips-wrap + .gc-set-row,
.gc-settings-v3 .gc-set-inset > .gc-set-details {
  border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.gc-settings-v3 .gc-set-row {
  display: flex !important;
  align-items: center !important;
  min-height: 3.15rem !important;
  padding: 0.65rem 0.95rem !important;
  background: transparent !important;
  gap: 0.75rem !important;
}

.gc-settings-v3 .gc-set-row__text {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  font-size: 0.92rem !important;
  font-weight: 560 !important;
  letter-spacing: -0.02em !important;
  color: rgba(255, 255, 255, 0.94) !important;
  line-height: 1.25 !important;
}

.gc-settings-v3 .gc-set-row--link:active,
.gc-settings-v3 .gc-set-row--danger:active,
.gc-settings-v3 a.gc-set-row:active {
  background: rgba(100, 210, 255, 0.08) !important;
}

.gc-settings-v3 .gc-set-row__chevron {
  flex-shrink: 0 !important;
  align-self: center !important;
  color: rgba(255, 255, 255, 0.32) !important;
  opacity: 1 !important;
}

.gc-settings-v3 .gc-set-row--select {
  align-items: center !important;
  gap: 0.65rem !important;
}

.gc-settings-v3 .gc-set-row--select .gc-set-row__text {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

.gc-settings-v3 .gc-set-row__select {
  flex: 0 0 auto !important;
  width: auto !important;
  max-width: 11.5rem !important;
  min-width: 7.5rem !important;
  min-height: 2rem !important;
  margin: 0 !important;
  padding: 0.3rem 1.65rem 0.3rem 0.7rem !important;
  border: 0 !important;
  border-radius: 999px !important;
  background-color: rgba(255, 255, 255, 0.07) !important;
  color: rgba(200, 230, 255, 0.92) !important;
  font-size: 0.78rem !important;
  font-weight: 650 !important;
  letter-spacing: -0.01em !important;
  line-height: 1.2 !important;
  text-align: left !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2398c8e8' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 0.55rem center !important;
  background-size: 0.7rem !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  cursor: pointer !important;
}

.gc-settings-v3 .gc-set-row__select:focus {
  outline: none !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 2px rgba(100, 210, 255, 0.28) !important;
}

.gc-settings-v3 .gc-set-row__select option {
  background: #141821 !important;
  color: #f2f6fb !important;
}

.gc-settings-v3 .gc-set-switch__track {
  width: 2.85rem !important;
  height: 1.7rem !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.22) !important;
  flex-shrink: 0 !important;
  align-self: center !important;
}

.gc-settings-v3 .gc-set-switch__track::after {
  top: 0.14rem !important;
  left: 0.14rem !important;
  width: 1.32rem !important;
  height: 1.32rem !important;
  background: #fff !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.28) !important;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

.gc-settings-v3 .gc-set-row--toggle input:checked + .gc-set-switch__track {
  background: linear-gradient(135deg, #5ac8ff, #3a8fff) !important;
  border-color: transparent !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 6px 16px -8px rgba(60, 160, 255, 0.7) !important;
}

.gc-settings-v3 .gc-set-row--toggle input:checked + .gc-set-switch__track::after {
  transform: translateX(1.12rem) !important;
  background: #fff !important;
}

.gc-settings-v3 .gc-set-chips-wrap {
  padding: 0.7rem 0.75rem 0.8rem !important;
}

.gc-settings-v3 .gc-set-chip {
  min-height: 2.15rem !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: rgba(255, 255, 255, 0.72) !important;
  font-weight: 600 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.16s ease,
    box-shadow 0.2s ease !important;
}

.gc-settings-v3 .gc-set-chip:active {
  transform: scale(0.96);
}

.gc-settings-v3 .gc-set-chip.is-on {
  background:
    linear-gradient(145deg, rgba(90, 190, 255, 0.95), rgba(58, 120, 255, 0.92)) !important;
  border-color: rgba(140, 220, 255, 0.35) !important;
  color: #fff !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 8px 18px -10px rgba(40, 150, 255, 0.75) !important;
}

.gc-settings-v3 .gc-set-chip--fav.is-on {
  background: linear-gradient(145deg, #ff6482, #e23a5c) !important;
  border-color: rgba(255, 140, 160, 0.35) !important;
  color: #fff !important;
}

.gc-settings-v3 .gc-set-details {
  border-top: 0 !important;
}

.gc-settings-v3 .gc-set-details__summary {
  display: flex !important;
  align-items: center !important;
  gap: 0.55rem !important;
  min-height: 3.15rem;
  padding: 0.65rem 0.95rem !important;
  font-size: 0.92rem !important;
  font-weight: 560 !important;
  letter-spacing: -0.02em !important;
  color: rgba(255, 255, 255, 0.94) !important;
  cursor: pointer;
  list-style: none !important;
}

.gc-settings-v3 .gc-set-details__summary::-webkit-details-marker {
  display: none !important;
}

.gc-settings-v3 .gc-set-details__label {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

.gc-settings-v3 .gc-set-details__meta {
  flex: 0 0 auto !important;
  min-width: 1.35rem !important;
  padding: 0.12rem 0.45rem !important;
  border-radius: 999px !important;
  background: rgba(100, 210, 255, 0.16) !important;
  border: 1px solid rgba(100, 210, 255, 0.22) !important;
  color: rgba(180, 230, 255, 0.95) !important;
  font-size: 0.68rem !important;
  font-weight: 720 !important;
  line-height: 1.2 !important;
  text-align: center !important;
}

.gc-settings-v3 .gc-set-details__summary .gc-set-row__chevron {
  margin-left: auto !important;
  color: rgba(255, 255, 255, 0.32) !important;
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

.gc-settings-v3 .gc-set-details[open] .gc-set-details__summary .gc-set-row__chevron {
  transform: rotate(180deg);
}

.gc-settings-v3 .gc-set-details + .gc-set-details {
  border-top: 1px solid rgba(255, 255, 255, 0.07) !important;
}

.gc-settings-v3 .gc-set-details__body {
  padding: 0 !important;
}

.gc-settings-v3 .gc-set-details__body .gc-set-chips-wrap {
  max-height: min(42vh, 260px) !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  -webkit-overflow-scrolling: touch !important;
  border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
}

html[data-theme="light"] .gc-settings-v3 .gc-set-details__meta {
  background: rgba(70, 160, 255, 0.12) !important;
  border-color: rgba(70, 160, 255, 0.2) !important;
  color: rgba(20, 90, 150, 0.95) !important;
}

html[data-theme="light"] .gc-settings-v3 .gc-set-details + .gc-set-details,
html[data-theme="light"] .gc-settings-v3 .gc-set-details__body .gc-set-chips-wrap,
html[data-theme="light"] .gc-settings-v3 .gc-set-fav-sagas {
  border-color: rgba(20, 40, 80, 0.08) !important;
}

.gc-settings-v3 .gc-set-fav-sagas {
  padding: 0.75rem 0.85rem 0.85rem !important;
  border-top: 1px solid rgba(255, 255, 255, 0.07) !important;
}

.gc-settings-v3 .gc-set-fav-sagas__label {
  margin: 0 0 0.55rem 0.1rem !important;
  font-size: 0.72rem !important;
  font-weight: 650 !important;
  letter-spacing: -0.01em !important;
  color: rgba(255, 255, 255, 0.55) !important;
}

.gc-settings-v3 .gc-set-tabs {
  flex-shrink: 0 !important;
}

.gc-settings-v3 .gc-set-topbar {
  flex-shrink: 0 !important;
}

.gc-settings-v3 .gc-set-details__body .gc-set-row {
  padding-left: 0.95rem !important;
  padding-right: 0.95rem !important;
}

.gc-settings-v3 .gc-set-btn-row,
.gc-settings-v3 .gc-set-copy-row,
.gc-settings-v3 .gc-set-inline {
  padding: 0.7rem 0.75rem !important;
}

.gc-settings-v3 .gc-set-btn {
  min-height: 2.65rem !important;
  border-radius: 999px !important;
  background: rgba(100, 210, 255, 0.12) !important;
  border: 1px solid rgba(120, 220, 255, 0.22) !important;
  color: #9fe4ff !important;
  font-weight: 650 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

.gc-settings-v3 .gc-set-btn:active {
  background: rgba(100, 210, 255, 0.18) !important;
}

.gc-settings-v3 .gc-set-input {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 999px !important;
  color: rgba(255, 255, 255, 0.94) !important;
  min-height: 2.5rem;
  padding: 0.55rem 0.95rem !important;
}

.gc-settings-v3 .gc-set-icon-btn {
  background: rgba(100, 210, 255, 0.12) !important;
  color: #9fe4ff !important;
  border: 1px solid rgba(120, 220, 255, 0.2) !important;
  border-radius: 999px !important;
}

.gc-settings-v3 .gc-set-note {
  color: rgba(255, 255, 255, 0.42) !important;
}

.gc-settings-v3 .gc-set-note--warn {
  color: #ffb340 !important;
}

.gc-settings-v3 .gc-set-row--danger .gc-set-row__text {
  color: #ff7a96 !important;
}

#gc-settings-root .gc-set-confirm {
  position: fixed;
  inset: 0;
  z-index: 12050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(1rem, env(safe-area-inset-top)) 1.1rem max(1rem, env(safe-area-inset-bottom));
}

#gc-settings-root .gc-set-confirm__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

#gc-settings-root .gc-set-confirm__card {
  position: relative;
  z-index: 1;
  width: min(22rem, 100%);
  padding: 1.15rem 1.1rem 1rem;
  border-radius: 22px;
  background: rgba(28, 30, 36, 0.96) !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  text-align: center;
}

#gc-settings-root .gc-set-confirm__title {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.96);
}

#gc-settings-root .gc-set-confirm__body {
  margin: 0 0 1.05rem;
  font-size: 0.86rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.58);
}

#gc-settings-root .gc-set-confirm__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

#gc-settings-root .gc-set-confirm__btn {
  min-height: 2.7rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  cursor: pointer;
}

#gc-settings-root .gc-set-confirm__btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.88);
}

#gc-settings-root .gc-set-confirm__btn--primary {
  background: rgba(100, 210, 255, 0.16);
  border-color: rgba(120, 220, 255, 0.28);
  color: #9fe4ff;
}

html[data-theme="light"] #gc-settings-root .gc-set-confirm__backdrop {
  background: rgba(20, 24, 32, 0.28);
}

html[data-theme="light"] #gc-settings-root .gc-set-confirm__card {
  background: rgba(255, 255, 255, 0.96) !important;
  border-color: rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] #gc-settings-root .gc-set-confirm__title {
  color: rgba(20, 24, 32, 0.94);
}

html[data-theme="light"] #gc-settings-root .gc-set-confirm__body {
  color: rgba(20, 24, 32, 0.55);
}

html[data-theme="light"] #gc-settings-root .gc-set-confirm__btn--ghost {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.08);
  color: rgba(20, 24, 32, 0.82);
}

.gc-settings-v3 .gc-set-row--choice {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 0.45rem !important;
  padding-top: 0.7rem !important;
  padding-bottom: 0.7rem !important;
}

.gc-settings-v3 .gc-set-row--choice .gc-set-row__text {
  flex: none !important;
  width: 100% !important;
}

.gc-settings-v3 .gc-set-segment {
  display: flex !important;
  align-items: stretch !important;
  gap: 0.15rem !important;
  width: 100% !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px !important;
  padding: 0.18rem !important;
  box-sizing: border-box !important;
}

.gc-settings-v3 .gc-set-segment--wrap {
  flex-wrap: wrap !important;
  border-radius: 16px !important;
  gap: 0.2rem !important;
}

.gc-settings-v3 .gc-set-segment__btn {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  min-height: 2rem !important;
  padding: 0.35rem 0.55rem !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: rgba(255, 255, 255, 0.55) !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
  white-space: nowrap !important;
  cursor: pointer !important;
}

.gc-settings-v3 .gc-set-segment--wrap .gc-set-segment__btn {
  flex: 1 1 calc(33.33% - 0.2rem) !important;
}

.gc-settings-v3 .gc-set-segment__btn.is-active,
.gc-settings-v3 .theme-toggle-row button.is-active {
  background:
    linear-gradient(168deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06)) !important;
  color: rgba(255, 255, 255, 0.96) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
}

html[data-theme="light"] .gc-settings-v3 .gc-set-segment__btn {
  color: rgba(10, 24, 48, 0.45) !important;
}

html[data-theme="light"] .gc-settings-v3 .gc-set-segment__btn.is-active {
  background: #fff !important;
  color: rgba(10, 24, 48, 0.94) !important;
}

html[data-theme="light"] .gc-settings-backdrop {
  background: rgba(220, 230, 245, 0.55) !important;
}

html[data-theme="light"] .gc-settings.gc-settings-v3 {
  background:
    radial-gradient(ellipse 90% 50% at 10% -8%, rgba(70, 160, 255, 0.16), transparent 50%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.98), rgba(236, 242, 250, 0.99)) !important;
  border-color: rgba(30, 60, 110, 0.1) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 28px 80px rgba(30, 50, 90, 0.18) !important;
}

html[data-theme="light"] .gc-settings-v3 .gc-set-title {
  color: rgba(10, 24, 48, 0.94) !important;
}

html[data-theme="light"] .gc-settings-v3 .gc-set-close {
  color: rgba(10, 24, 48, 0.7) !important;
  background: rgba(255, 255, 255, 0.7) !important;
  border-color: rgba(20, 40, 80, 0.1) !important;
}

html[data-theme="light"] .gc-settings-v3 .gc-set-tabs {
  background: rgba(15, 30, 60, 0.05) !important;
  border-color: rgba(20, 40, 80, 0.1) !important;
}

html[data-theme="light"] .gc-settings-v3 .gc-set-tabs__item {
  color: rgba(10, 24, 48, 0.5) !important;
}

html[data-theme="light"] .gc-settings-v3 .gc-set-tabs__item.is-active {
  background: #fff !important;
  color: rgba(10, 24, 48, 0.94) !important;
}

html[data-theme="light"] .gc-settings-v3 .gc-set-group__label,
html[data-theme="light"] .gc-settings-v3 .gc-set-foot,
html[data-theme="light"] .gc-settings-v3 .gc-set-note {
  color: rgba(10, 24, 48, 0.45) !important;
}

html[data-theme="light"] .gc-settings-v3 .gc-set-inset,
html[data-theme="light"] .gc-settings-v3 .gc-set-inset.glass {
  background: rgba(255, 255, 255, 0.72) !important;
  border-color: rgba(20, 40, 80, 0.08) !important;
}

html[data-theme="light"] .gc-settings-v3 .gc-set-row__text,
html[data-theme="light"] .gc-settings-v3 .gc-set-details__summary {
  color: rgba(10, 24, 48, 0.94) !important;
}

html[data-theme="light"] .gc-settings-v3 .gc-set-row__select {
  background-color: rgba(15, 30, 60, 0.05) !important;
  color: rgba(20, 90, 150, 0.9) !important;
}

html[data-theme="light"] .gc-settings-v3 .gc-set-chip {
  background: rgba(15, 30, 60, 0.05) !important;
  border-color: rgba(20, 40, 80, 0.1) !important;
  color: rgba(10, 24, 48, 0.7) !important;
}

@media (max-width: 900px) {
  .gc-settings.gc-settings-v3 {
    top: max(0.25rem, env(safe-area-inset-top, 0px)) !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    max-width: none !important;
    max-height: none !important;
    height: auto !important;
    min-height: calc(100dvh - max(0.25rem, env(safe-area-inset-top, 0px))) !important;
    border-radius: 28px 28px 0 0 !important;
    border-bottom: 0 !important;
  }

  .gc-settings-v3 .gc-set-panel {
    padding: 0 0.9rem calc(1rem + env(safe-area-inset-bottom, 0px)) !important;
  }

  .gc-settings-v3 .gc-set-group {
    margin-bottom: 0.85rem !important;
  }

  .gc-settings-v3 .gc-set-topbar {
    min-height: 3.1rem !important;
    padding: 0.75rem 0.9rem 0.4rem 1rem !important;
  }

  .gc-settings-v3 .gc-set-tabs {
    margin: 0 0.9rem 0.55rem !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gc-settings.gc-settings-v3,
  .gc-settings-v3 .gc-set-panel,
  .gc-settings-v3 .gc-set-panel--enter {
    transition: none !important;
    animation: none !important;
  }
}

/* ==========================================================================
   Unified motion timing
   Every sheet (nav drawer / settings / profile / search) runs its open AND
   close through the motion.css tokens, so one easing + one duration scale per
   device tier (full / lite / off). Fallbacks keep it safe if motion.css is
   missing for any reason.
   ========================================================================== */
.nav-drawer {
  transition: transform var(--mo-dur-sheet, 0.42s)
    var(--mo-ease-emphasized, cubic-bezier(0.2, 0, 0, 1)) !important;
}

.nav-drawer__backdrop,
.gc-settings-backdrop,
.gc-profile-backdrop {
  transition: opacity var(--mo-dur-base, 0.28s) var(--mo-ease-standard, ease),
    backdrop-filter var(--mo-dur-base, 0.28s) var(--mo-ease-standard, ease),
    visibility var(--mo-dur-base, 0.28s) var(--mo-ease-standard, ease) !important;
}

.gc-settings.gc-settings-v3 {
  transition: transform var(--mo-dur-sheet, 0.42s)
      var(--mo-ease-emphasized, cubic-bezier(0.2, 0, 0, 1)),
    opacity var(--mo-dur-base, 0.28s) var(--mo-ease-standard, ease) !important;
}

.gc-profile-sheet {
  transition: transform var(--mo-dur-sheet, 0.42s)
      var(--mo-ease-emphasized, cubic-bezier(0.2, 0, 0, 1)),
    opacity var(--mo-dur-base, 0.28s) var(--mo-ease-standard, ease) !important;
}

@media (max-width: 900px) {
  body.category-page--games:has(.gc-app) .gc-chrome--mobile.gc-chrome--search-open {
    animation: mo-pop-in var(--mo-dur-sheet, 0.36s)
      var(--mo-ease-emphasized, cubic-bezier(0.2, 0, 0, 1)) both !important;
  }

  body.category-page--games:has(.gc-app) .gc-app--search-mode::before {
    animation: mo-fade-in var(--mo-dur-base, 0.26s) var(--mo-ease-standard, ease) both !important;
  }

  /*
   * Mobile safe-area contract:
   * - Background layers MAY bleed under notch / home indicator (full device).
   * - Interactive chrome (header, toolbar, panels) MUST stay inside safe-area.
   */
  body.gc-mobile-cal[data-page="games-calendar"] .ambient,
  body.page-wrap.category-page--games > .ambient,
  body.category-page--games:has(.gc-app) .ambient {
    position: fixed !important;
    top: -45vh !important;
    right: -45vw !important;
    bottom: -45vh !important;
    left: -45vw !important;
    inset: unset !important;
    width: auto !important;
    height: auto !important;
    z-index: 0 !important;
    pointer-events: none !important;
    overflow: visible !important;
  }

  body.gc-mobile-cal[data-page="games-calendar"]::before,
  body.page-wrap.category-page--games::before {
    position: fixed !important;
    top: -45% !important;
    right: -45% !important;
    bottom: -45% !important;
    left: -45% !important;
    inset: unset !important;
    width: auto !important;
    height: auto !important;
    z-index: 0 !important;
    pointer-events: none !important;
  }

  body.gc-mobile-cal[data-page="games-calendar"] [data-shell="header"],
  body.gc-mobile-cal[data-page="games-calendar"] .cal-page,
  body.gc-mobile-cal[data-page="games-calendar"] .gc-app--mobile-ui {
    position: relative !important;
    z-index: 1 !important;
  }

  /*
   * Header clear of notch/status bar:
   * --app-safe-top from tokens / shell.js (env, or iOS fallback when env is 0)
   * shell padding = initial layout; sticky top = stuck state; same token both
   */
  body.gc-mobile-cal[data-page="games-calendar"] [data-shell="header"] {
    padding-top: var(--app-safe-top) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-bottom: 0.35rem !important;
    box-sizing: border-box !important;
  }

  body.gc-mobile-cal[data-page="games-calendar"] .site-header,
  body.gc-mobile-cal[data-page="games-calendar"] .site-header.glass {
    position: sticky !important;
    top: var(--app-safe-top) !important;
    left: 0 !important;
    right: 0 !important;
    width: min(calc(100% - 1.1rem), 26rem) !important;
    max-width: min(calc(100% - 1.1rem), 26rem) !important;
    margin: 0 auto !important;
    overflow: hidden !important;
  }

  body.gc-mobile-cal[data-page="games-calendar"] .gc-chrome--mobile:not(.gc-chrome--search-open) {
    margin-left: max(0.35rem, env(safe-area-inset-left, 0px)) !important;
    margin-right: max(0.35rem, env(safe-area-inset-right, 0px)) !important;
  }

  /* Bigger platform logos inside the same chip size (no chip growth) */
  body.category-page--games:has(.gc-app) .gc-app--mobile-ui .gc-platform-chip__icon {
    width: 1.7rem !important;
    height: 1.7rem !important;
    flex-shrink: 0 !important;
  }

  body.category-page--games:has(.gc-app) .gc-app--mobile-ui .gc-platform-chip__icon .gc-platform-mark,
  body.category-page--games:has(.gc-app) .gc-app--mobile-ui .gc-platform-chip__icon .gc-platform-mark--img,
  body.category-page--games:has(.gc-app) .gc-app--mobile-ui .gc-platform-chip__icon img.gc-platform-mark {
    width: 1.7rem !important;
    height: 1.7rem !important;
    max-width: 1.7rem !important;
    max-height: 1.7rem !important;
    object-fit: contain !important;
  }

  body.category-page--games:has(.gc-app) .gc-app--mobile-ui .gc-platform-chip--switch1 .gc-platform-chip__icon .gc-platform-mark,
  body.category-page--games:has(.gc-app) .gc-app--mobile-ui .gc-platform-chip--switch1 .gc-platform-chip__icon .gc-platform-mark--img,
  body.category-page--games:has(.gc-app) .gc-app--mobile-ui .gc-platform-chip--switch2 .gc-platform-chip__icon .gc-platform-mark,
  body.category-page--games:has(.gc-app) .gc-app--mobile-ui .gc-platform-chip--switch2 .gc-platform-chip__icon .gc-platform-mark--img {
    width: auto !important;
    max-width: 2rem !important;
    height: 1.55rem !important;
    max-height: 1.55rem !important;
  }
}

/* =========================================================================
   GAME MEDIA — screenshots fill the card; quiet highlight (beats v10)
   ========================================================================= */
.gc-game-media__track {
  align-items: stretch !important;
}

.gc-game-media__card,
.gc-game-sheet--sketch .gc-game-media__card {
  display: flex !important;
  flex-direction: column !important;
  align-self: stretch !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  background: rgba(255, 255, 255, 0.035) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
  -webkit-tap-highlight-color: transparent !important;
  outline: none !important;
  transition:
    transform 0.2s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.2s ease,
    box-shadow 0.2s ease !important;
}

.gc-game-media__card--trailer,
.gc-game-sheet--sketch .gc-game-media__card--trailer {
  border-color: rgba(255, 255, 255, 0.1) !important;
}

.gc-game-media__card:hover,
.gc-game-media__card:focus,
.gc-game-media__card:focus-visible,
.gc-game-sheet--sketch .gc-game-media__card:hover,
.gc-game-sheet--sketch .gc-game-media__card:focus,
.gc-game-sheet--sketch .gc-game-media__card:focus-visible,
.gc-game-sheet--sketch .gc-game-media__card--trailer:hover,
.gc-game-sheet--sketch.gc-game-sheet--clean .gc-game-media__card:hover {
  transform: translateY(-1px) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 24px rgba(0, 0, 0, 0.35) !important;
  outline: none !important;
}

.gc-game-media__card:active,
.gc-game-sheet--sketch .gc-game-media__card:active {
  transform: scale(0.985) !important;
}

/* Trailer defines row height: 16:9 frame + label */
.gc-game-media__card--trailer .gc-game-media__visual,
.gc-game-sheet--sketch .gc-game-media__card--trailer .gc-game-media__visual {
  position: relative !important;
  flex: 0 0 auto !important;
  width: 100% !important;
  aspect-ratio: 16 / 9 !important;
}

.gc-game-media__card--trailer .gc-game-media__thumb,
.gc-game-sheet--sketch .gc-game-media__card--trailer .gc-game-media__thumb {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: auto !important;
  background-size: cover !important;
  background-position: center !important;
}

.gc-game-media__card--trailer .gc-game-media__label,
.gc-game-sheet--sketch .gc-game-media__card--trailer .gc-game-media__label {
  flex: 0 0 auto !important;
}

/* Screenshots stretch to trailer height and fill the whole panel */
.gc-game-media__card--shot,
.gc-game-sheet--sketch .gc-game-media__card--shot {
  position: relative !important;
  overflow: hidden !important;
  min-height: 100% !important;
}

.gc-game-media__card--shot img,
.gc-game-sheet--sketch .gc-game-media__card--shot img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  aspect-ratio: auto !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
  border-radius: 0 !important;
}

/* No trailer: keep cinematic frame on shots alone */
.gc-game-media__track:not(:has(.gc-game-media__card--trailer)) .gc-game-media__card--shot {
  aspect-ratio: 16 / 10 !important;
}

.gc-game-media__expand {
  opacity: 0.75 !important;
  z-index: 1 !important;
}

/* =========================================================================
   CALENDAR FRAME — page itself never scrolls.
   Profile through platforms stay put. The month fills the space under them.
   ========================================================================= */
html:has(body[data-page="games-calendar"]) {
  height: 100% !important;
  overflow: hidden !important;
  overscroll-behavior: none !important;
}

body[data-page="games-calendar"] {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  left: 0 !important;
  bottom: auto !important;
  width: 100% !important;
  height: var(--cal-viewport-h, 100svh) !important;
  max-height: var(--cal-viewport-h, 100svh) !important;
  margin: 0 !important;
  overflow: hidden !important;
  overscroll-behavior: none !important;
}

body[data-page="games-calendar"] > [data-shell="header"] {
  flex: 0 0 auto !important;
}

body.category-page--games[data-page="games-calendar"]:has(.gc-app) .cal-page,
body.category-page--games[data-page="games-calendar"]:has(.gc-app) .cal-page > [data-calendar-app] {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
}

body.category-page--games[data-page="games-calendar"]:has(.gc-app) .gc-app,
body.category-page--games[data-page="games-calendar"]:has(.gc-app--mobile-month-fit):not(:has(.gc-app--mobile-week-fit)):not(:has(.gc-app--mobile-day-fit)):not(:has(.gc-app--mobile-agenda-fit)):not(:has(.gc-app--mobile-myweek-fit)):not(:has(.gc-app--mobile-year-fit)) .gc-app--mobile-month-fit.gc-app--mobile-ui {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  height: 100% !important;
  max-height: 100% !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
}

body[data-page="games-calendar"] .gc-chrome:not(.gc-chrome--search-open) {
  position: relative !important;
  top: auto !important;
  flex: 0 0 auto !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.category-page--games[data-page="games-calendar"]:has(.gc-app--mobile-month-fit):not(:has(.gc-app--mobile-week-fit)):not(:has(.gc-app--mobile-day-fit)):not(:has(.gc-app--mobile-agenda-fit)):not(:has(.gc-app--mobile-myweek-fit)):not(:has(.gc-app--mobile-year-fit)) .gc-mobile-stage--month-fit {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  height: auto !important;
  max-height: none !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
}

body.category-page--games[data-page="games-calendar"]:has(.gc-app--mobile-month-fit):not(:has(.gc-app--mobile-week-fit)):not(:has(.gc-app--mobile-day-fit)):not(:has(.gc-app--mobile-agenda-fit)):not(:has(.gc-app--mobile-myweek-fit)):not(:has(.gc-app--mobile-year-fit)) .gc-body--mobile-month {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  height: auto !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
}

body.category-page--games[data-page="games-calendar"]:has(.gc-app--mobile-month-fit):not(:has(.gc-app--mobile-week-fit)):not(:has(.gc-app--mobile-day-fit)):not(:has(.gc-app--mobile-agenda-fit)):not(:has(.gc-app--mobile-myweek-fit)):not(:has(.gc-app--mobile-year-fit)) .gc-body--mobile-month .gc-grid--month-compact {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  height: auto !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
}

body.category-page--games[data-page="games-calendar"]:has(.gc-app--mobile-month-fit):not(:has(.gc-app--mobile-week-fit)):not(:has(.gc-app--mobile-day-fit)):not(:has(.gc-app--mobile-agenda-fit)):not(:has(.gc-app--mobile-myweek-fit)):not(:has(.gc-app--mobile-year-fit)) .gc-body--mobile-month .gc-grid--month-compact .gc-grid__body {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  height: auto !important;
  overflow: hidden !important;
}

.gc-quality-admin {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin-top: 0.65rem;
}

.gc-quality-admin__badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.7rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 90, 120, 0.14);
  border: 1px solid rgba(255, 120, 150, 0.28);
  color: #ffb7c4;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.gc-quality-admin__restore {
  min-height: 1.9rem;
  padding: 0.25rem 0.7rem;
  font-size: 0.74rem;
  font-weight: 700;
}

/* =========================================================================
   SHEETS — fill available viewport (Settings / Menu / Profile)
   ========================================================================= */
@media (max-width: 900px) {
  #gc-settings.gc-settings.gc-settings-v3,
  .gc-settings.gc-settings-v3 {
    top: max(0.2rem, env(safe-area-inset-top, 0px)) !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    max-height: none !important;
    min-height: calc(100dvh - max(0.2rem, env(safe-area-inset-top, 0px))) !important;
  }

  #nav-drawer.nav-drawer {
    max-height: min(96dvh, 100%) !important;
    min-height: min(70dvh, 100%) !important;
  }

  #gc-profile-sheet.gc-profile-sheet,
  .gc-profile-sheet {
    max-height: min(96dvh, 100%) !important;
    min-height: min(70dvh, 100%) !important;
  }
}
