/* Inter — self-hosted. Served from this origin so no visitor IP is
   sent to fonts.googleapis.com / fonts.gstatic.com. Variable font,
   weights 400-700; regenerate by re-downloading the same subsets. */
/* cyrillic-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/inter-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/inter-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/inter-greek-ext.woff2) format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/inter-greek.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/inter-vietnamese.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --bg: #e6e7eb;
  --bg-dark: #0f1116;
  --glass: rgba(255, 255, 255, 0.7);
  --glass-dark: rgba(17, 21, 30, 0.75);
  --border: rgba(8, 11, 20, 0.08);
  --border-dark: rgba(255, 255, 255, 0.08);
  --text: #0f1116;
  --text-soft: rgba(15, 17, 22, 0.64);
  --text-dark: #f6f8ff;
  --accent: #001AFF;
  --accent-3d: #ff291c;
  --accent-2: #30d158;
  --page-gutter: clamp(20px, 4vw, 56px);
  --layout-max: 1310px;
  font-size: clamp(15px, 0.9vw + 12px, 17px);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0f1116;
    --text: #f6f8ff;
    --glass: rgba(17, 21, 30, 0.75);
    --border: rgba(255, 255, 255, 0.08);
    --text-soft: rgba(246, 248, 255, 0.6);
  }
}



* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

html {
  background: var(--bg);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  min-height: 100vh;
  display: block;
  padding: 0;
  color: var(--text);
}

body.modal-open {
  overflow: hidden;
}

.stage {
  width: 100%;
  max-width: none;
  background: var(--glass);
  border-radius: 0;
  border: 0;
  box-shadow: none;
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  overflow: visible;
}

@media (prefers-color-scheme: dark) {
  .stage {
    background: var(--glass);
    box-shadow: none;
  }
}

.top-bar {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  background: var(--glass);
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.top-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 0 var(--page-gutter);
}

.top-bar__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.top-bar__logo {
  width: auto;
  display: block;
}

.top-bar__logo img {
  height: 66px;
  width: auto;
  display: block;
}

.top-bar__title {
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
}

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

#contact-btn {
  order: 1;
}


.lang-toggle {
  display: inline-grid;
  grid-template-columns: 1fr 1fr 1fr;
  width: auto;
  min-width: 150px;
  height: 40px;
  padding: 4px;
  border-radius: 14px;
  border: 1px solid rgba(15, 17, 22, 0.12);
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(16px);
  position: relative;
  isolation: isolate;
}

.lang-toggle__glider {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc((100% - 8px) / 3);
  background: rgba(255, 255, 255, 0.95);
  border-radius: 11px;
  box-shadow: inset 0 0 0 1px rgba(15, 17, 22, 0.07), 0 2px 8px rgba(15, 17, 22, 0.03);
  transition: transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 1;
  pointer-events: none;
}

@media (prefers-color-scheme: dark) {
  .lang-toggle {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
  }

  .lang-toggle__glider {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
  }

  .lang-toggle__btn {
    color: rgba(255, 255, 255, 0.5);
  }

  .lang-toggle__btn--active,
  .lang-toggle__btn[aria-pressed='true'] {
    color: #fff;
  }
}

/* Move glider based on state */
.lang-toggle[data-active-lang='en'] .lang-toggle__glider {
  transform: translateX(100%);
}

.lang-toggle[data-active-lang='ja'] .lang-toggle__glider {
  transform: translateX(200%);
}

.lang-toggle__btn {
  border: 0;
  background: transparent;
  height: 100%;
  padding: 0 12px;
  border-radius: 11px;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  color: rgba(15, 17, 22, 0.55);
  transition: color 200ms ease;
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
}

.lang-toggle__btn--active,
.lang-toggle__btn[aria-pressed='true'] {
  color: rgba(15, 17, 22, 0.92);
}

.top-bar__admin {
  height: 40px;
  padding: 0 14px;
  border-radius: 14px;
}

.top-bar__profile {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: rgba(15, 17, 22, 0.08);
  color: inherit;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-2);
}

.content {
  padding: 32px var(--page-gutter);
  max-width: var(--layout-max);
  margin: 0 auto;
  width: 100%;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px 0;
  align-items: stretch;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  margin-bottom: 32px;
}

.hero__copy {
  padding: 28px 28px 28px 48px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 24px;
  border: 1px solid rgba(15, 17, 22, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  height: 100%;
}

.hero h1 {
  font-size: clamp(1.08rem, 1.55vw, 1.45rem);
  margin-bottom: 10px;
}

.badge {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  font-size: 0.9rem;
  color: rgba(15, 17, 22, 0.55);
  font-weight: 600;
  margin-bottom: 8px;
}

.badge--hero {
  display: none !important;
  position: relative;
  gap: 0;
  margin-bottom: 10px;
  padding: 8px 13px 8px 11px;
  border-radius: 12px;
  border: 1px solid rgba(15, 17, 22, 0.14);
  background: rgba(255, 255, 255, 0.76);
  color: rgba(15, 17, 22, 0.78);
  font-size: 0.77rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: none;
}

.badge--hero::before {
  content: none;
}

.lead {
  color: var(--text-soft);
  line-height: 1.55;
  max-width: 38ch;
  font-size: 0.92rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 16px;
  padding: 12px 24px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.btn__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn__icon svg {
  width: 16px;
  height: 16px;
}

.btn__icon img {
  width: 16px;
  height: 16px;
  display: block;
}

.btn.ghost .btn__icon img {
  filter: invert(1);
}

.btn.telegram .btn__icon img {
  filter: none;
}

.btn.primary {
  background: linear-gradient(145deg, var(--accent), #4f63ff);
  color: #fff;
  box-shadow: none;
}

.btn.primary[data-open-wizard] {
  background: var(--accent);
}

.btn.primary[data-wizard-submit] {
  background: var(--accent);
}
.wizard .btn.primary {
  box-shadow: none;
}

.btn.telegram {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: transparent;
  border: 1px solid rgba(15, 17, 22, 0.1);
  color: #229ed9;
  box-shadow: none;
  transition: color 220ms ease, border-color 220ms ease;
}

.btn.telegram::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, #229ed9, #1a8fc5);
  opacity: 0;
  transition: opacity 260ms ease;
  z-index: 0;
}

.btn.telegram > * {
  position: relative;
  z-index: 1;
}

.btn.telegram:hover {
  color: #fff;
  border-color: transparent;
}

.btn.telegram:hover::before {
  opacity: 1;
}

.btn.discord {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: transparent;
  border: 1px solid rgba(15, 17, 22, 0.1);
  color: #5865f2;
  box-shadow: none;
  transition: color 220ms ease, border-color 220ms ease;
}

.btn.discord::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, #5865f2, #4752c4);
  opacity: 0;
  transition: opacity 260ms ease;
  z-index: 0;
}

.btn.discord > * {
  position: relative;
  z-index: 1;
}

.btn.discord:hover {
  color: #fff;
  border-color: transparent;
}

.btn.discord:hover::before {
  opacity: 1;
}

.btn.ghost {
  background: rgba(15, 17, 22, 0.05);
  color: var(--text);
}

.top-bar__about.btn.ghost {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 17, 22, 0.1);
  transition: background 200ms ease, border-color 200ms ease, color 200ms ease;
}

.top-bar__about.btn.ghost:hover {
  background: rgba(15, 17, 22, 0.06);
}

.btn:hover {
  filter: brightness(1.05);
}

.btn:disabled {
  opacity: 0.58;
  cursor: not-allowed;
  filter: none;
  box-shadow: none;
}

.btn:disabled:hover {
  filter: none;
}

.btn.primary:hover {
  box-shadow: 0 14px 34px rgba(0, 26, 255, 0.25);
}

.btn:active {
  filter: brightness(0.96);
}

.hero-widget-stack {
  display: grid;
  gap: 12px;
  justify-items: stretch;
  position: relative;
}

.hero-widget {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  border-radius: 24px;
  padding: 12px 24px 60px;
  border: 1px solid rgba(15, 17, 22, 0.08);
  box-shadow: none;
  position: relative;
}

@media (min-width: 641px) {
  .hero__copy {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: 0;
  }

  .hero-widget {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-left: 0;
  }
}

.hero-widget__details {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 14px;
  border: 1px solid rgba(15, 17, 22, 0.1);
  background: rgba(255, 255, 255, 0.72);
  color: rgba(15, 17, 22, 0.78);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.hero-widget__details:hover {
  background: rgba(255, 255, 255, 0.9);
}

.hero-widget__details:active {
  transform: translateY(1px);
}

.hero-widget__details:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.2);
}

.hero-widget__details svg {
  width: 16px;
  height: 16px;
}

.hero-widget__icon {
  width: 104px;
  height: 104px;
  border-radius: 30px;
  background: linear-gradient(135deg, #5c6dff, var(--accent));
  display: grid;
  place-items: center;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: white;
  box-shadow: 0 18px 36px rgba(0, 26, 255, 0.13);
  overflow: hidden;
}

.hero-widget__icon.has-device-image {
  background: transparent;
  box-shadow: none;
}

.hero-widget[data-edition='NEW'] .hero-widget__icon {
  background: transparent;
  box-shadow: none;
  color: var(--accent-3d);
}

.hero-widget__label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: rgba(15, 17, 22, 0.55);
}

.hero-widget__value {
  font-size: clamp(2.6rem, 6vw, 4rem);
  margin: 0;
  margin-top: -4px;
  font-weight: 600;
}

.hero-widget__meta {
  font-size: 0.9rem;
  color: var(--text-soft);
  text-wrap: balance;
  margin-top: -6px;
}

.hero-widget__meta--secondary {
  font-size: 0.86rem;
  margin-top: -2px;
}

.hero-toggle {
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(15, 17, 22, 0.12);
  border-radius: 14px;
  padding: 3px;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  height: 36px;
  gap: 0;
  isolation: isolate;
  bottom: 14px;
  right: 14px;
  left: auto;
  top: auto;
  position: absolute;
  z-index: 2;
  backdrop-filter: blur(16px);
  transform: none;
}

.hero-toggle__glider {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc(50% - 3px);
  background: rgba(255, 255, 255, 0.95);
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px rgba(15, 17, 22, 0.07), 0 2px 8px rgba(15, 17, 22, 0.03);
  transition: transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 1;
  pointer-events: none;
}

.hero-toggle[data-active-edition='NEW'] .hero-toggle__glider {
  transform: translateX(100%);
}

.hero-toggle__btn {
  border: 0;
  background: transparent;
  height: 100%;
  padding: 0 10px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  color: rgba(15, 17, 22, 0.55);
  transition: color 200ms ease;
  position: relative;
  z-index: 2;
}

.hero-toggle__btn--active,
.hero-toggle__btn[aria-pressed='true'] {
  color: rgba(15, 17, 22, 0.92);
  box-shadow: none;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 8px;
  margin: 0 0 16px;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 6;
  background: transparent;
  border-bottom: 1px solid transparent;
  padding: 12px 0 6px;
  transition: border-color 200ms ease, padding 200ms ease;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.filters--stuck {
  background: var(--glass);
  border-bottom-color: var(--border);
  padding: 12px 0;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

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

.filters__chips .chip {
  flex: 0 0 auto;
}

.filters__view {
  margin-left: auto;
}

.filters__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.filters__actions .filters__view {
  margin-left: 0;
}

.filters__sort {
  min-width: 190px;
}

.input-field.filters__sort select {
  min-height: 38px;
  height: auto;
  padding: 7px 34px 7px 12px;
  width: 100%;
  font-size: 0.82rem;
  line-height: 1.3;
  font-weight: 400;
  border-color: rgba(15, 17, 22, 0.12);
  color: rgba(15, 17, 22, 0.55);
  background-position: right 12px center;
}

.view-toggle {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  width: auto;
  min-width: 120px;
  height: 38px;
  padding: 4px;
  border-radius: 14px;
  border: 1px solid rgba(15, 17, 22, 0.12);
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(16px);
  position: relative;
  isolation: isolate;
}

.view-toggle__glider {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  background: rgba(255, 255, 255, 0.95);
  border-radius: 11px;
  box-shadow: inset 0 0 0 1px rgba(15, 17, 22, 0.07), 0 2px 8px rgba(15, 17, 22, 0.03);
  transition: transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 1;
  pointer-events: none;
}

.view-toggle[data-active-view='timeline'] .view-toggle__glider {
  transform: translateX(100%);
}

.view-toggle__btn {
  border: 0;
  background: transparent;
  height: 100%;
  padding: 0 12px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  color: rgba(15, 17, 22, 0.55);
  transition: color 200ms ease;
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.view-toggle__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.view-toggle__icon svg {
  width: 16px;
  height: 16px;
}

.view-toggle__btn--active,
.view-toggle__btn[aria-pressed='true'] {
  color: rgba(15, 17, 22, 0.92);
}

@media (prefers-color-scheme: dark) {
  .view-toggle {
    background: rgba(30, 34, 44, 0.62);
    border-color: var(--border);
  }

  .view-toggle__glider {
    background: rgba(60, 65, 80, 0.95);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
  }

  .view-toggle__btn {
    color: rgba(255, 255, 255, 0.55);
  }

  .view-toggle__btn--active,
  .view-toggle__btn[aria-pressed='true'] {
    color: rgba(255, 255, 255, 0.92);
  }
}

.comparison {
  margin: 0 0 26px;
}

.view-panel {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 220ms ease, transform 220ms ease;
  will-change: opacity, transform;
}

.view-panel.is-hidden {
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
}

.comparison__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.comparison__eyebrow {
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-soft);
  margin-bottom: 6px;
}

.comparison__title {
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  font-weight: 600;
}

.comparison__subtitle {
  margin-top: 6px;
  color: var(--text-soft);
  font-size: 0.95rem;
  max-width: 56ch;
  line-height: 1.5;
}

.comparison__panel {
  margin-top: 0;
  padding: 18px 20px 20px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: var(--glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.comparison__axis {
  display: grid;
  grid-template-columns: minmax(160px, 240px) 1fr auto;
  gap: 16px;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.comparison__axis-label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-soft);
}

.comparison__axis-label--time {
  grid-column: 3;
  justify-self: end;
}

.comparison__rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 14px;
}

.comparison__row {
  display: grid;
  grid-template-columns: minmax(160px, 240px) 1fr auto;
  gap: 16px;
  align-items: center;
}

.comparison__row[role='button'] {
  cursor: pointer;
}

.comparison__row:focus-visible {
  outline: 2px solid rgba(0, 113, 227, 0.35);
  outline-offset: 4px;
  border-radius: 16px;
}

.comparison__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.comparison__cpu {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
}

.comparison__meta {
  font-size: 0.84rem;
  color: var(--text-soft);
}

.comparison__time {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  text-align: right;
  min-width: 68px;
}

.comparison__track {
  position: relative;
  height: 28px;
  border-radius: 999px;
  background: rgba(15, 17, 22, 0.06);
  overflow: hidden;
  transition: background 200ms ease, box-shadow 200ms ease;
}

.comparison__bar {
  height: 100%;
  width: 0%;
  min-width: 16px;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(15, 17, 22, 0.2), rgba(15, 17, 22, 0.45));
  box-shadow: 0 8px 16px rgba(15, 17, 22, 0.12);
  position: relative;
  transition: width 360ms ease, transform 200ms ease, filter 200ms ease, box-shadow 200ms ease;
}

.comparison__bar::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
  opacity: 0.4;
}

.comparison__bar--best {
  background: linear-gradient(90deg, rgba(0, 26, 255, 0.25), rgba(0, 26, 255, 0.75));
  box-shadow: 0 10px 20px rgba(0, 26, 255, 0.28);
}

.comparison__bar--3d {
  background: linear-gradient(90deg, rgba(255, 41, 28, 0.2), rgba(255, 41, 28, 0.7));
  box-shadow: 0 10px 20px rgba(255, 41, 28, 0.25);
}

.comparison__row:focus-visible .comparison__track {
  background: rgba(15, 17, 22, 0.1);
  box-shadow: inset 0 0 0 1px rgba(15, 17, 22, 0.08);
}

.comparison__row:focus-visible .comparison__bar {
  transform: scaleY(1.08);
  filter: brightness(1.08);
}

@media (hover: hover) and (pointer: fine) {
  .comparison__row:hover .comparison__track {
    background: rgba(15, 17, 22, 0.1);
    box-shadow: inset 0 0 0 1px rgba(15, 17, 22, 0.08);
  }

  .comparison__row:hover .comparison__bar {
    transform: scaleY(1.08);
    filter: brightness(1.08);
  }
}

.comparison__empty {
  margin-top: 16px;
}

.comparison__axis[hidden],
.comparison__rows[hidden] {
  display: none;
}

@media (prefers-color-scheme: dark) {
  .comparison__track {
    background: rgba(45, 50, 65, 0.65);
  }

  .comparison__bar {
    background: linear-gradient(90deg, rgba(115, 125, 150, 0.3), rgba(200, 210, 230, 0.6));
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.45);
  }

  .comparison__bar::after {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  }

  .comparison__bar--best {
    background: linear-gradient(90deg, rgba(92, 109, 255, 0.3), rgba(92, 109, 255, 0.9));
    box-shadow: 0 10px 22px rgba(92, 109, 255, 0.35);
  }

  .comparison__bar--3d {
    background: linear-gradient(90deg, rgba(255, 94, 84, 0.28), rgba(255, 94, 84, 0.88));
    box-shadow: 0 10px 22px rgba(255, 94, 84, 0.32);
  }

  .comparison__row:focus-visible .comparison__track {
    background: rgba(55, 60, 80, 0.8);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  }

  .comparison__row:focus-visible .comparison__bar {
    filter: brightness(1.12);
  }
}

@media (prefers-color-scheme: dark) and (hover: hover) and (pointer: fine) {
  .comparison__row:hover .comparison__track {
    background: rgba(55, 60, 80, 0.8);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  }

  .comparison__row:hover .comparison__bar {
    filter: brightness(1.12);
  }
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(15, 17, 22, 0.18);
  border-radius: 14px;
  padding: 8px 18px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 0.9rem;
  backdrop-filter: blur(10px);
  transition: background 200ms ease, color 200ms ease, border 200ms ease;
}

.filters .chip {
  font-size: 0.82rem;
  font-weight: 600;
}

.chip__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.chip__icon svg {
  width: 16px;
  height: 16px;
}

.chip__img {
  width: 16px;
  height: 16px;
  display: block;
  transition: filter 200ms ease, opacity 200ms ease;
}

.chip:is([data-filter='windows'], [data-filter='macos'], [data-filter='laptop'], [data-filter='desktop']) {
  padding: 8px 12px;
  gap: 0;
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease, padding 200ms ease, gap 200ms ease;
}

.chip:is([data-filter='windows'], [data-filter='macos'], [data-filter='laptop'], [data-filter='desktop']) span[data-i18n] {
  display: inline-block;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  transform: translateX(-4px);
  transition: max-width 200ms ease, opacity 200ms ease, transform 200ms ease;
}

.chip:is([data-filter='windows'], [data-filter='macos'], [data-filter='laptop'], [data-filter='desktop']).chip--active span[data-i18n],
.chip:is([data-filter='windows'], [data-filter='macos'], [data-filter='laptop'], [data-filter='desktop'])[aria-pressed='true'] span[data-i18n] {
  max-width: 140px;
  opacity: 1;
  transform: translateX(0);
}

.chip:is([data-filter='windows'], [data-filter='macos'], [data-filter='laptop'], [data-filter='desktop']).chip--active,
.chip:is([data-filter='windows'], [data-filter='macos'], [data-filter='laptop'], [data-filter='desktop'])[aria-pressed='true'] {
  padding: 8px 18px;
  gap: 8px;
}

.chip--active .chip__img,
.chip[aria-pressed='true'] .chip__img {
  filter: invert(1) brightness(1.1);
}

.chip--active,
.chip[aria-pressed='true'] {
  background: rgba(60, 66, 82, 0.9);
  color: #fff;
  border-color: transparent;
}

@media (prefers-color-scheme: light) {
  .chip--active,
  .chip[aria-pressed='true'] {
    background: var(--text);
    color: #fff;
    border-color: transparent;
  }
}

@media (hover: hover) and (pointer: fine) {
  .chip:hover .chip__img {
    filter: invert(1) brightness(1.1);
  }

  .chip:hover {
    background: rgba(15, 17, 22, 0.92);
    color: white;
    border-color: transparent;
  }

  .chip--active:hover,
  .chip[aria-pressed='true']:hover {
    background: rgba(72, 78, 94, 0.95);
    color: #fff;
    border-color: transparent;
  }
}

@media (prefers-color-scheme: light) and (hover: hover) and (pointer: fine) {
  .chip:not(.chip--active):not([aria-pressed='true']):hover .chip__img {
    filter: none;
  }

  .chip:not(.chip--active):not([aria-pressed='true']):hover {
    background: #f3f3f3;
    color: var(--text);
    border-color: rgba(15, 17, 22, 0.18);
  }

  .chip--active:hover,
  .chip[aria-pressed='true']:hover {
    background: var(--text);
    color: #fff;
    border-color: transparent;
  }
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 20px;
}

.stage-footer {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px var(--page-gutter) 8px;
}

.stage-footer__logo {
  height: 16px;
  width: auto;
  opacity: 0.28;
  user-select: none;
  -webkit-user-drag: none;
}

.result-card {
  background: var(--glass);
  border-radius: 22px;
  padding: 18px;
  border: 1.5px solid rgba(15, 17, 22, 0.06);
  box-shadow: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
  outline: none;
  cursor: pointer;
  position: relative;
}

.result-card:focus-visible {
  outline: 2px solid rgba(0, 113, 227, 0.35);
  outline-offset: 2px;
}

.result-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 44px rgba(15, 17, 22, 0.07);
}

.result-card--banner {
  padding: 0;
  cursor: default;
  overflow: hidden;
  position: relative;
  isolation: isolate;
  min-height: 220px;
  transition: opacity 220ms ease, transform 220ms ease;
}

.result-card--banner:hover {
  transform: none;
  box-shadow: none;
}

.result-card--banner.is-hiding {
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
}

.result-card__banner-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 0;
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.92);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 150ms ease, background 150ms ease;
  backdrop-filter: blur(3px);
  box-shadow: none;
  appearance: none;
}

.result-card__banner-close:hover {
  background: rgba(255, 255, 255, 0.24);
  transform: translateY(-1px);
}

.result-card__banner-close:active {
  transform: translateY(0);
}

.result-card__banner-close svg {
  display: block;
}

.result-card__banner-close:focus-visible {
  outline: none;
}

.result-card__banner-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
}

.result-card__banner-link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.82);
  outline-offset: -2px;
  border-radius: 22px;
}

@media (prefers-color-scheme: dark) {
  .result-card__banner-close {
    background: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.92);
  }
}

.result-card__banner-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("rxxr_promo.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.result-card__header {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 12px;
  margin-bottom: 0;
}

.result-card__top {
  position: relative;
  border-radius: 14px;
  background: rgba(15, 17, 22, 0.025);
  padding: 10px 56px 10px 12px;
}

.result-card__bottom {
  border-radius: 14px;
  background: transparent;
  padding: 12px;
}

.result-card__divider {
  height: 1px;
  margin: 12px 0 14px;
  background: linear-gradient(
    90deg,
    rgba(15, 17, 22, 0) 0%,
    rgba(15, 17, 22, 0.12) 10%,
    rgba(15, 17, 22, 0.12) 90%,
    rgba(15, 17, 22, 0) 100%
  );
}

.result-card__pills {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.result-card__pills--corner {
  position: static;
  justify-content: flex-end;
  align-self: flex-end;
  pointer-events: none;
}

.result-card__pills--inline {
  justify-content: flex-end;
  align-self: flex-end;
  pointer-events: none;
  display: none !important;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(15, 17, 22, 0.12);
  background: rgba(255, 255, 255, 0.7);
  color: rgba(15, 17, 22, 0.75);
  white-space: nowrap;
}

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

.result-card__pills[hidden] {
  display: none !important;
}

.pill--year {
  padding: 2px 6px;
  font-size: 0.64rem;
  line-height: 1.2;
  border-radius: 8px;
  border: 0;
  background: rgba(15, 17, 22, 0.05);
  color: rgba(15, 17, 22, 0.62);
}

.pill--year-cpu,
.pill--year-gpu {
  border-radius: 8px;
  background: rgba(15, 17, 22, 0.05);
  color: rgba(15, 17, 22, 0.62);
}

.result-card .pill--year,
.result-card .pill--year-cpu,
.result-card .pill--year-gpu {
  color: #0f1116;
}

.pill--ae {
  border: 0;
  background: rgba(15, 17, 22, 0.05);
  color: rgba(15, 17, 22, 0.78);
}

.pill--sb {
  border-color: rgba(0, 26, 255, 0.18);
  background: rgba(0, 26, 255, 0.08);
  color: var(--accent);
}

.result-card[data-edition='NEW'] .pill--sb {
  border: 0;
  background: rgba(255, 41, 28, 0.08);
  color: #b4362d;
}

.result-card__icon {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  background: linear-gradient(135deg, #0f1116, #2c2f39);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 600;
  font-size: 0.8rem;
  overflow: hidden;
}

.result-card__icon.has-device-image {
  background: transparent;
}

.result-card__device {
  font-weight: 600;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.result-card__device-name {
  min-width: 0;
}

.result-card__system {
  font-size: 0.85rem;
  color: var(--text-soft);
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.os-mark {
  width: 12px;
  height: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.os-mark__img {
  width: 12px;
  height: 12px;
  display: block;
}

.result-card__system .os-mark__img {
  opacity: 0.6;
  filter: saturate(0);
}

.os-mark--modal {
  width: 18px;
  height: 18px;
}

.os-mark--modal .os-mark__img {
  width: 18px;
  height: 18px;
}

.result-card__specs {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 12px;
  margin-bottom: 12px;
}

.result-card__specs>div:first-child {
  min-width: 0;
}

.result-card__specs .result-card__value {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-card__body {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: flex-end;
}

.result-card__compare-btn {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 13px;
  border: 1px solid rgba(15, 17, 22, 0.1);
  background: rgba(255, 255, 255, 0.78);
  color: rgba(15, 17, 22, 0.82);
  cursor: pointer;
  z-index: 1;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 160ms ease;
}

.result-card__compare-btn:hover {
  background: rgba(255, 255, 255, 0.96);
}

.result-card__compare-btn:active {
  transform: translateY(1px);
}

.result-card__compare-btn:focus-visible {
  outline: 2px solid rgba(0, 113, 227, 0.35);
  outline-offset: 2px;
}

.result-card__compare-btn.is-selected {
  background: rgba(0, 113, 227, 0.12);
  border-color: rgba(0, 113, 227, 0.24);
  color: rgba(0, 82, 165, 0.96);
}

.result-card.is-compare-selected {
  border-color: rgba(0, 113, 227, 0.2);
  box-shadow: 0 0 0 1px rgba(0, 113, 227, 0.08);
}

.result-card__label {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 6px;
}

.result-card__value {
  font-size: 1.1rem;
  font-weight: 600;
}

.result-card__value--ae {
  color: #111;
}

.result-card__value--edition {
  color: var(--accent);
}

.result-card__value--memory {
  color: rgba(15, 17, 22, 0.92);
}

.result-card[data-edition='NEW'] .result-card__value--edition {
  color: var(--accent-3d);
}

.result-card[data-edition='NEW'] .result-card__value--memory {
  color: rgba(15, 17, 22, 0.92);
}

.result-card__time {
  font-size: 1.45rem;
  font-weight: 600;
}

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

  .card-modal__nav-btn {
    display: none;
  }
}

.empty-state {
  padding: 48px 16px;
  text-align: center;
  color: var(--text-soft);
  border: 1px dashed rgba(15, 17, 22, 0.2);
  border-radius: 20px;
  font-size: 0.95rem;
}

.db-loader {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(245, 247, 255, 0.45);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
  z-index: 25;
}

.db-loader.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.db-loader__panel {
  display: inline-flex;
  align-items: flex-start;
  gap: 20px;
  width: min(420px, 90%);
  padding: 32px 28px;
  border-radius: 20px;
  border: 1px solid rgba(15, 17, 22, 0.08);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 45px rgba(15, 17, 22, 0.06);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  transform: translateY(6px);
  transition: transform 220ms ease;
}

.db-loader.is-visible .db-loader__panel {
  transform: translateY(0);
}

.db-loader__spinner {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 3px solid rgba(15, 17, 22, 0.18);
  border-top-color: rgba(0, 26, 255, 0.85);
  animation: sbSpin 800ms linear infinite;
  flex: 0 0 auto;
}

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

.db-loader__title {
  font-weight: 600;
  line-height: 1.2;
  font-size: 1.15rem;
}

.db-loader__subtitle {
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.55;
  margin-top: 6px;
}

.db-loader__progress {
  margin-top: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-soft);
  font-variant-numeric: tabular-nums;
}

.db-loader__tips {
  margin-top: 14px;
  padding-top: 12px;
  padding-right: 12px;
  border-top: 1px solid rgba(15, 17, 22, 0.08);
}

.db-loader__tips-title {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
  font-weight: 600;
}

.db-loader__tip {
  margin-top: 6px;
  font-size: 0.8rem;
  line-height: 1.5;
  color: rgba(15, 17, 22, 0.82);
  min-height: 2.7em;
}

.toast {
  position: fixed;
  inset: auto 0 0 0;
  padding: 16px;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 180ms ease, transform 180ms ease;
  transform: translateY(8px);
  z-index: 30;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.toast__panel {
  width: min(720px, calc(100% - 16px));
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(15, 17, 22, 0.1);
  border-radius: 22px;
  padding: 14px 16px;
  box-shadow: 0 16px 44px rgba(15, 17, 22, 0.1);
  backdrop-filter: blur(18px);
  position: relative;
}

.toast__title {
  font-weight: 700;
  line-height: 1.2;
}

.toast__subtitle {
  margin-top: 6px;
  color: var(--text-soft);
  line-height: 1.35;
}

.toast__close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: rgba(15, 17, 22, 0.08);
  width: 34px;
  height: 34px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  color: rgba(15, 17, 22, 0.92);
}

.toast[data-tone='error'] .toast__panel {
  border-color: rgba(217, 45, 32, 0.25);
  background: rgba(255, 255, 255, 0.92);
}

.toast[data-tone='error'] .toast__title {
  color: #d92d20;
}

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

.wizard {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 10;
}

.wizard.is-visible {
  pointer-events: auto;
}

.wizard__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 15, 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  opacity: 0;
  will-change: opacity, background-color, backdrop-filter;
  transform: translate3d(0, 0, 0);
  transition:
    opacity 200ms ease,
    background-color 240ms ease,
    backdrop-filter 240ms ease,
    -webkit-backdrop-filter 240ms ease;
}

.wizard.is-visible .wizard__backdrop {
  background: rgba(5, 8, 15, 0.4);
  opacity: 1;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.wizard__panel {
  position: relative;
  width: 100%;
  max-width: 640px;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 28px;
  padding: 32px;
  border: 1px solid rgba(15, 17, 22, 0.08);
  box-shadow: 0 24px 64px rgba(15, 17, 22, 0.15);
  z-index: 1;
  max-height: calc(100dvh - 32px);
  overflow: visible;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 200ms ease, transform 220ms ease;
}

.wizard.is-visible .wizard__panel {
  opacity: 1;
  transform: translateY(0);
}

.wizard__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.wizard__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.7rem;
  color: var(--text-soft);
  margin-bottom: 6px;
}

.wizard__header h2 {
  font-size: 1.35rem;
  line-height: 1.3;
  font-weight: 600;
}

.wizard__close {
  border: 0;
  background: rgba(255, 255, 255, 0.96);
  width: 40px;
  height: 40px;
  border-radius: 14px;
  cursor: pointer;
  color: rgba(15, 17, 22, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

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

.wizard__steps {
  list-style: none;
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  padding: 0;
}

.wizard__form {
  flex: 1;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding-right: 10px;
  padding-bottom: 8px;
}

.wizard__steps-item {
  flex: 1;
  text-align: center;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(15, 17, 22, 0.15);
  color: var(--text-soft);
}

.wizard__steps-item.is-active {
  color: var(--text);
  border-bottom-color: var(--accent);
  font-weight: 600;
}

.wizard-step {
  animation: fadeIn 200ms ease;
}

.wizard__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.wizard-cores {
  display: contents;
}

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

.input-field span {
  font-size: 0.85rem;
  color: var(--text-soft);
}

@media (prefers-color-scheme: dark) {

  .input-field input,
  .input-field select,
  .input-field textarea {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: white;
    color-scheme: dark;
  }

  .input-field input::placeholder,
  .input-field textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
  }

  .input-field input:focus,
  .input-field select:focus,
  .input-field textarea:focus {
    border-color: rgba(255, 255, 255, 0.7);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.45);
  }

  .input-field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.7)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  }

  .input-field.filters__sort select {
    color: rgba(255, 255, 255, 0.55);
    background-color: rgba(30, 34, 44, 0.62);
    border-color: var(--border);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  }

  .input-field.filters__sort select option,
  .input-field.filters__sort select optgroup {
    background-color: #141824;
    color: rgba(255, 255, 255, 0.92);
  }
}

.input-field input,
.input-field select,
.input-field textarea {
  border: 1px solid rgba(15, 17, 22, 0.2);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.9);
  font-family: inherit;
  color: var(--text);
  caret-color: var(--text);
  color-scheme: light;
}

.input-field textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.5;
}

.input-field input:focus,
.input-field select:focus,
.input-field textarea:focus {
  outline: none;
  border-color: rgba(0, 26, 255, 0.55);
  box-shadow: inset 0 0 0 2px rgba(0, 26, 255, 0.4);
}

.input-field select {
  padding-right: 48px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='rgba(15,17,22,0.72)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 14px 14px;
}

.input-field input::placeholder,
.input-field textarea::placeholder {
  color: rgba(15, 17, 22, 0.45);
}

.input-field--full {
  grid-column: 1 / -1;
}

.wizard__error {
  min-height: 1.2rem;
  margin: 14px 0 0;
  color: #d92d20;
  font-size: 0.9rem;
}

.wizard__footer {
  position: sticky;
  position: -webkit-sticky;
  bottom: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  padding-bottom: calc(8px + env(safe-area-inset-bottom));
  background: transparent;
  border-top: 0;
  isolation: isolate;
  position: relative;
}

.wizard__footer-gap {
  flex: 1;
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card-modal,
.compare-modal,
.about-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 20;
}

.card-modal.is-visible,
.compare-modal.is-visible,
.about-modal.is-visible {
  pointer-events: auto;
}

.card-modal__backdrop,
.compare-modal__backdrop,
.about-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 15, 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  opacity: 0;
  will-change: opacity, background-color, backdrop-filter;
  transform: translate3d(0, 0, 0);
  transition:
    opacity 200ms ease,
    background-color 240ms ease,
    backdrop-filter 240ms ease,
    -webkit-backdrop-filter 240ms ease;
}

.card-modal.is-visible .card-modal__backdrop {
  opacity: 1;
  background: rgba(5, 8, 15, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.compare-modal.is-visible .compare-modal__backdrop {
  opacity: 1;
  background: rgba(5, 8, 15, 0.52);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.about-modal.is-visible .about-modal__backdrop {
  opacity: 1;
  background: rgba(5, 8, 15, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.card-modal__panel {
  position: relative;
  width: min(940px, calc(100% - 32px));
  background: rgba(255, 255, 255, 0.96);
  border-radius: 28px;
  padding: 32px;
  border: 1px solid rgba(15, 17, 22, 0.1);
  box-shadow: 0 28px 76px rgba(15, 17, 22, 0.18);
  z-index: 1;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 200ms ease, transform 220ms ease;
  isolation: isolate;
}

.card-modal__panel::before {
  content: none;
}

.card-modal.is-visible .card-modal__panel {
  opacity: 1;
  transform: translateY(0);
}

.card-modal__content {
  display: grid;
  gap: 18px;
}

.card-modal__nav-btn {
  position: absolute;
  top: 50%;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  border: 2px solid rgba(255, 255, 255, 0.76);
  background: rgba(8, 11, 20, 0.24);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transform: translate3d(0, -50%, 0);
  transition: border-color 180ms ease, color 180ms ease, opacity 150ms ease, background-color 180ms ease;
  z-index: 2;
  box-shadow: none;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.card-modal__nav-btn--prev {
  left: -84px;
}

.card-modal__nav-btn--next {
  right: -84px;
}

.card-modal__nav-btn:hover {
  background: rgba(8, 11, 20, 0.4);
  border-color: #fff;
  color: #fff;
}

.card-modal__nav-btn:active {
  transform: translate3d(0, -50%, 0) scale(0.98);
}

.card-modal__nav-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.card-modal__nav-btn svg {
  width: 22px;
  height: 22px;
}

.card-modal[data-swap='next'] .card-modal__content {
  animation: cardSwapNext 240ms ease;
}

.card-modal[data-swap='prev'] .card-modal__content {
  animation: cardSwapPrev 240ms ease;
}

@keyframes cardSwapNext {
  from {
    opacity: 0.6;
    transform: translate3d(26px, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes cardSwapPrev {
  from {
    opacity: 0.6;
    transform: translate3d(-26px, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}


.card-modal__header {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 0 0 16px;
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid rgba(15, 17, 22, 0.08);
  background: transparent;
}

.card-modal__icon {
  width: 56px;
  height: 56px;
  border-radius: 20px;
  background: linear-gradient(135deg, #0f1116, #2c2f39);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 600;
  overflow: hidden;
}

.card-modal__icon.has-device-image {
  background: transparent;
}

.device-icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transform: scale(1.12);
  transform-origin: center;
}

.card-modal__eyebrow {
  font-size: 0.85rem;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.card-modal__title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: clamp(1.18rem, 1.05rem + 0.55vw, 1.5rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.card-modal__title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.os-mark--title {
  width: 18px;
  height: 18px;
}

.os-mark--title .os-mark__img {
  width: 18px;
  height: 18px;
}

.card-modal__subtitle {
  color: var(--text-soft);
  margin: 6px 0 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.92rem;
}

.card-modal__subtitle span[aria-hidden='true'] {
  opacity: 0.48;
}

.card-modal__years {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 0;
}

.card-modal__years[hidden] {
  display: none !important;
}

.card-modal__years .pill--year {
  padding: 5px 10px;
  font-size: 0.76rem;
  line-height: 1.2;
}

.card-modal__close {
  margin-left: auto;
  border: 1px solid rgba(15, 17, 22, 0.1);
  background: rgba(255, 255, 255, 0.96);
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: rgba(15, 17, 22, 0.5);
  padding: 0;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.card-modal__close:hover {
  background: rgba(15, 17, 22, 0.12);
  border-color: rgba(15, 17, 22, 0.14);
  color: rgba(15, 17, 22, 0.72);
}

.card-modal__close:focus-visible,
.card-modal__nav-btn:focus-visible {
  outline: 2px solid rgba(0, 113, 227, 0.4);
  outline-offset: 2px;
}

.card-modal__close svg {
  width: 20px;
  height: 20px;
  display: block;
}

.card-modal__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.card-modal__stats > div {
  text-align: center;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(15, 17, 22, 0.08);
  background: rgba(15, 17, 22, 0.04);
}

.card-modal__stats p {
  margin: 0 0 8px;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-soft);
}

.card-modal__stats strong {
  font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.56rem);
  line-height: 1.1;
}

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

.card-modal__grid>div {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  min-height: 0;
}

.card-modal__grid p {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-soft);
  margin: 0 0 8px;
}

.card-modal__grid strong {
  font-size: 1rem;
  line-height: 1.35;
  display: block;
  word-break: break-word;
}

.card-modal__mobile-controls {
  display: none;
}

.card-modal__mobile-btn {
  border: 1px solid rgba(15, 17, 22, 0.12);
  background: rgba(15, 17, 22, 0.06);
  border-radius: 14px;
  height: 44px;
  color: rgba(15, 17, 22, 0.82);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, opacity 150ms ease;
}

.card-modal__mobile-btn svg {
  width: 18px;
  height: 18px;
}

.card-modal__mobile-btn:hover {
  background: rgba(15, 17, 22, 0.1);
  border-color: rgba(15, 17, 22, 0.16);
}

.card-modal__mobile-btn:active {
  transform: translateY(1px);
}

.card-modal__mobile-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.card-modal__mobile-btn--close {
  background: rgba(15, 17, 22, 0.1);
  border-color: rgba(15, 17, 22, 0.18);
}

.card-modal__mobile-btn--close:hover {
  background: rgba(15, 17, 22, 0.14);
  border-color: rgba(15, 17, 22, 0.24);
}

.card-modal__mobile-btn:focus-visible {
  outline: 2px solid rgba(0, 113, 227, 0.4);
  outline-offset: 2px;
}

.compare-dock {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  width: min(1320px, calc(100% - 24px));
  z-index: 18;
}

.compare-dock[hidden] {
  display: none !important;
}

.compare-dock__inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(15, 17, 22, 0.08);
  background: rgba(255, 255, 255, 0.98);
}

.compare-dock__copy {
  flex: 1 1 auto;
  min-width: 0;
}

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

.compare-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 6px 8px 6px 10px;
  border-radius: 8px;
  border: 1px solid rgba(15, 17, 22, 0.08);
  background: #fff;
}

.compare-chip--entering {
  animation: compareChipEnter 180ms ease-out both;
}

@keyframes compareChipEnter {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.compare-chip__icon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border-radius: 8px;
  background: transparent;
  display: grid;
  place-items: center;
  color: rgba(15, 17, 22, 0.78);
  font-weight: 600;
  font-size: 0.68rem;
  overflow: hidden;
}

.compare-chip__icon.has-device-image {
  background: transparent;
}

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

.compare-chip__title {
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.2;
}

.compare-chip__meta {
  font-size: 0.75rem;
  color: var(--text-soft);
}

.compare-chip__remove {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 1px solid rgba(15, 17, 22, 0.08);
  background: transparent;
  color: rgba(15, 17, 22, 0.64);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0;
}

.compare-chip__remove:hover {
  background: rgba(15, 17, 22, 0.04);
  color: rgba(15, 17, 22, 0.86);
}

.compare-dock__actions {
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
}

.btn.primary.compare-dock__btn {
  white-space: nowrap;
  background: var(--accent);
  box-shadow: none;
}

.btn.primary.compare-dock__btn:hover,
.btn.primary.compare-dock__btn:focus-visible {
  background: var(--accent);
  box-shadow: none;
}

.compare-modal__panel {
  position: relative;
  width: min(1240px, calc(100% - 24px));
  max-height: min(800px, calc(100vh - 40px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border-radius: 20px;
  padding: 20px;
  border: 1px solid rgba(15, 17, 22, 0.08);
  z-index: 1;
  opacity: 0;
  transition: opacity 160ms ease;
}

.compare-modal.is-visible .compare-modal__panel {
  opacity: 1;
}

.compare-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(15, 17, 22, 0.06);
}

.compare-modal__title {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.3;
  letter-spacing: 0;
  max-width: none;
}

.compare-modal__close {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border: 1px solid rgba(15, 17, 22, 0.1);
  background: rgba(255, 255, 255, 0.96);
  color: rgba(15, 17, 22, 0.5);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.compare-modal__close:hover {
  background: rgba(15, 17, 22, 0.12);
  border-color: rgba(15, 17, 22, 0.14);
  color: rgba(15, 17, 22, 0.72);
}

.compare-modal__close:focus-visible,
.compare-chip__remove:focus-visible,
.compare-table__remove:focus-visible {
  outline: 2px solid rgba(0, 113, 227, 0.35);
  outline-offset: 2px;
}

.compare-modal__content {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

.compare-table-wrap {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  --compare-column-count: 4;
  --compare-label-col-width: 208px;
  --compare-value-col-width: 220px;
  border-radius: 0;
  border: 0;
  background: transparent;
}

.compare-summary {
  display: grid;
  grid-template-columns: var(--compare-label-col-width) repeat(var(--compare-column-count), var(--compare-value-col-width));
  width: max-content;
  min-width: 100%;
  margin-bottom: 14px;
}

.compare-summary__spacer {
  min-width: var(--compare-label-col-width);
}

.compare-summary__cell {
  padding: 0 6px;
}

.compare-summary__cell > .compare-table__entry {
  min-height: 100%;
  border: 0;
  background: rgba(15, 17, 22, 0.025);
}

.compare-summary__cell > .compare-table__entry.compare-table__entry--best {
  border: 0;
  background: rgba(15, 17, 22, 0.025);
}

.compare-table-grid {
  width: max-content;
  min-width: 100%;
  overflow-x: auto;
  overflow-y: auto;
  scrollbar-gutter: stable;
  overscroll-behavior: contain;
  flex: 1 1 auto;
  min-height: 0;
  border-radius: 16px;
  border: 1px solid rgba(15, 17, 22, 0.06);
  background: #fff;
}

.compare-table {
  width: auto;
  min-width: 0;
  border-collapse: separate;
  border-spacing: 0;
}

.compare-table th,
.compare-table td {
  padding: 10px 12px;
  vertical-align: top;
  text-align: left;
}

.compare-table__row-label {
  width: var(--compare-label-col-width);
  color: var(--text-soft);
}

.compare-table__entry {
  position: relative;
  display: block;
  padding: 12px;
  min-height: 100%;
  border-radius: 16px;
  border: 1px solid rgba(15, 17, 22, 0.06);
  background: #fff;
}

.compare-table__entry--best {
  border-color: rgba(0, 113, 227, 0.18);
  background: rgba(0, 113, 227, 0.08);
}

.compare-table__entry-top {
  position: relative;
  min-height: 0;
}

.compare-table__entry-identity {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  min-height: 100%;
  min-width: 0;
  text-align: center;
}

.compare-table__device-icon {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: 16px;
  border: 0;
  background: rgba(15, 17, 22, 0.06);
  display: grid;
  place-items: center;
  color: rgba(15, 17, 22, 0.8);
  font-weight: 600;
  font-size: 0.86rem;
  overflow: hidden;
}

.compare-table__device-icon.has-device-image {
  background: transparent;
}

.compare-table__entry-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  width: 100%;
}

.compare-table__entry-title {
  max-width: 100%;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0;
}

.compare-table__entry-meta {
  margin-top: 6px;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--text-soft);
}

.compare-table__entry-foot {
  margin-top: 2px;
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--text-soft);
}

.compare-table__remove {
  position: absolute;
  top: 0;
  right: 0;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 1px solid rgba(15, 17, 22, 0.06);
  background: transparent;
  color: rgba(15, 17, 22, 0.56);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.compare-table__remove:hover {
  background: rgba(15, 17, 22, 0.04);
  border-color: rgba(15, 17, 22, 0.1);
  color: rgba(15, 17, 22, 0.9);
}

@media (hover: hover) and (pointer: fine) {
  .compare-chip__remove,
  .compare-table__remove {
    opacity: 0;
    pointer-events: none;
    transition:
      opacity 160ms ease,
      background-color 180ms ease,
      border-color 180ms ease,
      color 180ms ease;
  }

  .compare-chip:hover .compare-chip__remove,
  .compare-chip:focus-within .compare-chip__remove,
  .compare-summary__cell:hover .compare-table__remove,
  .compare-summary__cell:focus-within .compare-table__remove,
  .compare-chip__remove:focus-visible,
  .compare-table__remove:focus-visible {
    opacity: 1;
    pointer-events: auto;
  }
}

.compare-table__section-row th {
  padding: 18px 12px 8px;
  background: transparent;
  border: 0;
}

.compare-table__section-head {
  position: static;
}

.compare-table__section {
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(15, 17, 22, 0.46);
}

.compare-table__metric-row th,
.compare-table__metric-row td {
  border: 0;
  border-top: 1px solid rgba(15, 17, 22, 0.06);
  padding-top: 10px;
  padding-bottom: 10px;
}

.compare-table__row-label {
  padding-left: 12px;
}

.compare-table__row-label-text {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(15, 17, 22, 0.56);
}

.compare-table__value {
  font-size: 0.88rem;
  line-height: 1.35;
  color: rgba(15, 17, 22, 0.56);
}

.compare-table__value-text {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  width: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
}

.compare-table__value-text--time {
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.compare-table__value-text--best {
  color: #0f1116;
  font-weight: 700;
}

.compare-table__value--best {
  color: #0f1116;
}

.about-modal__panel {
  position: relative;
  width: min(680px, calc(100% - 32px));
  background: rgba(255, 255, 255, 0.96);
  border-radius: 28px;
  padding: 32px;
  border: 1px solid rgba(15, 17, 22, 0.08);
  box-shadow: 0 24px 64px rgba(15, 17, 22, 0.15);
  z-index: 1;
  max-height: min(720px, calc(100vh - 64px));
  overflow: auto;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 200ms ease, transform 220ms ease;
}

.about-modal.is-visible .about-modal__panel {
  opacity: 1;
  transform: translateY(0);
}

.about-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.about-modal__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.7rem;
  color: var(--text-soft);
  margin-bottom: 6px;
}

.about-modal__close {
  border: 0;
  background: rgba(255, 255, 255, 0.96);
  width: 40px;
  height: 40px;
  border-radius: 14px;
  cursor: pointer;
  color: rgba(15, 17, 22, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.about-modal__close svg {
  width: 20px;
  height: 20px;
  display: block;
}

.about-modal__content h4 {
  margin-top: 18px;
  margin-bottom: 10px;
}

.about-modal__content p {
  color: var(--text-soft);
  line-height: 1.6;
  margin-bottom: 10px;
}

.admin-login__card {
  background: var(--bg);
  padding: 32px;
  border-radius: 24px;
  width: min(400px, 100%);
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.04);
}

@media (prefers-color-scheme: dark) {
  .admin-login__card {
    background: var(--glass);
  }
}

.about-modal__content ul,
.about-modal__content ol {
  padding-left: 22px;
  color: rgba(15, 17, 22, 0.78);
  line-height: 1.6;
}

.about-modal__content li {
  margin: 6px 0;
}

.about-modal__actions {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  body {
    padding: 0;
  }

  .card-modal__panel>.card-modal__nav-btn {
    display: none;
  }

  .card-modal__header .card-modal__close {
    display: none;
  }

  .card-modal__content {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    gap: 14px;
    padding-bottom: 8px;
  }

  .card-modal__header {
    gap: 12px;
    align-items: flex-start;
    padding: 0 0 14px;
    border-radius: 0;
  }

  .card-modal__icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
  }

  .card-modal__close {
    width: 36px;
    height: 36px;
    border-radius: 12px;
  }

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

  .card-modal__stats > div:first-child {
    grid-column: 1 / -1;
  }

  .card-modal__grid {
    grid-template-columns: 1fr;
  }

  .card-modal__mobile-controls {
    display: grid;
    grid-template-columns: 1fr 1.15fr 1fr;
    gap: 10px;
    position: static;
    z-index: 1;
    margin-top: 10px;
    margin-bottom: 10px;
    padding: 0;
    border-top: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .card-modal__mobile-btn {
    height: 44px;
    border-radius: 14px;
    background: rgba(15, 17, 22, 0.06);
    border-color: rgba(15, 17, 22, 0.12);
    color: rgba(15, 17, 22, 0.82);
    box-shadow: none;
  }

  .card-modal__mobile-btn--close {
    background: rgba(15, 17, 22, 0.08);
    border-color: rgba(15, 17, 22, 0.16);
    color: rgba(15, 17, 22, 0.84);
  }

  .compare-dock {
    width: calc(100% - 20px);
    bottom: calc(88px + env(safe-area-inset-bottom));
  }

  .compare-dock__inner {
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-radius: 20px;
  }

  .compare-dock__actions {
    width: 100%;
  }

  .compare-dock__actions .btn {
    flex: 1 1 0;
  }

  .result-card__compare-btn,
  .compare-dock {
    display: none !important;
  }

  .compare-chip {
    width: 100%;
    justify-content: space-between;
  }

  .compare-chip__text {
    flex: 1 1 auto;
  }

  .compare-modal__panel {
    width: min(100%, calc(100% - 16px));
    max-height: calc(100vh - 24px);
    padding: 22px 16px 18px;
    border-radius: 20px;
  }

  .compare-modal__header {
    gap: 12px;
    padding-bottom: 14px;
  }

  .compare-modal__title {
    max-width: none;
  }

  .compare-table-wrap {
    --compare-label-col-width: 168px;
    --compare-value-col-width: 212px;
  }

  .compare-table th,
  .compare-table td {
    padding: 12px 10px;
  }

  .compare-table__entry {
    padding: 14px;
    border-radius: 16px;
  }

  .compare-table__entry-top {
    min-height: 0;
  }

  .compare-table__device-icon {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    border-radius: 16px;
    font-size: 0.74rem;
  }

  .compare-table__entry-identity {
    gap: 12px;
  }

  .compare-table__entry-meta {
    font-size: 0.78rem;
  }

  .compare-table__section-row th {
    padding: 18px 14px 8px;
  }

  .compare-table__row-label {
    padding-left: 14px;
  }

  .compare-table__row-label-text,
  .compare-table__value-text {
    min-height: 28px;
    font-size: 0.84rem;
  }

  .top-bar {
    padding: 12px 0;
  }

  .top-bar__inner {
    padding: 0 16px;
  }

  .top-bar__logo {
    height: 48px;
  }

  .top-bar__logo img {
    height: 48px;
  }

  .top-bar__actions {
    gap: 10px;
  }



  .content {
    padding: 24px var(--page-gutter);
    padding-bottom: 132px;
  }

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

  .hero__copy {
    padding: 24px 24px 24px 34px;
  }

  .hero h1 {
    font-size: 1.1rem;
    margin-bottom: 10px;
  }

  .lead {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .badge {
    font-size: 0.82rem;
  }

  .badge--hero {
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    padding: 7px 10px 7px 9px;
  }

  .hero-actions {
    display: none;
  }

  .hero-toggle {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }

  .filters__actions {
    width: 100%;
    flex-wrap: nowrap;
  }

  .filters__chips {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-right: 16px;
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 18px), transparent 100%);
    mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 18px), transparent 100%);
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
  }

  .filters__chips::-webkit-scrollbar {
    height: 0;
  }

  .filters__sort {
    flex: 1;
    min-width: 0;
  }

  .filters__view {
    margin-left: 0;
    width: auto;
  }

  .view-toggle {
    width: auto;
    min-width: 96px;
  }

  .comparison__panel {
    padding: 16px;
  }

  .comparison__axis,
  .comparison__row {
    grid-template-columns: minmax(120px, 160px) 1fr auto;
    gap: 12px;
  }

  .comparison__cpu {
    font-size: 0.88rem;
  }

  .comparison__meta {
    font-size: 0.76rem;
  }

  .comparison__track {
    height: 24px;
  }

  .comparison__time {
    display: none;
  }

  .card-modal,
  .compare-modal,
  .about-modal {
    transition: opacity 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
  }

  .wizard {
    align-items: stretch;
  }

  .card-modal {
    align-items: stretch;
  }

  .compare-modal {
    align-items: stretch;
  }

  .about-modal {
    align-items: stretch;
  }

  .wizard__panel {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    border-radius: 0;
    padding: calc(24px + env(safe-area-inset-top)) var(--page-gutter) calc(24px + env(safe-area-inset-bottom));
    box-shadow: none;
    overflow: auto;
    transform: translateY(18px);
    opacity: 0;
    transition: transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 200ms ease;
    will-change: transform, opacity;
  }

  .card-modal__panel {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    display: flex;
    flex-direction: column;
    border-radius: 0;
    padding: calc(24px + env(safe-area-inset-top)) var(--page-gutter) calc(10px + env(safe-area-inset-bottom));
    box-shadow: none;
    overflow: hidden;
    transform: translateY(18px);
    opacity: 0;
    transition: transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 200ms ease;
    will-change: transform, opacity;
  }

  .compare-modal__panel {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    display: flex;
    flex-direction: column;
    border-radius: 0;
    padding: calc(24px + env(safe-area-inset-top)) var(--page-gutter) calc(10px + env(safe-area-inset-bottom));
    box-shadow: none;
    overflow: hidden;
    transform: translateY(18px);
    opacity: 0;
    transition: transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 200ms ease;
    will-change: transform, opacity;
  }

  .about-modal__panel {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    border-radius: 0;
    padding: calc(24px + env(safe-area-inset-top)) var(--page-gutter) calc(24px + env(safe-area-inset-bottom));
    box-shadow: none;
    overflow: auto;
    transform: translateY(18px);
    opacity: 0;
    transition: transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 200ms ease;
    will-change: transform, opacity;
  }

  .wizard.is-visible .wizard__panel {
    transform: translateY(0);
    opacity: 1;
  }

  .card-modal.is-visible .card-modal__panel,
  .compare-modal.is-visible .compare-modal__panel,
  .about-modal.is-visible .about-modal__panel {
    transform: translateY(0);
    opacity: 1;
  }

}

@media (max-width: 1060px) and (min-width: 641px) {
  .filters {
    flex-wrap: nowrap;
  }

  .filters__chips {
    flex: 1 1 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-right: 16px;
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 18px), transparent 100%);
    mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 18px), transparent 100%);
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
  }

  .filters__chips::-webkit-scrollbar {
    height: 0;
  }
}

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

  .result-card--banner {
    display: none !important;
  }

  .btn.telegram.top-bar__admin,
  .btn.discord.top-bar__admin {
    width: 40px;
    padding: 0;
    justify-content: center;
  }

  .btn.telegram.top-bar__admin .btn__icon svg,
  .btn.discord.top-bar__admin .btn__icon svg {
    width: 16px;
    height: 16px;
  }

  .btn.telegram.top-bar__admin>span:not(.btn__icon),
  .btn.discord.top-bar__admin>span:not(.btn__icon) {
    display: none;
  }

  .top-bar__admin[data-open-about] {
    width: 40px;
    padding: 0;
    justify-content: center;
  }

  .top-bar__admin[data-open-about] .top-bar__about-text {
    display: none;
  }
}

.mobile-toolbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9;
}

.mobile-toolbar__inner {
  width: 100%;
  max-width: 720px;
  display: flex;
  gap: 12px;
  padding: 10px;
  border-radius: 24px;
  border: 1px solid rgba(15, 17, 22, 0.1);
  background: var(--glass);
  box-shadow: 0 16px 44px rgba(15, 17, 22, 0.1);
  backdrop-filter: blur(18px);
}

.mobile-toolbar__btn {
  flex: 1;
  width: 100%;
  justify-content: center;
  padding: 12px 14px;
  border-radius: 18px;
}

.mobile-toolbar__btn--about {
  flex: 0 0 auto;
  width: 48px;
  padding: 12px;
}

@media (max-width: 640px) {
  .mobile-toolbar {
    display: flex;
  }

  .top-bar__about {
    display: none;
  }

  /* Clear the fixed toolbar so the footer links stay tappable. */
  .stage-footer {
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
  }
}

body.admin-page {
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
}

body.admin-page .stage {
  width: 100%;
  min-height: 100vh;
  border-radius: 0;
}

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

body.admin-page .top-bar {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  position: sticky;
  top: 0;
  z-index: 5;
  backdrop-filter: blur(30px);
}

body.admin-page .content {
  padding: 24px;
}

.admin-login {
  min-height: calc(100vh - 72px);
  display: grid;
  place-items: center;
}

.admin-login__card {
  width: min(520px, calc(100% - 24px));
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 17, 22, 0.08);
  border-radius: 28px;
  padding: 32px;
  box-shadow: 0 22px 58px rgba(15, 17, 22, 0.11);
}

@media (prefers-color-scheme: dark) {
  .admin-login__card {
    background: rgba(20, 22, 28, 0.9);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
  }

  .admin-login__card .badge {
    color: rgba(235, 240, 255, 0.65);
  }
}

.admin-login__title {
  font-size: clamp(1.8rem, 2.6vw, 2.2rem);
  margin: 10px 0 10px;
}

.admin-login__form {
  margin-top: 20px;
  display: grid;
  gap: 12px;
}

.admin-login__error {
  min-height: 1.1rem;
  color: #d92d20;
  font-size: 0.9rem;
}

.admin-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 20px;
  align-items: start;
}

.admin-sidebar,
.admin-main {
  background: var(--bg);
  border: 1px solid rgba(15, 17, 22, 0.08);
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 16px 40px rgba(15, 17, 22, 0.06);
}

@media (prefers-color-scheme: dark) {

  .admin-sidebar,
  .admin-main {
    background: var(--glass);
    border-color: var(--border);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.14);
  }
}

.admin-sidebar__toolbar {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

.admin-sidebar__search input {
  width: 100%;
}

.admin-sidebar .input-field input[type='file'] {
  width: 100%;
  max-width: 100%;
}

.admin-sidebar__toolbar .btn {
  width: 100%;
  justify-content: center;
}

.admin-sidebar__hint {
  margin-top: 12px;
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.4;
}

.admin-main__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.admin-main__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.7rem;
  color: var(--text-soft);
  margin-bottom: 6px;
}

.admin-main__title {
  font-size: 1.4rem;
}

.admin-main__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-main__status {
  min-height: 1.1rem;
  margin: 6px 0 14px;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.admin-main__status[data-tone='ok'] {
  color: rgba(0, 128, 64, 0.95);
}

.admin-main__status[data-tone='error'] {
  color: #d92d20;
}

.broadcast-form {
  display: grid;
  gap: 16px;
}

.broadcast-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 10px;
}

.broadcast-flag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.broadcast-progress {
  margin-top: 16px;
  height: 8px;
  border-radius: 999px;
  background: rgba(15, 17, 22, 0.12);
  overflow: hidden;
}

.broadcast-progress__bar {
  width: 0%;
  height: 100%;
  background: var(--accent);
  transition: width 120ms ease;
}

.broadcast-note {
  margin-top: 6px;
}

.broadcast-format {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 6px 0 10px;
}

.broadcast-format__btn {
  border: 1px solid rgba(15, 17, 22, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  padding: 6px 10px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.broadcast-format__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(15, 17, 22, 0.12);
}

.broadcast-preview {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(10, 12, 18, 0.55);
  backdrop-filter: blur(12px);
}

.broadcast-preview[hidden] {
  display: none;
}

.broadcast-preview__panel {
  width: min(780px, 100%);
  max-height: min(90vh, 760px);
  overflow: auto;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(15, 17, 22, 0.08);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  display: grid;
  gap: 16px;
  padding: 18px;
}

.broadcast-preview__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.broadcast-preview__title {
  font-size: 1.1rem;
  margin-top: 4px;
}

.broadcast-preview__chat {
  border-radius: 20px;
  padding: 16px;
  border: 1px solid rgba(15, 17, 22, 0.08);
  background: linear-gradient(180deg, rgba(239, 243, 255, 0.95), rgba(231, 238, 255, 0.95)),
    repeating-linear-gradient(135deg, rgba(15, 17, 22, 0.04) 0 2px, transparent 2px 8px);
  display: grid;
  gap: 16px;
}

.broadcast-preview__chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.broadcast-preview__chat-status {
  font-size: 0.8rem;
  color: rgba(0, 122, 255, 0.85);
}

.broadcast-preview__bubble {
  margin-left: auto;
  max-width: min(520px, 100%);
  background: #e8f1ff;
  border: 1px solid rgba(0, 26, 255, 0.12);
  border-radius: 18px 18px 6px 18px;
  padding: 12px 14px;
  display: grid;
  gap: 10px;
  box-shadow: 0 12px 30px rgba(15, 17, 22, 0.12);
}

.broadcast-preview__message {
  white-space: pre-wrap;
  line-height: 1.55;
  word-break: break-word;
}

.broadcast-preview__message.is-muted {
  color: var(--text-soft);
}

.broadcast-preview__message a {
  color: var(--accent);
  text-decoration: underline;
}

.broadcast-preview__message code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', monospace;
  background: rgba(15, 17, 22, 0.08);
  padding: 2px 6px;
  border-radius: 6px;
}

.broadcast-preview__message pre {
  background: rgba(15, 17, 22, 0.08);
  padding: 10px 12px;
  border-radius: 10px;
  overflow: auto;
  white-space: pre-wrap;
}

.broadcast-preview__media {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}

.broadcast-preview__media img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(15, 17, 22, 0.08);
  display: block;
  object-fit: cover;
}

.broadcast-preview__time {
  font-size: 0.78rem;
  text-align: right;
  color: rgba(15, 17, 22, 0.48);
}

.broadcast-preview__footer {
  display: grid;
  gap: 12px;
}

.broadcast-preview__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.broadcast-preview__spoiler {
  background: rgba(15, 17, 22, 0.15);
  color: transparent;
  border-radius: 6px;
  padding: 0 4px;
}

.broadcast-preview__spoiler:hover {
  color: inherit;
}

@media (prefers-color-scheme: dark) {
  .broadcast-progress {
    background: rgba(255, 255, 255, 0.12);
  }

  .broadcast-preview {
    background: rgba(5, 7, 12, 0.7);
  }

  .broadcast-format__btn {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--text);
  }

  .broadcast-format__btn:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  }

  .broadcast-preview__panel {
    background: rgba(19, 22, 29, 0.95);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  }

  .broadcast-preview__chat {
    border-color: rgba(255, 255, 255, 0.12);
    background: linear-gradient(180deg, rgba(24, 28, 38, 0.98), rgba(20, 24, 34, 0.98)),
      repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0 2px, transparent 2px 8px);
  }

  .broadcast-preview__bubble {
    background: rgba(35, 64, 200, 0.28);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  }

  .broadcast-preview__message code,
  .broadcast-preview__message pre {
    background: rgba(255, 255, 255, 0.08);
  }

  .broadcast-preview__media img {
    border-color: rgba(255, 255, 255, 0.12);
  }

  .broadcast-preview__time {
    color: rgba(235, 240, 255, 0.55);
  }

  .broadcast-preview__spoiler {
    background: rgba(255, 255, 255, 0.16);
  }
}

@media (max-width: 980px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }
}

.input-group {
  display: flex;
  gap: 8px;
  width: 100%;
  /* Ensure group stays within parent */
}

.input-group input {
  flex: 1;
  min-width: 0;
  /* Fix for flex item overflow in Safari */
  width: 100%;
  /* Ensure it fills space */
}

.select-trigger {
  position: relative;
  width: 44px;
  flex: 0 0 auto;
  border-radius: 12px;
  background: rgba(15, 17, 22, 0.05);
  border: 1px solid rgba(15, 17, 22, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 150ms ease;
}

.select-trigger:hover {
  background: rgba(15, 17, 22, 0.09);
}

.select-trigger svg {
  width: 20px;
  height: 20px;
  opacity: 0.6;
}

.ghost-select {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  appearance: none;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0f1116;
    --bg-dark: #000000;
    --glass: rgba(20, 22, 28, 0.75);
    --glass-dark: rgba(255, 255, 255, 0.1);
    --border: rgba(255, 255, 255, 0.07);
    --border-dark: rgba(0, 0, 0, 0.2);
    --text: #f6f8ff;
    --text-soft: rgba(235, 240, 255, 0.64);
    --text-dark: #0f1116;
    --accent: #001AFF;
    --accent-3d: #ff5e54;
  }

  html {
    background: var(--bg);
  }

  body {
    background: var(--bg);
    color: var(--text);
  }

  .stage {
    background: linear-gradient(145deg, rgba(30, 34, 44, 0.8), rgba(15, 17, 22, 0.6));
    box-shadow: none;
  }

  /* Removed empty .top-bar override as it now uses var(--glass) */

  .lang-toggle {
    background: rgba(30, 34, 44, 0.62);
    border-color: var(--border);
  }

  .lang-toggle__glider {
    background: rgba(60, 65, 80, 0.95);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
  }

  .lang-toggle__btn {
    color: rgba(255, 255, 255, 0.55);
  }

  .lang-toggle__btn--active,
  .lang-toggle__btn[aria-pressed='true'] {
    color: rgba(255, 255, 255, 0.92);
  }

  .top-bar__profile {
    background: rgba(255, 255, 255, 0.1);
  }

  .badge {
    color: rgba(255, 255, 255, 0.6);
  }

  .badge--hero {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(30, 34, 44, 0.82);
    color: rgba(255, 255, 255, 0.9);
  }

  .hero {
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .hero__copy {
    background: rgba(30, 34, 44, 0.92);
    border-color: var(--border);
    box-shadow: none;
  }

  .hero-widget {
    background: rgba(30, 34, 44, 0.92);
    border-color: var(--border);
    box-shadow: none;
  }

  .comparison__panel {
    background: rgba(30, 34, 44, 0.85);
    border-color: var(--border);
  }


  .hero-widget__details {
    background: rgba(45, 50, 65, 0.72);
    color: rgba(255, 255, 255, 0.78);
    border-color: var(--border);
  }

  .hero-widget__details:hover {
    background: rgba(60, 65, 80, 0.9);
  }

  .hero-widget__label {
    color: rgba(255, 255, 255, 0.55);
  }

  .result-card {
    background: rgba(30, 34, 44, 0.85);
    border-color: var(--border);
    box-shadow: none;
  }

  .result-card:hover {
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.21);
  }

  .result-card__top {
    background: rgba(11, 14, 20, 0.36);
  }

  .result-card__bottom {
    background: transparent;
  }

  .result-card__divider {
    background: linear-gradient(
      90deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.16) 10%,
      rgba(255, 255, 255, 0.16) 90%,
      rgba(255, 255, 255, 0) 100%
    );
  }

  .result-card__compare-btn {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.88);
  }

  .result-card__compare-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.16);
  }

  .result-card__compare-btn.is-selected {
    background: rgba(96, 165, 250, 0.16);
    border-color: rgba(96, 165, 250, 0.28);
    color: #bfdbfe;
  }

  .result-card.is-compare-selected {
    border-color: rgba(96, 165, 250, 0.24);
    box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.08);
  }

  .pill {
    background: rgba(45, 50, 65, 0.7);
    color: rgba(255, 255, 255, 0.75);
    border-color: var(--border);
  }

  .pill--year {
    border: 0;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.92);
  }

  .pill--year-cpu,
  .pill--year-gpu {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.92);
  }

  .result-card .pill--year,
  .result-card .pill--year-cpu,
  .result-card .pill--year-gpu {
    color: rgba(255, 255, 255, 0.92);
  }

  .pill--ae {
    border: 0;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.92);
  }

  .pill--sb {
    background: rgba(0, 26, 255, 0.18);
    color: #8c99ff;
    border-color: rgba(0, 26, 255, 0.22);
  }

  .result-card[data-edition='NEW'] .pill--sb {
    border: 0;
    background: rgba(255, 94, 84, 0.12);
    color: #ff9d96;
  }

  .result-card__value--ae {
    color: #fff;
  }

  .result-card__value--memory {
    color: rgba(255, 255, 255, 0.92);
  }

  .result-card[data-edition='NEW'] .result-card__value--memory {
    color: rgba(255, 255, 255, 0.92);
  }

  .result-card__icon {
    color: #fff;
    /* Ensure icon background fits dark mode if not image */
    background: linear-gradient(135deg, #2c2f39, #3a3f4d);
  }

  .btn.ghost {
    background: rgba(255, 255, 255, 0.08);
  }

  .btn.ghost:hover {
    background: rgba(255, 255, 255, 0.12);
  }

  .chip {
    border-color: rgba(255, 255, 255, 0.11);
  }

  .chip__img {
    filter: invert(1);
  }

  .chip--active .chip__img,
  .chip[aria-pressed='true'] .chip__img {
    filter: invert(1);
    /* Active has dark BG -> White Icon */
  }

  .hero-toggle {
    background: rgba(30, 34, 44, 0.62);
    border-color: var(--border);
  }

  .hero-toggle__glider {
    background: rgba(60, 65, 80, 0.95);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
  }

  .hero-toggle__btn {
    color: rgba(255, 255, 255, 0.55);
  }

  .hero-toggle__btn--active,
  .hero-toggle__btn[aria-pressed='true'] {
    color: rgba(255, 255, 255, 0.92);
    box-shadow: none;
  }

  .result-card__system .os-mark__img {
    opacity: 1;
    filter: invert(1);
    /* Invert to make black icons white */
  }

  .stage-footer__logo {
    filter: invert(1);
    opacity: 0.4;
  }


  .btn.telegram,
  .btn.discord {
    border-color: var(--border);
  }

  .top-bar__about.btn.ghost {
    background: rgba(30, 34, 44, 0.72);
    border-color: var(--border);
  }

  .top-bar__about.btn.ghost:hover {
    background: rgba(255, 255, 255, 0.1);
  }

  .wizard__panel,
  .card-modal__panel,
  .compare-modal__panel,
  .about-modal__panel,
  .toast__panel {
    background: rgba(30, 34, 44, 0.95);
    border-color: var(--border);
    color: var(--text);
    /* Ensure text inherits white */
  }

  .about-modal__content p,
  .about-modal__content li {
    color: rgba(255, 255, 255, 0.8);
  }

  .db-loader {
    background: rgba(15, 17, 22, 0.65);
  }

  .db-loader__panel {
    background: rgba(30, 34, 44, 0.9);
    border-color: var(--border);
    color: var(--text);
  }

  .db-loader__subtitle {
    color: rgba(255, 255, 255, 0.6);
  }

  .db-loader__tips {
    border-top-color: rgba(255, 255, 255, 0.12);
  }

  .db-loader__tips-title {
    color: rgba(255, 255, 255, 0.45);
  }

  .db-loader__tip {
    color: rgba(255, 255, 255, 0.75);
  }

  .db-loader__spinner {
    border-color: rgba(255, 255, 255, 0.1);
    border-top-color: #fff;
  }

  .wizard__close,
  .card-modal__close,
  .compare-modal__close,
  .about-modal__close {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
  }

  .input-field input,
  .input-field select,
  .input-field textarea {
    background-color: rgba(15, 17, 22, 0.6);
    border-color: var(--border);
    color: #fff;
  }

  .input-field input::placeholder,
  .input-field textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
  }

  .input-field input:focus,
  .input-field select:focus,
  .input-field textarea:focus {
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.28);
  }

  /* Fix for autofill background in dark mode */
  .input-field input:-webkit-autofill,
  .input-field input:-webkit-autofill:hover,
  .input-field input:-webkit-autofill:focus,
  .input-field input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #1a1d26 inset !important;
    -webkit-text-fill-color: white !important;
  }

  .card-modal__stats {
    background: transparent;
    border: 0;
    padding: 0;
  }

  .compare-dock__inner {
    background: rgba(30, 34, 44, 0.92);
    border-color: rgba(255, 255, 255, 0.1);
  }

  .compare-chip {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
  }

  .compare-chip__meta,
  .compare-table__row-label,
  .compare-table__entry-meta {
    color: rgba(255, 255, 255, 0.6);
  }

  .compare-chip__icon {
    color: rgba(255, 255, 255, 0.82);
  }

  .compare-chip__remove,
  .compare-table__remove,
  .compare-modal__close {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.86);
  }

  .compare-chip__remove:hover,
  .compare-table__remove:hover,
  .compare-modal__close:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.22);
    color: #fff;
  }

  .compare-modal__header {
    border-bottom-color: rgba(255, 255, 255, 0.1);
  }

  .compare-table-grid {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(24, 28, 38, 0.95);
  }

  .compare-table__entry {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(33, 38, 49, 0.96);
  }

  .compare-summary__cell > .compare-table__entry {
    border: 0;
    background: rgba(255, 255, 255, 0.06);
  }

  .compare-summary__cell > .compare-table__entry.compare-table__entry--best {
    border: 0;
    background: rgba(255, 255, 255, 0.06);
  }

  .compare-table__entry--best {
    border-color: rgba(84, 160, 255, 0.24);
    background: rgba(49, 92, 148, 0.32);
  }

  .compare-table__metric-row th,
  .compare-table__metric-row td {
    border-top-color: rgba(255, 255, 255, 0.08);
  }

  .compare-table__value--best {
    color: #8ab4ff;
  }

  .compare-table__device-icon {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.82);
  }

  .compare-table__section {
    color: rgba(255, 255, 255, 0.42);
  }

  .compare-table__row-label-text {
    color: rgba(255, 255, 255, 0.58);
  }

  .compare-table__value-text {
    background: transparent;
  }

  .compare-table__value-text--best {
    color: #dbe8ff;
  }

  .compare-table__entry-foot {
    color: rgba(255, 255, 255, 0.58);
  }

  .compare-table__value {
    color: rgba(255, 255, 255, 0.9);
  }

  .card-modal__panel {
    background: rgba(30, 34, 44, 0.95);
    border-color: rgba(255, 255, 255, 0.1);
  }

  .card-modal__panel::before {
    content: none;
  }

  .card-modal__header {
    border-bottom-color: rgba(255, 255, 255, 0.1);
  }

  .card-modal__stats > div {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
  }

  .card-modal__mobile-controls {
    background: transparent;
    box-shadow: none;
  }

  .card-modal__mobile-btn {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.88);
    box-shadow: none;
  }

  .card-modal__mobile-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
  }

  .card-modal__mobile-btn--close {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.22);
    color: rgba(255, 255, 255, 0.95);
  }

  .card-modal__mobile-btn--close:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.28);
  }

  .card-modal__nav-btn {
    background: rgba(8, 11, 20, 0.34);
    border-color: rgba(255, 255, 255, 0.78);
    color: rgba(255, 255, 255, 0.9);
    box-shadow: none;
  }

  .card-modal__nav-btn:hover {
    background: rgba(8, 11, 20, 0.5);
    border-color: #fff;
    color: #fff;
  }

  .card-modal__close:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.24);
    color: #fff;
  }

  .os-mark__img {
    filter: invert(1);
  }

  .wizard__close,
  .card-modal__close,
  .compare-modal__close,
  .about-modal__close {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  .mobile-toolbar__inner {
    background: rgba(30, 34, 44, 0.9);
    border-color: var(--border);
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.21);
  }

  .input-field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.72)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 14px 14px;
  }

  .select-trigger {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border);
  }

  .select-trigger:hover {
    background: rgba(255, 255, 255, 0.15);
  }

  .select-trigger svg {
    opacity: 0.9;
    color: #fff;
  }
}

@media (prefers-color-scheme: dark) and (hover: hover) and (pointer: fine) {
  .chip:not(.chip--active):not([aria-pressed='true']):hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.18);
  }
}

/* Submit gate: the entry points stay hidden until the script has run and
   stay hidden while submissions are closed. Hiding first avoids showing a
   button we are about to take away. */
[data-submit-state='pending'] [data-open-wizard],
[data-submit-state='blocked'] [data-open-wizard] {
  display: none !important;
}

/* Consent checkbox in the last wizard step. */
.consent-field {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.35);
  font-size: 13px;
  line-height: 1.45;
  cursor: pointer;
}

.consent-field input[type='checkbox'] {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin-top: 1px;
  accent-color: var(--accent, #2f6bff);
  cursor: pointer;
}

.consent-field__text {
  color: var(--muted, inherit);
}

.consent-field a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.stage-footer__legal {
  margin: 10px 0 0;
  font-size: 12px;
  text-align: center;
}

.stage-footer__legal a,
.stage-footer__legal button {
  color: var(--muted, inherit);
  text-decoration: underline;
  text-underline-offset: 2px;
  opacity: 0.75;
}

.stage-footer__legal button {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  cursor: pointer;
}

.stage-footer__legal a:hover,
.stage-footer__legal button:hover {
  opacity: 1;
}

.stage-footer__sep {
  margin: 0 8px;
  opacity: 0.4;
}

/* Privacy policy page. */
.legal {
  max-width: 780px;
  margin: 0 auto;
  padding: 32px 20px 72px;
  line-height: 1.6;
}

.legal h1 {
  font-size: clamp(24px, 4vw, 32px);
  margin-bottom: 8px;
}

.legal h2 {
  font-size: 18px;
  margin: 32px 0 10px;
}

.legal h3 {
  font-size: 15px;
  margin: 20px 0 8px;
}

.legal p,
.legal li {
  font-size: 14px;
}

.legal p {
  margin: 0 0 12px;
}

.legal p:last-child {
  margin-bottom: 0;
}

.legal ul {
  padding-left: 20px;
  margin: 10px 0;
}

.legal li {
  margin-bottom: 6px;
}

.legal-lang[hidden] {
  display: none;
}

.legal a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
}

.legal a:hover {
  text-decoration-color: currentColor;
}

.legal code {
  padding: 1px 5px;
  border-radius: 5px;
  background: rgba(8, 11, 20, 0.06);
  font-size: 12.5px;
}

.legal__meta {
  opacity: 0.7;
  font-size: 13px;
  margin-bottom: 4px;
}

.site-footer {
  padding: 24px 20px 40px;
  text-align: center;
  font-size: 12px;
  opacity: 0.75;
}

@media (prefers-color-scheme: dark) {
  .consent-field {
    border-color: var(--border-dark);
    background: rgba(255, 255, 255, 0.05);
  }

  .legal code {
    background: rgba(255, 255, 255, 0.1);
  }
}
